Skip to content

Conversation

@kashbrti
Copy link
Contributor

@kashbrti kashbrti commented Feb 3, 2026

add redundant range constraints when AES, ACIR opcode is not generated by Noir

iakovenkos and others added 6 commits February 2, 2026 21:37
added md explaining the flow + a bit of renaming
Primary changes:
- Replace methods of the form `get_*_gate_connected_component` with
`GatePattern` structs that specify the conditions under which each wire
is constrained for each gate type
- Test correctness of `GatePattern`'s by perturbing relation inputs to
empirically check which wires are constrained (`gate_patterns.test.cpp`)
- Resolves a few bugs/errors identified by the aforementioned tests (see
PR comments)
- Use `update_used_witnesses` in `fix_witness` to avoid need for ad-hoc
handling in the tooling

Cleanup:
- Replace use of `block_idx` with reference to `block` in several places
for improved clarity

---------

Co-authored-by: Claude Opus 4.5 <[email protected]>
@kashbrti kashbrti marked this pull request as ready for review February 3, 2026 11:05
@kashbrti kashbrti changed the title chore: (AES audit) add redundant range constraints when AES, ACIR opcode is not generated by Noir fix: (AES audit) add redundant range constraints when AES, ACIR opcode is not generated by Noir Feb 3, 2026
@kashbrti kashbrti requested a review from ledwards2225 February 3, 2026 15:36
@kashbrti kashbrti force-pushed the kb/aes_audit_add_range_constraints branch from ae56c16 to 82050ed Compare February 3, 2026 17:39
Copy link
Contributor

@ledwards2225 ledwards2225 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kashbrti kashbrti merged commit abef0ec into merge-train/barretenberg Feb 4, 2026
9 checks passed
@kashbrti kashbrti deleted the kb/aes_audit_add_range_constraints branch February 4, 2026 11:01
johnathan79717 pushed a commit that referenced this pull request Feb 4, 2026
…e is not generated by Noir (#20125)

add redundant range constraints when AES, ACIR opcode is not generated
by Noir

---------

Co-authored-by: sergei iakovenko <[email protected]>
Co-authored-by: ledwards2225 <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: AztecBot <[email protected]>
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.

4 participants