mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
323 B
Plaintext
20 lines
323 B
Plaintext
{
|
|
let x := 0
|
|
let y := 10
|
|
f(x, y)
|
|
function f(a, b) {
|
|
// cannot be removed, since a and b are considered as free variables
|
|
mstore(a, b)
|
|
}
|
|
}
|
|
// ----
|
|
// step: memoryStoreRemover
|
|
//
|
|
// {
|
|
// let x := 0
|
|
// let y := 10
|
|
// f(x, y)
|
|
// function f(a, b)
|
|
// { mstore(a, b) }
|
|
// }
|