Debian Codegraph @

crates/wasm-compose/tests/compositions/complex-import/composed.wat

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (func (param "x" string) (result string)))
7 (export (;0;) "m" (func (type 0)))
8 )
9 )
10 (import "b1" (instance (;0;) (type 0)))
11 (import "b2" (instance (;1;) (type 0)))
12 (type (;1;) (func (param "x" string) (result string)))
13 (export (;0;) "m1" (func (type 1)))
14 (export (;1;) "m2" (func (type 1)))
15 )
16 )
17 (import "root" (component (;0;) (type 0)))
18 (type (;1;)
19 (component
20 (type (;0;)
21 (instance
22 (type (;0;) (func))
23 (export (;0;) "a" (func (type 0)))
24 (type (;1;) (func (param "x" s8)))
25 (export (;1;) "b" (func (type 1)))
26 (type (;2;) (func (param "x" u8)))
27 (export (;2;) "c" (func (type 2)))
28 (type (;3;) (func (param "x" s16)))
29 (export (;3;) "d" (func (type 3)))
30 (type (;4;) (func (param "x" u16)))
31 (export (;4;) "e" (func (type 4)))
32 (type (;5;) (func (param "x" s32)))
33 (export (;5;) "f" (func (type 5)))
34 (type (;6;) (func (param "x" u32)))
35 (export (;6;) "g" (func (type 6)))
36 (type (;7;) (func (param "x" s64)))
37 (export (;7;) "h" (func (type 7)))
38 (type (;8;) (func (param "x" u64)))
39 (export (;8;) "i" (func (type 8)))
40 (type (;9;) (func (param "x" f32)))
41 (export (;9;) "j" (func (type 9)))
42 (type (;10;) (func (param "x" f64)))
43 (export (;10;) "k" (func (type 10)))
44 (type (;11;) (func (param "x" bool)))
45 (export (;11;) "l" (func (type 11)))
46 (type (;12;) (func (param "x" string)))
47 (export (;12;) "m" (func (type 12)))
48 (type (;13;) (record (field "a" s8) (field "b" u8) (field "c" s16) (field "d" u16) (field "e" s32) (field "f" u32) (field "g" s64) (field "h" u64) (field "i" f32) (field "j" f64) (field "k" bool) (field "l" string)))
49 (export (;14;) "record1" (type (eq 13)))
50 (type (;15;) (func (param "x" 14)))
51 (export (;13;) "n" (func (type 15)))
52 (type (;16;) (list 14))
53 (type (;17;) (func (param "x" 16)))
54 (export (;14;) "o" (func (type 17)))
55 (type (;18;) (tuple 14 string))
56 (type (;19;) (func (param "x" 18)))
57 (export (;15;) "p" (func (type 19)))
58 (type (;20;) (flags "a" "b" "c"))
59 (export (;21;) "flags1" (type (eq 20)))
60 (type (;22;) (func (param "x" 21)))
61 (export (;16;) "q" (func (type 22)))
62 (type (;23;) (enum "a" "b" "c"))
63 (export (;24;) "enum1" (type (eq 23)))
64 (type (;25;) (func (param "x" 24)))
65 (export (;17;) "r" (func (type 25)))
66 (type (;26;) (option 14))
67 (export (;27;) "option1" (type (eq 26)))
68 (type (;28;) (func (param "x" 27)))
69 (export (;18;) "s" (func (type 28)))
70 (type (;29;) (variant (case "a" s8) (case "b" u8) (case "c" s16) (case "d" u16) (case "e" s32) (case "f" u32) (case "g" s64) (case "h" u64) (case "i" f32) (case "j" f64) (case "k" bool) (case "l" string) (case "m" 14)))
71 (export (;30;) "variant1" (type (eq 29)))
72 (type (;31;) (option 30))
73 (type (;32;) (func (param "x" 31)))
74 (export (;19;) "t" (func (type 32)))
75 (type (;33;) (result 14 (error string)))
76 (type (;34;) (func (result 33)))
77 (export (;20;) "u" (func (type 34)))
78 )
79 )
80 (import "a" (instance (;0;) (type 0)))
81 (type (;1;)
82 (instance
83 (type (;0;) (func (param "x" string) (result string)))
84 (export (;0;) "m" (func (type 0)))
85 )
86 )
87 (export (;1;) "x" (instance (type 1)))
88 )
89 )
90 (import "b" (component (;1;) (type 1)))
91 (type (;2;)
92 (component
93 (type (;0;) (record (field "a" s8) (field "b" u8) (field "c" s16) (field "d" u16) (field "e" s32) (field "f" u32) (field "g" s64) (field "h" u64) (field "i" f32) (field "j" f64) (field "k" bool) (field "l" string)))
94 (export (;1;) "record1" (type (eq 0)))
95 (type (;2;) (flags "a" "b" "c"))
96 (export (;3;) "flags1" (type (eq 2)))
97 (type (;4;) (enum "a" "b" "c"))
98 (export (;5;) "enum1" (type (eq 4)))
99 (type (;6;) (option 1))
100 (export (;7;) "option1" (type (eq 6)))
101 (type (;8;) (variant (case "a" s8) (case "b" u8) (case "c" s16) (case "d" u16) (case "e" s32) (case "f" u32) (case "g" s64) (case "h" u64) (case "i" f32) (case "j" f64) (case "k" bool) (case "l" string) (case "m" 1)))
102 (export (;9;) "variant1" (type (eq 8)))
103 (type (;10;) (func))
104 (export (;0;) "a" (func (type 10)))
105 (type (;11;) (func (param "x" s8)))
106 (export (;1;) "b" (func (type 11)))
107 (type (;12;) (func (param "x" u8)))
108 (export (;2;) "c" (func (type 12)))
109 (type (;13;) (func (param "x" s16)))
110 (export (;3;) "d" (func (type 13)))
111 (type (;14;) (func (param "x" u16)))
112 (export (;4;) "e" (func (type 14)))
113 (type (;15;) (func (param "x" s32)))
114 (export (;5;) "f" (func (type 15)))
115 (type (;16;) (func (param "x" u32)))
116 (export (;6;) "g" (func (type 16)))
117 (type (;17;) (func (param "x" s64)))
118 (export (;7;) "h" (func (type 17)))
119 (type (;18;) (func (param "x" u64)))
120 (export (;8;) "i" (func (type 18)))
121 (type (;19;) (func (param "x" f32)))
122 (export (;9;) "j" (func (type 19)))
123 (type (;20;) (func (param "x" f64)))
124 (export (;10;) "k" (func (type 20)))
125 (type (;21;) (func (param "x" bool)))
126 (export (;11;) "l" (func (type 21)))
127 (type (;22;) (func (param "x" string)))
128 (export (;12;) "m" (func (type 22)))
129 (type (;23;) (func (param "x" 1)))
130 (export (;13;) "n" (func (type 23)))
131 (type (;24;) (list 1))
132 (type (;25;) (func (param "x" 24)))
133 (export (;14;) "o" (func (type 25)))
134 (type (;26;) (tuple 1 string))
135 (type (;27;) (func (param "x" 26)))
136 (export (;15;) "p" (func (type 27)))
137 (type (;28;) (func (param "x" 3)))
138 (export (;16;) "q" (func (type 28)))
139 (type (;29;) (func (param "x" 5)))
140 (export (;17;) "r" (func (type 29)))
141 (type (;30;) (func (param "x" 7)))
142 (export (;18;) "s" (func (type 30)))
143 (type (;31;) (option 9))
144 (type (;32;) (func (param "x" 31)))
145 (export (;19;) "t" (func (type 32)))
146 (type (;33;) (result 1 (error string)))
147 (type (;34;) (func (result 33)))
148 (export (;20;) "u" (func (type 34)))
149 )
150 )
151 (import "a" (component (;2;) (type 2)))
152 (instance (;0;) (instantiate 2))
153 (instance (;1;) (instantiate 1
154 (with "a" (instance 0))
155 )
156 )
157 (instance (;2;) (instantiate 1
158 (with "a" (instance 0))
159 )
160 )
161 (alias export 2 "x" (instance (;3;)))
162 (alias export 1 "x" (instance (;4;)))
163 (instance (;5;) (instantiate 0
164 (with "b1" (instance 3))
165 (with "b2" (instance 4))
166 )
167 )
168 (alias export 5 "m1" (func (;0;)))
169 (export (;1;) "m1" (func 0))
170 (alias export 5 "m2" (func (;2;)))
171 (export (;3;) "m2" (func 2))
172 )