| 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 ⊦ ⟪aubifs_core_index_lookup#(dentrykey(p_ino, dent.name), ri, fi, ro, fo, fs, log, boolvar0; boolvar, nd; err); 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, 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
Used simplifier rules: aubifs_core_index_lookup# (KEY, RI, FI, RO, FO, FS, LOG, CSYNCED; EXISTS, ND; ERR) {if ri-cons(RI, FS) then {fail_or_success#(; ; ERR); if ERR = ESUCCESS then {EXISTS := KEY ∈ RI; if EXISTS then ND := FS[RI[KEY]] else ND := ?} else EXISTS := ?, ND := ?} else abort };