import type { Instruction } from './types.js'; import type { ShapeCheck } from './verify-shape.js'; export interface ListLimits { readonly slots: number; readonly cells: number; readonly states: number; readonly registers: number; readonly channels: number; readonly libFunctions: number; readonly callSites: number; readonly loops: number; readonly consts: number; readonly series: number; argcOf(site: number): number; } /** * Walks one instruction list. * * `terminator` is `HALT` for the bar's own code and `RET` for a function body, * which is check 4, and the depth at it must be zero, which is check 5. */ export declare function checkList(shape: ShapeCheck, list: string, code: readonly Instruction[], limits: ListLimits, terminator: 'HALT' | 'RET'): boolean; /** * Check 7: every channel declared `once` is written exactly once on every path * from instruction 0 to `HALT`. * * That is how a plot column is guaranteed a value, or an explicit absence, for * every bar. The counts are capped at two, because "more than once" is the whole * of what the check needs to know and a loop would otherwise never settle. */ export declare function checkOnce(shape: ShapeCheck, code: readonly Instruction[], once: readonly boolean[]): boolean; //# sourceMappingURL=verify-code.d.ts.map