forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubSubObject.yul
49 lines (49 loc) · 1.15 KB
/
subSubObject.yul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
object "a" {
code {}
// Unreferenced data is not added to the assembled bytecode.
data "str" "Hello, World!"
object "sub" {
code { sstore(0, 1) }
object "subsub" {
code { sstore(2, 3) }
data "str" hex"123456"
}
}
}
// ====
// EVMVersion: >=constantinople
// bytecodeFormat: legacy
// ----
// Assembly:
// /* "source":22:29 */
// stop
// stop
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
//
// sub_0: assembly {
// /* "source":123:124 */
// 0x01
// /* "source":120:121 */
// 0x00
// /* "source":113:125 */
// sstore
// /* "source":109:129 */
// stop
// stop
//
// sub_0: assembly {
// /* "source":187:188 */
// 0x03
// /* "source":184:185 */
// 0x02
// /* "source":177:189 */
// sstore
// /* "source":173:193 */
// stop
// stop
// data_6adf031833174bbe4c85eafe59ddb54e6584648c2c962c6f94791ab49caa0ad4 123456
// }
// }
// Bytecode: 00fe
// Opcodes: STOP INVALID
// SourceMappings: 22:7:0:-:0