| m5 + n1 = m5 / VFS_PAGE_SIZE * VFS_PAGE_SIZE + VFS_PAGE_SIZE, of[fd] = mkfile(m, mode, m0), files1[m] = mkfile(m5, md, # links(m, dirs), content0), m5 = n2 + m5 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, dom of < ino3, m5 < m0 + ino4, afs-cons(dirs, files), afs-cons(dirs, files1), of-cons(of, dirs, files), of-cons(of, dirs, files1), m ∈ files1, m5 / VFS_PAGE_SIZE ∈ content0, fd ∈ of, m5 % VFS_PAGE_SIZE + n1 ≤ VFS_PAGE_SIZE, n ≤ # buf0, n2 + n1 ≤ VFS_PAGE_SIZE, ⌊err0⌋ , (m0 ≤ m5 ⊃ m5 ≥ m0;true) ⊦ ino4 = 0, n = 0, n2 = 0, err1 = ESUCCESS ∧ ¬ isdir, mode ≠ MODE_W ∧ mode ≠ MODE_RW, of-cons(of[fd, of[fd].pos:= (m0 + (m0 ≤ m5 ⊃ m5 - m0;0))], dirs, files) ∧ dom of[fd, of[fd].pos:= (m0 + (m0 ≤ m5 ⊃ m5 - m0;0))] < ino3 |
⊦ of-cons(of0, dirs0, files0) → (of-cons(of1, dirs1, files1) ↔ (∀ n. (n ∈ of0 → of0[n].ino ∈ files0) → n ∈ of1 → of1[n].ino ∈ files1))
m5 + n1 = m5 / VFS_PAGE_SIZE * VFS_PAGE_SIZE + VFS_PAGE_SIZE, of[fd] = mkfile(m, mode, m0), files1[m] = mkfile(m5, md, # links(m, dirs), content0), m5 = n2 + m5 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, dom of < ino3, m5 < m0 + ino4, afs-cons(dirs, files), afs-cons(dirs, files1), of-cons(of, dirs, files), of-cons(of, dirs, files1), n0 ∈ of, of[n0].ino ∈ files, m ∈ files1, m5 / VFS_PAGE_SIZE ∈ content0, fd ∈ of, n0 ∈ of[fd, mkfile(m, mode, m0 + (m5 - m0))], m5 % VFS_PAGE_SIZE + n1 ≤ VFS_PAGE_SIZE, n ≤ # buf0, n2 + n1 ≤ VFS_PAGE_SIZE, ⌊err0⌋ ⊦ ino4 = 0, n = 0, n2 = 0, of[fd, mkfile(m, mode, m0 + (m0 ≤ m5 ⊃ m5 - m0;0))][n0].ino ∈ files, err1 = ESUCCESS ∧ ¬ isdir, mode ≠ MODE_W ∧ mode ≠ MODE_RW
Used simplifier rules: of-cons-reduce: ⊦ of-cons(of0, dirs0, files0) → ( of-cons(of1, dirs1, files1) ↔ (∀ n. (n ∈ of0 → of0[n].ino ∈ files0) → n ∈ of1 → of1[n].ino ∈ files1));% ⊦ m < n → n ≠ 0; (s)%lf-02: ⊦ m < n ∧ m = n0 → n0 < n; (forward) from specification nat-basic%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic% ⊦ of[fd] = file ∧ fd ∈ of → of[fd, file] = of; (s)%c: ⊦ m + n = n + m; from specification nat-basic%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic% ⊦ n + 0 = n; (s)% ⊦ m < n → (n ≤ m ↔ false); (s)% ⊦ m ≤ n ↔ ¬ n < m; (ss)%⊦ of-cons(of, dirs, files) ∧ fd ∈ of ∧ of[fd] = mkfile(ino, mode, n) → ino ∈ files; (ss)% ⊦ mkfile(m, mode, m0).ino = m; (s)% ⊦ fd = fd0 → of[fd0, file][fd] = file; (s)% ⊦ fd ∈ of[fd0, file] ↔ fd = fd0 ∨ fd ∈ of; (ws)% ⊦ mkfile(m, mode, m0).pos:= m2 = mkfile(m, mode, m2); (s)% ⊦ fd ∈ of → dom of ++ fd = dom of; (s)% ⊦ dom of[fd, file] = dom of ++ fd; (s)% ⊦ n ≥ m ↔ m ≤ n; (s)