mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
556 B
Plaintext
15 lines
556 B
Plaintext
|
{
|
||
|
function f(x) -> y
|
||
|
{
|
||
|
// 31 nested additions are computed in
|
||
|
// exactly 64 expression evaluation steps
|
||
|
y := add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,add(0x1,x)))))))))))))))))))))))))))))))
|
||
|
}
|
||
|
mstore(0,f(0))
|
||
|
}
|
||
|
// ----
|
||
|
// Trace:
|
||
|
// Memory dump:
|
||
|
// 0: 000000000000000000000000000000000000000000000000000000000000001f
|
||
|
// Storage dump:
|