ADDBDDVARAFTER(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

✨ NAME ✨

okay so this is ADDBDDVARAFTER(3) from the BDD FUNCTIONS corner of the manual, bestie πŸ’… β€” addbddvarafter adds a new variable, after an existing one. periodt.


🌸 ORIGIN 🌸

This software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie Curie, in Paris, France. iconic academic chaos, honestly πŸŽ€

Web: http://asim.lip6.fr/recherche/alliance/

E-mail: alliance-users@asim.lip6.fr


✨ SYNOPSIS ✨

#include "bdd101.h"
bddnode βˆ—addbddvarafter( BddSystem )
  bddsystem βˆ—BddSystem;
  bddindex      Index;

πŸŽ€ PARAMETERS πŸŽ€

  • BddSystem β€” the bdd system. that’s the whole vibe.
  • Index β€” the bdd index of an existing variable. it has to actually exist, no fake ones πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

addbddvarafter creates a new variable, with the number BddSystem->INDEX_TO_VAR[ Index ] + 1 in the bdd system BddSystem. If a null pointer is given, the default bdd system is used. lowkey convenient, highkey important πŸ’–


πŸ’œ RETURN VALUE πŸ’œ

addbddvarafter returns a pointer to the bdd node of the new variable. that pointer is your new main character ✨


πŸ’€ ERRORS πŸ’€

  • "no more variables, error !" β€” there is no variable number left. tragic, but the manual said it first 😭
  • "index xxx out of range, error !" β€” the Index parameter must be a valid index. no cap.

🌈 EXAMPLE 🌈

bestie, here’s the whole little demo:

       #include "bdd101.h"
          bddsystem  βˆ—BddSystem;
          bddnode    βˆ—BddNode1;
          bddnode    βˆ—BddNode2;
          BddSystem  = createbddsystem( 100, 1000, 100, 50000 );
          BddNode1 = addbddvarfirst( (bddsystem βˆ—)0 );
          BddNode2 = addbddvarafter( (bddsystem βˆ—)0, BddNode1->INDEX );
          destroybddsystem( (bddsystem βˆ—)0 );

πŸ‘‘ SEE ALSO πŸ‘‘

bdd(1) β€” go read that too, iykyk 🫢


πŸ“ BUG REPORT πŸ“

This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. fr fr, they’re asking β€” send the feedback πŸ’Œ


xoxo, ASIM/LIP6 β€” October 1, 1997, signing off from ADDBDDVARAFTER(3) πŸ’–

πŸ“¦ where this page comes from