solidity/test/libyul/yulOptimizerTests/ssaAndBack/for_loop.yul

31 lines
498 B
Plaintext
Raw Normal View History

{
let a := mload(0)
let b := mload(1)
for {
}
lt(mload(a),mload(b))
{
a := mload(b)
}
{
b := mload(a)
a := mload(b)
a := mload(b)
a := mload(b)
b := mload(a)
}
}
2019-04-01 14:33:46 +00:00
// ====
// step: ssaAndBack
// ----
// {
// let a := mload(0)
// let b := mload(1)
// for { } lt(mload(a), mload(b)) { a := mload(b) }
// {
2019-09-12 13:19:11 +00:00
// let b_4 := mload(a)
// a := mload(b_4)
// b := mload(a)
// }
// }