Separate costs of a composition of imported functions #
The same FunctionComposition.functions declaration makes two real source
calls. Their independently proved time bounds are transported through the
generated imports and applied at the actual call sites. Copy's budget-free
contract supplies the intermediate array representation needed by sum.
Neither callee loop nor its frame implementation is reopened.
The body bound includes both inner calls and their generated ABI overhead. The final theorem additionally includes the enclosing call and halt of this single compiled invocation. No host-side preloading or array conversion is claimed as part of that execution.
The actual body first copies and then sums the resulting destination. Previously proved callee bounds and real call blocks give its linear bound.
The bound includes every inner and outer call block and the final halt of the same compiled invocation. Its termination proof remains budget-free.