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

19 lines
276 B
Plaintext
Raw Normal View History

2019-09-11 09:42:59 +00:00
{
let x := mload(0)
if x { sstore(0, x) revert(0, 0) }
sstore(1, x)
}
// ====
// step: conditionalSimplifier
// ----
// {
// let x := mload(0)
// if x
// {
// sstore(0, x)
// revert(0, 0)
// }
// x := 0
// sstore(1, x)
// }