summaryrefslogtreecommitdiff
path: root/Source/ExecutionEngine/VerificationResultCache.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2013-06-14 17:31:29 -0700
committerGravatar wuestholz <unknown>2013-06-14 17:31:29 -0700
commite1a91a6768380825590890f170f32d3be995d63f (patch)
treed674fd5d7ac7fa11699ff4cad1527db6b1a44e88 /Source/ExecutionEngine/VerificationResultCache.cs
parent98f9075631ef7a93e793110af58a86a4b239a14f (diff)
Did some refactoring in the execution engine.
Diffstat (limited to 'Source/ExecutionEngine/VerificationResultCache.cs')
-rw-r--r--Source/ExecutionEngine/VerificationResultCache.cs27
1 files changed, 4 insertions, 23 deletions
diff --git a/Source/ExecutionEngine/VerificationResultCache.cs b/Source/ExecutionEngine/VerificationResultCache.cs
index 798411c8..17785689 100644
--- a/Source/ExecutionEngine/VerificationResultCache.cs
+++ b/Source/ExecutionEngine/VerificationResultCache.cs
@@ -91,25 +91,6 @@ namespace Microsoft.Boogie
}
- public class VerificationResult
- {
- public readonly string Checksum;
- public readonly string DependeciesChecksum;
- public readonly string RequestId;
- public readonly ConditionGeneration.Outcome Outcome;
- public readonly List<Counterexample> Errors;
-
- public VerificationResult(string requestId, string checksum, string depsChecksum, ConditionGeneration.Outcome outcome, List<Counterexample> errors)
- {
- Checksum = checksum;
- DependeciesChecksum = depsChecksum;
- Outcome = outcome;
- Errors = errors;
- RequestId = requestId;
- }
- }
-
-
public class VerificationResultCache
{
private readonly ConcurrentDictionary<string, VerificationResult> Cache = new ConcurrentDictionary<string, VerificationResult>();
@@ -151,13 +132,13 @@ namespace Microsoft.Boogie
}
- public bool NeedsToBeVerified(Implementation impl, string depsChecksumOfImpl)
+ public bool NeedsToBeVerified(Implementation impl)
{
- return 0 < VerificationPriority(impl, depsChecksumOfImpl);
+ return 0 < VerificationPriority(impl);
}
- public int VerificationPriority(Implementation impl, string depsChecksumOfImpl)
+ public int VerificationPriority(Implementation impl)
{
if (!Cache.ContainsKey(impl.Id))
{
@@ -167,7 +148,7 @@ namespace Microsoft.Boogie
{
return 2; // medium priority (old snapshot has been verified before)
}
- else if (depsChecksumOfImpl == null || Cache[impl.Id].DependeciesChecksum != depsChecksumOfImpl)
+ else if (impl.DependenciesChecksum == null || Cache[impl.Id].DependeciesChecksum != impl.DependenciesChecksum)
{
return 1; // low priority (the same snapshot has been verified before, but a callee has changed)
}