diff options
author | qadeer <unknown> | 2014-07-11 14:00:32 -0700 |
---|---|---|
committer | qadeer <unknown> | 2014-07-11 14:00:32 -0700 |
commit | 5ef33fad3a4d6438d7e3c38388639eff7f08533d (patch) | |
tree | 5b44085b51ba2aa44dd965c62818c2ca74b97d96 /Test/og/termination2.bpl | |
parent | 9abbf5e9060e152fb13c0cd5c9fbbdc3aba19f30 (diff) |
fixed some tests in og
added another test in linear (based on bug reported by Chris)
removed the QED build configuration
Diffstat (limited to 'Test/og/termination2.bpl')
-rw-r--r-- | Test/og/termination2.bpl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/og/termination2.bpl b/Test/og/termination2.bpl new file mode 100644 index 00000000..d0d88a22 --- /dev/null +++ b/Test/og/termination2.bpl @@ -0,0 +1,19 @@ +// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+procedure {:yields} {:phase 0} X();
+ensures {:atomic} |{ A: return true; }|;
+
+procedure {:yields} {:phase 0} Y();
+ensures {:left} |{ A: return true; }|;
+
+procedure {:yields} {:phase 1} main() {
+ yield;
+ call X();
+ while (*)
+ invariant {:terminates} {:phase 1} true;
+ {
+ call Y();
+ }
+ yield;
+ assert {:phase 1} true;
+}
|