summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/Core/CommandLineOptions.cs18
1 files changed, 13 insertions, 5 deletions
diff --git a/Source/Core/CommandLineOptions.cs b/Source/Core/CommandLineOptions.cs
index 215e17da..60194def 100644
--- a/Source/Core/CommandLineOptions.cs
+++ b/Source/Core/CommandLineOptions.cs
@@ -737,10 +737,18 @@ namespace Microsoft.Boogie {
}
}
- public List<string/*!*/> ProcsToCheck = null; // null means "no restriction"
+ public IEnumerable<string/*!*/> ProcsToCheck {
+ get {
+ Contract.Ensures(cce.NonNullElements(Contract.Result<IEnumerable<string/*!*/>>(), true));
+ return this.procsToCheck != null ? this.procsToCheck.AsEnumerable() : null;
+ }
+ }
+
+ private List<string/*!*/> procsToCheck = null; // null means "no restriction"
+
[ContractInvariantMethod]
void ObjectInvariant5() {
- Contract.Invariant(cce.NonNullElements(ProcsToCheck, true));
+ Contract.Invariant(cce.NonNullElements(this.procsToCheck, true));
Contract.Invariant(Ai != null);
}
@@ -814,11 +822,11 @@ namespace Microsoft.Boogie {
return true;
case "proc":
- if (ProcsToCheck == null) {
- ProcsToCheck = new List<string/*!*/>();
+ if (this.procsToCheck == null) {
+ this.procsToCheck = new List<string/*!*/>();
}
if (ps.ConfirmArgumentCount(1)) {
- ProcsToCheck.Add(cce.NonNull(args[ps.i]));
+ this.procsToCheck.Add(cce.NonNull(args[ps.i]));
}
return true;