COFACTORBDDNODE(3)
β¨ NAME β¨
cofactorbddnode β computes the generalized cofactor. π¦ okay so bestie, this page is COFACTORBDDNODE(3) from the BDD FUNCTIONS manual, and yes, the whole main-character job is computing the generalized cofactor. periodt. π
π ORIGIN π
okay so 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. iconic. πΌ
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
β¨ SYNOPSIS β¨
#include "bdd101.h"
bddnode βcofactorbddnode( BddSystem, BddNode1, BddNode2 )
bddsystem βBddSystem;
bddnode βBddNode1;
bddnode βBddNode2;
π PARAMETERS π
BddSystemβ the bdd system. literally the system it lives in. π»BddNode1β the first bdd node. first up. π₯BddNode2β the second bdd node. second up. π₯
π« DESCRIPTION π«
cofactorbddnode computes the generalized cofactor of BddNode1 by BddNode2, in the bdd system BddSystem. if a null pointer is given, the default bdd system is used. no cap. π«Ά
π RETURN VALUE π
cofactorbddnode returns the resulting bdd node. that's it. that's the tea. π
π ERRORS π
"index xxx out of range"β theBddNode2parameter must be different to the zero bdd node. so do not hand it the zero bdd node, bestie; that's the error vibe. π
π§ EXAMPLE π§
here's the full example, with the code kept exactly as it needs to be:
#include "bdd101.h"
bddsystem βBddSystem;
bddcircuit βBddCircuit;
bddnode βBddNode1;
bddnode βBddNode2;
bddnode βBddNode;
chain_list βExpr;
BddSystem = createbddsystem( 100, 1000, 100, 50000 );
BddCircuit = createbddcircuit( "hello_world", 10, 10, BddSystem );
Expr = createablbinexpr( ABL_OR,
createablatom( "i0" ),
createablatom( "i1" ) );
BddNode1 = addbddcircuitabl( BddCircuit, Expr );
freeablexpr( Expr );
Expr = createablbinexpr( ABL_AND,
createablatom( "i0" ),
createablatom( "i1" ) );
BddNode2 = addbddcircuitabl( BddCircuit, Expr );
freeablexpr( Expr );
BddNode = cofactorbddnode( (bddsystem β)0, BddNode1, BddNode2 );
Expr = convertbddcircuitabl( BddCircuit, BddNode );
/* displays '1' */
viewablexpr( Expr, ABL_VIEW_VHDL );
freeablexpr( Expr );
destroybddsystem( (bddsystem β)0 );
destroybddcircuit( (bddcircuit β)0 );
π 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. bestie, please send the feedback β the docs and tools need the glow-up. π
~ ASIM/LIP6 Β· October 1, 1997 Β· COFACTORBDDNODE(3) ~ π
β¨
π¦ 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