mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
338 B
Plaintext
22 lines
338 B
Plaintext
{
|
|
let x := 10
|
|
let y := 100
|
|
if calldataload(0) {
|
|
// should be removed
|
|
mstore(x, y)
|
|
}
|
|
|
|
if calldataload(0) {
|
|
pop(mload(y))
|
|
}
|
|
}
|
|
// ----
|
|
// step: memoryStoreRemover
|
|
//
|
|
// {
|
|
// let x := 10
|
|
// let y := 100
|
|
// if calldataload(0) { pop(y) }
|
|
// if calldataload(0) { pop(mload(y)) }
|
|
// }
|