| err = ESUCCESS, err0 = err1, f = fs[fh.fid], fh = ofh[fd], n0 = n1, root.dir?, fids-cons(root, fs, ofh), pre-read(fd, n0, err, user, root, fs, ofh), fh.fid ∈ fs, fd ∈ ofh, n1 ≤ # buf, fh.pos + n ≤ # f.content, n ≤ n0 ⊦ ⟪buf := copy(f.content, fh.pos, buf, 0, n); ofh[fd].pos := fh.pos + n⟫ fids-cons(root, fs, ofh) |
err = ESUCCESS, err0 = err1, f = fs[fh.fid], fh = ofh[fd], n0 = n1, root.dir?, fids-cons(root, fs, ofh), pre-read(fd, n0, err, user, root, fs, ofh), fd ∈ ofh, fh.fid ∈ fs, 0 + n ≤ # buf, n ≤ n0, fh.pos + n ≤ # f.content, n1 ≤ # buf ⊦ ⟪ofh[fd].pos := fh.pos + n⟫ fids-cons(root, fs, ofh)
Used simplifier rules: ⊦ pre-read(fd, n, ESUCCESS, user, root, fs, ofh) ↔ fd ∈ ofh ∧ (ofh[fd].mode = MODE_R ∨ ofh[fd].mode = MODE_RW); (s)% ⊦ n + 0 = n; (s)%a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%c: ⊦ m + n = n + m; from specification nat-basic% ⊦ m ≤ n ↔ ¬ n < m; (ss)%f: ⊦ m < n → n ≠ 0; (forward) from specification nat-basic%fle: ⊦ m < n ∧ n ≤ n0 → m < n0; (forward) from specification nat%let: ⊦ n ≤ n0 ∧ n0 ≤ n1 → n ≤ n1; (forward) from specification nat%fle-01: ⊦ m ≤ n ∧ n < n0 → m < n0; (forward) from specification nat% ⊦ m < n → n ≠ 0; (s)% ⊦ m ≤ n → (n < m ↔ false); (s)