Function mz_expr::relation::canonicalize::get_canonicalizer_map
source ยท pub fn get_canonicalizer_map(
equivalences: &Vec<Vec<MirScalarExpr>>,
) -> BTreeMap<MirScalarExpr, MirScalarExpr>
Expand description
For each equivalence class, it finds the simplest expression, which will be the canonical one. Returns a Map that maps from each expression in each equivalence class to the canonical expression in the same equivalence class.