summaryrefslogtreecommitdiff
path: root/Test/og/ticket.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-01-02 21:30:43 -0800
committerGravatar qadeer <unknown>2014-01-02 21:30:43 -0800
commit4a8e72a6446b09b63e28a8c16af47e67913d1801 (patch)
tree3250eee4aeb94ecef12210b05687391664fa1122 /Test/og/ticket.bpl
parent3eaed4317fed313e56d85b7775a229f2a6c1cd01 (diff)
some more fixes to examples
Diffstat (limited to 'Test/og/ticket.bpl')
-rw-r--r--Test/og/ticket.bpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/og/ticket.bpl b/Test/og/ticket.bpl
index af0c82bf..a734c15e 100644
--- a/Test/og/ticket.bpl
+++ b/Test/og/ticket.bpl
@@ -12,7 +12,7 @@ var {:qed} cs: X;
var {:qed} T: [int]bool;
procedure Allocate({:linear "tid"} xls':[X]bool) returns ({:linear "tid"} xls: [X]bool, {:linear "tid"} xl: X);
-ensures xl != nil;
+ensures {:phase 1} {:phase 2} xl != nil;
function Inv1(tickets: [int]bool, ticket: int): (bool)
{
@@ -25,7 +25,7 @@ function Inv2(tickets: [int]bool, ticket: int, lock: X): (bool)
}
procedure {:yields} {:entrypoint} main({:linear "tid"} xls':[X]bool)
-requires xls' == mapconstbool(true);
+requires {:phase 1} {:phase 2} xls' == mapconstbool(true);
{
var {:linear "tid"} tid: X;
var {:linear "tid"} xls: [X]bool;