summaryrefslogtreecommitdiff
path: root/Test/dafny0/snapshots/Snapshots5.v1.dfy
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 /Test/dafny0/snapshots/Snapshots5.v1.dfy
parent8041bef009e34bb3c5e81ffe7b906ae4347e85d3 (diff)
Added a test.
Diffstat (limited to 'Test/dafny0/snapshots/Snapshots5.v1.dfy')
-rw-r--r--Test/dafny0/snapshots/Snapshots5.v1.dfy27
1 files changed, 27 insertions, 0 deletions
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;