| err = ESUCCESS ∨ ⌊err⌋ ⊦ [icache_check_inode#(m, icache; asynced0, asynced, err); ino := m; inode := mkinode(m, md, boolvar, m0, m1, m2); if err = ESUCCESS ∧ asynced0 ∧ asynced then icache_get#(ino, icache; asynced0, inode, err); if err = ESUCCESS ∧ asynced0 ∧ asynced then afs_write_inode#(inode; err, dirs, files; asynced1); if err = ESUCCESS then {asynced := false; icache_set_status#(ino, asynced; err, icache)}] (err = ESUCCESS ∨ ⌊err⌋ ) |
ino = m, err = ESUCCESS ∨ ⌊err⌋ ⊦ [if ino ∈ icache then {asynced0 := true; asynced := icache[ino].dirty} else asynced0 := false; ino := m; inode := mkinode(m, md, boolvar, m0, m1, m2); if err = ESUCCESS ∧ asynced0 ∧ asynced then icache_get#(ino, icache; asynced0, inode, err); if err = ESUCCESS ∧ asynced0 ∧ asynced then afs_write_inode#(inode; err, dirs, files; asynced1); if err = ESUCCESS then {asynced := false; icache_set_status#(ino, asynced; err, icache)}] (err = ESUCCESS ∨ ⌊err⌋ )
Used simplifier rules: icache_check_inode#(INO, ICACHE; HIT, DIRTY, ERR) {if INO ∈ ICACHE then {HIT := true; DIRTY := ICACHE[INO].dirty} else HIT := false };