| # buf0 = VFS_PAGE_SIZE, ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[m] = mkfile(m0, md, m1, content0), cache_files[m] = mkfile(m3, md0, # links(m, cache_dirs), content), content[pageno] = content0[pageno], cache_icache[m] = mkientry(boolvar0, mkinode(m2, md1, boolvar, m4, m5, m6)), afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), ino ∈ cache_files, pageno ∈ content0, pageno ∈ content, m ∈ cache_files, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[ino] = ((cache_files ⊕ cache_pcache[datakey(m, pageno), mkpentry(false, content0[pageno])]) ⊕ cache_icache)[ino], content0[pageno] = zeropage, datakey(m, pageno) ∈ cache_pcache, m ∈ cache_icache ∧ ¬ boolvar, m ∈ cache_icache ∧ cache_icache[m].inode.directory |
# buf0 = VFS_PAGE_SIZE, ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[m] = mkfile(m0, md, m1, content0), cache_files[m] = mkfile(m3, md0, # links(m, cache_dirs), content), content[pageno] = content0[pageno], cache_icache[m] = mkientry(boolvar0, mkinode(m2, md1, boolvar, m4, m5, m6)), afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), ino ∈ cache_files, pageno ∈ content0, pageno ∈ content, m ∈ cache_files, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[ino] = ((cache_files ⊕ cache_pcache[datakey(m, pageno), mkpentry(false, content0[pageno])]) ⊕ cache_icache)[ino], content0[pageno] = zeropage, datakey(m, pageno) ∈ cache_pcache, m ∈ cache_icache ∧ ¬ boolvar, m ∈ cache_icache ∧ boolvar
Used simplifier rules: ⊦ mkinode(m, md, boolvar, m0, m1, m2).directory ↔ boolvar; (s)% ⊦ mkientry(boolvar, inode).inode = inode; (s)