2020-06-17 09:17:35 +00:00
|
|
|
object "A" {
|
|
|
|
code {
|
2020-12-11 16:09:09 +00:00
|
|
|
let a_o := dataoffset("A")
|
|
|
|
let a_s := datasize("A")
|
|
|
|
let b_o := dataoffset("B")
|
|
|
|
let b_s := datasize("B")
|
|
|
|
let bc_o := dataoffset("B.C")
|
|
|
|
let bc_s := datasize("B.C")
|
|
|
|
let be_o := dataoffset("B.E")
|
|
|
|
let be_s := datasize("B.E")
|
|
|
|
let bcd_o := dataoffset("B.C.D")
|
|
|
|
let bcd_s := datasize("B.C.D")
|
|
|
|
|
|
|
|
sstore(0, a_o)
|
|
|
|
sstore(32, a_s)
|
|
|
|
sstore(64, b_o)
|
|
|
|
sstore(96, b_s)
|
|
|
|
sstore(128, bc_o)
|
|
|
|
sstore(160, bc_s)
|
|
|
|
sstore(192, be_o)
|
|
|
|
sstore(224, be_s)
|
|
|
|
sstore(256, bcd_o)
|
|
|
|
sstore(288, bcd_s)
|
|
|
|
return(0, 320)
|
2020-06-17 09:17:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
data "data1" "Hello, World!"
|
|
|
|
|
|
|
|
object "B" {
|
|
|
|
code {
|
2020-12-11 16:09:09 +00:00
|
|
|
let c_o := dataoffset("C")
|
|
|
|
let c_s := datasize("C")
|
|
|
|
let e_o := dataoffset("E")
|
|
|
|
let e_s := datasize("E")
|
|
|
|
let cd_o := dataoffset("C.D")
|
|
|
|
let cd_s := datasize("C.D")
|
|
|
|
|
|
|
|
sstore(0, c_o)
|
|
|
|
sstore(32, c_s)
|
|
|
|
sstore(64, e_o)
|
|
|
|
sstore(96, e_s)
|
|
|
|
sstore(128, cd_o)
|
|
|
|
sstore(160, cd_s)
|
|
|
|
return(0, 192)
|
2020-06-17 09:17:35 +00:00
|
|
|
}
|
|
|
|
object "C" {
|
|
|
|
code {
|
2020-12-11 16:09:09 +00:00
|
|
|
let d_o := dataoffset("D")
|
|
|
|
let d_s := datasize("D")
|
|
|
|
|
|
|
|
sstore(0, d_o)
|
|
|
|
sstore(32, d_s)
|
|
|
|
return(0, 64)
|
2020-06-17 09:17:35 +00:00
|
|
|
}
|
|
|
|
object "D" {
|
|
|
|
code {
|
|
|
|
invalid()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
object "E" {
|
|
|
|
code {
|
|
|
|
invalid()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Assembly:
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":37:52 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// 0x00
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":68:81 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// bytecodeSize
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":97:112 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":128:141 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":158:175 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0.sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":192:207 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0.sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":224:241 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0.sub_1)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":258:273 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0.sub_1)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":291:310 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0.sub_0.sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":328:345 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0.sub_0.sub_0)
|
|
|
|
// /* "source":361:364 */
|
|
|
|
// dup10
|
|
|
|
// /* "source":358:359 */
|
|
|
|
// 0x00
|
|
|
|
// /* "source":351:365 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":381:384 */
|
|
|
|
// dup9
|
|
|
|
// /* "source":377:379 */
|
|
|
|
// 0x20
|
|
|
|
// /* "source":370:385 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":401:404 */
|
|
|
|
// dup8
|
|
|
|
// /* "source":397:399 */
|
|
|
|
// 0x40
|
|
|
|
// /* "source":390:405 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":421:424 */
|
|
|
|
// dup7
|
|
|
|
// /* "source":417:419 */
|
|
|
|
// 0x60
|
|
|
|
// /* "source":410:425 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":442:446 */
|
|
|
|
// dup6
|
|
|
|
// /* "source":437:440 */
|
|
|
|
// 0x80
|
|
|
|
// /* "source":430:447 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":464:468 */
|
|
|
|
// dup5
|
|
|
|
// /* "source":459:462 */
|
|
|
|
// 0xa0
|
|
|
|
// /* "source":452:469 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":486:490 */
|
|
|
|
// dup4
|
|
|
|
// /* "source":481:484 */
|
|
|
|
// 0xc0
|
|
|
|
// /* "source":474:491 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":508:512 */
|
|
|
|
// dup3
|
|
|
|
// /* "source":503:506 */
|
|
|
|
// 0xe0
|
|
|
|
// /* "source":496:513 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":530:535 */
|
|
|
|
// dup2
|
|
|
|
// /* "source":525:528 */
|
|
|
|
// 0x0100
|
|
|
|
// /* "source":518:536 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":553:558 */
|
|
|
|
// dup1
|
|
|
|
// /* "source":548:551 */
|
|
|
|
// 0x0120
|
|
|
|
// /* "source":541:559 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":574:577 */
|
|
|
|
// 0x0140
|
|
|
|
// /* "source":571:572 */
|
|
|
|
// 0x00
|
|
|
|
// /* "source":564:578 */
|
|
|
|
// return
|
2020-06-17 09:17:35 +00:00
|
|
|
// stop
|
|
|
|
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
|
|
|
|
//
|
|
|
|
// sub_0: assembly {
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":659:674 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":692:705 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":723:738 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_1)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":756:769 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_1)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":788:805 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0.sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":824:839 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0.sub_0)
|
|
|
|
// /* "source":857:860 */
|
|
|
|
// dup6
|
|
|
|
// /* "source":854:855 */
|
|
|
|
// 0x00
|
|
|
|
// /* "source":847:861 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":879:882 */
|
|
|
|
// dup5
|
|
|
|
// /* "source":875:877 */
|
|
|
|
// 0x20
|
|
|
|
// /* "source":868:883 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":901:904 */
|
|
|
|
// dup4
|
|
|
|
// /* "source":897:899 */
|
|
|
|
// 0x40
|
|
|
|
// /* "source":890:905 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":923:926 */
|
|
|
|
// dup3
|
|
|
|
// /* "source":919:921 */
|
|
|
|
// 0x60
|
|
|
|
// /* "source":912:927 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":946:950 */
|
|
|
|
// dup2
|
|
|
|
// /* "source":941:944 */
|
|
|
|
// 0x80
|
|
|
|
// /* "source":934:951 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":970:974 */
|
|
|
|
// dup1
|
|
|
|
// /* "source":965:968 */
|
|
|
|
// 0xa0
|
|
|
|
// /* "source":958:975 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":992:995 */
|
|
|
|
// 0xc0
|
|
|
|
// /* "source":989:990 */
|
|
|
|
// 0x00
|
|
|
|
// /* "source":982:996 */
|
|
|
|
// return
|
2020-06-17 09:17:35 +00:00
|
|
|
// stop
|
|
|
|
//
|
|
|
|
// sub_0: assembly {
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":1052:1067 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataOffset(sub_0)
|
2021-07-06 10:23:12 +00:00
|
|
|
// /* "source":1087:1100 */
|
2020-12-11 16:09:09 +00:00
|
|
|
// dataSize(sub_0)
|
|
|
|
// /* "source":1120:1123 */
|
|
|
|
// dup2
|
|
|
|
// /* "source":1117:1118 */
|
|
|
|
// 0x00
|
|
|
|
// /* "source":1110:1124 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":1144:1147 */
|
|
|
|
// dup1
|
|
|
|
// /* "source":1140:1142 */
|
|
|
|
// 0x20
|
|
|
|
// /* "source":1133:1148 */
|
|
|
|
// sstore
|
|
|
|
// /* "source":1167:1169 */
|
|
|
|
// 0x40
|
|
|
|
// /* "source":1164:1165 */
|
|
|
|
// 0x00
|
|
|
|
// /* "source":1157:1170 */
|
|
|
|
// return
|
2020-06-17 09:17:35 +00:00
|
|
|
// stop
|
|
|
|
//
|
|
|
|
// sub_0: assembly {
|
2020-12-11 16:09:09 +00:00
|
|
|
// /* "source":1223:1232 */
|
2020-06-17 09:17:35 +00:00
|
|
|
// invalid
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// sub_1: assembly {
|
2020-12-11 16:09:09 +00:00
|
|
|
// /* "source":1295:1304 */
|
2020-06-17 09:17:35 +00:00
|
|
|
// invalid
|
|
|
|
// }
|
|
|
|
// }
|
2021-07-01 12:17:27 +00:00
|
|
|
// Bytecode: 600060996045603f60866013608560016084600189600055886020558760405586606055856080558460a0558360c0558260e055816101005580610120556101406000f3fe602a6013603d6001603e600185600055846020558360405582606055816080558060a05560c06000f3fe60126001816000558060205560406000f3fefefefefefe60126001816000558060205560406000f3fefe
|
|
|
|
// Opcodes: PUSH1 0x0 PUSH1 0x99 PUSH1 0x45 PUSH1 0x3F PUSH1 0x86 PUSH1 0x13 PUSH1 0x85 PUSH1 0x1 PUSH1 0x84 PUSH1 0x1 DUP10 PUSH1 0x0 SSTORE DUP9 PUSH1 0x20 SSTORE DUP8 PUSH1 0x40 SSTORE DUP7 PUSH1 0x60 SSTORE DUP6 PUSH1 0x80 SSTORE DUP5 PUSH1 0xA0 SSTORE DUP4 PUSH1 0xC0 SSTORE DUP3 PUSH1 0xE0 SSTORE DUP2 PUSH2 0x100 SSTORE DUP1 PUSH2 0x120 SSTORE PUSH2 0x140 PUSH1 0x0 RETURN INVALID PUSH1 0x2A PUSH1 0x13 PUSH1 0x3D PUSH1 0x1 PUSH1 0x3E PUSH1 0x1 DUP6 PUSH1 0x0 SSTORE DUP5 PUSH1 0x20 SSTORE DUP4 PUSH1 0x40 SSTORE DUP3 PUSH1 0x60 SSTORE DUP2 PUSH1 0x80 SSTORE DUP1 PUSH1 0xA0 SSTORE PUSH1 0xC0 PUSH1 0x0 RETURN INVALID PUSH1 0x12 PUSH1 0x1 DUP2 PUSH1 0x0 SSTORE DUP1 PUSH1 0x20 SSTORE PUSH1 0x40 PUSH1 0x0 RETURN INVALID INVALID INVALID INVALID INVALID INVALID PUSH1 0x12 PUSH1 0x1 DUP2 PUSH1 0x0 SSTORE DUP1 PUSH1 0x20 SSTORE PUSH1 0x40 PUSH1 0x0 RETURN INVALID INVALID
|
2021-07-06 10:23:12 +00:00
|
|
|
// SourceMappings: 37:15:0:-:0;68:13;97:15;128:13;158:17;192:15;224:17;258:15;291:19;328:17;361:3;358:1;351:14;381:3;377:2;370:15;401:3;397:2;390:15;421:3;417:2;410:15;442:4;437:3;430:17;464:4;459:3;452:17;486:4;481:3;474:17;508:4;503:3;496:17;530:5;525:3;518:18;553:5;548:3;541:18;574:3;571:1;564:14
|