argotorg / solcore

experimental solidity compiler
13 stars 1 forks source link

Preserve names of variables of type word when translating to Yul #44

Closed mbenke closed 2 weeks ago

mbenke commented 2 weeks ago

When translating to Yul, each variable/argument in Sol code is mapped to one or several Yul variables, consequently also word-size variables get renamed.

This PR prevents renaming of variables of type word. Variables of other word-sized types should still be renamed, to prevent unsafe casts (as decided during the call on Oct 29).