Skip to content

feat: disallow emitting multiple MemoryInit opcodes for the same block#8291

Merged
TomAFrench merged 1 commit intomasterfrom
tf/report-circuit-as-unsolvable-if-memory-reinni
May 1, 2025
Merged

feat: disallow emitting multiple MemoryInit opcodes for the same block#8291
TomAFrench merged 1 commit intomasterfrom
tf/report-circuit-as-unsolvable-if-memory-reinni

Conversation

@TomAFrench
Copy link
Member

Description

Problem*

Resolves #8288

Summary*

I'm not sure how barretenberg would handle this but if we emit two of these instructions for the same block id then there's a 99% chance that it's a bug.

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@TomAFrench TomAFrench requested review from a team and guipublic April 30, 2025 12:05
@TomAFrench TomAFrench added this pull request to the merge queue May 1, 2025
Merged via the queue into master with commit 3261a6b May 1, 2025
117 checks passed
@TomAFrench TomAFrench deleted the tf/report-circuit-as-unsolvable-if-memory-reinni branch May 1, 2025 18:33
github-merge-queue bot pushed a commit to AztecProtocol/aztec-packages that referenced this pull request May 2, 2025
Automated pull of nightly from the
[noir](https://github.com/noir-lang/noir) programming language, a
dependency of Aztec.
BEGIN_COMMIT_OVERRIDE
feat: disallow emitting multiple `MemoryInit` opcodes for the same block
(noir-lang/noir#8291)
fix(ssa): Remove unused calls to pure functions
(noir-lang/noir#8298)
fix(ssa): Do not remove unused checked binary ops
(noir-lang/noir#8303)
fix: Return zero and insert an assertion if RHS bit size is over the
limit in euclidian division
(noir-lang/noir#8294)
feat: remove unnecessary dynamic arrays when pushing onto slices
(noir-lang/noir#8287)
feat(testing): Add SSA interpreter for testing SSA
(noir-lang/noir#8115)
END_COMMIT_OVERRIDE

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add check that the same memory block is not initialized twice

2 participants