2018-09-09 03:51:29 +02:00
|
|
|
(module
|
2019-03-01 00:01:23 +01:00
|
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
|
|
|
(type $FUNCSIG$v (func))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 0)
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $null)
|
2018-09-09 03:51:29 +02:00
|
|
|
(global $export/a i32 (i32.const 1))
|
|
|
|
(global $export/b i32 (i32.const 2))
|
|
|
|
(global $export/c i32 (i32.const 3))
|
2019-02-21 00:11:22 +01:00
|
|
|
(global $~lib/memory/HEAP_BASE i32 (i32.const 8))
|
2018-09-09 03:51:29 +02:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-09-09 03:51:29 +02:00
|
|
|
(export "a" (global $export/a))
|
|
|
|
(export "renamed_a" (global $export/a))
|
|
|
|
(export "renamed_b" (global $export/b))
|
|
|
|
(export "renamed_renamed_b" (global $export/b))
|
|
|
|
(start $start)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $export/add (; 0 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.add
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $export/mul (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.mul
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start:reexport (; 2 ;) (type $FUNCSIG$v)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.const 2
|
|
|
|
call $export/add
|
|
|
|
i32.const 3
|
|
|
|
i32.const 4
|
|
|
|
call $export/mul
|
|
|
|
i32.add
|
|
|
|
drop
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start:rereexport (; 3 ;) (type $FUNCSIG$v)
|
2019-02-21 00:11:22 +01:00
|
|
|
call $start:reexport
|
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start (; 4 ;) (type $FUNCSIG$v)
|
2019-02-21 00:11:22 +01:00
|
|
|
call $start:rereexport
|
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $null (; 5 ;) (type $FUNCSIG$v)
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-09-09 03:51:29 +02:00
|
|
|
)
|