ADDBDDVARAFTER(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

✨ ADDBDDVARAFTER(3) ✨

okay bestie, welcome to the BDD FUNCTIONS corner of the manual, section 3, and today's main character is addbddvarafter πŸ’…


πŸŽ€ NAME πŸŽ€

addbddvarafter β€” it adds a new variable, right after an existing one. no cap, that's literally the whole job πŸ¦‹


🌸 ORIGIN 🌸

so this software? it 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 energy, honestly πŸ‘‘


✨ SYNOPSIS ✨

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

πŸ’– PARAMETERS πŸ’–

  • BddSystem β€” the bdd system. yeah, the whole system. she's the moment.
  • Index β€” the bdd index of an existing variable. like, a variable that's already there, bestie. she has to exist first 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

addbddvarafter creates a new variable, and its number is BddSystem->INDEX_TO_VAR[ Index ] + 1 in the bdd system BddSystem. so it slots in right behind the variable you pointed at, no drama 🌈

and if you hand it a null pointer? cute. the default bdd system gets used instead. periodt πŸ’…


🌟 RETURN VALUE 🌟

addbddvarafter returns a pointer to the bdd node of the new variable. that's your new baby, take good care of her πŸ₯Ί


πŸ”₯ ERRORS πŸ”₯

  • "no more variables, error !" β€” there is no variable number left. she's booked and busy, there's genuinely no room 😭
  • "index xxx out of range, error !" β€” the Index parameter must be a valid index. invalid index = vibe check failed, bestie πŸ’€

πŸ“ EXAMPLE πŸ“

#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 );

look at that. make a system, add the first variable, add another one after it using BddNode1->INDEX, then clean up after yourself like a responsible queen 🧚✨


πŸ‘‘ SEE ALSO πŸ‘‘

bdd(1)


πŸ’œ 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 nicely, so if something's weird, tell them πŸ™ˆ


that's the whole page bestie, you ate that πŸ’–

ASIM/LIP6 β€” October 1, 1997 β€” ADDBDDVARAFTER(3), mwah, go forth and add variables πŸŽ€