diff options
author | Bryan Parno <parno@microsoft.com> | 2014-10-27 16:15:52 -0700 |
---|---|---|
committer | Bryan Parno <parno@microsoft.com> | 2014-10-27 16:15:52 -0700 |
commit | 23ab50b9c9ae5d9e2030e28259a17bfab33af732 (patch) | |
tree | d05d303528fb20494d23992de20b129bb4bbc524 /Source/Dafny/DafnyOptions.cs | |
parent | e6aad7427332f955386099f3b4326caa1aab90dc (diff) |
Add a DafnyCC option that disables some of Dafny's cleverness to better match DafnyCC's capabilities
Diffstat (limited to 'Source/Dafny/DafnyOptions.cs')
-rw-r--r-- | Source/Dafny/DafnyOptions.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Dafny/DafnyOptions.cs b/Source/Dafny/DafnyOptions.cs index f9146cca..8c36ece9 100644 --- a/Source/Dafny/DafnyOptions.cs +++ b/Source/Dafny/DafnyOptions.cs @@ -31,6 +31,7 @@ namespace Microsoft.Dafny }
public bool DisallowSoundnessCheating = false;
+ public bool Dafnycc = false;
public int Induction = 3;
public int InductionHeuristic = 6;
public string DafnyPrelude = null;
@@ -118,6 +119,13 @@ namespace Microsoft.Dafny return true;
}
+ case "dafnycc":
+ Dafnycc = true;
+ Induction = 0;
+ Compile = false;
+ UseAbstractInterpretation = false; // /noinfer
+ return true;
+
case "noCheating": {
int cheat = 0; // 0 is default, allows cheating
if (ps.GetNumericArgument(ref cheat, 2)) {
@@ -209,6 +217,7 @@ namespace Microsoft.Dafny 0 (default) - don't write the compiled Dafny program (but
still compile it, if /compile indicates to do so)
1 - write the compiled Dafny program as a .cs file
+ /dafnycc Disable features not supported by DafnyCC
/noCheating:<n>
0 (default) - allow assume statements and free invariants
1 - treat all assumptions as asserts, and drop free.
|