-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tf/clean-up-else-conditions
* master: feat: simplify constant MSM calls in SSA (#6547) chore(test): Remove duplicate brillig tests (#6523) chore: restructure `noirc_evaluator` crate (#6534)
- Loading branch information
Showing
51 changed files
with
168 additions
and
809 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
39 changes: 20 additions & 19 deletions
39
...src/ssa/acir_gen/acir_ir/acir_variable.rs → ...noirc_evaluator/src/acir/acir_variable.rs
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
File renamed without changes.
File renamed without changes.
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 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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ecution_success/brillig_assert/Nargo.toml → ...edded_curve_msm_simplification/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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "brillig_assert" | ||
name = "embedded_curve_msm_simplification" | ||
type = "bin" | ||
authors = [""] | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
test_programs/compile_success_empty/embedded_curve_msm_simplification/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,12 @@ | ||
fn main() { | ||
let pub_x = 0x0000000000000000000000000000000000000000000000000000000000000001; | ||
let pub_y = 0x0000000000000002cf135e7506a45d632d270d45f1181294833fc48d823f272c; | ||
|
||
let g1_y = 17631683881184975370165255887551781615748388533673675138860; | ||
let g1 = std::embedded_curve_ops::EmbeddedCurvePoint { x: 1, y: g1_y, is_infinite: false }; | ||
let scalar = std::embedded_curve_ops::EmbeddedCurveScalar { lo: 1, hi: 0 }; | ||
// Test that multi_scalar_mul correctly derives the public key | ||
let res = std::embedded_curve_ops::multi_scalar_mul([g1], [scalar]); | ||
assert(res.x == pub_x); | ||
assert(res.y == pub_y); | ||
} |
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,3 +1,10 @@ | ||
fn main(x: Field) { | ||
assert(x == 1); | ||
assert(1 == conditional(x as bool)); | ||
} | ||
|
||
fn conditional(x: bool) -> Field { | ||
assert(x, f"Expected x to be true but got {x}"); | ||
assert_eq(x, true, f"Expected x to be true but got {x}"); | ||
1 | ||
} |
7 changes: 0 additions & 7 deletions
7
test_programs/execution_success/brillig_array_to_slice/Nargo.toml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test_programs/execution_success/brillig_array_to_slice/Prover.toml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.