2017-12-04 14:49:24 +01:00
|
|
|
(module
|
|
|
|
(type $v (func))
|
|
|
|
(global $ternary/a (mut i32) (i32.const 0))
|
2017-12-16 17:54:53 +01:00
|
|
|
(global $HEAP_BASE i32 (i32.const 4))
|
2017-12-04 14:49:24 +01:00
|
|
|
(memory $0 1)
|
|
|
|
(export "memory" (memory $0))
|
|
|
|
(start $start)
|
|
|
|
(func $start (; 0 ;) (type $v)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:1:0
|
2017-12-18 03:46:36 +01:00
|
|
|
(if
|
|
|
|
(i32.const 0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:1:4
|
2017-12-18 03:46:36 +01:00
|
|
|
(unreachable)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:1:20
|
2017-12-18 03:46:36 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:2:0
|
2017-12-18 03:46:36 +01:00
|
|
|
(if
|
|
|
|
(i32.const 1)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:2:4
|
2017-12-18 03:46:36 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:2:8
|
2017-12-18 03:46:36 +01:00
|
|
|
(unreachable)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:3:0
|
2017-12-18 03:46:36 +01:00
|
|
|
(if
|
|
|
|
(if (result i32)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:3:1
|
2017-12-18 03:46:36 +01:00
|
|
|
(i32.const 0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:3:5
|
2017-12-18 03:46:36 +01:00
|
|
|
(unreachable)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:3:21
|
2017-12-18 03:46:36 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:3:26
|
2017-12-18 03:46:36 +01:00
|
|
|
(drop
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:3:30
|
2017-12-18 03:46:36 +01:00
|
|
|
(unreachable)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:7:0
|
2017-12-04 14:49:24 +01:00
|
|
|
(set_global $ternary/a
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:7:4
|
2017-12-04 14:49:24 +01:00
|
|
|
(if (result i32)
|
|
|
|
(i32.const 0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:7:8
|
2017-12-04 14:49:24 +01:00
|
|
|
(unreachable)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:7:24
|
2017-12-04 14:49:24 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:8:0
|
2017-12-04 14:49:24 +01:00
|
|
|
(set_global $ternary/a
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:8:4
|
2017-12-04 14:49:24 +01:00
|
|
|
(if (result i32)
|
|
|
|
(i32.const 1)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:8:8
|
2017-12-04 14:49:24 +01:00
|
|
|
(i32.const 1)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:8:12
|
2017-12-04 14:49:24 +01:00
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:0
|
2017-12-04 14:49:24 +01:00
|
|
|
(set_global $ternary/a
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:4
|
2017-12-04 14:49:24 +01:00
|
|
|
(if (result i32)
|
|
|
|
(if (result i32)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:5
|
2017-12-04 14:49:24 +01:00
|
|
|
(i32.const 0)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:9
|
2017-12-04 14:49:24 +01:00
|
|
|
(unreachable)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:25
|
2017-12-04 14:49:24 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:30
|
2017-12-04 14:49:24 +01:00
|
|
|
(i32.const 1)
|
2018-02-02 03:07:54 +01:00
|
|
|
;;@ ternary.ts:9:34
|
2017-12-04 14:49:24 +01:00
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|