diff options
author | wuestholz <unknown> | 2014-06-20 18:03:31 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-06-20 18:03:31 +0200 |
commit | 9ee34997bf0787ce4aaee1fafc475e0728bec61d (patch) | |
tree | 204ac6fffea9db20007b5d48a8ec195616007d01 | |
parent | d7c007ec13d00ba15e6a43d20f7af358a2ea773e (diff) |
DafnyExtension: Minor change to deal with a change in the Boogie command-line options
-rw-r--r-- | Source/DafnyExtension/DafnyDriver.cs | 5 |
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) {
|