solidity/test/libyul/yulOptimizerTests/fullSimplify/not_applied_removes_non_constant_and_not_movable.yul

14 lines
222 B
Plaintext
Raw Normal View History

2019-05-13 16:52:08 +00:00
// div is eliminated, but create has side-effects.
{
2019-05-13 16:52:08 +00:00
let a := div(create(0, 0, 0), 0)
mstore(0, a)
}
2019-04-01 14:33:46 +00:00
// ====
// step: fullSimplify
// ----
// {
// let _1 := 0
2019-05-13 16:52:08 +00:00
// pop(create(_1, _1, _1))
// mstore(_1, 0)
// }