| # buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n1 + m2 % VFS_PAGE_SIZE, ((cache_files ⊕ cache_pcache0) ⊕ cache_icache)[m3] = mkfile(m4, md1, # links(m3, cache_dirs), content), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), cache_pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), (∅)[ino] = mkientry(boolvar1, mkinode(m0, md0, boolvar0, m5, m6, m7)), fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1) = fill(content[m2 / VFS_PAGE_SIZE], zero, m2 % VFS_PAGE_SIZE, n1), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache0) ⊕ cache_icache), afs-cons(cache_dirs, cache_files), 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), ino ∈ cache_files, m3 ∈ cache_files, m2 / VFS_PAGE_SIZE ∈ content, datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, VFS_PAGE_SIZE ≤ # content[m2 / VFS_PAGE_SIZE], m2 ≤ m, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, ino = m3, mkfile(cache_files[ino].size, cache_files[ino].meta, cache_files[ino].nlink, cache_files[ino].content ⊕ mkcontent(ino, cache_pcache0)) = mkfile (cache_files[ino].size, cache_files[ino].meta, cache_files[ino].nlink, cache_files[ino].content ⊕ mkcontent(ino, truncate(m3, m2, cache_pcache0)[datakey(m3, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1))])), ino ∈ cache_icache |
# buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n1 + m2 % VFS_PAGE_SIZE, (∅)[ino] = mkientry(boolvar1, mkinode(m0, md0, boolvar0, m5, m6, m7)), cache_pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), ((cache_files ⊕ cache_pcache0) ⊕ cache_icache)[m3] = mkfile(m4, md1, # links(m3, cache_dirs), content), cache_files[ino] = mkfile(m8, md, m9, content0), fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1) = fill(content[m2 / VFS_PAGE_SIZE], zero, m2 % VFS_PAGE_SIZE, n1), 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), datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m2 / VFS_PAGE_SIZE ∈ content, m3 ∈ cache_files, ino ∈ cache_files, m2 ≤ m, VFS_PAGE_SIZE ≤ # content[m2 / VFS_PAGE_SIZE], cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, ino = m3, mkfile(m8, md, m9, content0 ⊕ mkcontent(ino, cache_pcache0)) = mkfile (m8, md, m9, content0 ⊕ mkcontent(ino, truncate(m3, m2, cache_pcache0)[datakey(m3, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n1))])), ino ∈ cache_icache
Used simplifier rules: ⊦ ((m = af.size ∧ md = af.meta) ∧ m0 = af.nlink) ∧ content = af.content ↔ af = mkfile(m, md, m0, content); (elim) Used terms: cache_files[ino], m8, md, m9, content0