GETBDDNODESIZE(3)

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

okay bestie, welcome to the GETBDDNODESIZE(3) page β€” aka getbddnodesize(3) β€” from the BDD FUNCTIONS manual. it's giving β€œsmall function, big main character energy,” and honestly we're obsessed. let's get into it πŸ’…βœ¨

πŸ’– NAME πŸ’–

getbddnodesize β€” gets the number of nodes in a bdd. periodt. πŸŽ€

🌸 ORIGIN 🌸

This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of UniversitοΏ½ Pierre and Marie CURIE, in Paris, France. (yes, Paris France β€” we love a prestigious origin story 😌✨)

✨ SYNOPSIS ✨

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

πŸŽ€ PARAMETERS πŸŽ€

  • BddSystem β€” the bdd system. that's the system you're working in, bestie.
  • BddNode β€” the bdd node. the node in question, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

getbddnodesize computes the total number of nodes in BddNode, in the bdd system BddSystem. If a null pointer is given, the default bdd system is used β€” so yes, null pointer means default bdd system. slay. πŸ’–

🌈 RETURN VALUE 🌈

getbddnodesize returns the number of nodes reached. that's the whole return value, no surprises. ✨

πŸ“ EXAMPLE πŸ“

here's the example, copied exactly β€” yes, even the weird bits, because we don't edit source code in this group chat πŸ˜­πŸ’€

#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,
           getbddnodesize( (bddsystem βˆ—)0, BddNode ) );
   destroybddsystem( (bddsystem βˆ—)0 );
   destroybddcircuit( (bddcircuit βˆ—)0 );

πŸ‘‘ SEE ALSO πŸ‘‘

  • bdd(1) β€” go see also, bestie. πŸ’…

πŸ’€ 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 mean it β€” send the feedback. 🫢


cute sign-off: source/version ASIM/LIP6, date October 1, 1997, page GETBDDNODESIZE(3) β€” bye bestie, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from