2018-02-28 01:48:01 +01:00
|
|
|
(module
|
|
|
|
(type $ii (func (param i32) (result i32)))
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $iiii_ (func (param i32 i32 i32 i32)))
|
|
|
|
(type $_ (func))
|
2018-03-19 01:22:19 +01:00
|
|
|
(type $i (func (result i32)))
|
2018-11-08 08:04:24 +01:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\16\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00-\00e\00x\00p\00r\00e\00s\00s\00i\00o\00n\00.\00t\00s")
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 5 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $start~someName|3 $start~anonymous|1 $start~anonymous|1 $start~someName|3 $start~anonymous|4)
|
2018-09-17 01:48:35 +02:00
|
|
|
(global $function-expression/f1 (mut i32) (i32.const 1))
|
2018-04-17 16:04:29 +02:00
|
|
|
(global $~argc (mut i32) (i32.const 0))
|
2018-09-17 01:48:35 +02:00
|
|
|
(global $function-expression/f2 (mut i32) (i32.const 2))
|
|
|
|
(global $function-expression/f3 (mut i32) (i32.const 3))
|
|
|
|
(global $function-expression/f4 (mut i32) (i32.const 4))
|
2018-02-28 01:48:01 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-03-23 15:12:03 +01:00
|
|
|
(export "table" (table $0))
|
2018-03-03 18:38:38 +01:00
|
|
|
(start $start)
|
2018-11-08 08:04:24 +01:00
|
|
|
(func $start~anonymous|1 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
local.get $0
|
2018-02-28 01:48:01 +01:00
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $start~someName|3 (; 2 ;) (type $_)
|
2018-11-08 08:04:24 +01:00
|
|
|
nop
|
2018-02-28 01:48:01 +01:00
|
|
|
)
|
2018-11-08 08:04:24 +01:00
|
|
|
(func $start~anonymous|4 (; 3 ;) (type $i) (result i32)
|
|
|
|
i32.const 1
|
2018-03-19 01:22:19 +01:00
|
|
|
)
|
2019-02-07 15:26:26 +01:00
|
|
|
(func $start (; 4 ;) (type $_)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~argc
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $function-expression/f1
|
2018-11-08 08:04:24 +01:00
|
|
|
call_indirect (type $ii)
|
|
|
|
i32.const 1
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 8
|
|
|
|
i32.const 4
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~argc
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 2
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $function-expression/f2
|
2018-11-08 08:04:24 +01:00
|
|
|
call_indirect (type $ii)
|
|
|
|
i32.const 2
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 8
|
|
|
|
i32.const 9
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~argc
|
|
|
|
global.get $function-expression/f3
|
2019-02-07 15:26:26 +01:00
|
|
|
call_indirect (type $_)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $~argc
|
|
|
|
global.get $function-expression/f4
|
2018-11-08 08:04:24 +01:00
|
|
|
call_indirect (type $i)
|
|
|
|
i32.const 1
|
|
|
|
i32.ne
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 8
|
|
|
|
i32.const 16
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2018-03-03 18:38:38 +01:00
|
|
|
)
|
2018-02-28 01:48:01 +01:00
|
|
|
)
|