summaryrefslogtreecommitdiff
path: root/Source/Dafny/DafnyOptions.cs
diff options
context:
space:
mode:
authorGravatar Michael Lowell Roberts <mirobert@microsoft.com>2015-07-13 10:40:35 -0700
committerGravatar Michael Lowell Roberts <mirobert@microsoft.com>2015-07-13 10:40:35 -0700
commitfe501d243c0413db8ae85bda174d0761da00d330 (patch)
treecfc261b4d99ad7ccd247ab9bfcbe28b018bda44e /Source/Dafny/DafnyOptions.cs
parent7f679fea2cf58661c242481306f528055cd2c3c7 (diff)
[IronDafny] implemented workaround for "import opened" bug(s).
Diffstat (limited to 'Source/Dafny/DafnyOptions.cs')
-rw-r--r--Source/Dafny/DafnyOptions.cs27
1 files changed, 26 insertions, 1 deletions
diff --git a/Source/Dafny/DafnyOptions.cs b/Source/Dafny/DafnyOptions.cs
index a3b26f2a..978525f3 100644
--- a/Source/Dafny/DafnyOptions.cs
+++ b/Source/Dafny/DafnyOptions.cs
@@ -15,7 +15,11 @@ namespace Microsoft.Dafny
public override string VersionNumber {
get {
- return System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion;
+ return System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion
+#if ENABLE_IRONDAFNY
+ + "[IronDafny]"
+#endif
+ ;
}
}
public override string VersionSuffix {
@@ -59,6 +63,13 @@ namespace Microsoft.Dafny
public bool PrintStats = false;
public bool PrintFunctionCallGraph = false;
public bool WarnShadowing = false;
+ public bool IronDafny =
+#if ENABLE_IRONDAFNY
+ true
+#else
+ false
+#endif
+ ;
protected override bool ParseOption(string name, Bpl.CommandLineOptionEngine.CommandLineParseState ps) {
var args = ps.args; // convenient synonym
@@ -201,6 +212,16 @@ namespace Microsoft.Dafny
return true;
}
+ case "noIronDafny": {
+ IronDafny = false;
+ return true;
+ }
+
+ case "ironDafny": {
+ IronDafny = true;
+ return true;
+ }
+
default:
break;
}
@@ -301,6 +322,10 @@ namespace Microsoft.Dafny
/funcCallGraph Print out the function call graph. Format is: func,mod=callee*
/warnShadowing Emits a warning if the name of a declared variable caused another variable
to be shadowed
+ /ironDafny Enable experimental features needed to support Ironclad/Ironfleet. Use of
+ these features may cause your code to become incompatible with future
+ releases of Dafny.
+ /noIronDafny Disable Ironclad/Ironfleet features, if enabled by default.
");
base.Usage(); // also print the Boogie options
}