2017-12-05 22:47:20 +01:00
|
|
|
(module
|
2018-02-04 07:51:40 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2017-12-05 22:47:20 +01:00
|
|
|
(type $v (func))
|
2018-02-04 07:51:40 +01:00
|
|
|
(import "env" "abort" (func $abort (param i32 i32 i32 i32)))
|
2017-12-05 22:47:20 +01:00
|
|
|
(memory $0 1)
|
2018-05-14 16:55:55 +02:00
|
|
|
(data (i32.const 8) "\t\00\00\00a\00s\00s\00e\00r\00t\00.\00t\00s")
|
|
|
|
(data (i32.const 32) "\0c\00\00\00m\00u\00s\00t\00 \00b\00e\00 \00t\00r\00u\00e")
|
2017-12-05 22:47:20 +01:00
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
2018-02-04 07:51:40 +01:00
|
|
|
(func $start (; 1 ;) (type $v)
|
2018-01-10 13:09:05 +01:00
|
|
|
(local $0 i32)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(if (result i32)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
2018-02-04 07:51:40 +01:00
|
|
|
(block
|
|
|
|
(call $abort
|
2018-05-14 16:55:55 +02:00
|
|
|
(i32.const 32)
|
|
|
|
(i32.const 8)
|
2018-02-04 07:51:40 +01:00
|
|
|
(i32.const 10)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2018-01-10 13:09:05 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
2017-12-05 22:47:20 +01:00
|
|
|
)
|
|
|
|
)
|