| # buf0 = VFS_PAGE_SIZE, fo.inodes?, orphans(fs, ri).inodes?, afs-cons(abs-dirs(fs, ri), abs-files(fs, ri)), file-node-cons(fs, ri), log-cons(log, fs), orphans-cons(fs, ri, orphans(fs, ri)), replay-cons-strong(fs, ri, orphans(fs, ri), fi, fo, log), ri-inj(fi), ri-inj(ri), ubifs-cons(fs, ri, orphans(fs, ri), fi, fo, log), inodekey(m) ∈ ri, asynced → boolvar2 ⊦ ⟪aubifs_core_index_lookup#(datakey(m, pageno), ri, fi, orphans(fs, ri), fo, fs, log, boolvar2; boolvar, nd; err); buf := buf0; if err = ESUCCESS then if boolvar then buf := copy(nd.data, 0, buf, 0, VFS_PAGE_SIZE) else buf := fill(buf, zero)⟫ ⟨afs_readpage#(mkinode(m, md, boolvar1, m0, m1, m2), pageno, abs-dirs(fs, ri), abs-files(fs, ri), asynced; buf0, err0)⟩ ((asynced → boolvar2) ∧ buf = buf0 ∧ err = err0), fs[ri[inodekey(m)]].directory |
# buf0 = VFS_PAGE_SIZE, boolvar0 ↔ boolvar2, key = datakey(m, pageno), ro = orphans(fs, ri), orphans(fs, ri).inodes?, fo.inodes?, afs-cons(abs-dirs(fs, ri), abs-files(fs, ri)), file-node-cons(fs, ri), log-cons(log, fs), orphans-cons(fs, ri, orphans(fs, ri)), replay-cons-strong(fs, ri, orphans(fs, ri), fi, fo, log), ri-inj(ri), ri-inj(fi), ubifs-cons(fs, ri, orphans(fs, ri), fi, fo, log), inodekey(m) ∈ ri, asynced → boolvar2 ⊦ ⟪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; buf := buf0; if err = ESUCCESS then if boolvar then buf := copy(nd.data, 0, buf, 0, VFS_PAGE_SIZE) else buf := fill(buf, zero)⟫ ⟨afs_readpage#(mkinode(m, md, boolvar1, m0, m1, m2), pageno, abs-dirs(fs, ri), abs-files(fs, ri), asynced; buf0, err0)⟩ ((asynced → boolvar2) ∧ buf = buf0 ∧ err = err0), 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 };