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

39 lines
579 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
// swap1
// 0x00
// swap1
// 0x00
// swap1
// 0x00
// swap1
// jump // out