solidity/test/libyul/yulOptimizerTests/rematerialiser/non_movable_function.yul

19 lines
270 B
Plaintext
Raw Normal View History

2018-10-11 15:59:45 +00:00
{
function f(x) -> y {}
let a := 1
let b := f(a)
let c := a
mstore(add(a, b), c)
}
// ----
// step: rematerialiser
//
2018-10-11 15:59:45 +00:00
// {
// let a := 1
// let b := f(1)
// let c := 1
// mstore(add(1, b), 1)
// function f(x) -> y
// { }
2018-10-11 15:59:45 +00:00
// }