| # buf-opt0.buf = VFS_PAGE_SIZE, cache_pcache0[datakey(ino, n)] = mkpentry(boolvar2, buf), (∅)[m3] = mkientry(boolvar1, mkinode(m10, md4, boolvar, m11, m12, m13)), cache_icache[ino] = mkientry(boolvar0, mkinode(m, md, true, m4, m5, m7)), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), cache_files[ino] = mkfile(m8, md3, # links(ino, cache_dirs), content), buf-opt0.some?, 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), n ∈ content ⊕ mkcontent(ino, truncate(m3, min(m6, m2), cache_pcache0)), n ∈ content ⊕ mkcontent(ino, cache_pcache0), m3 ∈ cache_files, ino ∈ cache_files, ino ∈ cache_icache, datakey(ino, n) ∈ cache_pcache0, n ∈ mkcontent(ino, truncate(m3, min(m6, m2), cache_pcache0)), cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ buf = mkcontent(ino, truncate(m3, min(m6, m2), cache_pcache0))[n], m3 ∈ cache_icache, m2 ≤ m6 ∧ m2 % VFS_PAGE_SIZE ≠ 0 |
# buf-opt0.buf = VFS_PAGE_SIZE, cache_files[ino] = mkfile(m8, md3, # links(ino, cache_dirs), content), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), cache_icache[ino] = mkientry(boolvar0, mkinode(m, md, true, m4, m5, m7)), (∅)[m3] = mkientry(boolvar1, mkinode(m10, md4, boolvar, m11, m12, m13)), cache_pcache0[datakey(ino, n)] = mkpentry(boolvar2, buf), buf-opt0.some?, 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), datakey(ino, n) ∈ cache_pcache0, ino ∈ cache_icache, ino ∈ cache_files, m3 ∈ cache_files, n ∈ content ⊕ mkcontent(ino, cache_pcache0), n ∈ content ⊕ mkcontent(ino, truncate(m3, min(m6, m2), cache_pcache0)), cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ buf = truncate(m3, min(m6, m2), cache_pcache0)[datakey(ino, n)].page, m3 ∈ cache_icache, m2 ≤ m6 ∧ m2 % VFS_PAGE_SIZE ≠ 0
Used simplifier rules: ⊦ datakey(m, m0).ino = m; (s)% ⊦ datakey(m, m0).part = m0; (s)% ⊦ datakey(m, m0).data?; (s)%⊦ key ∈ truncate(ino, size, pcache) ↔ key.data? ∧ key ∈ pcache ∧ (key.part * VFS_PAGE_SIZE < size ∨ ino ≠ key.ino); (s)% ⊦ n ∈ mkcontent(ino, pcache) ↔ datakey(ino, n) ∈ pcache; (s)% ⊦ mkcontent(ino, pcache)[n] = pcache[datakey(ino, n)].page; (s)