2017-12-04 19:26:50 +01:00
|
|
|
(module
|
|
|
|
(type $v (func))
|
2018-02-04 07:51:40 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\n\00\00\00d\00e\00c\00l\00a\00r\00e\00.\00t\00s\00")
|
|
|
|
(table 1 anyfunc)
|
|
|
|
(elem (i32.const 0) $null)
|
2018-06-28 01:44:32 +02:00
|
|
|
(import "declare" "externalConstant" (global $declare/externalConstant i32))
|
2018-10-11 08:49:08 +02:00
|
|
|
(import "declare" "my.externalConstant" (global $declare/my.externalConstant i32))
|
2018-06-28 01:44:32 +02:00
|
|
|
(import "declare" "externalFunction" (func $declare/externalFunction))
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(import "declare" "my.externalFunction" (func $declare/my.externalFunction))
|
2018-05-14 16:55:55 +02:00
|
|
|
(global $HEAP_BASE i32 (i32.const 32))
|
2017-12-04 19:26:50 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-02-04 07:51:40 +01:00
|
|
|
(start $start)
|
|
|
|
(func $start (; 3 ;) (type $v)
|
|
|
|
(call $declare/externalFunction)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $declare/externalConstant)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(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-02-04 07:51:40 +01:00
|
|
|
(i32.const 5)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2017-12-27 22:38:32 +01:00
|
|
|
)
|
2018-02-04 07:51:40 +01:00
|
|
|
(call $declare/my.externalFunction)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.eq
|
|
|
|
(get_global $declare/my.externalConstant)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(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-02-04 07:51:40 +01:00
|
|
|
(i32.const 13)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2017-12-27 22:38:32 +01:00
|
|
|
)
|
|
|
|
)
|
2018-09-17 01:48:35 +02:00
|
|
|
(func $null (; 4 ;) (type $v)
|
|
|
|
)
|
2017-12-04 19:26:50 +01:00
|
|
|
)
|