| psynced, root.dir?, fids-cons(root, fs, ofh), posix-crash(root, fs, ofh, tree, fs0, ofh0) ⊦ ⟨posix_truncate#(path, n, user, root, ofh; err, fs; psynced)⟩ (psynced ∧ posix-crash(root, fs, ofh, tree, fs0, ofh0)) |
⊦
err0 = err, psynced, root.dir?, fids-cons(root, fs, ofh), posix-crash(root, fs, ofh, tree, fs0, ofh0) ⊦ ⟨choose err with pre-truncate(path, n, err, user, root, fs, ofh) in err0 := err; if err0 = ESUCCESS then let fid = root[path].fid in let buf = fs[fid].content in fs[fid].content := resize(buf, n); psynced := ?⟩ (psynced ∧ posix-crash(root, fs, ofh, tree, fs0, ofh0))
Used simplifier rules: truncate: ⊦ ;