diff options
author | wuestholz <unknown> | 2014-06-28 21:23:58 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-06-28 21:23:58 +0200 |
commit | 62e76ea8117eb87571bf49588464540c8fa02357 (patch) | |
tree | ce4ae2eed551b375b26cda36cd7857266486f3bc /Source/DafnyExtension/DafnyDriver.cs | |
parent | b4e20b3397098b237b5b17b4b6a71d02a900a88d (diff) |
Minor change due to change in Boogie
Diffstat (limited to 'Source/DafnyExtension/DafnyDriver.cs')
-rw-r--r-- | Source/DafnyExtension/DafnyDriver.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/DafnyExtension/DafnyDriver.cs b/Source/DafnyExtension/DafnyDriver.cs index 36b07d60..ba01c04a 100644 --- a/Source/DafnyExtension/DafnyDriver.cs +++ b/Source/DafnyExtension/DafnyDriver.cs @@ -249,7 +249,8 @@ namespace DafnyLanguage resolver.ReInitializeVerificationErrors(requestId, boogieProgram.TopLevelDeclarations);
- PipelineOutcome oc = BoogiePipeline(boogieProgram, requestId, er);
+ // TODO(wuestholz): Maybe we should use a fixed program ID to limit the memory overhead due to the program cache in Boogie.
+ PipelineOutcome oc = BoogiePipeline(boogieProgram, 1 < Dafny.DafnyOptions.Clo.VerifySnapshots ? uniqueIdPrefix : null, requestId, er);
switch (oc) {
case PipelineOutcome.Done:
case PipelineOutcome.VerificationCompleted:
@@ -267,7 +268,7 @@ namespace DafnyLanguage /// else. Hence, any resolution errors and type checking errors are due to errors in
/// the translation.
/// </summary>
- static PipelineOutcome BoogiePipeline(Bpl.Program/*!*/ program, string requestId, ErrorReporterDelegate er)
+ static PipelineOutcome BoogiePipeline(Bpl.Program/*!*/ program, string programId, string requestId, ErrorReporterDelegate er)
{
Contract.Requires(program != null);
@@ -277,7 +278,7 @@ namespace DafnyLanguage ExecutionEngine.CollectModSets(program);
ExecutionEngine.CoalesceBlocks(program);
ExecutionEngine.Inline(program);
- return ExecutionEngine.InferAndVerify(program, new PipelineStatistics(), er, requestId);
+ return ExecutionEngine.InferAndVerify(program, new PipelineStatistics(), programId, er, requestId);
}
return oc;
}
|