GCNODEBDD(3)
π GCNODEBDD(3) β the BDD functions era π
okay bestie, so this one's a manual page for gcNodeBdd, from the BDD functions corner of the universe. Sit down, grab a strawberry drink π, and let's get into it.
πΈ ORIGIN πΈ
This software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the 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
β¨ NAME β¨
gcNodeBdd β literally does a garbage collection. That's it, that's the job. ποΈπ
π¦ SYNOPSIS π¦
#include "logmmm.h"
void gcNodeBdd(pt)
chain_list *pt;
π PARAMETER π
ptβ chained list of BDD to rescue. yes bestie, a rescue list. the nodes on it are the ones that get to survive the purge. π«Ά
π DESCRIPTION π
gcNodeBdd() removes all the nodes that aren't used in the BDD pointed in the chained list pt.
so likeβ¦ everything not reachable from your pt list? gone. ghosted. not invited to the group chat. π₯
π EXAMPLE π
#include "mutnnn.h" /* mbk utilities */
#include "logmmm.h"
pNode nodeA,nodeB,nodeC;
pNode res1,res2;
chain_list *ptCL;
initializeBdd(SMALL_BDD);
nodeA = createNodeTermBdd(3);
nodeB = createNodeTermBdd(3);
nodeC = createNodeTermBdd(4);
res1 = applyBinBdd(OR,applyBinBdd(OR,nodeA,nodeB),nodeC);
res2 = applyBinBdd(AND,applyBinBdd(AND,nodeA,nodeB),nodeC);
printf("number of nodes in memory = %d",numberAllNodeBdd());
/* it will display
7
*/
ptCL = addchain(NULL,res1);
gcNodeBdd(ptCL); /* only res1 nodes are saved */
freechain(ptCL);
printf("number of nodes in memory = %d",numberAllNodeBdd());
/* it will display
number of nodes in memory = 5
*/
destroyBdd(1);
so watch the glow-up: 7 nodes hanging out in memory, then you build ptCL with just res1 on it, call gcNodeBdd(ptCL), and suddenly number of nodes in memory = 5. the res2 crew got collected. not me feeling bad for res2 π (only res1 nodes are saved, that's the rule, iykyk)
π SEE ALSO π
log(1), bdd(1), markBdd(3), supportChain_listBdd(3), markAllBdd(3), numberNodeBdd(3)
π 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're asking. slide into that inbox. π¬
β ASIM/LIP6 β dated October 1, 1997 β
and that's the whole page bestie, mwah π π no cap, go free some nodes.
π¦ where this page comes from
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 43: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- fedora 44: alliance-devel 5.1.1-35.20160506gitd8c05cd.fc42 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms