Debian Codegraph @

crates/wit-component/tests/components/import-conflict/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (func (param "x" u64) (param "y" string)))
5 (export (;0;) "a" (func (type 0)))
6 )
7 )
8 (import "foo:foo/bar" (instance (;0;) (type 0)))
9 (type (;1;)
10 (instance
11 (type (;0;) (list u8))
12 (type (;1;) (func (param "x" 0) (result 0)))
13 (export (;0;) "baz" (func (type 1)))
14 )
15 )
16 (import "foo:foo/baz" (instance (;1;) (type 1)))
17 (type (;2;)
18 (instance
19 (type (;0;) (func))
20 (export (;0;) "a" (func (type 0)))
21 )
22 )
23 (import "foo:foo/foo" (instance (;2;) (type 2)))
24 (core module (;0;)
25 (type (;0;) (func))
26 (type (;1;) (func (param i64 i32 i32)))
27 (type (;2;) (func (param i32 i32 i32)))
28 (type (;3;) (func (param i32 i32 i32 i32) (result i32)))
29 (import "foo:foo/foo" "a" (func (;0;) (type 0)))
30 (import "foo:foo/bar" "a" (func (;1;) (type 1)))
31 (import "foo:foo/baz" "baz" (func (;2;) (type 2)))
32 (memory (;0;) 1)
33 (export "memory" (memory 0))
34 (export "cabi_realloc" (func 3))
35 (func (;3;) (type 3) (param i32 i32 i32 i32) (result i32)
36 unreachable
37 )
38 (@producers
39 (processed-by "wit-component" "$CARGO_PKG_VERSION")
40 (processed-by "my-fake-bindgen" "123.45")
41 )
42 )
43 (core module (;1;)
44 (type (;0;) (func (param i64 i32 i32)))
45 (type (;1;) (func (param i32 i32 i32)))
46 (table (;0;) 2 2 funcref)
47 (export "0" (func $indirect-foo:foo/bar-a))
48 (export "1" (func $indirect-foo:foo/baz-baz))
49 (export "$imports" (table 0))
50 (func $indirect-foo:foo/bar-a (;0;) (type 0) (param i64 i32 i32)
51 local.get 0
52 local.get 1
53 local.get 2
54 i32.const 0
55 call_indirect (type 0)
56 )
57 (func $indirect-foo:foo/baz-baz (;1;) (type 1) (param i32 i32 i32)
58 local.get 0
59 local.get 1
60 local.get 2
61 i32.const 1
62 call_indirect (type 1)
63 )
64 (@producers
65 (processed-by "wit-component" "$CARGO_PKG_VERSION")
66 )
67 )
68 (core module (;2;)
69 (type (;0;) (func (param i64 i32 i32)))
70 (type (;1;) (func (param i32 i32 i32)))
71 (import "" "0" (func (;0;) (type 0)))
72 (import "" "1" (func (;1;) (type 1)))
73 (import "" "$imports" (table (;0;) 2 2 funcref))
74 (elem (;0;) (i32.const 0) func 0 1)
75 (@producers
76 (processed-by "wit-component" "$CARGO_PKG_VERSION")
77 )
78 )
79 (core instance (;0;) (instantiate 1))
80 (alias export 2 "a" (func (;0;)))
81 (core func (;0;) (canon lower (func 0)))
82 (core instance (;1;)
83 (export "a" (func 0))
84 )
85 (alias core export 0 "0" (core func (;1;)))
86 (core instance (;2;)
87 (export "a" (func 1))
88 )
89 (alias core export 0 "1" (core func (;2;)))
90 (core instance (;3;)
91 (export "baz" (func 2))
92 )
93 (core instance (;4;) (instantiate 0
94 (with "foo:foo/foo" (instance 1))
95 (with "foo:foo/bar" (instance 2))
96 (with "foo:foo/baz" (instance 3))
97 )
98 )
99 (alias core export 4 "memory" (core memory (;0;)))
100 (alias core export 0 "$imports" (core table (;0;)))
101 (alias export 0 "a" (func (;1;)))
102 (alias core export 4 "cabi_realloc" (core func (;3;)))
103 (core func (;4;) (canon lower (func 1) (memory 0) string-encoding=utf8))
104 (alias export 1 "baz" (func (;2;)))
105 (core func (;5;) (canon lower (func 2) (memory 0) (realloc 3)))
106 (core instance (;5;)
107 (export "$imports" (table 0))
108 (export "0" (func 4))
109 (export "1" (func 5))
110 )
111 (core instance (;6;) (instantiate 2
112 (with "" (instance 5))
113 )
114 )
115 (@producers
116 (processed-by "wit-component" "$CARGO_PKG_VERSION")
117 )
118 )