| ¬ asynced3, err = ESUCCESS, afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files ⊦ ⟪icache_get#(m, icache; asynced3, inode1, err); if err = ESUCCESS ∧ asynced3 then {inode1.meta := md; inode1.size := m2; icache_set#(inode1, true; err, icache)} else if true then err := EFAIL⟫ (icache-cons(icache, dirs, files) ∧ synced(dirs, icache, pcache)) |
asynced ↔ asynced3, ¬ asynced3, err = ESUCCESS, ino = m, inode = inode1, afs-cons(dirs, files), dcache-cons(dcache, dirs, files), icache-cons(icache, dirs, files), pcache-cons(pcache, dirs, files), synced(dirs, icache, pcache), m ∈ files ⊦ ⟪if ino ∈ icache then {inode := icache[ino].inode; asynced := true} else asynced := false; err := ESUCCESS; if err = ESUCCESS ∧ asynced then {inode1 := inode.meta:= md; inode1.size := m2; icache_set#(inode1, true; err, icache)} else if true then err := EFAIL⟫ (icache-cons(icache, dirs, files) ∧ synced(dirs, icache, pcache))
Used simplifier rules: icache_get#(INO, ICACHE; HIT, INODE, ERR) {if INO ∈ ICACHE then {INODE := ICACHE[INO].inode; HIT := true} else HIT := false; ERR := ESUCCESS };