assemblyscript/tests/compiler/std/set.untouched.wat
2019-06-13 15:33:43 +02:00

12221 lines
204 KiB
Plaintext

(module
(type $FUNCSIG$v (func))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$iij (func (param i32 i64) (result i32)))
(type $FUNCSIG$ij (func (param i64) (result i32)))
(type $FUNCSIG$iiji (func (param i32 i64 i32) (result i32)))
(type $FUNCSIG$vij (func (param i32 i64)))
(type $FUNCSIG$iif (func (param i32 f32) (result i32)))
(type $FUNCSIG$iifi (func (param i32 f32 i32) (result i32)))
(type $FUNCSIG$vif (func (param i32 f32)))
(type $FUNCSIG$iid (func (param i32 f64) (result i32)))
(type $FUNCSIG$iidi (func (param i32 f64 i32) (result i32)))
(type $FUNCSIG$vid (func (param i32 f64)))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(import "rtrace" "onincrement" (func $~lib/rt/rtrace/onincrement (param i32)))
(import "rtrace" "ondecrement" (func $~lib/rt/rtrace/ondecrement (param i32)))
(import "rtrace" "onfree" (func $~lib/rt/rtrace/onfree (param i32)))
(import "rtrace" "onalloc" (func $~lib/rt/rtrace/onalloc (param i32)))
(memory $0 1)
(data (i32.const 8) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s\00")
(data (i32.const 56) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00p\00u\00r\00e\00.\00t\00s\00")
(data (i32.const 104) "\n\00\00\00\01\00\00\00\01\00\00\00\n\00\00\00E\00r\00r\00o\00r\00")
(data (i32.const 136) "\00\00\00\00\01\00\00\00\01\00\00\00\00\00\00\00")
(data (i32.const 152) "$\00\00\00\01\00\00\00\01\00\00\00$\00\00\00I\00n\00d\00e\00x\00 \00o\00u\00t\00 \00o\00f\00 \00r\00a\00n\00g\00e\00")
(data (i32.const 208) "(\00\00\00\01\00\00\00\01\00\00\00(\00\00\00a\00l\00l\00o\00c\00a\00t\00i\00o\00n\00 \00t\00o\00o\00 \00l\00a\00r\00g\00e\00")
(data (i32.const 264) "\14\00\00\00\01\00\00\00\01\00\00\00\14\00\00\00R\00a\00n\00g\00e\00E\00r\00r\00o\00r\00")
(data (i32.const 304) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00I\00n\00v\00a\00l\00i\00d\00 \00l\00e\00n\00g\00t\00h\00")
(data (i32.const 352) "\14\00\00\00\01\00\00\00\01\00\00\00\14\00\00\00s\00t\00d\00/\00s\00e\00t\00.\00t\00s\00")
(data (i32.const 392) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00u\00n\00c\00a\00u\00g\00h\00t\00 \00e\00r\00r\00o\00r\00")
(data (i32.const 440) "\0f\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\00\00\00\004\04\00\00\00\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\04\00\00\004\00\00\00\00\00\00\00T\04\00\00\00\00\00\00T\00\00\00\00\00\00\00\94\04\00\00\00\00\00\00\94\00\00\00\00\00\00\00\14\05\00\00\00\00\00\00\14\01\00\00\00\00\00\00\94\0c\00\00\00\00\00\00\14\0d\00\00\00\00\00\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $~lib/error (mut i32) (i32.const 0))
(global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0))
(global $~lib/rt/pure/CUR (mut i32) (i32.const 0))
(global $~lib/rt/pure/END (mut i32) (i32.const 0))
(global $~lib/rt/pure/ROOTS (mut i32) (i32.const 0))
(global $~lib/ASC_SHRINK_LEVEL i32 (i32.const 0))
(global $~lib/rt/__rtti_base i32 (i32.const 440))
(global $~lib/heap/__heap_base i32 (i32.const 564))
(export "memory" (memory $0))
(start $start)
(func $~lib/rt/tlsf/removeBlock (; 5 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
if
i32.const 0
i32.const 24
i32.const 276
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
local.set $3
local.get $3
i32.const 16
i32.ge_u
if (result i32)
local.get $3
i32.const 1073741808
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 278
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $3
i32.const 256
i32.lt_u
if
i32.const 0
local.set $4
local.get $3
i32.const 4
i32.shr_u
local.set $5
else
i32.const 31
local.get $3
i32.clz
i32.sub
local.set $4
local.get $3
local.get $4
i32.const 4
i32.sub
i32.shr_u
i32.const 1
i32.const 4
i32.shl
i32.xor
local.set $5
local.get $4
i32.const 8
i32.const 1
i32.sub
i32.sub
local.set $4
end
local.get $4
i32.const 23
i32.lt_u
if (result i32)
local.get $5
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 291
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.load offset=16
local.set $6
local.get $1
i32.load offset=20
local.set $7
local.get $6
if
local.get $6
local.get $7
i32.store offset=20
end
local.get $7
if
local.get $7
local.get $6
i32.store offset=16
end
local.get $1
local.get $0
local.set $10
local.get $4
local.set $9
local.get $5
local.set $8
local.get $10
local.get $9
i32.const 4
i32.shl
local.get $8
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
i32.eq
if
local.get $0
local.set $11
local.get $4
local.set $10
local.get $5
local.set $9
local.get $7
local.set $8
local.get $11
local.get $10
i32.const 4
i32.shl
local.get $9
i32.add
i32.const 2
i32.shl
i32.add
local.get $8
i32.store offset=96
local.get $7
i32.eqz
if
local.get $0
local.set $9
local.get $4
local.set $8
local.get $9
local.get $8
i32.const 2
i32.shl
i32.add
i32.load offset=4
local.set $9
local.get $0
local.set $8
local.get $4
local.set $11
local.get $9
i32.const 1
local.get $5
i32.shl
i32.const -1
i32.xor
i32.and
local.tee $9
local.set $10
local.get $8
local.get $11
i32.const 2
i32.shl
i32.add
local.get $10
i32.store offset=4
local.get $9
i32.eqz
if
local.get $0
local.get $0
i32.load
i32.const 1
local.get $4
i32.shl
i32.const -1
i32.xor
i32.and
i32.store
end
end
end
)
(func $~lib/rt/tlsf/insertBlock (; 6 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
(local $13 i32)
local.get $1
i32.eqz
if
i32.const 0
i32.const 24
i32.const 204
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
if
i32.const 0
i32.const 24
i32.const 206
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
local.set $3
local.get $3
i32.const 16
i32.add
local.get $3
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $4
local.get $4
i32.load
local.set $5
local.get $5
i32.const 1
i32.and
if
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
i32.const 16
i32.add
local.get $5
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $3
local.get $3
i32.const 1073741808
i32.lt_u
if
local.get $0
local.get $4
call $~lib/rt/tlsf/removeBlock
local.get $1
local.get $2
i32.const 3
i32.and
local.get $3
i32.or
local.tee $2
i32.store
local.get $1
local.set $6
local.get $6
i32.const 16
i32.add
local.get $6
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $4
local.get $4
i32.load
local.set $5
end
end
local.get $2
i32.const 2
i32.and
if
local.get $1
local.set $6
local.get $6
i32.const 4
i32.sub
i32.load
local.set $6
local.get $6
i32.load
local.set $3
local.get $3
i32.const 1
i32.and
i32.eqz
if
i32.const 0
i32.const 24
i32.const 227
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $3
i32.const 3
i32.const -1
i32.xor
i32.and
i32.const 16
i32.add
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.set $7
local.get $7
i32.const 1073741808
i32.lt_u
if
local.get $0
local.get $6
call $~lib/rt/tlsf/removeBlock
local.get $6
local.get $3
i32.const 3
i32.and
local.get $7
i32.or
local.tee $2
i32.store
local.get $6
local.set $1
end
end
local.get $4
local.get $5
i32.const 2
i32.or
i32.store
local.get $2
i32.const 3
i32.const -1
i32.xor
i32.and
local.set $8
local.get $8
i32.const 16
i32.ge_u
if (result i32)
local.get $8
i32.const 1073741808
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 242
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.const 16
i32.add
local.get $8
i32.add
local.get $4
i32.eq
i32.eqz
if
i32.const 0
i32.const 24
i32.const 243
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $4
i32.const 4
i32.sub
local.get $1
i32.store
local.get $8
i32.const 256
i32.lt_u
if
i32.const 0
local.set $9
local.get $8
i32.const 4
i32.shr_u
local.set $10
else
i32.const 31
local.get $8
i32.clz
i32.sub
local.set $9
local.get $8
local.get $9
i32.const 4
i32.sub
i32.shr_u
i32.const 1
i32.const 4
i32.shl
i32.xor
local.set $10
local.get $9
i32.const 8
i32.const 1
i32.sub
i32.sub
local.set $9
end
local.get $9
i32.const 23
i32.lt_u
if (result i32)
local.get $10
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 259
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $0
local.set $7
local.get $9
local.set $3
local.get $10
local.set $6
local.get $7
local.get $3
i32.const 4
i32.shl
local.get $6
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
local.set $11
local.get $1
i32.const 0
i32.store offset=16
local.get $1
local.get $11
i32.store offset=20
local.get $11
if
local.get $11
local.get $1
i32.store offset=16
end
local.get $0
local.set $12
local.get $9
local.set $7
local.get $10
local.set $3
local.get $1
local.set $6
local.get $12
local.get $7
i32.const 4
i32.shl
local.get $3
i32.add
i32.const 2
i32.shl
i32.add
local.get $6
i32.store offset=96
local.get $0
local.get $0
i32.load
i32.const 1
local.get $9
i32.shl
i32.or
i32.store
local.get $0
local.set $13
local.get $9
local.set $12
local.get $0
local.set $3
local.get $9
local.set $6
local.get $3
local.get $6
i32.const 2
i32.shl
i32.add
i32.load offset=4
i32.const 1
local.get $10
i32.shl
i32.or
local.set $7
local.get $13
local.get $12
i32.const 2
i32.shl
i32.add
local.get $7
i32.store offset=4
)
(func $~lib/rt/tlsf/addMemory (; 7 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
local.get $1
local.get $2
i32.le_u
if (result i32)
local.get $1
i32.const 15
i32.and
i32.eqz
else
i32.const 0
end
if (result i32)
local.get $2
i32.const 15
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 385
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
local.set $3
local.get $3
i32.load offset=1568
local.set $4
i32.const 0
local.set $5
local.get $4
if
local.get $1
local.get $4
i32.const 16
i32.add
i32.ge_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 395
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $1
i32.const 16
i32.sub
local.get $4
i32.eq
if
local.get $1
i32.const 16
i32.sub
local.set $1
local.get $4
i32.load
local.set $5
else
nop
end
else
local.get $1
local.get $0
i32.const 1572
i32.add
i32.ge_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 407
i32.const 4
call $~lib/builtins/abort
unreachable
end
end
local.get $2
local.get $1
i32.sub
local.set $6
local.get $6
i32.const 48
i32.lt_u
if
i32.const 0
return
end
local.get $6
i32.const 2
i32.const 16
i32.mul
i32.sub
local.set $7
local.get $1
local.set $8
local.get $8
local.get $7
i32.const 1
i32.or
local.get $5
i32.const 2
i32.and
i32.or
i32.store
local.get $8
i32.const 0
i32.store offset=16
local.get $8
i32.const 0
i32.store offset=20
local.get $1
local.get $6
i32.add
i32.const 16
i32.sub
local.set $4
local.get $4
i32.const 0
i32.const 2
i32.or
i32.store
local.get $0
local.set $9
local.get $4
local.set $3
local.get $9
local.get $3
i32.store offset=1568
local.get $0
local.get $8
call $~lib/rt/tlsf/insertBlock
i32.const 1
)
(func $~lib/rt/tlsf/initializeRoot (; 8 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
global.get $~lib/heap/__heap_base
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
local.set $0
memory.size
local.set $1
local.get $0
i32.const 1572
i32.add
i32.const 65535
i32.add
i32.const 65535
i32.const -1
i32.xor
i32.and
i32.const 16
i32.shr_u
local.set $2
local.get $2
local.get $1
i32.gt_s
if (result i32)
local.get $2
local.get $1
i32.sub
memory.grow
i32.const 0
i32.lt_s
else
i32.const 0
end
if
unreachable
end
local.get $0
local.set $3
local.get $3
i32.const 0
i32.store
local.get $3
local.set $5
i32.const 0
local.set $4
local.get $5
local.get $4
i32.store offset=1568
block $break|0
i32.const 0
local.set $5
loop $loop|0
local.get $5
i32.const 23
i32.lt_u
i32.eqz
br_if $break|0
local.get $3
local.set $7
local.get $5
local.set $6
i32.const 0
local.set $4
local.get $7
local.get $6
i32.const 2
i32.shl
i32.add
local.get $4
i32.store offset=4
block $break|1
i32.const 0
local.set $7
loop $loop|1
local.get $7
i32.const 16
i32.lt_u
i32.eqz
br_if $break|1
local.get $3
local.set $9
local.get $5
local.set $8
local.get $7
local.set $6
i32.const 0
local.set $4
local.get $9
local.get $8
i32.const 4
i32.shl
local.get $6
i32.add
i32.const 2
i32.shl
i32.add
local.get $4
i32.store offset=96
local.get $7
i32.const 1
i32.add
local.set $7
br $loop|1
end
unreachable
end
local.get $5
i32.const 1
i32.add
local.set $5
br $loop|0
end
unreachable
end
local.get $3
local.get $0
i32.const 1572
i32.add
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
memory.size
i32.const 16
i32.shl
call $~lib/rt/tlsf/addMemory
drop
local.get $3
global.set $~lib/rt/tlsf/ROOT
)
(func $~lib/rt/pure/increment (; 9 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $1
i32.const 1
i32.add
i32.const 268435455
i32.const -1
i32.xor
i32.and
i32.eq
i32.eqz
if
i32.const 0
i32.const 72
i32.const 104
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
local.get $0
call $~lib/rt/rtrace/onincrement
local.get $0
i32.load
i32.const 1
i32.and
i32.eqz
i32.eqz
if
i32.const 0
i32.const 72
i32.const 107
i32.const 13
call $~lib/builtins/abort
unreachable
end
)
(func $~lib/rt/pure/__retain (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
global.get $~lib/heap/__heap_base
i32.gt_u
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/pure/increment
end
local.get $0
)
(func $~lib/rt/tlsf/freeBlock (; 11 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $1
i32.load
local.set $2
local.get $2
i32.const 1
i32.and
i32.eqz
i32.eqz
if
i32.const 0
i32.const 24
i32.const 531
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
i32.const 1
i32.or
i32.store
local.get $0
local.get $1
call $~lib/rt/tlsf/insertBlock
local.get $1
call $~lib/rt/rtrace/onfree
)
(func $~lib/rt/__typeinfo (; 12 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
global.get $~lib/rt/__rtti_base
local.set $1
local.get $0
local.get $1
i32.load
i32.gt_u
if
i32.const 0
i32.const 168
call $~lib/error/Error#constructor
global.set $~lib/error
i32.const 0
return
end
local.get $1
i32.const 4
i32.add
local.get $0
i32.const 8
i32.mul
i32.add
i32.load
)
(func $~lib/util/memory/memcpy (; 13 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $break|0
loop $continue|0
local.get $2
if (result i32)
local.get $1
i32.const 3
i32.and
else
i32.const 0
end
i32.eqz
br_if $break|0
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
br $continue|0
end
unreachable
end
local.get $0
i32.const 3
i32.and
i32.const 0
i32.eq
if
block $break|1
loop $continue|1
local.get $2
i32.const 16
i32.ge_u
i32.eqz
br_if $break|1
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.get $1
i32.const 4
i32.add
i32.load
i32.store
local.get $0
i32.const 8
i32.add
local.get $1
i32.const 8
i32.add
i32.load
i32.store
local.get $0
i32.const 12
i32.add
local.get $1
i32.const 12
i32.add
i32.load
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|1
end
unreachable
end
local.get $2
i32.const 8
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.get $1
i32.const 4
i32.add
i32.load
i32.store
local.get $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
local.get $2
i32.const 4
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.set $0
local.get $1
i32.const 4
i32.add
local.set $1
end
local.get $2
i32.const 2
i32.and
if
local.get $0
local.get $1
i32.load16_u
i32.store16
local.get $0
i32.const 2
i32.add
local.set $0
local.get $1
i32.const 2
i32.add
local.set $1
end
local.get $2
i32.const 1
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
return
end
local.get $2
i32.const 32
i32.ge_u
if
block $break|2
block $case2|2
block $case1|2
block $case0|2
local.get $0
i32.const 3
i32.and
local.set $5
local.get $5
i32.const 1
i32.eq
br_if $case0|2
local.get $5
i32.const 2
i32.eq
br_if $case1|2
local.get $5
i32.const 3
i32.eq
br_if $case2|2
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 3
i32.sub
local.set $2
block $break|3
loop $continue|3
local.get $2
i32.const 17
i32.ge_u
i32.eqz
br_if $break|3
local.get $1
i32.const 1
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 24
i32.shr_u
local.get $4
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 5
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 24
i32.shr_u
local.get $3
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 9
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 24
i32.shr_u
local.get $4
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 13
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 24
i32.shr_u
local.get $3
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|3
end
unreachable
end
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 2
i32.sub
local.set $2
block $break|4
loop $continue|4
local.get $2
i32.const 18
i32.ge_u
i32.eqz
br_if $break|4
local.get $1
i32.const 2
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 6
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 10
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 14
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|4
end
unreachable
end
br $break|2
end
local.get $1
i32.load
local.set $3
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
block $break|5
loop $continue|5
local.get $2
i32.const 19
i32.ge_u
i32.eqz
br_if $break|5
local.get $1
i32.const 3
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 7
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 11
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 15
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
br $continue|5
end
unreachable
end
br $break|2
end
end
local.get $2
i32.const 16
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 8
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 4
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 2
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
local.get $2
i32.const 1
i32.and
if
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
i32.load8_u
i32.store8
end
)
(func $~lib/memory/memory.copy (; 14 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
block $~lib/util/memory/memmove|inlined.0
local.get $0
local.set $5
local.get $1
local.set $4
local.get $2
local.set $3
local.get $5
local.get $4
i32.eq
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $4
local.get $3
i32.add
local.get $5
i32.le_u
if (result i32)
i32.const 1
else
local.get $5
local.get $3
i32.add
local.get $4
i32.le_u
end
if
local.get $5
local.get $4
local.get $3
call $~lib/util/memory/memcpy
br $~lib/util/memory/memmove|inlined.0
end
local.get $5
local.get $4
i32.lt_u
if
local.get $4
i32.const 7
i32.and
local.get $5
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
local.get $5
i32.const 7
i32.and
i32.eqz
br_if $break|0
local.get $3
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $3
i32.const 1
i32.sub
local.set $3
local.get $5
local.tee $6
i32.const 1
i32.add
local.set $5
local.get $6
local.get $4
local.tee $6
i32.const 1
i32.add
local.set $4
local.get $6
i32.load8_u
i32.store8
br $continue|0
end
unreachable
end
block $break|1
loop $continue|1
local.get $3
i32.const 8
i32.ge_u
i32.eqz
br_if $break|1
local.get $5
local.get $4
i64.load
i64.store
local.get $3
i32.const 8
i32.sub
local.set $3
local.get $5
i32.const 8
i32.add
local.set $5
local.get $4
i32.const 8
i32.add
local.set $4
br $continue|1
end
unreachable
end
end
block $break|2
loop $continue|2
local.get $3
i32.eqz
br_if $break|2
local.get $5
local.tee $6
i32.const 1
i32.add
local.set $5
local.get $6
local.get $4
local.tee $6
i32.const 1
i32.add
local.set $4
local.get $6
i32.load8_u
i32.store8
local.get $3
i32.const 1
i32.sub
local.set $3
br $continue|2
end
unreachable
end
else
local.get $4
i32.const 7
i32.and
local.get $5
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
local.get $5
local.get $3
i32.add
i32.const 7
i32.and
i32.eqz
br_if $break|3
local.get $3
i32.eqz
if
br $~lib/util/memory/memmove|inlined.0
end
local.get $5
local.get $3
i32.const 1
i32.sub
local.tee $3
i32.add
local.get $4
local.get $3
i32.add
i32.load8_u
i32.store8
br $continue|3
end
unreachable
end
block $break|4
loop $continue|4
local.get $3
i32.const 8
i32.ge_u
i32.eqz
br_if $break|4
local.get $3
i32.const 8
i32.sub
local.set $3
local.get $5
local.get $3
i32.add
local.get $4
local.get $3
i32.add
i64.load
i64.store
br $continue|4
end
unreachable
end
end
block $break|5
loop $continue|5
local.get $3
i32.eqz
br_if $break|5
local.get $5
local.get $3
i32.const 1
i32.sub
local.tee $3
i32.add
local.get $4
local.get $3
i32.add
i32.load8_u
i32.store8
br $continue|5
end
unreachable
end
end
end
)
(func $~lib/rt/tlsf/__free (; 15 ;) (type $FUNCSIG$vi) (param $0 i32)
global.get $~lib/rt/tlsf/ROOT
i32.eqz
if
i32.const 0
i32.const 24
i32.const 561
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 0
i32.ne
if (result i32)
local.get $0
i32.const 15
i32.and
i32.eqz
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 562
i32.const 2
call $~lib/builtins/abort
unreachable
end
global.get $~lib/rt/tlsf/ROOT
local.get $0
i32.const 16
i32.sub
call $~lib/rt/tlsf/freeBlock
)
(func $~lib/rt/pure/growRoots (; 16 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
global.get $~lib/rt/pure/ROOTS
local.set $0
global.get $~lib/rt/pure/CUR
local.get $0
i32.sub
local.set $1
local.get $1
i32.const 2
i32.mul
local.tee $2
i32.const 64
i32.const 2
i32.shl
local.tee $3
local.get $2
local.get $3
i32.gt_u
select
local.set $4
local.get $4
i32.const 0
call $~lib/rt/tlsf/__alloc
local.set $5
local.get $5
i32.const 16
i32.sub
call $~lib/rt/rtrace/onfree
local.get $5
local.get $0
local.get $1
call $~lib/memory/memory.copy
local.get $0
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/rtrace/onalloc
local.get $0
call $~lib/rt/tlsf/__free
end
local.get $5
global.set $~lib/rt/pure/ROOTS
local.get $5
local.get $1
i32.add
global.set $~lib/rt/pure/CUR
local.get $5
local.get $4
i32.add
global.set $~lib/rt/pure/END
)
(func $~lib/rt/pure/appendRoot (; 17 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
global.get $~lib/rt/pure/CUR
local.set $1
local.get $1
global.get $~lib/rt/pure/END
i32.ge_u
if
call $~lib/rt/pure/growRoots
global.get $~lib/rt/pure/CUR
local.set $1
end
local.get $1
local.get $0
i32.store
local.get $1
i32.const 4
i32.add
global.set $~lib/rt/pure/CUR
)
(func $~lib/rt/pure/decrement (; 18 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 268435455
i32.and
local.set $2
local.get $0
call $~lib/rt/rtrace/ondecrement
local.get $0
i32.load
i32.const 1
i32.and
i32.eqz
i32.eqz
if
i32.const 0
i32.const 72
i32.const 115
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $2
i32.const 1
i32.eq
if
local.get $0
i32.const 16
i32.add
i32.const 1
call $~lib/rt/__visit_members
local.get $1
i32.const -2147483648
i32.and
i32.eqz
if
global.get $~lib/rt/tlsf/ROOT
local.get $0
call $~lib/rt/tlsf/freeBlock
else
local.get $0
i32.const -2147483648
i32.const 0
i32.or
i32.const 0
i32.or
i32.store offset=4
end
else
local.get $2
i32.const 0
i32.gt_u
i32.eqz
if
i32.const 0
i32.const 72
i32.const 124
i32.const 15
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.load offset=8
call $~lib/rt/__typeinfo
local.set $3
global.get $~lib/error
if
return
end
local.get $3
i32.const 16
i32.and
i32.eqz
if
local.get $0
i32.const -2147483648
i32.const 805306368
i32.or
local.get $2
i32.const 1
i32.sub
i32.or
i32.store offset=4
local.get $1
i32.const -2147483648
i32.and
i32.eqz
if
local.get $0
call $~lib/rt/pure/appendRoot
end
else
local.get $0
local.get $1
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $2
i32.const 1
i32.sub
i32.or
i32.store offset=4
end
end
)
(func $~lib/rt/pure/__release (; 19 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
global.get $~lib/heap/__heap_base
i32.gt_u
if
local.get $0
i32.const 16
i32.sub
call $~lib/rt/pure/decrement
global.get $~lib/error
if
return
end
end
)
(func $~lib/error/Error#constructor (; 20 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $1
call $~lib/rt/pure/__retain
drop
local.get $0
i32.eqz
if
i32.const 12
i32.const 4
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 120
call $~lib/rt/pure/__retain
i32.store
local.get $0
i32.const 152
call $~lib/rt/pure/__retain
i32.store offset=4
local.get $0
local.get $1
i32.store offset=8
local.get $1
call $~lib/rt/pure/__release
local.get $0
)
(func $~lib/rt/tlsf/prepareSize (; 21 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
i32.const 1073741808
i32.ge_u
if
i32.const 0
i32.const 224
call $~lib/error/Error#constructor
global.set $~lib/error
i32.const 0
return
end
local.get $0
i32.const 15
i32.add
i32.const 15
i32.const -1
i32.xor
i32.and
local.tee $1
i32.const 16
local.tee $2
local.get $1
local.get $2
i32.gt_u
select
)
(func $~lib/rt/tlsf/searchBlock (; 22 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
local.get $1
i32.const 256
i32.lt_u
if
i32.const 0
local.set $2
local.get $1
i32.const 4
i32.shr_u
local.set $3
else
local.get $1
i32.const 536870904
i32.lt_u
if (result i32)
local.get $1
i32.const 1
i32.const 27
local.get $1
i32.clz
i32.sub
i32.shl
i32.add
i32.const 1
i32.sub
else
local.get $1
end
local.set $4
i32.const 31
local.get $4
i32.clz
i32.sub
local.set $2
local.get $4
local.get $2
i32.const 4
i32.sub
i32.shr_u
i32.const 1
i32.const 4
i32.shl
i32.xor
local.set $3
local.get $2
i32.const 8
i32.const 1
i32.sub
i32.sub
local.set $2
end
local.get $2
i32.const 23
i32.lt_u
if (result i32)
local.get $3
i32.const 16
i32.lt_u
else
i32.const 0
end
i32.eqz
if
i32.const 0
i32.const 24
i32.const 337
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $0
local.set $5
local.get $2
local.set $4
local.get $5
local.get $4
i32.const 2
i32.shl
i32.add
i32.load offset=4
i32.const 0
i32.const -1
i32.xor
local.get $3
i32.shl
i32.and
local.set $6
i32.const 0
local.set $7
local.get $6
i32.eqz
if
local.get $0
i32.load
i32.const 0
i32.const -1
i32.xor
local.get $2
i32.const 1
i32.add
i32.shl
i32.and
local.set $5
local.get $5
i32.eqz
if
i32.const 0
local.set $7
else
local.get $5
i32.ctz
local.set $2
local.get $0
local.set $8
local.get $2
local.set $4
local.get $8
local.get $4
i32.const 2
i32.shl
i32.add
i32.load offset=4
local.set $6
local.get $6
i32.eqz
if
i32.const 0
i32.const 24
i32.const 350
i32.const 17
call $~lib/builtins/abort
unreachable
end
local.get $0
local.set $9
local.get $2
local.set $8
local.get $6
i32.ctz
local.set $4
local.get $9
local.get $8
i32.const 4
i32.shl
local.get $4
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
local.set $7
end
else
local.get $0
local.set $9
local.get $2
local.set $8
local.get $6
i32.ctz
local.set $4
local.get $9
local.get $8
i32.const 4
i32.shl
local.get $4
i32.add
i32.const 2
i32.shl
i32.add
i32.load offset=96
local.set $7
end
local.get $7
)
(func $~lib/rt/tlsf/growMemory (; 23 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
memory.size
local.set $2
local.get $1
i32.const 65535
i32.add
i32.const 65535
i32.const -1
i32.xor
i32.and
i32.const 16
i32.shr_u
local.set $3
local.get $2
local.tee $4
local.get $3
local.tee $5
local.get $4
local.get $5
i32.gt_s
select
local.set $6
local.get $6
memory.grow
i32.const 0
i32.lt_s
if
local.get $3
memory.grow
i32.const 0
i32.lt_s
if
unreachable
end
end
memory.size
local.set $7
local.get $0
local.get $2
i32.const 16
i32.shl
local.get $7
i32.const 16
i32.shl
call $~lib/rt/tlsf/addMemory
drop
)
(func $~lib/rt/tlsf/prepareBlock (; 24 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $1
i32.load
local.set $3
local.get $2
i32.const 15
i32.and
i32.eqz
i32.eqz
if
i32.const 0
i32.const 24
i32.const 364
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $3
i32.const 3
i32.const -1
i32.xor
i32.and
local.get $2
i32.sub
local.set $4
local.get $4
i32.const 32
i32.ge_u
if
local.get $1
local.get $2
local.get $3
i32.const 2
i32.and
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.get $2
i32.add
local.set $5
local.get $5
local.get $4
i32.const 16
i32.sub
i32.const 1
i32.or
i32.store
local.get $0
local.get $5
call $~lib/rt/tlsf/insertBlock
else
local.get $1
local.get $3
i32.const 1
i32.const -1
i32.xor
i32.and
i32.store
local.get $1
local.set $5
local.get $5
i32.const 16
i32.add
local.get $5
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
local.get $1
local.set $5
local.get $5
i32.const 16
i32.add
local.get $5
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
i32.add
i32.load
i32.const 2
i32.const -1
i32.xor
i32.and
i32.store
end
)
(func $~lib/rt/tlsf/allocateBlock (; 25 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
local.get $1
call $~lib/rt/tlsf/prepareSize
local.set $2
global.get $~lib/error
if
i32.const 0
return
end
local.get $2
local.set $3
local.get $0
local.get $3
call $~lib/rt/tlsf/searchBlock
local.set $4
local.get $4
i32.eqz
if
local.get $0
local.get $3
call $~lib/rt/tlsf/growMemory
local.get $0
local.get $3
call $~lib/rt/tlsf/searchBlock
local.set $4
local.get $4
i32.eqz
if
i32.const 0
i32.const 24
i32.const 477
i32.const 15
call $~lib/builtins/abort
unreachable
end
end
local.get $4
i32.load
i32.const 3
i32.const -1
i32.xor
i32.and
local.get $3
i32.ge_u
i32.eqz
if
i32.const 0
i32.const 24
i32.const 479
i32.const 13
call $~lib/builtins/abort
unreachable
end
local.get $4
i32.const 0
i32.store offset=4
local.get $4
local.get $1
i32.store offset=12
local.get $0
local.get $4
call $~lib/rt/tlsf/removeBlock
local.get $0
local.get $4
local.get $3
call $~lib/rt/tlsf/prepareBlock
local.get $4
call $~lib/rt/rtrace/onalloc
local.get $4
)
(func $~lib/rt/tlsf/__alloc (; 26 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
global.get $~lib/rt/tlsf/ROOT
local.set $2
local.get $2
i32.eqz
if
call $~lib/rt/tlsf/initializeRoot
global.get $~lib/rt/tlsf/ROOT
local.set $2
end
local.get $2
local.get $0
call $~lib/rt/tlsf/allocateBlock
local.set $3
global.get $~lib/error
if
i32.const 0
return
end
local.get $3
local.set $4
local.get $4
local.get $1
i32.store offset=8
local.get $4
i32.const 16
i32.add
)
(func $~lib/error/RangeError#constructor (; 27 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
call $~lib/rt/pure/__retain
drop
local.get $0
if (result i32)
local.get $0
else
i32.const 12
i32.const 5
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
end
local.get $1
call $~lib/error/Error#constructor
local.set $0
local.get $0
local.tee $2
i32.const 280
local.tee $3
local.get $2
i32.load
local.tee $2
i32.ne
if
local.get $3
call $~lib/rt/pure/__retain
drop
local.get $2
call $~lib/rt/pure/__release
end
local.get $3
i32.store
local.get $1
call $~lib/rt/pure/__release
local.get $0
)
(func $~lib/memory/memory.fill (; 28 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i64)
block $~lib/util/memory/memset|inlined.0
local.get $0
local.set $5
local.get $1
local.set $4
local.get $2
local.set $3
local.get $3
i32.eqz
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 1
i32.sub
local.get $4
i32.store8
local.get $3
i32.const 2
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 1
i32.add
local.get $4
i32.store8
local.get $5
i32.const 2
i32.add
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 2
i32.sub
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 3
i32.sub
local.get $4
i32.store8
local.get $3
i32.const 6
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 3
i32.add
local.get $4
i32.store8
local.get $5
local.get $3
i32.add
i32.const 4
i32.sub
local.get $4
i32.store8
local.get $3
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
i32.const 0
local.get $5
i32.sub
i32.const 3
i32.and
local.set $6
local.get $5
local.get $6
i32.add
local.set $5
local.get $3
local.get $6
i32.sub
local.set $3
local.get $3
i32.const -4
i32.and
local.set $3
i32.const -1
i32.const 255
i32.div_u
local.get $4
i32.const 255
i32.and
i32.mul
local.set $7
local.get $5
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 4
i32.sub
local.get $7
i32.store
local.get $3
i32.const 8
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 4
i32.add
local.get $7
i32.store
local.get $5
i32.const 8
i32.add
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 12
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 8
i32.sub
local.get $7
i32.store
local.get $3
i32.const 24
i32.le_u
if
br $~lib/util/memory/memset|inlined.0
end
local.get $5
i32.const 12
i32.add
local.get $7
i32.store
local.get $5
i32.const 16
i32.add
local.get $7
i32.store
local.get $5
i32.const 20
i32.add
local.get $7
i32.store
local.get $5
i32.const 24
i32.add
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 28
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 24
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 20
i32.sub
local.get $7
i32.store
local.get $5
local.get $3
i32.add
i32.const 16
i32.sub
local.get $7
i32.store
i32.const 24
local.get $5
i32.const 4
i32.and
i32.add
local.set $6
local.get $5
local.get $6
i32.add
local.set $5
local.get $3
local.get $6
i32.sub
local.set $3
local.get $7
i64.extend_i32_u
local.get $7
i64.extend_i32_u
i64.const 32
i64.shl
i64.or
local.set $8
block $break|0
loop $continue|0
local.get $3
i32.const 32
i32.ge_u
i32.eqz
br_if $break|0
local.get $5
local.get $8
i64.store
local.get $5
i32.const 8
i32.add
local.get $8
i64.store
local.get $5
i32.const 16
i32.add
local.get $8
i64.store
local.get $5
i32.const 24
i32.add
local.get $8
i64.store
local.get $3
i32.const 32
i32.sub
local.set $3
local.get $5
i32.const 32
i32.add
local.set $5
br $continue|0
end
unreachable
end
end
)
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 29 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
i32.const 1073741808
i32.gt_u
if
i32.const 0
i32.const 320
call $~lib/error/RangeError#constructor
global.set $~lib/error
i32.const 0
return
end
local.get $1
i32.const 0
call $~lib/rt/tlsf/__alloc
local.set $2
global.get $~lib/error
if
i32.const 0
return
end
local.get $2
local.set $3
local.get $3
i32.const 0
local.get $1
call $~lib/memory/memory.fill
local.get $3
call $~lib/rt/pure/__retain
)
(func $~lib/set/Set<i8>#clear (; 30 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i8>#constructor (; 31 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 3
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<i8>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/util/hash/hash8 (; 32 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const -2128831035
local.get $0
i32.xor
i32.const 16777619
i32.mul
)
(func $~lib/set/Set<i8>#find (; 33 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load8_s
local.get $1
i32.const 24
i32.shl
i32.const 24
i32.shr_s
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<i8>#has (; 34 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i8>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 24
i32.shl
i32.const 24
i32.shr_s
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<i8>|inlined.0
end
call $~lib/set/Set<i8>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<i8>#rehash (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i32.load8_s
i32.store8
block $~lib/util/hash/HASH<i8>|inlined.2 (result i32)
local.get $3
i32.load8_s
local.set $11
local.get $11
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<i8>|inlined.2
end
local.get $1
i32.and
local.set $11
local.get $4
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=4
local.get $12
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i8>#add (; 36 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
block $~lib/util/hash/HASH<i8>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 24
i32.shl
i32.const 24
i32.shr_s
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<i8>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<i8>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<i8>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $2
i32.const 1
i32.add
i32.store offset=16
local.get $2
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i32.store8
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $2
local.get $4
local.get $2
i32.load
i32.store offset=4
local.get $2
local.get $4
i32.store
end
)
(func $~lib/set/Set<i8>#get:size (; 37 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i8>#delete (; 38 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i8>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 24
i32.shl
i32.const 24
i32.shr_s
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<i8>|inlined.3
end
call $~lib/set/Set<i8>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $2
local.get $0
i32.load offset=20
local.tee $5
local.get $2
local.get $5
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<i8>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<i8> (; 39 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
i32.const 0
call $~lib/set/Set<i8>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i32.const 0
local.set $0
loop $loop|0
local.get $0
i32.const 100
i32.lt_s
i32.eqz
br_if $break|0
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<i8>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i32.const 50
local.set $0
loop $loop|1
local.get $0
i32.const 100
i32.lt_s
i32.eqz
br_if $break|1
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<i8>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i32.const 0
local.set $0
loop $loop|2
local.get $0
i32.const 50
i32.lt_s
i32.eqz
br_if $break|2
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<i8>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i32.const 0
local.set $0
loop $loop|3
local.get $0
i32.const 50
i32.lt_s
i32.eqz
br_if $break|3
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i8>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<i8>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<i8>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<i8>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u8>#clear (; 40 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u8>#constructor (; 41 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 6
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<u8>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/set/Set<u8>#find (; 42 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load8_u
local.get $1
i32.const 255
i32.and
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<u8>#has (; 43 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u8>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 255
i32.and
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<u8>|inlined.0
end
call $~lib/set/Set<u8>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<u8>#rehash (; 44 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i32.load8_u
i32.store8
block $~lib/util/hash/HASH<u8>|inlined.2 (result i32)
local.get $3
i32.load8_u
local.set $11
local.get $11
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<u8>|inlined.2
end
local.get $1
i32.and
local.set $11
local.get $4
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=4
local.get $12
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u8>#add (; 45 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
block $~lib/util/hash/HASH<u8>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 255
i32.and
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<u8>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<u8>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<u8>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $2
i32.const 1
i32.add
i32.store offset=16
local.get $2
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i32.store8
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $2
local.get $4
local.get $2
i32.load
i32.store offset=4
local.get $2
local.get $4
i32.store
end
)
(func $~lib/set/Set<u8>#get:size (; 46 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u8>#delete (; 47 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u8>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 255
i32.and
call $~lib/util/hash/hash8
br $~lib/util/hash/HASH<u8>|inlined.3
end
call $~lib/set/Set<u8>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $2
local.get $0
i32.load offset=20
local.tee $5
local.get $2
local.get $5
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<u8>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<u8> (; 48 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
i32.const 0
call $~lib/set/Set<u8>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i32.const 0
local.set $0
loop $loop|0
local.get $0
i32.const 100
i32.lt_u
i32.eqz
br_if $break|0
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<u8>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i32.const 50
local.set $0
loop $loop|1
local.get $0
i32.const 100
i32.lt_u
i32.eqz
br_if $break|1
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<u8>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i32.const 0
local.set $0
loop $loop|2
local.get $0
i32.const 50
i32.lt_u
i32.eqz
br_if $break|2
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<u8>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i32.const 0
local.set $0
loop $loop|3
local.get $0
i32.const 50
i32.lt_u
i32.eqz
br_if $break|3
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u8>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<u8>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<u8>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<u8>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i16>#clear (; 49 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i16>#constructor (; 50 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 7
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<i16>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/util/hash/hash16 (; 51 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const -2128831035
local.set $1
local.get $1
local.get $0
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 8
i32.shr_u
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
)
(func $~lib/set/Set<i16>#find (; 52 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load16_s
local.get $1
i32.const 16
i32.shl
i32.const 16
i32.shr_s
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<i16>#has (; 53 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i16>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 16
i32.shl
i32.const 16
i32.shr_s
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<i16>|inlined.0
end
call $~lib/set/Set<i16>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<i16>#rehash (; 54 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i32.load16_s
i32.store16
block $~lib/util/hash/HASH<i16>|inlined.2 (result i32)
local.get $3
i32.load16_s
local.set $11
local.get $11
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<i16>|inlined.2
end
local.get $1
i32.and
local.set $11
local.get $4
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=4
local.get $12
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i16>#add (; 55 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
block $~lib/util/hash/HASH<i16>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 16
i32.shl
i32.const 16
i32.shr_s
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<i16>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<i16>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<i16>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $2
i32.const 1
i32.add
i32.store offset=16
local.get $2
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i32.store16
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $2
local.get $4
local.get $2
i32.load
i32.store offset=4
local.get $2
local.get $4
i32.store
end
)
(func $~lib/set/Set<i16>#get:size (; 56 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i16>#delete (; 57 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i16>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 16
i32.shl
i32.const 16
i32.shr_s
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<i16>|inlined.3
end
call $~lib/set/Set<i16>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $2
local.get $0
i32.load offset=20
local.tee $5
local.get $2
local.get $5
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<i16>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<i16> (; 58 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
i32.const 0
call $~lib/set/Set<i16>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i32.const 0
local.set $0
loop $loop|0
local.get $0
i32.const 100
i32.lt_s
i32.eqz
br_if $break|0
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<i16>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i32.const 50
local.set $0
loop $loop|1
local.get $0
i32.const 100
i32.lt_s
i32.eqz
br_if $break|1
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<i16>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i32.const 0
local.set $0
loop $loop|2
local.get $0
i32.const 50
i32.lt_s
i32.eqz
br_if $break|2
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<i16>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i32.const 0
local.set $0
loop $loop|3
local.get $0
i32.const 50
i32.lt_s
i32.eqz
br_if $break|3
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i16>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<i16>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<i16>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<i16>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u16>#clear (; 59 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u16>#constructor (; 60 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 8
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<u16>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/set/Set<u16>#find (; 61 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load16_u
local.get $1
i32.const 65535
i32.and
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<u16>#has (; 62 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u16>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 65535
i32.and
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<u16>|inlined.0
end
call $~lib/set/Set<u16>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<u16>#rehash (; 63 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i32.load16_u
i32.store16
block $~lib/util/hash/HASH<u16>|inlined.2 (result i32)
local.get $3
i32.load16_u
local.set $11
local.get $11
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<u16>|inlined.2
end
local.get $1
i32.and
local.set $11
local.get $4
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=4
local.get $12
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u16>#add (; 64 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
block $~lib/util/hash/HASH<u16>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 65535
i32.and
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<u16>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<u16>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<u16>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $2
i32.const 1
i32.add
i32.store offset=16
local.get $2
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i32.store16
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $2
local.get $4
local.get $2
i32.load
i32.store offset=4
local.get $2
local.get $4
i32.store
end
)
(func $~lib/set/Set<u16>#get:size (; 65 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u16>#delete (; 66 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u16>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
i32.const 65535
i32.and
call $~lib/util/hash/hash16
br $~lib/util/hash/HASH<u16>|inlined.3
end
call $~lib/set/Set<u16>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $2
local.get $0
i32.load offset=20
local.tee $5
local.get $2
local.get $5
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<u16>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<u16> (; 67 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
i32.const 0
call $~lib/set/Set<u16>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i32.const 0
local.set $0
loop $loop|0
local.get $0
i32.const 100
i32.lt_u
i32.eqz
br_if $break|0
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<u16>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i32.const 50
local.set $0
loop $loop|1
local.get $0
i32.const 100
i32.lt_u
i32.eqz
br_if $break|1
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<u16>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i32.const 0
local.set $0
loop $loop|2
local.get $0
i32.const 50
i32.lt_u
i32.eqz
br_if $break|2
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<u16>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i32.const 0
local.set $0
loop $loop|3
local.get $0
i32.const 50
i32.lt_u
i32.eqz
br_if $break|3
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u16>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<u16>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<u16>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<u16>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i32>#clear (; 68 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i32>#constructor (; 69 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 9
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<i32>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/util/hash/hash32 (; 70 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const -2128831035
local.set $1
local.get $1
local.get $0
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 8
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 16
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
local.get $0
i32.const 24
i32.shr_u
i32.xor
i32.const 16777619
i32.mul
local.set $1
local.get $1
)
(func $~lib/set/Set<i32>#find (; 71 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load
local.get $1
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<i32>#has (; 72 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i32>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<i32>|inlined.0
end
call $~lib/set/Set<i32>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<i32>#rehash (; 73 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i32.load
i32.store
block $~lib/util/hash/HASH<i32>|inlined.2 (result i32)
local.get $3
i32.load
local.set $11
local.get $11
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<i32>|inlined.2
end
local.get $1
i32.and
local.set $11
local.get $4
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=4
local.get $12
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i32>#add (; 74 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
block $~lib/util/hash/HASH<i32>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<i32>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<i32>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<i32>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $2
i32.const 1
i32.add
i32.store offset=16
local.get $2
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i32.store
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $2
local.get $4
local.get $2
i32.load
i32.store offset=4
local.get $2
local.get $4
i32.store
end
)
(func $~lib/set/Set<i32>#get:size (; 75 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i32>#delete (; 76 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i32>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<i32>|inlined.3
end
call $~lib/set/Set<i32>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $2
local.get $0
i32.load offset=20
local.tee $5
local.get $2
local.get $5
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<i32>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<i32> (; 77 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
i32.const 0
call $~lib/set/Set<i32>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i32.const 0
local.set $0
loop $loop|0
local.get $0
i32.const 100
i32.lt_s
i32.eqz
br_if $break|0
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<i32>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i32.const 50
local.set $0
loop $loop|1
local.get $0
i32.const 100
i32.lt_s
i32.eqz
br_if $break|1
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<i32>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i32.const 0
local.set $0
loop $loop|2
local.get $0
i32.const 50
i32.lt_s
i32.eqz
br_if $break|2
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<i32>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i32.const 0
local.set $0
loop $loop|3
local.get $0
i32.const 50
i32.lt_s
i32.eqz
br_if $break|3
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<i32>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<i32>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<i32>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u32>#clear (; 78 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u32>#constructor (; 79 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 10
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<u32>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/set/Set<u32>#find (; 80 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i32.load
local.get $1
i32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<u32>#has (; 81 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u32>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<u32>|inlined.0
end
call $~lib/set/Set<u32>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<u32>#rehash (; 82 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i32.load
i32.store
block $~lib/util/hash/HASH<u32>|inlined.2 (result i32)
local.get $3
i32.load
local.set $11
local.get $11
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<u32>|inlined.2
end
local.get $1
i32.and
local.set $11
local.get $4
local.get $11
i32.const 4
i32.mul
i32.add
local.set $12
local.get $10
local.get $12
i32.load
i32.store offset=4
local.get $12
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $11
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $11
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $11
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u32>#add (; 83 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
block $~lib/util/hash/HASH<u32>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<u32>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<u32>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<u32>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $2
i32.const 1
i32.add
i32.store offset=16
local.get $2
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i32.store
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $2
local.get $4
local.get $2
i32.load
i32.store offset=4
local.get $2
local.get $4
i32.store
end
)
(func $~lib/set/Set<u32>#get:size (; 84 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u32>#delete (; 85 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u32>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<u32>|inlined.3
end
call $~lib/set/Set<u32>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $2
local.get $0
i32.load offset=20
local.tee $5
local.get $2
local.get $5
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<u32>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<u32> (; 86 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i32)
i32.const 0
call $~lib/set/Set<u32>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i32.const 0
local.set $0
loop $loop|0
local.get $0
i32.const 100
i32.lt_u
i32.eqz
br_if $break|0
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<u32>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i32.const 50
local.set $0
loop $loop|1
local.get $0
i32.const 100
i32.lt_u
i32.eqz
br_if $break|1
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<u32>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i32.const 0
local.set $0
loop $loop|2
local.get $0
i32.const 50
i32.lt_u
i32.eqz
br_if $break|2
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<u32>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i32.const 0
local.set $0
loop $loop|3
local.get $0
i32.const 50
i32.lt_u
i32.eqz
br_if $break|3
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $0
call $~lib/set/Set<u32>#delete
local.set $2
global.get $~lib/error
if
return
end
local.get $2
drop
local.get $1
local.get $0
call $~lib/set/Set<u32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $0
i32.const 1
i32.add
local.set $0
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<u32>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<u32>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<u32>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i64>#clear (; 87 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 64
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<i64>#constructor (; 88 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 11
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<i64>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/util/hash/hash64 (; 89 ;) (type $FUNCSIG$ij) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.wrap_i64
local.set $1
local.get $0
i64.const 32
i64.shr_u
i32.wrap_i64
local.set $2
i32.const -2128831035
local.set $3
local.get $3
local.get $1
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $1
i32.const 8
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $1
i32.const 16
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $1
i32.const 24
i32.shr_u
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $2
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $2
i32.const 8
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $2
i32.const 16
i32.shr_u
i32.const 255
i32.and
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
local.get $2
i32.const 24
i32.shr_u
i32.xor
i32.const 16777619
i32.mul
local.set $3
local.get $3
)
(func $~lib/set/Set<i64>#find (; 90 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i64.load
local.get $1
i64.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=8
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<i64>#has (; 91 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i64>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<i64>|inlined.0
end
call $~lib/set/Set<i64>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<i64>#rehash (; 92 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i64)
(local $12 i32)
(local $13 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 16
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 16
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i64.load
i64.store
block $~lib/util/hash/HASH<i64>|inlined.2 (result i32)
local.get $3
i64.load
local.set $11
local.get $11
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<i64>|inlined.2
end
local.get $1
i32.and
local.set $12
local.get $4
local.get $12
i32.const 4
i32.mul
i32.add
local.set $13
local.get $10
local.get $13
i32.load
i32.store offset=8
local.get $13
local.get $9
i32.store
local.get $9
i32.const 16
i32.add
local.set $9
end
local.get $7
i32.const 16
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $12
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $12
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $12
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<i64>#add (; 93 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $~lib/util/hash/HASH<i64>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<i64>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<i64>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<i64>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $5
i32.const 1
i32.add
i32.store offset=16
local.get $5
i32.const 16
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i64.store
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $5
local.get $4
local.get $5
i32.load
i32.store offset=8
local.get $5
local.get $4
i32.store
end
)
(func $~lib/set/Set<i64>#get:size (; 94 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<i64>#delete (; 95 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<i64>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<i64>|inlined.3
end
call $~lib/set/Set<i64>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=8
i32.const 1
i32.or
i32.store offset=8
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $5
local.get $0
i32.load offset=20
local.tee $6
local.get $5
local.get $6
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<i64>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<i64> (; 96 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i64)
i32.const 0
call $~lib/set/Set<i64>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i64.const 0
local.set $2
loop $loop|0
local.get $2
i64.const 100
i64.lt_s
i32.eqz
br_if $break|0
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<i64>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i64.const 50
local.set $2
loop $loop|1
local.get $2
i64.const 100
i64.lt_s
i32.eqz
br_if $break|1
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<i64>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i64.const 0
local.set $2
loop $loop|2
local.get $2
i64.const 50
i64.lt_s
i32.eqz
br_if $break|2
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<i64>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i64.const 0
local.set $2
loop $loop|3
local.get $2
i64.const 50
i64.lt_s
i32.eqz
br_if $break|3
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<i64>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<i64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<i64>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<i64>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<i64>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u64>#clear (; 97 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 64
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<u64>#constructor (; 98 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 12
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<u64>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/set/Set<u64>#find (; 99 ;) (type $FUNCSIG$iiji) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
i64.load
local.get $1
i64.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=8
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<u64>#has (; 100 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u64>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<u64>|inlined.0
end
call $~lib/set/Set<u64>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<u64>#rehash (; 101 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i64)
(local $12 i32)
(local $13 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 16
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 16
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
i64.load
i64.store
block $~lib/util/hash/HASH<u64>|inlined.2 (result i32)
local.get $3
i64.load
local.set $11
local.get $11
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<u64>|inlined.2
end
local.get $1
i32.and
local.set $12
local.get $4
local.get $12
i32.const 4
i32.mul
i32.add
local.set $13
local.get $10
local.get $13
i32.load
i32.store offset=8
local.get $13
local.get $9
i32.store
local.get $9
i32.const 16
i32.add
local.set $9
end
local.get $7
i32.const 16
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $12
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $12
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $12
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<u64>#add (; 102 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $~lib/util/hash/HASH<u64>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<u64>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<u64>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<u64>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $5
i32.const 1
i32.add
i32.store offset=16
local.get $5
i32.const 16
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
i64.store
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $5
local.get $4
local.get $5
i32.load
i32.store offset=8
local.get $5
local.get $4
i32.store
end
)
(func $~lib/set/Set<u64>#get:size (; 103 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<u64>#delete (; 104 ;) (type $FUNCSIG$iij) (param $0 i32) (param $1 i64) (result i32)
(local $2 i64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<u64>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<u64>|inlined.3
end
call $~lib/set/Set<u64>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=8
i32.const 1
i32.or
i32.store offset=8
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $5
local.get $0
i32.load offset=20
local.tee $6
local.get $5
local.get $6
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<u64>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<u64> (; 105 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 i64)
i32.const 0
call $~lib/set/Set<u64>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
i64.const 0
local.set $2
loop $loop|0
local.get $2
i64.const 100
i64.lt_u
i32.eqz
br_if $break|0
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<u64>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
i64.const 50
local.set $2
loop $loop|1
local.get $2
i64.const 100
i64.lt_u
i32.eqz
br_if $break|1
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<u64>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
i64.const 0
local.set $2
loop $loop|2
local.get $2
i64.const 50
i64.lt_u
i32.eqz
br_if $break|2
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<u64>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
i64.const 0
local.set $2
loop $loop|3
local.get $2
i64.const 50
i64.lt_u
i32.eqz
br_if $break|3
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<u64>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<u64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
i64.const 1
i64.add
local.set $2
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<u64>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<u64>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<u64>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<f32>#clear (; 106 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 32
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<f32>#constructor (; 107 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 13
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<f32>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/set/Set<f32>#find (; 108 ;) (type $FUNCSIG$iifi) (param $0 i32) (param $1 f32) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
f32.load
local.get $1
f32.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=4
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<f32>#has (; 109 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
(local $2 f32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<f32>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
i32.reinterpret_f32
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<f32>|inlined.0
end
call $~lib/set/Set<f32>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<f32>#rehash (; 110 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 f32)
(local $12 i32)
(local $13 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 8
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 8
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=4
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
f32.load
f32.store
block $~lib/util/hash/HASH<f32>|inlined.2 (result i32)
local.get $3
f32.load
local.set $11
local.get $11
i32.reinterpret_f32
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<f32>|inlined.2
end
local.get $1
i32.and
local.set $12
local.get $4
local.get $12
i32.const 4
i32.mul
i32.add
local.set $13
local.get $10
local.get $13
i32.load
i32.store offset=4
local.get $13
local.get $9
i32.store
local.get $9
i32.const 8
i32.add
local.set $9
end
local.get $7
i32.const 8
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $12
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $12
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $12
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<f32>#add (; 111 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(local $2 f32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $~lib/util/hash/HASH<f32>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
i32.reinterpret_f32
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<f32>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<f32>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<f32>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $5
i32.const 1
i32.add
i32.store offset=16
local.get $5
i32.const 8
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
f32.store
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $5
local.get $4
local.get $5
i32.load
i32.store offset=4
local.get $5
local.get $4
i32.store
end
)
(func $~lib/set/Set<f32>#get:size (; 112 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<f32>#delete (; 113 ;) (type $FUNCSIG$iif) (param $0 i32) (param $1 f32) (result i32)
(local $2 f32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<f32>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
i32.reinterpret_f32
call $~lib/util/hash/hash32
br $~lib/util/hash/HASH<f32>|inlined.3
end
call $~lib/set/Set<f32>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=4
i32.const 1
i32.or
i32.store offset=4
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $5
local.get $0
i32.load offset=20
local.tee $6
local.get $5
local.get $6
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<f32>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<f32> (; 114 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 f32)
i32.const 0
call $~lib/set/Set<f32>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
f32.const 0
local.set $2
loop $loop|0
local.get $2
f32.const 100
f32.lt
i32.eqz
br_if $break|0
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f32.const 1
f32.add
local.set $2
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<f32>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
f32.const 50
local.set $2
loop $loop|1
local.get $2
f32.const 100
f32.lt
i32.eqz
br_if $break|1
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f32.const 1
f32.add
local.set $2
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<f32>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
f32.const 0
local.set $2
loop $loop|2
local.get $2
f32.const 50
f32.lt
i32.eqz
br_if $break|2
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f32.const 1
f32.add
local.set $2
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<f32>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
f32.const 0
local.set $2
loop $loop|3
local.get $2
f32.const 50
f32.lt
i32.eqz
br_if $break|3
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f32>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<f32>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f32.const 1
f32.add
local.set $2
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<f32>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<f32>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<f32>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<f64>#clear (; 115 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
local.tee $1
i32.const 0
i32.const 16
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $1
global.get $~lib/error
if
return
end
local.get $1
local.set $2
local.get $1
i32.load
call $~lib/rt/pure/__release
local.get $2
i32.store
local.get $0
i32.const 4
i32.const 1
i32.sub
i32.store offset=4
local.get $0
local.tee $2
i32.const 0
i32.const 64
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $2
global.get $~lib/error
if
return
end
local.get $2
local.set $1
local.get $2
i32.load offset=8
call $~lib/rt/pure/__release
local.get $1
i32.store offset=8
local.get $0
i32.const 4
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
)
(func $~lib/set/Set<f64>#constructor (; 116 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
i32.const 24
i32.const 14
call $~lib/rt/tlsf/__alloc
call $~lib/rt/pure/__retain
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
i32.const 0
i32.store offset=12
local.get $0
i32.const 0
i32.store offset=16
local.get $0
i32.const 0
i32.store offset=20
local.get $0
call $~lib/set/Set<f64>#clear
global.get $~lib/error
if
i32.const 0
return
end
local.get $0
)
(func $~lib/set/Set<f64>#find (; 117 ;) (type $FUNCSIG$iidi) (param $0 i32) (param $1 f64) (param $2 i32) (result i32)
(local $3 i32)
local.get $0
i32.load
local.get $2
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
i32.load
local.set $3
block $break|0
loop $continue|0
local.get $3
i32.eqz
br_if $break|0
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if (result i32)
local.get $3
f64.load
local.get $1
f64.eq
else
i32.const 0
end
if
local.get $3
return
end
local.get $3
i32.load offset=8
i32.const 1
i32.const -1
i32.xor
i32.and
local.set $3
br $continue|0
end
unreachable
end
i32.const 0
)
(func $~lib/set/Set<f64>#has (; 118 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
(local $2 f64)
local.get $0
local.get $1
block $~lib/util/hash/HASH<f64>|inlined.0 (result i32)
local.get $1
local.set $2
local.get $2
i64.reinterpret_f64
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<f64>|inlined.0
end
call $~lib/set/Set<f64>#find
i32.const 0
i32.ne
)
(func $~lib/set/Set<f64>#rehash (; 119 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 f64)
(local $12 i32)
(local $13 i32)
local.get $1
i32.const 1
i32.add
local.set $2
i32.const 0
local.get $2
i32.const 4
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $4
local.get $2
f64.convert_i32_s
f64.const 2.6666666666666665
f64.mul
i32.trunc_f64_s
local.set $5
i32.const 0
local.get $5
i32.const 16
i32.mul
call $~lib/arraybuffer/ArrayBuffer#constructor
local.set $3
global.get $~lib/error
if
return
end
local.get $3
local.set $6
local.get $0
i32.load offset=8
local.set $7
local.get $7
local.get $0
i32.load offset=16
i32.const 16
i32.mul
i32.add
local.set $8
local.get $6
local.set $9
block $break|0
loop $continue|0
local.get $7
local.get $8
i32.ne
i32.eqz
br_if $break|0
local.get $7
local.set $3
local.get $3
i32.load offset=8
i32.const 1
i32.and
i32.eqz
if
local.get $9
local.set $10
local.get $10
local.get $3
f64.load
f64.store
block $~lib/util/hash/HASH<f64>|inlined.2 (result i32)
local.get $3
f64.load
local.set $11
local.get $11
i64.reinterpret_f64
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<f64>|inlined.2
end
local.get $1
i32.and
local.set $12
local.get $4
local.get $12
i32.const 4
i32.mul
i32.add
local.set $13
local.get $10
local.get $13
i32.load
i32.store offset=8
local.get $13
local.get $9
i32.store
local.get $9
i32.const 16
i32.add
local.set $9
end
local.get $7
i32.const 16
i32.add
local.set $7
br $continue|0
end
unreachable
end
local.get $0
local.tee $3
local.get $4
local.tee $10
local.get $3
i32.load
local.tee $3
i32.ne
if
local.get $10
call $~lib/rt/pure/__retain
drop
local.get $3
call $~lib/rt/pure/__release
end
local.get $10
i32.store
local.get $0
local.get $1
i32.store offset=4
local.get $0
local.tee $10
local.get $6
local.tee $12
local.get $10
i32.load offset=8
local.tee $10
i32.ne
if
local.get $12
call $~lib/rt/pure/__retain
drop
local.get $10
call $~lib/rt/pure/__release
end
local.get $12
i32.store offset=8
local.get $0
local.get $5
i32.store offset=12
local.get $0
local.get $0
i32.load offset=20
i32.store offset=16
local.get $4
call $~lib/rt/pure/__release
local.get $6
call $~lib/rt/pure/__release
)
(func $~lib/set/Set<f64>#add (; 120 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(local $2 f64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $~lib/util/hash/HASH<f64>|inlined.1 (result i32)
local.get $1
local.set $2
local.get $2
i64.reinterpret_f64
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<f64>|inlined.1
end
local.set $3
local.get $0
local.get $1
local.get $3
call $~lib/set/Set<f64>#find
local.set $4
local.get $4
i32.eqz
if
local.get $0
i32.load offset=16
local.get $0
i32.load offset=12
i32.eq
if
local.get $0
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
if (result i32)
local.get $0
i32.load offset=4
else
local.get $0
i32.load offset=4
i32.const 1
i32.shl
i32.const 1
i32.or
end
call $~lib/set/Set<f64>#rehash
global.get $~lib/error
if
return
end
end
local.get $0
i32.load offset=8
local.get $0
local.get $0
i32.load offset=16
local.tee $5
i32.const 1
i32.add
i32.store offset=16
local.get $5
i32.const 16
i32.mul
i32.add
local.set $4
local.get $4
local.get $1
f64.store
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.add
i32.store offset=20
local.get $0
i32.load
local.get $3
local.get $0
i32.load offset=4
i32.and
i32.const 4
i32.mul
i32.add
local.set $5
local.get $4
local.get $5
i32.load
i32.store offset=8
local.get $5
local.get $4
i32.store
end
)
(func $~lib/set/Set<f64>#get:size (; 121 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load offset=20
)
(func $~lib/set/Set<f64>#delete (; 122 ;) (type $FUNCSIG$iid) (param $0 i32) (param $1 f64) (result i32)
(local $2 f64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
local.get $1
block $~lib/util/hash/HASH<f64>|inlined.3 (result i32)
local.get $1
local.set $2
local.get $2
i64.reinterpret_f64
call $~lib/util/hash/hash64
br $~lib/util/hash/HASH<f64>|inlined.3
end
call $~lib/set/Set<f64>#find
local.set $3
local.get $3
i32.eqz
if
i32.const 0
return
end
local.get $3
local.get $3
i32.load offset=8
i32.const 1
i32.or
i32.store offset=8
local.get $0
local.get $0
i32.load offset=20
i32.const 1
i32.sub
i32.store offset=20
local.get $0
i32.load offset=4
i32.const 1
i32.shr_u
local.set $4
local.get $4
i32.const 1
i32.add
i32.const 4
local.tee $5
local.get $0
i32.load offset=20
local.tee $6
local.get $5
local.get $6
i32.gt_u
select
i32.ge_u
if (result i32)
local.get $0
i32.load offset=20
local.get $0
i32.load offset=12
f64.convert_i32_s
f64.const 0.75
f64.mul
i32.trunc_f64_s
i32.lt_s
else
i32.const 0
end
if
local.get $0
local.get $4
call $~lib/set/Set<f64>#rehash
global.get $~lib/error
if
i32.const 0
return
end
end
i32.const 1
)
(func $std/set/testNumeric<f64> (; 123 ;) (type $FUNCSIG$v)
(local $0 i32)
(local $1 i32)
(local $2 f64)
i32.const 0
call $~lib/set/Set<f64>#constructor
local.set $0
global.get $~lib/error
if
return
end
local.get $0
local.set $1
block $break|0
f64.const 0
local.set $2
loop $loop|0
local.get $2
f64.const 100
f64.lt
i32.eqz
br_if $break|0
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 6
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 8
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f64.const 1
f64.add
local.set $2
br $loop|0
end
unreachable
end
local.get $1
call $~lib/set/Set<f64>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 10
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|1
f64.const 50
local.set $2
loop $loop|1
local.get $2
f64.const 100
f64.lt
i32.eqz
br_if $break|1
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 14
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 16
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f64.const 1
f64.add
local.set $2
br $loop|1
end
unreachable
end
local.get $1
call $~lib/set/Set<f64>#get:size
i32.const 100
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 18
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|2
f64.const 0
local.set $2
loop $loop|2
local.get $2
f64.const 50
f64.lt
i32.eqz
br_if $break|2
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 22
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 24
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f64.const 1
f64.add
local.set $2
br $loop|2
end
unreachable
end
local.get $1
call $~lib/set/Set<f64>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 26
i32.const 2
call $~lib/builtins/abort
unreachable
end
block $break|3
f64.const 0
local.set $2
loop $loop|3
local.get $2
f64.const 50
f64.lt
i32.eqz
br_if $break|3
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 30
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#add
global.get $~lib/error
if
return
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
if
i32.const 0
i32.const 368
i32.const 32
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $1
local.get $2
call $~lib/set/Set<f64>#delete
local.set $0
global.get $~lib/error
if
return
end
local.get $0
drop
local.get $1
local.get $2
call $~lib/set/Set<f64>#has
i32.eqz
i32.eqz
if
i32.const 0
i32.const 368
i32.const 34
i32.const 4
call $~lib/builtins/abort
unreachable
end
local.get $2
f64.const 1
f64.add
local.set $2
br $loop|3
end
unreachable
end
local.get $1
call $~lib/set/Set<f64>#get:size
i32.const 50
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 36
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/set/Set<f64>#clear
global.get $~lib/error
if
return
end
local.get $1
call $~lib/set/Set<f64>#get:size
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
i32.const 368
i32.const 40
i32.const 2
call $~lib/builtins/abort
unreachable
end
local.get $1
call $~lib/rt/pure/__release
)
(func $start:std/set (; 124 ;) (type $FUNCSIG$v)
block $uncaughtError
call $std/set/testNumeric<i8>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<u8>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<i16>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<u16>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<i32>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<u32>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<i64>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<u64>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<f32>
global.get $~lib/error
if
br $uncaughtError
end
call $std/set/testNumeric<f64>
global.get $~lib/error
if
br $uncaughtError
end
return
end
i32.const 408
i32.const 368
i32.const 1
i32.const 0
call $~lib/builtins/abort
unreachable
)
(func $start (; 125 ;) (type $FUNCSIG$v)
call $start:std/set
)
(func $~lib/rt/pure/markGray (; 126 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 1879048192
i32.and
i32.const 268435456
i32.ne
if
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 268435456
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 2
call $~lib/rt/__visit_members
end
)
(func $~lib/rt/pure/scanBlack (; 127 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
local.get $0
i32.load offset=4
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 0
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 4
call $~lib/rt/__visit_members
)
(func $~lib/rt/pure/scan (; 128 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 1879048192
i32.and
i32.const 268435456
i32.eq
if
local.get $1
i32.const 268435455
i32.and
i32.const 0
i32.gt_u
if
local.get $0
call $~lib/rt/pure/scanBlack
else
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 536870912
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 3
call $~lib/rt/__visit_members
end
end
)
(func $~lib/rt/pure/collectWhite (; 129 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.load offset=4
local.set $1
local.get $1
i32.const 1879048192
i32.and
i32.const 536870912
i32.eq
if (result i32)
local.get $1
i32.const -2147483648
i32.and
i32.eqz
else
i32.const 0
end
if
local.get $0
local.get $1
i32.const 1879048192
i32.const -1
i32.xor
i32.and
i32.const 0
i32.or
i32.store offset=4
local.get $0
i32.const 16
i32.add
i32.const 5
call $~lib/rt/__visit_members
global.get $~lib/rt/tlsf/ROOT
local.get $0
call $~lib/rt/tlsf/freeBlock
end
)
(func $~lib/rt/pure/__visit (; 130 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
global.get $~lib/heap/__heap_base
i32.lt_u
if
return
end
local.get $0
i32.const 16
i32.sub
local.set $2
block $break|0
block $case5|0
block $case4|0
block $case3|0
block $case2|0
block $case1|0
block $case0|0
local.get $1
local.set $3
local.get $3
i32.const 1
i32.eq
br_if $case0|0
local.get $3
i32.const 2
i32.eq
br_if $case1|0
local.get $3
i32.const 3
i32.eq
br_if $case2|0
local.get $3
i32.const 4
i32.eq
br_if $case3|0
local.get $3
i32.const 5
i32.eq
br_if $case4|0
br $case5|0
end
local.get $2
call $~lib/rt/pure/decrement
global.get $~lib/error
if
return
end
br $break|0
end
local.get $2
i32.load offset=4
i32.const 268435455
i32.and
i32.const 0
i32.gt_u
i32.eqz
if
i32.const 0
i32.const 72
i32.const 75
i32.const 17
call $~lib/builtins/abort
unreachable
end
local.get $2
local.get $2
i32.load offset=4
i32.const 1
i32.sub
i32.store offset=4
local.get $2
call $~lib/rt/pure/markGray
br $break|0
end
local.get $2
call $~lib/rt/pure/scan
br $break|0
end
local.get $2
i32.load offset=4
local.set $3
local.get $3
i32.const 268435455
i32.const -1
i32.xor
i32.and
local.get $3
i32.const 1
i32.add
i32.const 268435455
i32.const -1
i32.xor
i32.and
i32.eq
i32.eqz
if
i32.const 0
i32.const 72
i32.const 86
i32.const 6
call $~lib/builtins/abort
unreachable
end
local.get $2
local.get $3
i32.const 1
i32.add
i32.store offset=4
local.get $3
i32.const 1879048192
i32.and
i32.const 0
i32.ne
if
local.get $2
call $~lib/rt/pure/scanBlack
end
br $break|0
end
local.get $2
call $~lib/rt/pure/collectWhite
br $break|0
end
i32.const 0
i32.eqz
if
i32.const 0
i32.const 72
i32.const 97
i32.const 24
call $~lib/builtins/abort
unreachable
end
end
)
(func $~lib/set/Set<i8>#__visit_impl (; 131 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<u8>#__visit_impl (; 132 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<i16>#__visit_impl (; 133 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<u16>#__visit_impl (; 134 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<i32>#__visit_impl (; 135 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<u32>#__visit_impl (; 136 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<i64>#__visit_impl (; 137 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<u64>#__visit_impl (; 138 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<f32>#__visit_impl (; 139 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/set/Set<f64>#__visit_impl (; 140 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
i32.load
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
local.get $0
i32.load offset=8
local.set $2
local.get $2
local.get $1
call $~lib/rt/pure/__visit
global.get $~lib/error
if
return
end
)
(func $~lib/rt/__visit_members (; 141 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
block $switch$1$default
block $switch$1$case$16
block $switch$1$case$15
block $switch$1$case$14
block $switch$1$case$13
block $switch$1$case$12
block $switch$1$case$11
block $switch$1$case$10
block $switch$1$case$9
block $switch$1$case$8
block $switch$1$case$6
block $switch$1$case$5
block $switch$1$case$4
block $switch$1$case$2
local.get $0
i32.const 8
i32.sub
i32.load
br_table $switch$1$case$2 $switch$1$case$2 $switch$1$case$4 $switch$1$case$5 $switch$1$case$6 $switch$1$case$6 $switch$1$case$8 $switch$1$case$9 $switch$1$case$10 $switch$1$case$11 $switch$1$case$12 $switch$1$case$13 $switch$1$case$14 $switch$1$case$15 $switch$1$case$16 $switch$1$default
end
return
end
local.get $0
i32.load
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
end
return
end
local.get $0
local.get $1
call $~lib/set/Set<i8>#__visit_impl
return
end
local.get $0
i32.load
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
end
local.get $0
i32.load offset=4
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
end
local.get $0
i32.load offset=8
local.tee $2
if
local.get $2
local.get $1
call $~lib/rt/pure/__visit
end
return
end
local.get $0
local.get $1
call $~lib/set/Set<u8>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<i16>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<u16>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<i32>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<u32>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<i64>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<u64>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<f32>#__visit_impl
return
end
local.get $0
local.get $1
call $~lib/set/Set<f64>#__visit_impl
return
end
unreachable
)
(func $null (; 142 ;) (type $FUNCSIG$v)
)
)