SETBDDREFEXT(3)
π NAME π
okay so bestie, welcome to SETBDDREFEXT(3) from the BDD FUNCTIONS crew β this one is setbddrefext, and it increments the external reference, and decrements the internal reference of a bdd node. periodt. π
π 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
the lore is giving very βbuilt in a French lab and absolutely iconic,β ngl π«Ά
β¨ SYNOPSIS β¨
#include "bdd101.h"
bddnode βsetbddrefext( BddNode )
bddnode βBddNode;
π PARAMETERS π
BddNodeβ the bdd node. thatβs the one, bestie. π
π¦ DESCRIPTION π¦
setbddrefext increments the number of external reference of the bdd node BddNode and decrements its number of internal reference.
like, itβs a little ref-counter glow-up: external goes up, internal goes down. slay. π¦
π RETURN VALUE π
setbddrefext returns the BddNode pointer. thatβs it, thatβs the return, iconic behavior. π
π ERRORS π
"negative reference, index xxx error !"β theBddNodemust have a positive number of internal reference. if it doesnβt, this error pops up and ruins the whole vibe π
π EXAMPLE π
okay bestie, hereβs the whole demo, exact code, no cap:
#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 );
incbddrefint( BddNode );
setbddrefext( BddNode );
/* displays Node VAR: 0 INDEX: 2 MARK: 0 REF_EXT: 1 REF_INT: 0 */
viewbddnode( (bddsystem β)0, BddNode );
/* displays (not i0) */
viewablexpr( Expr, ABL_VIEW_VHDL );
freeablexpr( Expr );
destroybddsystem( (bddsystem β)0 );
destroybddcircuit( (bddcircuit β)0 );
peep the comments too β they show the display output, and yes, the whole thing is giving main character energy πβ¨
π SEE ALSO π
bdd(1)β go look, iykyk π
π«Ά BUG REPORT π«Ά
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
π signed, sealed, delivered by ASIM/LIP6 on October 1, 1997 β this has been SETBDDREFEXT(3), mwah π
π¦ 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