mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
88 lines
1.5 KiB
Plaintext
88 lines
1.5 KiB
Plaintext
(module
|
|
(type $v (func))
|
|
(global $ternary/a (mut i32) (i32.const 0))
|
|
(global $HEAP_BASE i32 (i32.const 4))
|
|
(memory $0 1)
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $start (; 0 ;) (type $v)
|
|
;;@ ternary.ts:1:0
|
|
(if
|
|
(i32.const 0)
|
|
;;@ ternary.ts:1:4
|
|
(unreachable)
|
|
;;@ ternary.ts:1:20
|
|
(drop
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
;;@ ternary.ts:2:0
|
|
(if
|
|
(i32.const 1)
|
|
;;@ ternary.ts:2:4
|
|
(drop
|
|
(i32.const 1)
|
|
)
|
|
;;@ ternary.ts:2:8
|
|
(unreachable)
|
|
)
|
|
;;@ ternary.ts:3:0
|
|
(if
|
|
(if (result i32)
|
|
;;@ ternary.ts:3:1
|
|
(i32.const 0)
|
|
;;@ ternary.ts:3:5
|
|
(unreachable)
|
|
;;@ ternary.ts:3:21
|
|
(i32.const 1)
|
|
)
|
|
;;@ ternary.ts:3:26
|
|
(drop
|
|
(i32.const 1)
|
|
)
|
|
;;@ ternary.ts:3:30
|
|
(unreachable)
|
|
)
|
|
;;@ ternary.ts:7:0
|
|
(set_global $ternary/a
|
|
;;@ ternary.ts:7:4
|
|
(if (result i32)
|
|
(i32.const 0)
|
|
;;@ ternary.ts:7:8
|
|
(unreachable)
|
|
;;@ ternary.ts:7:24
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
;;@ ternary.ts:8:0
|
|
(set_global $ternary/a
|
|
;;@ ternary.ts:8:4
|
|
(if (result i32)
|
|
(i32.const 1)
|
|
;;@ ternary.ts:8:8
|
|
(i32.const 1)
|
|
;;@ ternary.ts:8:12
|
|
(unreachable)
|
|
)
|
|
)
|
|
;;@ ternary.ts:9:0
|
|
(set_global $ternary/a
|
|
;;@ ternary.ts:9:4
|
|
(if (result i32)
|
|
(if (result i32)
|
|
;;@ ternary.ts:9:5
|
|
(i32.const 0)
|
|
;;@ ternary.ts:9:9
|
|
(unreachable)
|
|
;;@ ternary.ts:9:25
|
|
(i32.const 1)
|
|
)
|
|
;;@ ternary.ts:9:30
|
|
(i32.const 1)
|
|
;;@ ternary.ts:9:34
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
)
|