summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar qadeer <unknown>2014-01-02 21:17:25 -0800
committerGravatar qadeer <unknown>2014-01-02 21:17:25 -0800
commita54c31c50785a000e41e18f32ffeef945b3a411e (patch)
treec6c80f9f0362961f0a5edead26a1e210fe757c15 /Test
parent907301059bfaf11016e66e1030dd77786bbbf9a1 (diff)
more fixes
Diffstat (limited to 'Test')
-rw-r--r--Test/og/DeviceCache.bpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/Test/og/DeviceCache.bpl b/Test/og/DeviceCache.bpl
index 1c2efdbb..7e299db0 100644
--- a/Test/og/DeviceCache.bpl
+++ b/Test/og/DeviceCache.bpl
@@ -143,16 +143,17 @@ ensures {:phase 1} Inv(ghostLock, currsize, newsize);
tid := tid';
par tid := YieldToReadCache(tid);
+
j := 0;
while(j < bytesRead)
invariant {:phase 1} 0 <= j;
invariant {:phase 1} bytesRead == 0 || start + j <= currsize;
invariant {:phase 1} Inv(ghostLock, currsize, newsize) && tid == tid';
{
- par tid := YieldToReadCache(tid);
assert {:phase 1} start + j < currsize;
call tid := ReadCacheEntry(tid, start + j);
j := j + 1;
+ par tid := YieldToReadCache(tid);
}
par tid := YieldToReadCache(tid);
}