mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
360 B
Plaintext
20 lines
360 B
Plaintext
|
{
|
||
|
function f() -> x { x := 7 leave }
|
||
|
function g() -> x { leave x := 7 }
|
||
|
function h() -> x { if x { leave } }
|
||
|
}
|
||
|
// ====
|
||
|
// step: controlFlowSimplifier
|
||
|
// ----
|
||
|
// {
|
||
|
// function f() -> x
|
||
|
// { x := 7 }
|
||
|
// function g() -> x_1
|
||
|
// {
|
||
|
// leave
|
||
|
// x_1 := 7
|
||
|
// }
|
||
|
// function h() -> x_2
|
||
|
// { if x_2 { leave } }
|
||
|
// }
|