import type { Emitter, Site } from './context.js'; import { Frame } from './context.js'; import type { Cell, StateRegion } from './program.js'; /** The `functions` entry a call site should name, emitting the body if needed. */ export declare function bodyFor(e: Emitter, checkedFunction: number, site: Site): number; /** * The cell and state base of every call site, once the top level's own totals * are known. * * A body numbers its cells and its state regions from zero and the site adds * the base, so the only requirement is that the blocks do not overlap. Walking * the sites depth first with one counter is the whole of it: a site's own block * is taken, then the blocks of every site its body reaches. */ export declare function assignBases(e: Emitter, topCells: number, topStates: number): void; /** * `cells` and `states`, once one frame and every call path reached from it are * counted. * * A body numbers its own from zero and the call site adds the base, so the two * tables are that frame's own block followed by one block per site, in the * order the bases were handed out. It is the same arithmetic for the top level * of a program and for the body of a read (2.16), which evaluates on its own * bars and so counts its own regions from zero. */ export declare function assignRegions(e: Emitter, top: Frame): { readonly cells: readonly Cell[]; readonly states: readonly StateRegion[]; }; //# sourceMappingURL=functions.d.ts.map