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

22 lines
366 B
Plaintext

// z is only removed after the if (after the jumpdest)
{ let z := mload(0) if z { let x := z } let t := 3 }
// ====
// stackOptimization: true
// ----
// /* "":72:73 */
// 0x00
// /* "":66:74 */
// mload
// dup1
// tag_1
// jumpi
// tag_2:
// pop
// /* "":104:105 */
// pop(0x03)
// stop
// tag_1:
// pop
// pc
// jump(tag_2)