solidity/test/libyul/yulOptimizerTests/rematerialiser/non_movable_function.yul
2018-10-15 11:52:35 +02:00

19 lines
268 B
Plaintext

{
function f(x) -> y {}
let a := 1
let b := f(a)
let c := a
mstore(add(a, b), c)
}
// ----
// rematerialiser
// {
// function f(x) -> y
// {
// }
// let a := 1
// let b := f(1)
// let c := 1
// mstore(add(1, b), 1)
// }