ADDBDDNODE(3)
π addbddnode π β a BDD FUNCTIONS moment from the ADDBDDNODE(3) manual, bestie
okay so like, this is the page for addbddnode, and it's lowkey iconic for anyone building bdd stuff. Let's get into it β¨
β¨ NAME β¨
addbddnode β adds a new bdd node in the bdd system.
π 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.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
π¦ SYNOPSIS π¦
#include "bdd101.h"
bddnode βaddbddnode( BddSystem, Index, High, Low )
bddsystem βBddSystem;
bddindex Index;
bddnode βHigh;
bddnode βLow;
π PARAMETERS π
BddSystemβ the bdd system. yes bestie, the whole system.Indexβ the bdd index.Highβ the bdd high pointer.Lowβ the bdd low pointer.
π DESCRIPTION π
So addbddnode adds a new node with the index Index, High as the HIGH pointer, and Low as the LOW pointer in the bdd system BddSystem. It's giving "new node, who dis" energy π
If that bdd node already exists, addbddnode returns its pointer instead. No duplicate drama, no cap.
If a null pointer is given, the default bdd system is used. Slay, defaults. π«Ά
π₯ RETURN VALUE π₯
addbddnode returns a pointer to the resulting bdd node, with its number of external reference incremented. That's the whole return-value vibe. π
π ERRORS π
"index xxx out of range"β theIndexparameter must be a valid index. fr fr, it has to be valid.
πΈ EXAMPLE πΈ
Here's the example in all its exact, character-for-character glory, bestie:
#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 );
BddNode = addbddcircuitin( (bddcircuit β)0, "i0", 0, BDD_IN_MODE_FIRST );
BddNode = addbddnode( (bddsystem β)0, BddNode->INDEX, BddNode->LOW, BddNode->HIGH );
Expr = convertbddcircuitabl( (bddcircuit β)0, BddNode );
/* displays (not i0) */
viewablexpr( Expr, ABL_VIEW_VHDL );
freeablexpr( Expr );
destroybddsystem( (bddsystem β)0 );
destroybddcircuit( (bddcircuit β)0 );
π SEE ALSO π
bdd(1)β the only see-also on this page, and it's serving.
π BUG REPORT π
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools. π«Ά
xoxo, footer vibes: ASIM/LIP6 Β· October 1, 1997 Β· ADDBDDNODE(3) β that's the sign-off, bestie π
π¦ where this page comes from
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms