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

asynced ↔ asynced5, afs_asynced ↔ cache_asynced, asynced3 ↔ cache_asynced, asynced4 ↔ asynced, asynced2 ↔ buf-opt.some?, asynced1 ↔ false, asynced0 ↔ false, ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[m] = mkfile(m0, md0, m1, content), afs_dirs = cache_dirs, afs_files = (cache_files ⊕ cache_pcache) ⊕ cache_icache, buf-opt = none, dirs = cache_dirs, err = ESUCCESS, err1 = err0, files = cache_files, icache = cache_icache, ino = inode.ino, inode = mkinode(m, md, false, m1, 0, m2), pageno = m2 / VFS_PAGE_SIZE, pcache = cache_pcache, size = inode.size, afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), pre-truncate(inode, n, pageno, buf-opt, dirs, files), synced(cache_dirs, cache_icache, cache_pcache), m ∈ cache_files, datakey(m, m2 / VFS_PAGE_SIZE) ∈ cache_pcache, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ⟪if buf-opt.none? then let buf = ? in {pcache_check_page#(ino, pageno, pcache; asynced1, asynced0, err); if err = ESUCCESS ∧ asynced1 then pcache_get#(ino, pageno, pcache; asynced1, buf, err); if err = ESUCCESS ∧ asynced1 then buf-opt := some(buf)}; if err = ESUCCESS then afs_truncate#(n, pageno; buf-opt, inode, asynced4, err, dirs, files, asynced3); if err = ESUCCESS then let asynced = false in {icache_set#(inode, asynced; err, icache); pcache_truncate#(inode.ino, size, n; err, pcache); if asynced4 then pcache_set#(inode.ino, pageno, buf-opt.buf, asynced; err, pcache)}; if (¬ asynced4 ∨ err ≠ ESUCCESS) ∧ ¬ asynced2 then buf-opt := none⟫ ⟨buf-opt0 := none; inode0 := mkinode(m, md, false, m1, 0, m2); afs_truncate#(n, m2 / VFS_PAGE_SIZE; buf-opt0, inode0, asynced5, err0, afs_dirs, afs_files, afs_asynced)⟩ ( afs_dirs = dirs ∧ afs_files = (files ⊕ pcache) ⊕ icache ∧ (afs_asynced ↔ asynced3) ∧ buf-opt = buf-opt0 ∧ inode = inode0 ∧ (asynced4 ↔ asynced5) ∧ err = err0), VFS_PAGE_SIZE = 0

Heuristic symbolic execution applied rule if positive right

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ none.none?; (s)