| # buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n0 + m2 % VFS_PAGE_SIZE, cache_pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), mkfile(cache_icache[m3].inode.size, cache_icache[m3].inode.meta, cache_icache[m3].inode.nlink, (cache_files ⊕ cache_pcache0)[m3].content) = mkfile(m0, md0, # links(m3, cache_dirs), content0), # content0[m2 / VFS_PAGE_SIZE] < VFS_PAGE_SIZE, 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), m2 / VFS_PAGE_SIZE ∈ content0, m3 ∈ cache_files, datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m3 ∈ cache_icache, m2 ≤ m, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, cache_icache[m3].inode.directory |
# buf0 = VFS_PAGE_SIZE, cache_icache[m3].inode.nlink = # links(m3, cache_dirs), VFS_PAGE_SIZE = n0 + m2 % VFS_PAGE_SIZE, cache_files[m3] = mkfile(m1, md2, # links(m3, cache_dirs), content1), cache_pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), # (content1 ⊕ mkcontent(m3, cache_pcache0))[m2 / VFS_PAGE_SIZE] < VFS_PAGE_SIZE, 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), m2 / VFS_PAGE_SIZE ∈ content1 ⊕ mkcontent(m3, cache_pcache0), m3 ∈ cache_icache, datakey(m3, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m3 ∈ cache_files, m2 ≤ m, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, cache_icache[m3].inode.directory
Used simplifier rules: lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic%⊦ mkfile(m, md, m0, content) = mkfile(m1, md0, m2, content0) ↔ m = m1 ∧ md = md0 ∧ m0 = m2 ∧ content = content0; (ws)% ⊦ mkfile(m, md, m0, content).content = content; (s)%⊦ (files ⊕ pcache)[ino] = mkfile (files[ino].size, files[ino].meta, files[ino].nlink, files[ino].content ⊕ mkcontent(ino, pcache)); (s)