Debian Codegraph @

vendor/wit-component/tests/targets/success/test.wat

raw
1 (component
2 (core module (;0;)
3 (type (;0;) (func))
4 (type (;1;) (func (param i32 i32 i32 i32) (result i32)))
5 (func (;0;) (type 0)
6 unreachable
7 )
8 (func (;1;) (type 0)
9 unreachable
10 )
11 (func (;2;) (type 1) (param i32 i32 i32 i32) (result i32)
12 unreachable
13 )
14 (memory (;0;) 0)
15 (export "test:foo/bar#f" (func 0))
16 (export "test:foo/foo#f" (func 1))
17 (export "memory" (memory 0))
18 (export "cabi_realloc" (func 2))
19 (@producers
20 (processed-by "wit-component" "0.11.0")
21 )
22 )
23 (core instance (;0;) (instantiate 0))
24 (alias core export 0 "memory" (core memory (;0;)))
25 (alias core export 0 "cabi_realloc" (core func (;0;)))
26 (type (;0;) (func))
27 (alias core export 0 "test:foo/bar#f" (core func (;1;)))
28 (func (;0;) (type 0) (canon lift (core func 1)))
29 (component (;0;)
30 (type (;0;) (func))
31 (import "import-func-f" (func (;0;) (type 0)))
32 (type (;1;) (func))
33 (export (;1;) "f" (func 0) (func (type 1)))
34 )
35 (instance (;0;) (instantiate 0
36 (with "import-func-f" (func 0))
37 )
38 )
39 (export (;1;) (interface "test:foo/bar") (instance 0))
40 (alias core export 0 "test:foo/foo#f" (core func (;2;)))
41 (func (;1;) (type 0) (canon lift (core func 2)))
42 (component (;1;)
43 (type (;0;) (func))
44 (import "import-func-f" (func (;0;) (type 0)))
45 (type (;1;) (func))
46 (export (;1;) "f" (func 0) (func (type 1)))
47 )
48 (instance (;2;) (instantiate 1
49 (with "import-func-f" (func 1))
50 )
51 )
52 (@producers
53 (processed-by "wit-component" "0.11.0")
54 )
55 (export (;3;) (interface "test:foo/foo") (instance 2))
56 )