INITIALIZECCT(3)

NAME
initializeCct - creates a circuit

SYNOPSYS
#include "logmmm.h"
pCircuit initializeCct(name,numberInput,numberOutput)
char *name;
int numberInput;
int numberOutput;

PARAMETERS

name
    name to add

numberInput
    number of inputs

numberOutput
    number of outputs

DESCRIPTION
initializeCct() creates a circuit. This function returns a circuit pointer that is allocated.

EXAMPLE
#include "mutnnn.h"		/* mbk utilities */
#include "logmmm.h"
pCircuit pC;
chain_list *expr;
initializeBdd(SMALL_BDD);
pC = initializeCct("circuit 1",10,10);
addInputCct(pC,"a");
addInputCct(pC,"b");
	/* let's suppose that expr = (OR a b) */
addOuputCct(pC,"s1",one);
addOuputCct(pC,"s2",ablToBddCct(pC,expr));
displayBdd(pC,1)
/* it will display
************* DISPLAY circuit 1 **********
INPUT = a	INDEX = 2
INPUT = b	INDEX = 3
--------- NUMBER OF INPUTS = 2
OUTPUT = s1	s1 = 1
OUTPUT = s2	s2 = (OR a b)
--------- NUMBER OF OUTPUTS = 2
******************************************
*/
destroyCct(pC);
destroyBdd(1);

SEE ALSO
log(1), bdd(1), resetCct(3), destroyCct(3).