mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
41 lines
613 B
Plaintext
41 lines
613 B
Plaintext
{
|
|
function f(a, b) -> x {
|
|
let t
|
|
a := 2
|
|
x := 2
|
|
t := 2
|
|
if b { leave }
|
|
a := 8
|
|
x := 8
|
|
t := 8
|
|
}
|
|
function g(a, b) -> x {
|
|
let t
|
|
a := 2
|
|
x := 2
|
|
t := 2
|
|
if b { }
|
|
a := 8
|
|
x := 8
|
|
t := 8
|
|
}
|
|
}
|
|
// ----
|
|
// step: unusedAssignEliminator
|
|
//
|
|
// {
|
|
// function f(a, b) -> x
|
|
// {
|
|
// let t
|
|
// x := 2
|
|
// if b { leave }
|
|
// x := 8
|
|
// }
|
|
// function g(a_1, b_2) -> x_3
|
|
// {
|
|
// let t_4
|
|
// if b_2 { }
|
|
// x_3 := 8
|
|
// }
|
|
// }
|