summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorGravatar Jason Koenig <unknown>2011-06-30 15:24:13 -0700
committerGravatar Jason Koenig <unknown>2011-06-30 15:24:13 -0700
commitb96a31295e5eb0d155cce20cb1d4cb487ecf7fb5 (patch)
treef81cc4632250a1b2860a25056d85d8eb7a74aa7b /Source/Core
parent0262f74208b26a7f1cd089274d00b3440731c45d (diff)
Added option to force Dafny compilation, even if verification fails.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/CommandLineOptions.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/CommandLineOptions.cs b/Source/Core/CommandLineOptions.cs
index 8f2d0c68..22264c8f 100644
--- a/Source/Core/CommandLineOptions.cs
+++ b/Source/Core/CommandLineOptions.cs
@@ -159,6 +159,7 @@ namespace Microsoft.Boogie {
public string DafnyPrelude = null;
public string DafnyPrintFile = null;
public bool Compile = true;
+ public bool ForceCompile = false;
public enum ProverWarnings {
None,
@@ -712,8 +713,9 @@ namespace Microsoft.Boogie {
case "-compile":
case "/compile": {
int compile = 0;
- if (ps.GetNumericArgument(ref compile, 2)) {
- Compile = compile == 1;
+ if (ps.GetNumericArgument(ref compile, 3)) {
+ Compile = compile == 1 || compile == 2;
+ ForceCompile = compile == 2;
}
break;
}
@@ -2097,6 +2099,8 @@ namespace Microsoft.Boogie {
/compile:<n> : 0 - do not compile Dafny program
1 (default) - upon successful verification of the Dafny
program, compile Dafny program to C# program out.cs
+ 2 - always attempt to compile Dafny program to C# program
+ out.cs, regardless of verification outcome
---- Boogie options --------------------------------------------------------