/*
* FILENAME: tutorial.c
* Overview: BDD tutorial
* AUTHOR: vectory
*/
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <stdlib.h>
#include "cudd.h"
using namespace std;
/**
* Print a dd summary
* pr = 0 : prints nothing
* pr = 1 : prints counts of nodes and minterms
* pr = 2 : prints counts + disjoint sum of product
* pr = 3 : prints counts + list of nodes
* pr > 3 : prints counts + disjoint sum of product + list of nodes
* @param the dd node
*/
//打印dd图信息
void print_dd(DdManager* gbm, DdNode* dd, int n, int pr)
{
printf("DdManager nodes: %ld | ", Cudd_ReadNodeCount(gbm)); /*Reports the number of live nodes in BDDs and ADDs*/
printf("DdManager vars: %d | ", Cudd_ReadSize(gbm)); /*Returns the number of BDD variables in existence*/
printf("DdManager reorderings: %d | ", Cudd_ReadReorderings(gbm));
CUDD包:ADD,BDD结构创建
最新推荐文章于 2025-01-11 11:42:10 发布