[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 81 from proof refine-read (previous step)

files[m3] = mkfile(m1, md, m2, content), of[fd] = mkfile(m3, mode0, m4), ofh = abs-of(of), ino ≠ 0, root.dir?, dom of < ino2, abs(root, ROOT_INO)(dirs), afs-cons(dirs, files), fids-cons(root, abs-files(files), abs-of(of)), of-cons(of, dirs, files), of-cons(of[fd, mkfile(m3, mode0, m4 + ino)], dirs, files), read-inv(m4, m4 + n0, mkinode(m3, md, false, m2, 0, m1), buf0, buf0, 0, dirs, files), read-inv(m4, m4 + n0, mkinode(m3, md, false, m2, 0, m1), buf0, buf1, ino, dirs, files), fd ∈ of, n0 ≤ # buf0, m4 ≤ m1, psynced → asynced, ⌊err1⌋ ∨ err1 = ESUCCESS ⊦ ⟨posix_read#(fd, user, root, abs-files(files); buf0, n0, err0, ofh)⟩ (ofh = abs-of(of[fd, of[fd].pos:= (m4 + n0)]) ∧ (psynced → asynced) ∧ buf1 = buf0 ∧ ino = n0 ∧ ESUCCESS = err0), mode0 ≠ MODE_R ∧ mode0 ≠ MODE_RW

Heuristic unfold applied rule call right

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: posix_read#(FD, USER, ROOT, FS; BUF, N, ERR, OFH) {if N ≤ # BUF then {choose E with pre-read(FD, N, E, USER, ROOT, FS, OFH) in ERR := E; if ERR = ESUCCESS then let FH = OFH[FD] in let FDATA = FS[FH.fid] in choose N0 with N0 ≤ N ∧ FH.pos + N0 ≤ # FDATA.content in {N := N0; BUF := copy(FDATA.content, FH.pos, BUF, 0, N); OFH[FD].pos := FH.pos + N} ifnone N := 0 else N := ?} else abort };