summaryrefslogtreecommitdiff
path: root/Test/og/parallel4.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2013-08-07 16:57:02 -0700
committerGravatar qadeer <unknown>2013-08-07 16:57:02 -0700
commit2fd1db9218ebc55ad0f26c5f3faddcdf4eef2c85 (patch)
treeee58fbfdd972b0bdf5b5883e6c894da623fc1a60 /Test/og/parallel4.bpl
parenta9c60110139c15ec65c50360763c75014b9eef82 (diff)
cleaned up the OG code
enabled it to be always on
Diffstat (limited to 'Test/og/parallel4.bpl')
-rw-r--r--Test/og/parallel4.bpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/og/parallel4.bpl b/Test/og/parallel4.bpl
index 8f78fdc5..c07975ca 100644
--- a/Test/og/parallel4.bpl
+++ b/Test/og/parallel4.bpl
@@ -2,7 +2,7 @@ var a:int;
procedure Allocate() returns ({:linear "tid"} xls: int);
-procedure {:entrypoint} main()
+procedure {:entrypoint} {:yields} main()
{
var {:linear "tid"} i: int;
var {:linear "tid"} j: int;
@@ -11,7 +11,7 @@ procedure {:entrypoint} main()
call i := t(i) | j := t(j);
}
-procedure t({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
+procedure {:yields} {:stable} t({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
{
i := i';
call Yield();
@@ -19,7 +19,7 @@ procedure t({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
a := a + 1;
}
-procedure Yield()
+procedure {:yields} Yield()
{
yield;
}