projects
/
repair.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
159df1d
)
Need {} around case statements because we define variables...C++ is lame.
author
bdemsky
<bdemsky>
Tue, 18 May 2004 04:37:21 +0000
(
04:37
+0000)
committer
bdemsky
<bdemsky>
Tue, 18 May 2004 04:37:21 +0000
(
04:37
+0000)
Repair/RepairCompiler/MCC/IR/RepairGenerator.java
patch
|
blob
|
history
diff --git
a/Repair/RepairCompiler/MCC/IR/RepairGenerator.java
b/Repair/RepairCompiler/MCC/IR/RepairGenerator.java
index d8da17629d2a5c840fd00e3db36c49c0855fe9bc..1114e1af8876f682a4271289113db61aad282eb8 100755
(executable)
--- a/
Repair/RepairCompiler/MCC/IR/RepairGenerator.java
+++ b/
Repair/RepairCompiler/MCC/IR/RepairGenerator.java
@@
-796,6
+796,7
@@
public class RepairGenerator {
if (removed.contains(gn))
continue;
cr.outputline("case "+j+":");
+ cr.startblock();
for(int k=0;k<conj.size();k++) {
DNFPredicate dpred=conj.get(k);
Predicate p=dpred.getPredicate();
@@
-819,6
+820,7
@@
public class RepairGenerator {
cr.endblock();
}
/* Update model */
+ cr.endblock();
cr.outputline("break;");
}
cr.outputline("}");