summaryrefslogtreecommitdiff
path: root/Test/civl/chris5.bpl
diff options
context:
space:
mode:
authorGravatar Shaz Qadeer <qadeer@microsoft.com>2015-09-27 22:46:45 -0700
committerGravatar Shaz Qadeer <qadeer@microsoft.com>2015-09-27 22:46:45 -0700
commite7a15ef3363e69b24b70f0e5de5cecc56d501a2b (patch)
tree8fc7b129e85589407d4c3df422fbf644afa830cf /Test/civl/chris5.bpl
parent67ae2df042134ab49c5d9e055213b2c052033962 (diff)
fixed a small bug
Diffstat (limited to 'Test/civl/chris5.bpl')
-rw-r--r--Test/civl/chris5.bpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/civl/chris5.bpl b/Test/civl/chris5.bpl
new file mode 100644
index 00000000..23ebe424
--- /dev/null
+++ b/Test/civl/chris5.bpl
@@ -0,0 +1,19 @@
+// RUN: %boogie -noinfer -useArrayTheory "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+var{:layer 1,1} g:int;
+
+procedure{:layer 1} P(x:int)
+ requires {:layer 1} x == 0;
+{
+}
+
+procedure{:yields}{:layer 1,2} Y(x:int)
+ ensures{:atomic} |{ A: return true; }|;
+{
+ yield;
+
+ call P(x);
+ assert{:layer 1} x == 0;
+
+ yield;
+}