Composing pointer-machine instruction blocks #
Relocation shifts internal branch targets and replaces halt by a jump to a continuation.
Executes.inBlock turns a proved halting run into a run of the same instruction count
inside a larger concrete program. The old halt is charged as the continuation jump.
Registers and heap are preserved exactly by this translation; only program counters change.
Relocating control flow does not change which scalar fields an instruction can write.
A halting block runs inside any prefix and suffix, with the same instruction count.
Each former halt jumps to the absolute continuation label next. The resulting state
is the original result with only its program counter replaced by that label.
Executing a conditional block costs the selected block's time plus two instructions: the initial test and the final halt. The selected block's old halt is a charged jump.
Sequential block composition preserves the second result and charges the two block costs plus one final halt. The second block enters at its own label zero; the first keeps its original entry label.
Sequential composition introduces no scalar writes or allocation of its own.
Branch selection introduces no scalar writes or allocation of its own.