| root[q].dir? ↔ ino1 ∈ dirs, err0 = err2, 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)), ispath(q, ROOT_INO, ino1, dirs, files), of-cons(of, dirs, files), px-parent(user, q, ROOT_INO, dirs, files), ⌊err1⌋ , psynced → asynced, ino1 ∈ dirs ∨ ino1 ∈ 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) |
root[q].dir? ↔ ino1 ∈ dirs, fs = abs-files(files), 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)), ispath(q, ROOT_INO, ino1, dirs, files), of-cons(of, dirs, files), px-parent(user, q, ROOT_INO, dirs, files), ⌊err1⌋ , psynced → asynced, ino1 ∈ dirs ∨ ino1 ∈ 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]