Debian Codegraph @

crates/wit-component/tests/components/link-circular/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 (func $bar (;1;) (type 0) (param i32) (result i32)
48 unreachable
49 )
50 )
51 (core module (;2;)
52 (@dylink.0
53 (mem-info (memory 0 4))
54 (needed "bar")
55 )
56 (type (;0;) (func (param i32) (result i32)))
57 (import "test:test/test" "foo" (func $import_foo (;0;) (type 0)))
58 (import "env" "foo" (func $import_foo2 (;1;) (type 0)))
59 (import "env" "bar" (func $import_bar (;2;) (type 0)))
60 (export "test:test/test#foo" (func $foo))
61 (export "foo" (func $foo))
62 (func $foo (;3;) (type 0) (param i32) (result i32)
63 unreachable
64 )
65 )
66 (core module (;3;)
67 (type (;0;) (func))
68 (type (;1;) (func (param i32)))
69 (type (;2;) (func (param i32) (result i32)))
70 (import "env" "memory" (memory (;0;) 0))
71 (import "env" "__indirect_function_table" (table (;0;) 0 funcref))
72 (import "foo" "foo" (func (;0;) (type 2)))
73 (start 1)
74 (elem (;0;) (i32.const 1) func)
75 (elem (;1;) (i32.const 1) func 0)
76 (func (;1;) (type 0))
77 (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
78 (@producers
79 (processed-by "wit-component" "$CARGO_PKG_VERSION")
80 )
81 )
82 (core instance (;0;) (instantiate 0))
83 (alias core export 0 "memory" (core memory (;0;)))
84 (alias core export 0 "foo" (core func (;0;)))
85 (core instance (;1;)
86 (export "foo" (func 0))
87 )
88 (core instance (;2;) (instantiate 1
89 (with "env" (instance 1))
90 )
91 )
92 (alias export 0 "foo" (func (;0;)))
93 (core func (;1;) (canon lower (func 0)))
94 (core instance (;3;)
95 (export "foo" (func 1))
96 )
97 (alias core export 2 "bar" (core func (;2;)))
98 (core instance (;4;)
99 (export "foo" (func 0))
100 (export "bar" (func 2))
101 )
102 (core instance (;5;) (instantiate 2
103 (with "test:test/test" (instance 3))
104 (with "env" (instance 4))
105 )
106 )
107 (core instance (;6;) (instantiate 3
108 (with "env" (instance 0))
109 (with "foo" (instance 5))
110 )
111 )
112 (type (;1;) (func (param "v" s32) (result s32)))
113 (alias core export 5 "test:test/test#foo" (core func (;3;)))
114 (func (;1;) (type 1) (canon lift (core func 3)))
115 (component (;0;)
116 (type (;0;) (func (param "v" s32) (result s32)))
117 (import "import-func-foo" (func (;0;) (type 0)))
118 (type (;1;) (func (param "v" s32) (result s32)))
119 (export (;1;) "foo" (func 0) (func (type 1)))
120 )
121 (instance (;1;) (instantiate 0
122 (with "import-func-foo" (func 1))
123 )
124 )
125 (export (;2;) "test:test/test" (instance 1))
126 (@producers
127 (processed-by "wit-component" "$CARGO_PKG_VERSION")
128 )
129 )