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 6074bbd504f07b78536f80471bdbacc67393d079..c09637293fc32f3bee4cab08acd536e2db4b74e2 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();