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

21 lines
344 B
Plaintext
Raw Normal View History

2018-10-16 21:47:02 +00:00
{
let a := mload(0)
for { a := add(a, 3) } a { mstore(0, a) }
{
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
// let a_2 := add(a_1, 3)
// a := a_2
// for { } a_2 { mstore(0, a_2) }
// { mstore(0, a_2) }
// mstore(0, a_2)
2018-10-16 21:47:02 +00:00
// }