aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul
blob: c148c2f2bfcf71df29dbf1e93aba9bddcb8675d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    let a := 1
    let b := 2
    if b { pop(b) b := a }
    let c := b
}
// ----
// rematerialiser
// {
//     let a := 1
//     let b := 2
//     if 2
//     {
//         pop(2)
//         b := 1
//     }
//     let c := b
// }