| # gndx0 = # lax, # buf2 = gndx0.flashsize + # buf1, subarray(buf2, gndx0.flashsize + 2 * NODE_HEADER_SIZE + gnd.alignedsize, gndx3.flashsize) = subarray(buf1, 2 * NODE_HEADER_SIZE + gnd.alignedsize, gndx3.flashsize), abs-node(subarray(buf2, gndx0.flashsize, 2 * NODE_HEADER_SIZE + gnd.alignedsize), gnd), abs-nodes(subarray(buf2, 0, gndx0.flashsize), n, gndx0, lax, false), ∃ buf0, buf2. buf1 = buf0 + buf2 ∧ # buf0 = gndx3.flashsize ∧ # buf2 = 2 * NODE_HEADER_SIZE + gnd.alignedsize ⊦ ∃ buf, buf0. buf2 = buf + buf0 ∧ # buf = gndx0.flashsize + 2 * NODE_HEADER_SIZE + gnd.alignedsize ∧ abs-nodes(buf, n, gndx0 + gnd ', lax + @(n + gndx0.flashsize, 2 * NODE_HEADER_SIZE + gnd.alignedsize) ', false) |
# gndx0 = # lax, # buf0 = gndx3.flashsize, # buf = 2 * NODE_HEADER_SIZE + gnd.alignedsize, # buf2 = gndx0.flashsize + gndx3.flashsize + # buf, subarray(buf2, gndx0.flashsize + # buf, gndx3.flashsize) = subarray(buf0 + buf, # buf, gndx3.flashsize), abs-node(subarray(buf2, gndx0.flashsize, # buf), gnd), abs-nodes(subarray(buf2, 0, gndx0.flashsize), n, gndx0, lax, false) ⊦ ∃ buf, buf0. buf2 = buf + buf0 ∧ # buf = gndx0.flashsize + 2 * NODE_HEADER_SIZE + gnd.alignedsize ∧ abs-nodes(buf, n, gndx0 + gnd ', lax + @(n + gndx0.flashsize, 2 * NODE_HEADER_SIZE + gnd.alignedsize) ', false)
Used simplifier rules: a: ⊦ (m + n0) + n1 = m + n0 + n1; from specification nat-basic%append-a: ⊦ (buf + buf0) + buf1 = buf + buf0 + buf1; from specification array-splice[buffer]% ⊦ #(buf + buf0) = # buf + # buf0; (s)