mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
25 lines
436 B
Plaintext
25 lines
436 B
Plaintext
// This does not re-use the parameters for the return parameters
|
|
// We do not expect parameters to be fully unused, so the stack
|
|
// layout for a function is still fixed, even though parameters
|
|
// can be re-used.
|
|
{
|
|
function f(a, b, c, d) -> x, y { }
|
|
}
|
|
// ====
|
|
// stackOptimization: true
|
|
// ----
|
|
// PUSH1 0x10
|
|
// JUMP
|
|
// JUMPDEST
|
|
// POP
|
|
// POP
|
|
// POP
|
|
// POP
|
|
// PUSH1 0x0
|
|
// PUSH1 0x0
|
|
// JUMPDEST
|
|
// SWAP1
|
|
// SWAP2
|
|
// JUMP
|
|
// JUMPDEST
|