Closed GoogleCodeExporter closed 9 years ago
"... and although Datalog analyses in Chord use BuDDyFactory, the code in
BDDRelation.java actually loads a BDD from file using JFactory's load method
that is written in Java, instead of using BuDDyFactory's load method ..."
This is incorrect: the code in BDDRelation.java loads a BDD from file using
BDDFactory's load method (that is, neither JFactory's nor BuDDyFactory's):
public BDD load(BufferedReader ifile, int[] translate) throws IOException {
...
root = b.ite(high, low);
...
}
The culprit is the "ite" call. It needs to be replaced in a manner similar to
my fix in JFactory's load method. For now, I've switched the BDD factory to be
used for solving Datalog analyses in chord to JFactory (by passing the
"-Dbdd=j" option in chord/bddbddb/Solver.java); I've also added this option to
the solve and debug targets in build.xml
Original comment by mayur.naik
on 11 Jul 2010 at 5:32
Fixed in r935. Changed the call solver.bdd.load(in) in BDDRelation.java in
bddbddb to solver.bdd.load(in,map) where map is the map from variables used in
the BDD file to be loaded to the corresponding variables already in the
factory. Works with both BuDDyFactory and JFactory.
Original comment by mayur.naik
on 12 Jul 2010 at 9:03
Original comment by mayur.naik
on 12 Jul 2010 at 9:04
Original issue reported on code.google.com by
mayur.naik
on 11 Jul 2010 at 5:11