| # buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n0 + m2 % VFS_PAGE_SIZE, files0[m3] = mkfile(m5, md2, # links(m3, dirs), content1), pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), afs-cons(dirs, files0[m3, mkfile(m, md, # links(m3, dirs), content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)] upto m2)]), afs-cons(dirs, files0), synced(dirs, icache, pcache0), datakey(m3, m2 / VFS_PAGE_SIZE) ∈ pcache0, m3 ∈ files0, m2 ≤ m, asynced2 → synced(files0, icache, pcache0), ¬ boolvar → m2 / VFS_PAGE_SIZE ∈ content1 ∧ buf0 = content1[m2 / VFS_PAGE_SIZE], ∀ key. key ∈ pcache0 → key.data?, ∀ key0. key0 ∈ pcache0 → key0.data? ∧ # pcache0[key0].page = VFS_PAGE_SIZE ∧ key0.ino ∈ files0 ∧ (¬ pcache0[key0].dirty → key0.part ∈ files0[key0.ino].content ∧ pcache0[key0].page = files0[key0.ino].content[key0.part]) ⊦ m2 % VFS_PAGE_SIZE = 0, # (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)] upto m2)[m2 / VFS_PAGE_SIZE] = VFS_PAGE_SIZE ∧ m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 ∧ fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0) = (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)] upto m2)[m2 / VFS_PAGE_SIZE] |
⊦ m * VFS_PAGE_SIZE < n ∧ m ∈ content → (content upto n)[m] = content[m]
# buf0 = VFS_PAGE_SIZE, VFS_PAGE_SIZE = n0 + m2 % VFS_PAGE_SIZE, pcache0[datakey(m3, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), files0[m3] = mkfile(m5, md2, # links(m3, dirs), content1), afs-cons(dirs, files0), afs-cons(dirs, files0[m3, mkfile(m, md, # links(m3, dirs), content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)] upto m2)]), synced(dirs, icache, pcache0), m3 ∈ files0, datakey(m3, m2 / VFS_PAGE_SIZE) ∈ pcache0, m2 ≤ m, ¬ boolvar → m2 / VFS_PAGE_SIZE ∈ content1 ∧ buf0 = content1[m2 / VFS_PAGE_SIZE], asynced2 → synced(files0, icache, pcache0), ∀ key0. key0 ∈ pcache0 → key0.data? ∧ # pcache0[key0].page = VFS_PAGE_SIZE ∧ key0.ino ∈ files0 ∧ (¬ pcache0[key0].dirty → key0.part ∈ files0[key0.ino].content ∧ pcache0[key0].page = files0[key0.ino].content[key0.part]), ∀ key. key ∈ pcache0 → key.data? ⊦ m2 % VFS_PAGE_SIZE = 0, # (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)] upto m2)[m2 / VFS_PAGE_SIZE] = VFS_PAGE_SIZE ∧ m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 ∧ fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0) = (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)] upto m2)[m2 / VFS_PAGE_SIZE], m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 ∧ m2 / VFS_PAGE_SIZE ∈ content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)]
Used simplifier rules: ⊦ n ∈ content[n, buf]; (s)% ⊦ content[n, buf][n] = buf; (s)% ⊦ # fill(buf, d, m, n) = # buf; (s) Used terms: m2 / VFS_PAGE_SIZE, m2, content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, m2 % VFS_PAGE_SIZE, n0)]