aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/blockFlattener/many_nested_blocks.yul
blob: ae2a066bac578fa6bd0f8fe7cca6c4381c78b66a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  let a := 3
  let b := 4
  {
    a := add(b, 3)
    let c := 5
    {
      b := add(b, 4)
      {
        c := add(a, 5)
      }
      b := add(a, b)
    }
    a := add(a, c)
  }
}
// ----
// blockFlattener
// {
//     let a := 3
//     let b := 4
//     a := add(b, 3)
//     let c := 5
//     b := add(b, 4)
//     c := add(a, 5)
//     b := add(a, b)
//     a := add(a, c)
// }