@flock/wirespec 0.19.5 → 0.20.0-RC.1
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/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +167 -167
- package/clikt-clikt-mordant.mjs +81 -81
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1636 -1636
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +448 -448
- package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
- package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
- package/kotest-kotest-common.mjs +56 -0
- package/kotest-kotest-common.mjs.map +1 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
- package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
- package/kotest-kotest-property.mjs +2501 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5263 -2481
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10243 -10243
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1846 -1846
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2135 -2101
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1579 -1579
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1435 -1435
- package/package.json +5 -1
- package/wirespec-generator.d.ts +51 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1598 -1598
- package/wirespec-src-compiler-emitters-java.mjs +445 -445
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +343 -343
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +429 -429
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +482 -482
- package/wirespec-src-compiler-emitters-scala.mjs +194 -194
- package/wirespec-src-compiler-emitters-typescript.mjs +530 -530
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +87 -87
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +3887 -3863
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +457 -457
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +521 -521
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +859 -859
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-ide-lsp.mjs +1387 -1387
- package/wirespec-src-ide-lsp.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1647 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +192 -192
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +109 -109
- package/wirespec-src-plugin-npm.d.mts +21 -0
- package/wirespec-src-plugin-npm.mjs +43 -43
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +35 -35
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/xmlutil-core.mjs +4 -0
- package/xmlutil-core.mjs.map +1 -0
- package/xmlutil-serialization.mjs +4 -0
- package/xmlutil-serialization.mjs.map +1 -0
|
@@ -0,0 +1,2501 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
3
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
4
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
5
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
6
|
+
toString1pkumu07cwy4m as toString,
|
|
7
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
8
|
+
generateSequence3b5pkcqrpr2fo as generateSequence,
|
|
9
|
+
flatten2xcyr6x6x7b3e as flatten,
|
|
10
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
11
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
12
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
13
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
14
|
+
toString30pk9tzaqopn as toString_0,
|
|
15
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
16
|
+
equals2au1ep9vhcato as equals,
|
|
17
|
+
getNumberHashCode2l4nbdcihl25f as getNumberHashCode,
|
|
18
|
+
emptyList1g2z5xcrvp2zy as emptyList,
|
|
19
|
+
lazy2hsh8ze7j6ikd as lazy,
|
|
20
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
21
|
+
distinct10qe1scfdvu5k as distinct,
|
|
22
|
+
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
23
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
24
|
+
listOf1jh22dvmctj1r as listOf,
|
|
25
|
+
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
26
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
27
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
28
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
29
|
+
Enum3alwj03lh1n41 as Enum,
|
|
30
|
+
EmptyCoroutineContext_getInstance10e98b8bnsvr1 as EmptyCoroutineContext_getInstance,
|
|
31
|
+
throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException,
|
|
32
|
+
_Result___get_value__impl__bjfvqg3630bgmytqwyb as _Result___get_value__impl__bjfvqg,
|
|
33
|
+
_Result___init__impl__xyqfz83a5421h46yeyh as _Result___init__impl__xyqfz8,
|
|
34
|
+
Companion_instance25ullnynvxd0w as Companion_instance,
|
|
35
|
+
_Result___get_isSuccess__impl__sndoy83aknnjk4qd85h as _Result___get_isSuccess__impl__sndoy8,
|
|
36
|
+
throwOnFailure24snjmtlqgzo8 as throwOnFailure,
|
|
37
|
+
IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
|
|
38
|
+
startCoroutineUninterceptedOrReturnNonGeneratorVersionyfrrvzbtl8bf as startCoroutineUninterceptedOrReturnNonGeneratorVersion,
|
|
39
|
+
Continuation1aa2oekvx7jm7 as Continuation,
|
|
40
|
+
random234odtwlu7lq2 as random,
|
|
41
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
42
|
+
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
43
|
+
ClosedRangehokgr73im9z3 as ClosedRange,
|
|
44
|
+
containsztqhvjtb696l as contains,
|
|
45
|
+
toByte4i43936u611k as toByte,
|
|
46
|
+
_UByte___get_data__impl__jof9qrfg5oujomrowy as _UByte___get_data__impl__jof9qr,
|
|
47
|
+
_UInt___init__impl__l7qpdl3eewek7byy9h9 as _UInt___init__impl__l7qpdl,
|
|
48
|
+
UInt1hthisrv6cndi as UInt,
|
|
49
|
+
_UInt___get_data__impl__f0vqqw3lsr2hwtcnhrf as _UInt___get_data__impl__f0vqqw,
|
|
50
|
+
_UByte___init__impl__g9hnc418b8pq346rvu4 as _UByte___init__impl__g9hnc4,
|
|
51
|
+
UBytep4j7r1t64gz1 as UByte,
|
|
52
|
+
toByteArray3caw0hip00os as toByteArray,
|
|
53
|
+
first1cs6gg5jrulfl as first,
|
|
54
|
+
filter184huxd00uyfg as filter,
|
|
55
|
+
firstqtqxwgtggxw8 as first_0,
|
|
56
|
+
UIntRangemvq5a1vbdqql as UIntRange,
|
|
57
|
+
take3onnpy6q7ctcz as take,
|
|
58
|
+
dropLast1vpiyky649o34 as dropLast,
|
|
59
|
+
drop3na99dw9feawf as drop,
|
|
60
|
+
listOfvhqybd2zx248 as listOf_0,
|
|
61
|
+
KtList3hktaavzmj137 as KtList,
|
|
62
|
+
random1sf5nh8jpeq5r as random_0,
|
|
63
|
+
firstOrNull1982767dljvdy as firstOrNull,
|
|
64
|
+
listOfNotNull2woi2boe01ub4 as listOfNotNull,
|
|
65
|
+
nextInt2pxj3bzg1eemu as nextInt,
|
|
66
|
+
take2rh6pen3z50h7 as take_0,
|
|
67
|
+
toListx6x8nvfmvvht as toList,
|
|
68
|
+
rangeTo5xinnemk0fd3 as rangeTo,
|
|
69
|
+
plus310ted5e4i90h as plus,
|
|
70
|
+
RegexOption_IGNORE_CASE_getInstance2ohbx186qe23p as RegexOption_IGNORE_CASE_getInstance,
|
|
71
|
+
Regex_init_$Create$o3w44y7t0smx as Regex_init_$Create$,
|
|
72
|
+
isFinite2t9l5a275mxm6 as isFinite,
|
|
73
|
+
toDouble1kn912gjoizjp as toDouble,
|
|
74
|
+
listOfNotNull1v4ggfackvuny as listOfNotNull_0,
|
|
75
|
+
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
76
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
77
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
78
|
+
_Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
|
|
79
|
+
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
80
|
+
last2n4gf5az1lkn4 as last,
|
|
81
|
+
isDigit3mimrri4wkzop as isDigit,
|
|
82
|
+
take9j4462mea726 as take_1,
|
|
83
|
+
takeLast2r8kr8e6g6hi7 as takeLast,
|
|
84
|
+
dropLastlqc2oyv04br0 as dropLast_0,
|
|
85
|
+
rangeToeizvz34h11nd as rangeTo_0,
|
|
86
|
+
isFinite1tx0gn65nl9tj as isFinite_0,
|
|
87
|
+
abs1kdzbjes1idip as abs,
|
|
88
|
+
reversed22y3au42jl32b as reversed,
|
|
89
|
+
plus2lupu3ot2lvhl as plus_0,
|
|
90
|
+
distinct24ithjwsnuqq8 as distinct_0,
|
|
91
|
+
uintDivide3r5nfwgstcow1 as uintDivide,
|
|
92
|
+
UInt__toInt_impl_93yt4d1l5chk3dckogz as UInt__toInt_impl_93yt4d,
|
|
93
|
+
toUInt2yfjuryeoq592 as toUInt,
|
|
94
|
+
UInt__compareTo_impl_yacclj2qzfiopi3rnn0 as UInt__compareTo_impl_yacclj,
|
|
95
|
+
uintCompare18k97xs29243i as uintCompare,
|
|
96
|
+
Long2qws0ah9gnpki as Long,
|
|
97
|
+
longRangeToLong1wnzlyc7cu6kp as longRangeToLong,
|
|
98
|
+
longArrayOf1jqne2a8v34i5 as longArrayOf,
|
|
99
|
+
compare2uud5j30pw5xc as compare,
|
|
100
|
+
abs22kdeprm0tm5i as abs_0,
|
|
101
|
+
fromInt1lka3ktyu79a4 as fromInt,
|
|
102
|
+
divide3tol6kxdi8xn6 as divide,
|
|
103
|
+
multiply18i3gv3wlmcjg as multiply,
|
|
104
|
+
subtract16cg4lfi29fq9 as subtract,
|
|
105
|
+
equalsLong28bsrfhwvd686 as equalsLong,
|
|
106
|
+
nextLong1aiee7lbc67js as nextLong,
|
|
107
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
108
|
+
plus20p0vtfmu0596 as plus_1,
|
|
109
|
+
toLongkk4waq8msp1k as toLong,
|
|
110
|
+
Randomei1bbeye8rr8 as Random,
|
|
111
|
+
Default_getInstance1yflkybdrpcz6 as Default_getInstance,
|
|
112
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
113
|
+
import {
|
|
114
|
+
sysprop1tygc7b8xvq3v as sysprop,
|
|
115
|
+
sysprop25ryjwiz3kcc3 as sysprop_0,
|
|
116
|
+
syspropm73f0zr5j4q2 as sysprop_1,
|
|
117
|
+
sysprop28jkvofav1dz as sysprop_2,
|
|
118
|
+
syspropvs0igg2iawwa as sysprop_3,
|
|
119
|
+
} from './kotest-kotest-common.mjs';
|
|
120
|
+
//region block: imports
|
|
121
|
+
var imul = Math.imul;
|
|
122
|
+
//endregion
|
|
123
|
+
//region block: pre-declaration
|
|
124
|
+
initMetadataForClass(Gen, 'Gen');
|
|
125
|
+
initMetadataForCompanion(Companion);
|
|
126
|
+
initMetadataForClass(Arb, 'Arb', VOID, Gen);
|
|
127
|
+
initMetadataForClass(Sample, 'Sample');
|
|
128
|
+
initMetadataForCompanion(Companion_0);
|
|
129
|
+
initMetadataForClass(EdgeConfig, 'EdgeConfig', EdgeConfig);
|
|
130
|
+
initMetadataForClass(Exhaustive, 'Exhaustive', VOID, Gen);
|
|
131
|
+
initMetadataForClass(RTree, 'RTree');
|
|
132
|
+
initMetadataForClass(bimap$1);
|
|
133
|
+
initMetadataForClass(ShrinkingMode, 'ShrinkingMode');
|
|
134
|
+
initMetadataForObject(Off, 'Off', VOID, ShrinkingMode);
|
|
135
|
+
initMetadataForObject(Unbounded, 'Unbounded', VOID, ShrinkingMode);
|
|
136
|
+
initMetadataForClass(Bounded, 'Bounded', VOID, ShrinkingMode);
|
|
137
|
+
initMetadataForLambda(boolean$slambda, CoroutineImpl, VOID, [2]);
|
|
138
|
+
initMetadataForInterface(ArbitraryBuilderContext, 'ArbitraryBuilderContext', VOID, VOID, VOID, [1]);
|
|
139
|
+
initMetadataForClass(SingleShotGenerationMode, 'SingleShotGenerationMode', VOID, Enum);
|
|
140
|
+
initMetadataForClass(SingleShotArbContinuation, 'SingleShotArbContinuation', VOID, VOID, [Continuation], [1]);
|
|
141
|
+
initMetadataForClass(Restricted, 'Restricted', VOID, SingleShotArbContinuation, [SingleShotArbContinuation, ArbitraryBuilderContext], [1]);
|
|
142
|
+
initMetadataForCompanion(Companion_1);
|
|
143
|
+
initMetadataForClass(ArbitraryBuilder$build$1, VOID, VOID, Arb);
|
|
144
|
+
initMetadataForClass(ArbitraryBuilder, 'ArbitraryBuilder');
|
|
145
|
+
initMetadataForLambda(arbitrary$o$delegate$slambda, CoroutineImpl, VOID, [2]);
|
|
146
|
+
initMetadataForClass(arbitrary$1, VOID, VOID, Arb);
|
|
147
|
+
initMetadataForLambda(arbitraryBuilder$o$singleShotArb$slambda, CoroutineImpl, VOID, [1]);
|
|
148
|
+
initMetadataForClass(arbitraryBuilder$1, VOID, VOID, Arb);
|
|
149
|
+
initMetadataForLambda(arbitrary$o$delegate$slambda_1, CoroutineImpl, VOID, [2]);
|
|
150
|
+
initMetadataForClass(arbitrary$2, VOID, VOID, Arb);
|
|
151
|
+
initMetadataForLambda(arbitrary$slambda, CoroutineImpl, VOID, [2]);
|
|
152
|
+
initMetadataForLambda(arbitrary$o$delegate$slambda_3, CoroutineImpl, VOID, [2]);
|
|
153
|
+
initMetadataForClass(arbitrary$5, VOID, VOID, Arb);
|
|
154
|
+
initMetadataForLambda(byte$slambda, CoroutineImpl, VOID, [2]);
|
|
155
|
+
initMetadataForClass(ListShrinker, 'ListShrinker');
|
|
156
|
+
initMetadataForLambda(element$slambda, CoroutineImpl, VOID, [2]);
|
|
157
|
+
initMetadataForLambda(element$slambda_1, CoroutineImpl, VOID, [2]);
|
|
158
|
+
initMetadataForLambda(list$slambda, CoroutineImpl, VOID, [2]);
|
|
159
|
+
initMetadataForObject(DoubleShrinker, 'DoubleShrinker');
|
|
160
|
+
initMetadataForLambda(double$slambda, CoroutineImpl, VOID, [2]);
|
|
161
|
+
initMetadataForObject(FloatShrinker, 'FloatShrinker');
|
|
162
|
+
initMetadataForLambda(float$slambda, CoroutineImpl, VOID, [2]);
|
|
163
|
+
initMetadataForClass(IntShrinker, 'IntShrinker');
|
|
164
|
+
initMetadataForClass(UIntShrinker, 'UIntShrinker');
|
|
165
|
+
initMetadataForClass(LongShrinker, 'LongShrinker');
|
|
166
|
+
initMetadataForClass(TrampolineArb, 'TrampolineArb', VOID, Arb);
|
|
167
|
+
initMetadataForClass(map$2$1, VOID, VOID, Arb);
|
|
168
|
+
initMetadataForClass(IntClassifier, 'IntClassifier');
|
|
169
|
+
initMetadataForClass(LongClassifier, 'LongClassifier');
|
|
170
|
+
initMetadataForObject(PropertyTesting, 'PropertyTesting');
|
|
171
|
+
initMetadataForClass(LabelOrder, 'LabelOrder', VOID, Enum);
|
|
172
|
+
initMetadataForCompanion(Companion_2);
|
|
173
|
+
initMetadataForClass(RandomSource, 'RandomSource');
|
|
174
|
+
initMetadataForClass(StatisticsReportMode, 'StatisticsReportMode', VOID, Enum);
|
|
175
|
+
initMetadataForObject(DefaultStatisticsReporter, 'DefaultStatisticsReporter', VOID, VOID, VOID, [3, 1]);
|
|
176
|
+
//endregion
|
|
177
|
+
function Gen$generate$lambda($rs, $edgeConfig, this$0, $samples) {
|
|
178
|
+
return function () {
|
|
179
|
+
var isEdgeCase = $rs.m6m_1.oi(0.0, 1.0) < $edgeConfig.o6m_1;
|
|
180
|
+
var tmp;
|
|
181
|
+
if (isEdgeCase) {
|
|
182
|
+
var tmp0_elvis_lhs = this$0.q6m($rs);
|
|
183
|
+
tmp = tmp0_elvis_lhs == null ? $samples.v() : tmp0_elvis_lhs;
|
|
184
|
+
} else {
|
|
185
|
+
tmp = $samples.v();
|
|
186
|
+
}
|
|
187
|
+
return tmp;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function Gen$generate$lambda_0(this$0) {
|
|
191
|
+
return function () {
|
|
192
|
+
// Inline function 'kotlin.collections.map' call
|
|
193
|
+
var this_0 = this$0.s2();
|
|
194
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
195
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
196
|
+
var _iterator__ex2g4s = this_0.t();
|
|
197
|
+
while (_iterator__ex2g4s.u()) {
|
|
198
|
+
var item = _iterator__ex2g4s.v();
|
|
199
|
+
var tmp$ret$0 = new Sample(item);
|
|
200
|
+
destination.y(tmp$ret$0);
|
|
201
|
+
}
|
|
202
|
+
return destination;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
function Gen() {
|
|
206
|
+
this.s6m_1 = null;
|
|
207
|
+
}
|
|
208
|
+
protoOf(Gen).t6m = function (rs, edgeConfig) {
|
|
209
|
+
var tmp;
|
|
210
|
+
if (this instanceof Arb) {
|
|
211
|
+
var samples = this.u6m(rs).t();
|
|
212
|
+
tmp = generateSequence(Gen$generate$lambda(rs, edgeConfig, this, samples));
|
|
213
|
+
} else {
|
|
214
|
+
if (this instanceof Exhaustive) {
|
|
215
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
216
|
+
// Inline function 'kotlin.check' call
|
|
217
|
+
if (!!this.s2().r()) {
|
|
218
|
+
var message = "Exhaustive.values shouldn't be a empty list.";
|
|
219
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
220
|
+
}
|
|
221
|
+
tmp = flatten(generateSequence(Gen$generate$lambda_0(this)));
|
|
222
|
+
} else {
|
|
223
|
+
noWhenBranchMatchedException();
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return tmp;
|
|
227
|
+
};
|
|
228
|
+
protoOf(Gen).v6m = function (rs, edgeConfig, $super) {
|
|
229
|
+
edgeConfig = edgeConfig === VOID ? default_0(Companion_instance_1) : edgeConfig;
|
|
230
|
+
return $super === VOID ? this.t6m(rs, edgeConfig) : $super.t6m.call(this, rs, edgeConfig);
|
|
231
|
+
};
|
|
232
|
+
function Companion() {
|
|
233
|
+
}
|
|
234
|
+
var Companion_instance_0;
|
|
235
|
+
function Companion_getInstance() {
|
|
236
|
+
return Companion_instance_0;
|
|
237
|
+
}
|
|
238
|
+
function Arb$samples$lambda(this$0, $rs) {
|
|
239
|
+
return function () {
|
|
240
|
+
return this$0.w6m($rs);
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
function Arb() {
|
|
244
|
+
Gen.call(this);
|
|
245
|
+
}
|
|
246
|
+
protoOf(Arb).u6m = function (rs) {
|
|
247
|
+
return generateSequence(Arb$samples$lambda(this, rs));
|
|
248
|
+
};
|
|
249
|
+
function Sample$_init_$lambda_a4a8db($value) {
|
|
250
|
+
return function () {
|
|
251
|
+
return $value;
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
function Sample(value, shrinks) {
|
|
255
|
+
var tmp;
|
|
256
|
+
if (shrinks === VOID) {
|
|
257
|
+
tmp = new RTree(Sample$_init_$lambda_a4a8db(value));
|
|
258
|
+
} else {
|
|
259
|
+
tmp = shrinks;
|
|
260
|
+
}
|
|
261
|
+
shrinks = tmp;
|
|
262
|
+
this.x6m_1 = value;
|
|
263
|
+
this.y6m_1 = shrinks;
|
|
264
|
+
}
|
|
265
|
+
protoOf(Sample).toString = function () {
|
|
266
|
+
return 'Sample(value=' + toString_0(this.x6m_1) + ', shrinks=' + this.y6m_1.toString() + ')';
|
|
267
|
+
};
|
|
268
|
+
protoOf(Sample).hashCode = function () {
|
|
269
|
+
var result = this.x6m_1 == null ? 0 : hashCode(this.x6m_1);
|
|
270
|
+
result = imul(result, 31) + this.y6m_1.hashCode() | 0;
|
|
271
|
+
return result;
|
|
272
|
+
};
|
|
273
|
+
protoOf(Sample).equals = function (other) {
|
|
274
|
+
if (this === other)
|
|
275
|
+
return true;
|
|
276
|
+
if (!(other instanceof Sample))
|
|
277
|
+
return false;
|
|
278
|
+
if (!equals(this.x6m_1, other.x6m_1))
|
|
279
|
+
return false;
|
|
280
|
+
if (!this.y6m_1.equals(other.y6m_1))
|
|
281
|
+
return false;
|
|
282
|
+
return true;
|
|
283
|
+
};
|
|
284
|
+
function Companion_0() {
|
|
285
|
+
}
|
|
286
|
+
var Companion_instance_1;
|
|
287
|
+
function Companion_getInstance_0() {
|
|
288
|
+
return Companion_instance_1;
|
|
289
|
+
}
|
|
290
|
+
function EdgeConfig(edgecasesGenerationProbability) {
|
|
291
|
+
edgecasesGenerationProbability = edgecasesGenerationProbability === VOID ? PropertyTesting_getInstance().m6n_1 : edgecasesGenerationProbability;
|
|
292
|
+
this.o6m_1 = edgecasesGenerationProbability;
|
|
293
|
+
var containsArg = this.o6m_1;
|
|
294
|
+
// Inline function 'kotlin.check' call
|
|
295
|
+
if (!(0.0 <= containsArg ? containsArg <= 1.0 : false)) {
|
|
296
|
+
var message = 'provided edgecasesProbability ' + this.o6m_1 + ' is not between 0.0 and 1.0';
|
|
297
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
protoOf(EdgeConfig).toString = function () {
|
|
301
|
+
return 'EdgeConfig(edgecasesGenerationProbability=' + this.o6m_1 + ')';
|
|
302
|
+
};
|
|
303
|
+
protoOf(EdgeConfig).hashCode = function () {
|
|
304
|
+
return getNumberHashCode(this.o6m_1);
|
|
305
|
+
};
|
|
306
|
+
protoOf(EdgeConfig).equals = function (other) {
|
|
307
|
+
if (this === other)
|
|
308
|
+
return true;
|
|
309
|
+
if (!(other instanceof EdgeConfig))
|
|
310
|
+
return false;
|
|
311
|
+
if (!equals(this.o6m_1, other.o6m_1))
|
|
312
|
+
return false;
|
|
313
|
+
return true;
|
|
314
|
+
};
|
|
315
|
+
function Exhaustive() {
|
|
316
|
+
}
|
|
317
|
+
protoOf(Exhaustive).v6n = function () {
|
|
318
|
+
return of(Companion_instance_0, this.s2());
|
|
319
|
+
};
|
|
320
|
+
function asSample(_this__u8e3s4) {
|
|
321
|
+
return new Sample(_this__u8e3s4);
|
|
322
|
+
}
|
|
323
|
+
function sampleOf(a, shrinker) {
|
|
324
|
+
return new Sample(a, rtree(shrinker, a));
|
|
325
|
+
}
|
|
326
|
+
function RTree$_init_$lambda_icbwyt() {
|
|
327
|
+
return emptyList();
|
|
328
|
+
}
|
|
329
|
+
function RTree(value, children) {
|
|
330
|
+
var tmp;
|
|
331
|
+
if (children === VOID) {
|
|
332
|
+
tmp = lazy(RTree$_init_$lambda_icbwyt);
|
|
333
|
+
} else {
|
|
334
|
+
tmp = children;
|
|
335
|
+
}
|
|
336
|
+
children = tmp;
|
|
337
|
+
this.w6n_1 = value;
|
|
338
|
+
this.x6n_1 = children;
|
|
339
|
+
}
|
|
340
|
+
protoOf(RTree).toString = function () {
|
|
341
|
+
return 'RTree(value=' + toString(this.w6n_1) + ', children=' + toString(this.x6n_1) + ')';
|
|
342
|
+
};
|
|
343
|
+
protoOf(RTree).hashCode = function () {
|
|
344
|
+
var result = hashCode(this.w6n_1);
|
|
345
|
+
result = imul(result, 31) + hashCode(this.x6n_1) | 0;
|
|
346
|
+
return result;
|
|
347
|
+
};
|
|
348
|
+
protoOf(RTree).equals = function (other) {
|
|
349
|
+
if (this === other)
|
|
350
|
+
return true;
|
|
351
|
+
if (!(other instanceof RTree))
|
|
352
|
+
return false;
|
|
353
|
+
if (!equals(this.w6n_1, other.w6n_1))
|
|
354
|
+
return false;
|
|
355
|
+
if (!equals(this.x6n_1, other.x6n_1))
|
|
356
|
+
return false;
|
|
357
|
+
return true;
|
|
358
|
+
};
|
|
359
|
+
function bimap(_this__u8e3s4, f, g) {
|
|
360
|
+
return new bimap$1(_this__u8e3s4, f, g);
|
|
361
|
+
}
|
|
362
|
+
function rtree(_this__u8e3s4, value) {
|
|
363
|
+
var fn = rtree$lambda(value);
|
|
364
|
+
return rtree_0(_this__u8e3s4, fn);
|
|
365
|
+
}
|
|
366
|
+
function rtree_0(_this__u8e3s4, value) {
|
|
367
|
+
return new RTree(value, lazy(rtree$lambda_0(value, _this__u8e3s4)));
|
|
368
|
+
}
|
|
369
|
+
function map(_this__u8e3s4, f) {
|
|
370
|
+
var b = map$lambda(f, _this__u8e3s4);
|
|
371
|
+
var c = lazy(map$lambda_0(_this__u8e3s4, f));
|
|
372
|
+
return new RTree(b, c);
|
|
373
|
+
}
|
|
374
|
+
function bimap$1($this_bimap, $f, $g) {
|
|
375
|
+
this.y6n_1 = $this_bimap;
|
|
376
|
+
this.z6n_1 = $f;
|
|
377
|
+
this.a6o_1 = $g;
|
|
378
|
+
}
|
|
379
|
+
protoOf(bimap$1).b6o = function (value) {
|
|
380
|
+
var tmp0 = this.y6n_1.c6o(this.z6n_1(value));
|
|
381
|
+
// Inline function 'kotlin.collections.map' call
|
|
382
|
+
var transform = this.a6o_1;
|
|
383
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
384
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0, 10));
|
|
385
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
386
|
+
while (_iterator__ex2g4s.u()) {
|
|
387
|
+
var item = _iterator__ex2g4s.v();
|
|
388
|
+
destination.y(transform(item));
|
|
389
|
+
}
|
|
390
|
+
return destination;
|
|
391
|
+
};
|
|
392
|
+
protoOf(bimap$1).c6o = function (value) {
|
|
393
|
+
return this.b6o((value == null ? true : !(value == null)) ? value : THROW_CCE());
|
|
394
|
+
};
|
|
395
|
+
function rtree$lambda($value) {
|
|
396
|
+
return function () {
|
|
397
|
+
return $value;
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
function rtree$lambda_0($value, $this_rtree) {
|
|
401
|
+
return function () {
|
|
402
|
+
var a = $value();
|
|
403
|
+
// Inline function 'kotlin.collections.filter' call
|
|
404
|
+
var tmp0 = distinct($this_rtree.c6o(a));
|
|
405
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
406
|
+
var destination = ArrayList_init_$Create$_0();
|
|
407
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
408
|
+
while (_iterator__ex2g4s.u()) {
|
|
409
|
+
var element = _iterator__ex2g4s.v();
|
|
410
|
+
if (!equals(element, a)) {
|
|
411
|
+
destination.y(element);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
// Inline function 'kotlin.collections.map' call
|
|
415
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
416
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
417
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
418
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
419
|
+
var item = _iterator__ex2g4s_0.v();
|
|
420
|
+
var tmp$ret$3 = rtree($this_rtree, item);
|
|
421
|
+
destination_0.y(tmp$ret$3);
|
|
422
|
+
}
|
|
423
|
+
return destination_0;
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
function map$lambda($f, $this_map) {
|
|
427
|
+
return function () {
|
|
428
|
+
return $f($this_map.w6n_1());
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function map$lambda_0($this_map, $f) {
|
|
432
|
+
return function () {
|
|
433
|
+
// Inline function 'kotlin.collections.map' call
|
|
434
|
+
var this_0 = $this_map.x6n_1.m1();
|
|
435
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
436
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
437
|
+
var _iterator__ex2g4s = this_0.t();
|
|
438
|
+
while (_iterator__ex2g4s.u()) {
|
|
439
|
+
var item = _iterator__ex2g4s.v();
|
|
440
|
+
var tmp$ret$0 = map(item, $f);
|
|
441
|
+
destination.y(tmp$ret$0);
|
|
442
|
+
}
|
|
443
|
+
return destination;
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
function Off() {
|
|
447
|
+
Off_instance = this;
|
|
448
|
+
ShrinkingMode.call(this);
|
|
449
|
+
}
|
|
450
|
+
var Off_instance;
|
|
451
|
+
function Off_getInstance() {
|
|
452
|
+
if (Off_instance == null)
|
|
453
|
+
new Off();
|
|
454
|
+
return Off_instance;
|
|
455
|
+
}
|
|
456
|
+
function Unbounded() {
|
|
457
|
+
Unbounded_instance = this;
|
|
458
|
+
ShrinkingMode.call(this);
|
|
459
|
+
}
|
|
460
|
+
var Unbounded_instance;
|
|
461
|
+
function Unbounded_getInstance() {
|
|
462
|
+
if (Unbounded_instance == null)
|
|
463
|
+
new Unbounded();
|
|
464
|
+
return Unbounded_instance;
|
|
465
|
+
}
|
|
466
|
+
function Bounded(bound) {
|
|
467
|
+
ShrinkingMode.call(this);
|
|
468
|
+
this.d6o_1 = bound;
|
|
469
|
+
}
|
|
470
|
+
protoOf(Bounded).toString = function () {
|
|
471
|
+
return 'Bounded(bound=' + this.d6o_1 + ')';
|
|
472
|
+
};
|
|
473
|
+
protoOf(Bounded).hashCode = function () {
|
|
474
|
+
return this.d6o_1;
|
|
475
|
+
};
|
|
476
|
+
protoOf(Bounded).equals = function (other) {
|
|
477
|
+
if (this === other)
|
|
478
|
+
return true;
|
|
479
|
+
if (!(other instanceof Bounded))
|
|
480
|
+
return false;
|
|
481
|
+
if (!(this.d6o_1 === other.d6o_1))
|
|
482
|
+
return false;
|
|
483
|
+
return true;
|
|
484
|
+
};
|
|
485
|
+
function ShrinkingMode() {
|
|
486
|
+
}
|
|
487
|
+
function next(_this__u8e3s4, rs) {
|
|
488
|
+
rs = rs === VOID ? Companion_instance_3.e6o() : rs;
|
|
489
|
+
return single(_this__u8e3s4, rs);
|
|
490
|
+
}
|
|
491
|
+
function single(_this__u8e3s4, rs) {
|
|
492
|
+
rs = rs === VOID ? Companion_instance_3.e6o() : rs;
|
|
493
|
+
return _this__u8e3s4.w6m(rs).x6m_1;
|
|
494
|
+
}
|
|
495
|
+
function boolean(_this__u8e3s4) {
|
|
496
|
+
var tmp = listOf([true, false]);
|
|
497
|
+
return arbitrary(tmp, boolean$slambda_0(null));
|
|
498
|
+
}
|
|
499
|
+
function boolean$slambda(resultContinuation) {
|
|
500
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
501
|
+
}
|
|
502
|
+
protoOf(boolean$slambda).p6o = function ($this$arbitrary, it, $completion) {
|
|
503
|
+
var tmp = this.q6o($this$arbitrary, it, $completion);
|
|
504
|
+
tmp.f9_1 = Unit_instance;
|
|
505
|
+
tmp.g9_1 = null;
|
|
506
|
+
return tmp.l9();
|
|
507
|
+
};
|
|
508
|
+
protoOf(boolean$slambda).r9 = function (p1, p2, $completion) {
|
|
509
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
510
|
+
return this.p6o(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
511
|
+
};
|
|
512
|
+
protoOf(boolean$slambda).l9 = function () {
|
|
513
|
+
var suspendResult = this.f9_1;
|
|
514
|
+
$sm: do
|
|
515
|
+
try {
|
|
516
|
+
var tmp = this.d9_1;
|
|
517
|
+
if (tmp === 0) {
|
|
518
|
+
this.e9_1 = 1;
|
|
519
|
+
return this.o6o_1.m6m_1.mi();
|
|
520
|
+
} else if (tmp === 1) {
|
|
521
|
+
throw this.g9_1;
|
|
522
|
+
}
|
|
523
|
+
} catch ($p) {
|
|
524
|
+
var e = $p;
|
|
525
|
+
throw e;
|
|
526
|
+
}
|
|
527
|
+
while (true);
|
|
528
|
+
};
|
|
529
|
+
protoOf(boolean$slambda).q6o = function ($this$arbitrary, it, completion) {
|
|
530
|
+
var i = new boolean$slambda(completion);
|
|
531
|
+
i.n6o_1 = $this$arbitrary;
|
|
532
|
+
i.o6o_1 = it;
|
|
533
|
+
return i;
|
|
534
|
+
};
|
|
535
|
+
function boolean$slambda_0(resultContinuation) {
|
|
536
|
+
var i = new boolean$slambda(resultContinuation);
|
|
537
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
538
|
+
return i.p6o($this$arbitrary, it, $completion);
|
|
539
|
+
};
|
|
540
|
+
l.$arity = 2;
|
|
541
|
+
return l;
|
|
542
|
+
}
|
|
543
|
+
function arbitrary(edgecases, fn) {
|
|
544
|
+
return new arbitrary$1(edgecases, fn);
|
|
545
|
+
}
|
|
546
|
+
function ArbitraryBuilderContext() {
|
|
547
|
+
}
|
|
548
|
+
function arbitraryBuilder(shrinker, classifier, edgecaseFn, builderFn) {
|
|
549
|
+
shrinker = shrinker === VOID ? null : shrinker;
|
|
550
|
+
classifier = classifier === VOID ? null : classifier;
|
|
551
|
+
edgecaseFn = edgecaseFn === VOID ? null : edgecaseFn;
|
|
552
|
+
return new arbitraryBuilder$1(classifier, builderFn, shrinker, edgecaseFn);
|
|
553
|
+
}
|
|
554
|
+
var SingleShotGenerationMode_Edgecase_instance;
|
|
555
|
+
var SingleShotGenerationMode_Sample_instance;
|
|
556
|
+
var SingleShotGenerationMode_entriesInitialized;
|
|
557
|
+
function SingleShotGenerationMode_initEntries() {
|
|
558
|
+
if (SingleShotGenerationMode_entriesInitialized)
|
|
559
|
+
return Unit_instance;
|
|
560
|
+
SingleShotGenerationMode_entriesInitialized = true;
|
|
561
|
+
SingleShotGenerationMode_Edgecase_instance = new SingleShotGenerationMode('Edgecase', 0);
|
|
562
|
+
SingleShotGenerationMode_Sample_instance = new SingleShotGenerationMode('Sample', 1);
|
|
563
|
+
}
|
|
564
|
+
function SingleShotGenerationMode(name, ordinal) {
|
|
565
|
+
Enum.call(this, name, ordinal);
|
|
566
|
+
}
|
|
567
|
+
function Restricted(genMode, rs, fn) {
|
|
568
|
+
SingleShotArbContinuation.call(this, EmptyCoroutineContext_getInstance(), genMode, rs, fn);
|
|
569
|
+
}
|
|
570
|
+
function _get_returnedArb__lqgsvl($this) {
|
|
571
|
+
var tmp = $this.v6o_1;
|
|
572
|
+
if (!(tmp == null))
|
|
573
|
+
return tmp;
|
|
574
|
+
else {
|
|
575
|
+
throwUninitializedPropertyAccessException('returnedArb');
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
function SingleShotArbContinuation(context, generationMode, randomSource, fn) {
|
|
579
|
+
this.r6o_1 = context;
|
|
580
|
+
this.s6o_1 = generationMode;
|
|
581
|
+
this.t6o_1 = randomSource;
|
|
582
|
+
this.u6o_1 = fn;
|
|
583
|
+
this.w6o_1 = false;
|
|
584
|
+
}
|
|
585
|
+
protoOf(SingleShotArbContinuation).j9 = function () {
|
|
586
|
+
return this.r6o_1;
|
|
587
|
+
};
|
|
588
|
+
protoOf(SingleShotArbContinuation).x6o = function (result) {
|
|
589
|
+
this.w6o_1 = true;
|
|
590
|
+
// Inline function 'kotlin.map' call
|
|
591
|
+
var tmp;
|
|
592
|
+
if (_Result___get_isSuccess__impl__sndoy8(result)) {
|
|
593
|
+
var tmp_0 = _Result___get_value__impl__bjfvqg(result);
|
|
594
|
+
this.v6o_1 = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
595
|
+
// Inline function 'kotlin.Companion.success' call
|
|
596
|
+
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
597
|
+
} else {
|
|
598
|
+
tmp = _Result___init__impl__xyqfz8(_Result___get_value__impl__bjfvqg(result));
|
|
599
|
+
}
|
|
600
|
+
// Inline function 'kotlin.getOrThrow' call
|
|
601
|
+
var this_0 = tmp;
|
|
602
|
+
throwOnFailure(this_0);
|
|
603
|
+
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
604
|
+
if (!(tmp_1 == null ? true : !(tmp_1 == null)))
|
|
605
|
+
THROW_CCE();
|
|
606
|
+
};
|
|
607
|
+
protoOf(SingleShotArbContinuation).o9 = function (result) {
|
|
608
|
+
return this.x6o(result);
|
|
609
|
+
};
|
|
610
|
+
protoOf(SingleShotArbContinuation).y6o = function (_this__u8e3s4) {
|
|
611
|
+
// Inline function 'kotlin.require' call
|
|
612
|
+
if (!!this.w6o_1) {
|
|
613
|
+
var message = 'continuation has already been executed, if you see this error please raise a bug report';
|
|
614
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
615
|
+
}
|
|
616
|
+
// Inline function 'kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn' call
|
|
617
|
+
var this_0 = this.u6o_1;
|
|
618
|
+
var result = startCoroutineUninterceptedOrReturnNonGeneratorVersion(this_0, _this__u8e3s4, this);
|
|
619
|
+
var tmp = this;
|
|
620
|
+
tmp.v6o_1 = result instanceof Arb ? result : THROW_CCE();
|
|
621
|
+
return _get_returnedArb__lqgsvl(this);
|
|
622
|
+
};
|
|
623
|
+
function Companion_1() {
|
|
624
|
+
}
|
|
625
|
+
protoOf(Companion_1).z6o = function (f) {
|
|
626
|
+
return new ArbitraryBuilder(f, null, null, null);
|
|
627
|
+
};
|
|
628
|
+
var Companion_instance_2;
|
|
629
|
+
function Companion_getInstance_1() {
|
|
630
|
+
return Companion_instance_2;
|
|
631
|
+
}
|
|
632
|
+
function ArbitraryBuilder$withEdgecases$lambda($edgecases) {
|
|
633
|
+
return function (it) {
|
|
634
|
+
return $edgecases.r() ? null : asSample(random($edgecases, it.m6m_1));
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
function ArbitraryBuilder$build$1(this$0) {
|
|
638
|
+
this.c6p_1 = this$0;
|
|
639
|
+
Arb.call(this);
|
|
640
|
+
this.b6p_1 = this$0.e6p_1;
|
|
641
|
+
}
|
|
642
|
+
protoOf(ArbitraryBuilder$build$1).q6m = function (rs) {
|
|
643
|
+
var tmp0_safe_receiver = this.c6p_1.g6p_1;
|
|
644
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(rs);
|
|
645
|
+
};
|
|
646
|
+
protoOf(ArbitraryBuilder$build$1).w6m = function (rs) {
|
|
647
|
+
var sample = this.c6p_1.d6p_1(rs);
|
|
648
|
+
return this.c6p_1.f6p_1 == null ? new Sample(sample) : sampleOf(sample, this.c6p_1.f6p_1);
|
|
649
|
+
};
|
|
650
|
+
function ArbitraryBuilder(sampleFn, classifier, shrinker, edgecaseFn) {
|
|
651
|
+
this.d6p_1 = sampleFn;
|
|
652
|
+
this.e6p_1 = classifier;
|
|
653
|
+
this.f6p_1 = shrinker;
|
|
654
|
+
this.g6p_1 = edgecaseFn;
|
|
655
|
+
}
|
|
656
|
+
protoOf(ArbitraryBuilder).h6p = function (classifier) {
|
|
657
|
+
return new ArbitraryBuilder(this.d6p_1, classifier, this.f6p_1, this.g6p_1);
|
|
658
|
+
};
|
|
659
|
+
protoOf(ArbitraryBuilder).i6p = function (shrinker) {
|
|
660
|
+
return new ArbitraryBuilder(this.d6p_1, this.e6p_1, shrinker, this.g6p_1);
|
|
661
|
+
};
|
|
662
|
+
protoOf(ArbitraryBuilder).j6p = function (edgecases) {
|
|
663
|
+
return new ArbitraryBuilder(this.d6p_1, this.e6p_1, this.f6p_1, ArbitraryBuilder$withEdgecases$lambda(edgecases));
|
|
664
|
+
};
|
|
665
|
+
protoOf(ArbitraryBuilder).z1x = function () {
|
|
666
|
+
return new ArbitraryBuilder$build$1(this);
|
|
667
|
+
};
|
|
668
|
+
function arbitrary_0(edgecases, shrinker, fn) {
|
|
669
|
+
return new arbitrary$2(shrinker, edgecases, fn);
|
|
670
|
+
}
|
|
671
|
+
function arbitrary_1(fn) {
|
|
672
|
+
return arbitraryBuilder(VOID, VOID, VOID, arbitrary$slambda_0(fn, null));
|
|
673
|
+
}
|
|
674
|
+
function arbitrary_2(edgecaseFn, shrinker, sampleFn) {
|
|
675
|
+
return new arbitrary$5(shrinker, edgecaseFn, sampleFn);
|
|
676
|
+
}
|
|
677
|
+
function arbitrary$o$delegate$slambda($fn, resultContinuation) {
|
|
678
|
+
this.s6p_1 = $fn;
|
|
679
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
680
|
+
}
|
|
681
|
+
protoOf(arbitrary$o$delegate$slambda).v6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
682
|
+
var tmp = this.q6o($this$arbitraryBuilder, rs, $completion);
|
|
683
|
+
tmp.f9_1 = Unit_instance;
|
|
684
|
+
tmp.g9_1 = null;
|
|
685
|
+
return tmp.l9();
|
|
686
|
+
};
|
|
687
|
+
protoOf(arbitrary$o$delegate$slambda).r9 = function (p1, p2, $completion) {
|
|
688
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
689
|
+
return this.v6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
690
|
+
};
|
|
691
|
+
protoOf(arbitrary$o$delegate$slambda).l9 = function () {
|
|
692
|
+
var suspendResult = this.f9_1;
|
|
693
|
+
$sm: do
|
|
694
|
+
try {
|
|
695
|
+
var tmp = this.d9_1;
|
|
696
|
+
switch (tmp) {
|
|
697
|
+
case 0:
|
|
698
|
+
this.e9_1 = 2;
|
|
699
|
+
this.d9_1 = 1;
|
|
700
|
+
suspendResult = this.s6p_1(this.t6p_1, this.u6p_1, this);
|
|
701
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
702
|
+
return suspendResult;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
continue $sm;
|
|
706
|
+
case 1:
|
|
707
|
+
return suspendResult;
|
|
708
|
+
case 2:
|
|
709
|
+
throw this.g9_1;
|
|
710
|
+
}
|
|
711
|
+
} catch ($p) {
|
|
712
|
+
var e = $p;
|
|
713
|
+
if (this.e9_1 === 2) {
|
|
714
|
+
throw e;
|
|
715
|
+
} else {
|
|
716
|
+
this.d9_1 = this.e9_1;
|
|
717
|
+
this.g9_1 = e;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
while (true);
|
|
721
|
+
};
|
|
722
|
+
protoOf(arbitrary$o$delegate$slambda).q6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
723
|
+
var i = new arbitrary$o$delegate$slambda(this.s6p_1, completion);
|
|
724
|
+
i.t6p_1 = $this$arbitraryBuilder;
|
|
725
|
+
i.u6p_1 = rs;
|
|
726
|
+
return i;
|
|
727
|
+
};
|
|
728
|
+
function arbitrary$o$delegate$slambda_0($fn, resultContinuation) {
|
|
729
|
+
var i = new arbitrary$o$delegate$slambda($fn, resultContinuation);
|
|
730
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
731
|
+
return i.v6p($this$arbitraryBuilder, rs, $completion);
|
|
732
|
+
};
|
|
733
|
+
l.$arity = 2;
|
|
734
|
+
return l;
|
|
735
|
+
}
|
|
736
|
+
function arbitrary$1($edgecases, $fn) {
|
|
737
|
+
this.y6p_1 = $edgecases;
|
|
738
|
+
Arb.call(this);
|
|
739
|
+
var tmp = this;
|
|
740
|
+
tmp.x6p_1 = arbitraryBuilder(VOID, VOID, VOID, arbitrary$o$delegate$slambda_0($fn, null));
|
|
741
|
+
}
|
|
742
|
+
protoOf(arbitrary$1).q6m = function (rs) {
|
|
743
|
+
return this.y6p_1.r() ? null : asSample(random(this.y6p_1, rs.m6m_1));
|
|
744
|
+
};
|
|
745
|
+
protoOf(arbitrary$1).w6m = function (rs) {
|
|
746
|
+
return this.x6p_1.w6m(rs);
|
|
747
|
+
};
|
|
748
|
+
function arbitraryBuilder$o$singleShotArb$slambda$lambda($value) {
|
|
749
|
+
return function (it) {
|
|
750
|
+
return $value;
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
function arbitraryBuilder$o$singleShotArb$slambda$lambda_0($edgecaseFn, $value) {
|
|
754
|
+
return function (rs) {
|
|
755
|
+
var tmp0_safe_receiver = $edgecaseFn;
|
|
756
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(rs);
|
|
757
|
+
return tmp1_elvis_lhs == null ? asSample($value) : tmp1_elvis_lhs;
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
function singleShotArb($this, mode, rs) {
|
|
761
|
+
var restrictedContinuation = new Restricted(mode, rs, arbitraryBuilder$o$singleShotArb$slambda_0($this.c6q_1, rs, $this.b6q_1, $this.d6q_1, $this.e6q_1, null));
|
|
762
|
+
// Inline function 'kotlin.with' call
|
|
763
|
+
return restrictedContinuation.y6o(restrictedContinuation);
|
|
764
|
+
}
|
|
765
|
+
function arbitraryBuilder$o$singleShotArb$slambda($builderFn, $rs, $classifier, $shrinker, $edgecaseFn, resultContinuation) {
|
|
766
|
+
this.n6q_1 = $builderFn;
|
|
767
|
+
this.o6q_1 = $rs;
|
|
768
|
+
this.p6q_1 = $classifier;
|
|
769
|
+
this.q6q_1 = $shrinker;
|
|
770
|
+
this.r6q_1 = $edgecaseFn;
|
|
771
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
772
|
+
}
|
|
773
|
+
protoOf(arbitraryBuilder$o$singleShotArb$slambda).t6q = function ($this$Restricted, $completion) {
|
|
774
|
+
var tmp = this.u6q($this$Restricted, $completion);
|
|
775
|
+
tmp.f9_1 = Unit_instance;
|
|
776
|
+
tmp.g9_1 = null;
|
|
777
|
+
return tmp.l9();
|
|
778
|
+
};
|
|
779
|
+
protoOf(arbitraryBuilder$o$singleShotArb$slambda).s9 = function (p1, $completion) {
|
|
780
|
+
return this.t6q((!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE(), $completion);
|
|
781
|
+
};
|
|
782
|
+
protoOf(arbitraryBuilder$o$singleShotArb$slambda).l9 = function () {
|
|
783
|
+
var suspendResult = this.f9_1;
|
|
784
|
+
$sm: do
|
|
785
|
+
try {
|
|
786
|
+
var tmp = this.d9_1;
|
|
787
|
+
switch (tmp) {
|
|
788
|
+
case 0:
|
|
789
|
+
this.e9_1 = 2;
|
|
790
|
+
this.d9_1 = 1;
|
|
791
|
+
suspendResult = this.n6q_1(this.s6q_1, this.o6q_1, this);
|
|
792
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
793
|
+
return suspendResult;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
continue $sm;
|
|
797
|
+
case 1:
|
|
798
|
+
var value = suspendResult;
|
|
799
|
+
var tmp_0 = arbitraryBuilder$o$singleShotArb$slambda$lambda(value);
|
|
800
|
+
return (new ArbitraryBuilder(tmp_0, this.p6q_1, this.q6q_1, arbitraryBuilder$o$singleShotArb$slambda$lambda_0(this.r6q_1, value))).z1x();
|
|
801
|
+
case 2:
|
|
802
|
+
throw this.g9_1;
|
|
803
|
+
}
|
|
804
|
+
} catch ($p) {
|
|
805
|
+
var e = $p;
|
|
806
|
+
if (this.e9_1 === 2) {
|
|
807
|
+
throw e;
|
|
808
|
+
} else {
|
|
809
|
+
this.d9_1 = this.e9_1;
|
|
810
|
+
this.g9_1 = e;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
while (true);
|
|
814
|
+
};
|
|
815
|
+
protoOf(arbitraryBuilder$o$singleShotArb$slambda).u6q = function ($this$Restricted, completion) {
|
|
816
|
+
var i = new arbitraryBuilder$o$singleShotArb$slambda(this.n6q_1, this.o6q_1, this.p6q_1, this.q6q_1, this.r6q_1, completion);
|
|
817
|
+
i.s6q_1 = $this$Restricted;
|
|
818
|
+
return i;
|
|
819
|
+
};
|
|
820
|
+
function arbitraryBuilder$o$singleShotArb$slambda_0($builderFn, $rs, $classifier, $shrinker, $edgecaseFn, resultContinuation) {
|
|
821
|
+
var i = new arbitraryBuilder$o$singleShotArb$slambda($builderFn, $rs, $classifier, $shrinker, $edgecaseFn, resultContinuation);
|
|
822
|
+
var l = function ($this$Restricted, $completion) {
|
|
823
|
+
return i.t6q($this$Restricted, $completion);
|
|
824
|
+
};
|
|
825
|
+
l.$arity = 1;
|
|
826
|
+
return l;
|
|
827
|
+
}
|
|
828
|
+
function arbitraryBuilder$1($classifier, $builderFn, $shrinker, $edgecaseFn) {
|
|
829
|
+
this.b6q_1 = $classifier;
|
|
830
|
+
this.c6q_1 = $builderFn;
|
|
831
|
+
this.d6q_1 = $shrinker;
|
|
832
|
+
this.e6q_1 = $edgecaseFn;
|
|
833
|
+
Arb.call(this);
|
|
834
|
+
this.a6q_1 = $classifier;
|
|
835
|
+
}
|
|
836
|
+
protoOf(arbitraryBuilder$1).q6m = function (rs) {
|
|
837
|
+
return singleShotArb(this, SingleShotGenerationMode_Edgecase_getInstance(), rs).q6m(rs);
|
|
838
|
+
};
|
|
839
|
+
protoOf(arbitraryBuilder$1).w6m = function (rs) {
|
|
840
|
+
return singleShotArb(this, SingleShotGenerationMode_Sample_getInstance(), rs).w6m(rs);
|
|
841
|
+
};
|
|
842
|
+
function arbitrary$o$delegate$slambda_1($fn, resultContinuation) {
|
|
843
|
+
this.d6r_1 = $fn;
|
|
844
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
845
|
+
}
|
|
846
|
+
protoOf(arbitrary$o$delegate$slambda_1).v6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
847
|
+
var tmp = this.q6o($this$arbitraryBuilder, rs, $completion);
|
|
848
|
+
tmp.f9_1 = Unit_instance;
|
|
849
|
+
tmp.g9_1 = null;
|
|
850
|
+
return tmp.l9();
|
|
851
|
+
};
|
|
852
|
+
protoOf(arbitrary$o$delegate$slambda_1).r9 = function (p1, p2, $completion) {
|
|
853
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
854
|
+
return this.v6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
855
|
+
};
|
|
856
|
+
protoOf(arbitrary$o$delegate$slambda_1).l9 = function () {
|
|
857
|
+
var suspendResult = this.f9_1;
|
|
858
|
+
$sm: do
|
|
859
|
+
try {
|
|
860
|
+
var tmp = this.d9_1;
|
|
861
|
+
switch (tmp) {
|
|
862
|
+
case 0:
|
|
863
|
+
this.e9_1 = 2;
|
|
864
|
+
this.d9_1 = 1;
|
|
865
|
+
suspendResult = this.d6r_1(this.e6r_1, this.f6r_1, this);
|
|
866
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
867
|
+
return suspendResult;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
continue $sm;
|
|
871
|
+
case 1:
|
|
872
|
+
return suspendResult;
|
|
873
|
+
case 2:
|
|
874
|
+
throw this.g9_1;
|
|
875
|
+
}
|
|
876
|
+
} catch ($p) {
|
|
877
|
+
var e = $p;
|
|
878
|
+
if (this.e9_1 === 2) {
|
|
879
|
+
throw e;
|
|
880
|
+
} else {
|
|
881
|
+
this.d9_1 = this.e9_1;
|
|
882
|
+
this.g9_1 = e;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
while (true);
|
|
886
|
+
};
|
|
887
|
+
protoOf(arbitrary$o$delegate$slambda_1).q6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
888
|
+
var i = new arbitrary$o$delegate$slambda_1(this.d6r_1, completion);
|
|
889
|
+
i.e6r_1 = $this$arbitraryBuilder;
|
|
890
|
+
i.f6r_1 = rs;
|
|
891
|
+
return i;
|
|
892
|
+
};
|
|
893
|
+
function arbitrary$o$delegate$slambda_2($fn, resultContinuation) {
|
|
894
|
+
var i = new arbitrary$o$delegate$slambda_1($fn, resultContinuation);
|
|
895
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
896
|
+
return i.v6p($this$arbitraryBuilder, rs, $completion);
|
|
897
|
+
};
|
|
898
|
+
l.$arity = 2;
|
|
899
|
+
return l;
|
|
900
|
+
}
|
|
901
|
+
function arbitrary$2($shrinker, $edgecases, $fn) {
|
|
902
|
+
this.i6r_1 = $edgecases;
|
|
903
|
+
Arb.call(this);
|
|
904
|
+
var tmp = this;
|
|
905
|
+
tmp.h6r_1 = arbitraryBuilder($shrinker, VOID, VOID, arbitrary$o$delegate$slambda_2($fn, null));
|
|
906
|
+
}
|
|
907
|
+
protoOf(arbitrary$2).q6m = function (rs) {
|
|
908
|
+
return this.i6r_1.r() ? null : asSample(random(this.i6r_1, rs.m6m_1));
|
|
909
|
+
};
|
|
910
|
+
protoOf(arbitrary$2).w6m = function (rs) {
|
|
911
|
+
return this.h6r_1.w6m(rs);
|
|
912
|
+
};
|
|
913
|
+
function arbitrary$slambda($fn, resultContinuation) {
|
|
914
|
+
this.r6r_1 = $fn;
|
|
915
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
916
|
+
}
|
|
917
|
+
protoOf(arbitrary$slambda).v6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
918
|
+
var tmp = this.q6o($this$arbitraryBuilder, rs, $completion);
|
|
919
|
+
tmp.f9_1 = Unit_instance;
|
|
920
|
+
tmp.g9_1 = null;
|
|
921
|
+
return tmp.l9();
|
|
922
|
+
};
|
|
923
|
+
protoOf(arbitrary$slambda).r9 = function (p1, p2, $completion) {
|
|
924
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
925
|
+
return this.v6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
926
|
+
};
|
|
927
|
+
protoOf(arbitrary$slambda).l9 = function () {
|
|
928
|
+
var suspendResult = this.f9_1;
|
|
929
|
+
$sm: do
|
|
930
|
+
try {
|
|
931
|
+
var tmp = this.d9_1;
|
|
932
|
+
switch (tmp) {
|
|
933
|
+
case 0:
|
|
934
|
+
this.e9_1 = 2;
|
|
935
|
+
this.d9_1 = 1;
|
|
936
|
+
suspendResult = this.r6r_1(this.s6r_1, this.t6r_1, this);
|
|
937
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
938
|
+
return suspendResult;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
continue $sm;
|
|
942
|
+
case 1:
|
|
943
|
+
return suspendResult;
|
|
944
|
+
case 2:
|
|
945
|
+
throw this.g9_1;
|
|
946
|
+
}
|
|
947
|
+
} catch ($p) {
|
|
948
|
+
var e = $p;
|
|
949
|
+
if (this.e9_1 === 2) {
|
|
950
|
+
throw e;
|
|
951
|
+
} else {
|
|
952
|
+
this.d9_1 = this.e9_1;
|
|
953
|
+
this.g9_1 = e;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
while (true);
|
|
957
|
+
};
|
|
958
|
+
protoOf(arbitrary$slambda).q6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
959
|
+
var i = new arbitrary$slambda(this.r6r_1, completion);
|
|
960
|
+
i.s6r_1 = $this$arbitraryBuilder;
|
|
961
|
+
i.t6r_1 = rs;
|
|
962
|
+
return i;
|
|
963
|
+
};
|
|
964
|
+
function arbitrary$slambda_0($fn, resultContinuation) {
|
|
965
|
+
var i = new arbitrary$slambda($fn, resultContinuation);
|
|
966
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
967
|
+
return i.v6p($this$arbitraryBuilder, rs, $completion);
|
|
968
|
+
};
|
|
969
|
+
l.$arity = 2;
|
|
970
|
+
return l;
|
|
971
|
+
}
|
|
972
|
+
function arbitrary$o$delegate$slambda_3($sampleFn, resultContinuation) {
|
|
973
|
+
this.c6s_1 = $sampleFn;
|
|
974
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
975
|
+
}
|
|
976
|
+
protoOf(arbitrary$o$delegate$slambda_3).v6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
977
|
+
var tmp = this.q6o($this$arbitraryBuilder, rs, $completion);
|
|
978
|
+
tmp.f9_1 = Unit_instance;
|
|
979
|
+
tmp.g9_1 = null;
|
|
980
|
+
return tmp.l9();
|
|
981
|
+
};
|
|
982
|
+
protoOf(arbitrary$o$delegate$slambda_3).r9 = function (p1, p2, $completion) {
|
|
983
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
984
|
+
return this.v6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
985
|
+
};
|
|
986
|
+
protoOf(arbitrary$o$delegate$slambda_3).l9 = function () {
|
|
987
|
+
var suspendResult = this.f9_1;
|
|
988
|
+
$sm: do
|
|
989
|
+
try {
|
|
990
|
+
var tmp = this.d9_1;
|
|
991
|
+
switch (tmp) {
|
|
992
|
+
case 0:
|
|
993
|
+
this.e9_1 = 2;
|
|
994
|
+
this.d9_1 = 1;
|
|
995
|
+
suspendResult = this.c6s_1(this.d6s_1, this.e6s_1, this);
|
|
996
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
|
+
return suspendResult;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
continue $sm;
|
|
1001
|
+
case 1:
|
|
1002
|
+
return suspendResult;
|
|
1003
|
+
case 2:
|
|
1004
|
+
throw this.g9_1;
|
|
1005
|
+
}
|
|
1006
|
+
} catch ($p) {
|
|
1007
|
+
var e = $p;
|
|
1008
|
+
if (this.e9_1 === 2) {
|
|
1009
|
+
throw e;
|
|
1010
|
+
} else {
|
|
1011
|
+
this.d9_1 = this.e9_1;
|
|
1012
|
+
this.g9_1 = e;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
while (true);
|
|
1016
|
+
};
|
|
1017
|
+
protoOf(arbitrary$o$delegate$slambda_3).q6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
1018
|
+
var i = new arbitrary$o$delegate$slambda_3(this.c6s_1, completion);
|
|
1019
|
+
i.d6s_1 = $this$arbitraryBuilder;
|
|
1020
|
+
i.e6s_1 = rs;
|
|
1021
|
+
return i;
|
|
1022
|
+
};
|
|
1023
|
+
function arbitrary$o$delegate$slambda_4($sampleFn, resultContinuation) {
|
|
1024
|
+
var i = new arbitrary$o$delegate$slambda_3($sampleFn, resultContinuation);
|
|
1025
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1026
|
+
return i.v6p($this$arbitraryBuilder, rs, $completion);
|
|
1027
|
+
};
|
|
1028
|
+
l.$arity = 2;
|
|
1029
|
+
return l;
|
|
1030
|
+
}
|
|
1031
|
+
function arbitrary$5($shrinker, $edgecaseFn, $sampleFn) {
|
|
1032
|
+
this.h6s_1 = $edgecaseFn;
|
|
1033
|
+
Arb.call(this);
|
|
1034
|
+
var tmp = this;
|
|
1035
|
+
tmp.g6s_1 = arbitraryBuilder($shrinker, VOID, VOID, arbitrary$o$delegate$slambda_4($sampleFn, null));
|
|
1036
|
+
}
|
|
1037
|
+
protoOf(arbitrary$5).q6m = function (rs) {
|
|
1038
|
+
return this.h6s_1(rs);
|
|
1039
|
+
};
|
|
1040
|
+
protoOf(arbitrary$5).w6m = function (rs) {
|
|
1041
|
+
return this.g6s_1.w6m(rs);
|
|
1042
|
+
};
|
|
1043
|
+
function SingleShotGenerationMode_Edgecase_getInstance() {
|
|
1044
|
+
SingleShotGenerationMode_initEntries();
|
|
1045
|
+
return SingleShotGenerationMode_Edgecase_instance;
|
|
1046
|
+
}
|
|
1047
|
+
function SingleShotGenerationMode_Sample_getInstance() {
|
|
1048
|
+
SingleShotGenerationMode_initEntries();
|
|
1049
|
+
return SingleShotGenerationMode_Sample_instance;
|
|
1050
|
+
}
|
|
1051
|
+
function get_ByteShrinker() {
|
|
1052
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1053
|
+
return ByteShrinker;
|
|
1054
|
+
}
|
|
1055
|
+
var ByteShrinker;
|
|
1056
|
+
var UByteShrinker;
|
|
1057
|
+
function byteArray(_this__u8e3s4, length, content) {
|
|
1058
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1059
|
+
// Inline function 'io.kotest.property.arbitrary.toPrimitiveArray' call
|
|
1060
|
+
var tmp;
|
|
1061
|
+
if (length instanceof Arb) {
|
|
1062
|
+
tmp = length;
|
|
1063
|
+
} else {
|
|
1064
|
+
if (length instanceof Exhaustive) {
|
|
1065
|
+
tmp = length.v6n();
|
|
1066
|
+
} else {
|
|
1067
|
+
noWhenBranchMatchedException();
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
var tmp_0 = tmp;
|
|
1071
|
+
var tmp_1 = flatMap(tmp_0, byteArray$lambda(content));
|
|
1072
|
+
return map_0(tmp_1, byteArray$lambda_0);
|
|
1073
|
+
}
|
|
1074
|
+
function byte(_this__u8e3s4, min, max) {
|
|
1075
|
+
min = min === VOID ? -128 : min;
|
|
1076
|
+
max = max === VOID ? 127 : max;
|
|
1077
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1078
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
1079
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1080
|
+
var tmp0 = new Int8Array([min, -1, 0, 1, max]);
|
|
1081
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1082
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1083
|
+
var inductionVariable = 0;
|
|
1084
|
+
var last = tmp0.length;
|
|
1085
|
+
while (inductionVariable < last) {
|
|
1086
|
+
var element = tmp0[inductionVariable];
|
|
1087
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1088
|
+
// Inline function 'kotlin.ranges.contains' call
|
|
1089
|
+
var this_0 = numberRangeToNumber(min, max);
|
|
1090
|
+
if (contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), element)) {
|
|
1091
|
+
destination.y(element);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
var tmp = distinct(destination);
|
|
1095
|
+
var tmp_0 = get_ByteShrinker();
|
|
1096
|
+
return arbitrary_0(tmp, tmp_0, byte$slambda_0(min, max, null));
|
|
1097
|
+
}
|
|
1098
|
+
function ByteShrinker$lambda(it) {
|
|
1099
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1100
|
+
return it;
|
|
1101
|
+
}
|
|
1102
|
+
function ByteShrinker$lambda_0(it) {
|
|
1103
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1104
|
+
return toByte(it);
|
|
1105
|
+
}
|
|
1106
|
+
function UByteShrinker$lambda(it) {
|
|
1107
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1108
|
+
// Inline function 'kotlin.UByte.toUInt' call
|
|
1109
|
+
var this_0 = it.hn_1;
|
|
1110
|
+
var tmp$ret$0 = _UInt___init__impl__l7qpdl(_UByte___get_data__impl__jof9qr(this_0) & 255);
|
|
1111
|
+
return new UInt(tmp$ret$0);
|
|
1112
|
+
}
|
|
1113
|
+
function UByteShrinker$lambda_0(it) {
|
|
1114
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1115
|
+
// Inline function 'kotlin.UInt.toUByte' call
|
|
1116
|
+
var this_0 = it.sn_1;
|
|
1117
|
+
// Inline function 'kotlin.toUByte' call
|
|
1118
|
+
var this_1 = _UInt___get_data__impl__f0vqqw(this_0);
|
|
1119
|
+
var tmp$ret$1 = _UByte___init__impl__g9hnc4(toByte(this_1));
|
|
1120
|
+
return new UByte(tmp$ret$1);
|
|
1121
|
+
}
|
|
1122
|
+
function byteArray$lambda($generateContents) {
|
|
1123
|
+
return function (length) {
|
|
1124
|
+
return list(Companion_instance_0, $generateContents, numberRangeToNumber(length, length));
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
function byteArray$lambda_0(it) {
|
|
1128
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1129
|
+
return toByteArray(it);
|
|
1130
|
+
}
|
|
1131
|
+
function byte$slambda$lambda($it) {
|
|
1132
|
+
return function () {
|
|
1133
|
+
return first($it.m6m_1.qi(1));
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
function byte$slambda$lambda_0($min, $max) {
|
|
1137
|
+
return function (it) {
|
|
1138
|
+
// Inline function 'kotlin.ranges.contains' call
|
|
1139
|
+
var this_0 = numberRangeToNumber($min, $max);
|
|
1140
|
+
return contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), it);
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
function byte$slambda($min, $max, resultContinuation) {
|
|
1144
|
+
this.q6s_1 = $min;
|
|
1145
|
+
this.r6s_1 = $max;
|
|
1146
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1147
|
+
}
|
|
1148
|
+
protoOf(byte$slambda).u6s = function ($this$arbitrary, it, $completion) {
|
|
1149
|
+
var tmp = this.q6o($this$arbitrary, it, $completion);
|
|
1150
|
+
tmp.f9_1 = Unit_instance;
|
|
1151
|
+
tmp.g9_1 = null;
|
|
1152
|
+
return tmp.l9();
|
|
1153
|
+
};
|
|
1154
|
+
protoOf(byte$slambda).r9 = function (p1, p2, $completion) {
|
|
1155
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1156
|
+
return this.u6s(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1157
|
+
};
|
|
1158
|
+
protoOf(byte$slambda).l9 = function () {
|
|
1159
|
+
var suspendResult = this.f9_1;
|
|
1160
|
+
$sm: do
|
|
1161
|
+
try {
|
|
1162
|
+
var tmp = this.d9_1;
|
|
1163
|
+
if (tmp === 0) {
|
|
1164
|
+
this.e9_1 = 1;
|
|
1165
|
+
var tmp_0 = generateSequence(byte$slambda$lambda(this.t6s_1));
|
|
1166
|
+
return first_0(filter(tmp_0, byte$slambda$lambda_0(this.q6s_1, this.r6s_1)));
|
|
1167
|
+
} else if (tmp === 1) {
|
|
1168
|
+
throw this.g9_1;
|
|
1169
|
+
}
|
|
1170
|
+
} catch ($p) {
|
|
1171
|
+
var e = $p;
|
|
1172
|
+
throw e;
|
|
1173
|
+
}
|
|
1174
|
+
while (true);
|
|
1175
|
+
};
|
|
1176
|
+
protoOf(byte$slambda).q6o = function ($this$arbitrary, it, completion) {
|
|
1177
|
+
var i = new byte$slambda(this.q6s_1, this.r6s_1, completion);
|
|
1178
|
+
i.s6s_1 = $this$arbitrary;
|
|
1179
|
+
i.t6s_1 = it;
|
|
1180
|
+
return i;
|
|
1181
|
+
};
|
|
1182
|
+
function byte$slambda_0($min, $max, resultContinuation) {
|
|
1183
|
+
var i = new byte$slambda($min, $max, resultContinuation);
|
|
1184
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1185
|
+
return i.u6s($this$arbitrary, it, $completion);
|
|
1186
|
+
};
|
|
1187
|
+
l.$arity = 2;
|
|
1188
|
+
return l;
|
|
1189
|
+
}
|
|
1190
|
+
var properties_initialized_bytes_kt_a5jamz;
|
|
1191
|
+
function _init_properties_bytes_kt__yz6anb() {
|
|
1192
|
+
if (!properties_initialized_bytes_kt_a5jamz) {
|
|
1193
|
+
properties_initialized_bytes_kt_a5jamz = true;
|
|
1194
|
+
var tmp = new IntShrinker(numberRangeToNumber(-128, 127));
|
|
1195
|
+
var tmp_0 = ByteShrinker$lambda;
|
|
1196
|
+
ByteShrinker = bimap(tmp, tmp_0, ByteShrinker$lambda_0);
|
|
1197
|
+
var tmp0 = _UByte___init__impl__g9hnc4(0);
|
|
1198
|
+
// Inline function 'kotlin.UByte.rangeTo' call
|
|
1199
|
+
var other = _UByte___init__impl__g9hnc4(-1);
|
|
1200
|
+
// Inline function 'kotlin.UByte.toUInt' call
|
|
1201
|
+
var tmp_1 = _UInt___init__impl__l7qpdl(_UByte___get_data__impl__jof9qr(tmp0) & 255);
|
|
1202
|
+
// Inline function 'kotlin.UByte.toUInt' call
|
|
1203
|
+
var tmp$ret$1 = _UInt___init__impl__l7qpdl(_UByte___get_data__impl__jof9qr(other) & 255);
|
|
1204
|
+
var tmp$ret$2 = new UIntRange(tmp_1, tmp$ret$1);
|
|
1205
|
+
var tmp_2 = new UIntShrinker(tmp$ret$2);
|
|
1206
|
+
var tmp_3 = UByteShrinker$lambda;
|
|
1207
|
+
UByteShrinker = bimap(tmp_2, tmp_3, UByteShrinker$lambda_0);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
function element(_this__u8e3s4, collection) {
|
|
1211
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1212
|
+
// Inline function 'kotlin.require' call
|
|
1213
|
+
if (!!collection.r()) {
|
|
1214
|
+
var message = 'The supplied collection must not be empty.';
|
|
1215
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1216
|
+
}
|
|
1217
|
+
return arbitrary_1(element$slambda_0(collection, null));
|
|
1218
|
+
}
|
|
1219
|
+
function of(_this__u8e3s4, collection) {
|
|
1220
|
+
return element(_this__u8e3s4, collection);
|
|
1221
|
+
}
|
|
1222
|
+
function element_0(_this__u8e3s4, collection) {
|
|
1223
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1224
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
1225
|
+
// Inline function 'kotlin.require' call
|
|
1226
|
+
if (!!(collection.length === 0)) {
|
|
1227
|
+
var message = 'The supplied collection must not be empty.';
|
|
1228
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1229
|
+
}
|
|
1230
|
+
return arbitrary_1(element$slambda_2(collection, null));
|
|
1231
|
+
}
|
|
1232
|
+
function list(_this__u8e3s4, gen, range) {
|
|
1233
|
+
range = range === VOID ? PropertyTesting_getInstance().u6n_1 : range;
|
|
1234
|
+
// Inline function 'kotlin.check' call
|
|
1235
|
+
if (!!range.r()) {
|
|
1236
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1237
|
+
}
|
|
1238
|
+
// Inline function 'kotlin.check' call
|
|
1239
|
+
if (!(range.p1_1 >= 0)) {
|
|
1240
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1241
|
+
}
|
|
1242
|
+
var tmp = list$lambda(gen, range);
|
|
1243
|
+
var tmp_0 = new ListShrinker(range);
|
|
1244
|
+
return arbitrary_2(tmp, tmp_0, list$slambda_0(range, gen, null));
|
|
1245
|
+
}
|
|
1246
|
+
function ListShrinker(range) {
|
|
1247
|
+
this.v6s_1 = range;
|
|
1248
|
+
}
|
|
1249
|
+
protoOf(ListShrinker).w6s = function (value) {
|
|
1250
|
+
var tmp;
|
|
1251
|
+
if (value.r()) {
|
|
1252
|
+
tmp = emptyList();
|
|
1253
|
+
} else if (value.b1() === 1) {
|
|
1254
|
+
tmp = this.v6s_1.fj(0) ? listOf_0(emptyList()) : emptyList();
|
|
1255
|
+
} else {
|
|
1256
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1257
|
+
var tmp0 = listOf([take(value, 1), dropLast(value, 1), take(value, value.b1() / 2 | 0), drop(value, 1)]);
|
|
1258
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1259
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1260
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1261
|
+
while (_iterator__ex2g4s.u()) {
|
|
1262
|
+
var element = _iterator__ex2g4s.v();
|
|
1263
|
+
var progression = this.v6s_1;
|
|
1264
|
+
var containsLower = progression.p1_1;
|
|
1265
|
+
var containsUpper = progression.q1_1;
|
|
1266
|
+
var containsArg = element.b1();
|
|
1267
|
+
if (containsLower <= containsArg ? containsArg <= containsUpper : false) {
|
|
1268
|
+
destination.y(element);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
tmp = destination;
|
|
1272
|
+
}
|
|
1273
|
+
return tmp;
|
|
1274
|
+
};
|
|
1275
|
+
protoOf(ListShrinker).c6o = function (value) {
|
|
1276
|
+
return this.w6s((!(value == null) ? isInterface(value, KtList) : false) ? value : THROW_CCE());
|
|
1277
|
+
};
|
|
1278
|
+
function element$slambda($collection, resultContinuation) {
|
|
1279
|
+
this.f6t_1 = $collection;
|
|
1280
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1281
|
+
}
|
|
1282
|
+
protoOf(element$slambda).i6t = function ($this$arbitrary, it, $completion) {
|
|
1283
|
+
var tmp = this.q6o($this$arbitrary, it, $completion);
|
|
1284
|
+
tmp.f9_1 = Unit_instance;
|
|
1285
|
+
tmp.g9_1 = null;
|
|
1286
|
+
return tmp.l9();
|
|
1287
|
+
};
|
|
1288
|
+
protoOf(element$slambda).r9 = function (p1, p2, $completion) {
|
|
1289
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1290
|
+
return this.i6t(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1291
|
+
};
|
|
1292
|
+
protoOf(element$slambda).l9 = function () {
|
|
1293
|
+
var suspendResult = this.f9_1;
|
|
1294
|
+
$sm: do
|
|
1295
|
+
try {
|
|
1296
|
+
var tmp = this.d9_1;
|
|
1297
|
+
if (tmp === 0) {
|
|
1298
|
+
this.e9_1 = 1;
|
|
1299
|
+
return random(this.f6t_1, this.h6t_1.m6m_1);
|
|
1300
|
+
} else if (tmp === 1) {
|
|
1301
|
+
throw this.g9_1;
|
|
1302
|
+
}
|
|
1303
|
+
} catch ($p) {
|
|
1304
|
+
var e = $p;
|
|
1305
|
+
throw e;
|
|
1306
|
+
}
|
|
1307
|
+
while (true);
|
|
1308
|
+
};
|
|
1309
|
+
protoOf(element$slambda).q6o = function ($this$arbitrary, it, completion) {
|
|
1310
|
+
var i = new element$slambda(this.f6t_1, completion);
|
|
1311
|
+
i.g6t_1 = $this$arbitrary;
|
|
1312
|
+
i.h6t_1 = it;
|
|
1313
|
+
return i;
|
|
1314
|
+
};
|
|
1315
|
+
function element$slambda_0($collection, resultContinuation) {
|
|
1316
|
+
var i = new element$slambda($collection, resultContinuation);
|
|
1317
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1318
|
+
return i.i6t($this$arbitrary, it, $completion);
|
|
1319
|
+
};
|
|
1320
|
+
l.$arity = 2;
|
|
1321
|
+
return l;
|
|
1322
|
+
}
|
|
1323
|
+
function element$slambda_1($collection, resultContinuation) {
|
|
1324
|
+
this.r6t_1 = $collection;
|
|
1325
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1326
|
+
}
|
|
1327
|
+
protoOf(element$slambda_1).i6t = function ($this$arbitrary, it, $completion) {
|
|
1328
|
+
var tmp = this.q6o($this$arbitrary, it, $completion);
|
|
1329
|
+
tmp.f9_1 = Unit_instance;
|
|
1330
|
+
tmp.g9_1 = null;
|
|
1331
|
+
return tmp.l9();
|
|
1332
|
+
};
|
|
1333
|
+
protoOf(element$slambda_1).r9 = function (p1, p2, $completion) {
|
|
1334
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1335
|
+
return this.i6t(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1336
|
+
};
|
|
1337
|
+
protoOf(element$slambda_1).l9 = function () {
|
|
1338
|
+
var suspendResult = this.f9_1;
|
|
1339
|
+
$sm: do
|
|
1340
|
+
try {
|
|
1341
|
+
var tmp = this.d9_1;
|
|
1342
|
+
if (tmp === 0) {
|
|
1343
|
+
this.e9_1 = 1;
|
|
1344
|
+
return random_0(this.r6t_1, this.t6t_1.m6m_1);
|
|
1345
|
+
} else if (tmp === 1) {
|
|
1346
|
+
throw this.g9_1;
|
|
1347
|
+
}
|
|
1348
|
+
} catch ($p) {
|
|
1349
|
+
var e = $p;
|
|
1350
|
+
throw e;
|
|
1351
|
+
}
|
|
1352
|
+
while (true);
|
|
1353
|
+
};
|
|
1354
|
+
protoOf(element$slambda_1).q6o = function ($this$arbitrary, it, completion) {
|
|
1355
|
+
var i = new element$slambda_1(this.r6t_1, completion);
|
|
1356
|
+
i.s6t_1 = $this$arbitrary;
|
|
1357
|
+
i.t6t_1 = it;
|
|
1358
|
+
return i;
|
|
1359
|
+
};
|
|
1360
|
+
function element$slambda_2($collection, resultContinuation) {
|
|
1361
|
+
var i = new element$slambda_1($collection, resultContinuation);
|
|
1362
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1363
|
+
return i.i6t($this$arbitrary, it, $completion);
|
|
1364
|
+
};
|
|
1365
|
+
l.$arity = 2;
|
|
1366
|
+
return l;
|
|
1367
|
+
}
|
|
1368
|
+
function list$lambda($gen, $range) {
|
|
1369
|
+
return function (rs) {
|
|
1370
|
+
var emptyList_0 = emptyList();
|
|
1371
|
+
var tmp0_subject = $gen;
|
|
1372
|
+
var tmp;
|
|
1373
|
+
if (tmp0_subject instanceof Arb) {
|
|
1374
|
+
var tmp1_elvis_lhs = $gen.q6m(rs);
|
|
1375
|
+
tmp = listOf_0((tmp1_elvis_lhs == null ? $gen.w6m(rs) : tmp1_elvis_lhs).x6m_1);
|
|
1376
|
+
} else {
|
|
1377
|
+
if (tmp0_subject instanceof Exhaustive) {
|
|
1378
|
+
var tmp2_safe_receiver = firstOrNull($gen.s2());
|
|
1379
|
+
var tmp_0;
|
|
1380
|
+
if (tmp2_safe_receiver == null) {
|
|
1381
|
+
tmp_0 = null;
|
|
1382
|
+
} else {
|
|
1383
|
+
// Inline function 'kotlin.let' call
|
|
1384
|
+
tmp_0 = listOf_0(tmp2_safe_receiver);
|
|
1385
|
+
}
|
|
1386
|
+
tmp = tmp_0;
|
|
1387
|
+
} else {
|
|
1388
|
+
noWhenBranchMatchedException();
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
var singleList = tmp;
|
|
1392
|
+
var tmp_1;
|
|
1393
|
+
if ($range.q1_1 < 2) {
|
|
1394
|
+
tmp_1 = null;
|
|
1395
|
+
} else {
|
|
1396
|
+
if ($gen instanceof Arb) {
|
|
1397
|
+
// Inline function 'kotlin.math.max' call
|
|
1398
|
+
var b = $range.p1_1;
|
|
1399
|
+
// Inline function 'kotlin.collections.List' call
|
|
1400
|
+
// Inline function 'kotlin.collections.MutableList' call
|
|
1401
|
+
var size = Math.max(2, b);
|
|
1402
|
+
var list = ArrayList_init_$Create$(size);
|
|
1403
|
+
// Inline function 'kotlin.repeat' call
|
|
1404
|
+
var inductionVariable = 0;
|
|
1405
|
+
if (inductionVariable < size)
|
|
1406
|
+
do {
|
|
1407
|
+
var index = inductionVariable;
|
|
1408
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1409
|
+
var tmp0_elvis_lhs = $gen.q6m(rs);
|
|
1410
|
+
var tmp$ret$3 = (tmp0_elvis_lhs == null ? $gen.w6m(rs) : tmp0_elvis_lhs).x6m_1;
|
|
1411
|
+
list.y(tmp$ret$3);
|
|
1412
|
+
}
|
|
1413
|
+
while (inductionVariable < size);
|
|
1414
|
+
tmp_1 = list;
|
|
1415
|
+
} else {
|
|
1416
|
+
if ($gen instanceof Exhaustive) {
|
|
1417
|
+
var tmp3_safe_receiver = firstOrNull($gen.s2());
|
|
1418
|
+
var tmp_2;
|
|
1419
|
+
if (tmp3_safe_receiver == null) {
|
|
1420
|
+
tmp_2 = null;
|
|
1421
|
+
} else {
|
|
1422
|
+
// Inline function 'kotlin.let' call
|
|
1423
|
+
// Inline function 'kotlin.math.max' call
|
|
1424
|
+
var b_0 = $range.p1_1;
|
|
1425
|
+
// Inline function 'kotlin.collections.List' call
|
|
1426
|
+
// Inline function 'kotlin.collections.MutableList' call
|
|
1427
|
+
var size_0 = Math.max(2, b_0);
|
|
1428
|
+
var list_0 = ArrayList_init_$Create$(size_0);
|
|
1429
|
+
// Inline function 'kotlin.repeat' call
|
|
1430
|
+
var inductionVariable_0 = 0;
|
|
1431
|
+
if (inductionVariable_0 < size_0)
|
|
1432
|
+
do {
|
|
1433
|
+
var index_0 = inductionVariable_0;
|
|
1434
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1435
|
+
list_0.y(tmp3_safe_receiver);
|
|
1436
|
+
}
|
|
1437
|
+
while (inductionVariable_0 < size_0);
|
|
1438
|
+
tmp_2 = list_0;
|
|
1439
|
+
}
|
|
1440
|
+
tmp_1 = tmp_2;
|
|
1441
|
+
} else {
|
|
1442
|
+
tmp_1 = null;
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
var repeatedList = tmp_1;
|
|
1447
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1448
|
+
var tmp0 = listOfNotNull([emptyList_0, singleList, repeatedList]);
|
|
1449
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1450
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1451
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1452
|
+
while (_iterator__ex2g4s.u()) {
|
|
1453
|
+
var element = _iterator__ex2g4s.v();
|
|
1454
|
+
var containsLower = $range.p1_1;
|
|
1455
|
+
var containsUpper = $range.q1_1;
|
|
1456
|
+
var containsArg = element.b1();
|
|
1457
|
+
if (containsLower <= containsArg ? containsArg <= containsUpper : false) {
|
|
1458
|
+
destination.y(element);
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
// Inline function 'kotlin.takeIf' call
|
|
1462
|
+
var tmp_3;
|
|
1463
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1464
|
+
if (!destination.r()) {
|
|
1465
|
+
tmp_3 = destination;
|
|
1466
|
+
} else {
|
|
1467
|
+
tmp_3 = null;
|
|
1468
|
+
}
|
|
1469
|
+
var tmp4_safe_receiver = tmp_3;
|
|
1470
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : distinct(tmp4_safe_receiver);
|
|
1471
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : random(tmp5_safe_receiver, rs.m6m_1);
|
|
1472
|
+
return tmp6_safe_receiver == null ? null : asSample(tmp6_safe_receiver);
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
function list$slambda($range, $gen, resultContinuation) {
|
|
1476
|
+
this.c6u_1 = $range;
|
|
1477
|
+
this.d6u_1 = $gen;
|
|
1478
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1479
|
+
}
|
|
1480
|
+
protoOf(list$slambda).g6u = function ($this$arbitrary, rs, $completion) {
|
|
1481
|
+
var tmp = this.q6o($this$arbitrary, rs, $completion);
|
|
1482
|
+
tmp.f9_1 = Unit_instance;
|
|
1483
|
+
tmp.g9_1 = null;
|
|
1484
|
+
return tmp.l9();
|
|
1485
|
+
};
|
|
1486
|
+
protoOf(list$slambda).r9 = function (p1, p2, $completion) {
|
|
1487
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1488
|
+
return this.g6u(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1489
|
+
};
|
|
1490
|
+
protoOf(list$slambda).l9 = function () {
|
|
1491
|
+
var suspendResult = this.f9_1;
|
|
1492
|
+
$sm: do
|
|
1493
|
+
try {
|
|
1494
|
+
var tmp = this.d9_1;
|
|
1495
|
+
if (tmp === 0) {
|
|
1496
|
+
this.e9_1 = 1;
|
|
1497
|
+
var targetSize = nextInt(this.f6u_1.m6m_1, this.c6u_1);
|
|
1498
|
+
var this_0 = toList(take_0(this.d6u_1.v6m(this.f6u_1), targetSize));
|
|
1499
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1500
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1501
|
+
while (_iterator__ex2g4s.u()) {
|
|
1502
|
+
var item = _iterator__ex2g4s.v();
|
|
1503
|
+
destination.y(item.x6m_1);
|
|
1504
|
+
}
|
|
1505
|
+
return destination;
|
|
1506
|
+
} else if (tmp === 1) {
|
|
1507
|
+
throw this.g9_1;
|
|
1508
|
+
}
|
|
1509
|
+
} catch ($p) {
|
|
1510
|
+
var e = $p;
|
|
1511
|
+
throw e;
|
|
1512
|
+
}
|
|
1513
|
+
while (true);
|
|
1514
|
+
};
|
|
1515
|
+
protoOf(list$slambda).q6o = function ($this$arbitrary, rs, completion) {
|
|
1516
|
+
var i = new list$slambda(this.c6u_1, this.d6u_1, completion);
|
|
1517
|
+
i.e6u_1 = $this$arbitrary;
|
|
1518
|
+
i.f6u_1 = rs;
|
|
1519
|
+
return i;
|
|
1520
|
+
};
|
|
1521
|
+
function list$slambda_0($range, $gen, resultContinuation) {
|
|
1522
|
+
var i = new list$slambda($range, $gen, resultContinuation);
|
|
1523
|
+
var l = function ($this$arbitrary, rs, $completion) {
|
|
1524
|
+
return i.g6u($this$arbitrary, rs, $completion);
|
|
1525
|
+
};
|
|
1526
|
+
l.$arity = 2;
|
|
1527
|
+
return l;
|
|
1528
|
+
}
|
|
1529
|
+
function constant(_this__u8e3s4, a) {
|
|
1530
|
+
return element_0(_this__u8e3s4, [a]);
|
|
1531
|
+
}
|
|
1532
|
+
function get_numericEdgeCases() {
|
|
1533
|
+
_init_properties_doubles_kt__m69t1s();
|
|
1534
|
+
return numericEdgeCases;
|
|
1535
|
+
}
|
|
1536
|
+
var numericEdgeCases;
|
|
1537
|
+
function double(_this__u8e3s4, min, max, includeNaNs) {
|
|
1538
|
+
min = min === VOID ? -1.7976931348623157E308 : min;
|
|
1539
|
+
max = max === VOID ? 1.7976931348623157E308 : max;
|
|
1540
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
1541
|
+
_init_properties_doubles_kt__m69t1s();
|
|
1542
|
+
return double_0(_this__u8e3s4, rangeTo(min, max), includeNaNs);
|
|
1543
|
+
}
|
|
1544
|
+
function double_0(_this__u8e3s4, range, includeNaNs) {
|
|
1545
|
+
range = range === VOID ? rangeTo(-1.7976931348623157E308, 1.7976931348623157E308) : range;
|
|
1546
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
1547
|
+
_init_properties_doubles_kt__m69t1s();
|
|
1548
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1549
|
+
var tmp0 = get_numericEdgeCases();
|
|
1550
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1551
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1552
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1553
|
+
while (_iterator__ex2g4s.u()) {
|
|
1554
|
+
var element = _iterator__ex2g4s.v();
|
|
1555
|
+
if (range.s1(element)) {
|
|
1556
|
+
destination.y(element);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
var tmp = plus(distinct(plus(destination, listOf([range.yc(), range.zc()]))), getNonFiniteEdgeCases(range, includeNaNs));
|
|
1560
|
+
var tmp_0 = DoubleShrinker_getInstance();
|
|
1561
|
+
return arbitrary_0(tmp, tmp_0, double$slambda_0(range, null));
|
|
1562
|
+
}
|
|
1563
|
+
function getNonFiniteEdgeCases(range, includeNaNs) {
|
|
1564
|
+
_init_properties_doubles_kt__m69t1s();
|
|
1565
|
+
var tmp;
|
|
1566
|
+
if (includeNaNs) {
|
|
1567
|
+
// Inline function 'kotlin.collections.buildList' call
|
|
1568
|
+
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1569
|
+
// Inline function 'kotlin.apply' call
|
|
1570
|
+
var this_0 = ArrayList_init_$Create$_0();
|
|
1571
|
+
this_0.y(NaN);
|
|
1572
|
+
if (range.yc() === -Infinity) {
|
|
1573
|
+
this_0.y(-Infinity);
|
|
1574
|
+
}
|
|
1575
|
+
if (range.zc() === Infinity) {
|
|
1576
|
+
this_0.y(Infinity);
|
|
1577
|
+
}
|
|
1578
|
+
tmp = this_0.p5();
|
|
1579
|
+
} else {
|
|
1580
|
+
tmp = emptyList();
|
|
1581
|
+
}
|
|
1582
|
+
return tmp;
|
|
1583
|
+
}
|
|
1584
|
+
function DoubleShrinker() {
|
|
1585
|
+
DoubleShrinker_instance = this;
|
|
1586
|
+
this.h6u_1 = Regex_init_$Create$('([+-]|)([0-9]*)(\\.[0-9]*|)(e[+-]?[0-9]+|)', RegexOption_IGNORE_CASE_getInstance());
|
|
1587
|
+
}
|
|
1588
|
+
protoOf(DoubleShrinker).i6u = function (value) {
|
|
1589
|
+
var tmp;
|
|
1590
|
+
var tmp_0;
|
|
1591
|
+
if (value === 0.0 || !isFinite(value)) {
|
|
1592
|
+
tmp_0 = true;
|
|
1593
|
+
} else {
|
|
1594
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
1595
|
+
tmp_0 = Math.abs(value) < 10 * 4.9E-324;
|
|
1596
|
+
}
|
|
1597
|
+
if (tmp_0) {
|
|
1598
|
+
tmp = emptyList();
|
|
1599
|
+
} else {
|
|
1600
|
+
var tmp0_safe_receiver = this.j6u(value.toString());
|
|
1601
|
+
tmp = listOfNotNull_0(tmp0_safe_receiver == null ? null : toDouble(tmp0_safe_receiver));
|
|
1602
|
+
}
|
|
1603
|
+
return tmp;
|
|
1604
|
+
};
|
|
1605
|
+
protoOf(DoubleShrinker).c6o = function (value) {
|
|
1606
|
+
return this.i6u((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1607
|
+
};
|
|
1608
|
+
protoOf(DoubleShrinker).j6u = function (value) {
|
|
1609
|
+
var tmp0_elvis_lhs = this.h6u_1.uc(value);
|
|
1610
|
+
var tmp;
|
|
1611
|
+
if (tmp0_elvis_lhs == null) {
|
|
1612
|
+
return null;
|
|
1613
|
+
} else {
|
|
1614
|
+
tmp = tmp0_elvis_lhs;
|
|
1615
|
+
}
|
|
1616
|
+
var matches = tmp;
|
|
1617
|
+
var parts = drop(matches.rd(), 1);
|
|
1618
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1619
|
+
var signPart = parts.c1(0);
|
|
1620
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1621
|
+
var intPart = parts.c1(1);
|
|
1622
|
+
// Inline function 'kotlin.collections.component3' call
|
|
1623
|
+
var fracPart_ = parts.c1(2);
|
|
1624
|
+
// Inline function 'kotlin.collections.component4' call
|
|
1625
|
+
var expPart = parts.c1(3);
|
|
1626
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
1627
|
+
var tmp0 = isCharSequence(fracPart_) ? fracPart_ : THROW_CCE();
|
|
1628
|
+
var tmp$ret$5;
|
|
1629
|
+
$l$block: {
|
|
1630
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
1631
|
+
var inductionVariable = charSequenceLength(tmp0) - 1 | 0;
|
|
1632
|
+
if (0 <= inductionVariable)
|
|
1633
|
+
do {
|
|
1634
|
+
var index = inductionVariable;
|
|
1635
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
1636
|
+
if (!(charSequenceGet(tmp0, index) === _Char___init__impl__6a9atx(48))) {
|
|
1637
|
+
tmp$ret$5 = charSequenceSubSequence(tmp0, 0, index + 1 | 0);
|
|
1638
|
+
break $l$block;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
while (0 <= inductionVariable);
|
|
1642
|
+
tmp$ret$5 = '';
|
|
1643
|
+
}
|
|
1644
|
+
var fracPart = toString(tmp$ret$5);
|
|
1645
|
+
var tmp_0;
|
|
1646
|
+
var tmp_1;
|
|
1647
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1648
|
+
if (charSequenceLength(fracPart) > 0) {
|
|
1649
|
+
tmp_1 = isDigit(last(fracPart));
|
|
1650
|
+
} else {
|
|
1651
|
+
tmp_1 = false;
|
|
1652
|
+
}
|
|
1653
|
+
if (tmp_1) {
|
|
1654
|
+
tmp_0 = intPart + dropLast_0(fracPart, 1);
|
|
1655
|
+
} else {
|
|
1656
|
+
var length = intPart.length;
|
|
1657
|
+
var tmp$ret$9;
|
|
1658
|
+
$l$block_0: {
|
|
1659
|
+
// Inline function 'kotlin.text.indexOfLast' call
|
|
1660
|
+
var inductionVariable_0 = charSequenceLength(intPart) - 1 | 0;
|
|
1661
|
+
if (0 <= inductionVariable_0)
|
|
1662
|
+
do {
|
|
1663
|
+
var index_0 = inductionVariable_0;
|
|
1664
|
+
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
1665
|
+
if (!(charSequenceGet(intPart, index_0) === _Char___init__impl__6a9atx(48))) {
|
|
1666
|
+
tmp$ret$9 = index_0;
|
|
1667
|
+
break $l$block_0;
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
while (0 <= inductionVariable_0);
|
|
1671
|
+
tmp$ret$9 = -1;
|
|
1672
|
+
}
|
|
1673
|
+
// Inline function 'kotlin.let' call
|
|
1674
|
+
var it = tmp$ret$9;
|
|
1675
|
+
var index_1 = it === -1 ? length : it;
|
|
1676
|
+
if (index_1 === 0) {
|
|
1677
|
+
return null;
|
|
1678
|
+
}
|
|
1679
|
+
var head = take_1(intPart, index_1);
|
|
1680
|
+
var tail = takeLast(intPart, (length - index_1 | 0) - 1 | 0);
|
|
1681
|
+
tmp_0 = head + '0' + tail;
|
|
1682
|
+
}
|
|
1683
|
+
var numberPart = tmp_0;
|
|
1684
|
+
return signPart + numberPart + expPart;
|
|
1685
|
+
};
|
|
1686
|
+
var DoubleShrinker_instance;
|
|
1687
|
+
function DoubleShrinker_getInstance() {
|
|
1688
|
+
if (DoubleShrinker_instance == null)
|
|
1689
|
+
new DoubleShrinker();
|
|
1690
|
+
return DoubleShrinker_instance;
|
|
1691
|
+
}
|
|
1692
|
+
function double$slambda($range, resultContinuation) {
|
|
1693
|
+
this.s6u_1 = $range;
|
|
1694
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1695
|
+
}
|
|
1696
|
+
protoOf(double$slambda).v6u = function ($this$arbitrary, it, $completion) {
|
|
1697
|
+
var tmp = this.q6o($this$arbitrary, it, $completion);
|
|
1698
|
+
tmp.f9_1 = Unit_instance;
|
|
1699
|
+
tmp.g9_1 = null;
|
|
1700
|
+
return tmp.l9();
|
|
1701
|
+
};
|
|
1702
|
+
protoOf(double$slambda).r9 = function (p1, p2, $completion) {
|
|
1703
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1704
|
+
return this.v6u(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1705
|
+
};
|
|
1706
|
+
protoOf(double$slambda).l9 = function () {
|
|
1707
|
+
var suspendResult = this.f9_1;
|
|
1708
|
+
$sm: do
|
|
1709
|
+
try {
|
|
1710
|
+
var tmp = this.d9_1;
|
|
1711
|
+
if (tmp === 0) {
|
|
1712
|
+
this.e9_1 = 1;
|
|
1713
|
+
return this.u6u_1.m6m_1.oi(this.s6u_1.yc(), this.s6u_1.zc());
|
|
1714
|
+
} else if (tmp === 1) {
|
|
1715
|
+
throw this.g9_1;
|
|
1716
|
+
}
|
|
1717
|
+
} catch ($p) {
|
|
1718
|
+
var e = $p;
|
|
1719
|
+
throw e;
|
|
1720
|
+
}
|
|
1721
|
+
while (true);
|
|
1722
|
+
};
|
|
1723
|
+
protoOf(double$slambda).q6o = function ($this$arbitrary, it, completion) {
|
|
1724
|
+
var i = new double$slambda(this.s6u_1, completion);
|
|
1725
|
+
i.t6u_1 = $this$arbitrary;
|
|
1726
|
+
i.u6u_1 = it;
|
|
1727
|
+
return i;
|
|
1728
|
+
};
|
|
1729
|
+
function double$slambda_0($range, resultContinuation) {
|
|
1730
|
+
var i = new double$slambda($range, resultContinuation);
|
|
1731
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1732
|
+
return i.v6u($this$arbitrary, it, $completion);
|
|
1733
|
+
};
|
|
1734
|
+
l.$arity = 2;
|
|
1735
|
+
return l;
|
|
1736
|
+
}
|
|
1737
|
+
var properties_initialized_doubles_kt_z3lcoe;
|
|
1738
|
+
function _init_properties_doubles_kt__m69t1s() {
|
|
1739
|
+
if (!properties_initialized_doubles_kt_z3lcoe) {
|
|
1740
|
+
properties_initialized_doubles_kt_z3lcoe = true;
|
|
1741
|
+
numericEdgeCases = listOf([-1.0, -4.9E-324, -0.0, 0.0, 4.9E-324, 1.0]);
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
function get_numericEdgeCases_0() {
|
|
1745
|
+
_init_properties_floats_kt__ddosbb();
|
|
1746
|
+
return numericEdgeCases_0;
|
|
1747
|
+
}
|
|
1748
|
+
var numericEdgeCases_0;
|
|
1749
|
+
function float(_this__u8e3s4, min, max, includeNaNs) {
|
|
1750
|
+
min = min === VOID ? -3.4028235E38 : min;
|
|
1751
|
+
max = max === VOID ? 3.4028235E38 : max;
|
|
1752
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
1753
|
+
_init_properties_floats_kt__ddosbb();
|
|
1754
|
+
return float_0(_this__u8e3s4, rangeTo_0(min, max), includeNaNs);
|
|
1755
|
+
}
|
|
1756
|
+
function float_0(_this__u8e3s4, range, includeNaNs) {
|
|
1757
|
+
range = range === VOID ? rangeTo_0(-3.4028235E38, 3.4028235E38) : range;
|
|
1758
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
1759
|
+
_init_properties_floats_kt__ddosbb();
|
|
1760
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1761
|
+
var tmp0 = get_numericEdgeCases_0();
|
|
1762
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1763
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1764
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1765
|
+
while (_iterator__ex2g4s.u()) {
|
|
1766
|
+
var element = _iterator__ex2g4s.v();
|
|
1767
|
+
if (range.s1(element)) {
|
|
1768
|
+
destination.y(element);
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
var tmp = plus(distinct(plus(destination, listOf([range.yc(), range.zc()]))), getNonFiniteEdgeCases_0(range, includeNaNs));
|
|
1772
|
+
var tmp_0 = FloatShrinker_instance;
|
|
1773
|
+
return arbitrary_0(tmp, tmp_0, float$slambda_0(range, null));
|
|
1774
|
+
}
|
|
1775
|
+
function getNonFiniteEdgeCases_0(range, includeNaNs) {
|
|
1776
|
+
_init_properties_floats_kt__ddosbb();
|
|
1777
|
+
var tmp;
|
|
1778
|
+
if (includeNaNs) {
|
|
1779
|
+
// Inline function 'kotlin.collections.buildList' call
|
|
1780
|
+
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1781
|
+
// Inline function 'kotlin.apply' call
|
|
1782
|
+
var this_0 = ArrayList_init_$Create$_0();
|
|
1783
|
+
this_0.y(NaN);
|
|
1784
|
+
if (range.yc() === -Infinity) {
|
|
1785
|
+
this_0.y(-Infinity);
|
|
1786
|
+
}
|
|
1787
|
+
if (range.zc() === Infinity) {
|
|
1788
|
+
this_0.y(Infinity);
|
|
1789
|
+
}
|
|
1790
|
+
tmp = this_0.p5();
|
|
1791
|
+
} else {
|
|
1792
|
+
tmp = emptyList();
|
|
1793
|
+
}
|
|
1794
|
+
return tmp;
|
|
1795
|
+
}
|
|
1796
|
+
function FloatShrinker() {
|
|
1797
|
+
}
|
|
1798
|
+
protoOf(FloatShrinker).w6u = function (value) {
|
|
1799
|
+
var tmp;
|
|
1800
|
+
var tmp_0;
|
|
1801
|
+
if (value === 0.0 || !isFinite_0(value)) {
|
|
1802
|
+
tmp_0 = true;
|
|
1803
|
+
} else {
|
|
1804
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
1805
|
+
tmp_0 = Math.abs(value) < 10 * 1.4E-45;
|
|
1806
|
+
}
|
|
1807
|
+
if (tmp_0) {
|
|
1808
|
+
tmp = emptyList();
|
|
1809
|
+
} else {
|
|
1810
|
+
var tmp0_safe_receiver = DoubleShrinker_getInstance().j6u(value.toString());
|
|
1811
|
+
var tmp_1;
|
|
1812
|
+
if (tmp0_safe_receiver == null) {
|
|
1813
|
+
tmp_1 = null;
|
|
1814
|
+
} else {
|
|
1815
|
+
// Inline function 'kotlin.text.toFloat' call
|
|
1816
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1817
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1818
|
+
tmp_1 = toDouble(tmp0_safe_receiver);
|
|
1819
|
+
}
|
|
1820
|
+
tmp = listOfNotNull_0(tmp_1);
|
|
1821
|
+
}
|
|
1822
|
+
return tmp;
|
|
1823
|
+
};
|
|
1824
|
+
protoOf(FloatShrinker).c6o = function (value) {
|
|
1825
|
+
return this.w6u((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1826
|
+
};
|
|
1827
|
+
var FloatShrinker_instance;
|
|
1828
|
+
function FloatShrinker_getInstance() {
|
|
1829
|
+
return FloatShrinker_instance;
|
|
1830
|
+
}
|
|
1831
|
+
function float$slambda($range, resultContinuation) {
|
|
1832
|
+
this.f6v_1 = $range;
|
|
1833
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1834
|
+
}
|
|
1835
|
+
protoOf(float$slambda).i6v = function ($this$arbitrary, it, $completion) {
|
|
1836
|
+
var tmp = this.q6o($this$arbitrary, it, $completion);
|
|
1837
|
+
tmp.f9_1 = Unit_instance;
|
|
1838
|
+
tmp.g9_1 = null;
|
|
1839
|
+
return tmp.l9();
|
|
1840
|
+
};
|
|
1841
|
+
protoOf(float$slambda).r9 = function (p1, p2, $completion) {
|
|
1842
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1843
|
+
return this.i6v(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1844
|
+
};
|
|
1845
|
+
protoOf(float$slambda).l9 = function () {
|
|
1846
|
+
var suspendResult = this.f9_1;
|
|
1847
|
+
$sm: do
|
|
1848
|
+
try {
|
|
1849
|
+
var tmp = this.d9_1;
|
|
1850
|
+
if (tmp === 0) {
|
|
1851
|
+
this.e9_1 = 1;
|
|
1852
|
+
return this.h6v_1.m6m_1.oi(this.f6v_1.yc(), this.f6v_1.zc());
|
|
1853
|
+
} else if (tmp === 1) {
|
|
1854
|
+
throw this.g9_1;
|
|
1855
|
+
}
|
|
1856
|
+
} catch ($p) {
|
|
1857
|
+
var e = $p;
|
|
1858
|
+
throw e;
|
|
1859
|
+
}
|
|
1860
|
+
while (true);
|
|
1861
|
+
};
|
|
1862
|
+
protoOf(float$slambda).q6o = function ($this$arbitrary, it, completion) {
|
|
1863
|
+
var i = new float$slambda(this.f6v_1, completion);
|
|
1864
|
+
i.g6v_1 = $this$arbitrary;
|
|
1865
|
+
i.h6v_1 = it;
|
|
1866
|
+
return i;
|
|
1867
|
+
};
|
|
1868
|
+
function float$slambda_0($range, resultContinuation) {
|
|
1869
|
+
var i = new float$slambda($range, resultContinuation);
|
|
1870
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1871
|
+
return i.i6v($this$arbitrary, it, $completion);
|
|
1872
|
+
};
|
|
1873
|
+
l.$arity = 2;
|
|
1874
|
+
return l;
|
|
1875
|
+
}
|
|
1876
|
+
var properties_initialized_floats_kt_vw92e1;
|
|
1877
|
+
function _init_properties_floats_kt__ddosbb() {
|
|
1878
|
+
if (!properties_initialized_floats_kt_vw92e1) {
|
|
1879
|
+
properties_initialized_floats_kt_vw92e1 = true;
|
|
1880
|
+
numericEdgeCases_0 = listOf([-1.0, -1.4E-45, -0.0, 0.0, 1.4E-45, 1.0]);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
function int(_this__u8e3s4, range) {
|
|
1884
|
+
range = range === VOID ? numberRangeToNumber(-2147483648, 2147483647) : range;
|
|
1885
|
+
// Inline function 'kotlin.intArrayOf' call
|
|
1886
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1887
|
+
var tmp0 = new Int32Array([range.p1_1, -1, 0, 1, range.q1_1]);
|
|
1888
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1889
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1890
|
+
var inductionVariable = 0;
|
|
1891
|
+
var last = tmp0.length;
|
|
1892
|
+
while (inductionVariable < last) {
|
|
1893
|
+
var element = tmp0[inductionVariable];
|
|
1894
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1895
|
+
var containsLower = range.p1_1;
|
|
1896
|
+
if (element <= range.q1_1 ? containsLower <= element : false) {
|
|
1897
|
+
destination.y(element);
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
var edgeCases = distinct(destination);
|
|
1901
|
+
var tmp = Companion_instance_2;
|
|
1902
|
+
return tmp.z6o(int$lambda(range)).j6p(edgeCases).i6p(new IntShrinker(range)).h6p(IntClassifier_init_$Create$(range)).z1x();
|
|
1903
|
+
}
|
|
1904
|
+
function IntShrinker(range) {
|
|
1905
|
+
this.j6v_1 = range;
|
|
1906
|
+
}
|
|
1907
|
+
protoOf(IntShrinker).k6v = function (value) {
|
|
1908
|
+
var tmp;
|
|
1909
|
+
switch (value) {
|
|
1910
|
+
case 0:
|
|
1911
|
+
tmp = emptyList();
|
|
1912
|
+
break;
|
|
1913
|
+
case 1:
|
|
1914
|
+
case -1:
|
|
1915
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1916
|
+
|
|
1917
|
+
var tmp0 = listOf_0(0);
|
|
1918
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1919
|
+
|
|
1920
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1921
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1922
|
+
while (_iterator__ex2g4s.u()) {
|
|
1923
|
+
var element = _iterator__ex2g4s.v();
|
|
1924
|
+
var progression = this.j6v_1;
|
|
1925
|
+
var containsLower = progression.p1_1;
|
|
1926
|
+
if (element <= progression.q1_1 ? containsLower <= element : false) {
|
|
1927
|
+
destination.y(element);
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
tmp = destination;
|
|
1932
|
+
break;
|
|
1933
|
+
default:
|
|
1934
|
+
// Inline function 'kotlin.intArrayOf' call
|
|
1935
|
+
|
|
1936
|
+
var a = new Int32Array([0, 1, -1, abs(value), value / 3 | 0, value / 2 | 0, imul(value, 2) / 3 | 0]);
|
|
1937
|
+
// Inline function 'kotlin.collections.map' call
|
|
1938
|
+
|
|
1939
|
+
var this_0 = numberRangeToNumber(1, 5);
|
|
1940
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1941
|
+
|
|
1942
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1943
|
+
var inductionVariable = this_0.p1_1;
|
|
1944
|
+
var last = this_0.q1_1;
|
|
1945
|
+
if (inductionVariable <= last)
|
|
1946
|
+
do {
|
|
1947
|
+
var item = inductionVariable;
|
|
1948
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1949
|
+
var tmp$ret$4 = value - item | 0;
|
|
1950
|
+
destination_0.y(tmp$ret$4);
|
|
1951
|
+
}
|
|
1952
|
+
while (!(item === last));
|
|
1953
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1954
|
+
|
|
1955
|
+
var tmp0_0 = reversed(destination_0);
|
|
1956
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1957
|
+
|
|
1958
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
1959
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
1960
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1961
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1962
|
+
if (element_0 > 0) {
|
|
1963
|
+
destination_1.y(element_0);
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
var b = destination_1;
|
|
1968
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
1969
|
+
|
|
1970
|
+
var tmp0_1 = distinct_0(plus_0(a, b));
|
|
1971
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1972
|
+
|
|
1973
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
1974
|
+
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
1975
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
1976
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
1977
|
+
if (!(element_1 === value)) {
|
|
1978
|
+
destination_2.y(element_1);
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1983
|
+
|
|
1984
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1985
|
+
|
|
1986
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
1987
|
+
var _iterator__ex2g4s_2 = destination_2.t();
|
|
1988
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
1989
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
1990
|
+
var progression_0 = this.j6v_1;
|
|
1991
|
+
var containsLower_0 = progression_0.p1_1;
|
|
1992
|
+
if (element_2 <= progression_0.q1_1 ? containsLower_0 <= element_2 : false) {
|
|
1993
|
+
destination_3.y(element_2);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
tmp = destination_3;
|
|
1998
|
+
break;
|
|
1999
|
+
}
|
|
2000
|
+
return tmp;
|
|
2001
|
+
};
|
|
2002
|
+
protoOf(IntShrinker).c6o = function (value) {
|
|
2003
|
+
return this.k6v((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2004
|
+
};
|
|
2005
|
+
function UIntShrinker(range) {
|
|
2006
|
+
this.l6v_1 = range;
|
|
2007
|
+
}
|
|
2008
|
+
protoOf(UIntShrinker).m6v = function (value) {
|
|
2009
|
+
var tmp;
|
|
2010
|
+
if (value === _UInt___init__impl__l7qpdl(0)) {
|
|
2011
|
+
tmp = emptyList();
|
|
2012
|
+
} else if (value === _UInt___init__impl__l7qpdl(1)) {
|
|
2013
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2014
|
+
var tmp0 = listOf_0(new UInt(_UInt___init__impl__l7qpdl(0)));
|
|
2015
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2016
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2017
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2018
|
+
while (_iterator__ex2g4s.u()) {
|
|
2019
|
+
var element = _iterator__ex2g4s.v();
|
|
2020
|
+
var it = element.sn_1;
|
|
2021
|
+
var progression = this.l6v_1;
|
|
2022
|
+
var containsLower = progression.eo_1;
|
|
2023
|
+
if (UInt__compareTo_impl_yacclj(it, progression.fo_1) <= 0 ? 0 <= UInt__compareTo_impl_yacclj(it, containsLower) : false) {
|
|
2024
|
+
destination.y(element);
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
tmp = destination;
|
|
2028
|
+
} else {
|
|
2029
|
+
var tmp_0 = _UInt___init__impl__l7qpdl(0);
|
|
2030
|
+
var tmp_1 = _UInt___init__impl__l7qpdl(1);
|
|
2031
|
+
// Inline function 'kotlin.UInt.div' call
|
|
2032
|
+
var other = _UInt___init__impl__l7qpdl(3);
|
|
2033
|
+
var tmp_2 = uintDivide(value, other);
|
|
2034
|
+
// Inline function 'kotlin.UInt.div' call
|
|
2035
|
+
var other_0 = _UInt___init__impl__l7qpdl(2);
|
|
2036
|
+
var tmp_3 = uintDivide(value, other_0);
|
|
2037
|
+
// Inline function 'kotlin.UInt.times' call
|
|
2038
|
+
var other_1 = _UInt___init__impl__l7qpdl(2);
|
|
2039
|
+
var tmp0_0 = _UInt___init__impl__l7qpdl(imul(_UInt___get_data__impl__f0vqqw(value), _UInt___get_data__impl__f0vqqw(other_1)));
|
|
2040
|
+
// Inline function 'kotlin.UInt.div' call
|
|
2041
|
+
var other_2 = _UInt___init__impl__l7qpdl(3);
|
|
2042
|
+
var tmp$ret$6 = uintDivide(tmp0_0, other_2);
|
|
2043
|
+
var a = listOf([new UInt(tmp_0), new UInt(tmp_1), new UInt(tmp_2), new UInt(tmp_3), new UInt(tmp$ret$6)]);
|
|
2044
|
+
var tmp0_1 = _UInt___init__impl__l7qpdl(1);
|
|
2045
|
+
// Inline function 'kotlin.UInt.rangeTo' call
|
|
2046
|
+
var other_3 = _UInt___init__impl__l7qpdl(5);
|
|
2047
|
+
// Inline function 'kotlin.collections.map' call
|
|
2048
|
+
var this_0 = new UIntRange(tmp0_1, other_3);
|
|
2049
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2050
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2051
|
+
var inductionVariable = UInt__toInt_impl_93yt4d(this_0.eo_1);
|
|
2052
|
+
var last = UInt__toInt_impl_93yt4d(this_0.fo_1);
|
|
2053
|
+
if (UInt__compareTo_impl_yacclj(toUInt(inductionVariable), toUInt(last)) <= 0)
|
|
2054
|
+
do {
|
|
2055
|
+
var item = new UInt(toUInt(inductionVariable));
|
|
2056
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2057
|
+
// Inline function 'kotlin.UInt.minus' call
|
|
2058
|
+
var other_4 = item.sn_1;
|
|
2059
|
+
var tmp$ret$8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(value) - _UInt___get_data__impl__f0vqqw(other_4) | 0);
|
|
2060
|
+
var tmp$ret$9 = new UInt(tmp$ret$8);
|
|
2061
|
+
destination_0.y(tmp$ret$9);
|
|
2062
|
+
}
|
|
2063
|
+
while (!(UInt__toInt_impl_93yt4d(item.sn_1) === last));
|
|
2064
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2065
|
+
var tmp0_2 = reversed(destination_0);
|
|
2066
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2067
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
2068
|
+
var _iterator__ex2g4s_0 = tmp0_2.t();
|
|
2069
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2070
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2071
|
+
var tmp0_3 = element_0.sn_1;
|
|
2072
|
+
// Inline function 'kotlin.UInt.compareTo' call
|
|
2073
|
+
var other_5 = _UInt___init__impl__l7qpdl(0);
|
|
2074
|
+
if (uintCompare(_UInt___get_data__impl__f0vqqw(tmp0_3), _UInt___get_data__impl__f0vqqw(other_5)) > 0) {
|
|
2075
|
+
destination_1.y(element_0);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
var b = destination_1;
|
|
2079
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
2080
|
+
var tmp0_4 = distinct(plus(a, b));
|
|
2081
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
2082
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2083
|
+
var _iterator__ex2g4s_1 = tmp0_4.t();
|
|
2084
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2085
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2086
|
+
if (!(element_1.sn_1 === value)) {
|
|
2087
|
+
destination_2.y(element_1);
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2091
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2092
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
2093
|
+
var _iterator__ex2g4s_2 = destination_2.t();
|
|
2094
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
2095
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
2096
|
+
var it_0 = element_2.sn_1;
|
|
2097
|
+
var progression_0 = this.l6v_1;
|
|
2098
|
+
var containsLower_0 = progression_0.eo_1;
|
|
2099
|
+
if (UInt__compareTo_impl_yacclj(it_0, progression_0.fo_1) <= 0 ? 0 <= UInt__compareTo_impl_yacclj(it_0, containsLower_0) : false) {
|
|
2100
|
+
destination_3.y(element_2);
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
tmp = destination_3;
|
|
2104
|
+
}
|
|
2105
|
+
return tmp;
|
|
2106
|
+
};
|
|
2107
|
+
protoOf(UIntShrinker).c6o = function (value) {
|
|
2108
|
+
return this.m6v(value instanceof UInt ? value.sn_1 : THROW_CCE());
|
|
2109
|
+
};
|
|
2110
|
+
function int$lambda($range) {
|
|
2111
|
+
return function (it) {
|
|
2112
|
+
return nextInt(it.m6m_1, $range);
|
|
2113
|
+
};
|
|
2114
|
+
}
|
|
2115
|
+
function long(_this__u8e3s4, range) {
|
|
2116
|
+
range = range === VOID ? longRangeToLong(new Long(0, -2147483648), new Long(-1, 2147483647)) : range;
|
|
2117
|
+
// Inline function 'kotlin.longArrayOf' call
|
|
2118
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2119
|
+
var tmp0 = longArrayOf([range.si_1, new Long(-1, -1), new Long(0, 0), new Long(1, 0), range.ti_1]);
|
|
2120
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2121
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2122
|
+
var inductionVariable = 0;
|
|
2123
|
+
var last = tmp0.length;
|
|
2124
|
+
while (inductionVariable < last) {
|
|
2125
|
+
var element = tmp0[inductionVariable];
|
|
2126
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2127
|
+
var containsLower = range.si_1;
|
|
2128
|
+
if (compare(element, range.ti_1) <= 0 ? compare(containsLower, element) <= 0 : false) {
|
|
2129
|
+
destination.y(element);
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
var edgeCases = distinct(destination);
|
|
2133
|
+
var tmp = Companion_instance_2;
|
|
2134
|
+
return tmp.z6o(long$lambda(range)).j6p(edgeCases).i6p(new LongShrinker(range)).h6p(LongClassifier_init_$Create$(range)).z1x();
|
|
2135
|
+
}
|
|
2136
|
+
function LongShrinker(range) {
|
|
2137
|
+
this.n6v_1 = range;
|
|
2138
|
+
}
|
|
2139
|
+
protoOf(LongShrinker).o6v = function (value) {
|
|
2140
|
+
var tmp;
|
|
2141
|
+
if (equalsLong(value, new Long(0, 0))) {
|
|
2142
|
+
tmp = emptyList();
|
|
2143
|
+
} else if (equalsLong(value, new Long(1, 0)) || equalsLong(value, new Long(-1, -1))) {
|
|
2144
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2145
|
+
var tmp0 = listOf_0(new Long(0, 0));
|
|
2146
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2147
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2148
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2149
|
+
while (_iterator__ex2g4s.u()) {
|
|
2150
|
+
var element = _iterator__ex2g4s.v();
|
|
2151
|
+
var progression = this.n6v_1;
|
|
2152
|
+
var containsLower = progression.si_1;
|
|
2153
|
+
if (compare(element, progression.ti_1) <= 0 ? compare(containsLower, element) <= 0 : false) {
|
|
2154
|
+
destination.y(element);
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
tmp = destination;
|
|
2158
|
+
} else {
|
|
2159
|
+
var tmp_0 = new Long(0, 0);
|
|
2160
|
+
var tmp_1 = new Long(1, 0);
|
|
2161
|
+
var tmp_2 = new Long(-1, -1);
|
|
2162
|
+
var tmp_3 = abs_0(value);
|
|
2163
|
+
// Inline function 'kotlin.Long.div' call
|
|
2164
|
+
var tmp_4 = divide(value, fromInt(3));
|
|
2165
|
+
// Inline function 'kotlin.Long.div' call
|
|
2166
|
+
var tmp_5 = divide(value, fromInt(2));
|
|
2167
|
+
// Inline function 'kotlin.Long.times' call
|
|
2168
|
+
// Inline function 'kotlin.Long.div' call
|
|
2169
|
+
var this_0 = multiply(value, fromInt(2));
|
|
2170
|
+
var tmp$ret$6 = divide(this_0, fromInt(3));
|
|
2171
|
+
var a = listOf([tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp$ret$6]);
|
|
2172
|
+
// Inline function 'kotlin.collections.map' call
|
|
2173
|
+
var this_1 = numberRangeToNumber(1, 5);
|
|
2174
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2175
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2176
|
+
var inductionVariable = this_1.p1_1;
|
|
2177
|
+
var last = this_1.q1_1;
|
|
2178
|
+
if (inductionVariable <= last)
|
|
2179
|
+
do {
|
|
2180
|
+
var item = inductionVariable;
|
|
2181
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2182
|
+
// Inline function 'kotlin.Long.minus' call
|
|
2183
|
+
var other = item;
|
|
2184
|
+
var tmp$ret$8 = subtract(value, fromInt(other));
|
|
2185
|
+
destination_0.y(tmp$ret$8);
|
|
2186
|
+
}
|
|
2187
|
+
while (!(item === last));
|
|
2188
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2189
|
+
var tmp0_0 = reversed(destination_0);
|
|
2190
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2191
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
2192
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
2193
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2194
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2195
|
+
if (compare(element_0, new Long(0, 0)) > 0) {
|
|
2196
|
+
destination_1.y(element_0);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
var b = destination_1;
|
|
2200
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
2201
|
+
var tmp0_1 = distinct(plus(a, b));
|
|
2202
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
2203
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2204
|
+
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
2205
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2206
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2207
|
+
if (!equalsLong(element_1, value)) {
|
|
2208
|
+
destination_2.y(element_1);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2212
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2213
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
2214
|
+
var _iterator__ex2g4s_2 = destination_2.t();
|
|
2215
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
2216
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
2217
|
+
var progression_0 = this.n6v_1;
|
|
2218
|
+
var containsLower_0 = progression_0.si_1;
|
|
2219
|
+
if (compare(element_2, progression_0.ti_1) <= 0 ? compare(containsLower_0, element_2) <= 0 : false) {
|
|
2220
|
+
destination_3.y(element_2);
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
tmp = destination_3;
|
|
2224
|
+
}
|
|
2225
|
+
return tmp;
|
|
2226
|
+
};
|
|
2227
|
+
protoOf(LongShrinker).c6o = function (value) {
|
|
2228
|
+
return this.o6v(value instanceof Long ? value : THROW_CCE());
|
|
2229
|
+
};
|
|
2230
|
+
function long$lambda($range) {
|
|
2231
|
+
return function (it) {
|
|
2232
|
+
return nextLong(it.m6m_1, $range);
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2235
|
+
function trampoline(_this__u8e3s4, next) {
|
|
2236
|
+
var tmp;
|
|
2237
|
+
if (_this__u8e3s4 instanceof TrampolineArb) {
|
|
2238
|
+
tmp = _this__u8e3s4.s6v(next);
|
|
2239
|
+
} else {
|
|
2240
|
+
tmp = TrampolineArb_init_$Create$(_this__u8e3s4).s6v(next);
|
|
2241
|
+
}
|
|
2242
|
+
return tmp;
|
|
2243
|
+
}
|
|
2244
|
+
function TrampolineArb_init_$Init$(first, $this) {
|
|
2245
|
+
TrampolineArb.call($this, first, emptyList());
|
|
2246
|
+
return $this;
|
|
2247
|
+
}
|
|
2248
|
+
function TrampolineArb_init_$Create$(first) {
|
|
2249
|
+
return TrampolineArb_init_$Init$(first, objectCreate(protoOf(TrampolineArb)));
|
|
2250
|
+
}
|
|
2251
|
+
function TrampolineArb(first, commands) {
|
|
2252
|
+
Arb.call(this);
|
|
2253
|
+
this.q6v_1 = first;
|
|
2254
|
+
this.r6v_1 = commands;
|
|
2255
|
+
}
|
|
2256
|
+
protoOf(TrampolineArb).s6v = function (fn) {
|
|
2257
|
+
var tmp = new TrampolineArb(this.q6v_1, plus_1(this.r6v_1, typeof fn === 'function' ? fn : THROW_CCE()));
|
|
2258
|
+
return tmp instanceof TrampolineArb ? tmp : THROW_CCE();
|
|
2259
|
+
};
|
|
2260
|
+
protoOf(TrampolineArb).q6m = function (rs) {
|
|
2261
|
+
var tmp0 = this.r6v_1;
|
|
2262
|
+
// Inline function 'kotlin.collections.fold' call
|
|
2263
|
+
var accumulator = this.q6v_1;
|
|
2264
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2265
|
+
while (_iterator__ex2g4s.u()) {
|
|
2266
|
+
var element = _iterator__ex2g4s.v();
|
|
2267
|
+
var currentArb = accumulator;
|
|
2268
|
+
var tmp0_elvis_lhs = currentArb.q6m(rs);
|
|
2269
|
+
var currentEdge = tmp0_elvis_lhs == null ? currentArb.w6m(rs) : tmp0_elvis_lhs;
|
|
2270
|
+
var tmp = element(currentEdge instanceof Sample ? currentEdge : THROW_CCE());
|
|
2271
|
+
accumulator = tmp instanceof Arb ? tmp : THROW_CCE();
|
|
2272
|
+
}
|
|
2273
|
+
return accumulator.q6m(rs);
|
|
2274
|
+
};
|
|
2275
|
+
protoOf(TrampolineArb).w6m = function (rs) {
|
|
2276
|
+
var tmp0 = this.r6v_1;
|
|
2277
|
+
var tmp = this.q6v_1;
|
|
2278
|
+
// Inline function 'kotlin.collections.fold' call
|
|
2279
|
+
var accumulator = tmp instanceof Arb ? tmp : THROW_CCE();
|
|
2280
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2281
|
+
while (_iterator__ex2g4s.u()) {
|
|
2282
|
+
var element = _iterator__ex2g4s.v();
|
|
2283
|
+
accumulator = element(accumulator.w6m(rs));
|
|
2284
|
+
}
|
|
2285
|
+
var tmp_0 = accumulator.w6m(rs);
|
|
2286
|
+
return tmp_0 instanceof Sample ? tmp_0 : THROW_CCE();
|
|
2287
|
+
};
|
|
2288
|
+
function map_0(_this__u8e3s4, fn) {
|
|
2289
|
+
return trampoline(_this__u8e3s4, map$lambda_1(fn));
|
|
2290
|
+
}
|
|
2291
|
+
function flatMap(_this__u8e3s4, fn) {
|
|
2292
|
+
return trampoline(_this__u8e3s4, flatMap$lambda(fn));
|
|
2293
|
+
}
|
|
2294
|
+
function map$2$1($fn, $sampleA) {
|
|
2295
|
+
this.u6v_1 = $fn;
|
|
2296
|
+
this.v6v_1 = $sampleA;
|
|
2297
|
+
Arb.call(this);
|
|
2298
|
+
}
|
|
2299
|
+
protoOf(map$2$1).q6m = function (rs) {
|
|
2300
|
+
return asSample(this.u6v_1(this.v6v_1.x6m_1));
|
|
2301
|
+
};
|
|
2302
|
+
protoOf(map$2$1).w6m = function (rs) {
|
|
2303
|
+
var value = this.u6v_1(this.v6v_1.x6m_1);
|
|
2304
|
+
var shrinks = map(this.v6v_1.y6m_1, this.u6v_1);
|
|
2305
|
+
return new Sample(value, shrinks);
|
|
2306
|
+
};
|
|
2307
|
+
function map$lambda_1($fn) {
|
|
2308
|
+
return function (sampleA) {
|
|
2309
|
+
return new map$2$1($fn, sampleA);
|
|
2310
|
+
};
|
|
2311
|
+
}
|
|
2312
|
+
function flatMap$lambda($fn) {
|
|
2313
|
+
return function (it) {
|
|
2314
|
+
return $fn(it.x6m_1);
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
function IntClassifier_init_$Init$(range, $this) {
|
|
2318
|
+
IntClassifier.call($this, range.p1_1, range.q1_1);
|
|
2319
|
+
return $this;
|
|
2320
|
+
}
|
|
2321
|
+
function IntClassifier_init_$Create$(range) {
|
|
2322
|
+
return IntClassifier_init_$Init$(range, objectCreate(protoOf(IntClassifier)));
|
|
2323
|
+
}
|
|
2324
|
+
function IntClassifier(min, max) {
|
|
2325
|
+
this.w6v_1 = min;
|
|
2326
|
+
this.x6v_1 = max;
|
|
2327
|
+
}
|
|
2328
|
+
function LongClassifier_init_$Init$(range, $this) {
|
|
2329
|
+
LongClassifier.call($this, range.si_1, range.ti_1);
|
|
2330
|
+
return $this;
|
|
2331
|
+
}
|
|
2332
|
+
function LongClassifier_init_$Create$(range) {
|
|
2333
|
+
return LongClassifier_init_$Init$(range, objectCreate(protoOf(LongClassifier)));
|
|
2334
|
+
}
|
|
2335
|
+
function LongClassifier(min, max) {
|
|
2336
|
+
this.y6v_1 = min;
|
|
2337
|
+
this.z6v_1 = max;
|
|
2338
|
+
}
|
|
2339
|
+
function default_0(_this__u8e3s4) {
|
|
2340
|
+
return new EdgeConfig(PropertyTesting_getInstance().m6n_1);
|
|
2341
|
+
}
|
|
2342
|
+
function PropertyTesting$defaultSeed$lambda(it) {
|
|
2343
|
+
return toLong(it);
|
|
2344
|
+
}
|
|
2345
|
+
function PropertyTesting() {
|
|
2346
|
+
PropertyTesting_instance = this;
|
|
2347
|
+
this.z6m_1 = 10;
|
|
2348
|
+
this.a6n_1 = sysprop('kotest.proptest.output.shrink-steps', true);
|
|
2349
|
+
this.b6n_1 = sysprop('kotest.proptest.output.generated-values', false);
|
|
2350
|
+
this.c6n_1 = sysprop('kotest.proptest.output.config', false);
|
|
2351
|
+
this.d6n_1 = sysprop_0('kotest.proptest.arb.edgecases-bind-determinism', 0.9);
|
|
2352
|
+
this.e6n_1 = sysprop_1('kotest.proptest.max.discard.percentage', 20);
|
|
2353
|
+
this.f6n_1 = sysprop_1('kotest.proptest.discard.threshold', 50);
|
|
2354
|
+
var tmp = this;
|
|
2355
|
+
tmp.g6n_1 = sysprop_2('kotest.proptest.default.seed', null, PropertyTesting$defaultSeed$lambda);
|
|
2356
|
+
this.h6n_1 = sysprop_1('kotest.proptest.default.min-success', 2147483647);
|
|
2357
|
+
this.i6n_1 = sysprop_1('kotest.proptest.default.max-failure', 0);
|
|
2358
|
+
this.j6n_1 = sysprop_1('kotest.proptest.default.iteration.count', 1000);
|
|
2359
|
+
var tmp_0 = this;
|
|
2360
|
+
var mode = sysprop_3('kotest.proptest.default.shrinking.mode', 'bounded');
|
|
2361
|
+
var tmp_1;
|
|
2362
|
+
switch (mode) {
|
|
2363
|
+
case 'off':
|
|
2364
|
+
tmp_1 = Off_getInstance();
|
|
2365
|
+
break;
|
|
2366
|
+
case 'bounded':
|
|
2367
|
+
tmp_1 = new Bounded(sysprop_1('kotest.proptest.default.shrinking.bound', 1000));
|
|
2368
|
+
break;
|
|
2369
|
+
case 'unbounded':
|
|
2370
|
+
tmp_1 = Unbounded_getInstance();
|
|
2371
|
+
break;
|
|
2372
|
+
default:
|
|
2373
|
+
var message = 'Invalid shrinking mode: ' + mode;
|
|
2374
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
2375
|
+
}
|
|
2376
|
+
tmp_0.k6n_1 = tmp_1;
|
|
2377
|
+
var tmp_2 = this;
|
|
2378
|
+
// Inline function 'kotlin.collections.listOf' call
|
|
2379
|
+
tmp_2.l6n_1 = emptyList();
|
|
2380
|
+
this.m6n_1 = sysprop_0('kotest.proptest.arb.edgecases-generation-probability', 0.02);
|
|
2381
|
+
this.n6n_1 = sysprop('kotest.proptest.arb.output.classifications', false);
|
|
2382
|
+
this.o6n_1 = sysprop('kotest.proptest.seed.fail-if-set', false);
|
|
2383
|
+
this.p6n_1 = sysprop('kotest.proptest.seed.write-failed', true);
|
|
2384
|
+
this.q6n_1 = LabelOrder_Quantity_getInstance();
|
|
2385
|
+
this.r6n_1 = DefaultStatisticsReporter_instance;
|
|
2386
|
+
this.s6n_1 = StatisticsReportMode_ON_getInstance();
|
|
2387
|
+
this.t6n_1 = sysprop('kotest.proptest.arb.string.output-hex-for-unprintable-chars', false);
|
|
2388
|
+
this.u6n_1 = numberRangeToNumber(0, 100);
|
|
2389
|
+
}
|
|
2390
|
+
var PropertyTesting_instance;
|
|
2391
|
+
function PropertyTesting_getInstance() {
|
|
2392
|
+
if (PropertyTesting_instance == null)
|
|
2393
|
+
new PropertyTesting();
|
|
2394
|
+
return PropertyTesting_instance;
|
|
2395
|
+
}
|
|
2396
|
+
var LabelOrder_Quantity_instance;
|
|
2397
|
+
var LabelOrder_Lexicographic_instance;
|
|
2398
|
+
var LabelOrder_entriesInitialized;
|
|
2399
|
+
function LabelOrder_initEntries() {
|
|
2400
|
+
if (LabelOrder_entriesInitialized)
|
|
2401
|
+
return Unit_instance;
|
|
2402
|
+
LabelOrder_entriesInitialized = true;
|
|
2403
|
+
LabelOrder_Quantity_instance = new LabelOrder('Quantity', 0);
|
|
2404
|
+
LabelOrder_Lexicographic_instance = new LabelOrder('Lexicographic', 1);
|
|
2405
|
+
}
|
|
2406
|
+
function LabelOrder(name, ordinal) {
|
|
2407
|
+
Enum.call(this, name, ordinal);
|
|
2408
|
+
}
|
|
2409
|
+
function LabelOrder_Quantity_getInstance() {
|
|
2410
|
+
LabelOrder_initEntries();
|
|
2411
|
+
return LabelOrder_Quantity_instance;
|
|
2412
|
+
}
|
|
2413
|
+
function Companion_2() {
|
|
2414
|
+
}
|
|
2415
|
+
protoOf(Companion_2).a6w = function (seed) {
|
|
2416
|
+
return new RandomSource(Random(seed), seed);
|
|
2417
|
+
};
|
|
2418
|
+
protoOf(Companion_2).e6o = function () {
|
|
2419
|
+
var seed = Default_getInstance().yf();
|
|
2420
|
+
return new RandomSource(Random(seed), seed);
|
|
2421
|
+
};
|
|
2422
|
+
var Companion_instance_3;
|
|
2423
|
+
function Companion_getInstance_2() {
|
|
2424
|
+
return Companion_instance_3;
|
|
2425
|
+
}
|
|
2426
|
+
function RandomSource(random, seed) {
|
|
2427
|
+
this.m6m_1 = random;
|
|
2428
|
+
this.n6m_1 = seed;
|
|
2429
|
+
}
|
|
2430
|
+
protoOf(RandomSource).toString = function () {
|
|
2431
|
+
return 'RandomSource(random=' + toString(this.m6m_1) + ', seed=' + this.n6m_1.toString() + ')';
|
|
2432
|
+
};
|
|
2433
|
+
protoOf(RandomSource).hashCode = function () {
|
|
2434
|
+
var result = hashCode(this.m6m_1);
|
|
2435
|
+
result = imul(result, 31) + this.n6m_1.hashCode() | 0;
|
|
2436
|
+
return result;
|
|
2437
|
+
};
|
|
2438
|
+
protoOf(RandomSource).equals = function (other) {
|
|
2439
|
+
if (this === other)
|
|
2440
|
+
return true;
|
|
2441
|
+
if (!(other instanceof RandomSource))
|
|
2442
|
+
return false;
|
|
2443
|
+
if (!equals(this.m6m_1, other.m6m_1))
|
|
2444
|
+
return false;
|
|
2445
|
+
if (!equalsLong(this.n6m_1, other.n6m_1))
|
|
2446
|
+
return false;
|
|
2447
|
+
return true;
|
|
2448
|
+
};
|
|
2449
|
+
var StatisticsReportMode_ON_instance;
|
|
2450
|
+
var StatisticsReportMode_FAILED_instance;
|
|
2451
|
+
var StatisticsReportMode_SUCCESS_instance;
|
|
2452
|
+
var StatisticsReportMode_OFF_instance;
|
|
2453
|
+
var StatisticsReportMode_entriesInitialized;
|
|
2454
|
+
function StatisticsReportMode_initEntries() {
|
|
2455
|
+
if (StatisticsReportMode_entriesInitialized)
|
|
2456
|
+
return Unit_instance;
|
|
2457
|
+
StatisticsReportMode_entriesInitialized = true;
|
|
2458
|
+
StatisticsReportMode_ON_instance = new StatisticsReportMode('ON', 0);
|
|
2459
|
+
StatisticsReportMode_FAILED_instance = new StatisticsReportMode('FAILED', 1);
|
|
2460
|
+
StatisticsReportMode_SUCCESS_instance = new StatisticsReportMode('SUCCESS', 2);
|
|
2461
|
+
StatisticsReportMode_OFF_instance = new StatisticsReportMode('OFF', 3);
|
|
2462
|
+
}
|
|
2463
|
+
function StatisticsReportMode(name, ordinal) {
|
|
2464
|
+
Enum.call(this, name, ordinal);
|
|
2465
|
+
}
|
|
2466
|
+
function StatisticsReportMode_ON_getInstance() {
|
|
2467
|
+
StatisticsReportMode_initEntries();
|
|
2468
|
+
return StatisticsReportMode_ON_instance;
|
|
2469
|
+
}
|
|
2470
|
+
function DefaultStatisticsReporter() {
|
|
2471
|
+
}
|
|
2472
|
+
var DefaultStatisticsReporter_instance;
|
|
2473
|
+
function DefaultStatisticsReporter_getInstance() {
|
|
2474
|
+
return DefaultStatisticsReporter_instance;
|
|
2475
|
+
}
|
|
2476
|
+
//region block: init
|
|
2477
|
+
Companion_instance_0 = new Companion();
|
|
2478
|
+
Companion_instance_1 = new Companion_0();
|
|
2479
|
+
Companion_instance_2 = new Companion_1();
|
|
2480
|
+
FloatShrinker_instance = new FloatShrinker();
|
|
2481
|
+
Companion_instance_3 = new Companion_2();
|
|
2482
|
+
DefaultStatisticsReporter_instance = new DefaultStatisticsReporter();
|
|
2483
|
+
//endregion
|
|
2484
|
+
//region block: exports
|
|
2485
|
+
export {
|
|
2486
|
+
Companion_instance_0 as Companion_instance21ufaak2k5re2,
|
|
2487
|
+
Companion_instance_3 as Companion_instance3s3n1oxamd1r4,
|
|
2488
|
+
boolean as boolean22whamdaxmlpn,
|
|
2489
|
+
byteArray as byteArray2qqx36w76cyb0,
|
|
2490
|
+
byte as byte3rz7pgzhi6m64,
|
|
2491
|
+
constant as constant1b2155qu9msbe,
|
|
2492
|
+
double as doubletnd0mywl30ny,
|
|
2493
|
+
element as element2c9vnyy5405af,
|
|
2494
|
+
float as float3e4skrs0ychqj,
|
|
2495
|
+
int as int2h4godnt2s0rr,
|
|
2496
|
+
long as long1rc5doehwhlin,
|
|
2497
|
+
next as next3ubxtqgi6adv7,
|
|
2498
|
+
};
|
|
2499
|
+
//endregion
|
|
2500
|
+
|
|
2501
|
+
//# sourceMappingURL=kotest-kotest-property.mjs.map
|