egraphs-good / eggcc

MIT License
42 stars 8 forks source link

Add a rust function to propagate contexts #403

Closed oflatt closed 6 months ago

oflatt commented 6 months ago

This PR adds a rust function that adds context to the original program added to the egraph. This allows the first version of the program to have full contextual information. We can then use egglog rules to create contexts we need later.

This also makes the generated egglog file much smaller by sharing common sub-expressions.