[Imprint][Data Privacy Statement][E-Mail]



View long theorem info. View the proof. Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Proof step 45 from proof inv-write (previous step)

files[m] = mkfile(m1, md, # links(m, dirs), content0), of[fd] = mkfile(m, mode, m0), buf-opt = none, content = files[inode.ino].content, dirs1 = dirs, err = ESUCCESS, ino = inode.ino, ino0 = min(n, inode.size), ino1 = inode.size % VFS_PAGE_SIZE, ino2 = 0, ino5 = 0, ino6 = ino2, ino7 = ino5, inode = mkinode(m, md, false, # links(m, dirs), 0, m1), n = m1, pageno = m1 / VFS_PAGE_SIZE, dom of < ino3, afs-cons(dirs, files), of-cons(of, dirs, files), fd ∈ of, m ∈ files, n0 ≤ # buf0 ⊦ [if inode.size ≤ n ∧ ino1 ≠ 0 ∧ (pageno ∈ content ∨ buf-opt.some?) then {if buf-opt.some? then buf := buf-opt.buf else buf := files[ino].content[pageno]; buf := fill(buf, zero, ino1, VFS_PAGE_SIZE - ino1); content[pageno] := buf; buf-opt := some(buf)}; files[ino].content := content upto ino0; let new_inode = inode in {new_inode.size := n; afs_inode_sync#(new_inode; dirs, files)}; inode := getinode(inode.ino, dirs, files); err := ESUCCESS; asynced := ?; ino4 := 0; if err = ESUCCESS then vfs_write_loop#(m0, inode, m0 + n0, buf0, dirs; ino4, err, files, asynced); if ino4 ≠ 0 then err := ESUCCESS; if err = ESUCCESS then let ino = inode.size in {n0 := ino4, ino1 := m0 + ino4; if ino4 ≠ 0 ∧ ino < ino1 then {inode.size := ino1; afs_check_commit#(dirs, files; err; asynced); if err = ESUCCESS then afs_write_inode#(inode; err, dirs, files; asynced)}; if err ≠ ESUCCESS then n0 := (m0 ≤ ino ⊃ ino - m0;0), err := ESUCCESS; of[fd].pos := m0 + n0}] (dirs1 = dirs → of-cons(of, dirs, files) ∧ dom of < ino3 ∧ afs-cons(dirs, files)), VFS_PAGE_SIZE = 0, n0 = 0, mode ≠ MODE_W ∧ mode ≠ MODE_RW

Heuristic conditional right split applied rule if right

And obtained the following new goals

Rule argument

pos: right 1

Additional information