The static count and scratch are exact for trees without tests
Library · Source module
The static count and scratch are exact for trees without tests
NLAlib.Ops.exec_static bounds the count and the scratch of every successful run by the static count and the static scratch of the tree. For a tree with no test, no loop with early exit and no index query (NLAlib.Ops.Stmt.Straight) the control flow does not depend on the data, and the bound is an equality: every successful run makes exactly the calls and structural instructions the tree contains, and its peak scratch is exactly the static scratch.
Main results
* NLAlib.Ops.evalCounted_exactly_of_straight: the statement for a tree, from any state. * NLAlib.Ops.Stmt.straight_of_isStraight: a Boolean check the kernel evaluates. * NLAlib.Ops.exec_eq_static_of_straight: the statement for the evaluator of a program. * NLAlib.Ops.Reference.Execution.eq_static_of_straight: the statement for the execution rules.
Declarations
- NLAlib.Ops.Reference.Execution.eq_static_of_straight
- NLAlib.Ops.St.Exactly
- NLAlib.Ops.St.Exactly.consistent
- NLAlib.Ops.St.Exactly.refl
- NLAlib.Ops.St.Exactly.trans
- NLAlib.Ops.Stmt.Straight.instrument
- NLAlib.Ops.Stmt.isStraight
- NLAlib.Ops.Stmt.straight_of_isStraight
- NLAlib.Ops.evalCounted_exactly_of_straight
- NLAlib.Ops.exec_eq_static_of_straight
- NLAlib.Ops.iter_exactly
- NLAlib.Ops.straight_tally