Debian Codegraph @

crates/wit-component/tests/interfaces/lists.wat

raw
1 (component
2 (type (;0;)
3 (component
4 (type (;0;)
5 (instance
6 (type (;0;) (list u8))
7 (type (;1;) (record (field "a1" u32) (field "a2" u64) (field "a3" s32) (field "a4" s64) (field "b" string) (field "c" 0)))
8 (export (;2;) "other-record" (type (eq 1)))
9 (type (;3;) (record (field "x" string) (field "y" 2) (field "c1" u32) (field "c2" u64) (field "c3" s32) (field "c4" s64)))
10 (export (;4;) "some-record" (type (eq 3)))
11 (type (;5;) (variant (case "a") (case "b" u32) (case "c" string)))
12 (export (;6;) "other-variant" (type (eq 5)))
13 (type (;7;) (list 6))
14 (type (;8;) (variant (case "a" string) (case "b") (case "c" u32) (case "d" 7)))
15 (export (;9;) "some-variant" (type (eq 8)))
16 (type (;10;) (tuple string u8 s8 u16 s16 u32 s32 u64 s64 f32 f64 char))
17 (type (;11;) (list 10))
18 (export (;12;) "load-store-all-sizes" (type (eq 11)))
19 (type (;13;) (func (param "x" 0)))
20 (export (;0;) "list-u8-param" (func (type 13)))
21 (type (;14;) (list u16))
22 (type (;15;) (func (param "x" 14)))
23 (export (;1;) "list-u16-param" (func (type 15)))
24 (type (;16;) (list u32))
25 (type (;17;) (func (param "x" 16)))
26 (export (;2;) "list-u32-param" (func (type 17)))
27 (type (;18;) (list u64))
28 (type (;19;) (func (param "x" 18)))
29 (export (;3;) "list-u64-param" (func (type 19)))
30 (type (;20;) (list s8))
31 (type (;21;) (func (param "x" 20)))
32 (export (;4;) "list-s8-param" (func (type 21)))
33 (type (;22;) (list s16))
34 (type (;23;) (func (param "x" 22)))
35 (export (;5;) "list-s16-param" (func (type 23)))
36 (type (;24;) (list s32))
37 (type (;25;) (func (param "x" 24)))
38 (export (;6;) "list-s32-param" (func (type 25)))
39 (type (;26;) (list s64))
40 (type (;27;) (func (param "x" 26)))
41 (export (;7;) "list-s64-param" (func (type 27)))
42 (type (;28;) (list f32))
43 (type (;29;) (func (param "x" 28)))
44 (export (;8;) "list-f32-param" (func (type 29)))
45 (type (;30;) (list f64))
46 (type (;31;) (func (param "x" 30)))
47 (export (;9;) "list-f64-param" (func (type 31)))
48 (type (;32;) (func (result 0)))
49 (export (;10;) "list-u8-ret" (func (type 32)))
50 (type (;33;) (func (result 14)))
51 (export (;11;) "list-u16-ret" (func (type 33)))
52 (type (;34;) (func (result 16)))
53 (export (;12;) "list-u32-ret" (func (type 34)))
54 (type (;35;) (func (result 18)))
55 (export (;13;) "list-u64-ret" (func (type 35)))
56 (type (;36;) (func (result 20)))
57 (export (;14;) "list-s8-ret" (func (type 36)))
58 (type (;37;) (func (result 22)))
59 (export (;15;) "list-s16-ret" (func (type 37)))
60 (type (;38;) (func (result 24)))
61 (export (;16;) "list-s32-ret" (func (type 38)))
62 (type (;39;) (func (result 26)))
63 (export (;17;) "list-s64-ret" (func (type 39)))
64 (type (;40;) (func (result 28)))
65 (export (;18;) "list-f32-ret" (func (type 40)))
66 (type (;41;) (func (result 30)))
67 (export (;19;) "list-f64-ret" (func (type 41)))
68 (type (;42;) (tuple u8 s8))
69 (type (;43;) (list 42))
70 (type (;44;) (tuple s64 u32))
71 (type (;45;) (list 44))
72 (type (;46;) (func (param "x" 43) (result 45)))
73 (export (;20;) "tuple-list" (func (type 46)))
74 (type (;47;) (list string))
75 (type (;48;) (func (param "a" 47)))
76 (export (;21;) "string-list-arg" (func (type 48)))
77 (type (;49;) (func (result 47)))
78 (export (;22;) "string-list-ret" (func (type 49)))
79 (type (;50;) (tuple u8 string))
80 (type (;51;) (list 50))
81 (type (;52;) (tuple string u8))
82 (type (;53;) (list 52))
83 (type (;54;) (func (param "x" 51) (result 53)))
84 (export (;23;) "tuple-string-list" (func (type 54)))
85 (type (;55;) (func (param "x" 47) (result 47)))
86 (export (;24;) "string-list" (func (type 55)))
87 (type (;56;) (list 4))
88 (type (;57;) (list 2))
89 (type (;58;) (func (param "x" 56) (result 57)))
90 (export (;25;) "record-list" (func (type 58)))
91 (type (;59;) (list 9))
92 (type (;60;) (func (param "x" 59) (result 7)))
93 (export (;26;) "variant-list" (func (type 60)))
94 (type (;61;) (func (param "a" 12) (result 12)))
95 (export (;27;) "load-store-everything" (func (type 61)))
96 )
97 )
98 (export (;0;) "foo:foo/lists" (instance (type 0)))
99 )
100 )
101 (export (;1;) "lists" (type 0))
102 (type (;2;)
103 (component
104 (type (;0;)
105 (component
106 (type (;0;)
107 (instance
108 (type (;0;) (list u8))
109 (type (;1;) (record (field "a1" u32) (field "a2" u64) (field "a3" s32) (field "a4" s64) (field "b" string) (field "c" 0)))
110 (export (;2;) "other-record" (type (eq 1)))
111 (type (;3;) (record (field "x" string) (field "y" 2) (field "c1" u32) (field "c2" u64) (field "c3" s32) (field "c4" s64)))
112 (export (;4;) "some-record" (type (eq 3)))
113 (type (;5;) (variant (case "a") (case "b" u32) (case "c" string)))
114 (export (;6;) "other-variant" (type (eq 5)))
115 (type (;7;) (list 6))
116 (type (;8;) (variant (case "a" string) (case "b") (case "c" u32) (case "d" 7)))
117 (export (;9;) "some-variant" (type (eq 8)))
118 (type (;10;) (tuple string u8 s8 u16 s16 u32 s32 u64 s64 f32 f64 char))
119 (type (;11;) (list 10))
120 (export (;12;) "load-store-all-sizes" (type (eq 11)))
121 (type (;13;) (func (param "x" 0)))
122 (export (;0;) "list-u8-param" (func (type 13)))
123 (type (;14;) (list u16))
124 (type (;15;) (func (param "x" 14)))
125 (export (;1;) "list-u16-param" (func (type 15)))
126 (type (;16;) (list u32))
127 (type (;17;) (func (param "x" 16)))
128 (export (;2;) "list-u32-param" (func (type 17)))
129 (type (;18;) (list u64))
130 (type (;19;) (func (param "x" 18)))
131 (export (;3;) "list-u64-param" (func (type 19)))
132 (type (;20;) (list s8))
133 (type (;21;) (func (param "x" 20)))
134 (export (;4;) "list-s8-param" (func (type 21)))
135 (type (;22;) (list s16))
136 (type (;23;) (func (param "x" 22)))
137 (export (;5;) "list-s16-param" (func (type 23)))
138 (type (;24;) (list s32))
139 (type (;25;) (func (param "x" 24)))
140 (export (;6;) "list-s32-param" (func (type 25)))
141 (type (;26;) (list s64))
142 (type (;27;) (func (param "x" 26)))
143 (export (;7;) "list-s64-param" (func (type 27)))
144 (type (;28;) (list f32))
145 (type (;29;) (func (param "x" 28)))
146 (export (;8;) "list-f32-param" (func (type 29)))
147 (type (;30;) (list f64))
148 (type (;31;) (func (param "x" 30)))
149 (export (;9;) "list-f64-param" (func (type 31)))
150 (type (;32;) (func (result 0)))
151 (export (;10;) "list-u8-ret" (func (type 32)))
152 (type (;33;) (func (result 14)))
153 (export (;11;) "list-u16-ret" (func (type 33)))
154 (type (;34;) (func (result 16)))
155 (export (;12;) "list-u32-ret" (func (type 34)))
156 (type (;35;) (func (result 18)))
157 (export (;13;) "list-u64-ret" (func (type 35)))
158 (type (;36;) (func (result 20)))
159 (export (;14;) "list-s8-ret" (func (type 36)))
160 (type (;37;) (func (result 22)))
161 (export (;15;) "list-s16-ret" (func (type 37)))
162 (type (;38;) (func (result 24)))
163 (export (;16;) "list-s32-ret" (func (type 38)))
164 (type (;39;) (func (result 26)))
165 (export (;17;) "list-s64-ret" (func (type 39)))
166 (type (;40;) (func (result 28)))
167 (export (;18;) "list-f32-ret" (func (type 40)))
168 (type (;41;) (func (result 30)))
169 (export (;19;) "list-f64-ret" (func (type 41)))
170 (type (;42;) (tuple u8 s8))
171 (type (;43;) (list 42))
172 (type (;44;) (tuple s64 u32))
173 (type (;45;) (list 44))
174 (type (;46;) (func (param "x" 43) (result 45)))
175 (export (;20;) "tuple-list" (func (type 46)))
176 (type (;47;) (list string))
177 (type (;48;) (func (param "a" 47)))
178 (export (;21;) "string-list-arg" (func (type 48)))
179 (type (;49;) (func (result 47)))
180 (export (;22;) "string-list-ret" (func (type 49)))
181 (type (;50;) (tuple u8 string))
182 (type (;51;) (list 50))
183 (type (;52;) (tuple string u8))
184 (type (;53;) (list 52))
185 (type (;54;) (func (param "x" 51) (result 53)))
186 (export (;23;) "tuple-string-list" (func (type 54)))
187 (type (;55;) (func (param "x" 47) (result 47)))
188 (export (;24;) "string-list" (func (type 55)))
189 (type (;56;) (list 4))
190 (type (;57;) (list 2))
191 (type (;58;) (func (param "x" 56) (result 57)))
192 (export (;25;) "record-list" (func (type 58)))
193 (type (;59;) (list 9))
194 (type (;60;) (func (param "x" 59) (result 7)))
195 (export (;26;) "variant-list" (func (type 60)))
196 (type (;61;) (func (param "a" 12) (result 12)))
197 (export (;27;) "load-store-everything" (func (type 61)))
198 )
199 )
200 (import "foo:foo/lists" (instance (;0;) (type 0)))
201 )
202 )
203 (export (;0;) "foo:foo/lists-world" (component (type 0)))
204 )
205 )
206 (export (;3;) "lists-world" (type 2))
207 (@custom "package-docs" "\01{}")
208 (@producers
209 (processed-by "wit-component" "$CARGO_PKG_VERSION")
210 )
211 )