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

19 lines
275 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)
}
2019-04-01 14:33:46 +00:00
// ====
// step: rematerialiser
2018-10-11 15:59:45 +00:00
// ----
// {
// function f(x) -> y
// { }
2018-10-11 15:59:45 +00:00
// let a := 1
// let b := f(1)
// let c := 1
// mstore(add(1, b), 1)
// }