Skip to content

chore(fuzz): Do not use zero length types in the main input output#8465

Merged
aakoshh merged 1 commit intomasterfrom
af/avoid-zero-len-in-main-input
May 12, 2025
Merged

chore(fuzz): Do not use zero length types in the main input output#8465
aakoshh merged 1 commit intomasterfrom
af/avoid-zero-len-in-main-input

Conversation

@aakoshh
Copy link
Contributor

@aakoshh aakoshh commented May 12, 2025

Description

Problem*

Resolves us having to deal with #8451 and constantly being pinged from smoke tests failing in aztec-packages such as http://ci.aztec-labs.com/3ecfe93088757b18

Summary*

0 length arrays and strings produce no witnesses, but the code generated for them currently differs when they are in the databus vs when they are accessed as normal variables. When they are accessed as both, we run into problems.

Since they are not expected in real programs, we can save ourselves jumping through hoops if we disallow them altogether. Expecting that to happen, this PR changes the AST fuzzer to stop using these types in the input and output of main.

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.

@aakoshh aakoshh requested a review from a team May 12, 2025 18:28
@aakoshh aakoshh enabled auto-merge May 12, 2025 18:28
@aakoshh aakoshh added this pull request to the merge queue May 12, 2025
Merged via the queue into master with commit 21d9ffd May 12, 2025
120 checks passed
@aakoshh aakoshh deleted the af/avoid-zero-len-in-main-input branch May 12, 2025 18:59
github-merge-queue bot pushed a commit to AztecProtocol/aztec-packages that referenced this pull request May 13, 2025
Automated pull of nightly from the
[noir](https://github.com/noir-lang/noir) programming language, a
dependency of Aztec.
BEGIN_COMMIT_OVERRIDE
fix: sign extend in signed cast
(noir-lang/noir#8264)
chore(fuzz): Do not use zero length types in the main input output
(noir-lang/noir#8465)
chore: fix visibility issues in test suite
(noir-lang/noir#8454)
chore: blackbox functions for ssa intepreter
(noir-lang/noir#8375)
feat: improve bitshift codegen
(noir-lang/noir#8442)
fix(ssa): Mark mutually recursive simple functions
(noir-lang/noir#8447)
fix: Fix nested trait dispatch with associated types
(noir-lang/noir#8440)
chore: carry visibilities in monomorphized AST
(noir-lang/noir#8439)
chore(tests): Add regression for now passing test
(noir-lang/noir#8441)
chore: use human-readable bytecode in snapshots
(noir-lang/noir#8164)
chore: bump external pinned commits
(noir-lang/noir#8445)
END_COMMIT_OVERRIDE

---------

Co-authored-by: AztecBot <tech@aztecprotocol.com>
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.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.

2 participants