Skip to main content

sortcheck_program

Function sortcheck_program 

Source
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>
where Cfg: EGraphConfig, Cfg::O: Hash, L: LitVal, M: LitModel<Value = L>, MSetCanon: VarCanon<Cfg::G, Cfg::C>,
Expand description

Sort-check a full program against a live egraph. Declarations register directly into the egraph (setting up caches).