| # buf0 = VFS_PAGE_SIZE, m2 + n1 = m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE + VFS_PAGE_SIZE, cache_pcache0[datakey(m0, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), cache_files[m0] = mkfile(m1, md2, # links(m0, cache_dirs), content1), (∅)[m0] = mkientry(boolvar2, mkinode(m10, md4, boolvar1, m11, m12, m13)), fill(buf0, zero, n0, n1) = fill((content1 ⊕ mkcontent(m0, cache_pcache0))[m2 / VFS_PAGE_SIZE], zero, n0, n1), m2 = n0 + m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache0) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache0, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache0), datakey(m0, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m0 ∈ cache_files, VFS_PAGE_SIZE ≤ # (content1 ⊕ mkcontent(m0, cache_pcache0))[m2 / VFS_PAGE_SIZE], m2 ≤ m7, cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 = m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, m0 ∈ cache_icache, ( m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 ↔ m2 / VFS_PAGE_SIZE ∈ (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, n0, n1)] upto m2) ⊕ mkcontent(m0, truncate(m0, m2, cache_pcache0)[datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, n0, n1))])) ∧ ( m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 → fill(buf0, zero, n0, n1) = ( (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, n0, n1)] upto m2) ⊕ mkcontent(m0, truncate(m0, m2, cache_pcache0)[datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, n0, n1))]) )[m2 / VFS_PAGE_SIZE ]) |
# buf0 = VFS_PAGE_SIZE, m2 + n1 = m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE + VFS_PAGE_SIZE, (∅)[m0] = mkientry(boolvar2, mkinode(m10, md4, boolvar1, m11, m12, m13)), cache_files[m0] = mkfile(m1, md2, # links(m0, cache_dirs), content1), cache_pcache0[datakey(m0, m2 / VFS_PAGE_SIZE)] = mkpentry(boolvar, buf0), fill(buf0, zero, n0, n1) = fill((content1 ⊕ mkcontent(m0, cache_pcache0))[m2 / VFS_PAGE_SIZE], zero, n0, n1), m2 = n0 + m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2, afs-cons(cache_dirs, (cache_files ⊕ cache_pcache0) ⊕ 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_pcache0, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache0), m0 ∈ cache_files, datakey(m0, m2 / VFS_PAGE_SIZE) ∈ cache_pcache0, m2 ≤ m7, VFS_PAGE_SIZE ≤ # (content1 ⊕ mkcontent(m0, cache_pcache0))[m2 / VFS_PAGE_SIZE], cache_sync → synced(cache_files, cache_icache, cache_pcache0), ∀ key. key ∈ cache_pcache0 → key.data? ⊦ m2 = m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE, m0 ∈ cache_icache, ( m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 ↔ m2 / VFS_PAGE_SIZE ∈ (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, n0, n1)] upto m2) ⊕ mkcontent(m0, truncate(m0, m2, cache_pcache0)[datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, n0, n1))])) ∧ ( m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2 → fill(buf0, zero, n0, n1) = ( (content1[m2 / VFS_PAGE_SIZE, fill(buf0, zero, n0, n1)] upto m2) ⊕ mkcontent(m0, truncate(m0, m2, cache_pcache0)[datakey(m0, m2 / VFS_PAGE_SIZE), mkpentry(false, fill(buf0, zero, n0, n1))]) )[m2 / VFS_PAGE_SIZE ])
Used simplifier rules: ⊦ m ≠ n → (m < n ↔ ¬ n < m); (ss)% ⊦ VFS_PAGE_SIZE ≠ 0; (s)%n ≠ 0 ⊦ ¬ m < m / n * n; (s)%mult-a: ⊦ m0 * m * n = (m0 * m) * n; from specification nat-mult%mult-c: ⊦ m * n = n * m; from specification nat-mult Used formulas: m2 / VFS_PAGE_SIZE * VFS_PAGE_SIZE < m2