summaryrefslogtreecommitdiff
path: root/Source/VCGeneration
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-10-13 18:32:08 +0200
committerGravatar wuestholz <unknown>2014-10-13 18:32:08 +0200
commit446723cdee734937e3467d9d27ae90bfe088a19b (patch)
tree34212a33f246816a487b017f0fa3681214a4becc /Source/VCGeneration
parent7fc9abfc35b0a677bc1e96264042d2474879858b (diff)
Add a todo.
Diffstat (limited to 'Source/VCGeneration')
-rw-r--r--Source/VCGeneration/ConditionGeneration.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/VCGeneration/ConditionGeneration.cs b/Source/VCGeneration/ConditionGeneration.cs
index 60a54346..689a8a73 100644
--- a/Source/VCGeneration/ConditionGeneration.cs
+++ b/Source/VCGeneration/ConditionGeneration.cs
@@ -1475,7 +1475,7 @@ namespace VC {
}
}
Contract.Assert(copy != null);
- var isAssumePre = false;
+ var dropCmd = false;
if (pc is AssertCmd) {
var ac = (AssertCmd)pc;
ac.OrigExpr = ac.Expr;
@@ -1513,6 +1513,8 @@ namespace VC {
// Turn it into an assume statement.
pc = new AssumeCmd(ac.tok, copy);
pc.Attributes = new QKeyValue(Token.NoToken, "verified_assertion", new List<object>(), pc.Attributes);
+ // TODO(wuestholz): Should we uncomment this?
+ // dropCmd = QKeyValue.FindIntAttribute(ac.Attributes, "subsumption", -1) == 0;
}
else if (currentImplementation != null
&& currentImplementation.AnyErrorsInCachedSnapshot
@@ -1533,10 +1535,10 @@ namespace VC {
&& currentImplementation.InjectedAssumptionVariables.Any())
{
copy = LiteralExpr.Imp(currentImplementation.ConjunctionOfInjectedAssumptionVariables(incarnationMap), copy);
- isAssumePre = true;
+ dropCmd = true;
}
pc.Expr = copy;
- if (!isAssumePre
+ if (!dropCmd
|| currentImplementation.NoErrorsInCachedSnapshot
|| (currentImplementation.AnyErrorsInCachedSnapshot
&& pc.Checksum != null