Skip to main content

collect_inits

Function collect_inits 

Source
pub fn collect_inits(
    stmts: &[Stmt<'_>],
    interner: &Interner,
) -> HashMap<String, Vec<(usize, InitVal)>>
Expand description

Collect the concrete initializers a program writes — Set item N of V to <literal> with literal N and an integer/float value (1-based N, recorded 0-based) — so the orchestrator’s INPUT buffers hold the program’s own values and its GPU output equals the VM’s, not merely a deterministic fill. Recurses through desugar Splices.