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

15 lines
274 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()))
// }