| n0 + n = m0 * VFS_PAGE_SIZE + n2, files1 -- ino = files0 -- ino, content0.stream = (content.stream to n0) + (⌜buf⌝ to n) + (content.stream from n0 + n), files1[ino] = mkfile(m2, md0, # links(ino, dirs), content0), files0[ino] = mkfile(m2, md0, m4, content), n2 < VFS_PAGE_SIZE, afs-cons(dirs, files1), ino ∈ files1, ino ∈ files0, n ≤ # buf, n1 ≤ # buf + n0, n0 + n ≤ n1, m + n2 ≤ VFS_PAGE_SIZE, n + m ≤ # buf ⊦ content0[m0, copy(buf, n, getpage(m0, content0), n2, m)].stream = (content.stream to n0) + (⌜buf⌝ to n + m) + (content.stream from n0 + n + m), VFS_PAGE_SIZE = 0 |
n0 + n = m0 * VFS_PAGE_SIZE + n2, files1 -- ino = files0 -- ino, content0.stream = (content.stream to n0) + (⌜buf⌝ to n) + (content.stream from n0 + n), files1[ino] = mkfile(m2, md0, # links(ino, dirs), content0), files0[ino] = mkfile(m2, md0, m4, content), n2 < VFS_PAGE_SIZE, afs-cons(dirs, files1), ino ∈ files1, ino ∈ files0, n ≤ # buf, n1 ≤ # buf + n0, n0 + n ≤ n1, m + n2 ≤ VFS_PAGE_SIZE, n + m ≤ # buf ⊦ content0[m0, copy(buf, n, getpage(m0, content0), n2, m)].stream = (content.stream to n0) + (⌜buf⌝ to n + m) + (content.stream from n0 + n + m)
Used simplifier rules: f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ VFS_PAGE_SIZE ≠ 0; (s)