summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-07-13 17:06:51 +0200
committerGravatar wuestholz <unknown>2014-07-13 17:06:51 +0200
commit67e7cf6d379e48fde4998423894e6dd5ea482543 (patch)
tree46afbb5c12389f968dd6ba277c17327b854ae000
parent8041bef009e34bb3c5e81ffe7b906ae4347e85d3 (diff)
Added a test.
-rw-r--r--Test/dafny0/snapshots/Snapshots5.v0.dfy26
-rw-r--r--Test/dafny0/snapshots/Snapshots5.v1.dfy27
-rw-r--r--Test/dafny0/snapshots/runtest.snapshot2
-rw-r--r--Test/dafny0/snapshots/runtest.snapshot.expect6
4 files changed, 60 insertions, 1 deletions
diff --git a/Test/dafny0/snapshots/Snapshots5.v0.dfy b/Test/dafny0/snapshots/Snapshots5.v0.dfy
new file mode 100644
index 00000000..b81c1a2b
--- /dev/null
+++ b/Test/dafny0/snapshots/Snapshots5.v0.dfy
@@ -0,0 +1,26 @@
+method M()
+{
+ N();
+ if (*)
+ {
+
+ }
+ else
+ {
+ assert (forall b: bool :: b || !b) || 0 != 0;
+ }
+ N();
+ assert (forall b: bool :: b || !b) || 3 != 3;
+ if (*)
+ {
+
+ }
+ else
+ {
+ assert (forall b: bool :: b || !b) || 1 != 1;
+ }
+}
+
+
+method N()
+ ensures (forall b: bool :: b || !b) || 2 != 2;
diff --git a/Test/dafny0/snapshots/Snapshots5.v1.dfy b/Test/dafny0/snapshots/Snapshots5.v1.dfy
new file mode 100644
index 00000000..05dbced0
--- /dev/null
+++ b/Test/dafny0/snapshots/Snapshots5.v1.dfy
@@ -0,0 +1,27 @@
+method M()
+{
+ N();
+ if (*)
+ {
+
+ }
+ else
+ {
+ assert (forall b: bool :: b || !b) || 0 != 0;
+ }
+ N();
+ assert (forall b: bool :: b || !b) || 3 != 3;
+ if (*)
+ {
+
+ }
+ else
+ {
+ assert (exists b: bool :: b || !b) || 4 != 4;
+ }
+ assert (exists b: bool :: b || !b) || 5 != 5;
+}
+
+
+method N()
+ ensures (forall b: bool :: b || !b) || 2 != 2;
diff --git a/Test/dafny0/snapshots/runtest.snapshot b/Test/dafny0/snapshots/runtest.snapshot
index 8c49e6ef..d8c41b5c 100644
--- a/Test/dafny0/snapshots/runtest.snapshot
+++ b/Test/dafny0/snapshots/runtest.snapshot
@@ -1,2 +1,2 @@
-// RUN: %dafny /compile:0 /verifySnapshots:2 /verifySeparately Snapshots0.dfy Snapshots1.dfy Snapshots2.dfy Snapshots3.dfy Snapshots4.dfy > "%t"
+// RUN: %dafny /compile:0 /verifySnapshots:2 /verifySeparately Snapshots0.dfy Snapshots1.dfy Snapshots2.dfy Snapshots3.dfy Snapshots4.dfy Snapshots5.dfy > "%t"
// RUN: %diff "%s.expect" "%t"
diff --git a/Test/dafny0/snapshots/runtest.snapshot.expect b/Test/dafny0/snapshots/runtest.snapshot.expect
index 7a93dece..d0a804a3 100644
--- a/Test/dafny0/snapshots/runtest.snapshot.expect
+++ b/Test/dafny0/snapshots/runtest.snapshot.expect
@@ -53,3 +53,9 @@ Execution trace:
(0,0): anon3_Else
Dafny program verifier finished with 1 verified, 2 errors
+
+-------------------- Snapshots5.dfy --------------------
+
+Dafny program verifier finished with 3 verified, 0 errors
+
+Dafny program verifier finished with 3 verified, 0 errors