Skip to content

Yul dataflow analysis for continue/break statements #6242

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

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

christianparpart
Copy link
Member

Adds data flow analysis for break & continue statements. This PR is rebased on top of #6136.

@christianparpart christianparpart force-pushed the yul-bc-dataflow branch 2 times, most recently from a1e6687 to 1247d77 Compare March 11, 2019 19:42
@codecov

This comment has been minimized.

@christianparpart christianparpart force-pushed the yul-bc-dataflow branch 4 times, most recently from d6f6276 to 099ab29 Compare March 12, 2019 12:11
@christianparpart christianparpart force-pushed the yul-bc-dataflow branch 2 times, most recently from 53b820a to 7086402 Compare March 12, 2019 15:25
@codecov

This comment has been minimized.

Copy link
Member

@leonardoalt leonardoalt left a comment

Choose a reason for hiding this comment

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

Is this WIP now? I see some come vanished :p

@chriseth
Copy link
Contributor

The code vanished because it turned out that we actually do not have to do anything. Would be great if you could verify that, @leonardoalt

@leonardoalt
Copy link
Member

Ok I see. It would be nice to have tests showing that.

@christianparpart christianparpart force-pushed the yul-bc-dataflow branch 2 times, most recently from 50cded3 to 86bf721 Compare March 13, 2019 14:04
{
let a
let b
for {let i := 0} lt(i, 10) {i := add(a, b) b := origin()}
Copy link
Contributor

@chriseth chriseth Mar 14, 2019

Choose a reason for hiding this comment

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

Hm, unfortunately, I don't remember anymore which aspect this was supposed to test..

Copy link
Member Author

Choose a reason for hiding this comment

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

@chriseth the motivation behind this, yesterday, was, to test for loops with continue statements modifying a used variable in the post-block (b := origin()). Maybe I should have chosen a different value?

@chriseth chriseth merged commit 500843f into develop Mar 14, 2019
@christianparpart christianparpart deleted the yul-bc-dataflow branch March 14, 2019 16:56
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