(component
(type (;0;)
(instance
(type (;0;) (func (param "v" s32) (result s32)))
(export (;0;) "foo" (func (type 0)))
)
)
(import "test:test/test" (instance (;0;) (type 0)))
(core module (;0;)
(type (;0;) (func (param i32) (result i32)))
(table (;0;) 2 funcref)
(memory (;0;) 17)
(global (;0;) (mut i32) i32.const 1048576)
(global (;1;) i32 i32.const 1048592)
(global (;2;) i32 i32.const 1)
(global (;3;) i32 i32.const 1048592)
(global (;4;) i32 i32.const 1)
(global (;5;) (mut i32) i32.const 1048592)
(global (;6;) (mut i32) i32.const 1114112)
(export "__stack_pointer" (global 0))
(export "bar:memory_base" (global 1))
(export "bar:table_base" (global 2))
(export "foo:memory_base" (global 3))
(export "foo:table_base" (global 4))
(export "__heap_base" (global 5))
(export "__heap_end" (global 6))
(export "foo" (func 0))
(export "__indirect_function_table" (table 0))
(export "memory" (memory 0))
(func (;0;) (type 0) (param i32) (result i32)
local.get 0
i32.const 1
call_indirect (type 0)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module (;1;)
(@dylink.0
(mem-info (memory 0 4))
(needed "foo")
)
(type (;0;) (func (param i32) (result i32)))
(import "env" "foo" (func $import_foo (;0;) (type 0)))
(export "bar" (func $bar))
(func $bar (;1;) (type 0) (param i32) (result i32)
unreachable
)
)
(core module (;2;)
(@dylink.0
(mem-info (memory 0 4))
(needed "bar")
)
(type (;0;) (func (param i32) (result i32)))
(import "test:test/test" "foo" (func $import_foo (;0;) (type 0)))
(import "env" "foo" (func $import_foo2 (;1;) (type 0)))
(import "env" "bar" (func $import_bar (;2;) (type 0)))
(export "test:test/test#foo" (func $foo))
(export "foo" (func $foo))
(func $foo (;3;) (type 0) (param i32) (result i32)
unreachable
)
)
(core module (;3;)
(type (;0;) (func))
(type (;1;) (func (param i32)))
(type (;2;) (func (param i32) (result i32)))
(import "env" "memory" (memory (;0;) 0))
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
(import "foo" "foo" (func (;0;) (type 2)))
(start 1)
(elem (;0;) (i32.const 1) func)
(elem (;1;) (i32.const 1) func 0)
(func (;1;) (type 0))
(data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core instance (;0;) (instantiate 0))
(alias core export 0 "memory" (core memory (;0;)))
(alias core export 0 "foo" (core func (;0;)))
(core instance (;1;)
(export "foo" (func 0))
)
(core instance (;2;) (instantiate 1
(with "env" (instance 1))
)
)
(alias export 0 "foo" (func (;0;)))
(core func (;1;) (canon lower (func 0)))
(core instance (;3;)
(export "foo" (func 1))
)
(alias core export 2 "bar" (core func (;2;)))
(core instance (;4;)
(export "foo" (func 0))
(export "bar" (func 2))
)
(core instance (;5;) (instantiate 2
(with "test:test/test" (instance 3))
(with "env" (instance 4))
)
)
(core instance (;6;) (instantiate 3
(with "env" (instance 0))
(with "foo" (instance 5))
)
)
(type (;1;) (func (param "v" s32) (result s32)))
(alias core export 5 "test:test/test#foo" (core func (;3;)))
(func (;1;) (type 1) (canon lift (core func 3)))
(component (;0;)
(type (;0;) (func (param "v" s32) (result s32)))
(import "import-func-foo" (func (;0;) (type 0)))
(type (;1;) (func (param "v" s32) (result s32)))
(export (;1;) "foo" (func 0) (func (type 1)))
)
(instance (;1;) (instantiate 0
(with "import-func-foo" (func 1))
)
)
(export (;2;) "test:test/test" (instance 1))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)