CREATENODETERMBDD(3)

πŸ“¦ version 5.1.1-unstable-2025-02, in nixos 26.05, nixpkgs unstable

πŸ’… CREATENODETERMBDD(3) πŸ’…

okay bestie, you're in the BDD functions section and this page is about createNodeTermBdd β€” she creates a terminal node of variable, and the reduction table is doing main-character work behind the scenes ✨

✨ 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. 🌍

🌸 NAME 🌸

  • createNodeTermBdd β€” creates a terminal node of variable.

πŸŽ€ SYNOPSIS πŸŽ€

#include "logmmm.h"
pNode createNodeTermBdd(index)
short index;

🫢 PARAMETER 🫢

  • index β€” associated index.

πŸ’– DESCRIPTION πŸ’–

So createNodeTermBdd() creates a terminal node corresponding to index. Because of the reduction table, this function always returns the same pNode for a given index. And heads up: 0 and 1 index are reserved to the zero and one nodes.

🧚 EXAMPLE 🧚

Here's the vibe in code:

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

initializeBdd(SMALL_BDD);
nodeA = createNodeTermBdd(3);
displayBdd(nodeA,1);

/* it will display
@nodeA   INDEX = 2   LOW = ZERO   HIGH = ONE
*/
nodeA = createNodeTermBdd(3); /* nodeA doesn't change */

destroyBdd(1);

The comment is literally showing what it will display, and nodeA doesn't change when you call it again. Slay. πŸ’…

πŸ’€ ERROR πŸ’€

If your index is too low, you get this exact mood:

"createNodeTermBdd : error - index < 2"

Rule check: index must be strictly higher than 1. No exceptions, bestie. 🫢

πŸ”₯ 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. πŸ’Œ


Source/version: ASIM/LIP6 Β· date: October 1, 1997 Β· page: CREATENODETERMBDD(3) β€” byeee, go make your terminal node era happen πŸ’…βœ¨

πŸ“¦ where this page comes from