2018-10-16 21:47:02 +00:00
|
|
|
{
|
|
|
|
let a := mload(0)
|
|
|
|
a := add(a, 1)
|
|
|
|
if a {
|
|
|
|
a := add(a, 2)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
a := add(a, 4)
|
|
|
|
}
|
|
|
|
for { a := add(a, 3) } a { a := add(a, 6) }
|
|
|
|
{
|
|
|
|
a := add(a, 12)
|
|
|
|
}
|
|
|
|
a := add(a, 8)
|
|
|
|
}
|
|
|
|
// ----
|
2020-03-17 22:31:56 +00:00
|
|
|
// 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, 1)
|
|
|
|
// a := a_2
|
|
|
|
// if a_2
|
|
|
|
// {
|
|
|
|
// let a_3 := add(a_2, 2)
|
|
|
|
// a := a_3
|
|
|
|
// }
|
2019-09-07 19:14:25 +00:00
|
|
|
// let a_9 := a
|
2018-10-16 21:47:02 +00:00
|
|
|
// {
|
2019-09-07 19:14:25 +00:00
|
|
|
// let a_4 := add(a_9, 4)
|
2018-10-16 21:47:02 +00:00
|
|
|
// a := a_4
|
|
|
|
// }
|
2019-09-07 19:14:25 +00:00
|
|
|
// let a_10 := a
|
2020-07-02 15:02:26 +00:00
|
|
|
// let a_5 := add(a_10, 3)
|
|
|
|
// a := a_5
|
|
|
|
// for { }
|
2018-10-16 21:47:02 +00:00
|
|
|
// a
|
|
|
|
// {
|
2019-09-07 19:14:25 +00:00
|
|
|
// let a_12 := a
|
|
|
|
// let a_6 := add(a_12, 6)
|
2019-09-12 13:19:11 +00:00
|
|
|
// a := a_6
|
2018-10-16 21:47:02 +00:00
|
|
|
// }
|
|
|
|
// {
|
2019-09-07 19:14:25 +00:00
|
|
|
// let a_11 := a
|
|
|
|
// let a_7 := add(a_11, 12)
|
2019-09-12 13:19:11 +00:00
|
|
|
// a := a_7
|
2018-10-16 21:47:02 +00:00
|
|
|
// }
|
2019-09-07 19:14:25 +00:00
|
|
|
// let a_13 := a
|
|
|
|
// let a_8 := add(a_13, 8)
|
2018-10-16 21:47:02 +00:00
|
|
|
// a := a_8
|
|
|
|
// }
|