| fs = abs-files(files), ofh = abs-of(of), path = q + str ', root.dir?, dom of < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), psynced → asynced, ⌊err1⌋ ∨ err1 = ENOENT ∧ ¬ ispath(q, ROOT_INO, dirs, files) ∨ err1 = EACCESS ∧ p' ⊑ q ∧ ispath(p', ROOT_INO, dirs, files) ∧ ¬ px(user, p', ROOT_INO, dirs, files) ⊦ ∃ err. pre-create(path, md, err, user, root, fs, ofh) ∧ ⟨err0 := err; if err0 = ESUCCESS then choose fid with ¬ fid ∈ fs in {root[path] := fnode(fid); fs[fid] := mkfile(md, mkbuf(0))}; psynced := ?⟩ (fs = abs-files(files) ∧ abs(root, ROOT_INO)(dirs) ∧ (psynced → asynced) ∧ err1 = err0), err1 = ESUCCESS |
fs = abs-files(files), path = q + str ', err1 ≠ ESUCCESS, root.dir?, dom of < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), psynced → asynced, ⌊err1⌋ ∨ err1 = ENOENT ∧ ¬ ispath(q, ROOT_INO, dirs, files) ∨ err1 = EACCESS ∧ p' ⊑ q ∧ ispath(p', ROOT_INO, dirs, files) ∧ ¬ px(user, p', ROOT_INO, dirs, files) ⊦ ∃ err. pre-create(path, md, err, user, root, fs, abs-of(of)) ∧ ⟨err0 := err; if err0 = ESUCCESS then choose fid with ¬ fid ∈ fs in {root[path] := fnode(fid); fs[fid] := mkfile(md, mkbuf(0))}; psynced := ?⟩ (fs = abs-files(files) ∧ abs(root, ROOT_INO)(dirs) ∧ (psynced → asynced) ∧ err1 = err0)
Used simplifier rules: ⊦ str ∈ str0 ' ↔ str = str0; (s)% ⊦ str ∈ p + p0 ↔ str ∈ p ∨ str ∈ p0; (s)%a: ⊦ (p + p0) + p1 = p + p0 + p1; from specification list[path]%in-15: ⊦ p + str ' = p0 → str ∈ p0; (forward) from specification list[path]