2018-01-15 00:08:06 +01:00
|
|
|
(module
|
2018-06-21 00:57:46 +02:00
|
|
|
(type $v (func))
|
2018-01-28 15:30:49 +01:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-06-21 00:57:46 +02:00
|
|
|
(type $iv (func (param i32)))
|
|
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
2018-02-02 03:07:54 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2018-01-28 19:14:20 +01:00
|
|
|
(type $iiiv (func (param i32 i32 i32)))
|
2018-06-21 00:57:46 +02:00
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
|
|
(type $iiv (func (param i32 i32)))
|
|
|
|
(type $iIi (func (param i32 i64) (result i32)))
|
|
|
|
(type $Ii (func (param i64) (result i32)))
|
|
|
|
(type $iIii (func (param i32 i64 i32) (result i32)))
|
|
|
|
(type $iIv (func (param i32 i64)))
|
|
|
|
(type $ifi (func (param i32 f32) (result i32)))
|
|
|
|
(type $fi (func (param f32) (result i32)))
|
|
|
|
(type $ifii (func (param i32 f32 i32) (result i32)))
|
|
|
|
(type $ifv (func (param i32 f32)))
|
|
|
|
(type $iFi (func (param i32 f64) (result i32)))
|
|
|
|
(type $Fi (func (param f64) (result i32)))
|
|
|
|
(type $iFii (func (param i32 f64 i32) (result i32)))
|
|
|
|
(type $iFv (func (param i32 f64)))
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-04-02 19:05:26 +02:00
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
2018-01-15 00:08:06 +01:00
|
|
|
(memory $0 1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
|
|
(data (i32.const 52) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
|
|
|
(data (i32.const 112) "\n\00\00\00s\00t\00d\00/\00s\00e\00t\00.\00t\00s")
|
2018-01-15 00:08:06 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
2018-01-28 19:14:20 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-01-28 15:30:49 +01:00
|
|
|
(if
|
2018-04-08 00:43:38 +02:00
|
|
|
(get_local $0)
|
2018-04-03 23:56:48 +02:00
|
|
|
(block
|
2018-04-08 00:43:38 +02:00
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741824)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(if
|
|
|
|
(i32.gt_u
|
2018-05-14 16:55:55 +02:00
|
|
|
(tee_local $0
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(get_global $~lib/allocator/arena/offset)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 7)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.const -8)
|
2018-01-28 15:30:49 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.shl
|
2018-05-14 16:55:55 +02:00
|
|
|
(tee_local $2
|
2018-07-19 02:10:04 +02:00
|
|
|
(current_memory)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
2018-07-19 02:10:04 +02:00
|
|
|
(grow_memory
|
2018-04-03 23:56:48 +02:00
|
|
|
(select
|
2018-05-14 16:55:55 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.sub
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 65535)
|
2018-01-28 19:14:20 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const -65536)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 16)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
|
|
|
(i32.gt_s
|
2018-05-14 16:55:55 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
2018-07-19 02:10:04 +02:00
|
|
|
(grow_memory
|
2018-04-03 23:56:48 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(unreachable)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
2018-05-14 16:55:55 +02:00
|
|
|
(get_local $0)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
|
|
|
(return
|
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-03 23:56:48 +02:00
|
|
|
(i32.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/memory/memory.allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/arraybuffer/computeSize (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.sub
|
|
|
|
(i32.const 32)
|
|
|
|
(i32.clz
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/arraybuffer/allocUnsafe (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $1 i32)
|
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741816)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 52)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 22)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(tee_local $1
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.allocate
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/memory/memset (; 5 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-01-15 00:08:06 +01:00
|
|
|
(local $3 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $4 i64)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(tee_local $3
|
|
|
|
(i32.and
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.sub
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
|
|
|
(i32.add
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $1
|
|
|
|
(i32.mul
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
(i32.const 16843009)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.and
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const -4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 28)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 20)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
|
|
|
(i32.and
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 24)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $4
|
|
|
|
(i64.or
|
|
|
|
(tee_local $4
|
|
|
|
(i64.extend_u/i32
|
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i64.shl
|
|
|
|
(get_local $4)
|
|
|
|
(i64.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 8)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(get_local $4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 32)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $continue|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/memory/memory.fill (; 6 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memset
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 7 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $3 i32)
|
2018-01-15 00:08:06 +01:00
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1073741816)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 13)
|
|
|
|
(i32.const 40)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(call $~lib/internal/arraybuffer/allocUnsafe
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.fill
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#clear (; 8 ;) (type $iv) (param $0 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 16)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#constructor (; 9 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.allocate
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 24)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash8 (; 10 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const -2128831035)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<i8> (; 11 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash8
|
|
|
|
(i32.shr_s
|
|
|
|
(i32.shl
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#find (; 12 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eq
|
|
|
|
(i32.load8_u
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 255)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(return
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const -2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#has (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<i8>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#rehash (; 14 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load8_s
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash8
|
|
|
|
(i32.load8_s
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#add (; 15 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<i8>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(f64.const 0.75)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=4
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.load
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#get:size (; 16 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i8>#delete (; 17 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash8
|
|
|
|
(i32.shr_s
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.shl
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 24)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<i8> (; 18 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<u8> (; 19 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash8
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u8>#has (; 20 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<u8>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u8>#rehash (; 21 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash8
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u8>#add (; 22 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<u8>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u8>#delete (; 23 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash8
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<u8> (; 24 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u8>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash16 (; 25 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
(i32.const -2128831035)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<i16> (; 26 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash16
|
|
|
|
(i32.shr_s
|
|
|
|
(i32.shl
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i16>#find (; 27 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eq
|
|
|
|
(i32.load16_u
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 65535)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(return
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const -2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i16>#has (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<i16>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i16>#rehash (; 29 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store16
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load16_s
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash16
|
|
|
|
(i32.load16_s
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i16>#add (; 30 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<i16>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store16
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i16>#delete (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash16
|
|
|
|
(i32.shr_s
|
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<i16> (; 32 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<u16> (; 33 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash16
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 65535)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u16>#has (; 34 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<u16>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u16>#rehash (; 35 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store16
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load16_u
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash16
|
|
|
|
(i32.load16_u
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u16>#add (; 36 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<u16>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store16
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<u16>#delete (; 37 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i16>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash16
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 65535)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<u16> (; 38 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<u16>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash32 (; 39 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
(i32.const -2128831035)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<i32> (; 40 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash32
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i32>#find (; 41 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eq
|
|
|
|
(i32.load
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(return
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const -2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i32>#has (; 42 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<i32>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i32>#rehash (; 43 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash32
|
|
|
|
(i32.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i32>#add (; 44 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<i32>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i32>#delete (; 45 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash32
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<i32> (; 46 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<u32> (; 47 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#clear (; 48 ;) (type $iv) (param $0 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 16)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 64)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#constructor (; 49 ;) (type $ii) (param $0 i32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.allocate
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash64 (; 50 ;) (type $Ii) (param $0 i64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $1 i32)
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.mul
|
|
|
|
(i32.xor
|
|
|
|
(i32.and
|
|
|
|
(tee_local $1
|
|
|
|
(i32.wrap/i64
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
(i32.const -2128831035)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(tee_local $1
|
|
|
|
(i32.wrap/i64
|
|
|
|
(i64.shr_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16777619)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<i64> (; 51 ;) (type $Ii) (param $0 i64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash64
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#find (; 52 ;) (type $iIii) (param $0 i32) (param $1 i64) (param $2 i32) (result i32)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i64.eq
|
|
|
|
(i64.load
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(return
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const -2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#has (; 53 ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<i64>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#rehash (; 54 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(get_local $3)
|
|
|
|
(i64.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash64
|
|
|
|
(i64.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $3
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#add (; 55 ;) (type $iIv) (param $0 i32) (param $1 i64)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<i64>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i64.store
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<i64>#delete (; 56 ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash64
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<i64> (; 57 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i64)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i64.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i64.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i64.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i64.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i64.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i64.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i64.ge_s
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<u64> (; 58 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 i64)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i64.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 100)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(i64.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i64.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 100)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(i64.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i64.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 50)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(i64.const 0)
|
|
|
|
)
|
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i64.ge_u
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i64.add
|
|
|
|
(get_local $0)
|
|
|
|
(i64.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<f32> (; 59 ;) (type $fi) (param $0 f32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash32
|
|
|
|
(i32.reinterpret/f32
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f32>#find (; 60 ;) (type $ifii) (param $0 i32) (param $1 f32) (param $2 i32) (result i32)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(f32.eq
|
|
|
|
(f32.load
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(return
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const -2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $continue|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f32>#has (; 61 ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<f32>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f32>#rehash (; 62 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $2
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(f32.store
|
|
|
|
(get_local $3)
|
|
|
|
(f32.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash32
|
|
|
|
(i32.reinterpret/f32
|
|
|
|
(f32.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $continue|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f32>#add (; 63 ;) (type $ifv) (param $0 i32) (param $1 f32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-01-15 00:08:06 +01:00
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#find
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<f32>
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(f32.store
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=4
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f32>#delete (; 64 ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash32
|
|
|
|
(i32.reinterpret/f32
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<f32> (; 65 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 f32)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#constructor
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(f32.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 100)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f32.add
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 1)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 100)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(f32.const 50)
|
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.eqz
|
|
|
|
(f32.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 100)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f32.add
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 1)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 100)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(f32.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.eqz
|
|
|
|
(f32.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $1)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f32.add
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 50)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(f32.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.eqz
|
|
|
|
(f32.lt
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(f32.const 50)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
(block
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f32>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f32.add
|
|
|
|
(get_local $0)
|
|
|
|
(f32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $repeat|3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 06:18:27 +01:00
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 50)
|
2018-01-28 06:18:27 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-28 06:18:27 +01:00
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(block
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/hash/hash<f64> (; 66 ;) (type $Fi) (param $0 f64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash64
|
|
|
|
(i64.reinterpret/f64
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f64>#find (; 67 ;) (type $iFii) (param $0 i32) (param $1 f64) (param $2 i32) (result i32)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=8
|
|
|
|
(i32.add
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.load offset=4
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $0
|
2018-06-21 00:57:46 +02:00
|
|
|
(f64.eq
|
|
|
|
(f64.load
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(return
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(set_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const -2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $continue|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f64>#has (; 68 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(call $~lib/internal/hash/hash<f64>
|
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f64>#rehash (; 69 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 i32)
|
|
|
|
(set_local $4
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.shl
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-02-25 23:21:32 +01:00
|
|
|
(i32.const 2)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $5
|
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $7
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(f64.const 2.6666666666666665)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $8
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
2018-01-28 06:18:27 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $5)
|
|
|
|
(i32.const 8)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $8)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $2)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(f64.store
|
|
|
|
(get_local $3)
|
|
|
|
(f64.load
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $3)
|
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
|
|
|
(i32.shl
|
|
|
|
(i32.and
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $6
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash64
|
|
|
|
(i64.reinterpret/f64
|
|
|
|
(f64.load
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $6)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(br $continue|0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(i32.store offset=12
|
|
|
|
(get_local $0)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $7)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f64>#add (; 70 ;) (type $iFv) (param $0 i32) (param $1 f64)
|
2018-01-15 00:08:06 +01:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $4 i32)
|
2018-01-28 06:18:27 +01:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#find
|
2018-05-23 11:32:12 +02:00
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-06-21 16:55:51 +02:00
|
|
|
(tee_local $4
|
2018-06-21 00:57:46 +02:00
|
|
|
(call $~lib/internal/hash/hash<f64>
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-23 11:32:12 +02:00
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
2018-01-15 00:08:06 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.or
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.shl
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-22 15:26:59 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load offset=16
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.store
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $2
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.add
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.add
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $2)
|
2018-06-22 15:26:59 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(get_local $3)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $0)
|
|
|
|
(i32.add
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(i32.store offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.load offset=8
|
2018-06-22 15:26:59 +02:00
|
|
|
(tee_local $3
|
2018-05-23 11:32:12 +02:00
|
|
|
(i32.add
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-05-23 11:32:12 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=8
|
2018-06-21 16:55:51 +02:00
|
|
|
(get_local $3)
|
2018-06-22 15:26:59 +02:00
|
|
|
(get_local $2)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/set/Set<f64>#delete (; 71 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
2018-02-04 07:51:40 +01:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $0
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#find
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $2
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/hash/hash64
|
|
|
|
(i64.reinterpret/f64
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
|
|
|
(return
|
|
|
|
(i32.const 0)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store offset=8
|
|
|
|
(get_local $0)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.or
|
|
|
|
(i32.load offset=8
|
|
|
|
(get_local $0)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
2018-03-04 17:25:32 +01:00
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.store offset=20
|
|
|
|
(get_local $2)
|
|
|
|
(i32.sub
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(tee_local $0
|
|
|
|
(i32.ge_u
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.load offset=4
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(i32.const 4)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(i32.const 4)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.lt_s
|
|
|
|
(i32.load offset=20
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.trunc_s/f64
|
|
|
|
(f64.mul
|
|
|
|
(f64.convert_s/i32
|
|
|
|
(i32.load offset=12
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.const 0.75)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(get_local $0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#rehash
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $std/set/test<f64> (; 72 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(local $0 f64)
|
|
|
|
(local $1 i32)
|
|
|
|
(set_local $1
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#constructor
|
2018-01-15 00:08:06 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block $break|0
|
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
|
|
|
(f64.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 100)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 8)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f64.add
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 10)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 100)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 12)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block $break|1
|
|
|
|
(set_local $0
|
|
|
|
(f64.const 50)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.eqz
|
|
|
|
(f64.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 100)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 16)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f64.add
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 18)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 100)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 20)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block $break|2
|
|
|
|
(set_local $0
|
|
|
|
(f64.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(loop $repeat|2
|
|
|
|
(br_if $break|2
|
|
|
|
(i32.eqz
|
|
|
|
(f64.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 50)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 24)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 26)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f64.add
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|2)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 50)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 28)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(block $break|3
|
|
|
|
(set_local $0
|
|
|
|
(f64.const 0)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(loop $repeat|3
|
|
|
|
(br_if $break|3
|
|
|
|
(i32.eqz
|
|
|
|
(f64.lt
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 50)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 32)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#add
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 34)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(drop
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#delete
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<f64>#has
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 36)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(f64.add
|
|
|
|
(get_local $0)
|
|
|
|
(f64.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|3)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.ne
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 50)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 38)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i64>#clear
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
(if
|
2018-06-21 16:55:51 +02:00
|
|
|
(call $~lib/set/Set<i8>#get:size
|
2018-06-21 00:57:46 +02:00
|
|
|
(get_local $1)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-02 03:07:54 +01:00
|
|
|
(i32.const 0)
|
2018-06-21 16:55:51 +02:00
|
|
|
(i32.const 112)
|
|
|
|
(i32.const 42)
|
2018-06-21 00:57:46 +02:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $start (; 73 ;) (type $v)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_global $~lib/allocator/arena/startOffset
|
2018-07-18 23:49:32 +02:00
|
|
|
(i32.const 136)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
2018-06-21 00:57:46 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
|
|
)
|
|
|
|
(call $std/set/test<i8>)
|
|
|
|
(call $std/set/test<u8>)
|
|
|
|
(call $std/set/test<i16>)
|
|
|
|
(call $std/set/test<u16>)
|
|
|
|
(call $std/set/test<i32>)
|
|
|
|
(call $std/set/test<u32>)
|
|
|
|
(call $std/set/test<i64>)
|
|
|
|
(call $std/set/test<u64>)
|
|
|
|
(call $std/set/test<f32>)
|
|
|
|
(call $std/set/test<f64>)
|
2018-01-15 00:08:06 +01:00
|
|
|
)
|
|
|
|
)
|