@danielsimonjr/mathts-wasm 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/mathts.wat CHANGED
@@ -19,21 +19,21 @@
19
19
  (type $17 (func (param f64 f64 f64) (result f64)))
20
20
  (type $18 (func (param i32 f64)))
21
21
  (type $19 (func (param i32)))
22
- (type $20 (func (param i32 i32 i32 i32 i32) (result i32)))
22
+ (type $20 (func))
23
23
  (type $21 (func (param f64 f64 i32) (result f64)))
24
24
  (type $22 (func (param i32 f64 i32)))
25
- (type $23 (func))
26
- (type $24 (func (param i32 f64 f64) (result i32)))
27
- (type $25 (func (param i32 i32 i32) (result f64)))
28
- (type $26 (func (param i32 i32 i32 i32 i32 i32)))
29
- (type $27 (func (param i32 i32 f64) (result i32)))
30
- (type $28 (func (param i64) (result i32)))
31
- (type $29 (func (param f64 f64 f64 f64) (result f64)))
32
- (type $30 (func (param i64 i64) (result i64)))
33
- (type $31 (func (param i32 f64) (result f64)))
34
- (type $32 (func (param i32 f64 f64) (result f64)))
35
- (type $33 (func (param i32 i32 f64 f64 f64 f64) (result i32)))
36
- (type $34 (func (param i32 i32 i32 i32 i32 i32) (result i32)))
25
+ (type $23 (func (param i32 f64 f64) (result i32)))
26
+ (type $24 (func (param i32 i32 i32 i32 i32 i32) (result i32)))
27
+ (type $25 (func (param i32 i32 i32 i32 i32) (result i32)))
28
+ (type $26 (func (param i32 i32 i32) (result f64)))
29
+ (type $27 (func (param i32 i32 i32 i32 i32 i32)))
30
+ (type $28 (func (param i32 i32 f64) (result i32)))
31
+ (type $29 (func (param i64) (result i32)))
32
+ (type $30 (func (param f64 f64 f64 f64) (result f64)))
33
+ (type $31 (func (param i64 i64) (result i64)))
34
+ (type $32 (func (param i32 f64) (result f64)))
35
+ (type $33 (func (param i32 f64 f64) (result f64)))
36
+ (type $34 (func (param i32 i32 f64 f64 f64 f64) (result i32)))
37
37
  (type $35 (func (param i32 i32 i32 i32 f64)))
38
38
  (type $36 (func (param i32 i32 i32 i32) (result f64)))
39
39
  (type $37 (func (param f64 i32 i32 i32 i32 f64 i32)))
@@ -55,6 +55,7 @@
55
55
  (global $src/ops/scalar/LOG2E f64 (f64.const 1.4426950408889634))
56
56
  (global $src/ops/scalar/LOG10E f64 (f64.const 0.4342944819032518))
57
57
  (global $src/ops/scalar/EPSILON f64 (f64.const 2.220446049250313e-16))
58
+ (global $~lib/rt/stub/startOffset (mut i32) (i32.const 0))
58
59
  (global $~lib/rt/stub/offset (mut i32) (i32.const 0))
59
60
  (global $~lib/math/rempio2_y0 (mut f64) (f64.const 0))
60
61
  (global $~lib/math/rempio2_y1 (mut f64) (f64.const 0))
@@ -79,6 +80,7 @@
79
80
  (data $8 (i32.const 1660) "|")
80
81
  (data $8.1 (i32.const 1672) "\02\00\00\00^\00\00\00E\00l\00e\00m\00e\00n\00t\00 \00t\00y\00p\00e\00 \00m\00u\00s\00t\00 \00b\00e\00 \00n\00u\00l\00l\00a\00b\00l\00e\00 \00i\00f\00 \00a\00r\00r\00a\00y\00 \00i\00s\00 \00h\00o\00l\00e\00y")
81
82
  (data $9 (i32.const 1792) "\n\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00 \00\00\00\01\1a\00\00\01\t\00\00\02\1a\00\00\02\t\00\00\02A")
83
+ (export "heap_reset" (func $src/heap/heap_reset))
82
84
  (export "complex" (func $src/types/complex/complex))
83
85
  (export "complexFromPolar" (func $src/types/complex/complexFromPolar))
84
86
  (export "add_f64" (func $src/ops/scalar/add_f64))
@@ -11942,6 +11944,8 @@
11942
11944
  end
11943
11945
  )
11944
11946
  (func $~start
11947
+ i32.const 1836
11948
+ global.set $~lib/rt/stub/startOffset
11945
11949
  i32.const 1836
11946
11950
  global.set $~lib/rt/stub/offset
11947
11951
  )
@@ -12830,12 +12834,12 @@
12830
12834
  local.set $9
12831
12835
  local.get $6
12832
12836
  local.get $4
12833
- block $__inlined_func$src/special/_ellipticPiIncomplete$216 (result f64)
12837
+ block $__inlined_func$src/special/_ellipticPiIncomplete$217 (result f64)
12834
12838
  f64.const 0
12835
12839
  local.get $8
12836
12840
  f64.const 0
12837
12841
  f64.eq
12838
- br_if $__inlined_func$src/special/_ellipticPiIncomplete$216
12842
+ br_if $__inlined_func$src/special/_ellipticPiIncomplete$217
12839
12843
  drop
12840
12844
  local.get $8
12841
12845
  call $~lib/math/NativeMath.sin
@@ -12867,7 +12871,7 @@
12867
12871
  f64.const 0
12868
12872
  f64.le
12869
12873
  i32.or
12870
- br_if $__inlined_func$src/special/_ellipticPiIncomplete$216
12874
+ br_if $__inlined_func$src/special/_ellipticPiIncomplete$217
12871
12875
  drop
12872
12876
  local.get $3
12873
12877
  local.get $8
@@ -12929,7 +12933,7 @@
12929
12933
  if
12930
12934
  local.get $3
12931
12935
  local.get $5
12932
- block $__inlined_func$src/special/_ellipticK$300 (result f64)
12936
+ block $__inlined_func$src/special/_ellipticK$298 (result f64)
12933
12937
  i32.const 0
12934
12938
  local.set $6
12935
12939
  f64.const nan:0x8000000000000
@@ -12939,7 +12943,7 @@
12939
12943
  local.tee $1
12940
12944
  local.get $1
12941
12945
  f64.ne
12942
- br_if $__inlined_func$src/special/_ellipticK$300
12946
+ br_if $__inlined_func$src/special/_ellipticK$298
12943
12947
  drop
12944
12948
  f64.const nan:0x8000000000000
12945
12949
  local.get $1
@@ -12949,19 +12953,19 @@
12949
12953
  f64.const 1
12950
12954
  f64.gt
12951
12955
  i32.or
12952
- br_if $__inlined_func$src/special/_ellipticK$300
12956
+ br_if $__inlined_func$src/special/_ellipticK$298
12953
12957
  drop
12954
12958
  f64.const inf
12955
12959
  local.get $1
12956
12960
  f64.const 1
12957
12961
  f64.eq
12958
- br_if $__inlined_func$src/special/_ellipticK$300
12962
+ br_if $__inlined_func$src/special/_ellipticK$298
12959
12963
  drop
12960
12964
  f64.const 1.5707963267948966
12961
12965
  local.get $1
12962
12966
  f64.const 0
12963
12967
  f64.eq
12964
- br_if $__inlined_func$src/special/_ellipticK$300
12968
+ br_if $__inlined_func$src/special/_ellipticK$298
12965
12969
  drop
12966
12970
  f64.const 1
12967
12971
  local.set $2
@@ -13058,12 +13062,12 @@
13058
13062
  local.set $7
13059
13063
  local.get $5
13060
13064
  local.get $3
13061
- block $__inlined_func$src/special/_ellipticFIncomplete$214 (result f64)
13065
+ block $__inlined_func$src/special/_ellipticFIncomplete$215 (result f64)
13062
13066
  f64.const 0
13063
13067
  local.get $6
13064
13068
  f64.const 0
13065
13069
  f64.eq
13066
- br_if $__inlined_func$src/special/_ellipticFIncomplete$214
13070
+ br_if $__inlined_func$src/special/_ellipticFIncomplete$215
13067
13071
  drop
13068
13072
  local.get $6
13069
13073
  call $~lib/math/NativeMath.sin
@@ -13082,7 +13086,7 @@
13082
13086
  local.tee $7
13083
13087
  f64.const 0
13084
13088
  f64.lt
13085
- br_if $__inlined_func$src/special/_ellipticFIncomplete$214
13089
+ br_if $__inlined_func$src/special/_ellipticFIncomplete$215
13086
13090
  drop
13087
13091
  local.get $2
13088
13092
  local.get $6
@@ -13139,12 +13143,12 @@
13139
13143
  local.set $6
13140
13144
  local.get $5
13141
13145
  local.get $3
13142
- block $__inlined_func$src/special/_ellipticEIncomplete$215 (result f64)
13146
+ block $__inlined_func$src/special/_ellipticEIncomplete$216 (result f64)
13143
13147
  f64.const 0
13144
13148
  local.get $7
13145
13149
  f64.const 0
13146
13150
  f64.eq
13147
- br_if $__inlined_func$src/special/_ellipticEIncomplete$215
13151
+ br_if $__inlined_func$src/special/_ellipticEIncomplete$216
13148
13152
  drop
13149
13153
  local.get $7
13150
13154
  call $~lib/math/NativeMath.sin
@@ -13167,7 +13171,7 @@
13167
13171
  local.tee $7
13168
13172
  f64.const 0
13169
13173
  f64.lt
13170
- br_if $__inlined_func$src/special/_ellipticEIncomplete$215
13174
+ br_if $__inlined_func$src/special/_ellipticEIncomplete$216
13171
13175
  drop
13172
13176
  local.get $2
13173
13177
  local.get $9
@@ -13592,7 +13596,7 @@
13592
13596
  if
13593
13597
  local.get $3
13594
13598
  local.get $1
13595
- block $__inlined_func$src/special/_airyBi$213 (result f64)
13599
+ block $__inlined_func$src/special/_airyBi$214 (result f64)
13596
13600
  local.get $0
13597
13601
  local.get $1
13598
13602
  call $~lib/typedarray/Float64Array#__get
@@ -13603,7 +13607,7 @@
13603
13607
  local.get $2
13604
13608
  i32.const 0
13605
13609
  call $src/special/_airyAsymptotePos
13606
- br $__inlined_func$src/special/_airyBi$213
13610
+ br $__inlined_func$src/special/_airyBi$214
13607
13611
  end
13608
13612
  local.get $2
13609
13613
  f64.const -5
@@ -13612,7 +13616,7 @@
13612
13616
  local.get $2
13613
13617
  i32.const 0
13614
13618
  call $src/special/_airyAsymptoteNeg
13615
- br $__inlined_func$src/special/_airyBi$213
13619
+ br $__inlined_func$src/special/_airyBi$214
13616
13620
  end
13617
13621
  local.get $2
13618
13622
  call $src/special/_airyBiSeries
@@ -13653,7 +13657,7 @@
13653
13657
  if
13654
13658
  local.get $3
13655
13659
  local.get $1
13656
- block $__inlined_func$src/special/_airyAi$212 (result f64)
13660
+ block $__inlined_func$src/special/_airyAi$213 (result f64)
13657
13661
  local.get $0
13658
13662
  local.get $1
13659
13663
  call $~lib/typedarray/Float64Array#__get
@@ -13664,7 +13668,7 @@
13664
13668
  local.get $2
13665
13669
  i32.const 1
13666
13670
  call $src/special/_airyAsymptotePos
13667
- br $__inlined_func$src/special/_airyAi$212
13671
+ br $__inlined_func$src/special/_airyAi$213
13668
13672
  end
13669
13673
  local.get $2
13670
13674
  f64.const -5
@@ -13673,7 +13677,7 @@
13673
13677
  local.get $2
13674
13678
  i32.const 1
13675
13679
  call $src/special/_airyAsymptoteNeg
13676
- br $__inlined_func$src/special/_airyAi$212
13680
+ br $__inlined_func$src/special/_airyAi$213
13677
13681
  end
13678
13682
  local.get $2
13679
13683
  call $src/special/_airyAiSeries
@@ -18482,7 +18486,7 @@
18482
18486
  i32.const 1
18483
18487
  i32.and
18484
18488
  select
18485
- block $__inlined_func$src/ops/polynomial/polyDerivative$65
18489
+ block $__inlined_func$src/ops/polynomial/polyDerivative$66
18486
18490
  local.get $4
18487
18491
  i32.load offset=12
18488
18492
  i32.const 1
@@ -18491,7 +18495,7 @@
18491
18495
  f64.const 0
18492
18496
  call $src/ops/polynomial/single
18493
18497
  local.set $0
18494
- br $__inlined_func$src/ops/polynomial/polyDerivative$65
18498
+ br $__inlined_func$src/ops/polynomial/polyDerivative$66
18495
18499
  end
18496
18500
  local.get $4
18497
18501
  i32.load offset=12
@@ -20952,7 +20956,7 @@
20952
20956
  end
20953
20957
  end
20954
20958
  local.get $1
20955
- block $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27 (result i64)
20959
+ block $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28 (result i64)
20956
20960
  local.get $2
20957
20961
  i64.const 2
20958
20962
  i64.eq
@@ -20961,18 +20965,18 @@
20961
20965
  local.get $4
20962
20966
  i64.const 2
20963
20967
  i64.le_s
20964
- br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27
20968
+ br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28
20965
20969
  drop
20966
20970
  i64.const 2
20967
20971
  local.get $4
20968
20972
  i64.const 4
20969
20973
  i64.eq
20970
- br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27
20974
+ br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28
20971
20975
  drop
20972
20976
  local.get $4
20973
20977
  i64.const 4
20974
20978
  i64.div_s
20975
- br $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27
20979
+ br $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28
20976
20980
  end
20977
20981
  local.get $2
20978
20982
  i64.const 1
@@ -23330,7 +23334,7 @@
23330
23334
  )
23331
23335
  (func $src/ops/complex-ops/complex_reciprocal (param $0 i32) (result i32)
23332
23336
  (local $1 f64)
23333
- block $__inlined_func$src/types/complex/Complex#reciprocal$265 (result i32)
23337
+ block $__inlined_func$src/types/complex/Complex#reciprocal$266 (result i32)
23334
23338
  local.get $0
23335
23339
  f64.load
23336
23340
  local.get $0
@@ -23349,7 +23353,7 @@
23349
23353
  f64.const nan:0x8000000000000
23350
23354
  f64.const nan:0x8000000000000
23351
23355
  call $src/types/complex/Complex#constructor
23352
- br $__inlined_func$src/types/complex/Complex#reciprocal$265
23356
+ br $__inlined_func$src/types/complex/Complex#reciprocal$266
23353
23357
  end
23354
23358
  local.get $0
23355
23359
  f64.load
@@ -23365,7 +23369,7 @@
23365
23369
  )
23366
23370
  (func $src/ops/complex-ops/complex_pow (param $0 i32) (param $1 f64) (result i32)
23367
23371
  (local $2 f64)
23368
- block $__inlined_func$src/types/complex/Complex#powReal$119 (result i32)
23372
+ block $__inlined_func$src/types/complex/Complex#powReal$120 (result i32)
23369
23373
  local.get $1
23370
23374
  f64.const 0
23371
23375
  f64.eq
@@ -23373,7 +23377,7 @@
23373
23377
  f64.const 1
23374
23378
  f64.const 0
23375
23379
  call $src/types/complex/Complex#constructor
23376
- br $__inlined_func$src/types/complex/Complex#powReal$119
23380
+ br $__inlined_func$src/types/complex/Complex#powReal$120
23377
23381
  end
23378
23382
  local.get $0
23379
23383
  call $src/types/complex/Complex#abs
@@ -26982,6 +26986,10 @@
26982
26986
  end
26983
26987
  local.get $3
26984
26988
  )
26989
+ (func $src/heap/heap_reset
26990
+ global.get $~lib/rt/stub/startOffset
26991
+ global.set $~lib/rt/stub/offset
26992
+ )
26985
26993
  (func $src/elementwise/array_tanh_ptr (param $0 i32) (param $1 i32) (param $2 i32)
26986
26994
  (local $3 f64)
26987
26995
  (local $4 i32)
@@ -27130,7 +27138,7 @@
27130
27138
  local.tee $7
27131
27139
  local.get $1
27132
27140
  i32.add
27133
- block $__inlined_func$~lib/math/NativeMath.sinh$260 (result f64)
27141
+ block $__inlined_func$~lib/math/NativeMath.sinh$258 (result f64)
27134
27142
  local.get $0
27135
27143
  local.get $7
27136
27144
  i32.add
@@ -27165,7 +27173,7 @@
27165
27173
  local.get $7
27166
27174
  i32.const 1045430272
27167
27175
  i32.lt_u
27168
- br_if $__inlined_func$~lib/math/NativeMath.sinh$260
27176
+ br_if $__inlined_func$~lib/math/NativeMath.sinh$258
27169
27177
  drop
27170
27178
  local.get $3
27171
27179
  local.get $8
@@ -27180,7 +27188,7 @@
27180
27188
  f64.div
27181
27189
  f64.sub
27182
27190
  f64.mul
27183
- br $__inlined_func$~lib/math/NativeMath.sinh$260
27191
+ br $__inlined_func$~lib/math/NativeMath.sinh$258
27184
27192
  end
27185
27193
  local.get $3
27186
27194
  local.get $8
@@ -27191,7 +27199,7 @@
27191
27199
  f64.div
27192
27200
  f64.add
27193
27201
  f64.mul
27194
- br $__inlined_func$~lib/math/NativeMath.sinh$260
27202
+ br $__inlined_func$~lib/math/NativeMath.sinh$258
27195
27203
  end
27196
27204
  local.get $8
27197
27205
  f64.const -1416.0996898839683
@@ -27695,32 +27703,31 @@
27695
27703
  end
27696
27704
  end
27697
27705
  )
27698
- (func $src/algebra/decomposition/matrix_qr_decompose (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
27699
- (local $5 i32)
27706
+ (func $src/algebra/decomposition/matrix_qr_decompose (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (param $5 i32) (result i32)
27700
27707
  (local $6 i32)
27701
- (local $7 f64)
27702
- (local $8 i32)
27708
+ (local $7 i32)
27709
+ (local $8 f64)
27703
27710
  (local $9 i32)
27704
27711
  (local $10 f64)
27705
27712
  (local $11 f64)
27706
27713
  (local $12 i32)
27707
27714
  loop $for-loop|0
27708
- local.get $5
27715
+ local.get $6
27709
27716
  local.get $1
27710
27717
  local.get $2
27711
27718
  i32.mul
27712
27719
  i32.lt_s
27713
27720
  if
27714
27721
  local.get $4
27715
- local.get $5
27722
+ local.get $6
27716
27723
  local.get $0
27717
- local.get $5
27724
+ local.get $6
27718
27725
  call $~lib/typedarray/Float64Array#__get
27719
27726
  call $~lib/typedarray/Float64Array#__set
27720
- local.get $5
27727
+ local.get $6
27721
27728
  i32.const 1
27722
27729
  i32.add
27723
- local.set $5
27730
+ local.set $6
27724
27731
  br $for-loop|0
27725
27732
  end
27726
27733
  end
@@ -27766,6 +27773,27 @@
27766
27773
  br $for-loop|2
27767
27774
  end
27768
27775
  end
27776
+ local.get $5
27777
+ if (result i32)
27778
+ local.get $1
27779
+ local.get $5
27780
+ i32.load offset=8
27781
+ i32.const 3
27782
+ i32.shr_u
27783
+ i32.le_s
27784
+ else
27785
+ i32.const 0
27786
+ end
27787
+ i32.eqz
27788
+ if
27789
+ i32.const 12
27790
+ i32.const 5
27791
+ call $~lib/rt/stub/__new
27792
+ local.get $1
27793
+ i32.const 3
27794
+ call $~lib/arraybuffer/ArrayBufferView#constructor
27795
+ local.set $5
27796
+ end
27769
27797
  local.get $1
27770
27798
  local.get $2
27771
27799
  local.get $1
@@ -27773,13 +27801,6 @@
27773
27801
  i32.lt_s
27774
27802
  select
27775
27803
  local.set $9
27776
- i32.const 12
27777
- i32.const 5
27778
- call $~lib/rt/stub/__new
27779
- local.get $1
27780
- i32.const 3
27781
- call $~lib/arraybuffer/ArrayBufferView#constructor
27782
- local.set $8
27783
27804
  i32.const 0
27784
27805
  local.set $0
27785
27806
  loop $for-loop|3
@@ -27788,37 +27809,37 @@
27788
27809
  i32.lt_s
27789
27810
  if
27790
27811
  f64.const 0
27791
- local.set $7
27812
+ local.set $8
27792
27813
  local.get $0
27793
- local.set $5
27814
+ local.set $6
27794
27815
  loop $for-loop|4
27795
27816
  local.get $1
27796
- local.get $5
27817
+ local.get $6
27797
27818
  i32.gt_s
27798
27819
  if
27799
- local.get $7
27820
+ local.get $8
27800
27821
  local.get $4
27801
27822
  local.get $2
27802
- local.get $5
27823
+ local.get $6
27803
27824
  i32.mul
27804
27825
  local.get $0
27805
27826
  i32.add
27806
27827
  call $~lib/typedarray/Float64Array#__get
27807
- local.tee $7
27808
- local.get $7
27828
+ local.tee $8
27829
+ local.get $8
27809
27830
  f64.mul
27810
27831
  f64.add
27811
- local.set $7
27812
- local.get $5
27832
+ local.set $8
27833
+ local.get $6
27813
27834
  i32.const 1
27814
27835
  i32.add
27815
- local.set $5
27836
+ local.set $6
27816
27837
  br $for-loop|4
27817
27838
  end
27818
27839
  end
27819
- local.get $7
27840
+ local.get $8
27820
27841
  f64.sqrt
27821
- local.tee $7
27842
+ local.tee $8
27822
27843
  f64.const 1e-14
27823
27844
  f64.lt
27824
27845
  i32.eqz
@@ -27837,30 +27858,30 @@
27837
27858
  f64.const 0
27838
27859
  f64.ge
27839
27860
  select
27840
- local.get $7
27861
+ local.get $8
27841
27862
  f64.mul
27842
27863
  f64.add
27843
27864
  local.set $11
27844
- local.get $8
27865
+ local.get $5
27845
27866
  i32.const 0
27846
27867
  f64.const 1
27847
27868
  call $~lib/typedarray/Float64Array#__set
27848
27869
  f64.const 1
27849
- local.set $7
27870
+ local.set $8
27850
27871
  i32.const 1
27851
- local.set $5
27872
+ local.set $6
27852
27873
  loop $for-loop|5
27853
- local.get $5
27874
+ local.get $6
27854
27875
  local.get $1
27855
27876
  local.get $0
27856
27877
  i32.sub
27857
27878
  i32.lt_s
27858
27879
  if
27859
- local.get $8
27860
27880
  local.get $5
27881
+ local.get $6
27861
27882
  local.get $4
27862
27883
  local.get $0
27863
- local.get $5
27884
+ local.get $6
27864
27885
  i32.add
27865
27886
  local.get $2
27866
27887
  i32.mul
@@ -27871,72 +27892,72 @@
27871
27892
  f64.div
27872
27893
  local.tee $10
27873
27894
  call $~lib/typedarray/Float64Array#__set
27874
- local.get $7
27895
+ local.get $8
27875
27896
  local.get $10
27876
27897
  local.get $10
27877
27898
  f64.mul
27878
27899
  f64.add
27879
- local.set $7
27880
- local.get $5
27900
+ local.set $8
27901
+ local.get $6
27881
27902
  i32.const 1
27882
27903
  i32.add
27883
- local.set $5
27904
+ local.set $6
27884
27905
  br $for-loop|5
27885
27906
  end
27886
27907
  end
27887
27908
  f64.const 2
27888
- local.get $7
27909
+ local.get $8
27889
27910
  f64.div
27890
27911
  local.set $10
27891
27912
  local.get $0
27892
- local.set $5
27913
+ local.set $6
27893
27914
  loop $for-loop|6
27894
27915
  local.get $2
27895
- local.get $5
27916
+ local.get $6
27896
27917
  i32.gt_s
27897
27918
  if
27898
27919
  f64.const 0
27899
- local.set $7
27920
+ local.set $8
27900
27921
  i32.const 0
27901
- local.set $6
27922
+ local.set $7
27902
27923
  loop $for-loop|7
27903
- local.get $6
27924
+ local.get $7
27904
27925
  local.get $1
27905
27926
  local.get $0
27906
27927
  i32.sub
27907
27928
  i32.lt_s
27908
27929
  if
27909
- local.get $7
27910
27930
  local.get $8
27911
- local.get $6
27931
+ local.get $5
27932
+ local.get $7
27912
27933
  call $~lib/typedarray/Float64Array#__get
27913
27934
  local.get $4
27914
27935
  local.get $0
27915
- local.get $6
27936
+ local.get $7
27916
27937
  i32.add
27917
27938
  local.get $2
27918
27939
  i32.mul
27919
- local.get $5
27940
+ local.get $6
27920
27941
  i32.add
27921
27942
  call $~lib/typedarray/Float64Array#__get
27922
27943
  f64.mul
27923
27944
  f64.add
27924
- local.set $7
27925
- local.get $6
27945
+ local.set $8
27946
+ local.get $7
27926
27947
  i32.const 1
27927
27948
  i32.add
27928
- local.set $6
27949
+ local.set $7
27929
27950
  br $for-loop|7
27930
27951
  end
27931
27952
  end
27932
27953
  local.get $10
27933
- local.get $7
27954
+ local.get $8
27934
27955
  f64.mul
27935
- local.set $7
27956
+ local.set $8
27936
27957
  i32.const 0
27937
- local.set $6
27958
+ local.set $7
27938
27959
  loop $for-loop|8
27939
- local.get $6
27960
+ local.get $7
27940
27961
  local.get $1
27941
27962
  local.get $0
27942
27963
  i32.sub
@@ -27944,86 +27965,86 @@
27944
27965
  if
27945
27966
  local.get $4
27946
27967
  local.get $0
27947
- local.get $6
27968
+ local.get $7
27948
27969
  i32.add
27949
27970
  local.get $2
27950
27971
  i32.mul
27951
- local.get $5
27972
+ local.get $6
27952
27973
  i32.add
27953
27974
  local.tee $12
27954
27975
  local.get $4
27955
27976
  local.get $12
27956
27977
  call $~lib/typedarray/Float64Array#__get
27957
- local.get $7
27958
27978
  local.get $8
27959
- local.get $6
27979
+ local.get $5
27980
+ local.get $7
27960
27981
  call $~lib/typedarray/Float64Array#__get
27961
27982
  f64.mul
27962
27983
  f64.sub
27963
27984
  call $~lib/typedarray/Float64Array#__set
27964
- local.get $6
27985
+ local.get $7
27965
27986
  i32.const 1
27966
27987
  i32.add
27967
- local.set $6
27988
+ local.set $7
27968
27989
  br $for-loop|8
27969
27990
  end
27970
27991
  end
27971
- local.get $5
27992
+ local.get $6
27972
27993
  i32.const 1
27973
27994
  i32.add
27974
- local.set $5
27995
+ local.set $6
27975
27996
  br $for-loop|6
27976
27997
  end
27977
27998
  end
27978
27999
  i32.const 0
27979
- local.set $5
28000
+ local.set $6
27980
28001
  loop $for-loop|9
27981
28002
  local.get $1
27982
- local.get $5
28003
+ local.get $6
27983
28004
  i32.gt_s
27984
28005
  if
27985
28006
  f64.const 0
27986
- local.set $7
28007
+ local.set $8
27987
28008
  i32.const 0
27988
- local.set $6
28009
+ local.set $7
27989
28010
  loop $for-loop|10
27990
- local.get $6
28011
+ local.get $7
27991
28012
  local.get $1
27992
28013
  local.get $0
27993
28014
  i32.sub
27994
28015
  i32.lt_s
27995
28016
  if
27996
- local.get $7
27997
28017
  local.get $8
27998
- local.get $6
28018
+ local.get $5
28019
+ local.get $7
27999
28020
  call $~lib/typedarray/Float64Array#__get
28000
28021
  local.get $3
28001
28022
  local.get $0
28002
- local.get $6
28023
+ local.get $7
28003
28024
  i32.add
28004
28025
  local.get $1
28005
28026
  i32.mul
28006
- local.get $5
28027
+ local.get $6
28007
28028
  i32.add
28008
28029
  call $~lib/typedarray/Float64Array#__get
28009
28030
  f64.mul
28010
28031
  f64.add
28011
- local.set $7
28012
- local.get $6
28032
+ local.set $8
28033
+ local.get $7
28013
28034
  i32.const 1
28014
28035
  i32.add
28015
- local.set $6
28036
+ local.set $7
28016
28037
  br $for-loop|10
28017
28038
  end
28018
28039
  end
28019
28040
  local.get $10
28020
- local.get $7
28041
+ local.get $8
28021
28042
  f64.mul
28022
- local.set $7
28043
+ local.set $8
28023
28044
  i32.const 0
28024
- local.set $6
28045
+ local.set $7
28025
28046
  loop $for-loop|11
28026
- local.get $6
28047
+ local.get $7
28027
28048
  local.get $1
28028
28049
  local.get $0
28029
28050
  i32.sub
@@ -28031,58 +28052,58 @@
28031
28052
  if
28032
28053
  local.get $3
28033
28054
  local.get $0
28034
- local.get $6
28055
+ local.get $7
28035
28056
  i32.add
28036
28057
  local.get $1
28037
28058
  i32.mul
28038
- local.get $5
28059
+ local.get $6
28039
28060
  i32.add
28040
28061
  local.tee $12
28041
28062
  local.get $3
28042
28063
  local.get $12
28043
28064
  call $~lib/typedarray/Float64Array#__get
28044
- local.get $7
28045
28065
  local.get $8
28046
- local.get $6
28066
+ local.get $5
28067
+ local.get $7
28047
28068
  call $~lib/typedarray/Float64Array#__get
28048
28069
  f64.mul
28049
28070
  f64.sub
28050
28071
  call $~lib/typedarray/Float64Array#__set
28051
- local.get $6
28072
+ local.get $7
28052
28073
  i32.const 1
28053
28074
  i32.add
28054
- local.set $6
28075
+ local.set $7
28055
28076
  br $for-loop|11
28056
28077
  end
28057
28078
  end
28058
- local.get $5
28079
+ local.get $6
28059
28080
  i32.const 1
28060
28081
  i32.add
28061
- local.set $5
28082
+ local.set $6
28062
28083
  br $for-loop|9
28063
28084
  end
28064
28085
  end
28065
28086
  local.get $0
28066
28087
  i32.const 1
28067
28088
  i32.add
28068
- local.set $5
28089
+ local.set $6
28069
28090
  loop $for-loop|12
28070
28091
  local.get $1
28071
- local.get $5
28092
+ local.get $6
28072
28093
  i32.gt_s
28073
28094
  if
28074
28095
  local.get $4
28075
28096
  local.get $2
28076
- local.get $5
28097
+ local.get $6
28077
28098
  i32.mul
28078
28099
  local.get $0
28079
28100
  i32.add
28080
28101
  f64.const 0
28081
28102
  call $~lib/typedarray/Float64Array#__set
28082
- local.get $5
28103
+ local.get $6
28083
28104
  i32.const 1
28084
28105
  i32.add
28085
- local.set $5
28106
+ local.set $6
28086
28107
  br $for-loop|12
28087
28108
  end
28088
28109
  end
@@ -28102,16 +28123,6 @@
28102
28123
  (local $7 f64)
28103
28124
  (local $8 i32)
28104
28125
  (local $9 i32)
28105
- (local $10 i32)
28106
- i32.const 12
28107
- i32.const 5
28108
- call $~lib/rt/stub/__new
28109
- local.get $1
28110
- local.get $1
28111
- i32.mul
28112
- i32.const 3
28113
- call $~lib/arraybuffer/ArrayBufferView#constructor
28114
- local.set $9
28115
28126
  loop $for-loop|0
28116
28127
  local.get $5
28117
28128
  local.get $1
@@ -28119,7 +28130,7 @@
28119
28130
  i32.mul
28120
28131
  i32.lt_s
28121
28132
  if
28122
- local.get $9
28133
+ local.get $3
28123
28134
  local.get $5
28124
28135
  local.get $0
28125
28136
  local.get $5
@@ -28159,7 +28170,7 @@
28159
28170
  i32.sub
28160
28171
  i32.lt_s
28161
28172
  if
28162
- local.get $9
28173
+ local.get $3
28163
28174
  local.get $1
28164
28175
  local.get $5
28165
28176
  i32.mul
@@ -28169,8 +28180,7 @@
28169
28180
  f64.abs
28170
28181
  local.set $6
28171
28182
  local.get $5
28172
- local.set $0
28173
- local.get $5
28183
+ local.tee $0
28174
28184
  i32.const 1
28175
28185
  i32.add
28176
28186
  local.set $8
@@ -28179,7 +28189,7 @@
28179
28189
  local.get $8
28180
28190
  i32.gt_s
28181
28191
  if
28182
- local.get $9
28192
+ local.get $3
28183
28193
  local.get $1
28184
28194
  local.get $8
28185
28195
  i32.mul
@@ -28221,28 +28231,28 @@
28221
28231
  local.get $8
28222
28232
  i32.gt_s
28223
28233
  if
28224
- local.get $9
28234
+ local.get $3
28225
28235
  local.get $1
28226
28236
  local.get $5
28227
28237
  i32.mul
28228
28238
  local.get $8
28229
28239
  i32.add
28230
- local.tee $10
28240
+ local.tee $9
28231
28241
  call $~lib/typedarray/Float64Array#__get
28232
28242
  local.set $6
28243
+ local.get $3
28233
28244
  local.get $9
28234
- local.get $10
28235
- local.get $9
28245
+ local.get $3
28236
28246
  local.get $0
28237
28247
  local.get $1
28238
28248
  i32.mul
28239
28249
  local.get $8
28240
28250
  i32.add
28241
- local.tee $10
28251
+ local.tee $9
28242
28252
  call $~lib/typedarray/Float64Array#__get
28243
28253
  call $~lib/typedarray/Float64Array#__set
28254
+ local.get $3
28244
28255
  local.get $9
28245
- local.get $10
28246
28256
  local.get $6
28247
28257
  call $~lib/typedarray/Float64Array#__set
28248
28258
  local.get $8
@@ -28267,7 +28277,7 @@
28267
28277
  local.get $8
28268
28278
  call $~lib/typedarray/Int32Array#__set
28269
28279
  end
28270
- local.get $9
28280
+ local.get $3
28271
28281
  local.get $1
28272
28282
  local.get $5
28273
28283
  i32.mul
@@ -28284,7 +28294,7 @@
28284
28294
  local.get $1
28285
28295
  i32.lt_s
28286
28296
  if
28287
- local.get $9
28297
+ local.get $3
28288
28298
  local.get $0
28289
28299
  local.get $1
28290
28300
  i32.mul
@@ -28295,7 +28305,7 @@
28295
28305
  local.get $6
28296
28306
  f64.div
28297
28307
  local.set $7
28298
- local.get $9
28308
+ local.get $3
28299
28309
  local.get $8
28300
28310
  local.get $7
28301
28311
  call $~lib/typedarray/Float64Array#__set
@@ -28308,18 +28318,18 @@
28308
28318
  local.get $8
28309
28319
  i32.gt_s
28310
28320
  if
28311
- local.get $9
28321
+ local.get $3
28312
28322
  local.get $0
28313
28323
  local.get $1
28314
28324
  i32.mul
28315
28325
  local.get $8
28316
28326
  i32.add
28317
- local.tee $10
28327
+ local.tee $9
28328
+ local.get $3
28318
28329
  local.get $9
28319
- local.get $10
28320
28330
  call $~lib/typedarray/Float64Array#__get
28321
28331
  local.get $7
28322
- local.get $9
28332
+ local.get $3
28323
28333
  local.get $1
28324
28334
  local.get $5
28325
28335
  i32.mul
@@ -28350,7 +28360,7 @@
28350
28360
  br $for-loop|2
28351
28361
  end
28352
28362
  end
28353
- local.get $9
28363
+ local.get $3
28354
28364
  local.get $1
28355
28365
  i32.const 1
28356
28366
  i32.sub
@@ -28392,7 +28402,7 @@
28392
28402
  local.get $4
28393
28403
  i32.add
28394
28404
  local.tee $5
28395
- local.get $9
28405
+ local.get $3
28396
28406
  local.get $5
28397
28407
  call $~lib/typedarray/Float64Array#__get
28398
28408
  call $~lib/typedarray/Float64Array#__set
@@ -28411,7 +28421,6 @@
28411
28421
  i32.mul
28412
28422
  local.get $4
28413
28423
  i32.add
28414
- local.tee $5
28415
28424
  f64.const 1
28416
28425
  call $~lib/typedarray/Float64Array#__set
28417
28426
  else
@@ -28421,16 +28430,9 @@
28421
28430
  i32.mul
28422
28431
  local.get $4
28423
28432
  i32.add
28424
- local.tee $5
28425
28433
  f64.const 0
28426
28434
  call $~lib/typedarray/Float64Array#__set
28427
28435
  end
28428
- local.get $3
28429
- local.get $5
28430
- local.get $9
28431
- local.get $5
28432
- call $~lib/typedarray/Float64Array#__get
28433
- call $~lib/typedarray/Float64Array#__set
28434
28436
  end
28435
28437
  local.get $4
28436
28438
  i32.const 1
@@ -28458,32 +28460,51 @@
28458
28460
  (local $10 i32)
28459
28461
  (local $11 i32)
28460
28462
  loop $for-loop|0
28461
- local.get $4
28463
+ local.get $7
28462
28464
  local.get $1
28463
28465
  local.get $1
28464
28466
  i32.mul
28465
28467
  i32.lt_s
28466
28468
  if
28467
28469
  local.get $3
28468
- local.get $4
28470
+ local.get $7
28469
28471
  local.get $0
28470
- local.get $4
28472
+ local.get $7
28471
28473
  call $~lib/typedarray/Float64Array#__get
28472
28474
  call $~lib/typedarray/Float64Array#__set
28473
- local.get $4
28475
+ local.get $7
28474
28476
  i32.const 1
28475
28477
  i32.add
28476
- local.set $4
28478
+ local.set $7
28477
28479
  br $for-loop|0
28478
28480
  end
28479
28481
  end
28480
- i32.const 12
28481
- i32.const 6
28482
- call $~lib/rt/stub/__new
28483
28482
  local.get $1
28484
- i32.const 2
28485
- call $~lib/arraybuffer/ArrayBufferView#constructor
28483
+ local.get $1
28484
+ i32.mul
28485
+ local.get $1
28486
+ i32.add
28487
+ local.get $3
28488
+ i32.load offset=8
28489
+ i32.const 3
28490
+ i32.shr_u
28491
+ i32.le_s
28492
+ local.tee $10
28493
+ if (result i32)
28494
+ i32.const 0
28495
+ else
28496
+ i32.const 12
28497
+ i32.const 6
28498
+ call $~lib/rt/stub/__new
28499
+ local.get $1
28500
+ i32.const 2
28501
+ call $~lib/arraybuffer/ArrayBufferView#constructor
28502
+ end
28486
28503
  local.set $8
28504
+ local.get $1
28505
+ local.get $1
28506
+ i32.mul
28507
+ local.set $9
28487
28508
  i32.const 0
28488
28509
  local.set $0
28489
28510
  loop $for-loop|1
@@ -28491,10 +28512,21 @@
28491
28512
  local.get $1
28492
28513
  i32.lt_s
28493
28514
  if
28494
- local.get $8
28495
- local.get $0
28496
- local.get $0
28497
- call $~lib/typedarray/Int32Array#__set
28515
+ local.get $10
28516
+ if
28517
+ local.get $3
28518
+ local.get $0
28519
+ local.get $9
28520
+ i32.add
28521
+ local.get $0
28522
+ f64.convert_i32_s
28523
+ call $~lib/typedarray/Float64Array#__set
28524
+ else
28525
+ local.get $8
28526
+ local.get $0
28527
+ local.get $0
28528
+ call $~lib/typedarray/Int32Array#__set
28529
+ end
28498
28530
  local.get $0
28499
28531
  i32.const 1
28500
28532
  i32.add
@@ -28502,8 +28534,6 @@
28502
28534
  br $for-loop|1
28503
28535
  end
28504
28536
  end
28505
- i32.const 0
28506
- local.set $4
28507
28537
  block $folding-inner0
28508
28538
  loop $for-loop|2
28509
28539
  local.get $4
@@ -28576,22 +28606,22 @@
28576
28606
  i32.mul
28577
28607
  local.get $7
28578
28608
  i32.add
28579
- local.tee $9
28609
+ local.tee $11
28580
28610
  call $~lib/typedarray/Float64Array#__get
28581
28611
  local.set $5
28582
28612
  local.get $3
28583
- local.get $9
28613
+ local.get $11
28584
28614
  local.get $3
28585
28615
  local.get $0
28586
28616
  local.get $1
28587
28617
  i32.mul
28588
28618
  local.get $7
28589
28619
  i32.add
28590
- local.tee $9
28620
+ local.tee $11
28591
28621
  call $~lib/typedarray/Float64Array#__get
28592
28622
  call $~lib/typedarray/Float64Array#__set
28593
28623
  local.get $3
28594
- local.get $9
28624
+ local.get $11
28595
28625
  local.get $5
28596
28626
  call $~lib/typedarray/Float64Array#__set
28597
28627
  local.get $7
@@ -28601,20 +28631,44 @@
28601
28631
  br $for-loop|5
28602
28632
  end
28603
28633
  end
28604
- local.get $8
28605
- local.get $4
28606
- call $~lib/typedarray/Int32Array#__get
28607
- local.set $7
28608
- local.get $8
28609
- local.get $4
28610
- local.get $8
28611
- local.get $0
28612
- call $~lib/typedarray/Int32Array#__get
28613
- call $~lib/typedarray/Int32Array#__set
28614
- local.get $8
28615
- local.get $0
28616
- local.get $7
28617
- call $~lib/typedarray/Int32Array#__set
28634
+ local.get $10
28635
+ if
28636
+ local.get $3
28637
+ local.get $4
28638
+ local.get $9
28639
+ i32.add
28640
+ local.tee $7
28641
+ call $~lib/typedarray/Float64Array#__get
28642
+ local.set $5
28643
+ local.get $3
28644
+ local.get $7
28645
+ local.get $3
28646
+ local.get $0
28647
+ local.get $9
28648
+ i32.add
28649
+ local.tee $0
28650
+ call $~lib/typedarray/Float64Array#__get
28651
+ call $~lib/typedarray/Float64Array#__set
28652
+ local.get $3
28653
+ local.get $0
28654
+ local.get $5
28655
+ call $~lib/typedarray/Float64Array#__set
28656
+ else
28657
+ local.get $8
28658
+ local.get $4
28659
+ call $~lib/typedarray/Int32Array#__get
28660
+ local.set $7
28661
+ local.get $8
28662
+ local.get $4
28663
+ local.get $8
28664
+ local.get $0
28665
+ call $~lib/typedarray/Int32Array#__get
28666
+ call $~lib/typedarray/Int32Array#__set
28667
+ local.get $8
28668
+ local.get $0
28669
+ local.get $7
28670
+ call $~lib/typedarray/Int32Array#__set
28671
+ end
28618
28672
  end
28619
28673
  local.get $3
28620
28674
  local.get $1
@@ -28627,68 +28681,68 @@
28627
28681
  local.get $4
28628
28682
  i32.const 1
28629
28683
  i32.add
28630
- local.set $0
28684
+ local.set $7
28631
28685
  loop $for-loop|6
28632
- local.get $0
28633
28686
  local.get $1
28634
- i32.lt_s
28687
+ local.get $7
28688
+ i32.gt_s
28635
28689
  if
28636
28690
  local.get $3
28637
- local.get $0
28638
28691
  local.get $1
28692
+ local.get $7
28639
28693
  i32.mul
28640
28694
  local.get $4
28641
28695
  i32.add
28642
- local.tee $7
28696
+ local.tee $0
28643
28697
  call $~lib/typedarray/Float64Array#__get
28644
28698
  local.get $5
28645
28699
  f64.div
28646
28700
  local.set $6
28647
28701
  local.get $3
28648
- local.get $7
28702
+ local.get $0
28649
28703
  local.get $6
28650
28704
  call $~lib/typedarray/Float64Array#__set
28651
28705
  local.get $4
28652
28706
  i32.const 1
28653
28707
  i32.add
28654
- local.set $7
28708
+ local.set $0
28655
28709
  loop $for-loop|7
28710
+ local.get $0
28656
28711
  local.get $1
28657
- local.get $7
28658
- i32.gt_s
28712
+ i32.lt_s
28659
28713
  if
28660
28714
  local.get $3
28661
- local.get $0
28662
28715
  local.get $1
28663
- i32.mul
28664
28716
  local.get $7
28717
+ i32.mul
28718
+ local.get $0
28665
28719
  i32.add
28666
- local.tee $9
28720
+ local.tee $11
28667
28721
  local.get $3
28668
- local.get $9
28722
+ local.get $11
28669
28723
  call $~lib/typedarray/Float64Array#__get
28670
28724
  local.get $6
28671
28725
  local.get $3
28672
28726
  local.get $1
28673
28727
  local.get $4
28674
28728
  i32.mul
28675
- local.get $7
28729
+ local.get $0
28676
28730
  i32.add
28677
28731
  call $~lib/typedarray/Float64Array#__get
28678
28732
  f64.mul
28679
28733
  f64.sub
28680
28734
  call $~lib/typedarray/Float64Array#__set
28681
- local.get $7
28735
+ local.get $0
28682
28736
  i32.const 1
28683
28737
  i32.add
28684
- local.set $7
28738
+ local.set $0
28685
28739
  br $for-loop|7
28686
28740
  end
28687
28741
  end
28688
- local.get $0
28742
+ local.get $7
28689
28743
  i32.const 1
28690
28744
  i32.add
28691
- local.set $0
28745
+ local.set $7
28692
28746
  br $for-loop|6
28693
28747
  end
28694
28748
  end
@@ -28713,195 +28767,166 @@
28713
28767
  f64.const 1e-14
28714
28768
  f64.lt
28715
28769
  br_if $folding-inner0
28716
- i32.const 12
28717
- i32.const 5
28718
- call $~lib/rt/stub/__new
28719
- local.get $1
28720
- i32.const 3
28721
- call $~lib/arraybuffer/ArrayBufferView#constructor
28722
- local.set $11
28723
- i32.const 12
28724
- i32.const 5
28725
- call $~lib/rt/stub/__new
28726
- local.get $1
28727
- i32.const 3
28728
- call $~lib/arraybuffer/ArrayBufferView#constructor
28729
- local.set $9
28730
28770
  i32.const 0
28731
- local.set $7
28771
+ local.set $4
28732
28772
  loop $for-loop|9
28733
28773
  local.get $1
28734
- local.get $7
28774
+ local.get $4
28735
28775
  i32.gt_s
28736
28776
  if
28737
28777
  i32.const 0
28738
- local.set $0
28778
+ local.set $7
28739
28779
  loop $for-loop|10
28740
- local.get $0
28741
28780
  local.get $1
28742
- i32.lt_s
28781
+ local.get $7
28782
+ i32.gt_s
28743
28783
  if
28744
- local.get $11
28745
- local.get $0
28746
28784
  f64.const 1
28747
28785
  f64.const 0
28748
- local.get $0
28749
- local.get $7
28786
+ local.get $10
28787
+ if (result i32)
28788
+ local.get $3
28789
+ local.get $7
28790
+ local.get $9
28791
+ i32.add
28792
+ call $~lib/typedarray/Float64Array#__get
28793
+ i32.trunc_sat_f64_s
28794
+ else
28795
+ local.get $8
28796
+ local.get $7
28797
+ call $~lib/typedarray/Int32Array#__get
28798
+ end
28799
+ local.get $4
28750
28800
  i32.eq
28751
28801
  select
28752
- call $~lib/typedarray/Float64Array#__set
28753
- local.get $0
28754
- i32.const 1
28755
- i32.add
28756
- local.set $0
28757
- br $for-loop|10
28758
- end
28759
- end
28760
- i32.const 0
28761
- local.set $0
28762
- loop $for-loop|11
28763
- local.get $0
28764
- local.get $1
28765
- i32.lt_s
28766
- if
28767
- local.get $11
28768
- local.get $8
28769
- local.get $0
28770
- call $~lib/typedarray/Int32Array#__get
28771
- call $~lib/typedarray/Float64Array#__get
28772
28802
  local.set $5
28773
28803
  i32.const 0
28774
- local.set $4
28775
- loop $for-loop|12
28804
+ local.set $0
28805
+ loop $for-loop|11
28776
28806
  local.get $0
28777
- local.get $4
28778
- i32.gt_s
28807
+ local.get $7
28808
+ i32.lt_s
28779
28809
  if
28780
28810
  local.get $5
28781
28811
  local.get $3
28782
- local.get $0
28783
28812
  local.get $1
28813
+ local.get $7
28784
28814
  i32.mul
28785
- local.get $4
28815
+ local.get $0
28786
28816
  i32.add
28787
28817
  call $~lib/typedarray/Float64Array#__get
28788
- local.get $9
28818
+ local.get $2
28819
+ local.get $0
28820
+ local.get $1
28821
+ i32.mul
28789
28822
  local.get $4
28823
+ i32.add
28790
28824
  call $~lib/typedarray/Float64Array#__get
28791
28825
  f64.mul
28792
28826
  f64.sub
28793
28827
  local.set $5
28794
- local.get $4
28828
+ local.get $0
28795
28829
  i32.const 1
28796
28830
  i32.add
28797
- local.set $4
28798
- br $for-loop|12
28831
+ local.set $0
28832
+ br $for-loop|11
28799
28833
  end
28800
28834
  end
28801
- local.get $9
28802
- local.get $0
28835
+ local.get $2
28836
+ local.get $1
28837
+ local.get $7
28838
+ i32.mul
28839
+ local.get $4
28840
+ i32.add
28803
28841
  local.get $5
28804
28842
  call $~lib/typedarray/Float64Array#__set
28805
- local.get $0
28843
+ local.get $7
28806
28844
  i32.const 1
28807
28845
  i32.add
28808
- local.set $0
28809
- br $for-loop|11
28846
+ local.set $7
28847
+ br $for-loop|10
28810
28848
  end
28811
28849
  end
28812
28850
  i32.const 0
28813
28851
  local.set $0
28814
- loop $for-loop|13
28852
+ loop $for-loop|12
28815
28853
  local.get $0
28816
28854
  local.get $1
28817
28855
  i32.lt_s
28818
28856
  if
28819
- local.get $9
28857
+ local.get $2
28820
28858
  local.get $1
28821
28859
  i32.const 1
28822
28860
  i32.sub
28823
28861
  local.get $0
28824
28862
  i32.sub
28825
- local.tee $10
28863
+ local.tee $11
28864
+ local.get $1
28865
+ i32.mul
28866
+ local.get $4
28867
+ i32.add
28826
28868
  call $~lib/typedarray/Float64Array#__get
28827
28869
  local.set $5
28828
- local.get $10
28870
+ local.get $11
28829
28871
  i32.const 1
28830
28872
  i32.add
28831
- local.set $4
28832
- loop $for-loop|14
28873
+ local.set $7
28874
+ loop $for-loop|13
28833
28875
  local.get $1
28834
- local.get $4
28876
+ local.get $7
28835
28877
  i32.gt_s
28836
28878
  if
28837
28879
  local.get $5
28838
28880
  local.get $3
28839
28881
  local.get $1
28840
- local.get $10
28882
+ local.get $11
28841
28883
  i32.mul
28842
- local.get $4
28884
+ local.get $7
28843
28885
  i32.add
28844
28886
  call $~lib/typedarray/Float64Array#__get
28845
- local.get $9
28887
+ local.get $2
28888
+ local.get $1
28889
+ local.get $7
28890
+ i32.mul
28846
28891
  local.get $4
28892
+ i32.add
28847
28893
  call $~lib/typedarray/Float64Array#__get
28848
28894
  f64.mul
28849
28895
  f64.sub
28850
28896
  local.set $5
28851
- local.get $4
28897
+ local.get $7
28852
28898
  i32.const 1
28853
28899
  i32.add
28854
- local.set $4
28855
- br $for-loop|14
28900
+ local.set $7
28901
+ br $for-loop|13
28856
28902
  end
28857
28903
  end
28858
- local.get $9
28859
- local.get $10
28860
- local.get $5
28861
- local.get $3
28862
- local.get $1
28863
- local.get $10
28864
- i32.mul
28865
- local.get $10
28866
- i32.add
28867
- call $~lib/typedarray/Float64Array#__get
28868
- f64.div
28869
- call $~lib/typedarray/Float64Array#__set
28870
- local.get $0
28871
- i32.const 1
28872
- i32.add
28873
- local.set $0
28874
- br $for-loop|13
28875
- end
28876
- end
28877
- i32.const 0
28878
- local.set $0
28879
- loop $for-loop|15
28880
- local.get $0
28881
- local.get $1
28882
- i32.lt_s
28883
- if
28884
28904
  local.get $2
28885
- local.get $0
28886
28905
  local.get $1
28906
+ local.get $11
28887
28907
  i32.mul
28908
+ local.tee $7
28909
+ local.get $4
28910
+ i32.add
28911
+ local.get $5
28912
+ local.get $3
28888
28913
  local.get $7
28914
+ local.get $11
28889
28915
  i32.add
28890
- local.get $9
28891
- local.get $0
28892
28916
  call $~lib/typedarray/Float64Array#__get
28917
+ f64.div
28893
28918
  call $~lib/typedarray/Float64Array#__set
28894
28919
  local.get $0
28895
28920
  i32.const 1
28896
28921
  i32.add
28897
28922
  local.set $0
28898
- br $for-loop|15
28923
+ br $for-loop|12
28899
28924
  end
28900
28925
  end
28901
- local.get $7
28926
+ local.get $4
28902
28927
  i32.const 1
28903
28928
  i32.add
28904
- local.set $7
28929
+ local.set $4
28905
28930
  br $for-loop|9
28906
28931
  end
28907
28932
  end
@@ -28957,34 +28982,9 @@
28957
28982
  br $for-loop|0
28958
28983
  end
28959
28984
  end
28960
- i32.const 12
28961
- i32.const 6
28962
- call $~lib/rt/stub/__new
28963
- local.get $1
28964
- i32.const 2
28965
- call $~lib/arraybuffer/ArrayBufferView#constructor
28966
- local.set $4
28967
- i32.const 0
28968
- local.set $0
28969
- loop $for-loop|1
28970
- local.get $0
28971
- local.get $1
28972
- i32.lt_s
28973
- if
28974
- local.get $4
28975
- local.get $0
28976
- local.get $0
28977
- call $~lib/typedarray/Int32Array#__set
28978
- local.get $0
28979
- i32.const 1
28980
- i32.add
28981
- local.set $0
28982
- br $for-loop|1
28983
- end
28984
- end
28985
28985
  i32.const 0
28986
28986
  local.set $4
28987
- loop $for-loop|2
28987
+ loop $for-loop|1
28988
28988
  local.get $4
28989
28989
  local.get $1
28990
28990
  i32.const 1
@@ -29006,7 +29006,7 @@
29006
29006
  i32.const 1
29007
29007
  i32.add
29008
29008
  local.set $7
29009
- loop $for-loop|3
29009
+ loop $for-loop|2
29010
29010
  local.get $1
29011
29011
  local.get $7
29012
29012
  i32.gt_s
@@ -29032,7 +29032,7 @@
29032
29032
  i32.const 1
29033
29033
  i32.add
29034
29034
  local.set $7
29035
- br $for-loop|3
29035
+ br $for-loop|2
29036
29036
  end
29037
29037
  end
29038
29038
  local.get $5
@@ -29048,7 +29048,7 @@
29048
29048
  if
29049
29049
  i32.const 0
29050
29050
  local.set $7
29051
- loop $for-loop|4
29051
+ loop $for-loop|3
29052
29052
  local.get $1
29053
29053
  local.get $7
29054
29054
  i32.gt_s
@@ -29081,7 +29081,7 @@
29081
29081
  i32.const 1
29082
29082
  i32.add
29083
29083
  local.set $7
29084
- br $for-loop|4
29084
+ br $for-loop|3
29085
29085
  end
29086
29086
  end
29087
29087
  local.get $3
@@ -29101,7 +29101,7 @@
29101
29101
  i32.const 1
29102
29102
  i32.add
29103
29103
  local.set $0
29104
- loop $for-loop|5
29104
+ loop $for-loop|4
29105
29105
  local.get $0
29106
29106
  local.get $1
29107
29107
  i32.lt_s
@@ -29125,7 +29125,7 @@
29125
29125
  i32.const 1
29126
29126
  i32.add
29127
29127
  local.set $7
29128
- loop $for-loop|6
29128
+ loop $for-loop|5
29129
29129
  local.get $1
29130
29130
  local.get $7
29131
29131
  i32.gt_s
@@ -29155,21 +29155,21 @@
29155
29155
  i32.const 1
29156
29156
  i32.add
29157
29157
  local.set $7
29158
- br $for-loop|6
29158
+ br $for-loop|5
29159
29159
  end
29160
29160
  end
29161
29161
  local.get $0
29162
29162
  i32.const 1
29163
29163
  i32.add
29164
29164
  local.set $0
29165
- br $for-loop|5
29165
+ br $for-loop|4
29166
29166
  end
29167
29167
  end
29168
29168
  local.get $4
29169
29169
  i32.const 1
29170
29170
  i32.add
29171
29171
  local.set $4
29172
- br $for-loop|2
29172
+ br $for-loop|1
29173
29173
  end
29174
29174
  end
29175
29175
  f64.const -1
@@ -29181,7 +29181,7 @@
29181
29181
  local.set $5
29182
29182
  i32.const 0
29183
29183
  local.set $0
29184
- loop $for-loop|7
29184
+ loop $for-loop|6
29185
29185
  local.get $0
29186
29186
  local.get $1
29187
29187
  i32.lt_s
@@ -29200,7 +29200,7 @@
29200
29200
  i32.const 1
29201
29201
  i32.add
29202
29202
  local.set $0
29203
- br $for-loop|7
29203
+ br $for-loop|6
29204
29204
  end
29205
29205
  end
29206
29206
  local.get $5