Compiler-derived function costs #
Ram.Source.FunctionMeasuredExec observes the same invocation as
Ram.Source.FunctionExec, with the exact compiled count of its body. This count
includes calls performed by the body, but not the enclosing caller's argument
evaluation, frame setup or return sequence. Ram.Source.FunctionMeasuredExec.call
adds those actual generated blocks when the function is invoked at a call site.
Ram.Source.FunctionTimeBound is a separate conditional bound on body execution.
Combining it with Ram.Source.FunctionContract establishes termination, the
functional postcondition and the bound for one and the same invocation.
The count is independent of the proposed bound and safety capacities.
Function invocation with its exact compiled body count. The returned fields
and shared effects are those of the same body; enclosing call overhead is
accounted for by FunctionMeasuredExec.call, not included in bodySteps.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Reuse the existing measured body without choosing a cost annotation.
Erasing the count retains the same safe invocation.
Measuring the body does not change the number of returned fields.
A body has one count and one result, independently of safety capacities and the compiler's reserved-register boundary.
Count an actual call, including argument evaluation, frame code, the entry jump, the callee body, return code and every result-field receipt.
Safe termination already determines an actual body count; a time bound is not needed to obtain the corresponding measured invocation.
A conditional bound on the actual body count. This does not assert
termination; use FunctionContract.with_timeBound for a total guarantee.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Transfer an existing body-time proof through the argument representation. No functional specification or proposed result is used to define the count.
Attach a separate bound to the very invocation supplied by correctness.