diff options
author | qadeer <unknown> | 2014-07-15 02:26:38 -0700 |
---|---|---|
committer | qadeer <unknown> | 2014-07-15 02:26:38 -0700 |
commit | 7395870356fb83f1b7cab70c95523d1c9f5738d4 (patch) | |
tree | b8677cada625458aacba867081549e4a784c453d /Test/og/Program4.bpl | |
parent | 85a60be8a0a7ef1438908364b7997dddc4524ed1 (diff) |
simplified yield type chcking and added treiber stack (not fully done)
Diffstat (limited to 'Test/og/Program4.bpl')
-rw-r--r-- | Test/og/Program4.bpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Test/og/Program4.bpl b/Test/og/Program4.bpl index 6130b69b..c936cab7 100644 --- a/Test/og/Program4.bpl +++ b/Test/og/Program4.bpl @@ -36,10 +36,14 @@ ensures {:phase 1} a[tid] == old(a)[tid] + 1; {
var t:int;
+ yield;
+ assert {:phase 1} a[tid] == old(a)[tid];
call t := Read(tid);
yield;
- assert {:phase 1} t == a[tid];
+ assert {:phase 1} a[tid] == t;
call Write(tid, t + 1);
+ yield;
+ assert {:phase 1} a[tid] == t + 1;
}
procedure {:yields} {:phase 0,1} Read({:cnst "tid"} tid: Tid) returns (val: int);
|