Skip to content

feat(avm)!: Poseidon2 memory load and error handling#15693

Merged
fcarreiro merged 2 commits intonextfrom
ir/07-04-feat_avm_poseidon2_mem_errs
Jul 19, 2025
Merged

feat(avm)!: Poseidon2 memory load and error handling#15693
fcarreiro merged 2 commits intonextfrom
ir/07-04-feat_avm_poseidon2_mem_errs

Conversation

@IlyasRidhuan
Copy link
Contributor

@IlyasRidhuan IlyasRidhuan commented Jul 14, 2025

This PR adds the memory aware portion of Poseidon2Permutation so it can be executed as part of the opcode. This includes error handling for OOB and invalid tag errors.

This has downstream impacts to alot of the tree op codes whose tests needed to be updated for the new poseidon2 definition.

@IlyasRidhuan IlyasRidhuan marked this pull request as draft July 14, 2025 13:15
@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-08-wip_refactor_taggedvalue branch 6 times, most recently from 512aac8 to 599998e Compare July 16, 2025 10:47
Base automatically changed from ir/07-08-wip_refactor_taggedvalue to next July 16, 2025 12:06
@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-04-feat_avm_poseidon2_mem_errs branch from 895fa78 to a159881 Compare July 16, 2025 12:43
@IlyasRidhuan IlyasRidhuan changed the title feat(avm)!: Poseidon2 memory load and eerror handling feat(avm)!: Poseidon2 memory load and error handling Jul 16, 2025
Copy link
Contributor Author

IlyasRidhuan commented Jul 16, 2025

@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-04-feat_avm_poseidon2_mem_errs branch from a159881 to 9a654e3 Compare July 16, 2025 12:49
@IlyasRidhuan IlyasRidhuan marked this pull request as ready for review July 16, 2025 12:51
@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-04-feat_avm_poseidon2_mem_errs branch from 9a654e3 to 3edaf30 Compare July 17, 2025 10:01
Copy link
Contributor

@MirandaWood MirandaWood left a comment

Choose a reason for hiding this comment

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

LGTM!! 🎉 Only a couple of nits. I'm not yet very confident with memory so you may want to wait for another review to see if I missed anything!

@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-04-feat_avm_poseidon2_mem_errs branch from 3edaf30 to 5c3cdbc Compare July 17, 2025 16:02
@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-04-feat_avm_poseidon2_mem_errs branch 2 times, most recently from e2c3e82 to f2c696a Compare July 19, 2025 09:05
@@ -0,0 +1,24 @@
#pragma once
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added fakes for poseidon2 and gt (the latter was helpful for poseidon2 tests)

@IlyasRidhuan IlyasRidhuan force-pushed the ir/07-04-feat_avm_poseidon2_mem_errs branch from f2c696a to 3a70554 Compare July 19, 2025 10:10
@fcarreiro fcarreiro self-requested a review July 19, 2025 12:13
Copy link
Contributor

@fcarreiro fcarreiro left a comment

Choose a reason for hiding this comment

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

Thanks!

@fcarreiro fcarreiro added this pull request to the merge queue Jul 19, 2025
Merged via the queue into next with commit 0515513 Jul 19, 2025
5 checks passed
@fcarreiro fcarreiro deleted the ir/07-04-feat_avm_poseidon2_mem_errs branch July 19, 2025 13:02
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.

3 participants