solidity/test/libyul/yulOptimizerTests/controlFlowSimplifier/terminating_for_revert.yul

19 lines
262 B
Plaintext
Raw Normal View History

2019-05-10 11:19:02 +00:00
{
for {} calldatasize() { mstore(1, 2) } {
let x := 7
mstore(4, 5)
revert(0, x)
}
}
// ====
// step: controlFlowSimplifier
// ----
// {
// if calldatasize()
// {
// let x := 7
// mstore(4, 5)
// revert(0, x)
// }
// }