-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix operator declaraion lambda IDs #1280
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this!
[7n, '(bool) => int'], | ||
[8n, 'bool'], | ||
[9n, 'bool'], | ||
[10n, 'int'], | ||
[11n, 'bool'], | ||
[12n, 'bool'], | ||
[13n, 'int'], | ||
[14n, 'int'], | ||
[15n, '((bool) => int, bool) => int'], | ||
[16n, '((bool) => int, bool) => int'], | ||
[1n, '∀ t0, t1 . (t0) => t1'], | ||
[2n, '∀ t0 . t0'], | ||
[3n, '∀ t0 . t0'], | ||
[4n, '∀ t0 . t0'], | ||
[5n, '∀ t0, t1 . ((t0) => t1, t0) => t1'], | ||
[6n, '(bool) => int'], | ||
[7n, 'bool'], | ||
[8n, 'bool'], | ||
[9n, 'int'], | ||
[10n, 'bool'], | ||
[11n, 'bool'], | ||
[12n, 'int'], | ||
[13n, 'int'], | ||
[14n, '((bool) => int, bool) => int'], | ||
[6n, '∀ t0, t1 . ((t0) => t1, t0) => t1'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ids have a weird order (7-16, then 1-6). I guess if you feel like fixing, nice, otherwise its fine as well, this is not important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will. Or mess with it so long as the tests are passing. I wonder why the order is that way!
The lambda's on the right side of operator definitions where getting assigned the same IDs as operator declaration itself, violating our expectation that every IR component will have a uniqe id.
634c490
to
d0bc358
Compare
Thanks to discussion with @bugarela, following the review comment at
#1277 (comment) , we
realized that the lambdas constructed for the body of an operator
def
declaration where using the wrong ID (they where reusing the IDs from the
declaration as a whole). But every IR component is meant to have its own ID, so
this is incorrect.
CHANGELOG.md
for any new functionalityREADME.md
updated for any listed functionality