summaryrefslogtreecommitdiff
path: root/Test/og/akash.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-12-18 20:59:10 -0800
committerGravatar qadeer <unknown>2014-12-18 20:59:10 -0800
commit84819ceb711f1ae83327e2006df9bb1003ccd65e (patch)
tree93c6a25cac65ef702793fe7508eddf89df2e737e /Test/og/akash.bpl
parent86cb1bc74ca8b0242131145ce9d4cbab085c02fd (diff)
changed type checking of yield procedures so that they can only call other yielding procedures
Diffstat (limited to 'Test/og/akash.bpl')
-rw-r--r--Test/og/akash.bpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/og/akash.bpl b/Test/og/akash.bpl
index 744029f1..cfbeaf3a 100644
--- a/Test/og/akash.bpl
+++ b/Test/og/akash.bpl
@@ -18,13 +18,13 @@ function {:inline} {:linear "2"} SetCollector2(x: [int]bool) : [int]bool
x
}
-procedure Allocate() returns ({:linear "tid"} xls: int);
+procedure {:yields} {:layer 1} Allocate() returns ({:linear "tid"} xls: int);
ensures {:layer 1} xls != 0;
-procedure Allocate_1() returns ({:linear "1"} xls: [int]bool);
+procedure {:yields} {:layer 1} Allocate_1() returns ({:linear "1"} xls: [int]bool);
ensures {:layer 1} xls == mapconstbool(true);
-procedure Allocate_2() returns ({:linear "2"} xls: [int]bool);
+procedure {:yields} {:layer 1} Allocate_2() returns ({:linear "2"} xls: [int]bool);
ensures {:layer 1} xls == mapconstbool(true);
var {:layer 0,1} g: int;