egraphs-good / eggcc

MIT License
51 stars 11 forks source link

Rust context creation #404

Closed oflatt closed 8 months ago

oflatt commented 8 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.