pub fn eval_grid_all_with_heap(
g: &Grid,
inputs: &[i64],
heap: &mut Vec<i64>,
) -> Vec<i64>Expand description
Like eval_grid_all but threads a SHARED heap (for a whole-program block walk with a state plane):
every Mem tile touches heap (persisting across blocks), and ALL outputs are returned in all_outs()
order so the block-sequencing controller can commit the block’s register writes + read its terminator
operand. For a heap-free grid this equals eval_grid_all (the heap stays empty).