@flock/wirespec 0.20.0-RC.1 → 0.20.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/clikt-clikt-mordant.mjs +38 -38
- package/colormath-root-colormath.mjs +426 -426
- package/kotest-kotest-property.mjs +348 -348
- package/kotlin-kotlin-stdlib.mjs +78 -77
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9624 -9624
- package/kotlin-rgxgen.mjs +1757 -1757
- package/kotlinx-io-kotlinx-io-core.mjs +403 -403
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1745 -1745
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1454 -1454
- package/mordant-mordant.mjs +1157 -1157
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +13 -1
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +209 -238
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +167 -167
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +214 -206
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +249 -249
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-scala.mjs +101 -101
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +209 -209
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +26 -26
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +2546 -2422
- package/wirespec-src-compiler-ir.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +472 -472
- package/wirespec-src-converter-openapi.mjs +335 -335
- package/wirespec-src-ide-lsp.mjs +1346 -1346
- package/wirespec-src-integration-kotest.mjs +257 -257
- package/wirespec-src-plugin-arguments.mjs +128 -128
- package/wirespec-src-plugin-cli.mjs +84 -84
- package/wirespec-src-plugin-npm.mjs +18 -18
- package/wirespec-src-tools-generator.mjs +2 -2
|
@@ -176,10 +176,10 @@ initMetadataForObject(DefaultStatisticsReporter, 'DefaultStatisticsReporter', VO
|
|
|
176
176
|
//endregion
|
|
177
177
|
function Gen$generate$lambda($rs, $edgeConfig, this$0, $samples) {
|
|
178
178
|
return function () {
|
|
179
|
-
var isEdgeCase = $rs.
|
|
179
|
+
var isEdgeCase = $rs.k6m_1.oi(0.0, 1.0) < $edgeConfig.m6m_1;
|
|
180
180
|
var tmp;
|
|
181
181
|
if (isEdgeCase) {
|
|
182
|
-
var tmp0_elvis_lhs = this$0.
|
|
182
|
+
var tmp0_elvis_lhs = this$0.o6m($rs);
|
|
183
183
|
tmp = tmp0_elvis_lhs == null ? $samples.v() : tmp0_elvis_lhs;
|
|
184
184
|
} else {
|
|
185
185
|
tmp = $samples.v();
|
|
@@ -203,12 +203,12 @@ function Gen$generate$lambda_0(this$0) {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
function Gen() {
|
|
206
|
-
this.
|
|
206
|
+
this.q6m_1 = null;
|
|
207
207
|
}
|
|
208
|
-
protoOf(Gen).
|
|
208
|
+
protoOf(Gen).r6m = function (rs, edgeConfig) {
|
|
209
209
|
var tmp;
|
|
210
210
|
if (this instanceof Arb) {
|
|
211
|
-
var samples = this.
|
|
211
|
+
var samples = this.s6m(rs).t();
|
|
212
212
|
tmp = generateSequence(Gen$generate$lambda(rs, edgeConfig, this, samples));
|
|
213
213
|
} else {
|
|
214
214
|
if (this instanceof Exhaustive) {
|
|
@@ -225,9 +225,9 @@ protoOf(Gen).t6m = function (rs, edgeConfig) {
|
|
|
225
225
|
}
|
|
226
226
|
return tmp;
|
|
227
227
|
};
|
|
228
|
-
protoOf(Gen).
|
|
228
|
+
protoOf(Gen).t6m = function (rs, edgeConfig, $super) {
|
|
229
229
|
edgeConfig = edgeConfig === VOID ? default_0(Companion_instance_1) : edgeConfig;
|
|
230
|
-
return $super === VOID ? this.
|
|
230
|
+
return $super === VOID ? this.r6m(rs, edgeConfig) : $super.r6m.call(this, rs, edgeConfig);
|
|
231
231
|
};
|
|
232
232
|
function Companion() {
|
|
233
233
|
}
|
|
@@ -237,13 +237,13 @@ function Companion_getInstance() {
|
|
|
237
237
|
}
|
|
238
238
|
function Arb$samples$lambda(this$0, $rs) {
|
|
239
239
|
return function () {
|
|
240
|
-
return this$0.
|
|
240
|
+
return this$0.u6m($rs);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
function Arb() {
|
|
244
244
|
Gen.call(this);
|
|
245
245
|
}
|
|
246
|
-
protoOf(Arb).
|
|
246
|
+
protoOf(Arb).s6m = function (rs) {
|
|
247
247
|
return generateSequence(Arb$samples$lambda(this, rs));
|
|
248
248
|
};
|
|
249
249
|
function Sample$_init_$lambda_a4a8db($value) {
|
|
@@ -259,15 +259,15 @@ function Sample(value, shrinks) {
|
|
|
259
259
|
tmp = shrinks;
|
|
260
260
|
}
|
|
261
261
|
shrinks = tmp;
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
262
|
+
this.v6m_1 = value;
|
|
263
|
+
this.w6m_1 = shrinks;
|
|
264
264
|
}
|
|
265
265
|
protoOf(Sample).toString = function () {
|
|
266
|
-
return 'Sample(value=' + toString_0(this.
|
|
266
|
+
return 'Sample(value=' + toString_0(this.v6m_1) + ', shrinks=' + this.w6m_1.toString() + ')';
|
|
267
267
|
};
|
|
268
268
|
protoOf(Sample).hashCode = function () {
|
|
269
|
-
var result = this.
|
|
270
|
-
result = imul(result, 31) + this.
|
|
269
|
+
var result = this.v6m_1 == null ? 0 : hashCode(this.v6m_1);
|
|
270
|
+
result = imul(result, 31) + this.w6m_1.hashCode() | 0;
|
|
271
271
|
return result;
|
|
272
272
|
};
|
|
273
273
|
protoOf(Sample).equals = function (other) {
|
|
@@ -275,9 +275,9 @@ protoOf(Sample).equals = function (other) {
|
|
|
275
275
|
return true;
|
|
276
276
|
if (!(other instanceof Sample))
|
|
277
277
|
return false;
|
|
278
|
-
if (!equals(this.
|
|
278
|
+
if (!equals(this.v6m_1, other.v6m_1))
|
|
279
279
|
return false;
|
|
280
|
-
if (!this.
|
|
280
|
+
if (!this.w6m_1.equals(other.w6m_1))
|
|
281
281
|
return false;
|
|
282
282
|
return true;
|
|
283
283
|
};
|
|
@@ -288,33 +288,33 @@ function Companion_getInstance_0() {
|
|
|
288
288
|
return Companion_instance_1;
|
|
289
289
|
}
|
|
290
290
|
function EdgeConfig(edgecasesGenerationProbability) {
|
|
291
|
-
edgecasesGenerationProbability = edgecasesGenerationProbability === VOID ? PropertyTesting_getInstance().
|
|
292
|
-
this.
|
|
293
|
-
var containsArg = this.
|
|
291
|
+
edgecasesGenerationProbability = edgecasesGenerationProbability === VOID ? PropertyTesting_getInstance().k6n_1 : edgecasesGenerationProbability;
|
|
292
|
+
this.m6m_1 = edgecasesGenerationProbability;
|
|
293
|
+
var containsArg = this.m6m_1;
|
|
294
294
|
// Inline function 'kotlin.check' call
|
|
295
295
|
if (!(0.0 <= containsArg ? containsArg <= 1.0 : false)) {
|
|
296
|
-
var message = 'provided edgecasesProbability ' + this.
|
|
296
|
+
var message = 'provided edgecasesProbability ' + this.m6m_1 + ' is not between 0.0 and 1.0';
|
|
297
297
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
protoOf(EdgeConfig).toString = function () {
|
|
301
|
-
return 'EdgeConfig(edgecasesGenerationProbability=' + this.
|
|
301
|
+
return 'EdgeConfig(edgecasesGenerationProbability=' + this.m6m_1 + ')';
|
|
302
302
|
};
|
|
303
303
|
protoOf(EdgeConfig).hashCode = function () {
|
|
304
|
-
return getNumberHashCode(this.
|
|
304
|
+
return getNumberHashCode(this.m6m_1);
|
|
305
305
|
};
|
|
306
306
|
protoOf(EdgeConfig).equals = function (other) {
|
|
307
307
|
if (this === other)
|
|
308
308
|
return true;
|
|
309
309
|
if (!(other instanceof EdgeConfig))
|
|
310
310
|
return false;
|
|
311
|
-
if (!equals(this.
|
|
311
|
+
if (!equals(this.m6m_1, other.m6m_1))
|
|
312
312
|
return false;
|
|
313
313
|
return true;
|
|
314
314
|
};
|
|
315
315
|
function Exhaustive() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Exhaustive).
|
|
317
|
+
protoOf(Exhaustive).t6n = function () {
|
|
318
318
|
return of(Companion_instance_0, this.s2());
|
|
319
319
|
};
|
|
320
320
|
function asSample(_this__u8e3s4) {
|
|
@@ -334,15 +334,15 @@ function RTree(value, children) {
|
|
|
334
334
|
tmp = children;
|
|
335
335
|
}
|
|
336
336
|
children = tmp;
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
337
|
+
this.u6n_1 = value;
|
|
338
|
+
this.v6n_1 = children;
|
|
339
339
|
}
|
|
340
340
|
protoOf(RTree).toString = function () {
|
|
341
|
-
return 'RTree(value=' + toString(this.
|
|
341
|
+
return 'RTree(value=' + toString(this.u6n_1) + ', children=' + toString(this.v6n_1) + ')';
|
|
342
342
|
};
|
|
343
343
|
protoOf(RTree).hashCode = function () {
|
|
344
|
-
var result = hashCode(this.
|
|
345
|
-
result = imul(result, 31) + hashCode(this.
|
|
344
|
+
var result = hashCode(this.u6n_1);
|
|
345
|
+
result = imul(result, 31) + hashCode(this.v6n_1) | 0;
|
|
346
346
|
return result;
|
|
347
347
|
};
|
|
348
348
|
protoOf(RTree).equals = function (other) {
|
|
@@ -350,9 +350,9 @@ protoOf(RTree).equals = function (other) {
|
|
|
350
350
|
return true;
|
|
351
351
|
if (!(other instanceof RTree))
|
|
352
352
|
return false;
|
|
353
|
-
if (!equals(this.
|
|
353
|
+
if (!equals(this.u6n_1, other.u6n_1))
|
|
354
354
|
return false;
|
|
355
|
-
if (!equals(this.
|
|
355
|
+
if (!equals(this.v6n_1, other.v6n_1))
|
|
356
356
|
return false;
|
|
357
357
|
return true;
|
|
358
358
|
};
|
|
@@ -372,14 +372,14 @@ function map(_this__u8e3s4, f) {
|
|
|
372
372
|
return new RTree(b, c);
|
|
373
373
|
}
|
|
374
374
|
function bimap$1($this_bimap, $f, $g) {
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
375
|
+
this.w6n_1 = $this_bimap;
|
|
376
|
+
this.x6n_1 = $f;
|
|
377
|
+
this.y6n_1 = $g;
|
|
378
378
|
}
|
|
379
|
-
protoOf(bimap$1).
|
|
380
|
-
var tmp0 = this.
|
|
379
|
+
protoOf(bimap$1).z6n = function (value) {
|
|
380
|
+
var tmp0 = this.w6n_1.a6o(this.x6n_1(value));
|
|
381
381
|
// Inline function 'kotlin.collections.map' call
|
|
382
|
-
var transform = this.
|
|
382
|
+
var transform = this.y6n_1;
|
|
383
383
|
// Inline function 'kotlin.collections.mapTo' call
|
|
384
384
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0, 10));
|
|
385
385
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -389,8 +389,8 @@ protoOf(bimap$1).b6o = function (value) {
|
|
|
389
389
|
}
|
|
390
390
|
return destination;
|
|
391
391
|
};
|
|
392
|
-
protoOf(bimap$1).
|
|
393
|
-
return this.
|
|
392
|
+
protoOf(bimap$1).a6o = function (value) {
|
|
393
|
+
return this.z6n((value == null ? true : !(value == null)) ? value : THROW_CCE());
|
|
394
394
|
};
|
|
395
395
|
function rtree$lambda($value) {
|
|
396
396
|
return function () {
|
|
@@ -401,7 +401,7 @@ function rtree$lambda_0($value, $this_rtree) {
|
|
|
401
401
|
return function () {
|
|
402
402
|
var a = $value();
|
|
403
403
|
// Inline function 'kotlin.collections.filter' call
|
|
404
|
-
var tmp0 = distinct($this_rtree.
|
|
404
|
+
var tmp0 = distinct($this_rtree.a6o(a));
|
|
405
405
|
// Inline function 'kotlin.collections.filterTo' call
|
|
406
406
|
var destination = ArrayList_init_$Create$_0();
|
|
407
407
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -425,13 +425,13 @@ function rtree$lambda_0($value, $this_rtree) {
|
|
|
425
425
|
}
|
|
426
426
|
function map$lambda($f, $this_map) {
|
|
427
427
|
return function () {
|
|
428
|
-
return $f($this_map.
|
|
428
|
+
return $f($this_map.u6n_1());
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
431
|
function map$lambda_0($this_map, $f) {
|
|
432
432
|
return function () {
|
|
433
433
|
// Inline function 'kotlin.collections.map' call
|
|
434
|
-
var this_0 = $this_map.
|
|
434
|
+
var this_0 = $this_map.v6n_1.m1();
|
|
435
435
|
// Inline function 'kotlin.collections.mapTo' call
|
|
436
436
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
437
437
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -465,32 +465,32 @@ function Unbounded_getInstance() {
|
|
|
465
465
|
}
|
|
466
466
|
function Bounded(bound) {
|
|
467
467
|
ShrinkingMode.call(this);
|
|
468
|
-
this.
|
|
468
|
+
this.b6o_1 = bound;
|
|
469
469
|
}
|
|
470
470
|
protoOf(Bounded).toString = function () {
|
|
471
|
-
return 'Bounded(bound=' + this.
|
|
471
|
+
return 'Bounded(bound=' + this.b6o_1 + ')';
|
|
472
472
|
};
|
|
473
473
|
protoOf(Bounded).hashCode = function () {
|
|
474
|
-
return this.
|
|
474
|
+
return this.b6o_1;
|
|
475
475
|
};
|
|
476
476
|
protoOf(Bounded).equals = function (other) {
|
|
477
477
|
if (this === other)
|
|
478
478
|
return true;
|
|
479
479
|
if (!(other instanceof Bounded))
|
|
480
480
|
return false;
|
|
481
|
-
if (!(this.
|
|
481
|
+
if (!(this.b6o_1 === other.b6o_1))
|
|
482
482
|
return false;
|
|
483
483
|
return true;
|
|
484
484
|
};
|
|
485
485
|
function ShrinkingMode() {
|
|
486
486
|
}
|
|
487
487
|
function next(_this__u8e3s4, rs) {
|
|
488
|
-
rs = rs === VOID ? Companion_instance_3.
|
|
488
|
+
rs = rs === VOID ? Companion_instance_3.c6o() : rs;
|
|
489
489
|
return single(_this__u8e3s4, rs);
|
|
490
490
|
}
|
|
491
491
|
function single(_this__u8e3s4, rs) {
|
|
492
|
-
rs = rs === VOID ? Companion_instance_3.
|
|
493
|
-
return _this__u8e3s4.
|
|
492
|
+
rs = rs === VOID ? Companion_instance_3.c6o() : rs;
|
|
493
|
+
return _this__u8e3s4.u6m(rs).v6m_1;
|
|
494
494
|
}
|
|
495
495
|
function boolean(_this__u8e3s4) {
|
|
496
496
|
var tmp = listOf([true, false]);
|
|
@@ -499,15 +499,15 @@ function boolean(_this__u8e3s4) {
|
|
|
499
499
|
function boolean$slambda(resultContinuation) {
|
|
500
500
|
CoroutineImpl.call(this, resultContinuation);
|
|
501
501
|
}
|
|
502
|
-
protoOf(boolean$slambda).
|
|
503
|
-
var tmp = this.
|
|
502
|
+
protoOf(boolean$slambda).n6o = function ($this$arbitrary, it, $completion) {
|
|
503
|
+
var tmp = this.o6o($this$arbitrary, it, $completion);
|
|
504
504
|
tmp.f9_1 = Unit_instance;
|
|
505
505
|
tmp.g9_1 = null;
|
|
506
506
|
return tmp.l9();
|
|
507
507
|
};
|
|
508
508
|
protoOf(boolean$slambda).r9 = function (p1, p2, $completion) {
|
|
509
509
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
510
|
-
return this.
|
|
510
|
+
return this.n6o(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
511
511
|
};
|
|
512
512
|
protoOf(boolean$slambda).l9 = function () {
|
|
513
513
|
var suspendResult = this.f9_1;
|
|
@@ -516,7 +516,7 @@ protoOf(boolean$slambda).l9 = function () {
|
|
|
516
516
|
var tmp = this.d9_1;
|
|
517
517
|
if (tmp === 0) {
|
|
518
518
|
this.e9_1 = 1;
|
|
519
|
-
return this.
|
|
519
|
+
return this.m6o_1.k6m_1.mi();
|
|
520
520
|
} else if (tmp === 1) {
|
|
521
521
|
throw this.g9_1;
|
|
522
522
|
}
|
|
@@ -526,16 +526,16 @@ protoOf(boolean$slambda).l9 = function () {
|
|
|
526
526
|
}
|
|
527
527
|
while (true);
|
|
528
528
|
};
|
|
529
|
-
protoOf(boolean$slambda).
|
|
529
|
+
protoOf(boolean$slambda).o6o = function ($this$arbitrary, it, completion) {
|
|
530
530
|
var i = new boolean$slambda(completion);
|
|
531
|
-
i.
|
|
532
|
-
i.
|
|
531
|
+
i.l6o_1 = $this$arbitrary;
|
|
532
|
+
i.m6o_1 = it;
|
|
533
533
|
return i;
|
|
534
534
|
};
|
|
535
535
|
function boolean$slambda_0(resultContinuation) {
|
|
536
536
|
var i = new boolean$slambda(resultContinuation);
|
|
537
537
|
var l = function ($this$arbitrary, it, $completion) {
|
|
538
|
-
return i.
|
|
538
|
+
return i.n6o($this$arbitrary, it, $completion);
|
|
539
539
|
};
|
|
540
540
|
l.$arity = 2;
|
|
541
541
|
return l;
|
|
@@ -568,7 +568,7 @@ function Restricted(genMode, rs, fn) {
|
|
|
568
568
|
SingleShotArbContinuation.call(this, EmptyCoroutineContext_getInstance(), genMode, rs, fn);
|
|
569
569
|
}
|
|
570
570
|
function _get_returnedArb__lqgsvl($this) {
|
|
571
|
-
var tmp = $this.
|
|
571
|
+
var tmp = $this.t6o_1;
|
|
572
572
|
if (!(tmp == null))
|
|
573
573
|
return tmp;
|
|
574
574
|
else {
|
|
@@ -576,22 +576,22 @@ function _get_returnedArb__lqgsvl($this) {
|
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function SingleShotArbContinuation(context, generationMode, randomSource, fn) {
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
579
|
+
this.p6o_1 = context;
|
|
580
|
+
this.q6o_1 = generationMode;
|
|
581
|
+
this.r6o_1 = randomSource;
|
|
582
|
+
this.s6o_1 = fn;
|
|
583
|
+
this.u6o_1 = false;
|
|
584
584
|
}
|
|
585
585
|
protoOf(SingleShotArbContinuation).j9 = function () {
|
|
586
|
-
return this.
|
|
586
|
+
return this.p6o_1;
|
|
587
587
|
};
|
|
588
|
-
protoOf(SingleShotArbContinuation).
|
|
589
|
-
this.
|
|
588
|
+
protoOf(SingleShotArbContinuation).v6o = function (result) {
|
|
589
|
+
this.u6o_1 = true;
|
|
590
590
|
// Inline function 'kotlin.map' call
|
|
591
591
|
var tmp;
|
|
592
592
|
if (_Result___get_isSuccess__impl__sndoy8(result)) {
|
|
593
593
|
var tmp_0 = _Result___get_value__impl__bjfvqg(result);
|
|
594
|
-
this.
|
|
594
|
+
this.t6o_1 = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
595
595
|
// Inline function 'kotlin.Companion.success' call
|
|
596
596
|
tmp = _Result___init__impl__xyqfz8(Unit_instance);
|
|
597
597
|
} else {
|
|
@@ -605,24 +605,24 @@ protoOf(SingleShotArbContinuation).x6o = function (result) {
|
|
|
605
605
|
THROW_CCE();
|
|
606
606
|
};
|
|
607
607
|
protoOf(SingleShotArbContinuation).o9 = function (result) {
|
|
608
|
-
return this.
|
|
608
|
+
return this.v6o(result);
|
|
609
609
|
};
|
|
610
|
-
protoOf(SingleShotArbContinuation).
|
|
610
|
+
protoOf(SingleShotArbContinuation).w6o = function (_this__u8e3s4) {
|
|
611
611
|
// Inline function 'kotlin.require' call
|
|
612
|
-
if (!!this.
|
|
612
|
+
if (!!this.u6o_1) {
|
|
613
613
|
var message = 'continuation has already been executed, if you see this error please raise a bug report';
|
|
614
614
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
615
615
|
}
|
|
616
616
|
// Inline function 'kotlin.coroutines.intrinsics.startCoroutineUninterceptedOrReturn' call
|
|
617
|
-
var this_0 = this.
|
|
617
|
+
var this_0 = this.s6o_1;
|
|
618
618
|
var result = startCoroutineUninterceptedOrReturnNonGeneratorVersion(this_0, _this__u8e3s4, this);
|
|
619
619
|
var tmp = this;
|
|
620
|
-
tmp.
|
|
620
|
+
tmp.t6o_1 = result instanceof Arb ? result : THROW_CCE();
|
|
621
621
|
return _get_returnedArb__lqgsvl(this);
|
|
622
622
|
};
|
|
623
623
|
function Companion_1() {
|
|
624
624
|
}
|
|
625
|
-
protoOf(Companion_1).
|
|
625
|
+
protoOf(Companion_1).x6o = function (f) {
|
|
626
626
|
return new ArbitraryBuilder(f, null, null, null);
|
|
627
627
|
};
|
|
628
628
|
var Companion_instance_2;
|
|
@@ -631,38 +631,38 @@ function Companion_getInstance_1() {
|
|
|
631
631
|
}
|
|
632
632
|
function ArbitraryBuilder$withEdgecases$lambda($edgecases) {
|
|
633
633
|
return function (it) {
|
|
634
|
-
return $edgecases.r() ? null : asSample(random($edgecases, it.
|
|
634
|
+
return $edgecases.r() ? null : asSample(random($edgecases, it.k6m_1));
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
function ArbitraryBuilder$build$1(this$0) {
|
|
638
|
-
this.
|
|
638
|
+
this.a6p_1 = this$0;
|
|
639
639
|
Arb.call(this);
|
|
640
|
-
this.
|
|
640
|
+
this.z6o_1 = this$0.c6p_1;
|
|
641
641
|
}
|
|
642
|
-
protoOf(ArbitraryBuilder$build$1).
|
|
643
|
-
var tmp0_safe_receiver = this.
|
|
642
|
+
protoOf(ArbitraryBuilder$build$1).o6m = function (rs) {
|
|
643
|
+
var tmp0_safe_receiver = this.a6p_1.e6p_1;
|
|
644
644
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(rs);
|
|
645
645
|
};
|
|
646
|
-
protoOf(ArbitraryBuilder$build$1).
|
|
647
|
-
var sample = this.
|
|
648
|
-
return this.
|
|
646
|
+
protoOf(ArbitraryBuilder$build$1).u6m = function (rs) {
|
|
647
|
+
var sample = this.a6p_1.b6p_1(rs);
|
|
648
|
+
return this.a6p_1.d6p_1 == null ? new Sample(sample) : sampleOf(sample, this.a6p_1.d6p_1);
|
|
649
649
|
};
|
|
650
650
|
function ArbitraryBuilder(sampleFn, classifier, shrinker, edgecaseFn) {
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
651
|
+
this.b6p_1 = sampleFn;
|
|
652
|
+
this.c6p_1 = classifier;
|
|
653
|
+
this.d6p_1 = shrinker;
|
|
654
|
+
this.e6p_1 = edgecaseFn;
|
|
655
655
|
}
|
|
656
|
-
protoOf(ArbitraryBuilder).
|
|
657
|
-
return new ArbitraryBuilder(this.
|
|
656
|
+
protoOf(ArbitraryBuilder).f6p = function (classifier) {
|
|
657
|
+
return new ArbitraryBuilder(this.b6p_1, classifier, this.d6p_1, this.e6p_1);
|
|
658
658
|
};
|
|
659
|
-
protoOf(ArbitraryBuilder).
|
|
660
|
-
return new ArbitraryBuilder(this.
|
|
659
|
+
protoOf(ArbitraryBuilder).g6p = function (shrinker) {
|
|
660
|
+
return new ArbitraryBuilder(this.b6p_1, this.c6p_1, shrinker, this.e6p_1);
|
|
661
661
|
};
|
|
662
|
-
protoOf(ArbitraryBuilder).
|
|
663
|
-
return new ArbitraryBuilder(this.
|
|
662
|
+
protoOf(ArbitraryBuilder).h6p = function (edgecases) {
|
|
663
|
+
return new ArbitraryBuilder(this.b6p_1, this.c6p_1, this.d6p_1, ArbitraryBuilder$withEdgecases$lambda(edgecases));
|
|
664
664
|
};
|
|
665
|
-
protoOf(ArbitraryBuilder).
|
|
665
|
+
protoOf(ArbitraryBuilder).y1x = function () {
|
|
666
666
|
return new ArbitraryBuilder$build$1(this);
|
|
667
667
|
};
|
|
668
668
|
function arbitrary_0(edgecases, shrinker, fn) {
|
|
@@ -675,18 +675,18 @@ function arbitrary_2(edgecaseFn, shrinker, sampleFn) {
|
|
|
675
675
|
return new arbitrary$5(shrinker, edgecaseFn, sampleFn);
|
|
676
676
|
}
|
|
677
677
|
function arbitrary$o$delegate$slambda($fn, resultContinuation) {
|
|
678
|
-
this.
|
|
678
|
+
this.q6p_1 = $fn;
|
|
679
679
|
CoroutineImpl.call(this, resultContinuation);
|
|
680
680
|
}
|
|
681
|
-
protoOf(arbitrary$o$delegate$slambda).
|
|
682
|
-
var tmp = this.
|
|
681
|
+
protoOf(arbitrary$o$delegate$slambda).t6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
682
|
+
var tmp = this.o6o($this$arbitraryBuilder, rs, $completion);
|
|
683
683
|
tmp.f9_1 = Unit_instance;
|
|
684
684
|
tmp.g9_1 = null;
|
|
685
685
|
return tmp.l9();
|
|
686
686
|
};
|
|
687
687
|
protoOf(arbitrary$o$delegate$slambda).r9 = function (p1, p2, $completion) {
|
|
688
688
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
689
|
-
return this.
|
|
689
|
+
return this.t6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
690
690
|
};
|
|
691
691
|
protoOf(arbitrary$o$delegate$slambda).l9 = function () {
|
|
692
692
|
var suspendResult = this.f9_1;
|
|
@@ -697,7 +697,7 @@ protoOf(arbitrary$o$delegate$slambda).l9 = function () {
|
|
|
697
697
|
case 0:
|
|
698
698
|
this.e9_1 = 2;
|
|
699
699
|
this.d9_1 = 1;
|
|
700
|
-
suspendResult = this.
|
|
700
|
+
suspendResult = this.q6p_1(this.r6p_1, this.s6p_1, this);
|
|
701
701
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
702
702
|
return suspendResult;
|
|
703
703
|
}
|
|
@@ -719,31 +719,31 @@ protoOf(arbitrary$o$delegate$slambda).l9 = function () {
|
|
|
719
719
|
}
|
|
720
720
|
while (true);
|
|
721
721
|
};
|
|
722
|
-
protoOf(arbitrary$o$delegate$slambda).
|
|
723
|
-
var i = new arbitrary$o$delegate$slambda(this.
|
|
724
|
-
i.
|
|
725
|
-
i.
|
|
722
|
+
protoOf(arbitrary$o$delegate$slambda).o6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
723
|
+
var i = new arbitrary$o$delegate$slambda(this.q6p_1, completion);
|
|
724
|
+
i.r6p_1 = $this$arbitraryBuilder;
|
|
725
|
+
i.s6p_1 = rs;
|
|
726
726
|
return i;
|
|
727
727
|
};
|
|
728
728
|
function arbitrary$o$delegate$slambda_0($fn, resultContinuation) {
|
|
729
729
|
var i = new arbitrary$o$delegate$slambda($fn, resultContinuation);
|
|
730
730
|
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
731
|
-
return i.
|
|
731
|
+
return i.t6p($this$arbitraryBuilder, rs, $completion);
|
|
732
732
|
};
|
|
733
733
|
l.$arity = 2;
|
|
734
734
|
return l;
|
|
735
735
|
}
|
|
736
736
|
function arbitrary$1($edgecases, $fn) {
|
|
737
|
-
this.
|
|
737
|
+
this.w6p_1 = $edgecases;
|
|
738
738
|
Arb.call(this);
|
|
739
739
|
var tmp = this;
|
|
740
|
-
tmp.
|
|
740
|
+
tmp.v6p_1 = arbitraryBuilder(VOID, VOID, VOID, arbitrary$o$delegate$slambda_0($fn, null));
|
|
741
741
|
}
|
|
742
|
-
protoOf(arbitrary$1).
|
|
743
|
-
return this.
|
|
742
|
+
protoOf(arbitrary$1).o6m = function (rs) {
|
|
743
|
+
return this.w6p_1.r() ? null : asSample(random(this.w6p_1, rs.k6m_1));
|
|
744
744
|
};
|
|
745
|
-
protoOf(arbitrary$1).
|
|
746
|
-
return this.
|
|
745
|
+
protoOf(arbitrary$1).u6m = function (rs) {
|
|
746
|
+
return this.v6p_1.u6m(rs);
|
|
747
747
|
};
|
|
748
748
|
function arbitraryBuilder$o$singleShotArb$slambda$lambda($value) {
|
|
749
749
|
return function (it) {
|
|
@@ -758,26 +758,26 @@ function arbitraryBuilder$o$singleShotArb$slambda$lambda_0($edgecaseFn, $value)
|
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
function singleShotArb($this, mode, rs) {
|
|
761
|
-
var restrictedContinuation = new Restricted(mode, rs, arbitraryBuilder$o$singleShotArb$slambda_0($this.
|
|
761
|
+
var restrictedContinuation = new Restricted(mode, rs, arbitraryBuilder$o$singleShotArb$slambda_0($this.a6q_1, rs, $this.z6p_1, $this.b6q_1, $this.c6q_1, null));
|
|
762
762
|
// Inline function 'kotlin.with' call
|
|
763
|
-
return restrictedContinuation.
|
|
763
|
+
return restrictedContinuation.w6o(restrictedContinuation);
|
|
764
764
|
}
|
|
765
765
|
function arbitraryBuilder$o$singleShotArb$slambda($builderFn, $rs, $classifier, $shrinker, $edgecaseFn, resultContinuation) {
|
|
766
|
-
this.
|
|
767
|
-
this.
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
770
|
-
this.
|
|
766
|
+
this.l6q_1 = $builderFn;
|
|
767
|
+
this.m6q_1 = $rs;
|
|
768
|
+
this.n6q_1 = $classifier;
|
|
769
|
+
this.o6q_1 = $shrinker;
|
|
770
|
+
this.p6q_1 = $edgecaseFn;
|
|
771
771
|
CoroutineImpl.call(this, resultContinuation);
|
|
772
772
|
}
|
|
773
|
-
protoOf(arbitraryBuilder$o$singleShotArb$slambda).
|
|
774
|
-
var tmp = this.
|
|
773
|
+
protoOf(arbitraryBuilder$o$singleShotArb$slambda).r6q = function ($this$Restricted, $completion) {
|
|
774
|
+
var tmp = this.s6q($this$Restricted, $completion);
|
|
775
775
|
tmp.f9_1 = Unit_instance;
|
|
776
776
|
tmp.g9_1 = null;
|
|
777
777
|
return tmp.l9();
|
|
778
778
|
};
|
|
779
779
|
protoOf(arbitraryBuilder$o$singleShotArb$slambda).s9 = function (p1, $completion) {
|
|
780
|
-
return this.
|
|
780
|
+
return this.r6q((!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE(), $completion);
|
|
781
781
|
};
|
|
782
782
|
protoOf(arbitraryBuilder$o$singleShotArb$slambda).l9 = function () {
|
|
783
783
|
var suspendResult = this.f9_1;
|
|
@@ -788,7 +788,7 @@ protoOf(arbitraryBuilder$o$singleShotArb$slambda).l9 = function () {
|
|
|
788
788
|
case 0:
|
|
789
789
|
this.e9_1 = 2;
|
|
790
790
|
this.d9_1 = 1;
|
|
791
|
-
suspendResult = this.
|
|
791
|
+
suspendResult = this.l6q_1(this.q6q_1, this.m6q_1, this);
|
|
792
792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
793
793
|
return suspendResult;
|
|
794
794
|
}
|
|
@@ -797,7 +797,7 @@ protoOf(arbitraryBuilder$o$singleShotArb$slambda).l9 = function () {
|
|
|
797
797
|
case 1:
|
|
798
798
|
var value = suspendResult;
|
|
799
799
|
var tmp_0 = arbitraryBuilder$o$singleShotArb$slambda$lambda(value);
|
|
800
|
-
return (new ArbitraryBuilder(tmp_0, this.
|
|
800
|
+
return (new ArbitraryBuilder(tmp_0, this.n6q_1, this.o6q_1, arbitraryBuilder$o$singleShotArb$slambda$lambda_0(this.p6q_1, value))).y1x();
|
|
801
801
|
case 2:
|
|
802
802
|
throw this.g9_1;
|
|
803
803
|
}
|
|
@@ -812,46 +812,46 @@ protoOf(arbitraryBuilder$o$singleShotArb$slambda).l9 = function () {
|
|
|
812
812
|
}
|
|
813
813
|
while (true);
|
|
814
814
|
};
|
|
815
|
-
protoOf(arbitraryBuilder$o$singleShotArb$slambda).
|
|
816
|
-
var i = new arbitraryBuilder$o$singleShotArb$slambda(this.
|
|
817
|
-
i.
|
|
815
|
+
protoOf(arbitraryBuilder$o$singleShotArb$slambda).s6q = function ($this$Restricted, completion) {
|
|
816
|
+
var i = new arbitraryBuilder$o$singleShotArb$slambda(this.l6q_1, this.m6q_1, this.n6q_1, this.o6q_1, this.p6q_1, completion);
|
|
817
|
+
i.q6q_1 = $this$Restricted;
|
|
818
818
|
return i;
|
|
819
819
|
};
|
|
820
820
|
function arbitraryBuilder$o$singleShotArb$slambda_0($builderFn, $rs, $classifier, $shrinker, $edgecaseFn, resultContinuation) {
|
|
821
821
|
var i = new arbitraryBuilder$o$singleShotArb$slambda($builderFn, $rs, $classifier, $shrinker, $edgecaseFn, resultContinuation);
|
|
822
822
|
var l = function ($this$Restricted, $completion) {
|
|
823
|
-
return i.
|
|
823
|
+
return i.r6q($this$Restricted, $completion);
|
|
824
824
|
};
|
|
825
825
|
l.$arity = 1;
|
|
826
826
|
return l;
|
|
827
827
|
}
|
|
828
828
|
function arbitraryBuilder$1($classifier, $builderFn, $shrinker, $edgecaseFn) {
|
|
829
|
-
this.
|
|
830
|
-
this.
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
829
|
+
this.z6p_1 = $classifier;
|
|
830
|
+
this.a6q_1 = $builderFn;
|
|
831
|
+
this.b6q_1 = $shrinker;
|
|
832
|
+
this.c6q_1 = $edgecaseFn;
|
|
833
833
|
Arb.call(this);
|
|
834
|
-
this.
|
|
834
|
+
this.y6p_1 = $classifier;
|
|
835
835
|
}
|
|
836
|
-
protoOf(arbitraryBuilder$1).
|
|
837
|
-
return singleShotArb(this, SingleShotGenerationMode_Edgecase_getInstance(), rs).
|
|
836
|
+
protoOf(arbitraryBuilder$1).o6m = function (rs) {
|
|
837
|
+
return singleShotArb(this, SingleShotGenerationMode_Edgecase_getInstance(), rs).o6m(rs);
|
|
838
838
|
};
|
|
839
|
-
protoOf(arbitraryBuilder$1).
|
|
840
|
-
return singleShotArb(this, SingleShotGenerationMode_Sample_getInstance(), rs).
|
|
839
|
+
protoOf(arbitraryBuilder$1).u6m = function (rs) {
|
|
840
|
+
return singleShotArb(this, SingleShotGenerationMode_Sample_getInstance(), rs).u6m(rs);
|
|
841
841
|
};
|
|
842
842
|
function arbitrary$o$delegate$slambda_1($fn, resultContinuation) {
|
|
843
|
-
this.
|
|
843
|
+
this.b6r_1 = $fn;
|
|
844
844
|
CoroutineImpl.call(this, resultContinuation);
|
|
845
845
|
}
|
|
846
|
-
protoOf(arbitrary$o$delegate$slambda_1).
|
|
847
|
-
var tmp = this.
|
|
846
|
+
protoOf(arbitrary$o$delegate$slambda_1).t6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
847
|
+
var tmp = this.o6o($this$arbitraryBuilder, rs, $completion);
|
|
848
848
|
tmp.f9_1 = Unit_instance;
|
|
849
849
|
tmp.g9_1 = null;
|
|
850
850
|
return tmp.l9();
|
|
851
851
|
};
|
|
852
852
|
protoOf(arbitrary$o$delegate$slambda_1).r9 = function (p1, p2, $completion) {
|
|
853
853
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
854
|
-
return this.
|
|
854
|
+
return this.t6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
855
855
|
};
|
|
856
856
|
protoOf(arbitrary$o$delegate$slambda_1).l9 = function () {
|
|
857
857
|
var suspendResult = this.f9_1;
|
|
@@ -862,7 +862,7 @@ protoOf(arbitrary$o$delegate$slambda_1).l9 = function () {
|
|
|
862
862
|
case 0:
|
|
863
863
|
this.e9_1 = 2;
|
|
864
864
|
this.d9_1 = 1;
|
|
865
|
-
suspendResult = this.
|
|
865
|
+
suspendResult = this.b6r_1(this.c6r_1, this.d6r_1, this);
|
|
866
866
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
867
867
|
return suspendResult;
|
|
868
868
|
}
|
|
@@ -884,45 +884,45 @@ protoOf(arbitrary$o$delegate$slambda_1).l9 = function () {
|
|
|
884
884
|
}
|
|
885
885
|
while (true);
|
|
886
886
|
};
|
|
887
|
-
protoOf(arbitrary$o$delegate$slambda_1).
|
|
888
|
-
var i = new arbitrary$o$delegate$slambda_1(this.
|
|
889
|
-
i.
|
|
890
|
-
i.
|
|
887
|
+
protoOf(arbitrary$o$delegate$slambda_1).o6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
888
|
+
var i = new arbitrary$o$delegate$slambda_1(this.b6r_1, completion);
|
|
889
|
+
i.c6r_1 = $this$arbitraryBuilder;
|
|
890
|
+
i.d6r_1 = rs;
|
|
891
891
|
return i;
|
|
892
892
|
};
|
|
893
893
|
function arbitrary$o$delegate$slambda_2($fn, resultContinuation) {
|
|
894
894
|
var i = new arbitrary$o$delegate$slambda_1($fn, resultContinuation);
|
|
895
895
|
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
896
|
-
return i.
|
|
896
|
+
return i.t6p($this$arbitraryBuilder, rs, $completion);
|
|
897
897
|
};
|
|
898
898
|
l.$arity = 2;
|
|
899
899
|
return l;
|
|
900
900
|
}
|
|
901
901
|
function arbitrary$2($shrinker, $edgecases, $fn) {
|
|
902
|
-
this.
|
|
902
|
+
this.g6r_1 = $edgecases;
|
|
903
903
|
Arb.call(this);
|
|
904
904
|
var tmp = this;
|
|
905
|
-
tmp.
|
|
905
|
+
tmp.f6r_1 = arbitraryBuilder($shrinker, VOID, VOID, arbitrary$o$delegate$slambda_2($fn, null));
|
|
906
906
|
}
|
|
907
|
-
protoOf(arbitrary$2).
|
|
908
|
-
return this.
|
|
907
|
+
protoOf(arbitrary$2).o6m = function (rs) {
|
|
908
|
+
return this.g6r_1.r() ? null : asSample(random(this.g6r_1, rs.k6m_1));
|
|
909
909
|
};
|
|
910
|
-
protoOf(arbitrary$2).
|
|
911
|
-
return this.
|
|
910
|
+
protoOf(arbitrary$2).u6m = function (rs) {
|
|
911
|
+
return this.f6r_1.u6m(rs);
|
|
912
912
|
};
|
|
913
913
|
function arbitrary$slambda($fn, resultContinuation) {
|
|
914
|
-
this.
|
|
914
|
+
this.p6r_1 = $fn;
|
|
915
915
|
CoroutineImpl.call(this, resultContinuation);
|
|
916
916
|
}
|
|
917
|
-
protoOf(arbitrary$slambda).
|
|
918
|
-
var tmp = this.
|
|
917
|
+
protoOf(arbitrary$slambda).t6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
918
|
+
var tmp = this.o6o($this$arbitraryBuilder, rs, $completion);
|
|
919
919
|
tmp.f9_1 = Unit_instance;
|
|
920
920
|
tmp.g9_1 = null;
|
|
921
921
|
return tmp.l9();
|
|
922
922
|
};
|
|
923
923
|
protoOf(arbitrary$slambda).r9 = function (p1, p2, $completion) {
|
|
924
924
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
925
|
-
return this.
|
|
925
|
+
return this.t6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
926
926
|
};
|
|
927
927
|
protoOf(arbitrary$slambda).l9 = function () {
|
|
928
928
|
var suspendResult = this.f9_1;
|
|
@@ -933,7 +933,7 @@ protoOf(arbitrary$slambda).l9 = function () {
|
|
|
933
933
|
case 0:
|
|
934
934
|
this.e9_1 = 2;
|
|
935
935
|
this.d9_1 = 1;
|
|
936
|
-
suspendResult = this.
|
|
936
|
+
suspendResult = this.p6r_1(this.q6r_1, this.r6r_1, this);
|
|
937
937
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
938
938
|
return suspendResult;
|
|
939
939
|
}
|
|
@@ -955,33 +955,33 @@ protoOf(arbitrary$slambda).l9 = function () {
|
|
|
955
955
|
}
|
|
956
956
|
while (true);
|
|
957
957
|
};
|
|
958
|
-
protoOf(arbitrary$slambda).
|
|
959
|
-
var i = new arbitrary$slambda(this.
|
|
960
|
-
i.
|
|
961
|
-
i.
|
|
958
|
+
protoOf(arbitrary$slambda).o6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
959
|
+
var i = new arbitrary$slambda(this.p6r_1, completion);
|
|
960
|
+
i.q6r_1 = $this$arbitraryBuilder;
|
|
961
|
+
i.r6r_1 = rs;
|
|
962
962
|
return i;
|
|
963
963
|
};
|
|
964
964
|
function arbitrary$slambda_0($fn, resultContinuation) {
|
|
965
965
|
var i = new arbitrary$slambda($fn, resultContinuation);
|
|
966
966
|
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
967
|
-
return i.
|
|
967
|
+
return i.t6p($this$arbitraryBuilder, rs, $completion);
|
|
968
968
|
};
|
|
969
969
|
l.$arity = 2;
|
|
970
970
|
return l;
|
|
971
971
|
}
|
|
972
972
|
function arbitrary$o$delegate$slambda_3($sampleFn, resultContinuation) {
|
|
973
|
-
this.
|
|
973
|
+
this.a6s_1 = $sampleFn;
|
|
974
974
|
CoroutineImpl.call(this, resultContinuation);
|
|
975
975
|
}
|
|
976
|
-
protoOf(arbitrary$o$delegate$slambda_3).
|
|
977
|
-
var tmp = this.
|
|
976
|
+
protoOf(arbitrary$o$delegate$slambda_3).t6p = function ($this$arbitraryBuilder, rs, $completion) {
|
|
977
|
+
var tmp = this.o6o($this$arbitraryBuilder, rs, $completion);
|
|
978
978
|
tmp.f9_1 = Unit_instance;
|
|
979
979
|
tmp.g9_1 = null;
|
|
980
980
|
return tmp.l9();
|
|
981
981
|
};
|
|
982
982
|
protoOf(arbitrary$o$delegate$slambda_3).r9 = function (p1, p2, $completion) {
|
|
983
983
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
984
|
-
return this.
|
|
984
|
+
return this.t6p(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
985
985
|
};
|
|
986
986
|
protoOf(arbitrary$o$delegate$slambda_3).l9 = function () {
|
|
987
987
|
var suspendResult = this.f9_1;
|
|
@@ -992,7 +992,7 @@ protoOf(arbitrary$o$delegate$slambda_3).l9 = function () {
|
|
|
992
992
|
case 0:
|
|
993
993
|
this.e9_1 = 2;
|
|
994
994
|
this.d9_1 = 1;
|
|
995
|
-
suspendResult = this.
|
|
995
|
+
suspendResult = this.a6s_1(this.b6s_1, this.c6s_1, this);
|
|
996
996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
997
|
return suspendResult;
|
|
998
998
|
}
|
|
@@ -1014,31 +1014,31 @@ protoOf(arbitrary$o$delegate$slambda_3).l9 = function () {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
while (true);
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(arbitrary$o$delegate$slambda_3).
|
|
1018
|
-
var i = new arbitrary$o$delegate$slambda_3(this.
|
|
1019
|
-
i.
|
|
1020
|
-
i.
|
|
1017
|
+
protoOf(arbitrary$o$delegate$slambda_3).o6o = function ($this$arbitraryBuilder, rs, completion) {
|
|
1018
|
+
var i = new arbitrary$o$delegate$slambda_3(this.a6s_1, completion);
|
|
1019
|
+
i.b6s_1 = $this$arbitraryBuilder;
|
|
1020
|
+
i.c6s_1 = rs;
|
|
1021
1021
|
return i;
|
|
1022
1022
|
};
|
|
1023
1023
|
function arbitrary$o$delegate$slambda_4($sampleFn, resultContinuation) {
|
|
1024
1024
|
var i = new arbitrary$o$delegate$slambda_3($sampleFn, resultContinuation);
|
|
1025
1025
|
var l = function ($this$arbitraryBuilder, rs, $completion) {
|
|
1026
|
-
return i.
|
|
1026
|
+
return i.t6p($this$arbitraryBuilder, rs, $completion);
|
|
1027
1027
|
};
|
|
1028
1028
|
l.$arity = 2;
|
|
1029
1029
|
return l;
|
|
1030
1030
|
}
|
|
1031
1031
|
function arbitrary$5($shrinker, $edgecaseFn, $sampleFn) {
|
|
1032
|
-
this.
|
|
1032
|
+
this.f6s_1 = $edgecaseFn;
|
|
1033
1033
|
Arb.call(this);
|
|
1034
1034
|
var tmp = this;
|
|
1035
|
-
tmp.
|
|
1035
|
+
tmp.e6s_1 = arbitraryBuilder($shrinker, VOID, VOID, arbitrary$o$delegate$slambda_4($sampleFn, null));
|
|
1036
1036
|
}
|
|
1037
|
-
protoOf(arbitrary$5).
|
|
1038
|
-
return this.
|
|
1037
|
+
protoOf(arbitrary$5).o6m = function (rs) {
|
|
1038
|
+
return this.f6s_1(rs);
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(arbitrary$5).
|
|
1041
|
-
return this.
|
|
1040
|
+
protoOf(arbitrary$5).u6m = function (rs) {
|
|
1041
|
+
return this.e6s_1.u6m(rs);
|
|
1042
1042
|
};
|
|
1043
1043
|
function SingleShotGenerationMode_Edgecase_getInstance() {
|
|
1044
1044
|
SingleShotGenerationMode_initEntries();
|
|
@@ -1062,7 +1062,7 @@ function byteArray(_this__u8e3s4, length, content) {
|
|
|
1062
1062
|
tmp = length;
|
|
1063
1063
|
} else {
|
|
1064
1064
|
if (length instanceof Exhaustive) {
|
|
1065
|
-
tmp = length.
|
|
1065
|
+
tmp = length.t6n();
|
|
1066
1066
|
} else {
|
|
1067
1067
|
noWhenBranchMatchedException();
|
|
1068
1068
|
}
|
|
@@ -1130,7 +1130,7 @@ function byteArray$lambda_0(it) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
function byte$slambda$lambda($it) {
|
|
1132
1132
|
return function () {
|
|
1133
|
-
return first($it.
|
|
1133
|
+
return first($it.k6m_1.qi(1));
|
|
1134
1134
|
};
|
|
1135
1135
|
}
|
|
1136
1136
|
function byte$slambda$lambda_0($min, $max) {
|
|
@@ -1141,19 +1141,19 @@ function byte$slambda$lambda_0($min, $max) {
|
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
1143
1143
|
function byte$slambda($min, $max, resultContinuation) {
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1144
|
+
this.o6s_1 = $min;
|
|
1145
|
+
this.p6s_1 = $max;
|
|
1146
1146
|
CoroutineImpl.call(this, resultContinuation);
|
|
1147
1147
|
}
|
|
1148
|
-
protoOf(byte$slambda).
|
|
1149
|
-
var tmp = this.
|
|
1148
|
+
protoOf(byte$slambda).s6s = function ($this$arbitrary, it, $completion) {
|
|
1149
|
+
var tmp = this.o6o($this$arbitrary, it, $completion);
|
|
1150
1150
|
tmp.f9_1 = Unit_instance;
|
|
1151
1151
|
tmp.g9_1 = null;
|
|
1152
1152
|
return tmp.l9();
|
|
1153
1153
|
};
|
|
1154
1154
|
protoOf(byte$slambda).r9 = function (p1, p2, $completion) {
|
|
1155
1155
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1156
|
-
return this.
|
|
1156
|
+
return this.s6s(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(byte$slambda).l9 = function () {
|
|
1159
1159
|
var suspendResult = this.f9_1;
|
|
@@ -1162,8 +1162,8 @@ protoOf(byte$slambda).l9 = function () {
|
|
|
1162
1162
|
var tmp = this.d9_1;
|
|
1163
1163
|
if (tmp === 0) {
|
|
1164
1164
|
this.e9_1 = 1;
|
|
1165
|
-
var tmp_0 = generateSequence(byte$slambda$lambda(this.
|
|
1166
|
-
return first_0(filter(tmp_0, byte$slambda$lambda_0(this.
|
|
1165
|
+
var tmp_0 = generateSequence(byte$slambda$lambda(this.r6s_1));
|
|
1166
|
+
return first_0(filter(tmp_0, byte$slambda$lambda_0(this.o6s_1, this.p6s_1)));
|
|
1167
1167
|
} else if (tmp === 1) {
|
|
1168
1168
|
throw this.g9_1;
|
|
1169
1169
|
}
|
|
@@ -1173,16 +1173,16 @@ protoOf(byte$slambda).l9 = function () {
|
|
|
1173
1173
|
}
|
|
1174
1174
|
while (true);
|
|
1175
1175
|
};
|
|
1176
|
-
protoOf(byte$slambda).
|
|
1177
|
-
var i = new byte$slambda(this.
|
|
1178
|
-
i.
|
|
1179
|
-
i.
|
|
1176
|
+
protoOf(byte$slambda).o6o = function ($this$arbitrary, it, completion) {
|
|
1177
|
+
var i = new byte$slambda(this.o6s_1, this.p6s_1, completion);
|
|
1178
|
+
i.q6s_1 = $this$arbitrary;
|
|
1179
|
+
i.r6s_1 = it;
|
|
1180
1180
|
return i;
|
|
1181
1181
|
};
|
|
1182
1182
|
function byte$slambda_0($min, $max, resultContinuation) {
|
|
1183
1183
|
var i = new byte$slambda($min, $max, resultContinuation);
|
|
1184
1184
|
var l = function ($this$arbitrary, it, $completion) {
|
|
1185
|
-
return i.
|
|
1185
|
+
return i.s6s($this$arbitrary, it, $completion);
|
|
1186
1186
|
};
|
|
1187
1187
|
l.$arity = 2;
|
|
1188
1188
|
return l;
|
|
@@ -1230,7 +1230,7 @@ function element_0(_this__u8e3s4, collection) {
|
|
|
1230
1230
|
return arbitrary_1(element$slambda_2(collection, null));
|
|
1231
1231
|
}
|
|
1232
1232
|
function list(_this__u8e3s4, gen, range) {
|
|
1233
|
-
range = range === VOID ? PropertyTesting_getInstance().
|
|
1233
|
+
range = range === VOID ? PropertyTesting_getInstance().s6n_1 : range;
|
|
1234
1234
|
// Inline function 'kotlin.check' call
|
|
1235
1235
|
if (!!range.r()) {
|
|
1236
1236
|
throw IllegalStateException_init_$Create$('Check failed.');
|
|
@@ -1244,14 +1244,14 @@ function list(_this__u8e3s4, gen, range) {
|
|
|
1244
1244
|
return arbitrary_2(tmp, tmp_0, list$slambda_0(range, gen, null));
|
|
1245
1245
|
}
|
|
1246
1246
|
function ListShrinker(range) {
|
|
1247
|
-
this.
|
|
1247
|
+
this.t6s_1 = range;
|
|
1248
1248
|
}
|
|
1249
|
-
protoOf(ListShrinker).
|
|
1249
|
+
protoOf(ListShrinker).u6s = function (value) {
|
|
1250
1250
|
var tmp;
|
|
1251
1251
|
if (value.r()) {
|
|
1252
1252
|
tmp = emptyList();
|
|
1253
1253
|
} else if (value.b1() === 1) {
|
|
1254
|
-
tmp = this.
|
|
1254
|
+
tmp = this.t6s_1.fj(0) ? listOf_0(emptyList()) : emptyList();
|
|
1255
1255
|
} else {
|
|
1256
1256
|
// Inline function 'kotlin.collections.filter' call
|
|
1257
1257
|
var tmp0 = listOf([take(value, 1), dropLast(value, 1), take(value, value.b1() / 2 | 0), drop(value, 1)]);
|
|
@@ -1260,7 +1260,7 @@ protoOf(ListShrinker).w6s = function (value) {
|
|
|
1260
1260
|
var _iterator__ex2g4s = tmp0.t();
|
|
1261
1261
|
while (_iterator__ex2g4s.u()) {
|
|
1262
1262
|
var element = _iterator__ex2g4s.v();
|
|
1263
|
-
var progression = this.
|
|
1263
|
+
var progression = this.t6s_1;
|
|
1264
1264
|
var containsLower = progression.p1_1;
|
|
1265
1265
|
var containsUpper = progression.q1_1;
|
|
1266
1266
|
var containsArg = element.b1();
|
|
@@ -1272,22 +1272,22 @@ protoOf(ListShrinker).w6s = function (value) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
return tmp;
|
|
1274
1274
|
};
|
|
1275
|
-
protoOf(ListShrinker).
|
|
1276
|
-
return this.
|
|
1275
|
+
protoOf(ListShrinker).a6o = function (value) {
|
|
1276
|
+
return this.u6s((!(value == null) ? isInterface(value, KtList) : false) ? value : THROW_CCE());
|
|
1277
1277
|
};
|
|
1278
1278
|
function element$slambda($collection, resultContinuation) {
|
|
1279
|
-
this.
|
|
1279
|
+
this.d6t_1 = $collection;
|
|
1280
1280
|
CoroutineImpl.call(this, resultContinuation);
|
|
1281
1281
|
}
|
|
1282
|
-
protoOf(element$slambda).
|
|
1283
|
-
var tmp = this.
|
|
1282
|
+
protoOf(element$slambda).g6t = function ($this$arbitrary, it, $completion) {
|
|
1283
|
+
var tmp = this.o6o($this$arbitrary, it, $completion);
|
|
1284
1284
|
tmp.f9_1 = Unit_instance;
|
|
1285
1285
|
tmp.g9_1 = null;
|
|
1286
1286
|
return tmp.l9();
|
|
1287
1287
|
};
|
|
1288
1288
|
protoOf(element$slambda).r9 = function (p1, p2, $completion) {
|
|
1289
1289
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1290
|
-
return this.
|
|
1290
|
+
return this.g6t(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1291
1291
|
};
|
|
1292
1292
|
protoOf(element$slambda).l9 = function () {
|
|
1293
1293
|
var suspendResult = this.f9_1;
|
|
@@ -1296,7 +1296,7 @@ protoOf(element$slambda).l9 = function () {
|
|
|
1296
1296
|
var tmp = this.d9_1;
|
|
1297
1297
|
if (tmp === 0) {
|
|
1298
1298
|
this.e9_1 = 1;
|
|
1299
|
-
return random(this.
|
|
1299
|
+
return random(this.d6t_1, this.f6t_1.k6m_1);
|
|
1300
1300
|
} else if (tmp === 1) {
|
|
1301
1301
|
throw this.g9_1;
|
|
1302
1302
|
}
|
|
@@ -1306,33 +1306,33 @@ protoOf(element$slambda).l9 = function () {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
while (true);
|
|
1308
1308
|
};
|
|
1309
|
-
protoOf(element$slambda).
|
|
1310
|
-
var i = new element$slambda(this.
|
|
1311
|
-
i.
|
|
1312
|
-
i.
|
|
1309
|
+
protoOf(element$slambda).o6o = function ($this$arbitrary, it, completion) {
|
|
1310
|
+
var i = new element$slambda(this.d6t_1, completion);
|
|
1311
|
+
i.e6t_1 = $this$arbitrary;
|
|
1312
|
+
i.f6t_1 = it;
|
|
1313
1313
|
return i;
|
|
1314
1314
|
};
|
|
1315
1315
|
function element$slambda_0($collection, resultContinuation) {
|
|
1316
1316
|
var i = new element$slambda($collection, resultContinuation);
|
|
1317
1317
|
var l = function ($this$arbitrary, it, $completion) {
|
|
1318
|
-
return i.
|
|
1318
|
+
return i.g6t($this$arbitrary, it, $completion);
|
|
1319
1319
|
};
|
|
1320
1320
|
l.$arity = 2;
|
|
1321
1321
|
return l;
|
|
1322
1322
|
}
|
|
1323
1323
|
function element$slambda_1($collection, resultContinuation) {
|
|
1324
|
-
this.
|
|
1324
|
+
this.p6t_1 = $collection;
|
|
1325
1325
|
CoroutineImpl.call(this, resultContinuation);
|
|
1326
1326
|
}
|
|
1327
|
-
protoOf(element$slambda_1).
|
|
1328
|
-
var tmp = this.
|
|
1327
|
+
protoOf(element$slambda_1).g6t = function ($this$arbitrary, it, $completion) {
|
|
1328
|
+
var tmp = this.o6o($this$arbitrary, it, $completion);
|
|
1329
1329
|
tmp.f9_1 = Unit_instance;
|
|
1330
1330
|
tmp.g9_1 = null;
|
|
1331
1331
|
return tmp.l9();
|
|
1332
1332
|
};
|
|
1333
1333
|
protoOf(element$slambda_1).r9 = function (p1, p2, $completion) {
|
|
1334
1334
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1335
|
-
return this.
|
|
1335
|
+
return this.g6t(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1336
1336
|
};
|
|
1337
1337
|
protoOf(element$slambda_1).l9 = function () {
|
|
1338
1338
|
var suspendResult = this.f9_1;
|
|
@@ -1341,7 +1341,7 @@ protoOf(element$slambda_1).l9 = function () {
|
|
|
1341
1341
|
var tmp = this.d9_1;
|
|
1342
1342
|
if (tmp === 0) {
|
|
1343
1343
|
this.e9_1 = 1;
|
|
1344
|
-
return random_0(this.
|
|
1344
|
+
return random_0(this.p6t_1, this.r6t_1.k6m_1);
|
|
1345
1345
|
} else if (tmp === 1) {
|
|
1346
1346
|
throw this.g9_1;
|
|
1347
1347
|
}
|
|
@@ -1351,16 +1351,16 @@ protoOf(element$slambda_1).l9 = function () {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
while (true);
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(element$slambda_1).
|
|
1355
|
-
var i = new element$slambda_1(this.
|
|
1356
|
-
i.
|
|
1357
|
-
i.
|
|
1354
|
+
protoOf(element$slambda_1).o6o = function ($this$arbitrary, it, completion) {
|
|
1355
|
+
var i = new element$slambda_1(this.p6t_1, completion);
|
|
1356
|
+
i.q6t_1 = $this$arbitrary;
|
|
1357
|
+
i.r6t_1 = it;
|
|
1358
1358
|
return i;
|
|
1359
1359
|
};
|
|
1360
1360
|
function element$slambda_2($collection, resultContinuation) {
|
|
1361
1361
|
var i = new element$slambda_1($collection, resultContinuation);
|
|
1362
1362
|
var l = function ($this$arbitrary, it, $completion) {
|
|
1363
|
-
return i.
|
|
1363
|
+
return i.g6t($this$arbitrary, it, $completion);
|
|
1364
1364
|
};
|
|
1365
1365
|
l.$arity = 2;
|
|
1366
1366
|
return l;
|
|
@@ -1371,8 +1371,8 @@ function list$lambda($gen, $range) {
|
|
|
1371
1371
|
var tmp0_subject = $gen;
|
|
1372
1372
|
var tmp;
|
|
1373
1373
|
if (tmp0_subject instanceof Arb) {
|
|
1374
|
-
var tmp1_elvis_lhs = $gen.
|
|
1375
|
-
tmp = listOf_0((tmp1_elvis_lhs == null ? $gen.
|
|
1374
|
+
var tmp1_elvis_lhs = $gen.o6m(rs);
|
|
1375
|
+
tmp = listOf_0((tmp1_elvis_lhs == null ? $gen.u6m(rs) : tmp1_elvis_lhs).v6m_1);
|
|
1376
1376
|
} else {
|
|
1377
1377
|
if (tmp0_subject instanceof Exhaustive) {
|
|
1378
1378
|
var tmp2_safe_receiver = firstOrNull($gen.s2());
|
|
@@ -1406,8 +1406,8 @@ function list$lambda($gen, $range) {
|
|
|
1406
1406
|
do {
|
|
1407
1407
|
var index = inductionVariable;
|
|
1408
1408
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1409
|
-
var tmp0_elvis_lhs = $gen.
|
|
1410
|
-
var tmp$ret$3 = (tmp0_elvis_lhs == null ? $gen.
|
|
1409
|
+
var tmp0_elvis_lhs = $gen.o6m(rs);
|
|
1410
|
+
var tmp$ret$3 = (tmp0_elvis_lhs == null ? $gen.u6m(rs) : tmp0_elvis_lhs).v6m_1;
|
|
1411
1411
|
list.y(tmp$ret$3);
|
|
1412
1412
|
}
|
|
1413
1413
|
while (inductionVariable < size);
|
|
@@ -1468,24 +1468,24 @@ function list$lambda($gen, $range) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
var tmp4_safe_receiver = tmp_3;
|
|
1470
1470
|
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : distinct(tmp4_safe_receiver);
|
|
1471
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : random(tmp5_safe_receiver, rs.
|
|
1471
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : random(tmp5_safe_receiver, rs.k6m_1);
|
|
1472
1472
|
return tmp6_safe_receiver == null ? null : asSample(tmp6_safe_receiver);
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
1475
|
function list$slambda($range, $gen, resultContinuation) {
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1476
|
+
this.a6u_1 = $range;
|
|
1477
|
+
this.b6u_1 = $gen;
|
|
1478
1478
|
CoroutineImpl.call(this, resultContinuation);
|
|
1479
1479
|
}
|
|
1480
|
-
protoOf(list$slambda).
|
|
1481
|
-
var tmp = this.
|
|
1480
|
+
protoOf(list$slambda).e6u = function ($this$arbitrary, rs, $completion) {
|
|
1481
|
+
var tmp = this.o6o($this$arbitrary, rs, $completion);
|
|
1482
1482
|
tmp.f9_1 = Unit_instance;
|
|
1483
1483
|
tmp.g9_1 = null;
|
|
1484
1484
|
return tmp.l9();
|
|
1485
1485
|
};
|
|
1486
1486
|
protoOf(list$slambda).r9 = function (p1, p2, $completion) {
|
|
1487
1487
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1488
|
-
return this.
|
|
1488
|
+
return this.e6u(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1489
1489
|
};
|
|
1490
1490
|
protoOf(list$slambda).l9 = function () {
|
|
1491
1491
|
var suspendResult = this.f9_1;
|
|
@@ -1494,13 +1494,13 @@ protoOf(list$slambda).l9 = function () {
|
|
|
1494
1494
|
var tmp = this.d9_1;
|
|
1495
1495
|
if (tmp === 0) {
|
|
1496
1496
|
this.e9_1 = 1;
|
|
1497
|
-
var targetSize = nextInt(this.
|
|
1498
|
-
var this_0 = toList(take_0(this.
|
|
1497
|
+
var targetSize = nextInt(this.d6u_1.k6m_1, this.a6u_1);
|
|
1498
|
+
var this_0 = toList(take_0(this.b6u_1.t6m(this.d6u_1), targetSize));
|
|
1499
1499
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1500
1500
|
var _iterator__ex2g4s = this_0.t();
|
|
1501
1501
|
while (_iterator__ex2g4s.u()) {
|
|
1502
1502
|
var item = _iterator__ex2g4s.v();
|
|
1503
|
-
destination.y(item.
|
|
1503
|
+
destination.y(item.v6m_1);
|
|
1504
1504
|
}
|
|
1505
1505
|
return destination;
|
|
1506
1506
|
} else if (tmp === 1) {
|
|
@@ -1512,16 +1512,16 @@ protoOf(list$slambda).l9 = function () {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
while (true);
|
|
1514
1514
|
};
|
|
1515
|
-
protoOf(list$slambda).
|
|
1516
|
-
var i = new list$slambda(this.
|
|
1517
|
-
i.
|
|
1518
|
-
i.
|
|
1515
|
+
protoOf(list$slambda).o6o = function ($this$arbitrary, rs, completion) {
|
|
1516
|
+
var i = new list$slambda(this.a6u_1, this.b6u_1, completion);
|
|
1517
|
+
i.c6u_1 = $this$arbitrary;
|
|
1518
|
+
i.d6u_1 = rs;
|
|
1519
1519
|
return i;
|
|
1520
1520
|
};
|
|
1521
1521
|
function list$slambda_0($range, $gen, resultContinuation) {
|
|
1522
1522
|
var i = new list$slambda($range, $gen, resultContinuation);
|
|
1523
1523
|
var l = function ($this$arbitrary, rs, $completion) {
|
|
1524
|
-
return i.
|
|
1524
|
+
return i.e6u($this$arbitrary, rs, $completion);
|
|
1525
1525
|
};
|
|
1526
1526
|
l.$arity = 2;
|
|
1527
1527
|
return l;
|
|
@@ -1583,9 +1583,9 @@ function getNonFiniteEdgeCases(range, includeNaNs) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
function DoubleShrinker() {
|
|
1585
1585
|
DoubleShrinker_instance = this;
|
|
1586
|
-
this.
|
|
1586
|
+
this.f6u_1 = Regex_init_$Create$('([+-]|)([0-9]*)(\\.[0-9]*|)(e[+-]?[0-9]+|)', RegexOption_IGNORE_CASE_getInstance());
|
|
1587
1587
|
}
|
|
1588
|
-
protoOf(DoubleShrinker).
|
|
1588
|
+
protoOf(DoubleShrinker).g6u = function (value) {
|
|
1589
1589
|
var tmp;
|
|
1590
1590
|
var tmp_0;
|
|
1591
1591
|
if (value === 0.0 || !isFinite(value)) {
|
|
@@ -1597,16 +1597,16 @@ protoOf(DoubleShrinker).i6u = function (value) {
|
|
|
1597
1597
|
if (tmp_0) {
|
|
1598
1598
|
tmp = emptyList();
|
|
1599
1599
|
} else {
|
|
1600
|
-
var tmp0_safe_receiver = this.
|
|
1600
|
+
var tmp0_safe_receiver = this.h6u(value.toString());
|
|
1601
1601
|
tmp = listOfNotNull_0(tmp0_safe_receiver == null ? null : toDouble(tmp0_safe_receiver));
|
|
1602
1602
|
}
|
|
1603
1603
|
return tmp;
|
|
1604
1604
|
};
|
|
1605
|
-
protoOf(DoubleShrinker).
|
|
1606
|
-
return this.
|
|
1605
|
+
protoOf(DoubleShrinker).a6o = function (value) {
|
|
1606
|
+
return this.g6u((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1607
1607
|
};
|
|
1608
|
-
protoOf(DoubleShrinker).
|
|
1609
|
-
var tmp0_elvis_lhs = this.
|
|
1608
|
+
protoOf(DoubleShrinker).h6u = function (value) {
|
|
1609
|
+
var tmp0_elvis_lhs = this.f6u_1.uc(value);
|
|
1610
1610
|
var tmp;
|
|
1611
1611
|
if (tmp0_elvis_lhs == null) {
|
|
1612
1612
|
return null;
|
|
@@ -1690,18 +1690,18 @@ function DoubleShrinker_getInstance() {
|
|
|
1690
1690
|
return DoubleShrinker_instance;
|
|
1691
1691
|
}
|
|
1692
1692
|
function double$slambda($range, resultContinuation) {
|
|
1693
|
-
this.
|
|
1693
|
+
this.q6u_1 = $range;
|
|
1694
1694
|
CoroutineImpl.call(this, resultContinuation);
|
|
1695
1695
|
}
|
|
1696
|
-
protoOf(double$slambda).
|
|
1697
|
-
var tmp = this.
|
|
1696
|
+
protoOf(double$slambda).t6u = function ($this$arbitrary, it, $completion) {
|
|
1697
|
+
var tmp = this.o6o($this$arbitrary, it, $completion);
|
|
1698
1698
|
tmp.f9_1 = Unit_instance;
|
|
1699
1699
|
tmp.g9_1 = null;
|
|
1700
1700
|
return tmp.l9();
|
|
1701
1701
|
};
|
|
1702
1702
|
protoOf(double$slambda).r9 = function (p1, p2, $completion) {
|
|
1703
1703
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1704
|
-
return this.
|
|
1704
|
+
return this.t6u(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1705
1705
|
};
|
|
1706
1706
|
protoOf(double$slambda).l9 = function () {
|
|
1707
1707
|
var suspendResult = this.f9_1;
|
|
@@ -1710,7 +1710,7 @@ protoOf(double$slambda).l9 = function () {
|
|
|
1710
1710
|
var tmp = this.d9_1;
|
|
1711
1711
|
if (tmp === 0) {
|
|
1712
1712
|
this.e9_1 = 1;
|
|
1713
|
-
return this.
|
|
1713
|
+
return this.s6u_1.k6m_1.oi(this.q6u_1.yc(), this.q6u_1.zc());
|
|
1714
1714
|
} else if (tmp === 1) {
|
|
1715
1715
|
throw this.g9_1;
|
|
1716
1716
|
}
|
|
@@ -1720,16 +1720,16 @@ protoOf(double$slambda).l9 = function () {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
while (true);
|
|
1722
1722
|
};
|
|
1723
|
-
protoOf(double$slambda).
|
|
1724
|
-
var i = new double$slambda(this.
|
|
1725
|
-
i.
|
|
1726
|
-
i.
|
|
1723
|
+
protoOf(double$slambda).o6o = function ($this$arbitrary, it, completion) {
|
|
1724
|
+
var i = new double$slambda(this.q6u_1, completion);
|
|
1725
|
+
i.r6u_1 = $this$arbitrary;
|
|
1726
|
+
i.s6u_1 = it;
|
|
1727
1727
|
return i;
|
|
1728
1728
|
};
|
|
1729
1729
|
function double$slambda_0($range, resultContinuation) {
|
|
1730
1730
|
var i = new double$slambda($range, resultContinuation);
|
|
1731
1731
|
var l = function ($this$arbitrary, it, $completion) {
|
|
1732
|
-
return i.
|
|
1732
|
+
return i.t6u($this$arbitrary, it, $completion);
|
|
1733
1733
|
};
|
|
1734
1734
|
l.$arity = 2;
|
|
1735
1735
|
return l;
|
|
@@ -1795,7 +1795,7 @@ function getNonFiniteEdgeCases_0(range, includeNaNs) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
function FloatShrinker() {
|
|
1797
1797
|
}
|
|
1798
|
-
protoOf(FloatShrinker).
|
|
1798
|
+
protoOf(FloatShrinker).u6u = function (value) {
|
|
1799
1799
|
var tmp;
|
|
1800
1800
|
var tmp_0;
|
|
1801
1801
|
if (value === 0.0 || !isFinite_0(value)) {
|
|
@@ -1807,7 +1807,7 @@ protoOf(FloatShrinker).w6u = function (value) {
|
|
|
1807
1807
|
if (tmp_0) {
|
|
1808
1808
|
tmp = emptyList();
|
|
1809
1809
|
} else {
|
|
1810
|
-
var tmp0_safe_receiver = DoubleShrinker_getInstance().
|
|
1810
|
+
var tmp0_safe_receiver = DoubleShrinker_getInstance().h6u(value.toString());
|
|
1811
1811
|
var tmp_1;
|
|
1812
1812
|
if (tmp0_safe_receiver == null) {
|
|
1813
1813
|
tmp_1 = null;
|
|
@@ -1821,26 +1821,26 @@ protoOf(FloatShrinker).w6u = function (value) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
return tmp;
|
|
1823
1823
|
};
|
|
1824
|
-
protoOf(FloatShrinker).
|
|
1825
|
-
return this.
|
|
1824
|
+
protoOf(FloatShrinker).a6o = function (value) {
|
|
1825
|
+
return this.u6u((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
1826
1826
|
};
|
|
1827
1827
|
var FloatShrinker_instance;
|
|
1828
1828
|
function FloatShrinker_getInstance() {
|
|
1829
1829
|
return FloatShrinker_instance;
|
|
1830
1830
|
}
|
|
1831
1831
|
function float$slambda($range, resultContinuation) {
|
|
1832
|
-
this.
|
|
1832
|
+
this.d6v_1 = $range;
|
|
1833
1833
|
CoroutineImpl.call(this, resultContinuation);
|
|
1834
1834
|
}
|
|
1835
|
-
protoOf(float$slambda).
|
|
1836
|
-
var tmp = this.
|
|
1835
|
+
protoOf(float$slambda).g6v = function ($this$arbitrary, it, $completion) {
|
|
1836
|
+
var tmp = this.o6o($this$arbitrary, it, $completion);
|
|
1837
1837
|
tmp.f9_1 = Unit_instance;
|
|
1838
1838
|
tmp.g9_1 = null;
|
|
1839
1839
|
return tmp.l9();
|
|
1840
1840
|
};
|
|
1841
1841
|
protoOf(float$slambda).r9 = function (p1, p2, $completion) {
|
|
1842
1842
|
var tmp = (!(p1 == null) ? isInterface(p1, ArbitraryBuilderContext) : false) ? p1 : THROW_CCE();
|
|
1843
|
-
return this.
|
|
1843
|
+
return this.g6v(tmp, p2 instanceof RandomSource ? p2 : THROW_CCE(), $completion);
|
|
1844
1844
|
};
|
|
1845
1845
|
protoOf(float$slambda).l9 = function () {
|
|
1846
1846
|
var suspendResult = this.f9_1;
|
|
@@ -1849,7 +1849,7 @@ protoOf(float$slambda).l9 = function () {
|
|
|
1849
1849
|
var tmp = this.d9_1;
|
|
1850
1850
|
if (tmp === 0) {
|
|
1851
1851
|
this.e9_1 = 1;
|
|
1852
|
-
return this.
|
|
1852
|
+
return this.f6v_1.k6m_1.oi(this.d6v_1.yc(), this.d6v_1.zc());
|
|
1853
1853
|
} else if (tmp === 1) {
|
|
1854
1854
|
throw this.g9_1;
|
|
1855
1855
|
}
|
|
@@ -1859,16 +1859,16 @@ protoOf(float$slambda).l9 = function () {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
while (true);
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(float$slambda).
|
|
1863
|
-
var i = new float$slambda(this.
|
|
1864
|
-
i.
|
|
1865
|
-
i.
|
|
1862
|
+
protoOf(float$slambda).o6o = function ($this$arbitrary, it, completion) {
|
|
1863
|
+
var i = new float$slambda(this.d6v_1, completion);
|
|
1864
|
+
i.e6v_1 = $this$arbitrary;
|
|
1865
|
+
i.f6v_1 = it;
|
|
1866
1866
|
return i;
|
|
1867
1867
|
};
|
|
1868
1868
|
function float$slambda_0($range, resultContinuation) {
|
|
1869
1869
|
var i = new float$slambda($range, resultContinuation);
|
|
1870
1870
|
var l = function ($this$arbitrary, it, $completion) {
|
|
1871
|
-
return i.
|
|
1871
|
+
return i.g6v($this$arbitrary, it, $completion);
|
|
1872
1872
|
};
|
|
1873
1873
|
l.$arity = 2;
|
|
1874
1874
|
return l;
|
|
@@ -1899,12 +1899,12 @@ function int(_this__u8e3s4, range) {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
var edgeCases = distinct(destination);
|
|
1901
1901
|
var tmp = Companion_instance_2;
|
|
1902
|
-
return tmp.
|
|
1902
|
+
return tmp.x6o(int$lambda(range)).h6p(edgeCases).g6p(new IntShrinker(range)).f6p(IntClassifier_init_$Create$(range)).y1x();
|
|
1903
1903
|
}
|
|
1904
1904
|
function IntShrinker(range) {
|
|
1905
|
-
this.
|
|
1905
|
+
this.h6v_1 = range;
|
|
1906
1906
|
}
|
|
1907
|
-
protoOf(IntShrinker).
|
|
1907
|
+
protoOf(IntShrinker).i6v = function (value) {
|
|
1908
1908
|
var tmp;
|
|
1909
1909
|
switch (value) {
|
|
1910
1910
|
case 0:
|
|
@@ -1921,7 +1921,7 @@ protoOf(IntShrinker).k6v = function (value) {
|
|
|
1921
1921
|
var _iterator__ex2g4s = tmp0.t();
|
|
1922
1922
|
while (_iterator__ex2g4s.u()) {
|
|
1923
1923
|
var element = _iterator__ex2g4s.v();
|
|
1924
|
-
var progression = this.
|
|
1924
|
+
var progression = this.h6v_1;
|
|
1925
1925
|
var containsLower = progression.p1_1;
|
|
1926
1926
|
if (element <= progression.q1_1 ? containsLower <= element : false) {
|
|
1927
1927
|
destination.y(element);
|
|
@@ -1987,7 +1987,7 @@ protoOf(IntShrinker).k6v = function (value) {
|
|
|
1987
1987
|
var _iterator__ex2g4s_2 = destination_2.t();
|
|
1988
1988
|
while (_iterator__ex2g4s_2.u()) {
|
|
1989
1989
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
1990
|
-
var progression_0 = this.
|
|
1990
|
+
var progression_0 = this.h6v_1;
|
|
1991
1991
|
var containsLower_0 = progression_0.p1_1;
|
|
1992
1992
|
if (element_2 <= progression_0.q1_1 ? containsLower_0 <= element_2 : false) {
|
|
1993
1993
|
destination_3.y(element_2);
|
|
@@ -1999,13 +1999,13 @@ protoOf(IntShrinker).k6v = function (value) {
|
|
|
1999
1999
|
}
|
|
2000
2000
|
return tmp;
|
|
2001
2001
|
};
|
|
2002
|
-
protoOf(IntShrinker).
|
|
2003
|
-
return this.
|
|
2002
|
+
protoOf(IntShrinker).a6o = function (value) {
|
|
2003
|
+
return this.i6v((!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
|
|
2004
2004
|
};
|
|
2005
2005
|
function UIntShrinker(range) {
|
|
2006
|
-
this.
|
|
2006
|
+
this.j6v_1 = range;
|
|
2007
2007
|
}
|
|
2008
|
-
protoOf(UIntShrinker).
|
|
2008
|
+
protoOf(UIntShrinker).k6v = function (value) {
|
|
2009
2009
|
var tmp;
|
|
2010
2010
|
if (value === _UInt___init__impl__l7qpdl(0)) {
|
|
2011
2011
|
tmp = emptyList();
|
|
@@ -2018,7 +2018,7 @@ protoOf(UIntShrinker).m6v = function (value) {
|
|
|
2018
2018
|
while (_iterator__ex2g4s.u()) {
|
|
2019
2019
|
var element = _iterator__ex2g4s.v();
|
|
2020
2020
|
var it = element.sn_1;
|
|
2021
|
-
var progression = this.
|
|
2021
|
+
var progression = this.j6v_1;
|
|
2022
2022
|
var containsLower = progression.eo_1;
|
|
2023
2023
|
if (UInt__compareTo_impl_yacclj(it, progression.fo_1) <= 0 ? 0 <= UInt__compareTo_impl_yacclj(it, containsLower) : false) {
|
|
2024
2024
|
destination.y(element);
|
|
@@ -2094,7 +2094,7 @@ protoOf(UIntShrinker).m6v = function (value) {
|
|
|
2094
2094
|
while (_iterator__ex2g4s_2.u()) {
|
|
2095
2095
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
2096
2096
|
var it_0 = element_2.sn_1;
|
|
2097
|
-
var progression_0 = this.
|
|
2097
|
+
var progression_0 = this.j6v_1;
|
|
2098
2098
|
var containsLower_0 = progression_0.eo_1;
|
|
2099
2099
|
if (UInt__compareTo_impl_yacclj(it_0, progression_0.fo_1) <= 0 ? 0 <= UInt__compareTo_impl_yacclj(it_0, containsLower_0) : false) {
|
|
2100
2100
|
destination_3.y(element_2);
|
|
@@ -2104,12 +2104,12 @@ protoOf(UIntShrinker).m6v = function (value) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
return tmp;
|
|
2106
2106
|
};
|
|
2107
|
-
protoOf(UIntShrinker).
|
|
2108
|
-
return this.
|
|
2107
|
+
protoOf(UIntShrinker).a6o = function (value) {
|
|
2108
|
+
return this.k6v(value instanceof UInt ? value.sn_1 : THROW_CCE());
|
|
2109
2109
|
};
|
|
2110
2110
|
function int$lambda($range) {
|
|
2111
2111
|
return function (it) {
|
|
2112
|
-
return nextInt(it.
|
|
2112
|
+
return nextInt(it.k6m_1, $range);
|
|
2113
2113
|
};
|
|
2114
2114
|
}
|
|
2115
2115
|
function long(_this__u8e3s4, range) {
|
|
@@ -2131,12 +2131,12 @@ function long(_this__u8e3s4, range) {
|
|
|
2131
2131
|
}
|
|
2132
2132
|
var edgeCases = distinct(destination);
|
|
2133
2133
|
var tmp = Companion_instance_2;
|
|
2134
|
-
return tmp.
|
|
2134
|
+
return tmp.x6o(long$lambda(range)).h6p(edgeCases).g6p(new LongShrinker(range)).f6p(LongClassifier_init_$Create$(range)).y1x();
|
|
2135
2135
|
}
|
|
2136
2136
|
function LongShrinker(range) {
|
|
2137
|
-
this.
|
|
2137
|
+
this.l6v_1 = range;
|
|
2138
2138
|
}
|
|
2139
|
-
protoOf(LongShrinker).
|
|
2139
|
+
protoOf(LongShrinker).m6v = function (value) {
|
|
2140
2140
|
var tmp;
|
|
2141
2141
|
if (equalsLong(value, new Long(0, 0))) {
|
|
2142
2142
|
tmp = emptyList();
|
|
@@ -2148,7 +2148,7 @@ protoOf(LongShrinker).o6v = function (value) {
|
|
|
2148
2148
|
var _iterator__ex2g4s = tmp0.t();
|
|
2149
2149
|
while (_iterator__ex2g4s.u()) {
|
|
2150
2150
|
var element = _iterator__ex2g4s.v();
|
|
2151
|
-
var progression = this.
|
|
2151
|
+
var progression = this.l6v_1;
|
|
2152
2152
|
var containsLower = progression.si_1;
|
|
2153
2153
|
if (compare(element, progression.ti_1) <= 0 ? compare(containsLower, element) <= 0 : false) {
|
|
2154
2154
|
destination.y(element);
|
|
@@ -2214,7 +2214,7 @@ protoOf(LongShrinker).o6v = function (value) {
|
|
|
2214
2214
|
var _iterator__ex2g4s_2 = destination_2.t();
|
|
2215
2215
|
while (_iterator__ex2g4s_2.u()) {
|
|
2216
2216
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
2217
|
-
var progression_0 = this.
|
|
2217
|
+
var progression_0 = this.l6v_1;
|
|
2218
2218
|
var containsLower_0 = progression_0.si_1;
|
|
2219
2219
|
if (compare(element_2, progression_0.ti_1) <= 0 ? compare(containsLower_0, element_2) <= 0 : false) {
|
|
2220
2220
|
destination_3.y(element_2);
|
|
@@ -2224,20 +2224,20 @@ protoOf(LongShrinker).o6v = function (value) {
|
|
|
2224
2224
|
}
|
|
2225
2225
|
return tmp;
|
|
2226
2226
|
};
|
|
2227
|
-
protoOf(LongShrinker).
|
|
2228
|
-
return this.
|
|
2227
|
+
protoOf(LongShrinker).a6o = function (value) {
|
|
2228
|
+
return this.m6v(value instanceof Long ? value : THROW_CCE());
|
|
2229
2229
|
};
|
|
2230
2230
|
function long$lambda($range) {
|
|
2231
2231
|
return function (it) {
|
|
2232
|
-
return nextLong(it.
|
|
2232
|
+
return nextLong(it.k6m_1, $range);
|
|
2233
2233
|
};
|
|
2234
2234
|
}
|
|
2235
2235
|
function trampoline(_this__u8e3s4, next) {
|
|
2236
2236
|
var tmp;
|
|
2237
2237
|
if (_this__u8e3s4 instanceof TrampolineArb) {
|
|
2238
|
-
tmp = _this__u8e3s4.
|
|
2238
|
+
tmp = _this__u8e3s4.q6v(next);
|
|
2239
2239
|
} else {
|
|
2240
|
-
tmp = TrampolineArb_init_$Create$(_this__u8e3s4).
|
|
2240
|
+
tmp = TrampolineArb_init_$Create$(_this__u8e3s4).q6v(next);
|
|
2241
2241
|
}
|
|
2242
2242
|
return tmp;
|
|
2243
2243
|
}
|
|
@@ -2250,39 +2250,39 @@ function TrampolineArb_init_$Create$(first) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
function TrampolineArb(first, commands) {
|
|
2252
2252
|
Arb.call(this);
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2253
|
+
this.o6v_1 = first;
|
|
2254
|
+
this.p6v_1 = commands;
|
|
2255
2255
|
}
|
|
2256
|
-
protoOf(TrampolineArb).
|
|
2257
|
-
var tmp = new TrampolineArb(this.
|
|
2256
|
+
protoOf(TrampolineArb).q6v = function (fn) {
|
|
2257
|
+
var tmp = new TrampolineArb(this.o6v_1, plus_1(this.p6v_1, typeof fn === 'function' ? fn : THROW_CCE()));
|
|
2258
2258
|
return tmp instanceof TrampolineArb ? tmp : THROW_CCE();
|
|
2259
2259
|
};
|
|
2260
|
-
protoOf(TrampolineArb).
|
|
2261
|
-
var tmp0 = this.
|
|
2260
|
+
protoOf(TrampolineArb).o6m = function (rs) {
|
|
2261
|
+
var tmp0 = this.p6v_1;
|
|
2262
2262
|
// Inline function 'kotlin.collections.fold' call
|
|
2263
|
-
var accumulator = this.
|
|
2263
|
+
var accumulator = this.o6v_1;
|
|
2264
2264
|
var _iterator__ex2g4s = tmp0.t();
|
|
2265
2265
|
while (_iterator__ex2g4s.u()) {
|
|
2266
2266
|
var element = _iterator__ex2g4s.v();
|
|
2267
2267
|
var currentArb = accumulator;
|
|
2268
|
-
var tmp0_elvis_lhs = currentArb.
|
|
2269
|
-
var currentEdge = tmp0_elvis_lhs == null ? currentArb.
|
|
2268
|
+
var tmp0_elvis_lhs = currentArb.o6m(rs);
|
|
2269
|
+
var currentEdge = tmp0_elvis_lhs == null ? currentArb.u6m(rs) : tmp0_elvis_lhs;
|
|
2270
2270
|
var tmp = element(currentEdge instanceof Sample ? currentEdge : THROW_CCE());
|
|
2271
2271
|
accumulator = tmp instanceof Arb ? tmp : THROW_CCE();
|
|
2272
2272
|
}
|
|
2273
|
-
return accumulator.
|
|
2273
|
+
return accumulator.o6m(rs);
|
|
2274
2274
|
};
|
|
2275
|
-
protoOf(TrampolineArb).
|
|
2276
|
-
var tmp0 = this.
|
|
2277
|
-
var tmp = this.
|
|
2275
|
+
protoOf(TrampolineArb).u6m = function (rs) {
|
|
2276
|
+
var tmp0 = this.p6v_1;
|
|
2277
|
+
var tmp = this.o6v_1;
|
|
2278
2278
|
// Inline function 'kotlin.collections.fold' call
|
|
2279
2279
|
var accumulator = tmp instanceof Arb ? tmp : THROW_CCE();
|
|
2280
2280
|
var _iterator__ex2g4s = tmp0.t();
|
|
2281
2281
|
while (_iterator__ex2g4s.u()) {
|
|
2282
2282
|
var element = _iterator__ex2g4s.v();
|
|
2283
|
-
accumulator = element(accumulator.
|
|
2283
|
+
accumulator = element(accumulator.u6m(rs));
|
|
2284
2284
|
}
|
|
2285
|
-
var tmp_0 = accumulator.
|
|
2285
|
+
var tmp_0 = accumulator.u6m(rs);
|
|
2286
2286
|
return tmp_0 instanceof Sample ? tmp_0 : THROW_CCE();
|
|
2287
2287
|
};
|
|
2288
2288
|
function map_0(_this__u8e3s4, fn) {
|
|
@@ -2292,16 +2292,16 @@ function flatMap(_this__u8e3s4, fn) {
|
|
|
2292
2292
|
return trampoline(_this__u8e3s4, flatMap$lambda(fn));
|
|
2293
2293
|
}
|
|
2294
2294
|
function map$2$1($fn, $sampleA) {
|
|
2295
|
-
this.
|
|
2296
|
-
this.
|
|
2295
|
+
this.s6v_1 = $fn;
|
|
2296
|
+
this.t6v_1 = $sampleA;
|
|
2297
2297
|
Arb.call(this);
|
|
2298
2298
|
}
|
|
2299
|
-
protoOf(map$2$1).
|
|
2300
|
-
return asSample(this.
|
|
2299
|
+
protoOf(map$2$1).o6m = function (rs) {
|
|
2300
|
+
return asSample(this.s6v_1(this.t6v_1.v6m_1));
|
|
2301
2301
|
};
|
|
2302
|
-
protoOf(map$2$1).
|
|
2303
|
-
var value = this.
|
|
2304
|
-
var shrinks = map(this.
|
|
2302
|
+
protoOf(map$2$1).u6m = function (rs) {
|
|
2303
|
+
var value = this.s6v_1(this.t6v_1.v6m_1);
|
|
2304
|
+
var shrinks = map(this.t6v_1.w6m_1, this.s6v_1);
|
|
2305
2305
|
return new Sample(value, shrinks);
|
|
2306
2306
|
};
|
|
2307
2307
|
function map$lambda_1($fn) {
|
|
@@ -2311,7 +2311,7 @@ function map$lambda_1($fn) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
function flatMap$lambda($fn) {
|
|
2313
2313
|
return function (it) {
|
|
2314
|
-
return $fn(it.
|
|
2314
|
+
return $fn(it.v6m_1);
|
|
2315
2315
|
};
|
|
2316
2316
|
}
|
|
2317
2317
|
function IntClassifier_init_$Init$(range, $this) {
|
|
@@ -2322,8 +2322,8 @@ function IntClassifier_init_$Create$(range) {
|
|
|
2322
2322
|
return IntClassifier_init_$Init$(range, objectCreate(protoOf(IntClassifier)));
|
|
2323
2323
|
}
|
|
2324
2324
|
function IntClassifier(min, max) {
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2325
|
+
this.u6v_1 = min;
|
|
2326
|
+
this.v6v_1 = max;
|
|
2327
2327
|
}
|
|
2328
2328
|
function LongClassifier_init_$Init$(range, $this) {
|
|
2329
2329
|
LongClassifier.call($this, range.si_1, range.ti_1);
|
|
@@ -2333,29 +2333,29 @@ function LongClassifier_init_$Create$(range) {
|
|
|
2333
2333
|
return LongClassifier_init_$Init$(range, objectCreate(protoOf(LongClassifier)));
|
|
2334
2334
|
}
|
|
2335
2335
|
function LongClassifier(min, max) {
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2336
|
+
this.w6v_1 = min;
|
|
2337
|
+
this.x6v_1 = max;
|
|
2338
2338
|
}
|
|
2339
2339
|
function default_0(_this__u8e3s4) {
|
|
2340
|
-
return new EdgeConfig(PropertyTesting_getInstance().
|
|
2340
|
+
return new EdgeConfig(PropertyTesting_getInstance().k6n_1);
|
|
2341
2341
|
}
|
|
2342
2342
|
function PropertyTesting$defaultSeed$lambda(it) {
|
|
2343
2343
|
return toLong(it);
|
|
2344
2344
|
}
|
|
2345
2345
|
function PropertyTesting() {
|
|
2346
2346
|
PropertyTesting_instance = this;
|
|
2347
|
-
this.
|
|
2348
|
-
this.
|
|
2349
|
-
this.
|
|
2350
|
-
this.
|
|
2351
|
-
this.
|
|
2352
|
-
this.
|
|
2353
|
-
this.
|
|
2347
|
+
this.x6m_1 = 10;
|
|
2348
|
+
this.y6m_1 = sysprop('kotest.proptest.output.shrink-steps', true);
|
|
2349
|
+
this.z6m_1 = sysprop('kotest.proptest.output.generated-values', false);
|
|
2350
|
+
this.a6n_1 = sysprop('kotest.proptest.output.config', false);
|
|
2351
|
+
this.b6n_1 = sysprop_0('kotest.proptest.arb.edgecases-bind-determinism', 0.9);
|
|
2352
|
+
this.c6n_1 = sysprop_1('kotest.proptest.max.discard.percentage', 20);
|
|
2353
|
+
this.d6n_1 = sysprop_1('kotest.proptest.discard.threshold', 50);
|
|
2354
2354
|
var tmp = this;
|
|
2355
|
-
tmp.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2355
|
+
tmp.e6n_1 = sysprop_2('kotest.proptest.default.seed', null, PropertyTesting$defaultSeed$lambda);
|
|
2356
|
+
this.f6n_1 = sysprop_1('kotest.proptest.default.min-success', 2147483647);
|
|
2357
|
+
this.g6n_1 = sysprop_1('kotest.proptest.default.max-failure', 0);
|
|
2358
|
+
this.h6n_1 = sysprop_1('kotest.proptest.default.iteration.count', 1000);
|
|
2359
2359
|
var tmp_0 = this;
|
|
2360
2360
|
var mode = sysprop_3('kotest.proptest.default.shrinking.mode', 'bounded');
|
|
2361
2361
|
var tmp_1;
|
|
@@ -2373,19 +2373,19 @@ function PropertyTesting() {
|
|
|
2373
2373
|
var message = 'Invalid shrinking mode: ' + mode;
|
|
2374
2374
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
2375
2375
|
}
|
|
2376
|
-
tmp_0.
|
|
2376
|
+
tmp_0.i6n_1 = tmp_1;
|
|
2377
2377
|
var tmp_2 = this;
|
|
2378
2378
|
// Inline function 'kotlin.collections.listOf' call
|
|
2379
|
-
tmp_2.
|
|
2380
|
-
this.
|
|
2381
|
-
this.
|
|
2382
|
-
this.
|
|
2383
|
-
this.
|
|
2384
|
-
this.
|
|
2385
|
-
this.
|
|
2386
|
-
this.
|
|
2387
|
-
this.
|
|
2388
|
-
this.
|
|
2379
|
+
tmp_2.j6n_1 = emptyList();
|
|
2380
|
+
this.k6n_1 = sysprop_0('kotest.proptest.arb.edgecases-generation-probability', 0.02);
|
|
2381
|
+
this.l6n_1 = sysprop('kotest.proptest.arb.output.classifications', false);
|
|
2382
|
+
this.m6n_1 = sysprop('kotest.proptest.seed.fail-if-set', false);
|
|
2383
|
+
this.n6n_1 = sysprop('kotest.proptest.seed.write-failed', true);
|
|
2384
|
+
this.o6n_1 = LabelOrder_Quantity_getInstance();
|
|
2385
|
+
this.p6n_1 = DefaultStatisticsReporter_instance;
|
|
2386
|
+
this.q6n_1 = StatisticsReportMode_ON_getInstance();
|
|
2387
|
+
this.r6n_1 = sysprop('kotest.proptest.arb.string.output-hex-for-unprintable-chars', false);
|
|
2388
|
+
this.s6n_1 = numberRangeToNumber(0, 100);
|
|
2389
2389
|
}
|
|
2390
2390
|
var PropertyTesting_instance;
|
|
2391
2391
|
function PropertyTesting_getInstance() {
|
|
@@ -2412,10 +2412,10 @@ function LabelOrder_Quantity_getInstance() {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
function Companion_2() {
|
|
2414
2414
|
}
|
|
2415
|
-
protoOf(Companion_2).
|
|
2415
|
+
protoOf(Companion_2).y6v = function (seed) {
|
|
2416
2416
|
return new RandomSource(Random(seed), seed);
|
|
2417
2417
|
};
|
|
2418
|
-
protoOf(Companion_2).
|
|
2418
|
+
protoOf(Companion_2).c6o = function () {
|
|
2419
2419
|
var seed = Default_getInstance().yf();
|
|
2420
2420
|
return new RandomSource(Random(seed), seed);
|
|
2421
2421
|
};
|
|
@@ -2424,15 +2424,15 @@ function Companion_getInstance_2() {
|
|
|
2424
2424
|
return Companion_instance_3;
|
|
2425
2425
|
}
|
|
2426
2426
|
function RandomSource(random, seed) {
|
|
2427
|
-
this.
|
|
2428
|
-
this.
|
|
2427
|
+
this.k6m_1 = random;
|
|
2428
|
+
this.l6m_1 = seed;
|
|
2429
2429
|
}
|
|
2430
2430
|
protoOf(RandomSource).toString = function () {
|
|
2431
|
-
return 'RandomSource(random=' + toString(this.
|
|
2431
|
+
return 'RandomSource(random=' + toString(this.k6m_1) + ', seed=' + this.l6m_1.toString() + ')';
|
|
2432
2432
|
};
|
|
2433
2433
|
protoOf(RandomSource).hashCode = function () {
|
|
2434
|
-
var result = hashCode(this.
|
|
2435
|
-
result = imul(result, 31) + this.
|
|
2434
|
+
var result = hashCode(this.k6m_1);
|
|
2435
|
+
result = imul(result, 31) + this.l6m_1.hashCode() | 0;
|
|
2436
2436
|
return result;
|
|
2437
2437
|
};
|
|
2438
2438
|
protoOf(RandomSource).equals = function (other) {
|
|
@@ -2440,9 +2440,9 @@ protoOf(RandomSource).equals = function (other) {
|
|
|
2440
2440
|
return true;
|
|
2441
2441
|
if (!(other instanceof RandomSource))
|
|
2442
2442
|
return false;
|
|
2443
|
-
if (!equals(this.
|
|
2443
|
+
if (!equals(this.k6m_1, other.k6m_1))
|
|
2444
2444
|
return false;
|
|
2445
|
-
if (!equalsLong(this.
|
|
2445
|
+
if (!equalsLong(this.l6m_1, other.l6m_1))
|
|
2446
2446
|
return false;
|
|
2447
2447
|
return true;
|
|
2448
2448
|
};
|