NUMBERNODEBDD(3)

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

πŸ’– ORIGIN πŸ’–

okay so bestie, first the lore ✨ 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.


🌸 NAME 🌸

numberNodeBdd β€” literally counts how many nodes your BDD is using, no cap πŸ’…


✨ SYNOPSIS ✨

#include "logmmm.h"
int numberNodeBdd(pBdd)
pNode pBdd;

πŸŽ€ PARAMETER πŸŽ€

  • pBdd β€” the BDD that we're doing the compute on, she's the main character here 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

numberNodeBdd() computes the number of reduced nodes that are used in pBdd. that's it, that's the whole job, and she ate πŸ’…βœ¨


🌈 EXAMPLE 🌈

ok so here's a little taste, bestie:

#include "mutnnn.h"      /* mbk utilities */
#include "logmmm.h"
pNode nodeA,nodeB,nodeC;
pNode res;
chain_list *pt;

initializeBdd(SMALL_BDD);
nodeA = createNodeTermBdd(3);
nodeB = createNodeTermBdd(3);
nodeC = createNodeTermBdd(4);
pt = NULL;
pt = addListBdd(pt,nodeA);
pt = addListBdd(pt,nodeB);
pt = addListBdd(pt,nodeC);
res = applyBdd(XOR,pt);
printf("number of nodes = %d",numberNodeBdd(res));

/* it will display
number of nodes = 5
*/

destroyBdd(1);

and boom, it will display number of nodes = 5 πŸŽ‰ like… she counted, she served, she left. obsessed.


πŸ‘‘ SEE ALSO πŸ‘‘

log(1), bdd(1), addListBdd(3), numberNodeBdd(3), notBdd(3), constraintBdd(3), composeBdd(3), displayBdd(3), createNodeTermBdd(3).

go read those too, iykyk 🧚


πŸ’€ BUG REPORT πŸ’€

ngl this tool is under development at the ASIM department of the LIP6 laboratory. and they need your feedback to improve documentation and tools β€” so like, pls tell them, fr fr πŸ™ˆ

do NOT gatekeep your bug reports bestie, they literally asked for them πŸ’œ

ASIM/LIP6 Β· October 1, 1997 β€” yeah she's an old soul but she still slays πŸ’…βœ¨ NUMBERNODEBDD(3) out, mwah 🫢