summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2016-01-25 11:30:02 -0800
committerGravatar qunyanm <unknown>2016-01-25 11:30:02 -0800
commit436966ef61a3e4330bbe705d0d0319fcde5f3099 (patch)
tree1160382ac78271c1c35fbdc918c40e09447f99ad /Test
parent9cf02f9daaba01d48621a932c4984753337fbbc5 (diff)
Fix issue 121. Don't split QuantifierExpr that are empty.
Diffstat (limited to 'Test')
-rw-r--r--Test/dafny4/Bug121.dfy18
-rw-r--r--Test/dafny4/Bug121.dfy.expect2
2 files changed, 20 insertions, 0 deletions
diff --git a/Test/dafny4/Bug121.dfy b/Test/dafny4/Bug121.dfy
new file mode 100644
index 00000000..13798fa8
--- /dev/null
+++ b/Test/dafny4/Bug121.dfy
@@ -0,0 +1,18 @@
+// RUN: %dafny /compile:0 /autoTriggers:1 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+method Try (a:int, b:int, c:int)
+{
+ forall
+ ensures a * c == a * c;
+ ensures b * c == b * c;
+ {
+ }
+}
+
+
+
+
+
+
+
diff --git a/Test/dafny4/Bug121.dfy.expect b/Test/dafny4/Bug121.dfy.expect
new file mode 100644
index 00000000..069e7767
--- /dev/null
+++ b/Test/dafny4/Bug121.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 2 verified, 0 errors