solidity/test/libyul/yulOptimizerTests/expressionJoiner/multi_wrong_order.yul

19 lines
374 B
Plaintext
Raw Permalink Normal View History

2018-10-01 16:27:07 +00:00
{
// 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)
}
// ----
// step: expressionJoiner
//
2018-10-01 16:27:07 +00:00
// {
2021-11-09 12:25:25 +00:00
// {
// let a := mload(2)
// sstore(mul(a, add(2, mload(6))), 3)
// }
2018-10-01 16:27:07 +00:00
// }