aboutsummaryrefslogblamecommitdiffstats
path: root/test/libyul/yulOptimizerTests/expressionJoiner/reassignment.yul
blob: 1e502353d7c0fc208a62977076092c00222b6514 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                    
{
    // This is not joined because a is referenced multiple times
    let a := mload(2)
    let b := mload(a)
    a := 4
}
// ----
// expressionJoiner
// {
//     let a := mload(2)
//     let b := mload(a)
//     a := 4
// }