| err = ESUCCESS, err0 = err1, f = fs[fh.fid], fh = ofh[fd], n0 = n, root.dir?, fids-cons(root, fs, ofh), pre-write(fd, buf, n0, err, user, root, fs, ofh), fd ∈ ofh, fh.fid ∈ fs, n ≤ # buf ⊦ ∃ n. n ≤ n0 |
root.dir?, fids-cons(root, fs, ofh), ofh[fd].fid ∈ fs, fd ∈ ofh, n ≤ # buf, ofh[fd].mode = MODE_W ∨ ofh[fd].mode = MODE_RW ⊦ ∃ n1. n1 ≤ n
Used simplifier rules: ⊦ pre-write(fd, buf, n, ESUCCESS, user, root, fs, ofh) ↔ fd ∈ ofh ∧ (ofh[fd].mode = MODE_W ∨ ofh[fd].mode = MODE_RW); (s)