(component (core module $main (;0;) (type (;0;) (func (param i32 i32 i32 i32) (result i32))) (type (;1;) (func)) (type (;2;) (func (param i32 i32 i32 i64) (result i32))) (type (;3;) (func (param i32))) (type (;4;) (func (result i32))) (type (;5;) (func (param i32 i32) (result i32))) (type (;6;) (func (param i32 i64 i32) (result i32))) (memory (;0;) 1) (export "memory" (memory 0)) (export "cabi_realloc" (func 0)) (export "a" (func 1)) (export "b" (func 2)) (export "cabi_post_b" (func 3)) (export "c" (func 4)) (export "foo#a" (func 5)) (export "foo#b" (func 6)) (export "cabi_post_foo#b" (func 7)) (export "foo#c" (func 8)) (export "cabi_post_foo#c" (func 9)) (export "bar#a" (func 10)) (func (;0;) (type 0) (param i32 i32 i32 i32) (result i32) unreachable ) (func (;1;) (type 1) unreachable ) (func (;2;) (type 2) (param i32 i32 i32 i64) (result i32) unreachable ) (func (;3;) (type 3) (param i32) unreachable ) (func (;4;) (type 4) (result i32) unreachable ) (func (;5;) (type 1) unreachable ) (func (;6;) (type 5) (param i32 i32) (result i32) unreachable ) (func (;7;) (type 3) (param i32) unreachable ) (func (;8;) (type 6) (param i32 i64 i32) (result i32) unreachable ) (func (;9;) (type 3) (param i32) unreachable ) (func (;10;) (type 3) (param i32) unreachable ) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") (processed-by "my-fake-bindgen" "123.45") ) ) (type (;0;) (flags "a" "b" "c")) (type (;1;) (variant (case "a") (case "b" string) (case "c" s64))) (core instance $main (;0;) (instantiate $main)) (alias core export $main "memory" (core memory $memory (;0;))) (type (;2;) (func)) (alias core export $main "a" (core func $a (;0;))) (alias core export $main "cabi_realloc" (core func $cabi_realloc (;1;))) (func $a (;0;) (type 2) (canon lift (core func $a))) (export $"#func1 a" (@name "a") (;1;) "a" (func $a)) (type (;3;) (func (param "a" s8) (param "b" s16) (param "c" s32) (param "d" s64) (result string))) (alias core export $main "b" (core func $b (;2;))) (alias core export $main "cabi_post_b" (core func $cabi_post_b (;3;))) (func $b (;2;) (type 3) (canon lift (core func $b) (memory $memory) string-encoding=utf8 (post-return $cabi_post_b))) (export $"#func3 b" (@name "b") (;3;) "b" (func $b)) (type (;4;) (tuple s8 s16 s32 s64)) (type (;5;) (func (result 4))) (alias core export $main "c" (core func $c (;4;))) (func $c (;4;) (type 5) (canon lift (core func $c) (memory $memory))) (export $"#func5 c" (@name "c") (;5;) "c" (func $c)) (type (;6;) (func (param "x" 0))) (alias core export $main "bar#a" (core func $bar#a (;5;))) (func $"#func6 a" (@name "a") (;6;) (type 6) (canon lift (core func $bar#a))) (component $bar-shim-component (;0;) (type (;0;) (flags "a" "b" "c")) (import "import-type-x" (type (;1;) (eq 0))) (type (;2;) (func (param "x" 1))) (import "import-func-a" (func (;0;) (type 2))) (type (;3;) (flags "a" "b" "c")) (export (;4;) "x" (type 3)) (type (;5;) (func (param "x" 4))) (export (;1;) "a" (func 0) (func (type 5))) ) (instance $bar-shim-instance (;0;) (instantiate $bar-shim-component (with "import-func-a" (func $"#func6 a")) (with "import-type-x" (type 0)) ) ) (export $bar (;1;) "bar" (instance $bar-shim-instance)) (type (;7;) (func)) (alias core export $main "foo#a" (core func $foo#a (;6;))) (func $"#func7 a" (@name "a") (;7;) (type 7) (canon lift (core func $foo#a))) (type (;8;) (func (param "x" string) (result 1))) (alias core export $main "foo#b" (core func $foo#b (;7;))) (alias core export $main "cabi_post_foo#b" (core func $cabi_post_foo#b (;8;))) (func $"#func8 b" (@name "b") (;8;) (type 8) (canon lift (core func $foo#b) (memory $memory) (realloc $cabi_realloc) string-encoding=utf8 (post-return $cabi_post_foo#b))) (type (;9;) (func (param "x" 1) (result string))) (alias core export $main "foo#c" (core func $foo#c (;9;))) (alias core export $main "cabi_post_foo#c" (core func $cabi_post_foo#c (;10;))) (func $"#func9 c" (@name "c") (;9;) (type 9) (canon lift (core func $foo#c) (memory $memory) (realloc $cabi_realloc) string-encoding=utf8 (post-return $cabi_post_foo#c))) (component $foo-shim-component (;1;) (type (;0;) (func)) (import "import-func-a" (func (;0;) (type 0))) (type (;1;) (variant (case "a") (case "b" string) (case "c" s64))) (import "import-type-x" (type (;2;) (eq 1))) (type (;3;) (func (param "x" string) (result 2))) (import "import-func-b" (func (;1;) (type 3))) (type (;4;) (func (param "x" 2) (result string))) (import "import-func-c" (func (;2;) (type 4))) (type (;5;) (variant (case "a") (case "b" string) (case "c" s64))) (export (;6;) "x" (type 5)) (type (;7;) (func)) (export (;3;) "a" (func 0) (func (type 7))) (type (;8;) (func (param "x" string) (result 6))) (export (;4;) "b" (func 1) (func (type 8))) (type (;9;) (func (param "x" 6) (result string))) (export (;5;) "c" (func 2) (func (type 9))) ) (instance $foo-shim-instance (;2;) (instantiate $foo-shim-component (with "import-func-a" (func $"#func7 a")) (with "import-func-b" (func $"#func8 b")) (with "import-func-c" (func $"#func9 c")) (with "import-type-x" (type 1)) ) ) (export $foo (;3;) "foo" (instance $foo-shim-instance)) (@producers (processed-by "wit-component" "$CARGO_PKG_VERSION") ) )