diff options
author | qadeer <qadeer@microsoft.com> | 2015-04-22 09:26:56 -0700 |
---|---|---|
committer | qadeer <qadeer@microsoft.com> | 2015-04-22 09:26:56 -0700 |
commit | 4c6dd519143fdbc8ecada56d58103d098c6bd18c (patch) | |
tree | abdbf5f883d31236a221a5b95f5f0364e75caf36 /Test/civl/one.bpl | |
parent | 95a9ed0282811aa2bc3170f41b8b63508918b28e (diff) |
renamed og to civl
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..663b2da0 --- /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;
+}
+
|