egraphs-good / eggcc

MIT License
42 stars 8 forks source link

[Utility] Write egglog code that checks for unique ids #246

Closed oflatt closed 7 months ago

oflatt commented 8 months ago

It's easy to forget a deepcopy or to have ids that don't match up with the surrounding context. We should add egglog rules that check that enforce the invariant that every context has a unique id. It's not clear how to do this yet- perhaps via an egglog table that maps ids to the body?