Files
cli/vendor/wit-component/tests/components/simple/component.wat

65 lines
2.3 KiB
Plaintext
Raw Normal View History

(component
(core module $main (;0;)
(type (;0;) (func (param i32 i32 i32 i32) (result i32)))
(type (;1;) (func))
(type (;2;) (func (result i32)))
(type (;3;) (func (param i32)))
(type (;4;) (func (param i32 i32) (result i32)))
(type (;5;) (func (param i32 i32)))
(memory $memory (;0;) 1)
(export "memory" (memory $memory))
(export "cabi_realloc" (func $cabi_realloc))
(export "a" (func $a))
(export "b" (func $b))
(export "cabi_post_b" (func 3))
(export "c" (func $c))
(export "cabi_post_c" (func 5))
(export "d" (func $d))
(func $cabi_realloc (;0;) (type 0) (param i32 i32 i32 i32) (result i32)
unreachable
)
(func $a (;1;) (type 1)
unreachable
)
(func $b (;2;) (type 2) (result i32)
unreachable
)
(func (;3;) (type 3) (param i32)
unreachable
)
(func $c (;4;) (type 4) (param i32 i32) (result i32)
unreachable
)
(func (;5;) (type 3) (param i32)
unreachable
)
(func $d (;6;) (type 5) (param i32 i32)
unreachable
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
(processed-by "my-fake-bindgen" "123.45")
)
)
(core instance $main (;0;) (instantiate $main))
(alias core export $main "memory" (core memory $memory (;0;)))
(type (;0;) (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 0) (canon lift (core func $a)))
(export $"#func1 a" (@name "a") (;1;) "a" (func $a))
(type (;1;) (func (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 1) (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 (;2;) (func (param "x" string) (result string)))
(alias core export $main "c" (core func $c (;4;)))
(alias core export $main "cabi_post_c" (core func $cabi_post_c (;5;)))
(func $c (;4;) (type 2) (canon lift (core func $c) (memory $memory) (realloc $cabi_realloc) string-encoding=utf8 (post-return $cabi_post_c)))
(export $"#func5 c" (@name "c") (;5;) "c" (func $c))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)