APPLYBDD(3)
APPLYBDD(3) β the BDD functions manual, bestie β¨
okay so first things first, this is the APPLYBDD(3) page from the BDD functions manual. Itβs giving βtiny function, big boolean energy,β and weβre gonna go through it together, no cap. π«Ά
πΈ 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 β¨
applyBdd β applies an operator to a list of BDD. Literally what it says on the tin, bestie. π
π SYNOPSIS π
#include "logmmm.h"
pNode applyBdd(oper,pt)
short oper;
chain_list *pt;
π¦ PARAMETERS π¦
operβ the operator number to apply, and it has to be one of(OR,AND,XOR,NAND,NOR,NXOR,NOT).ptβ achain_listof BDD.
π DESCRIPTION π
applyBdd() applies oper to a list of Bdd. That list can be created by the addListBdd() function β cute little pipeline, right? This function provides the basic method for creating the representation of a function according to the operators in a boolean expression. So yeah, itβs kind of a main character in the boolean-expression-building lore. π₯
π EXAMPLE π
#include "mutnnn.h" /* mbk utilities */
#include "logmmm.h"
pNode nodeA,nodeB,nodeC;
pNode res;
chain_list *pt;
initializeBdd(SMALL_BDD);
nodeA = createNodeTermBdd(3);
nodeB = createNodeTermBdd(3);
nodeC = createNodeTermBdd(4);
pt = NULL;
pt = addListBdd(pt,nodeA);
pt = addListBdd(pt,nodeB);
pt = addListBdd(pt,nodeC);
res = applyBdd(OR,pt);
displayBdd(res,1);
/* it will display
@res INDEX = 4 LOW = @inter HIGH = ONE
@inter INDEX = 3 LOW = @nodeA HIGH = ONE
@nodeA INDEX = 2 LOW = ZERO HIGH = ONE
*/
destroyBdd(1);
That display block is not decorative, bestie β itβs the actual output vibe, exactly as written. π
π ERRORS π
"applyBdd : error - unknown operator"
the operator number must be in (OR,AND,XOR,NAND,NOR,NXOR,NOT).
"applyBdd : error - chained list is empty"
chained list pointer pt = NULL.
"applyBdd : error - bad operator"
The number of arguments is 1 and the operator is distinct from NOT. chained list pointer pt = NULL.
π§ SEE ALSO π§
log(1), bdd(1), addListBdd(3), applyBinBdd(3), notBdd(3), constraintBdd(3), composeBdd(3), displayBdd(3), createNodeTermBdd(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. So if you spot something, say it with your chest β feedback is the whole vibe. π
okay bye bestie β this page is from ASIM/LIP6, dated October 1, 1997, and it lives under APPLYBDD(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