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.v1.bpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Test/snapshots/Snapshots40.v1.bpl (limited to 'Test/snapshots/Snapshots40.v1.bpl') diff --git a/Test/snapshots/Snapshots40.v1.bpl b/Test/snapshots/Snapshots40.v1.bpl new file mode 100644 index 00000000..e1c505f8 --- /dev/null +++ b/Test/snapshots/Snapshots40.v1.bpl @@ -0,0 +1,15 @@ +procedure {:checksum "-1"} Foo(b: bool); + +implementation {:id "Foo"} {:checksum "2"} Foo(b: bool) +{ + var r: int; + + assert b; + 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; -- cgit v1.2.3