argotorg / argotorg/fe

Fix argument evaluation order

Open
#548 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.