| 1 |
(component |
| 2 |
(component (;0;) |
| 3 |
(type (;0;) |
| 4 |
(instance |
| 5 |
(type (;0;) (tuple string string)) |
| 6 |
(type (;1;) (list 0)) |
| 7 |
(type (;2;) (func (result 1))) |
| 8 |
(export (;0;) "get-environment" (func (type 2))) |
| 9 |
(type (;3;) (list string)) |
| 10 |
(type (;4;) (func (result 3))) |
| 11 |
(export (;1;) "get-arguments" (func (type 4))) |
| 12 |
) |
| 13 |
) |
| 14 |
(import "wasi:cli-base/environment" (instance (;0;) (type 0))) |
| 15 |
(type (;1;) |
| 16 |
(instance) |
| 17 |
) |
| 18 |
(import "other1" (instance (;1;) (type 1))) |
| 19 |
(type (;2;) |
| 20 |
(instance) |
| 21 |
) |
| 22 |
(import "other2" (instance (;2;) (type 2))) |
| 23 |
(core module (;0;) |
| 24 |
(type (;0;) (func (param i32))) |
| 25 |
(type (;1;) (func (param i32 i32 i32 i32) (result i32))) |
| 26 |
(import "wasi:cli-base/environment" "get-environment" (func (;0;) (type 0))) |
| 27 |
(import "wasi:cli-base/environment" "get-arguments" (func (;1;) (type 0))) |
| 28 |
(memory (;0;) 0) |
| 29 |
(export "memory" (memory 0)) |
| 30 |
(export "cabi_realloc" (func 2)) |
| 31 |
(func (;2;) (type 1) (param i32 i32 i32 i32) (result i32) |
| 32 |
unreachable |
| 33 |
) |
| 34 |
(@producers |
| 35 |
(processed-by "wit-component" "0.11.0") |
| 36 |
) |
| 37 |
) |
| 38 |
(core module (;1;) |
| 39 |
(type (;0;) (func (param i32))) |
| 40 |
(table (;0;) 2 2 funcref) |
| 41 |
(export "0" (func $indirect-wasi:cli-base/environment-get-environment)) |
| 42 |
(export "1" (func $indirect-wasi:cli-base/environment-get-arguments)) |
| 43 |
(export "$imports" (table 0)) |
| 44 |
(func $indirect-wasi:cli-base/environment-get-environment (;0;) (type 0) (param i32) |
| 45 |
local.get 0 |
| 46 |
i32.const 0 |
| 47 |
call_indirect (type 0) |
| 48 |
) |
| 49 |
(func $indirect-wasi:cli-base/environment-get-arguments (;1;) (type 0) (param i32) |
| 50 |
local.get 0 |
| 51 |
i32.const 1 |
| 52 |
call_indirect (type 0) |
| 53 |
) |
| 54 |
(@producers |
| 55 |
(processed-by "wit-component" "0.11.0") |
| 56 |
) |
| 57 |
) |
| 58 |
(core module (;2;) |
| 59 |
(type (;0;) (func (param i32))) |
| 60 |
(import "" "0" (func (;0;) (type 0))) |
| 61 |
(import "" "1" (func (;1;) (type 0))) |
| 62 |
(import "" "$imports" (table (;0;) 2 2 funcref)) |
| 63 |
(elem (;0;) (i32.const 0) func 0 1) |
| 64 |
(@producers |
| 65 |
(processed-by "wit-component" "0.11.0") |
| 66 |
) |
| 67 |
) |
| 68 |
(core instance (;0;) (instantiate 1)) |
| 69 |
(alias core export 0 "0" (core func (;0;))) |
| 70 |
(alias core export 0 "1" (core func (;1;))) |
| 71 |
(core instance (;1;) |
| 72 |
(export "get-environment" (func 0)) |
| 73 |
(export "get-arguments" (func 1)) |
| 74 |
) |
| 75 |
(core instance (;2;) (instantiate 0 |
| 76 |
(with "wasi:cli-base/environment" (instance 1)) |
| 77 |
) |
| 78 |
) |
| 79 |
(alias core export 2 "memory" (core memory (;0;))) |
| 80 |
(alias core export 2 "cabi_realloc" (core func (;2;))) |
| 81 |
(alias core export 0 "$imports" (core table (;0;))) |
| 82 |
(alias export 0 "get-environment" (func (;0;))) |
| 83 |
(core func (;3;) (canon lower (func 0) (memory 0) (realloc 2) string-encoding=utf8)) |
| 84 |
(alias export 0 "get-arguments" (func (;1;))) |
| 85 |
(core func (;4;) (canon lower (func 1) (memory 0) (realloc 2) string-encoding=utf8)) |
| 86 |
(@producers |
| 87 |
(processed-by "wit-component" "0.11.0") |
| 88 |
) |
| 89 |
(core instance (;3;) |
| 90 |
(export "$imports" (table 0)) |
| 91 |
(export "0" (func 3)) |
| 92 |
(export "1" (func 4)) |
| 93 |
) |
| 94 |
(core instance (;4;) (instantiate 2 |
| 95 |
(with "" (instance 3)) |
| 96 |
) |
| 97 |
) |
| 98 |
) |
| 99 |
(component (;1;) |
| 100 |
(core module (;0;) |
| 101 |
(type (;0;) (func)) |
| 102 |
(type (;1;) (func (result i32))) |
| 103 |
(type (;2;) (func (param i32))) |
| 104 |
(type (;3;) (func (param i32 i32) (result i32))) |
| 105 |
(type (;4;) (func (param i32 i32 i32))) |
| 106 |
(type (;5;) (func (param i32 i32 i32 i32) (result i32))) |
| 107 |
(type (;6;) (func (param i32) (result i32))) |
| 108 |
(type (;7;) (func (param i32 i32))) |
| 109 |
(type (;8;) (func (param i32 i32 i32) (result i32))) |
| 110 |
(table (;0;) 1 1 funcref) |
| 111 |
(memory (;0;) 17) |
| 112 |
(global $__stack_pointer (;0;) (mut i32) i32.const 1048576) |
| 113 |
(export "memory" (memory 0)) |
| 114 |
(export "wasi:cli-base/environment#get-environment" (func $wasi:cli-base/environment#get-environment)) |
| 115 |
(export "cabi_post_wasi:cli-base/environment#get-environment" (func $cabi_post_wasi:cli-base/environment#get-environment)) |
| 116 |
(export "wasi:cli-base/environment#get-arguments" (func $wasi:cli-base/environment#get-arguments)) |
| 117 |
(export "cabi_post_wasi:cli-base/environment#get-arguments" (func $cabi_post_wasi:cli-base/environment#get-arguments)) |
| 118 |
(export "cabi_realloc" (func $cabi_realloc)) |
| 119 |
(func $__wasm_call_ctors (;0;) (type 0)) |
| 120 |
(func $wasi:cli-base/environment#get-environment (;1;) (type 1) (result i32) |
| 121 |
i32.const 0 |
| 122 |
) |
| 123 |
(func $cabi_post_wasi:cli-base/environment#get-environment (;2;) (type 2) (param i32)) |
| 124 |
(func $wasi:cli-base/environment#get-arguments (;3;) (type 1) (result i32) |
| 125 |
i32.const 0 |
| 126 |
) |
| 127 |
(func $cabi_post_wasi:cli-base/environment#get-arguments (;4;) (type 2) (param i32)) |
| 128 |
(func $cabi_realloc (;5;) (type 5) (param i32 i32 i32 i32) (result i32) |
| 129 |
i32.const 0 |
| 130 |
) |
| 131 |
) |
| 132 |
(core instance (;0;) (instantiate 0)) |
| 133 |
(alias core export 0 "memory" (core memory (;0;))) |
| 134 |
(alias core export 0 "cabi_realloc" (core func (;0;))) |
| 135 |
(type (;0;) (tuple string string)) |
| 136 |
(type (;1;) (list 0)) |
| 137 |
(type (;2;) (func (result 1))) |
| 138 |
(alias core export 0 "wasi:cli-base/environment#get-environment" (core func (;1;))) |
| 139 |
(alias core export 0 "cabi_post_wasi:cli-base/environment#get-environment" (core func (;2;))) |
| 140 |
(func (;0;) (type 2) (canon lift (core func 1) (memory 0) string-encoding=utf8 (post-return 2))) |
| 141 |
(type (;3;) (list string)) |
| 142 |
(type (;4;) (func (result 3))) |
| 143 |
(alias core export 0 "wasi:cli-base/environment#get-arguments" (core func (;3;))) |
| 144 |
(alias core export 0 "cabi_post_wasi:cli-base/environment#get-arguments" (core func (;4;))) |
| 145 |
(func (;1;) (type 4) (canon lift (core func 3) (memory 0) string-encoding=utf8 (post-return 4))) |
| 146 |
(component (;0;) |
| 147 |
(type (;0;) (tuple string string)) |
| 148 |
(type (;1;) (list 0)) |
| 149 |
(type (;2;) (func (result 1))) |
| 150 |
(import "import-func-get-environment" (func (;0;) (type 2))) |
| 151 |
(type (;3;) (list string)) |
| 152 |
(type (;4;) (func (result 3))) |
| 153 |
(import "import-func-get-arguments" (func (;1;) (type 4))) |
| 154 |
(type (;5;) (tuple string string)) |
| 155 |
(type (;6;) (list 5)) |
| 156 |
(type (;7;) (func (result 6))) |
| 157 |
(export (;2;) "get-environment" (func 0) (func (type 7))) |
| 158 |
(type (;8;) (list string)) |
| 159 |
(type (;9;) (func (result 8))) |
| 160 |
(export (;3;) "get-arguments" (func 1) (func (type 9))) |
| 161 |
) |
| 162 |
(instance (;0;) (instantiate 0 |
| 163 |
(with "import-func-get-environment" (func 0)) |
| 164 |
(with "import-func-get-arguments" (func 1)) |
| 165 |
) |
| 166 |
) |
| 167 |
(export (;1;) "wasi:cli-base/environment" (instance 0)) |
| 168 |
) |
| 169 |
(component (;2;) |
| 170 |
(instance (;0;)) |
| 171 |
(export (;1;) "other1" (instance 0)) |
| 172 |
(export (;2;) "other2" (instance 0)) |
| 173 |
) |
| 174 |
(instance (;0;) (instantiate 2)) |
| 175 |
(instance (;1;) (instantiate 1)) |
| 176 |
(alias export 1 "wasi:cli-base/environment" (instance (;2;))) |
| 177 |
(alias export 0 "other1" (instance (;3;))) |
| 178 |
(alias export 0 "other2" (instance (;4;))) |
| 179 |
(instance (;5;) (instantiate 0 |
| 180 |
(with "wasi:cli-base/environment" (instance 2)) |
| 181 |
(with "other1" (instance 3)) |
| 182 |
(with "other2" (instance 4)) |
| 183 |
) |
| 184 |
) |
| 185 |
) |