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

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