File tree Expand file tree Collapse file tree 1 file changed +1
-35
lines changed
src/main/java/com/github/javabdd Expand file tree Collapse file tree 1 file changed +1
-35
lines changed Original file line number Diff line number Diff line change 21
21
import java .util .Iterator ;
22
22
import java .util .LinkedList ;
23
23
import java .util .List ;
24
- import java .util .Map ;
25
24
import java .util .StringTokenizer ;
26
25
27
26
/**
36
35
*/
37
36
public abstract class BDDFactory {
38
37
private static final boolean DEBUG = false ;
38
+
39
39
private static final boolean ASSERT_FILL_IN_VAR_INDICES = false ;
40
40
41
41
public static final String getProperty (String key , String def ) {
@@ -827,40 +827,6 @@ public void save(BufferedWriter out, BDD r) throws IOException {
827
827
// }
828
828
}
829
829
830
- /**
831
- * Helper function for save().
832
- */
833
- protected int save_rec_original (BufferedWriter out , Map visited , BDD root ) throws IOException {
834
- if (root .isZero ()) {
835
- root .free ();
836
- return 0 ;
837
- }
838
- if (root .isOne ()) {
839
- root .free ();
840
- return 1 ;
841
- }
842
- Integer i = (Integer )visited .get (root );
843
- if (i != null ) {
844
- root .free ();
845
- return i .intValue ();
846
- }
847
- int v = visited .size () + 2 ;
848
- visited .put (root , v );
849
-
850
- BDD l = root .low ();
851
- int lo = save_rec_original (out , visited , l );
852
-
853
- BDD h = root .high ();
854
- int hi = save_rec_original (out , visited , h );
855
-
856
- out .write (v + " " );
857
- out .write (root .var () + " " );
858
- out .write (lo + " " );
859
- out .write (hi + "\n " );
860
-
861
- return v ;
862
- }
863
-
864
830
/**
865
831
* Helper function for save().
866
832
*/
You can’t perform that action at this time.
0 commit comments