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