Debian Codegraph @

crates/wit-component/tests/components/adapt-multiple/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (func))
5 (export (;0;) "foo" (func (type 0)))
6 )
7 )
8 (import "other1" (instance (;0;) (type 0)))
9 (type (;1;)
10 (instance
11 (type (;0;) (func))
12 (export (;0;) "bar" (func (type 0)))
13 )
14 )
15 (import "other2" (instance (;1;) (type 1)))
16 (core module (;0;)
17 (type (;0;) (func))
18 (import "foo" "foo" (func (;0;) (type 0)))
19 (import "foo" "bar" (func (;1;) (type 0)))
20 (@producers
21 (processed-by "wit-component" "$CARGO_PKG_VERSION")
22 (processed-by "my-fake-bindgen" "123.45")
23 )
24 )
25 (core module (;1;)
26 (type (;0;) (func))
27 (import "other1" "foo" (func $foo (;0;) (type 0)))
28 (import "other2" "bar" (func $bar (;1;) (type 0)))
29 (export "foo" (func 2))
30 (export "bar" (func 3))
31 (func (;2;) (type 0)
32 call $foo
33 )
34 (func (;3;) (type 0)
35 call $bar
36 )
37 )
38 (core module (;2;)
39 (type (;0;) (func))
40 (table (;0;) 2 2 funcref)
41 (export "0" (func $adapt-foo-foo))
42 (export "1" (func $adapt-foo-bar))
43 (export "$imports" (table 0))
44 (func $adapt-foo-foo (;0;) (type 0)
45 i32.const 0
46 call_indirect (type 0)
47 )
48 (func $adapt-foo-bar (;1;) (type 0)
49 i32.const 1
50 call_indirect (type 0)
51 )
52 (@producers
53 (processed-by "wit-component" "$CARGO_PKG_VERSION")
54 )
55 )
56 (core module (;3;)
57 (type (;0;) (func))
58 (import "" "0" (func (;0;) (type 0)))
59 (import "" "1" (func (;1;) (type 0)))
60 (import "" "$imports" (table (;0;) 2 2 funcref))
61 (elem (;0;) (i32.const 0) func 0 1)
62 (@producers
63 (processed-by "wit-component" "$CARGO_PKG_VERSION")
64 )
65 )
66 (core instance (;0;) (instantiate 2))
67 (alias core export 0 "0" (core func (;0;)))
68 (alias core export 0 "1" (core func (;1;)))
69 (core instance (;1;)
70 (export "foo" (func 0))
71 (export "bar" (func 1))
72 )
73 (core instance (;2;) (instantiate 0
74 (with "foo" (instance 1))
75 )
76 )
77 (alias export 0 "foo" (func (;0;)))
78 (core func (;2;) (canon lower (func 0)))
79 (core instance (;3;)
80 (export "foo" (func 2))
81 )
82 (alias export 1 "bar" (func (;1;)))
83 (core func (;3;) (canon lower (func 1)))
84 (core instance (;4;)
85 (export "bar" (func 3))
86 )
87 (core instance (;5;) (instantiate 1
88 (with "other1" (instance 3))
89 (with "other2" (instance 4))
90 )
91 )
92 (alias core export 0 "$imports" (core table (;0;)))
93 (alias core export 5 "foo" (core func (;4;)))
94 (alias core export 5 "bar" (core func (;5;)))
95 (core instance (;6;)
96 (export "$imports" (table 0))
97 (export "0" (func 4))
98 (export "1" (func 5))
99 )
100 (core instance (;7;) (instantiate 3
101 (with "" (instance 6))
102 )
103 )
104 (@producers
105 (processed-by "wit-component" "$CARGO_PKG_VERSION")
106 )
107 )