summaryrefslogtreecommitdiff
path: root/Test/og/lock.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2013-12-10 18:03:10 -0800
committerGravatar qadeer <unknown>2013-12-10 18:03:10 -0800
commit8f143f70ce8a013f0273c885c184b5f96432943a (patch)
tree7425b450c01e91cd8026967bcb4130c4efb496c9 /Test/og/lock.bpl
parentae0332cea1ff9cc65a239fddbc588cbaf73ac140 (diff)
some refactoring of QED stuff
Diffstat (limited to 'Test/og/lock.bpl')
-rw-r--r--Test/og/lock.bpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/og/lock.bpl b/Test/og/lock.bpl
index 4c019846..0b250b6d 100644
--- a/Test/og/lock.bpl
+++ b/Test/og/lock.bpl
@@ -23,7 +23,7 @@ procedure {:yields} {:stable} Customer()
}
procedure {:yields} Enter()
-ensures {:atomic} {:phase 0} |{ A: assume !b; b := true; return true; }|;
+ensures {:atomic 0} |{ A: assume !b; b := true; return true; }|;
{
var status: bool;
L:
@@ -42,11 +42,11 @@ ensures {:atomic} {:phase 0} |{ A: assume !b; b := true; return true; }|;
}
procedure CAS(prev: bool, next: bool) returns (status: bool);
-ensures {:atomic} |{
+ensures {:atomic -1} |{
A: goto B, C;
B: assume b == prev; b := next; status := true; return true;
C: status := false; return true;
}|;
procedure {:yields} Leave();
-ensures {:atomic} |{ A: b := false; return true; }|;
+ensures {:atomic -1} |{ A: b := false; return true; }|;