| fs = abs-files(files), root.dir?, dom of < ino, 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 ⊦ ⟨posix_create#(ε, md, user, abs-of(of); err0, root, fs; psynced)⟩ (fs = abs-files(files) ∧ abs(root, ROOT_INO)(dirs) ∧ (psynced → asynced) ∧ EEXISTS = err0) |
fs = abs-files(files), ofh = abs-of(of), path = ε, root.dir?, dom of < ino, 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 ⊦ ⟨choose err with pre-create(path, md, err, user, root, fs, ofh) in 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) ∧ EEXISTS = err0)
Used simplifier rules: posix_create#(PATH, MD, USER, OFH; ERR, ROOT, FS; PSYNCED) {choose E with pre-create(PATH, MD, E, USER, ROOT, FS, OFH) in ERR := E; if ERR = ESUCCESS then choose FID with ¬ FID ∈ FS in {ROOT[PATH] := fnode(FID); FS[FID] := mkfile(MD, mkbuf(0))}; PSYNCED := ? };