aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/yulOptimizerTests/rematerialiser/branches_for2.yul
blob: 6a52e0455c26727872207aebfdd9aec7be9f9b1d (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
{
    let a := 1
    for { pop(a) } a { pop(a) } {
        a := 7
        let c := a
    }
    let x := a
}
// ----
// rematerialiser
// {
//     let a := 1
//     for {
//         pop(1)
//     }
//     a
//     {
//         pop(7)
//     }
//     {
//         a := 7
//         let c := 7
//     }
//     let x := a
// }