| 1 |
(module |
| 2 |
(type $arr8 (;0;) (array i8)) |
| 3 |
(type $arr8_mut (;1;) (array (mut i8))) |
| 4 |
(type (;2;) (func (param i32) (result i32))) |
| 5 |
(type (;3;) (func)) |
| 6 |
(type (;4;) (func (param i32 i32 i32))) |
| 7 |
(global $g_arr8 (;0;) (ref $arr8) i32.const 10 i32.const 12 array.new $arr8) |
| 8 |
(global $g_arr8_mut (;1;) (mut (ref $arr8_mut)) i32.const 12 array.new_default $arr8_mut) |
| 9 |
(export "array_get_nth" (func 0)) |
| 10 |
(export "array_copy-null-left" (func 1)) |
| 11 |
(export "array_copy-null-right" (func 2)) |
| 12 |
(export "array_copy" (func 3)) |
| 13 |
(export "array_copy_overlap_test-1" (func 4)) |
| 14 |
(export "array_copy_overlap_test-2" (func 5)) |
| 15 |
(func (;0;) (type 2) (param $1 i32) (result i32) |
| 16 |
global.get $g_arr8_mut |
| 17 |
local.get $1 |
| 18 |
array.get_u $arr8_mut |
| 19 |
) |
| 20 |
(func (;1;) (type 3) |
| 21 |
ref.null $arr8_mut |
| 22 |
i32.const 0 |
| 23 |
global.get $g_arr8 |
| 24 |
i32.const 0 |
| 25 |
i32.const 0 |
| 26 |
array.copy $arr8_mut $arr8 |
| 27 |
) |
| 28 |
(func (;2;) (type 3) |
| 29 |
global.get $g_arr8_mut |
| 30 |
i32.const 0 |
| 31 |
ref.null $arr8 |
| 32 |
i32.const 0 |
| 33 |
i32.const 0 |
| 34 |
array.copy $arr8_mut $arr8 |
| 35 |
) |
| 36 |
(func (;3;) (type 4) (param $1 i32) (param $2 i32) (param $3 i32) |
| 37 |
global.get $g_arr8_mut |
| 38 |
local.get $1 |
| 39 |
global.get $g_arr8 |
| 40 |
local.get $2 |
| 41 |
local.get $3 |
| 42 |
array.copy $arr8_mut $arr8 |
| 43 |
) |
| 44 |
(func (;4;) (type 3) |
| 45 |
(local $1 (ref $arr8_mut)) |
| 46 |
i32.const 0 |
| 47 |
i32.const 12 |
| 48 |
array.new_data $arr8_mut $d1 |
| 49 |
local.set $1 |
| 50 |
local.get $1 |
| 51 |
i32.const 1 |
| 52 |
local.get $1 |
| 53 |
i32.const 0 |
| 54 |
i32.const 11 |
| 55 |
array.copy $arr8_mut $arr8_mut |
| 56 |
local.get $1 |
| 57 |
global.set $g_arr8_mut |
| 58 |
) |
| 59 |
(func (;5;) (type 3) |
| 60 |
(local $1 (ref $arr8_mut)) |
| 61 |
i32.const 0 |
| 62 |
i32.const 12 |
| 63 |
array.new_data $arr8_mut $d1 |
| 64 |
local.set $1 |
| 65 |
local.get $1 |
| 66 |
i32.const 0 |
| 67 |
local.get $1 |
| 68 |
i32.const 1 |
| 69 |
i32.const 11 |
| 70 |
array.copy $arr8_mut $arr8_mut |
| 71 |
local.get $1 |
| 72 |
global.set $g_arr8_mut |
| 73 |
) |
| 74 |
(data $d1 (;0;) "abcdefghijkl") |
| 75 |
) |