runtime.configure()
Inspects or tightens execution limits.
Signature
runtime.configure([settings])
Parameters
Optional dictionary containing instruction_limit and/or call_limit with positive signed or unsigned integers.
Returns
Dictionary with both current limits, as unsigned integers.
Behavior
Zero instruction limit in a report means unlimited. Existing nonzero limits can only decrease. Budget already consumed is preserved when reducing a limit.
Errors
Unknown setting, invalid value, or attempted increase.
Example
use runtime
before = runtime.configure()
assert(before.call_limit > 0)
runtime.configure({instruction_limit = 100000})