MARKBDDNODE(3)

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

πŸŽ€ NAME πŸŽ€

okay so this is markbddnode, and it lives in section 3 of the manual, aka the BDD FUNCTIONS pages πŸ’…

what it does? it marks a bdd node with a specified mask. that's it, that's the whole vibe. ✨


🌸 ORIGIN 🌸

so 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 πŸ‡«πŸ‡· (oui oui, iconic)


πŸ“œ SYNOPSIS πŸ“œ

#include "bdd101.h"
long markbddnode( BddSystem, BddNode, Mark )
  bddsystem βˆ—BddSystem;
  bddnode   βˆ—BddNode;
  bddmark    Mark;

🫢 PARAMETERS 🫢

  • BddSystem β€” the bdd system. that's the whole system, bestie.
  • BddNode β€” the bdd node you're marking. the lil guy getting the sticker 🏷️
  • Mark β€” the bit mask. this is the sticker itself.

πŸ’– DESCRIPTION πŸ’–

okay so markbddnode marks the bdd node BddNode with the bit mask Mark, inside the bdd system BddSystem. ✨

and listen β€” if you hand it a null pointer, it just uses the default bdd system. no stress, it's got you. 🫢

the way it actually works? it does a OR with the field MARK of the bdd node BddNode, and the bit mask Mark. like, a bitwise OR. slay. πŸ’…


⭐ RETURN VALUE ⭐

markbddnode returns the number of the different marked nodes. periodt. πŸ”₯


πŸ¦‹ EXAMPLE πŸ¦‹

here's the whole thing in action, copy-paste ready, no cap:

#include "bdd101.h"
   bddsystem  βˆ—BddSystem;
   bddcircuit βˆ—BddCircuit;
   bddnode    βˆ—BddNode;
   chain_list βˆ—Expr;
   BddSystem  = createbddsystem( 100, 1000, 100, 50000 );
   BddCircuit = createbddcircuit( "hello_world", 10, 10, BddSystem );
   Expr = createablbinexpr( ABL_AND,
                            createablatom( "i0" ),
                            createablatom( "i1" ) );
   BddNode = addbddcircuitabl( BddCircuit, Expr );
   freeablexpr( Expr );
   printf( "Number nodes: %ld0,
           markbddnode( (bddsystem βˆ—)0, BddNode, 0x0001 ) );
   unmarkbddnode( (bddsystem βˆ—)0, BddNode, 0x0001 );
   destroybddsystem( (bddsystem βˆ—)0 );
   destroybddcircuit( (bddcircuit βˆ—)0 );

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’Œ BUG REPORT πŸ’Œ

so this tool is under development at the ASIM department of the LIP6 laboratory. πŸ‘€

and fr fr, they need your feedback to improve documentation and tools. so if something's weird, tell them!! they're literally asking!! πŸ™ˆ


ASIM/LIP6 Β· October 1, 1997 Β· MARKBDDNODE(3)

and that's the whole page bestie, mwah πŸ’‹ bye pookie, go mark some nodes πŸ¦‹πŸ’–βœ¨