(component
(type (;0;)
(instance
(type (;0;) (func (result string)))
(export (;0;) "a" (func (type 0)))
)
)
(import "foo" (instance (;0;) (type 0)))
(core module (;0;)
(type (;0;) (func (param i32)))
(type (;1;) (func (param i32 i32 i32 i32) (result i32)))
(type (;2;) (func (param i32 i32) (result i32)))
(type (;3;) (func))
(type (;4;) (func (result i32)))
(import "foo" "a" (func (;0;) (type 0)))
(func (;1;) (type 1) (param i32 i32 i32 i32) (result i32)
unreachable
)
(func (;2;) (type 2) (param i32 i32) (result i32)
unreachable
)
(func (;3;) (type 0) (param i32)
unreachable
)
(func (;4;) (type 3)
unreachable
)
(func (;5;) (type 4) (result i32)
unreachable
)
(func (;6;) (type 0) (param i32)
unreachable
)
(memory (;0;) 1)
(export "memory" (memory 0))
(export "cabi_realloc" (func 1))
(export "a" (func 2))
(export "cabi_post_a" (func 3))
(export "bar#a" (func 4))
(export "bar#b" (func 5))
(export "cabi_post_bar#b" (func 6))
)
(core module (;1;)
(type (;0;) (func (param i32)))
(func $indirect-foo-a (;0;) (type 0) (param i32)
local.get 0
i32.const 0
call_indirect (type 0)
)
(table (;0;) 1 1 funcref)
(export "0" (func $indirect-foo-a))
(export "$imports" (table 0))
)
(core module (;2;)
(type (;0;) (func (param i32)))
(import "" "0" (func (;0;) (type 0)))
(import "" "$imports" (table (;0;) 1 1 funcref))
(elem (;0;) (i32.const 0) func 0)
)
(core instance (;0;) (instantiate 1))
(alias core export 0 "0" (core func (;0;)))
(core instance (;1;)
(export "a" (func 0))
)
(core instance (;2;) (instantiate 0
(with "foo" (instance 1))
)
)
(alias core export 2 "memory" (core memory (;0;)))
(alias core export 2 "cabi_realloc" (core func (;1;)))
(alias core export 0 "$imports" (core table (;0;)))
(alias export 0 "a" (func (;0;)))
(core func (;2;) (canon lower (func 0) (memory 0) (realloc 1) string-encoding=utf8))
(core instance (;3;)
(export "$imports" (table 0))
(export "0" (func 2))
)
(core instance (;4;) (instantiate 2
(with "" (instance 3))
)
)
(type (;1;) (func))
(alias core export 2 "bar#a" (core func (;3;)))
(func (;1;) (type 1) (canon lift (core func 3)))
(type (;2;) (func (result string)))
(alias core export 2 "bar#b" (core func (;4;)))
(alias core export 2 "cabi_post_bar#b" (core func (;5;)))
(func (;2;) (type 2) (canon lift (core func 4) (memory 0) string-encoding=utf8 (post-return 5)))
(instance (;1;)
(export "a" (func 1))
(export "b" (func 2))
)
(export (;2;) "bar" (instance 1))
(type (;3;) (tuple string u32 string))
(type (;4;) (func (param "x" string) (result 3)))
(alias core export 2 "a" (core func (;6;)))
(alias core export 2 "cabi_post_a" (core func (;7;)))
(func (;3;) (type 4) (canon lift (core func 6) (memory 0) (realloc 1) string-encoding=utf8 (post-return 7)))
(export (;4;) "a" (func 3))
)