solidity/test/libyul/objectCompiler/function_series.yul
Vedant Agarwala 5d6cbd97df [Yul] Directly jump over a series of function definitions
Implement a AbstractAssembly::setStackHeight function
Update the tests
Update Changelog
2019-06-19 12:40:11 +08:00

29 lines
554 B
Plaintext

object "Contract" {
code {
function f() {}
function g() {}
sstore(0, 1)
}
}
// ----
// Assembly:
// /* "source":33:48 */
// jump(tag_1)
// tag_2:
// /* "source":46:48 */
// jump
// /* "source":53:68 */
// tag_3:
// /* "source":66:68 */
// jump
// tag_1:
// /* "source":83:84 */
// 0x01
// /* "source":80:81 */
// 0x00
// /* "source":73:85 */
// sstore
// Bytecode: 6007565b565b565b6001600055
// Opcodes: PUSH1 0x7 JUMP JUMPDEST JUMP JUMPDEST JUMP JUMPDEST PUSH1 0x1 PUSH1 0x0 SSTORE