-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
GH-123391: Code generators: Track stack and locals in if
statements.
#123397
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
75bda28
Add copy and == support to Stack class
markshannon c7e9102
Merge branch 'main' into stack-copy-and-merge
markshannon d331371
blacken stack.py
markshannon 4673d8a
Cases generator: Track reachability and divergent stacks in if statem…
markshannon 132df06
Fix type errors and rename ahead to look_ahead
markshannon b7f71d4
Track state of output variables
markshannon b97dea9
Handle stack and output locals togather as Storage class
markshannon 9838a05
Track locals as well as stack on differing paths
markshannon 1f829be
Use 'PEP 7' in syntax error, to make it clear that this is not a C sy…
markshannon d2e5f12
Push peeks back to stack in optimizer code gen
markshannon 2753014
Merge branch 'main' into stack-copy-and-merge
markshannon 1754fc4
Update test
markshannon 98f9720
Cleanup whitespace
markshannon 0284b3f
Add tests for PEP 7 parsing and escaping call in condition
markshannon 03bea71
Remove merge artifact
markshannon ca2f457
Remove test for escaping calls in conditions
markshannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe test the else branch as well?