| (ino = m3 ⊃ mkfile(m6, md1, # links(m3, cache_dirs), content1 upto min(m6, m2));cache_files[ino]) = mkfile(m8, md3, m9, content), cache_icache[m3, mkientry(false, mkinode(m3, md1, false, # links(m3, cache_dirs), 0, m6))][ino] = mkientry(boolvar, mkinode(m, md, false, m4, m5, m7)), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), (∅)[m3] = mkientry(boolvar1, mkinode(m10, md4, boolvar0, m11, m12, m13)), ino = m3, 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), ino ∈ cache_icache[m3, mkientry(false, mkinode(m3, md1, false, # links(m3, cache_dirs), 0, m6))], m3 ∈ cache_files, ino ∈ cache_files, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ (ino = m3 ⊃ mkfile(m6, md1, # links(m3, cache_dirs), (content1 ⊕ mkcontent(m3, cache_pcache0)) upto min(m6, m2)) ;((cache_files ⊕ cache_pcache0) ⊕ cache_icache)[ino] ) = mkfile(m7, md, m4, content ⊕ mkcontent(ino, truncate(m3, min(m6, m2), cache_pcache0))), m3 ∈ cache_icache, datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m2 ≤ m6 ∧ m2 % VFS_PAGE_SIZE ≠ 0 ∧ m2 / VFS_PAGE_SIZE ∈ content1 ⊕ mkcontent(m3, cache_pcache0), m2 ≤ m6 ∧ m2 % VFS_PAGE_SIZE ≠ 0 ∧ m2 / VFS_PAGE_SIZE ∈ content1 |
cache_files[m] = mkfile(m1, md2, # links(m, cache_dirs), content1), (∅)[m] = mkientry(boolvar1, mkinode(m10, md4, boolvar0, m11, m12, m13)), 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), m ∈ cache_files, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ mkfile(m8, md, # links(m, cache_dirs), (content1 ⊕ mkcontent(m, cache_pcache0)) upto min(m8, m2)) = mkfile(m8, md, # links(m, cache_dirs), (content1 upto min(m8, m2)) ⊕ mkcontent(m, truncate(m, min(m8, m2), cache_pcache0))), m ∈ cache_icache, datakey(m, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m2 ≤ m8 ∧ m2 % VFS_PAGE_SIZE ≠ 0 ∧ m2 / VFS_PAGE_SIZE ∈ content1 ⊕ mkcontent(m, cache_pcache0), m2 ≤ m8 ∧ m2 % VFS_PAGE_SIZE ≠ 0 ∧ m2 / VFS_PAGE_SIZE ∈ content1
Used simplifier rules: ⊦ ino ∈ icache[ino0, ie] ↔ ino = ino0 ∨ ino ∈ icache; (ws)%⊦ mkinode(m, md, boolvar, m0, m1, m2) = mkinode(m3, md0, boolvar0, m4, m5, m6) ↔ m = m3 ∧ md = md0 ∧ (boolvar ↔ boolvar0) ∧ m0 = m4 ∧ m1 = m5 ∧ m2 = m6; (ws)%⊦ mkfile(m, md, m0, content) = mkfile(m1, md0, m2, content0) ↔ m = m1 ∧ md = md0 ∧ m0 = m2 ∧ content = content0; (ws)%⊦ mkientry(boolvar, inode) = mkientry(boolvar0, inode0) ↔ (boolvar ↔ boolvar0) ∧ inode = inode0; (ws)% ⊦ icache[ino, ie][ino] = ie; (s)