summaryrefslogtreecommitdiff
path: root/Source/VCGeneration
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-02-15 22:32:49 +0000
committerGravatar rustanleino <unknown>2010-02-15 22:32:49 +0000
commitf1d626d71fef69995f34daae4341473d597f5d27 (patch)
tree0f0c4537abfdc9d68601151670cb818153115453 /Source/VCGeneration
parent0ca423c504048ec31149b6d7b1a257c25f368910 (diff)
Boogie: Peephole optimization to reduce depth of formulas created during VC generation. This reduces the chances of Boogie causing a stack overflow.
Diffstat (limited to 'Source/VCGeneration')
-rw-r--r--Source/VCGeneration/Wlp.ssc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/VCGeneration/Wlp.ssc b/Source/VCGeneration/Wlp.ssc
index 9700bc89..003352d7 100644
--- a/Source/VCGeneration/Wlp.ssc
+++ b/Source/VCGeneration/Wlp.ssc
@@ -77,12 +77,12 @@ namespace VC {
// need to test it
if (CommandLineOptions.Clo.vcVariety == CommandLineOptions.VCVariety.Doomed) return gen.Implies(C, N);
- return gen.And(gen.LabelNeg((!)id.ToString(), C), N);
+ return gen.AndSimp(gen.LabelNeg((!)id.ToString(), C), N);
}
} else if (cmd is AssumeCmd) {
AssumeCmd ac = (AssumeCmd)cmd;
- return gen.Implies(ctxt.Ctxt.BoogieExprTranslator.Translate(ac.Expr), N);
+ return gen.ImpliesSimp(ctxt.Ctxt.BoogieExprTranslator.Translate(ac.Expr), N);
} else {
Console.WriteLine(cmd.ToString());