mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
349 B
Plaintext
20 lines
349 B
Plaintext
{
|
|
let x := 10
|
|
let y := 10
|
|
// should not be removed because of the if statement
|
|
mstore(x, y)
|
|
if calldataload(0) {
|
|
// reads inside control flow
|
|
pop(mload(x))
|
|
}
|
|
}
|
|
// ----
|
|
// step: memoryStoreRemover
|
|
//
|
|
// {
|
|
// let x := 10
|
|
// let y := 10
|
|
// mstore(x, y)
|
|
// if calldataload(0) { pop(mload(x)) }
|
|
// }
|