summaryrefslogtreecommitdiff
path: root/Source/DafnyExtension
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-06-20 18:03:31 +0200
committerGravatar wuestholz <unknown>2014-06-20 18:03:31 +0200
commit9ee34997bf0787ce4aaee1fafc475e0728bec61d (patch)
tree204ac6fffea9db20007b5d48a8ec195616007d01 /Source/DafnyExtension
parentd7c007ec13d00ba15e6a43d20f7af358a2ea773e (diff)
DafnyExtension: Minor change to deal with a change in the Boogie command-line options
Diffstat (limited to 'Source/DafnyExtension')
-rw-r--r--Source/DafnyExtension/DafnyDriver.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/DafnyExtension/DafnyDriver.cs b/Source/DafnyExtension/DafnyDriver.cs
index 801e3ebd..f4eb4fb7 100644
--- a/Source/DafnyExtension/DafnyDriver.cs
+++ b/Source/DafnyExtension/DafnyDriver.cs
@@ -217,8 +217,9 @@ namespace DafnyLanguage
public static bool ToggleIncrementalVerification()
{
- Dafny.DafnyOptions.Clo.VerifySnapshots = !Dafny.DafnyOptions.Clo.VerifySnapshots;
- return Dafny.DafnyOptions.Clo.VerifySnapshots;
+ // TODO(wuestholz): Change this once there are more than two options.
+ Dafny.DafnyOptions.Clo.VerifySnapshots = (Dafny.DafnyOptions.Clo.VerifySnapshots + 1) % 2;
+ return 0 < Dafny.DafnyOptions.Clo.VerifySnapshots;
}
public static bool Verify(Dafny.Program dafnyProgram, ResolverTagger resolver, string uniqueIdPrefix, string requestId, ErrorReporterDelegate er) {