egraphs-good / eggcc

MIT License
51 stars 11 forks source link

Fix bug in HasArgType #374

Closed oflatt closed 8 months ago

oflatt commented 8 months ago

This PR fixes a bug in HasArgType. For expressions that don't reference arg, they may have any arg type. I added a test case that demonstrates this. The fix is to only have an error when we infer a different arg type for a reference to the argument.