Debian Codegraph @

crates/wit-component/tests/components/no-realloc-required/component.wat

raw
1 (component
2 (type (;0;)
3 (instance
4 (type (;0;) (func (param "s" string)))
5 (export (;0;) "log" (func (type 0)))
6 )
7 )
8 (import "foo" (instance (;0;) (type 0)))
9 (core module (;0;)
10 (type (;0;) (func (param i32 i32)))
11 (import "foo" "log" (func (;0;) (type 0)))
12 (memory (;0;) 1)
13 (export "memory" (memory 0))
14 (@producers
15 (processed-by "wit-component" "$CARGO_PKG_VERSION")
16 (processed-by "my-fake-bindgen" "123.45")
17 )
18 )
19 (core module (;1;)
20 (type (;0;) (func (param i32 i32)))
21 (table (;0;) 1 1 funcref)
22 (export "0" (func $indirect-foo-log))
23 (export "$imports" (table 0))
24 (func $indirect-foo-log (;0;) (type 0) (param i32 i32)
25 local.get 0
26 local.get 1
27 i32.const 0
28 call_indirect (type 0)
29 )
30 (@producers
31 (processed-by "wit-component" "$CARGO_PKG_VERSION")
32 )
33 )
34 (core module (;2;)
35 (type (;0;) (func (param i32 i32)))
36 (import "" "0" (func (;0;) (type 0)))
37 (import "" "$imports" (table (;0;) 1 1 funcref))
38 (elem (;0;) (i32.const 0) func 0)
39 (@producers
40 (processed-by "wit-component" "$CARGO_PKG_VERSION")
41 )
42 )
43 (core instance (;0;) (instantiate 1))
44 (alias core export 0 "0" (core func (;0;)))
45 (core instance (;1;)
46 (export "log" (func 0))
47 )
48 (core instance (;2;) (instantiate 0
49 (with "foo" (instance 1))
50 )
51 )
52 (alias core export 2 "memory" (core memory (;0;)))
53 (alias core export 0 "$imports" (core table (;0;)))
54 (alias export 0 "log" (func (;0;)))
55 (core func (;1;) (canon lower (func 0) (memory 0) string-encoding=utf8))
56 (core instance (;3;)
57 (export "$imports" (table 0))
58 (export "0" (func 1))
59 )
60 (core instance (;4;) (instantiate 2
61 (with "" (instance 3))
62 )
63 )
64 (@producers
65 (processed-by "wit-component" "$CARGO_PKG_VERSION")
66 )
67 )