aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/ssaTransform/for_reassign_post.yul
blob: 1fc075bc1451cda8a8fbf06eda8a09a6dfe3c323 (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
{
    let a := mload(0)
    for { mstore(0, a) } a { a := add(a, 3) }
    {
        mstore(0, a)
    }
    mstore(0, a)
}
// ----
// ssaTransform
// {
//     let a_1 := mload(0)
//     let a := a_1
//     for {
//         mstore(0, a_1)
//     }
//     a
//     {
//         let a_2 := add(a, 3)
//         a := a_2
//     }
//     {
//         mstore(0, a)
//     }
//     mstore(0, a)
// }