solidity/test/libyul/evmCodeTransform/stackReuse/function_with_body_embedded.yul
Daniel Kirchner 1a0605c594 Update tests.
2021-11-03 12:39:55 +01:00

31 lines
547 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 */
// 0x03
// /* "":177:183 */
// pop
// /* "":182:183 */
// 0x07
// /* "":0:185 */
// stop
// /* "":21:172 */
// tag_1:
// swap1
// pop
// /* "":153:159 */
// pop
// /* "":158:159 */
// 0x03
// /* "":21:172 */
// swap1
// jump // out