Debian Codegraph @

crates/wit-component/tests/components/link-dl-openable/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 (table (;0;) 4 funcref)
11 (memory (;0;) 17)
12 (global (;0;) (mut i32) i32.const 1048576)
13 (global (;1;) i32 i32.const 1048688)
14 (global (;2;) i32 i32.const 4)
15 (global (;3;) (mut i32) i32.const 1048688)
16 (global (;4;) (mut i32) i32.const 1114112)
17 (export "__stack_pointer" (global 0))
18 (export "foo:memory_base" (global 1))
19 (export "foo:table_base" (global 2))
20 (export "__heap_base" (global 3))
21 (export "__heap_end" (global 4))
22 (export "__indirect_function_table" (table 0))
23 (export "memory" (memory 0))
24 (@producers
25 (processed-by "wit-component" "$CARGO_PKG_VERSION")
26 )
27 )
28 (core module (;1;)
29 (@dylink.0
30 (mem-info (memory 0 4))
31 )
32 (type (;0;) (func (param i32) (result i32)))
33 (import "test:test/test" "foo" (func $import_foo (;0;) (type 0)))
34 (global $what (;0;) i32 i32.const 42)
35 (export "test:test/test#foo" (func $foo))
36 (export "bar" (func $foo))
37 (export "baz" (func $foo))
38 (export "what" (global $what))
39 (func $foo (;1;) (type 0) (param i32) (result i32)
40 unreachable
41 )
42 )
43 (core module (;2;)
44 (type (;0;) (func))
45 (type (;1;) (func (param i32)))
46 (type (;2;) (func (param i32) (result i32)))
47 (type (;3;) (func (param i32) (result i32)))
48 (type (;4;) (func (param i32) (result i32)))
49 (import "env" "memory" (memory (;0;) 0))
50 (import "env" "__indirect_function_table" (table (;0;) 0 funcref))
51 (import "env" "foo:memory_base" (global (;0;) i32))
52 (import "foo" "what" (global (;1;) i32))
53 (import "foo" "bar" (func (;0;) (type 2)))
54 (import "foo" "baz" (func (;1;) (type 3)))
55 (import "foo" "test:test/test#foo" (func (;2;) (type 4)))
56 (start 3)
57 (elem (;0;) (i32.const 1) func 0 1 2)
58 (elem (;1;) (i32.const 4) func)
59 (func (;3;) (type 0)
60 i32.const 1048656
61 global.get 0
62 global.get 1
63 i32.add
64 i32.store
65 )
66 (data (;0;) (i32.const 1048576) "foo\00bar\00baz\00test:test/test#foo\00\00what\03\00\00\00\04\00\10\00\01\00\00\00\03\00\00\00\08\00\10\00\02\00\00\00\12\00\00\00\0c\00\10\00\03\00\00\00\04\00\00\00 \00\10\00\00\00\00\00\03\00\00\00\00\00\10\00\04\00\00\00$\00\10\00\01\00\00\00T\00\10\00")
67 (@producers
68 (processed-by "wit-component" "$CARGO_PKG_VERSION")
69 )
70 )
71 (core instance (;0;) (instantiate 0))
72 (alias core export 0 "memory" (core memory (;0;)))
73 (alias export 0 "foo" (func (;0;)))
74 (core func (;0;) (canon lower (func 0)))
75 (core instance (;1;)
76 (export "foo" (func 0))
77 )
78 (core instance (;2;) (instantiate 1
79 (with "test:test/test" (instance 1))
80 )
81 )
82 (core instance (;3;) (instantiate 2
83 (with "env" (instance 0))
84 (with "foo" (instance 2))
85 )
86 )
87 (type (;1;) (func (param "v" s32) (result s32)))
88 (alias core export 2 "test:test/test#foo" (core func (;1;)))
89 (func (;1;) (type 1) (canon lift (core func 1)))
90 (component (;0;)
91 (type (;0;) (func (param "v" s32) (result s32)))
92 (import "import-func-foo" (func (;0;) (type 0)))
93 (type (;1;) (func (param "v" s32) (result s32)))
94 (export (;1;) "foo" (func 0) (func (type 1)))
95 )
96 (instance (;1;) (instantiate 0
97 (with "import-func-foo" (func 1))
98 )
99 )
100 (export (;2;) "test:test/test" (instance 1))
101 (@producers
102 (processed-by "wit-component" "$CARGO_PKG_VERSION")
103 )
104 )