pub trait LpCostFunction<L: Language, N: Analysis<L>> {
    fn node_cost(&mut self, egraph: &EGraph<L, N>, eclass: Id, enode: &L) -> f64;
}
Expand description

A cost function to be used by an LpExtractor.

Required methods

Returns the cost of the given e-node.

This function may look at other parts of the e-graph to compute the cost of the given e-node.

Implementors