2 bug fixes to getRequiredConstraints
[repair.git] / Repair / RepairCompiler / MCC / State.java
index ee1dfa0864874d97d09b51a56a81a2643f08f8fe..55a86e10578c3ee02c73d95e8088b1ed74305ce0 100755 (executable)
@@ -6,7 +6,7 @@ import MCC.IR.*;
 import java.util.*;
 
 public class State {
-    
+
     public static State currentState = null;
 
     public static boolean failed = false;
@@ -32,8 +32,12 @@ public class State {
     public Vector vRules;
 
     public Hashtable rulenodes;
-    public Hashtable constraintnodes;    
+    public Hashtable constraintnodes;
+    public Hashtable implicitrule;
+    public Hashtable implicitruleinv;
+    public HashSet noupdate;
 
+    public SetAnalysis setanalysis;
     State() {
         vConstraints = null;
         vRules = null;
@@ -47,6 +51,20 @@ public class State {
         ptModel = null;
         ptConstraints = null;
         ptSpace = null;
+       implicitrule=new Hashtable();
+       implicitruleinv=new Hashtable();
+        noupdate=new HashSet();
+    }
+
+    void printall() {
+       for(int i=0;i<vRules.size();i++) {
+           Rule r=(Rule)vRules.get(i);
+           System.out.println(r.toString());
+       }
+       for(int i=0;i<vConstraints.size();i++) {
+           Constraint c=(Constraint)vConstraints.get(i);
+           System.out.println(c.toString());
+       }
     }
 
 }