2017-12-28 15:17:35 +01:00
|
|
|
(module
|
|
|
|
(type $i (func (result i32)))
|
2018-02-04 07:51:40 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2017-12-28 15:17:35 +01:00
|
|
|
(type $v (func))
|
2018-04-11 23:35:19 +02:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-04-17 16:04:29 +02:00
|
|
|
(global $~argc (mut i32) (i32.const 0))
|
2018-09-17 01:48:35 +02:00
|
|
|
(table 2 2 anyfunc)
|
|
|
|
(elem (i32.const 0) $null $inlining/test_funcs~anonymous|1)
|
2017-12-28 15:17:35 +01:00
|
|
|
(memory $0 1)
|
2018-05-14 16:55:55 +02:00
|
|
|
(data (i32.const 8) "\0b\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00.\00t\00s")
|
2017-12-28 15:17:35 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-04-11 23:35:19 +02:00
|
|
|
(export "table" (table $0))
|
2018-07-18 23:49:32 +02:00
|
|
|
(export "test" (func $inlining/test))
|
2017-12-28 15:17:35 +01:00
|
|
|
(start $start)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $inlining/test (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
|
2017-12-28 15:17:35 +01:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $inlining/test_funcs~anonymous|1 (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-11 23:35:19 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $inlining/test_funcs (; 3 ;) (; has Stack IR ;) (type $v)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 1)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
2018-06-09 14:05:33 +02:00
|
|
|
(call_indirect (type $ii)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 2)
|
2018-09-17 01:48:35 +02:00
|
|
|
(i32.const 1)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 2)
|
2018-04-11 23:35:19 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 68)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $start (; 4 ;) (; has Stack IR ;) (type $v)
|
2018-02-04 07:51:40 +01:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(call $inlining/test)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 8)
|
2018-04-11 23:35:19 +02:00
|
|
|
(i32.const 10)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-04-11 23:35:19 +02:00
|
|
|
(call $inlining/test_funcs)
|
2017-12-28 15:17:35 +01:00
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $null (; 5 ;) (; has Stack IR ;) (type $v)
|
|
|
|
(nop)
|
|
|
|
)
|
2017-12-28 15:17:35 +01:00
|
|
|
)
|