Debian Codegraph @

tests/snapshots/cli/component-model/adapt.wast/0.print

raw
1 (component
2 (type (;0;) (func (param "msg" string)))
3 (import "log" (func $log (;0;) (type 0)))
4 (core module $libc (;0;)
5 (type (;0;) (func (param i32 i32 i32 i32) (result i32)))
6 (memory (;0;) 1)
7 (export "memory" (memory 0))
8 (export "canonical_abi_realloc" (func 0))
9 (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32)
10 unreachable
11 )
12 )
13 (core module $my_module (;1;)
14 (type (;0;) (func (param i32 i32)))
15 (import "env" "log-utf8" (func $log_utf8 (;0;) (type 0)))
16 (import "env" "log-utf16" (func $log_utf16 (;1;) (type 0)))
17 (import "env" "log-compact-utf16" (func $log_compact_utf16 (;2;) (type 0)))
18 (export "log-utf8" (func 3))
19 (export "log-utf16" (func 4))
20 (export "log-compact-utf16" (func 5))
21 (func (;3;) (type 0) (param i32 i32)
22 local.get 0
23 local.get 1
24 call $log_utf8
25 )
26 (func (;4;) (type 0) (param i32 i32)
27 local.get 0
28 local.get 1
29 call $log_utf16
30 )
31 (func (;5;) (type 0) (param i32 i32)
32 local.get 0
33 local.get 1
34 call $log_compact_utf16
35 )
36 )
37 (core instance $libc (;0;) (instantiate $libc))
38 (alias core export $libc "canonical_abi_realloc" (core func $realloc (;0;)))
39 (alias core export $libc "memory" (core memory $memory (;0;)))
40 (core func $log_lower_utf8 (;1;) (canon lower (func $log) string-encoding=utf8 (memory $memory) (realloc $realloc)))
41 (core func $log_lower_utf16 (;2;) (canon lower (func $log) string-encoding=utf16 (memory $memory) (realloc $realloc)))
42 (core func $log_lower_compact_utf16 (;3;) (canon lower (func $log) string-encoding=latin1+utf16 (memory $memory) (realloc $realloc)))
43 (core instance (;1;)
44 (export "log-utf8" (func $log_lower_utf8))
45 (export "log-utf16" (func $log_lower_utf16))
46 (export "log-compact-utf16" (func $log_lower_compact_utf16))
47 )
48 (core instance $my_instance (;2;) (instantiate $my_module
49 (with "libc" (instance $libc))
50 (with "env" (instance 1))
51 )
52 )
53 (type (;1;) (func (param "msg" string)))
54 (alias core export $my_instance "log-utf8" (core func (;4;)))
55 (func (;1;) (type 1) (canon lift (core func 4) string-encoding=utf8 (memory $memory) (realloc $realloc)))
56 (type (;2;) (func (param "msg" string)))
57 (alias core export $my_instance "log-utf16" (core func (;5;)))
58 (func (;2;) (type 2) (canon lift (core func 5) string-encoding=utf16 (memory $memory) (realloc $realloc)))
59 (type (;3;) (func (param "msg" string)))
60 (alias core export $my_instance "log-compact-utf16" (core func (;6;)))
61 (func (;3;) (type 3) (canon lift (core func 6) string-encoding=latin1+utf16 (memory $memory) (realloc $realloc)))
62 (export (;4;) "log1" (func 1))
63 (export (;5;) "log2" (func 2))
64 (export (;6;) "log3" (func 3))
65 )