[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 56 from proof refine-truncate-buff-none-uncached (previous step)

asynced0 ↔ inode.size ≤ n ∧ old_ino ≠ 0 ∧ (pageno ∈ content ∨ buf-opt.some?), asynced2 ↔ asynced5, ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[m] = mkfile(m0, md0, # links(m, cache_dirs), content0), cache_files[m] = mkfile(m1, md2, # links(m, cache_dirs), content1), afs_files = (cache_files ⊕ cache_pcache) ⊕ cache_icache, asynced0, buf-opt = none, content = files[inode.ino].content, dirs = cache_dirs, err = ESUCCESS, files = cache_files, ino = inode.ino, inode = mkinode(m, md, false, # links(m, cache_dirs), 0, m2), old_ino = inode.size % VFS_PAGE_SIZE, old_ino0 = 0, pageno = m2 / VFS_PAGE_SIZE, size = min(n, inode.size), size0 = 0, afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), afs-cons(cache_dirs, cache_files), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), pageno ∈ files[ino].content, m ∈ cache_files, old_ino + (VFS_PAGE_SIZE - old_ino) ≤ # files[ino].content[pageno], VFS_PAGE_SIZE ≥ old_ino, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ⟪let new_inode = inode in {new_inode.size := n; files0 := files[ino, files[ino].content:= (content[pageno, fill(files[ino].content[pageno], zero, old_ino, VFS_PAGE_SIZE - old_ino)] upto size)]; afs_inode_sync#(new_inode; dirs, files0)}; inode := getinode(inode.ino, dirs, files0); err := ESUCCESS; asynced := ?; asynced1 := asynced0; buf-opt := some(fill(files[ino].content[pageno], zero, old_ino, VFS_PAGE_SIZE - old_ino)); if err = ESUCCESS then let asynced0 = false in {icache_set#(inode, asynced0; err, cache_icache); pcache_truncate#(inode.ino, m2, n; err, cache_pcache); if asynced1 then pcache_set#(inode.ino, m2 / VFS_PAGE_SIZE, buf-opt.buf, asynced0; err, cache_pcache)}; if ¬ asynced1 ∨ err ≠ ESUCCESS then buf-opt := none⟫ ⟨buf-opt0 := none; inode0 := mkinode(m, md, false, # links(m, cache_dirs), 0, m2); afs_truncate#(n, m2 / VFS_PAGE_SIZE; buf-opt0, inode0, asynced5, err0, cache_dirs, afs_files, cache_asynced)⟩ ( cache_dirs = dirs ∧ afs_files = (files0 ⊕ cache_pcache) ⊕ cache_icache ∧ (cache_asynced ↔ asynced) ∧ buf-opt = buf-opt0 ∧ inode = inode0 ∧ (asynced1 ↔ asynced5) ∧ err = err0), VFS_PAGE_SIZE = 0, datakey(m, m2 / VFS_PAGE_SIZE) ∈ cache_pcache

Heuristic symbolic execution applied rule let right

And obtained the following new goals

Rule argument

Additional information