aboutsummaryrefslogtreecommitdiffstats
path: root/test/libjulia/yulOptimizerTests/expressionJoiner/multi_wrong_order.yul
blob: 965e07e97bd1ce0272fa6e278903aa8d77d1b696 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
    // We have an interleaved "add" here, so we cannot inline "a"
    // (note that this component does not analyze whether
    // functions are pure or not)
    let a := mload(2)
    let b := mload(6)
    let x := mul(a, add(2, b))
    sstore(x, 3)
}
// ----
// expressionJoiner
// {
//     let a := mload(2)
//     sstore(mul(a, add(2, mload(6))), 3)
// }