From a framed block statement to counted runs and block-relation posts
Library · Source module
From a framed block statement to counted runs and block-relation posts
Routines are specified by NLAlib.Ops.Routine.Meets, whose conclusion is a NLAlib.Ops.Writes statement: a frame, the tape position and the written blocks read back. Counted statements and operation contracts are phrased with NLAlib.Ops.BlockRel.Post, the exact update equation. This file passes from the first form to the second.
Main results
* NLAlib.Ops.BlockRel.post_of_eqOff: a frame and the blocks read back give the update equation. * NLAlib.Ops.Writes.runs_post: a framed block statement is a run within the static count and workspace of the tree, with the update equation. * NLAlib.Ops.Writes.contract_post: the same statement with the postcondition of the contract in operand form.