diff options
author | Shaz Qadeer <qadeer@microsoft.com> | 2015-10-09 14:58:15 -0700 |
---|---|---|
committer | Shaz Qadeer <qadeer@microsoft.com> | 2015-10-09 14:58:15 -0700 |
commit | bad6c014fdf57c5674a840b32047c7db54cd7aba (patch) | |
tree | 1146915b170dbf4a7603c05e682c01c74c5101ce /Test | |
parent | cbbced423ed4887ea78628066bc57c4aa36997d1 (diff) |
bug fix
Diffstat (limited to 'Test')
-rw-r--r-- | Test/civl/chris7.bpl | 14 | ||||
-rw-r--r-- | Test/civl/chris7.bpl.expect | 2 |
2 files changed, 16 insertions, 0 deletions
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 |