public class BDDIO extends Object
MAGIC STRING: "FORMAT:JDD.BDD" SIZE, ID ID VAR LOW HIGH (repeated SIZE times)
| Constructor and Description |
|---|
BDDIO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
internal_test()
testbench.
|
static int |
load(BDD manager,
String filename)
Load a BDD (in the native JDD format) from a file.
|
static void |
save(BDD manager,
int bdd,
String filename)
Save a BDD to a file using the native JDD format.
|
static void |
saveBuDDy(BDD manager,
int bdd,
String filename)
Save a BDD to a file.
|
public static void save(BDD manager, int bdd, String filename) throws IOException
IOExceptionpublic static int load(BDD manager, String filename) throws IOException
IOExceptionsave(jdd.bdd.BDD, int, java.lang.String)public static void saveBuDDy(BDD manager, int bdd, String filename) throws IOException
Loads a BDD from a file into the BDD pointed to by r. The file can either be the file ifile which must be opened for reading or the file named fname which will be opened automatically for reading. The input file format consists of integers arranged in the following manner. First the number of nodes $N$ used by the BDD and then the number of variables $V$ allocated and the variable ordering in use at the time the BDD was saved. If $N$ and $V$ are both zero then the BDD is either the constant true or false BDD, indicated by a $1$ or a $0$ as the next integer. In any other case the next $N$ sets of $4$ integers will describe the nodes used by the BDD. Each set consists of first the node number, then the variable number and then the low and high nodes. The nodes must be saved in a order such that any low or high node must be defined before it is mentioned.
IOExceptionpublic static void internal_test()
This file is a part of the JDD package, a native Java Binary Decision Diagram Library.