Debian Codegraph @

crates/wit-component/tests/components/link-duplicate-symbols/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (func (param "v" s32) (result s32)))
5 (export (;0;) "foo" (func (type 0)))
6 )
7 )
8 (import "test:test/test" (instance (;0;) (type 0)))
9 (core module (;0;)
10 (type (;0;) (func (param i32) (result i32)))
11 (table (;0;) 2 funcref)
12 (memory (;0;) 17)
13 (global (;0;) (mut i32) i32.const 1048576)
14 (global (;1;) i32 i32.const 1048592)
15 (global (;2;) i32 i32.const 1)
16 (global (;3;) i32 i32.const 1048592)
17 (global (;4;) i32 i32.const 1)
18 (global (;5;) (mut i32) i32.const 1048592)
19 (global (;6;) (mut i32) i32.const 1114112)
20 (export "__stack_pointer" (global 0))
21 (export "bar:memory_base" (global 1))
22 (export "bar:table_base" (global 2))
23 (export "foo:memory_base" (global 3))
24 (export "foo:table_base" (global 4))
25 (export "__heap_base" (global 5))
26 (export "__heap_end" (global 6))
27 (export "foo" (func 0))
28 (export "__indirect_function_table" (table 0))
29 (export "memory" (memory 0))
30 (func (;0;) (type 0) (param i32) (result i32)
31 local.get 0
32 i32.const 1
33 call_indirect (type 0)
34 )
35 (@producers
36 (processed-by "wit-component" "$CARGO_PKG_VERSION")
37 )
38 )
39 (core module (;1;)
40 (@dylink.0
41 (mem-info (memory 0 4))
42 (needed "foo")
43 )
44 (type (;0;) (func (param i32) (result i32)))
45 (import "env" "foo" (func $import_foo (;0;) (type 0)))
46 (export "bar" (func $bar))
47 (export "foo" (func $bar))
48 (func $bar (;1;) (type 0) (param i32) (result i32)
49 unreachable
50 )
51 )
52 (core module (;2;)
53 (@dylink.0
54 (mem-info (memory 0 4))
55 (needed "bar")
56 )
57 (type (;0;) (func (param i32) (result i32)))
58 (import "test:test/test" "foo" (func $import_foo (;0;) (type 0)))
59 (import "env" "foo" (func $import_foo2 (;1;) (type 0)))
60 (import "env" "bar" (func $import_bar (;2;) (type 0)))
61 (export "test:test/test#foo" (func $foo))
62 (export "foo" (func $foo))
63 (func $foo (;3;) (type 0) (param i32) (result i32)
64 unreachable
65 )
66 )
67 (core module (;3;)
68 (type (;0;) (func))
69 (type (;1;) (func (param i32)))
70 (type (;2;) (func (param i32) (result i32)))
71 (import "env" "memory" (memory (;0;) 0))
72 (import "env" "__indirect_function_table" (table (;0;) 0 funcref))
73 (import "bar" "foo" (func (;0;) (type 2)))
74 (start 1)
75 (elem (;0;) (i32.const 1) func)
76 (elem (;1;) (i32.const 1) func 0)
77 (func (;1;) (type 0))
78 (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
79 (@producers
80 (processed-by "wit-component" "$CARGO_PKG_VERSION")
81 )
82 )
83 (core instance (;0;) (instantiate 0))
84 (alias core export 0 "memory" (core memory (;0;)))
85 (alias core export 0 "foo" (core func (;0;)))
86 (core instance (;1;)
87 (export "foo" (func 0))
88 )
89 (core instance (;2;) (instantiate 1
90 (with "env" (instance 1))
91 )
92 )
93 (alias export 0 "foo" (func (;0;)))
94 (core func (;1;) (canon lower (func 0)))
95 (core instance (;3;)
96 (export "foo" (func 1))
97 )
98 (alias core export 2 "foo" (core func (;2;)))
99 (alias core export 2 "bar" (core func (;3;)))
100 (core instance (;4;)
101 (export "foo" (func 2))
102 (export "bar" (func 3))
103 )
104 (core instance (;5;) (instantiate 2
105 (with "test:test/test" (instance 3))
106 (with "env" (instance 4))
107 )
108 )
109 (core instance (;6;) (instantiate 3
110 (with "env" (instance 0))
111 (with "bar" (instance 2))
112 )
113 )
114 (type (;1;) (func (param "v" s32) (result s32)))
115 (alias core export 5 "test:test/test#foo" (core func (;4;)))
116 (func (;1;) (type 1) (canon lift (core func 4)))
117 (component (;0;)
118 (type (;0;) (func (param "v" s32) (result s32)))
119 (import "import-func-foo" (func (;0;) (type 0)))
120 (type (;1;) (func (param "v" s32) (result s32)))
121 (export (;1;) "foo" (func 0) (func (type 1)))
122 )
123 (instance (;1;) (instantiate 0
124 (with "import-func-foo" (func 1))
125 )
126 )
127 (export (;2;) "test:test/test" (instance 1))
128 (@producers
129 (processed-by "wit-component" "$CARGO_PKG_VERSION")
130 )
131 )