(component (type (;0;) (func (param "msg" string))) (import "log" (func $log (;0;) (type 0))) (core module $libc (;0;) (type (;0;) (func (param i32 i32 i32 i32) (result i32))) (memory (;0;) 1) (export "memory" (memory 0)) (export "canonical_abi_realloc" (func 0)) (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) ) (core module $my_module (;1;) (type (;0;) (func (param i32 i32))) (import "env" "log-utf8" (func $log_utf8 (;0;) (type 0))) (import "env" "log-utf16" (func $log_utf16 (;1;) (type 0))) (import "env" "log-compact-utf16" (func $log_compact_utf16 (;2;) (type 0))) (export "log-utf8" (func 3)) (export "log-utf16" (func 4)) (export "log-compact-utf16" (func 5)) (func (;3;) (type 0) (param i32 i32) local.get 0 local.get 1 call $log_utf8 ) (func (;4;) (type 0) (param i32 i32) local.get 0 local.get 1 call $log_utf16 ) (func (;5;) (type 0) (param i32 i32) local.get 0 local.get 1 call $log_compact_utf16 ) ) (core instance $libc (;0;) (instantiate $libc)) (alias core export $libc "canonical_abi_realloc" (core func $realloc (;0;))) (alias core export $libc "memory" (core memory $memory (;0;))) (core func $log_lower_utf8 (;1;) (canon lower (func $log) string-encoding=utf8 (memory $memory) (realloc $realloc))) (core func $log_lower_utf16 (;2;) (canon lower (func $log) string-encoding=utf16 (memory $memory) (realloc $realloc))) (core func $log_lower_compact_utf16 (;3;) (canon lower (func $log) string-encoding=latin1+utf16 (memory $memory) (realloc $realloc))) (core instance (;1;) (export "log-utf8" (func $log_lower_utf8)) (export "log-utf16" (func $log_lower_utf16)) (export "log-compact-utf16" (func $log_lower_compact_utf16)) ) (core instance $my_instance (;2;) (instantiate $my_module (with "libc" (instance $libc)) (with "env" (instance 1)) ) ) (type (;1;) (func (param "msg" string))) (alias core export $my_instance "log-utf8" (core func (;4;))) (func (;1;) (type 1) (canon lift (core func 4) string-encoding=utf8 (memory $memory) (realloc $realloc))) (type (;2;) (func (param "msg" string))) (alias core export $my_instance "log-utf16" (core func (;5;))) (func (;2;) (type 2) (canon lift (core func 5) string-encoding=utf16 (memory $memory) (realloc $realloc))) (type (;3;) (func (param "msg" string))) (alias core export $my_instance "log-compact-utf16" (core func (;6;))) (func (;3;) (type 3) (canon lift (core func 6) string-encoding=latin1+utf16 (memory $memory) (realloc $realloc))) (export (;4;) "log1" (func 1)) (export (;5;) "log2" (func 2)) (export (;6;) "log3" (func 3)) )