summaryrefslogtreecommitdiff
path: root/Test/dafny4
diff options
context:
space:
mode:
authorGravatar qunyanm <unknown>2015-11-06 13:51:08 -0800
committerGravatar qunyanm <unknown>2015-11-06 13:51:08 -0800
commit23067608f2d8855abd64982cabfe7f0c7f8e4f5a (patch)
treea52a4b8af99584e9bd951d9e484f477eedb4524f /Test/dafny4
parentd3c778854c2dc792a2dfbd9c5b05d667d18fb4c4 (diff)
Fix issue 99. When annotate a quantifier expr that has a SplitQuantifier, we
need exclude the private terms (the ones that includes the quantifier expr's bv) from it exported terms.
Diffstat (limited to 'Test/dafny4')
-rw-r--r--Test/dafny4/Bug99.dfy11
-rw-r--r--Test/dafny4/Bug99.dfy.expect2
2 files changed, 13 insertions, 0 deletions
diff --git a/Test/dafny4/Bug99.dfy b/Test/dafny4/Bug99.dfy
new file mode 100644
index 00000000..3f95ce9f
--- /dev/null
+++ b/Test/dafny4/Bug99.dfy
@@ -0,0 +1,11 @@
+// RUN: %dafny /autoTriggers:1 /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+predicate P(e:int, p:int) { true }
+predicate Q(i:int, t:int)
+
+lemma Tester(x:int)
+{
+ assert forall i :: Q(i, x) ==> (forall p {:trigger P(i, p)} :: P(i, p));
+
+}
diff --git a/Test/dafny4/Bug99.dfy.expect b/Test/dafny4/Bug99.dfy.expect
new file mode 100644
index 00000000..73ba063c
--- /dev/null
+++ b/Test/dafny4/Bug99.dfy.expect
@@ -0,0 +1,2 @@
+
+Dafny program verifier finished with 4 verified, 0 errors