mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
873 lines
12 KiB
Plaintext
873 lines
12 KiB
Plaintext
(module
|
|
(type $v (func))
|
|
(global $binary/i (mut i32) (i32.const 0))
|
|
(global $binary/b (mut i32) (i32.const 0))
|
|
(global $binary/I (mut i64) (i64.const 0))
|
|
(global $binary/f (mut f32) (f32.const 0))
|
|
(global $binary/F (mut f64) (f64.const 0))
|
|
(global $HEAP_BASE i32 (i32.const 4))
|
|
(memory $0 1)
|
|
(export "memory" (memory $0))
|
|
(start $start)
|
|
(func $start (; 0 ;) (type $v)
|
|
(drop
|
|
(i32.lt_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.gt_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.le_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.ge_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.eq
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.eq
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.add
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.sub
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.mul
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.div_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.rem_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.shl
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.shr_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.shr_u
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.and
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.or
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i32.xor
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i32.lt_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i32.gt_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i32.le_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i32.ge_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i32.eq
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i32.eq
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.add
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.sub
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.mul
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.div_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.rem_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.shl
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.shr_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.shr_u
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.and
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.or
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.xor
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.add
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.sub
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.mul
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.rem_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.shl
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.shr_s
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.shr_u
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.and
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.or
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/i
|
|
(i32.xor
|
|
(get_global $binary/i)
|
|
(i32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.lt_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.gt_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.le_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.ge_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.eq
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.eq
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.add
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.sub
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.mul
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.div_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.rem_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.shl
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.shr_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.shr_u
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.and
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.or
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(i64.xor
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i64.lt_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i64.gt_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i64.le_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i64.ge_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i64.eq
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(i64.eq
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.add
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.sub
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.mul
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.div_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.rem_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.shl
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.shr_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.shr_u
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.and
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.or
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.xor
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.add
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.sub
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.mul
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.rem_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.shl
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.shr_s
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.shr_u
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.and
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.or
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/I
|
|
(i64.xor
|
|
(get_global $binary/I)
|
|
(i64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.lt
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.gt
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.le
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.ge
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.eq
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.eq
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.add
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.sub
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.mul
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f32.div
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f32.lt
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f32.gt
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f32.le
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f32.ge
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f32.eq
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f32.eq
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.add
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.sub
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.mul
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.div
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.add
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.sub
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/f
|
|
(f32.mul
|
|
(get_global $binary/f)
|
|
(f32.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.lt
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.gt
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.le
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.ge
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.eq
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.eq
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.add
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.sub
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.mul
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(drop
|
|
(f64.div
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f64.lt
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f64.gt
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f64.le
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f64.ge
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f64.eq
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/b
|
|
(f64.eq
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.add
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.sub
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.mul
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.div
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.add
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.sub
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
(set_global $binary/F
|
|
(f64.mul
|
|
(get_global $binary/F)
|
|
(f64.const 1)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
(;
|
|
[program.elements]
|
|
NaN
|
|
Infinity
|
|
isNaN
|
|
isFinite
|
|
clz
|
|
ctz
|
|
popcnt
|
|
rotl
|
|
rotr
|
|
abs
|
|
max
|
|
min
|
|
ceil
|
|
floor
|
|
copysign
|
|
nearest
|
|
reinterpret
|
|
sqrt
|
|
trunc
|
|
load
|
|
store
|
|
sizeof
|
|
select
|
|
unreachable
|
|
current_memory
|
|
grow_memory
|
|
parseInt
|
|
parseFloat
|
|
changetype
|
|
assert
|
|
i8
|
|
i16
|
|
i32
|
|
i64
|
|
u8
|
|
u16
|
|
u32
|
|
u64
|
|
bool
|
|
f32
|
|
f64
|
|
isize
|
|
usize
|
|
HEAP_BASE
|
|
binary/b
|
|
binary/i
|
|
binary/I
|
|
binary/f
|
|
binary/F
|
|
[program.exports]
|
|
|
|
;)
|