2017-12-02 01:14:15 +01:00
|
|
|
(module
|
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
|
|
(type $v (func))
|
2017-12-30 05:11:58 +01:00
|
|
|
(global $export/a i32 (i32.const 1))
|
2018-01-04 06:00:42 +01:00
|
|
|
(global $export/b i32 (i32.const 2))
|
2018-01-18 01:46:41 +01:00
|
|
|
(global $export/c i32 (i32.const 3))
|
2017-12-16 17:54:53 +01:00
|
|
|
(global $HEAP_BASE i32 (i32.const 4))
|
2017-12-02 01:14:15 +01:00
|
|
|
(memory $0 1)
|
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
|
|
|
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:2:13
|
2017-12-02 01:14:15 +01:00
|
|
|
(return
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:2:9
|
2017-12-02 01:14:15 +01:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:2:13
|
2017-12-02 01:14:15 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:6:13
|
2017-12-02 01:14:15 +01:00
|
|
|
(return
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:6:9
|
2017-12-02 01:14:15 +01:00
|
|
|
(i32.sub
|
|
|
|
(get_local $0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:6:13
|
2017-12-02 01:14:15 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-01-18 01:46:41 +01:00
|
|
|
(func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:12:13
|
2018-01-18 01:46:41 +01:00
|
|
|
(return
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:12:9
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.mul
|
|
|
|
(get_local $0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ export.ts:12:13
|
2018-01-18 01:46:41 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2017-12-30 05:11:58 +01:00
|
|
|
)
|
2018-01-18 01:46:41 +01:00
|
|
|
)
|
|
|
|
(func $export/ns.two (; 3 ;) (type $v)
|
|
|
|
)
|
|
|
|
(func $start (; 4 ;) (type $v)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:0
|
2017-12-02 01:14:15 +01:00
|
|
|
(drop
|
|
|
|
(i32.add
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.add
|
|
|
|
(call $export/add
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:4
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.const 1)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:7
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:12
|
2018-01-18 01:46:41 +01:00
|
|
|
(call $export/sub
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:16
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.const 2)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:19
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
2017-12-02 01:14:15 +01:00
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:24
|
2018-01-18 01:46:41 +01:00
|
|
|
(call $export/mul
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:28
|
2018-01-18 01:46:41 +01:00
|
|
|
(i32.const 3)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:11:31
|
2017-12-06 23:38:17 +01:00
|
|
|
(i32.const 1)
|
2017-12-02 01:14:15 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ import.ts:13:11
|
2017-12-13 23:24:13 +01:00
|
|
|
(call $export/ns.two)
|
2017-12-02 01:14:15 +01:00
|
|
|
)
|
|
|
|
)
|