solidity/test/libyul/evmCodeTransform/stackReuse/reuse_slots_function.yul
2021-08-17 19:00:28 +02:00

36 lines
546 B
Plaintext

{
function f() -> x, y, z, t {}
let a, b, c, d := f() let x1 := 2 let y1 := 3 mstore(x1, a) mstore(y1, c)
}
// ====
// stackOptimization: true
// ----
// tag_1
// /* "":58:61 */
// tag_2
// jump // in
// tag_1:
// pop
// swap2
// swap1
// pop
// /* "":72:73 */
// 0x02
// swap1
// /* "":84:85 */
// 0x03
// swap2
// /* "":86:99 */
// mstore
// /* "":100:113 */
// mstore
// stop
// /* "":6:35 */
// tag_2:
// 0x00
// 0x00
// 0x00
// 0x00
// swap4
// jump // out