summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Dan Liew <daniel.liew@imperial.ac.uk>2015-06-28 02:19:12 +0100
committerGravatar Dan Liew <daniel.liew@imperial.ac.uk>2015-06-28 02:30:14 +0100
commit7f4e6b0fab58bb3028cd0f1734fc97b3feafefdf (patch)
tree3b8c5537990c5f0137cd218c7030fb1b2f4738e0 /Source
parent9c307b9fe6443f43195fe47915d0b6c09ec20f8d (diff)
Fix issue #16 reported by @crazykt
Previously when Boogie was passed the ``-proc:<NAME>`` argument on the command line it would verify any procedure whose name contained ``<NAME>`` which doesn't seem like correct behaviour. Now Boogie only tries to verify a procedure only if its name matches ``<NAME>`` exactly. I've added several test cases to check Boogie behaves as expected.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/CommandLineOptions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/CommandLineOptions.cs b/Source/Core/CommandLineOptions.cs
index 1c7f40d4..2be1cdf7 100644
--- a/Source/Core/CommandLineOptions.cs
+++ b/Source/Core/CommandLineOptions.cs
@@ -1700,7 +1700,7 @@ namespace Microsoft.Boogie {
// no preference
return true;
}
- return ProcsToCheck.Any(s => 0 <= methodFullname.IndexOf(s));
+ return ProcsToCheck.Contains(methodFullname);
}
public virtual StringCollection ParseNamedArgumentList(string argList) {