aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/rematerialiser/branches_for2.yul
blob: eb092e956da0b198a1e9390c288aceb7407fa573 (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 := caller()
    for { pop(a) } a { pop(a) } {
        a := address()
        let c := a
    }
    let x := a
}
// ----
// rematerialiser
// {
//     let a := caller()
//     for {
//         pop(caller())
//     }
//     a
//     {
//         pop(address())
//     }
//     {
//         a := address()
//         let c := address()
//     }
//     let x := a
// }