NUMBERNODEBDD(3)

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

okay bestie, this is NUMBERNODEBDD(3) β€” the BDD functions page that literally counts how many reduced nodes a BDD is using. no cap, it’s a tiny lil function with main character energy. πŸ’–βœ¨

🌸 ORIGIN 🌸

okay so origin story: 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. 🫢

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

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


πŸŽ€ NAME πŸŽ€

numberNodeBdd β€” computes the number of nodes used in a BDD. periodt. πŸ’…

πŸ’… SYNOPSIS πŸ’…

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

πŸ¦‹ PARAMETER πŸ¦‹

  • pBdd β€” the BDD that the computation operates on. that’s the one you’re counting nodes in, bestie. πŸ¦‹

✨ DESCRIPTION ✨

numberNodeBdd() computes the number of reduced nodes that are used in pBdd. that’s it, that’s the whole slay. πŸ’… It’s giving β€œcount the nodes” and nothing else.

🌈 EXAMPLE 🌈

okay here’s the example, copied exactly because code is sacred:

#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 yes, it will display number of nodes = 5 β€” iconic. πŸ“

πŸ”₯ SEE ALSO πŸ”₯

log(1), bdd(1), addListBdd(3), numberNodeBdd(3), notBdd(3), constraintBdd(3), composeBdd(3), displayBdd(3), createNodeTermBdd(3). go read those too bestie, iykyk. πŸ’œ

πŸ’€ BUG REPORT πŸ’€

This tool is under development at the ASIM department of the LIP6 laboratory. They need your feedback to improve documentation and tools. so send the feedback, bestie β€” it’s giving collaborative main character energy. πŸ™ˆ

xoxo, ASIM/LIP6 β€” October 1, 1997 β€” NUMBERNODEBDD(3) πŸ’–πŸŽ€

πŸ“¦ where this page comes from