mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
17324 lines
302 KiB
Plaintext
17324 lines
302 KiB
Plaintext
(module
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $ii (func (param i32) (result i32)))
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
(type $iiiii (func (param i32 i32 i32 i32) (result i32)))
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $iiv (func (param i32 i32)))
|
|
(type $iiif (func (param i32 i32 i32) (result f32)))
|
|
(type $iif (func (param i32 i32) (result f32)))
|
|
(type $F (func (result f64)))
|
|
(type $Iv (func (param i64)))
|
|
(type $II (func (param i64) (result i64)))
|
|
(type $ffi (func (param f32 f32) (result i32)))
|
|
(type $iv (func (param i32)))
|
|
(type $fi (func (param f32) (result i32)))
|
|
(type $FFi (func (param f64 f64) (result i32)))
|
|
(type $iiF (func (param i32 i32) (result f64)))
|
|
(type $Fi (func (param f64) (result i32)))
|
|
(type $iiiiiv (func (param i32 i32 i32 i32 i32)))
|
|
(type $iFi (func (param i32 f64) (result i32)))
|
|
(type $iIiIiIii (func (param i32 i64 i32 i64 i32 i64 i32) (result i32)))
|
|
(type $iiFi (func (param i32 i32 f64) (result i32)))
|
|
(type $Ii (func (param i64) (result i32)))
|
|
(type $iIiv (func (param i32 i64 i32)))
|
|
(type $iiIi (func (param i32 i32 i64) (result i32)))
|
|
(type $v (func))
|
|
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
|
(type $FUNCSIG$vi (func (param i32)))
|
|
(type $FUNCSIG$viii (func (param i32 i32 i32)))
|
|
(type $FUNCSIG$v (func))
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(import "JSMath" "random" (func $~lib/math/JSMath.random (result f64)))
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
(global $~lib/internal/number/_K (mut i32) (i32.const 0))
|
|
(global $~lib/internal/number/_exp (mut i32) (i32.const 0))
|
|
(global $~lib/internal/number/_frc_minus (mut i64) (i64.const 0))
|
|
(global $~lib/internal/number/_frc_plus (mut i64) (i64.const 0))
|
|
(global $~lib/internal/number/_frc_pow (mut i64) (i64.const 0))
|
|
(global $~lib/internal/number/_exp_pow (mut i32) (i32.const 0))
|
|
(global $std/array/arr (mut i32) (i32.const 0))
|
|
(global $std/array/arr8 (mut i32) (i32.const 120))
|
|
(global $~argc (mut i32) (i32.const 0))
|
|
(global $std/array/arr32 (mut i32) (i32.const 288))
|
|
(global $std/array/i (mut i32) (i32.const 0))
|
|
(global $std/array/includes (mut i32) (i32.const 0))
|
|
(global $std/array/every (mut i32) (i32.const 0))
|
|
(global $std/array/some (mut i32) (i32.const 0))
|
|
(global $std/array/newArr (mut i32) (i32.const 0))
|
|
(global $std/array/filteredArr (mut i32) (i32.const 0))
|
|
(global $std/array/boolVal (mut i32) (i32.const 0))
|
|
(global $~lib/math/random_seeded (mut i32) (i32.const 0))
|
|
(global $~lib/math/random_state0 (mut i64) (i64.const 0))
|
|
(global $~lib/math/random_state1 (mut i64) (i64.const 0))
|
|
(global $std/array/f32ArrayTyped (mut i32) (i32.const 728))
|
|
(global $std/array/f64ArrayTyped (mut i32) (i32.const 936))
|
|
(global $std/array/i32ArrayTyped (mut i32) (i32.const 1112))
|
|
(global $std/array/u32ArrayTyped (mut i32) (i32.const 1192))
|
|
(global $std/array/reversed0 (mut i32) (i32.const 1248))
|
|
(global $std/array/reversed1 (mut i32) (i32.const 1272))
|
|
(global $std/array/reversed2 (mut i32) (i32.const 1296))
|
|
(global $std/array/reversed4 (mut i32) (i32.const 1336))
|
|
(global $std/array/expected4 (mut i32) (i32.const 1376))
|
|
(global $std/array/reversed64 (mut i32) (i32.const 0))
|
|
(global $std/array/reversed128 (mut i32) (i32.const 0))
|
|
(global $std/array/reversed1024 (mut i32) (i32.const 0))
|
|
(global $std/array/reversed10000 (mut i32) (i32.const 0))
|
|
(global $std/array/randomized512 (mut i32) (i32.const 0))
|
|
(global $std/array/randomized64 (mut i32) (i32.const 0))
|
|
(global $std/array/randomized257 (mut i32) (i32.const 0))
|
|
(global $std/array/reversedNested512 (mut i32) (i32.const 0))
|
|
(global $std/array/reversedElements512 (mut i32) (i32.const 0))
|
|
(global $std/array/randomStringsActual (mut i32) (i32.const 1536))
|
|
(global $std/array/randomStringsExpected (mut i32) (i32.const 1608))
|
|
(global $std/array/randomStrings400 (mut i32) (i32.const 0))
|
|
(global $std/array/refArr (mut i32) (i32.const 0))
|
|
(global $std/array/subarr32 (mut i32) (i32.const 5816))
|
|
(global $std/array/subarr8 (mut i32) (i32.const 5912))
|
|
(global $std/array/subarrU32 (mut i32) (i32.const 5984))
|
|
(table 56 56 anyfunc)
|
|
(elem (i32.const 0) $null $start~anonymous|1 $start~anonymous|2 $start~anonymous|3 $start~anonymous|4 $start~anonymous|3 $start~anonymous|6 $start~anonymous|7 $start~anonymous|8 $start~anonymous|9 $start~anonymous|10 $start~anonymous|11 $start~anonymous|12 $start~anonymous|13 $start~anonymous|14 $start~anonymous|15 $start~anonymous|16 $start~anonymous|17 $start~anonymous|18 $start~anonymous|17 $start~anonymous|20 $start~anonymous|21 $start~anonymous|22 $start~anonymous|23 $start~anonymous|24 $start~anonymous|25 $start~anonymous|26 $start~anonymous|27 $start~anonymous|28 $start~anonymous|29 $start~anonymous|29 $start~anonymous|31 $start~anonymous|32 $start~anonymous|33 $start~anonymous|29 $start~anonymous|35 $start~anonymous|29 $start~anonymous|29 $start~anonymous|31 $start~anonymous|32 $start~anonymous|33 $start~anonymous|29 $start~anonymous|35 $~lib/array/Array<f32>#sort|trampoline~anonymous|43 $~lib/array/Array<f64>#sort|trampoline~anonymous|44 $~lib/array/Array<i32>#sort|trampoline~anonymous|45 $~lib/array/Array<u32>#sort|trampoline~anonymous|46 $~lib/array/Array<i32>#sort|trampoline~anonymous|45 $~lib/array/Array<i32>#sort|trampoline~anonymous|45 $start~anonymous|49 $~lib/array/Array<i32>#sort|trampoline~anonymous|45 $start~anonymous|49 $start~anonymous|52 $start~anonymous|53 $start~anonymous|54 $start~anonymous|54)
|
|
(memory $0 1)
|
|
(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 104) "\05\00\00\00\00\00\00\00\01\02\03\04\05")
|
|
(data (i32.const 120) "h\00\00\00\05")
|
|
(data (i32.const 128) "\05\00\00\00\00\00\00\00\01\01\01\04\05")
|
|
(data (i32.const 144) "\80\00\00\00\05")
|
|
(data (i32.const 152) "\0c\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00.\00t\00s")
|
|
(data (i32.const 184) "\05")
|
|
(data (i32.const 200) "\b8\00\00\00\05")
|
|
(data (i32.const 208) "\05\00\00\00\00\00\00\00\01\01")
|
|
(data (i32.const 224) "\d0\00\00\00\05")
|
|
(data (i32.const 232) "\05\00\00\00\00\00\00\00\01\01\00\02\02")
|
|
(data (i32.const 248) "\e8\00\00\00\05")
|
|
(data (i32.const 256) "\14\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05")
|
|
(data (i32.const 289) "\01\00\00\05")
|
|
(data (i32.const 296) "\14\00\00\00\00\00\00\00\01\00\00\00\01\00\00\00\01\00\00\00\04\00\00\00\05")
|
|
(data (i32.const 328) "(\01\00\00\05")
|
|
(data (i32.const 336) "\14")
|
|
(data (i32.const 368) "P\01\00\00\05")
|
|
(data (i32.const 376) "\14\00\00\00\00\00\00\00\01\00\00\00\01")
|
|
(data (i32.const 408) "x\01\00\00\05")
|
|
(data (i32.const 416) "\14\00\00\00\00\00\00\00\01\00\00\00\01\00\00\00\00\00\00\00\02\00\00\00\02")
|
|
(data (i32.const 448) "\a0\01\00\00\05")
|
|
(data (i32.const 456) "\0c\00\00\00~\00l\00i\00b\00/\00m\00a\00t\00h\00.\00t\00s")
|
|
(data (i32.const 488) "V\00\00\00A\00B\00C\00D\00E\00F\00G\00H\00I\00J\00K\00L\00M\00N\00O\00P\00Q\00R\00S\00T\00U\00V\00W\00X\00Y\00Z\00a\00b\00c\00d\00e\00f\00g\00h\00i\00j\00k\00l\00m\00n\00o\00p\00q\00r\00s\00t\00u\00v\00w\00x\00y\00z\000\001\002\003\004\005\006\007\008\009\00_\00-\00,\00.\00+\00/\00\\\00[\00]\00{\00}\00(\00)\00<\00>\00*\00&\00$\00%\00^\00@\00#\00!\00?")
|
|
(data (i32.const 664) " ")
|
|
(data (i32.const 674) "\80?\00\00\c0\7f\00\00\80\ff\00\00\80?\00\00\00\00\00\00\80\bf\00\00\00\c0\00\00\80\7f")
|
|
(data (i32.const 728) "\98\02\00\00\08")
|
|
(data (i32.const 736) " ")
|
|
(data (i32.const 746) "\80\ff\00\00\00\c0\00\00\80\bf\00\00\00\00\00\00\80?\00\00\80?\00\00\80\7f\00\00\c0\7f")
|
|
(data (i32.const 800) "\e0\02\00\00\08")
|
|
(data (i32.const 808) "@")
|
|
(data (i32.const 822) "\f0?\00\00\00\00\00\00\f8\7f\00\00\00\00\00\00\f0\ff\05\00\00\00\00\00\f0?")
|
|
(data (i32.const 862) "\f0\bf\00\00\00\00\00\00\00\c0\00\00\00\00\00\00\f0\7f")
|
|
(data (i32.const 936) "(\03\00\00\08")
|
|
(data (i32.const 944) "@")
|
|
(data (i32.const 958) "\f0\ff\00\00\00\00\00\00\00\c0\00\00\00\00\00\00\f0\bf")
|
|
(data (i32.const 990) "\f0?\05\00\00\00\00\00\f0?\00\00\00\00\00\00\f0\7f\00\00\00\00\00\00\f8\7f")
|
|
(data (i32.const 1072) "\b0\03\00\00\08")
|
|
(data (i32.const 1080) "\14\00\00\00\00\00\00\00\01\00\00\00\fe\ff\ff\ff\ff\ff\ff\ff\00\00\00\00\02")
|
|
(data (i32.const 1112) "8\04\00\00\05")
|
|
(data (i32.const 1120) "\14\00\00\00\00\00\00\00\fe\ff\ff\ff\ff\ff\ff\ff\00\00\00\00\01\00\00\00\02")
|
|
(data (i32.const 1152) "`\04\00\00\05")
|
|
(data (i32.const 1160) "\14\00\00\00\00\00\00\00\01\00\00\00\ff\ff\ff\ff\fe\ff\ff\ff\00\00\00\00\02")
|
|
(data (i32.const 1192) "\88\04\00\00\05")
|
|
(data (i32.const 1200) "\14")
|
|
(data (i32.const 1212) "\01\00\00\00\02\00\00\00\fe\ff\ff\ff\ff\ff\ff\ff")
|
|
(data (i32.const 1232) "\b0\04\00\00\05")
|
|
(data (i32.const 1248) "\d8\04")
|
|
(data (i32.const 1256) "\04\00\00\00\00\00\00\00\01")
|
|
(data (i32.const 1272) "\e8\04\00\00\01")
|
|
(data (i32.const 1280) "\08\00\00\00\00\00\00\00\02\00\00\00\01")
|
|
(data (i32.const 1297) "\05\00\00\02")
|
|
(data (i32.const 1304) "\10\00\00\00\00\00\00\00\03\00\00\00\02\00\00\00\01")
|
|
(data (i32.const 1336) "\18\05\00\00\04")
|
|
(data (i32.const 1344) "\10")
|
|
(data (i32.const 1356) "\01\00\00\00\02\00\00\00\03")
|
|
(data (i32.const 1376) "@\05\00\00\04")
|
|
(data (i32.const 1384) "\04\00\00\00\00\00\00\00\01")
|
|
(data (i32.const 1400) "h\05\00\00\01")
|
|
(data (i32.const 1408) "\08\00\00\00\00\00\00\00\01\00\00\00\02")
|
|
(data (i32.const 1424) "\80\05\00\00\02")
|
|
(data (i32.const 1432) "\01\00\00\00a")
|
|
(data (i32.const 1440) "\01\00\00\00b")
|
|
(data (i32.const 1448) "\02\00\00\00a\00b")
|
|
(data (i32.const 1456) "\02\00\00\00b\00a")
|
|
(data (i32.const 1472) "\1c\00\00\00\00\00\00\00\98\05\00\00\a0\05\00\00\98\05\00\00\a8\05\00\00\b0\05\00\00\b8\05")
|
|
(data (i32.const 1536) "\c0\05\00\00\07")
|
|
(data (i32.const 1544) "\1c\00\00\00\00\00\00\00\b8\05\00\00\98\05\00\00\98\05\00\00\a8\05\00\00\a0\05\00\00\b0\05")
|
|
(data (i32.const 1608) "\08\06\00\00\07")
|
|
(data (i32.const 1616) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
|
(data (i32.const 1648) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
|
(data (i32.const 1704) "\04\00\00\00n\00u\00l\00l")
|
|
(data (i32.const 1720) "\02\00\00\00\00\00\00\00\01")
|
|
(data (i32.const 1736) "\b8\06\00\00\02")
|
|
(data (i32.const 1744) "\04\00\00\00t\00r\00u\00e")
|
|
(data (i32.const 1760) "\05\00\00\00f\00a\00l\00s\00e")
|
|
(data (i32.const 1776) "\01\00\00\00,")
|
|
(data (i32.const 1784) "\02\00\00\00\00\00\00\00\01")
|
|
(data (i32.const 1800) "\f8\06\00\00\02")
|
|
(data (i32.const 1808) "\n\00\00\00t\00r\00u\00e\00,\00f\00a\00l\00s\00e")
|
|
(data (i32.const 1832) "\0c\00\00\00\00\00\00\00\01\00\00\00\fe\ff\ff\ff\fd\ff\ff\ff")
|
|
(data (i32.const 1864) "(\07\00\00\03")
|
|
(data (i32.const 1872) "\01\00\00\000")
|
|
(data (i32.const 1880) "\90\01\00\00\00\00\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009")
|
|
(data (i32.const 2392) "X\07\00\00d")
|
|
(data (i32.const 2400) "\0c\00\00\00\00\00\00\00\01\00\00\00\fe\ff\ff\ff\fd\ff\ff\ff")
|
|
(data (i32.const 2432) "`\t\00\00\03")
|
|
(data (i32.const 2440) "\05\00\00\001\00-\002\00-\003")
|
|
(data (i32.const 2456) "\0c\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\03")
|
|
(data (i32.const 2488) "\98\t\00\00\03")
|
|
(data (i32.const 2496) "\01\00\00\00-")
|
|
(data (i32.const 2504) "\0c\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00\03")
|
|
(data (i32.const 2536) "\c8\t\00\00\03")
|
|
(data (i32.const 2544) "\08")
|
|
(data (i32.const 2555) "\80\00\00\00\80")
|
|
(data (i32.const 2560) "\f0\t\00\00\02")
|
|
(data (i32.const 2568) "\02\00\00\00_\00_")
|
|
(data (i32.const 2576) "\08")
|
|
(data (i32.const 2587) "\80\00\00\00\80")
|
|
(data (i32.const 2592) "\10\n\00\00\02")
|
|
(data (i32.const 2600) "\18\00\00\00-\002\001\004\007\004\008\003\006\004\008\00_\00_\00-\002\001\004\007\004\008\003\006\004\008")
|
|
(data (i32.const 2656) "0")
|
|
(data (i32.const 2678) "\f0?\00\00\00\00\00\00\00\c0\00\00\00\00\00\00\f8\7f\00\00\00\00\00\00\f0\ff\00\00\00\00\00\00\f0\7f")
|
|
(data (i32.const 2720) "`\n\00\00\06")
|
|
(data (i32.const 2728) "\02\00\00\00,\00 ")
|
|
(data (i32.const 2736) "\03\00\00\000\00.\000")
|
|
(data (i32.const 2752) "\03\00\00\00N\00a\00N")
|
|
(data (i32.const 2768) "\t\00\00\00-\00I\00n\00f\00i\00n\00i\00t\00y")
|
|
(data (i32.const 2792) "\08\00\00\00I\00n\00f\00i\00n\00i\00t\00y")
|
|
(data (i32.const 2816) "\b8\02\00\00\00\00\00\00\88\02\1c\08\a0\d5\8f\fav\bf>\a2\7f\e1\ae\bav\acU0 \fb\16\8b\ea5\ce]J\89B\cf-;eU\aa\b0k\9a\dfE\1a=\03\cf\1a\e6\ca\c6\9a\c7\17\fep\abO\dc\bc\be\fc\b1w\ff\0c\d6kA\ef\91V\be<\fc\7f\90\ad\1f\d0\8d\83\9aU1(\\Q\d3\b5\c9\a6\ad\8f\acq\9d\cb\8b\ee#w\"\9c\eamSx@\91I\cc\aeW\ce\b6]y\12<\827V\fbM6\94\10\c2O\98H8o\ea\96\90\c7:\82%\cb\85t\d7\f4\97\bf\97\cd\cf\86\a0\e5\ac*\17\98\n4\ef\8e\b25*\fbg8\b2;?\c6\d2\df\d4\c8\84\ba\cd\d3\1a\'D\dd\c5\96\c9%\bb\ce\9fk\93\84\a5b}$l\ac\db\f6\da_\0dXf\ab\a3&\f1\c3\de\93\f8\e2\f3\b8\80\ff\aa\a8\ad\b5\b5\8bJ|l\05_b\87S0\c14`\ff\bc\c9U&\ba\91\8c\85N\96\bd~)p$w\f9\df\8f\b8\e5\b8\9f\bd\df\a6\94}t\88\cf_\a9\f8\cf\9b\a8\8f\93pD\b9k\15\0f\bf\f8\f0\08\8a\b611eU%\b0\cd\ac\7f{\d0\c6\e2?\99\06;+*\c4\10\\\e4\d3\92si\99$$\aa\0e\ca\00\83\f2\b5\87\fd\eb\1a\11\92d\08\e5\bc\cc\88Po\t\cc\bc\8c,e\19\e2X\17\b7\d1\00\00\00\00\00\00@\9c\00\00\00\00\10\a5\d4\e8\00\00b\ac\c5\ebx\ad\84\t\94\f8x9?\81\b3\15\07\c9{\ce\97\c0p\\\ea{\ce2~\8fh\80\e9\ab\a48\d2\d5E\"\9a\17&\'O\9f\'\fb\c4\d41\a2c\ed\a8\ad\c8\8c8e\de\b0\dbe\ab\1a\8e\08\c7\83\9a\1dqB\f9\1d]\c4X\e7\1b\a6,iM\92\ea\8dp\1ad\ee\01\daJw\ef\9a\99\a3m\a2\85k}\b4{x\t\f2w\18\ddy\a1\e4T\b4\c2\c5\9b[\92\86[\86=]\96\c8\c5S5\c8\b3\a0\97\fa\\\b4*\95\e3_\a0\99\bd\9fF\de%\8c9\db4\c2\9b\a5\\\9f\98\a3r\9a\c6\f6\ce\be\e9TS\bf\dc\b7\e2A\"\f2\17\f3\fc\88\a5x\\\d3\9b\ce \cc\dfS!{\f3Z\16\98:0\1f\97\dc\b5\a0\e2\96\b3\e3\\S\d1\d9\a8<D\a7\a4\d9|\9b\fb\10D\a4\a7LLv\bb\1a\9c@\b6\ef\8e\ab\8b,\84W\a6\10\ef\1f\d0)1\91\e9\e5\a4\10\9b\9d\0c\9c\a1\fb\9b\10\e7)\f4;b\d9 (\ac\85\cf\a7z^KD\80-\dd\ac\03@\e4!\bf\8f\ffD^/\9cg\8eA\b8\8c\9c\9d\173\d4\a9\1b\e3\b4\92\db\19\9e\d9w\df\ban\bf\96\ebk\ee\f0\9b;\02\87\af")
|
|
(data (i32.const 3841) "\0b\00\00W")
|
|
(data (i32.const 3848) "\ae\00\00\00\00\00\00\00<\fbW\fbr\fb\8c\fb\a7\fb\c1\fb\dc\fb\f6\fb\11\fc,\fcF\fca\fc{\fc\96\fc\b1\fc\cb\fc\e6\fc\00\fd\1b\fd5\fdP\fdk\fd\85\fd\a0\fd\ba\fd\d5\fd\ef\fd\n\fe%\fe?\feZ\fet\fe\8f\fe\a9\fe\c4\fe\df\fe\f9\fe\14\ff.\ffI\ffc\ff~\ff\99\ff\b3\ff\ce\ff\e8\ff\03\00\1e\008\00S\00m\00\88\00\a2\00\bd\00\d8\00\f2\00\0d\01\'\01B\01\\\01w\01\92\01\ac\01\c7\01\e1\01\fc\01\16\021\02L\02f\02\81\02\9b\02\b6\02\d0\02\eb\02\06\03 \03;\03U\03p\03\8b\03\a5\03\c0\03\da\03\f5\03\0f\04*\04")
|
|
(data (i32.const 4104) "\08\0f\00\00W")
|
|
(data (i32.const 4112) "(\00\00\00\00\00\00\00\01\00\00\00\n\00\00\00d\00\00\00\e8\03\00\00\10\'\00\00\a0\86\01\00@B\0f\00\80\96\98\00\00\e1\f5\05\00\ca\9a;")
|
|
(data (i32.const 4176) "\10\10\00\00\n")
|
|
(data (i32.const 4184) "0")
|
|
(data (i32.const 4206) "\f0?\00\00\00\00\00\00\00\c0\00\00\00\00\00\00\f8\7f\00\00\00\00\00\00\f0\ff\00\00\00\00\00\00\f0\7f")
|
|
(data (i32.const 4248) "X\10\00\00\06")
|
|
(data (i32.const 4256) "(\00\00\000\00.\000\00,\00 \001\00.\000\00,\00 \00-\002\00.\000\00,\00 \00N\00a\00N\00,\00 \00-\00I\00n\00f\00i\00n\00i\00t\00y\00,\00 \00I\00n\00f\00i\00n\00i\00t\00y")
|
|
(data (i32.const 4344) "\01\00\00\001")
|
|
(data (i32.const 4352) "\0c\00\00\00\00\00\00\00\b8\05\00\00\f8\10")
|
|
(data (i32.const 4385) "\11\00\00\03")
|
|
(data (i32.const 4392) "\0c\00\00\00\00\00\00\00\b8\05\00\00\f8\10")
|
|
(data (i32.const 4424) "(\11\00\00\03")
|
|
(data (i32.const 4432) "\0f\00\00\00[\00o\00b\00j\00e\00c\00t\00 \00O\00b\00j\00e\00c\00t\00]")
|
|
(data (i32.const 4472) " \00\00\00[\00o\00b\00j\00e\00c\00t\00 \00O\00b\00j\00e\00c\00t\00]\00,\00,\00[\00o\00b\00j\00e\00c\00t\00 \00O\00b\00j\00e\00c\00t\00]")
|
|
(data (i32.const 4544) "\03\00\00\001\00,\002")
|
|
(data (i32.const 4560) "\07\00\00\000\00,\001\00,\002\00,\003")
|
|
(data (i32.const 4584) "\03\00\00\00\00\00\00\00\01\ff")
|
|
(data (i32.const 4600) "\e8\11\00\00\03")
|
|
(data (i32.const 4608) "\03\00\00\00\00\00\00\00\01\ff")
|
|
(data (i32.const 4625) "\12\00\00\03")
|
|
(data (i32.const 4632) "\06\00\00\001\00,\00-\001\00,\000")
|
|
(data (i32.const 4648) "\06\00\00\00\00\00\00\00\01\00\ff\ff")
|
|
(data (i32.const 4664) "(\12\00\00\03")
|
|
(data (i32.const 4672) "\06\00\00\00\00\00\00\00\01\00\ff\ff")
|
|
(data (i32.const 4688) "@\12\00\00\03")
|
|
(data (i32.const 4696) "\t\00\00\001\00,\006\005\005\003\005\00,\000")
|
|
(data (i32.const 4720) "\18\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\ff\ff\ff\ff\ff\ff\ff\ff")
|
|
(data (i32.const 4752) "p\12\00\00\03")
|
|
(data (i32.const 4760) "\90\01\00\00\00\00\00\000\000\000\001\000\002\000\003\000\004\000\005\000\006\000\007\000\008\000\009\001\000\001\001\001\002\001\003\001\004\001\005\001\006\001\007\001\008\001\009\002\000\002\001\002\002\002\003\002\004\002\005\002\006\002\007\002\008\002\009\003\000\003\001\003\002\003\003\003\004\003\005\003\006\003\007\003\008\003\009\004\000\004\001\004\002\004\003\004\004\004\005\004\006\004\007\004\008\004\009\005\000\005\001\005\002\005\003\005\004\005\005\005\006\005\007\005\008\005\009\006\000\006\001\006\002\006\003\006\004\006\005\006\006\006\007\006\008\006\009\007\000\007\001\007\002\007\003\007\004\007\005\007\006\007\007\007\008\007\009\008\000\008\001\008\002\008\003\008\004\008\005\008\006\008\007\008\008\008\009\009\000\009\001\009\002\009\003\009\004\009\005\009\006\009\007\009\008\009\009")
|
|
(data (i32.const 5272) "\98\12\00\00d")
|
|
(data (i32.const 5280) "\18\00\00\00\00\00\00\00\01\00\00\00\00\00\00\00\ff\ff\ff\ff\ff\ff\ff\ff")
|
|
(data (i32.const 5312) "\a0\14\00\00\03")
|
|
(data (i32.const 5320) "\18\00\00\001\00,\001\008\004\004\006\007\004\004\000\007\003\007\000\009\005\005\001\006\001\005\00,\000")
|
|
(data (i32.const 5376) " \00\00\00\00\00\00\00\ff\ff\ff\ff\ff\ff\ff\ff@Eu\c3*\9d\fb\ff")
|
|
(data (i32.const 5408) "\ff\ff\ff\ff\ff\ff\ff\7f")
|
|
(data (i32.const 5441) "\15\00\00\04")
|
|
(data (i32.const 5448) " \00\00\00\00\00\00\00\ff\ff\ff\ff\ff\ff\ff\ff@Eu\c3*\9d\fb\ff")
|
|
(data (i32.const 5480) "\ff\ff\ff\ff\ff\ff\ff\7f")
|
|
(data (i32.const 5512) "H\15\00\00\04")
|
|
(data (i32.const 5520) "*\00\00\00-\001\00,\00-\001\002\003\004\005\006\007\008\009\000\001\002\003\004\005\006\00,\000\00,\009\002\002\003\003\007\002\000\003\006\008\005\004\007\007\005\008\000\007")
|
|
(data (i32.const 5608) "\0d\00\00\00,\00a\00,\00a\00,\00a\00b\00,\00b\00,\00b\00a\00,")
|
|
(data (i32.const 5640) "\01\00\00\002")
|
|
(data (i32.const 5648) "\01\00\00\004")
|
|
(data (i32.const 5656) "\10\00\00\00\00\00\00\00\f8\10\00\00\08\16\00\00\00\00\00\00\10\16")
|
|
(data (i32.const 5688) "\18\16\00\00\04")
|
|
(data (i32.const 5696) "\10\00\00\00\00\00\00\00\f8\10\00\00\08\16\00\00\00\00\00\00\10\16")
|
|
(data (i32.const 5728) "@\16\00\00\04")
|
|
(data (i32.const 5736) "\06\00\00\001\00,\002\00,\00,\004")
|
|
(data (i32.const 5752) "\08\00\00\00\00\00\00\00\01\00\00\00\02")
|
|
(data (i32.const 5768) "x\16\00\00\02")
|
|
(data (i32.const 5776) "\08\00\00\00\00\00\00\00\03\00\00\00\04")
|
|
(data (i32.const 5792) "\90\16\00\00\02")
|
|
(data (i32.const 5800) "\08\00\00\00\00\00\00\00\88\16\00\00\a0\16")
|
|
(data (i32.const 5816) "\a8\16\00\00\02")
|
|
(data (i32.const 5824) "\07\00\00\001\00,\002\00,\003\00,\004")
|
|
(data (i32.const 5848) "\02\00\00\00\00\00\00\00\01\02")
|
|
(data (i32.const 5864) "\d8\16\00\00\02")
|
|
(data (i32.const 5872) "\02\00\00\00\00\00\00\00\03\04")
|
|
(data (i32.const 5888) "\f0\16\00\00\02")
|
|
(data (i32.const 5896) "\08\00\00\00\00\00\00\00\e8\16\00\00\00\17")
|
|
(data (i32.const 5912) "\08\17\00\00\02")
|
|
(data (i32.const 5920) "\04\00\00\00\00\00\00\00\01")
|
|
(data (i32.const 5936) " \17\00\00\01")
|
|
(data (i32.const 5944) "\04\00\00\00\00\00\00\000\17")
|
|
(data (i32.const 5960) "8\17\00\00\01")
|
|
(data (i32.const 5968) "\04\00\00\00\00\00\00\00H\17")
|
|
(data (i32.const 5984) "P\17\00\00\01")
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $~lib/internal/arraybuffer/computeSize (; 2 ;) (; has Stack IR ;) (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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741824)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(if
|
|
(i32.gt_u
|
|
(tee_local $2
|
|
(i32.and
|
|
(i32.add
|
|
(i32.add
|
|
(tee_local $1
|
|
(get_global $~lib/allocator/arena/offset)
|
|
)
|
|
(select
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 7)
|
|
)
|
|
(i32.const -8)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(tee_local $3
|
|
(current_memory)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(select
|
|
(get_local $3)
|
|
(tee_local $0
|
|
(i32.shr_u
|
|
(i32.and
|
|
(i32.add
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const -65536)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $3)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(grow_memory
|
|
(get_local $0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 4 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 1073741816)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 40)
|
|
(i32.const 23)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $1
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/memory/memory.allocate (; 5 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/internal/memory/memset (; 6 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i64)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 6)
|
|
)
|
|
(return)
|
|
)
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(i32.le_u
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(return)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(tee_local $3
|
|
(i32.and
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(tee_local $1
|
|
(i32.mul
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 255)
|
|
)
|
|
(i32.const 16843009)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.and
|
|
(get_local $2)
|
|
(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
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 12)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(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
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 28)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 20)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.store
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i64.or
|
|
(tee_local $4
|
|
(i64.extend_u/i32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i64.shl
|
|
(get_local $4)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
(block
|
|
(i64.store
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i64.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 32)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#constructor (; 7 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 37)
|
|
(i32.const 39)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(tee_local $3
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $1
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<u8>#fill (; 8 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(i32.add
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(tee_local $2
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(i32.gt_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(get_local $2)
|
|
)
|
|
(get_local $4)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $1)
|
|
(i32.sub
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(i32.gt_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(get_local $3)
|
|
)
|
|
(get_local $4)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<u8>#__get (; 9 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.load
|
|
(tee_local $0
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.load8_u offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<u8> (; 10 ;) (; has Stack IR ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.ne
|
|
(tee_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.and
|
|
(call $~lib/array/Array<u8>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
(i32.and
|
|
(call $~lib/array/Array<u8>#__get
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/array/Array<u8>#fill|trampoline (; 11 ;) (; has Stack IR ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(block $2of2
|
|
(block $1of2
|
|
(block $0of2
|
|
(block $outOfRange
|
|
(br_table $0of2 $1of2 $2of2 $outOfRange
|
|
(i32.sub
|
|
(get_global $~argc)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.const 2147483647)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u8>#fill
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#fill (; 12 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $6
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(i32.gt_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(get_local $2)
|
|
)
|
|
(get_local $4)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(if (result i32)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(i32.gt_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(select
|
|
(tee_local $5
|
|
(get_local $3)
|
|
)
|
|
(get_local $4)
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<u32>#__get (; 13 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<u32> (; 14 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ne
|
|
(tee_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/array/Array<u32>#fill|trampoline (; 15 ;) (; has Stack IR ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(block $2of2
|
|
(block $1of2
|
|
(block $0of2
|
|
(block $outOfRange
|
|
(br_table $0of2 $1of2 $2of2 $outOfRange
|
|
(i32.sub
|
|
(get_global $~argc)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.const 2147483647)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u32>#fill
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(func $std/array/internalCapacity<i32> (; 16 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(i32.shr_s
|
|
(i32.load
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $~lib/internal/memory/memcpy (; 17 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(loop $continue|0
|
|
(if
|
|
(tee_local $3
|
|
(if (result i32)
|
|
(get_local $2)
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(i32.store16
|
|
(get_local $0)
|
|
(i32.load16_u
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 32)
|
|
)
|
|
(block $break|2
|
|
(block $case2|2
|
|
(block $case1|2
|
|
(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)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $1)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(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
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $5)
|
|
(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
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $5)
|
|
(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
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 24)
|
|
)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 13)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(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
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $5)
|
|
(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
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $5)
|
|
(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
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 16)
|
|
)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 14)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
(br $break|2)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(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
|
|
(get_local $0)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $5)
|
|
(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
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(i32.store
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $5)
|
|
(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
|
|
(get_local $0)
|
|
(i32.const 12)
|
|
)
|
|
(i32.or
|
|
(i32.shr_u
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(br $continue|5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 16)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $1)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $1)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $1)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $3)
|
|
(i32.load8_u
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(get_local $1)
|
|
)
|
|
(i32.store8
|
|
(get_local $0)
|
|
(i32.load8_u
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/memory/memmove (; 18 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $3
|
|
(i32.le_u
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.le_u
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $3)
|
|
(block
|
|
(call $~lib/internal/memory/memcpy
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(return)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 7)
|
|
)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
(block
|
|
(loop $continue|0
|
|
(if
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
(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
|
|
(tee_local $4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|2
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(set_local $0
|
|
(i32.add
|
|
(tee_local $3
|
|
(tee_local $4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store8
|
|
(get_local $4)
|
|
(i32.load8_u
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $1)
|
|
(i32.const 7)
|
|
)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
(block
|
|
(loop $continue|3
|
|
(if
|
|
(i32.and
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 7)
|
|
)
|
|
(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)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|5
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(i32.store8
|
|
(i32.add
|
|
(get_local $0)
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.load8_u
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 19 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(tee_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 1073741816)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 40)
|
|
(i32.const 37)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(get_local $1)
|
|
(i32.sub
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
(get_local $2)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(tee_local $3
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(call $~lib/internal/memory/memset
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 40)
|
|
(i32.const 61)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#push (; 20 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.add
|
|
(tee_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(tee_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $2)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 172)
|
|
(i32.const 42)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(tee_local $4
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/array/Array<i32>#pop (; 21 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $1
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 184)
|
|
(i32.const 20)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(tee_local $1
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/array/Array<i32>#unshift (; 22 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $3
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $4)
|
|
(tee_local $5
|
|
(i32.shr_u
|
|
(i32.load
|
|
(tee_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $4)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 274)
|
|
(i32.const 42)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.shr_u
|
|
(i32.load
|
|
(tee_local $2
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(i32.shl
|
|
(i32.sub
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/array/Array<i32>#shift (; 23 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $1
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 245)
|
|
(i32.const 20)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(tee_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 12)
|
|
)
|
|
(i32.shl
|
|
(tee_local $1
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/array/Array<i32>#reverse (; 24 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#indexOf (; 25 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $3
|
|
(i32.eqz
|
|
(tee_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $3)
|
|
(return
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
(set_local $2
|
|
(select
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(i32.gt_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.eq
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const -1)
|
|
)
|
|
(func $~lib/array/Array<i32>#splice (; 26 ;) (; has Stack IR ;) (type $FUNCSIG$vi) (param $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.ge_s
|
|
(i32.const 1)
|
|
(tee_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(return)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(tee_local $1
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.shl
|
|
(i32.add
|
|
(tee_local $1
|
|
(select
|
|
(i32.const 1)
|
|
(tee_local $1
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(i32.const 1)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#__set (; 27 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(tee_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 268435454)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 101)
|
|
(i32.const 41)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(get_local $0)
|
|
(tee_local $3
|
|
(call $~lib/internal/arraybuffer/reallocateUnsafe
|
|
(get_local $3)
|
|
(i32.shl
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(func $start~anonymous|1 (; 28 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#findIndex (; 29 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(call_indirect (type $iiii)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const -1)
|
|
)
|
|
(func $start~anonymous|2 (; 30 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(func $start~anonymous|3 (; 31 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|4 (; 32 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|6 (; 33 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(func $start~anonymous|7 (; 34 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#every (; 35 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(call_indirect (type $iiii)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $start~anonymous|8 (; 36 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.le_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $start~anonymous|9 (; 37 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|10 (; 38 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|11 (; 39 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(func $start~anonymous|12 (; 40 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#some (; 41 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(call_indirect (type $iiii)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(func $start~anonymous|13 (; 42 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.le_s
|
|
(get_local $0)
|
|
(i32.const -1)
|
|
)
|
|
)
|
|
(func $start~anonymous|14 (; 43 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|15 (; 44 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(func $start~anonymous|16 (; 45 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(func $start~anonymous|17 (; 46 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#forEach (; 47 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(call_indirect (type $iiiv)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|18 (; 48 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|20 (; 49 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|21 (; 50 ;) (; has Stack IR ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
|
|
(f32.convert_s/i32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#map<f32> (; 51 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load
|
|
(tee_local $5
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(tee_local $4
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(if
|
|
(tee_local $2
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.lt_s
|
|
(get_local $1)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(tee_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(call_indirect (type $iiif)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.const 21)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(func $~lib/array/Array<f32>#__get (; 52 ;) (; has Stack IR ;) (type $iif) (param $0 i32) (param $1 i32) (result f32)
|
|
(if (result f32)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(tee_local $0
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $start~anonymous|22 (; 53 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#map<i32> (; 54 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.load
|
|
(tee_local $6
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(tee_local $5
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(call_indirect (type $iiii)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(func $start~anonymous|23 (; 55 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $start~anonymous|24 (; 56 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $start~anonymous|25 (; 57 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#filter (; 58 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(br_if $break|0
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 3)
|
|
)
|
|
(if
|
|
(i32.and
|
|
(call_indirect (type $iiii)
|
|
(get_local $3)
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $start~anonymous|26 (; 59 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $2)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start~anonymous|27 (; 60 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start~anonymous|28 (; 61 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.add
|
|
(get_global $std/array/i)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(func $start~anonymous|29 (; 62 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#reduce<i32> (; 63 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $6
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(if
|
|
(tee_local $4
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 4)
|
|
)
|
|
(set_local $2
|
|
(call_indirect (type $iiiii)
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $start~anonymous|31 (; 64 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|32 (; 65 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
)
|
|
(func $start~anonymous|33 (; 66 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $start~anonymous|35 (; 67 ;) (; has Stack IR ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#reduceRight<i32> (; 68 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/math/murmurHash3 (; 69 ;) (; has Stack IR ;) (type $II) (param $0 i64) (result i64)
|
|
(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)
|
|
)
|
|
)
|
|
(i64.const -49064778989728563)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 33)
|
|
)
|
|
)
|
|
(i64.const -4265267296055464877)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $0)
|
|
(i64.const 33)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/math/NativeMath.seedRandom (; 70 ;) (; has Stack IR ;) (type $Iv) (param $0 i64)
|
|
(if
|
|
(i64.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 456)
|
|
(i32.const 1000)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~lib/math/random_seeded
|
|
(i32.const 1)
|
|
)
|
|
(set_global $~lib/math/random_state0
|
|
(call $~lib/math/murmurHash3
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_global $~lib/math/random_state1
|
|
(call $~lib/math/murmurHash3
|
|
(get_global $~lib/math/random_state0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<f32> (; 71 ;) (; has Stack IR ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 f32)
|
|
(local $6 f32)
|
|
(local $7 i32)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(call_indirect (type $ffi)
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(tee_local $7
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/allocator/arena/__memory_free (; 72 ;) (; has Stack IR ;) (type $FUNCSIG$v)
|
|
(nop)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<f32> (; 73 ;) (; has Stack IR ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 f32)
|
|
(local $7 f32)
|
|
(local $8 i32)
|
|
(call $~lib/internal/memory/memset
|
|
(tee_local $8
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(tee_local $5
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.le_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(get_local $3)
|
|
)
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $4
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $ffi)
|
|
(get_local $7)
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $5
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $3)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(get_local $5)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $3)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(f32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(get_local $0)
|
|
(f32.load offset=8
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(get_local $1)
|
|
(get_local $6)
|
|
)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $5
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $4)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(get_local $5)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(f32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $ffi)
|
|
(get_local $6)
|
|
(get_local $7)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $4)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(f32.store offset=8
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
(set_local $6
|
|
(f32.load offset=8
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(get_local $1)
|
|
(f32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f32.store offset=8
|
|
(get_local $0)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f32>#sort (; 74 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 f32)
|
|
(local $5 f32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 337)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(tee_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(f32.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(f32.load offset=8
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $ffi)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(f32.store offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(f32.store offset=8
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<f32>
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<f32>
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<f32>#sort|trampoline~anonymous|43 (; 75 ;) (; has Stack IR ;) (type $ffi) (param $0 f32) (param $1 f32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(i32.sub
|
|
(i32.gt_s
|
|
(tee_local $2
|
|
(i32.xor
|
|
(tee_local $2
|
|
(i32.reinterpret/f32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.shr_u
|
|
(i32.shr_s
|
|
(get_local $2)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(tee_local $3
|
|
(i32.xor
|
|
(tee_local $3
|
|
(i32.reinterpret/f32
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.shr_u
|
|
(i32.shr_s
|
|
(get_local $3)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f32>#sort|trampoline (; 76 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<f32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/builtins/isNaN<f32> (; 77 ;) (; has Stack IR ;) (type $fi) (param $0 f32) (result i32)
|
|
(f32.ne
|
|
(get_local $0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<f32> (; 78 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.ne
|
|
(tee_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load
|
|
(i32.const 804)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 800)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(block $continue|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(br_if $continue|0
|
|
(i32.eq
|
|
(call $~lib/builtins/isNaN<f32>
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(call $~lib/builtins/isNaN<f32>
|
|
(call $~lib/array/Array<f32>#__get
|
|
(i32.const 800)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(f32.ne
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/array/Array<f32>#__get
|
|
(i32.const 800)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<f64> (; 79 ;) (; has Stack IR ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 f64)
|
|
(local $6 f64)
|
|
(local $7 i32)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(call_indirect (type $FFi)
|
|
(get_local $5)
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(tee_local $7
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<f64> (; 80 ;) (; has Stack IR ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 f64)
|
|
(local $7 f64)
|
|
(local $8 i32)
|
|
(call $~lib/internal/memory/memset
|
|
(tee_local $8
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(tee_local $5
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.le_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(get_local $3)
|
|
)
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $4
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $FFi)
|
|
(get_local $7)
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $5
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $3)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(get_local $5)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $3)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(f64.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(get_local $0)
|
|
(f64.load offset=8
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(get_local $1)
|
|
(get_local $6)
|
|
)
|
|
(set_local $4
|
|
(i32.const 1)
|
|
)
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $5
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $4)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(get_local $5)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(f64.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $FFi)
|
|
(get_local $6)
|
|
(get_local $7)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $8)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $4)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(f64.store offset=8
|
|
(get_local $0)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
(set_local $6
|
|
(f64.load offset=8
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(get_local $1)
|
|
(f64.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(f64.store offset=8
|
|
(get_local $0)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#sort (; 81 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 f64)
|
|
(local $5 f64)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 337)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.le_s
|
|
(tee_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(f64.load offset=8
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $FFi)
|
|
(get_local $4)
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(f64.store offset=8
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 8)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(f64.store offset=8
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<f64>
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<f64>
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<f64>#sort|trampoline~anonymous|44 (; 82 ;) (; has Stack IR ;) (type $FFi) (param $0 f64) (param $1 f64) (result i32)
|
|
(local $2 i64)
|
|
(local $3 i64)
|
|
(i32.sub
|
|
(i64.gt_s
|
|
(tee_local $2
|
|
(i64.xor
|
|
(tee_local $2
|
|
(i64.reinterpret/f64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(i64.shr_s
|
|
(get_local $2)
|
|
(i64.const 63)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
(tee_local $3
|
|
(i64.xor
|
|
(tee_local $3
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(i64.shr_s
|
|
(get_local $3)
|
|
(i64.const 63)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i64.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#sort|trampoline (; 83 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<f64>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#__get (; 84 ;) (; has Stack IR ;) (type $iiF) (param $0 i32) (param $1 i32) (result f64)
|
|
(if (result f64)
|
|
(i32.lt_u
|
|
(get_local $1)
|
|
(i32.shr_u
|
|
(i32.load
|
|
(tee_local $0
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(func $~lib/builtins/isNaN<f64> (; 85 ;) (; has Stack IR ;) (type $Fi) (param $0 f64) (result i32)
|
|
(f64.ne
|
|
(get_local $0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<f64> (; 86 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.ne
|
|
(tee_local $2
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load
|
|
(i32.const 1076)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(i32.const 1072)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(block $continue|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(br_if $continue|0
|
|
(i32.eq
|
|
(call $~lib/builtins/isNaN<f64>
|
|
(call $~lib/array/Array<f64>#__get
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(call $~lib/builtins/isNaN<f64>
|
|
(call $~lib/array/Array<f64>#__get
|
|
(i32.const 1072)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(f64.ne
|
|
(call $~lib/array/Array<f64>#__get
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/array/Array<f64>#__get
|
|
(i32.const 1072)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/internal/array/insertionSort<i32> (; 87 ;) (; has Stack IR ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(loop $continue|1
|
|
(if
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(call_indirect (type $iii)
|
|
(get_local $6)
|
|
(get_local $5)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(get_local $5)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(tee_local $5
|
|
(get_local $3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(set_local $4
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/array/weakHeapSort<i32> (; 88 ;) (; has Stack IR ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(call $~lib/internal/memory/memset
|
|
(tee_local $7
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(tee_local $6
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 31)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(block $break|0
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.le_s
|
|
(get_local $3)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(get_local $3)
|
|
)
|
|
(loop $continue|1
|
|
(if
|
|
(i32.eq
|
|
(i32.and
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 6)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.shr_s
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $iii)
|
|
(get_local $4)
|
|
(get_local $6)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $8
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $3)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(get_local $8)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $3)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(block $break|2
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|2
|
|
(br_if $break|2
|
|
(i32.lt_s
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(i32.load offset=8
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $1)
|
|
(get_local $6)
|
|
)
|
|
(set_local $5
|
|
(i32.const 1)
|
|
)
|
|
(loop $continue|3
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $4
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
(i32.and
|
|
(i32.shr_u
|
|
(i32.load
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(block
|
|
(set_local $5
|
|
(get_local $4)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|4
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $5)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $iii)
|
|
(get_local $6)
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(i32.store
|
|
(tee_local $1
|
|
(i32.add
|
|
(get_local $7)
|
|
(i32.shl
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 5)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i32.xor
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
(i32.shl
|
|
(i32.const 1)
|
|
(i32.and
|
|
(get_local $5)
|
|
(i32.const 31)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.shr_s
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.sub
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|2)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
(set_local $1
|
|
(i32.load offset=8
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.store offset=8
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#sort (; 89 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 337)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $iii)
|
|
(get_local $2)
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 256)
|
|
)
|
|
(call $~lib/internal/array/insertionSort<i32>
|
|
(get_local $3)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/array/weakHeapSort<i32>
|
|
(get_local $3)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $~lib/array/Array<i32>#sort|trampoline~anonymous|45 (; 90 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<i32>#sort|trampoline (; 91 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#sort|trampoline~anonymous|46 (; 92 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(i32.gt_u
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<u32>#sort|trampoline (; 93 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(block $1of1
|
|
(block $0of1
|
|
(block $outOfRange
|
|
(br_table $0of1 $1of1 $outOfRange
|
|
(get_global $~argc)
|
|
)
|
|
)
|
|
(unreachable)
|
|
)
|
|
(set_local $1
|
|
(i32.const 46)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $std/array/createReverseOrderedArray (; 94 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(i32.sub
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/math/NativeMath.random (; 95 ;) (; has Stack IR ;) (type $F) (result f64)
|
|
(local $0 i64)
|
|
(local $1 i64)
|
|
(if
|
|
(i32.eqz
|
|
(get_global $~lib/math/random_seeded)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 456)
|
|
(i32.const 1007)
|
|
(i32.const 24)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(get_global $~lib/math/random_state0)
|
|
)
|
|
(set_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)
|
|
)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
(func $std/array/createRandomOrderedArray (; 96 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(set_local $0
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(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
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $std/array/isSorted<i32> (; 97 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(block $break|0
|
|
(set_local $2
|
|
(i32.const 1)
|
|
)
|
|
(set_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(call_indirect (type $iii)
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $0)
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $std/array/assertSorted<i32> (; 98 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isSorted<i32>
|
|
(call $~lib/array/Array<i32>#sort
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 639)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/assertSortedDefault<i32> (; 99 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_local $0)
|
|
(i32.const 47)
|
|
)
|
|
)
|
|
(func $start~anonymous|49 (; 100 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $std/array/createReverseOrderedNestedArray (; 101 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 512)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $1)
|
|
(get_local $0)
|
|
)
|
|
(i32.const 0)
|
|
(i32.sub
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $start~anonymous|52 (; 102 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Array<i32>>#sort (; 103 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 337)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.lt_s
|
|
(call_indirect (type $iii)
|
|
(get_local $2)
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(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 $3)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $std/array/assertSorted<Array<i32>> (; 104 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
(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
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 639)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/Proxy<i32>#constructor (; 105 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(i32.store
|
|
(tee_local $1
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $std/array/createReverseOrderedElementsArray (; 106 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 512)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_local $1)
|
|
(get_local $0)
|
|
(call $std/array/Proxy<i32>#constructor
|
|
(i32.sub
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $start~anonymous|53 (; 107 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/string/compareUnsafe (; 108 ;) (; has Stack IR ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(get_local $0)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(get_local $2)
|
|
(i32.eqz
|
|
(tee_local $4
|
|
(i32.sub
|
|
(i32.load16_u offset=4
|
|
(get_local $3)
|
|
)
|
|
(i32.load16_u offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(func $~lib/string/String.__gt (; 109 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $2
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(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/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(select
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/string/String.__lt (; 110 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $2
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(set_local $2
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $3
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(call $~lib/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(select
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $start~anonymous|54 (; 111 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.sub
|
|
(call $~lib/string/String.__gt
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/string/String.__lt
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/string/String.__eq (; 112 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $2
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(tee_local $2
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(i32.eqz
|
|
(call $~lib/internal/string/compareUnsafe
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/string/String.__ne (; 113 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(func $std/array/isArraysEqual<String> (; 114 ;) (; has Stack IR ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.ne
|
|
(tee_local $3
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/string/String.__ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(func $~lib/internal/string/allocateUnsafe (; 115 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(tee_local $1
|
|
(i32.gt_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.le_s
|
|
(get_local $0)
|
|
(i32.const 536870910)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 14)
|
|
(i32.const 2)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(i32.store
|
|
(tee_local $1
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/string/String#charAt (; 116 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $0)
|
|
(i32.load
|
|
(i32.const 488)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(tee_local $1
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.load16_u offset=4
|
|
(i32.add
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 488)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/string/copyUnsafe (; 117 ;) (; has Stack IR ;) (type $iiiiiv) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/string/String#concat (; 118 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1616)
|
|
(i32.const 106)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(set_local $1
|
|
(i32.const 1704)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $2
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(tee_local $4
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(tee_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $4)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/string/String.__concat (; 119 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(set_local $0
|
|
(i32.const 1704)
|
|
)
|
|
)
|
|
(call $~lib/string/String#concat
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(func $std/array/createRandomString (; 120 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(set_local $1
|
|
(i32.const 1464)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/string/String#charAt
|
|
(i32.trunc_s/f64
|
|
(f64.floor
|
|
(f64.mul
|
|
(call $~lib/math/NativeMath.random)
|
|
(f64.convert_s/i32
|
|
(i32.load
|
|
(i32.const 488)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $std/array/createRandomStringArray (; 121 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(set_local $1
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 400)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(i32.load offset=4
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(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)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/string/String#substring (; 122 ;) (; has Stack IR ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1616)
|
|
(i32.const 264)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(select
|
|
(tee_local $2
|
|
(select
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(i32.gt_s
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(tee_local $3
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(select
|
|
(tee_local $2
|
|
(select
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
(i32.lt_s
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $3
|
|
(i32.sub
|
|
(tee_local $1
|
|
(select
|
|
(get_local $2)
|
|
(get_local $1)
|
|
(i32.gt_s
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.eq
|
|
(get_local $1)
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(return
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(tee_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/array/Array<bool>#join (; 123 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(local $9 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $4
|
|
(i32.sub
|
|
(i32.load
|
|
(i32.const 1804)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(i32.const 1800)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.ne
|
|
(tee_local $6
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(select
|
|
(i32.const 1744)
|
|
(i32.const 1760)
|
|
(i32.and
|
|
(i32.load8_u offset=8
|
|
(get_local $5)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $8
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 5)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(i32.eqz
|
|
(tee_local $9
|
|
(i32.and
|
|
(i32.load8_u offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(select
|
|
(i32.const 1744)
|
|
(i32.const 1760)
|
|
(get_local $9)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $7)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.const 1776)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(i32.eqz
|
|
(tee_local $1
|
|
(i32.and
|
|
(i32.load8_u offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(select
|
|
(i32.const 1744)
|
|
(i32.const 1760)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
(get_local $3)
|
|
)
|
|
(set_local $1
|
|
(get_local $2)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/string/String#substring
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/number/decimalCount32 (; 124 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 100000)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 100)
|
|
)
|
|
(select
|
|
(i32.const 1)
|
|
(i32.const 2)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(select
|
|
(i32.const 3)
|
|
(select
|
|
(i32.const 4)
|
|
(i32.const 5)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 1000)
|
|
)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 10000000)
|
|
)
|
|
(select
|
|
(i32.const 6)
|
|
(i32.const 7)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 1000000)
|
|
)
|
|
)
|
|
(select
|
|
(i32.const 8)
|
|
(select
|
|
(i32.const 9)
|
|
(i32.const 10)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 1000000000)
|
|
)
|
|
)
|
|
(i32.lt_u
|
|
(get_local $0)
|
|
(i32.const 100000000)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/utoa32_lut (; 125 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.const 2392)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 10000)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(i32.rem_u
|
|
(get_local $1)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.div_u
|
|
(get_local $1)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(i64.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i64.or
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.div_u
|
|
(get_local $4)
|
|
(i32.const 100)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.shl
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.rem_u
|
|
(get_local $4)
|
|
(i32.const 100)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 100)
|
|
)
|
|
(block
|
|
(set_local $4
|
|
(i32.rem_u
|
|
(get_local $1)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.div_u
|
|
(get_local $1)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ge_u
|
|
(get_local $1)
|
|
(i32.const 10)
|
|
)
|
|
(i32.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 48)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa32 (; 126 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(return
|
|
(i32.const 1872)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $1
|
|
(i32.lt_s
|
|
(get_local $0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(tee_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $3
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
(if
|
|
(get_local $1)
|
|
(i32.store16 offset=4
|
|
(get_local $2)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/number/itoa<i32> (; 127 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/internal/number/itoa32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<i32> (; 128 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $1
|
|
(i32.lt_s
|
|
(get_local $2)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(tee_local $2
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(get_local $2)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $1)
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/array/Array<i32>#join (; 129 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $4
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.ne
|
|
(tee_local $6
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<i32>
|
|
(i32.load offset=8
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $8
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 11)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.const 11)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(call $~lib/internal/number/itoa_stream<i32>
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $7)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(get_local $0)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(call $~lib/internal/number/itoa_stream<i32>
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(call $~lib/string/String#substring
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/internal/number/utoa32 (; 130 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(return
|
|
(i32.const 1872)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(tee_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $1
|
|
(call $~lib/internal/number/decimalCount32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/number/itoa<u32> (; 131 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/internal/number/utoa32
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<u32> (; 132 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(tee_local $3
|
|
(call $~lib/internal/number/decimalCount32
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/array/Array<u32>#join (; 133 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $4
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.ne
|
|
(tee_local $6
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<u32>
|
|
(i32.load offset=8
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $8
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 10)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(call $~lib/internal/number/itoa_stream<u32>
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $7)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(get_local $0)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(call $~lib/internal/number/itoa_stream<u32>
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(call $~lib/string/String#substring
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/builtins/isFinite<f64> (; 134 ;) (; has Stack IR ;) (type $Fi) (param $0 f64) (result i32)
|
|
(f64.eq
|
|
(f64.sub
|
|
(get_local $0)
|
|
(get_local $0)
|
|
)
|
|
(f64.const 0)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/genDigits (; 135 ;) (; has Stack IR ;) (type $iIiIiIii) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (param $6 i32) (result i32)
|
|
(local $7 i32)
|
|
(local $8 i64)
|
|
(local $9 i32)
|
|
(local $10 i64)
|
|
(local $11 i32)
|
|
(local $12 i32)
|
|
(local $13 i64)
|
|
(local $14 i64)
|
|
(set_local $8
|
|
(i64.sub
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i64.and
|
|
(get_local $3)
|
|
(tee_local $14
|
|
(i64.sub
|
|
(tee_local $10
|
|
(i64.shl
|
|
(i64.const 1)
|
|
(tee_local $13
|
|
(i64.extend_s/i32
|
|
(tee_local $11
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $7
|
|
(i32.wrap/i64
|
|
(i64.shr_u
|
|
(get_local $3)
|
|
(get_local $13)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $12
|
|
(i32.load
|
|
(i32.const 4176)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $9)
|
|
(i32.const 0)
|
|
)
|
|
(block
|
|
(block $break|1
|
|
(block $case10|1
|
|
(block $case9|1
|
|
(block $case8|1
|
|
(block $case7|1
|
|
(block $case6|1
|
|
(block $case5|1
|
|
(block $case4|1
|
|
(block $case3|1
|
|
(block $case2|1
|
|
(block $case1|1
|
|
(if
|
|
(i32.ne
|
|
(tee_local $2
|
|
(get_local $9)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
(block
|
|
(block $tablify|0
|
|
(br_table $case9|1 $case8|1 $case7|1 $case6|1 $case5|1 $case4|1 $case3|1 $case2|1 $case1|1 $tablify|0
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(br $case10|1)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 1000000000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 1000000000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 100000000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 100000000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 10000000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 10000000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 1000000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 1000000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 100000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 100000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 1000)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 1000)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.div_u
|
|
(get_local $7)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.rem_u
|
|
(get_local $7)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(get_local $7)
|
|
)
|
|
(set_local $7
|
|
(i32.const 0)
|
|
)
|
|
(br $break|1)
|
|
)
|
|
(set_local $4
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.or
|
|
(get_local $4)
|
|
(get_local $6)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(i32.add
|
|
(tee_local $2
|
|
(get_local $6)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(get_local $4)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 48)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(i32.sub
|
|
(get_local $9)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i64.le_u
|
|
(tee_local $3
|
|
(i64.add
|
|
(i64.shl
|
|
(i64.extend_u/i32
|
|
(get_local $7)
|
|
)
|
|
(i64.extend_s/i32
|
|
(get_local $11)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(block
|
|
(set_global $~lib/internal/number/_K
|
|
(i32.add
|
|
(get_global $~lib/internal/number/_K)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i64.shl
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $12)
|
|
(i32.shl
|
|
(get_local $9)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.extend_s/i32
|
|
(get_local $11)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.load16_u offset=4
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|2
|
|
(if
|
|
(tee_local $0
|
|
(i64.lt_u
|
|
(get_local $3)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.ge_u
|
|
(i64.sub
|
|
(get_local $5)
|
|
(get_local $3)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $0
|
|
(i64.lt_u
|
|
(i64.add
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.gt_u
|
|
(i64.sub
|
|
(get_local $8)
|
|
(get_local $3)
|
|
)
|
|
(i64.sub
|
|
(i64.add
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $0)
|
|
(block
|
|
(set_local $7
|
|
(i32.sub
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i64.add
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(br $continue|2)
|
|
)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(get_local $2)
|
|
(get_local $7)
|
|
)
|
|
(return
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|3 (result i32)
|
|
(set_local $5
|
|
(i64.mul
|
|
(get_local $5)
|
|
(i64.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(i64.ne
|
|
(i64.or
|
|
(tee_local $3
|
|
(i64.shr_u
|
|
(tee_local $1
|
|
(i64.mul
|
|
(get_local $1)
|
|
(i64.const 10)
|
|
)
|
|
)
|
|
(i64.extend_s/i32
|
|
(get_local $11)
|
|
)
|
|
)
|
|
)
|
|
(i64.extend_s/i32
|
|
(get_local $6)
|
|
)
|
|
)
|
|
(i64.const 0)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(i32.add
|
|
(tee_local $4
|
|
(get_local $6)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(i32.and
|
|
(i32.wrap/i64
|
|
(get_local $3)
|
|
)
|
|
(i32.const 65535)
|
|
)
|
|
(i32.const 48)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(i32.sub
|
|
(get_local $9)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i64.lt_u
|
|
(tee_local $1
|
|
(i64.and
|
|
(get_local $1)
|
|
(get_local $14)
|
|
)
|
|
)
|
|
(get_local $5)
|
|
)
|
|
(block (result i32)
|
|
(set_global $~lib/internal/number/_K
|
|
(i32.add
|
|
(get_global $~lib/internal/number/_K)
|
|
(get_local $9)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i64.mul
|
|
(get_local $8)
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $12)
|
|
(i32.shl
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $9)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.load16_u offset=4
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(i32.sub
|
|
(get_local $6)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(loop $continue|4
|
|
(if
|
|
(tee_local $2
|
|
(i64.lt_u
|
|
(get_local $1)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.ge_u
|
|
(i64.sub
|
|
(get_local $5)
|
|
(get_local $1)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(if
|
|
(i32.eqz
|
|
(tee_local $2
|
|
(i64.lt_u
|
|
(i64.add
|
|
(get_local $1)
|
|
(get_local $10)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.gt_u
|
|
(i64.sub
|
|
(get_local $8)
|
|
(get_local $1)
|
|
)
|
|
(i64.sub
|
|
(i64.add
|
|
(get_local $1)
|
|
(get_local $10)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $2)
|
|
(block
|
|
(set_local $7
|
|
(i32.sub
|
|
(get_local $7)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i64.add
|
|
(get_local $1)
|
|
(get_local $10)
|
|
)
|
|
)
|
|
(br $continue|4)
|
|
)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(get_local $4)
|
|
(get_local $7)
|
|
)
|
|
(get_local $6)
|
|
)
|
|
(br $continue|3)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/prettify (; 136 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(i32.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 3145774)
|
|
)
|
|
(return
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $3
|
|
(i32.le_s
|
|
(get_local $1)
|
|
(tee_local $4
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.le_s
|
|
(get_local $4)
|
|
(i32.const 21)
|
|
)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(get_local $3)
|
|
(block (result i32)
|
|
(block $break|0
|
|
(set_local $3
|
|
(get_local $1)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 48)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 3145774)
|
|
)
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block (result i32)
|
|
(if
|
|
(tee_local $3
|
|
(i32.gt_s
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.le_s
|
|
(get_local $4)
|
|
(i32.const 21)
|
|
)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(get_local $3)
|
|
(block (result i32)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(tee_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 6)
|
|
)
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 4)
|
|
)
|
|
(i32.shl
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 46)
|
|
)
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(block (result i32)
|
|
(if
|
|
(tee_local $3
|
|
(i32.lt_s
|
|
(i32.const -6)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.le_s
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(get_local $3)
|
|
(block (result i32)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.shl
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.const 2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.store offset=4
|
|
(get_local $0)
|
|
(i32.const 3014704)
|
|
)
|
|
(block $break|1
|
|
(set_local $2
|
|
(i32.const 2)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 48)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i32.eq
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
(block (result i32)
|
|
(i32.store16 offset=6
|
|
(get_local $0)
|
|
(i32.const 101)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.lt_s
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $3)
|
|
(get_local $2)
|
|
(tee_local $2
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(get_local $3)
|
|
(select
|
|
(i32.const 45)
|
|
(i32.const 43)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(block (result i32)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 8)
|
|
)
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 6)
|
|
)
|
|
(i32.sub
|
|
(tee_local $2
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(i32.store16 offset=6
|
|
(get_local $0)
|
|
(i32.const 46)
|
|
)
|
|
(i32.store16 offset=6
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(i32.const 101)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $0
|
|
(i32.lt_s
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $4)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $3)
|
|
(get_local $2)
|
|
(tee_local $2
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(get_local $2)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(get_local $3)
|
|
(select
|
|
(i32.const 45)
|
|
(i32.const 43)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(i32.add
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/dtoa_core (; 137 ;) (; has Stack IR ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
|
(local $2 i64)
|
|
(local $3 i64)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i64)
|
|
(local $7 i64)
|
|
(local $8 i64)
|
|
(local $9 i64)
|
|
(local $10 i64)
|
|
(local $11 i64)
|
|
(local $12 i32)
|
|
(local $13 i32)
|
|
(local $14 i32)
|
|
(local $15 i64)
|
|
(if
|
|
(tee_local $12
|
|
(f64.lt
|
|
(get_local $1)
|
|
(f64.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(f64.neg
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.add
|
|
(i64.shl
|
|
(i64.extend_u/i32
|
|
(tee_local $5
|
|
(i32.ne
|
|
(tee_local $13
|
|
(i32.wrap/i64
|
|
(i64.shr_u
|
|
(i64.and
|
|
(tee_local $2
|
|
(i64.reinterpret/f64
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i64.const 9218868437227405312)
|
|
)
|
|
(i64.const 52)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 52)
|
|
)
|
|
(i64.and
|
|
(get_local $2)
|
|
(i64.const 4503599627370495)
|
|
)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.sub
|
|
(tee_local $13
|
|
(i32.sub
|
|
(select
|
|
(get_local $13)
|
|
(i32.const 1)
|
|
(get_local $5)
|
|
)
|
|
(i32.const 1075)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.wrap/i64
|
|
(i64.clz
|
|
(tee_local $6
|
|
(i64.add
|
|
(i64.shl
|
|
(get_local $2)
|
|
(i64.const 1)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/internal/number/_frc_plus
|
|
(i64.shl
|
|
(get_local $6)
|
|
(i64.extend_s/i32
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/internal/number/_frc_minus
|
|
(i64.shl
|
|
(i64.sub
|
|
(i64.shl
|
|
(get_local $2)
|
|
(i64.extend_s/i32
|
|
(tee_local $14
|
|
(i32.add
|
|
(i64.eq
|
|
(get_local $2)
|
|
(i64.const 4503599627370496)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
(i64.extend_s/i32
|
|
(i32.sub
|
|
(i32.sub
|
|
(get_local $13)
|
|
(get_local $14)
|
|
)
|
|
(tee_local $5
|
|
(i32.sub
|
|
(get_local $5)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/internal/number/_exp
|
|
(get_local $5)
|
|
)
|
|
(set_global $~lib/internal/number/_K
|
|
(i32.sub
|
|
(i32.const 348)
|
|
(i32.shl
|
|
(tee_local $5
|
|
(i32.add
|
|
(i32.shr_s
|
|
(i32.add
|
|
(tee_local $4
|
|
(i32.trunc_s/f64
|
|
(tee_local $1
|
|
(f64.add
|
|
(f64.mul
|
|
(f64.convert_s/i32
|
|
(i32.sub
|
|
(i32.const -61)
|
|
(get_global $~lib/internal/number/_exp)
|
|
)
|
|
)
|
|
(f64.const 0.30102999566398114)
|
|
)
|
|
(f64.const 347)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(f64.ne
|
|
(f64.convert_s/i32
|
|
(get_local $4)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.const 4104)
|
|
)
|
|
)
|
|
(set_global $~lib/internal/number/_frc_pow
|
|
(i64.load offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(i32.const 3840)
|
|
)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_global $~lib/internal/number/_exp_pow
|
|
(i32.load16_s offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(i64.mul
|
|
(tee_local $7
|
|
(i64.and
|
|
(tee_local $2
|
|
(i64.shl
|
|
(get_local $2)
|
|
(i64.extend_s/i32
|
|
(tee_local $4
|
|
(i32.wrap/i64
|
|
(i64.clz
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
(tee_local $8
|
|
(i64.and
|
|
(tee_local $6
|
|
(get_global $~lib/internal/number/_frc_pow)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.add
|
|
(i64.mul
|
|
(get_local $7)
|
|
(tee_local $10
|
|
(i64.shr_u
|
|
(get_local $6)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.and
|
|
(tee_local $3
|
|
(i64.add
|
|
(i64.mul
|
|
(tee_local $11
|
|
(i64.shr_u
|
|
(get_local $2)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $9)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.add
|
|
(i64.add
|
|
(i64.mul
|
|
(get_local $11)
|
|
(get_local $10)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $3)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(i64.add
|
|
(get_local $2)
|
|
(i64.const 2147483647)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i64.mul
|
|
(tee_local $9
|
|
(i64.and
|
|
(tee_local $3
|
|
(get_global $~lib/internal/number/_frc_plus)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
(tee_local $10
|
|
(i64.and
|
|
(get_local $6)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i64.add
|
|
(i64.mul
|
|
(get_local $9)
|
|
(tee_local $8
|
|
(i64.shr_u
|
|
(get_local $6)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.and
|
|
(tee_local $3
|
|
(i64.add
|
|
(i64.mul
|
|
(tee_local $11
|
|
(i64.shr_u
|
|
(get_local $3)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(get_local $10)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $7)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
)
|
|
(set_local $15
|
|
(i64.add
|
|
(i64.add
|
|
(i64.mul
|
|
(get_local $11)
|
|
(get_local $8)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $3)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(i64.add
|
|
(get_local $7)
|
|
(i64.const 2147483647)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(set_local $9
|
|
(i64.mul
|
|
(tee_local $7
|
|
(i64.and
|
|
(tee_local $3
|
|
(get_global $~lib/internal/number/_frc_minus)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
(tee_local $8
|
|
(i64.and
|
|
(get_local $6)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i64.add
|
|
(i64.mul
|
|
(get_local $7)
|
|
(tee_local $10
|
|
(i64.shr_u
|
|
(get_local $6)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.and
|
|
(tee_local $3
|
|
(i64.add
|
|
(i64.mul
|
|
(tee_local $11
|
|
(i64.shr_u
|
|
(get_local $3)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(get_local $8)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $9)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 4294967295)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i64.sub
|
|
(tee_local $7
|
|
(i64.sub
|
|
(get_local $15)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(i64.add
|
|
(i64.add
|
|
(i64.add
|
|
(i64.mul
|
|
(get_local $11)
|
|
(get_local $10)
|
|
)
|
|
(i64.shr_u
|
|
(get_local $3)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(i64.shr_u
|
|
(i64.add
|
|
(get_local $6)
|
|
(i64.const 2147483647)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
)
|
|
(i32.add
|
|
(call $~lib/internal/number/prettify
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $12)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.sub
|
|
(call $~lib/internal/number/genDigits
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(tee_local $5
|
|
(i32.sub
|
|
(i32.add
|
|
(i32.sub
|
|
(get_local $13)
|
|
(get_local $4)
|
|
)
|
|
(tee_local $4
|
|
(get_global $~lib/internal/number/_exp_pow)
|
|
)
|
|
)
|
|
(i32.const -64)
|
|
)
|
|
)
|
|
(get_local $7)
|
|
(i32.sub
|
|
(i32.add
|
|
(get_global $~lib/internal/number/_exp)
|
|
(get_local $4)
|
|
)
|
|
(i32.const -64)
|
|
)
|
|
(get_local $3)
|
|
(get_local $12)
|
|
)
|
|
(get_local $12)
|
|
)
|
|
(get_global $~lib/internal/number/_K)
|
|
)
|
|
(get_local $12)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/dtoa (; 138 ;) (; has Stack IR ;) (type $Fi) (param $0 f64) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(if
|
|
(f64.eq
|
|
(get_local $0)
|
|
(f64.const 0)
|
|
)
|
|
(return
|
|
(i32.const 2736)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/builtins/isFinite<f64>
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(block
|
|
(if
|
|
(call $~lib/builtins/isNaN<f64>
|
|
(get_local $0)
|
|
)
|
|
(return
|
|
(i32.const 2752)
|
|
)
|
|
)
|
|
(return
|
|
(select
|
|
(i32.const 2768)
|
|
(i32.const 2792)
|
|
(f64.lt
|
|
(get_local $0)
|
|
(f64.const 0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/number/dtoa_core
|
|
(tee_local $1
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(i32.const 28)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/string/String#substring
|
|
(get_local $1)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/number/dtoa_stream (; 139 ;) (; has Stack IR ;) (type $iiFi) (param $0 i32) (param $1 i32) (param $2 f64) (result i32)
|
|
(local $3 i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(f64.eq
|
|
(get_local $2)
|
|
(f64.const 0)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(i32.store16 offset=6
|
|
(get_local $0)
|
|
(i32.const 46)
|
|
)
|
|
(i32.store16 offset=8
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/builtins/isFinite<f64>
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(call $~lib/builtins/isNaN<f64>
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 78)
|
|
)
|
|
(i32.store16 offset=6
|
|
(get_local $0)
|
|
(i32.const 97)
|
|
)
|
|
(i32.store16 offset=8
|
|
(get_local $0)
|
|
(i32.const 78)
|
|
)
|
|
(return
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(i32.add
|
|
(tee_local $3
|
|
(f64.lt
|
|
(get_local $2)
|
|
(f64.const 0)
|
|
)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(call $~lib/internal/memory/memmove
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 4)
|
|
)
|
|
(select
|
|
(i32.const 2768)
|
|
(i32.const 2792)
|
|
(get_local $3)
|
|
)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(return
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/dtoa_core
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<f64>#join (; 140 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load
|
|
(i32.const 4252)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.const 4248)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.const 2728)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/dtoa
|
|
(f64.load offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 28)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 28)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/dtoa_stream
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.const 2728)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $7)
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/dtoa_stream
|
|
(tee_local $1
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
(f64.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/string/String#substring
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<String>#join (; 141 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $5
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $8
|
|
(i32.ne
|
|
(tee_local $7
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $5)
|
|
)
|
|
(return
|
|
(i32.load offset=8
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.load
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.const 0)
|
|
)
|
|
(set_local $0
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.mul
|
|
(get_local $7)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|1
|
|
(set_local $3
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|1
|
|
(br_if $break|1
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $4
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
(tee_local $4
|
|
(i32.load
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $8)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $7)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_local $7)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|1)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $4
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $4)
|
|
(i32.const 0)
|
|
(i32.load
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
)
|
|
(func $std/array/Ref#constructor (; 142 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(call $~lib/memory/memory.allocate
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Ref>#__unchecked_set (; 143 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
|
(i32.store offset=8
|
|
(i32.add
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(func $~lib/array/Array<Ref>#join (; 144 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(tee_local $4
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(i32.const 4432)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.const 15)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $2)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(i32.const 4432)
|
|
(i32.const 0)
|
|
(i32.const 15)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(i32.const 1776)
|
|
(i32.const 0)
|
|
(get_local $4)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $1)
|
|
(i32.const 4432)
|
|
(i32.const 0)
|
|
(i32.const 15)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(get_local $0)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $7)
|
|
(get_local $1)
|
|
)
|
|
(block
|
|
(set_local $2
|
|
(call $~lib/string/String#substring
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/number/itoa<i8> (; 145 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/internal/number/itoa32
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<i8> (; 146 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(local $3 i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $3
|
|
(i32.lt_s
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.sub
|
|
(i32.const 0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $2
|
|
(i32.shr_s
|
|
(i32.shl
|
|
(get_local $2)
|
|
(i32.const 24)
|
|
)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(if
|
|
(get_local $3)
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<i8>#join (; 147 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load
|
|
(i32.const 4628)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.const 4624)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<i8>
|
|
(i32.load8_s offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 11)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 11)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<i8>
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.load8_s offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.const 1776)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $7)
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<i8>
|
|
(tee_local $1
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
(i32.load8_s offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/string/String#substring
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/number/itoa<u16> (; 148 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/internal/number/utoa32
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<u16> (; 149 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $2
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 65535)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<u16>#join (; 150 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load
|
|
(i32.const 4692)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.const 4688)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<u16>
|
|
(i32.load16_u offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 10)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<u16>
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.load16_u offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.const 1776)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $7)
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<u16>
|
|
(tee_local $1
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
(i32.load16_u offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/string/String#substring
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/number/decimalCount64 (; 151 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
|
|
(if (result i32)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 1000000000000000)
|
|
)
|
|
(if (result i32)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 1000000000000)
|
|
)
|
|
(select
|
|
(i32.const 11)
|
|
(i32.const 12)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 100000000000)
|
|
)
|
|
)
|
|
(select
|
|
(i32.const 13)
|
|
(select
|
|
(i32.const 14)
|
|
(i32.const 15)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 100000000000000)
|
|
)
|
|
)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 10000000000000)
|
|
)
|
|
)
|
|
)
|
|
(if (result i32)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 100000000000000000)
|
|
)
|
|
(select
|
|
(i32.const 16)
|
|
(i32.const 17)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 10000000000000000)
|
|
)
|
|
)
|
|
(select
|
|
(i32.const 18)
|
|
(select
|
|
(i32.const 19)
|
|
(i32.const 20)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const -8446744073709551616)
|
|
)
|
|
)
|
|
(i64.lt_u
|
|
(get_local $0)
|
|
(i64.const 1000000000000000000)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/utoa64_lut (; 152 ;) (; has Stack IR ;) (type $iIiv) (param $0 i32) (param $1 i64) (param $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(set_local $3
|
|
(i32.load
|
|
(i32.const 5272)
|
|
)
|
|
)
|
|
(loop $continue|0
|
|
(if
|
|
(i64.ge_u
|
|
(get_local $1)
|
|
(i64.const 100000000)
|
|
)
|
|
(block
|
|
(set_local $6
|
|
(i32.div_u
|
|
(tee_local $5
|
|
(i32.div_u
|
|
(tee_local $4
|
|
(i32.wrap/i64
|
|
(i64.sub
|
|
(get_local $1)
|
|
(i64.mul
|
|
(tee_local $1
|
|
(i64.div_u
|
|
(get_local $1)
|
|
(i64.const 100000000)
|
|
)
|
|
)
|
|
(i64.const 100000000)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.rem_u
|
|
(get_local $5)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(i64.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i64.or
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.div_u
|
|
(tee_local $4
|
|
(i32.rem_u
|
|
(get_local $4)
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(i32.const 100)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.shl
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(i32.rem_u
|
|
(get_local $4)
|
|
(i32.const 100)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(i64.store offset=4
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(tee_local $2
|
|
(i32.sub
|
|
(get_local $2)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i64.or
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $6)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.shl
|
|
(i64.load32_u offset=8
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.shl
|
|
(get_local $5)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
(i64.const 32)
|
|
)
|
|
)
|
|
)
|
|
(br $continue|0)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(i32.wrap/i64
|
|
(get_local $1)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/utoa64 (; 153 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(if
|
|
(i64.eqz
|
|
(get_local $0)
|
|
)
|
|
(return
|
|
(i32.const 1872)
|
|
)
|
|
)
|
|
(if
|
|
(i64.le_u
|
|
(get_local $0)
|
|
(i64.const 4294967295)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(tee_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $1
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $3
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
(call $~lib/internal/number/utoa64_lut
|
|
(tee_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $1
|
|
(call $~lib/internal/number/decimalCount64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/internal/number/itoa<u64> (; 154 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
|
|
(call $~lib/internal/number/utoa64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<u64> (; 155 ;) (; has Stack IR ;) (type $iiIi) (param $0 i32) (param $1 i32) (param $2 i64) (result i32)
|
|
(local $3 i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i64.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i64.le_u
|
|
(get_local $2)
|
|
(i64.const 4294967295)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $3
|
|
(i32.wrap/i64
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa64_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(tee_local $1
|
|
(call $~lib/internal/number/decimalCount64
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<u64>#join (; 156 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load
|
|
(i32.const 5316)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.const 5312)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<u64>
|
|
(i64.load offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 20)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 20)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<u64>
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i64.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.const 1776)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $7)
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<u64>
|
|
(tee_local $1
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
(i64.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/string/String#substring
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/number/itoa64 (; 157 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(if
|
|
(i64.eqz
|
|
(get_local $0)
|
|
)
|
|
(return
|
|
(i32.const 1872)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $1
|
|
(i64.lt_s
|
|
(get_local $0)
|
|
(i64.const 0)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i64.sub
|
|
(i64.const 0)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i64.le_u
|
|
(get_local $0)
|
|
(i64.const 4294967295)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(tee_local $3
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $2
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $4
|
|
(i32.wrap/i64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $4)
|
|
(get_local $2)
|
|
)
|
|
(call $~lib/internal/number/utoa64_lut
|
|
(tee_local $3
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $2
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount64
|
|
(get_local $0)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $1)
|
|
(i32.store16 offset=4
|
|
(get_local $3)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/internal/number/itoa<i64> (; 158 ;) (; has Stack IR ;) (type $Ii) (param $0 i64) (result i32)
|
|
(call $~lib/internal/number/itoa64
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<i64> (; 159 ;) (; has Stack IR ;) (type $iiIi) (param $0 i32) (param $1 i32) (param $2 i64) (result i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i64.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $3
|
|
(i64.lt_s
|
|
(get_local $2)
|
|
(i64.const 0)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i64.sub
|
|
(i64.const 0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i64.le_u
|
|
(get_local $2)
|
|
(i64.const 4294967295)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $4
|
|
(i32.wrap/i64
|
|
(get_local $2)
|
|
)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $4)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa64_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(tee_local $1
|
|
(i32.add
|
|
(call $~lib/internal/number/decimalCount64
|
|
(get_local $2)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $3)
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<i64>#join (; 160 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
(local $0 i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load
|
|
(i32.const 5516)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(i32.const 5512)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(tee_local $5
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<i64>
|
|
(i64.load offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $7
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.const 21)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(i32.const 21)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $1)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<i64>
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i64.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $2)
|
|
(get_local $0)
|
|
(i32.const 1776)
|
|
(i32.const 0)
|
|
(get_local $5)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.add
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $7)
|
|
(tee_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(call $~lib/internal/number/itoa_stream<i64>
|
|
(tee_local $1
|
|
(get_local $2)
|
|
)
|
|
(get_local $0)
|
|
(i64.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $1
|
|
(call $~lib/string/String#substring
|
|
(get_local $2)
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<Array<i32>>#join (; 161 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.const 1464)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.ne
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $5)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/internal/number/itoa<u8> (; 162 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
(call $~lib/internal/number/utoa32
|
|
(i32.and
|
|
(get_local $0)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
(func $~lib/internal/number/itoa_stream<u8> (; 163 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.shl
|
|
(get_local $1)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
(block
|
|
(i32.store16 offset=4
|
|
(get_local $0)
|
|
(i32.const 48)
|
|
)
|
|
(return
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/internal/number/decimalCount32
|
|
(tee_local $2
|
|
(i32.and
|
|
(get_local $2)
|
|
(i32.const 255)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(call $~lib/internal/number/utoa32_lut
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<u8>#join (; 164 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(local $7 i32)
|
|
(local $8 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $4
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $7
|
|
(i32.ne
|
|
(tee_local $6
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(call $~lib/internal/number/itoa<u8>
|
|
(i32.load8_u offset=8
|
|
(get_local $5)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(call $~lib/internal/string/allocateUnsafe
|
|
(tee_local $8
|
|
(i32.add
|
|
(i32.mul
|
|
(i32.add
|
|
(get_local $6)
|
|
(i32.const 10)
|
|
)
|
|
(get_local $4)
|
|
)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $3)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(call $~lib/internal/number/itoa_stream<u8>
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(i32.load8_u offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $7)
|
|
(block
|
|
(call $~lib/internal/string/copyUnsafe
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(get_local $1)
|
|
(i32.const 0)
|
|
(get_local $6)
|
|
)
|
|
(set_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(get_local $6)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(i32.add
|
|
(get_local $3)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(set_local $3
|
|
(get_local $0)
|
|
)
|
|
(if
|
|
(i32.gt_s
|
|
(get_local $8)
|
|
(tee_local $2
|
|
(i32.add
|
|
(get_local $2)
|
|
(call $~lib/internal/number/itoa_stream<u8>
|
|
(get_local $0)
|
|
(get_local $2)
|
|
(i32.load8_u offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(set_local $3
|
|
(call $~lib/string/String#substring
|
|
(get_local $0)
|
|
(get_local $2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $0)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 1648)
|
|
(i32.const 28)
|
|
(i32.const 4)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/allocator/arena/__memory_free)
|
|
)
|
|
)
|
|
(get_local $3)
|
|
)
|
|
(func $~lib/array/Array<Array<u8>>#join (; 165 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.const 1464)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.ne
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u8>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/array/Array<u8>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $5)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/array/Array<u8>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $~lib/array/Array<Array<u32>>#join (; 166 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(local $6 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $4
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(i32.const 1464)
|
|
)
|
|
(set_local $5
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $6
|
|
(i32.ne
|
|
(i32.load
|
|
(get_local $1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $4)
|
|
)
|
|
(return
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $3
|
|
(i32.load offset=8
|
|
(get_local $5)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<u32>#join
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $3
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/string/String.__concat
|
|
(get_local $2)
|
|
(call $~lib/array/Array<u32>#join
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $6)
|
|
(set_local $2
|
|
(call $~lib/string/String.__concat
|
|
(get_local $2)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $3
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $5)
|
|
(i32.shl
|
|
(get_local $4)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $2
|
|
(call $~lib/string/String.__concat
|
|
(get_local $2)
|
|
(call $~lib/array/Array<u32>#join
|
|
(get_local $3)
|
|
(get_local $1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $2)
|
|
)
|
|
(func $~lib/array/Array<Array<Array<u32>>>#join (; 167 ;) (; has Stack IR ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
|
(local $1 i32)
|
|
(local $2 i32)
|
|
(local $3 i32)
|
|
(local $4 i32)
|
|
(local $5 i32)
|
|
(if
|
|
(i32.lt_s
|
|
(tee_local $3
|
|
(i32.sub
|
|
(i32.load offset=4
|
|
(get_local $0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
(return
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(i32.const 1464)
|
|
)
|
|
(set_local $4
|
|
(i32.load
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(set_local $5
|
|
(i32.ne
|
|
(i32.load
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(get_local $3)
|
|
)
|
|
(return
|
|
(tee_local $0
|
|
(if (result i32)
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(get_local $4)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<Array<u32>>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(block $break|0
|
|
(set_local $0
|
|
(i32.const 0)
|
|
)
|
|
(loop $repeat|0
|
|
(br_if $break|0
|
|
(i32.ge_s
|
|
(get_local $0)
|
|
(get_local $3)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/array/Array<Array<u32>>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(if
|
|
(get_local $5)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
(set_local $0
|
|
(i32.add
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(br $repeat|0)
|
|
)
|
|
)
|
|
(if
|
|
(tee_local $2
|
|
(i32.load offset=8
|
|
(i32.add
|
|
(get_local $4)
|
|
(i32.shl
|
|
(get_local $3)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(set_local $1
|
|
(call $~lib/string/String.__concat
|
|
(get_local $1)
|
|
(call $~lib/array/Array<Array<u32>>#join
|
|
(get_local $2)
|
|
(i32.const 1776)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(get_local $1)
|
|
)
|
|
(func $start (; 168 ;) (; has Stack IR ;) (type $v)
|
|
(local $0 i32)
|
|
(set_global $~lib/allocator/arena/startOffset
|
|
(i32.const 5992)
|
|
)
|
|
(set_global $~lib/allocator/arena/offset
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
)
|
|
(set_global $std/array/arr
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u8>#fill
|
|
(get_global $std/array/arr8)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 144)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 36)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 1)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u8>#fill|trampoline
|
|
(get_global $std/array/arr8)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 200)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 39)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u8>#fill
|
|
(get_global $std/array/arr8)
|
|
(i32.const 1)
|
|
(i32.const 0)
|
|
(i32.const -3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 224)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u8>#fill|trampoline
|
|
(get_global $std/array/arr8)
|
|
(i32.const 2)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u8>
|
|
(get_global $std/array/arr8)
|
|
(i32.const 248)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 45)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#fill
|
|
(get_global $std/array/arr32)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 328)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 50)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 1)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#fill|trampoline
|
|
(get_global $std/array/arr32)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 368)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 53)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#fill
|
|
(get_global $std/array/arr32)
|
|
(i32.const 1)
|
|
(i32.const 0)
|
|
(i32.const -3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 408)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 56)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 2)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#fill|trampoline
|
|
(get_global $std/array/arr32)
|
|
(i32.const 2)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/arr32)
|
|
(i32.const 448)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 59)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 63)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 64)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 68)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 69)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 70)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 74)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 75)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 76)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 80)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 81)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 82)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 86)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 87)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 88)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 89)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 45)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 93)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 94)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 95)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 96)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 97)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#unshift
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 103)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 104)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 105)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 106)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 107)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 108)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#unshift
|
|
(get_global $std/array/arr)
|
|
(i32.const 41)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 112)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 113)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 41)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 114)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 115)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 116)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 117)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 4)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 118)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#shift
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 41)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 124)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 125)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 126)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 127)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 128)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 129)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
(i32.const 45)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 130)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 45)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 134)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 135)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 136)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 137)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 138)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 139)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#reverse
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 3)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 145)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 146)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 147)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 43)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 148)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 149)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/i)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 158)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 162)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 45)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 166)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 170)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -100)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 174)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 3)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 178)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 182)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 186)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 190)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 3)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 194)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 44)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 200)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 204)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 45)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/includes)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 208)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 100)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/includes)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 212)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -100)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 216)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 220)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const -4)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 224)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 228)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 232)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/includes
|
|
(i32.ge_s
|
|
(call $~lib/array/Array<i32>#indexOf
|
|
(get_global $std/array/arr)
|
|
(i32.const 43)
|
|
(i32.const 2)
|
|
)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/includes)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 236)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#splice
|
|
(get_global $std/array/arr)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 240)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $std/array/internalCapacity<i32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 5)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 241)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 44)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 242)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
(i32.const 42)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 243)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
(i32.const 1)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
(i32.const 2)
|
|
)
|
|
(call $~lib/array/Array<i32>#__set
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
(i32.const 3)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/i)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 253)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 256)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 259)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 267)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 268)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 5)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eq
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 270)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#findIndex
|
|
(get_global $std/array/arr)
|
|
(i32.const 6)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const -1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 283)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 284)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 7)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/every)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 292)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 8)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/every)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 295)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 9)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/every)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 303)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 304)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 10)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/every)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 306)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/every
|
|
(call $~lib/array/Array<i32>#every
|
|
(get_global $std/array/arr)
|
|
(i32.const 11)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/every)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 319)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 320)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 12)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/some)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 328)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 13)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/some)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 331)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 14)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/some)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 339)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 340)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 15)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/some)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 342)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/some
|
|
(call $~lib/array/Array<i32>#some
|
|
(get_global $std/array/arr)
|
|
(i32.const 16)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/some)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 355)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 356)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 17)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 365)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 18)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 374)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 375)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 19)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 406)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 378)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<i32>#forEach
|
|
(get_global $std/array/arr)
|
|
(i32.const 20)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 392)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 393)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/newArr
|
|
(call $~lib/array/Array<i32>#map<f32>
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/newArr)
|
|
)
|
|
(i32.const 4)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 402)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(f32.ne
|
|
(call $~lib/array/Array<f32>#__get
|
|
(get_global $std/array/newArr)
|
|
(i32.const 0)
|
|
)
|
|
(f32.convert_s/i32
|
|
(call $~lib/array/Array<u32>#__get
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 403)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#map<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 22)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 412)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 413)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#map<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 23)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 406)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 420)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#map<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 24)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 435)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 436)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/filteredArr
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 25)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/filteredArr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 444)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 26)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 453)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 454)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 27)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 406)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 461)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#filter
|
|
(get_global $std/array/arr)
|
|
(i32.const 28)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 476)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 477)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 29)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 485)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 30)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 489)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 31)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/boolVal)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 492)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 32)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/boolVal)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 495)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 33)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 503)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 504)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 34)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 506)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduce<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 35)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 519)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 520)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 36)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 528)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 37)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 532)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 38)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/boolVal)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 535)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/boolVal
|
|
(i32.and
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 39)
|
|
(i32.const 0)
|
|
)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(if
|
|
(get_global $std/array/boolVal)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 538)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 40)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 546)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(i32.const 8)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 547)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 41)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 10)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 549)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#pop
|
|
(get_global $std/array/arr)
|
|
)
|
|
)
|
|
(set_global $std/array/i
|
|
(call $~lib/array/Array<i32>#reduceRight<i32>
|
|
(get_global $std/array/arr)
|
|
(i32.const 42)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(get_global $std/array/i)
|
|
(i32.const 6)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 562)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.load offset=4
|
|
(get_global $std/array/arr)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 563)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 2)
|
|
)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#push
|
|
(get_global $std/array/arr)
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(call $~lib/math/NativeMath.seedRandom
|
|
(i64.reinterpret/f64
|
|
(call $~lib/math/JSMath.random)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<f32>#sort|trampoline
|
|
(get_global $std/array/f32ArrayTyped)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<f32>
|
|
(get_global $std/array/f32ArrayTyped)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 650)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<f64>#sort|trampoline
|
|
(get_global $std/array/f64ArrayTyped)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<f64>
|
|
(get_global $std/array/f64ArrayTyped)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 654)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<i32>#sort|trampoline
|
|
(get_global $std/array/i32ArrayTyped)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/i32ArrayTyped)
|
|
(i32.const 1152)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 658)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $~argc
|
|
(i32.const 0)
|
|
)
|
|
(drop
|
|
(call $~lib/array/Array<u32>#sort|trampoline
|
|
(get_global $std/array/u32ArrayTyped)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/u32ArrayTyped)
|
|
(i32.const 1232)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 662)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed64
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 64)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed128
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 128)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed1024
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 1024)
|
|
)
|
|
)
|
|
(set_global $std/array/reversed10000
|
|
(call $std/array/createReverseOrderedArray
|
|
(i32.const 10000)
|
|
)
|
|
)
|
|
(set_global $std/array/randomized512
|
|
(call $std/array/createRandomOrderedArray
|
|
(i32.const 512)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed0)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed1)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed1)
|
|
(i32.const 1400)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 682)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed2)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed2)
|
|
(i32.const 1424)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 685)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed4)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed4)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 0)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 688)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed64)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed64)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 691)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed128)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed128)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 694)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed1024)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed1024)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 697)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/reversed10000)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<u32>
|
|
(get_global $std/array/reversed10000)
|
|
(get_global $std/array/expected4)
|
|
(i32.const 4)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 700)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $std/array/assertSortedDefault<i32>
|
|
(get_global $std/array/randomized512)
|
|
)
|
|
(set_global $std/array/randomized64
|
|
(call $std/array/createRandomOrderedArray
|
|
(i32.const 64)
|
|
)
|
|
)
|
|
(set_global $std/array/randomized257
|
|
(call $std/array/createRandomOrderedArray
|
|
(i32.const 257)
|
|
)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized64)
|
|
(i32.const 48)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized64)
|
|
(i32.const 49)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized257)
|
|
(i32.const 50)
|
|
)
|
|
(call $std/array/assertSorted<i32>
|
|
(get_global $std/array/randomized257)
|
|
(i32.const 51)
|
|
)
|
|
(set_global $std/array/reversedNested512
|
|
(call $std/array/createReverseOrderedNestedArray)
|
|
)
|
|
(call $std/array/assertSorted<Array<i32>>
|
|
(get_global $std/array/reversedNested512)
|
|
(i32.const 52)
|
|
)
|
|
(set_global $std/array/reversedElements512
|
|
(call $std/array/createReverseOrderedElementsArray)
|
|
)
|
|
(call $std/array/assertSorted<Array<i32>>
|
|
(get_global $std/array/reversedElements512)
|
|
(i32.const 53)
|
|
)
|
|
(call $std/array/assertSorted<Array<i32>>
|
|
(get_global $std/array/randomStringsActual)
|
|
(i32.const 54)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $std/array/isArraysEqual<String>
|
|
(get_global $std/array/randomStringsActual)
|
|
(get_global $std/array/randomStringsExpected)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 729)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(set_global $std/array/randomStrings400
|
|
(call $std/array/createRandomStringArray)
|
|
)
|
|
(call $std/array/assertSorted<Array<i32>>
|
|
(get_global $std/array/randomStrings400)
|
|
(i32.const 55)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<bool>#join)
|
|
(i32.const 1808)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 738)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i32>#join
|
|
(i32.const 2432)
|
|
(i32.const 1464)
|
|
)
|
|
(i32.const 2440)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 739)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<u32>#join
|
|
(i32.const 2536)
|
|
(i32.const 2496)
|
|
)
|
|
(i32.const 2440)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 740)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i32>#join
|
|
(i32.const 2592)
|
|
(i32.const 2568)
|
|
)
|
|
(i32.const 2600)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 741)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<f64>#join)
|
|
(i32.const 4256)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 742)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<String>#join
|
|
(i32.const 4424)
|
|
(i32.const 1464)
|
|
)
|
|
(i32.const 4344)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 743)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $~lib/array/Array<Ref>#__unchecked_set
|
|
(tee_local $0
|
|
(call $~lib/array/Array<i32>#constructor
|
|
(i32.const 3)
|
|
)
|
|
)
|
|
(i32.const 0)
|
|
(call $std/array/Ref#constructor)
|
|
)
|
|
(call $~lib/array/Array<Ref>#__unchecked_set
|
|
(get_local $0)
|
|
(i32.const 1)
|
|
(i32.const 0)
|
|
)
|
|
(call $~lib/array/Array<Ref>#__unchecked_set
|
|
(get_local $0)
|
|
(i32.const 2)
|
|
(call $std/array/Ref#constructor)
|
|
)
|
|
(set_global $std/array/refArr
|
|
(get_local $0)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<Ref>#join
|
|
(get_global $std/array/refArr)
|
|
)
|
|
(i32.const 4472)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 745)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_global $std/array/reversed0)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 1464)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 749)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_global $std/array/reversed1)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 4344)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 750)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_global $std/array/reversed2)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 4544)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 751)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i32>#join
|
|
(get_global $std/array/reversed4)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 4560)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 752)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i8>#join)
|
|
(i32.const 4632)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 754)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<u16>#join)
|
|
(i32.const 4696)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 755)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<u64>#join)
|
|
(i32.const 5320)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 756)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<i64>#join)
|
|
(i32.const 5520)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 757)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<String>#join
|
|
(get_global $std/array/randomStringsExpected)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 5608)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 758)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<String>#join
|
|
(i32.const 5728)
|
|
(i32.const 1776)
|
|
)
|
|
(i32.const 5736)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 759)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<Array<i32>>#join
|
|
(get_global $std/array/subarr32)
|
|
)
|
|
(i32.const 5824)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 762)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<Array<u8>>#join
|
|
(get_global $std/array/subarr8)
|
|
)
|
|
(i32.const 5824)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 765)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(if
|
|
(i32.eqz
|
|
(call $~lib/string/String.__eq
|
|
(call $~lib/array/Array<Array<Array<u32>>>#join
|
|
(get_global $std/array/subarrU32)
|
|
)
|
|
(i32.const 4344)
|
|
)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 152)
|
|
(i32.const 768)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $null (; 169 ;) (; has Stack IR ;) (type $v)
|
|
(nop)
|
|
)
|
|
)
|