[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 3 from proof write-prepost-partial (previous step)

file = of1[fd], files0 = files1, n0 = n1, of0 = of1, afs-cons(dirs, files1), of-cons(of1, dirs, files1), n1 ≤ # buf ⊦ [vfs_write#(fd, buf, user; n1, err, of1, dirs, files1, asynced)] (err = ESUCCESS ⊃ (files1[file.ino].content.stream to files1[file.ino].size).buf = splice(buf, 0, (files0[file.ino].content.stream to files0[file.ino].size).buf, file.pos, n1) ∧ fd ∈ of0 ∧ of1 = of0[fd, file.pos:= (file.pos + n1)] ∧ n1 ≤ n0 ∧ file.ino ∈ files0 ∧ file.ino ∈ files1 ∧ files1[file.ino].meta = files0[file.ino].meta ∧ files1 -- file.ino = files0 -- file.ino ∧ (file.mode = MODE_W ∨ file.mode = MODE_RW) ;files1 ~ files0 ∧ of0 = of1 ∧ (err = EBADFD ∧ (fd ∈ of1 → file.mode ≠ MODE_W ∧ file.mode ≠ MODE_RW) ∨ ⌊err⌋ ) )

Heuristic unfold applied rule call right

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: vfs_write#(FD, BUF, USER; N, ERR, OF, DIRS, FILES, ASYNCED) {if N ≤ # BUF then {ERR := ESUCCESS; if ¬ FD ∈ OF then ERR := EBADFD else if OF[FD].mode ≠ MODE_W ∧ OF[FD].mode ≠ MODE_RW then ERR := EBADFD else if N ≠ 0 then choose INODE, MODIFIED with true in {afs_iget# (OF[FD].ino, DIRS, FILES, ASYNCED ; INODE, ERR); if ERR = ESUCCESS then if INODE.directory then ERR := EISDIR else let START = OF[FD].pos, END = OF[FD].pos + N, TOTAL = 0, PAGENO = 0, PBUF-OPT = none in {if ERR = ESUCCESS then PAGENO := INODE.size / VFS_PAGE_SIZE; if ERR = ESUCCESS then afs_truncate# (INODE.size, PAGENO ; PBUF-OPT, INODE, MODIFIED, ERR, DIRS, FILES, ASYNCED); if ERR = ESUCCESS then vfs_write_loop# (START, INODE, END, BUF, DIRS ; TOTAL, ERR, FILES, ASYNCED); if TOTAL ≠ 0 then ERR := ESUCCESS; if ERR = ESUCCESS then let SIZE = INODE.size in {N := TOTAL, END := START + TOTAL; if TOTAL ≠ 0 ∧ SIZE < END then {INODE.size := END; afs_check_commit# (DIRS, FILES ; ERR ; ASYNCED); if ERR = ESUCCESS then afs_write_inode# (INODE ; ERR, DIRS, FILES ; ASYNCED)}; if ERR ≠ ESUCCESS then N := (START ≤ SIZE ⊃ SIZE - START ;0 ), ERR := ESUCCESS; OF[FD].pos := START + N}}}} else abort };