summaryrefslogtreecommitdiff
path: root/Source/Dafny/DafnyOptions.cs
diff options
context:
space:
mode:
authorGravatar Bryan Parno <parno@microsoft.com>2014-10-24 14:43:40 -0700
committerGravatar Bryan Parno <parno@microsoft.com>2014-10-24 14:43:40 -0700
commitc9e1adac517c5954e628c4088e4efb79b4ca8cec (patch)
treebb33f46a08c738264f417412b6034297e5e23f37 /Source/Dafny/DafnyOptions.cs
parent40f36d68b8cb9489d052ababada29539c7d8de92 (diff)
Add an option to use reduce Z3's knowledge of non-linear arithmetic.
Results in more manual work, but it also produces more predictable behavior.
Diffstat (limited to 'Source/Dafny/DafnyOptions.cs')
-rw-r--r--Source/Dafny/DafnyOptions.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Dafny/DafnyOptions.cs b/Source/Dafny/DafnyOptions.cs
index 31fe6edd..b198e224 100644
--- a/Source/Dafny/DafnyOptions.cs
+++ b/Source/Dafny/DafnyOptions.cs
@@ -41,6 +41,7 @@ namespace Microsoft.Dafny
public bool RunAfterCompile = false;
public bool SpillTargetCode = false;
public bool DisallowIncludes = false;
+ public bool DisableNLarith = false;
protected override bool ParseOption(string name, Bpl.CommandLineOptionEngine.CommandLineParseState ps) {
var args = ps.args; // convenient synonym
@@ -103,6 +104,11 @@ namespace Microsoft.Dafny
DisallowIncludes = true;
return true;
+ case "noNLarith":
+ DisableNLarith = true;
+ this.Z3Options.Add("NL_ARITH=false");
+ return true;
+
default:
break;
}