Skip to content
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

Merge stores after every expression statement #159

Closed
wants to merge 3 commits into from

Conversation

d367wang
Copy link

This PR is an alternative solution to PR#154. Instead of merging stores only after expression statements followed by if, it merges stores after expression statement by making it the initializer to an auxiliary variable.

String name = uniqueName("mergeStoreBeforeIf");
Element owner = findOwner();
ExpressionTree initializer = tree.getExpression();
VariableTree auxillaryVariable =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this auxillary a typo? Should it be auxiliary?

@wmdietl
Copy link
Member

wmdietl commented Jan 28, 2022

Closed in favor of #161

@wmdietl wmdietl closed this Jan 28, 2022
zcai1 added a commit to zcai1/checker-framework that referenced this pull request Feb 8, 2022
Co-authored-by: d367wang <[email protected]>
Co-authored-by: d367wang <[email protected]>
Co-authored-by: Werner Dietl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants