Debian Codegraph @

tests/snapshots/cli/component-model/module-link.wast/1.print

raw
1 (component
2 (type $Wasi (;0;)
3 (instance)
4 )
5 (import "wasi" (instance $wasi (;0;) (type $Wasi)))
6 (component $A (;0;)
7 (type $Wasi (;0;)
8 (instance)
9 )
10 (import "wasi" (instance (;0;) (type $Wasi)))
11 (core module $m (;0;)
12 (type (;0;) (func))
13 (export "a" (func 0))
14 (func (;0;) (type 0))
15 )
16 (core instance $i (;0;) (instantiate $m))
17 (type (;1;) (func))
18 (alias core export $i "a" (core func (;0;)))
19 (func (;0;) (type 1) (canon lift (core func 0)))
20 (export (;1;) "a" (func 0))
21 )
22 (component $B (;1;)
23 (type $Wasi (;0;)
24 (instance)
25 )
26 (import "wasi" (instance $wasi (;0;) (type $Wasi)))
27 (type (;1;)
28 (component
29 (alias outer $B $Wasi (type (;0;)))
30 (import "wasi" (instance (;0;) (type 0)))
31 (type (;1;) (func))
32 (export (;0;) "a" (func (type 1)))
33 )
34 )
35 (import "a1-x" (component $A (;0;) (type 1)))
36 (instance $a (;1;) (instantiate $A
37 (with "wasi" (instance $wasi))
38 )
39 )
40 (alias export $a "a" (func (;0;)))
41 (core func $lower (;0;) (canon lower (func 0)))
42 (core module $b (;0;)
43 (type (;0;) (func))
44 (import "a" "a" (func (;0;) (type 0)))
45 (export "b" (func 1))
46 (func (;1;) (type 0))
47 )
48 (core instance (;0;)
49 (export "a" (func $lower))
50 )
51 (core instance $b (;1;) (instantiate $b
52 (with "a" (instance 0))
53 )
54 )
55 (type (;2;) (func))
56 (alias core export $b "b" (core func (;1;)))
57 (func (;1;) (type 2) (canon lift (core func 1)))
58 (export (;2;) "b" (func 1))
59 )
60 (component $B_wrap (;2;)
61 (type $Wasi (;0;)
62 (instance)
63 )
64 (import "wasi" (instance $wasi (;0;) (type $Wasi)))
65 (alias outer 1 $B (component $B (;0;)))
66 (alias outer 1 $A (component $A (;1;)))
67 (instance $b (;1;) (instantiate $B
68 (with "wasi" (instance $wasi))
69 (with "a1-x" (component $A))
70 )
71 )
72 (alias export $b "b" (func (;0;)))
73 (export (;1;) "b" (func 0))
74 )
75 (component $C (;3;)
76 (type $Wasi (;0;)
77 (instance)
78 )
79 (import "wasi" (instance $wasi (;0;) (type $Wasi)))
80 (type (;1;)
81 (component
82 (alias outer $C $Wasi (type (;0;)))
83 (import "wasi" (instance (;0;) (type 0)))
84 (type (;1;) (func))
85 (export (;0;) "b" (func (type 1)))
86 )
87 )
88 (import "b1-x" (component $B (;0;) (type 1)))
89 (instance $b (;1;) (instantiate $B
90 (with "wasi" (instance $wasi))
91 )
92 )
93 (alias export $b "b" (func (;0;)))
94 (export (;1;) "c" (func 0))
95 )
96 (component $C_wrap (;4;)
97 (type $Wasi (;0;)
98 (instance)
99 )
100 (import "wasi" (instance $wasi (;0;) (type $Wasi)))
101 (alias outer 1 $C (component $C (;0;)))
102 (alias outer 1 $B_wrap (component $B_wrap (;1;)))
103 (instance $c (;1;) (instantiate $C
104 (with "wasi" (instance $wasi))
105 (with "b1-x" (component $B_wrap))
106 )
107 )
108 (alias export $c "c" (func (;0;)))
109 (export (;1;) "c" (func 0))
110 )
111 (component $D (;5;)
112 (type $Wasi (;0;)
113 (instance)
114 )
115 (import "wasi" (instance $wasi (;0;) (type $Wasi)))
116 (type (;1;)
117 (component
118 (alias outer $D $Wasi (type (;0;)))
119 (import "wasi" (instance (;0;) (type 0)))
120 (type (;1;) (func))
121 (export (;0;) "c" (func (type 1)))
122 )
123 )
124 (import "c1-x" (component $C (;0;) (type 1)))
125 (instance $c (;1;) (instantiate $C
126 (with "wasi" (instance $wasi))
127 )
128 )
129 (alias export $c "c" (func (;0;)))
130 (export (;1;) "d" (func 0))
131 )
132 (instance $d (;1;) (instantiate $D
133 (with "wasi" (instance $wasi))
134 (with "c1-x" (component $C_wrap))
135 )
136 )
137 (alias export $d "d" (func (;0;)))
138 (export (;1;) "d" (func 0))
139 )