| of[fd] = mkfile(m, mode, m0), err = ESUCCESS, root.dir?, dom of < ino, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), fd ∈ of, psynced → asynced ⊦ ⟪afs_iget#(m, dirs, files, asynced; inode, err); n := n0; if err = ESUCCESS then n := inode.size + n; ofh := abs-of(of); if err = ESUCCESS then of[fd].pos := n⟫ ⟨posix_seek#(fd, SEEK_END, user, root, abs-files(files); n0, err0, ofh)⟩ (ofh = abs-of(of) ∧ (psynced → asynced) ∧ n = n0 ∧ err = err0) |
of[fd] = mkfile(m, mode, m0), err = ESUCCESS, ino = m, root.dir?, dom of < ino0, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), fd ∈ of, psynced → asynced ⊦ ⟪if pre-iget(ino, dirs, files) then {{inode := getinode(ino, dirs, files); err := ESUCCESS} or fail#(; ; err)} else abort; n := n0; if err = ESUCCESS then n := inode.size + n; ofh := abs-of(of); if err = ESUCCESS then of[fd].pos := n⟫ ⟨posix_seek#(fd, SEEK_END, user, root, abs-files(files); n0, err0, ofh)⟩ (ofh = abs-of(of) ∧ (psynced → asynced) ∧ n = n0 ∧ err = err0)
Used simplifier rules: afs_iget#(INO, DIRS, FILES, ASYNCED; INODE, ERR) {if pre-iget(INO, DIRS, FILES) then { {INODE := getinode(INO, DIRS, FILES); ERR := ESUCCESS} or fail#(; ; ERR)} else abort };