2017-12-04 16:26:34 +01:00
|
|
|
(module
|
|
|
|
(type $v (func))
|
2018-09-13 23:10:49 +02:00
|
|
|
(type $FUNCSIG$i (func (result i32)))
|
2018-06-28 01:44:32 +02:00
|
|
|
(memory $0 0)
|
2017-12-04 16:26:34 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $export/add (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
|
|
(i32.const 3)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $export/sub (; 1 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
|
|
(i32.const -1)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $export/ns.two (; 2 ;) (; has Stack IR ;) (type $v)
|
2017-12-13 23:24:13 +01:00
|
|
|
(nop)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $start (; 3 ;) (; has Stack IR ;) (type $v)
|
2018-02-04 07:51:40 +01:00
|
|
|
(drop
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $export/add)
|
|
|
|
(call $export/sub)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $export/add)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $export/ns.two)
|
2018-06-12 00:45:19 +02:00
|
|
|
(drop
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $export/add)
|
|
|
|
(call $export/sub)
|
2018-06-12 00:45:19 +02:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $export/add)
|
2018-06-12 00:45:19 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(call $export/ns.two)
|
2018-02-04 07:51:40 +01:00
|
|
|
)
|
2017-12-04 16:26:34 +01:00
|
|
|
)
|