Debian Codegraph @

tests/cli/dump/bundled.wat.stdout

raw
1 0x0 | 00 61 73 6d | version 13 (Component)
2 | 0d 00 01 00
3 0x8 | 07 30 | component type section
4 0xa | 01 | 1 count
5 0xb | 42 06 01 70 | [type 0] Instance([Type(Defined(List(Primitive(U8)))), Type(Func(ComponentFuncType { params: [("len", Primitive(U32))], result: Some(Type(0)) })), Export { name: ComponentExportName("read"), ty: Func(1) }, Type(Defined(List(Primitive(U8)))), Type(Func(ComponentFuncType { params: [("buf", Type(2))], result: Some(Primitive(U32)) })), Export { name: ComponentExportName("write"), ty: Func(3) }])
6 | 7d 01 40 01
7 | 03 6c 65 6e
8 | 79 00 00 04
9 | 00 04 72 65
10 | 61 64 01 01
11 | 01 70 7d 01
12 | 40 01 03 62
13 | 75 66 02 00
14 | 79 04 00 05
15 | 77 72 69 74
16 | 65 01 03
17 0x3a | 0a 0e | component import section
18 0x3c | 01 | 1 count
19 0x3d | 00 09 77 61 | [instance 0] ComponentImport { name: ComponentImportName("wasi-file"), ty: Instance(0) }
20 | 73 69 2d 66
21 | 69 6c 65 05
22 | 00
23 0x4a | 01 44 | [core module 0] inline size
24 0x4c | 00 61 73 6d | version 1 (Module)
25 | 01 00 00 00
26 0x54 | 01 09 | type section
27 0x56 | 01 | 1 count
28 --- rec group 0 (implicit) ---
29 0x57 | 60 04 7f 7f | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32, I32, I32, I32], results: [I32] }), shared: false } }
30 | 7f 7f 01 7f
31 0x5f | 03 02 | func section
32 0x61 | 01 | 1 count
33 0x62 | 00 | [func 0] type 0
34 0x63 | 05 03 | memory section
35 0x65 | 01 | 1 count
36 0x66 | 00 00 | [memory 0] MemoryType { memory64: false, shared: false, initial: 0, maximum: None, page_size_log2: None }
37 0x68 | 07 11 | export section
38 0x6a | 02 | 2 count
39 0x6b | 03 6d 65 6d | export Export { name: "mem", kind: Memory, index: 0 }
40 | 02 00
41 0x71 | 07 72 65 61 | export Export { name: "realloc", kind: Func, index: 0 }
42 | 6c 6c 6f 63
43 | 00 00
44 0x7b | 0a 05 | code section
45 0x7d | 01 | 1 count
46 ============== func 0 ====================
47 0x7e | 03 | size of function
48 0x7f | 00 | 0 local blocks
49 0x80 | 00 | unreachable
50 0x81 | 0b | end
51 0x82 | 00 0c | custom section
52 0x84 | 04 6e 61 6d | name: "name"
53 | 65
54 0x89 | 00 05 | module name
55 0x8b | 04 6c 69 62 | "libc"
56 | 63
57 0x90 | 02 04 | core instance section
58 0x92 | 01 | 1 count
59 0x93 | 00 00 00 | [core instance 0] Instantiate { module_index: 0, args: [] }
60 0x96 | 01 5f | [core module 1] inline size
61 0x98 | 00 61 73 6d | version 1 (Module)
62 | 01 00 00 00
63 0xa0 | 01 09 | type section
64 0xa2 | 02 | 2 count
65 --- rec group 0 (implicit) ---
66 0xa3 | 60 02 7f 7f | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32, I32], results: [] }), shared: false } }
67 | 00
68 --- rec group 1 (implicit) ---
69 0xa8 | 60 00 00 | [type 1] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false } }
70 0xab | 02 12 | import section
71 0xad | 01 | 1 count
72 0xae | 09 77 61 73 | import [func 0] Import { module: "wasi-file", name: "read", ty: Func(0) }
73 | 69 2d 66 69
74 | 6c 65 04 72
75 | 65 61 64 00
76 | 00
77 0xbf | 03 02 | func section
78 0xc1 | 01 | 1 count
79 0xc2 | 01 | [func 1] type 1
80 0xc3 | 07 08 | export section
81 0xc5 | 01 | 1 count
82 0xc6 | 04 70 6c 61 | export Export { name: "play", kind: Func, index: 1 }
83 | 79 00 01
84 0xcd | 0a 05 | code section
85 0xcf | 01 | 1 count
86 ============== func 1 ====================
87 0xd0 | 03 | size of function
88 0xd1 | 00 | 0 local blocks
89 0xd2 | 00 | unreachable
90 0xd3 | 0b | end
91 0xd4 | 00 21 | custom section
92 0xd6 | 04 6e 61 6d | name: "name"
93 | 65
94 0xdb | 00 06 | module name
95 0xdd | 05 43 48 49 | "CHILD"
96 | 4c 44
97 0xe3 | 01 12 | function name section
98 0xe5 | 02 | 2 count
99 0xe6 | 00 09 77 61 | Naming { index: 0, name: "wasi-file" }
100 | 73 69 2d 66
101 | 69 6c 65
102 0xf1 | 01 04 70 6c | Naming { index: 1, name: "play" }
103 | 61 79
104 0xf7 | 01 60 | [core module 2] inline size
105 0xf9 | 00 61 73 6d | version 1 (Module)
106 | 01 00 00 00
107 0x101 | 01 0c | type section
108 0x103 | 02 | 2 count
109 --- rec group 0 (implicit) ---
110 0x104 | 60 02 7f 7f | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32, I32], results: [] }), shared: false } }
111 | 00
112 --- rec group 1 (implicit) ---
113 0x109 | 60 03 7f 7f | [type 1] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32, I32, I32], results: [] }), shared: false } }
114 | 7f 00
115 0x10f | 02 12 | import section
116 0x111 | 01 | 1 count
117 0x112 | 09 77 61 73 | import [func 0] Import { module: "wasi-file", name: "read", ty: Func(0) }
118 | 69 2d 66 69
119 | 6c 65 04 72
120 | 65 61 64 00
121 | 00
122 0x123 | 03 03 | func section
123 0x125 | 02 | 2 count
124 0x126 | 00 | [func 1] type 0
125 0x127 | 01 | [func 2] type 1
126 0x128 | 07 10 | export section
127 0x12a | 02 | 2 count
128 0x12b | 04 72 65 61 | export Export { name: "read", kind: Func, index: 1 }
129 | 64 00 01
130 0x132 | 05 77 72 69 | export Export { name: "write", kind: Func, index: 2 }
131 | 74 65 00 02
132 0x13a | 0a 09 | code section
133 0x13c | 02 | 2 count
134 ============== func 1 ====================
135 0x13d | 03 | size of function
136 0x13e | 00 | 0 local blocks
137 0x13f | 00 | unreachable
138 0x140 | 0b | end
139 ============== func 2 ====================
140 0x141 | 03 | size of function
141 0x142 | 00 | 0 local blocks
142 0x143 | 00 | unreachable
143 0x144 | 0b | end
144 0x145 | 00 12 | custom section
145 0x147 | 04 6e 61 6d | name: "name"
146 | 65
147 0x14c | 00 0b | module name
148 0x14e | 0a 56 49 52 | "VIRTUALIZE"
149 | 54 55 41 4c
150 | 49 5a 45
151 0x159 | 06 1d | component alias section
152 0x15b | 03 | 3 count
153 0x15c | 01 00 00 04 | alias [func 0] InstanceExport { kind: Func, instance_index: 0, name: "read" }
154 | 72 65 61 64
155 0x164 | 00 02 01 00 | alias [core memory 0] CoreInstanceExport { kind: Memory, instance_index: 0, name: "mem" }
156 | 03 6d 65 6d
157 0x16c | 00 00 01 00 | alias [core func 0] CoreInstanceExport { kind: Func, instance_index: 0, name: "realloc" }
158 | 07 72 65 61
159 | 6c 6c 6f 63
160 0x178 | 08 09 | canonical function section
161 0x17a | 01 | 1 count
162 0x17b | 01 00 00 02 | [core func 1] Lower { func_index: 0, options: [Memory(0), Realloc(0)] }
163 | 03 00 04 00
164 0x183 | 02 28 | core instance section
165 0x185 | 03 | 3 count
166 0x186 | 01 01 04 72 | [core instance 1] FromExports([Export { name: "read", kind: Func, index: 1 }])
167 | 65 61 64 00
168 | 01
169 0x18f | 00 02 01 09 | [core instance 2] Instantiate { module_index: 2, args: [InstantiationArg { name: "wasi-file", kind: Instance, index: 1 }] }
170 | 77 61 73 69
171 | 2d 66 69 6c
172 | 65 12 01
173 0x19e | 00 01 01 09 | [core instance 3] Instantiate { module_index: 1, args: [InstantiationArg { name: "wasi-file", kind: Instance, index: 2 }] }
174 | 77 61 73 69
175 | 2d 66 69 6c
176 | 65 12 02
177 0x1ad | 07 05 | component type section
178 0x1af | 01 | 1 count
179 0x1b0 | 40 00 01 00 | [type 1] Func(ComponentFuncType { params: [], result: None })
180 0x1b4 | 06 1e | component alias section
181 0x1b6 | 03 | 3 count
182 0x1b7 | 00 00 01 03 | alias [core func 2] CoreInstanceExport { kind: Func, instance_index: 3, name: "play" }
183 | 04 70 6c 61
184 | 79
185 0x1c0 | 00 02 01 00 | alias [core memory 1] CoreInstanceExport { kind: Memory, instance_index: 0, name: "mem" }
186 | 03 6d 65 6d
187 0x1c8 | 00 00 01 00 | alias [core func 3] CoreInstanceExport { kind: Func, instance_index: 0, name: "realloc" }
188 | 07 72 65 61
189 | 6c 6c 6f 63
190 0x1d4 | 08 0a | canonical function section
191 0x1d6 | 01 | 1 count
192 0x1d7 | 00 00 02 02 | [func 1] Lift { core_func_index: 2, type_index: 1, options: [Memory(1), Realloc(3)] }
193 | 03 01 04 03
194 | 01
195 0x1e0 | 0b 0a | component export section
196 0x1e2 | 01 | 1 count
197 0x1e3 | 00 04 77 6f | export ComponentExport { name: ComponentExportName("work"), kind: Func, index: 1, ty: None }
198 | 72 6b 01 01
199 | 00
200 0x1ec | 00 7c | custom section
201 0x1ee | 0e 63 6f 6d | name: "component-name"
202 | 70 6f 6e 65
203 | 6e 74 2d 6e
204 | 61 6d 65
205 0x1fd | 01 13 00 00 | core func name section
206 0x201 | 01 | 1 count
207 0x202 | 01 0e 72 65 | Naming { index: 1, name: "real-wasi-read" }
208 | 61 6c 2d 77
209 | 61 73 69 2d
210 | 72 65 61 64
211 0x212 | 01 1c 00 11 | core module name section
212 0x216 | 03 | 3 count
213 0x217 | 00 04 6c 69 | Naming { index: 0, name: "libc" }
214 | 62 63
215 0x21d | 01 05 43 48 | Naming { index: 1, name: "CHILD" }
216 | 49 4c 44
217 0x224 | 02 0a 56 49 | Naming { index: 2, name: "VIRTUALIZE" }
218 | 52 54 55 41
219 | 4c 49 5a 45
220 0x230 | 01 1b 00 12 | core instance name section
221 0x234 | 03 | 3 count
222 0x235 | 00 04 6c 69 | Naming { index: 0, name: "libc" }
223 | 62 63
224 0x23b | 02 09 76 69 | Naming { index: 2, name: "virt-wasi" }
225 | 72 74 2d 77
226 | 61 73 69
227 0x246 | 03 05 63 68 | Naming { index: 3, name: "child" }
228 | 69 6c 64
229 0x24d | 01 0c 03 | type name section
230 0x250 | 01 | 1 count
231 0x251 | 00 08 57 61 | Naming { index: 0, name: "WasiFile" }
232 | 73 69 46 69
233 | 6c 65
234 0x25b | 01 0d 05 | instance name section
235 0x25e | 01 | 1 count
236 0x25f | 00 09 72 65 | Naming { index: 0, name: "real-wasi" }
237 | 61 6c 2d 77
238 | 61 73 69