solidity/test/libyul/yulOptimizerTests/fullInlinerWithoutSplitter/call_arguments_with_side_effects.yul

28 lines
649 B
Plaintext
Raw Normal View History

{
function fun_revert() -> ret { revert(0, 0) }
function fun_return() -> ret { return(0, 0) }
function empty(a, b) {}
// Evaluation order in Yul is right to left so fun_revert() should run first.
empty(fun_return(), fun_revert())
}
// ----
// step: fullInlinerWithoutSplitter
//
// {
// {
// let ret_3 := 0
// revert(0, 0)
// let b_1 := ret_3
// let ret_1_4 := 0
// return(0, 0)
// let a_2 := ret_1_4
// }
// function fun_revert() -> ret
// { revert(0, 0) }
// function fun_return() -> ret_1
// { return(0, 0) }
// function empty(a, b)
// { }
// }