2018-05-06 00:00:54 +02:00
|
|
|
(module
|
2019-03-01 00:01:23 +01:00
|
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
|
|
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
|
|
|
(type $FUNCSIG$v (func))
|
2019-06-05 23:15:39 +02:00
|
|
|
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
2019-06-05 23:15:39 +02:00
|
|
|
(data (i32.const 8) "\0c\00\00\00\01\00\00\00\01\00\00\00\0c\00\00\00a\00b\00i\00.\00t\00s")
|
2018-05-06 00:00:54 +02:00
|
|
|
(global $abi/condition (mut i32) (i32.const 0))
|
|
|
|
(global $abi/y (mut i32) (i32.const 0))
|
2018-07-18 23:49:32 +02:00
|
|
|
(export "memory" (memory $0))
|
2018-05-06 00:00:54 +02:00
|
|
|
(export "exported" (func $abi/exported))
|
2018-11-09 12:28:10 +01:00
|
|
|
(export "exportedExported" (func $abi/exported))
|
|
|
|
(export "exportedInternal" (func $abi/exported))
|
2018-05-06 00:00:54 +02:00
|
|
|
(start $start)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $abi/exported (; 1 ;) (type $FUNCSIG$i) (result i32)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -128
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start (; 2 ;) (type $FUNCSIG$v)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $abi/condition
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $abi/y
|
|
|
|
global.get $abi/y
|
2018-11-08 08:04:24 +01:00
|
|
|
if
|
|
|
|
i32.const 0
|
2019-06-05 23:15:39 +02:00
|
|
|
i32.const 24
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 65
|
|
|
|
i32.const 2
|
2019-06-05 23:15:39 +02:00
|
|
|
call $~lib/builtins/abort
|
2018-11-08 08:04:24 +01:00
|
|
|
unreachable
|
|
|
|
end
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $null (; 3 ;) (type $FUNCSIG$v)
|
2018-11-08 08:04:24 +01:00
|
|
|
nop
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|