summaryrefslogtreecommitdiff
path: root/Test/og/lock.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2013-12-29 19:36:20 -0800
committerGravatar qadeer <unknown>2013-12-29 19:36:20 -0800
commit73ead90c119797eae9042cc30ff338baf819a92f (patch)
treea2f8fb4f15ccb5abbb71cafd299409a4ac490e61 /Test/og/lock.bpl
parent17ba37afd6b86b8854c7d18f45ea8ad3ea9a150b (diff)
made some fixes
Diffstat (limited to 'Test/og/lock.bpl')
-rw-r--r--Test/og/lock.bpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/Test/og/lock.bpl b/Test/og/lock.bpl
index c00560fe..69aba91e 100644
--- a/Test/og/lock.bpl
+++ b/Test/og/lock.bpl
@@ -20,20 +20,22 @@ procedure {:yields} {:stable} Customer()
call Leave();
}
+
+ yield;
}
procedure {:yields} Enter()
ensures {:atomic 1} |{ A: assume !b; b := true; return true; }|;
{
var status: bool;
+ yield;
L:
- yield;
call status := CAS(false, true);
+ yield;
goto A, B;
A:
assume status;
- yield;
return;
B: