(component (type $ty-foo:foo/bar (;0;) (instance (type (;0;) (func (param "x" u64) (param "y" string))) (export (;0;) "a" (func (type 0))) ) ) (import "foo:foo/bar" (instance $foo:foo/bar (;0;) (type $ty-foo:foo/bar))) (type $ty-foo:foo/baz (;1;) (instance (type (;0;) (list u8)) (type (;1;) (func (param "x" 0) (result 0))) (export (;0;) "baz" (func (type 1))) ) ) (import "foo:foo/baz" (instance $foo:foo/baz (;1;) (type $ty-foo:foo/baz))) (type $ty-foo:foo/foo (;2;) (instance (type (;0;) (func)) (export (;0;) "a" (func (type 0))) ) ) (import "foo:foo/foo" (instance $foo:foo/foo (;2;) (type $ty-foo:foo/foo))) (core module $main (;0;) (type (;0;) (func)) (type (;1;) (func (param i64 i32 i32))) (type (;2;) (func (param i32 i32 i32))) (type (;3;) (func (param i32 i32 i32 i32) (result i32))) (import "foo:foo/foo" "a" (func (;0;) (type 0))) (import "foo:foo/bar" "a" (func (;1;) (type 1))) (import "foo:foo/baz" "baz" (func (;2;) (type 2))) (memory (;0;) 1) (export "memory" (memory 0)) (export "cabi_realloc" (func 3)) (func (;3;) (type 3) (param i32 i32 i32 i32) (result i32) unreachable ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") ) ) (core module $wit-component-shim-module (;1;) (type (;0;) (func (param i64 i32 i32))) (type (;1;) (func (param i32 i32 i32))) (table (;0;) 2 2 funcref) (export "0" (func $indirect-foo:foo/bar-a)) (export "1" (func $indirect-foo:foo/baz-baz)) (export "$imports" (table 0)) (func $indirect-foo:foo/bar-a (;0;) (type 0) (param i64 i32 i32) local.get 0 local.get 1 local.get 2 i32.const 0 call_indirect (type 0) ) (func $indirect-foo:foo/baz-baz (;1;) (type 1) (param i32 i32 i32) local.get 0 local.get 1 local.get 2 i32.const 1 call_indirect (type 1) ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) ) (core module $wit-component-fixup (;2;) (type (;0;) (func (param i64 i32 i32))) (type (;1;) (func (param i32 i32 i32))) (import "" "0" (func (;0;) (type 0))) (import "" "1" (func (;1;) (type 1))) (import "" "$imports" (table (;0;) 2 2 funcref)) (elem (;0;) (i32.const 0) func 0 1) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) ) (core instance $wit-component-shim-instance (;0;) (instantiate $wit-component-shim-module)) (alias export $foo:foo/foo "a" (func $a (;0;))) (core func $a (;0;) (canon lower (func $a))) (core instance $foo:foo/foo (;1;) (export "a" (func $a)) ) (alias core export $wit-component-shim-instance "0" (core func $indirect-foo:foo/bar-a (;1;))) (core instance $foo:foo/bar (;2;) (export "a" (func $indirect-foo:foo/bar-a)) ) (alias core export $wit-component-shim-instance "1" (core func $indirect-foo:foo/baz-baz (;2;))) (core instance $foo:foo/baz (;3;) (export "baz" (func $indirect-foo:foo/baz-baz)) ) (core instance $main (;4;) (instantiate $main (with "foo:foo/foo" (instance $foo:foo/foo)) (with "foo:foo/bar" (instance $foo:foo/bar)) (with "foo:foo/baz" (instance $foo:foo/baz)) ) ) (alias core export $main "memory" (core memory $memory (;0;))) (alias core export $wit-component-shim-instance "$imports" (core table $"shim table" (;0;))) (alias export $foo:foo/bar "a" (func $"#func1 a" (@name "a") (;1;))) (alias core export $main "cabi_realloc" (core func $realloc (;3;))) (core func $"#core-func4 indirect-foo:foo/bar-a" (@name "indirect-foo:foo/bar-a") (;4;) (canon lower (func $"#func1 a") (memory $memory) string-encoding=utf8)) (alias export $foo:foo/baz "baz" (func $baz (;2;))) (core func $"#core-func5 indirect-foo:foo/baz-baz" (@name "indirect-foo:foo/baz-baz") (;5;) (canon lower (func $baz) (memory $memory) (realloc $realloc))) (core instance $fixup-args (;5;) (export "$imports" (table $"shim table")) (export "0" (func $"#core-func4 indirect-foo:foo/bar-a")) (export "1" (func $"#core-func5 indirect-foo:foo/baz-baz")) ) (core instance $fixup (;6;) (instantiate $wit-component-fixup (with "" (instance $fixup-args)) ) ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) )