From 740f004792b49e59f3980150cb8d543737adbc4b Mon Sep 17 00:00:00 2001 From: Valentin Wüstholz Date: Mon, 20 Jul 2015 18:43:27 +0200 Subject: Added another test. --- Test/snapshots/Snapshots40.v0.bpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Test/snapshots/Snapshots40.v0.bpl (limited to 'Test/snapshots/Snapshots40.v0.bpl') diff --git a/Test/snapshots/Snapshots40.v0.bpl b/Test/snapshots/Snapshots40.v0.bpl new file mode 100644 index 00000000..27839752 --- /dev/null +++ b/Test/snapshots/Snapshots40.v0.bpl @@ -0,0 +1,14 @@ +procedure {:checksum "-1"} Foo(b: bool); + +implementation {:id "Foo"} {:checksum "0"} Foo(b: bool) +{ + var r: int; + + assert b; + call r := Sum(42); + assert r != 0; +} + +procedure {:checksum "1"} Sum(n: int) returns (r: int); + requires 0 <= n; + ensures n <= r; -- cgit v1.2.3