From a030a9cd291e5d17d09a8d1921ae5a9c9c01c2dd Mon Sep 17 00:00:00 2001 From: Valentin Wüstholz Date: Mon, 20 Jul 2015 07:12:43 +0200 Subject: Added more tests. --- Test/snapshots/Snapshots38.v2.bpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Test/snapshots/Snapshots38.v2.bpl (limited to 'Test/snapshots/Snapshots38.v2.bpl') diff --git a/Test/snapshots/Snapshots38.v2.bpl b/Test/snapshots/Snapshots38.v2.bpl new file mode 100644 index 00000000..5c4b69d6 --- /dev/null +++ b/Test/snapshots/Snapshots38.v2.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 42 <= r; +} + +procedure {:checksum "3"} Sum(n: int) returns (r: int); + requires 0 <= n; + ensures n != 0 ==> n <= r; -- cgit v1.2.3