solidity/test/libyul/yulOptimizerTests/loadResolver/loop.yul

19 lines
327 B
Plaintext
Raw Normal View History

2019-08-29 14:56:50 +00:00
{
sstore(0, 123213)
for {let x := 0 let y} lt(x, sload(0)) {
x := add(x, 1)} {y := add(x, y)
}
}
// ----
// step: loadResolver
//
2019-08-29 14:56:50 +00:00
// {
// let _1 := 123213
// let _2 := 0
// sstore(_2, _1)
// let x := _2
// let y
// for { } lt(x, _1) { x := add(x, 1) }
// { y := add(x, y) }
// }