@dhis2/expression-parser 1.1.0-beta.4 → 1.1.0-beta.6
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/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +27 -27
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs +27 -27
- package/KotlinBigInteger-bignum-js-ir.js +143 -143
- package/KotlinBigInteger-bignum-js-ir.mjs +143 -143
- package/expression-parser.d.ts +102 -118
- package/expression-parser.js +2586 -2456
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +2586 -2456
- package/expression-parser.mjs.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +665 -417
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.mjs +666 -418
- package/kotlin-kotlin-stdlib-js-ir.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +3 -3
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.mjs +3 -3
- package/package.json +1 -2
|
@@ -3,70 +3,70 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log10 = Math.log10;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var VOID = kotlin_kotlin.$_$.
|
|
8
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
9
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.j5;
|
|
7
|
+
var VOID = kotlin_kotlin.$_$.d8;
|
|
8
|
+
var interfaceMeta = kotlin_kotlin.$_$.t4;
|
|
9
|
+
var setMetadataFor = kotlin_kotlin.$_$.k5;
|
|
10
10
|
var Unit_getInstance = kotlin_kotlin.$_$.i2;
|
|
11
|
-
var Enum = kotlin_kotlin.$_$.
|
|
12
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
13
|
-
var Long = kotlin_kotlin.$_$.
|
|
11
|
+
var Enum = kotlin_kotlin.$_$.a7;
|
|
12
|
+
var classMeta = kotlin_kotlin.$_$.l4;
|
|
13
|
+
var Long = kotlin_kotlin.$_$.d7;
|
|
14
14
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
15
|
-
var Pair = kotlin_kotlin.$_$.
|
|
15
|
+
var Pair = kotlin_kotlin.$_$.e7;
|
|
16
16
|
var ArithmeticException_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
17
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
17
|
+
var ensureNotNull = kotlin_kotlin.$_$.q7;
|
|
18
18
|
var DoubleCompanionObject_getInstance = kotlin_kotlin.$_$.b2;
|
|
19
19
|
var FloatCompanionObject_getInstance = kotlin_kotlin.$_$.c2;
|
|
20
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
21
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
20
|
+
var get_lastIndex = kotlin_kotlin.$_$.i6;
|
|
21
|
+
var charSequenceGet = kotlin_kotlin.$_$.j4;
|
|
22
22
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.x;
|
|
23
|
-
var contains = kotlin_kotlin.$_$.
|
|
24
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
25
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
26
|
-
var split = kotlin_kotlin.$_$.
|
|
27
|
-
var toLong = kotlin_kotlin.$_$.
|
|
28
|
-
var listOf = kotlin_kotlin.$_$.
|
|
29
|
-
var toLong_0 = kotlin_kotlin.$_$.
|
|
30
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
31
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
32
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
33
|
-
var toString = kotlin_kotlin.$_$.
|
|
34
|
-
var Triple = kotlin_kotlin.$_$.
|
|
35
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
23
|
+
var contains = kotlin_kotlin.$_$.d6;
|
|
24
|
+
var charSequenceLength = kotlin_kotlin.$_$.k4;
|
|
25
|
+
var charArrayOf = kotlin_kotlin.$_$.i4;
|
|
26
|
+
var split = kotlin_kotlin.$_$.n6;
|
|
27
|
+
var toLong = kotlin_kotlin.$_$.l5;
|
|
28
|
+
var listOf = kotlin_kotlin.$_$.g3;
|
|
29
|
+
var toLong_0 = kotlin_kotlin.$_$.w6;
|
|
30
|
+
var numberToLong = kotlin_kotlin.$_$.g5;
|
|
31
|
+
var objectMeta = kotlin_kotlin.$_$.i5;
|
|
32
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.t7;
|
|
33
|
+
var toString = kotlin_kotlin.$_$.m5;
|
|
34
|
+
var Triple = kotlin_kotlin.$_$.i7;
|
|
35
|
+
var numberToDouble = kotlin_kotlin.$_$.e5;
|
|
36
36
|
var Companion_getInstance = kotlin_kotlin.$_$.h2;
|
|
37
|
-
var until = kotlin_kotlin.$_$.
|
|
38
|
-
var substring = kotlin_kotlin.$_$.
|
|
39
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
40
|
-
var abs = kotlin_kotlin.$_$.
|
|
37
|
+
var until = kotlin_kotlin.$_$.u5;
|
|
38
|
+
var substring = kotlin_kotlin.$_$.q6;
|
|
39
|
+
var THROW_CCE = kotlin_kotlin.$_$.g7;
|
|
40
|
+
var abs = kotlin_kotlin.$_$.o5;
|
|
41
41
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
42
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
43
|
-
var isNumber = kotlin_kotlin.$_$.
|
|
42
|
+
var toDouble = kotlin_kotlin.$_$.t6;
|
|
43
|
+
var isNumber = kotlin_kotlin.$_$.y4;
|
|
44
44
|
var getKClassFromExpression = kotlin_kotlin.$_$.a;
|
|
45
|
-
var isObject = kotlin_kotlin.$_$.
|
|
45
|
+
var isObject = kotlin_kotlin.$_$.z4;
|
|
46
46
|
var IntCompanionObject_getInstance = kotlin_kotlin.$_$.d2;
|
|
47
|
-
var abs_0 = kotlin_kotlin.$_$.
|
|
47
|
+
var abs_0 = kotlin_kotlin.$_$.n5;
|
|
48
48
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
49
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
49
|
+
var Comparable = kotlin_kotlin.$_$.z6;
|
|
50
50
|
var getKClass = kotlin_kotlin.$_$.b;
|
|
51
51
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.e2;
|
|
52
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
52
|
+
var objectCreate = kotlin_kotlin.$_$.h5;
|
|
53
53
|
var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
54
54
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
55
55
|
var _ULongArray___get_size__impl__ju6dtr = kotlin_kotlin.$_$.y1;
|
|
56
|
-
var equals = kotlin_kotlin.$_$.
|
|
57
|
-
var ULongArray = kotlin_kotlin.$_$.
|
|
58
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
59
|
-
var UByte = kotlin_kotlin.$_$.
|
|
60
|
-
var UShort = kotlin_kotlin.$_$.
|
|
61
|
-
var UInt = kotlin_kotlin.$_$.
|
|
62
|
-
var ULong = kotlin_kotlin.$_$.
|
|
56
|
+
var equals = kotlin_kotlin.$_$.o4;
|
|
57
|
+
var ULongArray = kotlin_kotlin.$_$.m7;
|
|
58
|
+
var numberToInt = kotlin_kotlin.$_$.f5;
|
|
59
|
+
var UByte = kotlin_kotlin.$_$.j7;
|
|
60
|
+
var UShort = kotlin_kotlin.$_$.o7;
|
|
61
|
+
var UInt = kotlin_kotlin.$_$.l7;
|
|
62
|
+
var ULong = kotlin_kotlin.$_$.n7;
|
|
63
63
|
var ULongArray__iterator_impl_cq4d2h = kotlin_kotlin.$_$.w1;
|
|
64
64
|
var ULong__hashCode_impl_6hv2lb = kotlin_kotlin.$_$.q1;
|
|
65
65
|
var ULongArray__get_impl_pr71q9 = kotlin_kotlin.$_$.t1;
|
|
66
66
|
var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.p1;
|
|
67
67
|
var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.o1;
|
|
68
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
69
|
-
var UIntArray = kotlin_kotlin.$_$.
|
|
68
|
+
var hashCode = kotlin_kotlin.$_$.s4;
|
|
69
|
+
var UIntArray = kotlin_kotlin.$_$.k7;
|
|
70
70
|
var UIntArray__hashCode_impl_hr7ost = kotlin_kotlin.$_$.i1;
|
|
71
71
|
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.d1;
|
|
72
72
|
var _UIntArray___init__impl__ghjpc6 = kotlin_kotlin.$_$.f1;
|
|
@@ -77,35 +77,35 @@
|
|
|
77
77
|
var UIntArray__get_impl_gp5kza = kotlin_kotlin.$_$.h1;
|
|
78
78
|
var _UIntArray___get_storage__impl__92a0v0 = kotlin_kotlin.$_$.n1;
|
|
79
79
|
var copyOfRange = kotlin_kotlin.$_$.s2;
|
|
80
|
-
var uintCompare = kotlin_kotlin.$_$.
|
|
80
|
+
var uintCompare = kotlin_kotlin.$_$.x7;
|
|
81
81
|
var UIntArray__set_impl_7f2zu2 = kotlin_kotlin.$_$.l1;
|
|
82
|
-
var println = kotlin_kotlin.$_$.
|
|
82
|
+
var println = kotlin_kotlin.$_$.g4;
|
|
83
83
|
var UIntArray__iterator_impl_tkdv7k = kotlin_kotlin.$_$.k1;
|
|
84
|
-
var uintDivide = kotlin_kotlin.$_$.
|
|
85
|
-
var uintRemainder = kotlin_kotlin.$_$.
|
|
86
|
-
var ulongDivide = kotlin_kotlin.$_$.
|
|
87
|
-
var ulongCompare = kotlin_kotlin.$_$.
|
|
84
|
+
var uintDivide = kotlin_kotlin.$_$.y7;
|
|
85
|
+
var uintRemainder = kotlin_kotlin.$_$.z7;
|
|
86
|
+
var ulongDivide = kotlin_kotlin.$_$.b8;
|
|
87
|
+
var ulongCompare = kotlin_kotlin.$_$.a8;
|
|
88
88
|
var ULongArray__hashCode_impl_aze4wa = kotlin_kotlin.$_$.u1;
|
|
89
|
-
var longArrayOf = kotlin_kotlin.$_$.
|
|
89
|
+
var longArrayOf = kotlin_kotlin.$_$.a5;
|
|
90
90
|
var _ULongArray___init__impl__twm1l3 = kotlin_kotlin.$_$.s1;
|
|
91
91
|
var _ULongArray___get_storage__impl__28e64j = kotlin_kotlin.$_$.z1;
|
|
92
92
|
var copyOfRange_0 = kotlin_kotlin.$_$.t2;
|
|
93
93
|
var ULongArray__isEmpty_impl_c3yngu = kotlin_kotlin.$_$.v1;
|
|
94
|
-
var longArray = kotlin_kotlin.$_$.
|
|
94
|
+
var longArray = kotlin_kotlin.$_$.b5;
|
|
95
95
|
var arrayCopy = kotlin_kotlin.$_$.m2;
|
|
96
96
|
var ULongArray__set_impl_z19mvh = kotlin_kotlin.$_$.x1;
|
|
97
|
-
var plus = kotlin_kotlin.$_$.
|
|
98
|
-
var toULongArray = kotlin_kotlin.$_$.
|
|
99
|
-
var slice = kotlin_kotlin.$_$.
|
|
97
|
+
var plus = kotlin_kotlin.$_$.n3;
|
|
98
|
+
var toULongArray = kotlin_kotlin.$_$.d4;
|
|
99
|
+
var slice = kotlin_kotlin.$_$.q3;
|
|
100
100
|
var _ULongArray___init__impl__twm1l3_0 = kotlin_kotlin.$_$.r1;
|
|
101
|
-
var ulongRemainder = kotlin_kotlin.$_$.
|
|
101
|
+
var ulongRemainder = kotlin_kotlin.$_$.c8;
|
|
102
102
|
var copyOf = kotlin_kotlin.$_$.u2;
|
|
103
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
104
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
105
|
-
var reversed = kotlin_kotlin.$_$.
|
|
103
|
+
var toString_0 = kotlin_kotlin.$_$.x6;
|
|
104
|
+
var isCharSequence = kotlin_kotlin.$_$.v4;
|
|
105
|
+
var reversed = kotlin_kotlin.$_$.m6;
|
|
106
106
|
var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.a2;
|
|
107
107
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.c1;
|
|
108
|
-
var Char = kotlin_kotlin.$_$.
|
|
108
|
+
var Char = kotlin_kotlin.$_$.y6;
|
|
109
109
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.y;
|
|
110
110
|
var Char__minus_impl_a2frrh_0 = kotlin_kotlin.$_$.z;
|
|
111
111
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.a1;
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
function roundDiscarded($this, significand, discarded, decimalMode) {
|
|
231
231
|
var toDiscard = significand.sg().o5(decimalMode.dg_1);
|
|
232
232
|
var tmp;
|
|
233
|
-
if (toDiscard.
|
|
233
|
+
if (toDiscard.w(new Long(0, 0)) > 0) {
|
|
234
234
|
var additionallyDiscarded = significand.ug(Companion_getInstance_2().mg_1.tg(toDiscard));
|
|
235
235
|
tmp = new Pair(additionallyDiscarded.vg_1, additionallyDiscarded.wg_1);
|
|
236
236
|
} else {
|
|
@@ -467,10 +467,10 @@
|
|
|
467
467
|
}
|
|
468
468
|
var desiredPrecision = tmp;
|
|
469
469
|
var tmp_0;
|
|
470
|
-
if (desiredPrecision.
|
|
470
|
+
if (desiredPrecision.w(significandDigits) > 0) {
|
|
471
471
|
var extendedSignificand = significand.tf(Companion_getInstance_2().mg_1.tg(desiredPrecision.o5(significandDigits)));
|
|
472
472
|
tmp_0 = new BigDecimal(extendedSignificand, exponent, decimalMode);
|
|
473
|
-
} else if (desiredPrecision.
|
|
473
|
+
} else if (desiredPrecision.w(significandDigits) < 0) {
|
|
474
474
|
var divRem = significand.ug(Companion_getInstance_2().mg_1.tg(significandDigits.o5(desiredPrecision)));
|
|
475
475
|
var resolvedRemainder = divRem.wg_1;
|
|
476
476
|
if (divRem.wg_1.equals(Companion_getInstance_2().jg_1)) {
|
|
@@ -495,12 +495,12 @@
|
|
|
495
495
|
return new BigDecimal(significand, exponent, decimalMode);
|
|
496
496
|
}
|
|
497
497
|
var tmp;
|
|
498
|
-
if (exponent.
|
|
498
|
+
if (exponent.w(new Long(0, 0)) >= 0) {
|
|
499
499
|
var tmp$ret$0;
|
|
500
500
|
// Inline function 'kotlin.Long.plus' call
|
|
501
501
|
tmp$ret$0 = exponent.n5(decimalMode.fg_1).n5(new Long(1, 0));
|
|
502
502
|
tmp = new DecimalMode(tmp$ret$0, decimalMode.eg_1);
|
|
503
|
-
} else if (exponent.
|
|
503
|
+
} else if (exponent.w(new Long(0, 0)) < 0) {
|
|
504
504
|
var tmp$ret$1;
|
|
505
505
|
// Inline function 'kotlin.Long.plus' call
|
|
506
506
|
tmp$ret$1 = decimalMode.fg_1.n5(new Long(1, 0));
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
}
|
|
511
511
|
var workMode = tmp;
|
|
512
512
|
var tmp_0;
|
|
513
|
-
if (exponent.
|
|
513
|
+
if (exponent.w(new Long(0, 0)) >= 0) {
|
|
514
514
|
tmp_0 = roundSignificand($this, significand, exponent, workMode);
|
|
515
515
|
} else {
|
|
516
516
|
var temp = (new BigDecimal(significand, exponent)).xf(significand.mh());
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
throw ArithmeticException_init_$Create$('Different rounding modes! This: ' + firstDecimalMode.eg_1 + ' Other: ' + secondDecimalMode.eg_1);
|
|
537
537
|
}
|
|
538
538
|
var tmp_0;
|
|
539
|
-
if (firstDecimalMode.dg_1.
|
|
539
|
+
if (firstDecimalMode.dg_1.w(secondDecimalMode.dg_1) >= 0) {
|
|
540
540
|
tmp_0 = firstDecimalMode;
|
|
541
541
|
} else {
|
|
542
542
|
tmp_0 = secondDecimalMode;
|
|
@@ -1059,7 +1059,7 @@
|
|
|
1059
1059
|
// Inline function 'kotlin.math.max' call
|
|
1060
1060
|
var tmp0_max = $this.qh_1.dg_1;
|
|
1061
1061
|
var tmp1_max = other.qh_1.dg_1;
|
|
1062
|
-
var tmp_0 = tmp0_max.
|
|
1062
|
+
var tmp_0 = tmp0_max.w(tmp1_max) >= 0 ? tmp0_max : tmp1_max;
|
|
1063
1063
|
var tmp_1;
|
|
1064
1064
|
if ($this.qh_1.hg_1 ? other.qh_1.hg_1 : false) {
|
|
1065
1065
|
var tmp_2;
|
|
@@ -1069,14 +1069,14 @@
|
|
|
1069
1069
|
|
|
1070
1070
|
var tmp2_max = $this.qh_1.fg_1;
|
|
1071
1071
|
var tmp3_max = other.qh_1.fg_1;
|
|
1072
|
-
tmp_2 = tmp2_max.
|
|
1072
|
+
tmp_2 = tmp2_max.w(tmp3_max) >= 0 ? tmp2_max : tmp3_max;
|
|
1073
1073
|
break;
|
|
1074
1074
|
case 1:
|
|
1075
1075
|
// Inline function 'kotlin.math.min' call
|
|
1076
1076
|
|
|
1077
1077
|
var tmp4_min = $this.qh_1.fg_1;
|
|
1078
1078
|
var tmp5_min = other.qh_1.fg_1;
|
|
1079
|
-
tmp_2 = tmp4_min.
|
|
1079
|
+
tmp_2 = tmp4_min.w(tmp5_min) <= 0 ? tmp4_min : tmp5_min;
|
|
1080
1080
|
break;
|
|
1081
1081
|
case 2:
|
|
1082
1082
|
tmp_2 = $this.qh_1.fg_1.n5(other.qh_1.fg_1);
|
|
@@ -1105,10 +1105,10 @@
|
|
|
1105
1105
|
var firstPreparedExponent = firstPrepared.ph_1;
|
|
1106
1106
|
var secondPreparedExponent = secondPrepared.ph_1;
|
|
1107
1107
|
var tmp;
|
|
1108
|
-
if (first.ph_1.
|
|
1108
|
+
if (first.ph_1.w(second.ph_1) > 0) {
|
|
1109
1109
|
var moveFirstBy = firstPreparedExponent.o5(secondPreparedExponent);
|
|
1110
1110
|
var tmp_0;
|
|
1111
|
-
if (moveFirstBy.
|
|
1111
|
+
if (moveFirstBy.w(new Long(0, 0)) >= 0) {
|
|
1112
1112
|
var movedFirst = firstPrepared.oh_1.tf(toBigInteger(10).tg(moveFirstBy));
|
|
1113
1113
|
return new Triple(movedFirst, second.oh_1, secondPreparedExponent);
|
|
1114
1114
|
} else {
|
|
@@ -1120,10 +1120,10 @@
|
|
|
1120
1120
|
tmp_0 = new Triple(first.oh_1, movedSecond, firstPreparedExponent);
|
|
1121
1121
|
}
|
|
1122
1122
|
tmp = tmp_0;
|
|
1123
|
-
} else if (first.ph_1.
|
|
1123
|
+
} else if (first.ph_1.w(second.ph_1) < 0) {
|
|
1124
1124
|
var moveSecondBy = secondPreparedExponent.o5(firstPreparedExponent);
|
|
1125
1125
|
var tmp_2;
|
|
1126
|
-
if (moveSecondBy.
|
|
1126
|
+
if (moveSecondBy.w(new Long(0, 0)) >= 0) {
|
|
1127
1127
|
var movedSecond_0 = secondPrepared.oh_1.tf(toBigInteger(10).tg(moveSecondBy));
|
|
1128
1128
|
tmp_2 = new Triple(first.oh_1, movedSecond_0, firstPreparedExponent);
|
|
1129
1129
|
} else {
|
|
@@ -1138,11 +1138,11 @@
|
|
|
1138
1138
|
} else if (first.ph_1.equals(second.ph_1)) {
|
|
1139
1139
|
var delta = firstPreparedExponent.o5(secondPreparedExponent);
|
|
1140
1140
|
var tmp_4;
|
|
1141
|
-
if (delta.
|
|
1141
|
+
if (delta.w(new Long(0, 0)) > 0) {
|
|
1142
1142
|
var movedFirst_1 = first.oh_1.tf(toBigInteger(10).tg(delta));
|
|
1143
1143
|
tmp_4 = new Triple(movedFirst_1, second.oh_1, firstPreparedExponent);
|
|
1144
1144
|
} else {
|
|
1145
|
-
if (delta.
|
|
1145
|
+
if (delta.w(new Long(0, 0)) < 0) {
|
|
1146
1146
|
var tmp_5 = toBigInteger(10);
|
|
1147
1147
|
var tmp$ret$2;
|
|
1148
1148
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -1151,7 +1151,7 @@
|
|
|
1151
1151
|
tmp_4 = new Triple(first.oh_1, movedSecond_1, firstPreparedExponent);
|
|
1152
1152
|
} else {
|
|
1153
1153
|
// Inline function 'kotlin.Long.compareTo' call
|
|
1154
|
-
if (delta.
|
|
1154
|
+
if (delta.w(new Long(0, 0)) === 0) {
|
|
1155
1155
|
tmp_4 = new Triple(first.oh_1, second.oh_1, firstPreparedExponent);
|
|
1156
1156
|
} else {
|
|
1157
1157
|
throw RuntimeException_init_$Create$('Invalid delta: ' + toString(delta));
|
|
@@ -1278,10 +1278,10 @@
|
|
|
1278
1278
|
var tmp0_safe_receiver_1 = this.qh_1;
|
|
1279
1279
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.fg_1;
|
|
1280
1280
|
tmp_1.th_1 = tmp1_elvis_lhs_1 == null ? new Long(-1, -1) : tmp1_elvis_lhs_1;
|
|
1281
|
-
this.uh_1 = this.th_1.
|
|
1281
|
+
this.uh_1 = this.th_1.w(new Long(0, 0)) >= 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
protoOf(BigDecimal).pi = function (scale) {
|
|
1284
|
-
if (scale.
|
|
1284
|
+
if (scale.w(new Long(0, 0)) < 0)
|
|
1285
1285
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1286
1286
|
var tmp;
|
|
1287
1287
|
if (this.qh_1 == null) {
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
var newSignificand = first.pf(second);
|
|
1327
1327
|
var newSignificandNumOfDigit = newSignificand.sg();
|
|
1328
1328
|
var tmp;
|
|
1329
|
-
if (firstNumOfDigits.
|
|
1329
|
+
if (firstNumOfDigits.w(secondNumOfDigits) > 0) {
|
|
1330
1330
|
tmp = firstNumOfDigits;
|
|
1331
1331
|
} else {
|
|
1332
1332
|
tmp = secondNumOfDigits;
|
|
@@ -1336,7 +1336,7 @@
|
|
|
1336
1336
|
// Inline function 'kotlin.math.max' call
|
|
1337
1337
|
var tmp0_max = this.ph_1;
|
|
1338
1338
|
var tmp1_max = other.ph_1;
|
|
1339
|
-
var newExponent = (tmp0_max.
|
|
1339
|
+
var newExponent = (tmp0_max.w(tmp1_max) >= 0 ? tmp0_max : tmp1_max).n5(carryDetected);
|
|
1340
1340
|
var tmp_0;
|
|
1341
1341
|
if (resolvedDecimalMode.hg_1) {
|
|
1342
1342
|
tmp_0 = roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.oi(newSignificandNumOfDigit));
|
|
@@ -1367,7 +1367,7 @@
|
|
|
1367
1367
|
var newSignificand = first.rf(second);
|
|
1368
1368
|
var newSignificandNumOfDigit = newSignificand.sg();
|
|
1369
1369
|
var tmp;
|
|
1370
|
-
if (firstNumOfDigits.
|
|
1370
|
+
if (firstNumOfDigits.w(secondNumOfDigits) > 0) {
|
|
1371
1371
|
tmp = firstNumOfDigits;
|
|
1372
1372
|
} else {
|
|
1373
1373
|
tmp = secondNumOfDigits;
|
|
@@ -1377,7 +1377,7 @@
|
|
|
1377
1377
|
// Inline function 'kotlin.math.max' call
|
|
1378
1378
|
var tmp0_max = this.ph_1;
|
|
1379
1379
|
var tmp1_max = other.ph_1;
|
|
1380
|
-
var newExponent = (tmp0_max.
|
|
1380
|
+
var newExponent = (tmp0_max.w(tmp1_max) >= 0 ? tmp0_max : tmp1_max).n5(borrowDetected);
|
|
1381
1381
|
if (this.uh_1) {
|
|
1382
1382
|
return roundOrDont(Companion_getInstance_0(), newSignificand, newExponent, resolvedDecimalMode.oi(newSignificandNumOfDigit));
|
|
1383
1383
|
} else {
|
|
@@ -1436,9 +1436,9 @@
|
|
|
1436
1436
|
var desiredPrecision = resolvedDecimalMode.dg_1;
|
|
1437
1437
|
var power_0 = desiredPrecision.o5(this.nh_1).n5(other.nh_1);
|
|
1438
1438
|
var tmp;
|
|
1439
|
-
if (power_0.
|
|
1439
|
+
if (power_0.w(new Long(0, 0)) > 0) {
|
|
1440
1440
|
tmp = this.oh_1.tf(toBigInteger(10).tg(power_0));
|
|
1441
|
-
} else if (power_0.
|
|
1441
|
+
} else if (power_0.w(new Long(0, 0)) < 0) {
|
|
1442
1442
|
var tmp_0 = toBigInteger(10);
|
|
1443
1443
|
var tmp$ret$4;
|
|
1444
1444
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
@@ -1470,7 +1470,7 @@
|
|
|
1470
1470
|
return this.yi(other instanceof BigDecimal ? other : THROW_CCE());
|
|
1471
1471
|
};
|
|
1472
1472
|
protoOf(BigDecimal).zi = function (other) {
|
|
1473
|
-
if (this.ph_1.
|
|
1473
|
+
if (this.ph_1.w(new Long(0, 0)) < 0) {
|
|
1474
1474
|
return new Pair(Companion_getInstance_0().ah_1, this);
|
|
1475
1475
|
}
|
|
1476
1476
|
if (other.xg().aj(this.xg()) > 0) {
|
|
@@ -1524,7 +1524,7 @@
|
|
|
1524
1524
|
return this.tg(toLong(exponent));
|
|
1525
1525
|
};
|
|
1526
1526
|
protoOf(BigDecimal).hj = function () {
|
|
1527
|
-
if (this.ph_1.
|
|
1527
|
+
if (this.ph_1.w(new Long(0, 0)) < 0) {
|
|
1528
1528
|
var tmp;
|
|
1529
1529
|
switch (this.oh_1.pg_1.y4_1) {
|
|
1530
1530
|
case 0:
|
|
@@ -1548,18 +1548,18 @@
|
|
|
1548
1548
|
return this.zh(new DecimalMode(tmp$ret$0, RoundingMode_FLOOR_getInstance()));
|
|
1549
1549
|
};
|
|
1550
1550
|
protoOf(BigDecimal).ij = function () {
|
|
1551
|
-
if (this.ph_1.
|
|
1551
|
+
if (this.ph_1.w(new Long(0, 0)) < 0) {
|
|
1552
1552
|
return Companion_getInstance_2().jg_1;
|
|
1553
1553
|
}
|
|
1554
1554
|
var precisionExponentDiff = this.ph_1.o5(this.nh_1);
|
|
1555
1555
|
var tmp;
|
|
1556
|
-
if (precisionExponentDiff.
|
|
1556
|
+
if (precisionExponentDiff.w(new Long(0, 0)) > 0) {
|
|
1557
1557
|
var tmp_0 = toBigInteger(10);
|
|
1558
1558
|
var tmp$ret$0;
|
|
1559
1559
|
// Inline function 'kotlin.Long.plus' call
|
|
1560
1560
|
tmp$ret$0 = precisionExponentDiff.n5(new Long(1, 0));
|
|
1561
1561
|
tmp = this.oh_1.tf(tmp_0.tg(tmp$ret$0));
|
|
1562
|
-
} else if (precisionExponentDiff.
|
|
1562
|
+
} else if (precisionExponentDiff.w(new Long(0, 0)) < 0) {
|
|
1563
1563
|
var tmp_1 = toBigInteger(10);
|
|
1564
1564
|
var tmp$ret$2;
|
|
1565
1565
|
// Inline function 'kotlin.Long.minus' call
|
|
@@ -1590,30 +1590,30 @@
|
|
|
1590
1590
|
return new BigDecimal(this.oh_1.ki(), this.ph_1, this.qh_1);
|
|
1591
1591
|
};
|
|
1592
1592
|
protoOf(BigDecimal).tg = function (exponent) {
|
|
1593
|
-
if (this.equals(Companion_getInstance_0().ah_1) ? exponent.
|
|
1593
|
+
if (this.equals(Companion_getInstance_0().ah_1) ? exponent.w(new Long(0, 0)) < 0 : false) {
|
|
1594
1594
|
throw ArithmeticException_init_$Create$('Negative exponentiation of zero is not defined.');
|
|
1595
1595
|
}
|
|
1596
1596
|
var result = this;
|
|
1597
1597
|
var tmp;
|
|
1598
|
-
if (exponent.
|
|
1598
|
+
if (exponent.w(new Long(0, 0)) > 0) {
|
|
1599
1599
|
var inductionVariable = new Long(0, 0);
|
|
1600
1600
|
// Inline function 'kotlin.Long.minus' call
|
|
1601
1601
|
var last = exponent.o5(new Long(1, 0));
|
|
1602
|
-
if (inductionVariable.
|
|
1602
|
+
if (inductionVariable.w(last) < 0)
|
|
1603
1603
|
do {
|
|
1604
1604
|
var i = inductionVariable;
|
|
1605
1605
|
inductionVariable = inductionVariable.n5(new Long(1, 0));
|
|
1606
1606
|
result = result.cj(this);
|
|
1607
1607
|
}
|
|
1608
|
-
while (inductionVariable.
|
|
1608
|
+
while (inductionVariable.w(last) < 0);
|
|
1609
1609
|
tmp = result;
|
|
1610
|
-
} else if (exponent.
|
|
1610
|
+
} else if (exponent.w(new Long(0, 0)) < 0) {
|
|
1611
1611
|
Companion_getInstance();
|
|
1612
1612
|
if (exponent.equals(new Long(0, -2147483648))) {
|
|
1613
1613
|
var inductionVariable_0 = new Long(0, 0);
|
|
1614
1614
|
Companion_getInstance();
|
|
1615
1615
|
var last_0 = new Long(-1, 2147483647);
|
|
1616
|
-
if (inductionVariable_0.
|
|
1616
|
+
if (inductionVariable_0.w(last_0) <= 0)
|
|
1617
1617
|
do {
|
|
1618
1618
|
var i_0 = inductionVariable_0;
|
|
1619
1619
|
inductionVariable_0 = inductionVariable_0.n5(new Long(1, 0));
|
|
@@ -1625,7 +1625,7 @@
|
|
|
1625
1625
|
var inductionVariable_1 = new Long(0, 0);
|
|
1626
1626
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1627
1627
|
var last_1 = abs(exponent);
|
|
1628
|
-
if (inductionVariable_1.
|
|
1628
|
+
if (inductionVariable_1.w(last_1) <= 0)
|
|
1629
1629
|
do {
|
|
1630
1630
|
var i_1 = inductionVariable_1;
|
|
1631
1631
|
inductionVariable_1 = inductionVariable_1.n5(new Long(1, 0));
|
|
@@ -1647,14 +1647,14 @@
|
|
|
1647
1647
|
protoOf(BigDecimal).mj = function (exactRequired) {
|
|
1648
1648
|
if (exactRequired) {
|
|
1649
1649
|
var exactPossible = true;
|
|
1650
|
-
if (this.ph_1.
|
|
1650
|
+
if (this.ph_1.w(new Long(-324, -1)) < 0 ? true : this.ph_1.w(new Long(308, 0)) > 0) {
|
|
1651
1651
|
exactPossible = false;
|
|
1652
1652
|
}
|
|
1653
1653
|
var tmp;
|
|
1654
1654
|
// Inline function 'kotlin.Long.minus' call
|
|
1655
|
-
if (this.nh_1.o5(this.ph_1).o5(new Long(1, 0)).
|
|
1655
|
+
if (this.nh_1.o5(this.ph_1).o5(new Long(1, 0)).w(new Long(0, 0)) > 0) {
|
|
1656
1656
|
var tmp_0;
|
|
1657
|
-
if (this.ph_1.
|
|
1657
|
+
if (this.ph_1.w(new Long(0, 0)) >= 0) {
|
|
1658
1658
|
var tmp_1 = Companion_getInstance_2().mg_1;
|
|
1659
1659
|
var tmp$ret$1;
|
|
1660
1660
|
// Inline function 'kotlin.Long.minus' call
|
|
@@ -1723,9 +1723,9 @@
|
|
|
1723
1723
|
return toDouble(this.toString());
|
|
1724
1724
|
}
|
|
1725
1725
|
var tmp_6;
|
|
1726
|
-
if ((numberToLong(l.nd()).equals(l) ? divExponent.
|
|
1726
|
+
if ((numberToLong(l.nd()).equals(l) ? divExponent.w(new Long(0, 0)) >= 0 : false) ? divExponent.w(toLong(Companion_getInstance_0().fh_1.length)) < 0 : false) {
|
|
1727
1727
|
// Inline function 'kotlin.Long.div' call
|
|
1728
|
-
var tmp4_div = Companion_getInstance_0().fh_1[divExponent.
|
|
1728
|
+
var tmp4_div = Companion_getInstance_0().fh_1[divExponent.v()];
|
|
1729
1729
|
tmp_6 = l.nd() / tmp4_div;
|
|
1730
1730
|
} else {
|
|
1731
1731
|
tmp_6 = toDouble(this.toString());
|
|
@@ -1872,9 +1872,9 @@
|
|
|
1872
1872
|
}
|
|
1873
1873
|
var expand = tmp_0;
|
|
1874
1874
|
var tmp_1;
|
|
1875
|
-
if (this.ph_1.
|
|
1875
|
+
if (this.ph_1.w(new Long(0, 0)) > 0) {
|
|
1876
1876
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E+' + toString(this.ph_1);
|
|
1877
|
-
} else if (this.ph_1.
|
|
1877
|
+
} else if (this.ph_1.w(new Long(0, 0)) < 0) {
|
|
1878
1878
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand + 'E' + toString(this.ph_1);
|
|
1879
1879
|
} else if (this.ph_1.equals(new Long(0, 0))) {
|
|
1880
1880
|
tmp_1 = placeADotInString(this, significandString, significandString.length - modifier | 0) + expand;
|
|
@@ -1888,7 +1888,7 @@
|
|
|
1888
1888
|
return '0';
|
|
1889
1889
|
}
|
|
1890
1890
|
var digits = this.oh_1.sg();
|
|
1891
|
-
if (this.ph_1.
|
|
1891
|
+
if (this.ph_1.w(toLong(IntCompanionObject_getInstance().MAX_VALUE)) > 0) {
|
|
1892
1892
|
throw RuntimeException_init_$Create$('Invalid toStringExpanded request (exponent > Int.MAX_VALUE)');
|
|
1893
1893
|
}
|
|
1894
1894
|
var significandString = this.oh_1.uj(10);
|
|
@@ -1900,20 +1900,20 @@
|
|
|
1900
1900
|
}
|
|
1901
1901
|
var sign = tmp;
|
|
1902
1902
|
var tmp_0;
|
|
1903
|
-
if (this.ph_1.
|
|
1903
|
+
if (this.ph_1.w(new Long(0, 0)) > 0) {
|
|
1904
1904
|
// Inline function 'kotlin.Long.plus' call
|
|
1905
1905
|
var diffBigInt = this.ph_1.o5(digits).n5(new Long(1, 0));
|
|
1906
1906
|
var tmp_1;
|
|
1907
|
-
if (diffBigInt.
|
|
1907
|
+
if (diffBigInt.w(new Long(0, 0)) > 0) {
|
|
1908
1908
|
var expandZeros = this.vj(diffBigInt, _Char___init__impl__6a9atx(48));
|
|
1909
1909
|
tmp_1 = significandString + expandZeros;
|
|
1910
1910
|
} else {
|
|
1911
|
-
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - this.ph_1.
|
|
1911
|
+
tmp_1 = placeADotInStringExpanded(this, significandString, (significandString.length - this.ph_1.v() | 0) - 1 | 0);
|
|
1912
1912
|
}
|
|
1913
1913
|
tmp_0 = tmp_1;
|
|
1914
|
-
} else if (this.ph_1.
|
|
1914
|
+
} else if (this.ph_1.w(new Long(0, 0)) < 0) {
|
|
1915
1915
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
1916
|
-
var tmp1_get_absoluteValue_on85xe = this.ph_1.
|
|
1916
|
+
var tmp1_get_absoluteValue_on85xe = this.ph_1.v();
|
|
1917
1917
|
var diffInt = abs_0(tmp1_get_absoluteValue_on85xe);
|
|
1918
1918
|
var tmp_2;
|
|
1919
1919
|
if (diffInt > 0) {
|
|
@@ -1939,12 +1939,12 @@
|
|
|
1939
1939
|
return sign + adjusted;
|
|
1940
1940
|
};
|
|
1941
1941
|
protoOf(BigDecimal).vj = function (_this__u8e3s4, char) {
|
|
1942
|
-
if (_this__u8e3s4.
|
|
1942
|
+
if (_this__u8e3s4.w(new Long(0, 0)) < 0) {
|
|
1943
1943
|
throw RuntimeException_init_$Create$('Char cannot be multiplied with negative number');
|
|
1944
1944
|
}
|
|
1945
1945
|
var counter = _this__u8e3s4;
|
|
1946
1946
|
var stringBuilder = StringBuilder_init_$Create$();
|
|
1947
|
-
while (counter.
|
|
1947
|
+
while (counter.w(new Long(0, 0)) > 0) {
|
|
1948
1948
|
stringBuilder.j5(char);
|
|
1949
1949
|
counter = counter.td();
|
|
1950
1950
|
}
|
|
@@ -1975,15 +1975,15 @@
|
|
|
1975
1975
|
this.dg_1 = decimalPrecision;
|
|
1976
1976
|
this.eg_1 = roundingMode;
|
|
1977
1977
|
this.fg_1 = scale;
|
|
1978
|
-
if (this.dg_1.
|
|
1978
|
+
if (this.dg_1.w(new Long(0, 0)) < 0) {
|
|
1979
1979
|
throw ArithmeticException_init_$Create$('Negative decimal precision is not allowed.');
|
|
1980
1980
|
}
|
|
1981
1981
|
this.gg_1 = this.dg_1.equals(new Long(0, 0));
|
|
1982
|
-
this.hg_1 = this.fg_1.
|
|
1982
|
+
this.hg_1 = this.fg_1.w(new Long(0, 0)) >= 0;
|
|
1983
1983
|
if ((!this.hg_1 ? this.dg_1.equals(new Long(0, 0)) : false) ? !this.eg_1.equals(RoundingMode_NONE_getInstance()) : false) {
|
|
1984
1984
|
throw ArithmeticException_init_$Create$('Rounding mode with 0 digits precision.');
|
|
1985
1985
|
}
|
|
1986
|
-
if (this.fg_1.
|
|
1986
|
+
if (this.fg_1.w(new Long(-1, -1)) < 0) {
|
|
1987
1987
|
throw ArithmeticException_init_$Create$('Negative Scale is unsupported.');
|
|
1988
1988
|
}
|
|
1989
1989
|
if (this.hg_1 ? this.eg_1.equals(RoundingMode_NONE_getInstance()) : false) {
|
|
@@ -2083,7 +2083,7 @@
|
|
|
2083
2083
|
if (tmp0_subject.equals(getKClass(Long))) {
|
|
2084
2084
|
if (!(long instanceof Long))
|
|
2085
2085
|
THROW_CCE();
|
|
2086
|
-
tmp_0 = long.
|
|
2086
|
+
tmp_0 = long.w(new Long(0, 0)) < 0 ? Sign_NEGATIVE_getInstance() : long.w(new Long(0, 0)) > 0 ? Sign_POSITIVE_getInstance() : Sign_ZERO_getInstance();
|
|
2087
2087
|
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
2088
2088
|
if (typeof long !== 'number')
|
|
2089
2089
|
THROW_CCE();
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
if (tmp0_subject.equals(getKClass(Long))) {
|
|
2117
2117
|
if (!(int instanceof Long))
|
|
2118
2118
|
THROW_CCE();
|
|
2119
|
-
tmp_0 = int.
|
|
2119
|
+
tmp_0 = int.w(new Long(0, 0)) < 0 ? Sign_NEGATIVE_getInstance() : int.w(new Long(0, 0)) > 0 ? Sign_POSITIVE_getInstance() : Sign_ZERO_getInstance();
|
|
2120
2120
|
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
2121
2121
|
if (typeof int !== 'number')
|
|
2122
2122
|
THROW_CCE();
|
|
@@ -2149,7 +2149,7 @@
|
|
|
2149
2149
|
if (tmp0_subject.equals(getKClass(Long))) {
|
|
2150
2150
|
if (!(short instanceof Long))
|
|
2151
2151
|
THROW_CCE();
|
|
2152
|
-
tmp_0 = short.
|
|
2152
|
+
tmp_0 = short.w(new Long(0, 0)) < 0 ? Sign_NEGATIVE_getInstance() : short.w(new Long(0, 0)) > 0 ? Sign_POSITIVE_getInstance() : Sign_ZERO_getInstance();
|
|
2153
2153
|
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
2154
2154
|
if (typeof short !== 'number')
|
|
2155
2155
|
THROW_CCE();
|
|
@@ -2182,7 +2182,7 @@
|
|
|
2182
2182
|
if (tmp0_subject.equals(getKClass(Long))) {
|
|
2183
2183
|
if (!(byte instanceof Long))
|
|
2184
2184
|
THROW_CCE();
|
|
2185
|
-
tmp_0 = byte.
|
|
2185
|
+
tmp_0 = byte.w(new Long(0, 0)) < 0 ? Sign_NEGATIVE_getInstance() : byte.w(new Long(0, 0)) > 0 ? Sign_POSITIVE_getInstance() : Sign_ZERO_getInstance();
|
|
2186
2186
|
} else if (tmp0_subject.equals(PrimitiveClasses_getInstance().eb())) {
|
|
2187
2187
|
if (typeof byte !== 'number')
|
|
2188
2188
|
THROW_CCE();
|
|
@@ -2582,7 +2582,7 @@
|
|
|
2582
2582
|
return new BigInteger(this.og_1, Sign_POSITIVE_getInstance());
|
|
2583
2583
|
};
|
|
2584
2584
|
protoOf(BigInteger).tg = function (exponent) {
|
|
2585
|
-
if (exponent.
|
|
2585
|
+
if (exponent.w(new Long(0, 0)) < 0) {
|
|
2586
2586
|
throw ArithmeticException_init_$Create$('Negative exponent not supported with BigInteger');
|
|
2587
2587
|
}
|
|
2588
2588
|
var tmp;
|
|
@@ -2682,7 +2682,7 @@
|
|
|
2682
2682
|
tmp = this.qj(Companion_getInstance_2().ei(other));
|
|
2683
2683
|
} else {
|
|
2684
2684
|
if (other instanceof ULong) {
|
|
2685
|
-
tmp = this.qj(Companion_getInstance_2().gk(other.
|
|
2685
|
+
tmp = this.qj(Companion_getInstance_2().gk(other.g1_1));
|
|
2686
2686
|
} else {
|
|
2687
2687
|
if (other instanceof UInt) {
|
|
2688
2688
|
tmp = this.qj(Companion_getInstance_2().ik(other.h6_1));
|
|
@@ -2772,7 +2772,7 @@
|
|
|
2772
2772
|
tmp = this.qj(Companion_getInstance_2().ei(other));
|
|
2773
2773
|
} else {
|
|
2774
2774
|
if (other instanceof ULong) {
|
|
2775
|
-
tmp = this.qj(Companion_getInstance_2().gk(other.
|
|
2775
|
+
tmp = this.qj(Companion_getInstance_2().gk(other.g1_1));
|
|
2776
2776
|
} else {
|
|
2777
2777
|
if (other instanceof UInt) {
|
|
2778
2778
|
tmp = this.qj(Companion_getInstance_2().ik(other.h6_1));
|
|
@@ -2802,7 +2802,7 @@
|
|
|
2802
2802
|
var accumulator = 0;
|
|
2803
2803
|
var tmp0_iterator = ULongArray__iterator_impl_cq4d2h(tmp0_fold);
|
|
2804
2804
|
while (tmp0_iterator.g()) {
|
|
2805
|
-
var element = tmp0_iterator.h().
|
|
2805
|
+
var element = tmp0_iterator.h().g1_1;
|
|
2806
2806
|
// Inline function 'com.ionspin.kotlin.bignum.integer.BigInteger.hashCode.<anonymous>' call
|
|
2807
2807
|
accumulator = accumulator + ULong__hashCode_impl_6hv2lb(element) | 0;
|
|
2808
2808
|
}
|
|
@@ -2831,7 +2831,7 @@
|
|
|
2831
2831
|
var tmp$ret$0;
|
|
2832
2832
|
// Inline function 'kotlin.ULong.toInt' call
|
|
2833
2833
|
var tmp0_toInt = ULongArray__get_impl_pr71q9(this.og_1, 0);
|
|
2834
|
-
tmp$ret$0 = _ULong___get_data__impl__fggpzb(tmp0_toInt).
|
|
2834
|
+
tmp$ret$0 = _ULong___get_data__impl__fggpzb(tmp0_toInt).v();
|
|
2835
2835
|
return imul(tmp$ret$0, this.mh());
|
|
2836
2836
|
};
|
|
2837
2837
|
protoOf(BigInteger).pj = function (exactRequired) {
|
|
@@ -3472,7 +3472,7 @@
|
|
|
3472
3472
|
var tmp7_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp5_and).i6(_ULong___get_data__impl__fggpzb(tmp6_and)));
|
|
3473
3473
|
// Inline function 'kotlin.toUInt' call
|
|
3474
3474
|
var tmp0_toUInt = _ULong___get_data__impl__fggpzb(tmp7_toUInt);
|
|
3475
|
-
tmp$ret$12 = _UInt___init__impl__l7qpdl(tmp0_toUInt.
|
|
3475
|
+
tmp$ret$12 = _UInt___init__impl__l7qpdl(tmp0_toUInt.v());
|
|
3476
3476
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$12);
|
|
3477
3477
|
// Inline function 'kotlin.ULong.shr' call
|
|
3478
3478
|
var tmp8_shr = sum;
|
|
@@ -3502,7 +3502,7 @@
|
|
|
3502
3502
|
var tmp11_toUInt = sum;
|
|
3503
3503
|
// Inline function 'kotlin.toUInt' call
|
|
3504
3504
|
var tmp0_toUInt_0 = _ULong___get_data__impl__fggpzb(tmp11_toUInt);
|
|
3505
|
-
tmp$ret$16 = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.
|
|
3505
|
+
tmp$ret$16 = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.v());
|
|
3506
3506
|
UIntArray__set_impl_7f2zu2(result, maxLength, tmp$ret$16);
|
|
3507
3507
|
return result;
|
|
3508
3508
|
}
|
|
@@ -3522,7 +3522,7 @@
|
|
|
3522
3522
|
var tmp16_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp14_and).i6(_ULong___get_data__impl__fggpzb(tmp15_and)));
|
|
3523
3523
|
// Inline function 'kotlin.toUInt' call
|
|
3524
3524
|
var tmp0_toUInt_1 = _ULong___get_data__impl__fggpzb(tmp16_toUInt);
|
|
3525
|
-
tmp$ret$22 = _UInt___init__impl__l7qpdl(tmp0_toUInt_1.
|
|
3525
|
+
tmp$ret$22 = _UInt___init__impl__l7qpdl(tmp0_toUInt_1.v());
|
|
3526
3526
|
UIntArray__set_impl_7f2zu2(result, tmp_6, tmp$ret$22);
|
|
3527
3527
|
// Inline function 'kotlin.ULong.shr' call
|
|
3528
3528
|
var tmp17_shr = sum;
|
|
@@ -3586,7 +3586,7 @@
|
|
|
3586
3586
|
var tmp6_toUInt = diff;
|
|
3587
3587
|
// Inline function 'kotlin.toUInt' call
|
|
3588
3588
|
var tmp0_toUInt = _ULong___get_data__impl__fggpzb(tmp6_toUInt);
|
|
3589
|
-
tmp$ret$10 = _UInt___init__impl__l7qpdl(tmp0_toUInt.
|
|
3589
|
+
tmp$ret$10 = _UInt___init__impl__l7qpdl(tmp0_toUInt.v());
|
|
3590
3590
|
UIntArray__set_impl_7f2zu2(result, tmp_4, tmp$ret$10);
|
|
3591
3591
|
// Inline function 'kotlin.ULong.shr' call
|
|
3592
3592
|
// Inline function 'kotlin.ULong.and' call
|
|
@@ -3612,7 +3612,7 @@
|
|
|
3612
3612
|
var tmp13_toUInt = diff;
|
|
3613
3613
|
// Inline function 'kotlin.toUInt' call
|
|
3614
3614
|
var tmp0_toUInt_0 = _ULong___get_data__impl__fggpzb(tmp13_toUInt);
|
|
3615
|
-
var tmp14_and = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.
|
|
3615
|
+
var tmp14_and = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.v());
|
|
3616
3616
|
var tmp15_and = this.sm_1;
|
|
3617
3617
|
tmp$ret$18 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp14_and) & _UInt___get_data__impl__f0vqqw(tmp15_and));
|
|
3618
3618
|
UIntArray__set_impl_7f2zu2(result, tmp_5, tmp$ret$18);
|
|
@@ -3640,7 +3640,7 @@
|
|
|
3640
3640
|
tmp0_filterTo.a(new UInt(element));
|
|
3641
3641
|
}
|
|
3642
3642
|
}
|
|
3643
|
-
if (tmp0_filterTo.
|
|
3643
|
+
if (tmp0_filterTo.n()) {
|
|
3644
3644
|
return this.ym_1;
|
|
3645
3645
|
}
|
|
3646
3646
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
@@ -3697,7 +3697,7 @@
|
|
|
3697
3697
|
var tmp5_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(product).i6(_ULong___get_data__impl__fggpzb(tmp4_and)));
|
|
3698
3698
|
// Inline function 'kotlin.toUInt' call
|
|
3699
3699
|
var tmp0_toUInt = _ULong___get_data__impl__fggpzb(tmp5_toUInt);
|
|
3700
|
-
var tmp7_plus = _UInt___init__impl__l7qpdl(tmp0_toUInt.
|
|
3700
|
+
var tmp7_plus = _UInt___init__impl__l7qpdl(tmp0_toUInt.v());
|
|
3701
3701
|
// Inline function 'kotlin.ULong.plus' call
|
|
3702
3702
|
// Inline function 'kotlin.UInt.toULong' call
|
|
3703
3703
|
var tmp0_plus = _ULong___init__impl__c78o9k(toLong(_UInt___get_data__impl__f0vqqw(tmp7_plus)).i6(new Long(-1, 0)));
|
|
@@ -3710,7 +3710,7 @@
|
|
|
3710
3710
|
var tmp10_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp8_and).i6(_ULong___get_data__impl__fggpzb(tmp9_and)));
|
|
3711
3711
|
// Inline function 'kotlin.toUInt' call
|
|
3712
3712
|
var tmp0_toUInt_0 = _ULong___get_data__impl__fggpzb(tmp10_toUInt);
|
|
3713
|
-
tmp$ret$13 = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.
|
|
3713
|
+
tmp$ret$13 = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.v());
|
|
3714
3714
|
UIntArray__set_impl_7f2zu2(result, i, tmp$ret$13);
|
|
3715
3715
|
// Inline function 'kotlin.ULong.shr' call
|
|
3716
3716
|
var tmp11_shr = sum;
|
|
@@ -3725,12 +3725,12 @@
|
|
|
3725
3725
|
var tmp15_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(product).e7(tmp14_shr));
|
|
3726
3726
|
// Inline function 'kotlin.toUInt' call
|
|
3727
3727
|
var tmp0_toUInt_1 = _ULong___get_data__impl__fggpzb(tmp15_toUInt);
|
|
3728
|
-
var tmp17_plus = _UInt___init__impl__l7qpdl(tmp0_toUInt_1.
|
|
3728
|
+
var tmp17_plus = _UInt___init__impl__l7qpdl(tmp0_toUInt_1.v());
|
|
3729
3729
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3730
3730
|
var tmp16_toUInt = sum;
|
|
3731
3731
|
// Inline function 'kotlin.toUInt' call
|
|
3732
3732
|
var tmp0_toUInt_2 = _ULong___get_data__impl__fggpzb(tmp16_toUInt);
|
|
3733
|
-
var tmp18_plus = _UInt___init__impl__l7qpdl(tmp0_toUInt_2.
|
|
3733
|
+
var tmp18_plus = _UInt___init__impl__l7qpdl(tmp0_toUInt_2.v());
|
|
3734
3734
|
tmp$ret$20 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(tmp17_plus) + _UInt___get_data__impl__f0vqqw(tmp18_plus) | 0);
|
|
3735
3735
|
UIntArray__set_impl_7f2zu2(result, tmp, tmp$ret$20);
|
|
3736
3736
|
}
|
|
@@ -3840,7 +3840,7 @@
|
|
|
3840
3840
|
// Inline function 'kotlin.ULong.toUInt' call
|
|
3841
3841
|
// Inline function 'kotlin.toUInt' call
|
|
3842
3842
|
var tmp0_toUInt = _ULong___get_data__impl__fggpzb(qjhat);
|
|
3843
|
-
tmp_3 = _UInt___init__impl__l7qpdl(tmp0_toUInt.
|
|
3843
|
+
tmp_3 = _UInt___init__impl__l7qpdl(tmp0_toUInt.v());
|
|
3844
3844
|
} else {
|
|
3845
3845
|
// Inline function 'kotlin.UInt.minus' call
|
|
3846
3846
|
var tmp20_minus = this.vm_1;
|
|
@@ -3912,7 +3912,7 @@
|
|
|
3912
3912
|
var index = 0;
|
|
3913
3913
|
var tmp0_iterator = ULongArray__iterator_impl_cq4d2h(second);
|
|
3914
3914
|
while (tmp0_iterator.g()) {
|
|
3915
|
-
var item = tmp0_iterator.h().
|
|
3915
|
+
var item = tmp0_iterator.h().g1_1;
|
|
3916
3916
|
// Inline function 'com.ionspin.kotlin.bignum.integer.base63.array.BigInteger63Arithmetic.basecaseMultiplyWithCorrectedSize.<anonymous>' call
|
|
3917
3917
|
var tmp1 = index;
|
|
3918
3918
|
index = tmp1 + 1 | 0;
|
|
@@ -4505,7 +4505,7 @@
|
|
|
4505
4505
|
var tmp = n;
|
|
4506
4506
|
// Inline function 'kotlin.ULong.toInt' call
|
|
4507
4507
|
var tmp6_toInt = x;
|
|
4508
|
-
return tmp - _ULong___get_data__impl__fggpzb(tmp6_toInt).
|
|
4508
|
+
return tmp - _ULong___get_data__impl__fggpzb(tmp6_toInt).v() | 0;
|
|
4509
4509
|
};
|
|
4510
4510
|
protoOf(BigInteger63Arithmetic).vo = function (value) {
|
|
4511
4511
|
var x = value;
|
|
@@ -4573,7 +4573,7 @@
|
|
|
4573
4573
|
var tmp = n;
|
|
4574
4574
|
// Inline function 'kotlin.ULong.toInt' call
|
|
4575
4575
|
var tmp18_toInt = x;
|
|
4576
|
-
return tmp - _ULong___get_data__impl__fggpzb(tmp18_toInt).
|
|
4576
|
+
return tmp - _ULong___get_data__impl__fggpzb(tmp18_toInt).v() | 0;
|
|
4577
4577
|
};
|
|
4578
4578
|
protoOf(BigInteger63Arithmetic).oj = function (value) {
|
|
4579
4579
|
if (isZero(value, this)) {
|
|
@@ -4598,7 +4598,7 @@
|
|
|
4598
4598
|
var list = ArrayList_init_$Create$();
|
|
4599
4599
|
var tmp0_iterator = ULongArray__iterator_impl_cq4d2h(value);
|
|
4600
4600
|
$l$loop: while (tmp0_iterator.g()) {
|
|
4601
|
-
var item = tmp0_iterator.h().
|
|
4601
|
+
var item = tmp0_iterator.h().g1_1;
|
|
4602
4602
|
// Inline function 'com.ionspin.kotlin.bignum.integer.base63.array.BigInteger63Arithmetic.trailingZeroBits.<anonymous>' call
|
|
4603
4603
|
if (!equals(item, _ULong___init__impl__c78o9k(new Long(0, 0))))
|
|
4604
4604
|
break $l$loop;
|
|
@@ -5340,14 +5340,14 @@
|
|
|
5340
5340
|
if (exponent.equals(new Long(1, 0))) {
|
|
5341
5341
|
return base;
|
|
5342
5342
|
}
|
|
5343
|
-
if ((_ULongArray___get_size__impl__ju6dtr(base) === 1 ? equals(ULongArray__get_impl_pr71q9(base, 0), _ULong___init__impl__c78o9k(new Long(10, 0))) : false) ? exponent.
|
|
5344
|
-
return this.hl_1[exponent.
|
|
5343
|
+
if ((_ULongArray___get_size__impl__ju6dtr(base) === 1 ? equals(ULongArray__get_impl_pr71q9(base, 0), _ULong___init__impl__c78o9k(new Long(10, 0))) : false) ? exponent.w(toLong(this.hl_1.length)) < 0 : false) {
|
|
5344
|
+
return this.hl_1[exponent.v()].z6_1;
|
|
5345
5345
|
}
|
|
5346
5346
|
var firstCorrectedSize = _ULongArray___get_size__impl__ju6dtr(base) - this.no(base) | 0;
|
|
5347
5347
|
var helperVar = this.sk_1;
|
|
5348
5348
|
var exponentVar = exponent;
|
|
5349
5349
|
var baseVar = base;
|
|
5350
|
-
while (exponentVar.
|
|
5350
|
+
while (exponentVar.w(new Long(1, 0)) > 0) {
|
|
5351
5351
|
// Inline function 'kotlin.Long.rem' call
|
|
5352
5352
|
if (exponentVar.c7(new Long(2, 0)).equals(new Long(0, 0))) {
|
|
5353
5353
|
baseVar = this.so(baseVar, baseVar);
|
|
@@ -5548,7 +5548,7 @@
|
|
|
5548
5548
|
var tmp3_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp1_and).i6(_ULong___get_data__impl__fggpzb(tmp2_and)));
|
|
5549
5549
|
// Inline function 'kotlin.toUInt' call
|
|
5550
5550
|
var tmp0_toUInt = _ULong___get_data__impl__fggpzb(tmp3_toUInt);
|
|
5551
|
-
tmp$ret$3 = _UInt___init__impl__l7qpdl(tmp0_toUInt.
|
|
5551
|
+
tmp$ret$3 = _UInt___init__impl__l7qpdl(tmp0_toUInt.v());
|
|
5552
5552
|
UIntArray__set_impl_7f2zu2(result, tmp, tmp$ret$3);
|
|
5553
5553
|
var tmp_0 = imul(2, i) + 1 | 0;
|
|
5554
5554
|
var tmp$ret$6;
|
|
@@ -5558,7 +5558,7 @@
|
|
|
5558
5558
|
var tmp5_toUInt = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(tmp4_shr).e7(32));
|
|
5559
5559
|
// Inline function 'kotlin.toUInt' call
|
|
5560
5560
|
var tmp0_toUInt_0 = _ULong___get_data__impl__fggpzb(tmp5_toUInt);
|
|
5561
|
-
tmp$ret$6 = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.
|
|
5561
|
+
tmp$ret$6 = _UInt___init__impl__l7qpdl(tmp0_toUInt_0.v());
|
|
5562
5562
|
UIntArray__set_impl_7f2zu2(result, tmp_0, tmp$ret$6);
|
|
5563
5563
|
}
|
|
5564
5564
|
while (inductionVariable < last);
|