numberNodeBdd(3)

numberNodeBdd3

Computes the number of nodes used in a bdd

Synopsys

#include "logmmm.h"
int numberNodeBdd(pBdd)
pNode pBdd;

Parameter

pBdd

BDD on wich the compute does

Overview

numberNodeBdd() computes the number of reduced nodes that are used in pBdd.

Examples

#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(XOR,pt);
printf("number of nodes = %d",numberNodeBdd(res));
/* it will display 
number of nodes = 5
*/
destroyBdd(1);

Releases

4 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–8
  2. 9–10

From alliance 5.1.1-3 in Debian 10 (Buster). Parsed by carta from the page's man source.