solidity/test/libyul/yulOptimizerTests/fullSuite/no_move_loop_orig.yul

26 lines
508 B
Plaintext
Raw Normal View History

2019-12-02 11:33:24 +00:00
{
for {} msize() {
function foo_s_0() -> x_1 { for {} caller() {} {} }
// x_3 used to be a movable loop invariant because `foo_s_0()` used to be movable
let x_3 := foo_s_0()
mstore(192, x_3)
}
{}
}
// ----
// step: fullSuite
//
2019-12-02 11:33:24 +00:00
// {
// {
2019-11-27 09:44:40 +00:00
// let _1 := iszero(caller())
2019-12-02 11:33:24 +00:00
// for { }
// true
2019-12-02 11:33:24 +00:00
// {
2019-11-27 09:44:40 +00:00
// for { } iszero(_1) { }
2019-12-02 11:33:24 +00:00
// { }
// mstore(192, 0)
// }
// { if iszero(msize()) { break } }
// }
// }