diff options
author | qadeer <unknown> | 2014-01-20 12:32:20 -0800 |
---|---|---|
committer | qadeer <unknown> | 2014-01-20 12:32:20 -0800 |
commit | 9551c601dc618536b05baa373e13ece329ea3eab (patch) | |
tree | 8f43c6ff87306b116c229418fc03f121207c1d0d /Test/og | |
parent | e39d4ac2640c3e5cf7928fd984d7ed43d7390db7 (diff) |
fixed a bug revealed subsequent to the latest fix in parallel call handling
Diffstat (limited to 'Test/og')
-rw-r--r-- | Test/og/DeviceCache.bpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/og/DeviceCache.bpl b/Test/og/DeviceCache.bpl index 025fb80c..730b1ce1 100644 --- a/Test/og/DeviceCache.bpl +++ b/Test/og/DeviceCache.bpl @@ -94,7 +94,7 @@ ensures {:phase 1} 0 <= bytesRead && bytesRead <= size; READ_DEVICE:
par tid := YieldToWriteCache(tid);
call tid := WriteCache(tid, start + size);
- par tid := YieldToReadCache(tid);
+ par tid := YieldToWriteCache(tid);
call tid := acquire(tid);
call tid, tmp := ReadNewsize(tid);
call tid := WriteCurrsize(tid, tmp);
@@ -143,7 +143,7 @@ ensures {:phase 1} Inv(ghostLock, currsize, newsize); j := 0;
while(j < bytesRead)
invariant {:phase 1} 0 <= j;
- invariant {:phase 1} bytesRead == 0 || start + j <= currsize;
+ invariant {:phase 1} bytesRead == 0 || start + bytesRead <= currsize;
invariant {:phase 1} Inv(ghostLock, currsize, newsize) && tid == tid';
{
assert {:phase 1} start + j < currsize;
|