Conversation
Fix dominator of join block for if
vezenovm
reviewed
Nov 15, 2022
Contributor
vezenovm
left a comment
There was a problem hiding this comment.
LGTM. Just looks like there is still one merge conflict. Once that is fixed I can approve
jfecher
approved these changes
Nov 16, 2022
TomAFrench
added a commit
to TomAFrench/noir
that referenced
this pull request
Nov 16, 2022
* master: Fix conditional with array parameter (noir-lang#475) Constant evaluation of to_bits() (noir-lang#464) propagate error from cse (noir-lang#478) use return value only when witness are all solved (noir-lang#473)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Summary of changes
This PR fix a weird issue found by a user that is in fact two issues:
Test additions / changes
Regression test case is added to 9_conditional integration test.
Fixed issue
CSE was mixing instructions from IF branches because of wrong dominator relation for the join and bad evaluation of to_bits() with constant arguments.
See the provided test case for a repro.
Resolves (link to issue)
Checklist
cargo fmtwith default settings.