Debian Codegraph @

crates/wasm-compose/tests/compositions/defs/cli.wat

raw
1 (component
2 (core module (;0;)
3 (type (;0;) (func))
4 (type (;1;) (func (result i32)))
5 (type (;2;) (func (param i32)))
6 (type (;3;) (func (param i32 i32) (result i32)))
7 (type (;4;) (func (param i32 i32 i32)))
8 (type (;5;) (func (param i32 i32 i32 i32) (result i32)))
9 (type (;6;) (func (param i32) (result i32)))
10 (type (;7;) (func (param i32 i32)))
11 (type (;8;) (func (param i32 i32 i32) (result i32)))
12 (func $__wasm_call_ctors (;0;) (type 0))
13 (func $wasi:cli-base/environment#get-environment (;1;) (type 1) (result i32)
14 i32.const 0
15 )
16 (func $cabi_post_wasi:cli-base/environment#get-environment (;2;) (type 2) (param i32))
17 (func $wasi:cli-base/environment#get-arguments (;3;) (type 1) (result i32)
18 i32.const 0
19 )
20 (func $cabi_post_wasi:cli-base/environment#get-arguments (;4;) (type 2) (param i32))
21 (func $cabi_realloc (;10;) (type 5) (param i32 i32 i32 i32) (result i32)
22 i32.const 0
23 )
24 (table (;0;) 1 1 funcref)
25 (memory (;0;) 17)
26 (global $__stack_pointer (;0;) (mut i32) i32.const 1048576)
27 (export "memory" (memory 0))
28 (export "wasi:cli-base/environment#get-environment" (func $wasi:cli-base/environment#get-environment))
29 (export "cabi_post_wasi:cli-base/environment#get-environment" (func $cabi_post_wasi:cli-base/environment#get-environment))
30 (export "wasi:cli-base/environment#get-arguments" (func $wasi:cli-base/environment#get-arguments))
31 (export "cabi_post_wasi:cli-base/environment#get-arguments" (func $cabi_post_wasi:cli-base/environment#get-arguments))
32 (export "cabi_realloc" (func $cabi_realloc))
33 )
34 (core instance (;0;) (instantiate 0))
35 (alias core export 0 "memory" (core memory (;0;)))
36 (alias core export 0 "cabi_realloc" (core func (;0;)))
37 (type (;0;) (tuple string string))
38 (type (;1;) (list 0))
39 (type (;2;) (func (result 1)))
40 (alias core export 0 "wasi:cli-base/environment#get-environment" (core func (;1;)))
41 (alias core export 0 "cabi_post_wasi:cli-base/environment#get-environment" (core func (;2;)))
42 (func (;0;) (type 2) (canon lift (core func 1) (memory 0) string-encoding=utf8 (post-return 2)))
43 (type (;3;) (list string))
44 (type (;4;) (func (result 3)))
45 (alias core export 0 "wasi:cli-base/environment#get-arguments" (core func (;3;)))
46 (alias core export 0 "cabi_post_wasi:cli-base/environment#get-arguments" (core func (;4;)))
47 (func (;1;) (type 4) (canon lift (core func 3) (memory 0) string-encoding=utf8 (post-return 4)))
48 (component (;0;)
49 (type (;0;) (tuple string string))
50 (type (;1;) (list 0))
51 (type (;2;) (func (result 1)))
52 (import "import-func-get-environment" (func (;0;) (type 2)))
53 (type (;3;) (list string))
54 (type (;4;) (func (result 3)))
55 (import "import-func-get-arguments" (func (;1;) (type 4)))
56 (type (;5;) (tuple string string))
57 (type (;6;) (list 5))
58 (type (;7;) (func (result 6)))
59 (export (;2;) "get-environment" (func 0) (func (type 7)))
60 (type (;8;) (list string))
61 (type (;9;) (func (result 8)))
62 (export (;3;) "get-arguments" (func 1) (func (type 9)))
63 )
64 (instance (;0;) (instantiate 0
65 (with "import-func-get-environment" (func 0))
66 (with "import-func-get-arguments" (func 1))
67 )
68 )
69 (export (;1;) (interface "wasi:cli-base/environment") (instance 0))
70 )