| 1 |
(component |
| 2 |
(type (;0;) |
| 3 |
(instance |
| 4 |
(type (;0;) (tuple string string)) |
| 5 |
(type (;1;) (list 0)) |
| 6 |
(type (;2;) (func (result 1))) |
| 7 |
(export (;0;) "get-environment" (func (type 2))) |
| 8 |
(type (;3;) (list string)) |
| 9 |
(type (;4;) (func (result 3))) |
| 10 |
(export (;1;) "get-arguments" (func (type 4))) |
| 11 |
) |
| 12 |
) |
| 13 |
(import (interface "wasi:cli-base/environment") (instance (;0;) (type 0))) |
| 14 |
(import "other1" (instance (;0;))) |
| 15 |
(import "other2" (instance (;0;))) |
| 16 |
(core module (;0;) |
| 17 |
(type (;0;) (func (param i32))) |
| 18 |
(type (;1;) (func (param i32 i32 i32 i32) (result i32))) |
| 19 |
(import "wasi:cli-base/environment" "get-environment" (func (;0;) (type 0))) |
| 20 |
(import "wasi:cli-base/environment" "get-arguments" (func (;1;) (type 0))) |
| 21 |
(func (;2;) (type 1) (param i32 i32 i32 i32) (result i32) |
| 22 |
unreachable |
| 23 |
) |
| 24 |
(memory (;0;) 0) |
| 25 |
(export "memory" (memory 0)) |
| 26 |
(export "cabi_realloc" (func 2)) |
| 27 |
(@producers |
| 28 |
(processed-by "wit-component" "0.11.0") |
| 29 |
) |
| 30 |
) |
| 31 |
(core module (;1;) |
| 32 |
(type (;0;) (func (param i32))) |
| 33 |
(func $indirect-wasi:cli-base/environment-get-environment (;0;) (type 0) (param i32) |
| 34 |
local.get 0 |
| 35 |
i32.const 0 |
| 36 |
call_indirect (type 0) |
| 37 |
) |
| 38 |
(func $indirect-wasi:cli-base/environment-get-arguments (;1;) (type 0) (param i32) |
| 39 |
local.get 0 |
| 40 |
i32.const 1 |
| 41 |
call_indirect (type 0) |
| 42 |
) |
| 43 |
(table (;0;) 2 2 funcref) |
| 44 |
(export "0" (func $indirect-wasi:cli-base/environment-get-environment)) |
| 45 |
(export "1" (func $indirect-wasi:cli-base/environment-get-arguments)) |
| 46 |
(export "$imports" (table 0)) |
| 47 |
(@producers |
| 48 |
(processed-by "wit-component" "0.11.0") |
| 49 |
) |
| 50 |
) |
| 51 |
(core module (;2;) |
| 52 |
(type (;0;) (func (param i32))) |
| 53 |
(import "" "0" (func (;0;) (type 0))) |
| 54 |
(import "" "1" (func (;1;) (type 0))) |
| 55 |
(import "" "$imports" (table (;0;) 2 2 funcref)) |
| 56 |
(elem (;0;) (i32.const 0) func 0 1) |
| 57 |
(@producers |
| 58 |
(processed-by "wit-component" "0.11.0") |
| 59 |
) |
| 60 |
) |
| 61 |
(core instance (;0;) (instantiate 1)) |
| 62 |
(alias core export 0 "0" (core func (;0;))) |
| 63 |
(alias core export 0 "1" (core func (;1;))) |
| 64 |
(core instance (;1;) |
| 65 |
(export "get-environment" (func 0)) |
| 66 |
(export "get-arguments" (func 1)) |
| 67 |
) |
| 68 |
(core instance (;2;) (instantiate 0 |
| 69 |
(with "wasi:cli-base/environment" (instance 1)) |
| 70 |
) |
| 71 |
) |
| 72 |
(alias core export 2 "memory" (core memory (;0;))) |
| 73 |
(alias core export 2 "cabi_realloc" (core func (;2;))) |
| 74 |
(alias core export 0 "$imports" (core table (;0;))) |
| 75 |
(alias export 0 "get-environment" (func (;0;))) |
| 76 |
(core func (;3;) (canon lower (func 0) (memory 0) (realloc 2) string-encoding=utf8)) |
| 77 |
(alias export 0 "get-arguments" (func (;1;))) |
| 78 |
(core func (;4;) (canon lower (func 1) (memory 0) (realloc 2) string-encoding=utf8)) |
| 79 |
(@producers |
| 80 |
(processed-by "wit-component" "0.11.0") |
| 81 |
) |
| 82 |
(core instance (;3;) |
| 83 |
(export "$imports" (table 0)) |
| 84 |
(export "0" (func 3)) |
| 85 |
(export "1" (func 4)) |
| 86 |
) |
| 87 |
(core instance (;4;) (instantiate 2 |
| 88 |
(with "" (instance 3)) |
| 89 |
) |
| 90 |
) |
| 91 |
) |