2018-10-11 12:48:57 +00:00
|
|
|
{
|
2019-04-05 18:38:23 +00:00
|
|
|
let a := 1
|
|
|
|
let b := codesize()
|
2018-10-11 12:48:57 +00:00
|
|
|
for { } lt(1, codesize()) { mstore(1, codesize()) a := add(a, codesize()) } {
|
|
|
|
mstore(1, codesize())
|
|
|
|
}
|
|
|
|
mstore(1, codesize())
|
|
|
|
}
|
|
|
|
// ----
|
2020-03-17 22:31:56 +00:00
|
|
|
// step: commonSubexpressionEliminator
|
|
|
|
//
|
2018-10-11 12:48:57 +00:00
|
|
|
// {
|
|
|
|
// let a := 1
|
|
|
|
// let b := codesize()
|
2019-05-08 10:41:19 +00:00
|
|
|
// for { }
|
2018-10-11 12:48:57 +00:00
|
|
|
// lt(1, b)
|
|
|
|
// {
|
|
|
|
// mstore(1, b)
|
|
|
|
// a := add(a, b)
|
|
|
|
// }
|
2019-05-08 10:41:19 +00:00
|
|
|
// { mstore(1, b) }
|
2018-10-11 12:48:57 +00:00
|
|
|
// mstore(1, b)
|
|
|
|
// }
|