-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Astifier fixes #15026
Astifier fixes #15026
Conversation
⏱️ 27m total CI duration on this PR
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
Still need more time to understand the astifier part but the generated code has been improved a lot! Thanks
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.
Some minor comments, but otherwise LGTM.
third_party/move/move-compiler-v2/tests/checking/typing/loop_result_type.exp
Show resolved
Hide resolved
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.
A few nits, one duplicated operation.
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 the reviews!
This PR implements some major improvements to the astifier: - Finally (I think) cracked the way how to do correct topological sorting and managing nested blocks. More complicated examples now produce more reasonable results. - Rewrote AST transformations for if-then-else and loops. - Fixed issues with the fixpoint analysis on the AST - Did some minor fixes in the sourcifier The generated source is still not correct in some cases, but much better then before.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
This PR implements some major improvements to the astifier:
The generated source is still not correct in some cases, but much better then before.
How Has This Been Tested?
Baseline tests
Type of Change
Which Components or Systems Does This Change Impact?
Checklist