NLAlib.Ops.Examples.WorkedInstances.EarlyExit.cap_run
Library · theorem
The run ended by its cap. From the counter 7, the execution rules derive one outcome of the countdown: the cells hold (2, 5); the instructions are those of NLAlib.Ops.Examples.WorkedInstances.EarlyExit.capTrace, in that order: 5 decrements, 5 increments, 5 tests, 26 operand resolutions and 81 instructions in all; no scratch is used. Only five tests are made, and the operand of the test is resolved six times: the sixth is the charge of the exit.
NLAlib.Ops.Examples.WorkedInstances.EarlyExit.cap_run :
∃ st,
Ops.Reference.Execution Ops.Examples.WorkedInstances.EarlyExit.program Ops.Examples.ctlInterp
Ops.Examples.WorkedInstances.EarlyExit.resources (fun x ↦ Ops.StorageFormat.cell)
(fun x x_1 ↦ 0) (fun x ↦ 0) (Ops.Examples.twoCells 7 0) st ∧
st.mem = Ops.Examples.twoCells 2 5 ∧
st.cost =
List.foldl (fun x1 x2 ↦ x1 + x2) 0 Ops.Examples.WorkedInstances.EarlyExit.capTrace ∧
Ops.Examples.WorkedInstances.EarlyExit.tallies st.cost = (5, 5, 5, 26, 81) ∧ st.peak = 0Import NLAlib.Ops.Examples.WorkedInstances.EarlyExit.