diff options
author | 2013-08-07 16:57:02 -0700 | |
---|---|---|
committer | 2013-08-07 16:57:02 -0700 | |
commit | 2fd1db9218ebc55ad0f26c5f3faddcdf4eef2c85 (patch) | |
tree | ee58fbfdd972b0bdf5b5883e6c894da623fc1a60 /Test/og/parallel5.bpl | |
parent | a9c60110139c15ec65c50360763c75014b9eef82 (diff) |
cleaned up the OG code
enabled it to be always on
Diffstat (limited to 'Test/og/parallel5.bpl')
-rw-r--r-- | Test/og/parallel5.bpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/og/parallel5.bpl b/Test/og/parallel5.bpl index c583cb3c..eda8ef44 100644 --- a/Test/og/parallel5.bpl +++ b/Test/og/parallel5.bpl @@ -2,7 +2,7 @@ var a:[int]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;
@@ -12,7 +12,7 @@ procedure {:entrypoint} main() call i := u(i) | j := u(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';
@@ -21,7 +21,7 @@ procedure t({:linear "tid"} i': int) returns ({:linear "tid"} i: int) assert a[i] == 42;
}
-procedure u({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
+procedure {:yields} {:stable} u({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
{
i := i';
@@ -30,7 +30,7 @@ procedure u({:linear "tid"} i': int) returns ({:linear "tid"} i: int) assert a[i] == 42;
}
-procedure Yield({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
+procedure {:yields} {:stable} Yield({:linear "tid"} i': int) returns ({:linear "tid"} i: int)
ensures i == i';
ensures old(a)[i] == a[i];
{
|