pub fn sortcheck_program<Cfg, L, M, const TRACK: bool, const PROOFS: bool>(
cmds: Vec<SurfaceCommand>,
eg: &mut EGraph<Cfg, L, TRACK, PROOFS>,
model: &M,
globals: &mut GlobalCtx<Cfg::S>,
) -> Result<Vec<CCommand<Cfg::O, Cfg::S, L>>, SortError>Expand description
Sort-check a full program against a live egraph. Declarations register directly into the egraph (setting up caches).