From e60e05a198970d64ea50b99bc605240d7a04e4cc Mon Sep 17 00:00:00 2001 From: qadeer Date: Mon, 15 Jun 2015 20:45:32 -0700 Subject: fixed bug reported by Chris --- Test/civl/chris4.bpl | 16 ++++++++++++++++ Test/civl/chris4.bpl.expect | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 Test/civl/chris4.bpl create mode 100644 Test/civl/chris4.bpl.expect (limited to 'Test') diff --git a/Test/civl/chris4.bpl b/Test/civl/chris4.bpl new file mode 100644 index 00000000..7a19f975 --- /dev/null +++ b/Test/civl/chris4.bpl @@ -0,0 +1,16 @@ +// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +procedure{:yields}{:layer 94,95} Test() +{ + yield; + L: + yield; +} + +procedure{:yields}{:layer 94,95} Test2() +{ + yield; + assert{:layer 94} 2 + 2 == 3; + L: + yield; +} diff --git a/Test/civl/chris4.bpl.expect b/Test/civl/chris4.bpl.expect new file mode 100644 index 00000000..d3d00979 --- /dev/null +++ b/Test/civl/chris4.bpl.expect @@ -0,0 +1,5 @@ +chris4.bpl(13,3): Error BP5001: This assertion might not hold. +Execution trace: + chris4.bpl(12,3): anon0 + +Boogie program verifier finished with 1 verified, 1 error -- cgit v1.2.3