GETBDDNODENUM(3)

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

✨ NAME ✨

okay so this is getbddnodenum(3) from the BDD FUNCTIONS crew β€” and it literally just gets the number of nodes in a bdd πŸ’… that's it, that's the whole job, and she does it flawlessly.


🌸 ORIGIN 🌸

this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France πŸ₯–βœ¨ (no cap, Paris fr fr)


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸŽ€ PARAMETERS πŸŽ€

  • BddSystem β€” the bdd system, bestie. your whole little universe of nodes.
  • BddNode β€” the bdd node. the main character we're counting around πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so getbddnodenum computes the number of different nodes in BddNode, inside the bdd system BddSystem. it's giving census era, honestly.

and if a null pointer is given, the default bdd system is used β€” she'll just fall back to the default, no drama 🫢


⭐ RETURN VALUE ⭐

getbddnodenum returns the number of the different nodes reached. that's your number, that's your answer, periodt πŸ”₯


🌈 EXAMPLE 🌈

#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,
           getbddnodenum( (bddsystem βˆ—)0, BddNode ) );
   destroybddsystem( (bddsystem βˆ—)0 );
   destroybddcircuit( (bddcircuit βˆ—)0 );
ngl bestie, that last example is exactly how the original prints it β€” "Number nodes: %ld0, and all 😭 i'm not touching it, we stay loyal to the source πŸ™ˆ

🧚 SEE ALSO 🧚


πŸ’€ BUG REPORT πŸ’€

This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. β€” so like, pls send feedback, they're literally asking, don't leave them on read πŸ«ΆπŸ’Œ


and that's the whole page!! brought to you by ASIM/LIP6, dated October 1, 1997, filed under GETBDDNODENUM(3) β€” iconic, vintage, still slaying β­πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from