summaryrefslogtreecommitdiff
path: root/Test/og/parallel2.bpl
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-11-14 22:18:15 -0800
committerGravatar qadeer <unknown>2014-11-14 22:18:15 -0800
commit72d74c23e9c5cc1903f2646af6a7d778cfde53f3 (patch)
tree42b738427237ff44692051f028fb92a427c3cd1b /Test/og/parallel2.bpl
parent0339351e985c455e7ecf290be54aa5361fe7ae8f (diff)
renamed :phase to :layer
Diffstat (limited to 'Test/og/parallel2.bpl')
-rw-r--r--Test/og/parallel2.bpl20
1 files changed, 10 insertions, 10 deletions
diff --git a/Test/og/parallel2.bpl b/Test/og/parallel2.bpl
index 1906d00b..20de0875 100644
--- a/Test/og/parallel2.bpl
+++ b/Test/og/parallel2.bpl
@@ -1,6 +1,6 @@
// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
-var {:phase 1} a:[int]int;
+var {:layer 1} a:[int]int;
function {:builtin "MapConst"} MapConstBool(bool) : [int]bool;
function {:inline} {:linear "tid"} TidCollector(x: int) : [int]bool
@@ -10,10 +10,10 @@ function {:inline} {:linear "tid"} TidCollector(x: int) : [int]bool
procedure Allocate() returns ({:linear "tid"} xls: int);
-procedure {:yields} {:phase 0,1} Write(idx: int, val: int);
+procedure {:yields} {:layer 0,1} Write(idx: int, val: int);
ensures {:atomic} |{A: a[idx] := val; return true; }|;
-procedure {:yields} {:phase 1} main()
+procedure {:yields} {:layer 1} main()
{
var {:linear "tid"} i: int;
var {:linear "tid"} j: int;
@@ -23,29 +23,29 @@ procedure {:yields} {:phase 1} main()
par i := u(i) | j := u(j);
}
-procedure {:yields} {:phase 1} t({:linear_in "tid"} i': int) returns ({:linear "tid"} i: int)
+procedure {:yields} {:layer 1} t({:linear_in "tid"} i': int) returns ({:linear "tid"} i: int)
{
i := i';
yield;
call Write(i, 42);
call Yield(i);
- assert {:phase 1} a[i] == 42;
+ assert {:layer 1} a[i] == 42;
}
-procedure {:yields} {:phase 1} u({:linear_in "tid"} i': int) returns ({:linear "tid"} i: int)
+procedure {:yields} {:layer 1} u({:linear_in "tid"} i': int) returns ({:linear "tid"} i: int)
{
i := i';
yield;
call Write(i, 42);
yield;
- assert {:phase 1} a[i] == 42;
+ assert {:layer 1} a[i] == 42;
}
-procedure {:yields} {:phase 1} Yield({:linear "tid"} i: int)
-ensures {:phase 1} old(a)[i] == a[i];
+procedure {:yields} {:layer 1} Yield({:linear "tid"} i: int)
+ensures {:layer 1} old(a)[i] == a[i];
{
yield;
- assert {:phase 1} old(a)[i] == a[i];
+ assert {:layer 1} old(a)[i] == a[i];
} \ No newline at end of file