2017-12-23 13:48:04 +01:00
|
|
|
(module
|
2019-03-01 00:01:23 +01:00
|
|
|
(type $FUNCSIG$v (func))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
2019-06-05 23:15:39 +02:00
|
|
|
(data (i32.const 8) "\1a\00\00\00\01\00\00\00\01\00\00\00\1a\00\00\00i\00n\00f\00e\00r\00-\00t\00y\00p\00e\00.\00t\00s")
|
2017-12-23 17:49:06 +01:00
|
|
|
(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))
|
2017-12-23 13:48:04 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start:infer-type (; 0 ;) (type $FUNCSIG$v)
|
2017-12-27 02:37:53 +01:00
|
|
|
(local $0 i32)
|
2018-11-09 12:28:10 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $infer-type/ri
|
2018-11-09 12:28:10 +01:00
|
|
|
i64.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $infer-type/rI
|
2018-11-09 12:28:10 +01:00
|
|
|
f32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $infer-type/rf
|
2018-11-09 12:28:10 +01:00
|
|
|
f64.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $infer-type/rF
|
2019-06-11 12:52:16 +02:00
|
|
|
loop $loop|0
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-23 15:20:52 +01:00
|
|
|
i32.const 10
|
2018-12-01 03:09:43 +01:00
|
|
|
i32.lt_s
|
2018-11-23 15:20:52 +01:00
|
|
|
if
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
local.set $0
|
2019-06-11 12:52:16 +02:00
|
|
|
br $loop|0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
|
|
|
end
|
2017-12-23 13:48:04 +01:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start (; 1 ;) (type $FUNCSIG$v)
|
2019-02-21 00:11:22 +01:00
|
|
|
call $start:infer-type
|
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $null (; 2 ;) (type $FUNCSIG$v)
|
2018-11-09 12:28:10 +01:00
|
|
|
nop
|
|
|
|
)
|
2017-12-23 13:48:04 +01:00
|
|
|
)
|