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

29 lines
462 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)
}
2019-04-01 14:33:46 +00:00
// ====
// step: ssaTransform
2018-10-16 21:47:02 +00:00
// ----
// {
// let a_1 := mload(0)
// let a := a_1
// for { mstore(0, a_1) }
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
// }