aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/rematerialiser/expression.yul
blob: a801677d97f999cf5e1b6584dbc9070f1d5097d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
{
    let a := add(mul(calldatasize(), 2), number())
    let b := add(a, a)
}
// ----
// rematerialiser
// {
//     let a := add(mul(calldatasize(), 2), number())
//     let b := add(add(mul(calldatasize(), 2), number()), add(mul(calldatasize(), 2), number()))
// }