summaryrefslogtreecommitdiff
path: root/Test/snapshots/Snapshots39.v1.bpl
diff options
context:
space:
mode:
authorGravatar Valentin Wüstholz <wuestholz@gmail.com>2015-07-20 07:12:43 +0200
committerGravatar Valentin Wüstholz <wuestholz@gmail.com>2015-07-20 07:12:43 +0200
commita030a9cd291e5d17d09a8d1921ae5a9c9c01c2dd (patch)
treeab71f29506b2d1138a098492377f77b82e1c9d75 /Test/snapshots/Snapshots39.v1.bpl
parent97628c5279f6b82173833573f0906ee5d2ece99f (diff)
Added more tests.
Diffstat (limited to 'Test/snapshots/Snapshots39.v1.bpl')
-rw-r--r--Test/snapshots/Snapshots39.v1.bpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/snapshots/Snapshots39.v1.bpl b/Test/snapshots/Snapshots39.v1.bpl
new file mode 100644
index 00000000..09850bfc
--- /dev/null
+++ b/Test/snapshots/Snapshots39.v1.bpl
@@ -0,0 +1,14 @@
+procedure {:checksum "-1"} Callee();
+
+implementation {:id "Callee"} {:checksum "2"} Callee()
+{
+ var r: int;
+
+ call r := Sum(42);
+ assert r != 0;
+ assert r == (42 * 43) div 2;
+}
+
+procedure {:checksum "1"} Sum(n: int) returns (r: int);
+ requires 0 <= n;
+ ensures n <= r;