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

29 lines
457 B
Plaintext
Raw Normal View History

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