diff options
author | wuestholz <unknown> | 2014-06-20 18:03:31 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2014-06-20 18:03:31 +0200 |
commit | ff6013dc188625ba11832b56138722161e3bb5d0 (patch) | |
tree | 5faa8eef5769415d7f8c1269e063a1759cd24ed9 /Source/DafnyExtension | |
parent | 92991242c8ea361b8da5a83bd19462b216387618 (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.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) {
|