solidity/test/libyul/yulOptimizerTests/fullSimplify/not_applied_function_call_equality_not_movable.yul
2019-09-02 17:41:51 +02:00

15 lines
279 B
Plaintext

// Even if the functions pass the equality check, they are not movable.
{
function f() -> a { mstore(1, 2) }
let b := sub(f(), f())
mstore(0, b)
}
// ====
// step: fullSimplify
// ----
// {
// function f() -> a
// { mstore(1, 2) }
// mstore(0, sub(f(), f()))
// }