NLAlib.Ops.Reference.Examples.Payload.resource_readback
Library · theorem
The same execution restores memory and all allocations, has 34 bytes of reserved scratch, 42 bytes including the supplied payload, and the independently stated work/span 22/13.
NLAlib.Ops.Reference.Examples.Payload.resource_readback :
∃ st,
Ops.exec Ops.Reference.Examples.Payload.program Ops.Reference.Examples.Payload.identity
Ops.Reference.Examples.Payload.resources (fun x ↦ Ops.StorageFormat.fp32)
(fun x x_1 ↦ false) (fun x ↦ 0) Ops.Reference.Examples.Payload.initial =
some st ∧
st.mem = Ops.Reference.Examples.Payload.initial ∧
st.cur = 0 ∧
st.peak = 34 ∧
Ops.StorageFormat.fp32.bytes * Ops.Reference.Examples.Payload.initial.store.len 0 +
st.peak =
42 ∧
(Ops.Count.lift fun x x_1 ↦ 1) st.cost = 11 ∧
Ops.Reference.Examples.Payload.resources.work st.cost = 22 ∧
Ops.Reference.Examples.Payload.resources.span st.cost = 13Import NLAlib.Ops.Examples.Reference.