diff options
author | wuestholz <unknown> | 2014-07-06 23:36:08 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-07-06 23:36:08 +0200 |
commit | 03ddba11bfb066c2fc2b0f73aaa8d958e6a9d190 (patch) | |
tree | c409845e69f3316fe989555e136595742f1ca300 /Source/VCGeneration/ConditionGeneration.cs | |
parent | 40efa1496ae36400e0f334a215b86371a56a6b9c (diff) |
Added more tests and worked on adding support for "canned errors".
Diffstat (limited to 'Source/VCGeneration/ConditionGeneration.cs')
-rw-r--r-- | Source/VCGeneration/ConditionGeneration.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/VCGeneration/ConditionGeneration.cs b/Source/VCGeneration/ConditionGeneration.cs index 787477ad..abbcf4aa 100644 --- a/Source/VCGeneration/ConditionGeneration.cs +++ b/Source/VCGeneration/ConditionGeneration.cs @@ -1527,16 +1527,15 @@ namespace VC { }
else if (currentImplementation != null
&& currentImplementation.AnyErrorsInCachedSnapshot
- && currentImplementation.InjectedAssumptionVariables != null
- && currentImplementation.InjectedAssumptionVariables.Any()
&& ac.Checksum != null
&& (currentImplementation.AssertionChecksumsInPreviousSnapshot != null && currentImplementation.AssertionChecksumsInPreviousSnapshot.Contains(ac.Checksum))
&& currentImplementation.ErrorChecksumsInCachedSnapshot.Contains(ac.Checksum)
- && !currentImplementation.InjectedAssumptionVariables.Any(v => incarnationMap.ContainsKey(v)))
+ && (currentImplementation.InjectedAssumptionVariables == null || !currentImplementation.InjectedAssumptionVariables.Any(v => incarnationMap.ContainsKey(v))))
{
- ac.Attributes = new QKeyValue(Token.NoToken, "canned_failing_assertion", new List<object>(), ac.Attributes);
+ // TODO(wuestholz): Uncomment this once the canned errors are reported.
+ // pc = new AssumeCmd(ac.tok, copy);
+ pc.Attributes = new QKeyValue(Token.NoToken, "canned_failing_assertion", new List<object>(), pc.Attributes);
currentImplementation.AddCannedFailingAssertion(ac);
- // TODO(wuestholz): Turn the 'assert' command into an 'assume' command.
}
}
else if (pc is AssumeCmd
|