solidity/test/libyul/evmCodeTransform/stackReuse/function_params_and_retparams.yul

23 lines
439 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
// ----
// stop
// /* "":218:252 */
// tag_1:
// pop
// pop
// pop
// pop
// 0x00
// swap1
// 0x00
// swap1
// jump // out