assemblyscript/tests/compiler/std/static-array.untouched.wat

2625 lines
44 KiB
Plaintext

(module
(type $FUNCSIG$v (func))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$jii (func (param i32 i32) (result i64)))
(type $FUNCSIG$viij (func (param i32 i32 i64)))
(type $FUNCSIG$fii (func (param i32 i32) (result f32)))
(type $FUNCSIG$viif (func (param i32 i32 f32)))
(type $FUNCSIG$dii (func (param i32 i32) (result f64)))
(type $FUNCSIG$viid (func (param i32 i32 f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\08\00\00\00\00\00\00\00\01\00\00\00\02\00\00\00")
(data (i32.const 24) "\08\00\00\00\02\00\00\00")
(data (i32.const 32) "\10\00\00\00\00\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
(data (i32.const 64) " \00\00\00\02\00\00\00")
(data (i32.const 72) "\08\00\00\00\00\00\00\00\00\00\c0?\00\00 @")
(data (i32.const 88) "H\00\00\00\02\00\00\00")
(data (i32.const 96) "\10\00\00\00\00\00\00\00\00\00\00\00\00\00\f4?\00\00\00\00\00\00\02@\00\00\00\00\00\00\00\00")
(data (i32.const 128) "`\00\00\00\02\00\00\00")
(data (i32.const 136) "\13\00\00\00s\00t\00d\00/\00s\00t\00a\00t\00i\00c\00-\00a\00r\00r\00a\00y\00.\00t\00s\00")
(data (i32.const 184) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
(data (i32.const 216) "\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\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
(global $std/static-array/i i32 (i32.const 24))
(global $std/static-array/I i32 (i32.const 64))
(global $std/static-array/f i32 (i32.const 88))
(global $std/static-array/F i32 (i32.const 128))
(global $~lib/memory/HEAP_BASE i32 (i32.const 276))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $start:~lib/allocator/arena (; 1 ;) (type $FUNCSIG$v)
global.get $~lib/memory/HEAP_BASE
i32.const 7
i32.add
i32.const 7
i32.const -1
i32.xor
i32.and
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
global.set $~lib/allocator/arena/offset
)
(func $~lib/array/Array<i32>#__get (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
i32.load
local.set $2
local.get $1
local.get $2
i32.load
i32.const 2
i32.shr_u
i32.lt_u
if (result i32)
local.get $2
local.set $3
local.get $1
local.set $4
i32.const 0
local.set $5
local.get $3
local.get $4
i32.const 2
i32.shl
i32.add
local.get $5
i32.add
i32.load offset=8
else
unreachable
end
)
(func $~lib/internal/arraybuffer/computeSize (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const 1
i32.const 32
local.get $0
i32.const 8
i32.add
i32.const 1
i32.sub
i32.clz
i32.sub
i32.shl
)
(func $~lib/allocator/arena/__memory_allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.set $1
local.get $1
local.get $0
local.tee $2
i32.const 1
local.tee $3
local.get $2
local.get $3
i32.gt_u
select
i32.add
i32.const 7
i32.add
i32.const 7
i32.const -1
i32.xor
i32.and
local.set $4
current_memory
local.set $5
local.get $4
local.get $5
i32.const 16
i32.shl
i32.gt_u
if
local.get $4
local.get $1
i32.sub
i32.const 65535
i32.add
i32.const 65535
i32.const -1
i32.xor
i32.and
i32.const 16
i32.shr_u
local.set $2
local.get $5
local.tee $3
local.get $2
local.tee $6
local.get $3
local.get $6
i32.gt_s
select
local.set $3
local.get $3
grow_memory
i32.const 0
i32.lt_s
if
local.get $2
grow_memory
i32.const 0
i32.lt_s
if
unreachable
end
end
end
local.get $4
global.set $~lib/allocator/arena/offset
local.get $1
)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
i32.const 1073741816
i32.le_u
i32.eqz
if
i32.const 0
i32.const 216
i32.const 26
i32.const 2
call $~lib/env/abort
unreachable
end
block $~lib/memory/memory.allocate|inlined.0 (result i32)
local.get $0
call $~lib/internal/arraybuffer/computeSize
local.set $2
local.get $2
call $~lib/allocator/arena/__memory_allocate
br $~lib/memory/memory.allocate|inlined.0
end
local.set $1
local.get $1
local.get $0
i32.store
local.get $1
)
(func $~lib/internal/memory/memcpy (; 6 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
block $break|0
loop $continue|0
local.get $2
if (result i32)
local.get $1
i32.const 3
i32.and
else
local.get $2
end
if
block
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
end
br $continue|0
end
end
end
local.get $0
i32.const 3
i32.and
i32.const 0
i32.eq
if
block $break|1
loop $continue|1
local.get $2
i32.const 16
i32.ge_u
if
block
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.get $1
i32.const 4
i32.add
i32.load
i32.store
local.get $0
i32.const 8
i32.add
local.get $1
i32.const 8
i32.add
i32.load
i32.store
local.get $0
i32.const 12
i32.add
local.get $1
i32.const 12
i32.add
i32.load
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
end
br $continue|1
end
end
end
local.get $2
i32.const 8
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.get $1
i32.const 4
i32.add
i32.load
i32.store
local.get $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
local.get $2
i32.const 4
i32.and
if
local.get $0
local.get $1
i32.load
i32.store
local.get $0
i32.const 4
i32.add
local.set $0
local.get $1
i32.const 4
i32.add
local.set $1
end
local.get $2
i32.const 2
i32.and
if
local.get $0
local.get $1
i32.load16_u
i32.store16
local.get $0
i32.const 2
i32.add
local.set $0
local.get $1
i32.const 2
i32.add
local.set $1
end
local.get $2
i32.const 1
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
return
end
local.get $2
i32.const 32
i32.ge_u
if
block $break|2
block $case2|2
block $case1|2
block $case0|2
local.get $0
i32.const 3
i32.and
local.set $5
local.get $5
i32.const 1
i32.eq
br_if $case0|2
local.get $5
i32.const 2
i32.eq
br_if $case1|2
local.get $5
i32.const 3
i32.eq
br_if $case2|2
br $break|2
end
block
local.get $1
i32.load
local.set $3
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
local.get $2
i32.const 3
i32.sub
local.set $2
block $break|3
loop $continue|3
local.get $2
i32.const 17
i32.ge_u
if
block
local.get $1
i32.const 1
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 24
i32.shr_u
local.get $4
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 5
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 24
i32.shr_u
local.get $3
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 9
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 24
i32.shr_u
local.get $4
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 13
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 24
i32.shr_u
local.get $3
i32.const 8
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
end
br $continue|3
end
end
end
br $break|2
unreachable
end
unreachable
end
block
local.get $1
i32.load
local.set $3
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
local.get $2
i32.const 2
i32.sub
local.set $2
block $break|4
loop $continue|4
local.get $2
i32.const 18
i32.ge_u
if
block
local.get $1
i32.const 2
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 6
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 10
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 16
i32.shr_u
local.get $4
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 14
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 16
i32.shr_u
local.get $3
i32.const 16
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
end
br $continue|4
end
end
end
br $break|2
unreachable
end
unreachable
end
block
local.get $1
i32.load
local.set $3
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
block $break|5
loop $continue|5
local.get $2
i32.const 19
i32.ge_u
if
block
local.get $1
i32.const 3
i32.add
i32.load
local.set $4
local.get $0
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 7
i32.add
i32.load
local.set $3
local.get $0
i32.const 4
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 11
i32.add
i32.load
local.set $4
local.get $0
i32.const 8
i32.add
local.get $3
i32.const 8
i32.shr_u
local.get $4
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 15
i32.add
i32.load
local.set $3
local.get $0
i32.const 12
i32.add
local.get $4
i32.const 8
i32.shr_u
local.get $3
i32.const 24
i32.shl
i32.or
i32.store
local.get $1
i32.const 16
i32.add
local.set $1
local.get $0
i32.const 16
i32.add
local.set $0
local.get $2
i32.const 16
i32.sub
local.set $2
end
br $continue|5
end
end
end
br $break|2
unreachable
end
unreachable
end
end
local.get $2
i32.const 16
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 8
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 4
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 2
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
local.get $2
i32.const 1
i32.and
if
block (result i32)
local.get $0
local.tee $5
i32.const 1
i32.add
local.set $0
local.get $5
end
block (result i32)
local.get $1
local.tee $5
i32.const 1
i32.add
local.set $1
local.get $5
end
i32.load8_u
i32.store8
end
)
(func $~lib/internal/memory/memmove (; 7 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
local.get $0
local.get $1
i32.eq
if
return
end
local.get $1
local.get $2
i32.add
local.get $0
i32.le_u
local.tee $3
if (result i32)
local.get $3
else
local.get $0
local.get $2
i32.add
local.get $1
i32.le_u
end
if
local.get $0
local.get $1
local.get $2
call $~lib/internal/memory/memcpy
return
end
local.get $0
local.get $1
i32.lt_u
if
local.get $1
i32.const 7
i32.and
local.get $0
i32.const 7
i32.and
i32.eq
if
block $break|0
loop $continue|0
local.get $0
i32.const 7
i32.and
if
block
local.get $2
i32.eqz
if
return
end
local.get $2
i32.const 1
i32.sub
local.set $2
block (result i32)
local.get $0
local.tee $3
i32.const 1
i32.add
local.set $0
local.get $3
end
block (result i32)
local.get $1
local.tee $3
i32.const 1
i32.add
local.set $1
local.get $3
end
i32.load8_u
i32.store8
end
br $continue|0
end
end
end
block $break|1
loop $continue|1
local.get $2
i32.const 8
i32.ge_u
if
block
local.get $0
local.get $1
i64.load
i64.store
local.get $2
i32.const 8
i32.sub
local.set $2
local.get $0
i32.const 8
i32.add
local.set $0
local.get $1
i32.const 8
i32.add
local.set $1
end
br $continue|1
end
end
end
end
block $break|2
loop $continue|2
local.get $2
if
block
block (result i32)
local.get $0
local.tee $3
i32.const 1
i32.add
local.set $0
local.get $3
end
block (result i32)
local.get $1
local.tee $3
i32.const 1
i32.add
local.set $1
local.get $3
end
i32.load8_u
i32.store8
local.get $2
i32.const 1
i32.sub
local.set $2
end
br $continue|2
end
end
end
else
local.get $1
i32.const 7
i32.and
local.get $0
i32.const 7
i32.and
i32.eq
if
block $break|3
loop $continue|3
local.get $0
local.get $2
i32.add
i32.const 7
i32.and
if
block
local.get $2
i32.eqz
if
return
end
local.get $0
local.get $2
i32.const 1
i32.sub
local.tee $2
i32.add
local.get $1
local.get $2
i32.add
i32.load8_u
i32.store8
end
br $continue|3
end
end
end
block $break|4
loop $continue|4
local.get $2
i32.const 8
i32.ge_u
if
block
local.get $2
i32.const 8
i32.sub
local.set $2
local.get $0
local.get $2
i32.add
local.get $1
local.get $2
i32.add
i64.load
i64.store
end
br $continue|4
end
end
end
end
block $break|5
loop $continue|5
local.get $2
if
local.get $0
local.get $2
i32.const 1
i32.sub
local.tee $2
i32.add
local.get $1
local.get $2
i32.add
i32.load8_u
i32.store8
br $continue|5
end
end
end
end
)
(func $~lib/allocator/arena/__memory_free (; 8 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $~lib/internal/memory/memset (; 9 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i64)
local.get $2
i32.eqz
if
return
end
local.get $0
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 1
i32.sub
local.get $1
i32.store8
local.get $2
i32.const 2
i32.le_u
if
return
end
local.get $0
i32.const 1
i32.add
local.get $1
i32.store8
local.get $0
i32.const 2
i32.add
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 2
i32.sub
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 3
i32.sub
local.get $1
i32.store8
local.get $2
i32.const 6
i32.le_u
if
return
end
local.get $0
i32.const 3
i32.add
local.get $1
i32.store8
local.get $0
local.get $2
i32.add
i32.const 4
i32.sub
local.get $1
i32.store8
local.get $2
i32.const 8
i32.le_u
if
return
end
i32.const 0
local.get $0
i32.sub
i32.const 3
i32.and
local.set $3
local.get $0
local.get $3
i32.add
local.set $0
local.get $2
local.get $3
i32.sub
local.set $2
local.get $2
i32.const -4
i32.and
local.set $2
i32.const -1
i32.const 255
i32.div_u
local.get $1
i32.const 255
i32.and
i32.mul
local.set $4
local.get $0
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 4
i32.sub
local.get $4
i32.store
local.get $2
i32.const 8
i32.le_u
if
return
end
local.get $0
i32.const 4
i32.add
local.get $4
i32.store
local.get $0
i32.const 8
i32.add
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 12
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 8
i32.sub
local.get $4
i32.store
local.get $2
i32.const 24
i32.le_u
if
return
end
local.get $0
i32.const 12
i32.add
local.get $4
i32.store
local.get $0
i32.const 16
i32.add
local.get $4
i32.store
local.get $0
i32.const 20
i32.add
local.get $4
i32.store
local.get $0
i32.const 24
i32.add
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 28
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 24
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 20
i32.sub
local.get $4
i32.store
local.get $0
local.get $2
i32.add
i32.const 16
i32.sub
local.get $4
i32.store
i32.const 24
local.get $0
i32.const 4
i32.and
i32.add
local.set $3
local.get $0
local.get $3
i32.add
local.set $0
local.get $2
local.get $3
i32.sub
local.set $2
local.get $4
i64.extend_i32_u
local.get $4
i64.extend_i32_u
i64.const 32
i64.shl
i64.or
local.set $5
block $break|0
loop $continue|0
local.get $2
i32.const 32
i32.ge_u
if
block
local.get $0
local.get $5
i64.store
local.get $0
i32.const 8
i32.add
local.get $5
i64.store
local.get $0
i32.const 16
i32.add
local.get $5
i64.store
local.get $0
i32.const 24
i32.add
local.get $5
i64.store
local.get $2
i32.const 32
i32.sub
local.set $2
local.get $0
i32.const 32
i32.add
local.set $0
end
br $continue|0
end
end
end
)
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
local.get $0
i32.load
local.set $2
local.get $1
local.get $2
i32.gt_s
if
local.get $1
i32.const 1073741816
i32.le_s
i32.eqz
if
i32.const 0
i32.const 216
i32.const 40
i32.const 4
call $~lib/env/abort
unreachable
end
local.get $1
local.get $2
call $~lib/internal/arraybuffer/computeSize
i32.const 8
i32.sub
i32.le_s
if
local.get $0
local.get $1
i32.store
else
local.get $1
call $~lib/internal/arraybuffer/allocateUnsafe
local.set $3
block $~lib/memory/memory.copy|inlined.0
local.get $3
i32.const 8
i32.add
local.set $4
local.get $0
i32.const 8
i32.add
local.set $5
local.get $2
local.set $6
local.get $4
local.get $5
local.get $6
call $~lib/internal/memory/memmove
end
block $~lib/memory/memory.free|inlined.0
local.get $0
local.set $6
local.get $6
call $~lib/allocator/arena/__memory_free
br $~lib/memory/memory.free|inlined.0
end
local.get $3
local.set $0
end
block $~lib/memory/memory.fill|inlined.0
local.get $0
i32.const 8
i32.add
local.get $2
i32.add
local.set $3
i32.const 0
local.set $6
local.get $1
local.get $2
i32.sub
local.set $5
local.get $3
local.get $6
local.get $5
call $~lib/internal/memory/memset
end
else
local.get $1
local.get $2
i32.lt_s
if
local.get $1
i32.const 0
i32.ge_s
i32.eqz
if
i32.const 0
i32.const 216
i32.const 62
i32.const 4
call $~lib/env/abort
unreachable
end
local.get $0
local.get $1
i32.store
end
end
local.get $0
)
(func $~lib/array/Array<i32>#__set (; 11 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
local.get $0
i32.load
local.set $3
local.get $3
i32.load
i32.const 2
i32.shr_u
local.set $4
local.get $1
local.get $4
i32.ge_u
if
local.get $1
i32.const 268435454
i32.ge_u
if
i32.const 0
i32.const 184
i32.const 107
i32.const 41
call $~lib/env/abort
unreachable
end
local.get $3
local.get $1
i32.const 1
i32.add
i32.const 2
i32.shl
call $~lib/internal/arraybuffer/reallocateUnsafe
local.set $3
local.get $0
local.get $3
i32.store
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/STORE<i32,i32>|inlined.0
local.get $3
local.set $5
local.get $1
local.set $6
local.get $2
local.set $7
i32.const 0
local.set $8
local.get $5
local.get $6
i32.const 2
i32.shl
i32.add
local.get $8
i32.add
local.get $7
i32.store offset=8
end
)
(func $~lib/array/Array<i64>#__get (; 12 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
i32.load
local.set $2
local.get $1
local.get $2
i32.load
i32.const 3
i32.shr_u
i32.lt_u
if (result i64)
local.get $2
local.set $3
local.get $1
local.set $4
i32.const 0
local.set $5
local.get $3
local.get $4
i32.const 3
i32.shl
i32.add
local.get $5
i32.add
i64.load offset=8
else
unreachable
end
)
(func $~lib/array/Array<i64>#__set (; 13 ;) (type $FUNCSIG$viij) (param $0 i32) (param $1 i32) (param $2 i64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i64)
(local $8 i32)
local.get $0
i32.load
local.set $3
local.get $3
i32.load
i32.const 3
i32.shr_u
local.set $4
local.get $1
local.get $4
i32.ge_u
if
local.get $1
i32.const 134217727
i32.ge_u
if
i32.const 0
i32.const 184
i32.const 107
i32.const 41
call $~lib/env/abort
unreachable
end
local.get $3
local.get $1
i32.const 1
i32.add
i32.const 3
i32.shl
call $~lib/internal/arraybuffer/reallocateUnsafe
local.set $3
local.get $0
local.get $3
i32.store
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/STORE<i64,i64>|inlined.0
local.get $3
local.set $5
local.get $1
local.set $6
local.get $2
local.set $7
i32.const 0
local.set $8
local.get $5
local.get $6
i32.const 3
i32.shl
i32.add
local.get $8
i32.add
local.get $7
i64.store offset=8
end
)
(func $~lib/array/Array<f32>#__get (; 14 ;) (type $FUNCSIG$fii) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
i32.load
local.set $2
local.get $1
local.get $2
i32.load
i32.const 2
i32.shr_u
i32.lt_u
if (result f32)
local.get $2
local.set $3
local.get $1
local.set $4
i32.const 0
local.set $5
local.get $3
local.get $4
i32.const 2
i32.shl
i32.add
local.get $5
i32.add
f32.load offset=8
else
unreachable
end
)
(func $~lib/array/Array<f32>#__set (; 15 ;) (type $FUNCSIG$viif) (param $0 i32) (param $1 i32) (param $2 f32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 f32)
(local $8 i32)
local.get $0
i32.load
local.set $3
local.get $3
i32.load
i32.const 2
i32.shr_u
local.set $4
local.get $1
local.get $4
i32.ge_u
if
local.get $1
i32.const 268435454
i32.ge_u
if
i32.const 0
i32.const 184
i32.const 107
i32.const 41
call $~lib/env/abort
unreachable
end
local.get $3
local.get $1
i32.const 1
i32.add
i32.const 2
i32.shl
call $~lib/internal/arraybuffer/reallocateUnsafe
local.set $3
local.get $0
local.get $3
i32.store
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/STORE<f32,f32>|inlined.0
local.get $3
local.set $5
local.get $1
local.set $6
local.get $2
local.set $7
i32.const 0
local.set $8
local.get $5
local.get $6
i32.const 2
i32.shl
i32.add
local.get $8
i32.add
local.get $7
f32.store offset=8
end
)
(func $~lib/array/Array<f64>#__get (; 16 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
i32.load
local.set $2
local.get $1
local.get $2
i32.load
i32.const 3
i32.shr_u
i32.lt_u
if (result f64)
local.get $2
local.set $3
local.get $1
local.set $4
i32.const 0
local.set $5
local.get $3
local.get $4
i32.const 3
i32.shl
i32.add
local.get $5
i32.add
f64.load offset=8
else
unreachable
end
)
(func $~lib/array/Array<f64>#__set (; 17 ;) (type $FUNCSIG$viid) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 f64)
(local $8 i32)
local.get $0
i32.load
local.set $3
local.get $3
i32.load
i32.const 3
i32.shr_u
local.set $4
local.get $1
local.get $4
i32.ge_u
if
local.get $1
i32.const 134217727
i32.ge_u
if
i32.const 0
i32.const 184
i32.const 107
i32.const 41
call $~lib/env/abort
unreachable
end
local.get $3
local.get $1
i32.const 1
i32.add
i32.const 3
i32.shl
call $~lib/internal/arraybuffer/reallocateUnsafe
local.set $3
local.get $0
local.get $3
i32.store
local.get $0
local.get $1
i32.const 1
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/STORE<f64,f64>|inlined.0
local.get $3
local.set $5
local.get $1
local.set $6
local.get $2
local.set $7
i32.const 0
local.set $8
local.get $5
local.get $6
i32.const 3
i32.shl
i32.add
local.get $8
i32.add
local.get $7
f64.store offset=8
end
)
(func $start:std/static-array (; 18 ;) (type $FUNCSIG$v)
(local $0 i32)
call $start:~lib/allocator/arena
block $~lib/array/Array<i32>#get:length|inlined.0 (result i32)
global.get $std/static-array/i
local.set $0
local.get $0
i32.load offset=4
end
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 8
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/i
i32.const 0
call $~lib/array/Array<i32>#__get
i32.const 1
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 9
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/i
i32.const 1
call $~lib/array/Array<i32>#__get
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 10
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/i
i32.const 0
i32.const 2
call $~lib/array/Array<i32>#__set
global.get $std/static-array/i
i32.const 0
call $~lib/array/Array<i32>#__get
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 12
i32.const 0
call $~lib/env/abort
unreachable
end
block $~lib/array/Array<i64>#get:length|inlined.0 (result i32)
global.get $std/static-array/I
local.set $0
local.get $0
i32.load offset=4
end
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 14
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/I
i32.const 0
call $~lib/array/Array<i64>#__get
i64.const 3
i64.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 15
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/I
i32.const 1
call $~lib/array/Array<i64>#__get
i64.const 4
i64.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 16
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/I
i32.const 0
i64.const 4
call $~lib/array/Array<i64>#__set
global.get $std/static-array/I
i32.const 0
call $~lib/array/Array<i64>#__get
i64.const 4
i64.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 18
i32.const 0
call $~lib/env/abort
unreachable
end
block $~lib/array/Array<f32>#get:length|inlined.0 (result i32)
global.get $std/static-array/f
local.set $0
local.get $0
i32.load offset=4
end
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 20
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/f
i32.const 0
call $~lib/array/Array<f32>#__get
f32.const 1.5
f32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 21
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/f
i32.const 1
call $~lib/array/Array<f32>#__get
f32.const 2.5
f32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 22
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/f
i32.const 0
f32.const 2.5
call $~lib/array/Array<f32>#__set
global.get $std/static-array/f
i32.const 0
call $~lib/array/Array<f32>#__get
f32.const 2.5
f32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 24
i32.const 0
call $~lib/env/abort
unreachable
end
block $~lib/array/Array<f64>#get:length|inlined.0 (result i32)
global.get $std/static-array/F
local.set $0
local.get $0
i32.load offset=4
end
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 26
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/F
i32.const 0
call $~lib/array/Array<f64>#__get
f64.const 1.25
f64.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 27
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/F
i32.const 1
call $~lib/array/Array<f64>#__get
f64.const 2.25
f64.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 28
i32.const 0
call $~lib/env/abort
unreachable
end
global.get $std/static-array/F
i32.const 0
f64.const 2.25
call $~lib/array/Array<f64>#__set
global.get $std/static-array/F
i32.const 0
call $~lib/array/Array<f64>#__get
f64.const 2.25
f64.eq
i32.eqz
if
i32.const 0
i32.const 136
i32.const 30
i32.const 0
call $~lib/env/abort
unreachable
end
)
(func $start (; 19 ;) (type $FUNCSIG$v)
call $start:std/static-array
)
(func $null (; 20 ;) (type $FUNCSIG$v)
)
)