solidity/test/libyul/yulOptimizerTests/ssaTransform/for_reassign_post.yul

30 lines
464 B
Plaintext
Raw Normal View History

2018-10-16 21:47:02 +00:00
{
let a := mload(0)
for { mstore(0, a) } a { a := add(a, 3) }
{
mstore(0, a)
}
mstore(0, a)
}
// ----
// step: ssaTransform
//
2018-10-16 21:47:02 +00:00
// {
// let a_1 := mload(0)
// let a := a_1
// mstore(0, a_1)
// for { }
2018-10-16 21:47:02 +00:00
// a
// {
// let a_4 := a
// let a_2 := add(a_4, 3)
2018-10-16 21:47:02 +00:00
// a := a_2
// }
// {
// let a_3 := a
// mstore(0, a_3)
// }
// let a_5 := a
// mstore(0, a_5)
2018-10-16 21:47:02 +00:00
// }