2017-12-16 02:27:39 +01:00
|
|
|
(module
|
2018-04-11 23:35:19 +02:00
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
2018-02-02 03:07:54 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2018-04-04 01:42:23 +03:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-01-28 19:14:20 +01:00
|
|
|
(type $iiiv (func (param i32 i32 i32)))
|
2018-01-14 21:17:43 +01:00
|
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
2018-04-22 23:15:38 +03:00
|
|
|
(type $iiv (func (param i32 i32)))
|
|
|
|
(type $iiif (func (param i32 i32 i32) (result f32)))
|
|
|
|
(type $iif (func (param i32 i32) (result f32)))
|
2018-03-25 13:13:53 +02:00
|
|
|
(type $iiiii (func (param i32 i32 i32 i32) (result i32)))
|
2018-04-11 23:35:19 +02:00
|
|
|
(type $F (func (result f64)))
|
|
|
|
(type $Iv (func (param i64)))
|
|
|
|
(type $II (func (param i64) (result i64)))
|
|
|
|
(type $iv (func (param i32)))
|
2018-01-13 23:38:07 +01:00
|
|
|
(type $v (func))
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-04-11 23:35:19 +02:00
|
|
|
(import "JSMath" "random" (func $~lib/math/JSMath.random (result f64)))
|
2018-04-02 19:05:26 +02:00
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
2018-01-13 23:38:07 +01:00
|
|
|
(global $std/array/arr (mut i32) (i32.const 0))
|
|
|
|
(global $std/array/i (mut i32) (i32.const 0))
|
2018-03-17 17:02:15 +01:00
|
|
|
(global $std/array/includes (mut i32) (i32.const 0))
|
2018-05-11 16:31:56 +02:00
|
|
|
(global $~argc (mut i32) (i32.const 0))
|
2018-03-25 13:13:53 +02:00
|
|
|
(global $std/array/every (mut i32) (i32.const 0))
|
|
|
|
(global $std/array/some (mut i32) (i32.const 0))
|
2018-04-22 23:15:38 +03:00
|
|
|
(global $std/array/newArr (mut i32) (i32.const 0))
|
|
|
|
(global $std/array/filteredArr (mut i32) (i32.const 0))
|
2018-03-25 13:13:53 +02:00
|
|
|
(global $std/array/boolVal (mut i32) (i32.const 0))
|
2018-04-11 23:35:19 +02:00
|
|
|
(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))
|
2018-04-23 22:49:04 +02:00
|
|
|
(global $std/array/reversed0 (mut i32) (i32.const 0))
|
2018-05-14 16:55:55 +02:00
|
|
|
(global $std/array/reversed1 (mut i32) (i32.const 336))
|
|
|
|
(global $std/array/reversed2 (mut i32) (i32.const 360))
|
|
|
|
(global $std/array/reversed4 (mut i32) (i32.const 384))
|
|
|
|
(global $std/array/expected4 (mut i32) (i32.const 424))
|
2018-04-11 23:35:19 +02:00
|
|
|
(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))
|
2018-04-04 01:42:23 +03:00
|
|
|
(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))
|
2018-04-15 01:35:17 +03:00
|
|
|
(global $std/array/reversedNested512 (mut i32) (i32.const 0))
|
|
|
|
(global $std/array/reversedElements512 (mut i32) (i32.const 0))
|
2018-05-14 16:55:55 +02:00
|
|
|
(global $std/array/randomStringsActual (mut i32) (i32.const 552))
|
|
|
|
(global $std/array/randomStringsExpected (mut i32) (i32.const 624))
|
2018-04-15 01:35:17 +03:00
|
|
|
(global $std/array/randomStrings400 (mut i32) (i32.const 0))
|
2018-05-14 16:55:55 +02:00
|
|
|
(global $HEAP_BASE i32 (i32.const 792))
|
2018-04-22 23:15:38 +03:00
|
|
|
(table 51 51 anyfunc)
|
|
|
|
(elem (i32.const 0) $start~anonymous|0 $start~anonymous|1 $start~anonymous|2 $start~anonymous|3 $start~anonymous|2 $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|16 $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|28 $start~anonymous|30 $start~anonymous|31 $start~anonymous|32 $start~anonymous|28 $start~anonymous|34 $start~anonymous|28 $start~anonymous|28 $start~anonymous|30 $start~anonymous|31 $start~anonymous|32 $start~anonymous|28 $start~anonymous|34 $std/array/assertSortedDefault<i32>~anonymous|42 $start~anonymous|43 $start~anonymous|44 $start~anonymous|43 $start~anonymous|44 $start~anonymous|47 $start~anonymous|48 $start~anonymous|49 $start~anonymous|49)
|
2017-12-16 02:27:39 +01:00
|
|
|
(memory $0 1)
|
2018-05-14 16:55:55 +02:00
|
|
|
(data (i32.const 8) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s")
|
|
|
|
(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")
|
|
|
|
(data (i32.const 100) "\0c\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00.\00t\00s")
|
|
|
|
(data (i32.const 128) "\0c\00\00\00~\00l\00i\00b\00/\00m\00a\00t\00h\00.\00t\00s")
|
|
|
|
(data (i32.const 156) "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?")
|
|
|
|
(data (i32.const 336) "X\01\00\00\01\00\00\00\04\00\00\00\00\00\00\00\01")
|
|
|
|
(data (i32.const 360) "p\01\00\00\02\00\00\00\08\00\00\00\00\00\00\00\02\00\00\00\01")
|
|
|
|
(data (i32.const 384) "\88\01\00\00\04\00\00\00\10\00\00\00\00\00\00\00\03\00\00\00\02\00\00\00\01")
|
|
|
|
(data (i32.const 424) "\b0\01\00\00\04\00\00\00\10")
|
|
|
|
(data (i32.const 444) "\01\00\00\00\02\00\00\00\03")
|
|
|
|
(data (i32.const 464) "\d8\01\00\00\01\00\00\00\04\00\00\00\00\00\00\00\01")
|
|
|
|
(data (i32.const 488) "\f0\01\00\00\02\00\00\00\08\00\00\00\00\00\00\00\01\00\00\00\02")
|
|
|
|
(data (i32.const 512) "\01\00\00\00a")
|
|
|
|
(data (i32.const 520) "\01\00\00\00b")
|
|
|
|
(data (i32.const 528) "\02\00\00\00a\00b")
|
|
|
|
(data (i32.const 536) "\02\00\00\00b\00a")
|
|
|
|
(data (i32.const 552) "0\02\00\00\07\00\00\00\1c")
|
|
|
|
(data (i32.const 569) "\02\00\00\08\02\00\00\00\02\00\00\10\02\00\00\18\02\00\00 \02")
|
|
|
|
(data (i32.const 624) "x\02\00\00\07\00\00\00\1c\00\00\00\00\00\00\00 \02\00\00\00\02\00\00\00\02\00\00\10\02\00\00\08\02\00\00\18\02")
|
|
|
|
(data (i32.const 696) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
|
|
|
(data (i32.const 728) "\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")
|
|
|
|
(data (i32.const 780) "\04\00\00\00n\00u\00l\00l")
|
2017-12-16 02:27:39 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-03-25 13:13:53 +02:00
|
|
|
(export "table" (table $0))
|
2018-01-13 23:38:07 +01:00
|
|
|
(start $start)
|
2018-04-11 23:35:19 +02:00
|
|
|
(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.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 7)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(func $~lib/allocator/arena/allocate_memory (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
2018-01-28 19:14:20 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
(get_local $0)
|
2018-04-03 23:56:48 +02:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741824)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(if
|
|
|
|
(i32.gt_u
|
2018-05-14 16:55:55 +02:00
|
|
|
(tee_local $0
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(get_global $~lib/allocator/arena/offset)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 7)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.const -8)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.shl
|
2018-05-14 16:55:55 +02:00
|
|
|
(tee_local $2
|
2018-04-03 23:56:48 +02:00
|
|
|
(current_memory)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
(select
|
2018-05-14 16:55:55 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.sub
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 65535)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const -65536)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 16)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
|
|
|
(i32.gt_s
|
2018-05-14 16:55:55 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(unreachable)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
2018-05-14 16:55:55 +02:00
|
|
|
(get_local $0)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
|
|
|
(return
|
|
|
|
(get_local $1)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.const 0)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(func $~lib/internal/arraybuffer/allocUnsafe (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741816)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 40)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 22)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(tee_local $1
|
|
|
|
(call $~lib/allocator/arena/allocate_memory
|
|
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $0)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $1)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(func $~lib/memory/set_memory (; 5 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i64)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-01-28 19:14:20 +01:00
|
|
|
(i32.eqz
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $2)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(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
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(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)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(tee_local $3
|
|
|
|
(i32.and
|
|
|
|
(i32.sub
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(tee_local $1
|
|
|
|
(i32.mul
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 16843009)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.and
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.const 28)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i64.or
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i64.extend_u/i32
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(i64.shl
|
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i64.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(func $~lib/array/Array<i32>#constructor (; 6 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 268435454)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 23)
|
|
|
|
(i32.const 39)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(call $~lib/internal/arraybuffer/allocUnsafe
|
|
|
|
(tee_local $3
|
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/allocator/arena/allocate_memory
|
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(call $~lib/memory/set_memory
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#get:length (; 7 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/internalCapacity<i32> (; 8 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.shr_s
|
|
|
|
(i32.load
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/memory/copy_memory (; 9 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $5 i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(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
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(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
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(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
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load16_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(return)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(block $case2|2
|
|
|
|
(block $case1|2
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(tee_local $3
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(br_if $case1|2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $case2|2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 3)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(br $break|2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-01-13 23:38:07 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 17)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 9)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 13)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $4
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 18)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 14)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|5
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 19)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 11)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 15)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 16)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(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)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-01-13 23:38:07 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 8)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-01-13 23:38:07 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-01-28 15:30:49 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-01-14 02:30:20 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $4
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/memory/move_memory (; 10 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-01-28 15:30:49 +01:00
|
|
|
(local $3 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $4 i32)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(return)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(tee_local $3
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.le_u
|
|
|
|
(i32.add
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.le_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $3)
|
2018-01-28 15:30:49 +01:00
|
|
|
(block
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/memory/copy_memory
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-14 02:41:13 +01:00
|
|
|
(block
|
|
|
|
(if
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.eq
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $1)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-14 02:41:13 +01:00
|
|
|
)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-14 02:41:13 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(block
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(loop $continue|2
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-14 02:41:13 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(br $continue|2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 02:41:13 +01:00
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $1)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-28 15:30:49 +01:00
|
|
|
(get_local $0)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.and
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-02-12 19:47:32 +02:00
|
|
|
(i32.const 7)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i64.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(br $continue|5)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/internal/arraybuffer/reallocUnsafe (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-01-28 19:14:20 +01:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $4 i32)
|
2018-01-28 19:14:20 +01:00
|
|
|
(if
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.gt_s
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.load
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.gt_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1073741816)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 40)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 32)
|
|
|
|
(i32.const 4)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(if
|
|
|
|
(i32.le_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.sub
|
|
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(call $~lib/memory/set_memory
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/memory/move_memory
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(call $~lib/internal/arraybuffer/allocUnsafe
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 8)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(call $~lib/memory/set_memory
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(return
|
|
|
|
(get_local $3)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 40)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 56)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#push (; 12 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(set_local $3
|
2018-01-28 19:14:20 +01:00
|
|
|
(i32.add
|
2018-04-11 23:35:19 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.ge_u
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(tee_local $4
|
|
|
|
(i32.load
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 268435454)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 143)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $0)
|
2018-04-11 23:35:19 +02:00
|
|
|
(tee_local $4
|
|
|
|
(call $~lib/internal/arraybuffer/reallocUnsafe
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $3)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store offset=8
|
2018-01-28 19:14:20 +01:00
|
|
|
(i32.add
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#__get (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 2)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-23 23:57:15 +02:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(unreachable)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#pop (; 14 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(tee_local $1
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 154)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 20)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(unreachable)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
2018-01-28 19:14:20 +01:00
|
|
|
(i32.add
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $1
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
2018-01-28 19:14:20 +01:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#unshift (; 15 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-01-28 15:30:49 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 1)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(if
|
|
|
|
(i32.ge_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(tee_local $5
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(tee_local $2
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 268435454)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 244)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 42)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(unreachable)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(tee_local $2
|
|
|
|
(call $~lib/internal/arraybuffer/reallocUnsafe
|
|
|
|
(get_local $2)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 2)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $~lib/memory/move_memory
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.sub
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-04-13 15:31:23 +02:00
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#shift (; 16 ;) (type $ii) (param $0 i32) (result i32)
|
2018-01-13 23:38:07 +01:00
|
|
|
(local $1 i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $4 i32)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.lt_s
|
2018-04-11 23:35:19 +02:00
|
|
|
(tee_local $1
|
|
|
|
(i32.load offset=4
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 215)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load offset=8
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2018-04-13 15:31:23 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/memory/move_memory
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 4)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $1
|
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 2)
|
2018-01-14 02:30:20 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store offset=8
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-01-14 02:30:20 +01:00
|
|
|
(i32.const 0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store offset=4
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_local $0)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#reverse (; 17 ;) (type $ii) (param $0 i32) (result i32)
|
2018-01-14 21:17:43 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(local $4 i32)
|
|
|
|
(set_local $3
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $4
|
|
|
|
(i32.load offset=8
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.add
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $3)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.shl
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $1)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.add
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $3)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.shl
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $2)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.shl
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#indexOf (; 18 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-17 17:02:15 +01:00
|
|
|
(local $3 i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(local $4 i32)
|
2018-03-17 17:02:15 +01:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
|
|
|
(tee_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.eqz
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.ge_s
|
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $3)
|
2018-03-17 17:02:15 +01:00
|
|
|
(return
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_local $2
|
|
|
|
(select
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.gt_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
|
|
|
(i32.const 0)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-24 23:11:11 +02:00
|
|
|
(set_local $0
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.lt_s
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#includes (; 19 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-17 17:02:15 +01:00
|
|
|
(local $3 i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(local $4 i32)
|
2018-03-17 17:02:15 +01:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
|
|
|
(tee_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.eqz
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.ge_s
|
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $3)
|
2018-03-17 17:02:15 +01:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_local $2
|
|
|
|
(select
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.gt_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
|
|
|
(i32.const 0)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-24 23:11:11 +02:00
|
|
|
(set_local $0
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.lt_s
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#splice (; 20 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $3
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load offset=4
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_local $1
|
|
|
|
(select
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 0)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.gt_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.const 0)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $1)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(return)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/memory/move_memory
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 8)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.shl
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $1)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.shl
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $2
|
|
|
|
(select
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(tee_local $1
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.lt_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(get_local $1)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.shl
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $2)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.const 2)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store offset=4
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $0)
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#__set (; 21 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(local $3 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $4 i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.ge_u
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $1)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 268435454)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 86)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 41)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(unreachable)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
2018-04-07 03:27:22 +02:00
|
|
|
(tee_local $3
|
2018-04-11 23:35:19 +02:00
|
|
|
(call $~lib/internal/arraybuffer/reallocUnsafe
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $3)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.store offset=8
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.add
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $3)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|0 (; 22 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#findIndex (; 23 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $5 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $5)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.and
|
|
|
|
(call_indirect (type $iiii)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(return
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|1 (; 24 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|2 (; 25 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|3 (; 26 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $2)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|5 (; 27 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|6 (; 28 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#every (; 29 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $5 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $5)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.and
|
|
|
|
(call_indirect (type $iiii)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|7 (; 30 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.le_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|8 (; 31 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $2)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|9 (; 32 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|10 (; 33 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|11 (; 34 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#some (; 35 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(local $5 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $5)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.and
|
|
|
|
(call_indirect (type $iiii)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(return
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|12 (; 36 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.le_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|13 (; 37 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $2)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|14 (; 38 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.gt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|15 (; 39 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|16 (; 40 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#forEach (; 41 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $5)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(call_indirect (type $iiiv)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|17 (; 42 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $2)
|
|
|
|
(i32.const 100)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|19 (; 43 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/array/i)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|20 (; 44 ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(f32.convert_s/i32
|
|
|
|
(get_local $0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#map<f32> (; 45 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $7
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $6
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(f32.store offset=8
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $7)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(call_indirect (type $iiif)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $6)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<f32>#__get (; 46 ;) (type $iif) (param $0 i32) (param $1 i32) (result f32)
|
2018-04-23 23:57:15 +02:00
|
|
|
(if (result f32)
|
|
|
|
(i32.lt_u
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $1)
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $0
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-23 23:57:15 +02:00
|
|
|
(f32.load offset=8
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-04-23 23:57:15 +02:00
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-23 23:57:15 +02:00
|
|
|
(unreachable)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|21 (; 47 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 100)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(get_local $0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#map<i32> (; 48 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $7
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $6
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $7)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call_indirect (type $iiii)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $6)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(func $start~anonymous|22 (; 49 ;) (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)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|23 (; 50 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/array/i)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|24 (; 51 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#filter (; 52 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-04 01:42:23 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_local $5
|
2018-04-08 01:53:22 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_local $6
|
|
|
|
(i32.load offset=4
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_local $4
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#constructor
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $6)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.and
|
|
|
|
(call_indirect (type $iiii)
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_local $4)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|25 (; 53 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|26 (; 54 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.add
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|27 (; 55 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|28 (; 56 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#reduce<i32> (; 57 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $6
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(tee_local $4
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $6)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $4
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(call_indirect (type $iiiii)
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $3)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|30 (; 58 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(if (result i32)
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(func $start~anonymous|31 (; 59 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
|
|
(if (result i32)
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $0)
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|32 (; 60 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|34 (; 61 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#reduceRight<i32> (; 62 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(set_local $4
|
2018-04-08 01:53:22 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $3
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(call_indirect (type $iiiii)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $3)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.sub
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/math/murmurHash3 (; 63 ;) (type $II) (param $0 i64) (result i64)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i64.xor
|
|
|
|
(tee_local $0
|
|
|
|
(i64.mul
|
|
|
|
(i64.xor
|
|
|
|
(tee_local $0
|
|
|
|
(i64.mul
|
|
|
|
(i64.xor
|
|
|
|
(get_local $0)
|
|
|
|
(i64.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 33)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i64.const -49064778989728563)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i64.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 33)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i64.const -4265267296055464877)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i64.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 33)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/math/NativeMath.seedRandom (; 64 ;) (type $Iv) (param $0 i64)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i64.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 128)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1000)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/createReverseOrderedArray (; 65 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__set
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
(i32.sub
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/math/NativeMath.random (; 66 ;) (type $F) (result f64)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $0 i64)
|
|
|
|
(local $1 i64)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_global $~lib/math/random_seeded)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 128)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1007)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(get_global $~lib/math/random_state0)
|
|
|
|
)
|
|
|
|
(set_global $~lib/math/random_state0
|
|
|
|
(tee_local $1
|
|
|
|
(get_global $~lib/math/random_state1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $~lib/math/random_state1
|
|
|
|
(tee_local $0
|
|
|
|
(i64.xor
|
|
|
|
(i64.xor
|
|
|
|
(i64.xor
|
|
|
|
(tee_local $0
|
|
|
|
(i64.xor
|
|
|
|
(get_local $0)
|
|
|
|
(i64.shl
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 23)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i64.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 17)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i64.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i64.const 26)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.sub
|
|
|
|
(f64.reinterpret/i64
|
|
|
|
(i64.or
|
|
|
|
(i64.and
|
|
|
|
(i64.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i64.const 4503599627370495)
|
|
|
|
)
|
|
|
|
(i64.const 4607182418800017408)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/createRandomOrderedArray (; 67 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $1 i32)
|
|
|
|
(set_local $0
|
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__set
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(call $~lib/math/NativeMath.random)
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/assertSortedDefault<i32>~anonymous|42 (; 68 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/internal/array/insertionSort<i32> (; 69 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $7
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $7)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $6
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_s
|
|
|
|
(call_indirect (type $iii)
|
|
|
|
(get_local $6)
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $8
|
|
|
|
(get_local $5)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.sub
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $3)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(br $continue|1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/allocator/arena/free_memory (; 70 ;) (type $iv) (param $0 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(nop)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/internal/array/weakHeapSort<i32> (; 71 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $9 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/memory/set_memory
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $7
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/allocator/arena/allocate_memory
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.shl
|
|
|
|
(i32.shr_s
|
|
|
|
(i32.add
|
2018-05-11 16:31:56 +02:00
|
|
|
(tee_local $8
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 31)
|
|
|
|
)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $3
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.sub
|
|
|
|
(get_local $8)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.le_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $4
|
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $7)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.shr_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 6)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.and
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.shr_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 31)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $4
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shr_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(br $continue|1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $4
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shr_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $6
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(call_indirect (type $iii)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $6)
|
|
|
|
(get_local $1)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $9
|
|
|
|
(i32.add
|
|
|
|
(get_local $7)
|
|
|
|
(i32.shl
|
|
|
|
(i32.shr_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.xor
|
|
|
|
(i32.load
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $9)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 31)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $6)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $3
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.sub
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|2
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $3
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.sub
|
|
|
|
(get_local $8)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|2
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|2
|
|
|
|
(i32.lt_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $6
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $6)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $4
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $7)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.shr_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 5)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.and
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 31)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(br $continue|3)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.gt_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $6
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $4
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(call_indirect (type $iii)
|
|
|
|
(get_local $6)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $8
|
|
|
|
(i32.add
|
|
|
|
(get_local $7)
|
|
|
|
(i32.shl
|
|
|
|
(i32.shr_s
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.xor
|
|
|
|
(i32.load
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $8)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.and
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 31)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $6)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.store offset=8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $4)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shr_s
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $3
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.sub
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $3)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $~lib/allocator/arena/free_memory
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $7)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(set_local $1
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<i32>#sort (; 72 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.le_s
|
|
|
|
(tee_local $2
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(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 $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $4
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(call_indirect (type $iii)
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $4)
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 256)
|
|
|
|
)
|
|
|
|
(call $~lib/internal/array/insertionSort<i32>
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(call $~lib/internal/array/weakHeapSort<i32>
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/isSorted<i32> (; 73 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $2
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $3
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.gt_s
|
|
|
|
(call_indirect (type $iii)
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_local $0)
|
|
|
|
(i32.sub
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/assertSorted<i32> (; 74 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isSorted<i32>
|
|
|
|
(call $~lib/array/Array<i32>#sort
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 605)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/assertSortedDefault<i32> (; 75 ;) (type $iv) (param $0 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $std/array/assertSorted<i32>
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/isArraysEqual<i32> (; 76 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $3 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $3)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $3)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|43 (; 77 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|44 (; 78 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/createReverseOrderedNestedArray (; 79 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $~lib/array/Array<i32>#__set
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $0)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__set
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 0)
|
|
|
|
(i32.sub
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|47 (; 80 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/array/Array<Array<i32>>#sort (; 81 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-05-02 20:33:17 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.le_s
|
|
|
|
(tee_local $2
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(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 $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $4
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-05-02 20:33:17 +03:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(call_indirect (type $iii)
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $4)
|
|
|
|
(get_local $1)
|
2018-05-02 20:33:17 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-05-02 20:33:17 +03:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store offset=8
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $~lib/internal/array/insertionSort<i32>
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/assertSorted<Array<i32>> (; 82 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-05-02 20:33:17 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isSorted<i32>
|
|
|
|
(call $~lib/array/Array<Array<i32>>#sort
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-05-02 20:33:17 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-05-02 20:33:17 +03:00
|
|
|
(i32.const 605)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/Proxy<i32>#constructor (; 83 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/allocator/arena/allocate_memory
|
|
|
|
(i32.const 4)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/createReverseOrderedElementsArray (; 84 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__set
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
(call $std/array/Proxy<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.sub
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|48 (; 85 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/memory/compare_memory (; 86 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.eq
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String.__gt (; 87 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
|
|
|
(tee_local $2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.eqz
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $2
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
|
|
|
(call $~lib/memory/compare_memory
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(select
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $3)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String.__lt (; 88 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
|
|
|
(tee_local $2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.eqz
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_local $2
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.lt_s
|
|
|
|
(call $~lib/memory/compare_memory
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(select
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start~anonymous|49 (; 89 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.sub
|
|
|
|
(call $~lib/string/String.__gt
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(call $~lib/string/String.__lt
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String.__eq (; 90 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-04 01:42:23 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(tee_local $2
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.eqz
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-04 01:42:23 +03:00
|
|
|
(tee_local $2
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(return
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.eqz
|
|
|
|
(call $~lib/memory/compare_memory
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String.__ne (; 91 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.eqz
|
|
|
|
(call $~lib/string/String.__eq
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $1)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/isArraysEqual<String> (; 92 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $3 i32)
|
2018-04-04 01:42:23 +03:00
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.eqz
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_local $2
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
|
|
|
(call $~lib/string/String.__ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $3)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $3)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/internal/string/allocate (; 93 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $1 i32)
|
2018-04-04 01:42:23 +03:00
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $1
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.le_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 536870910)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 728)
|
2018-07-10 04:31:51 +03:00
|
|
|
(i32.const 25)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.store
|
|
|
|
(tee_local $1
|
|
|
|
(call $~lib/allocator/arena/allocate_memory
|
|
|
|
(i32.add
|
|
|
|
(i32.shl
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String#charAt (; 94 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
2018-04-04 01:42:23 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 696)
|
2018-07-13 16:40:37 +03:00
|
|
|
(i32.const 29)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 544)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store16 offset=4
|
|
|
|
(tee_local $2
|
|
|
|
(call $~lib/internal/string/allocate
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load16_u offset=4
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String#concat (; 95 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $5 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 696)
|
2018-07-13 16:40:37 +03:00
|
|
|
(i32.const 85)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(set_local $1
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 780)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(tee_local $4
|
|
|
|
(i32.load
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(return
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 544)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/memory/move_memory
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
|
|
|
(i32.add
|
|
|
|
(tee_local $2
|
|
|
|
(call $~lib/internal/string/allocate
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 4)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.add
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $0
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(call $~lib/memory/move_memory
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $4)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $2)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $~lib/string/String.__concat (; 96 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_local $0
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 780)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/string/String#concat
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_local $0)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/createRandomString (; 97 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-15 01:35:17 +03:00
|
|
|
(local $1 i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $2 i32)
|
2018-04-15 01:35:17 +03:00
|
|
|
(set_local $1
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 544)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(set_local $1
|
|
|
|
(call $~lib/string/String.__concat
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/string/String#charAt
|
|
|
|
(i32.const 156)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.floor
|
|
|
|
(f64.mul
|
|
|
|
(call $~lib/math/NativeMath.random)
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load
|
|
|
|
(i32.const 156)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $std/array/createRandomStringArray (; 98 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-22 23:15:38 +03:00
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(block $break|0
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(loop $repeat|0
|
2018-05-23 11:32:12 +02:00
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
(call $~lib/array/Array<i32>#__set
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
(call $std/array/createRandomString
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(call $~lib/math/NativeMath.random)
|
|
|
|
(f64.const 32)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-05-25 15:59:17 +02:00
|
|
|
(br $repeat|0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_local $1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-05-11 16:31:56 +02:00
|
|
|
(func $start (; 99 ;) (type $v)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $~lib/allocator/arena/startOffset
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.and
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.add
|
|
|
|
(get_global $HEAP_BASE)
|
|
|
|
(i32.const 7)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const -8)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
|
|
)
|
|
|
|
(set_global $std/array/arr
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 17)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 18)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 22)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 23)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 24)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 28)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 29)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 30)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-17 00:02:55 +03:00
|
|
|
(i32.const 1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 34)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 35)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 36)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 44)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 40)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 41)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 42)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 45)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 47)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 3)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 48)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 49)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 44)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 50)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 45)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 51)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#unshift
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 42)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 57)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 58)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 59)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 43)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 60)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 2)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 61)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 45)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 62)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#unshift
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 41)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 66)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(unreachable)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $std/array/internalCapacity<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 5)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 67)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.const 41)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 68)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 42)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 69)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 70)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 3)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 71)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 45)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 72)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#shift
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 41)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 78)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 79)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-11 23:35:19 +02:00
|
|
|
(call $std/array/internalCapacity<i32>
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 5)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 80)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 81)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#__get
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 43)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 82)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 83)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 45)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 84)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 45)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 88)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 89)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $std/array/internalCapacity<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 5)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 90)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 42)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 91)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(i32.const 43)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 92)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(i32.const 44)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 93)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#reverse
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 99)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-11 23:35:19 +02:00
|
|
|
(call $std/array/internalCapacity<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 5)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 100)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 101)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 102)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 42)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 103)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 44)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 44)
|
|
|
|
(i32.const 0)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_global $std/array/i)
|
2018-03-25 13:13:53 +02:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 112)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 42)
|
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 116)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 45)
|
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const -1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 120)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const -1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 124)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const -100)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 128)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const -2)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 132)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
|
|
|
(i32.const -4)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 136)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 140)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 144)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 148)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 44)
|
|
|
|
(i32.const 0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 154)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 42)
|
|
|
|
(i32.const 0)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 158)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
2018-05-11 16:31:56 +02:00
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 45)
|
|
|
|
(i32.const 0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 162)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 100)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_global $std/array/includes)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 166)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const -100)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 170)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const -2)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 174)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 178)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 182)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 186)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/includes
|
|
|
|
(call $~lib/array/Array<i32>#includes
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/includes)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 190)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#splice
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 4)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 194)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-11 23:35:19 +02:00
|
|
|
(call $std/array/internalCapacity<i32>
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 5)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 195)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 196)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#__get
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 42)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 197)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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 0)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_global $std/array/i)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 207)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#findIndex
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 210)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const -1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 213)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const -1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 221)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 8)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 222)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.eq
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const -1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 224)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(drop
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_global $std/array/arr)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_global $std/array/arr)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 5)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const -1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 237)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 238)
|
2018-01-13 23:38:07 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/every
|
|
|
|
(call $~lib/array/Array<i32>#every
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 6)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/every)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 246)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/every
|
|
|
|
(call $~lib/array/Array<i32>#every
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 7)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/every)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 249)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/every
|
|
|
|
(call $~lib/array/Array<i32>#every
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 8)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/every)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 257)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 258)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/every
|
|
|
|
(call $~lib/array/Array<i32>#every
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 9)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/every)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 260)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(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 10)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/every)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 273)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 274)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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 11)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/some)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 282)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/some
|
|
|
|
(call $~lib/array/Array<i32>#some
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 12)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/some)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 285)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/some
|
|
|
|
(call $~lib/array/Array<i32>#some
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 13)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/some)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 293)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 294)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/some
|
|
|
|
(call $~lib/array/Array<i32>#some
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 14)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/some)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 296)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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 15)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_global $std/array/some)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 309)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 310)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(call $~lib/array/Array<i32>#forEach
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 319)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(call $~lib/array/Array<i32>#forEach
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 17)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 328)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 8)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 329)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(call $~lib/array/Array<i32>#forEach
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 18)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 406)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 332)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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 19)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 346)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-01-13 23:38:07 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 347)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#push
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/newArr
|
|
|
|
(call $~lib/array/Array<i32>#map<f32>
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 20)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/newArr)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 356)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(f32.ne
|
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 357)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#map<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 21)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 6)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 366)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 8)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 367)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#map<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 22)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 406)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 374)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#map<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 23)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 1)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 389)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 390)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/filteredArr
|
|
|
|
(call $~lib/array/Array<i32>#filter
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 24)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/filteredArr)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 2)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 398)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#filter
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 25)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 407)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 408)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#filter
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 26)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 406)
|
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 415)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(drop
|
|
|
|
(call $~lib/array/Array<i32>#filter
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 27)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 430)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 431)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 28)
|
|
|
|
(i32.const 0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 439)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 29)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 443)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/boolVal
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 30)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-04-22 23:15:38 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/boolVal)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 446)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/boolVal
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 31)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/boolVal)
|
2018-03-17 17:02:15 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 449)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 32)
|
|
|
|
(i32.const 0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 457)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 458)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 33)
|
|
|
|
(i32.const 0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.ne
|
2018-04-22 23:15:38 +03:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 10)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 460)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-03-25 13:13:53 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(set_global $std/array/i
|
|
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 34)
|
|
|
|
(i32.const 0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.ne
|
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-17 17:02:15 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 473)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 474)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#push
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 35)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 482)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 36)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 4)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 10)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 486)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/boolVal
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 37)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/boolVal)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 489)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/boolVal
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
|
|
(get_global $std/array/arr)
|
|
|
|
(i32.const 38)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/boolVal)
|
2018-03-17 17:02:15 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 492)
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
2018-03-17 17:02:15 +01:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 39)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 6)
|
2018-03-17 17:02:15 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-17 17:02:15 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 500)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
2018-01-14 21:17:43 +01:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 8)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 501)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 40)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
|
|
|
(i32.const 10)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 503)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-03-25 13:13:53 +02:00
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/array/Array<i32>#pop
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/i
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/arr)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 41)
|
2018-03-25 13:13:53 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-03-25 13:13:53 +02:00
|
|
|
(get_global $std/array/i)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 6)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 516)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-04-22 23:15:38 +03:00
|
|
|
(call $~lib/array/Array<i32>#get:length
|
|
|
|
(get_global $std/array/arr)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 517)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-22 23:15:38 +03:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(call $~lib/math/NativeMath.seedRandom
|
|
|
|
(i64.reinterpret/f64
|
|
|
|
(call $~lib/math/JSMath.random)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 22:49:04 +02:00
|
|
|
(set_global $std/array/reversed0
|
|
|
|
(call $~lib/array/Array<i32>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_global $std/array/reversed64
|
2018-04-04 01:42:23 +03:00
|
|
|
(call $std/array/createReverseOrderedArray
|
|
|
|
(i32.const 64)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_global $std/array/reversed128
|
2018-04-04 01:42:23 +03:00
|
|
|
(call $std/array/createReverseOrderedArray
|
|
|
|
(i32.const 128)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_global $std/array/reversed1024
|
2018-04-04 01:42:23 +03:00
|
|
|
(call $std/array/createReverseOrderedArray
|
|
|
|
(i32.const 1024)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(set_global $std/array/reversed10000
|
2018-04-04 01:42:23 +03:00
|
|
|
(call $std/array/createReverseOrderedArray
|
|
|
|
(i32.const 10000)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/randomized512
|
|
|
|
(call $std/array/createRandomOrderedArray
|
|
|
|
(i32.const 512)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed1)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
2018-05-11 16:31:56 +02:00
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
|
|
|
(get_global $std/array/reversed1)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 464)
|
2018-05-11 16:31:56 +02:00
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 631)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed2)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
2018-05-11 16:31:56 +02:00
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
|
|
|
(get_global $std/array/reversed2)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 488)
|
2018-05-11 16:31:56 +02:00
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 634)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed4)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
2018-05-11 16:31:56 +02:00
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
|
|
|
(get_global $std/array/reversed4)
|
|
|
|
(get_global $std/array/expected4)
|
|
|
|
(i32.const 0)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 637)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed64)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed64)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/expected4)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 640)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed128)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed128)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/expected4)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 643)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed1024)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed1024)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/expected4)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 646)
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $std/array/assertSortedDefault<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed10000)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<i32>
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_global $std/array/reversed10000)
|
2018-04-04 01:42:23 +03:00
|
|
|
(get_global $std/array/expected4)
|
2018-02-14 09:18:43 +01:00
|
|
|
(i32.const 4)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-04 01:42:23 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 649)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-14 21:17:43 +01:00
|
|
|
)
|
2018-04-04 01:42:23 +03:00
|
|
|
(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)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 43)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(call $std/array/assertSorted<i32>
|
|
|
|
(get_global $std/array/randomized64)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 44)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(call $std/array/assertSorted<i32>
|
|
|
|
(get_global $std/array/randomized257)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 45)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
|
|
|
(call $std/array/assertSorted<i32>
|
|
|
|
(get_global $std/array/randomized257)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 46)
|
2018-04-04 01:42:23 +03:00
|
|
|
)
|
2018-04-15 01:35:17 +03:00
|
|
|
(set_global $std/array/reversedNested512
|
|
|
|
(call $std/array/createReverseOrderedNestedArray
|
|
|
|
(i32.const 512)
|
|
|
|
)
|
|
|
|
)
|
2018-05-02 20:33:17 +03:00
|
|
|
(call $std/array/assertSorted<Array<i32>>
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_global $std/array/reversedNested512)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 47)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(set_global $std/array/reversedElements512
|
|
|
|
(call $std/array/createReverseOrderedElementsArray
|
|
|
|
(i32.const 512)
|
|
|
|
)
|
|
|
|
)
|
2018-05-02 20:33:17 +03:00
|
|
|
(call $std/array/assertSorted<Array<i32>>
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_global $std/array/reversedElements512)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 48)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-05-02 20:33:17 +03:00
|
|
|
(call $std/array/assertSorted<Array<i32>>
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_global $std/array/randomStringsActual)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 49)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
(if
|
2018-05-11 16:31:56 +02:00
|
|
|
(i32.eqz
|
|
|
|
(call $std/array/isArraysEqual<String>
|
|
|
|
(get_global $std/array/randomStringsActual)
|
|
|
|
(get_global $std/array/randomStringsExpected)
|
|
|
|
(i32.const 0)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 100)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 678)
|
2018-04-15 01:35:17 +03:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/array/randomStrings400
|
|
|
|
(call $std/array/createRandomStringArray
|
|
|
|
(i32.const 400)
|
|
|
|
)
|
|
|
|
)
|
2018-05-02 20:33:17 +03:00
|
|
|
(call $std/array/assertSorted<Array<i32>>
|
2018-04-15 01:35:17 +03:00
|
|
|
(get_global $std/array/randomStrings400)
|
2018-04-22 23:15:38 +03:00
|
|
|
(i32.const 50)
|
2018-04-15 01:35:17 +03:00
|
|
|
)
|
2018-01-13 23:38:07 +01:00
|
|
|
)
|
2017-12-16 02:27:39 +01:00
|
|
|
)
|