| fs[ri[inodekey(p_ino)]].directory, 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(p_ino) ∈ ri, asynced → boolvar1, fs[ri[inodekey(p_ino)]].nlink ≠ 0 ∨ p_ino = ROOT_INO, links(p_ino, abs-dirs(fs, ri)) ≠ ∅ ∨ p_ino = ROOT_INO ⊦ ⟪fail_or_success#(; ; err); if err = ESUCCESS then {boolvar := dentrykey(p_ino, old_dent.name) ∈ ri; if boolvar then nd := fs[ri[dentrykey(p_ino, old_dent.name)]] else nd := ?} else boolvar := ?, nd := ?; dent := old_dent; if err = ESUCCESS then if boolvar then dent := mkdentry(dent.name, nd.ino), err := ESUCCESS else dent := negdentry(dent.name), err := ENOENT⟫ ⟨afs_lookup#(p_ino, abs-dirs(fs, ri), abs-files(fs, ri), asynced; old_dent, err0)⟩ ((asynced → boolvar1) ∧ dent = old_dent ∧ err = err0) |
fs[ri[inodekey(p_ino)]].directory, 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(p_ino) ∈ ri, asynced → boolvar1, links(p_ino, abs-dirs(fs, ri)) ≠ ∅ ∨ p_ino = ROOT_INO, fs[ri[inodekey(p_ino)]].nlink ≠ 0 ∨ p_ino = ROOT_INO ⊦ ⟪choose err0 with ⌊err0⌋ ∨ err0 = ESUCCESS in err := err0; if err = ESUCCESS then {boolvar := dentrykey(p_ino, old_dent.name) ∈ ri; if boolvar then nd := fs[ri[dentrykey(p_ino, old_dent.name)]] else nd := ?} else boolvar := ?, nd := ?; dent := old_dent; if err = ESUCCESS then if boolvar then dent := mkdentry(dent.name, nd.ino), err := ESUCCESS else dent := negdentry(dent.name), err := ENOENT⟫ ⟨afs_lookup#(p_ino, abs-dirs(fs, ri), abs-files(fs, ri), asynced; old_dent, err0)⟩ ((asynced → boolvar1) ∧ dent = old_dent ∧ err = err0)
Used simplifier rules: fail_or_success#(; ; ERR) {choose ERR0 with ⌊ERR0⌋ ∨ ERR0 = ESUCCESS in ERR := ERR0};