@flock/wirespec 0.18.4 → 0.19.0-RC.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/arrow-arrow-atomic.mjs +12 -12
- package/arrow-arrow-core.mjs +163 -163
- package/clikt-clikt-mordant.mjs +80 -80
- package/clikt-clikt-mordant.mjs.map +1 -1
- package/clikt-clikt.mjs +1574 -1574
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +444 -444
- 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-kotest-property-datetime.mjs +4 -0
- package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
- package/kotest-kotest-property.mjs +3230 -0
- package/kotest-kotest-property.mjs.map +1 -0
- package/kotest-property-arbs.mjs +482 -0
- package/kotest-property-arbs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +5570 -2388
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +4931 -4931
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1819 -1819
- package/kotlinx-coroutines-test.mjs +4 -0
- package/kotlinx-coroutines-test.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +453 -453
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2017 -1983
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant.mjs +1364 -1364
- package/package.json +9 -2
- package/wirespec-generator.d.ts +52 -0
- package/wirespec-generator.mjs +9 -0
- package/wirespec-src-compiler-core.mjs +1541 -1540
- package/wirespec-src-compiler-emitters-java.mjs +446 -383
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +369 -306
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +601 -403
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +754 -443
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +243 -164
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +740 -451
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +83 -83
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +6676 -4858
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +418 -418
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +512 -512
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +772 -772
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-integration-kotest.mjs +1537 -0
- package/wirespec-src-integration-kotest.mjs.map +1 -0
- package/wirespec-src-plugin-arguments.mjs +185 -185
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +106 -106
- package/wirespec-src-plugin-npm.d.mts +11 -0
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +53 -53
- 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,3230 @@
|
|
|
1
|
+
import {
|
|
2
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
3
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
4
|
+
generateSequence3b5pkcqrpr2fo as generateSequence,
|
|
5
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
6
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
7
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
8
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
9
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
10
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
11
|
+
toString1pkumu07cwy4m as toString,
|
|
12
|
+
IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
|
|
13
|
+
flatten2xcyr6x6x7b3e as flatten,
|
|
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
|
+
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
22
|
+
distinct10qe1scfdvu5k as distinct,
|
|
23
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
24
|
+
mapsbvh18eqox7a as map,
|
|
25
|
+
take2rh6pen3z50h7 as take,
|
|
26
|
+
plus310ted5e4i90h as plus,
|
|
27
|
+
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
28
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
29
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
30
|
+
listOf1jh22dvmctj1r as listOf,
|
|
31
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
32
|
+
Enum3alwj03lh1n41 as Enum,
|
|
33
|
+
EmptyCoroutineContext_getInstance10e98b8bnsvr1 as EmptyCoroutineContext_getInstance,
|
|
34
|
+
throwOnFailure24snjmtlqgzo8 as throwOnFailure,
|
|
35
|
+
_Result___get_value__impl__bjfvqg3630bgmytqwyb as _Result___get_value__impl__bjfvqg,
|
|
36
|
+
IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
|
|
37
|
+
startCoroutineUninterceptedOrReturnNonGeneratorVersionyfrrvzbtl8bf as startCoroutineUninterceptedOrReturnNonGeneratorVersion,
|
|
38
|
+
Continuation1aa2oekvx7jm7 as Continuation,
|
|
39
|
+
random234odtwlu7lq2 as random,
|
|
40
|
+
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
41
|
+
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
42
|
+
ClosedRangehokgr73im9z3 as ClosedRange,
|
|
43
|
+
containsztqhvjtb696l as contains,
|
|
44
|
+
toByte4i43936u611k as toByte,
|
|
45
|
+
_UByte___get_data__impl__jof9qrfg5oujomrowy as _UByte___get_data__impl__jof9qr,
|
|
46
|
+
_UInt___init__impl__l7qpdl3eewek7byy9h9 as _UInt___init__impl__l7qpdl,
|
|
47
|
+
UInt1hthisrv6cndi as UInt,
|
|
48
|
+
_UInt___get_data__impl__f0vqqw3lsr2hwtcnhrf as _UInt___get_data__impl__f0vqqw,
|
|
49
|
+
_UByte___init__impl__g9hnc418b8pq346rvu4 as _UByte___init__impl__g9hnc4,
|
|
50
|
+
UBytep4j7r1t64gz1 as UByte,
|
|
51
|
+
toByteArray3caw0hip00os as toByteArray,
|
|
52
|
+
first1cs6gg5jrulfl as first,
|
|
53
|
+
filter184huxd00uyfg as filter,
|
|
54
|
+
firstqtqxwgtggxw8 as first_0,
|
|
55
|
+
UIntRangemvq5a1vbdqql as UIntRange,
|
|
56
|
+
take3onnpy6q7ctcz as take_0,
|
|
57
|
+
dropLast1vpiyky649o34 as dropLast,
|
|
58
|
+
drop3na99dw9feawf as drop,
|
|
59
|
+
listOfvhqybd2zx248 as listOf_0,
|
|
60
|
+
KtList3hktaavzmj137 as KtList,
|
|
61
|
+
firstOrNull1982767dljvdy as firstOrNull,
|
|
62
|
+
listOfNotNull2woi2boe01ub4 as listOfNotNull,
|
|
63
|
+
nextInt2pxj3bzg1eemu as nextInt,
|
|
64
|
+
toListx6x8nvfmvvht as toList,
|
|
65
|
+
_Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
|
|
66
|
+
Char19o2r8palgjof as Char,
|
|
67
|
+
StringBuilder_init_$Create$39ouzl6b47q8d as StringBuilder_init_$Create$,
|
|
68
|
+
joinToStringooja5rkatz3u as joinToString,
|
|
69
|
+
Char__rangeTo_impl_tkncvp2rh7j0ueljywd as Char__rangeTo_impl_tkncvp,
|
|
70
|
+
plus39kp8wyage607 as plus_0,
|
|
71
|
+
plus20p0vtfmu0596 as plus_1,
|
|
72
|
+
rangeTo5xinnemk0fd3 as rangeTo,
|
|
73
|
+
RegexOption_IGNORE_CASE_getInstance2ohbx186qe23p as RegexOption_IGNORE_CASE_getInstance,
|
|
74
|
+
Regex_init_$Create$o3w44y7t0smx as Regex_init_$Create$,
|
|
75
|
+
isFinite2t9l5a275mxm6 as isFinite,
|
|
76
|
+
toDouble1kn912gjoizjp as toDouble,
|
|
77
|
+
listOfNotNull1v4ggfackvuny as listOfNotNull_0,
|
|
78
|
+
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
79
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
80
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
81
|
+
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
82
|
+
last2n4gf5az1lkn4 as last,
|
|
83
|
+
isDigit3mimrri4wkzop as isDigit,
|
|
84
|
+
take9j4462mea726 as take_1,
|
|
85
|
+
takeLast2r8kr8e6g6hi7 as takeLast,
|
|
86
|
+
dropLastlqc2oyv04br0 as dropLast_0,
|
|
87
|
+
toListcthpck5qntdg as toList_0,
|
|
88
|
+
minus1djrl64vbav3y as minus,
|
|
89
|
+
joinToString1cxrrlmo0chqs as joinToString_0,
|
|
90
|
+
toString3dhdjl9yf50de as toString_1,
|
|
91
|
+
Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$_0,
|
|
92
|
+
sequenceOfdrc6uefhtiet as sequenceOf,
|
|
93
|
+
plus2l6bq32n2wlna as plus_2,
|
|
94
|
+
firstOrNull175qkyx53x0vd as firstOrNull_0,
|
|
95
|
+
rangeToeizvz34h11nd as rangeTo_0,
|
|
96
|
+
isFinite1tx0gn65nl9tj as isFinite_0,
|
|
97
|
+
abs1kdzbjes1idip as abs,
|
|
98
|
+
reversed22y3au42jl32b as reversed,
|
|
99
|
+
plus2lupu3ot2lvhl as plus_3,
|
|
100
|
+
distinct24ithjwsnuqq8 as distinct_0,
|
|
101
|
+
uintDivide3r5nfwgstcow1 as uintDivide,
|
|
102
|
+
UInt__toInt_impl_93yt4d1l5chk3dckogz as UInt__toInt_impl_93yt4d,
|
|
103
|
+
toUInt2yfjuryeoq592 as toUInt,
|
|
104
|
+
UInt__compareTo_impl_yacclj2qzfiopi3rnn0 as UInt__compareTo_impl_yacclj,
|
|
105
|
+
uintCompare18k97xs29243i as uintCompare,
|
|
106
|
+
Long2qws0ah9gnpki as Long,
|
|
107
|
+
longRangeToLong1wnzlyc7cu6kp as longRangeToLong,
|
|
108
|
+
longArrayOf1jqne2a8v34i5 as longArrayOf,
|
|
109
|
+
compare2uud5j30pw5xc as compare,
|
|
110
|
+
abs22kdeprm0tm5i as abs_0,
|
|
111
|
+
fromInt1lka3ktyu79a4 as fromInt,
|
|
112
|
+
divide3tol6kxdi8xn6 as divide,
|
|
113
|
+
multiply18i3gv3wlmcjg as multiply,
|
|
114
|
+
subtract16cg4lfi29fq9 as subtract,
|
|
115
|
+
equalsLong28bsrfhwvd686 as equalsLong,
|
|
116
|
+
nextLong1aiee7lbc67js as nextLong,
|
|
117
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
118
|
+
toLongkk4waq8msp1k as toLong,
|
|
119
|
+
Randomei1bbeye8rr8 as Random,
|
|
120
|
+
Default_getInstance1yflkybdrpcz6 as Default_getInstance,
|
|
121
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
122
|
+
import {
|
|
123
|
+
sysprop1tygc7b8xvq3v as sysprop,
|
|
124
|
+
sysprop25ryjwiz3kcc3 as sysprop_0,
|
|
125
|
+
syspropm73f0zr5j4q2 as sysprop_1,
|
|
126
|
+
sysprop28jkvofav1dz as sysprop_2,
|
|
127
|
+
syspropvs0igg2iawwa as sysprop_3,
|
|
128
|
+
} from './kotest-kotest-common.mjs';
|
|
129
|
+
//region block: imports
|
|
130
|
+
var imul = Math.imul;
|
|
131
|
+
//endregion
|
|
132
|
+
//region block: pre-declaration
|
|
133
|
+
initMetadataForCompanion(Companion);
|
|
134
|
+
initMetadataForClass(Gen, 'Gen');
|
|
135
|
+
initMetadataForClass(Arb, 'Arb', VOID, Gen);
|
|
136
|
+
initMetadataForClass(Sample, 'Sample');
|
|
137
|
+
initMetadataForCompanion(Companion_0);
|
|
138
|
+
initMetadataForClass(EdgeConfig, 'EdgeConfig', EdgeConfig);
|
|
139
|
+
initMetadataForClass(Exhaustive, 'Exhaustive', VOID, Gen);
|
|
140
|
+
initMetadataForClass(RTree, 'RTree');
|
|
141
|
+
initMetadataForClass(bimap$1);
|
|
142
|
+
initMetadataForClass(ShrinkingMode, 'ShrinkingMode');
|
|
143
|
+
initMetadataForObject(Off, 'Off', VOID, ShrinkingMode);
|
|
144
|
+
initMetadataForObject(Unbounded, 'Unbounded', VOID, ShrinkingMode);
|
|
145
|
+
initMetadataForClass(Bounded, 'Bounded', VOID, ShrinkingMode);
|
|
146
|
+
initMetadataForClass(bindN$1, VOID, VOID, Arb);
|
|
147
|
+
initMetadataForLambda(unit$slambda, CoroutineImpl, VOID, [2]);
|
|
148
|
+
initMetadataForLambda(boolean$slambda, CoroutineImpl, VOID, [2]);
|
|
149
|
+
initMetadataForInterface(ArbitraryBuilderContext, 'ArbitraryBuilderContext', VOID, VOID, VOID, [1]);
|
|
150
|
+
initMetadataForClass(SingleShotGenerationMode, 'SingleShotGenerationMode', VOID, Enum);
|
|
151
|
+
initMetadataForClass(SingleShotArbContinuation, 'SingleShotArbContinuation', VOID, VOID, [Continuation], [1]);
|
|
152
|
+
initMetadataForClass(Restricted, 'Restricted', VOID, SingleShotArbContinuation, [SingleShotArbContinuation, ArbitraryBuilderContext], [1]);
|
|
153
|
+
initMetadataForCompanion(Companion_1);
|
|
154
|
+
initMetadataForClass(ArbitraryBuilder$build$1, VOID, VOID, Arb);
|
|
155
|
+
initMetadataForClass(ArbitraryBuilder, 'ArbitraryBuilder');
|
|
156
|
+
initMetadataForLambda(arbitrary$slambda, CoroutineImpl, VOID, [2]);
|
|
157
|
+
initMetadataForLambda(arbitrary$o$delegate$slambda, CoroutineImpl, VOID, [2]);
|
|
158
|
+
initMetadataForClass(arbitrary$3, VOID, VOID, Arb);
|
|
159
|
+
initMetadataForLambda(arbitraryBuilder$o$runBuilderFn$slambda, CoroutineImpl, VOID, [1]);
|
|
160
|
+
initMetadataForClass(arbitraryBuilder$1, VOID, VOID, Arb);
|
|
161
|
+
initMetadataForLambda(arbitrary$o$delegate$slambda_1, CoroutineImpl, VOID, [2]);
|
|
162
|
+
initMetadataForClass(arbitrary$4, VOID, VOID, Arb);
|
|
163
|
+
initMetadataForLambda(arbitrary$o$delegate$slambda_3, CoroutineImpl, VOID, [2]);
|
|
164
|
+
initMetadataForClass(arbitrary$5, VOID, VOID, Arb);
|
|
165
|
+
initMetadataForLambda(byte$slambda, CoroutineImpl, VOID, [2]);
|
|
166
|
+
initMetadataForClass(ListShrinker, 'ListShrinker');
|
|
167
|
+
initMetadataForLambda(element$slambda, CoroutineImpl, VOID, [2]);
|
|
168
|
+
initMetadataForLambda(list$slambda, CoroutineImpl, VOID, [2]);
|
|
169
|
+
initMetadataForLambda(_labelArb$slambda, CoroutineImpl, VOID, [2]);
|
|
170
|
+
initMetadataForLambda(validCharsArb$slambda, CoroutineImpl, VOID, [2]);
|
|
171
|
+
initMetadataForLambda(domain$slambda, CoroutineImpl, VOID, [2]);
|
|
172
|
+
initMetadataForObject(DoubleShrinker, 'DoubleShrinker');
|
|
173
|
+
initMetadataForLambda(double$slambda, CoroutineImpl, VOID, [2]);
|
|
174
|
+
initMetadataForLambda(emailLocalPart$slambda, CoroutineImpl, VOID, [2]);
|
|
175
|
+
initMetadataForClass(filter$2$1, VOID, VOID, Arb);
|
|
176
|
+
initMetadataForObject(FloatShrinker, 'FloatShrinker');
|
|
177
|
+
initMetadataForLambda(float$slambda, CoroutineImpl, VOID, [2]);
|
|
178
|
+
initMetadataForClass(IntShrinker, 'IntShrinker');
|
|
179
|
+
initMetadataForClass(UIntShrinker, 'UIntShrinker');
|
|
180
|
+
initMetadataForClass(LongShrinker, 'LongShrinker');
|
|
181
|
+
initMetadataForClass(TrampolineArb, 'TrampolineArb', VOID, Arb);
|
|
182
|
+
initMetadataForClass(map$2$1, VOID, VOID, Arb);
|
|
183
|
+
initMetadataForLambda(ipAddressV4$slambda, CoroutineImpl, VOID, [2]);
|
|
184
|
+
initMetadataForClass(IntClassifier, 'IntClassifier');
|
|
185
|
+
initMetadataForClass(LongClassifier, 'LongClassifier');
|
|
186
|
+
initMetadataForObject(PropertyTesting, 'PropertyTesting');
|
|
187
|
+
initMetadataForClass(LabelOrder, 'LabelOrder', VOID, Enum);
|
|
188
|
+
initMetadataForCompanion(Companion_2);
|
|
189
|
+
initMetadataForClass(RandomSource, 'RandomSource');
|
|
190
|
+
initMetadataForClass(StatisticsReportMode, 'StatisticsReportMode', VOID, Enum);
|
|
191
|
+
initMetadataForObject(DefaultStatisticsReporter, 'DefaultStatisticsReporter', VOID, VOID, VOID, [3, 1]);
|
|
192
|
+
//endregion
|
|
193
|
+
function Companion() {
|
|
194
|
+
}
|
|
195
|
+
var Companion_instance;
|
|
196
|
+
function Companion_getInstance() {
|
|
197
|
+
return Companion_instance;
|
|
198
|
+
}
|
|
199
|
+
function Arb$samples$lambda(this$0, $rs) {
|
|
200
|
+
return function () {
|
|
201
|
+
return this$0.l5r($rs);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function Arb() {
|
|
205
|
+
Gen.call(this);
|
|
206
|
+
}
|
|
207
|
+
protoOf(Arb).n5r = function (rs) {
|
|
208
|
+
return generateSequence(Arb$samples$lambda(this, rs));
|
|
209
|
+
};
|
|
210
|
+
function Gen$generate$lambda($rs, $edgeConfig, this$0, $samples) {
|
|
211
|
+
return function () {
|
|
212
|
+
var isEdgeCase = $rs.r5r_1.ti(0.0, 1.0) < $edgeConfig.t5r_1;
|
|
213
|
+
var tmp;
|
|
214
|
+
if (isEdgeCase) {
|
|
215
|
+
var tmp0_elvis_lhs = this$0.m5r($rs);
|
|
216
|
+
tmp = tmp0_elvis_lhs == null ? $samples.v() : tmp0_elvis_lhs;
|
|
217
|
+
} else {
|
|
218
|
+
tmp = $samples.v();
|
|
219
|
+
}
|
|
220
|
+
return tmp;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function Gen$generate$lambda_0(this$0) {
|
|
224
|
+
return function () {
|
|
225
|
+
// Inline function 'kotlin.collections.map' call
|
|
226
|
+
var this_0 = this$0.x2();
|
|
227
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
228
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
229
|
+
var _iterator__ex2g4s = this_0.t();
|
|
230
|
+
while (_iterator__ex2g4s.u()) {
|
|
231
|
+
var item = _iterator__ex2g4s.v();
|
|
232
|
+
var tmp$ret$0 = new Sample(item);
|
|
233
|
+
destination.x(tmp$ret$0);
|
|
234
|
+
}
|
|
235
|
+
return destination;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
function Gen() {
|
|
239
|
+
this.o5r_1 = null;
|
|
240
|
+
}
|
|
241
|
+
protoOf(Gen).p5r = function (rs, edgeConfig) {
|
|
242
|
+
var tmp;
|
|
243
|
+
if (this instanceof Arb) {
|
|
244
|
+
var samples = this.n5r(rs).t();
|
|
245
|
+
tmp = generateSequence(Gen$generate$lambda(rs, edgeConfig, this, samples));
|
|
246
|
+
} else {
|
|
247
|
+
if (this instanceof Exhaustive) {
|
|
248
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
249
|
+
// Inline function 'kotlin.check' call
|
|
250
|
+
if (!!this.x2().r()) {
|
|
251
|
+
var message = "Exhaustive.values shouldn't be a empty list.";
|
|
252
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
253
|
+
}
|
|
254
|
+
tmp = flatten(generateSequence(Gen$generate$lambda_0(this)));
|
|
255
|
+
} else {
|
|
256
|
+
noWhenBranchMatchedException();
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return tmp;
|
|
260
|
+
};
|
|
261
|
+
protoOf(Gen).q5r = function (rs, edgeConfig, $super) {
|
|
262
|
+
edgeConfig = edgeConfig === VOID ? default_0(Companion_instance_0) : edgeConfig;
|
|
263
|
+
return $super === VOID ? this.p5r(rs, edgeConfig) : $super.p5r.call(this, rs, edgeConfig);
|
|
264
|
+
};
|
|
265
|
+
function Sample$_init_$lambda_a4a8db($value) {
|
|
266
|
+
return function () {
|
|
267
|
+
return $value;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
function Sample(value, shrinks) {
|
|
271
|
+
var tmp;
|
|
272
|
+
if (shrinks === VOID) {
|
|
273
|
+
tmp = new RTree(Sample$_init_$lambda_a4a8db(value));
|
|
274
|
+
} else {
|
|
275
|
+
tmp = shrinks;
|
|
276
|
+
}
|
|
277
|
+
shrinks = tmp;
|
|
278
|
+
this.v5r_1 = value;
|
|
279
|
+
this.w5r_1 = shrinks;
|
|
280
|
+
}
|
|
281
|
+
protoOf(Sample).pf = function () {
|
|
282
|
+
return this.v5r_1;
|
|
283
|
+
};
|
|
284
|
+
protoOf(Sample).qf = function () {
|
|
285
|
+
return this.w5r_1;
|
|
286
|
+
};
|
|
287
|
+
protoOf(Sample).toString = function () {
|
|
288
|
+
return 'Sample(value=' + toString_0(this.v5r_1) + ', shrinks=' + this.w5r_1.toString() + ')';
|
|
289
|
+
};
|
|
290
|
+
protoOf(Sample).hashCode = function () {
|
|
291
|
+
var result = this.v5r_1 == null ? 0 : hashCode(this.v5r_1);
|
|
292
|
+
result = imul(result, 31) + this.w5r_1.hashCode() | 0;
|
|
293
|
+
return result;
|
|
294
|
+
};
|
|
295
|
+
protoOf(Sample).equals = function (other) {
|
|
296
|
+
if (this === other)
|
|
297
|
+
return true;
|
|
298
|
+
if (!(other instanceof Sample))
|
|
299
|
+
return false;
|
|
300
|
+
if (!equals(this.v5r_1, other.v5r_1))
|
|
301
|
+
return false;
|
|
302
|
+
if (!this.w5r_1.equals(other.w5r_1))
|
|
303
|
+
return false;
|
|
304
|
+
return true;
|
|
305
|
+
};
|
|
306
|
+
function Companion_0() {
|
|
307
|
+
}
|
|
308
|
+
var Companion_instance_0;
|
|
309
|
+
function Companion_getInstance_0() {
|
|
310
|
+
return Companion_instance_0;
|
|
311
|
+
}
|
|
312
|
+
function EdgeConfig(edgecasesGenerationProbability) {
|
|
313
|
+
edgecasesGenerationProbability = edgecasesGenerationProbability === VOID ? PropertyTesting_getInstance().k5s_1 : edgecasesGenerationProbability;
|
|
314
|
+
this.t5r_1 = edgecasesGenerationProbability;
|
|
315
|
+
var containsArg = this.t5r_1;
|
|
316
|
+
// Inline function 'kotlin.check' call
|
|
317
|
+
if (!(0.0 <= containsArg ? containsArg <= 1.0 : false)) {
|
|
318
|
+
var message = 'provided edgecasesProbability ' + this.t5r_1 + ' is not between 0.0 and 1.0';
|
|
319
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
protoOf(EdgeConfig).toString = function () {
|
|
323
|
+
return 'EdgeConfig(edgecasesGenerationProbability=' + this.t5r_1 + ')';
|
|
324
|
+
};
|
|
325
|
+
protoOf(EdgeConfig).hashCode = function () {
|
|
326
|
+
return getNumberHashCode(this.t5r_1);
|
|
327
|
+
};
|
|
328
|
+
protoOf(EdgeConfig).equals = function (other) {
|
|
329
|
+
if (this === other)
|
|
330
|
+
return true;
|
|
331
|
+
if (!(other instanceof EdgeConfig))
|
|
332
|
+
return false;
|
|
333
|
+
if (!equals(this.t5r_1, other.t5r_1))
|
|
334
|
+
return false;
|
|
335
|
+
return true;
|
|
336
|
+
};
|
|
337
|
+
function Exhaustive() {
|
|
338
|
+
}
|
|
339
|
+
protoOf(Exhaustive).t5s = function () {
|
|
340
|
+
return of(Companion_instance, this.x2());
|
|
341
|
+
};
|
|
342
|
+
function asSample(_this__u8e3s4) {
|
|
343
|
+
return new Sample(_this__u8e3s4);
|
|
344
|
+
}
|
|
345
|
+
function sampleOf(a, shrinker) {
|
|
346
|
+
return new Sample(a, rtree(shrinker, a));
|
|
347
|
+
}
|
|
348
|
+
function RTree$_init_$lambda_icbwyt() {
|
|
349
|
+
return emptyList();
|
|
350
|
+
}
|
|
351
|
+
function RTree(value, children) {
|
|
352
|
+
var tmp;
|
|
353
|
+
if (children === VOID) {
|
|
354
|
+
tmp = lazy(RTree$_init_$lambda_icbwyt);
|
|
355
|
+
} else {
|
|
356
|
+
tmp = children;
|
|
357
|
+
}
|
|
358
|
+
children = tmp;
|
|
359
|
+
this.u5s_1 = value;
|
|
360
|
+
this.v5s_1 = children;
|
|
361
|
+
}
|
|
362
|
+
protoOf(RTree).toString = function () {
|
|
363
|
+
return 'RTree(value=' + toString(this.u5s_1) + ', children=' + toString(this.v5s_1) + ')';
|
|
364
|
+
};
|
|
365
|
+
protoOf(RTree).hashCode = function () {
|
|
366
|
+
var result = hashCode(this.u5s_1);
|
|
367
|
+
result = imul(result, 31) + hashCode(this.v5s_1) | 0;
|
|
368
|
+
return result;
|
|
369
|
+
};
|
|
370
|
+
protoOf(RTree).equals = function (other) {
|
|
371
|
+
if (this === other)
|
|
372
|
+
return true;
|
|
373
|
+
if (!(other instanceof RTree))
|
|
374
|
+
return false;
|
|
375
|
+
if (!equals(this.u5s_1, other.u5s_1))
|
|
376
|
+
return false;
|
|
377
|
+
if (!equals(this.v5s_1, other.v5s_1))
|
|
378
|
+
return false;
|
|
379
|
+
return true;
|
|
380
|
+
};
|
|
381
|
+
function bimap(_this__u8e3s4, f, g) {
|
|
382
|
+
return new bimap$1(_this__u8e3s4, f, g);
|
|
383
|
+
}
|
|
384
|
+
function filter_0(_this__u8e3s4, predicate) {
|
|
385
|
+
var a = _this__u8e3s4.u5s_1();
|
|
386
|
+
var tmp;
|
|
387
|
+
if (predicate(a)) {
|
|
388
|
+
var tmp_0 = filter$lambda(a);
|
|
389
|
+
tmp = new RTree(tmp_0, lazy(filter$lambda_0(_this__u8e3s4, predicate)));
|
|
390
|
+
} else {
|
|
391
|
+
tmp = null;
|
|
392
|
+
}
|
|
393
|
+
return tmp;
|
|
394
|
+
}
|
|
395
|
+
function map_0(_this__u8e3s4, f) {
|
|
396
|
+
var b = map$lambda(f, _this__u8e3s4);
|
|
397
|
+
var c = lazy(map$lambda_0(_this__u8e3s4, f));
|
|
398
|
+
return new RTree(b, c);
|
|
399
|
+
}
|
|
400
|
+
function rtree(_this__u8e3s4, value) {
|
|
401
|
+
var fn = rtree$lambda(value);
|
|
402
|
+
return rtree_0(_this__u8e3s4, fn);
|
|
403
|
+
}
|
|
404
|
+
function rtree_0(_this__u8e3s4, value) {
|
|
405
|
+
return new RTree(value, lazy(rtree$lambda_0(value, _this__u8e3s4)));
|
|
406
|
+
}
|
|
407
|
+
function bimap$1($this_bimap, $f, $g) {
|
|
408
|
+
this.w5s_1 = $this_bimap;
|
|
409
|
+
this.x5s_1 = $f;
|
|
410
|
+
this.y5s_1 = $g;
|
|
411
|
+
}
|
|
412
|
+
protoOf(bimap$1).z5s = function (value) {
|
|
413
|
+
var tmp0 = this.w5s_1.a5t(this.x5s_1(value));
|
|
414
|
+
// Inline function 'kotlin.collections.map' call
|
|
415
|
+
var transform = this.y5s_1;
|
|
416
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
417
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0, 10));
|
|
418
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
419
|
+
while (_iterator__ex2g4s.u()) {
|
|
420
|
+
var item = _iterator__ex2g4s.v();
|
|
421
|
+
destination.x(transform(item));
|
|
422
|
+
}
|
|
423
|
+
return destination;
|
|
424
|
+
};
|
|
425
|
+
protoOf(bimap$1).a5t = function (value) {
|
|
426
|
+
return this.z5s((value == null ? true : !(value == null)) ? value : THROW_CCE());
|
|
427
|
+
};
|
|
428
|
+
function filter$lambda($a) {
|
|
429
|
+
return function () {
|
|
430
|
+
return $a;
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function filter$lambda_0($this_filter, $predicate) {
|
|
434
|
+
return function () {
|
|
435
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
436
|
+
var tmp0 = $this_filter.v5s_1.n1();
|
|
437
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
438
|
+
var destination = ArrayList_init_$Create$_0();
|
|
439
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
440
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
441
|
+
while (_iterator__ex2g4s.u()) {
|
|
442
|
+
var element = _iterator__ex2g4s.v();
|
|
443
|
+
var tmp0_safe_receiver = filter_0(element, $predicate);
|
|
444
|
+
if (tmp0_safe_receiver == null)
|
|
445
|
+
null;
|
|
446
|
+
else {
|
|
447
|
+
// Inline function 'kotlin.let' call
|
|
448
|
+
destination.x(tmp0_safe_receiver);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
return destination;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function map$lambda($f, $this_map) {
|
|
455
|
+
return function () {
|
|
456
|
+
return $f($this_map.u5s_1());
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
function map$lambda_0($this_map, $f) {
|
|
460
|
+
return function () {
|
|
461
|
+
// Inline function 'kotlin.collections.map' call
|
|
462
|
+
var this_0 = $this_map.v5s_1.n1();
|
|
463
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
464
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
465
|
+
var _iterator__ex2g4s = this_0.t();
|
|
466
|
+
while (_iterator__ex2g4s.u()) {
|
|
467
|
+
var item = _iterator__ex2g4s.v();
|
|
468
|
+
var tmp$ret$0 = map_0(item, $f);
|
|
469
|
+
destination.x(tmp$ret$0);
|
|
470
|
+
}
|
|
471
|
+
return destination;
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
function rtree$lambda($value) {
|
|
475
|
+
return function () {
|
|
476
|
+
return $value;
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
function rtree$lambda_0($value, $this_rtree) {
|
|
480
|
+
return function () {
|
|
481
|
+
var a = $value();
|
|
482
|
+
// Inline function 'kotlin.collections.filter' call
|
|
483
|
+
var tmp0 = distinct($this_rtree.a5t(a));
|
|
484
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
485
|
+
var destination = ArrayList_init_$Create$_0();
|
|
486
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
487
|
+
while (_iterator__ex2g4s.u()) {
|
|
488
|
+
var element = _iterator__ex2g4s.v();
|
|
489
|
+
if (!equals(element, a)) {
|
|
490
|
+
destination.x(element);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
// Inline function 'kotlin.collections.map' call
|
|
494
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
495
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
|
|
496
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
497
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
498
|
+
var item = _iterator__ex2g4s_0.v();
|
|
499
|
+
var tmp$ret$3 = rtree($this_rtree, item);
|
|
500
|
+
destination_0.x(tmp$ret$3);
|
|
501
|
+
}
|
|
502
|
+
return destination_0;
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
function Off() {
|
|
506
|
+
Off_instance = this;
|
|
507
|
+
ShrinkingMode.call(this);
|
|
508
|
+
}
|
|
509
|
+
var Off_instance;
|
|
510
|
+
function Off_getInstance() {
|
|
511
|
+
if (Off_instance == null)
|
|
512
|
+
new Off();
|
|
513
|
+
return Off_instance;
|
|
514
|
+
}
|
|
515
|
+
function Unbounded() {
|
|
516
|
+
Unbounded_instance = this;
|
|
517
|
+
ShrinkingMode.call(this);
|
|
518
|
+
}
|
|
519
|
+
var Unbounded_instance;
|
|
520
|
+
function Unbounded_getInstance() {
|
|
521
|
+
if (Unbounded_instance == null)
|
|
522
|
+
new Unbounded();
|
|
523
|
+
return Unbounded_instance;
|
|
524
|
+
}
|
|
525
|
+
function Bounded(bound) {
|
|
526
|
+
ShrinkingMode.call(this);
|
|
527
|
+
this.b5t_1 = bound;
|
|
528
|
+
}
|
|
529
|
+
protoOf(Bounded).toString = function () {
|
|
530
|
+
return 'Bounded(bound=' + this.b5t_1 + ')';
|
|
531
|
+
};
|
|
532
|
+
protoOf(Bounded).hashCode = function () {
|
|
533
|
+
return this.b5t_1;
|
|
534
|
+
};
|
|
535
|
+
protoOf(Bounded).equals = function (other) {
|
|
536
|
+
if (this === other)
|
|
537
|
+
return true;
|
|
538
|
+
if (!(other instanceof Bounded))
|
|
539
|
+
return false;
|
|
540
|
+
if (!(this.b5t_1 === other.b5t_1))
|
|
541
|
+
return false;
|
|
542
|
+
return true;
|
|
543
|
+
};
|
|
544
|
+
function ShrinkingMode() {
|
|
545
|
+
}
|
|
546
|
+
function next(_this__u8e3s4, rs) {
|
|
547
|
+
rs = rs === VOID ? Companion_instance_2.c5t() : rs;
|
|
548
|
+
return single(_this__u8e3s4, rs);
|
|
549
|
+
}
|
|
550
|
+
function single(_this__u8e3s4, rs) {
|
|
551
|
+
rs = rs === VOID ? Companion_instance_2.c5t() : rs;
|
|
552
|
+
return _this__u8e3s4.l5r(rs).v5r_1;
|
|
553
|
+
}
|
|
554
|
+
function take_2(_this__u8e3s4, count, rs) {
|
|
555
|
+
rs = rs === VOID ? Companion_instance_2.c5t() : rs;
|
|
556
|
+
var tmp = _this__u8e3s4.n5r(rs);
|
|
557
|
+
return take(map(tmp, take$lambda), count);
|
|
558
|
+
}
|
|
559
|
+
function take$lambda(it) {
|
|
560
|
+
return it.v5r_1;
|
|
561
|
+
}
|
|
562
|
+
function bind(_this__u8e3s4, genA, genB, bindFn) {
|
|
563
|
+
var tmp = Companion_instance;
|
|
564
|
+
var tmp_0 = unit(Companion_instance);
|
|
565
|
+
var tmp_1 = unit(Companion_instance);
|
|
566
|
+
var tmp_2 = unit(Companion_instance);
|
|
567
|
+
var tmp_3 = unit(Companion_instance);
|
|
568
|
+
var tmp_4 = unit(Companion_instance);
|
|
569
|
+
var tmp_5 = unit(Companion_instance);
|
|
570
|
+
var tmp_6 = unit(Companion_instance);
|
|
571
|
+
var tmp_7 = unit(Companion_instance);
|
|
572
|
+
var tmp_8 = unit(Companion_instance);
|
|
573
|
+
var tmp_9 = unit(Companion_instance);
|
|
574
|
+
var tmp_10 = unit(Companion_instance);
|
|
575
|
+
var tmp_11 = unit(Companion_instance);
|
|
576
|
+
return bindN(tmp, genA, genB, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, tmp_11, bind$lambda(bindFn));
|
|
577
|
+
}
|
|
578
|
+
function bindN(_this__u8e3s4, genA, genB, genC, genD, genE, genF, genG, genH, genI, genJ, genK, genL, genM, genN, bindFn) {
|
|
579
|
+
var arbA = toArb(genA);
|
|
580
|
+
var arbB = toArb(genB);
|
|
581
|
+
var arbC = toArb(genC);
|
|
582
|
+
var arbD = toArb(genD);
|
|
583
|
+
var arbE = toArb(genE);
|
|
584
|
+
var arbF = toArb(genF);
|
|
585
|
+
var arbG = toArb(genG);
|
|
586
|
+
var arbH = toArb(genH);
|
|
587
|
+
var arbI = toArb(genI);
|
|
588
|
+
var arbJ = toArb(genJ);
|
|
589
|
+
var arbK = toArb(genK);
|
|
590
|
+
var arbL = toArb(genL);
|
|
591
|
+
var arbM = toArb(genM);
|
|
592
|
+
var arbN = toArb(genN);
|
|
593
|
+
return new bindN$1(bindFn, arbA, arbB, arbC, arbD, arbE, arbF, arbG, arbH, arbI, arbJ, arbK, arbL, arbM, arbN);
|
|
594
|
+
}
|
|
595
|
+
function unit(_this__u8e3s4) {
|
|
596
|
+
return arbitrary(unit$slambda_0(null));
|
|
597
|
+
}
|
|
598
|
+
function toArb(_this__u8e3s4) {
|
|
599
|
+
var tmp;
|
|
600
|
+
if (_this__u8e3s4 instanceof Arb) {
|
|
601
|
+
tmp = _this__u8e3s4;
|
|
602
|
+
} else {
|
|
603
|
+
if (_this__u8e3s4 instanceof Exhaustive) {
|
|
604
|
+
tmp = _this__u8e3s4.t5s();
|
|
605
|
+
} else {
|
|
606
|
+
noWhenBranchMatchedException();
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
return tmp;
|
|
610
|
+
}
|
|
611
|
+
function bind$lambda($bindFn) {
|
|
612
|
+
return function (a, b, _unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1, _unused_var__etf5q3_2, _unused_var__etf5q3_3, _unused_var__etf5q3_4, _unused_var__etf5q3_5, _unused_var__etf5q3_6, _unused_var__etf5q3_7, _unused_var__etf5q3_8, _unused_var__etf5q3_9, _unused_var__etf5q3_10) {
|
|
613
|
+
return $bindFn(a, b);
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
function bindN$combineShrinks$lambda($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n) {
|
|
617
|
+
return function () {
|
|
618
|
+
return $bindFn($a.u5s_1(), $b.u5s_1(), $c.u5s_1(), $d.u5s_1(), $e.u5s_1(), $f.u5s_1(), $g.u5s_1(), $h.u5s_1(), $i.u5s_1(), $j.u5s_1(), $k.u5s_1(), $l.u5s_1(), $m.u5s_1(), $n.u5s_1());
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
function bindN$combineShrinks$lambda_0($a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n, $bindFn) {
|
|
622
|
+
return function () {
|
|
623
|
+
// Inline function 'kotlin.collections.map' call
|
|
624
|
+
var this_0 = bindN$shrink($a);
|
|
625
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
626
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
627
|
+
var _iterator__ex2g4s = this_0.t();
|
|
628
|
+
while (_iterator__ex2g4s.u()) {
|
|
629
|
+
var item = _iterator__ex2g4s.v();
|
|
630
|
+
var tmp$ret$0 = bindN$combineShrinks($bindFn, item, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n);
|
|
631
|
+
destination.x(tmp$ret$0);
|
|
632
|
+
}
|
|
633
|
+
var tmp = destination;
|
|
634
|
+
// Inline function 'kotlin.collections.map' call
|
|
635
|
+
var this_1 = bindN$shrink($b);
|
|
636
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
637
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
638
|
+
var _iterator__ex2g4s_0 = this_1.t();
|
|
639
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
640
|
+
var item_0 = _iterator__ex2g4s_0.v();
|
|
641
|
+
var tmp$ret$3 = bindN$combineShrinks($bindFn, $a, item_0, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n);
|
|
642
|
+
destination_0.x(tmp$ret$3);
|
|
643
|
+
}
|
|
644
|
+
var tmp_0 = plus(tmp, destination_0);
|
|
645
|
+
// Inline function 'kotlin.collections.map' call
|
|
646
|
+
var this_2 = bindN$shrink($c);
|
|
647
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
648
|
+
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
649
|
+
var _iterator__ex2g4s_1 = this_2.t();
|
|
650
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
651
|
+
var item_1 = _iterator__ex2g4s_1.v();
|
|
652
|
+
var tmp$ret$6 = bindN$combineShrinks($bindFn, $a, $b, item_1, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n);
|
|
653
|
+
destination_1.x(tmp$ret$6);
|
|
654
|
+
}
|
|
655
|
+
var tmp_1 = plus(tmp_0, destination_1);
|
|
656
|
+
// Inline function 'kotlin.collections.map' call
|
|
657
|
+
var this_3 = bindN$shrink($d);
|
|
658
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
659
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
660
|
+
var _iterator__ex2g4s_2 = this_3.t();
|
|
661
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
662
|
+
var item_2 = _iterator__ex2g4s_2.v();
|
|
663
|
+
var tmp$ret$9 = bindN$combineShrinks($bindFn, $a, $b, $c, item_2, $e, $f, $g, $h, $i, $j, $k, $l, $m, $n);
|
|
664
|
+
destination_2.x(tmp$ret$9);
|
|
665
|
+
}
|
|
666
|
+
var tmp_2 = plus(tmp_1, destination_2);
|
|
667
|
+
// Inline function 'kotlin.collections.map' call
|
|
668
|
+
var this_4 = bindN$shrink($e);
|
|
669
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
670
|
+
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
671
|
+
var _iterator__ex2g4s_3 = this_4.t();
|
|
672
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
673
|
+
var item_3 = _iterator__ex2g4s_3.v();
|
|
674
|
+
var tmp$ret$12 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, item_3, $f, $g, $h, $i, $j, $k, $l, $m, $n);
|
|
675
|
+
destination_3.x(tmp$ret$12);
|
|
676
|
+
}
|
|
677
|
+
var tmp_3 = plus(tmp_2, destination_3);
|
|
678
|
+
// Inline function 'kotlin.collections.map' call
|
|
679
|
+
var this_5 = bindN$shrink($f);
|
|
680
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
681
|
+
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(this_5, 10));
|
|
682
|
+
var _iterator__ex2g4s_4 = this_5.t();
|
|
683
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
684
|
+
var item_4 = _iterator__ex2g4s_4.v();
|
|
685
|
+
var tmp$ret$15 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, item_4, $g, $h, $i, $j, $k, $l, $m, $n);
|
|
686
|
+
destination_4.x(tmp$ret$15);
|
|
687
|
+
}
|
|
688
|
+
var tmp_4 = plus(tmp_3, destination_4);
|
|
689
|
+
// Inline function 'kotlin.collections.map' call
|
|
690
|
+
var this_6 = bindN$shrink($g);
|
|
691
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
692
|
+
var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(this_6, 10));
|
|
693
|
+
var _iterator__ex2g4s_5 = this_6.t();
|
|
694
|
+
while (_iterator__ex2g4s_5.u()) {
|
|
695
|
+
var item_5 = _iterator__ex2g4s_5.v();
|
|
696
|
+
var tmp$ret$18 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, item_5, $h, $i, $j, $k, $l, $m, $n);
|
|
697
|
+
destination_5.x(tmp$ret$18);
|
|
698
|
+
}
|
|
699
|
+
var tmp_5 = plus(tmp_4, destination_5);
|
|
700
|
+
// Inline function 'kotlin.collections.map' call
|
|
701
|
+
var this_7 = bindN$shrink($h);
|
|
702
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
703
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(this_7, 10));
|
|
704
|
+
var _iterator__ex2g4s_6 = this_7.t();
|
|
705
|
+
while (_iterator__ex2g4s_6.u()) {
|
|
706
|
+
var item_6 = _iterator__ex2g4s_6.v();
|
|
707
|
+
var tmp$ret$21 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, item_6, $i, $j, $k, $l, $m, $n);
|
|
708
|
+
destination_6.x(tmp$ret$21);
|
|
709
|
+
}
|
|
710
|
+
var tmp_6 = plus(tmp_5, destination_6);
|
|
711
|
+
// Inline function 'kotlin.collections.map' call
|
|
712
|
+
var this_8 = bindN$shrink($i);
|
|
713
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
714
|
+
var destination_7 = ArrayList_init_$Create$(collectionSizeOrDefault(this_8, 10));
|
|
715
|
+
var _iterator__ex2g4s_7 = this_8.t();
|
|
716
|
+
while (_iterator__ex2g4s_7.u()) {
|
|
717
|
+
var item_7 = _iterator__ex2g4s_7.v();
|
|
718
|
+
var tmp$ret$24 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, item_7, $j, $k, $l, $m, $n);
|
|
719
|
+
destination_7.x(tmp$ret$24);
|
|
720
|
+
}
|
|
721
|
+
var tmp_7 = plus(tmp_6, destination_7);
|
|
722
|
+
// Inline function 'kotlin.collections.map' call
|
|
723
|
+
var this_9 = bindN$shrink($j);
|
|
724
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
725
|
+
var destination_8 = ArrayList_init_$Create$(collectionSizeOrDefault(this_9, 10));
|
|
726
|
+
var _iterator__ex2g4s_8 = this_9.t();
|
|
727
|
+
while (_iterator__ex2g4s_8.u()) {
|
|
728
|
+
var item_8 = _iterator__ex2g4s_8.v();
|
|
729
|
+
var tmp$ret$27 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, $i, item_8, $k, $l, $m, $n);
|
|
730
|
+
destination_8.x(tmp$ret$27);
|
|
731
|
+
}
|
|
732
|
+
var tmp_8 = plus(tmp_7, destination_8);
|
|
733
|
+
// Inline function 'kotlin.collections.map' call
|
|
734
|
+
var this_10 = bindN$shrink($k);
|
|
735
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
736
|
+
var destination_9 = ArrayList_init_$Create$(collectionSizeOrDefault(this_10, 10));
|
|
737
|
+
var _iterator__ex2g4s_9 = this_10.t();
|
|
738
|
+
while (_iterator__ex2g4s_9.u()) {
|
|
739
|
+
var item_9 = _iterator__ex2g4s_9.v();
|
|
740
|
+
var tmp$ret$30 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, $i, $j, item_9, $l, $m, $n);
|
|
741
|
+
destination_9.x(tmp$ret$30);
|
|
742
|
+
}
|
|
743
|
+
var tmp_9 = plus(tmp_8, destination_9);
|
|
744
|
+
// Inline function 'kotlin.collections.map' call
|
|
745
|
+
var this_11 = bindN$shrink($l);
|
|
746
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
747
|
+
var destination_10 = ArrayList_init_$Create$(collectionSizeOrDefault(this_11, 10));
|
|
748
|
+
var _iterator__ex2g4s_10 = this_11.t();
|
|
749
|
+
while (_iterator__ex2g4s_10.u()) {
|
|
750
|
+
var item_10 = _iterator__ex2g4s_10.v();
|
|
751
|
+
var tmp$ret$33 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, item_10, $m, $n);
|
|
752
|
+
destination_10.x(tmp$ret$33);
|
|
753
|
+
}
|
|
754
|
+
var tmp_10 = plus(tmp_9, destination_10);
|
|
755
|
+
// Inline function 'kotlin.collections.map' call
|
|
756
|
+
var this_12 = bindN$shrink($m);
|
|
757
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
758
|
+
var destination_11 = ArrayList_init_$Create$(collectionSizeOrDefault(this_12, 10));
|
|
759
|
+
var _iterator__ex2g4s_11 = this_12.t();
|
|
760
|
+
while (_iterator__ex2g4s_11.u()) {
|
|
761
|
+
var item_11 = _iterator__ex2g4s_11.v();
|
|
762
|
+
var tmp$ret$36 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, item_11, $n);
|
|
763
|
+
destination_11.x(tmp$ret$36);
|
|
764
|
+
}
|
|
765
|
+
var tmp_11 = plus(tmp_10, destination_11);
|
|
766
|
+
// Inline function 'kotlin.collections.map' call
|
|
767
|
+
var this_13 = bindN$shrink($n);
|
|
768
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
769
|
+
var destination_12 = ArrayList_init_$Create$(collectionSizeOrDefault(this_13, 10));
|
|
770
|
+
var _iterator__ex2g4s_12 = this_13.t();
|
|
771
|
+
while (_iterator__ex2g4s_12.u()) {
|
|
772
|
+
var item_12 = _iterator__ex2g4s_12.v();
|
|
773
|
+
var tmp$ret$39 = bindN$combineShrinks($bindFn, $a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l, $m, item_12);
|
|
774
|
+
destination_12.x(tmp$ret$39);
|
|
775
|
+
}
|
|
776
|
+
return plus(tmp_11, destination_12);
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
function bindN$shrink(tree) {
|
|
780
|
+
return tree.v5s_1.n1();
|
|
781
|
+
}
|
|
782
|
+
function bindN$combineShrinks($bindFn, a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
|
|
783
|
+
var tmp = bindN$combineShrinks$lambda($bindFn, a, b, c, d, e, f, g, h, i, j, k, l, m, n);
|
|
784
|
+
return new RTree(tmp, lazy(bindN$combineShrinks$lambda_0(a, b, c, d, e, f, g, h, i, j, k, l, m, n, $bindFn)));
|
|
785
|
+
}
|
|
786
|
+
function bindN$1($bindFn, $arbA, $arbB, $arbC, $arbD, $arbE, $arbF, $arbG, $arbH, $arbI, $arbJ, $arbK, $arbL, $arbM, $arbN) {
|
|
787
|
+
this.e5t_1 = $bindFn;
|
|
788
|
+
this.f5t_1 = $arbA;
|
|
789
|
+
this.g5t_1 = $arbB;
|
|
790
|
+
this.h5t_1 = $arbC;
|
|
791
|
+
this.i5t_1 = $arbD;
|
|
792
|
+
this.j5t_1 = $arbE;
|
|
793
|
+
this.k5t_1 = $arbF;
|
|
794
|
+
this.l5t_1 = $arbG;
|
|
795
|
+
this.m5t_1 = $arbH;
|
|
796
|
+
this.n5t_1 = $arbI;
|
|
797
|
+
this.o5t_1 = $arbJ;
|
|
798
|
+
this.p5t_1 = $arbK;
|
|
799
|
+
this.q5t_1 = $arbL;
|
|
800
|
+
this.r5t_1 = $arbM;
|
|
801
|
+
this.s5t_1 = $arbN;
|
|
802
|
+
Arb.call(this);
|
|
803
|
+
}
|
|
804
|
+
protoOf(bindN$1).m5r = function (rs) {
|
|
805
|
+
var tmp0_safe_receiver = this.f5t_1.m5r(rs);
|
|
806
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v5r_1;
|
|
807
|
+
var tmp = tmp1_elvis_lhs == null ? next(this.f5t_1, rs) : tmp1_elvis_lhs;
|
|
808
|
+
var tmp2_safe_receiver = this.g5t_1.m5r(rs);
|
|
809
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v5r_1;
|
|
810
|
+
var tmp_0 = tmp3_elvis_lhs == null ? next(this.g5t_1, rs) : tmp3_elvis_lhs;
|
|
811
|
+
var tmp4_safe_receiver = this.h5t_1.m5r(rs);
|
|
812
|
+
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.v5r_1;
|
|
813
|
+
var tmp_1 = tmp5_elvis_lhs == null ? next(this.h5t_1, rs) : tmp5_elvis_lhs;
|
|
814
|
+
var tmp6_safe_receiver = this.i5t_1.m5r(rs);
|
|
815
|
+
var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.v5r_1;
|
|
816
|
+
var tmp_2 = tmp7_elvis_lhs == null ? next(this.i5t_1, rs) : tmp7_elvis_lhs;
|
|
817
|
+
var tmp8_safe_receiver = this.j5t_1.m5r(rs);
|
|
818
|
+
var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.v5r_1;
|
|
819
|
+
var tmp_3 = tmp9_elvis_lhs == null ? next(this.j5t_1, rs) : tmp9_elvis_lhs;
|
|
820
|
+
var tmp10_safe_receiver = this.k5t_1.m5r(rs);
|
|
821
|
+
var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.v5r_1;
|
|
822
|
+
var tmp_4 = tmp11_elvis_lhs == null ? next(this.k5t_1, rs) : tmp11_elvis_lhs;
|
|
823
|
+
var tmp12_safe_receiver = this.l5t_1.m5r(rs);
|
|
824
|
+
var tmp13_elvis_lhs = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.v5r_1;
|
|
825
|
+
var tmp_5 = tmp13_elvis_lhs == null ? next(this.l5t_1, rs) : tmp13_elvis_lhs;
|
|
826
|
+
var tmp14_safe_receiver = this.m5t_1.m5r(rs);
|
|
827
|
+
var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : tmp14_safe_receiver.v5r_1;
|
|
828
|
+
var tmp_6 = tmp15_elvis_lhs == null ? next(this.m5t_1, rs) : tmp15_elvis_lhs;
|
|
829
|
+
var tmp16_safe_receiver = this.n5t_1.m5r(rs);
|
|
830
|
+
var tmp17_elvis_lhs = tmp16_safe_receiver == null ? null : tmp16_safe_receiver.v5r_1;
|
|
831
|
+
var tmp_7 = tmp17_elvis_lhs == null ? next(this.n5t_1, rs) : tmp17_elvis_lhs;
|
|
832
|
+
var tmp18_safe_receiver = this.o5t_1.m5r(rs);
|
|
833
|
+
var tmp19_elvis_lhs = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.v5r_1;
|
|
834
|
+
var tmp_8 = tmp19_elvis_lhs == null ? next(this.o5t_1, rs) : tmp19_elvis_lhs;
|
|
835
|
+
var tmp20_safe_receiver = this.p5t_1.m5r(rs);
|
|
836
|
+
var tmp21_elvis_lhs = tmp20_safe_receiver == null ? null : tmp20_safe_receiver.v5r_1;
|
|
837
|
+
var tmp_9 = tmp21_elvis_lhs == null ? next(this.p5t_1, rs) : tmp21_elvis_lhs;
|
|
838
|
+
var tmp22_safe_receiver = this.q5t_1.m5r(rs);
|
|
839
|
+
var tmp23_elvis_lhs = tmp22_safe_receiver == null ? null : tmp22_safe_receiver.v5r_1;
|
|
840
|
+
var tmp_10 = tmp23_elvis_lhs == null ? next(this.q5t_1, rs) : tmp23_elvis_lhs;
|
|
841
|
+
var tmp24_safe_receiver = this.r5t_1.m5r(rs);
|
|
842
|
+
var tmp25_elvis_lhs = tmp24_safe_receiver == null ? null : tmp24_safe_receiver.v5r_1;
|
|
843
|
+
var tmp_11 = tmp25_elvis_lhs == null ? next(this.r5t_1, rs) : tmp25_elvis_lhs;
|
|
844
|
+
var tmp26_safe_receiver = this.s5t_1.m5r(rs);
|
|
845
|
+
var tmp27_elvis_lhs = tmp26_safe_receiver == null ? null : tmp26_safe_receiver.v5r_1;
|
|
846
|
+
return asSample(this.e5t_1(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, tmp_11, tmp27_elvis_lhs == null ? next(this.s5t_1, rs) : tmp27_elvis_lhs));
|
|
847
|
+
};
|
|
848
|
+
protoOf(bindN$1).l5r = function (rs) {
|
|
849
|
+
var _destruct__k2r9zo = this.f5t_1.l5r(rs);
|
|
850
|
+
var av = _destruct__k2r9zo.pf();
|
|
851
|
+
var ar = _destruct__k2r9zo.qf();
|
|
852
|
+
var _destruct__k2r9zo_0 = this.g5t_1.l5r(rs);
|
|
853
|
+
var bv = _destruct__k2r9zo_0.pf();
|
|
854
|
+
var br = _destruct__k2r9zo_0.qf();
|
|
855
|
+
var _destruct__k2r9zo_1 = this.h5t_1.l5r(rs);
|
|
856
|
+
var cv = _destruct__k2r9zo_1.pf();
|
|
857
|
+
var cr = _destruct__k2r9zo_1.qf();
|
|
858
|
+
var _destruct__k2r9zo_2 = this.i5t_1.l5r(rs);
|
|
859
|
+
var dv = _destruct__k2r9zo_2.pf();
|
|
860
|
+
var dr = _destruct__k2r9zo_2.qf();
|
|
861
|
+
var _destruct__k2r9zo_3 = this.j5t_1.l5r(rs);
|
|
862
|
+
var ev = _destruct__k2r9zo_3.pf();
|
|
863
|
+
var er = _destruct__k2r9zo_3.qf();
|
|
864
|
+
var _destruct__k2r9zo_4 = this.k5t_1.l5r(rs);
|
|
865
|
+
var fv = _destruct__k2r9zo_4.pf();
|
|
866
|
+
var fr = _destruct__k2r9zo_4.qf();
|
|
867
|
+
var _destruct__k2r9zo_5 = this.l5t_1.l5r(rs);
|
|
868
|
+
var gv = _destruct__k2r9zo_5.pf();
|
|
869
|
+
var gr = _destruct__k2r9zo_5.qf();
|
|
870
|
+
var _destruct__k2r9zo_6 = this.m5t_1.l5r(rs);
|
|
871
|
+
var hv = _destruct__k2r9zo_6.pf();
|
|
872
|
+
var hr = _destruct__k2r9zo_6.qf();
|
|
873
|
+
var _destruct__k2r9zo_7 = this.n5t_1.l5r(rs);
|
|
874
|
+
var iv = _destruct__k2r9zo_7.pf();
|
|
875
|
+
var ir = _destruct__k2r9zo_7.qf();
|
|
876
|
+
var _destruct__k2r9zo_8 = this.o5t_1.l5r(rs);
|
|
877
|
+
var jv = _destruct__k2r9zo_8.pf();
|
|
878
|
+
var jr = _destruct__k2r9zo_8.qf();
|
|
879
|
+
var _destruct__k2r9zo_9 = this.p5t_1.l5r(rs);
|
|
880
|
+
var kv = _destruct__k2r9zo_9.pf();
|
|
881
|
+
var kr = _destruct__k2r9zo_9.qf();
|
|
882
|
+
var _destruct__k2r9zo_10 = this.q5t_1.l5r(rs);
|
|
883
|
+
var lv = _destruct__k2r9zo_10.pf();
|
|
884
|
+
var lr = _destruct__k2r9zo_10.qf();
|
|
885
|
+
var _destruct__k2r9zo_11 = this.r5t_1.l5r(rs);
|
|
886
|
+
var mv = _destruct__k2r9zo_11.pf();
|
|
887
|
+
var mr = _destruct__k2r9zo_11.qf();
|
|
888
|
+
var _destruct__k2r9zo_12 = this.s5t_1.l5r(rs);
|
|
889
|
+
var nv = _destruct__k2r9zo_12.pf();
|
|
890
|
+
var nr = _destruct__k2r9zo_12.qf();
|
|
891
|
+
return new Sample(this.e5t_1(av, bv, cv, dv, ev, fv, gv, hv, iv, jv, kv, lv, mv, nv), bindN$combineShrinks(this.e5t_1, ar, br, cr, dr, er, fr, gr, hr, ir, jr, kr, lr, mr, nr));
|
|
892
|
+
};
|
|
893
|
+
function unit$slambda(resultContinuation) {
|
|
894
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
895
|
+
}
|
|
896
|
+
protoOf(unit$slambda).d5u = function ($this$arbitrary, it, $completion) {
|
|
897
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
898
|
+
tmp.k9_1 = Unit_instance;
|
|
899
|
+
tmp.l9_1 = null;
|
|
900
|
+
return tmp.q9();
|
|
901
|
+
};
|
|
902
|
+
protoOf(unit$slambda).w9 = function (p1, p2, $completion) {
|
|
903
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
904
|
+
return this.d5u(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
905
|
+
};
|
|
906
|
+
protoOf(unit$slambda).q9 = function () {
|
|
907
|
+
var suspendResult = this.k9_1;
|
|
908
|
+
$sm: do
|
|
909
|
+
try {
|
|
910
|
+
var tmp = this.i9_1;
|
|
911
|
+
if (tmp === 0) {
|
|
912
|
+
this.j9_1 = 1;
|
|
913
|
+
return Unit_instance;
|
|
914
|
+
} else if (tmp === 1) {
|
|
915
|
+
throw this.l9_1;
|
|
916
|
+
}
|
|
917
|
+
} catch ($p) {
|
|
918
|
+
var e = $p;
|
|
919
|
+
throw e;
|
|
920
|
+
}
|
|
921
|
+
while (true);
|
|
922
|
+
};
|
|
923
|
+
protoOf(unit$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
924
|
+
var i = new unit$slambda(completion);
|
|
925
|
+
i.b5u_1 = $this$arbitrary;
|
|
926
|
+
i.c5u_1 = it;
|
|
927
|
+
return i;
|
|
928
|
+
};
|
|
929
|
+
function unit$slambda_0(resultContinuation) {
|
|
930
|
+
var i = new unit$slambda(resultContinuation);
|
|
931
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
932
|
+
return i.d5u($this$arbitrary, it, $completion);
|
|
933
|
+
};
|
|
934
|
+
l.$arity = 2;
|
|
935
|
+
return l;
|
|
936
|
+
}
|
|
937
|
+
function boolean(_this__u8e3s4) {
|
|
938
|
+
var tmp = listOf([true, false]);
|
|
939
|
+
return arbitrary_0(tmp, boolean$slambda_0(null));
|
|
940
|
+
}
|
|
941
|
+
function boolean$slambda(resultContinuation) {
|
|
942
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
943
|
+
}
|
|
944
|
+
protoOf(boolean$slambda).p5u = function ($this$arbitrary, it, $completion) {
|
|
945
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
946
|
+
tmp.k9_1 = Unit_instance;
|
|
947
|
+
tmp.l9_1 = null;
|
|
948
|
+
return tmp.q9();
|
|
949
|
+
};
|
|
950
|
+
protoOf(boolean$slambda).w9 = function (p1, p2, $completion) {
|
|
951
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
952
|
+
return this.p5u(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
953
|
+
};
|
|
954
|
+
protoOf(boolean$slambda).q9 = function () {
|
|
955
|
+
var suspendResult = this.k9_1;
|
|
956
|
+
$sm: do
|
|
957
|
+
try {
|
|
958
|
+
var tmp = this.i9_1;
|
|
959
|
+
if (tmp === 0) {
|
|
960
|
+
this.j9_1 = 1;
|
|
961
|
+
return this.o5u_1.r5r_1.ri();
|
|
962
|
+
} else if (tmp === 1) {
|
|
963
|
+
throw this.l9_1;
|
|
964
|
+
}
|
|
965
|
+
} catch ($p) {
|
|
966
|
+
var e = $p;
|
|
967
|
+
throw e;
|
|
968
|
+
}
|
|
969
|
+
while (true);
|
|
970
|
+
};
|
|
971
|
+
protoOf(boolean$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
972
|
+
var i = new boolean$slambda(completion);
|
|
973
|
+
i.n5u_1 = $this$arbitrary;
|
|
974
|
+
i.o5u_1 = it;
|
|
975
|
+
return i;
|
|
976
|
+
};
|
|
977
|
+
function boolean$slambda_0(resultContinuation) {
|
|
978
|
+
var i = new boolean$slambda(resultContinuation);
|
|
979
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
980
|
+
return i.p5u($this$arbitrary, it, $completion);
|
|
981
|
+
};
|
|
982
|
+
l.$arity = 2;
|
|
983
|
+
return l;
|
|
984
|
+
}
|
|
985
|
+
function arbitrary(fn) {
|
|
986
|
+
return arbitraryBuilder(VOID, VOID, VOID, arbitrary$slambda_0(fn, null));
|
|
987
|
+
}
|
|
988
|
+
function ArbitraryBuilderContext() {
|
|
989
|
+
}
|
|
990
|
+
function arbitrary_0(edgecases, fn) {
|
|
991
|
+
return new arbitrary$3(edgecases, fn);
|
|
992
|
+
}
|
|
993
|
+
function arbitraryBuilder(shrinker, classifier, edgecaseFn, builderFn) {
|
|
994
|
+
shrinker = shrinker === VOID ? null : shrinker;
|
|
995
|
+
classifier = classifier === VOID ? null : classifier;
|
|
996
|
+
edgecaseFn = edgecaseFn === VOID ? null : edgecaseFn;
|
|
997
|
+
return new arbitraryBuilder$1(classifier, shrinker, edgecaseFn, builderFn);
|
|
998
|
+
}
|
|
999
|
+
var SingleShotGenerationMode_Edgecase_instance;
|
|
1000
|
+
var SingleShotGenerationMode_Sample_instance;
|
|
1001
|
+
var SingleShotGenerationMode_entriesInitialized;
|
|
1002
|
+
function SingleShotGenerationMode_initEntries() {
|
|
1003
|
+
if (SingleShotGenerationMode_entriesInitialized)
|
|
1004
|
+
return Unit_instance;
|
|
1005
|
+
SingleShotGenerationMode_entriesInitialized = true;
|
|
1006
|
+
SingleShotGenerationMode_Edgecase_instance = new SingleShotGenerationMode('Edgecase', 0);
|
|
1007
|
+
SingleShotGenerationMode_Sample_instance = new SingleShotGenerationMode('Sample', 1);
|
|
1008
|
+
}
|
|
1009
|
+
function SingleShotGenerationMode(name, ordinal) {
|
|
1010
|
+
Enum.call(this, name, ordinal);
|
|
1011
|
+
}
|
|
1012
|
+
function Restricted(genMode, rs, fn) {
|
|
1013
|
+
SingleShotArbContinuation.call(this, EmptyCoroutineContext_getInstance(), genMode, rs, fn);
|
|
1014
|
+
}
|
|
1015
|
+
function SingleShotArbContinuation(context, generationMode, randomSource, fn) {
|
|
1016
|
+
this.q5u_1 = context;
|
|
1017
|
+
this.r5u_1 = generationMode;
|
|
1018
|
+
this.s5u_1 = randomSource;
|
|
1019
|
+
this.t5u_1 = fn;
|
|
1020
|
+
this.u5u_1 = false;
|
|
1021
|
+
}
|
|
1022
|
+
protoOf(SingleShotArbContinuation).o9 = function () {
|
|
1023
|
+
return this.q5u_1;
|
|
1024
|
+
};
|
|
1025
|
+
protoOf(SingleShotArbContinuation).v5u = function (result) {
|
|
1026
|
+
// Inline function 'kotlin.getOrThrow' call
|
|
1027
|
+
throwOnFailure(result);
|
|
1028
|
+
var tmp = _Result___get_value__impl__bjfvqg(result);
|
|
1029
|
+
(tmp == null ? true : !(tmp == null)) || THROW_CCE();
|
|
1030
|
+
};
|
|
1031
|
+
protoOf(SingleShotArbContinuation).t9 = function (result) {
|
|
1032
|
+
return this.v5u(result);
|
|
1033
|
+
};
|
|
1034
|
+
protoOf(SingleShotArbContinuation).w5u = function (_this__u8e3s4) {
|
|
1035
|
+
// Inline function 'kotlin.require' call
|
|
1036
|
+
if (!!this.u5u_1) {
|
|
1037
|
+
var message = 'continuation has already been executed, if you see this error please raise a bug report';
|
|
1038
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1039
|
+
}
|
|
1040
|
+
this.u5u_1 = true;
|
|
1041
|
+
// Inline function 'kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn' call
|
|
1042
|
+
var this_0 = this.t5u_1;
|
|
1043
|
+
var result = startCoroutineUninterceptedOrReturnNonGeneratorVersion(this_0, _this__u8e3s4, this);
|
|
1044
|
+
return (result == null ? true : !(result == null)) ? result : THROW_CCE();
|
|
1045
|
+
};
|
|
1046
|
+
function arbitrary_1(edgecases, shrinker, fn) {
|
|
1047
|
+
return new arbitrary$4(shrinker, edgecases, fn);
|
|
1048
|
+
}
|
|
1049
|
+
function Companion_1() {
|
|
1050
|
+
}
|
|
1051
|
+
protoOf(Companion_1).x5u = function (f) {
|
|
1052
|
+
return new ArbitraryBuilder(f, null, null, null);
|
|
1053
|
+
};
|
|
1054
|
+
var Companion_instance_1;
|
|
1055
|
+
function Companion_getInstance_1() {
|
|
1056
|
+
return Companion_instance_1;
|
|
1057
|
+
}
|
|
1058
|
+
function ArbitraryBuilder$withEdgecases$lambda($edgecases) {
|
|
1059
|
+
return function (it) {
|
|
1060
|
+
return $edgecases.r() ? null : asSample(random($edgecases, it.r5r_1));
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
function ArbitraryBuilder$build$1(this$0) {
|
|
1064
|
+
this.a5v_1 = this$0;
|
|
1065
|
+
Arb.call(this);
|
|
1066
|
+
this.z5u_1 = this$0.c5v_1;
|
|
1067
|
+
}
|
|
1068
|
+
protoOf(ArbitraryBuilder$build$1).m5r = function (rs) {
|
|
1069
|
+
var tmp0_safe_receiver = this.a5v_1.e5v_1;
|
|
1070
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(rs);
|
|
1071
|
+
};
|
|
1072
|
+
protoOf(ArbitraryBuilder$build$1).l5r = function (rs) {
|
|
1073
|
+
var sample = this.a5v_1.b5v_1(rs);
|
|
1074
|
+
return this.a5v_1.d5v_1 == null ? new Sample(sample) : sampleOf(sample, this.a5v_1.d5v_1);
|
|
1075
|
+
};
|
|
1076
|
+
function ArbitraryBuilder(sampleFn, classifier, shrinker, edgecaseFn) {
|
|
1077
|
+
this.b5v_1 = sampleFn;
|
|
1078
|
+
this.c5v_1 = classifier;
|
|
1079
|
+
this.d5v_1 = shrinker;
|
|
1080
|
+
this.e5v_1 = edgecaseFn;
|
|
1081
|
+
}
|
|
1082
|
+
protoOf(ArbitraryBuilder).f5v = function (classifier) {
|
|
1083
|
+
return new ArbitraryBuilder(this.b5v_1, classifier, this.d5v_1, this.e5v_1);
|
|
1084
|
+
};
|
|
1085
|
+
protoOf(ArbitraryBuilder).g5v = function (shrinker) {
|
|
1086
|
+
return new ArbitraryBuilder(this.b5v_1, this.c5v_1, shrinker, this.e5v_1);
|
|
1087
|
+
};
|
|
1088
|
+
protoOf(ArbitraryBuilder).h5v = function (edgecases) {
|
|
1089
|
+
return new ArbitraryBuilder(this.b5v_1, this.c5v_1, this.d5v_1, ArbitraryBuilder$withEdgecases$lambda(edgecases));
|
|
1090
|
+
};
|
|
1091
|
+
protoOf(ArbitraryBuilder).h1y = function () {
|
|
1092
|
+
return new ArbitraryBuilder$build$1(this);
|
|
1093
|
+
};
|
|
1094
|
+
function arbitrary_2(edgecaseFn, shrinker, sampleFn) {
|
|
1095
|
+
return new arbitrary$5(shrinker, edgecaseFn, sampleFn);
|
|
1096
|
+
}
|
|
1097
|
+
function arbitrary$slambda($fn, resultContinuation) {
|
|
1098
|
+
this.q5v_1 = $fn;
|
|
1099
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1100
|
+
}
|
|
1101
|
+
protoOf(arbitrary$slambda).t5v = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1102
|
+
var tmp = this.e5u($this$arbitraryBuilder, rs, $completion);
|
|
1103
|
+
tmp.k9_1 = Unit_instance;
|
|
1104
|
+
tmp.l9_1 = null;
|
|
1105
|
+
return tmp.q9();
|
|
1106
|
+
};
|
|
1107
|
+
protoOf(arbitrary$slambda).w9 = function (p1, p2, $completion) {
|
|
1108
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1109
|
+
return this.t5v(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1110
|
+
};
|
|
1111
|
+
protoOf(arbitrary$slambda).q9 = function () {
|
|
1112
|
+
var suspendResult = this.k9_1;
|
|
1113
|
+
$sm: do
|
|
1114
|
+
try {
|
|
1115
|
+
var tmp = this.i9_1;
|
|
1116
|
+
switch (tmp) {
|
|
1117
|
+
case 0:
|
|
1118
|
+
this.j9_1 = 2;
|
|
1119
|
+
this.i9_1 = 1;
|
|
1120
|
+
suspendResult = this.q5v_1(this.r5v_1, this.s5v_1, this);
|
|
1121
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1122
|
+
return suspendResult;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
continue $sm;
|
|
1126
|
+
case 1:
|
|
1127
|
+
return suspendResult;
|
|
1128
|
+
case 2:
|
|
1129
|
+
throw this.l9_1;
|
|
1130
|
+
}
|
|
1131
|
+
} catch ($p) {
|
|
1132
|
+
var e = $p;
|
|
1133
|
+
if (this.j9_1 === 2) {
|
|
1134
|
+
throw e;
|
|
1135
|
+
} else {
|
|
1136
|
+
this.i9_1 = this.j9_1;
|
|
1137
|
+
this.l9_1 = e;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
while (true);
|
|
1141
|
+
};
|
|
1142
|
+
protoOf(arbitrary$slambda).e5u = function ($this$arbitraryBuilder, rs, completion) {
|
|
1143
|
+
var i = new arbitrary$slambda(this.q5v_1, completion);
|
|
1144
|
+
i.r5v_1 = $this$arbitraryBuilder;
|
|
1145
|
+
i.s5v_1 = rs;
|
|
1146
|
+
return i;
|
|
1147
|
+
};
|
|
1148
|
+
function arbitrary$slambda_0($fn, resultContinuation) {
|
|
1149
|
+
var i = new arbitrary$slambda($fn, resultContinuation);
|
|
1150
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1151
|
+
return i.t5v($this$arbitraryBuilder, rs, $completion);
|
|
1152
|
+
};
|
|
1153
|
+
l.$arity = 2;
|
|
1154
|
+
return l;
|
|
1155
|
+
}
|
|
1156
|
+
function arbitrary$o$delegate$slambda($fn, resultContinuation) {
|
|
1157
|
+
this.c5w_1 = $fn;
|
|
1158
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1159
|
+
}
|
|
1160
|
+
protoOf(arbitrary$o$delegate$slambda).t5v = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1161
|
+
var tmp = this.e5u($this$arbitraryBuilder, rs, $completion);
|
|
1162
|
+
tmp.k9_1 = Unit_instance;
|
|
1163
|
+
tmp.l9_1 = null;
|
|
1164
|
+
return tmp.q9();
|
|
1165
|
+
};
|
|
1166
|
+
protoOf(arbitrary$o$delegate$slambda).w9 = function (p1, p2, $completion) {
|
|
1167
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1168
|
+
return this.t5v(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1169
|
+
};
|
|
1170
|
+
protoOf(arbitrary$o$delegate$slambda).q9 = function () {
|
|
1171
|
+
var suspendResult = this.k9_1;
|
|
1172
|
+
$sm: do
|
|
1173
|
+
try {
|
|
1174
|
+
var tmp = this.i9_1;
|
|
1175
|
+
switch (tmp) {
|
|
1176
|
+
case 0:
|
|
1177
|
+
this.j9_1 = 2;
|
|
1178
|
+
this.i9_1 = 1;
|
|
1179
|
+
suspendResult = this.c5w_1(this.d5w_1, this.e5w_1, this);
|
|
1180
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1181
|
+
return suspendResult;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
continue $sm;
|
|
1185
|
+
case 1:
|
|
1186
|
+
return suspendResult;
|
|
1187
|
+
case 2:
|
|
1188
|
+
throw this.l9_1;
|
|
1189
|
+
}
|
|
1190
|
+
} catch ($p) {
|
|
1191
|
+
var e = $p;
|
|
1192
|
+
if (this.j9_1 === 2) {
|
|
1193
|
+
throw e;
|
|
1194
|
+
} else {
|
|
1195
|
+
this.i9_1 = this.j9_1;
|
|
1196
|
+
this.l9_1 = e;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
while (true);
|
|
1200
|
+
};
|
|
1201
|
+
protoOf(arbitrary$o$delegate$slambda).e5u = function ($this$arbitraryBuilder, rs, completion) {
|
|
1202
|
+
var i = new arbitrary$o$delegate$slambda(this.c5w_1, completion);
|
|
1203
|
+
i.d5w_1 = $this$arbitraryBuilder;
|
|
1204
|
+
i.e5w_1 = rs;
|
|
1205
|
+
return i;
|
|
1206
|
+
};
|
|
1207
|
+
function arbitrary$o$delegate$slambda_0($fn, resultContinuation) {
|
|
1208
|
+
var i = new arbitrary$o$delegate$slambda($fn, resultContinuation);
|
|
1209
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1210
|
+
return i.t5v($this$arbitraryBuilder, rs, $completion);
|
|
1211
|
+
};
|
|
1212
|
+
l.$arity = 2;
|
|
1213
|
+
return l;
|
|
1214
|
+
}
|
|
1215
|
+
function arbitrary$3($edgecases, $fn) {
|
|
1216
|
+
this.h5w_1 = $edgecases;
|
|
1217
|
+
Arb.call(this);
|
|
1218
|
+
var tmp = this;
|
|
1219
|
+
tmp.g5w_1 = arbitraryBuilder(VOID, VOID, VOID, arbitrary$o$delegate$slambda_0($fn, null));
|
|
1220
|
+
}
|
|
1221
|
+
protoOf(arbitrary$3).m5r = function (rs) {
|
|
1222
|
+
return this.h5w_1.r() ? null : asSample(random(this.h5w_1, rs.r5r_1));
|
|
1223
|
+
};
|
|
1224
|
+
protoOf(arbitrary$3).l5r = function (rs) {
|
|
1225
|
+
return this.g5w_1.l5r(rs);
|
|
1226
|
+
};
|
|
1227
|
+
function runBuilderFn($this, mode, rs) {
|
|
1228
|
+
var cont = new Restricted(mode, rs, arbitraryBuilder$o$runBuilderFn$slambda_0($this.m5w_1, rs, null));
|
|
1229
|
+
// Inline function 'kotlin.with' call
|
|
1230
|
+
return cont.w5u(cont);
|
|
1231
|
+
}
|
|
1232
|
+
function arbitraryBuilder$o$runBuilderFn$slambda($builderFn, $rs, resultContinuation) {
|
|
1233
|
+
this.v5w_1 = $builderFn;
|
|
1234
|
+
this.w5w_1 = $rs;
|
|
1235
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1236
|
+
}
|
|
1237
|
+
protoOf(arbitraryBuilder$o$runBuilderFn$slambda).y5w = function ($this$Restricted, $completion) {
|
|
1238
|
+
var tmp = this.z5w($this$Restricted, $completion);
|
|
1239
|
+
tmp.k9_1 = Unit_instance;
|
|
1240
|
+
tmp.l9_1 = null;
|
|
1241
|
+
return tmp.q9();
|
|
1242
|
+
};
|
|
1243
|
+
protoOf(arbitraryBuilder$o$runBuilderFn$slambda).x9 = function (p1, $completion) {
|
|
1244
|
+
return this.y5w((!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE(), $completion);
|
|
1245
|
+
};
|
|
1246
|
+
protoOf(arbitraryBuilder$o$runBuilderFn$slambda).q9 = function () {
|
|
1247
|
+
var suspendResult = this.k9_1;
|
|
1248
|
+
$sm: do
|
|
1249
|
+
try {
|
|
1250
|
+
var tmp = this.i9_1;
|
|
1251
|
+
switch (tmp) {
|
|
1252
|
+
case 0:
|
|
1253
|
+
this.j9_1 = 2;
|
|
1254
|
+
this.i9_1 = 1;
|
|
1255
|
+
suspendResult = this.v5w_1(this.x5w_1, this.w5w_1, this);
|
|
1256
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1257
|
+
return suspendResult;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
continue $sm;
|
|
1261
|
+
case 1:
|
|
1262
|
+
return suspendResult;
|
|
1263
|
+
case 2:
|
|
1264
|
+
throw this.l9_1;
|
|
1265
|
+
}
|
|
1266
|
+
} catch ($p) {
|
|
1267
|
+
var e = $p;
|
|
1268
|
+
if (this.j9_1 === 2) {
|
|
1269
|
+
throw e;
|
|
1270
|
+
} else {
|
|
1271
|
+
this.i9_1 = this.j9_1;
|
|
1272
|
+
this.l9_1 = e;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
while (true);
|
|
1276
|
+
};
|
|
1277
|
+
protoOf(arbitraryBuilder$o$runBuilderFn$slambda).z5w = function ($this$Restricted, completion) {
|
|
1278
|
+
var i = new arbitraryBuilder$o$runBuilderFn$slambda(this.v5w_1, this.w5w_1, completion);
|
|
1279
|
+
i.x5w_1 = $this$Restricted;
|
|
1280
|
+
return i;
|
|
1281
|
+
};
|
|
1282
|
+
function arbitraryBuilder$o$runBuilderFn$slambda_0($builderFn, $rs, resultContinuation) {
|
|
1283
|
+
var i = new arbitraryBuilder$o$runBuilderFn$slambda($builderFn, $rs, resultContinuation);
|
|
1284
|
+
var l = function ($this$Restricted, $completion) {
|
|
1285
|
+
return i.y5w($this$Restricted, $completion);
|
|
1286
|
+
};
|
|
1287
|
+
l.$arity = 1;
|
|
1288
|
+
return l;
|
|
1289
|
+
}
|
|
1290
|
+
function arbitraryBuilder$1($classifier, $shrinker, $edgecaseFn, $builderFn) {
|
|
1291
|
+
this.k5w_1 = $shrinker;
|
|
1292
|
+
this.l5w_1 = $edgecaseFn;
|
|
1293
|
+
this.m5w_1 = $builderFn;
|
|
1294
|
+
Arb.call(this);
|
|
1295
|
+
this.j5w_1 = $classifier;
|
|
1296
|
+
}
|
|
1297
|
+
protoOf(arbitraryBuilder$1).l5r = function (rs) {
|
|
1298
|
+
var value = runBuilderFn(this, SingleShotGenerationMode_Sample_getInstance(), rs);
|
|
1299
|
+
return this.k5w_1 == null ? new Sample(value) : sampleOf(value, this.k5w_1);
|
|
1300
|
+
};
|
|
1301
|
+
protoOf(arbitraryBuilder$1).m5r = function (rs) {
|
|
1302
|
+
var value = runBuilderFn(this, SingleShotGenerationMode_Edgecase_getInstance(), rs);
|
|
1303
|
+
var tmp0_safe_receiver = this.l5w_1;
|
|
1304
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(rs);
|
|
1305
|
+
return tmp1_elvis_lhs == null ? asSample(value) : tmp1_elvis_lhs;
|
|
1306
|
+
};
|
|
1307
|
+
function arbitrary$o$delegate$slambda_1($fn, resultContinuation) {
|
|
1308
|
+
this.i5x_1 = $fn;
|
|
1309
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1310
|
+
}
|
|
1311
|
+
protoOf(arbitrary$o$delegate$slambda_1).t5v = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1312
|
+
var tmp = this.e5u($this$arbitraryBuilder, rs, $completion);
|
|
1313
|
+
tmp.k9_1 = Unit_instance;
|
|
1314
|
+
tmp.l9_1 = null;
|
|
1315
|
+
return tmp.q9();
|
|
1316
|
+
};
|
|
1317
|
+
protoOf(arbitrary$o$delegate$slambda_1).w9 = function (p1, p2, $completion) {
|
|
1318
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1319
|
+
return this.t5v(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1320
|
+
};
|
|
1321
|
+
protoOf(arbitrary$o$delegate$slambda_1).q9 = function () {
|
|
1322
|
+
var suspendResult = this.k9_1;
|
|
1323
|
+
$sm: do
|
|
1324
|
+
try {
|
|
1325
|
+
var tmp = this.i9_1;
|
|
1326
|
+
switch (tmp) {
|
|
1327
|
+
case 0:
|
|
1328
|
+
this.j9_1 = 2;
|
|
1329
|
+
this.i9_1 = 1;
|
|
1330
|
+
suspendResult = this.i5x_1(this.j5x_1, this.k5x_1, this);
|
|
1331
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1332
|
+
return suspendResult;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
continue $sm;
|
|
1336
|
+
case 1:
|
|
1337
|
+
return suspendResult;
|
|
1338
|
+
case 2:
|
|
1339
|
+
throw this.l9_1;
|
|
1340
|
+
}
|
|
1341
|
+
} catch ($p) {
|
|
1342
|
+
var e = $p;
|
|
1343
|
+
if (this.j9_1 === 2) {
|
|
1344
|
+
throw e;
|
|
1345
|
+
} else {
|
|
1346
|
+
this.i9_1 = this.j9_1;
|
|
1347
|
+
this.l9_1 = e;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
while (true);
|
|
1351
|
+
};
|
|
1352
|
+
protoOf(arbitrary$o$delegate$slambda_1).e5u = function ($this$arbitraryBuilder, rs, completion) {
|
|
1353
|
+
var i = new arbitrary$o$delegate$slambda_1(this.i5x_1, completion);
|
|
1354
|
+
i.j5x_1 = $this$arbitraryBuilder;
|
|
1355
|
+
i.k5x_1 = rs;
|
|
1356
|
+
return i;
|
|
1357
|
+
};
|
|
1358
|
+
function arbitrary$o$delegate$slambda_2($fn, resultContinuation) {
|
|
1359
|
+
var i = new arbitrary$o$delegate$slambda_1($fn, resultContinuation);
|
|
1360
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1361
|
+
return i.t5v($this$arbitraryBuilder, rs, $completion);
|
|
1362
|
+
};
|
|
1363
|
+
l.$arity = 2;
|
|
1364
|
+
return l;
|
|
1365
|
+
}
|
|
1366
|
+
function arbitrary$4($shrinker, $edgecases, $fn) {
|
|
1367
|
+
this.n5x_1 = $edgecases;
|
|
1368
|
+
Arb.call(this);
|
|
1369
|
+
var tmp = this;
|
|
1370
|
+
tmp.m5x_1 = arbitraryBuilder($shrinker, VOID, VOID, arbitrary$o$delegate$slambda_2($fn, null));
|
|
1371
|
+
}
|
|
1372
|
+
protoOf(arbitrary$4).m5r = function (rs) {
|
|
1373
|
+
return this.n5x_1.r() ? null : asSample(random(this.n5x_1, rs.r5r_1));
|
|
1374
|
+
};
|
|
1375
|
+
protoOf(arbitrary$4).l5r = function (rs) {
|
|
1376
|
+
return this.m5x_1.l5r(rs);
|
|
1377
|
+
};
|
|
1378
|
+
function arbitrary$o$delegate$slambda_3($sampleFn, resultContinuation) {
|
|
1379
|
+
this.w5x_1 = $sampleFn;
|
|
1380
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1381
|
+
}
|
|
1382
|
+
protoOf(arbitrary$o$delegate$slambda_3).t5v = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1383
|
+
var tmp = this.e5u($this$arbitraryBuilder, rs, $completion);
|
|
1384
|
+
tmp.k9_1 = Unit_instance;
|
|
1385
|
+
tmp.l9_1 = null;
|
|
1386
|
+
return tmp.q9();
|
|
1387
|
+
};
|
|
1388
|
+
protoOf(arbitrary$o$delegate$slambda_3).w9 = function (p1, p2, $completion) {
|
|
1389
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1390
|
+
return this.t5v(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1391
|
+
};
|
|
1392
|
+
protoOf(arbitrary$o$delegate$slambda_3).q9 = function () {
|
|
1393
|
+
var suspendResult = this.k9_1;
|
|
1394
|
+
$sm: do
|
|
1395
|
+
try {
|
|
1396
|
+
var tmp = this.i9_1;
|
|
1397
|
+
switch (tmp) {
|
|
1398
|
+
case 0:
|
|
1399
|
+
this.j9_1 = 2;
|
|
1400
|
+
this.i9_1 = 1;
|
|
1401
|
+
suspendResult = this.w5x_1(this.x5x_1, this.y5x_1, this);
|
|
1402
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1403
|
+
return suspendResult;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
continue $sm;
|
|
1407
|
+
case 1:
|
|
1408
|
+
return suspendResult;
|
|
1409
|
+
case 2:
|
|
1410
|
+
throw this.l9_1;
|
|
1411
|
+
}
|
|
1412
|
+
} catch ($p) {
|
|
1413
|
+
var e = $p;
|
|
1414
|
+
if (this.j9_1 === 2) {
|
|
1415
|
+
throw e;
|
|
1416
|
+
} else {
|
|
1417
|
+
this.i9_1 = this.j9_1;
|
|
1418
|
+
this.l9_1 = e;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
while (true);
|
|
1422
|
+
};
|
|
1423
|
+
protoOf(arbitrary$o$delegate$slambda_3).e5u = function ($this$arbitraryBuilder, rs, completion) {
|
|
1424
|
+
var i = new arbitrary$o$delegate$slambda_3(this.w5x_1, completion);
|
|
1425
|
+
i.x5x_1 = $this$arbitraryBuilder;
|
|
1426
|
+
i.y5x_1 = rs;
|
|
1427
|
+
return i;
|
|
1428
|
+
};
|
|
1429
|
+
function arbitrary$o$delegate$slambda_4($sampleFn, resultContinuation) {
|
|
1430
|
+
var i = new arbitrary$o$delegate$slambda_3($sampleFn, resultContinuation);
|
|
1431
|
+
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1432
|
+
return i.t5v($this$arbitraryBuilder, rs, $completion);
|
|
1433
|
+
};
|
|
1434
|
+
l.$arity = 2;
|
|
1435
|
+
return l;
|
|
1436
|
+
}
|
|
1437
|
+
function arbitrary$5($shrinker, $edgecaseFn, $sampleFn) {
|
|
1438
|
+
this.b5y_1 = $edgecaseFn;
|
|
1439
|
+
Arb.call(this);
|
|
1440
|
+
var tmp = this;
|
|
1441
|
+
tmp.a5y_1 = arbitraryBuilder($shrinker, VOID, VOID, arbitrary$o$delegate$slambda_4($sampleFn, null));
|
|
1442
|
+
}
|
|
1443
|
+
protoOf(arbitrary$5).m5r = function (rs) {
|
|
1444
|
+
return this.b5y_1(rs);
|
|
1445
|
+
};
|
|
1446
|
+
protoOf(arbitrary$5).l5r = function (rs) {
|
|
1447
|
+
return this.a5y_1.l5r(rs);
|
|
1448
|
+
};
|
|
1449
|
+
function SingleShotGenerationMode_Edgecase_getInstance() {
|
|
1450
|
+
SingleShotGenerationMode_initEntries();
|
|
1451
|
+
return SingleShotGenerationMode_Edgecase_instance;
|
|
1452
|
+
}
|
|
1453
|
+
function SingleShotGenerationMode_Sample_getInstance() {
|
|
1454
|
+
SingleShotGenerationMode_initEntries();
|
|
1455
|
+
return SingleShotGenerationMode_Sample_instance;
|
|
1456
|
+
}
|
|
1457
|
+
function get_ByteShrinker() {
|
|
1458
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1459
|
+
return ByteShrinker;
|
|
1460
|
+
}
|
|
1461
|
+
var ByteShrinker;
|
|
1462
|
+
var UByteShrinker;
|
|
1463
|
+
function byteArray(_this__u8e3s4, length, content) {
|
|
1464
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1465
|
+
// Inline function 'io.kotest.property.arbitrary.toPrimitiveArray' call
|
|
1466
|
+
var tmp;
|
|
1467
|
+
if (length instanceof Arb) {
|
|
1468
|
+
tmp = length;
|
|
1469
|
+
} else {
|
|
1470
|
+
if (length instanceof Exhaustive) {
|
|
1471
|
+
tmp = length.t5s();
|
|
1472
|
+
} else {
|
|
1473
|
+
noWhenBranchMatchedException();
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
var tmp_0 = tmp;
|
|
1477
|
+
var tmp_1 = flatMap(tmp_0, byteArray$lambda(content));
|
|
1478
|
+
return map_1(tmp_1, byteArray$lambda_0);
|
|
1479
|
+
}
|
|
1480
|
+
function byte(_this__u8e3s4, min, max) {
|
|
1481
|
+
min = min === VOID ? -128 : min;
|
|
1482
|
+
max = max === VOID ? 127 : max;
|
|
1483
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1484
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
1485
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1486
|
+
var tmp0 = new Int8Array([min, -1, 0, 1, max]);
|
|
1487
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1488
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1489
|
+
var inductionVariable = 0;
|
|
1490
|
+
var last = tmp0.length;
|
|
1491
|
+
while (inductionVariable < last) {
|
|
1492
|
+
var element = tmp0[inductionVariable];
|
|
1493
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1494
|
+
// Inline function 'kotlin.ranges.contains' call
|
|
1495
|
+
var this_0 = numberRangeToNumber(min, max);
|
|
1496
|
+
if (contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), element)) {
|
|
1497
|
+
destination.x(element);
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
var tmp = distinct(destination);
|
|
1501
|
+
var tmp_0 = get_ByteShrinker();
|
|
1502
|
+
return arbitrary_1(tmp, tmp_0, byte$slambda_0(min, max, null));
|
|
1503
|
+
}
|
|
1504
|
+
function ByteShrinker$lambda(it) {
|
|
1505
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1506
|
+
return it;
|
|
1507
|
+
}
|
|
1508
|
+
function ByteShrinker$lambda_0(it) {
|
|
1509
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1510
|
+
return toByte(it);
|
|
1511
|
+
}
|
|
1512
|
+
function UByteShrinker$lambda(it) {
|
|
1513
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1514
|
+
// Inline function 'kotlin.UByte.toUInt' call
|
|
1515
|
+
var this_0 = it.wn_1;
|
|
1516
|
+
var tmp$ret$0 = _UInt___init__impl__l7qpdl(_UByte___get_data__impl__jof9qr(this_0) & 255);
|
|
1517
|
+
return new UInt(tmp$ret$0);
|
|
1518
|
+
}
|
|
1519
|
+
function UByteShrinker$lambda_0(it) {
|
|
1520
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1521
|
+
// Inline function 'kotlin.UInt.toUByte' call
|
|
1522
|
+
var this_0 = it.ho_1;
|
|
1523
|
+
// Inline function 'kotlin.toUByte' call
|
|
1524
|
+
var this_1 = _UInt___get_data__impl__f0vqqw(this_0);
|
|
1525
|
+
var tmp$ret$1 = _UByte___init__impl__g9hnc4(toByte(this_1));
|
|
1526
|
+
return new UByte(tmp$ret$1);
|
|
1527
|
+
}
|
|
1528
|
+
function byteArray$lambda($generateContents) {
|
|
1529
|
+
return function (length) {
|
|
1530
|
+
return list(Companion_instance, $generateContents, numberRangeToNumber(length, length));
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
function byteArray$lambda_0(it) {
|
|
1534
|
+
_init_properties_bytes_kt__yz6anb();
|
|
1535
|
+
return toByteArray(it);
|
|
1536
|
+
}
|
|
1537
|
+
function byte$slambda$lambda($it) {
|
|
1538
|
+
return function () {
|
|
1539
|
+
return first($it.r5r_1.vi(1));
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
function byte$slambda$lambda_0($min, $max) {
|
|
1543
|
+
return function (it) {
|
|
1544
|
+
// Inline function 'kotlin.ranges.contains' call
|
|
1545
|
+
var this_0 = numberRangeToNumber($min, $max);
|
|
1546
|
+
return contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), it);
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
function byte$slambda($min, $max, resultContinuation) {
|
|
1550
|
+
this.k5y_1 = $min;
|
|
1551
|
+
this.l5y_1 = $max;
|
|
1552
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1553
|
+
}
|
|
1554
|
+
protoOf(byte$slambda).o5y = function ($this$arbitrary, it, $completion) {
|
|
1555
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
1556
|
+
tmp.k9_1 = Unit_instance;
|
|
1557
|
+
tmp.l9_1 = null;
|
|
1558
|
+
return tmp.q9();
|
|
1559
|
+
};
|
|
1560
|
+
protoOf(byte$slambda).w9 = function (p1, p2, $completion) {
|
|
1561
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1562
|
+
return this.o5y(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1563
|
+
};
|
|
1564
|
+
protoOf(byte$slambda).q9 = function () {
|
|
1565
|
+
var suspendResult = this.k9_1;
|
|
1566
|
+
$sm: do
|
|
1567
|
+
try {
|
|
1568
|
+
var tmp = this.i9_1;
|
|
1569
|
+
if (tmp === 0) {
|
|
1570
|
+
this.j9_1 = 1;
|
|
1571
|
+
var tmp_0 = generateSequence(byte$slambda$lambda(this.n5y_1));
|
|
1572
|
+
return first_0(filter(tmp_0, byte$slambda$lambda_0(this.k5y_1, this.l5y_1)));
|
|
1573
|
+
} else if (tmp === 1) {
|
|
1574
|
+
throw this.l9_1;
|
|
1575
|
+
}
|
|
1576
|
+
} catch ($p) {
|
|
1577
|
+
var e = $p;
|
|
1578
|
+
throw e;
|
|
1579
|
+
}
|
|
1580
|
+
while (true);
|
|
1581
|
+
};
|
|
1582
|
+
protoOf(byte$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
1583
|
+
var i = new byte$slambda(this.k5y_1, this.l5y_1, completion);
|
|
1584
|
+
i.m5y_1 = $this$arbitrary;
|
|
1585
|
+
i.n5y_1 = it;
|
|
1586
|
+
return i;
|
|
1587
|
+
};
|
|
1588
|
+
function byte$slambda_0($min, $max, resultContinuation) {
|
|
1589
|
+
var i = new byte$slambda($min, $max, resultContinuation);
|
|
1590
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1591
|
+
return i.o5y($this$arbitrary, it, $completion);
|
|
1592
|
+
};
|
|
1593
|
+
l.$arity = 2;
|
|
1594
|
+
return l;
|
|
1595
|
+
}
|
|
1596
|
+
var properties_initialized_bytes_kt_a5jamz;
|
|
1597
|
+
function _init_properties_bytes_kt__yz6anb() {
|
|
1598
|
+
if (!properties_initialized_bytes_kt_a5jamz) {
|
|
1599
|
+
properties_initialized_bytes_kt_a5jamz = true;
|
|
1600
|
+
var tmp = new IntShrinker(numberRangeToNumber(-128, 127));
|
|
1601
|
+
var tmp_0 = ByteShrinker$lambda;
|
|
1602
|
+
ByteShrinker = bimap(tmp, tmp_0, ByteShrinker$lambda_0);
|
|
1603
|
+
var tmp0 = _UByte___init__impl__g9hnc4(0);
|
|
1604
|
+
// Inline function 'kotlin.UByte.rangeTo' call
|
|
1605
|
+
var other = _UByte___init__impl__g9hnc4(-1);
|
|
1606
|
+
// Inline function 'kotlin.UByte.toUInt' call
|
|
1607
|
+
var tmp_1 = _UInt___init__impl__l7qpdl(_UByte___get_data__impl__jof9qr(tmp0) & 255);
|
|
1608
|
+
// Inline function 'kotlin.UByte.toUInt' call
|
|
1609
|
+
var tmp$ret$1 = _UInt___init__impl__l7qpdl(_UByte___get_data__impl__jof9qr(other) & 255);
|
|
1610
|
+
var tmp$ret$2 = new UIntRange(tmp_1, tmp$ret$1);
|
|
1611
|
+
var tmp_2 = new UIntShrinker(tmp$ret$2);
|
|
1612
|
+
var tmp_3 = UByteShrinker$lambda;
|
|
1613
|
+
UByteShrinker = bimap(tmp_2, tmp_3, UByteShrinker$lambda_0);
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
function element(_this__u8e3s4, collection) {
|
|
1617
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1618
|
+
// Inline function 'kotlin.require' call
|
|
1619
|
+
if (!!collection.r()) {
|
|
1620
|
+
var message = 'The supplied collection must not be empty.';
|
|
1621
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1622
|
+
}
|
|
1623
|
+
return arbitrary(element$slambda_0(collection, null));
|
|
1624
|
+
}
|
|
1625
|
+
function of(_this__u8e3s4, collection) {
|
|
1626
|
+
return element(_this__u8e3s4, collection);
|
|
1627
|
+
}
|
|
1628
|
+
function list(_this__u8e3s4, gen, range) {
|
|
1629
|
+
range = range === VOID ? PropertyTesting_getInstance().s5s_1 : range;
|
|
1630
|
+
// Inline function 'kotlin.check' call
|
|
1631
|
+
if (!!range.r()) {
|
|
1632
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1633
|
+
}
|
|
1634
|
+
// Inline function 'kotlin.check' call
|
|
1635
|
+
if (!(range.u1_1 >= 0)) {
|
|
1636
|
+
throw IllegalStateException_init_$Create$('Check failed.');
|
|
1637
|
+
}
|
|
1638
|
+
var tmp = list$lambda(gen, range);
|
|
1639
|
+
var tmp_0 = new ListShrinker(range);
|
|
1640
|
+
return arbitrary_2(tmp, tmp_0, list$slambda_0(range, gen, null));
|
|
1641
|
+
}
|
|
1642
|
+
function ListShrinker(range) {
|
|
1643
|
+
this.p5y_1 = range;
|
|
1644
|
+
}
|
|
1645
|
+
protoOf(ListShrinker).q5y = function (value) {
|
|
1646
|
+
var tmp;
|
|
1647
|
+
if (value.r()) {
|
|
1648
|
+
tmp = emptyList();
|
|
1649
|
+
} else if (value.b1() === 1) {
|
|
1650
|
+
tmp = this.p5y_1.kj(0) ? listOf_0(emptyList()) : emptyList();
|
|
1651
|
+
} else {
|
|
1652
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1653
|
+
var tmp0 = listOf([take_0(value, 1), dropLast(value, 1), take_0(value, value.b1() / 2 | 0), drop(value, 1)]);
|
|
1654
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1655
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1656
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1657
|
+
while (_iterator__ex2g4s.u()) {
|
|
1658
|
+
var element = _iterator__ex2g4s.v();
|
|
1659
|
+
var progression = this.p5y_1;
|
|
1660
|
+
var containsLower = progression.u1_1;
|
|
1661
|
+
var containsUpper = progression.v1_1;
|
|
1662
|
+
var containsArg = element.b1();
|
|
1663
|
+
if (containsLower <= containsArg ? containsArg <= containsUpper : false) {
|
|
1664
|
+
destination.x(element);
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
tmp = destination;
|
|
1668
|
+
}
|
|
1669
|
+
return tmp;
|
|
1670
|
+
};
|
|
1671
|
+
protoOf(ListShrinker).a5t = function (value) {
|
|
1672
|
+
return this.q5y((!(value == null) ? isInterface(value, KtList) : false) ? value : THROW_CCE());
|
|
1673
|
+
};
|
|
1674
|
+
function element$slambda($collection, resultContinuation) {
|
|
1675
|
+
this.z5y_1 = $collection;
|
|
1676
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1677
|
+
}
|
|
1678
|
+
protoOf(element$slambda).c5z = function ($this$arbitrary, it, $completion) {
|
|
1679
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
1680
|
+
tmp.k9_1 = Unit_instance;
|
|
1681
|
+
tmp.l9_1 = null;
|
|
1682
|
+
return tmp.q9();
|
|
1683
|
+
};
|
|
1684
|
+
protoOf(element$slambda).w9 = function (p1, p2, $completion) {
|
|
1685
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1686
|
+
return this.c5z(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1687
|
+
};
|
|
1688
|
+
protoOf(element$slambda).q9 = function () {
|
|
1689
|
+
var suspendResult = this.k9_1;
|
|
1690
|
+
$sm: do
|
|
1691
|
+
try {
|
|
1692
|
+
var tmp = this.i9_1;
|
|
1693
|
+
if (tmp === 0) {
|
|
1694
|
+
this.j9_1 = 1;
|
|
1695
|
+
return random(this.z5y_1, this.b5z_1.r5r_1);
|
|
1696
|
+
} else if (tmp === 1) {
|
|
1697
|
+
throw this.l9_1;
|
|
1698
|
+
}
|
|
1699
|
+
} catch ($p) {
|
|
1700
|
+
var e = $p;
|
|
1701
|
+
throw e;
|
|
1702
|
+
}
|
|
1703
|
+
while (true);
|
|
1704
|
+
};
|
|
1705
|
+
protoOf(element$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
1706
|
+
var i = new element$slambda(this.z5y_1, completion);
|
|
1707
|
+
i.a5z_1 = $this$arbitrary;
|
|
1708
|
+
i.b5z_1 = it;
|
|
1709
|
+
return i;
|
|
1710
|
+
};
|
|
1711
|
+
function element$slambda_0($collection, resultContinuation) {
|
|
1712
|
+
var i = new element$slambda($collection, resultContinuation);
|
|
1713
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1714
|
+
return i.c5z($this$arbitrary, it, $completion);
|
|
1715
|
+
};
|
|
1716
|
+
l.$arity = 2;
|
|
1717
|
+
return l;
|
|
1718
|
+
}
|
|
1719
|
+
function list$lambda($gen, $range) {
|
|
1720
|
+
return function (rs) {
|
|
1721
|
+
var emptyList_0 = emptyList();
|
|
1722
|
+
var tmp0_subject = $gen;
|
|
1723
|
+
var tmp;
|
|
1724
|
+
if (tmp0_subject instanceof Arb) {
|
|
1725
|
+
var tmp1_elvis_lhs = $gen.m5r(rs);
|
|
1726
|
+
tmp = listOf_0((tmp1_elvis_lhs == null ? $gen.l5r(rs) : tmp1_elvis_lhs).v5r_1);
|
|
1727
|
+
} else {
|
|
1728
|
+
if (tmp0_subject instanceof Exhaustive) {
|
|
1729
|
+
var tmp2_safe_receiver = firstOrNull($gen.x2());
|
|
1730
|
+
var tmp_0;
|
|
1731
|
+
if (tmp2_safe_receiver == null) {
|
|
1732
|
+
tmp_0 = null;
|
|
1733
|
+
} else {
|
|
1734
|
+
// Inline function 'kotlin.let' call
|
|
1735
|
+
tmp_0 = listOf_0(tmp2_safe_receiver);
|
|
1736
|
+
}
|
|
1737
|
+
tmp = tmp_0;
|
|
1738
|
+
} else {
|
|
1739
|
+
noWhenBranchMatchedException();
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
var singleList = tmp;
|
|
1743
|
+
var tmp_1;
|
|
1744
|
+
if ($range.v1_1 < 2) {
|
|
1745
|
+
tmp_1 = null;
|
|
1746
|
+
} else {
|
|
1747
|
+
if ($gen instanceof Arb) {
|
|
1748
|
+
// Inline function 'kotlin.math.max' call
|
|
1749
|
+
var b = $range.u1_1;
|
|
1750
|
+
// Inline function 'kotlin.collections.List' call
|
|
1751
|
+
// Inline function 'kotlin.collections.MutableList' call
|
|
1752
|
+
var size = Math.max(2, b);
|
|
1753
|
+
var list = ArrayList_init_$Create$(size);
|
|
1754
|
+
// Inline function 'kotlin.repeat' call
|
|
1755
|
+
var inductionVariable = 0;
|
|
1756
|
+
if (inductionVariable < size)
|
|
1757
|
+
do {
|
|
1758
|
+
var index = inductionVariable;
|
|
1759
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1760
|
+
var tmp0_elvis_lhs = $gen.m5r(rs);
|
|
1761
|
+
var tmp$ret$3 = (tmp0_elvis_lhs == null ? $gen.l5r(rs) : tmp0_elvis_lhs).v5r_1;
|
|
1762
|
+
list.x(tmp$ret$3);
|
|
1763
|
+
}
|
|
1764
|
+
while (inductionVariable < size);
|
|
1765
|
+
tmp_1 = list;
|
|
1766
|
+
} else {
|
|
1767
|
+
if ($gen instanceof Exhaustive) {
|
|
1768
|
+
var tmp3_safe_receiver = firstOrNull($gen.x2());
|
|
1769
|
+
var tmp_2;
|
|
1770
|
+
if (tmp3_safe_receiver == null) {
|
|
1771
|
+
tmp_2 = null;
|
|
1772
|
+
} else {
|
|
1773
|
+
// Inline function 'kotlin.let' call
|
|
1774
|
+
// Inline function 'kotlin.math.max' call
|
|
1775
|
+
var b_0 = $range.u1_1;
|
|
1776
|
+
// Inline function 'kotlin.collections.List' call
|
|
1777
|
+
// Inline function 'kotlin.collections.MutableList' call
|
|
1778
|
+
var size_0 = Math.max(2, b_0);
|
|
1779
|
+
var list_0 = ArrayList_init_$Create$(size_0);
|
|
1780
|
+
// Inline function 'kotlin.repeat' call
|
|
1781
|
+
var inductionVariable_0 = 0;
|
|
1782
|
+
if (inductionVariable_0 < size_0)
|
|
1783
|
+
do {
|
|
1784
|
+
var index_0 = inductionVariable_0;
|
|
1785
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1786
|
+
list_0.x(tmp3_safe_receiver);
|
|
1787
|
+
}
|
|
1788
|
+
while (inductionVariable_0 < size_0);
|
|
1789
|
+
tmp_2 = list_0;
|
|
1790
|
+
}
|
|
1791
|
+
tmp_1 = tmp_2;
|
|
1792
|
+
} else {
|
|
1793
|
+
tmp_1 = null;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
var repeatedList = tmp_1;
|
|
1798
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1799
|
+
var tmp0 = listOfNotNull([emptyList_0, singleList, repeatedList]);
|
|
1800
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1801
|
+
var destination = ArrayList_init_$Create$_0();
|
|
1802
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
1803
|
+
while (_iterator__ex2g4s.u()) {
|
|
1804
|
+
var element = _iterator__ex2g4s.v();
|
|
1805
|
+
var containsLower = $range.u1_1;
|
|
1806
|
+
var containsUpper = $range.v1_1;
|
|
1807
|
+
var containsArg = element.b1();
|
|
1808
|
+
if (containsLower <= containsArg ? containsArg <= containsUpper : false) {
|
|
1809
|
+
destination.x(element);
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
// Inline function 'kotlin.takeIf' call
|
|
1813
|
+
var tmp_3;
|
|
1814
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1815
|
+
if (!destination.r()) {
|
|
1816
|
+
tmp_3 = destination;
|
|
1817
|
+
} else {
|
|
1818
|
+
tmp_3 = null;
|
|
1819
|
+
}
|
|
1820
|
+
var tmp4_safe_receiver = tmp_3;
|
|
1821
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : distinct(tmp4_safe_receiver);
|
|
1822
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : random(tmp5_safe_receiver, rs.r5r_1);
|
|
1823
|
+
return tmp6_safe_receiver == null ? null : asSample(tmp6_safe_receiver);
|
|
1824
|
+
};
|
|
1825
|
+
}
|
|
1826
|
+
function list$slambda($range, $gen, resultContinuation) {
|
|
1827
|
+
this.l5z_1 = $range;
|
|
1828
|
+
this.m5z_1 = $gen;
|
|
1829
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1830
|
+
}
|
|
1831
|
+
protoOf(list$slambda).p5z = function ($this$arbitrary, rs, $completion) {
|
|
1832
|
+
var tmp = this.e5u($this$arbitrary, rs, $completion);
|
|
1833
|
+
tmp.k9_1 = Unit_instance;
|
|
1834
|
+
tmp.l9_1 = null;
|
|
1835
|
+
return tmp.q9();
|
|
1836
|
+
};
|
|
1837
|
+
protoOf(list$slambda).w9 = function (p1, p2, $completion) {
|
|
1838
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1839
|
+
return this.p5z(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1840
|
+
};
|
|
1841
|
+
protoOf(list$slambda).q9 = function () {
|
|
1842
|
+
var suspendResult = this.k9_1;
|
|
1843
|
+
$sm: do
|
|
1844
|
+
try {
|
|
1845
|
+
var tmp = this.i9_1;
|
|
1846
|
+
if (tmp === 0) {
|
|
1847
|
+
this.j9_1 = 1;
|
|
1848
|
+
var targetSize = nextInt(this.o5z_1.r5r_1, this.l5z_1);
|
|
1849
|
+
var this_0 = toList(take(this.m5z_1.q5r(this.o5z_1), targetSize));
|
|
1850
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1851
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1852
|
+
while (_iterator__ex2g4s.u()) {
|
|
1853
|
+
var item = _iterator__ex2g4s.v();
|
|
1854
|
+
destination.x(item.v5r_1);
|
|
1855
|
+
}
|
|
1856
|
+
return destination;
|
|
1857
|
+
} else if (tmp === 1) {
|
|
1858
|
+
throw this.l9_1;
|
|
1859
|
+
}
|
|
1860
|
+
} catch ($p) {
|
|
1861
|
+
var e = $p;
|
|
1862
|
+
throw e;
|
|
1863
|
+
}
|
|
1864
|
+
while (true);
|
|
1865
|
+
};
|
|
1866
|
+
protoOf(list$slambda).e5u = function ($this$arbitrary, rs, completion) {
|
|
1867
|
+
var i = new list$slambda(this.l5z_1, this.m5z_1, completion);
|
|
1868
|
+
i.n5z_1 = $this$arbitrary;
|
|
1869
|
+
i.o5z_1 = rs;
|
|
1870
|
+
return i;
|
|
1871
|
+
};
|
|
1872
|
+
function list$slambda_0($range, $gen, resultContinuation) {
|
|
1873
|
+
var i = new list$slambda($range, $gen, resultContinuation);
|
|
1874
|
+
var l = function ($this$arbitrary, rs, $completion) {
|
|
1875
|
+
return i.p5z($this$arbitrary, rs, $completion);
|
|
1876
|
+
};
|
|
1877
|
+
l.$arity = 2;
|
|
1878
|
+
return l;
|
|
1879
|
+
}
|
|
1880
|
+
function get__labelArb() {
|
|
1881
|
+
_init_properties_domain_kt__9c301w();
|
|
1882
|
+
return _labelArb;
|
|
1883
|
+
}
|
|
1884
|
+
var _labelArb;
|
|
1885
|
+
function get_validCharsArb() {
|
|
1886
|
+
_init_properties_domain_kt__9c301w();
|
|
1887
|
+
return validCharsArb;
|
|
1888
|
+
}
|
|
1889
|
+
var validCharsArb;
|
|
1890
|
+
function get_top120TLDs() {
|
|
1891
|
+
_init_properties_domain_kt__9c301w();
|
|
1892
|
+
return top120TLDs;
|
|
1893
|
+
}
|
|
1894
|
+
var top120TLDs;
|
|
1895
|
+
function domain(_this__u8e3s4, tlds, labelArb) {
|
|
1896
|
+
tlds = tlds === VOID ? get_top120TLDs() : tlds;
|
|
1897
|
+
labelArb = labelArb === VOID ? get__labelArb() : labelArb;
|
|
1898
|
+
_init_properties_domain_kt__9c301w();
|
|
1899
|
+
return arbitrary(domain$slambda_0(labelArb, tlds, null));
|
|
1900
|
+
}
|
|
1901
|
+
function _labelArb$slambda$lambda(it) {
|
|
1902
|
+
return !equals(it, new Char(_Char___init__impl__6a9atx(45)));
|
|
1903
|
+
}
|
|
1904
|
+
function _labelArb$slambda$lambda_0(it) {
|
|
1905
|
+
return !equals(it, new Char(_Char___init__impl__6a9atx(45)));
|
|
1906
|
+
}
|
|
1907
|
+
function _labelArb$slambda$lambda_1(it) {
|
|
1908
|
+
return !equals(it, new Char(_Char___init__impl__6a9atx(45)));
|
|
1909
|
+
}
|
|
1910
|
+
function _labelArb$slambda(resultContinuation) {
|
|
1911
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1912
|
+
}
|
|
1913
|
+
protoOf(_labelArb$slambda).a60 = function ($this$arbitrary, it, $completion) {
|
|
1914
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
1915
|
+
tmp.k9_1 = Unit_instance;
|
|
1916
|
+
tmp.l9_1 = null;
|
|
1917
|
+
return tmp.q9();
|
|
1918
|
+
};
|
|
1919
|
+
protoOf(_labelArb$slambda).w9 = function (p1, p2, $completion) {
|
|
1920
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1921
|
+
return this.a60(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1922
|
+
};
|
|
1923
|
+
protoOf(_labelArb$slambda).q9 = function () {
|
|
1924
|
+
var suspendResult = this.k9_1;
|
|
1925
|
+
$sm: do
|
|
1926
|
+
try {
|
|
1927
|
+
var tmp = this.i9_1;
|
|
1928
|
+
if (tmp === 0) {
|
|
1929
|
+
this.j9_1 = 1;
|
|
1930
|
+
var this_0 = StringBuilder_init_$Create$(63);
|
|
1931
|
+
var tmp_0 = get_validCharsArb();
|
|
1932
|
+
this_0.s(single(filter_1(tmp_0, _labelArb$slambda$lambda), this.z5z_1).i1_1);
|
|
1933
|
+
this_0.q(joinToString(take_2(get_validCharsArb(), this.z5z_1.r5r_1.t1(0, 61), this.z5z_1), ''));
|
|
1934
|
+
var tmp_1 = get_validCharsArb();
|
|
1935
|
+
this_0.s(single(filter_1(tmp_1, _labelArb$slambda$lambda_0), this.z5z_1).i1_1);
|
|
1936
|
+
if (this_0.a() >= 4) {
|
|
1937
|
+
if (this_0.b(2) === _Char___init__impl__6a9atx(45) && this_0.b(3) === _Char___init__impl__6a9atx(45)) {
|
|
1938
|
+
var tmp_2 = get_validCharsArb();
|
|
1939
|
+
this_0.ec(3, single(filter_1(tmp_2, _labelArb$slambda$lambda_1), this.z5z_1).i1_1);
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
return this_0.toString();
|
|
1943
|
+
} else if (tmp === 1) {
|
|
1944
|
+
throw this.l9_1;
|
|
1945
|
+
}
|
|
1946
|
+
} catch ($p) {
|
|
1947
|
+
var e = $p;
|
|
1948
|
+
throw e;
|
|
1949
|
+
}
|
|
1950
|
+
while (true);
|
|
1951
|
+
};
|
|
1952
|
+
protoOf(_labelArb$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
1953
|
+
var i = new _labelArb$slambda(completion);
|
|
1954
|
+
i.y5z_1 = $this$arbitrary;
|
|
1955
|
+
i.z5z_1 = it;
|
|
1956
|
+
return i;
|
|
1957
|
+
};
|
|
1958
|
+
function _labelArb$slambda_0(resultContinuation) {
|
|
1959
|
+
var i = new _labelArb$slambda(resultContinuation);
|
|
1960
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
1961
|
+
return i.a60($this$arbitrary, it, $completion);
|
|
1962
|
+
};
|
|
1963
|
+
l.$arity = 2;
|
|
1964
|
+
return l;
|
|
1965
|
+
}
|
|
1966
|
+
function validCharsArb$slambda(resultContinuation) {
|
|
1967
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1968
|
+
}
|
|
1969
|
+
protoOf(validCharsArb$slambda).l60 = function ($this$arbitrary, it, $completion) {
|
|
1970
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
1971
|
+
tmp.k9_1 = Unit_instance;
|
|
1972
|
+
tmp.l9_1 = null;
|
|
1973
|
+
var tmp_0 = tmp.q9();
|
|
1974
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
1975
|
+
return tmp_0;
|
|
1976
|
+
return tmp_0;
|
|
1977
|
+
};
|
|
1978
|
+
protoOf(validCharsArb$slambda).w9 = function (p1, p2, $completion) {
|
|
1979
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1980
|
+
return this.l60(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1981
|
+
};
|
|
1982
|
+
protoOf(validCharsArb$slambda).q9 = function () {
|
|
1983
|
+
var suspendResult = this.k9_1;
|
|
1984
|
+
$sm: do
|
|
1985
|
+
try {
|
|
1986
|
+
var tmp = this.i9_1;
|
|
1987
|
+
if (tmp === 0) {
|
|
1988
|
+
this.j9_1 = 1;
|
|
1989
|
+
return random(plus_1(plus(plus_0(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))), new Char(_Char___init__impl__6a9atx(45))), this.k60_1.r5r_1);
|
|
1990
|
+
} else if (tmp === 1) {
|
|
1991
|
+
throw this.l9_1;
|
|
1992
|
+
}
|
|
1993
|
+
} catch ($p) {
|
|
1994
|
+
var e = $p;
|
|
1995
|
+
throw e;
|
|
1996
|
+
}
|
|
1997
|
+
while (true);
|
|
1998
|
+
};
|
|
1999
|
+
protoOf(validCharsArb$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
2000
|
+
var i = new validCharsArb$slambda(completion);
|
|
2001
|
+
i.j60_1 = $this$arbitrary;
|
|
2002
|
+
i.k60_1 = it;
|
|
2003
|
+
return i;
|
|
2004
|
+
};
|
|
2005
|
+
function validCharsArb$slambda_0(resultContinuation) {
|
|
2006
|
+
var i = new validCharsArb$slambda(resultContinuation);
|
|
2007
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
2008
|
+
return i.l60($this$arbitrary, it, $completion);
|
|
2009
|
+
};
|
|
2010
|
+
l.$arity = 2;
|
|
2011
|
+
return l;
|
|
2012
|
+
}
|
|
2013
|
+
function domain$slambda($labelArb, $tlds, resultContinuation) {
|
|
2014
|
+
this.u60_1 = $labelArb;
|
|
2015
|
+
this.v60_1 = $tlds;
|
|
2016
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2017
|
+
}
|
|
2018
|
+
protoOf(domain$slambda).a60 = function ($this$arbitrary, rs, $completion) {
|
|
2019
|
+
var tmp = this.e5u($this$arbitrary, rs, $completion);
|
|
2020
|
+
tmp.k9_1 = Unit_instance;
|
|
2021
|
+
tmp.l9_1 = null;
|
|
2022
|
+
return tmp.q9();
|
|
2023
|
+
};
|
|
2024
|
+
protoOf(domain$slambda).w9 = function (p1, p2, $completion) {
|
|
2025
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
2026
|
+
return this.a60(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
2027
|
+
};
|
|
2028
|
+
protoOf(domain$slambda).q9 = function () {
|
|
2029
|
+
var suspendResult = this.k9_1;
|
|
2030
|
+
$sm: do
|
|
2031
|
+
try {
|
|
2032
|
+
var tmp = this.i9_1;
|
|
2033
|
+
if (tmp === 0) {
|
|
2034
|
+
this.j9_1 = 1;
|
|
2035
|
+
var amountOfLabels = this.x60_1.r5r_1.t1(1, 4);
|
|
2036
|
+
var labels = joinToString(take_2(this.u60_1, amountOfLabels, this.x60_1), '.', VOID, '.');
|
|
2037
|
+
return labels + random(this.v60_1, this.x60_1.r5r_1);
|
|
2038
|
+
} else if (tmp === 1) {
|
|
2039
|
+
throw this.l9_1;
|
|
2040
|
+
}
|
|
2041
|
+
} catch ($p) {
|
|
2042
|
+
var e = $p;
|
|
2043
|
+
throw e;
|
|
2044
|
+
}
|
|
2045
|
+
while (true);
|
|
2046
|
+
};
|
|
2047
|
+
protoOf(domain$slambda).e5u = function ($this$arbitrary, rs, completion) {
|
|
2048
|
+
var i = new domain$slambda(this.u60_1, this.v60_1, completion);
|
|
2049
|
+
i.w60_1 = $this$arbitrary;
|
|
2050
|
+
i.x60_1 = rs;
|
|
2051
|
+
return i;
|
|
2052
|
+
};
|
|
2053
|
+
function domain$slambda_0($labelArb, $tlds, resultContinuation) {
|
|
2054
|
+
var i = new domain$slambda($labelArb, $tlds, resultContinuation);
|
|
2055
|
+
var l = function ($this$arbitrary, rs, $completion) {
|
|
2056
|
+
return i.a60($this$arbitrary, rs, $completion);
|
|
2057
|
+
};
|
|
2058
|
+
l.$arity = 2;
|
|
2059
|
+
return l;
|
|
2060
|
+
}
|
|
2061
|
+
var properties_initialized_domain_kt_dssuhm;
|
|
2062
|
+
function _init_properties_domain_kt__9c301w() {
|
|
2063
|
+
if (!properties_initialized_domain_kt_dssuhm) {
|
|
2064
|
+
properties_initialized_domain_kt_dssuhm = true;
|
|
2065
|
+
_labelArb = arbitrary(_labelArb$slambda_0(null));
|
|
2066
|
+
validCharsArb = arbitrary(validCharsArb$slambda_0(null));
|
|
2067
|
+
top120TLDs = listOf(['com', 'net', 'org', 'jp', 'de', 'uk', 'fr', 'br', 'it', 'ru', 'es', 'me', 'gov', 'pl', 'ca', 'au', 'cn', 'co', 'in', 'nl', 'edu', 'info', 'eu', 'ch', 'id', 'at', 'kr', 'cz', 'mx', 'be', 'tv', 'se', 'tr', 'tw', 'al', 'ua', 'ir', 'vn', 'cl', 'sk', 'ly', 'cc', 'to', 'no', 'fi', 'us', 'pt', 'dk', 'ar', 'hu', 'tk', 'gr', 'il', 'news', 'ro', 'my', 'biz', 'ie', 'za', 'nz', 'sg', 'ee', 'th', 'io', 'xyz', 'pe', 'bg', 'hk', 'rs', 'lt', 'link', 'ph', 'club', 'si', 'site', 'mobi', 'by', 'cat', 'wiki', 'la', 'ga', 'xxx', 'cf', 'hr', 'ng', 'jobs', 'online', 'kz', 'ug', 'gq', 'ae', 'is', 'lv', 'pro', 'fm', 'tips', 'ms', 'sa', 'app', 'lat', 'pk', 'ws', 'top', 'xn--p1ai', 'pw', 'ai', 'kw', 'ml', 'su', 'lu', 'nu', 'ec', 'uy', 'az', 'ma', 'st', 'asia', 'im', 'am', 'email']);
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
function get_numericEdgeCases() {
|
|
2071
|
+
_init_properties_doubles_kt__m69t1s();
|
|
2072
|
+
return numericEdgeCases;
|
|
2073
|
+
}
|
|
2074
|
+
var numericEdgeCases;
|
|
2075
|
+
function double(_this__u8e3s4, min, max, includeNaNs) {
|
|
2076
|
+
min = min === VOID ? -1.7976931348623157E308 : min;
|
|
2077
|
+
max = max === VOID ? 1.7976931348623157E308 : max;
|
|
2078
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
2079
|
+
_init_properties_doubles_kt__m69t1s();
|
|
2080
|
+
return double_0(_this__u8e3s4, rangeTo(min, max), includeNaNs);
|
|
2081
|
+
}
|
|
2082
|
+
function double_0(_this__u8e3s4, range, includeNaNs) {
|
|
2083
|
+
range = range === VOID ? rangeTo(-1.7976931348623157E308, 1.7976931348623157E308) : range;
|
|
2084
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
2085
|
+
_init_properties_doubles_kt__m69t1s();
|
|
2086
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2087
|
+
var tmp0 = get_numericEdgeCases();
|
|
2088
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2089
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2090
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2091
|
+
while (_iterator__ex2g4s.u()) {
|
|
2092
|
+
var element = _iterator__ex2g4s.v();
|
|
2093
|
+
if (range.x1(element)) {
|
|
2094
|
+
destination.x(element);
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2097
|
+
var tmp = plus(distinct(plus(destination, listOf([range.cd(), range.dd()]))), getNonFiniteEdgeCases(range, includeNaNs));
|
|
2098
|
+
var tmp_0 = DoubleShrinker_getInstance();
|
|
2099
|
+
return arbitrary_1(tmp, tmp_0, double$slambda_0(range, null));
|
|
2100
|
+
}
|
|
2101
|
+
function getNonFiniteEdgeCases(range, includeNaNs) {
|
|
2102
|
+
_init_properties_doubles_kt__m69t1s();
|
|
2103
|
+
var tmp;
|
|
2104
|
+
if (includeNaNs) {
|
|
2105
|
+
// Inline function 'kotlin.collections.buildList' call
|
|
2106
|
+
// Inline function 'kotlin.collections.buildListInternal' call
|
|
2107
|
+
// Inline function 'kotlin.apply' call
|
|
2108
|
+
var this_0 = ArrayList_init_$Create$_0();
|
|
2109
|
+
this_0.x(NaN);
|
|
2110
|
+
if (range.cd() === -Infinity) {
|
|
2111
|
+
this_0.x(-Infinity);
|
|
2112
|
+
}
|
|
2113
|
+
if (range.dd() === Infinity) {
|
|
2114
|
+
this_0.x(Infinity);
|
|
2115
|
+
}
|
|
2116
|
+
tmp = this_0.u5();
|
|
2117
|
+
} else {
|
|
2118
|
+
tmp = emptyList();
|
|
2119
|
+
}
|
|
2120
|
+
return tmp;
|
|
2121
|
+
}
|
|
2122
|
+
function DoubleShrinker() {
|
|
2123
|
+
DoubleShrinker_instance = this;
|
|
2124
|
+
this.y60_1 = Regex_init_$Create$('([+-]|)([0-9]*)(\\.[0-9]*|)(e[+-]?[0-9]+|)', RegexOption_IGNORE_CASE_getInstance());
|
|
2125
|
+
}
|
|
2126
|
+
protoOf(DoubleShrinker).z60 = function (value) {
|
|
2127
|
+
var tmp;
|
|
2128
|
+
var tmp_0;
|
|
2129
|
+
if (value === 0.0 || !isFinite(value)) {
|
|
2130
|
+
tmp_0 = true;
|
|
2131
|
+
} else {
|
|
2132
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
2133
|
+
tmp_0 = Math.abs(value) < 10 * 4.9E-324;
|
|
2134
|
+
}
|
|
2135
|
+
if (tmp_0) {
|
|
2136
|
+
tmp = emptyList();
|
|
2137
|
+
} else {
|
|
2138
|
+
var tmp0_safe_receiver = this.a61(value.toString());
|
|
2139
|
+
tmp = listOfNotNull_0(tmp0_safe_receiver == null ? null : toDouble(tmp0_safe_receiver));
|
|
2140
|
+
}
|
|
2141
|
+
return tmp;
|
|
2142
|
+
};
|
|
2143
|
+
protoOf(DoubleShrinker).a5t = function (value) {
|
|
2144
|
+
return this.z60((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2145
|
+
};
|
|
2146
|
+
protoOf(DoubleShrinker).a61 = function (value) {
|
|
2147
|
+
var tmp0_elvis_lhs = this.y60_1.yc(value);
|
|
2148
|
+
var tmp;
|
|
2149
|
+
if (tmp0_elvis_lhs == null) {
|
|
2150
|
+
return null;
|
|
2151
|
+
} else {
|
|
2152
|
+
tmp = tmp0_elvis_lhs;
|
|
2153
|
+
}
|
|
2154
|
+
var matches = tmp;
|
|
2155
|
+
var parts = drop(matches.vd(), 1);
|
|
2156
|
+
// Inline function 'kotlin.collections.component1' call
|
|
2157
|
+
var signPart = parts.g1(0);
|
|
2158
|
+
// Inline function 'kotlin.collections.component2' call
|
|
2159
|
+
var intPart = parts.g1(1);
|
|
2160
|
+
// Inline function 'kotlin.collections.component3' call
|
|
2161
|
+
var fracPart_ = parts.g1(2);
|
|
2162
|
+
// Inline function 'kotlin.collections.component4' call
|
|
2163
|
+
var expPart = parts.g1(3);
|
|
2164
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
2165
|
+
var tmp0 = isCharSequence(fracPart_) ? fracPart_ : THROW_CCE();
|
|
2166
|
+
var tmp$ret$5;
|
|
2167
|
+
$l$block: {
|
|
2168
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
2169
|
+
var inductionVariable = charSequenceLength(tmp0) - 1 | 0;
|
|
2170
|
+
if (0 <= inductionVariable)
|
|
2171
|
+
do {
|
|
2172
|
+
var index = inductionVariable;
|
|
2173
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
2174
|
+
if (!(charSequenceGet(tmp0, index) === _Char___init__impl__6a9atx(48))) {
|
|
2175
|
+
tmp$ret$5 = charSequenceSubSequence(tmp0, 0, index + 1 | 0);
|
|
2176
|
+
break $l$block;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
while (0 <= inductionVariable);
|
|
2180
|
+
tmp$ret$5 = '';
|
|
2181
|
+
}
|
|
2182
|
+
var fracPart = toString(tmp$ret$5);
|
|
2183
|
+
var tmp_0;
|
|
2184
|
+
var tmp_1;
|
|
2185
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2186
|
+
if (charSequenceLength(fracPart) > 0) {
|
|
2187
|
+
tmp_1 = isDigit(last(fracPart));
|
|
2188
|
+
} else {
|
|
2189
|
+
tmp_1 = false;
|
|
2190
|
+
}
|
|
2191
|
+
if (tmp_1) {
|
|
2192
|
+
tmp_0 = intPart + dropLast_0(fracPart, 1);
|
|
2193
|
+
} else {
|
|
2194
|
+
var length = intPart.length;
|
|
2195
|
+
var tmp$ret$9;
|
|
2196
|
+
$l$block_0: {
|
|
2197
|
+
// Inline function 'kotlin.text.indexOfLast' call
|
|
2198
|
+
var inductionVariable_0 = charSequenceLength(intPart) - 1 | 0;
|
|
2199
|
+
if (0 <= inductionVariable_0)
|
|
2200
|
+
do {
|
|
2201
|
+
var index_0 = inductionVariable_0;
|
|
2202
|
+
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
2203
|
+
if (!(charSequenceGet(intPart, index_0) === _Char___init__impl__6a9atx(48))) {
|
|
2204
|
+
tmp$ret$9 = index_0;
|
|
2205
|
+
break $l$block_0;
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
while (0 <= inductionVariable_0);
|
|
2209
|
+
tmp$ret$9 = -1;
|
|
2210
|
+
}
|
|
2211
|
+
// Inline function 'kotlin.let' call
|
|
2212
|
+
var it = tmp$ret$9;
|
|
2213
|
+
var index_1 = it === -1 ? length : it;
|
|
2214
|
+
if (index_1 === 0) {
|
|
2215
|
+
return null;
|
|
2216
|
+
}
|
|
2217
|
+
var head = take_1(intPart, index_1);
|
|
2218
|
+
var tail = takeLast(intPart, (length - index_1 | 0) - 1 | 0);
|
|
2219
|
+
tmp_0 = head + '0' + tail;
|
|
2220
|
+
}
|
|
2221
|
+
var numberPart = tmp_0;
|
|
2222
|
+
return signPart + numberPart + expPart;
|
|
2223
|
+
};
|
|
2224
|
+
var DoubleShrinker_instance;
|
|
2225
|
+
function DoubleShrinker_getInstance() {
|
|
2226
|
+
if (DoubleShrinker_instance == null)
|
|
2227
|
+
new DoubleShrinker();
|
|
2228
|
+
return DoubleShrinker_instance;
|
|
2229
|
+
}
|
|
2230
|
+
function double$slambda($range, resultContinuation) {
|
|
2231
|
+
this.j61_1 = $range;
|
|
2232
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2233
|
+
}
|
|
2234
|
+
protoOf(double$slambda).m61 = function ($this$arbitrary, it, $completion) {
|
|
2235
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
2236
|
+
tmp.k9_1 = Unit_instance;
|
|
2237
|
+
tmp.l9_1 = null;
|
|
2238
|
+
return tmp.q9();
|
|
2239
|
+
};
|
|
2240
|
+
protoOf(double$slambda).w9 = function (p1, p2, $completion) {
|
|
2241
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
2242
|
+
return this.m61(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
2243
|
+
};
|
|
2244
|
+
protoOf(double$slambda).q9 = function () {
|
|
2245
|
+
var suspendResult = this.k9_1;
|
|
2246
|
+
$sm: do
|
|
2247
|
+
try {
|
|
2248
|
+
var tmp = this.i9_1;
|
|
2249
|
+
if (tmp === 0) {
|
|
2250
|
+
this.j9_1 = 1;
|
|
2251
|
+
return this.l61_1.r5r_1.ti(this.j61_1.cd(), this.j61_1.dd());
|
|
2252
|
+
} else if (tmp === 1) {
|
|
2253
|
+
throw this.l9_1;
|
|
2254
|
+
}
|
|
2255
|
+
} catch ($p) {
|
|
2256
|
+
var e = $p;
|
|
2257
|
+
throw e;
|
|
2258
|
+
}
|
|
2259
|
+
while (true);
|
|
2260
|
+
};
|
|
2261
|
+
protoOf(double$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
2262
|
+
var i = new double$slambda(this.j61_1, completion);
|
|
2263
|
+
i.k61_1 = $this$arbitrary;
|
|
2264
|
+
i.l61_1 = it;
|
|
2265
|
+
return i;
|
|
2266
|
+
};
|
|
2267
|
+
function double$slambda_0($range, resultContinuation) {
|
|
2268
|
+
var i = new double$slambda($range, resultContinuation);
|
|
2269
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
2270
|
+
return i.m61($this$arbitrary, it, $completion);
|
|
2271
|
+
};
|
|
2272
|
+
l.$arity = 2;
|
|
2273
|
+
return l;
|
|
2274
|
+
}
|
|
2275
|
+
var properties_initialized_doubles_kt_z3lcoe;
|
|
2276
|
+
function _init_properties_doubles_kt__m69t1s() {
|
|
2277
|
+
if (!properties_initialized_doubles_kt_z3lcoe) {
|
|
2278
|
+
properties_initialized_doubles_kt_z3lcoe = true;
|
|
2279
|
+
numericEdgeCases = listOf([-1.0, -4.9E-324, -0.0, 0.0, 4.9E-324, 1.0]);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
function email(_this__u8e3s4, localPartGen, domainGen) {
|
|
2283
|
+
localPartGen = localPartGen === VOID ? emailLocalPart(_this__u8e3s4) : localPartGen;
|
|
2284
|
+
domainGen = domainGen === VOID ? domain(_this__u8e3s4) : domainGen;
|
|
2285
|
+
return bind(_this__u8e3s4, localPartGen, domainGen, email$lambda);
|
|
2286
|
+
}
|
|
2287
|
+
function emailLocalPart(_this__u8e3s4) {
|
|
2288
|
+
return arbitrary(emailLocalPart$slambda_0(null));
|
|
2289
|
+
}
|
|
2290
|
+
function email$lambda(localPart, domain) {
|
|
2291
|
+
return localPart + '@' + domain;
|
|
2292
|
+
}
|
|
2293
|
+
function emailLocalPart$slambda(resultContinuation) {
|
|
2294
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2295
|
+
}
|
|
2296
|
+
protoOf(emailLocalPart$slambda).a60 = function ($this$arbitrary, rs, $completion) {
|
|
2297
|
+
var tmp = this.e5u($this$arbitrary, rs, $completion);
|
|
2298
|
+
tmp.k9_1 = Unit_instance;
|
|
2299
|
+
tmp.l9_1 = null;
|
|
2300
|
+
return tmp.q9();
|
|
2301
|
+
};
|
|
2302
|
+
protoOf(emailLocalPart$slambda).w9 = function (p1, p2, $completion) {
|
|
2303
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
2304
|
+
return this.a60(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
2305
|
+
};
|
|
2306
|
+
protoOf(emailLocalPart$slambda).q9 = function () {
|
|
2307
|
+
var suspendResult = this.k9_1;
|
|
2308
|
+
$sm: do
|
|
2309
|
+
try {
|
|
2310
|
+
var tmp = this.i9_1;
|
|
2311
|
+
if (tmp === 0) {
|
|
2312
|
+
this.j9_1 = 1;
|
|
2313
|
+
var possibleChars = plus(plus(plus_0(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))), toList_0("!#$%&'*+-/=?^_`{|}~."));
|
|
2314
|
+
var firstAndLastChars = minus(possibleChars, new Char(_Char___init__impl__6a9atx(46)));
|
|
2315
|
+
var size = nextInt(this.w61_1.r5r_1, numberRangeToNumber(1, 64));
|
|
2316
|
+
var tmp_0;
|
|
2317
|
+
if (size <= 2) {
|
|
2318
|
+
var list = ArrayList_init_$Create$(size);
|
|
2319
|
+
var inductionVariable = 0;
|
|
2320
|
+
if (inductionVariable < size)
|
|
2321
|
+
do {
|
|
2322
|
+
var index = inductionVariable;
|
|
2323
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2324
|
+
list.x(random(firstAndLastChars, this.w61_1.r5r_1));
|
|
2325
|
+
}
|
|
2326
|
+
while (inductionVariable < size);
|
|
2327
|
+
tmp_0 = joinToString_0(list, '');
|
|
2328
|
+
} else {
|
|
2329
|
+
var tmp0 = random(firstAndLastChars, this.w61_1.r5r_1).i1_1;
|
|
2330
|
+
var size_0 = size - 2 | 0;
|
|
2331
|
+
var list_0 = ArrayList_init_$Create$(size_0);
|
|
2332
|
+
var inductionVariable_0 = 0;
|
|
2333
|
+
if (inductionVariable_0 < size_0)
|
|
2334
|
+
do {
|
|
2335
|
+
var index_0 = inductionVariable_0;
|
|
2336
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2337
|
+
list_0.x(random(possibleChars, this.w61_1.r5r_1));
|
|
2338
|
+
}
|
|
2339
|
+
while (inductionVariable_0 < size_0);
|
|
2340
|
+
var other = joinToString_0(list_0, '');
|
|
2341
|
+
tmp_0 = toString_1(tmp0) + other + toString_1(random(firstAndLastChars, this.w61_1.r5r_1).i1_1);
|
|
2342
|
+
}
|
|
2343
|
+
var str = tmp_0;
|
|
2344
|
+
return Regex_init_$Create$_0('\\.+').zc(str, '.');
|
|
2345
|
+
} else if (tmp === 1) {
|
|
2346
|
+
throw this.l9_1;
|
|
2347
|
+
}
|
|
2348
|
+
} catch ($p) {
|
|
2349
|
+
var e = $p;
|
|
2350
|
+
throw e;
|
|
2351
|
+
}
|
|
2352
|
+
while (true);
|
|
2353
|
+
};
|
|
2354
|
+
protoOf(emailLocalPart$slambda).e5u = function ($this$arbitrary, rs, completion) {
|
|
2355
|
+
var i = new emailLocalPart$slambda(completion);
|
|
2356
|
+
i.v61_1 = $this$arbitrary;
|
|
2357
|
+
i.w61_1 = rs;
|
|
2358
|
+
return i;
|
|
2359
|
+
};
|
|
2360
|
+
function emailLocalPart$slambda_0(resultContinuation) {
|
|
2361
|
+
var i = new emailLocalPart$slambda(resultContinuation);
|
|
2362
|
+
var l = function ($this$arbitrary, rs, $completion) {
|
|
2363
|
+
return i.a60($this$arbitrary, rs, $completion);
|
|
2364
|
+
};
|
|
2365
|
+
l.$arity = 2;
|
|
2366
|
+
return l;
|
|
2367
|
+
}
|
|
2368
|
+
function filter_1(_this__u8e3s4, predicate) {
|
|
2369
|
+
return trampoline(_this__u8e3s4, filter$lambda_1(_this__u8e3s4, predicate));
|
|
2370
|
+
}
|
|
2371
|
+
function filter$lambda$o$edgecase$lambda($this_filter, $rs) {
|
|
2372
|
+
return function () {
|
|
2373
|
+
return $this_filter.m5r($rs);
|
|
2374
|
+
};
|
|
2375
|
+
}
|
|
2376
|
+
function filter$lambda$o$edgecase$lambda_0($predicate) {
|
|
2377
|
+
return function (it) {
|
|
2378
|
+
return $predicate(it.v5r_1);
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2381
|
+
function filter$lambda$o$sample$lambda($predicate) {
|
|
2382
|
+
return function (it) {
|
|
2383
|
+
return $predicate(it.v5r_1);
|
|
2384
|
+
};
|
|
2385
|
+
}
|
|
2386
|
+
function filter$lambda$o$sample$lambda_0($sample) {
|
|
2387
|
+
return function () {
|
|
2388
|
+
return $sample.v5r_1;
|
|
2389
|
+
};
|
|
2390
|
+
}
|
|
2391
|
+
function filter$2$1($sampleA, $this_filter, $predicate) {
|
|
2392
|
+
this.y61_1 = $sampleA;
|
|
2393
|
+
this.z61_1 = $this_filter;
|
|
2394
|
+
this.a62_1 = $predicate;
|
|
2395
|
+
Arb.call(this);
|
|
2396
|
+
}
|
|
2397
|
+
protoOf(filter$2$1).m5r = function (rs) {
|
|
2398
|
+
var tmp = sequenceOf(this.y61_1);
|
|
2399
|
+
var tmp_0 = take(plus_2(tmp, generateSequence(filter$lambda$o$edgecase$lambda(this.z61_1, rs))), PropertyTesting_getInstance().x5r_1);
|
|
2400
|
+
return firstOrNull_0(filter(tmp_0, filter$lambda$o$edgecase$lambda_0(this.a62_1)));
|
|
2401
|
+
};
|
|
2402
|
+
protoOf(filter$2$1).l5r = function (rs) {
|
|
2403
|
+
var tmp = plus_2(sequenceOf(this.y61_1), this.z61_1.n5r(rs));
|
|
2404
|
+
var sample = first_0(filter(tmp, filter$lambda$o$sample$lambda(this.a62_1)));
|
|
2405
|
+
var tmp0_elvis_lhs = filter_0(sample.w5r_1, this.a62_1);
|
|
2406
|
+
var tmp_0;
|
|
2407
|
+
if (tmp0_elvis_lhs == null) {
|
|
2408
|
+
tmp_0 = new RTree(filter$lambda$o$sample$lambda_0(sample));
|
|
2409
|
+
} else {
|
|
2410
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
2411
|
+
}
|
|
2412
|
+
return new Sample(sample.v5r_1, tmp_0);
|
|
2413
|
+
};
|
|
2414
|
+
function filter$lambda_1($this_filter, $predicate) {
|
|
2415
|
+
return function (sampleA) {
|
|
2416
|
+
return new filter$2$1(sampleA, $this_filter, $predicate);
|
|
2417
|
+
};
|
|
2418
|
+
}
|
|
2419
|
+
function get_numericEdgeCases_0() {
|
|
2420
|
+
_init_properties_floats_kt__ddosbb();
|
|
2421
|
+
return numericEdgeCases_0;
|
|
2422
|
+
}
|
|
2423
|
+
var numericEdgeCases_0;
|
|
2424
|
+
function float(_this__u8e3s4, min, max, includeNaNs) {
|
|
2425
|
+
min = min === VOID ? -3.4028235E38 : min;
|
|
2426
|
+
max = max === VOID ? 3.4028235E38 : max;
|
|
2427
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
2428
|
+
_init_properties_floats_kt__ddosbb();
|
|
2429
|
+
return float_0(_this__u8e3s4, rangeTo_0(min, max), includeNaNs);
|
|
2430
|
+
}
|
|
2431
|
+
function float_0(_this__u8e3s4, range, includeNaNs) {
|
|
2432
|
+
range = range === VOID ? rangeTo_0(-3.4028235E38, 3.4028235E38) : range;
|
|
2433
|
+
includeNaNs = includeNaNs === VOID ? true : includeNaNs;
|
|
2434
|
+
_init_properties_floats_kt__ddosbb();
|
|
2435
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2436
|
+
var tmp0 = get_numericEdgeCases_0();
|
|
2437
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2438
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2439
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2440
|
+
while (_iterator__ex2g4s.u()) {
|
|
2441
|
+
var element = _iterator__ex2g4s.v();
|
|
2442
|
+
if (range.x1(element)) {
|
|
2443
|
+
destination.x(element);
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
var tmp = plus(distinct(plus(destination, listOf([range.cd(), range.dd()]))), getNonFiniteEdgeCases_0(range, includeNaNs));
|
|
2447
|
+
var tmp_0 = FloatShrinker_instance;
|
|
2448
|
+
return arbitrary_1(tmp, tmp_0, float$slambda_0(range, null));
|
|
2449
|
+
}
|
|
2450
|
+
function getNonFiniteEdgeCases_0(range, includeNaNs) {
|
|
2451
|
+
_init_properties_floats_kt__ddosbb();
|
|
2452
|
+
var tmp;
|
|
2453
|
+
if (includeNaNs) {
|
|
2454
|
+
// Inline function 'kotlin.collections.buildList' call
|
|
2455
|
+
// Inline function 'kotlin.collections.buildListInternal' call
|
|
2456
|
+
// Inline function 'kotlin.apply' call
|
|
2457
|
+
var this_0 = ArrayList_init_$Create$_0();
|
|
2458
|
+
this_0.x(NaN);
|
|
2459
|
+
if (range.cd() === -Infinity) {
|
|
2460
|
+
this_0.x(-Infinity);
|
|
2461
|
+
}
|
|
2462
|
+
if (range.dd() === Infinity) {
|
|
2463
|
+
this_0.x(Infinity);
|
|
2464
|
+
}
|
|
2465
|
+
tmp = this_0.u5();
|
|
2466
|
+
} else {
|
|
2467
|
+
tmp = emptyList();
|
|
2468
|
+
}
|
|
2469
|
+
return tmp;
|
|
2470
|
+
}
|
|
2471
|
+
function FloatShrinker() {
|
|
2472
|
+
}
|
|
2473
|
+
protoOf(FloatShrinker).b62 = function (value) {
|
|
2474
|
+
var tmp;
|
|
2475
|
+
var tmp_0;
|
|
2476
|
+
if (value === 0.0 || !isFinite_0(value)) {
|
|
2477
|
+
tmp_0 = true;
|
|
2478
|
+
} else {
|
|
2479
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
2480
|
+
tmp_0 = Math.abs(value) < 10 * 1.4E-45;
|
|
2481
|
+
}
|
|
2482
|
+
if (tmp_0) {
|
|
2483
|
+
tmp = emptyList();
|
|
2484
|
+
} else {
|
|
2485
|
+
var tmp0_safe_receiver = DoubleShrinker_getInstance().a61(value.toString());
|
|
2486
|
+
var tmp_1;
|
|
2487
|
+
if (tmp0_safe_receiver == null) {
|
|
2488
|
+
tmp_1 = null;
|
|
2489
|
+
} else {
|
|
2490
|
+
// Inline function 'kotlin.text.toFloat' call
|
|
2491
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2492
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2493
|
+
tmp_1 = toDouble(tmp0_safe_receiver);
|
|
2494
|
+
}
|
|
2495
|
+
tmp = listOfNotNull_0(tmp_1);
|
|
2496
|
+
}
|
|
2497
|
+
return tmp;
|
|
2498
|
+
};
|
|
2499
|
+
protoOf(FloatShrinker).a5t = function (value) {
|
|
2500
|
+
return this.b62((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2501
|
+
};
|
|
2502
|
+
var FloatShrinker_instance;
|
|
2503
|
+
function FloatShrinker_getInstance() {
|
|
2504
|
+
return FloatShrinker_instance;
|
|
2505
|
+
}
|
|
2506
|
+
function float$slambda($range, resultContinuation) {
|
|
2507
|
+
this.k62_1 = $range;
|
|
2508
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2509
|
+
}
|
|
2510
|
+
protoOf(float$slambda).n62 = function ($this$arbitrary, it, $completion) {
|
|
2511
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
2512
|
+
tmp.k9_1 = Unit_instance;
|
|
2513
|
+
tmp.l9_1 = null;
|
|
2514
|
+
return tmp.q9();
|
|
2515
|
+
};
|
|
2516
|
+
protoOf(float$slambda).w9 = function (p1, p2, $completion) {
|
|
2517
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
2518
|
+
return this.n62(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
2519
|
+
};
|
|
2520
|
+
protoOf(float$slambda).q9 = function () {
|
|
2521
|
+
var suspendResult = this.k9_1;
|
|
2522
|
+
$sm: do
|
|
2523
|
+
try {
|
|
2524
|
+
var tmp = this.i9_1;
|
|
2525
|
+
if (tmp === 0) {
|
|
2526
|
+
this.j9_1 = 1;
|
|
2527
|
+
return this.m62_1.r5r_1.ti(this.k62_1.cd(), this.k62_1.dd());
|
|
2528
|
+
} else if (tmp === 1) {
|
|
2529
|
+
throw this.l9_1;
|
|
2530
|
+
}
|
|
2531
|
+
} catch ($p) {
|
|
2532
|
+
var e = $p;
|
|
2533
|
+
throw e;
|
|
2534
|
+
}
|
|
2535
|
+
while (true);
|
|
2536
|
+
};
|
|
2537
|
+
protoOf(float$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
2538
|
+
var i = new float$slambda(this.k62_1, completion);
|
|
2539
|
+
i.l62_1 = $this$arbitrary;
|
|
2540
|
+
i.m62_1 = it;
|
|
2541
|
+
return i;
|
|
2542
|
+
};
|
|
2543
|
+
function float$slambda_0($range, resultContinuation) {
|
|
2544
|
+
var i = new float$slambda($range, resultContinuation);
|
|
2545
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
2546
|
+
return i.n62($this$arbitrary, it, $completion);
|
|
2547
|
+
};
|
|
2548
|
+
l.$arity = 2;
|
|
2549
|
+
return l;
|
|
2550
|
+
}
|
|
2551
|
+
var properties_initialized_floats_kt_vw92e1;
|
|
2552
|
+
function _init_properties_floats_kt__ddosbb() {
|
|
2553
|
+
if (!properties_initialized_floats_kt_vw92e1) {
|
|
2554
|
+
properties_initialized_floats_kt_vw92e1 = true;
|
|
2555
|
+
numericEdgeCases_0 = listOf([-1.0, -1.4E-45, -0.0, 0.0, 1.4E-45, 1.0]);
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
function int(_this__u8e3s4, range) {
|
|
2559
|
+
range = range === VOID ? numberRangeToNumber(-2147483648, 2147483647) : range;
|
|
2560
|
+
// Inline function 'kotlin.intArrayOf' call
|
|
2561
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2562
|
+
var tmp0 = new Int32Array([range.u1_1, -1, 0, 1, range.v1_1]);
|
|
2563
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2564
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2565
|
+
var inductionVariable = 0;
|
|
2566
|
+
var last = tmp0.length;
|
|
2567
|
+
while (inductionVariable < last) {
|
|
2568
|
+
var element = tmp0[inductionVariable];
|
|
2569
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2570
|
+
var containsLower = range.u1_1;
|
|
2571
|
+
if (element <= range.v1_1 ? containsLower <= element : false) {
|
|
2572
|
+
destination.x(element);
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
var edgeCases = distinct(destination);
|
|
2576
|
+
var tmp = Companion_instance_1;
|
|
2577
|
+
return tmp.x5u(int$lambda(range)).h5v(edgeCases).g5v(new IntShrinker(range)).f5v(IntClassifier_init_$Create$(range)).h1y();
|
|
2578
|
+
}
|
|
2579
|
+
function IntShrinker(range) {
|
|
2580
|
+
this.o62_1 = range;
|
|
2581
|
+
}
|
|
2582
|
+
protoOf(IntShrinker).p62 = function (value) {
|
|
2583
|
+
var tmp;
|
|
2584
|
+
switch (value) {
|
|
2585
|
+
case 0:
|
|
2586
|
+
tmp = emptyList();
|
|
2587
|
+
break;
|
|
2588
|
+
case 1:
|
|
2589
|
+
case -1:
|
|
2590
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2591
|
+
|
|
2592
|
+
var tmp0 = listOf_0(0);
|
|
2593
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2594
|
+
|
|
2595
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2596
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2597
|
+
while (_iterator__ex2g4s.u()) {
|
|
2598
|
+
var element = _iterator__ex2g4s.v();
|
|
2599
|
+
var progression = this.o62_1;
|
|
2600
|
+
var containsLower = progression.u1_1;
|
|
2601
|
+
if (element <= progression.v1_1 ? containsLower <= element : false) {
|
|
2602
|
+
destination.x(element);
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
tmp = destination;
|
|
2607
|
+
break;
|
|
2608
|
+
default:
|
|
2609
|
+
// Inline function 'kotlin.intArrayOf' call
|
|
2610
|
+
|
|
2611
|
+
var a = new Int32Array([0, 1, -1, abs(value), value / 3 | 0, value / 2 | 0, imul(value, 2) / 3 | 0]);
|
|
2612
|
+
// Inline function 'kotlin.collections.map' call
|
|
2613
|
+
|
|
2614
|
+
var this_0 = numberRangeToNumber(1, 5);
|
|
2615
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2616
|
+
|
|
2617
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2618
|
+
var inductionVariable = this_0.u1_1;
|
|
2619
|
+
var last = this_0.v1_1;
|
|
2620
|
+
if (inductionVariable <= last)
|
|
2621
|
+
do {
|
|
2622
|
+
var item = inductionVariable;
|
|
2623
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2624
|
+
var tmp$ret$4 = value - item | 0;
|
|
2625
|
+
destination_0.x(tmp$ret$4);
|
|
2626
|
+
}
|
|
2627
|
+
while (!(item === last));
|
|
2628
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2629
|
+
|
|
2630
|
+
var tmp0_0 = reversed(destination_0);
|
|
2631
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2632
|
+
|
|
2633
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
2634
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
2635
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2636
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2637
|
+
if (element_0 > 0) {
|
|
2638
|
+
destination_1.x(element_0);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
var b = destination_1;
|
|
2643
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
2644
|
+
|
|
2645
|
+
var tmp0_1 = distinct_0(plus_3(a, b));
|
|
2646
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
2647
|
+
|
|
2648
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2649
|
+
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
2650
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2651
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2652
|
+
if (!(element_1 === value)) {
|
|
2653
|
+
destination_2.x(element_1);
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2658
|
+
|
|
2659
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2660
|
+
|
|
2661
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
2662
|
+
var _iterator__ex2g4s_2 = destination_2.t();
|
|
2663
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
2664
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
2665
|
+
var progression_0 = this.o62_1;
|
|
2666
|
+
var containsLower_0 = progression_0.u1_1;
|
|
2667
|
+
if (element_2 <= progression_0.v1_1 ? containsLower_0 <= element_2 : false) {
|
|
2668
|
+
destination_3.x(element_2);
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
tmp = destination_3;
|
|
2673
|
+
break;
|
|
2674
|
+
}
|
|
2675
|
+
return tmp;
|
|
2676
|
+
};
|
|
2677
|
+
protoOf(IntShrinker).a5t = function (value) {
|
|
2678
|
+
return this.p62((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2679
|
+
};
|
|
2680
|
+
function UIntShrinker(range) {
|
|
2681
|
+
this.q62_1 = range;
|
|
2682
|
+
}
|
|
2683
|
+
protoOf(UIntShrinker).r62 = function (value) {
|
|
2684
|
+
var tmp;
|
|
2685
|
+
if (value === _UInt___init__impl__l7qpdl(0)) {
|
|
2686
|
+
tmp = emptyList();
|
|
2687
|
+
} else if (value === _UInt___init__impl__l7qpdl(1)) {
|
|
2688
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2689
|
+
var tmp0 = listOf_0(new UInt(_UInt___init__impl__l7qpdl(0)));
|
|
2690
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2691
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2692
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2693
|
+
while (_iterator__ex2g4s.u()) {
|
|
2694
|
+
var element = _iterator__ex2g4s.v();
|
|
2695
|
+
var it = element.ho_1;
|
|
2696
|
+
var progression = this.q62_1;
|
|
2697
|
+
var containsLower = progression.to_1;
|
|
2698
|
+
if (UInt__compareTo_impl_yacclj(it, progression.uo_1) <= 0 ? 0 <= UInt__compareTo_impl_yacclj(it, containsLower) : false) {
|
|
2699
|
+
destination.x(element);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
tmp = destination;
|
|
2703
|
+
} else {
|
|
2704
|
+
var tmp_0 = _UInt___init__impl__l7qpdl(0);
|
|
2705
|
+
var tmp_1 = _UInt___init__impl__l7qpdl(1);
|
|
2706
|
+
// Inline function 'kotlin.UInt.div' call
|
|
2707
|
+
var other = _UInt___init__impl__l7qpdl(3);
|
|
2708
|
+
var tmp_2 = uintDivide(value, other);
|
|
2709
|
+
// Inline function 'kotlin.UInt.div' call
|
|
2710
|
+
var other_0 = _UInt___init__impl__l7qpdl(2);
|
|
2711
|
+
var tmp_3 = uintDivide(value, other_0);
|
|
2712
|
+
// Inline function 'kotlin.UInt.times' call
|
|
2713
|
+
var other_1 = _UInt___init__impl__l7qpdl(2);
|
|
2714
|
+
var tmp0_0 = _UInt___init__impl__l7qpdl(imul(_UInt___get_data__impl__f0vqqw(value), _UInt___get_data__impl__f0vqqw(other_1)));
|
|
2715
|
+
// Inline function 'kotlin.UInt.div' call
|
|
2716
|
+
var other_2 = _UInt___init__impl__l7qpdl(3);
|
|
2717
|
+
var tmp$ret$6 = uintDivide(tmp0_0, other_2);
|
|
2718
|
+
var a = listOf([new UInt(tmp_0), new UInt(tmp_1), new UInt(tmp_2), new UInt(tmp_3), new UInt(tmp$ret$6)]);
|
|
2719
|
+
var tmp0_1 = _UInt___init__impl__l7qpdl(1);
|
|
2720
|
+
// Inline function 'kotlin.UInt.rangeTo' call
|
|
2721
|
+
var other_3 = _UInt___init__impl__l7qpdl(5);
|
|
2722
|
+
// Inline function 'kotlin.collections.map' call
|
|
2723
|
+
var this_0 = new UIntRange(tmp0_1, other_3);
|
|
2724
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2725
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2726
|
+
var inductionVariable = UInt__toInt_impl_93yt4d(this_0.to_1);
|
|
2727
|
+
var last = UInt__toInt_impl_93yt4d(this_0.uo_1);
|
|
2728
|
+
if (UInt__compareTo_impl_yacclj(toUInt(inductionVariable), toUInt(last)) <= 0)
|
|
2729
|
+
do {
|
|
2730
|
+
var item = new UInt(toUInt(inductionVariable));
|
|
2731
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2732
|
+
// Inline function 'kotlin.UInt.minus' call
|
|
2733
|
+
var other_4 = item.ho_1;
|
|
2734
|
+
var tmp$ret$8 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(value) - _UInt___get_data__impl__f0vqqw(other_4) | 0);
|
|
2735
|
+
var tmp$ret$9 = new UInt(tmp$ret$8);
|
|
2736
|
+
destination_0.x(tmp$ret$9);
|
|
2737
|
+
}
|
|
2738
|
+
while (!(UInt__toInt_impl_93yt4d(item.ho_1) === last));
|
|
2739
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2740
|
+
var tmp0_2 = reversed(destination_0);
|
|
2741
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2742
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
2743
|
+
var _iterator__ex2g4s_0 = tmp0_2.t();
|
|
2744
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2745
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2746
|
+
var tmp0_3 = element_0.ho_1;
|
|
2747
|
+
// Inline function 'kotlin.UInt.compareTo' call
|
|
2748
|
+
var other_5 = _UInt___init__impl__l7qpdl(0);
|
|
2749
|
+
if (uintCompare(_UInt___get_data__impl__f0vqqw(tmp0_3), _UInt___get_data__impl__f0vqqw(other_5)) > 0) {
|
|
2750
|
+
destination_1.x(element_0);
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
var b = destination_1;
|
|
2754
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
2755
|
+
var tmp0_4 = distinct(plus(a, b));
|
|
2756
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
2757
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2758
|
+
var _iterator__ex2g4s_1 = tmp0_4.t();
|
|
2759
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2760
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2761
|
+
if (!(element_1.ho_1 === value)) {
|
|
2762
|
+
destination_2.x(element_1);
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2766
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2767
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
2768
|
+
var _iterator__ex2g4s_2 = destination_2.t();
|
|
2769
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
2770
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
2771
|
+
var it_0 = element_2.ho_1;
|
|
2772
|
+
var progression_0 = this.q62_1;
|
|
2773
|
+
var containsLower_0 = progression_0.to_1;
|
|
2774
|
+
if (UInt__compareTo_impl_yacclj(it_0, progression_0.uo_1) <= 0 ? 0 <= UInt__compareTo_impl_yacclj(it_0, containsLower_0) : false) {
|
|
2775
|
+
destination_3.x(element_2);
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
tmp = destination_3;
|
|
2779
|
+
}
|
|
2780
|
+
return tmp;
|
|
2781
|
+
};
|
|
2782
|
+
protoOf(UIntShrinker).a5t = function (value) {
|
|
2783
|
+
return this.r62(value instanceof UInt ? value.ho_1 : THROW_CCE());
|
|
2784
|
+
};
|
|
2785
|
+
function int$lambda($range) {
|
|
2786
|
+
return function (it) {
|
|
2787
|
+
return nextInt(it.r5r_1, $range);
|
|
2788
|
+
};
|
|
2789
|
+
}
|
|
2790
|
+
function long(_this__u8e3s4, range) {
|
|
2791
|
+
range = range === VOID ? longRangeToLong(new Long(0, -2147483648), new Long(-1, 2147483647)) : range;
|
|
2792
|
+
// Inline function 'kotlin.longArrayOf' call
|
|
2793
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2794
|
+
var tmp0 = longArrayOf([range.xi_1, new Long(-1, -1), new Long(0, 0), new Long(1, 0), range.yi_1]);
|
|
2795
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2796
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2797
|
+
var inductionVariable = 0;
|
|
2798
|
+
var last = tmp0.length;
|
|
2799
|
+
while (inductionVariable < last) {
|
|
2800
|
+
var element = tmp0[inductionVariable];
|
|
2801
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2802
|
+
var containsLower = range.xi_1;
|
|
2803
|
+
if (compare(element, range.yi_1) <= 0 ? compare(containsLower, element) <= 0 : false) {
|
|
2804
|
+
destination.x(element);
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
var edgeCases = distinct(destination);
|
|
2808
|
+
var tmp = Companion_instance_1;
|
|
2809
|
+
return tmp.x5u(long$lambda(range)).h5v(edgeCases).g5v(new LongShrinker(range)).f5v(LongClassifier_init_$Create$(range)).h1y();
|
|
2810
|
+
}
|
|
2811
|
+
function LongShrinker(range) {
|
|
2812
|
+
this.s62_1 = range;
|
|
2813
|
+
}
|
|
2814
|
+
protoOf(LongShrinker).t62 = function (value) {
|
|
2815
|
+
var tmp;
|
|
2816
|
+
if (equalsLong(value, new Long(0, 0))) {
|
|
2817
|
+
tmp = emptyList();
|
|
2818
|
+
} else if (equalsLong(value, new Long(1, 0)) || equalsLong(value, new Long(-1, -1))) {
|
|
2819
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2820
|
+
var tmp0 = listOf_0(new Long(0, 0));
|
|
2821
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2822
|
+
var destination = ArrayList_init_$Create$_0();
|
|
2823
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2824
|
+
while (_iterator__ex2g4s.u()) {
|
|
2825
|
+
var element = _iterator__ex2g4s.v();
|
|
2826
|
+
var progression = this.s62_1;
|
|
2827
|
+
var containsLower = progression.xi_1;
|
|
2828
|
+
if (compare(element, progression.yi_1) <= 0 ? compare(containsLower, element) <= 0 : false) {
|
|
2829
|
+
destination.x(element);
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
tmp = destination;
|
|
2833
|
+
} else {
|
|
2834
|
+
var tmp_0 = new Long(0, 0);
|
|
2835
|
+
var tmp_1 = new Long(1, 0);
|
|
2836
|
+
var tmp_2 = new Long(-1, -1);
|
|
2837
|
+
var tmp_3 = abs_0(value);
|
|
2838
|
+
// Inline function 'kotlin.Long.div' call
|
|
2839
|
+
var tmp_4 = divide(value, fromInt(3));
|
|
2840
|
+
// Inline function 'kotlin.Long.div' call
|
|
2841
|
+
var tmp_5 = divide(value, fromInt(2));
|
|
2842
|
+
// Inline function 'kotlin.Long.times' call
|
|
2843
|
+
// Inline function 'kotlin.Long.div' call
|
|
2844
|
+
var this_0 = multiply(value, fromInt(2));
|
|
2845
|
+
var tmp$ret$6 = divide(this_0, fromInt(3));
|
|
2846
|
+
var a = listOf([tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp$ret$6]);
|
|
2847
|
+
// Inline function 'kotlin.collections.map' call
|
|
2848
|
+
var this_1 = numberRangeToNumber(1, 5);
|
|
2849
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2850
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
2851
|
+
var inductionVariable = this_1.u1_1;
|
|
2852
|
+
var last = this_1.v1_1;
|
|
2853
|
+
if (inductionVariable <= last)
|
|
2854
|
+
do {
|
|
2855
|
+
var item = inductionVariable;
|
|
2856
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2857
|
+
// Inline function 'kotlin.Long.minus' call
|
|
2858
|
+
var other = item;
|
|
2859
|
+
var tmp$ret$8 = subtract(value, fromInt(other));
|
|
2860
|
+
destination_0.x(tmp$ret$8);
|
|
2861
|
+
}
|
|
2862
|
+
while (!(item === last));
|
|
2863
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2864
|
+
var tmp0_0 = reversed(destination_0);
|
|
2865
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2866
|
+
var destination_1 = ArrayList_init_$Create$_0();
|
|
2867
|
+
var _iterator__ex2g4s_0 = tmp0_0.t();
|
|
2868
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
2869
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
2870
|
+
if (compare(element_0, new Long(0, 0)) > 0) {
|
|
2871
|
+
destination_1.x(element_0);
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
var b = destination_1;
|
|
2875
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
2876
|
+
var tmp0_1 = distinct(plus(a, b));
|
|
2877
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
2878
|
+
var destination_2 = ArrayList_init_$Create$_0();
|
|
2879
|
+
var _iterator__ex2g4s_1 = tmp0_1.t();
|
|
2880
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
2881
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
2882
|
+
if (!equalsLong(element_1, value)) {
|
|
2883
|
+
destination_2.x(element_1);
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
// Inline function 'kotlin.collections.filter' call
|
|
2887
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
2888
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
2889
|
+
var _iterator__ex2g4s_2 = destination_2.t();
|
|
2890
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
2891
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
2892
|
+
var progression_0 = this.s62_1;
|
|
2893
|
+
var containsLower_0 = progression_0.xi_1;
|
|
2894
|
+
if (compare(element_2, progression_0.yi_1) <= 0 ? compare(containsLower_0, element_2) <= 0 : false) {
|
|
2895
|
+
destination_3.x(element_2);
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
tmp = destination_3;
|
|
2899
|
+
}
|
|
2900
|
+
return tmp;
|
|
2901
|
+
};
|
|
2902
|
+
protoOf(LongShrinker).a5t = function (value) {
|
|
2903
|
+
return this.t62(value instanceof Long ? value : THROW_CCE());
|
|
2904
|
+
};
|
|
2905
|
+
function long$lambda($range) {
|
|
2906
|
+
return function (it) {
|
|
2907
|
+
return nextLong(it.r5r_1, $range);
|
|
2908
|
+
};
|
|
2909
|
+
}
|
|
2910
|
+
function map_1(_this__u8e3s4, fn) {
|
|
2911
|
+
return trampoline(_this__u8e3s4, map$lambda_1(fn));
|
|
2912
|
+
}
|
|
2913
|
+
function flatMap(_this__u8e3s4, fn) {
|
|
2914
|
+
return trampoline(_this__u8e3s4, flatMap$lambda(fn));
|
|
2915
|
+
}
|
|
2916
|
+
function trampoline(_this__u8e3s4, next) {
|
|
2917
|
+
var tmp;
|
|
2918
|
+
if (_this__u8e3s4 instanceof TrampolineArb) {
|
|
2919
|
+
tmp = _this__u8e3s4.x62(next);
|
|
2920
|
+
} else {
|
|
2921
|
+
tmp = TrampolineArb_init_$Create$(_this__u8e3s4).x62(next);
|
|
2922
|
+
}
|
|
2923
|
+
return tmp;
|
|
2924
|
+
}
|
|
2925
|
+
function TrampolineArb_init_$Init$(first, $this) {
|
|
2926
|
+
TrampolineArb.call($this, first, emptyList());
|
|
2927
|
+
return $this;
|
|
2928
|
+
}
|
|
2929
|
+
function TrampolineArb_init_$Create$(first) {
|
|
2930
|
+
return TrampolineArb_init_$Init$(first, objectCreate(protoOf(TrampolineArb)));
|
|
2931
|
+
}
|
|
2932
|
+
function TrampolineArb(first, commands) {
|
|
2933
|
+
Arb.call(this);
|
|
2934
|
+
this.v62_1 = first;
|
|
2935
|
+
this.w62_1 = commands;
|
|
2936
|
+
}
|
|
2937
|
+
protoOf(TrampolineArb).x62 = function (fn) {
|
|
2938
|
+
var tmp = new TrampolineArb(this.v62_1, plus_1(this.w62_1, typeof fn === 'function' ? fn : THROW_CCE()));
|
|
2939
|
+
return tmp instanceof TrampolineArb ? tmp : THROW_CCE();
|
|
2940
|
+
};
|
|
2941
|
+
protoOf(TrampolineArb).m5r = function (rs) {
|
|
2942
|
+
var tmp0 = this.w62_1;
|
|
2943
|
+
// Inline function 'kotlin.collections.fold' call
|
|
2944
|
+
var accumulator = this.v62_1;
|
|
2945
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2946
|
+
while (_iterator__ex2g4s.u()) {
|
|
2947
|
+
var element = _iterator__ex2g4s.v();
|
|
2948
|
+
var currentArb = accumulator;
|
|
2949
|
+
var tmp0_elvis_lhs = currentArb.m5r(rs);
|
|
2950
|
+
var currentEdge = tmp0_elvis_lhs == null ? currentArb.l5r(rs) : tmp0_elvis_lhs;
|
|
2951
|
+
var tmp = element(currentEdge instanceof Sample ? currentEdge : THROW_CCE());
|
|
2952
|
+
accumulator = tmp instanceof Arb ? tmp : THROW_CCE();
|
|
2953
|
+
}
|
|
2954
|
+
return accumulator.m5r(rs);
|
|
2955
|
+
};
|
|
2956
|
+
protoOf(TrampolineArb).l5r = function (rs) {
|
|
2957
|
+
var tmp0 = this.w62_1;
|
|
2958
|
+
var tmp = this.v62_1;
|
|
2959
|
+
// Inline function 'kotlin.collections.fold' call
|
|
2960
|
+
var accumulator = tmp instanceof Arb ? tmp : THROW_CCE();
|
|
2961
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
2962
|
+
while (_iterator__ex2g4s.u()) {
|
|
2963
|
+
var element = _iterator__ex2g4s.v();
|
|
2964
|
+
accumulator = element(accumulator.l5r(rs));
|
|
2965
|
+
}
|
|
2966
|
+
var tmp_0 = accumulator.l5r(rs);
|
|
2967
|
+
return tmp_0 instanceof Sample ? tmp_0 : THROW_CCE();
|
|
2968
|
+
};
|
|
2969
|
+
function map$2$1($fn, $sampleA) {
|
|
2970
|
+
this.z62_1 = $fn;
|
|
2971
|
+
this.a63_1 = $sampleA;
|
|
2972
|
+
Arb.call(this);
|
|
2973
|
+
}
|
|
2974
|
+
protoOf(map$2$1).m5r = function (rs) {
|
|
2975
|
+
return asSample(this.z62_1(this.a63_1.v5r_1));
|
|
2976
|
+
};
|
|
2977
|
+
protoOf(map$2$1).l5r = function (rs) {
|
|
2978
|
+
var value = this.z62_1(this.a63_1.v5r_1);
|
|
2979
|
+
var shrinks = map_0(this.a63_1.w5r_1, this.z62_1);
|
|
2980
|
+
return new Sample(value, shrinks);
|
|
2981
|
+
};
|
|
2982
|
+
function map$lambda_1($fn) {
|
|
2983
|
+
return function (sampleA) {
|
|
2984
|
+
return new map$2$1($fn, sampleA);
|
|
2985
|
+
};
|
|
2986
|
+
}
|
|
2987
|
+
function flatMap$lambda($fn) {
|
|
2988
|
+
return function (it) {
|
|
2989
|
+
return $fn(it.v5r_1);
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
function ipAddressV4(_this__u8e3s4) {
|
|
2993
|
+
return arbitrary(ipAddressV4$slambda_0(null));
|
|
2994
|
+
}
|
|
2995
|
+
function ipAddressV4$slambda(resultContinuation) {
|
|
2996
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2997
|
+
}
|
|
2998
|
+
protoOf(ipAddressV4$slambda).a60 = function ($this$arbitrary, it, $completion) {
|
|
2999
|
+
var tmp = this.e5u($this$arbitrary, it, $completion);
|
|
3000
|
+
tmp.k9_1 = Unit_instance;
|
|
3001
|
+
tmp.l9_1 = null;
|
|
3002
|
+
return tmp.q9();
|
|
3003
|
+
};
|
|
3004
|
+
protoOf(ipAddressV4$slambda).w9 = function (p1, p2, $completion) {
|
|
3005
|
+
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
3006
|
+
return this.a60(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
3007
|
+
};
|
|
3008
|
+
protoOf(ipAddressV4$slambda).q9 = function () {
|
|
3009
|
+
var suspendResult = this.k9_1;
|
|
3010
|
+
$sm: do
|
|
3011
|
+
try {
|
|
3012
|
+
var tmp = this.i9_1;
|
|
3013
|
+
if (tmp === 0) {
|
|
3014
|
+
this.j9_1 = 1;
|
|
3015
|
+
return joinToString_0(listOf([this.k63_1.r5r_1.t1(1, 255), this.k63_1.r5r_1.t1(0, 255), this.k63_1.r5r_1.t1(0, 255), this.k63_1.r5r_1.t1(0, 255)]), '.');
|
|
3016
|
+
} else if (tmp === 1) {
|
|
3017
|
+
throw this.l9_1;
|
|
3018
|
+
}
|
|
3019
|
+
} catch ($p) {
|
|
3020
|
+
var e = $p;
|
|
3021
|
+
throw e;
|
|
3022
|
+
}
|
|
3023
|
+
while (true);
|
|
3024
|
+
};
|
|
3025
|
+
protoOf(ipAddressV4$slambda).e5u = function ($this$arbitrary, it, completion) {
|
|
3026
|
+
var i = new ipAddressV4$slambda(completion);
|
|
3027
|
+
i.j63_1 = $this$arbitrary;
|
|
3028
|
+
i.k63_1 = it;
|
|
3029
|
+
return i;
|
|
3030
|
+
};
|
|
3031
|
+
function ipAddressV4$slambda_0(resultContinuation) {
|
|
3032
|
+
var i = new ipAddressV4$slambda(resultContinuation);
|
|
3033
|
+
var l = function ($this$arbitrary, it, $completion) {
|
|
3034
|
+
return i.a60($this$arbitrary, it, $completion);
|
|
3035
|
+
};
|
|
3036
|
+
l.$arity = 2;
|
|
3037
|
+
return l;
|
|
3038
|
+
}
|
|
3039
|
+
function IntClassifier_init_$Init$(range, $this) {
|
|
3040
|
+
IntClassifier.call($this, range.u1_1, range.v1_1);
|
|
3041
|
+
return $this;
|
|
3042
|
+
}
|
|
3043
|
+
function IntClassifier_init_$Create$(range) {
|
|
3044
|
+
return IntClassifier_init_$Init$(range, objectCreate(protoOf(IntClassifier)));
|
|
3045
|
+
}
|
|
3046
|
+
function IntClassifier(min, max) {
|
|
3047
|
+
this.l63_1 = min;
|
|
3048
|
+
this.m63_1 = max;
|
|
3049
|
+
}
|
|
3050
|
+
function LongClassifier_init_$Init$(range, $this) {
|
|
3051
|
+
LongClassifier.call($this, range.xi_1, range.yi_1);
|
|
3052
|
+
return $this;
|
|
3053
|
+
}
|
|
3054
|
+
function LongClassifier_init_$Create$(range) {
|
|
3055
|
+
return LongClassifier_init_$Init$(range, objectCreate(protoOf(LongClassifier)));
|
|
3056
|
+
}
|
|
3057
|
+
function LongClassifier(min, max) {
|
|
3058
|
+
this.n63_1 = min;
|
|
3059
|
+
this.o63_1 = max;
|
|
3060
|
+
}
|
|
3061
|
+
function default_0(_this__u8e3s4) {
|
|
3062
|
+
return new EdgeConfig(PropertyTesting_getInstance().k5s_1);
|
|
3063
|
+
}
|
|
3064
|
+
function PropertyTesting$defaultSeed$lambda(it) {
|
|
3065
|
+
return toLong(it);
|
|
3066
|
+
}
|
|
3067
|
+
function PropertyTesting() {
|
|
3068
|
+
PropertyTesting_instance = this;
|
|
3069
|
+
this.x5r_1 = 10;
|
|
3070
|
+
this.y5r_1 = sysprop('kotest.proptest.output.shrink-steps', true);
|
|
3071
|
+
this.z5r_1 = sysprop('kotest.proptest.output.generated-values', false);
|
|
3072
|
+
this.a5s_1 = sysprop('kotest.proptest.output.config', false);
|
|
3073
|
+
this.b5s_1 = sysprop_0('kotest.proptest.arb.edgecases-bind-determinism', 0.9);
|
|
3074
|
+
this.c5s_1 = sysprop_1('kotest.proptest.max.discard.percentage', 20);
|
|
3075
|
+
this.d5s_1 = sysprop_1('kotest.proptest.discard.threshold', 50);
|
|
3076
|
+
var tmp = this;
|
|
3077
|
+
tmp.e5s_1 = sysprop_2('kotest.proptest.default.seed', null, PropertyTesting$defaultSeed$lambda);
|
|
3078
|
+
this.f5s_1 = sysprop_1('kotest.proptest.default.min-success', 2147483647);
|
|
3079
|
+
this.g5s_1 = sysprop_1('kotest.proptest.default.max-failure', 0);
|
|
3080
|
+
this.h5s_1 = sysprop_1('kotest.proptest.default.iteration.count', 1000);
|
|
3081
|
+
var tmp_0 = this;
|
|
3082
|
+
var mode = sysprop_3('kotest.proptest.default.shrinking.mode', 'bounded');
|
|
3083
|
+
var tmp_1;
|
|
3084
|
+
switch (mode) {
|
|
3085
|
+
case 'off':
|
|
3086
|
+
tmp_1 = Off_getInstance();
|
|
3087
|
+
break;
|
|
3088
|
+
case 'bounded':
|
|
3089
|
+
tmp_1 = new Bounded(sysprop_1('kotest.proptest.default.shrinking.bound', 1000));
|
|
3090
|
+
break;
|
|
3091
|
+
case 'unbounded':
|
|
3092
|
+
tmp_1 = Unbounded_getInstance();
|
|
3093
|
+
break;
|
|
3094
|
+
default:
|
|
3095
|
+
var message = 'Invalid shrinking mode: ' + mode;
|
|
3096
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3097
|
+
}
|
|
3098
|
+
tmp_0.i5s_1 = tmp_1;
|
|
3099
|
+
var tmp_2 = this;
|
|
3100
|
+
// Inline function 'kotlin.collections.listOf' call
|
|
3101
|
+
tmp_2.j5s_1 = emptyList();
|
|
3102
|
+
this.k5s_1 = sysprop_0('kotest.proptest.arb.edgecases-generation-probability', 0.02);
|
|
3103
|
+
this.l5s_1 = sysprop('kotest.proptest.arb.output.classifications', false);
|
|
3104
|
+
this.m5s_1 = sysprop('kotest.proptest.seed.fail-if-set', false);
|
|
3105
|
+
this.n5s_1 = sysprop('kotest.proptest.seed.write-failed', true);
|
|
3106
|
+
this.o5s_1 = LabelOrder_Quantity_getInstance();
|
|
3107
|
+
this.p5s_1 = DefaultStatisticsReporter_instance;
|
|
3108
|
+
this.q5s_1 = StatisticsReportMode_ON_getInstance();
|
|
3109
|
+
this.r5s_1 = sysprop('kotest.proptest.arb.string.output-hex-for-unprintable-chars', false);
|
|
3110
|
+
this.s5s_1 = numberRangeToNumber(0, 100);
|
|
3111
|
+
}
|
|
3112
|
+
var PropertyTesting_instance;
|
|
3113
|
+
function PropertyTesting_getInstance() {
|
|
3114
|
+
if (PropertyTesting_instance == null)
|
|
3115
|
+
new PropertyTesting();
|
|
3116
|
+
return PropertyTesting_instance;
|
|
3117
|
+
}
|
|
3118
|
+
var LabelOrder_Quantity_instance;
|
|
3119
|
+
var LabelOrder_Lexicographic_instance;
|
|
3120
|
+
var LabelOrder_entriesInitialized;
|
|
3121
|
+
function LabelOrder_initEntries() {
|
|
3122
|
+
if (LabelOrder_entriesInitialized)
|
|
3123
|
+
return Unit_instance;
|
|
3124
|
+
LabelOrder_entriesInitialized = true;
|
|
3125
|
+
LabelOrder_Quantity_instance = new LabelOrder('Quantity', 0);
|
|
3126
|
+
LabelOrder_Lexicographic_instance = new LabelOrder('Lexicographic', 1);
|
|
3127
|
+
}
|
|
3128
|
+
function LabelOrder(name, ordinal) {
|
|
3129
|
+
Enum.call(this, name, ordinal);
|
|
3130
|
+
}
|
|
3131
|
+
function LabelOrder_Quantity_getInstance() {
|
|
3132
|
+
LabelOrder_initEntries();
|
|
3133
|
+
return LabelOrder_Quantity_instance;
|
|
3134
|
+
}
|
|
3135
|
+
function Companion_2() {
|
|
3136
|
+
}
|
|
3137
|
+
protoOf(Companion_2).p63 = function (seed) {
|
|
3138
|
+
return new RandomSource(Random(seed), seed);
|
|
3139
|
+
};
|
|
3140
|
+
protoOf(Companion_2).c5t = function () {
|
|
3141
|
+
var seed = Default_getInstance().bg();
|
|
3142
|
+
return new RandomSource(Random(seed), seed);
|
|
3143
|
+
};
|
|
3144
|
+
var Companion_instance_2;
|
|
3145
|
+
function Companion_getInstance_2() {
|
|
3146
|
+
return Companion_instance_2;
|
|
3147
|
+
}
|
|
3148
|
+
function RandomSource(random, seed) {
|
|
3149
|
+
this.r5r_1 = random;
|
|
3150
|
+
this.s5r_1 = seed;
|
|
3151
|
+
}
|
|
3152
|
+
protoOf(RandomSource).toString = function () {
|
|
3153
|
+
return 'RandomSource(random=' + toString(this.r5r_1) + ', seed=' + this.s5r_1.toString() + ')';
|
|
3154
|
+
};
|
|
3155
|
+
protoOf(RandomSource).hashCode = function () {
|
|
3156
|
+
var result = hashCode(this.r5r_1);
|
|
3157
|
+
result = imul(result, 31) + this.s5r_1.hashCode() | 0;
|
|
3158
|
+
return result;
|
|
3159
|
+
};
|
|
3160
|
+
protoOf(RandomSource).equals = function (other) {
|
|
3161
|
+
if (this === other)
|
|
3162
|
+
return true;
|
|
3163
|
+
if (!(other instanceof RandomSource))
|
|
3164
|
+
return false;
|
|
3165
|
+
if (!equals(this.r5r_1, other.r5r_1))
|
|
3166
|
+
return false;
|
|
3167
|
+
if (!equalsLong(this.s5r_1, other.s5r_1))
|
|
3168
|
+
return false;
|
|
3169
|
+
return true;
|
|
3170
|
+
};
|
|
3171
|
+
var StatisticsReportMode_ON_instance;
|
|
3172
|
+
var StatisticsReportMode_FAILED_instance;
|
|
3173
|
+
var StatisticsReportMode_SUCCESS_instance;
|
|
3174
|
+
var StatisticsReportMode_OFF_instance;
|
|
3175
|
+
var StatisticsReportMode_entriesInitialized;
|
|
3176
|
+
function StatisticsReportMode_initEntries() {
|
|
3177
|
+
if (StatisticsReportMode_entriesInitialized)
|
|
3178
|
+
return Unit_instance;
|
|
3179
|
+
StatisticsReportMode_entriesInitialized = true;
|
|
3180
|
+
StatisticsReportMode_ON_instance = new StatisticsReportMode('ON', 0);
|
|
3181
|
+
StatisticsReportMode_FAILED_instance = new StatisticsReportMode('FAILED', 1);
|
|
3182
|
+
StatisticsReportMode_SUCCESS_instance = new StatisticsReportMode('SUCCESS', 2);
|
|
3183
|
+
StatisticsReportMode_OFF_instance = new StatisticsReportMode('OFF', 3);
|
|
3184
|
+
}
|
|
3185
|
+
function StatisticsReportMode(name, ordinal) {
|
|
3186
|
+
Enum.call(this, name, ordinal);
|
|
3187
|
+
}
|
|
3188
|
+
function StatisticsReportMode_ON_getInstance() {
|
|
3189
|
+
StatisticsReportMode_initEntries();
|
|
3190
|
+
return StatisticsReportMode_ON_instance;
|
|
3191
|
+
}
|
|
3192
|
+
function DefaultStatisticsReporter() {
|
|
3193
|
+
}
|
|
3194
|
+
var DefaultStatisticsReporter_instance;
|
|
3195
|
+
function DefaultStatisticsReporter_getInstance() {
|
|
3196
|
+
return DefaultStatisticsReporter_instance;
|
|
3197
|
+
}
|
|
3198
|
+
//region block: init
|
|
3199
|
+
Companion_instance = new Companion();
|
|
3200
|
+
Companion_instance_0 = new Companion_0();
|
|
3201
|
+
Companion_instance_1 = new Companion_1();
|
|
3202
|
+
FloatShrinker_instance = new FloatShrinker();
|
|
3203
|
+
Companion_instance_2 = new Companion_2();
|
|
3204
|
+
DefaultStatisticsReporter_instance = new DefaultStatisticsReporter();
|
|
3205
|
+
//endregion
|
|
3206
|
+
//region block: exports
|
|
3207
|
+
export {
|
|
3208
|
+
Companion_instance as Companion_instance21ufaak2k5re2,
|
|
3209
|
+
Companion_instance_2 as Companion_instance3s3n1oxamd1r4,
|
|
3210
|
+
ArbitraryBuilderContext as ArbitraryBuilderContext36lhfoq8yjoa7,
|
|
3211
|
+
arbitrary as arbitrary1ik44attdm5sy,
|
|
3212
|
+
boolean as boolean22whamdaxmlpn,
|
|
3213
|
+
byteArray as byteArray2qqx36w76cyb0,
|
|
3214
|
+
byte as byte3rz7pgzhi6m64,
|
|
3215
|
+
double as doubletnd0mywl30ny,
|
|
3216
|
+
element as element2c9vnyy5405af,
|
|
3217
|
+
email as email3ic8oj0n0oyrf,
|
|
3218
|
+
flatMap as flatMap3iwebhd6tqaug,
|
|
3219
|
+
float as float3e4skrs0ychqj,
|
|
3220
|
+
int as int2h4godnt2s0rr,
|
|
3221
|
+
ipAddressV4 as ipAddressV4jthf5xa96f07,
|
|
3222
|
+
long as long1rc5doehwhlin,
|
|
3223
|
+
map_1 as maptmwiddfug6qu,
|
|
3224
|
+
next as next3ubxtqgi6adv7,
|
|
3225
|
+
of as of1e4klt09ujwgo,
|
|
3226
|
+
RandomSource as RandomSource31setsds6o53y,
|
|
3227
|
+
};
|
|
3228
|
+
//endregion
|
|
3229
|
+
|
|
3230
|
+
//# sourceMappingURL=kotest-kotest-property.mjs.map
|