Skip to content

[Yul] Split constants too #5206

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
Oct 12, 2018
Merged

[Yul] Split constants too #5206

merged 1 commit into from
Oct 12, 2018

Conversation

chriseth
Copy link
Contributor

Change the expression splitter to also extract constants.

Required for #5147

@codecov
Copy link

codecov bot commented Oct 12, 2018

Codecov Report

Merging #5206 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #5206   +/-   ##
========================================
  Coverage    87.88%   87.88%           
========================================
  Files          313      313           
  Lines        31819    31819           
  Branches      3783     3782    -1     
========================================
  Hits         27965    27965           
  Misses        2572     2572           
  Partials      1282     1282
Flag Coverage Δ
#all 87.88% <100%> (ø) ⬆️
#syntax 28.46% <0%> (ø) ⬆️

// if _2
// let _1 := 0
// let x := calldataload(_1)
// let _2 := 3
Copy link
Member

Choose a reason for hiding this comment

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

Why does this show before := 2?

Copy link
Member

Choose a reason for hiding this comment

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

Nevermind, got it

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.

lgtm if tests pass

@chriseth chriseth merged commit 93cf718 into develop Oct 12, 2018
@chriseth chriseth deleted the splitConstantsToo branch November 13, 2018 18:38
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.

2 participants