mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
17016 lines
309 KiB
Plaintext
17016 lines
309 KiB
Plaintext
(module
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $ii (func (param i32) (result i32)))
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
(type $iiiii (func (param i32 i32 i32 i32) (result i32)))
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $iiv (func (param i32 i32)))
|
|
(type $iiif (func (param i32 i32 i32) (result f32)))
|
|
(type $iif (func (param i32 i32) (result f32)))
|
|
(type $F (func (result f64)))
|
|
(type $Iv (func (param i64)))
|
|
(type $II (func (param i64) (result i64)))
|
|
(type $ffi (func (param f32 f32) (result i32)))
|
|
(type $iv (func (param i32)))
|
|
(type $fi (func (param f32) (result i32)))
|
|
(type $FFi (func (param f64 f64) (result i32)))
|
|
(type $iiF (func (param i32 i32) (result f64)))
|
|
(type $Fi (func (param f64) (result i32)))
|
|
(type $iiiiii (func (param i32 i32 i32 i32 i32) (result i32)))
|
|
(type $iiiiiv (func (param i32 i32 i32 i32 i32)))
|
|
(type $v (func))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(import "JSMath" "random" (func $~lib/math/JSMath.random (result f64)))
|
|
(global $~lib/internal/allocator/AL_BITS i32 (i32.const 3))
|
|
(global $~lib/internal/allocator/AL_SIZE i32 (i32.const 8))
|
|
(global $~lib/internal/allocator/AL_MASK i32 (i32.const 7))
|
|
(global $~lib/internal/allocator/MAX_SIZE_32 i32 (i32.const 1073741824))
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(global $~lib/internal/arraybuffer/HEADER_SIZE i32 (i32.const 8))
|
|
(global $~lib/internal/arraybuffer/MAX_BLENGTH i32 (i32.const 1073741816))
|
|
(global $~lib/internal/string/HEADER_SIZE i32 (i32.const 4))
|
|
(global $~lib/internal/string/MAX_LENGTH i32 (i32.const 536870910))
|
|
(global $std/array/arr (mut i32) (i32.const 0))
|
|
(global $std/array/arr8 (mut i32) (i32.const 120))
|
|
(global $~lib/builtins/i32.MAX_VALUE i32 (i32.const 2147483647))
|
|
(global $~argc (mut i32) (i32.const 0))
|
|
(global $std/array/arr32 (mut i32) (i32.const 288))
|
|
(global $std/array/i (mut i32) (i32.const 0))
|
|
(global $std/array/includes (mut i32) (i32.const 0))
|
|
(global $std/array/every (mut i32) (i32.const 0))
|
|
(global $std/array/some (mut i32) (i32.const 0))
|
|
(global $std/array/newArr (mut i32) (i32.const 0))
|
|
(global $std/array/filteredArr (mut i32) (i32.const 0))
|
|
(global $std/array/boolVal (mut i32) (i32.const 0))
|
|
(global $~lib/math/random_seeded (mut i32) (i32.const 0))
|
|
(global $~lib/math/random_state0 (mut i64) (i64.const 0))
|
|
(global $~lib/math/random_state1 (mut i64) (i64.const 0))
|
|
(global $std/array/charset i32 (i32.const 488))
|
|
(global $NaN f64 (f64.const nan:0x8000000000000))
|
|
(global $Infinity f64 (f64.const inf))
|
|
(global $std/array/f32ArrayTyped (mut i32) (i32.const 728))
|
|
(global $std/array/f64ArrayTyped (mut i32) (i32.const 936))
|
|
(global $std/array/i32ArrayTyped (mut i32) (i32.const 1112))
|
|
(global $std/array/u32ArrayTyped (mut i32) (i32.const 1192))
|
|
(global $std/array/reversed0 (mut i32) (i32.const 1248))
|
|
(global $std/array/reversed1 (mut i32) (i32.const 1272))
|
|
(global $std/array/reversed2 (mut i32) (i32.const 1296))
|
|
(global $std/array/reversed4 (mut i32) (i32.const 1336))
|
|
(global $std/array/expected4 (mut i32) (i32.const 1376))
|
|
(global $std/array/reversed64 (mut i32) (i32.const 0))
|
|
(global $std/array/reversed128 (mut i32) (i32.const 0))
|
|
(global $std/array/reversed1024 (mut i32) (i32.const 0))
|
|
(global $std/array/reversed10000 (mut i32) (i32.const 0))
|
|
(global $std/array/randomized512 (mut i32) (i32.const 0))
|
|
(global $std/array/randomized64 (mut i32) (i32.const 0))
|
|
(global $std/array/randomized257 (mut i32) (i32.const 0))
|
|
(global $std/array/reversedNested512 (mut i32) (i32.const 0))
|
|
(global $std/array/reversedElements512 (mut i32) (i32.const 0))
|
|
(global $std/array/randomStringsActual (mut i32) (i32.const 1536))
|
|
(global $std/array/randomStringsExpected (mut i32) (i32.const 1608))
|
|
(global $std/array/randomStrings400 (mut i32) (i32.const 0))
|
|
(global $HEAP_BASE i32 (i32.const 1716))
|
|
(table 56 56 anyfunc)
|
|
(elem (i32.const 0) $null $start~anonymous|1 $start~anonymous|2 $start~anonymous|3 $start~anonymous|4 $start~anonymous|5 $start~anonymous|6 $start~anonymous|7 $start~anonymous|8 $start~anonymous|9 $start~anonymous|10 $start~anonymous|11 $start~anonymous|12 $start~anonymous|13 $start~anonymous|14 $start~anonymous|15 $start~anonymous|16 $start~anonymous|17 $start~anonymous|18 $start~anonymous|19 $start~anonymous|20 $start~anonymous|21 $start~anonymous|22 $start~anonymous|23 $start~anonymous|24 $start~anonymous|25 $start~anonymous|26 $start~anonymous|27 $start~anonymous|28 $start~anonymous|29 $start~anonymous|30 $start~anonymous|31 $start~anonymous|32 $start~anonymous|33 $start~anonymous|34 $start~anonymous|35 $start~anonymous|36 $start~anonymous|37 $start~anonymous|38 $start~anonymous|39 $start~anonymous|40 $start~anonymous|41 $start~anonymous|42 $~lib/array/Array<f32>#sort|trampoline~anonymous|43 $~lib/array/Array<f64>#sort|trampoline~anonymous|44 $~lib/array/Array<i32>#sort|trampoline~anonymous|45 $~lib/array/Array<u32>#sort|trampoline~anonymous|46 $std/array/assertSortedDefault<i32>~anonymous|47 $start~anonymous|48 $start~anonymous|49 $start~anonymous|50 $start~anonymous|51 $start~anonymous|52 $start~anonymous|53 $start~anonymous|54 $start~anonymous|55)
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
|
(data (i32.const 40) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
|
(data (i32.const 104) "\05\00\00\00\00\00\00\00\01\02\03\04\05\00\00\00")
|
|
(data (i32.const 120) "h\00\00\00\05\00\00\00")
|
|
(data (i32.const 128) "\05\00\00\00\00\00\00\00\01\01\01\04\05\00\00\00")
|
|
(data (i32.const 144) "\80\00\00\00\05\00\00\00")
|
|
(data (i32.const 152) "\0c\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
|
(data (i32.const 184) "\05\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 200) "\b8\00\00\00\05\00\00\00")
|
|
(data (i32.const 208) "\05\00\00\00\00\00\00\00\01\01\00\00\00\00\00\00")
|
|
(data (i32.const 224) "\d0\00\00\00\05\00\00\00")
|
|
(data (i32.const 232) "\05\00\00\00\00\00\00\00\01\01\00\02\02\00\00\00")
|
|
(data (i32.const 248) "\e8\00\00\00\05\00\00\00")
|
|
(data (i32.const 256) "\14\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00\00\00\00\00")
|
|
(data (i32.const 288) "\00\01\00\00\05\00\00\00")
|
|
(data (i32.const 296) "\14\00\00\00\00\00\00\00\01\00\00\00\01\00\00\00\01\00\00\00\04\00\00\00\05\00\00\00\00\00\00\00")
|
|
(data (i32.const 328) "(\01\00\00\05\00\00\00")
|
|
(data (i32.const 336) "\14\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 368) "P\01\00\00\05\00\00\00")
|
|
(data (i32.const 376) "\14\00\00\00\00\00\00\00\01\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 408) "x\01\00\00\05\00\00\00")
|
|
(data (i32.const 416) "\14\00\00\00\00\00\00\00\01\00\00\00\01\00\00\00\00\00\00\00\02\00\00\00\02\00\00\00\00\00\00\00")
|
|
(data (i32.const 448) "\a0\01\00\00\05\00\00\00")
|
|
(data (i32.const 456) "\0c\00\00\00~\00l\00i\00b\00/\00m\00a\00t\00h\00.\00t\00s\00")
|
|
(data (i32.const 488) "V\00\00\00A\00B\00C\00D\00E\00F\00G\00H\00I\00J\00K\00L\00M\00N\00O\00P\00Q\00R\00S\00T\00U\00V\00W\00X\00Y\00Z\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z\000\001\002\003\004\005\006\007\008\009\00_\00-\00,\00.\00+\00/\00\\\00[\00]\00{\00}\00(\00)\00<\00>\00*\00&\00$\00%\00^\00@\00#\00!\00?\00")
|
|
(data (i32.const 664) " \00\00\00\00\00\00\00\00\00\80?\00\00\c0\7f\00\00\80\ff\00\00\80?\00\00\00\00\00\00\80\bf\00\00\00\c0\00\00\80\7f\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 728) "\98\02\00\00\08\00\00\00")
|
|
(data (i32.const 736) " \00\00\00\00\00\00\00\00\00\80\ff\00\00\00\c0\00\00\80\bf\00\00\00\00\00\00\80?\00\00\80?\00\00\80\7f\00\00\c0\7f\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 800) "\e0\02\00\00\08\00\00\00")
|
|
(data (i32.const 808) "@\00\00\00\00\00\00\00\00\00\00\00\00\00\f0?\00\00\00\00\00\00\f8\7f\00\00\00\00\00\00\f0\ff\05\00\00\00\00\00\f0?\00\00\00\00\00\00\00\00\00\00\00\00\00\00\f0\bf\00\00\00\00\00\00\00\c0\00\00\00\00\00\00\f0\7f\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 936) "(\03\00\00\08\00\00\00")
|
|
(data (i32.const 944) "@\00\00\00\00\00\00\00\00\00\00\00\00\00\f0\ff\00\00\00\00\00\00\00\c0\00\00\00\00\00\00\f0\bf\00\00\00\00\00\00\00\00\00\00\00\00\00\00\f0?\05\00\00\00\00\00\f0?\00\00\00\00\00\00\f0\7f\00\00\00\00\00\00\f8\7f\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 1072) "\b0\03\00\00\08\00\00\00")
|
|
(data (i32.const 1080) "\14\00\00\00\00\00\00\00\01\00\00\00\fe\ff\ff\ff\ff\ff\ff\ff\00\00\00\00\02\00\00\00\00\00\00\00")
|
|
(data (i32.const 1112) "8\04\00\00\05\00\00\00")
|
|
(data (i32.const 1120) "\14\00\00\00\00\00\00\00\fe\ff\ff\ff\ff\ff\ff\ff\00\00\00\00\01\00\00\00\02\00\00\00\00\00\00\00")
|
|
(data (i32.const 1152) "`\04\00\00\05\00\00\00")
|
|
(data (i32.const 1160) "\14\00\00\00\00\00\00\00\01\00\00\00\ff\ff\ff\ff\fe\ff\ff\ff\00\00\00\00\02\00\00\00\00\00\00\00")
|
|
(data (i32.const 1192) "\88\04\00\00\05\00\00\00")
|
|
(data (i32.const 1200) "\14\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\fe\ff\ff\ff\ff\ff\ff\ff\00\00\00\00")
|
|
(data (i32.const 1232) "\b0\04\00\00\05\00\00\00")
|
|
(data (i32.const 1240) "\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 1248) "\d8\04\00\00\00\00\00\00")
|
|
(data (i32.const 1256) "\04\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00")
|
|
(data (i32.const 1272) "\e8\04\00\00\01\00\00\00")
|
|
(data (i32.const 1280) "\08\00\00\00\00\00\00\00\02\00\00\00\01\00\00\00")
|
|
(data (i32.const 1296) "\00\05\00\00\02\00\00\00")
|
|
(data (i32.const 1304) "\10\00\00\00\00\00\00\00\03\00\00\00\02\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 1336) "\18\05\00\00\04\00\00\00")
|
|
(data (i32.const 1344) "\10\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\03\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 1376) "@\05\00\00\04\00\00\00")
|
|
(data (i32.const 1384) "\04\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00")
|
|
(data (i32.const 1400) "h\05\00\00\01\00\00\00")
|
|
(data (i32.const 1408) "\08\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00")
|
|
(data (i32.const 1424) "\80\05\00\00\02\00\00\00")
|
|
(data (i32.const 1432) "\01\00\00\00a\00")
|
|
(data (i32.const 1440) "\01\00\00\00b\00")
|
|
(data (i32.const 1448) "\02\00\00\00a\00b\00")
|
|
(data (i32.const 1456) "\02\00\00\00b\00a\00")
|
|
(data (i32.const 1464) "\00\00\00\00")
|
|
(data (i32.const 1472) "\1c\00\00\00\00\00\00\00\98\05\00\00\a0\05\00\00\98\05\00\00\a8\05\00\00\b0\05\00\00\b8\05\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 1536) "\c0\05\00\00\07\00\00\00")
|
|
(data (i32.const 1544) "\1c\00\00\00\00\00\00\00\b8\05\00\00\98\05\00\00\98\05\00\00\a8\05\00\00\a0\05\00\00\b0\05\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
(data (i32.const 1608) "\08\06\00\00\07\00\00\00")
|
|
(data (i32.const 1616) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
|
(data (i32.const 1648) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
|
(data (i32.const 1704) "\04\00\00\00n\00u\00l\00l\00")
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $~lib/internal/arraybuffer/computeSize (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.sub
|
|
(i32.const 32)
|
|
(i32.clz
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(get_global $~lib/internal/allocator/MAX_SIZE_32)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(get_global $~lib/allocator/arena/offset)
|
|
)
|
|
(set_local $4
|
|
(i32.and
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $1)
|
|
(select
|
|
(tee_local $2
|
|
(get_local $0)
|
|
)
|
|
(tee_local $3
|
|
(i32.const 1)
|
|
)
|
|
(i32.gt_u
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
|
)
|
|
(i32.xor
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(current_memory)
|
|
)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.shr_u
|
|
(i32.and
|
|
(i32.add
|
|
(i32.sub
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.xor
|
|
(i32.const 65535)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(select
|
|
(tee_local $3
|
|
(get_local $5)
|
|
)
|
|
(tee_local $6
|
|
(get_local $2)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $3)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(get_local $3)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_local $4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(i32.le_u
|
|
(get_local $0)
|
|
(get_global $~lib/internal/arraybuffer/MAX_BLENGTH)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 40)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(block $~lib/memory/memory.allocate|inlined.0 (result i32)
|
|
(set_local $2
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(br $~lib/memory/memory.allocate|inlined.0
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/memory/memory.allocate (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
|
(return
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/memory/memset (; 6 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i64)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 6)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(set_local $3
|
|
(i32.and
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const -4)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.mul
|
|
(i32.div_u
|
|
(i32.const -1)
|
|
(i32.const 255)
|
|
)
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 24)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 20)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 28)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(i32.const 24)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i64.or
|
|
(i64.extend_u/i32
|
|
(get_local $4)
|
|
)
|
|
(i64.shl
|
|
(i64.extend_u/i32
|
|
(get_local $4)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
(block
|
|
(block
|
|
(i64.store
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#constructor (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 23)
|
|
(i32.const 39)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $0)
|
|
(get_local $0)
|
|
(tee_local $0
|
|
(block (result i32)
|
|
(set_local $4
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.0
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<u8>#fill (; 8 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(tee_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(get_local $2)
|
|
)
|
|
(tee_local $7
|
|
(get_local $5)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(tee_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(get_local $3)
|
|
)
|
|
(tee_local $7
|
|
(get_local $5)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.1
|
|
(set_local $6
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.sub
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $6)
|
|
(get_local $1)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<u8>#__get (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<u8,u8>|inlined.0 (result i32)
|
|
(i32.load8_u offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<u8> (; 10 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(block $~lib/array/Array<u8>#get:length|inlined.0 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $2)
|
|
(block $~lib/array/Array<u8>#get:length|inlined.2 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.and
|
|
(call $~lib/array/Array<u8>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
(i32.and
|
|
(call $~lib/array/Array<u8>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/array/Array<u8>#fill|trampoline (; 11 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(block $2of2
|
|
(block $1of2
|
|
(block $0of2
|
|
(block $outOfRange
|
|
(br_table $0of2 $1of2 $2of2 $outOfRange
|
|
(i32.sub
|
|
(get_global $~argc)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(get_global $~lib/builtins/i32.MAX_VALUE)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u8>#fill
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#fill (; 12 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(tee_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(get_local $2)
|
|
)
|
|
(tee_local $7
|
|
(get_local $5)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(tee_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $6
|
|
(get_local $3)
|
|
)
|
|
(tee_local $7
|
|
(get_local $5)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<u32,u32>|inlined.0
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<u32>#__get (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<u32,u32>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<u32> (; 14 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(block $~lib/array/Array<u32>#get:length|inlined.0 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $2)
|
|
(block $~lib/array/Array<u32>#get:length|inlined.2 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/array/Array<u32>#fill|trampoline (; 15 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(block $2of2
|
|
(block $1of2
|
|
(block $0of2
|
|
(block $outOfRange
|
|
(br_table $0of2 $1of2 $2of2 $outOfRange
|
|
(i32.sub
|
|
(get_global $~argc)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(get_global $~lib/builtins/i32.MAX_VALUE)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u32>#fill
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(func $std/array/internalCapacity<i32> (; 16 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.shr_s
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $~lib/internal/memory/memcpy (; 17 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(block $break|0
|
|
(loop $continue|0
|
|
(if
|
|
(if (result i32)
|
|
(get_local $2)
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(block
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
(block
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(i32.store16
|
|
(get_local $0)
|
|
(i32.load16_u
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
(block $break|2
|
|
(block $case2|2
|
|
(block $case1|2
|
|
(block $case0|2
|
|
(set_local $5
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(br_if $case0|2
|
|
(i32.eq
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br_if $case1|2
|
|
(i32.eq
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(br_if $case2|2
|
|
(i32.eq
|
|
(get_local $5)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block $break|3
|
|
(loop $continue|3
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 17)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $4)
|
|
(i32.const 24)
|
|
)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 9)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 13)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $4)
|
|
(i32.const 24)
|
|
)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $break|4
|
|
(loop $continue|4
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 18)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $4)
|
|
(i32.const 16)
|
|
)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 14)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $4)
|
|
(i32.const 16)
|
|
)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|5
|
|
(loop $continue|5
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 19)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $4)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 11)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $4)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $5
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/memory/memmove (; 18 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return)
|
|
)
|
|
(if
|
|
(if (result i32)
|
|
(tee_local $3
|
|
(i32.le_u
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(i32.le_u
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/internal/memory/memcpy
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 7)
|
|
)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
(block
|
|
(block $break|0
|
|
(loop $continue|0
|
|
(if
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
(block
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $3
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $3
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(block
|
|
(i64.store
|
|
(get_local $0)
|
|
(i64.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(loop $continue|2
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(block
|
|
(i32.store8
|
|
(block (result i32)
|
|
(set_local $3
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.load8_u
|
|
(block (result i32)
|
|
(set_local $3
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 7)
|
|
)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
(block
|
|
(block $break|3
|
|
(loop $continue|3
|
|
(if
|
|
(i32.and
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 7)
|
|
)
|
|
(block
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load8_u
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|4
|
|
(loop $continue|4
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i64.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|5
|
|
(loop $continue|5
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load8_u
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 19 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.le_s
|
|
(get_local $1)
|
|
(get_global $~lib/internal/arraybuffer/MAX_BLENGTH)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 40)
|
|
(i32.const 37)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $1)
|
|
(i32.sub
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
(get_local $2)
|
|
)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.2
|
|
(set_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(set_local $5
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $3)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.copy|inlined.0
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(get_local $4)
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.3
|
|
(set_local $3
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $3)
|
|
(get_local $4)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 40)
|
|
(i32.const 61)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#push (; 20 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 165)
|
|
(i32.const 42)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.0
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(func $~lib/array/Array<i32>#__get (; 21 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#pop (; 22 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $1
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 177)
|
|
(i32.const 20)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.1 (result i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(tee_local $1
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $~lib/array/Array<i32>#unshift (; 23 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $4)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 267)
|
|
(i32.const 42)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.copy|inlined.1
|
|
(set_local $6
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shl
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(get_local $6)
|
|
(get_local $7)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.1
|
|
(set_local $8
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(func $~lib/array/Array<i32>#shift (; 24 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $1
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 238)
|
|
(i32.const 20)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.2 (result i32)
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.copy|inlined.2
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(get_local $3)
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.2
|
|
(set_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $~lib/array/Array<i32>#reverse (; 25 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $1
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.3 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.3
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.4 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.4
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#indexOf (; 26 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(if (result i32)
|
|
(tee_local $4
|
|
(i32.eq
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(set_local $2
|
|
(select
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(tee_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $4)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $continue|0
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
(block
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.6 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const -1)
|
|
)
|
|
(func $~lib/array/Array<i32>#includes (; 27 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(if (result i32)
|
|
(tee_local $4
|
|
(i32.eq
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(set_local $2
|
|
(select
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(tee_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $4)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $continue|0
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
(block
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.8 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $~lib/array/Array<i32>#splice (; 28 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
(set_local $1
|
|
(select
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(tee_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $4)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
(return)
|
|
)
|
|
(set_local $2
|
|
(select
|
|
(tee_local $4
|
|
(get_local $2)
|
|
)
|
|
(tee_local $5
|
|
(i32.sub
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.copy|inlined.3
|
|
(set_local $4
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $6)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $6)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#__set (; 29 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 87)
|
|
(i32.const 41)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.5
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|1 (; 30 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#findIndex (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $5
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiii)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.10 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const -1)
|
|
)
|
|
(func $start~anonymous|2 (; 32 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(func $start~anonymous|3 (; 33 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|4 (; 34 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|5 (; 35 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|6 (; 36 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|7 (; 37 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#every (; 38 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $5
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiii)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.12 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $start~anonymous|8 (; 39 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.le_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $start~anonymous|9 (; 40 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|10 (; 41 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|11 (; 42 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(func $start~anonymous|12 (; 43 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#some (; 44 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $5
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiii)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.14 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $start~anonymous|13 (; 45 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.le_s
|
|
(get_local $0)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(func $start~anonymous|14 (; 46 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|15 (; 47 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|16 (; 48 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(func $start~anonymous|17 (; 49 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#forEach (; 50 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $5
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiiv)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.15 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|18 (; 51 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|19 (; 52 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|20 (; 53 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|21 (; 54 ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
|
|
(f32.convert_s/i32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f32>#constructor (; 55 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 23)
|
|
(i32.const 39)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $0)
|
|
(get_local $0)
|
|
(tee_local $0
|
|
(block (result i32)
|
|
(set_local $4
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.4
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#map<f32> (; 56 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 f32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(call $~lib/array/Array<f32>#constructor
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $7
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<f32,f32>|inlined.0
|
|
(set_local $8
|
|
(block (result f32)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiif)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.16 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $~lib/array/Array<f32>#__get (; 57 ;) (type $iif) (param $0 i32) (param $1 i32) (result f32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result f32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<f32,f32>|inlined.0 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $start~anonymous|22 (; 58 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#map<i32> (; 59 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $7
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $6)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.6
|
|
(set_local $7
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiii)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.17 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $start~anonymous|23 (; 60 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $start~anonymous|24 (; 61 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $start~anonymous|25 (; 62 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#filter (; 63 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $6
|
|
(i32.lt_s
|
|
(get_local $5)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.18 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiii)
|
|
(get_local $6)
|
|
(get_local $5)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $4)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $start~anonymous|26 (; 64 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start~anonymous|27 (; 65 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start~anonymous|28 (; 66 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start~anonymous|29 (; 67 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#reduce<i32> (; 68 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $3
|
|
(get_local $2)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(set_local $6
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $7
|
|
(i32.lt_s
|
|
(get_local $5)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 4)
|
|
)
|
|
(call_indirect (type $iiiii)
|
|
(get_local $3)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.19 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $start~anonymous|30 (; 69 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|31 (; 70 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#reduce<bool> (; 71 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $3
|
|
(get_local $2)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(block
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(set_local $6
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $7
|
|
(i32.lt_s
|
|
(get_local $5)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $5)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 4)
|
|
)
|
|
(call_indirect (type $iiiii)
|
|
(get_local $3)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.20 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $start~anonymous|32 (; 72 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|33 (; 73 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|34 (; 74 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|35 (; 75 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|36 (; 76 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#reduceRight<i32> (; 77 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $3
|
|
(get_local $2)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 4)
|
|
)
|
|
(call_indirect (type $iiiii)
|
|
(get_local $3)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.21 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.sub
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $start~anonymous|37 (; 78 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|38 (; 79 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#reduceRight<bool> (; 80 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $3
|
|
(get_local $2)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 4)
|
|
)
|
|
(call_indirect (type $iiiii)
|
|
(get_local $3)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.22 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.sub
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $start~anonymous|39 (; 81 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|40 (; 82 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|41 (; 83 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|42 (; 84 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/math/murmurHash3 (; 85 ;) (type $II) (param $0 i64) (result i64)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 33)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.mul
|
|
(get_local $0)
|
|
(i64.const -49064778989728563)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 33)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.mul
|
|
(get_local $0)
|
|
(i64.const -4265267296055464877)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 33)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/math/NativeMath.seedRandom (; 86 ;) (type $Iv) (param $0 i64)
|
|
(if
|
|
(i64.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 456)
|
|
(i32.const 1000)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~lib/math/random_seeded
|
|
(i32.const 1)
|
|
)
|
|
(set_global $~lib/math/random_state0
|
|
(call $~lib/math/murmurHash3
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_global $~lib/math/random_state1
|
|
(call $~lib/math/murmurHash3
|
|
(get_global $~lib/math/random_state0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<f32> (; 87 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 f32)
|
|
(local $6 i32)
|
|
(local $7 f32)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.0 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.1 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $ffi)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.1
|
|
(set_local $8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/allocator/arena/__memory_free (; 88 ;) (type $iv) (param $0 i32)
|
|
(nop)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<f32> (; 89 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 f32)
|
|
(local $10 f32)
|
|
(local $11 i32)
|
|
(local $12 f32)
|
|
(set_local $4
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/memory/memory.allocate|inlined.1 (result i32)
|
|
(br $~lib/memory/memory.allocate|inlined.1
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.5
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(get_local $6)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.2 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.3 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $ffi)
|
|
(get_local $9)
|
|
(get_local $10)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $6)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.2
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.3
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.4 (result f32)
|
|
(set_local $8
|
|
(i32.const 0)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.4
|
|
(set_local $8
|
|
(i32.const 0)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.5 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.5
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.const 1)
|
|
)
|
|
(block $break|3
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(block
|
|
(set_local $8
|
|
(get_local $7)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|4
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.6 (result f32)
|
|
(set_local $11
|
|
(i32.const 0)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $11)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.7 (result f32)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $ffi)
|
|
(get_local $10)
|
|
(get_local $9)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.6
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.7
|
|
(set_local $11
|
|
(i32.const 0)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $11)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.free|inlined.0
|
|
(block
|
|
(call $~lib/allocator/arena/__memory_free
|
|
(get_local $5)
|
|
)
|
|
(br $~lib/memory/memory.free|inlined.0)
|
|
)
|
|
)
|
|
(set_local $12
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.8 (result f32)
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.8
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f32,f32>|inlined.9 (result f32)
|
|
(set_local $7
|
|
(i32.const 0)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f32,f32>|inlined.9
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $12)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f32>#sort (; 90 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 f32)
|
|
(local $6 f32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<f32,f32>|inlined.1 (result f32)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<f32,f32>|inlined.2 (result f32)
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $ffi)
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<f32,f32>|inlined.1
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<f32,f32>|inlined.2
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<f32>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<f32>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f32>#sort|trampoline~anonymous|43 (; 91 ;) (type $ffi) (param $0 f32) (param $1 f32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(set_local $2
|
|
(i32.reinterpret/f32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.reinterpret/f32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.xor
|
|
(get_local $2)
|
|
(i32.shr_u
|
|
(i32.shr_s
|
|
(get_local $2)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.xor
|
|
(get_local $3)
|
|
(i32.shr_u
|
|
(i32.shr_s
|
|
(get_local $3)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.sub
|
|
(i32.gt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f32>#sort|trampoline (; 92 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(block $~lib/internal/array/defaultComparator<f32>|inlined.0 (result i32)
|
|
(br $~lib/internal/array/defaultComparator<f32>|inlined.0
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<f32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/builtins/isNaN<f32> (; 93 ;) (type $fi) (param $0 f32) (result i32)
|
|
(f32.ne
|
|
(get_local $0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<f32> (; 94 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(block $~lib/array/Array<f32>#get:length|inlined.1 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $2)
|
|
(block $~lib/array/Array<f32>#get:length|inlined.3 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(block $continue|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(call $~lib/builtins/isNaN<f32>
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(call $~lib/builtins/isNaN<f32>
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
(if
|
|
(f32.ne
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<f64> (; 95 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 f64)
|
|
(local $6 i32)
|
|
(local $7 f64)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.0 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.1 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $FFi)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.1
|
|
(set_local $8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<f64> (; 96 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 f64)
|
|
(local $10 f64)
|
|
(local $11 i32)
|
|
(local $12 f64)
|
|
(set_local $4
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/memory/memory.allocate|inlined.2 (result i32)
|
|
(br $~lib/memory/memory.allocate|inlined.2
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.6
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(get_local $6)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.2 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.3 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $FFi)
|
|
(get_local $9)
|
|
(get_local $10)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $6)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.2
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.3
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.4 (result f64)
|
|
(set_local $8
|
|
(i32.const 0)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.4
|
|
(set_local $8
|
|
(i32.const 0)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.5 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.5
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.const 1)
|
|
)
|
|
(block $break|3
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(block
|
|
(set_local $8
|
|
(get_local $7)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|4
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.6 (result f64)
|
|
(set_local $11
|
|
(i32.const 0)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $11)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.7 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $FFi)
|
|
(get_local $10)
|
|
(get_local $9)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.6
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.7
|
|
(set_local $11
|
|
(i32.const 0)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $11)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.free|inlined.1
|
|
(block
|
|
(call $~lib/allocator/arena/__memory_free
|
|
(get_local $5)
|
|
)
|
|
(br $~lib/memory/memory.free|inlined.1)
|
|
)
|
|
)
|
|
(set_local $12
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.8 (result f64)
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.8
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<f64,f64>|inlined.9 (result f64)
|
|
(set_local $7
|
|
(i32.const 0)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<f64,f64>|inlined.9
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $12)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#sort (; 97 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 f64)
|
|
(local $6 f64)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<f64,f64>|inlined.0 (result f64)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<f64,f64>|inlined.1 (result f64)
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $FFi)
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<f64,f64>|inlined.0
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<f64,f64>|inlined.1
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<f64>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<f64>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#sort|trampoline~anonymous|44 (; 98 ;) (type $FFi) (param $0 f64) (param $1 f64) (result i32)
|
|
(local $2 i64)
|
|
(local $3 i64)
|
|
(set_local $2
|
|
(i64.reinterpret/f64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.xor
|
|
(get_local $2)
|
|
(i64.shr_u
|
|
(i64.shr_s
|
|
(get_local $2)
|
|
(i64.const 63)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i64.xor
|
|
(get_local $3)
|
|
(i64.shr_u
|
|
(i64.shr_s
|
|
(get_local $3)
|
|
(i64.const 63)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.sub
|
|
(i64.gt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
(i64.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#sort|trampoline (; 99 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(block $~lib/internal/array/defaultComparator<f64>|inlined.0 (result i32)
|
|
(br $~lib/internal/array/defaultComparator<f64>|inlined.0
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<f64>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#__get (; 100 ;) (type $iiF) (param $0 i32) (param $1 i32) (result f64)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result f64)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<f64,f64>|inlined.2 (result f64)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $~lib/builtins/isNaN<f64> (; 101 ;) (type $Fi) (param $0 f64) (result i32)
|
|
(f64.ne
|
|
(get_local $0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<f64> (; 102 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(block $~lib/array/Array<f64>#get:length|inlined.0 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $2)
|
|
(block $~lib/array/Array<f64>#get:length|inlined.2 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(block $continue|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(call $~lib/builtins/isNaN<f64>
|
|
(call $~lib/array/Array<f64>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(call $~lib/builtins/isNaN<f64>
|
|
(call $~lib/array/Array<f64>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
(if
|
|
(f64.ne
|
|
(call $~lib/array/Array<f64>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/array/Array<f64>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<i32> (; 103 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.1 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.1
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<i32> (; 104 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 i32)
|
|
(local $10 i32)
|
|
(local $11 i32)
|
|
(local $12 i32)
|
|
(set_local $4
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/memory/memory.allocate|inlined.3 (result i32)
|
|
(br $~lib/memory/memory.allocate|inlined.3
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.7
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(get_local $6)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.2 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.3 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $9)
|
|
(get_local $10)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $6)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.2
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.3
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.4 (result i32)
|
|
(set_local $10
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $10)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.4
|
|
(set_local $9
|
|
(i32.const 0)
|
|
)
|
|
(set_local $8
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.5 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.5
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.const 1)
|
|
)
|
|
(block $break|3
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $9
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(block
|
|
(set_local $8
|
|
(get_local $9)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|4
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.6 (result i32)
|
|
(set_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.7 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $10)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.6
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.7
|
|
(set_local $11
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $11)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.free|inlined.2
|
|
(block
|
|
(call $~lib/allocator/arena/__memory_free
|
|
(get_local $5)
|
|
)
|
|
(br $~lib/memory/memory.free|inlined.2)
|
|
)
|
|
)
|
|
(set_local $12
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.8 (result i32)
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.8
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<i32,i32>|inlined.9 (result i32)
|
|
(set_local $9
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<i32,i32>|inlined.9
|
|
(set_local $9
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $12)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#sort (; 105 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.23 (result i32)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<i32,i32>|inlined.24 (result i32)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.7
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.8
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<i32>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<i32>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#sort|trampoline~anonymous|45 (; 106 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#sort|trampoline (; 107 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(block $~lib/internal/array/defaultComparator<i32>|inlined.0 (result i32)
|
|
(br $~lib/internal/array/defaultComparator<i32>|inlined.0
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<i32> (; 108 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(block $~lib/array/Array<i32>#get:length|inlined.29 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $2)
|
|
(block $~lib/array/Array<i32>#get:length|inlined.31 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<u32> (; 109 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.1 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.1
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<u32> (; 110 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 i32)
|
|
(local $10 i32)
|
|
(local $11 i32)
|
|
(local $12 i32)
|
|
(set_local $4
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/memory/memory.allocate|inlined.4 (result i32)
|
|
(br $~lib/memory/memory.allocate|inlined.4
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.8
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.gt_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(get_local $6)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $7
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.2 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.3 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $9)
|
|
(get_local $10)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $6)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.2
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.3
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.eqz
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.4 (result i32)
|
|
(set_local $10
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $10)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.4
|
|
(set_local $9
|
|
(i32.const 0)
|
|
)
|
|
(set_local $8
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.5 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.5
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.const 1)
|
|
)
|
|
(block $break|3
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $9
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(block
|
|
(set_local $8
|
|
(get_local $9)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|4
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $10
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.6 (result i32)
|
|
(set_local $7
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.7 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $10)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $8)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.6
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.7
|
|
(set_local $11
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $11)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.shr_s
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(block $~lib/memory/memory.free|inlined.3
|
|
(block
|
|
(call $~lib/allocator/arena/__memory_free
|
|
(get_local $5)
|
|
)
|
|
(br $~lib/memory/memory.free|inlined.3)
|
|
)
|
|
)
|
|
(set_local $12
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.8 (result i32)
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.8
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(set_local $9
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<u32,u32>|inlined.9 (result i32)
|
|
(set_local $9
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u32,u32>|inlined.9
|
|
(set_local $9
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $12)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#sort (; 111 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<u32,u32>|inlined.1 (result i32)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<u32,u32>|inlined.2 (result i32)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<u32,u32>|inlined.1
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<u32,u32>|inlined.2
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<u32>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<u32>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#sort|trampoline~anonymous|46 (; 112 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#sort|trampoline (; 113 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(block $~lib/internal/array/defaultComparator<u32>|inlined.0 (result i32)
|
|
(br $~lib/internal/array/defaultComparator<u32>|inlined.0
|
|
(i32.const 46)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $std/array/createReverseOrderedArray (; 114 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(block $~lib/array/Array<i32>#get:length|inlined.33 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(i32.sub
|
|
(i32.sub
|
|
(block $~lib/array/Array<i32>#get:length|inlined.34 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/math/NativeMath.random (; 115 ;) (type $F) (result f64)
|
|
(local $0 i64)
|
|
(local $1 i64)
|
|
(local $2 i64)
|
|
(if
|
|
(i32.eqz
|
|
(get_global $~lib/math/random_seeded)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 456)
|
|
(i32.const 1007)
|
|
(i32.const 24)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(get_global $~lib/math/random_state0)
|
|
)
|
|
(set_local $1
|
|
(get_global $~lib/math/random_state1)
|
|
)
|
|
(set_global $~lib/math/random_state0
|
|
(get_local $1)
|
|
)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(i64.shl
|
|
(get_local $0)
|
|
(i64.const 23)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 17)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.xor
|
|
(get_local $0)
|
|
(i64.shr_u
|
|
(get_local $1)
|
|
(i64.const 26)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/math/random_state1
|
|
(get_local $0)
|
|
)
|
|
(set_local $2
|
|
(i64.or
|
|
(i64.and
|
|
(i64.add
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i64.const 4503599627370495)
|
|
)
|
|
(i64.const 4607182418800017408)
|
|
)
|
|
)
|
|
(f64.sub
|
|
(f64.reinterpret/i64
|
|
(get_local $2)
|
|
)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(func $std/array/createRandomOrderedArray (; 116 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(block $~lib/array/Array<i32>#get:length|inlined.36 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(call $~lib/math/NativeMath.random)
|
|
(f64.convert_s/i32
|
|
(block $~lib/array/Array<i32>#get:length|inlined.37 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $std/array/assertSortedDefault<i32>~anonymous|47 (; 117 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $std/array/isSorted<i32> (; 118 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(block $break|0
|
|
(block
|
|
(set_local $2
|
|
(i32.const 1)
|
|
)
|
|
(set_local $3
|
|
(block $~lib/array/Array<i32>#get:length|inlined.38 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/array/assertSorted<i32> (; 119 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isSorted<i32>
|
|
(call $~lib/array/Array<i32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 639)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/assertSortedDefault<i32> (; 120 ;) (type $iv) (param $0 i32)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_local $0)
|
|
(block $~lib/internal/array/defaultComparator<i32>|inlined.1 (result i32)
|
|
(br $~lib/internal/array/defaultComparator<i32>|inlined.1
|
|
(i32.const 47)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|48 (; 121 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|49 (; 122 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $start~anonymous|50 (; 123 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|51 (; 124 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Array<i32>>#constructor (; 125 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 23)
|
|
(i32.const 39)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $0)
|
|
(get_local $0)
|
|
(tee_local $0
|
|
(block (result i32)
|
|
(set_local $4
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.9
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<Array<i32>>#__set (; 126 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 87)
|
|
(i32.const 41)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Array<i32>,Array<i32>>|inlined.0
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Array<i32>>#__get (; 127 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Array<i32>,Array<i32>>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $std/array/createReverseOrderedNestedArray (; 128 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<Array<i32>>#constructor
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(block $~lib/array/Array<Array<i32>>#get:length|inlined.1 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/array/Array<Array<i32>>#__set
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(call $~lib/array/Array<Array<i32>>#__get
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
(i32.sub
|
|
(i32.sub
|
|
(block $~lib/array/Array<Array<i32>>#get:length|inlined.2 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $start~anonymous|52 (; 129 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<Array<i32>> (; 130 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<Array<i32>,Array<i32>>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<Array<i32>,Array<i32>>|inlined.1 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<Array<i32>,Array<i32>>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<Array<i32>,Array<i32>>|inlined.1
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Array<i32>>#sort (; 131 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Array<i32>,Array<i32>>|inlined.1 (result i32)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Array<i32>,Array<i32>>|inlined.2 (result i32)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Array<i32>,Array<i32>>|inlined.1
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Array<i32>,Array<i32>>|inlined.2
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<Array<i32>>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $std/array/isSorted<Array<i32>> (; 132 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(block $break|0
|
|
(block
|
|
(set_local $2
|
|
(i32.const 1)
|
|
)
|
|
(set_local $3
|
|
(block $~lib/array/Array<Array<i32>>#get:length|inlined.3 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(call $~lib/array/Array<Array<i32>>#__get
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<Array<i32>>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/array/assertSorted<Array<i32>> (; 133 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isSorted<Array<i32>>
|
|
(call $~lib/array/Array<Array<i32>>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 639)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Proxy<i32>>#constructor (; 134 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 23)
|
|
(i32.const 39)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $0)
|
|
(get_local $0)
|
|
(tee_local $0
|
|
(block (result i32)
|
|
(set_local $4
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.10
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $std/array/Proxy<i32>#constructor (; 135 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $0)
|
|
(get_local $0)
|
|
(tee_local $0
|
|
(block (result i32)
|
|
(set_local $2
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Proxy<i32>>#__set (; 136 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 87)
|
|
(i32.const 41)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Proxy<i32>,Proxy<i32>>|inlined.0
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/createReverseOrderedElementsArray (; 137 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<Proxy<i32>>#constructor
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(block $~lib/array/Array<Proxy<i32>>#get:length|inlined.1 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<Proxy<i32>>#__set
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(call $std/array/Proxy<i32>#constructor
|
|
(i32.const 0)
|
|
(i32.sub
|
|
(i32.sub
|
|
(block $~lib/array/Array<Proxy<i32>>#get:length|inlined.2 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $start~anonymous|53 (; 138 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<Proxy<i32>> (; 139 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<Proxy<i32>,Proxy<i32>>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<Proxy<i32>,Proxy<i32>>|inlined.1 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<Proxy<i32>,Proxy<i32>>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<Proxy<i32>,Proxy<i32>>|inlined.1
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Proxy<i32>>#sort (; 140 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Proxy<i32>,Proxy<i32>>|inlined.0 (result i32)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Proxy<i32>,Proxy<i32>>|inlined.1 (result i32)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Proxy<i32>,Proxy<i32>>|inlined.1
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Proxy<i32>,Proxy<i32>>|inlined.2
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<Proxy<i32>>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Proxy<i32>>#__get (; 141 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Proxy<i32>,Proxy<i32>>|inlined.2 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $std/array/isSorted<Proxy<i32>> (; 142 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(block $break|0
|
|
(block
|
|
(set_local $2
|
|
(i32.const 1)
|
|
)
|
|
(set_local $3
|
|
(block $~lib/array/Array<Proxy<i32>>#get:length|inlined.3 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(call $~lib/array/Array<Proxy<i32>>#__get
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<Proxy<i32>>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/array/assertSorted<Proxy<i32>> (; 143 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isSorted<Proxy<i32>>
|
|
(call $~lib/array/Array<Proxy<i32>>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 639)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/string/compareUnsafe (; 144 ;) (type $iiiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(set_local $6
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $continue|0
|
|
(if
|
|
(if (result i32)
|
|
(get_local $4)
|
|
(i32.eqz
|
|
(tee_local $5
|
|
(i32.sub
|
|
(i32.load16_u offset=4
|
|
(get_local $6)
|
|
)
|
|
(i32.load16_u offset=4
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $4
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(func $~lib/string/String.__gt (; 145 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(i32.eq
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(select
|
|
(tee_local $2
|
|
(get_local $3)
|
|
)
|
|
(tee_local $5
|
|
(get_local $4)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(call $~lib/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/string/String.__lt (; 146 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(i32.eq
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(select
|
|
(tee_local $2
|
|
(get_local $3)
|
|
)
|
|
(tee_local $5
|
|
(get_local $4)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(call $~lib/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $start~anonymous|54 (; 147 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(call $~lib/string/String.__gt
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/string/String.__lt
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<String> (; 148 ;) (type $iiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(block $break|0
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<String,String>|inlined.0 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $6)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block
|
|
(set_local $7
|
|
(block $~lib/internal/arraybuffer/loadUnsafeWithOffset<String,String>|inlined.1 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $5)
|
|
(get_local $7)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<String,String>|inlined.0
|
|
(set_local $8
|
|
(i32.add
|
|
(block (result i32)
|
|
(set_local $8
|
|
(get_local $6)
|
|
)
|
|
(set_local $6
|
|
(i32.sub
|
|
(get_local $8)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $8)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<String,String>|inlined.1
|
|
(set_local $7
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(get_local $7)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<String>#sort (; 149 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 330)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<String,String>|inlined.0 (result i32)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<String,String>|inlined.1 (result i32)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<String,String>|inlined.0
|
|
(set_local $6
|
|
(i32.const 1)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<String,String>|inlined.1
|
|
(set_local $6
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<String>
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<String>#__get (; 150 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<String,String>|inlined.2 (result i32)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $std/array/isSorted<String> (; 151 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(block $break|0
|
|
(block
|
|
(set_local $2
|
|
(i32.const 1)
|
|
)
|
|
(set_local $3
|
|
(block $~lib/array/Array<String>#get:length|inlined.0 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call_indirect (type $iii)
|
|
(call $~lib/array/Array<String>#__get
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<String>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/array/assertSorted<String> (; 152 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isSorted<String>
|
|
(call $~lib/array/Array<String>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 639)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/string/String.__eq (; 153 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(i32.eq
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $3)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.eqz
|
|
(call $~lib/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/string/String.__ne (; 154 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<String> (; 155 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(block $~lib/array/Array<String>#get:length|inlined.1 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_local $2)
|
|
(block $~lib/array/Array<String>#get:length|inlined.3 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/string/String.__ne
|
|
(call $~lib/array/Array<String>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/array/Array<String>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/array/Array<String>#constructor (; 156 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 23)
|
|
(i32.const 39)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $0)
|
|
(get_local $0)
|
|
(tee_local $0
|
|
(block (result i32)
|
|
(set_local $4
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block $~lib/memory/memory.fill|inlined.11
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/internal/string/allocateUnsafe (; 157 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(if (result i32)
|
|
(tee_local $1
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.le_s
|
|
(get_local $0)
|
|
(get_global $~lib/internal/string/MAX_LENGTH)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 14)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(block $~lib/memory/memory.allocate|inlined.5 (result i32)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_global $~lib/internal/string/HEADER_SIZE)
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $~lib/memory/memory.allocate|inlined.5
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/string/String#charAt (; 158 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(i32.ne
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1616)
|
|
(i32.const 54)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(get_local $2)
|
|
(i32.load16_u offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/string/copyUnsafe (; 159 ;) (type $iiiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(block $~lib/memory/memory.copy|inlined.4
|
|
(set_local $5
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_global $~lib/internal/string/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(get_global $~lib/internal/string/HEADER_SIZE)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/string/String#concat (; 160 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.eqz
|
|
(i32.ne
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1616)
|
|
(i32.const 106)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
(set_local $1
|
|
(i32.const 1704)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $5)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(func $~lib/string/String.__concat (; 161 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.const 1704)
|
|
)
|
|
)
|
|
(call $~lib/string/String#concat
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $std/array/createRandomString (; 162 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 f64)
|
|
(set_local $1
|
|
(i32.const 1464)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/string/String#charAt
|
|
(get_global $std/array/charset)
|
|
(i32.trunc_s/f64
|
|
(block $~lib/math/NativeMath.floor|inlined.0 (result f64)
|
|
(set_local $3
|
|
(f64.mul
|
|
(call $~lib/math/NativeMath.random)
|
|
(f64.convert_s/i32
|
|
(i32.load
|
|
(get_global $std/array/charset)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.floor
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<String>#__set (; 163 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_u
|
|
(i32.load
|
|
(get_local $3)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 87)
|
|
(i32.const 41)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<String,String>|inlined.2
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/createRandomStringArray (; 164 ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<String>#constructor
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(block $~lib/array/Array<String>#get:length|inlined.5 (result i32)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<String>#__set
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(call $std/array/createRandomString
|
|
(i32.trunc_s/f64
|
|
(f64.mul
|
|
(call $~lib/math/NativeMath.random)
|
|
(f64.const 32)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $start~anonymous|55 (; 165 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(call $~lib/string/String.__gt
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/string/String.__lt
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $start (; 166 ;) (type $v)
|
|
(local $0 i32)
|
|
(set_global $~lib/allocator/arena/startOffset
|
|
(i32.and
|
|
(i32.add
|
|
(get_global $HEAP_BASE)
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
|
)
|
|
(i32.xor
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
)
|
|
(set_global $std/array/arr
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u8>#fill
|
|
(get_global $std/array/arr8)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 144)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 36)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 1)
|
|
)
|
|
(call $~lib/array/Array<u8>#fill|trampoline
|
|
(get_global $std/array/arr8)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 200)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 39)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u8>#fill
|
|
(get_global $std/array/arr8)
|
|
(i32.const 1)
|
|
(i32.const 0)
|
|
(i32.const -3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 224)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call $~lib/array/Array<u8>#fill|trampoline
|
|
(get_global $std/array/arr8)
|
|
(i32.const 2)
|
|
(i32.const -2)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 248)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 45)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#fill
|
|
(get_global $std/array/arr32)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 328)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 50)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 1)
|
|
)
|
|
(call $~lib/array/Array<u32>#fill|trampoline
|
|
(get_global $std/array/arr32)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 368)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 53)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#fill
|
|
(get_global $std/array/arr32)
|
|
(i32.const 1)
|
|
(i32.const 0)
|
|
(i32.const -3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 408)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 56)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(call $~lib/array/Array<u32>#fill|trampoline
|
|
(get_global $std/array/arr32)
|
|
(i32.const 2)
|
|
(i32.const -2)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 448)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 59)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.0 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 63)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 64)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 68)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.1 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 69)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 70)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 74)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.2 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 75)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 76)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.3 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 80)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 81)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 82)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.4 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 86)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 87)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 88)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 89)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.5 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 93)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 94)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 95)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 96)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 97)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#unshift
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.6 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 103)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 104)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 105)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 106)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 107)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 108)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#unshift
|
|
(get_global $std/array/arr)
|
|
(i32.const 41)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.7 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 112)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 113)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 41)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 114)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 115)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 116)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 117)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 118)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#shift
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 41)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 124)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.8 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 125)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 126)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 127)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 128)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 129)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 130)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 134)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.9 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 135)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 136)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 137)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 138)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 139)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#reverse
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.10 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 145)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 146)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 147)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 148)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 149)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 158)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 162)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 45)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 166)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 170)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 174)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 178)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 182)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 186)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 190)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 194)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 200)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 204)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 45)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 208)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 212)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 216)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 220)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 224)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 228)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 232)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(call $~lib/array/Array<i32>#includes
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 236)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#splice
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.11 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 240)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 241)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 242)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 243)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
(i32.const 2)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
(i32.const 3)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 253)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 256)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 259)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 267)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.12 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 268)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 270)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 283)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.13 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 284)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/every)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 292)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/every)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 295)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 9)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/every)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 303)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.14 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 304)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/every)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 306)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 11)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/every)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 319)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.15 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 320)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/some)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 328)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 13)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/some)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 331)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 14)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/some)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 339)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.16 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 340)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/some)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 342)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/some)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 355)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.17 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 356)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 17)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 365)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 18)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 374)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.18 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 375)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 19)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 406)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 378)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 20)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 392)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.19 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 393)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/newArr
|
|
(call $~lib/array/Array<i32>#map<f32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 21)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<f32>#get:length|inlined.0 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/newArr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 402)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(f32.eq
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_global $std/array/newArr)
|
|
(i32.const 0)
|
|
)
|
|
(f32.convert_s/i32
|
|
(call $~lib/array/Array<i32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 403)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#map<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 22)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 412)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.20 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 413)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#map<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 23)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 406)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 420)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#map<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 435)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.21 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 436)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/filteredArr
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 25)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.22 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/filteredArr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 444)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 26)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 453)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.23 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 454)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 27)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 406)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 461)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 28)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 476)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.24 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 477)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 29)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 485)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 489)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduce<bool>
|
|
(get_global $std/array/arr)
|
|
(i32.const 31)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/boolVal)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 492)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduce<bool>
|
|
(get_global $std/array/arr)
|
|
(i32.const 32)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/boolVal)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 495)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 33)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 503)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.25 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 504)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 34)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 506)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 35)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 519)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.26 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 520)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 36)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 528)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 37)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 532)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduceRight<bool>
|
|
(get_global $std/array/arr)
|
|
(i32.const 38)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/boolVal)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 535)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduceRight<bool>
|
|
(get_global $std/array/arr)
|
|
(i32.const 39)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/boolVal)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 538)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 40)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 546)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.27 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 547)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 41)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 549)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 562)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.eq
|
|
(block $~lib/array/Array<i32>#get:length|inlined.28 (result i32)
|
|
(set_local $0
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 563)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(call $~lib/math/NativeMath.seedRandom
|
|
(i64.reinterpret/f64
|
|
(call $~lib/math/JSMath.random)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<f32>#sort|trampoline
|
|
(get_global $std/array/f32ArrayTyped)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<f32>
|
|
(get_global $std/array/f32ArrayTyped)
|
|
(i32.const 800)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 650)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<f64>#sort|trampoline
|
|
(get_global $std/array/f64ArrayTyped)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<f64>
|
|
(get_global $std/array/f64ArrayTyped)
|
|
(i32.const 1072)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 654)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#sort|trampoline
|
|
(get_global $std/array/i32ArrayTyped)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/i32ArrayTyped)
|
|
(i32.const 1152)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 658)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(block (result i32)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<u32>#sort|trampoline
|
|
(get_global $std/array/u32ArrayTyped)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/u32ArrayTyped)
|
|
(i32.const 1232)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 662)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed64
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 64)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed128
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 128)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed1024
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 1024)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed10000
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(set_global $std/array/randomized512
|
|
(call $std/array/createRandomOrderedArray
|
|
(i32.const 512)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed0)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed1)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed1)
|
|
(i32.const 1400)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 682)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed2)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed2)
|
|
(i32.const 1424)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 685)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed4)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed4)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 688)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed64)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed64)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 691)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed128)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed128)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 694)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed1024)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed1024)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 697)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed10000)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<i32>
|
|
(get_global $std/array/reversed10000)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 700)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/randomized512)
|
|
)
|
|
(set_global $std/array/randomized64
|
|
(call $std/array/createRandomOrderedArray
|
|
(i32.const 64)
|
|
)
|
|
)
|
|
(set_global $std/array/randomized257
|
|
(call $std/array/createRandomOrderedArray
|
|
(i32.const 257)
|
|
)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized64)
|
|
(i32.const 48)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized64)
|
|
(i32.const 49)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized257)
|
|
(i32.const 50)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized257)
|
|
(i32.const 51)
|
|
)
|
|
(set_global $std/array/reversedNested512
|
|
(call $std/array/createReverseOrderedNestedArray
|
|
(i32.const 512)
|
|
)
|
|
)
|
|
(call $std/array/assertSorted<Array<i32>>
|
|
(get_global $std/array/reversedNested512)
|
|
(i32.const 52)
|
|
)
|
|
(set_global $std/array/reversedElements512
|
|
(call $std/array/createReverseOrderedElementsArray
|
|
(i32.const 512)
|
|
)
|
|
)
|
|
(call $std/array/assertSorted<Proxy<i32>>
|
|
(get_global $std/array/reversedElements512)
|
|
(i32.const 53)
|
|
)
|
|
(call $std/array/assertSorted<String>
|
|
(get_global $std/array/randomStringsActual)
|
|
(i32.const 54)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<String>
|
|
(get_global $std/array/randomStringsActual)
|
|
(get_global $std/array/randomStringsExpected)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 729)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/randomStrings400
|
|
(call $std/array/createRandomStringArray
|
|
(i32.const 400)
|
|
)
|
|
)
|
|
(call $std/array/assertSorted<String>
|
|
(get_global $std/array/randomStrings400)
|
|
(i32.const 55)
|
|
)
|
|
)
|
|
(func $null (; 167 ;) (type $v)
|
|
)
|
|
)
|