summaryrefslogtreecommitdiff
path: root/Test/og/ticket.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-01-07 15:43:20 -0800
committerGravatar qadeer <unknown>2014-01-07 15:43:20 -0800
commit37fcf1a2d36dcbb70ccb52e7a925a52c4fce67d0 (patch)
tree6bd8ed83b642c27ded70c36a3b6e1e40b1205abd /Test/og/ticket.bpl
parent0ef68160d1c969c866f8ada83f35bb43f7faa188 (diff)
first cut of refinement checking
Diffstat (limited to 'Test/og/ticket.bpl')
-rw-r--r--Test/og/ticket.bpl5
1 files changed, 2 insertions, 3 deletions
diff --git a/Test/og/ticket.bpl b/Test/og/ticket.bpl
index a734c15e..0e64f6b2 100644
--- a/Test/og/ticket.bpl
+++ b/Test/og/ticket.bpl
@@ -72,9 +72,9 @@ ensures {:phase 2} tid != nil && Inv2(T, s, cs);
ensures {:right 2} |{ A: tid := tid'; havoc t, T; assume tid != nil && cs == nil; cs := tid; return true; }|;
{
var m: int;
- tid := tid';
par Yield1() | Yield2();
+ tid := tid';
call tid, m := GetTicketAbstract(tid);
par Yield1();
call tid := WaitAndEnter(tid, m);
@@ -86,9 +86,8 @@ requires {:phase 1} Inv1(T, t);
ensures {:phase 1} Inv1(T, t);
ensures {:right 1} |{ A: tid := tid'; havoc m, t; assume !T[m]; T[m] := true; return true; }|;
{
- tid := tid';
-
par Yield1();
+ tid := tid';
call tid, m := GetTicket(tid);
par Yield1();
}