NLAlib.Ops.stmtPeak_alloc
Library · theorem
An allocation of one-byte cells reserves one unit per cell. An allocation in an explicit storage format uses Stmt.allocAs and the byte width of the format.
NLAlib.Ops.stmtPeak_alloc {Op Tst : Type} (W : Op → List ℕ → ℕ) (len : Ops.IExp)
(body : Ops.Stmt Op Tst) (idx : List ℕ) :
Ops.stmtPeak W (Ops.Stmt.alloc len body) idx =
(Ops.IExp.eval idx len).getD 0 + Ops.stmtPeak W body idxImport NLAlib.Ops.Static.