| icache-cons(icache, dirs, files) ⊦ [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); files0 := (files ⊕ pcache) ⊕ icache; 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)}] (files0 = (files ⊕ pcache) ⊕ icache) |
ino = m, icache-cons(icache, dirs, files) ⊦ [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); files0 := (files ⊕ pcache) ⊕ icache; 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)}] (files0 = (files ⊕ pcache) ⊕ icache)
Used simplifier rules: icache_check_inode#(INO, ICACHE; HIT, DIRTY, ERR) {if INO ∈ ICACHE then {HIT := true; DIRTY := ICACHE[INO].dirty} else HIT := false };