assemblyscript/tests/compiler/infer-type.untouched.wat

132 lines
2.8 KiB
Plaintext

(module
(type $v (func))
(type $i (func (result i32)))
(type $I (func (result i64)))
(type $f (func (result f32)))
(type $F (func (result f64)))
(type $iiiiv (func (param i32 i32 i32 i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\0d\00\00\00i\00n\00f\00e\00r\00-\00t\00y\00p\00e\00.\00t\00s\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $infer-type/i i32 (i32.const 10))
(global $infer-type/I i64 (i64.const 4294967296))
(global $infer-type/F f64 (f64.const 1.5))
(global $infer-type/ri (mut i32) (i32.const 0))
(global $infer-type/rI (mut i64) (i64.const 0))
(global $infer-type/rf (mut f32) (f32.const 0))
(global $infer-type/rF (mut f64) (f64.const 0))
(global $infer-type/inferi (mut i32) (i32.const -2147483648))
(global $infer-type/inferu (mut i32) (i32.const 2147483647))
(global $HEAP_BASE i32 (i32.const 40))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $infer-type/locals (; 1 ;) (type $v)
(local $0 i32)
(local $1 i64)
(local $2 f64)
(local $3 i32)
(local $4 i64)
(local $5 f64)
i32.const 10
local.set $0
i64.const 4294967296
local.set $1
f64.const 1.5
local.set $2
global.get $infer-type/i
local.set $3
global.get $infer-type/I
local.set $4
global.get $infer-type/F
local.set $5
)
(func $infer-type/reti (; 2 ;) (type $i) (result i32)
i32.const 0
)
(func $infer-type/retI (; 3 ;) (type $I) (result i64)
i64.const 0
)
(func $infer-type/retf (; 4 ;) (type $f) (result f32)
f32.const 0
)
(func $infer-type/refF (; 5 ;) (type $F) (result f64)
f64.const 0
)
(func $start (; 6 ;) (type $v)
(local $0 i32)
(local $1 i32)
global.get $infer-type/i
drop
global.get $infer-type/I
drop
global.get $infer-type/F
drop
call $infer-type/locals
call $infer-type/reti
global.set $infer-type/ri
global.get $infer-type/ri
drop
call $infer-type/retI
global.set $infer-type/rI
global.get $infer-type/rI
drop
call $infer-type/retf
global.set $infer-type/rf
global.get $infer-type/rf
drop
call $infer-type/refF
global.set $infer-type/rF
global.get $infer-type/rF
drop
block $break|0
block
i32.const 0
local.set $0
i32.const 10
local.set $1
end
loop $repeat|0
local.get $0
local.get $1
i32.lt_s
i32.eqz
br_if $break|0
nop
local.get $0
i32.const 1
i32.add
local.set $0
br $repeat|0
unreachable
end
unreachable
end
i32.const 0
i32.eqz
i32.eqz
if
i32.const 0
i32.const 8
i32.const 49
i32.const 0
call $~lib/env/abort
unreachable
end
i32.const 1
i32.eqz
if
i32.const 0
i32.const 8
i32.const 52
i32.const 0
call $~lib/env/abort
unreachable
end
)
(func $null (; 7 ;) (type $v)
)
)