Fix argument evaluation order
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 218
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
### What is wrong?
It was pointed out by @formalize that [function call](https://docs.soliditylang.org/en/latest/yul.html#function-calls) arguments are evaluated right to left in Yul, which is different from the typical left to right evaluation.
### How can it be fixed
The order of function arguments should be reversed during Yul gen.
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Yul generation entry point for function calls and compare its argument ordering with the linked Yul function-call semantics. Verify that generated Yul reverses function arguments and add or update coverage if the surrounding generator tests identify a suitable location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, solidity
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100