2018-04-19 17:32:23 +02:00
|
|
|
(module
|
2018-04-20 18:56:51 +02:00
|
|
|
(type $iiv (func (param i32 i32)))
|
2018-04-19 23:16:03 +02:00
|
|
|
(type $F (func (result f64)))
|
2018-04-19 17:32:23 +02:00
|
|
|
(type $v (func))
|
2018-04-19 23:16:03 +02:00
|
|
|
(import "JSMath" "random" (func $~lib/math/JSMath.random (result f64)))
|
2018-04-19 17:32:23 +02:00
|
|
|
(import "env" "memory" (memory $0 1))
|
|
|
|
(global $assembly/index/w (mut i32) (i32.const 0))
|
|
|
|
(global $assembly/index/h (mut i32) (i32.const 0))
|
|
|
|
(global $assembly/index/s (mut i32) (i32.const 0))
|
|
|
|
(export "init" (func $assembly/index/init))
|
|
|
|
(export "step" (func $assembly/index/step))
|
|
|
|
(export "memory" (memory $0))
|
2018-04-20 18:56:51 +02:00
|
|
|
(func $assembly/index/init (; 1 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
;;@ assembly/index.ts:30:2
|
2018-04-19 17:32:23 +02:00
|
|
|
(set_global $assembly/index/w
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:30:6
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:31:2
|
2018-04-19 17:32:23 +02:00
|
|
|
(set_global $assembly/index/h
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:31:6
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:32:2
|
2018-04-19 17:32:23 +02:00
|
|
|
(set_global $assembly/index/s
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:32:6
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.mul
|
|
|
|
(get_local $0)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:32:14
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:35:7
|
2018-04-19 23:16:03 +02:00
|
|
|
(set_local $0
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:35:15
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:35:18
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(get_local $0)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:35:22
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/h)
|
|
|
|
)
|
|
|
|
(block
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:36:9
|
2018-04-19 23:16:03 +02:00
|
|
|
(set_local $1
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:36:17
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:36:20
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:36:24
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
(block
|
2018-04-20 18:56:51 +02:00
|
|
|
(set_local $2
|
|
|
|
;;@ assembly/index.ts:37:16
|
2018-04-19 23:16:03 +02:00
|
|
|
(if (result i32)
|
|
|
|
(f64.gt
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:37:21
|
2018-04-19 23:16:03 +02:00
|
|
|
(call $~lib/math/JSMath.random)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:37:32
|
|
|
|
(f64.const 0.1)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:37:38
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 8723366)
|
|
|
|
(i32.const -1666349)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:2
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.store
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:13
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:14
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_global $assembly/index/s)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:18
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.mul
|
|
|
|
(get_local $0)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:22
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:26
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:32
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:35
|
|
|
|
(get_local $2)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:36:27
|
2018-04-19 23:16:03 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:36:29
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:35:25
|
2018-04-19 23:16:03 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:35:27
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(func $assembly/index/step (; 2 ;) (type $v)
|
2018-04-19 17:32:23 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
2018-04-19 23:16:03 +02:00
|
|
|
(local $8 i32)
|
2018-04-20 18:56:51 +02:00
|
|
|
(set_local $5
|
|
|
|
;;@ assembly/index.ts:44:12
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.sub
|
|
|
|
(get_global $assembly/index/h)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:44:16
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
(set_local $6
|
|
|
|
;;@ assembly/index.ts:45:12
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.sub
|
|
|
|
(get_global $assembly/index/w)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:45:16
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:49:18
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.lt_s
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:49:22
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/h)
|
|
|
|
)
|
|
|
|
(block
|
2018-04-20 18:56:51 +02:00
|
|
|
(set_local $7
|
|
|
|
;;@ assembly/index.ts:50:14
|
2018-04-19 17:32:23 +02:00
|
|
|
(if (result i32)
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:50:29
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.sub
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:50:33
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:50:23
|
|
|
|
(get_local $5)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
(set_local $8
|
|
|
|
;;@ assembly/index.ts:51:14
|
2018-04-19 17:32:23 +02:00
|
|
|
(if (result i32)
|
|
|
|
(i32.eq
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:51:19
|
|
|
|
(get_local $5)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:51:25
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 0)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:51:29
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:51:33
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:52:9
|
2018-04-19 17:32:23 +02:00
|
|
|
(set_local $1
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:52:17
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:52:20
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:52:24
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
(block
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:58:6
|
|
|
|
(set_local $0
|
|
|
|
;;@ assembly/index.ts:58:27
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:8
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
(tee_local $0
|
|
|
|
;;@ assembly/index.ts:59:18
|
|
|
|
(get_local $7)
|
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
(tee_local $3
|
|
|
|
;;@ assembly/index.ts:53:16
|
2018-04-19 23:16:03 +02:00
|
|
|
(if (result i32)
|
|
|
|
(get_local $1)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:53:31
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:53:35
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:53:25
|
|
|
|
(get_local $6)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:25
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:30
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:40
|
|
|
|
(get_local $0)
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:35
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_local $1)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:47
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:52
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:62
|
|
|
|
(get_local $0)
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 05:06:05 +02:00
|
|
|
(tee_local $4
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:54:16
|
2018-04-19 23:16:03 +02:00
|
|
|
(if (result i32)
|
|
|
|
(i32.eq
|
|
|
|
(get_local $1)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:54:21
|
|
|
|
(get_local $6)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:54:27
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:54:31
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:54:35
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:59:69
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:8
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
(tee_local $0
|
|
|
|
;;@ assembly/index.ts:60:18
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:13
|
|
|
|
(get_local $3)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:25
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:52
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:62
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $0)
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:57
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $4)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:60:69
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:8
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
(tee_local $0
|
|
|
|
;;@ assembly/index.ts:61:18
|
|
|
|
(get_local $8)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:13
|
|
|
|
(get_local $3)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:25
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:30
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:40
|
|
|
|
(get_local $0)
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:35
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $1)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:47
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:52
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.load
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:62
|
|
|
|
(get_local $0)
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:57
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $4)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:61:69
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:65:6
|
2018-04-19 17:32:23 +02:00
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:65:10
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:64:6
|
|
|
|
(tee_local $3
|
|
|
|
;;@ assembly/index.ts:12:9
|
|
|
|
(i32.load
|
|
|
|
;;@ assembly/index.ts:12:19
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
|
|
|
;;@ assembly/index.ts:12:20
|
|
|
|
(i32.mul
|
|
|
|
;;@ assembly/index.ts:64:24
|
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:12:24
|
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:64:21
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:12:34
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:65:17
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 1)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:67:8
|
2018-04-19 23:16:03 +02:00
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:67:12
|
2018-04-20 05:06:05 +02:00
|
|
|
(i32.eq
|
|
|
|
(i32.and
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:67:13
|
|
|
|
(get_local $0)
|
|
|
|
;;@ assembly/index.ts:67:30
|
2018-04-20 05:06:05 +02:00
|
|
|
(i32.const 14)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:67:41
|
2018-04-20 05:06:05 +02:00
|
|
|
(i32.const 2)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.store
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_global $assembly/index/s)
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:67:56
|
|
|
|
(get_local $2)
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:67:53
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
2018-04-20 05:06:05 +02:00
|
|
|
(tee_local $3
|
2018-04-19 23:16:03 +02:00
|
|
|
(select
|
2018-04-20 05:06:05 +02:00
|
|
|
(tee_local $3
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.shr_u
|
2018-04-20 18:56:51 +02:00
|
|
|
(tee_local $0
|
|
|
|
;;@ assembly/index.ts:67:59
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $3)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
(i32.const 10)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 05:06:05 +02:00
|
|
|
(tee_local $4
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $3)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.and
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $0)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 16777215)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 05:06:05 +02:00
|
|
|
(i32.store
|
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(get_global $assembly/index/s)
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:69:20
|
|
|
|
(get_local $2)
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:69:17
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const -8053850)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:72:8
|
2018-04-19 17:32:23 +02:00
|
|
|
(if
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:72:12
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.eq
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $0)
|
|
|
|
;;@ assembly/index.ts:72:30
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.store
|
|
|
|
(i32.shl
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_global $assembly/index/s)
|
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:72:40
|
|
|
|
(get_local $2)
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:72:37
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(i32.const -1666349)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:2
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.store
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:13
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:14
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_global $assembly/index/s)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:18
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.mul
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:74:20
|
|
|
|
(get_local $2)
|
|
|
|
;;@ assembly/index.ts:18:22
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_global $assembly/index/w)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:74:17
|
2018-04-19 23:16:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:18:32
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:25:12
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.or
|
|
|
|
(i32.shl
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:24:2
|
|
|
|
(tee_local $0
|
|
|
|
;;@ assembly/index.ts:24:10
|
2018-04-19 23:16:03 +02:00
|
|
|
(select
|
2018-04-20 18:56:51 +02:00
|
|
|
(tee_local $0
|
|
|
|
;;@ assembly/index.ts:24:19
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.shr_u
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:74:23
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $3)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:24:26
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:24:32
|
|
|
|
(i32.const 10)
|
2018-04-19 23:16:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-20 05:06:05 +02:00
|
|
|
(tee_local $4
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:24:41
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
2018-04-20 18:56:51 +02:00
|
|
|
(get_local $0)
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:25:18
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:25:24
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.and
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:25:25
|
2018-04-20 05:06:05 +02:00
|
|
|
(get_local $3)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:25:29
|
2018-04-19 23:16:03 +02:00
|
|
|
(i32.const 16777215)
|
2018-04-19 17:32:23 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:52:27
|
2018-04-19 17:32:23 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:52:29
|
2018-04-19 17:32:23 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:49:25
|
|
|
|
(set_local $2
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.add
|
2018-04-20 18:56:51 +02:00
|
|
|
;;@ assembly/index.ts:49:27
|
|
|
|
(get_local $2)
|
2018-04-19 17:32:23 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|