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/termination2.bpl | |
parent | 95a9ed0282811aa2bc3170f41b8b63508918b28e (diff) |
renamed og to civl
Diffstat (limited to 'Test/civl/termination2.bpl')
-rw-r--r-- | Test/civl/termination2.bpl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/civl/termination2.bpl b/Test/civl/termination2.bpl new file mode 100644 index 00000000..840c27c1 --- /dev/null +++ b/Test/civl/termination2.bpl @@ -0,0 +1,19 @@ +// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+procedure {:yields} {:layer 0} X();
+ensures {:atomic} |{ A: return true; }|;
+
+procedure {:yields} {:layer 0} Y();
+ensures {:left} |{ A: return true; }|;
+
+procedure {:yields} {:layer 1} main() {
+ yield;
+ call X();
+ while (*)
+ invariant {:terminates} {:layer 1} true;
+ {
+ call Y();
+ }
+ yield;
+ assert {:layer 1} true;
+}
|