solidity/test/libyul/evmCodeTransform/stackReuse/function_with_body_embedded.yul
Daniel Kirchner fd36ec3dca Test updates.
2021-07-06 19:05:36 +02:00

27 lines
472 B
Plaintext

{
let b := 3
function f(a, r) -> t {
// r could be removed right away, but a cannot - this is not implemented, though
let x := a a := 3 t := a
}
b := 7
}
// ====
// stackOptimization: true
// ----
// /* "":15:16 */
// pop(0x03)
// /* "":182:183 */
// pop(0x07)
// stop
// /* "":21:172 */
// tag_1:
// swap1
// pop
// pop
// /* "":158:159 */
// 0x03
// swap1
// /* "":21:172 */
// jump // out