| key = dentrykey(p_ino, dent.name), fs[ri[inodekey(p_ino)]].directory, fo.inodes?, ro.inodes?, file-node-cons(fs, ri), log-cons(log, fs), orphans-cons(fs, ri, ro), replay-cons-strong(fs, ri, ro, fi, fo, log), ri-inj(fi), ri-inj(ri), ubifs-cons(fs, ri, ro, fi, fo, log), inodekey(p_ino) ∈ ri, fs[ri[inodekey(p_ino)]].nlink ≠ 0 ∨ p_ino = ROOT_INO ⊦ ⟪if ri-cons(ri, fs) then {fail_or_success#(; ; err); if err = ESUCCESS then {boolvar := key ∈ ri; if boolvar then nd := fs[ri[key]] else nd := ?} else boolvar := ?, nd := ?} else abort; if err = ESUCCESS then if boolvar then dent := mkdentry(dent.name, nd.ino), err := ESUCCESS else dent := negdentry(dent.name), err := ENOENT⟫ true, inodekey(p_ino) ∈ ro |
key = dentrykey(p_ino, dent.name), fs[ri[inodekey(p_ino)]].directory, ro.inodes?, fo.inodes?, file-node-cons(fs, ri), log-cons(log, fs), orphans-cons(fs, ri, ro), replay-cons-strong(fs, ri, ro, fi, fo, log), ri-inj(ri), ri-inj(fi), ubifs-cons(fs, ri, ro, fi, fo, log), inodekey(p_ino) ∈ ri, fs[ri[inodekey(p_ino)]].nlink ≠ 0 ∨ p_ino = ROOT_INO ⊦ ⟪fail_or_success#(; ; err); if err = ESUCCESS then {boolvar := key ∈ ri; if boolvar then nd := fs[ri[key]] else nd := ?} else boolvar := ?, nd := ?; if err = ESUCCESS then if boolvar then dent := mkdentry(dent.name, nd.ino), err := ESUCCESS else dent := negdentry(dent.name), err := ENOENT⟫ true, inodekey(p_ino) ∈ ro
Used simplifier rules: ⊦ ubifs-cons(fs, ri, ro, fi, fo, log) → ri-cons(ri, fs); (ss)