egraphs-good / eggcc

MIT License
51 stars 11 forks source link

Add an `If` variant to Rvsdg struct #306

Closed oflatt closed 9 months ago

oflatt commented 9 months ago

Currently Switch works on both booleans and integers. This PR changes the Rvsdg struct to have an If that works on booleans and a Switch that works on integers. This change required a significant amount of refactoring. For the translation to and from the milestone encoding, the current behavior is preserved by using Switch.