summaryrefslogtreecommitdiff
path: root/Source/ExecutionEngine/ExecutionEngine.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-07-07 03:20:23 +0200
committerGravatar wuestholz <unknown>2014-07-07 03:20:23 +0200
commit15279d479f3d97952a7345043a1e50b36c88c189 (patch)
tree1772a324ba6d2000dc250a508657d2ec63c36d51 /Source/ExecutionEngine/ExecutionEngine.cs
parent03ddba11bfb066c2fc2b0f73aaa8d958e6a9d190 (diff)
Worked on adding support for "canned errors".
Diffstat (limited to 'Source/ExecutionEngine/ExecutionEngine.cs')
-rw-r--r--Source/ExecutionEngine/ExecutionEngine.cs15
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/ExecutionEngine/ExecutionEngine.cs b/Source/ExecutionEngine/ExecutionEngine.cs
index 48a35e80..04726cff 100644
--- a/Source/ExecutionEngine/ExecutionEngine.cs
+++ b/Source/ExecutionEngine/ExecutionEngine.cs
@@ -420,15 +420,20 @@ namespace Microsoft.Boogie
static IDictionary<string, IList<CancellationTokenSource>> RequestIdToCancellationTokenSources = new ConcurrentDictionary<string, IList<CancellationTokenSource>>();
- public static void ProcessFiles(List<string> fileNames, bool lookForSnapshots = true)
+ public static void ProcessFiles(List<string> fileNames, bool lookForSnapshots = true, string programId = null)
{
Contract.Requires(cce.NonNullElements(fileNames));
+ if (programId == null)
+ {
+ programId = "main_program_id";
+ }
+
if (CommandLineOptions.Clo.VerifySeparately && 1 < fileNames.Count)
{
foreach (var f in fileNames)
{
- ProcessFiles(new List<string> { f }, lookForSnapshots);
+ ProcessFiles(new List<string> { f }, lookForSnapshots, f);
}
return;
}
@@ -438,7 +443,7 @@ namespace Microsoft.Boogie
var snapshotsByVersion = LookForSnapshots(fileNames);
foreach (var s in snapshotsByVersion)
{
- ProcessFiles(new List<string>(s), false);
+ ProcessFiles(new List<string>(s), false, programId);
}
return;
}
@@ -493,7 +498,7 @@ namespace Microsoft.Boogie
Inline(program);
var stats = new PipelineStatistics();
- oc = InferAndVerify(program, stats, 1 < CommandLineOptions.Clo.VerifySnapshots ? "main_program_id" : null);
+ oc = InferAndVerify(program, stats, 1 < CommandLineOptions.Clo.VerifySnapshots ? programId : null);
switch (oc)
{
case PipelineOutcome.Done:
@@ -886,7 +891,7 @@ namespace Microsoft.Boogie
if (1 < CommandLineOptions.Clo.VerifySnapshots)
{
- CachedVerificationResultInjector.Inject(program, stablePrioritizedImpls, requestId);
+ CachedVerificationResultInjector.Inject(program, stablePrioritizedImpls, requestId, programId);
}
#region Verify each implementation