summaryrefslogtreecommitdiff
path: root/Source/ExecutionEngine/VerificationResultCache.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2015-01-02 22:54:49 +0100
committerGravatar wuestholz <unknown>2015-01-02 22:54:49 +0100
commit96861beb1b7d47bc0b940ff83d5a721d5e67d924 (patch)
tree22c527f190d25df6a492d5ad58188e4553ed30d0 /Source/ExecutionEngine/VerificationResultCache.cs
parent83ce1429f2897d10e36ecbb49751429674302745 (diff)
Minor changes
Diffstat (limited to 'Source/ExecutionEngine/VerificationResultCache.cs')
-rw-r--r--Source/ExecutionEngine/VerificationResultCache.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/ExecutionEngine/VerificationResultCache.cs b/Source/ExecutionEngine/VerificationResultCache.cs
index d66f68d3..226efa21 100644
--- a/Source/ExecutionEngine/VerificationResultCache.cs
+++ b/Source/ExecutionEngine/VerificationResultCache.cs
@@ -196,10 +196,10 @@ namespace Microsoft.Boogie
{
var desugaring = node.Desugaring;
Contract.Assert(desugaring != null);
- var precond = node.CheckedPrecondition(oldProc, Program);
+ var precond = node.CheckedPrecondition(oldProc, Program, e => FunctionExtractor.Extract(e, Program, axioms));
if (precond != null)
{
- var assume = new AssumeCmd(node.tok, FunctionExtractor.Extract(precond, Program, axioms), new QKeyValue(Token.NoToken, "precondition_previous_snapshot", new List<object>(), null));
+ var assume = new AssumeCmd(node.tok, precond, new QKeyValue(Token.NoToken, "precondition_previous_snapshot", new List<object>(), null));
beforePrecondtionCheck.Add(assume);
}
@@ -241,7 +241,6 @@ namespace Microsoft.Boogie
node.AssignedAssumptionVariable = lv;
currentImplementation.InjectAssumptionVariable(lv, !canUseSpecs);
var lhs = new SimpleAssignLhs(Token.NoToken, new IdentifierExpr(Token.NoToken, lv));
- // TODO(wuestholz): Try to extract functions for each clause.
var rhs = LiteralExpr.And(new IdentifierExpr(Token.NoToken, lv), assumedExpr);
var assumed = new AssignCmd(node.tok, new List<AssignLhs> { lhs }, new List<Expr> { rhs });
after.Add(assumed);