| cache_icache[ino0] = mkientry(boolvar1, mkinode(m6, md2, boolvar0, m7, m8, m9)), cache_icache[ino, mkientry(false, mkinode(ino, md, true, # links(ino, cache_dirs), m1, m))][ino0] = mkientry(boolvar, mkinode(m0, md0, true, m2, m3, m4)), cache_dirs[ino] = mkdir(m, md, # links(ino, cache_dirs), m1, entries), cache_files[ino0] = mkfile(m5, md1, # links(ino0, cache_dirs), content), 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), ino0 ∈ cache_icache[ino, mkientry(false, mkinode(ino, md, true, # links(ino, cache_dirs), m1, m))], ino ∈ cache_dirs, ino0 ∈ cache_files, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[ino0] = mkfile(m5, md1, # links(ino0, cache_dirs), content ⊕ mkcontent(ino0, cache_pcache)), ino ∈ cache_icache, ino0 ∈ cache_icache ∧ ¬ boolvar0 |
⊦ ino ∈ icache ∧ icache[ino].inode.directory → (files ⊕ icache)[ino] = files[ino]
cache_files[ino0] = mkfile(m5, md1, # links(ino0, cache_dirs), content), cache_dirs[ino] = mkdir(m, md, # links(ino, cache_dirs), m1, entries), cache_icache[ino, mkientry(false, mkinode(ino, md, true, # links(ino, cache_dirs), m1, m))][ino0] = mkientry(boolvar, mkinode(m0, md0, true, m2, m3, m4)), cache_icache[ino0] = mkientry(boolvar1, mkinode(m6, md2, boolvar0, m7, m8, m9)), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ 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_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), ino0 ∈ cache_files, ino ∈ cache_dirs, ino0 ∈ cache_icache[ino, mkientry(false, mkinode(ino, md, true, # links(ino, cache_dirs), m1, m))], cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[ino0] = mkfile(m5, md1, # links(ino0, cache_dirs), content ⊕ mkcontent(ino0, cache_pcache)), ino ∈ cache_icache, ino0 ∈ cache_icache ∧ ¬ boolvar0, ino0 ∈ cache_icache ∧ cache_icache[ino0].inode.directory
Used simplifier rules: ⊦ ino ∈ icache ∧ ¬ ino0 ∈ icache → icache[ino0, ie][ino] = icache[ino]; (s)%⊦ (files ⊕ pcache)[ino] = mkfile (files[ino].size, files[ino].meta, files[ino].nlink, files[ino].content ⊕ mkcontent(ino, pcache)); (s)%⊦ mkientry(boolvar, inode) = mkientry(boolvar0, inode0) ↔ (boolvar ↔ boolvar0) ∧ inode = inode0; (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).size = m; (s)% ⊦ mkfile(m, md, m0, content).meta = md; (s)% ⊦ mkfile(m, md, m0, content).nlink = m0; (s)% ⊦ mkfile(m, md, m0, content).content = content; (s) Used terms: ino0, cache_icache, cache_files ⊕ cache_pcache