solidity/test/libyul/yulOptimizerTests/conditionalUnsimplifier/opt_after_terminating_if.yul

19 lines
270 B
Plaintext
Raw Normal View History

2019-11-01 13:07:25 +00:00
{
let x := mload(0)
if x { sstore(0, x) revert(0, 0) }
x := 0
sstore(1, x)
}
// ----
// step: conditionalUnsimplifier
//
2019-11-01 13:07:25 +00:00
// {
// let x := mload(0)
// if x
// {
// sstore(0, x)
// revert(0, 0)
// }
// sstore(1, x)
// }