Skip to content
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: Should have been in cache instruction #2099

Closed
ax0 opened this issue Aug 1, 2023 · 1 comment · Fixed by #2117
Closed

ICE: Should have been in cache instruction #2099

ax0 opened this issue Aug 1, 2023 · 1 comment · Fixed by #2117
Assignees
Labels
bug Something isn't working ssa

Comments

@ax0
Copy link
Contributor

ax0 commented Aug 1, 2023

Aim

Generate a proof for this program.

Expected Behavior

A proof is successfully generated.

Bug

We get the following error:

Message:  internal error: entered unreachable code: ICE: Should have been in cache v1338 Instruction { instruction: Id(1327), position: 0, typ: Numeric(Unsigned { bit_size: 1 }) }
Location: crates/noirc_evaluator/src/ssa_refactor/acir_gen/mod.rs:720

To Reproduce

  1. git clone https://github.com/aragonzkresearch/noir-trie-proofs
  2. cd noir-trie-proofs/tests/depth_8_storage_proof
  3. nargo prove

Installation Method

Compiled from source

Nargo Version

nargo 0.9.0 (git version hash: 9b417da, is dirty: false)

Additional Context

These appear to be the offending lines. Commenting them out should result in a failure to satisfy constraints but instead yields a different error:

Message:  Should not read uninitialized memory
Location: /home/ax0/.cargo/registry/src/github.com-1ecc6299db9ec823/acvm-0.21.0/src/pwg/memory_op.rs:26

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@ax0 ax0 added the bug Something isn't working label Aug 1, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Aug 1, 2023
@TomAFrench
Copy link
Member

Potentially related to the issues in #1954?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ssa
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants