aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/yulOptimizerTests/expressionJoiner/only_assignment.yul
blob: c7411211508fc0c3e9261fbc3994bb11dedee212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
    // This is not joined because a is referenced multiple times
    function f(a) -> x {
        a := mload(2)
        x := add(a, 3)
    }
}
// ----
// expressionJoiner
// {
//     function f(a) -> x
//     {
//         a := mload(2)
//         x := add(a, 3)
//     }
// }