javabdd-checkins Mailing List for JavaBDD (Page 4)
Brought to you by:
joewhaley
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
(6) |
Apr
(6) |
May
(4) |
Jun
(31) |
Jul
(64) |
Aug
(19) |
Sep
(28) |
Oct
(50) |
Nov
(25) |
Dec
|
2005 |
Jan
(44) |
Feb
(8) |
Mar
(2) |
Apr
(15) |
May
(48) |
Jun
(8) |
Jul
(7) |
Aug
|
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(2) |
Jul
(14) |
Aug
|
Sep
|
Oct
|
Nov
(6) |
Dec
(4) |
2007 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2011 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: John W. <joe...@us...> - 2005-05-10 21:16:11
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25939/net/sf/javabdd Modified Files: JFactory.java Log Message: Many fixes to dynamic variable reordering. Index: JFactory.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/net/sf/javabdd/JFactory.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** JFactory.java 10 May 2005 02:54:35 -0000 1.24 --- JFactory.java 10 May 2005 21:16:00 -0000 1.25 *************** *** 3756,3761 **** usednum_before = bddnodesize - bddfreenum; ! top.first = 0; ! top.last = bdd_varnum() - 1; top.fixed = false; top.interleaved = false; --- 3756,3761 ---- usednum_before = bddnodesize - bddfreenum; ! top.firstVar = top.firstLevel = 0; ! top.lastVar = top.lastLevel = bdd_varnum() - 1; top.fixed = false; top.interleaved = false; *************** *** 3779,3787 **** BddTree t = new BddTree(); ! t.first = t.last = -1; t.fixed = true; ! t.interleaved = false; ! t.next = t.prev = t.nextlevel = null; ! t.seq = null; t.id = id; return t; --- 3779,3787 ---- BddTree t = new BddTree(); ! t.firstVar = t.lastVar = t.firstLevel = t.lastLevel = -1; t.fixed = true; ! //t.interleaved = false; ! //t.next = t.prev = t.nextlevel = null; ! //t.seq = null; t.id = id; return t; *************** *** 3825,3830 **** if (t.seq != null) { ! //Arrays.sort(t.seq, 0, t.last-t.first + 1); ! varseq_qsort(t.seq, 0, t.last-t.first + 1); } --- 3825,3832 ---- if (t.seq != null) { ! //Arrays.sort(t.seq, 0, t.lastVar-t.firstVar + 1); ! varseq_qsort(t.seq, 0, t.lastVar-t.firstVar + 1); ! t.firstLevel = bddvar2level[t.seq[0]]; ! t.lastLevel = bddvar2level[t.seq[t.lastVar-t.firstVar]]; } *************** *** 4302,4307 **** /* Accumulate number of nodes for each block */ p[n].val = 0; ! for (v = dis.first; v <= dis.last; v++) p[n].val -= levels[v].nodenum; --- 4304,4310 ---- /* Accumulate number of nodes for each block */ + p[n] = new sizePair(); p[n].val = 0; ! for (v = dis.firstVar; v <= dis.lastVar; v++) p[n].val -= levels[v].nodenum; *************** *** 4364,4374 **** } ! protected BddTree reverseDomain0(BDDDomain d) { int n = d.varNum(); BddTree[] trees = new BddTree[n]; ! for (int i = 0; i < n; ++i) { ! int v = d.ivar[i]; addVarBlock(v, v, true); trees[i] = getBlock(vartree, v, v); } for (int i = 0; i < n; ++i) { --- 4367,4385 ---- } ! protected void reverseDomain0(BDDDomain d) { int n = d.varNum(); BddTree[] trees = new BddTree[n]; ! int v = d.ivar[0]; ! addVarBlock(v, v, true); ! trees[0] = getBlock(vartree, v, v); ! BddTree parent = getParent(trees[0]); ! for (int i = 1; i < n; ++i) { ! v = d.ivar[i]; addVarBlock(v, v, true); trees[i] = getBlock(vartree, v, v); + BddTree parent2 = getParent(trees[i]); + if (parent != parent2) { + throw new BDDException(); + } } for (int i = 0; i < n; ++i) { *************** *** 4377,4381 **** } } ! return trees[n-1]; } --- 4388,4395 ---- } } ! BddTree newchild = trees[n-1]; ! while (newchild.prev != null) newchild = newchild.prev; ! if (parent == null) vartree = newchild; ! else parent.nextlevel = newchild; } *************** *** 4438,4442 **** * @param domains domain order */ ! public BddTree setVarOrder(List domains) { BddTree[] my_vartree = new BddTree[fdvarnum]; boolean[] interleaved = new boolean[fdvarnum]; --- 4452,4456 ---- * @param domains domain order */ ! public void setVarOrder(List domains) { BddTree[] my_vartree = new BddTree[fdvarnum]; boolean[] interleaved = new boolean[fdvarnum]; *************** *** 4451,4455 **** int low = d.ivar[0]; int high = d.ivar[d.ivar.length-1]; ! addVarBlock(low, high, false); BddTree b = getBlock(vartree, low, high); my_vartree[k] = b; --- 4465,4469 ---- int low = d.ivar[0]; int high = d.ivar[d.ivar.length-1]; ! bdd_intaddvarblock(low, high, false); BddTree b = getBlock(vartree, low, high); my_vartree[k] = b; *************** *** 4458,4461 **** --- 4472,4482 ---- } } + if (k <= 1) return; + BddTree parent = getParent(my_vartree[0]); + for (int i = 0; i < k; ++i) { + if (parent != getParent(my_vartree[i])) { + throw new BDDException("var block "+my_vartree[i].firstVar+".."+my_vartree[i].lastVar+" is in wrong place in tree"); + } + } reorder_init(); BddTree prev = null; boolean prev_interleaved = false; *************** *** 4465,4483 **** blockdown(t.prev); } if (prev_interleaved) { blockinterleave(t.prev); } ! prev = t; ! prev_interleaved = interleaved[i]; } reorder_done(); - return my_vartree[0]; } ! BddTree getBlock(BddTree t, int low, int high) { if (t == null) return null; for (BddTree p = t; p != null; p = p.next) { ! if (p.first == low && p.last == high) return p; ! BddTree q = getBlock(t.nextlevel, low, high); if (q != null) return q; } --- 4486,4531 ---- blockdown(t.prev); } + boolean inter = interleaved[i]; if (prev_interleaved) { blockinterleave(t.prev); + //++i; + prev = t.prev; + } else { + prev = t; } ! prev_interleaved = inter; } + BddTree newchild = my_vartree[0]; + _assert(newchild.prev == null); + //while (newchild.prev != null) newchild = newchild.prev; + if (parent == null) vartree = newchild; + else parent.nextlevel = newchild; reorder_done(); } ! protected BddTree getParent(BddTree child) { ! for (BddTree p = vartree; p != null; p = p.next) { ! if (p == child) return null; ! BddTree q = getParent(p, child); ! if (q != null) return q; ! } ! throw new BDDException("Cannot find tree node "+child); ! } ! ! protected BddTree getParent(BddTree parent, BddTree child) { ! if (parent.nextlevel == null) return null; ! for (BddTree p = parent.nextlevel; p != null; p = p.next) { ! if (p == child) return parent; ! BddTree q = getParent(p, child); ! if (q != null) return q; ! } ! return null; ! } ! ! protected BddTree getBlock(BddTree t, int low, int high) { if (t == null) return null; for (BddTree p = t; p != null; p = p.next) { ! if (p.firstVar == low && p.lastVar == high) return p; ! BddTree q = getBlock(p.nextlevel, low, high); if (q != null) return q; } *************** *** 4489,4494 **** //System.out.println("Interleaving "+left.first+".."+left.last+" and "+right.first+".."+right.last); int n; ! int leftsize = left.last - left.first; ! int rightsize = right.last - right.first; int[] lseq = left.seq; int[] rseq = right.seq; --- 4537,4542 ---- //System.out.println("Interleaving "+left.first+".."+left.last+" and "+right.first+".."+right.last); int n; ! int leftsize = left.lastVar - left.firstVar; ! int rightsize = right.lastVar - right.firstVar; int[] lseq = left.seq; int[] rseq = right.seq; *************** *** 4504,4508 **** BddTree t = left.prev; if (t == null || !t.interleaved) break outer; ! int tsize = t.last - t.first; if (n <= tsize) { int[] tseq = t.seq; --- 4552,4556 ---- BddTree t = left.prev; if (t == null || !t.interleaved) break outer; ! int tsize = t.lastVar - t.firstVar; if (n <= tsize) { int[] tseq = t.seq; *************** *** 4514,4518 **** } } ! left.interleaved = true; } --- 4562,4571 ---- } } ! right.next.prev = left; ! left.next = right.next; ! left.firstVar = Math.min(left.firstVar, right.firstVar); ! left.lastVar = Math.max(left.lastVar, right.lastVar); ! left.seq = new int[left.lastVar - left.firstVar + 1]; ! update_seq(left); } *************** *** 4521,4526 **** //System.out.println("Swapping "+left.first+".."+left.last+" and "+right.first+".."+right.last); int n; ! int leftsize = left.last - left.first; ! int rightsize = right.last - right.first; int leftstart = bddvar2level[left.seq[0]]; int[] lseq = left.seq; --- 4574,4579 ---- //System.out.println("Swapping "+left.first+".."+left.last+" and "+right.first+".."+right.last); int n; ! int leftsize = left.lastVar - left.firstVar; ! int rightsize = right.lastVar - right.firstVar; int leftstart = bddvar2level[left.seq[0]]; int[] lseq = left.seq; *************** *** 4571,4574 **** --- 4624,4632 ---- left.interleaved = false; right.interleaved = false; + + left.firstLevel = bddvar2level[lseq[0]]; + left.lastLevel = bddvar2level[lseq[leftsize]]; + right.firstLevel = bddvar2level[rseq[0]]; + right.lastLevel = bddvar2level[rseq[rightsize]]; } *************** *** 5061,5065 **** static class BddTree { ! int first, last; /* First and last variable in this block */ int pos; /* Sifting position */ int[] seq; /* Sequence of first...last in the current order */ --- 5119,5124 ---- static class BddTree { ! int firstVar, lastVar; /* First and last variable in this block */ ! int firstLevel, lastLevel; /* First and last level in this block */ int pos; /* Sifting position */ int[] seq; /* Sequence of first...last in the current order */ *************** *** 5361,5364 **** --- 5420,5431 ---- int next = NEXT(r); + /*** + if (LOW(r) == -1) { + System.out.println(r+": LOW="+LOW(r)); + } + if (HIGH(r) == -1) { + System.out.println(r+": HIGH="+HIGH(r)); + } + ***/ if (VARr(LOW(r)) != var1 && VARr(HIGH(r)) != var1) { /* Node does not depend on next var, let it stay in the chain */ *************** *** 6332,6339 **** if (t == null) { t = bddtree_new(id); ! t.first = first; t.fixed = fixed; t.seq = new int[last - first + 1]; ! t.last = last; update_seq(t); t.prev = prev; --- 6399,6408 ---- if (t == null) { t = bddtree_new(id); ! t.firstVar = first; ! t.firstLevel = bddvar2level[first]; t.fixed = fixed; t.seq = new int[last - first + 1]; ! t.lastVar = last; ! t.lastLevel = bddvar2level[last]; update_seq(t); t.prev = prev; *************** *** 6342,6350 **** /* Check for identity */ ! if (first == t.first && last == t.last) return t; /* Inside this section -> insert in next level */ ! if (first >= t.first && last <= t.last) { t.nextlevel = bddtree_addrange_rec(t.nextlevel, null, first, last, fixed, id); --- 6411,6422 ---- /* Check for identity */ ! if (first == t.firstVar && last == t.lastVar) return t; + int firstLev = Math.min(bddvar2level[first], bddvar2level[last]); + int lastLev = Math.max(bddvar2level[first], bddvar2level[last]); + /* Inside this section -> insert in next level */ ! if (firstLev >= t.firstLevel && lastLev <= t.lastLevel) { t.nextlevel = bddtree_addrange_rec(t.nextlevel, null, first, last, fixed, id); *************** *** 6353,6360 **** /* Before this section -> insert */ ! if (last < t.first) { BddTree tnew = bddtree_new(id); ! tnew.first = first; ! tnew.last = last; tnew.fixed = fixed; tnew.seq = new int[last - first + 1]; --- 6425,6434 ---- /* Before this section -> insert */ ! if (lastLev < t.firstLevel) { BddTree tnew = bddtree_new(id); ! tnew.firstVar = first; ! tnew.firstLevel = firstLev; ! tnew.lastVar = last; ! tnew.lastLevel = lastLev; tnew.fixed = fixed; tnew.seq = new int[last - first + 1]; *************** *** 6367,6371 **** /* After this this section -> go to next */ ! if (first > t.last) { t.next = bddtree_addrange_rec(t.next, t, first, last, fixed, id); return t; --- 6441,6445 ---- /* After this this section -> go to next */ ! if (firstLev > t.lastLevel) { t.next = bddtree_addrange_rec(t.next, t, first, last, fixed, id); return t; *************** *** 6373,6377 **** /* Covering this section -> insert above this level */ ! if (first <= t.first) { BddTree tnew; BddTree dis = t; --- 6447,6451 ---- /* Covering this section -> insert above this level */ ! if (firstLev <= t.firstLevel) { BddTree tnew; BddTree dis = t; *************** *** 6379,6389 **** while (true) { /* Partial cover ->error */ ! if (last >= dis.first && last < dis.last) return null; ! if (dis.next == null || last < dis.next.first) { tnew = bddtree_new(id); ! tnew.first = first; ! tnew.last = last; tnew.fixed = fixed; tnew.seq = new int[last - first + 1]; --- 6453,6465 ---- while (true) { /* Partial cover ->error */ ! if (lastLev >= dis.firstLevel && lastLev < dis.lastLevel) return null; ! if (dis.next == null || last < dis.next.firstLevel) { tnew = bddtree_new(id); ! tnew.firstVar = first; ! tnew.firstLevel = firstLev; ! tnew.lastVar = last; ! tnew.lastLevel = lastLev; tnew.fixed = fixed; tnew.seq = new int[last - first + 1]; *************** *** 6409,6420 **** void update_seq(BddTree t) { int n; ! int low = t.first; ! for (n = t.first; n <= t.last; n++) if (bddvar2level[n] < bddvar2level[low]) low = n; ! for (n = t.first; n <= t.last; n++) t.seq[bddvar2level[n] - bddvar2level[low]] = n; } --- 6485,6503 ---- void update_seq(BddTree t) { int n; ! int low = t.firstVar; ! int high = t.lastVar; ! for (n = t.firstVar; n <= t.lastVar; n++) { if (bddvar2level[n] < bddvar2level[low]) low = n; + if (bddvar2level[n] > bddvar2level[high]) + high = n; + } ! for (n = t.firstVar; n <= t.lastVar; n++) t.seq[bddvar2level[n] - bddvar2level[low]] = n; + + t.firstLevel = bddvar2level[low]; + t.lastLevel = bddvar2level[high]; } |
From: John W. <joe...@us...> - 2005-05-10 02:56:25
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6727/net/sf/javabdd Modified Files: BDDFactory.java Log Message: Added getVarOrder(). Index: BDDFactory.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/net/sf/javabdd/BDDFactory.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** BDDFactory.java 6 May 2005 23:50:47 -0000 1.12 --- BDDFactory.java 10 May 2005 02:56:15 -0000 1.13 *************** *** 836,840 **** * neworder. The variable parameter neworder is interpreted as a sequence * of variable indices and the new variable order is exactly this sequence. ! * The array must contain all the variables defined so far. If, for * instance the current number of variables is 3 and neworder contains * [1; 0; 2] then the new variable order is v1<v0<v2.</p> --- 836,840 ---- * neworder. The variable parameter neworder is interpreted as a sequence * of variable indices and the new variable order is exactly this sequence. ! * The array must contain all the variables defined so far. If, for * instance the current number of variables is 3 and neworder contains * [1; 0; 2] then the new variable order is v1<v0<v2.</p> *************** *** 849,852 **** --- 849,866 ---- /** + * <p>Gets the current variable order.</p> + * + * @return variable order + */ + public int[] getVarOrder() { + int n = varNum(); + int[] result = new int[n]; + for (int i = 0; i < n; ++i) { + result[i] = level2Var(i); + } + return result; + } + + /** * <p>Make a new BDDPairing object.</p> * |
From: John W. <joe...@us...> - 2005-05-10 02:54:47
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6429/net/sf/javabdd Modified Files: JFactory.java Log Message: Temporary checkin. Index: JFactory.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/net/sf/javabdd/JFactory.java,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** JFactory.java 9 May 2005 01:43:17 -0000 1.23 --- JFactory.java 10 May 2005 02:54:35 -0000 1.24 *************** *** 12,15 **** --- 12,16 ---- import java.util.List; import java.util.Random; + import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.BufferedWriter; *************** *** 4349,4352 **** --- 4350,4436 ---- } + public void reverseAllDomains() { + reorder_init(); + for (int i = 0; i < fdvarnum; ++i) { + reverseDomain0(domain[i]); + } + reorder_done(); + } + + public void reverseDomain(BDDDomain d) { + reorder_init(); + reverseDomain0(d); + reorder_done(); + } + + protected BddTree reverseDomain0(BDDDomain d) { + int n = d.varNum(); + BddTree[] trees = new BddTree[n]; + for (int i = 0; i < n; ++i) { + int v = d.ivar[i]; + addVarBlock(v, v, true); + trees[i] = getBlock(vartree, v, v); + } + for (int i = 0; i < n; ++i) { + for (int j = i + 1; j < n; ++j) { + blockdown(trees[i]); + } + } + return trees[n-1]; + } + + public void setVarOrder(String ordering) { + List result = new LinkedList(); + int nDomains = numberOfDomains(); + StringTokenizer st = new StringTokenizer(ordering, "x_", true); + int numberOfDomains = 0, bitIndex = 0; + boolean[] done = new boolean[nDomains]; + List last = null; + for (int i=0; ; ++i) { + String s = st.nextToken(); + BDDDomain d; + for (int j=0; ; ++j) { + if (j == nDomains) + throw new BDDException("bad domain: "+s); + d = getDomain(j); + if (s.equals(d.getName())) break; + } + if (done[d.getIndex()]) + throw new BDDException("duplicate domain: "+s); + done[d.getIndex()] = true; + if (last != null) last.add(d); + if (st.hasMoreTokens()) { + s = st.nextToken(); + if (s.equals("x")) { + if (last == null) { + last = new LinkedList(); + last.add(d); + result.add(last); + } + } else if (s.equals("_")) { + if (last == null) { + result.add(d); + } + last = null; + } else { + throw new BDDException("bad token: "+s); + } + } else { + if (last == null) { + result.add(d); + } + break; + } + } + + for (int i=0; i<done.length; ++i) { + if (!done[i]) { + throw new BDDException("missing domain #"+i+": "+getDomain(i)); + } + } + + setVarOrder(result); + } + /** * <p>Set the variable order to be the given list of domains.</p> *************** *** 4354,4358 **** * @param domains domain order */ ! public void setVarOrder(List domains) { BddTree[] my_vartree = new BddTree[fdvarnum]; boolean[] interleaved = new boolean[fdvarnum]; --- 4438,4442 ---- * @param domains domain order */ ! public BddTree setVarOrder(List domains) { BddTree[] my_vartree = new BddTree[fdvarnum]; boolean[] interleaved = new boolean[fdvarnum]; *************** *** 4374,4377 **** --- 4458,4462 ---- } } + reorder_init(); BddTree prev = null; boolean prev_interleaved = false; for (int i = 0; i < k; ++i) { *************** *** 4384,4389 **** } prev = t; ! prev_interleaved = interleaved[k]; } } --- 4469,4476 ---- } prev = t; ! prev_interleaved = interleaved[i]; } + reorder_done(); + return my_vartree[0]; } *************** *** 4400,4403 **** --- 4487,4491 ---- void blockinterleave(BddTree left) { BddTree right = left.next; + //System.out.println("Interleaving "+left.first+".."+left.last+" and "+right.first+".."+right.last); int n; int leftsize = left.last - left.first; *************** *** 4431,4434 **** --- 4519,4523 ---- void blockdown(BddTree left) { BddTree right = left.next; + //System.out.println("Swapping "+left.first+".."+left.last+" and "+right.first+".."+right.last); int n; int leftsize = left.last - left.first; *************** *** 6234,6244 **** } ! BddTree bddtree_addrange_rec( ! BddTree t, ! BddTree prev, ! int first, ! int last, ! boolean fixed, ! int id) { if (first < 0 || last < 0 || last < first) return null; --- 6323,6329 ---- } ! BddTree bddtree_addrange_rec(BddTree t, BddTree prev, ! int first, int last, boolean fixed, int id) ! { if (first < 0 || last < 0 || last < first) return null; *************** *** 6246,6251 **** /* Empty tree -> build one */ if (t == null) { ! if ((t = bddtree_new(id)) == null) ! return null; t.first = first; t.fixed = fixed; --- 6331,6335 ---- /* Empty tree -> build one */ if (t == null) { ! t = bddtree_new(id); t.first = first; t.fixed = fixed; *************** *** 6261,6269 **** return t; /* Before this section -> insert */ if (last < t.first) { BddTree tnew = bddtree_new(id); - if (tnew == null) - return null; tnew.first = first; tnew.last = last; --- 6345,6358 ---- return t; + /* Inside this section -> insert in next level */ + if (first >= t.first && last <= t.last) { + t.nextlevel = + bddtree_addrange_rec(t.nextlevel, null, first, last, fixed, id); + return t; + } + /* Before this section -> insert */ if (last < t.first) { BddTree tnew = bddtree_new(id); tnew.first = first; tnew.last = last; *************** *** 6283,6293 **** } - /* Inside this section -> insert in next level */ - if (first >= t.first && last <= t.last) { - t.nextlevel = - bddtree_addrange_rec(t.nextlevel, null, first, last, fixed, id); - return t; - } - /* Covering this section -> insert above this level */ if (first <= t.first) { --- 6372,6375 ---- *************** *** 6302,6307 **** if (dis.next == null || last < dis.next.first) { tnew = bddtree_new(id); - if (tnew == null) - return null; tnew.first = first; tnew.last = last; --- 6384,6387 ---- *************** *** 6339,6348 **** } ! BddTree bddtree_addrange( ! BddTree t, ! int first, ! int last, ! boolean fixed, ! int id) { return bddtree_addrange_rec(t, null, first, last, fixed, id); } --- 6419,6423 ---- } ! BddTree bddtree_addrange(BddTree t, int first, int last, boolean fixed, int id) { return bddtree_addrange_rec(t, null, first, last, fixed, id); } |
From: John W. <joe...@us...> - 2005-05-09 10:28:58
|
Update of /cvsroot/javabdd/JavaBDD_tests/trace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30578/trace Modified Files: TraceDriver.java Log Message: Better support for dynamic variable reordering. Index: TraceDriver.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD_tests/trace/TraceDriver.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TraceDriver.java 6 May 2005 21:41:26 -0000 1.3 --- TraceDriver.java 9 May 2005 10:28:46 -0000 1.4 *************** *** 113,116 **** --- 113,128 ---- } + class TracedReorderOperation extends TracedOperation { + public BDDFactory.ReorderMethod method; + public void execute() throws IOException { + bdd.reorder(method); + } + public void show() { + out.print(index + "\t"); + out.print("reorder("+method+");"); + out.println(); + } + } + // -------------------------------------------------------------- class TracedBDDOperation extends TracedOperation { *************** *** 426,434 **** out.println("setting auto reorder to " + auto_reorder); bdd.autoReorder(getReorderMethod(auto_reorder)); ! bdd.varBlockAll(); } //bdd.setNodeNames(new TracedNames() ); } // ----------------------------------------------------- private void alloc_var(String name) { --- 438,457 ---- out.println("setting auto reorder to " + auto_reorder); bdd.autoReorder(getReorderMethod(auto_reorder)); ! try { ! java.lang.reflect.Method cb = TraceDriver.class.getDeclaredMethod("reorder_callback", new Class[] { boolean.class, BDDFactory.ReorderStats.class }); ! bdd.registerReorderCallback(this, cb); ! } catch (NoSuchMethodException x) { ! System.out.println("Cannot find callback method"); ! } } //bdd.setNodeNames(new TracedNames() ); } + public static void reorder_callback(boolean prestate, BDDFactory.ReorderStats s) { + System.out.print(prestate?"Start":"Finish"); + System.out.println("ing reorder."); + if (!prestate) System.out.println(s); + } + // ----------------------------------------------------- private void alloc_var(String name) { *************** *** 499,502 **** --- 522,533 ---- return tp; } + private TracedReorderOperation createReorderOperation(BDDFactory.ReorderMethod m) { + TracedReorderOperation tp = new TracedReorderOperation(); + tp.index = op_count; + tp.method = m; + operations.add(tp); + return tp; + } + // ----------------------------------------------------- *************** *** 519,522 **** --- 550,558 ---- bdd.printStat(); } + + if (auto_reorder != 0) { + out.println("Final variable order:"); + bdd.printOrder(); + } } *************** *** 597,601 **** need(")"); need(";"); BDDFactory.ReorderMethod m = getReorderMethod(type); ! bdd.reorder(m); } else { --- 633,637 ---- need(")"); need(";"); BDDFactory.ReorderMethod m = getReorderMethod(type); ! createReorderOperation(m); } else { *************** *** 663,666 **** --- 699,703 ---- case 5: m = BDDFactory.REORDER_SIFT; break; case 6: m = BDDFactory.REORDER_SIFTITE; break; + case 7: m = BDDFactory.REORDER_RANDOM; break; default: m = BDDFactory.REORDER_NONE; break; } *************** *** 725,728 **** --- 762,767 ---- sp2s.set(v2, v1); + bdd.varBlockAll(); + // s2sp.showName(); |
From: John W. <joe...@us...> - 2005-05-09 09:58:12
|
Update of /cvsroot/javabdd/JavaBDD_tests/bdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24164/bdd Modified Files: CallbackTests.java Log Message: Fix reorder callback. Index: CallbackTests.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD_tests/bdd/CallbackTests.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CallbackTests.java 18 Apr 2005 12:00:41 -0000 1.2 --- CallbackTests.java 9 May 2005 09:58:02 -0000 1.3 *************** *** 67,72 **** volatile boolean reorder_called; ! public void my_reorder_callback(int k, BDDFactory.ReorderStats stats) { ! if (k == 0) { System.out.println(stats); reorder_called = true; --- 67,72 ---- volatile boolean reorder_called; ! public void my_reorder_callback(boolean k, BDDFactory.ReorderStats stats) { ! if (!k) { System.out.println(stats); reorder_called = true; *************** *** 79,83 **** try { m = CallbackTests.class.getDeclaredMethod("my_reorder_callback", ! new Class[] { int.class, BDDFactory.ReorderStats.class }); } catch (SecurityException e) { Assert.fail(e.toString()); --- 79,83 ---- try { m = CallbackTests.class.getDeclaredMethod("my_reorder_callback", ! new Class[] { boolean.class, BDDFactory.ReorderStats.class }); } catch (SecurityException e) { Assert.fail(e.toString()); *************** *** 93,96 **** --- 93,97 ---- reorder_called = false; if (bdd.varNum() < 5) bdd.setVarNum(5); + //bdd.varBlockAll(); BDD x = bdd.ithVar(0); x.andWith(bdd.ithVar(1)); |
From: John W. <joe...@us...> - 2005-05-09 09:32:16
|
Update of /cvsroot/javabdd/JavaBDD/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13981/xdocs Modified Files: navigation.xml Log Message: Index: navigation.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/xdocs/navigation.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** navigation.xml 5 May 2005 21:41:55 -0000 1.7 --- navigation.xml 9 May 2005 09:31:57 -0000 1.8 *************** *** 31,34 **** --- 31,36 ---- <item name="JavaBDD for Linux" href="http://prdownloads.sourceforge.net/javabdd/javabdd_1.0b2.tar.gz"/> + <item name="JavaBDD for Mac OS X" + href="http://prdownloads.sourceforge.net/javabdd/javabdd_osx_1.0b2.tar.gz"/> <item name="JavaBDD Source code" href="http://prdownloads.sourceforge.net/javabdd/javabdd_src_1.0b2.tar.gz"/> |
From: John W. <joe...@us...> - 2005-05-09 09:29:44
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016 Modified Files: Makefile buddy_jni.c Log Message: Added support for Mac OS X. Index: buddy_jni.c =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/buddy_jni.c,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** buddy_jni.c 6 May 2005 07:18:22 -0000 1.31 --- buddy_jni.c 9 May 2005 09:29:35 -0000 1.32 *************** *** 149,154 **** if (fid) { long t = s->time; ! if (CLOCKS_PER_SEC < 1000) t = t * 1000 / CLOCKS_PER_SEC; ! else t /= (CLOCKS_PER_SEC/1000); (*jnienv)->SetLongField(jnienv, gc_obj, fid, t); } --- 149,157 ---- if (fid) { long t = s->time; ! #if CLOCKS_PER_SEC < 1000 ! t = t * 1000 / CLOCKS_PER_SEC; ! #else ! t /= (CLOCKS_PER_SEC/1000); ! #endif (*jnienv)->SetLongField(jnienv, gc_obj, fid, t); } *************** *** 156,161 **** if (fid) { long t = s->sumtime; ! if (CLOCKS_PER_SEC < 1000) t = t * 1000 / CLOCKS_PER_SEC; ! else t /= (CLOCKS_PER_SEC/1000); (*jnienv)->SetLongField(jnienv, gc_obj, fid, t); } --- 159,167 ---- if (fid) { long t = s->sumtime; ! #if CLOCKS_PER_SEC < 1000 ! t = t * 1000 / CLOCKS_PER_SEC; ! #else ! t /= (CLOCKS_PER_SEC/1000); ! #endif (*jnienv)->SetLongField(jnienv, gc_obj, fid, t); } Index: Makefile =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/Makefile,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** Makefile 6 May 2005 02:05:21 -0000 1.42 --- Makefile 9 May 2005 09:29:35 -0000 1.43 *************** *** 51,82 **** endif else ! JDK_ROOT = $(firstword $(wildcard /usr/java/j*dk*)) ! CLASSPATH = .:jdd.jar ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -fomit-frame-pointer $(EXTRA_CFLAGS) ! CAL_CFLAGS = -O2 -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=1 $(EXTRA_CFLAGS) ! OBJECT_OUTPUT_OPTION = -o$(space) ! LINK = $(CC) ! LINKFLAGS = -shared ! DLL_OUTPUT_OPTION = -o$(space) ! INCLUDES = -I. -I$(JDK_ROOT)/include \ ! -I$(BUDDY_SRC) -I$(BUDDY_SRC)/.. \ ! -I$(CUDD_SRC)/cudd -I$(CUDD_SRC)/epd -I$(CUDD_SRC)/mtr \ ! -I$(CUDD_SRC)/st -I$(CUDD_SRC)/util \ ! -I$(CAL_SRC) \ ! -I$(JDK_ROOT)/include/linux ! BUDDY_DLL_NAME = libbuddy.so ! CUDD_DLL_NAME = libcudd.so ! CAL_DLL_NAME = libcal.so ! ifeq (${CC},icc) # Intel Linux compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -Ob2 -ip $(EXTRA_CFLAGS) ! LINK = xild # Bug in icc link makes it ignore -static, so use xild ! # Include libirc for _intel_fast_memset ! LINKFLAGS = -static -shared /opt/intel_cc_80/lib/libirc.a ! endif ! ifeq (${CC},pathcc) # Pathscale compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -m32 -O2 -fomit_frame_pointer $(EXTRA_CFLAGS) ! # For 64-bit, eliminate -m32 and add -fPIC in CFLAGS. ! LINK = pathcc ! LINKFLAGS = -shared $(CFLAGS) endif endif --- 51,105 ---- endif else ! ifeq (${shell uname -s},Darwin) ! JDK_ROOT = /Library/Java/Home ! CLASSPATH = .:jdd.jar ! CC = gcc ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -fomit-frame-pointer $(EXTRA_CFLAGS) ! CAL_CFLAGS = -O2 -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=1 $(EXTRA_CFLAGS) ! OBJECT_OUTPUT_OPTION = -o$(space) ! LINK = $(CC) ! LINKFLAGS = -dynamiclib -framework JavaVM -single_module -undefined suppress -flat_namespace ! DLL_OUTPUT_OPTION = -o$(space) ! INCLUDES = -I/usr/local/include \ ! -I. -I$(JDK_ROOT)/include \ ! -I/System/Library/Frameworks/JavaVM.framework/Headers \ ! -I$(BUDDY_SRC) -I$(BUDDY_SRC)/.. \ ! -I$(CUDD_SRC)/cudd -I$(CUDD_SRC)/epd -I$(CUDD_SRC)/mtr \ ! -I$(CUDD_SRC)/st -I$(CUDD_SRC)/util \ ! -I$(CAL_SRC) \ ! -I$(JDK_ROOT)/include/linux ! BUDDY_DLL_NAME = libbuddy.jnilib ! CUDD_DLL_NAME = libcudd.jnilib ! CAL_DLL_NAME = libcal.jnilib ! else ! JDK_ROOT = $(firstword $(wildcard /usr/java/j*dk*)) ! CLASSPATH = .:jdd.jar ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -fomit-frame-pointer $(EXTRA_CFLAGS) ! CAL_CFLAGS = -O2 -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=1 $(EXTRA_CFLAGS) ! OBJECT_OUTPUT_OPTION = -o$(space) ! LINK = $(CC) ! LINKFLAGS = -shared ! DLL_OUTPUT_OPTION = -o$(space) ! INCLUDES = -I. -I$(JDK_ROOT)/include \ ! -I$(BUDDY_SRC) -I$(BUDDY_SRC)/.. \ ! -I$(CUDD_SRC)/cudd -I$(CUDD_SRC)/epd -I$(CUDD_SRC)/mtr \ ! -I$(CUDD_SRC)/st -I$(CUDD_SRC)/util \ ! -I$(CAL_SRC) \ ! -I$(JDK_ROOT)/include/linux ! BUDDY_DLL_NAME = libbuddy.so ! CUDD_DLL_NAME = libcudd.so ! CAL_DLL_NAME = libcal.so ! ifeq (${CC},icc) # Intel Linux compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -Ob2 -ip $(EXTRA_CFLAGS) ! LINK = xild # Bug in icc link makes it ignore -static, so use xild ! # Include libirc for _intel_fast_memset ! LINKFLAGS = -static -shared /opt/intel_cc_80/lib/libirc.a ! endif ! ifeq (${CC},pathcc) # Pathscale compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -m32 -O2 -fomit_frame_pointer $(EXTRA_CFLAGS) ! # For 64-bit, eliminate -m32 and add -fPIC in CFLAGS. ! LINK = pathcc ! LINKFLAGS = -shared $(CFLAGS) ! endif endif endif |
From: John W. <joe...@us...> - 2005-05-09 09:28:59
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12899 Modified Files: .cvsignore Log Message: Index: .cvsignore =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/.cvsignore,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** .cvsignore 26 Oct 2004 06:59:32 -0000 1.9 --- .cvsignore 9 May 2005 09:28:49 -0000 1.10 *************** *** 4,7 **** --- 4,8 ---- *.jar *.dll + *.jnilib *.ext *.lib |
From: John W. <joe...@us...> - 2005-05-09 01:43:41
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16362/net/sf/javabdd Modified Files: JFactory.java Log Message: Fixed bug found by Mayur. Support set size was not being reset correctly. Also added some (untested) code using variable blocks to reorder BDD domains with interleaving support. Index: JFactory.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/net/sf/javabdd/JFactory.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** JFactory.java 6 May 2005 23:54:52 -0000 1.22 --- JFactory.java 9 May 2005 01:43:17 -0000 1.23 *************** *** 6,9 **** --- 6,10 ---- import java.util.Arrays; import java.util.Collection; + import java.util.Collections; import java.util.Comparator; import java.util.Iterator; *************** *** 3319,3322 **** --- 3320,3324 ---- cacheratio = 0; supportSet = null; + supportSize = 0; } *************** *** 3338,3341 **** --- 3340,3344 ---- free(supportSet); supportSet = null; + supportSize = 0; } } *************** *** 3755,3758 **** --- 3758,3762 ---- top.last = bdd_varnum() - 1; top.fixed = false; + top.interleaved = false; top.next = null; top.nextlevel = vartree; *************** *** 3776,3779 **** --- 3780,3784 ---- t.first = t.last = -1; t.fixed = true; + t.interleaved = false; t.next = t.prev = t.nextlevel = null; t.seq = null; *************** *** 3819,3822 **** --- 3824,3828 ---- if (t.seq != null) { + //Arrays.sort(t.seq, 0, t.last-t.first + 1); varseq_qsort(t.seq, 0, t.last-t.first + 1); } *************** *** 4343,4346 **** --- 4349,4432 ---- } + /** + * <p>Set the variable order to be the given list of domains.</p> + * + * @param domains domain order + */ + public void setVarOrder(List domains) { + BddTree[] my_vartree = new BddTree[fdvarnum]; + boolean[] interleaved = new boolean[fdvarnum]; + int k = 0; + for (Iterator i = domains.iterator(); i.hasNext(); ) { + Object o = i.next(); + Collection c; + if (o instanceof BDDDomain) c = Collections.singleton(o); + else c = (Collection) o; + for (Iterator j = c.iterator(); j.hasNext(); ) { + BDDDomain d = (BDDDomain) j.next(); + int low = d.ivar[0]; + int high = d.ivar[d.ivar.length-1]; + addVarBlock(low, high, false); + BddTree b = getBlock(vartree, low, high); + my_vartree[k] = b; + interleaved[k] = j.hasNext(); + k++; + } + } + BddTree prev = null; boolean prev_interleaved = false; + for (int i = 0; i < k; ++i) { + BddTree t = my_vartree[i]; + while (t.prev != prev) { + blockdown(t.prev); + } + if (prev_interleaved) { + blockinterleave(t.prev); + } + prev = t; + prev_interleaved = interleaved[k]; + } + } + + BddTree getBlock(BddTree t, int low, int high) { + if (t == null) return null; + for (BddTree p = t; p != null; p = p.next) { + if (p.first == low && p.last == high) return p; + BddTree q = getBlock(t.nextlevel, low, high); + if (q != null) return q; + } + return null; + } + + void blockinterleave(BddTree left) { + BddTree right = left.next; + int n; + int leftsize = left.last - left.first; + int rightsize = right.last - right.first; + int[] lseq = left.seq; + int[] rseq = right.seq; + int minsize = Math.min(leftsize, rightsize); + for (n = 0; n <= minsize; ++n) { + while (bddvar2level[lseq[n]] + 1 < bddvar2level[rseq[n]]) { + reorder_varup(rseq[n]); + } + } + outer: + for ( ; n <= rightsize; ++n) { + for (;;) { + BddTree t = left.prev; + if (t == null || !t.interleaved) break outer; + int tsize = t.last - t.first; + if (n <= tsize) { + int[] tseq = t.seq; + while (bddvar2level[tseq[n]] + 1 < bddvar2level[rseq[n]]) { + reorder_varup(rseq[n]); + } + break; + } + } + } + left.interleaved = true; + } + void blockdown(BddTree left) { BddTree right = left.next; *************** *** 4393,4396 **** --- 4479,4485 ---- left.pos = right.pos; right.pos = n; + + left.interleaved = false; + right.interleaved = false; } *************** *** 4887,4890 **** --- 4976,4980 ---- int[] seq; /* Sequence of first...last in the current order */ boolean fixed; /* Are the sub-blocks fixed or may they be reordered */ + boolean interleaved; /* Is this block interleaved with the next one */ int id; /* A sequential id number given by addblock */ BddTree next, prev; *************** *** 6274,6277 **** --- 6364,6368 ---- // todo: better reorder id printout o.print(right(t.id, 3)); + if (t.interleaved) o.print('x'); o.println("{\n"); *************** *** 6289,6293 **** o.print(" "); // todo: better reorder id printout ! o.println(right(t.id, 3)); print_order_rec(o, t.next, level); --- 6380,6386 ---- o.print(" "); // todo: better reorder id printout ! o.print(right(t.id, 3)); ! if (t.interleaved) o.print('x'); ! o.println(); print_order_rec(o, t.next, level); |
From: John W. <joe...@us...> - 2005-05-09 01:40:30
|
Update of /cvsroot/javabdd/JavaBDD/buddy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15911/buddy/src Modified Files: bddop.c Log Message: Fixed bug found by Mayur. Support set size was not being reset correctly. Index: bddop.c =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/buddy/src/bddop.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** bddop.c 31 Jan 2005 12:03:34 -0000 1.10 --- bddop.c 9 May 2005 01:40:21 -0000 1.11 *************** *** 102,105 **** --- 102,106 ---- static int supportMax; /* Max. used level in support calc. */ static int* supportSet; /* The found support set */ + static int supportSize; /* Size of support set */ static BddCache4 applycache; /* Cache for apply results */ static BddCache4 itecache; /* Cache for ITE results */ *************** *** 244,247 **** --- 245,249 ---- cacheratio = 0; supportSet = NULL; + supportSize = 0; return 0; *************** *** 273,276 **** --- 275,279 ---- free(supportSet); supportSet = NULL; + supportSize = 0; } *************** *** 2958,2962 **** BDD bdd_support(BDD r) { - static int supportSize = 0; int n; int res=1; --- 2961,2964 ---- |
From: John W. <joe...@us...> - 2005-05-06 23:55:06
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10320/net/sf/javabdd Modified Files: JFactory.java Log Message: Change default max node increase to 10M. Index: JFactory.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/net/sf/javabdd/JFactory.java,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** JFactory.java 29 Apr 2005 06:43:31 -0000 1.21 --- JFactory.java 6 May 2005 23:54:52 -0000 1.22 *************** *** 720,724 **** "Division by zero" }; ! static final int DEFAULTMAXNODEINC = 50000; /*=== OTHER INTERNAL DEFINITIONS =======================================*/ --- 720,724 ---- "Division by zero" }; ! static final int DEFAULTMAXNODEINC = 10000000; /*=== OTHER INTERNAL DEFINITIONS =======================================*/ |
From: John W. <joe...@us...> - 2005-05-06 23:50:56
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9344/net/sf/javabdd Modified Files: BDDFactory.java Log Message: Fixed reorder callback. Index: BDDFactory.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/net/sf/javabdd/BDDFactory.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** BDDFactory.java 4 May 2005 22:31:35 -0000 1.11 --- BDDFactory.java 6 May 2005 23:50:47 -0000 1.12 *************** *** 1719,1723 **** bdd_default_reohandler(b, s); } else { ! doCallbacks(reorder_callbacks, new Integer(b?1:0), s); } } --- 1719,1723 ---- bdd_default_reohandler(b, s); } else { ! doCallbacks(reorder_callbacks, new Boolean(b), s); } } |
From: John W. <joe...@us...> - 2005-05-06 21:41:36
|
Update of /cvsroot/javabdd/JavaBDD_tests/trace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7799/trace Modified Files: TraceDriver.java Log Message: Handle '-' in identifiers. Index: TraceDriver.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD_tests/trace/TraceDriver.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TraceDriver.java 6 May 2005 07:02:53 -0000 1.2 --- TraceDriver.java 6 May 2005 21:41:26 -0000 1.3 *************** *** 306,309 **** --- 306,310 ---- private int [] stack; private int stack_tos, nodes, cache, vars; + private static int auto_reorder = Integer.parseInt(System.getProperty("reorder", "0")); private HashMap map; private BDDPairing s2sp, sp2s; *************** *** 422,425 **** --- 423,431 ---- bdd = BDDFactory.init(nodes, cache); + if (auto_reorder != 0) { + out.println("setting auto reorder to " + auto_reorder); + bdd.autoReorder(getReorderMethod(auto_reorder)); + bdd.varBlockAll(); + } //bdd.setNodeNames(new TracedNames() ); } *************** *** 586,592 **** need("("); String str = need(); TracedVariable v = needVar(str);need(")"); need(";"); createSaveOperation(v); ! } else if(ret.equals("check_point_for_force_reordering")) { ! out.println("NOTE: ignoring variable-reordering request"); ! skip_eol(); } else { --- 592,601 ---- need("("); String str = need(); TracedVariable v = needVar(str);need(")"); need(";"); createSaveOperation(v); ! } else if(ret.equals("check_point_for_force_reordering")) { ! need("("); String str = need(); ! int type = Integer.parseInt(str); ! need(")"); need(";"); ! BDDFactory.ReorderMethod m = getReorderMethod(type); ! bdd.reorder(m); } else { *************** *** 644,647 **** --- 653,672 ---- } + private static BDDFactory.ReorderMethod getReorderMethod(int type) { + BDDFactory.ReorderMethod m; + switch (type) { + case 0: m = BDDFactory.REORDER_NONE; break; + case 1: m = BDDFactory.REORDER_WIN2; break; + case 2: m = BDDFactory.REORDER_WIN2ITE; break; + case 3: m = BDDFactory.REORDER_WIN3; break; + case 4: m = BDDFactory.REORDER_WIN3ITE; break; + case 5: m = BDDFactory.REORDER_SIFT; break; + case 6: m = BDDFactory.REORDER_SIFTITE; break; + default: m = BDDFactory.REORDER_NONE; break; + } + return m; + } + + // -------------------------------------------------------------------------------------------- *************** *** 761,765 **** } private boolean isSpace(int c) { return (c == ' ' || c == '\n' || c == '\t' || c == '\r'); } ! private boolean isAlnum(int c) { return ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_'); } // ----------------------------------------------------- --- 786,790 ---- } private boolean isSpace(int c) { return (c == ' ' || c == '\n' || c == '\t' || c == '\r'); } ! private boolean isAlnum(int c) { return ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' || c == '-'); } // ----------------------------------------------------- |
From: John W. <joe...@us...> - 2005-05-06 07:18:31
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19284 Modified Files: buddy_jni.c Log Message: Get rid of undef. Index: buddy_jni.c =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/buddy_jni.c,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** buddy_jni.c 8 Apr 2005 05:27:52 -0000 1.30 --- buddy_jni.c 6 May 2005 07:18:22 -0000 1.31 *************** *** 33,38 **** #define INVALID_BDD -1 - #undef TRACE_BUDDYLIB - static int bdd_error; --- 33,36 ---- |
From: John W. <joe...@us...> - 2005-05-06 07:03:16
|
Update of /cvsroot/javabdd/JavaBDD_tests/trace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16394/trace Modified Files: TraceDriver.java Log Message: Updated trace driver to support multiple files, gziped files. Index: TraceDriver.java =================================================================== RCS file: /cvsroot/javabdd/JavaBDD_tests/trace/TraceDriver.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TraceDriver.java 17 Nov 2004 09:56:03 -0000 1.1 --- TraceDriver.java 6 May 2005 07:02:53 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import java.util.LinkedList; import java.util.Vector; + import java.util.zip.GZIPInputStream; import java.io.FileInputStream; import java.io.IOException; *************** *** 298,302 **** // ----------------------------------------------- ! private static final int DEFAULT_NODES = 10000, MAX_NODES = 3000000; private BDDFactory bdd; private InputStream is; --- 299,303 ---- // ----------------------------------------------- ! private static final int DEFAULT_NODES = 500000, MAX_NODES = 3000000; private BDDFactory bdd; private InputStream is; *************** *** 316,327 **** public TraceDriver(String file) throws IOException ! { this(file, new FileInputStream(file), DEFAULT_NODES); } public TraceDriver(String file, int nodes) throws IOException ! { this(file, new FileInputStream(file), nodes); } public TraceDriver(String file, InputStream is) throws IOException ! { this(file, is, DEFAULT_NODES); } --- 317,338 ---- public TraceDriver(String file) throws IOException ! { ! this(file, DEFAULT_NODES); ! } public TraceDriver(String file, int nodes) throws IOException ! { ! this(file, ! file.endsWith(".gz") ? ! (InputStream) new GZIPInputStream(new FileInputStream(file)) : ! (InputStream) new FileInputStream(file), ! nodes); ! } public TraceDriver(String file, InputStream is) throws IOException ! { ! this(file, is, DEFAULT_NODES); ! } *************** *** 405,409 **** private void setup_bdd(int vars) { this.vars = vars; ! nodes = (int)Math.min( MAX_NODES, nodes * (1 + Math.log(1+vars)) ); out.println(); --- 416,420 ---- private void setup_bdd(int vars) { this.vars = vars; ! //nodes = (int)Math.min( MAX_NODES, nodes * (1 + Math.log(1+vars)) ); out.println(); *************** *** 826,835 **** //TraceDriver.verbose = true; try { ! if(args.length == 2) { ! new TraceDriver(args[0], Integer.parseInt(args[1]) ); ! } else if(args.length == 1) new TraceDriver(args[0]); ! else out.println("Usage: java "+TraceDriver.class.getName()+" file.trace [initial node-base]"); ! } catch(IOException exx) { out.println("FAILED: " + exx.getMessage() ); exx.printStackTrace(); --- 837,855 ---- //TraceDriver.verbose = true; + if (args.length == 0) { + out.println("Usage: java "+TraceDriver.class.getName()+" file.trace {file2.trace ...}"); + return; + } + int bddnodes = Integer.parseInt(System.getProperty("bddnodes", Integer.toString(DEFAULT_NODES))); + long totalTime = 0; try { ! for (int i = 0; i < args.length; ++i) { ! TraceDriver td = new TraceDriver(args[i], bddnodes); ! totalTime += td.time; ! } ! if (args.length > 1) { ! out.println("Total time for all traces: "+totalTime+" [ms]"); ! } ! } catch (IOException exx) { out.println("FAILED: " + exx.getMessage() ); exx.printStackTrace(); |
From: John W. <joe...@us...> - 2005-05-06 02:05:30
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22020 Modified Files: Makefile Log Message: Index: Makefile =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/Makefile,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** Makefile 5 May 2005 21:17:03 -0000 1.41 --- Makefile 6 May 2005 02:05:21 -0000 1.42 *************** *** 104,107 **** --- 104,108 ---- net/sf/javabdd/MicroFactory.java \ net/sf/javabdd/TestBDDFactory.java \ + net/sf/javabdd/TryVarOrder.java \ net/sf/javabdd/TypedBDDFactory.java JAVA_CLASSFILES = net/sf/javabdd/*.class |
From: John W. <joe...@us...> - 2005-05-05 21:44:49
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25555 Added Files: .cdtproject Log Message: Eclipse CDT project file. --- NEW FILE: .cdtproject --- <?xml version="1.0" encoding="UTF-8"?> <?eclipse-cdt version="2.0"?> <cdtproject/> |
From: John W. <joe...@us...> - 2005-05-05 21:42:06
|
Update of /cvsroot/javabdd/JavaBDD/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24682/xdocs Modified Files: navigation.xml links.xml installing.xml performance.xml changes.xml Log Message: Checkin to prepare for 1.0b2 release. Index: installing.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/xdocs/installing.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** installing.xml 17 Nov 2004 23:49:12 -0000 1.2 --- installing.xml 5 May 2005 21:41:55 -0000 1.3 *************** *** 24,28 **** queens problem. You can run this example by simply typing: <br/> ! <code>java -jar javabdd.jar <i>N</i></code> <br/> where <code><i>N</i></code> is the size of the board (e.g. <code>8</code>). --- 24,28 ---- queens problem. You can run this example by simply typing: <br/> ! <code>java -jar javabdd-1.0b2.jar <i>N</i></code> <br/> where <code><i>N</i></code> is the size of the board (e.g. <code>8</code>). Index: navigation.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/xdocs/navigation.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** navigation.xml 20 Jan 2005 08:02:50 -0000 1.6 --- navigation.xml 5 May 2005 21:41:55 -0000 1.7 *************** *** 28,36 **** <menu name="Downloads"> <item name="JavaBDD for Windows" ! href="http://prdownloads.sourceforge.net/javabdd/javabdd_1.0b1.zip"/> <item name="JavaBDD for Linux" ! href="http://prdownloads.sourceforge.net/javabdd/javabdd_1.0b1.tar.gz"/> <item name="JavaBDD Source code" ! href="http://prdownloads.sourceforge.net/javabdd/javabdd_src_1.0b1.tar.gz"/> </menu> </body> --- 28,36 ---- <menu name="Downloads"> <item name="JavaBDD for Windows" ! href="http://prdownloads.sourceforge.net/javabdd/javabdd_1.0b2.zip"/> <item name="JavaBDD for Linux" ! href="http://prdownloads.sourceforge.net/javabdd/javabdd_1.0b2.tar.gz"/> <item name="JavaBDD Source code" ! href="http://prdownloads.sourceforge.net/javabdd/javabdd_src_1.0b2.tar.gz"/> </menu> </body> Index: links.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/xdocs/links.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** links.xml 5 Feb 2005 00:33:18 -0000 1.3 --- links.xml 5 May 2005 21:41:55 -0000 1.4 *************** *** 10,14 **** <section name="Acknowledgements"> <ul> - <li> <a href="http://www.itu.dk/people/jln">Jørn Lind-Nielsen</a>, the author of --- 10,13 ---- Index: performance.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/xdocs/performance.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** performance.xml 18 Nov 2004 00:04:14 -0000 1.7 --- performance.xml 5 May 2005 21:41:55 -0000 1.8 *************** *** 17,21 **** was: <br/> ! <code>java -mx512m -Dbdd=<i>package</i> -jar javabdd.jar 12</code> <br/> </p> --- 17,21 ---- was: <br/> ! <code>java -mx512m -Dbdd=<i>package</i> -jar javabdd-1.0b2.jar 12</code> <br/> </p> Index: changes.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/xdocs/changes.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changes.xml 20 Jan 2005 07:50:26 -0000 1.1 --- changes.xml 5 May 2005 21:41:55 -0000 1.2 *************** *** 6,9 **** --- 6,36 ---- <body> + <release version="1.0b2" date="2005-05-05"> + <action dev="joewhaley" type="update"> + Better error handling in BDDIterator. + </action> + <action dev="joewhaley" type="update"> + More small performance improvements for the Java version. + </action> + <action dev="joewhaley" type="add"> + Added ability to register callbacks for various events. + </action> + <action dev="joewhaley" type="add"> + Added support for dynamically growing domains. + </action> + <action dev="joewhaley" type="add"> + Added support for running JavaBDD under restricted permissions; e.g. as an applet. + </action> + <action dev="joewhaley" type="fix"> + Fixed a bug involving finalizers. + </action> + <action dev="joewhaley" type="fix"> + Fixed a bug involving reset() and done(). + </action> + <action dev="joewhaley" type="fix"> + Fixed a bug involving reordering in the Java implementation. + </action> + </release> + <release version="1.0b1" date="2004-10-17"> <action dev="joewhaley" type="update"> |
From: John W. <joe...@us...> - 2005-05-05 21:42:06
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24682 Modified Files: project.xml Log Message: Checkin to prepare for 1.0b2 release. Index: project.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/project.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** project.xml 2 Jan 2005 08:00:42 -0000 1.17 --- project.xml 5 May 2005 21:41:55 -0000 1.18 *************** *** 6,10 **** <groupId>javabdd</groupId> <id>javabdd</id> ! <currentVersion>1.0b1</currentVersion> <logo>/images/logo2_mid.jpg</logo> <organization> --- 6,10 ---- <groupId>javabdd</groupId> <id>javabdd</id> ! <currentVersion>1.0b2</currentVersion> <logo>/images/logo2_mid.jpg</logo> <organization> *************** *** 42,46 **** <url>http://javabdd.sourceforge.net/</url> <issueTrackingUrl>http://sourceforge.net/tracker/?group_id=72725</issueTrackingUrl> ! <siteAddress>javabdd.sourceforge.net</siteAddress> <siteDirectory>/home/groups/j/ja/javabdd/htdocs/</siteDirectory> <distributionDirectory>/home/groups/j/ja/javabdd/</distributionDirectory> --- 42,46 ---- <url>http://javabdd.sourceforge.net/</url> <issueTrackingUrl>http://sourceforge.net/tracker/?group_id=72725</issueTrackingUrl> ! <siteAddress>shell.sourceforge.net</siteAddress> <siteDirectory>/home/groups/j/ja/javabdd/htdocs/</siteDirectory> <distributionDirectory>/home/groups/j/ja/javabdd/</distributionDirectory> *************** *** 76,79 **** --- 76,84 ---- <tag>v1_0b1</tag> </version> + <version> + <id>1.0b2</id> + <name>1.0b2</name> + <tag>v1_0b2</tag> + </version> </versions> <mailingLists> |
From: John W. <joe...@us...> - 2005-05-05 21:21:30
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19342 Modified Files: maven.xml Log Message: Update to 1.0b2 Index: maven.xml =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/maven.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** maven.xml 17 Nov 2004 23:49:12 -0000 1.3 --- maven.xml 5 May 2005 21:21:21 -0000 1.4 *************** *** 14,18 **** <postGoal name="native:compile"> <echo message="*** renaming BuDDy library ***"/> ! <move file="target/native/libjavabdd-1.0b1.so" tofile="target/native/libbuddy.so" overwrite="true"/> --- 14,18 ---- <postGoal name="native:compile"> <echo message="*** renaming BuDDy library ***"/> ! <move file="target/native/libjavabdd-1.0b2.so" tofile="target/native/libbuddy.so" overwrite="true"/> |
From: John W. <joe...@us...> - 2005-05-05 21:19:04
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18743 Modified Files: javabdd.jardesc Log Message: Added version number to jar file name. Index: javabdd.jardesc =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/javabdd.jardesc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** javabdd.jardesc 30 Jan 2005 14:42:37 -0000 1.6 --- javabdd.jardesc 5 May 2005 21:18:56 -0000 1.7 *************** *** 1,5 **** <?xml version="1.0" encoding="UTF-8"?> <jardesc> ! <jar path="JavaBDD/javabdd.jar"/> <options buildIfNeeded="true" compress="true" descriptionLocation="/JavaBDD/javabdd.jardesc" exportErrors="true" exportWarnings="true" overwrite="true" saveDescription="true" useSourceFolders="false"/> <manifest generateManifest="false" manifestLocation="/JavaBDD/javabddManifest" manifestVersion="1.0" reuseManifest="false" saveManifest="false" usesManifest="true"> --- 1,5 ---- <?xml version="1.0" encoding="UTF-8"?> <jardesc> ! <jar path="JavaBDD/javabdd-1.0b2.jar"/> <options buildIfNeeded="true" compress="true" descriptionLocation="/JavaBDD/javabdd.jardesc" exportErrors="true" exportWarnings="true" overwrite="true" saveDescription="true" useSourceFolders="false"/> <manifest generateManifest="false" manifestLocation="/JavaBDD/javabddManifest" manifestVersion="1.0" reuseManifest="false" saveManifest="false" usesManifest="true"> |
From: John W. <joe...@us...> - 2005-05-05 21:18:35
|
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18649/net/sf/javabdd Removed Files: HijackingClassLoader.java Log Message: Remove old file. --- HijackingClassLoader.java DELETED --- |
From: John W. <joe...@us...> - 2005-05-05 21:17:12
|
Update of /cvsroot/javabdd/JavaBDD In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18209 Modified Files: Makefile Log Message: Added version number to jar file name. Index: Makefile =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/Makefile,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** Makefile 2 Feb 2005 08:03:35 -0000 1.40 --- Makefile 5 May 2005 21:17:03 -0000 1.41 *************** *** 13,16 **** --- 13,17 ---- CUDD_SRC = cudd-2.4.0 CAL_SRC = cal-2.1 + VER = 1.0b2 ifeq (${OS},Windows_NT) *************** *** 34,38 **** CAL_DLL_NAME = cal.dll ifeq (${CC},icl) # Intel Windows compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_OR -DSPECIALIZE_AND /O2 /Ob2 $(EXTRA_CFLAGS) CAL_CFLAGS = $(CFLAGS) -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=0 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=0 -DHAVE_SYS_RESOURCE_H=0 -DHAVE_STDARG_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=0 OBJECT_OUTPUT_OPTION = -Fo --- 35,39 ---- CAL_DLL_NAME = cal.dll ifeq (${CC},icl) # Intel Windows compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_OR -DSPECIALIZE_AND -DSMALL_NODES /O2 /Ob2 $(EXTRA_CFLAGS) CAL_CFLAGS = $(CFLAGS) -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=0 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=0 -DHAVE_SYS_RESOURCE_H=0 -DHAVE_STDARG_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=0 OBJECT_OUTPUT_OPTION = -Fo *************** *** 52,56 **** JDK_ROOT = $(firstword $(wildcard /usr/java/j*dk*)) CLASSPATH = .:jdd.jar ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -O2 -fomit-frame-pointer $(EXTRA_CFLAGS) CAL_CFLAGS = -O2 -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=1 $(EXTRA_CFLAGS) OBJECT_OUTPUT_OPTION = -o$(space) --- 53,57 ---- JDK_ROOT = $(firstword $(wildcard /usr/java/j*dk*)) CLASSPATH = .:jdd.jar ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -fomit-frame-pointer $(EXTRA_CFLAGS) CAL_CFLAGS = -O2 -DCLOCK_RESOLUTION=60 -DRLIMIT_DATA_DEFAULT=16777216 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_ASSERT_H=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_PWD_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_RESOURCE_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DSIZEOF_VOID_P=4 -DSIZEOF_INT=4 -DHAVE_IEEE_754=1 -DPAGE_SIZE=4096 -DLG_PAGE_SIZE=12 -DRETSIGTYPE=void -DHAVE_STRCOLL=1 -DHAVE_SYSCONF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_STRCSPN=1 -DHAVE_STRERROR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DHAVE_GETENV=1 -DHAVE_STRCHR=1 -DHAVE_GETRLIMIT=1 -DHAVE_GETRUSAGE=1 -DHAVE_VALLOC=1 $(EXTRA_CFLAGS) OBJECT_OUTPUT_OPTION = -o$(space) *************** *** 68,72 **** CAL_DLL_NAME = libcal.so ifeq (${CC},icc) # Intel Linux compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -O2 -Ob2 -ip $(EXTRA_CFLAGS) LINK = xild # Bug in icc link makes it ignore -static, so use xild # Include libirc for _intel_fast_memset --- 69,73 ---- CAL_DLL_NAME = libcal.so ifeq (${CC},icc) # Intel Linux compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -O2 -Ob2 -ip $(EXTRA_CFLAGS) LINK = xild # Bug in icc link makes it ignore -static, so use xild # Include libirc for _intel_fast_memset *************** *** 74,78 **** endif ifeq (${CC},pathcc) # Pathscale compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -m32 -O2 -fomit_frame_pointer $(EXTRA_CFLAGS) # For 64-bit, eliminate -m32 and add -fPIC in CFLAGS. LINK = pathcc --- 75,79 ---- endif ifeq (${CC},pathcc) # Pathscale compiler ! CFLAGS = -DSPECIALIZE_RELPROD -DSPECIALIZE_AND -DSPECIALIZE_OR -DSMALL_NODES -m32 -O2 -fomit_frame_pointer $(EXTRA_CFLAGS) # For 64-bit, eliminate -m32 and add -fPIC in CFLAGS. LINK = pathcc *************** *** 101,104 **** --- 102,106 ---- net/sf/javabdd/JFactory.java \ net/sf/javabdd/JDDFactory.java \ + net/sf/javabdd/MicroFactory.java \ net/sf/javabdd/TestBDDFactory.java \ net/sf/javabdd/TypedBDDFactory.java *************** *** 122,126 **** EXAMPLE_SOURCES = NQueens.java RubiksCube.java EXAMPLE_CLASSFILES = $(EXAMPLE_SOURCES:%.java=%.class) ! JAR_NAME = javabdd.jar BUDDY_INCLUDE = buddy_jni.h --- 124,128 ---- EXAMPLE_SOURCES = NQueens.java RubiksCube.java EXAMPLE_CLASSFILES = $(EXAMPLE_SOURCES:%.java=%.class) ! JAR_NAME = javabdd-$(VER).jar BUDDY_INCLUDE = buddy_jni.h |
From: John W. <joe...@us...> - 2005-05-04 22:36:53
|
Update of /cvsroot/javabdd/JavaBDD/buddy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10058/buddy/src Modified Files: reorder.c Log Message: Fixed idiotic bug. Index: reorder.c =================================================================== RCS file: /cvsroot/javabdd/JavaBDD/buddy/src/reorder.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** reorder.c 8 Apr 2005 05:28:05 -0000 1.9 --- reorder.c 4 May 2005 22:36:43 -0000 1.10 *************** *** 1657,1661 **** void bdd_reorder_auto(void) { ! if (!bdd_reorder_ready) return; --- 1657,1661 ---- void bdd_reorder_auto(void) { ! if (!bdd_reorder_ready()) return; |
Update of /cvsroot/javabdd/JavaBDD/net/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9477/net/sf/javabdd Removed Files: CUDDFactory$1.class CALFactory$1.class TestBDDFactory$1.class BuDDyFactory$1.class JDDFactory$1.class BDDFactory$1.class Log Message: Delete bogus class files. --- TestBDDFactory$1.class DELETED --- --- BDDFactory$1.class DELETED --- --- CALFactory$1.class DELETED --- --- JDDFactory$1.class DELETED --- --- CUDDFactory$1.class DELETED --- --- BuDDyFactory$1.class DELETED --- |