aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/ssaAndBack/multi_assign_if.yul
blob: fd5981efced6c1366d95319185533fae5a26ad46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    let a := mload(0)
    if mload(1)
    {
        a := mload(1)
        a := mload(2)
        a := mload(3)
    }
    mstore(a, 0)
}
// ----
// ssaAndBack
// {
//     let a := mload(0)
//     if mload(1)
//     {
//         pop(mload(1))
//         pop(mload(2))
//         a := mload(3)
//     }
//     mstore(a, 0)
// }