diff options
author | qadeer <unknown> | 2014-04-20 21:10:21 -0700 |
---|---|---|
committer | qadeer <unknown> | 2014-04-20 21:10:21 -0700 |
commit | c29f461136e76fd406677e1e12245ee69368190f (patch) | |
tree | 9fc0ed9bffc7214b04f44f1efa8e900024b11b73 | |
parent | b23a93d04bd66014854af44258264f9867c73f55 (diff) |
added another sample
-rw-r--r-- | Test/og/termination.bpl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/og/termination.bpl b/Test/og/termination.bpl new file mode 100644 index 00000000..80109bf4 --- /dev/null +++ b/Test/og/termination.bpl @@ -0,0 +1,17 @@ +procedure {:yields} X();
+ensures {:atomic 0} |{ A: return true; }|;
+
+procedure {:yields} Y();
+ensures {:left 0} |{ A: return true; }|;
+
+procedure {:yields} main() {
+ yield;
+ call X();
+ while (*)
+// invariant {:terminates} true;
+ {
+ call Y();
+ }
+ yield;
+ assert {:phase 1} true;
+}
\ No newline at end of file |