/* NAME {* bdd\_printtable *} EXTRA {* bdd\_fprinttable *} SECTION {* fileio *} SHORT {* prints the node table entries used by a BDD *} PROTO {* void bdd_printtable(BDD r) void bdd_fprinttable(FILE* ofile, BDD r) *} DESCR {* Prints to either stdout or the file {\tt ofile} all the entries in the main node table used by {\tt r}. The format is: \begin{Ill} {\tt [Nodenum] Var/level : Low High} \end{Ill} Where {\tt Nodenum} is the position in the node table and level is the position in the current variable order. *} ALSO {* bdd\_printall, bdd\_printset, bdd\_printdot *} */ void bdd_printtable(BDD r) { BUDDY_PROLOGUE; ADD_ARG1(T_BDD,r); bdd_fprinttable(stdout, r); RETURN(); }
CAMLprim value wrapper_bdd_fprinttable(value out, value bdd) { CAMLparam2(out, bdd); BDD x = BDD_val(bdd); FILE* f = stream_of_channel(out,"w"); bdd_fprinttable(f, x); fflush(f); CAMLreturn(Val_unit); }
/* NAME {* bdd\_printtable *} EXTRA {* bdd\_fprinttable *} SECTION {* fileio *} SHORT {* prints the node table entries used by a BDD *} PROTO {* void bdd_printtable(BDD r) void bdd_fprinttable(FILE* ofile, BDD r) *} DESCR {* Prints to either stdout or the file {\tt ofile} all the entries in the main node table used by {\tt r}. The format is: \begin{Ill} {\tt [Nodenum] Var/level : Low High} \end{Ill} Where {\tt Nodenum} is the position in the node table and level is the position in the current variable order. *} ALSO {* bdd\_printall, bdd\_printset, bdd\_printdot *} */ void bdd_printtable(BDD r) { bdd_fprinttable(stdout, r); }