aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/equivalentFunctionCombiner/simple_different_vars.yul
blob: d38a3d2eae9d1d5dba1544184b70c13944ea4f3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  pop(f())
  pop(g())
  function f() -> b { let a := mload(0) b := a }
  function g() -> a { let b := mload(0) a := b }
}
// ----
// equivalentFunctionCombiner
// {
//     pop(f())
//     pop(f())
//     function f() -> b
//     {
//         let a := mload(0)
//         b := a
//     }
//     function g() -> a_1
//     {
//         let b_2 := mload(0)
//         a_1 := b_2
//     }
// }