APPLYBINBDD(3)

πŸ“¦ version 5.1.1, in fedora 43, fedora 44

πŸ’– applyBinBdd β€” BDD functions (section 3 of the manual, bestie) πŸ’–

okay so before we even get into it, let me tell you where this icon comes from, because the lore is real.


🌈 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. πŸ—Όβœ¨

like. french academia said "we're gonna build a CAD system" and they DID. obsessed. πŸ₯


✨ NAME ✨

applyBinBdd β€” applies an operator to two BDD. πŸ’…

(yes it's giving "what does it do" energy in the name itself. efficient queen.)


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "logmmm.h"
pNode applyBinBdd(oper,pBdd1,pBdd2)
short oper;
pNode pBdd1;
pNode pBdd2;

look at her. short, sweet, knows exactly what she wants. πŸŽ€


πŸ“ PARAMETERS πŸ“

  • oper β€” the operator number you wanna apply. your options are OR, AND, XOR, NAND, NOR, NXOR. pick your fighter. πŸ”₯
  • pBdd1 β€” first argument 🫢
  • pBdd2 β€” second argument 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

applyBinBdd() applies oper to pBdd1 and pBdd2. no cap. πŸ’«

and like, this is not just some little helper function β€” this is THE basic method for creating the representation of a boolean function. main character energy fr fr. when you need a boolean function to exist as a BDD, this is the girl you call. ✨


πŸ’œ EXAMPLE πŸ’œ

here's the whole vibe, copy-paste ready:

#include "mutnnn.h"      /* mbk utilities */
#include "logmmm.h"
pNode nodeA,nodeB;
pNode res;

initializeBdd(SMALL_BDD);
nodeA = createNodeTermBdd(3);
nodeB = createNodeTermBdd(3);
res = applyBinBdd(OR,nodeA,nodeB);
displayBdd(res,1);

/* it will display
@res    INDEX = 3   LOW = @nodeA   HIGH = ONE
@nodeA  INDEX = 2   LOW = ZERO     HIGH = ONE
*/

destroyBdd(1);

see that comment block? that's literally the output, exactly as it prints. don't touch it, it's perfect. πŸ˜­πŸ’–


🌸 SEE ALSO 🌸

log(1), bdd(1), applyBdd(3), notBdd(3), constraintBdd(3), composeBdd(3), addListBdd(3), displayBdd(3), createNodeTermBdd(3).

the whole friend group. go read them too, 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.

bestie this is literally them asking you to text them back. don't leave them on read. πŸ™ˆ send your bugs, send your thoughts, they're building this thing.

okay that's the whole page!! πŸŽ€ written by ASIM/LIP6, dated October 1, 1997 β€” yes she's vintage, yes she still slays, periodt. πŸ’…βœ¨πŸ¦‹