-
Notifications
You must be signed in to change notification settings - Fork 250
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
ICE on previously working code (potentially due to nested arrays?) #4383
Labels
bug
Something isn't working
Comments
I've got similar error trying to run nested arrays test: #[test]
fn test_array_equal() {
assert([[1]] == [[1]]);
} Testing test_array_equal... error: Internal Consistency Evaluators Errors:
This is likely a bug. Consider opening an issue at https://github.com/noir-lang/noir/issues
┌─ /private/tmp/test_nest_array/src/main.nr:1:1
│
1 │ fn main() {
│ - ICE: Expected "a numeric value", found "[Var(AcirVar(1), NumericType(NativeField))]"
│
= Call stack:
1. /private/tmp/test_nest_array/src/main.nr:6:12 |
github-merge-queue bot
pushed a commit
that referenced
this issue
Apr 24, 2024
# Description ## Problem\* Resolves #4383 (both examples in the issue) ## Summary\* We were relying on the built in array equality for arrays in SSA previously, but this did not recurse on the array element in the case of nested arrays. I've just removed this since it is no longer needed. We now use the impl Eq for arrays in the stdlib instead since the built in version provided no speedup anyway. ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [ ] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings. --------- Co-authored-by: Tom French <tom@tomfren.ch>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aim
Checkout https://github.com/TaceoLabs/noir-aes, a basic implementation of AES-128 and execute
nargo test
.This worked fine with nargo v0.22.0, but has an ICE with v0.23.0.
Expected Behavior
Runs the tests and does not crash.
Bug
Under v0.24.0 there is a different error:
To Reproduce
git clone https://github.com/TaceoLabs/noir-aes && cd noir-aes
noirup -v v0.23.0
(ornoirup -v v0.24.0
)nargo test
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
The changelog of 0.23 talks about nested slices being banned, however the example just uses nested arrays, so I don;t know if this is related.
Installation Method
Binary (
noirup
default)Nargo Version
nargo version = 0.23.0 noirc version = 0.23.0+5be9f9d7e2f39ca228df10e5a530474af0331704 (git version hash: 5be9f9d, is dirty: false)
NoirJS Version
--
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: