/** * The budgets a host is willing to spend, `compiled-program.md` 2.4 and 9.4 step * 7. * * Separate from `verify.ts` because it answers a different question. Verification * asks whether this is a valid program, which every engine answers the same way * because the specification says how. These ask whether this host will run it, * and two hosts may honestly differ: a ceiling here is a configuration, not a * property of the language. * * **None of them silently caps anything.** 2.4 is explicit: a host refuses at * load, naming the limit and the value it allows. A program that quietly gets a * smaller budget than it asked for produces a wrong number instead of a message, * and nothing on the chart would say which number. * * The walks below read tables that verification has not reached yet, because the * budget refusals are step 7 of 9.4 and verification is step 8. Reading them * defensively is what keeps the specification's order from turning a malformed * program into a thrown error rather than the OS6018 step 8 is about to report, * naming the instruction. */ import type { Diagnostic } from '../diagnostics/index.js'; import type { EngineLimits } from './budget.js'; import type { CompiledProgram, Instruction } from './types.js'; /** Each ceiling in turn, stopping at the first the program is over. */ export declare function checkBudgets(program: CompiledProgram, limits: EngineLimits): Diagnostic | undefined; /** * Every instruction list in the program, the bodies of its reads included. * * A read's expression is part of the program: an engine that cannot run an * `ELEM` cannot run one inside a read either, and a budget or a tag worked out * from the bar's list alone would say otherwise. */ export declare function allCode(program: CompiledProgram): (readonly Instruction[])[]; //# sourceMappingURL=verify-budgets.d.ts.map