| m2 + n1 = m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE + VFS_PAGE_SIZE, cache_files[m0] = mkfile(m3, md1, # links(m0, cache_dirs), content1), (∅)[m0] = mkientry(boolvar1, mkinode(m10, md4, boolvar0, m11, m12, m13)), fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1) = fill((content1 ⊕ mkcontent(m0, cache_pcache0))[m2 / VFS_PAGE_SIZE], zero, n0, n1), m2 = n0 + m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2, m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m7, afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache0) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache0, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache0), m2 / VFS_PAGE_SIZE ∈ (content1[m2 / VFS_PAGE_SIZE, fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1)] upto m2) ⊕ mkcontent(m0, truncate(m0, m2, cache_pcache0)[datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1))]), m2 / VFS_PAGE_SIZE ∈ content1, m0 ∈ cache_files, VFS_PAGE_SIZE ≤ # (content1 ⊕ mkcontent(m0, cache_pcache0))[m2 / VFS_PAGE_SIZE], m2 ≤ m7, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1) = ( (content1[m2 / VFS_PAGE_SIZE, fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1)] upto m2) ⊕ mkcontent (m0, truncate(m0, m2, cache_pcache0)[datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1))]) )[m2 / VFS_PAGE_SIZE ], m2 = m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, n0 = 0, m0 ∈ cache_icache, datakey(m0, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0 |
⊦ n ∈ content1 → (content0 ⊕ content1)[n] = content1[n]
Used simplifier rules: ⊦ mkcontent(ino, pcache)[n] = pcache[datakey(ino, n)].page; (s)% ⊦ pcache[key, pe][key] = pe; (s)% ⊦ mkpentry(boolvar, buf).page = buf; (s)% ⊦ ¬ n ∈ content1 → (content0 ⊕ content1)[n] = content0[n]; (s)% ⊦ n ∈ content0 ⊕ content1 ↔ n ∈ content0 ∨ n ∈ content1; (ws)% ⊦ m ∈ content upto n ↔ m * VFS_PAGE_SIZE < n ∧ m ∈ content; (s)% ⊦ n ∈ content[n, buf]; (s)% ⊦ n ∈ mkcontent(ino, pcache) ↔ datakey(ino, n) ∈ pcache; (s)% ⊦ key ∈ pcache[key0, pe] ↔ key = key0 ∨ key ∈ pcache; (ws) Used terms: m2 / VFS_PAGE_SIZE, mkcontent (m0, truncate(m0, m2, cache_pcache0) [datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1)) ]), content1 [m2 / VFS_PAGE_SIZE, fill(content1[m2 / VFS_PAGE_SIZE], zero, n0, n1) ] upto m2