summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2011-09-11 13:20:52 -0700
committerGravatar Rustan Leino <leino@microsoft.com>2011-09-11 13:20:52 -0700
commit0d06cb1b6a16fee1a789f3b1b674d59cfcd11d92 (patch)
tree53d25d76f411daebd462d5deff6ffbb244478891 /Source/Core
parent1561cbe8636d0a083aef03532aeb8153de372d42 (diff)
Dafny: generate a compiler error upon encountering an assume statement
Dafny: don't compile programs unless all methods have been verified (or a forced compile is requested)
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/CommandLineOptions.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/CommandLineOptions.cs b/Source/Core/CommandLineOptions.cs
index f0e325e8..f7ccca9c 100644
--- a/Source/Core/CommandLineOptions.cs
+++ b/Source/Core/CommandLineOptions.cs
@@ -394,7 +394,7 @@ namespace Microsoft.Boogie {
private string methodToBreakOn = null;
[ContractInvariantMethod]
void ObjectInvariant5() {
- Contract.Invariant(cce.NonNullElements(procsToCheck, true));
+ Contract.Invariant(cce.NonNullElements(ProcsToCheck, true));
Contract.Invariant(cce.NonNullElements(methodsToTranslateClass, true));
Contract.Invariant(cce.NonNullElements(methodsToTranslateClassQualified, true));
Contract.Invariant(cce.NonNullElements(methodsToTranslateExclude));
@@ -406,7 +406,7 @@ namespace Microsoft.Boogie {
}
[Rep]
- private List<string/*!*/> procsToCheck = null; // null means "no restriction"
+ public List<string/*!*/> ProcsToCheck = null; // null means "no restriction"
[Rep]
private List<string/*!*/> methodsToTranslateSubstring = null; // null means "no restriction"
[Rep]
@@ -606,11 +606,11 @@ namespace Microsoft.Boogie {
case "-proc":
case "/proc":
- if (procsToCheck == null) {
- procsToCheck = new List<string/*!*/>();
+ if (ProcsToCheck == null) {
+ ProcsToCheck = new List<string/*!*/>();
}
if (ps.ConfirmArgumentCount(1)) {
- procsToCheck.Add(cce.NonNull(args[ps.i]));
+ ProcsToCheck.Add(cce.NonNull(args[ps.i]));
}
break;
@@ -1551,11 +1551,11 @@ namespace Microsoft.Boogie {
public bool UserWantsToCheckRoutine(string methodFullname) {
Contract.Requires(methodFullname != null);
- if (procsToCheck == null) {
+ if (ProcsToCheck == null) {
// no preference
return true;
}
- return Contract.Exists(procsToCheck, s => 0 <= methodFullname.IndexOf(s));
+ return Contract.Exists(ProcsToCheck, s => 0 <= methodFullname.IndexOf(s));
}
#if CCI