2019-01-09 12:45:29 +01:00
|
|
|
(module
|
2019-02-21 00:11:22 +01:00
|
|
|
(type $_ (func))
|
2019-01-09 12:45:29 +01:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $iiii_ (func (param i32 i32 i32 i32)))
|
|
|
|
(type $iii_ (func (param i32 i32 i32)))
|
2019-01-09 12:45:29 +01:00
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
|
|
(type $Fi (func (param f64) (result i32)))
|
|
|
|
(type $iFi (func (param i32 f64) (result i32)))
|
|
|
|
(type $iIiIiIii (func (param i32 i64 i32 i64 i32 i64 i32) (result i32)))
|
|
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
|
|
|
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
|
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\01\00\00\000")
|
|
|
|
(data (i32.const 16) "\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 72) "\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 584) "H\00\00\00d")
|
|
|
|
(data (i32.const 592) "\01\00\00\001")
|
|
|
|
(data (i32.const 600) "\t\00\00\00n\00u\00m\00b\00e\00r\00.\00t\00s")
|
|
|
|
(data (i32.const 624) "\03\00\00\000\00.\000")
|
|
|
|
(data (i32.const 640) "\03\00\00\00N\00a\00N")
|
|
|
|
(data (i32.const 656) "\t\00\00\00-\00I\00n\00f\00i\00n\00i\00t\00y")
|
|
|
|
(data (i32.const 680) "\08\00\00\00I\00n\00f\00i\00n\00i\00t\00y")
|
|
|
|
(data (i32.const 704) "\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 1728) "\c0\02\00\00W")
|
|
|
|
(data (i32.const 1736) "\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 1992) "\c8\06\00\00W")
|
|
|
|
(data (i32.const 2000) "(\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 2064) "\d0\07\00\00\n")
|
|
|
|
(data (i32.const 2072) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
|
|
|
(data (i32.const 2112) "\03\00\00\002\00.\000")
|
|
|
|
(data (i32.const 2128) "\01\00\00\003")
|
|
|
|
(data (i32.const 2136) "\02\00\00\00-\005")
|
|
|
|
(data (i32.const 2144) "\01\00\00\004")
|
|
|
|
(data (i32.const 2152) "\01\00\00\002")
|
|
|
|
(data (i32.const 2160) "\04\00\00\00t\00r\00u\00e")
|
|
|
|
(data (i32.const 2176) "\05\00\00\00f\00a\00l\00s\00e")
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2019-01-09 12:45:29 +01:00
|
|
|
(elem (i32.const 0) $null)
|
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
|
|
|
(global $number/a (mut i32) (i32.const 1))
|
|
|
|
(global $~lib/internal/number/_frc_plus (mut i64) (i64.const 0))
|
|
|
|
(global $~lib/internal/number/_frc_minus (mut i64) (i64.const 0))
|
|
|
|
(global $~lib/internal/number/_exp (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/internal/number/_K (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/internal/number/_frc_pow (mut i64) (i64.const 0))
|
|
|
|
(global $~lib/internal/number/_exp_pow (mut i32) (i32.const 0))
|
|
|
|
(export "memory" (memory $0))
|
|
|
|
(export "table" (table $0))
|
|
|
|
(start $start)
|
|
|
|
(func $~lib/internal/number/decimalCount32 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100000
|
|
|
|
i32.lt_u
|
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.lt_u
|
|
|
|
if (result i32)
|
|
|
|
i32.const 1
|
|
|
|
i32.const 2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.lt_u
|
|
|
|
select
|
|
|
|
else
|
|
|
|
i32.const 3
|
|
|
|
i32.const 4
|
|
|
|
i32.const 5
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000
|
|
|
|
i32.lt_u
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000
|
|
|
|
i32.lt_u
|
|
|
|
select
|
|
|
|
end
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000000
|
|
|
|
i32.lt_u
|
|
|
|
if (result i32)
|
|
|
|
i32.const 6
|
|
|
|
i32.const 7
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000000
|
|
|
|
i32.lt_u
|
|
|
|
select
|
|
|
|
else
|
|
|
|
i32.const 8
|
|
|
|
i32.const 9
|
|
|
|
i32.const 10
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000000000
|
|
|
|
i32.lt_u
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100000000
|
|
|
|
i32.lt_u
|
|
|
|
select
|
|
|
|
end
|
|
|
|
end
|
|
|
|
)
|
|
|
|
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1073741824
|
|
|
|
i32.gt_u
|
|
|
|
if
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/allocator/arena/offset
|
|
|
|
local.tee $1
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.gt_u
|
|
|
|
select
|
|
|
|
i32.add
|
|
|
|
i32.const 7
|
|
|
|
i32.add
|
|
|
|
i32.const -8
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
current_memory
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shl
|
|
|
|
i32.gt_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $2
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
|
|
|
i32.const 65535
|
|
|
|
i32.add
|
|
|
|
i32.const -65536
|
|
|
|
i32.and
|
|
|
|
i32.const 16
|
|
|
|
i32.shr_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $0
|
|
|
|
local.get $3
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.gt_s
|
|
|
|
select
|
|
|
|
grow_memory
|
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
grow_memory
|
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
|
|
|
if
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
|
|
|
global.set $~lib/allocator/arena/offset
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
)
|
|
|
|
(func $~lib/internal/string/allocateUnsafe (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
|
|
|
(local $1 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.gt_s
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 536870910
|
|
|
|
i32.le_s
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 16
|
|
|
|
i32.const 14
|
|
|
|
i32.const 2
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
i32.const 4
|
|
|
|
i32.add
|
|
|
|
call $~lib/allocator/arena/__memory_allocate
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $~lib/internal/number/utoa32_lut (; 4 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
i32.const 584
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $continue|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.div_u
|
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i64.load32_u offset=8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.rem_u
|
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i64.load32_u offset=8
|
|
|
|
i64.const 32
|
|
|
|
i64.shl
|
|
|
|
i64.or
|
|
|
|
i64.store offset=4
|
|
|
|
br $continue|0
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i32.load offset=8
|
|
|
|
i32.store offset=4
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.sub
|
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i32.load offset=8
|
|
|
|
i32.store offset=4
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 48
|
|
|
|
i32.add
|
|
|
|
i32.store16 offset=4
|
|
|
|
end
|
|
|
|
)
|
|
|
|
(func $~lib/internal/number/itoa32 (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 8
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/decimalCount32
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/string/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $0
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/utoa32_lut
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 45
|
|
|
|
i32.store16 offset=4
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
)
|
|
|
|
(func $~lib/internal/string/compareUnsafe (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
|
|
(local $3 i32)
|
|
|
|
loop $continue|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load16_u offset=4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load16_u offset=4
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|0
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
)
|
|
|
|
(func $~lib/string/String.__eq (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
|
|
(local $2 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eq
|
|
|
|
if
|
|
|
|
i32.const 1
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/string/compareUnsafe
|
|
|
|
i32.eqz
|
|
|
|
)
|
|
|
|
(func $~lib/internal/number/genDigits (; 8 ;) (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)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $10 i32)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $11 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $12 i64)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $13 i64)
|
|
|
|
(local $14 i64)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $12
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 1
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $11
|
|
|
|
i64.extend_i32_s
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $13
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $14
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.and
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shr_u
|
2019-02-05 17:12:10 +01:00
|
|
|
i32.wrap_i64
|
|
|
|
local.tee $7
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/decimalCount32
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2064
|
|
|
|
i32.load
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $10
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $continue|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.gt_s
|
|
|
|
if
|
|
|
|
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
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.ne
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
br_table $case9|1 $case8|1 $case7|1 $case6|1 $case5|1 $case4|1 $case3|1 $case2|1 $case1|1 $case10|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000000000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000000000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100000000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100000000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1000
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 100
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.div_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.rem_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $7
|
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $7
|
2019-01-09 12:45:29 +01:00
|
|
|
br $break|1
|
|
|
|
end
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
|
|
|
local.get $6
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.or
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $6
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 65535
|
|
|
|
i32.and
|
|
|
|
i32.const 48
|
|
|
|
i32.add
|
|
|
|
i32.store16 offset=4
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $9
|
|
|
|
local.get $7
|
|
|
|
i64.extend_i32_u
|
|
|
|
local.get $11
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.le_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_K
|
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_K
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
|
|
|
local.set $3
|
|
|
|
local.get $10
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i64.load32_u offset=8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $11
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $8
|
|
|
|
local.get $12
|
|
|
|
local.set $5
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load16_u offset=4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $10
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $continue|2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.lt_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $0
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
i64.sub
|
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.ge_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $8
|
2019-02-06 23:42:43 +01:00
|
|
|
i64.add
|
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.lt_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $8
|
2019-02-06 23:42:43 +01:00
|
|
|
i64.add
|
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.sub
|
|
|
|
i64.gt_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $10
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $10
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $1
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|2
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $10
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.store16 offset=4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
2019-01-09 12:45:29 +01:00
|
|
|
return
|
|
|
|
end
|
|
|
|
br $continue|0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
loop $continue|3 (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 10
|
|
|
|
i64.mul
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $5
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 10
|
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $11
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.or
|
|
|
|
i64.const 0
|
|
|
|
i64.ne
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $6
|
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-02-05 17:12:10 +01:00
|
|
|
i32.wrap_i64
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 65535
|
|
|
|
i32.and
|
|
|
|
i32.const 48
|
|
|
|
i32.add
|
|
|
|
i32.store16 offset=4
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $9
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $14
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.and
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.ge_u
|
|
|
|
br_if $continue|3
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_K
|
|
|
|
local.get $9
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_K
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $13
|
|
|
|
local.set $1
|
|
|
|
local.get $10
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.sub
|
|
|
|
i32.const 2
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i64.load32_u offset=8
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $12
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $10
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.load16_u offset=4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $6
|
2019-01-09 13:02:47 +01:00
|
|
|
loop $continue|4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $8
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.lt_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 13:02:47 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $1
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.ge_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 13:02:47 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 13:02:47 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $8
|
2019-02-06 23:42:43 +01:00
|
|
|
i64.add
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.lt_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.eqz
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $8
|
2019-02-06 23:42:43 +01:00
|
|
|
i64.add
|
|
|
|
local.get $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.sub
|
|
|
|
i64.gt_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 13:02:47 +01:00
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $6
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-01-09 13:02:47 +01:00
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $8
|
2019-01-09 13:02:47 +01:00
|
|
|
br $continue|4
|
|
|
|
end
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
|
|
|
local.get $6
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.store16 offset=4
|
|
|
|
local.get $10
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $~lib/internal/memory/memcpy (; 9 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
loop $continue|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
|
|
|
local.get $2
|
2019-01-09 13:02:47 +01:00
|
|
|
select
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|0
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.and
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
loop $continue|1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.add
|
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|1
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load16_u
|
|
|
|
i32.store16
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
end
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 32
|
|
|
|
i32.ge_u
|
|
|
|
if
|
|
|
|
block $break|2
|
|
|
|
block $case2|2
|
|
|
|
block $case1|2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.ne
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.eq
|
|
|
|
br_if $case1|2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.eq
|
|
|
|
br_if $case2|2
|
|
|
|
br $break|2
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $5
|
|
|
|
local.get $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $continue|3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 17
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 5
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 9
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 13
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|3
|
|
|
|
end
|
|
|
|
end
|
|
|
|
br $break|2
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $5
|
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $continue|4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 18
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 6
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 10
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 14
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|4
|
|
|
|
end
|
|
|
|
end
|
|
|
|
br $break|2
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $5
|
|
|
|
local.get $0
|
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $continue|5
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 19
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 11
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 12
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 15
|
|
|
|
i32.add
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 24
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.shr_u
|
|
|
|
i32.or
|
|
|
|
i32.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|5
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 16
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.set $0
|
|
|
|
local.get $3
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
end
|
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $~lib/internal/memory/memmove (; 10 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eq
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.le_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.le_u
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/memory/memcpy
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.lt_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.and
|
|
|
|
i32.eq
|
|
|
|
if
|
|
|
|
loop $continue|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $0
|
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
br $continue|0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
loop $continue|1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.load
|
|
|
|
i64.store
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
loop $continue|2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
|
|
|
local.get $1
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $4
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
br $continue|2
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 7
|
|
|
|
i32.and
|
|
|
|
i32.eq
|
|
|
|
if
|
|
|
|
loop $continue|3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 7
|
|
|
|
i32.and
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
br $continue|3
|
|
|
|
end
|
|
|
|
end
|
|
|
|
loop $continue|4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.ge_u
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 8
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i64.load
|
|
|
|
i64.store
|
|
|
|
br $continue|4
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
loop $continue|5
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.load8_u
|
|
|
|
i32.store8
|
|
|
|
br $continue|5
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
)
|
|
|
|
(func $~lib/internal/number/prettify (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2019-01-09 13:02:47 +01:00
|
|
|
(local $5 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 3145774
|
|
|
|
i32.store offset=4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.le_s
|
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 21
|
|
|
|
i32.le_s
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $repeat|0
|
|
|
|
block $break|0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.ge_s
|
|
|
|
br_if $break|0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 48
|
|
|
|
i32.store16 offset=4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
br $repeat|0
|
|
|
|
end
|
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 3145774
|
|
|
|
i32.store offset=4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
|
|
|
else
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.gt_s
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 21
|
|
|
|
i32.le_s
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
if (result i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
call $~lib/internal/memory/memmove
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
local.get $0
|
|
|
|
i32.add
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 46
|
|
|
|
i32.store16 offset=4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
|
|
|
else
|
|
|
|
i32.const -6
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.lt_s
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.le_s
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
call $~lib/internal/memory/memmove
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3014704
|
|
|
|
i32.store offset=4
|
|
|
|
i32.const 2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-01-09 12:45:29 +01:00
|
|
|
loop $repeat|1
|
|
|
|
block $break|1
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.ge_s
|
|
|
|
br_if $break|1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 48
|
|
|
|
i32.store16 offset=4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-01-09 12:45:29 +01:00
|
|
|
br $repeat|1
|
|
|
|
end
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.eq
|
|
|
|
if (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 101
|
|
|
|
i32.store16 offset=6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 13:02:47 +01:00
|
|
|
block (result i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 13:02:47 +01:00
|
|
|
if
|
|
|
|
i32.const 0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-01-09 13:02:47 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/decimalCount32
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/utoa32_lut
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 45
|
|
|
|
i32.const 43
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
select
|
|
|
|
i32.store16 offset=4
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.add
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 2
|
|
|
|
i32.sub
|
|
|
|
call $~lib/internal/memory/memmove
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 46
|
|
|
|
i32.store16 offset=6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 101
|
|
|
|
i32.store16 offset=6
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-01-09 13:02:47 +01:00
|
|
|
block (result i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.lt_s
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 13:02:47 +01:00
|
|
|
if
|
|
|
|
i32.const 0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 13:02:47 +01:00
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-01-09 13:02:47 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/decimalCount32
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $0
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/utoa32_lut
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 45
|
|
|
|
i32.const 43
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
select
|
|
|
|
i32.store16 offset=4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 2
|
|
|
|
i32.add
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
)
|
|
|
|
(func $~lib/internal/number/dtoa_core (; 12 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
|
|
|
(local $2 i64)
|
|
|
|
(local $3 i64)
|
|
|
|
(local $4 i32)
|
2019-01-09 13:02:47 +01:00
|
|
|
(local $5 i64)
|
|
|
|
(local $6 i32)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i64)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $9 i64)
|
|
|
|
(local $10 i64)
|
|
|
|
(local $11 i64)
|
2019-02-06 23:42:43 +01:00
|
|
|
(local $12 i32)
|
|
|
|
(local $13 i64)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $14 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.const 0
|
|
|
|
f64.lt
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $12
|
2019-01-09 13:02:47 +01:00
|
|
|
if (result f64)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 45
|
|
|
|
i32.store16 offset=4
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 13:02:47 +01:00
|
|
|
f64.neg
|
|
|
|
else
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.reinterpret_f64
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $13
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 9218868437227405312
|
|
|
|
i64.and
|
|
|
|
i64.const 52
|
|
|
|
i64.shr_u
|
2019-02-05 17:12:10 +01:00
|
|
|
i32.wrap_i64
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $7
|
|
|
|
local.get $13
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4503599627370495
|
|
|
|
i64.and
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.ne
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $4
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.extend_i32_u
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 52
|
|
|
|
i64.shl
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
select
|
|
|
|
i32.const 1075
|
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $7
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $6
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.shl
|
|
|
|
i64.const 1
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.clz
|
2019-02-05 17:12:10 +01:00
|
|
|
i32.wrap_i64
|
|
|
|
local.set $4
|
|
|
|
local.get $5
|
|
|
|
local.get $4
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_frc_plus
|
|
|
|
local.get $2
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4503599627370496
|
|
|
|
i64.eq
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $14
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $7
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $14
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $6
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_frc_minus
|
|
|
|
local.get $6
|
|
|
|
global.set $~lib/internal/number/_exp
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 348
|
|
|
|
i32.const -61
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_exp
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
f64.convert_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.const 0.30102999566398114
|
|
|
|
f64.mul
|
|
|
|
f64.const 347
|
|
|
|
f64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
i32.trunc_f64_s
|
|
|
|
local.tee $4
|
|
|
|
local.get $4
|
|
|
|
f64.convert_i32_s
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.ne
|
|
|
|
i32.add
|
|
|
|
i32.const 3
|
|
|
|
i32.shr_s
|
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $6
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.shl
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_K
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1992
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1728
|
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $6
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 3
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i64.load offset=8
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_frc_pow
|
|
|
|
local.get $4
|
|
|
|
local.get $6
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
i32.add
|
|
|
|
i32.load16_s offset=8
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/internal/number/_exp_pow
|
|
|
|
local.get $2
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.clz
|
2019-02-05 17:12:10 +01:00
|
|
|
i32.wrap_i64
|
|
|
|
local.tee $4
|
|
|
|
i64.extend_i32_s
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $8
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_frc_pow
|
|
|
|
local.tee $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $10
|
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
|
|
|
i64.add
|
|
|
|
i64.const 2147483647
|
|
|
|
i64.add
|
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
|
|
|
local.get $10
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
i64.add
|
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $13
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $2
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_frc_plus
|
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $10
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $11
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $10
|
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $11
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
|
|
|
i64.add
|
|
|
|
i64.const 2147483647
|
|
|
|
i64.add
|
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
i64.add
|
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $11
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_frc_minus
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $8
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.set $3
|
|
|
|
local.get $11
|
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
|
|
|
local.tee $11
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $5
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $10
|
|
|
|
local.get $8
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
2019-02-06 23:42:43 +01:00
|
|
|
local.tee $2
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $9
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 4294967295
|
|
|
|
i64.and
|
|
|
|
i64.add
|
2019-02-06 23:42:43 +01:00
|
|
|
i64.const 2147483647
|
|
|
|
i64.add
|
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
local.get $2
|
|
|
|
local.get $10
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.mul
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i64.const 32
|
|
|
|
i64.shr_u
|
|
|
|
i64.add
|
|
|
|
i64.add
|
|
|
|
i64.const 1
|
|
|
|
i64.add
|
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $12
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $13
|
|
|
|
global.get $~lib/internal/number/_exp_pow
|
|
|
|
local.tee $14
|
|
|
|
local.get $7
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
|
|
|
i32.add
|
|
|
|
i32.const -64
|
|
|
|
i32.sub
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $11
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_exp
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $14
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const -64
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $12
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/genDigits
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $12
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $~lib/internal/number/_K
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/prettify
|
2019-02-06 23:42:43 +01:00
|
|
|
local.get $12
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
)
|
|
|
|
(func $~lib/string/String#substring (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 2072
|
2019-02-21 01:30:05 +02:00
|
|
|
i32.const 249
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
|
|
|
i32.gt_s
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
|
|
|
local.get $2
|
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.lt_s
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.lt_s
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.lt_s
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $4
|
|
|
|
local.get $2
|
|
|
|
local.get $1
|
|
|
|
local.get $2
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.gt_s
|
|
|
|
select
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $1
|
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 2104
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.load
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eq
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $2
|
2019-01-09 12:45:29 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/string/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $4
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.add
|
|
|
|
i32.const 4
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $3
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.shl
|
|
|
|
call $~lib/internal/memory/memmove
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
)
|
|
|
|
(func $~lib/internal/number/dtoa (; 14 ;) (type $Fi) (param $0 f64) (result i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.const 0
|
|
|
|
f64.eq
|
|
|
|
if
|
|
|
|
i32.const 624
|
|
|
|
return
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.sub
|
|
|
|
f64.const 0
|
|
|
|
f64.ne
|
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.ne
|
|
|
|
if
|
|
|
|
i32.const 640
|
|
|
|
return
|
|
|
|
end
|
|
|
|
i32.const 656
|
|
|
|
i32.const 680
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
f64.const 0
|
|
|
|
f64.lt
|
|
|
|
select
|
|
|
|
return
|
|
|
|
end
|
|
|
|
i32.const 28
|
|
|
|
call $~lib/internal/string/allocateUnsafe
|
2019-02-05 17:12:10 +01:00
|
|
|
local.tee $2
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/dtoa_core
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $2
|
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/string/String#substring
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $1
|
|
|
|
local.get $2
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 16
|
|
|
|
i32.const 28
|
|
|
|
i32.const 4
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $1
|
2019-01-09 12:45:29 +01:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start:number (; 15 ;) (type $_)
|
2019-01-09 12:45:29 +01:00
|
|
|
(local $0 i32)
|
|
|
|
i32.const 2192
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~lib/allocator/arena/startOffset
|
|
|
|
global.get $~lib/allocator/arena/startOffset
|
|
|
|
global.set $~lib/allocator/arena/offset
|
|
|
|
global.get $number/a
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 592
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 7
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
f64.const 2
|
|
|
|
call $~lib/internal/number/dtoa
|
|
|
|
i32.const 2112
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 9
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 3
|
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 2128
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 10
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const -5
|
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 2136
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 12
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 4
|
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 2144
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 13
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $number/a
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $number/a
|
|
|
|
global.get $number/a
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 2152
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 14
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $number/a
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $number/a
|
|
|
|
global.get $number/a
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 592
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 15
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 2160
|
|
|
|
i32.const 2160
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 16
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 2176
|
|
|
|
i32.const 2176
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 17
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $number/a
|
|
|
|
local.tee $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $number/a
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 592
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 20
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $number/a
|
|
|
|
local.tee $0
|
2019-01-09 12:45:29 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $number/a
|
|
|
|
local.get $0
|
2019-01-09 12:45:29 +01:00
|
|
|
call $~lib/internal/number/itoa32
|
|
|
|
i32.const 2152
|
|
|
|
call $~lib/string/String.__eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 600
|
|
|
|
i32.const 21
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start (; 16 ;) (type $_)
|
|
|
|
call $start:number
|
|
|
|
)
|
|
|
|
(func $null (; 17 ;) (type $_)
|
2019-01-09 12:45:29 +01:00
|
|
|
nop
|
|
|
|
)
|
|
|
|
)
|