Debian Codegraph @

crates/wit-component/tests/components/multi-package/baz/qux/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) s8)
5 (export (;1;) "x" (type (eq 0)))
6 (type (;2;) (list string))
7 (type (;3;) (func (param "x" 2)))
8 (export (;0;) "qux1" (func (type 3)))
9 (type (;4;) (func))
10 (export (;1;) "qux2" (func (type 4)))
11 (type (;5;) (func (param "x" 1)))
12 (export (;2;) "qux3" (func (type 5)))
13 )
14 )
15 (import "qux" (instance (;0;) (type 0)))
16 (core module (;0;)
17 (type (;0;) (func (param i32 i32)))
18 (type (;1;) (func))
19 (type (;2;) (func (param i32)))
20 (type (;3;) (func (param i32 i32 i32 i32) (result i32)))
21 (import "qux" "qux1" (func (;0;) (type 0)))
22 (import "qux" "qux2" (func (;1;) (type 1)))
23 (import "qux" "qux3" (func (;2;) (type 2)))
24 (func (;3;) (type 3) (param i32 i32 i32 i32) (result i32)
25 unreachable
26 )
27 (memory (;0;) 1)
28 (export "memory" (memory 0))
29 (export "cabi_realloc" (func 3))
30 (@producers
31 (processed-by "wit-component" "$CARGO_PKG_VERSION")
32 (processed-by "my-fake-bindgen" "123.45")
33 )
34 )
35 (core module (;1;)
36 (type (;0;) (func (param i32 i32)))
37 (func $indirect-qux-qux1 (;0;) (type 0) (param i32 i32)
38 local.get 0
39 local.get 1
40 i32.const 0
41 call_indirect (type 0)
42 )
43 (table (;0;) 1 1 funcref)
44 (export "0" (func $indirect-qux-qux1))
45 (export "$imports" (table 0))
46 (@producers
47 (processed-by "wit-component" "$CARGO_PKG_VERSION")
48 )
49 )
50 (core module (;2;)
51 (type (;0;) (func (param i32 i32)))
52 (import "" "0" (func (;0;) (type 0)))
53 (import "" "$imports" (table (;0;) 1 1 funcref))
54 (elem (;0;) (i32.const 0) func 0)
55 (@producers
56 (processed-by "wit-component" "$CARGO_PKG_VERSION")
57 )
58 )
59 (core instance (;0;) (instantiate 1))
60 (alias core export 0 "0" (core func (;0;)))
61 (alias export 0 "qux2" (func (;0;)))
62 (core func (;1;) (canon lower (func 0)))
63 (alias export 0 "qux3" (func (;1;)))
64 (core func (;2;) (canon lower (func 1)))
65 (core instance (;1;)
66 (export "qux1" (func 0))
67 (export "qux2" (func 1))
68 (export "qux3" (func 2))
69 )
70 (core instance (;2;) (instantiate 0
71 (with "qux" (instance 1))
72 )
73 )
74 (alias core export 2 "memory" (core memory (;0;)))
75 (alias core export 2 "cabi_realloc" (core func (;3;)))
76 (alias core export 0 "$imports" (core table (;0;)))
77 (alias export 0 "qux1" (func (;2;)))
78 (core func (;4;) (canon lower (func 2) (memory 0) string-encoding=utf8))
79 (core instance (;3;)
80 (export "$imports" (table 0))
81 (export "0" (func 4))
82 )
83 (core instance (;4;) (instantiate 2
84 (with "" (instance 3))
85 )
86 )
87 (@producers
88 (processed-by "wit-component" "$CARGO_PKG_VERSION")
89 )
90 )