Skip to content

Conversation

@clonker
Copy link
Member

@clonker clonker commented Oct 31, 2025

No description provided.

@clonker clonker requested review from blishko and r0qs October 31, 2025 09:35
@clonker clonker marked this pull request as ready for review October 31, 2025 10:03
@clonker clonker force-pushed the ssacfg_stack branch 2 times, most recently from d78bc8b to fb5d814 Compare November 1, 2025 12:03
blishko
blishko previously approved these changes Nov 3, 2025
Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

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

I am approving this, but it would be good if someone else takes a look as well.

yulAssert(dupReachable(_offset), "Stack too deep");
m_data->push_back((*m_data)[_offset.value]);
if constexpr (!std::is_same_v<Callbacks, NoOpStackManipulationCallbacks>)
m_callbacks.dup(_offset.value + 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am having some doubts here.
Why are we calling it with offset + 1?
Can you clarify if the callbacks expect Offset or Depth in dup and swap?
Maybe the strong type can be used already in the concept, to avoid any confusion?
Maybe your originally version was better? 😅

Copy link
Member Author

@clonker clonker Nov 3, 2025

Choose a reason for hiding this comment

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

The callback expects it as EVM instruction. So DUP1 is a dup(Depth{0}) is a dup(Offset{size() - 1}). Which means I was too tired apparently to implement the change properly. ^^ Let me fix that.

Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

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

LGMT!

@clonker clonker merged commit a048ccf into develop Nov 4, 2025
81 checks passed
@clonker clonker deleted the ssacfg_stack branch November 4, 2025 12:56
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