mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
22 lines
309 B
Plaintext
22 lines
309 B
Plaintext
{
|
|
f()
|
|
function f() {
|
|
let x := 10
|
|
let y := 20
|
|
// will never be read, so can be removed
|
|
mstore(x, y)
|
|
}
|
|
}
|
|
// ----
|
|
// step: memoryStoreRemover
|
|
//
|
|
// {
|
|
// f()
|
|
// function f()
|
|
// {
|
|
// let x := 10
|
|
// let y := 20
|
|
// pop(y)
|
|
// }
|
|
// }
|