2017-12-23 13:48:04 +01:00
|
|
|
(module
|
|
|
|
(type $v (func))
|
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
|
|
|
(memory $0 1)
|
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2018-01-18 23:34:12 +01:00
|
|
|
(func $start (; 0 ;) (type $v)
|
2017-12-27 02:37:53 +01:00
|
|
|
(local $0 i32)
|
2017-12-23 17:49:06 +01:00
|
|
|
(set_global $infer-type/ri
|
2018-01-18 23:34:12 +01:00
|
|
|
(i32.const 0)
|
2017-12-23 17:49:06 +01:00
|
|
|
)
|
|
|
|
(set_global $infer-type/rI
|
2018-01-18 23:34:12 +01:00
|
|
|
(i64.const 0)
|
2017-12-23 17:49:06 +01:00
|
|
|
)
|
|
|
|
(set_global $infer-type/rf
|
2018-01-18 23:34:12 +01:00
|
|
|
(f32.const 0)
|
2017-12-23 17:49:06 +01:00
|
|
|
)
|
|
|
|
(set_global $infer-type/rF
|
2018-01-18 23:34:12 +01:00
|
|
|
(f64.const 0)
|
2017-12-27 02:37:53 +01:00
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.lt_u
|
|
|
|
(get_local $0)
|
2018-01-18 23:34:12 +01:00
|
|
|
(i32.const 10)
|
2017-12-27 02:37:53 +01:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2017-12-23 13:48:04 +01:00
|
|
|
)
|
|
|
|
)
|