Debian Codegraph @

crates/wasm-compose/tests/compositions/resort-imports/composed.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) u32)
5 (export (;1;) "t" (type (eq 0)))
6 )
7 )
8 (import "dep0" (instance (;0;) (type 0)))
9 (type (;1;)
10 (instance
11 (type (;0;) u32)
12 (export (;1;) "t" (type (eq 0)))
13 )
14 )
15 (import "dep1" (instance (;1;) (type 1)))
16 (alias export 0 "t" (type (;2;)))
17 (alias export 1 "t" (type (;3;)))
18 (type (;4;)
19 (instance
20 (alias outer 1 2 (type (;0;)))
21 (type (;1;) (func (result 0)))
22 (export (;0;) "f2" (func (type 1)))
23 (alias outer 1 3 (type (;2;)))
24 (type (;3;) (func (result 2)))
25 (export (;1;) "f1" (func (type 3)))
26 )
27 )
28 (import "dep2" (instance (;2;) (type 4)))
29 (component (;0;)
30 (type (;0;)
31 (instance)
32 )
33 (import "b" (instance (;0;) (type 0)))
34 (type (;1;)
35 (instance)
36 )
37 (import "a" (instance (;1;) (type 1)))
38 )
39 (component (;1;)
40 (type (;0;)
41 (instance
42 (type (;0;) u32)
43 (export (;1;) "t" (type (eq 0)))
44 )
45 )
46 (import "dep0" (instance $dep0 (;0;) (type 0)))
47 (alias export $dep0 "t" (type $t-dep0 (;1;)))
48 (type (;2;)
49 (instance
50 (alias outer 1 $t-dep0 (type (;0;)))
51 (type (;1;) (func (result 0)))
52 (export (;0;) "f2" (func (type 1)))
53 )
54 )
55 (import "dep2" (instance (;1;) (type 2)))
56 )
57 (component (;2;)
58 (type (;0;)
59 (instance
60 (type (;0;) u32)
61 (export (;1;) "t" (type (eq 0)))
62 )
63 )
64 (import "dep1" (instance $dep1 (;0;) (type 0)))
65 (alias export $dep1 "t" (type $t-dep1 (;1;)))
66 (type (;2;)
67 (instance
68 (alias outer 1 $t-dep1 (type (;0;)))
69 (type (;1;) (func (result 0)))
70 (export (;0;) "f1" (func (type 1)))
71 )
72 )
73 (import "dep2" (instance (;1;) (type 2)))
74 )
75 (instance (;3;) (instantiate 2
76 (with "dep1" (instance 1))
77 (with "dep2" (instance 2))
78 )
79 )
80 (instance (;4;) (instantiate 1
81 (with "dep0" (instance 0))
82 (with "dep2" (instance 2))
83 )
84 )
85 (instance (;5;) (instantiate 0
86 (with "b" (instance 4))
87 (with "a" (instance 3))
88 )
89 )
90 )