-
Notifications
You must be signed in to change notification settings - Fork 598
feat: Sync from noir #10660
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
feat: Sync from noir #10660
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e4443e6
[1 changes] fix: Minimal change to avoid reverting entire PR #6685 (h…
20d70e7
chore: apply sync fixes
60b9385
Merge branch 'master' into sync-noir
TomAFrench 08453a9
Update noir/noir-repo/acvm-repo/acvm/src/compiler/mod.rs
TomAFrench 2fe87c2
[1 changes] feat(ssa): Hoist MakeArray instructions during loop invar…
3b86c79
chore: apply sync fixes
89e4859
feat(ssa): Hoist MakeArray instructions during loop invariant code mo…
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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 1b0dd4149d9249f0ea4fb5e2228c688e0135618f | ||
| b88db67a4fa92f861329105fb732a7b1309620fe |
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
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
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
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
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
noir/noir-repo/test_programs/execution_success/diamond_deps_0/Prover.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| x = 1 | ||
| y = 1 | ||
| return = 5 | ||
| return = 7 |
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
7 changes: 7 additions & 0 deletions
7
noir/noir-repo/test_programs/execution_success/return_twice/Nargo.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [package] | ||
| name = "return_twice" | ||
| version = "0.1.0" | ||
| type = "bin" | ||
| authors = [""] | ||
|
|
||
| [dependencies] |
2 changes: 2 additions & 0 deletions
2
noir/noir-repo/test_programs/execution_success/return_twice/Prover.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| return = [100, 100] | ||
| in0 = 10 |
5 changes: 5 additions & 0 deletions
5
noir/noir-repo/test_programs/execution_success/return_twice/src/main.nr
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pub fn main(in0: Field) -> pub (Field, Field) { | ||
| let out0 = (in0 * in0); | ||
| let out1 = (in0 * in0); | ||
| (out0, out1) | ||
| } |
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
7 changes: 7 additions & 0 deletions
7
noir/noir-repo/test_programs/noir_test_success/assert_message/Nargo.toml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| [package] | ||
| name = "assert_message" | ||
| type = "bin" | ||
| authors = [""] | ||
| compiler_version = ">=0.23.0" | ||
|
|
||
| [dependencies] |
15 changes: 15 additions & 0 deletions
15
noir/noir-repo/test_programs/noir_test_success/assert_message/src/main.nr
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // Have to use inputs otherwise the ACIR gets optimized away due to constants. | ||
| // With the original ACIR the optimizations can rearrange or merge opcodes, | ||
| // which might end up getting out of sync with assertion messages. | ||
| #[test(should_fail_with = "first")] | ||
| fn test_assert_message_preserved_during_optimization(a: Field, b: Field, c: Field) { | ||
| if (a + b) * (a - b) != c { | ||
| assert((a + b) * (a - b) == c, "first"); | ||
| assert((a - b) * (a + b) == c, "second"); | ||
| assert((a + b) * (a - b) == c, "third"); | ||
| assert((2 * a + b) * (a - b / 2) == c * c, "fourth"); | ||
| } else { | ||
| // The fuzzer might have generated a passing test. | ||
| assert((a + b) * (a - b) != c, "first"); | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.