NLAlib.Ops.Reference.instrumented_ite
Library · theorem
The branch charge and its actual query precede the selected statement.
NLAlib.Ops.Reference.instrumented_ite {Op Tst K : Type} (I : Ops.Interp Op Tst K)
(R : Ops.ResourceModel Op Tst) (τ : Ops.Tape K) (q : Tst) (ds : List Ops.IExp)
(ins : List Ops.Operand) (s t : Ops.Stmt Op Tst) (ρ : Ops.Env) (a : Ops.Reference.State Op Tst K)
(ha : a.cur ≤ a.peak) {d : List ℕ} {xs : List (ℕ × ℕ)} {v : Bool}
(hd : Ops.IExp.evalList ρ.idx ds = some d) (hx : Ops.Operand.evalList ρ ins = some xs)
(hq : I.test q d xs a.mem = some v) :
Ops.Reference.instrumented I R τ (Ops.Stmt.ite q ds ins s t) ρ a =
Ops.Reference.instrumented I R τ (if v = true then s else t) ρ
(Ops.Reference.charge
(Ops.Reference.dimensions ds + Ops.Reference.operands ins +
Ops.Reference.core Ops.Bookkeeping.branch +
Ops.Count.test q d)
a)Import NLAlib.Ops.Reference.Accounting.