mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
72 lines
959 B
Plaintext
72 lines
959 B
Plaintext
|
(module
|
||
|
(type $ii (func (param i32) (result i32)))
|
||
|
(memory $0 1)
|
||
|
(data (i32.const 4) "\08\00\00\00")
|
||
|
(export "memory" (memory $0))
|
||
|
(func $if/ifThenElse (; 0 ;) (type $ii) (param $0 i32) (result i32)
|
||
|
(if
|
||
|
(get_local $0)
|
||
|
(return
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
(return
|
||
|
(i32.const 0)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(func $if/ifThen (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||
|
(if
|
||
|
(get_local $0)
|
||
|
(return
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(return
|
||
|
(i32.const 0)
|
||
|
)
|
||
|
)
|
||
|
(func $if/ifThenElseBlock (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||
|
(if
|
||
|
(get_local $0)
|
||
|
(block
|
||
|
(nop)
|
||
|
(return
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(block
|
||
|
(nop)
|
||
|
(return
|
||
|
(i32.const 0)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(;
|
||
|
[program.elements]
|
||
|
clz
|
||
|
ctz
|
||
|
popcnt
|
||
|
rotl
|
||
|
rotr
|
||
|
abs
|
||
|
ceil
|
||
|
copysign
|
||
|
floor
|
||
|
max
|
||
|
min
|
||
|
nearest
|
||
|
sqrt
|
||
|
trunc
|
||
|
isNaN
|
||
|
isFinite
|
||
|
if/ifThenElse
|
||
|
if/ifThen
|
||
|
if/ifThenElseBlock
|
||
|
[program.exports]
|
||
|
if/ifThenElse
|
||
|
if/ifThen
|
||
|
if/ifThenElseBlock
|
||
|
;)
|