aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/fullSuite/ssaReverseComplex.yul
blob: 2e178f312ecf84d22b135d21b63a8f2d55a50785 (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
{
    let a := mload(0)
    let b := mload(1)
    if mload(2) {
        a := mload(b)
        b := mload(a)
        a := mload(b)
        b := mload(a)
    }
    mstore(a, b)
}
// ----
// fullSuite
// {
//     let a := mload(0)
//     let b := mload(1)
//     if mload(2)
//     {
//         a := mload(mload(mload(b)))
//         b := mload(a)
//     }
//     mstore(a, b)
// }