solidity/test/libyul/yulOptimizerTests/fullSimplify/not_applied_function_call_equality_not_movable.yul

15 lines
274 B
Plaintext
Raw Normal View History

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