You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling a simple contract that does an assert(a == b) on two arrays the wasm compiler complains:
$ aztec-cli compile .
Compiling . with wasm backend...
panicked at 'internal error: entered unreachable code: Arrays are invalid in binary operations', compiler/noirc_evaluator/src/brillig/brillig_gen/brillig_block.rs:1340:13
Stack:
Error
at module.exports.__wbg_new_abda76e883ba8a5f (/usr/src/noir/packages/noir_wasm/nodejs/noir_wasm.js:308:17)
at console_error_panic_hook::hook::h0dc62071592e511d (wasm://wasm/0250a666:wasm-function[2915]:0x684633)
at core::ops::function::Fn::call::ha4bfd2d1114566d9 (wasm://wasm/0250a666:wasm-function[7449]:0x74ec17)
at wasm://wasm/0250a666:wasm-function[4741]:0x717375
at wasm://wasm/0250a666:wasm-function[5151]:0x72a5ba
at wasm://wasm/0250a666:wasm-function[7443]:0x74ebe4
at wasm://wasm/0250a666:wasm-function[5859]:0x73f0f2
at wasm://wasm/0250a666:wasm-function[6266]:0x746aa9
at noirc_evaluator::brillig::brillig_gen::brillig_block::BrilligBlock::convert_ssa_binary::h6340c18ff460e390 (wasm://wasm/0250a666:wasm-function[1304]:0x545126)
at noirc_evaluator::brillig::brillig_gen::brillig_block::BrilligBlock::convert_block::h59d45d2728348b39 (wasm://wasm/0250a666:wasm-function[28]:0x6dacf)
Error incommand execution
RuntimeError: unreachable
at wasm://wasm/0250a666:wasm-function[7570]:0x74efcd
at wasm://wasm/0250a666:wasm-function[7038]:0x74d87b
at wasm://wasm/0250a666:wasm-function[4741]:0x7173a5
at wasm://wasm/0250a666:wasm-function[5151]:0x72a5ba
at wasm://wasm/0250a666:wasm-function[7443]:0x74ebe4
at wasm://wasm/0250a666:wasm-function[5859]:0x73f0f2
at wasm://wasm/0250a666:wasm-function[6266]:0x746aa9
at noirc_evaluator::brillig::brillig_gen::brillig_block::BrilligBlock::convert_ssa_binary::h6340c18ff460e390 (wasm://wasm/0250a666:wasm-function[1304]:0x545126)
at noirc_evaluator::brillig::brillig_gen::brillig_block::BrilligBlock::convert_block::h59d45d2728348b39 (wasm://wasm/0250a666:wasm-function[28]:0x6dacf)
at noirc_evaluator::brillig::brillig_gen::brillig_block::BrilligBlock::compile::h198848e02911a014 (wasm://wasm/0250a666:wasm-function[1150]:0x50d228)
# Description
## Problem\*
ResolvesAztecProtocol/aztec-packages#3752
## Summary\*
This PR adds a regression test for
AztecProtocol/aztec-packages#3752 which was
fixed in #3916.
## Additional Context
## Documentation\*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
When compiling a simple contract that does an
assert(a == b)
on two arrays the wasm compiler complains:Contract:
Using the latest sandbox and CLI images:
The text was updated successfully, but these errors were encountered: