This should make Cristian a happy person... We do the right thing if
authorbdemsky <bdemsky>
Mon, 31 May 2004 15:04:59 +0000 (15:04 +0000)
committerbdemsky <bdemsky>
Mon, 31 May 2004 15:04:59 +0000 (15:04 +0000)
the checkonly flag is set...

Repair/RepairCompiler/MCC/IR/RepairGenerator.java

index 6074bbd..c096372 100755 (executable)
@@ -760,8 +760,17 @@ public class RepairGenerator {
 
        //        for (int i = 0; i < constraints.size(); i++) {
        //            Constraint constraint = (Constraint) constraints.elementAt(i); 
-       for (Iterator i = termination.constraintdependence.computeOrdering().iterator(); i.hasNext();) {
-           Constraint constraint = (Constraint) ((GraphNode)i.next()).getOwner();
+       Iterator i;
+       if (Compiler.REPAIR)
+           i=termination.constraintdependence.computeOrdering().iterator();
+       else
+           i=state.vConstraints.iterator();
+       for (; i.hasNext();) {
+           Constraint constraint;
+           if (Compiler.REPAIR)
+               constraint= (Constraint) ((GraphNode)i.next()).getOwner();
+           else
+               constraint=(Constraint)i.next();
            
             {
                final SymbolTable st = constraint.getSymbolTable();