package ego
Library
Module
Module type
Parameter
Class
Class type
freeze graph
returns a read-only reference to the EGraph.
Note: it is safe to modify graph
after passing it to freeze, this method is mainly intended to allow using the read-only APIs of the EGraph when you have a RW instance of the EGraph.
class_equal graph cls1 cls2
returns true if and only if cls1
and cls2
are congruent in the EGraph graph
.
iter_children graph cls
returns an iterator over the children of the current EClass.
set_data graph cls data
sets the analysis data for EClass cls
in EGraph graph
to be data
.
get_data graph cls
returns the analysis data for EClass cls
in EGraph graph
.
get_analysis graph
returns the persistent analysis sate for an EGraph.
add_node graph term
adds the term term
into the EGraph graph
and returns the corresponding equivalence class.