solidity/test/libyul/yulOptimizerTests/redundantAssignEliminator/function.yul

25 lines
370 B
Plaintext
Raw Normal View History

2018-10-23 13:55:48 +00:00
{
let r
r := 1
function f(x, y) -> a, b {
// Can be removed, is param
x := 1
y := 2
// Cannot be removed, is return param
a := 3
b := 4
}
r := 2
}
// ----
// step: redundantAssignEliminator
//
2018-10-23 13:55:48 +00:00
// {
// let r
// function f(x, y) -> a, b
// {
// a := 3
// b := 4
// }
// }