mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12357 from ethereum/fixYulExampleCode
Fix Yul example.
This commit is contained in:
commit
dcef56a531
@ -529,13 +529,13 @@ The above would be transformed into
|
||||
.. code-block:: yul
|
||||
|
||||
{
|
||||
let _1 = 0x20
|
||||
let _2 = 0x456
|
||||
let _3 = mload(_2)
|
||||
let _4 = mul(_3, _1)
|
||||
let _5 = 0x123
|
||||
let _6 = mload(_5)
|
||||
let z = add(_6, _4)
|
||||
let _1 := 0x20
|
||||
let _2 := 0x456
|
||||
let _3 := mload(_2)
|
||||
let _4 := mul(_3, _1)
|
||||
let _5 := 0x123
|
||||
let _6 := mload(_5)
|
||||
let z := add(_6, _4)
|
||||
}
|
||||
|
||||
Note that this transformation does not change the order of opcodes or function calls.
|
||||
|
Loading…
Reference in New Issue
Block a user