summaryrefslogtreecommitdiff
path: root/Source/Dafny/Triggers/QuantifierSplitter.cs
diff options
context:
space:
mode:
authorGravatar leino <unknown>2015-11-27 18:03:34 -0800
committerGravatar leino <unknown>2015-11-27 18:03:34 -0800
commit33ae6b4bf0dc3f2c80abbd3c26356f16ded3aaee (patch)
tree5754d8d56d31a14b20736a09227c4b253e9e2c4f /Source/Dafny/Triggers/QuantifierSplitter.cs
parent66d8663d16def735d8983f67aaffbf342e88a5f5 (diff)
parentb8fad094ad74180ca16670bebe602737d856b5da (diff)
Merge
Diffstat (limited to 'Source/Dafny/Triggers/QuantifierSplitter.cs')
-rw-r--r--Source/Dafny/Triggers/QuantifierSplitter.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Dafny/Triggers/QuantifierSplitter.cs b/Source/Dafny/Triggers/QuantifierSplitter.cs
index 865aa33e..e46b64fb 100644
--- a/Source/Dafny/Triggers/QuantifierSplitter.cs
+++ b/Source/Dafny/Triggers/QuantifierSplitter.cs
@@ -114,6 +114,18 @@ namespace Microsoft.Dafny.Triggers {
}
}
+ protected override void VisitOneStmt(Statement stmt) {
+ Contract.Requires(stmt != null);
+ if (stmt is ForallStmt) {
+ ForallStmt s = (ForallStmt)stmt;
+ if (s.ForallExpressions != null) {
+ foreach (Expression expr in s.ForallExpressions) {
+ VisitOneExpr(expr);
+ }
+ }
+ }
+ }
+
/// <summary>
/// See comments above definition of splits for reason why this method exists
/// </summary>