solidity/test/libyul/yulOptimizerTests/controlFlowSimplifier/remove_leave.yul

20 lines
355 B
Plaintext
Raw Normal View History

2019-10-28 14:46:58 +00:00
{
function f() -> x { x := 7 leave }
function g() -> x { leave x := 7 }
function h() -> x { if x { leave } }
}
// ----
// step: controlFlowSimplifier
//
2019-10-28 14:46:58 +00:00
// {
// function f() -> x
// { x := 7 }
// function g() -> x_1
// {
// leave
// x_1 := 7
// }
// function h() -> x_2
// { if x_2 { leave } }
// }