diff options
Diffstat (limited to 'Test/civl/one.bpl')
-rw-r--r-- | Test/civl/one.bpl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Test/civl/one.bpl b/Test/civl/one.bpl new file mode 100644 index 00000000..3b370fa7 --- /dev/null +++ b/Test/civl/one.bpl @@ -0,0 +1,18 @@ +// RUN: %boogie -noinfer "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +var {:layer 0,1} x:int; + +procedure {:yields} {:layer 0,1} Set(v: int); +ensures {:atomic} +|{A: + x := v; return true; +}|; + +procedure {:yields} {:layer 1} B() +{ + yield; + call Set(5); + yield; + assert {:layer 1} x == 5; +} + |