diff options
author | leino <unknown> | 2015-11-11 17:36:58 -0800 |
---|---|---|
committer | leino <unknown> | 2015-11-11 17:36:58 -0800 |
commit | cfd717411a1d82e4d0b1ad845cbe0984ecc1618f (patch) | |
tree | b580a8dcd73cfefbb24d7b5c13102c82b59165f1 /Test | |
parent | 7cc9a11d13a1d43d6e7beb4f874bb086f73804c4 (diff) | |
parent | 324c2f4bf8842cce7922e7ff7972216dfc06546f (diff) |
Merge
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny4/Bug101.dfy | 19 | ||||
-rw-r--r-- | Test/dafny4/Bug101.dfy.expect | 8 | ||||
-rw-r--r-- | Test/dafny4/Bug99.dfy | 11 | ||||
-rw-r--r-- | Test/dafny4/Bug99.dfy.expect | 2 |
4 files changed, 40 insertions, 0 deletions
diff --git a/Test/dafny4/Bug101.dfy b/Test/dafny4/Bug101.dfy new file mode 100644 index 00000000..878ed57a --- /dev/null +++ b/Test/dafny4/Bug101.dfy @@ -0,0 +1,19 @@ +// RUN: %dafny /compile:0 "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+predicate P(i:int) { true }
+
+lemma Tester()
+{
+// forall i ensures false ==> P(i) {}
+ forall i ensures P(i) <== false {}
+ assert forall i :: P(i) ==> false;
+ assert P(0);
+ assert false;
+}
+
+
+
+
+
+
diff --git a/Test/dafny4/Bug101.dfy.expect b/Test/dafny4/Bug101.dfy.expect new file mode 100644 index 00000000..a4e5f4b3 --- /dev/null +++ b/Test/dafny4/Bug101.dfy.expect @@ -0,0 +1,8 @@ +Bug101.dfy(10,11): Error: assertion violation
+Execution trace:
+ (0,0): anon0
+ (0,0): anon6_Else
+ (0,0): anon7_Then
+ (0,0): anon5
+
+Dafny program verifier finished with 2 verified, 1 error
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
|