-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated pull of development from the [noir](https://github.com/noir-lang/noir) programming language, a dependency of Aztec. BEGIN_COMMIT_OVERRIDE feat: swap endianness in-place in keccak implementation (noir-lang/noir#6128) feat: (LSP) remove unused imports (noir-lang/noir#6129) fix: handle parenthesized expressions in array length (noir-lang/noir#6132) chore: remove bubble_up_constrains (noir-lang/noir#6127) fix: Consider constants as used values to keep their rc ops (noir-lang/noir#6122) END_COMMIT_OVERRIDE --------- Co-authored-by: TomAFrench <tom@tomfren.ch> Co-authored-by: ludamad <adam.domurad@gmail.com> Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
- Loading branch information
1 parent
9a1b5b5
commit 4522c4f
Showing
19 changed files
with
427 additions
and
200 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
5598059576c6cbc72474aff4b18bc5e4bb9f08e1 | ||
e3cdebe515e4dc4ee6e16e01bd8af25135939798 |
152 changes: 0 additions & 152 deletions
152
noir/noir-repo/compiler/noirc_evaluator/src/ssa/opt/bubble_up_constrains.rs
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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
...o/test_programs/compile_success_empty/parenthesized_expression_in_array_length/Nargo.toml
This file contains 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 = "parenthesized_expression_in_array_length" | ||
type = "bin" | ||
authors = [""] | ||
compiler_version = ">=0.32.0" | ||
|
||
[dependencies] |
6 changes: 6 additions & 0 deletions
6
.../test_programs/compile_success_empty/parenthesized_expression_in_array_length/src/main.nr
This file contains 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,6 @@ | ||
global N = 100; | ||
global BLOCK_SIZE = 10; | ||
|
||
fn main() { | ||
let _: [Field; 110] = [0; ((N + BLOCK_SIZE) * BLOCK_SIZE) / BLOCK_SIZE]; | ||
} |
6 changes: 6 additions & 0 deletions
6
...oir-repo/test_programs/execution_success/brillig_constant_reference_regression/Nargo.toml
This file contains 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,6 @@ | ||
[package] | ||
name = "brillig_constant_reference_regression" | ||
type = "bin" | ||
authors = [""] | ||
|
||
[dependencies] |
1 change: 1 addition & 0 deletions
1
...ir-repo/test_programs/execution_success/brillig_constant_reference_regression/Prover.toml
This file contains 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 @@ | ||
sorted_index = ["1", "0"] |
16 changes: 16 additions & 0 deletions
16
...ir-repo/test_programs/execution_success/brillig_constant_reference_regression/src/main.nr
This file contains 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,16 @@ | ||
unconstrained fn main(sorted_index: [u32; 2]) { | ||
let original = [ | ||
55, | ||
11 | ||
]; | ||
|
||
let mut sorted = original; // Stores the constant "original" into the sorted reference | ||
|
||
for i in 0..2 { | ||
let index = sorted_index[i]; | ||
let value = original[index]; | ||
sorted[i] = value; // On first iteration, we should not mutate the original constant array, RC should be > 1 | ||
} | ||
|
||
assert_eq(sorted[1], 55); | ||
} |
Oops, something went wrong.