From bad6c014fdf57c5674a840b32047c7db54cd7aba Mon Sep 17 00:00:00 2001 From: Shaz Qadeer Date: Fri, 9 Oct 2015 14:58:15 -0700 Subject: bug fix --- Test/civl/chris7.bpl | 14 ++++++++++++++ Test/civl/chris7.bpl.expect | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 Test/civl/chris7.bpl create mode 100644 Test/civl/chris7.bpl.expect (limited to 'Test') diff --git a/Test/civl/chris7.bpl b/Test/civl/chris7.bpl new file mode 100644 index 00000000..a8fd25d3 --- /dev/null +++ b/Test/civl/chris7.bpl @@ -0,0 +1,14 @@ +// RUN: %boogie -noinfer -useArrayTheory "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +procedure{:layer 1}{:extern} P() returns(i:int); + +procedure{:yields}{:layer 1,1}{:extern} Y({:layer 1}x:int); + +procedure{:yields}{:layer 1,2} A({:layer 1}y:int) + ensures {:atomic} |{ A: return true; }|; +{ + var{:layer 1} tmp:int; + call Y(y); + call tmp := P(); + call Y(tmp); +} diff --git a/Test/civl/chris7.bpl.expect b/Test/civl/chris7.bpl.expect new file mode 100644 index 00000000..37fad75c --- /dev/null +++ b/Test/civl/chris7.bpl.expect @@ -0,0 +1,2 @@ + +Boogie program verifier finished with 1 verified, 0 errors -- cgit v1.2.3