NLAlib.Ops.Examples.WorkedInstances.EarlyExit.stop_run
Library · theorem
The run ended by its test. From the counter 2, the execution rules derive one outcome of the countdown: the cells hold (0, 2); the instructions are those of NLAlib.Ops.Examples.WorkedInstances.EarlyExit.stopTrace, in that order: 2 decrements, 2 increments, 3 tests, 11 operand resolutions and 37 instructions in all; no scratch is used. The operand resolutions are one for each of the three tests and four in each round.
NLAlib.Ops.Examples.WorkedInstances.EarlyExit.stop_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 2 0) st ∧
st.mem = Ops.Examples.twoCells 0 2 ∧
st.cost =
List.foldl (fun x1 x2 ↦ x1 + x2) 0 Ops.Examples.WorkedInstances.EarlyExit.stopTrace ∧
Ops.Examples.WorkedInstances.EarlyExit.tallies st.cost = (2, 2, 3, 11, 37) ∧ st.peak = 0Import NLAlib.Ops.Examples.WorkedInstances.EarlyExit.