Debian Codegraph @

tests/snapshots/cli/component-model/resources.wast/111.print

raw
1 (component
2 (component $C (;0;)
3 (import "in" (type $r (;0;) (sub resource)))
4 (export (;1;) "out" (type $r))
5 )
6 (type $r (;0;) (resource (rep i32)))
7 (instance $c1 (;0;) (instantiate $C
8 (with "in" (type $r))
9 )
10 )
11 (alias export $c1 "out" (type (;1;)))
12 (instance $c2 (;1;) (instantiate $C
13 (with "in" (type 1))
14 )
15 )
16 (alias export $c2 "out" (type (;2;)))
17 (instance $c3 (;2;) (instantiate $C
18 (with "in" (type 2))
19 )
20 )
21 (alias export $c3 "out" (type (;3;)))
22 (instance $c4 (;3;) (instantiate $C
23 (with "in" (type 3))
24 )
25 )
26 (alias export $c4 "out" (type (;4;)))
27 (instance $c5 (;4;) (instantiate $C
28 (with "in" (type 4))
29 )
30 )
31 (component $C2 (;1;)
32 (import "in1" (type $r (;0;) (sub resource)))
33 (import "in2" (type (;1;) (eq $r)))
34 (import "in3" (type (;2;) (eq $r)))
35 (import "in4" (type (;3;) (eq $r)))
36 (import "in5" (type (;4;) (eq $r)))
37 (import "in6" (type (;5;) (eq $r)))
38 )
39 (alias export $c1 "out" (type (;5;)))
40 (alias export $c2 "out" (type (;6;)))
41 (alias export $c3 "out" (type (;7;)))
42 (alias export $c4 "out" (type (;8;)))
43 (alias export $c5 "out" (type (;9;)))
44 (instance (;5;) (instantiate $C2
45 (with "in1" (type $r))
46 (with "in2" (type 5))
47 (with "in3" (type 6))
48 (with "in4" (type 7))
49 (with "in5" (type 8))
50 (with "in6" (type 9))
51 )
52 )
53 )