Debian Codegraph @

crates/wit-component/tests/components/simple/component.wat

raw
1 (component
2 (core module (;0;)
3 (type (;0;) (func (param i32 i32 i32 i32) (result i32)))
4 (type (;1;) (func))
5 (type (;2;) (func (result i32)))
6 (type (;3;) (func (param i32)))
7 (type (;4;) (func (param i32 i32) (result i32)))
8 (type (;5;) (func (param i32 i32)))
9 (memory $memory (;0;) 1)
10 (export "memory" (memory $memory))
11 (export "cabi_realloc" (func $cabi_realloc))
12 (export "a" (func $a))
13 (export "b" (func $b))
14 (export "cabi_post_b" (func 3))
15 (export "c" (func $c))
16 (export "cabi_post_c" (func 5))
17 (export "d" (func $d))
18 (func $cabi_realloc (;0;) (type 0) (param i32 i32 i32 i32) (result i32)
19 unreachable
20 )
21 (func $a (;1;) (type 1)
22 unreachable
23 )
24 (func $b (;2;) (type 2) (result i32)
25 unreachable
26 )
27 (func (;3;) (type 3) (param i32)
28 unreachable
29 )
30 (func $c (;4;) (type 4) (param i32 i32) (result i32)
31 unreachable
32 )
33 (func (;5;) (type 3) (param i32)
34 unreachable
35 )
36 (func $d (;6;) (type 5) (param i32 i32)
37 unreachable
38 )
39 (@producers
40 (processed-by "wit-component" "$CARGO_PKG_VERSION")
41 (processed-by "my-fake-bindgen" "123.45")
42 )
43 )
44 (core instance (;0;) (instantiate 0))
45 (alias core export 0 "memory" (core memory (;0;)))
46 (type (;0;) (func))
47 (alias core export 0 "a" (core func (;0;)))
48 (alias core export 0 "cabi_realloc" (core func (;1;)))
49 (func (;0;) (type 0) (canon lift (core func 0)))
50 (export (;1;) "a" (func 0))
51 (type (;1;) (func (result string)))
52 (alias core export 0 "b" (core func (;2;)))
53 (alias core export 0 "cabi_post_b" (core func (;3;)))
54 (func (;2;) (type 1) (canon lift (core func 2) (memory 0) string-encoding=utf8 (post-return 3)))
55 (export (;3;) "b" (func 2))
56 (type (;2;) (func (param "x" string) (result string)))
57 (alias core export 0 "c" (core func (;4;)))
58 (alias core export 0 "cabi_post_c" (core func (;5;)))
59 (func (;4;) (type 2) (canon lift (core func 4) (memory 0) (realloc 1) string-encoding=utf8 (post-return 5)))
60 (export (;5;) "c" (func 4))
61 (@producers
62 (processed-by "wit-component" "$CARGO_PKG_VERSION")
63 )
64 )