| # buf = VFS_PAGE_SIZE, 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(m) ∈ ri ⊦ ⟪aubifs_core_index_lookup#(datakey(m, pageno), ri, fi, ro, fo, fs, log, boolvar0; boolvar, nd; err); if err = ESUCCESS then if boolvar then buf := copy(nd.data, 0, buf, 0, VFS_PAGE_SIZE) else buf := fill(buf, zero)⟫ true, fs[ri[inodekey(m)]].directory |
# buf = VFS_PAGE_SIZE, key = datakey(m, pageno), 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(m) ∈ ri ⊦ ⟪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 buf := copy(nd.data, 0, buf, 0, VFS_PAGE_SIZE) else buf := fill(buf, zero)⟫ true, fs[ri[inodekey(m)]].directory
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 };