diff options
author | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-23 00:10:05 -0700 |
---|---|---|
committer | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-08-23 00:10:05 -0700 |
commit | 084f7c82033315d605dce606ce64a26e1dcc0b3d (patch) | |
tree | 797048b52b1010ae192d4aea91a03892b934bbc1 | |
parent | e0dbb8af7290beb81350acd0088866c0ca54acb8 (diff) |
Add a sanity check in QuantifiersCollection
-rw-r--r-- | Source/Dafny/Triggers/QuantifiersCollection.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Dafny/Triggers/QuantifiersCollection.cs b/Source/Dafny/Triggers/QuantifiersCollection.cs index 1d5625cd..0ef59bad 100644 --- a/Source/Dafny/Triggers/QuantifiersCollection.cs +++ b/Source/Dafny/Triggers/QuantifiersCollection.cs @@ -34,6 +34,7 @@ namespace Microsoft.Dafny.Triggers { readonly List<QuantifierWithTriggers> quantifiers;
internal QuantifiersCollection(IEnumerable<QuantifierExpr> quantifiers, ErrorReporter reporter) {
+ Contract.Requires(quantifiers.All(q => q.SplitQuantifier == null));
this.reporter = reporter;
this.quantifiers = quantifiers.Select(q => new QuantifierWithTriggers(q)).ToList();
}
|