summaryrefslogtreecommitdiff
path: root/Test/snapshots/Snapshots9.v1.bpl
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2014-05-30 18:41:15 +0200
committerGravatar wuestholz <unknown>2014-05-30 18:41:15 +0200
commit1dc4ec5049b6faa76150bb5a9efd7674c53376e2 (patch)
treecae86e0b55354a625765bc73c93183fd625e5be7 /Test/snapshots/Snapshots9.v1.bpl
parent44e2777a963f2cd14523093055a86803252049be (diff)
Added more tests (snapshots).
Diffstat (limited to 'Test/snapshots/Snapshots9.v1.bpl')
-rw-r--r--Test/snapshots/Snapshots9.v1.bpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/snapshots/Snapshots9.v1.bpl b/Test/snapshots/Snapshots9.v1.bpl
new file mode 100644
index 00000000..d1886a6d
--- /dev/null
+++ b/Test/snapshots/Snapshots9.v1.bpl
@@ -0,0 +1,16 @@
+procedure {:checksum "0"} M(n: int);
+ requires 0 < n;
+
+implementation {:id "M"} {:checksum "1"} M(n: int)
+{
+ var x: int;
+
+ call x := N(n);
+
+ assert 0 <= x;
+}
+
+procedure {:checksum "3"} N(n: int) returns (r: int);
+ requires 0 < n;
+ // Change: weaker postcondition
+ ensures 0 <= r;