@tuprolog/2p-full 0.31.5-dev0c → 0.31.5-dev0f
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/2p-bdd.js +141 -141
- package/2p-core.js +2841 -2841
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +573 -573
- package/2p-oop-lib.js +815 -815
- package/2p-parser-core.js +136 -136
- package/2p-parser-theory.js +11 -11
- package/2p-repl.js +80 -80
- package/2p-solve-classic.js +936 -936
- package/2p-solve-plp.js +1 -1
- package/2p-solve-problog.js +1250 -1250
- package/2p-solve-streams.js +851 -851
- package/2p-solve.js +3409 -3409
- package/2p-theory.js +1258 -1258
- package/2p-unify.js +208 -208
- package/2p-utils.js +324 -324
- package/clikt-clikt-js-ir.js +1143 -1180
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +754 -741
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kt-math.js +2184 -2184
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
package/2p-utils.js
CHANGED
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
var got = this.a3(key);
|
|
60
60
|
var tmp;
|
|
61
61
|
if (got instanceof Some) {
|
|
62
|
-
tmp = got.
|
|
62
|
+
tmp = got.gq_1;
|
|
63
63
|
} else {
|
|
64
64
|
var tmp$ret$0;
|
|
65
65
|
// Inline function 'kotlin.also' call
|
|
66
66
|
var tmp0_also = valueGenerator();
|
|
67
67
|
// Inline function 'kotlin.contracts.contract' call
|
|
68
68
|
// Inline function 'it.unibo.tuprolog.utils.Cache.getOrSet.<anonymous>' call
|
|
69
|
-
this.
|
|
69
|
+
this.eq(key, tmp0_also);
|
|
70
70
|
tmp$ret$0 = tmp0_also;
|
|
71
71
|
tmp = tmp$ret$0;
|
|
72
72
|
}
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
77
77
|
function ifValid(consumer) {
|
|
78
78
|
var tmp;
|
|
79
|
-
if (this.
|
|
79
|
+
if (this.iq()) {
|
|
80
80
|
var tmp_0 = Companion_getInstance_7();
|
|
81
81
|
var tmp$ret$0;
|
|
82
82
|
// Inline function 'kotlin.let' call
|
|
83
83
|
var tmp0_let = this.b1();
|
|
84
84
|
// Inline function 'kotlin.contracts.contract' call
|
|
85
85
|
tmp$ret$0 = consumer(tmp0_let);
|
|
86
|
-
tmp = tmp_0.
|
|
86
|
+
tmp = tmp_0.mq(tmp$ret$0);
|
|
87
87
|
} else {
|
|
88
|
-
tmp = Companion_getInstance_7().
|
|
88
|
+
tmp = Companion_getInstance_7().lq();
|
|
89
89
|
}
|
|
90
90
|
return tmp;
|
|
91
91
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
setMetadataFor(Cursor, 'Cursor', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
113
113
|
function component1() {
|
|
114
|
-
return this.
|
|
114
|
+
return this.vq();
|
|
115
115
|
}
|
|
116
116
|
function component2() {
|
|
117
117
|
return this.b1();
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
setMetadataFor(Indexed, 'Indexed', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
120
120
|
setMetadataFor(Companion_2, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
121
121
|
function compareTo(other) {
|
|
122
|
-
return this.
|
|
122
|
+
return this.vq() - other.vq() | 0;
|
|
123
123
|
}
|
|
124
124
|
setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, undefined, [Indexed, Comparable], undefined, undefined, []);
|
|
125
125
|
setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta, undefined, undefined, undefined, undefined, []);
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
|
|
130
130
|
setMetadataFor(Companion_3, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
131
131
|
function compareTo_0(other) {
|
|
132
|
-
return this.
|
|
132
|
+
return this.vq().ah(other.vq()).ph();
|
|
133
133
|
}
|
|
134
134
|
setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, undefined, [Indexed, Comparable], undefined, undefined, []);
|
|
135
135
|
setMetadataFor(Companion_4, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
@@ -139,13 +139,13 @@
|
|
|
139
139
|
setMetadataFor(Some, 'Some', classMeta, Optional, undefined, undefined, undefined, []);
|
|
140
140
|
setMetadataFor(None, 'None', objectMeta, Optional, undefined, undefined, undefined, []);
|
|
141
141
|
function getTag(name) {
|
|
142
|
-
var tmp = this.
|
|
142
|
+
var tmp = this.ht().a3(name);
|
|
143
143
|
return (tmp == null ? true : isObject(tmp)) ? tmp : THROW_CCE();
|
|
144
144
|
}
|
|
145
145
|
function containsTag(name) {
|
|
146
146
|
var tmp$ret$1;
|
|
147
147
|
// Inline function 'kotlin.collections.contains' call
|
|
148
|
-
var tmp0_contains = this.
|
|
148
|
+
var tmp0_contains = this.ht();
|
|
149
149
|
var tmp$ret$0;
|
|
150
150
|
// Inline function 'kotlin.collections.containsKey' call
|
|
151
151
|
tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).u2(name);
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
function Companion() {
|
|
171
171
|
Companion_instance = this;
|
|
172
172
|
}
|
|
173
|
-
Companion.prototype.
|
|
173
|
+
Companion.prototype.dq = function (capacity) {
|
|
174
174
|
return new SimpleLRUCache(capacity);
|
|
175
175
|
};
|
|
176
176
|
var Companion_instance;
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
function Companion_0() {
|
|
185
185
|
Companion_instance_0 = this;
|
|
186
186
|
}
|
|
187
|
-
Companion_0.prototype.
|
|
187
|
+
Companion_0.prototype.hq = function (generator) {
|
|
188
188
|
return new CachedImpl(generator);
|
|
189
189
|
};
|
|
190
190
|
var Companion_instance_0;
|
|
@@ -216,21 +216,21 @@
|
|
|
216
216
|
return Companion_instance_1;
|
|
217
217
|
}
|
|
218
218
|
function _no_name_provided__qut3iv(this$0) {
|
|
219
|
-
this.
|
|
219
|
+
this.oq_1 = this$0;
|
|
220
220
|
}
|
|
221
221
|
_no_name_provided__qut3iv.prototype.j = function () {
|
|
222
222
|
var tmp$ret$0;
|
|
223
223
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asIterable.<anonymous>' call
|
|
224
|
-
tmp$ret$0 = this.
|
|
224
|
+
tmp$ret$0 = this.oq_1.iterator();
|
|
225
225
|
return tmp$ret$0;
|
|
226
226
|
};
|
|
227
227
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
228
|
-
this.
|
|
228
|
+
this.pq_1 = this$0;
|
|
229
229
|
}
|
|
230
230
|
_no_name_provided__qut3iv_0.prototype.j = function () {
|
|
231
231
|
var tmp$ret$0;
|
|
232
232
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asSequence.<anonymous>' call
|
|
233
|
-
tmp$ret$0 = this.
|
|
233
|
+
tmp$ret$0 = this.pq_1.iterator();
|
|
234
234
|
return tmp$ret$0;
|
|
235
235
|
};
|
|
236
236
|
function Cursor() {
|
|
@@ -245,17 +245,17 @@
|
|
|
245
245
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
246
246
|
}
|
|
247
247
|
function plus(_this__u8e3s4, other) {
|
|
248
|
-
return other.
|
|
248
|
+
return other.sq() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.sq() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
249
249
|
}
|
|
250
250
|
function toCursor(_this__u8e3s4) {
|
|
251
|
-
return Companion_getInstance_8().
|
|
251
|
+
return Companion_getInstance_8().uq(_this__u8e3s4);
|
|
252
252
|
}
|
|
253
253
|
function Indexed() {
|
|
254
254
|
}
|
|
255
255
|
function Companion_2() {
|
|
256
256
|
Companion_instance_2 = this;
|
|
257
257
|
}
|
|
258
|
-
Companion_2.prototype.
|
|
258
|
+
Companion_2.prototype.wq = function (index, value) {
|
|
259
259
|
return new IntIndexedImpl(index, value);
|
|
260
260
|
};
|
|
261
261
|
var Companion_instance_2;
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
var i = iterable.j();
|
|
275
275
|
while (i.m()) {
|
|
276
276
|
var tmp = imul(31, hash);
|
|
277
|
-
var tmp0_safe_receiver = i.
|
|
277
|
+
var tmp0_safe_receiver = i.n();
|
|
278
278
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
279
279
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
280
280
|
}
|
|
@@ -299,8 +299,8 @@
|
|
|
299
299
|
var i = iterable1.j();
|
|
300
300
|
var j = iterable2.j();
|
|
301
301
|
while (i.m() ? j.m() : false) {
|
|
302
|
-
var a = i.
|
|
303
|
-
var b = j.
|
|
302
|
+
var a = i.n();
|
|
303
|
+
var b = j.n();
|
|
304
304
|
if (!comparator(a, b)) {
|
|
305
305
|
return false;
|
|
306
306
|
}
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
323
323
|
var tmp0_iterator = iterables.j();
|
|
324
324
|
while (tmp0_iterator.m()) {
|
|
325
|
-
var item = tmp0_iterator.
|
|
325
|
+
var item = tmp0_iterator.n();
|
|
326
326
|
var tmp$ret$0;
|
|
327
327
|
// Inline function 'it.unibo.tuprolog.utils.mergeSequences.<anonymous>' call
|
|
328
328
|
tmp$ret$0 = asIterable(item);
|
|
@@ -340,187 +340,187 @@
|
|
|
340
340
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
341
341
|
}
|
|
342
342
|
function sam$kotlin_Comparator$0(function_0) {
|
|
343
|
-
this.
|
|
343
|
+
this.yq_1 = function_0;
|
|
344
344
|
}
|
|
345
345
|
sam$kotlin_Comparator$0.prototype.cg = function (a, b) {
|
|
346
|
-
return this.
|
|
346
|
+
return this.yq_1(a, b);
|
|
347
347
|
};
|
|
348
348
|
sam$kotlin_Comparator$0.prototype.compare = function (a, b) {
|
|
349
349
|
return this.cg(a, b);
|
|
350
350
|
};
|
|
351
351
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
352
|
-
this.
|
|
352
|
+
this.hr_1 = $this_dropLast;
|
|
353
353
|
CoroutineImpl.call(this, resultContinuation);
|
|
354
354
|
}
|
|
355
|
-
dropLast$slambda.prototype.
|
|
356
|
-
var tmp = this.
|
|
357
|
-
tmp.
|
|
358
|
-
tmp.
|
|
359
|
-
return tmp.
|
|
355
|
+
dropLast$slambda.prototype.lr = function ($this$sequence, $cont) {
|
|
356
|
+
var tmp = this.mr($this$sequence, $cont);
|
|
357
|
+
tmp.bi_1 = Unit_getInstance();
|
|
358
|
+
tmp.ci_1 = null;
|
|
359
|
+
return tmp.hi();
|
|
360
360
|
};
|
|
361
|
-
dropLast$slambda.prototype.
|
|
362
|
-
return this.
|
|
361
|
+
dropLast$slambda.prototype.ti = function (p1, $cont) {
|
|
362
|
+
return this.lr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
363
363
|
};
|
|
364
|
-
dropLast$slambda.prototype.
|
|
365
|
-
var suspendResult = this.
|
|
364
|
+
dropLast$slambda.prototype.hi = function () {
|
|
365
|
+
var suspendResult = this.bi_1;
|
|
366
366
|
$sm: do
|
|
367
367
|
try {
|
|
368
|
-
var tmp = this.
|
|
368
|
+
var tmp = this.zh_1;
|
|
369
369
|
switch (tmp) {
|
|
370
370
|
case 0:
|
|
371
|
-
this.
|
|
372
|
-
this.
|
|
373
|
-
this.
|
|
371
|
+
this.ai_1 = 5;
|
|
372
|
+
this.jr_1 = this.hr_1.j();
|
|
373
|
+
this.zh_1 = 1;
|
|
374
374
|
continue $sm;
|
|
375
375
|
case 1:
|
|
376
|
-
if (!this.
|
|
377
|
-
this.
|
|
376
|
+
if (!this.jr_1.m()) {
|
|
377
|
+
this.zh_1 = 4;
|
|
378
378
|
continue $sm;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
this.
|
|
382
|
-
if (this.
|
|
383
|
-
this.
|
|
384
|
-
suspendResult = this.
|
|
381
|
+
this.kr_1 = this.jr_1.n();
|
|
382
|
+
if (this.jr_1.m()) {
|
|
383
|
+
this.zh_1 = 2;
|
|
384
|
+
suspendResult = this.ir_1.z4(this.kr_1, this);
|
|
385
385
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
386
386
|
return suspendResult;
|
|
387
387
|
}
|
|
388
388
|
continue $sm;
|
|
389
389
|
} else {
|
|
390
|
-
this.
|
|
390
|
+
this.zh_1 = 3;
|
|
391
391
|
continue $sm;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
break;
|
|
395
395
|
case 2:
|
|
396
|
-
this.
|
|
396
|
+
this.zh_1 = 3;
|
|
397
397
|
continue $sm;
|
|
398
398
|
case 3:
|
|
399
|
-
this.
|
|
399
|
+
this.zh_1 = 1;
|
|
400
400
|
continue $sm;
|
|
401
401
|
case 4:
|
|
402
402
|
return Unit_getInstance();
|
|
403
403
|
case 5:
|
|
404
|
-
throw this.
|
|
404
|
+
throw this.ci_1;
|
|
405
405
|
}
|
|
406
406
|
} catch ($p) {
|
|
407
|
-
if (this.
|
|
407
|
+
if (this.ai_1 === 5) {
|
|
408
408
|
throw $p;
|
|
409
409
|
} else {
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
410
|
+
this.zh_1 = this.ai_1;
|
|
411
|
+
this.ci_1 = $p;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
while (true);
|
|
415
415
|
};
|
|
416
|
-
dropLast$slambda.prototype.
|
|
417
|
-
var i = new dropLast$slambda(this.
|
|
418
|
-
i.
|
|
416
|
+
dropLast$slambda.prototype.mr = function ($this$sequence, completion) {
|
|
417
|
+
var i = new dropLast$slambda(this.hr_1, completion);
|
|
418
|
+
i.ir_1 = $this$sequence;
|
|
419
419
|
return i;
|
|
420
420
|
};
|
|
421
421
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
422
422
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
423
423
|
var l = function ($this$sequence, $cont) {
|
|
424
|
-
return i.
|
|
424
|
+
return i.lr($this$sequence, $cont);
|
|
425
425
|
};
|
|
426
426
|
l.$arity = 1;
|
|
427
427
|
return l;
|
|
428
428
|
}
|
|
429
429
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
430
|
+
this.wr_1 = $this_insertAt;
|
|
431
|
+
this.xr_1 = $index;
|
|
432
|
+
this.yr_1 = $item;
|
|
433
|
+
this.zr_1 = $items;
|
|
434
434
|
CoroutineImpl.call(this, resultContinuation);
|
|
435
435
|
}
|
|
436
|
-
insertAt$slambda.prototype.
|
|
437
|
-
var tmp = this.
|
|
438
|
-
tmp.
|
|
439
|
-
tmp.
|
|
440
|
-
return tmp.
|
|
436
|
+
insertAt$slambda.prototype.lr = function ($this$sequence, $cont) {
|
|
437
|
+
var tmp = this.mr($this$sequence, $cont);
|
|
438
|
+
tmp.bi_1 = Unit_getInstance();
|
|
439
|
+
tmp.ci_1 = null;
|
|
440
|
+
return tmp.hi();
|
|
441
441
|
};
|
|
442
|
-
insertAt$slambda.prototype.
|
|
443
|
-
return this.
|
|
442
|
+
insertAt$slambda.prototype.ti = function (p1, $cont) {
|
|
443
|
+
return this.lr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
444
444
|
};
|
|
445
|
-
insertAt$slambda.prototype.
|
|
446
|
-
var suspendResult = this.
|
|
445
|
+
insertAt$slambda.prototype.hi = function () {
|
|
446
|
+
var suspendResult = this.bi_1;
|
|
447
447
|
$sm: do
|
|
448
448
|
try {
|
|
449
|
-
var tmp = this.
|
|
449
|
+
var tmp = this.zh_1;
|
|
450
450
|
switch (tmp) {
|
|
451
451
|
case 0:
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
452
|
+
this.ai_1 = 7;
|
|
453
|
+
this.bs_1 = asIterable(withIndex(this.wr_1)).j();
|
|
454
|
+
this.zh_1 = 1;
|
|
455
455
|
continue $sm;
|
|
456
456
|
case 1:
|
|
457
|
-
if (!this.
|
|
458
|
-
this.
|
|
457
|
+
if (!this.bs_1.m()) {
|
|
458
|
+
this.zh_1 = 6;
|
|
459
459
|
continue $sm;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
464
|
-
this.
|
|
465
|
-
if (this.
|
|
466
|
-
this.
|
|
467
|
-
suspendResult = this.
|
|
462
|
+
this.cs_1 = this.bs_1.n();
|
|
463
|
+
this.ds_1 = this.cs_1.n3();
|
|
464
|
+
this.es_1 = this.cs_1.o3();
|
|
465
|
+
if (this.ds_1 === this.xr_1) {
|
|
466
|
+
this.zh_1 = 2;
|
|
467
|
+
suspendResult = this.as_1.z4(this.yr_1, this);
|
|
468
468
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
469
|
return suspendResult;
|
|
470
470
|
}
|
|
471
471
|
continue $sm;
|
|
472
472
|
} else {
|
|
473
|
-
this.
|
|
473
|
+
this.zh_1 = 4;
|
|
474
474
|
continue $sm;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
break;
|
|
478
478
|
case 2:
|
|
479
|
-
this.
|
|
480
|
-
suspendResult = this.
|
|
479
|
+
this.zh_1 = 3;
|
|
480
|
+
suspendResult = this.as_1.b5(asIterable_0(this.zr_1), this);
|
|
481
481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
482
482
|
return suspendResult;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
continue $sm;
|
|
486
486
|
case 3:
|
|
487
|
-
this.
|
|
487
|
+
this.zh_1 = 4;
|
|
488
488
|
continue $sm;
|
|
489
489
|
case 4:
|
|
490
|
-
this.
|
|
491
|
-
suspendResult = this.
|
|
490
|
+
this.zh_1 = 5;
|
|
491
|
+
suspendResult = this.as_1.z4(this.es_1, this);
|
|
492
492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
493
493
|
return suspendResult;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
continue $sm;
|
|
497
497
|
case 5:
|
|
498
|
-
this.
|
|
498
|
+
this.zh_1 = 1;
|
|
499
499
|
continue $sm;
|
|
500
500
|
case 6:
|
|
501
501
|
return Unit_getInstance();
|
|
502
502
|
case 7:
|
|
503
|
-
throw this.
|
|
503
|
+
throw this.ci_1;
|
|
504
504
|
}
|
|
505
505
|
} catch ($p) {
|
|
506
|
-
if (this.
|
|
506
|
+
if (this.ai_1 === 7) {
|
|
507
507
|
throw $p;
|
|
508
508
|
} else {
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
509
|
+
this.zh_1 = this.ai_1;
|
|
510
|
+
this.ci_1 = $p;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
while (true);
|
|
514
514
|
};
|
|
515
|
-
insertAt$slambda.prototype.
|
|
516
|
-
var i = new insertAt$slambda(this.
|
|
517
|
-
i.
|
|
515
|
+
insertAt$slambda.prototype.mr = function ($this$sequence, completion) {
|
|
516
|
+
var i = new insertAt$slambda(this.wr_1, this.xr_1, this.yr_1, this.zr_1, completion);
|
|
517
|
+
i.as_1 = $this$sequence;
|
|
518
518
|
return i;
|
|
519
519
|
};
|
|
520
520
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
521
521
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
522
522
|
var l = function ($this$sequence, $cont) {
|
|
523
|
-
return i.
|
|
523
|
+
return i.lr($this$sequence, $cont);
|
|
524
524
|
};
|
|
525
525
|
l.$arity = 1;
|
|
526
526
|
return l;
|
|
@@ -529,10 +529,10 @@
|
|
|
529
529
|
return equals(a, b);
|
|
530
530
|
}
|
|
531
531
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
532
|
-
this.
|
|
532
|
+
this.fs_1 = function_0;
|
|
533
533
|
}
|
|
534
534
|
sam$kotlin_Comparator$0_0.prototype.cg = function (a, b) {
|
|
535
|
-
return this.
|
|
535
|
+
return this.fs_1(a, b);
|
|
536
536
|
};
|
|
537
537
|
sam$kotlin_Comparator$0_0.prototype.compare = function (a, b) {
|
|
538
538
|
return this.cg(a, b);
|
|
@@ -541,10 +541,10 @@
|
|
|
541
541
|
return cursor(it);
|
|
542
542
|
}
|
|
543
543
|
function merge$slambda$lambda_0(it) {
|
|
544
|
-
return it.
|
|
544
|
+
return it.tq();
|
|
545
545
|
}
|
|
546
546
|
function merge$slambda$lambda_1(it) {
|
|
547
|
-
return ensureNotNull(it.
|
|
547
|
+
return ensureNotNull(it.rq());
|
|
548
548
|
}
|
|
549
549
|
function merge$slambda$lambda_2($comparator) {
|
|
550
550
|
return function (a, b) {
|
|
@@ -552,99 +552,99 @@
|
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
555
|
+
this.os_1 = $iterables;
|
|
556
|
+
this.ps_1 = $comparator;
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
558
|
}
|
|
559
|
-
merge$slambda.prototype.
|
|
560
|
-
var tmp = this.
|
|
561
|
-
tmp.
|
|
562
|
-
tmp.
|
|
563
|
-
return tmp.
|
|
559
|
+
merge$slambda.prototype.lr = function ($this$sequence, $cont) {
|
|
560
|
+
var tmp = this.mr($this$sequence, $cont);
|
|
561
|
+
tmp.bi_1 = Unit_getInstance();
|
|
562
|
+
tmp.ci_1 = null;
|
|
563
|
+
return tmp.hi();
|
|
564
564
|
};
|
|
565
|
-
merge$slambda.prototype.
|
|
566
|
-
return this.
|
|
565
|
+
merge$slambda.prototype.ti = function (p1, $cont) {
|
|
566
|
+
return this.lr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
567
567
|
};
|
|
568
|
-
merge$slambda.prototype.
|
|
569
|
-
var suspendResult = this.
|
|
568
|
+
merge$slambda.prototype.hi = function () {
|
|
569
|
+
var suspendResult = this.bi_1;
|
|
570
570
|
$sm: do
|
|
571
571
|
try {
|
|
572
|
-
var tmp = this.
|
|
572
|
+
var tmp = this.zh_1;
|
|
573
573
|
switch (tmp) {
|
|
574
574
|
case 0:
|
|
575
|
-
this.
|
|
575
|
+
this.ai_1 = 3;
|
|
576
576
|
var tmp_0 = this;
|
|
577
|
-
var tmp_1 = asSequence(this.
|
|
577
|
+
var tmp_1 = asSequence(this.os_1);
|
|
578
578
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
579
|
-
tmp_0.
|
|
580
|
-
this.
|
|
579
|
+
tmp_0.rs_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
580
|
+
this.zh_1 = 1;
|
|
581
581
|
continue $sm;
|
|
582
582
|
case 1:
|
|
583
|
-
if (!!this.
|
|
584
|
-
this.
|
|
583
|
+
if (!!this.rs_1.d()) {
|
|
584
|
+
this.zh_1 = 4;
|
|
585
585
|
continue $sm;
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
var tmp_3 = this;
|
|
589
|
-
var tmp_4 = asSequence(this.
|
|
589
|
+
var tmp_4 = asSequence(this.rs_1);
|
|
590
590
|
var tmp_5 = indexed(map(tmp_4, merge$slambda$lambda_1));
|
|
591
|
-
var tmp_6 = merge$slambda$lambda_2(this.
|
|
592
|
-
tmp_3.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
suspendResult = this.
|
|
591
|
+
var tmp_6 = merge$slambda$lambda_2(this.ps_1);
|
|
592
|
+
tmp_3.ss_1 = ensureNotNull(minWithOrNull(tmp_5, new sam$kotlin_Comparator$0_0(tmp_6)));
|
|
593
|
+
this.ts_1 = this.ss_1.n3();
|
|
594
|
+
this.us_1 = this.ss_1.o3();
|
|
595
|
+
this.zh_1 = 2;
|
|
596
|
+
suspendResult = this.qs_1.z4(this.us_1, this);
|
|
597
597
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
598
598
|
return suspendResult;
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
continue $sm;
|
|
602
602
|
case 2:
|
|
603
|
-
var tmp0_let = this.
|
|
604
|
-
if (tmp0_let.
|
|
605
|
-
this.
|
|
603
|
+
var tmp0_let = this.rs_1.o(this.ts_1).qq();
|
|
604
|
+
if (tmp0_let.tq()) {
|
|
605
|
+
this.rs_1.t4(this.ts_1);
|
|
606
606
|
} else {
|
|
607
|
-
this.
|
|
607
|
+
this.rs_1.s4(this.ts_1, tmp0_let);
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
;
|
|
611
|
-
this.
|
|
611
|
+
this.zh_1 = 1;
|
|
612
612
|
continue $sm;
|
|
613
613
|
case 3:
|
|
614
|
-
throw this.
|
|
614
|
+
throw this.ci_1;
|
|
615
615
|
case 4:
|
|
616
616
|
return Unit_getInstance();
|
|
617
617
|
}
|
|
618
618
|
} catch ($p) {
|
|
619
|
-
if (this.
|
|
619
|
+
if (this.ai_1 === 3) {
|
|
620
620
|
throw $p;
|
|
621
621
|
} else {
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
622
|
+
this.zh_1 = this.ai_1;
|
|
623
|
+
this.ci_1 = $p;
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
while (true);
|
|
627
627
|
};
|
|
628
|
-
merge$slambda.prototype.
|
|
629
|
-
var i = new merge$slambda(this.
|
|
630
|
-
i.
|
|
628
|
+
merge$slambda.prototype.mr = function ($this$sequence, completion) {
|
|
629
|
+
var i = new merge$slambda(this.os_1, this.ps_1, completion);
|
|
630
|
+
i.qs_1 = $this$sequence;
|
|
631
631
|
return i;
|
|
632
632
|
};
|
|
633
633
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
634
634
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
635
635
|
var l = function ($this$sequence, $cont) {
|
|
636
|
-
return i.
|
|
636
|
+
return i.lr($this$sequence, $cont);
|
|
637
637
|
};
|
|
638
638
|
l.$arity = 1;
|
|
639
639
|
return l;
|
|
640
640
|
}
|
|
641
641
|
function indexed$lambda(it, i) {
|
|
642
|
-
return Companion_getInstance_4().
|
|
642
|
+
return Companion_getInstance_4().wq(i, it);
|
|
643
643
|
}
|
|
644
644
|
function Companion_3() {
|
|
645
645
|
Companion_instance_3 = this;
|
|
646
646
|
}
|
|
647
|
-
Companion_3.prototype.
|
|
647
|
+
Companion_3.prototype.vs = function (index, value) {
|
|
648
648
|
return new LongIndexedImpl(index, value);
|
|
649
649
|
};
|
|
650
650
|
var Companion_instance_3;
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
var tmp$ret$0;
|
|
662
662
|
// Inline function 'kotlin.text.toRegex' call
|
|
663
663
|
tmp$ret$0 = Regex_init_$Create$('[0-9]+');
|
|
664
|
-
tmp.
|
|
664
|
+
tmp.xs_1 = tmp$ret$0;
|
|
665
665
|
}
|
|
666
666
|
var Companion_instance_4;
|
|
667
667
|
function Companion_getInstance_6() {
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
return Companion_instance_4;
|
|
671
671
|
}
|
|
672
672
|
function _get_stringRepresentation__xuqjt9(_this__u8e3s4, $this) {
|
|
673
|
-
return $this.
|
|
673
|
+
return $this.ys_1.fq(_this__u8e3s4, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg(_this__u8e3s4));
|
|
674
674
|
}
|
|
675
675
|
function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
|
|
676
676
|
return function () {
|
|
@@ -679,35 +679,35 @@
|
|
|
679
679
|
}
|
|
680
680
|
function NumberTypeTester() {
|
|
681
681
|
Companion_getInstance_6();
|
|
682
|
-
this.
|
|
682
|
+
this.ys_1 = Companion_getInstance_1().dq(8);
|
|
683
683
|
}
|
|
684
|
-
NumberTypeTester.prototype.
|
|
685
|
-
return Companion_getInstance_6().
|
|
684
|
+
NumberTypeTester.prototype.zs = function (_this__u8e3s4) {
|
|
685
|
+
return Companion_getInstance_6().xs_1.ef(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
686
686
|
};
|
|
687
|
-
NumberTypeTester.prototype.
|
|
687
|
+
NumberTypeTester.prototype.at = function (_this__u8e3s4) {
|
|
688
688
|
return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
689
689
|
};
|
|
690
|
-
NumberTypeTester.prototype.
|
|
690
|
+
NumberTypeTester.prototype.bt = function (_this__u8e3s4) {
|
|
691
691
|
var tmp = Companion_getInstance_0();
|
|
692
692
|
var tmp_0 = _get_stringRepresentation__xuqjt9(_this__u8e3s4, this);
|
|
693
|
-
return tmp.
|
|
693
|
+
return tmp.pj(tmp_0, null, 2, null);
|
|
694
694
|
};
|
|
695
695
|
function Companion_5() {
|
|
696
696
|
Companion_instance_5 = this;
|
|
697
697
|
}
|
|
698
|
-
Companion_5.prototype.
|
|
698
|
+
Companion_5.prototype.ct = function (value) {
|
|
699
699
|
return new Some(value);
|
|
700
700
|
};
|
|
701
|
-
Companion_5.prototype.
|
|
701
|
+
Companion_5.prototype.mq = function (value) {
|
|
702
702
|
var tmp;
|
|
703
703
|
if (value == null) {
|
|
704
|
-
tmp = this.
|
|
704
|
+
tmp = this.lq();
|
|
705
705
|
} else {
|
|
706
|
-
tmp = this.
|
|
706
|
+
tmp = this.ct(value);
|
|
707
707
|
}
|
|
708
708
|
return tmp;
|
|
709
709
|
};
|
|
710
|
-
Companion_5.prototype.
|
|
710
|
+
Companion_5.prototype.lq = function () {
|
|
711
711
|
return None_getInstance();
|
|
712
712
|
};
|
|
713
713
|
var Companion_instance_5;
|
|
@@ -718,22 +718,22 @@
|
|
|
718
718
|
}
|
|
719
719
|
function Some(value) {
|
|
720
720
|
Optional.call(this);
|
|
721
|
-
this.
|
|
721
|
+
this.gq_1 = value;
|
|
722
722
|
}
|
|
723
723
|
Some.prototype.b1 = function () {
|
|
724
|
-
return this.
|
|
724
|
+
return this.gq_1;
|
|
725
725
|
};
|
|
726
|
-
Some.prototype.
|
|
726
|
+
Some.prototype.dt = function () {
|
|
727
727
|
return true;
|
|
728
728
|
};
|
|
729
|
-
Some.prototype.
|
|
730
|
-
return new Some(function_0(this.
|
|
729
|
+
Some.prototype.et = function (function_0) {
|
|
730
|
+
return new Some(function_0(this.gq_1));
|
|
731
731
|
};
|
|
732
732
|
Some.prototype.toString = function () {
|
|
733
|
-
return 'Some(' + this.
|
|
733
|
+
return 'Some(' + this.gq_1 + ')';
|
|
734
734
|
};
|
|
735
735
|
Some.prototype.hashCode = function () {
|
|
736
|
-
return this.
|
|
736
|
+
return this.gq_1 == null ? 0 : hashCode(this.gq_1);
|
|
737
737
|
};
|
|
738
738
|
Some.prototype.equals = function (other) {
|
|
739
739
|
if (this === other)
|
|
@@ -741,7 +741,7 @@
|
|
|
741
741
|
if (!(other instanceof Some))
|
|
742
742
|
return false;
|
|
743
743
|
var tmp0_other_with_cast = other instanceof Some ? other : THROW_CCE();
|
|
744
|
-
if (!equals(this.
|
|
744
|
+
if (!equals(this.gq_1, tmp0_other_with_cast.gq_1))
|
|
745
745
|
return false;
|
|
746
746
|
return true;
|
|
747
747
|
};
|
|
@@ -752,14 +752,14 @@
|
|
|
752
752
|
None.prototype.b1 = function () {
|
|
753
753
|
return null;
|
|
754
754
|
};
|
|
755
|
-
None.prototype.
|
|
755
|
+
None.prototype.dt = function () {
|
|
756
756
|
return false;
|
|
757
757
|
};
|
|
758
|
-
None.prototype.
|
|
758
|
+
None.prototype.gt = function (function_0) {
|
|
759
759
|
return None_getInstance();
|
|
760
760
|
};
|
|
761
|
-
None.prototype.
|
|
762
|
-
return this.
|
|
761
|
+
None.prototype.et = function (function_0) {
|
|
762
|
+
return this.gt(function_0);
|
|
763
763
|
};
|
|
764
764
|
None.prototype.toString = function () {
|
|
765
765
|
return 'None';
|
|
@@ -773,8 +773,8 @@
|
|
|
773
773
|
function Optional() {
|
|
774
774
|
Companion_getInstance_7();
|
|
775
775
|
}
|
|
776
|
-
Optional.prototype.
|
|
777
|
-
return !this.
|
|
776
|
+
Optional.prototype.ft = function () {
|
|
777
|
+
return !this.dt();
|
|
778
778
|
};
|
|
779
779
|
function Taggable() {
|
|
780
780
|
}
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
function setTag(_this__u8e3s4, key, value) {
|
|
786
786
|
var tmp$ret$0;
|
|
787
787
|
// Inline function 'kotlin.also' call
|
|
788
|
-
var tmp0_also = toMutableMap(_this__u8e3s4.
|
|
788
|
+
var tmp0_also = toMutableMap(_this__u8e3s4.ht());
|
|
789
789
|
// Inline function 'kotlin.contracts.contract' call
|
|
790
790
|
// Inline function 'it.unibo.tuprolog.utils.setTag.<anonymous>' call
|
|
791
791
|
// Inline function 'kotlin.collections.set' call
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
function Companion_6() {
|
|
797
797
|
Companion_instance_6 = this;
|
|
798
798
|
}
|
|
799
|
-
Companion_6.prototype.
|
|
799
|
+
Companion_6.prototype.uq = function (source) {
|
|
800
800
|
var tmp;
|
|
801
801
|
if (source.m()) {
|
|
802
802
|
tmp = new LazyCursor(source);
|
|
@@ -812,21 +812,21 @@
|
|
|
812
812
|
return Companion_instance_6;
|
|
813
813
|
}
|
|
814
814
|
function AbstractCursor$iterator$1(this$0) {
|
|
815
|
-
this.
|
|
815
|
+
this.it_1 = this$0;
|
|
816
816
|
}
|
|
817
817
|
AbstractCursor$iterator$1.prototype.m = function () {
|
|
818
|
-
return !this.
|
|
818
|
+
return !this.it_1.tq();
|
|
819
819
|
};
|
|
820
|
-
AbstractCursor$iterator$1.prototype.
|
|
821
|
-
var result = this.
|
|
822
|
-
this.
|
|
820
|
+
AbstractCursor$iterator$1.prototype.n = function () {
|
|
821
|
+
var result = this.it_1.rq();
|
|
822
|
+
this.it_1 = this.it_1.qq();
|
|
823
823
|
return ensureNotNull(result);
|
|
824
824
|
};
|
|
825
825
|
function AbstractCursor() {
|
|
826
826
|
Companion_getInstance_8();
|
|
827
827
|
}
|
|
828
828
|
AbstractCursor.prototype.toString = function () {
|
|
829
|
-
return this.
|
|
829
|
+
return this.tq() ? '[]' : !this.sq() ? '[' + this.rq() + ']' : '[' + this.rq() + ', ...]';
|
|
830
830
|
};
|
|
831
831
|
AbstractCursor.prototype.j = function () {
|
|
832
832
|
return new AbstractCursor$iterator$1(this);
|
|
@@ -834,42 +834,42 @@
|
|
|
834
834
|
AbstractCursor.prototype.iterator = function () {
|
|
835
835
|
return this.j();
|
|
836
836
|
};
|
|
837
|
-
AbstractCursor.prototype.
|
|
837
|
+
AbstractCursor.prototype.jt = function () {
|
|
838
838
|
return false;
|
|
839
839
|
};
|
|
840
|
-
AbstractCursor.prototype.
|
|
840
|
+
AbstractCursor.prototype.et = function (mapper) {
|
|
841
841
|
return new MapperCursor(this, mapper);
|
|
842
842
|
};
|
|
843
843
|
AbstractCursor.prototype.map = function (mapper) {
|
|
844
|
-
return this.
|
|
844
|
+
return this.et(mapper);
|
|
845
845
|
};
|
|
846
846
|
function CachedImpl(generator) {
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
847
|
+
this.kt_1 = generator;
|
|
848
|
+
this.lt_1 = Companion_getInstance_7().lq();
|
|
849
849
|
}
|
|
850
|
-
CachedImpl.prototype.
|
|
851
|
-
return this.
|
|
850
|
+
CachedImpl.prototype.iq = function () {
|
|
851
|
+
return this.lt_1.dt();
|
|
852
852
|
};
|
|
853
|
-
CachedImpl.prototype.
|
|
854
|
-
return this.
|
|
853
|
+
CachedImpl.prototype.mt = function () {
|
|
854
|
+
return this.lt_1.ft();
|
|
855
855
|
};
|
|
856
856
|
CachedImpl.prototype.b1 = function () {
|
|
857
|
-
this.
|
|
858
|
-
return ensureNotNull(this.
|
|
857
|
+
this.nt();
|
|
858
|
+
return ensureNotNull(this.lt_1.b1());
|
|
859
859
|
};
|
|
860
|
-
CachedImpl.prototype.
|
|
861
|
-
if (this.
|
|
862
|
-
this.
|
|
860
|
+
CachedImpl.prototype.nt = function () {
|
|
861
|
+
if (this.mt()) {
|
|
862
|
+
this.lt_1 = Companion_getInstance_7().ct(this.kt_1());
|
|
863
863
|
}
|
|
864
864
|
};
|
|
865
|
-
CachedImpl.prototype.
|
|
866
|
-
this.
|
|
865
|
+
CachedImpl.prototype.jq = function () {
|
|
866
|
+
this.lt_1 = Companion_getInstance_7().lq();
|
|
867
867
|
};
|
|
868
868
|
CachedImpl.prototype.toString = function () {
|
|
869
|
-
return 'CachedImpl(generator=' + this.
|
|
869
|
+
return 'CachedImpl(generator=' + this.kt_1 + ')';
|
|
870
870
|
};
|
|
871
871
|
CachedImpl.prototype.hashCode = function () {
|
|
872
|
-
return hashCode(this.
|
|
872
|
+
return hashCode(this.kt_1);
|
|
873
873
|
};
|
|
874
874
|
CachedImpl.prototype.equals = function (other) {
|
|
875
875
|
if (this === other)
|
|
@@ -877,37 +877,37 @@
|
|
|
877
877
|
if (!(other instanceof CachedImpl))
|
|
878
878
|
return false;
|
|
879
879
|
var tmp0_other_with_cast = other instanceof CachedImpl ? other : THROW_CCE();
|
|
880
|
-
if (!equals(this.
|
|
880
|
+
if (!equals(this.kt_1, tmp0_other_with_cast.kt_1))
|
|
881
881
|
return false;
|
|
882
882
|
return true;
|
|
883
883
|
};
|
|
884
884
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
885
885
|
return function () {
|
|
886
|
-
return this$0.
|
|
886
|
+
return this$0.ot_1.sq() ? new ConjunctionCursor(this$0.ot_1.qq(), this$0.pt_1) : this$0.pt_1.jt() ? this$0.pt_1.qq() : this$0.pt_1;
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
889
|
function ConjunctionCursor(first, second) {
|
|
890
890
|
AbstractCursor.call(this);
|
|
891
|
-
this.
|
|
892
|
-
this.
|
|
891
|
+
this.ot_1 = first;
|
|
892
|
+
this.pt_1 = second;
|
|
893
893
|
var tmp = this;
|
|
894
|
-
tmp.
|
|
894
|
+
tmp.qt_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
895
895
|
}
|
|
896
|
-
ConjunctionCursor.prototype.wq = function () {
|
|
897
|
-
return this.rt_1.wq() ? this.st_1.wq() : false;
|
|
898
|
-
};
|
|
899
896
|
ConjunctionCursor.prototype.tq = function () {
|
|
897
|
+
return this.ot_1.tq() ? this.pt_1.tq() : false;
|
|
898
|
+
};
|
|
899
|
+
ConjunctionCursor.prototype.qq = function () {
|
|
900
900
|
var tmp$ret$0;
|
|
901
901
|
// Inline function 'kotlin.getValue' call
|
|
902
902
|
var tmp0_getValue = next$factory();
|
|
903
|
-
tmp$ret$0 = this.
|
|
903
|
+
tmp$ret$0 = this.qt_1.b1();
|
|
904
904
|
return tmp$ret$0;
|
|
905
905
|
};
|
|
906
|
-
ConjunctionCursor.prototype.
|
|
907
|
-
return this.
|
|
906
|
+
ConjunctionCursor.prototype.rq = function () {
|
|
907
|
+
return this.ot_1.sq() ? this.ot_1.rq() : this.pt_1.rq();
|
|
908
908
|
};
|
|
909
|
-
ConjunctionCursor.prototype.
|
|
910
|
-
return this.
|
|
909
|
+
ConjunctionCursor.prototype.sq = function () {
|
|
910
|
+
return this.ot_1.sq() ? true : this.pt_1.sq();
|
|
911
911
|
};
|
|
912
912
|
ConjunctionCursor.prototype.equals = function (other) {
|
|
913
913
|
if (this === other)
|
|
@@ -918,49 +918,49 @@
|
|
|
918
918
|
other;
|
|
919
919
|
else
|
|
920
920
|
THROW_CCE();
|
|
921
|
-
if (!equals(this.
|
|
921
|
+
if (!equals(this.ot_1, other.ot_1))
|
|
922
922
|
return false;
|
|
923
|
-
if (!equals(this.
|
|
923
|
+
if (!equals(this.pt_1, other.pt_1))
|
|
924
924
|
return false;
|
|
925
925
|
return true;
|
|
926
926
|
};
|
|
927
927
|
ConjunctionCursor.prototype.hashCode = function () {
|
|
928
|
-
var result = hashCode(this.
|
|
929
|
-
result = imul(31, result) + hashCode(this.
|
|
928
|
+
var result = hashCode(this.ot_1);
|
|
929
|
+
result = imul(31, result) + hashCode(this.pt_1) | 0;
|
|
930
930
|
return result;
|
|
931
931
|
};
|
|
932
932
|
function next$factory() {
|
|
933
933
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
934
|
-
return receiver.
|
|
934
|
+
return receiver.qq();
|
|
935
935
|
}, null);
|
|
936
936
|
}
|
|
937
937
|
function EmptyCursor() {
|
|
938
938
|
EmptyCursor_instance = this;
|
|
939
939
|
AbstractCursor.call(this);
|
|
940
940
|
}
|
|
941
|
-
EmptyCursor.prototype.
|
|
941
|
+
EmptyCursor.prototype.qq = function () {
|
|
942
942
|
throw NoSuchElementException_init_$Create$();
|
|
943
943
|
};
|
|
944
|
-
EmptyCursor.prototype.
|
|
944
|
+
EmptyCursor.prototype.rq = function () {
|
|
945
945
|
return null;
|
|
946
946
|
};
|
|
947
|
-
EmptyCursor.prototype.
|
|
947
|
+
EmptyCursor.prototype.sq = function () {
|
|
948
948
|
return false;
|
|
949
949
|
};
|
|
950
|
-
EmptyCursor.prototype.
|
|
950
|
+
EmptyCursor.prototype.tq = function () {
|
|
951
951
|
return true;
|
|
952
952
|
};
|
|
953
953
|
EmptyCursor.prototype.toString = function () {
|
|
954
954
|
return AbstractCursor.prototype.toString.call(this);
|
|
955
955
|
};
|
|
956
|
-
EmptyCursor.prototype.
|
|
956
|
+
EmptyCursor.prototype.gt = function (mapper) {
|
|
957
957
|
return this;
|
|
958
958
|
};
|
|
959
959
|
EmptyCursor.prototype.map = function (mapper) {
|
|
960
|
-
return this.
|
|
960
|
+
return this.gt(mapper);
|
|
961
961
|
};
|
|
962
|
-
EmptyCursor.prototype.
|
|
963
|
-
return this.
|
|
962
|
+
EmptyCursor.prototype.et = function (mapper) {
|
|
963
|
+
return this.gt(mapper);
|
|
964
964
|
};
|
|
965
965
|
var EmptyCursor_instance;
|
|
966
966
|
function EmptyCursor_getInstance() {
|
|
@@ -969,27 +969,27 @@
|
|
|
969
969
|
return EmptyCursor_instance;
|
|
970
970
|
}
|
|
971
971
|
function IntIndexedImpl(index, value) {
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
972
|
+
this.rt_1 = index;
|
|
973
|
+
this.st_1 = value;
|
|
974
974
|
}
|
|
975
|
-
IntIndexedImpl.prototype.
|
|
976
|
-
return this.
|
|
975
|
+
IntIndexedImpl.prototype.vq = function () {
|
|
976
|
+
return this.rt_1;
|
|
977
977
|
};
|
|
978
978
|
IntIndexedImpl.prototype.b1 = function () {
|
|
979
|
-
return this.
|
|
979
|
+
return this.st_1;
|
|
980
980
|
};
|
|
981
981
|
IntIndexedImpl.prototype.n3 = function () {
|
|
982
|
-
return this.
|
|
982
|
+
return this.rt_1;
|
|
983
983
|
};
|
|
984
984
|
IntIndexedImpl.prototype.o3 = function () {
|
|
985
|
-
return this.
|
|
985
|
+
return this.st_1;
|
|
986
986
|
};
|
|
987
987
|
IntIndexedImpl.prototype.toString = function () {
|
|
988
|
-
return 'IntIndexedImpl(index=' + this.
|
|
988
|
+
return 'IntIndexedImpl(index=' + this.rt_1 + ', value=' + this.st_1 + ')';
|
|
989
989
|
};
|
|
990
990
|
IntIndexedImpl.prototype.hashCode = function () {
|
|
991
|
-
var result = this.
|
|
992
|
-
result = imul(result, 31) + (this.
|
|
991
|
+
var result = this.rt_1;
|
|
992
|
+
result = imul(result, 31) + (this.st_1 == null ? 0 : hashCode(this.st_1)) | 0;
|
|
993
993
|
return result;
|
|
994
994
|
};
|
|
995
995
|
IntIndexedImpl.prototype.equals = function (other) {
|
|
@@ -998,46 +998,46 @@
|
|
|
998
998
|
if (!(other instanceof IntIndexedImpl))
|
|
999
999
|
return false;
|
|
1000
1000
|
var tmp0_other_with_cast = other instanceof IntIndexedImpl ? other : THROW_CCE();
|
|
1001
|
-
if (!(this.
|
|
1001
|
+
if (!(this.rt_1 === tmp0_other_with_cast.rt_1))
|
|
1002
1002
|
return false;
|
|
1003
|
-
if (!equals(this.
|
|
1003
|
+
if (!equals(this.st_1, tmp0_other_with_cast.st_1))
|
|
1004
1004
|
return false;
|
|
1005
1005
|
return true;
|
|
1006
1006
|
};
|
|
1007
1007
|
IntIndexedImpl.prototype.aa = function (other) {
|
|
1008
|
-
return this.
|
|
1008
|
+
return this.xq((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
1009
1009
|
};
|
|
1010
1010
|
function _get_wrapped__s2ip8($this) {
|
|
1011
1011
|
var tmp$ret$0;
|
|
1012
1012
|
// Inline function 'kotlin.getValue' call
|
|
1013
1013
|
var tmp0_getValue = wrapped$factory();
|
|
1014
|
-
tmp$ret$0 = $this.
|
|
1014
|
+
tmp$ret$0 = $this.ut_1.b1();
|
|
1015
1015
|
return tmp$ret$0;
|
|
1016
1016
|
}
|
|
1017
1017
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
1018
1018
|
return function () {
|
|
1019
|
-
return new NonLastCursor(this$0.
|
|
1019
|
+
return new NonLastCursor(this$0.tt_1);
|
|
1020
1020
|
};
|
|
1021
1021
|
}
|
|
1022
1022
|
function LazyCursor(delegate) {
|
|
1023
1023
|
AbstractCursor.call(this);
|
|
1024
|
-
this.
|
|
1024
|
+
this.tt_1 = delegate;
|
|
1025
1025
|
var tmp = this;
|
|
1026
|
-
tmp.
|
|
1026
|
+
tmp.ut_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
1027
1027
|
}
|
|
1028
|
-
LazyCursor.prototype.
|
|
1028
|
+
LazyCursor.prototype.jt = function () {
|
|
1029
1029
|
return true;
|
|
1030
1030
|
};
|
|
1031
|
-
LazyCursor.prototype.
|
|
1032
|
-
return _get_wrapped__s2ip8(this).
|
|
1031
|
+
LazyCursor.prototype.qq = function () {
|
|
1032
|
+
return _get_wrapped__s2ip8(this).qq();
|
|
1033
1033
|
};
|
|
1034
|
-
LazyCursor.prototype.
|
|
1035
|
-
return _get_wrapped__s2ip8(this).
|
|
1034
|
+
LazyCursor.prototype.rq = function () {
|
|
1035
|
+
return _get_wrapped__s2ip8(this).rq();
|
|
1036
1036
|
};
|
|
1037
|
-
LazyCursor.prototype.
|
|
1037
|
+
LazyCursor.prototype.sq = function () {
|
|
1038
1038
|
return true;
|
|
1039
1039
|
};
|
|
1040
|
-
LazyCursor.prototype.
|
|
1040
|
+
LazyCursor.prototype.tq = function () {
|
|
1041
1041
|
return false;
|
|
1042
1042
|
};
|
|
1043
1043
|
LazyCursor.prototype.toString = function () {
|
|
@@ -1050,7 +1050,7 @@
|
|
|
1050
1050
|
return this.j();
|
|
1051
1051
|
};
|
|
1052
1052
|
LazyCursor.prototype.hashCode = function () {
|
|
1053
|
-
return hashCode(this.
|
|
1053
|
+
return hashCode(this.tt_1);
|
|
1054
1054
|
};
|
|
1055
1055
|
LazyCursor.prototype.equals = function (other) {
|
|
1056
1056
|
if (this === other)
|
|
@@ -1058,7 +1058,7 @@
|
|
|
1058
1058
|
if (!(other instanceof LazyCursor))
|
|
1059
1059
|
return false;
|
|
1060
1060
|
var tmp0_other_with_cast = other instanceof LazyCursor ? other : THROW_CCE();
|
|
1061
|
-
if (!equals(this.
|
|
1061
|
+
if (!equals(this.tt_1, tmp0_other_with_cast.tt_1))
|
|
1062
1062
|
return false;
|
|
1063
1063
|
return true;
|
|
1064
1064
|
};
|
|
@@ -1068,27 +1068,27 @@
|
|
|
1068
1068
|
}, null);
|
|
1069
1069
|
}
|
|
1070
1070
|
function LongIndexedImpl(index, value) {
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1071
|
+
this.vt_1 = index;
|
|
1072
|
+
this.wt_1 = value;
|
|
1073
1073
|
}
|
|
1074
|
-
LongIndexedImpl.prototype.
|
|
1075
|
-
return this.
|
|
1074
|
+
LongIndexedImpl.prototype.vq = function () {
|
|
1075
|
+
return this.vt_1;
|
|
1076
1076
|
};
|
|
1077
1077
|
LongIndexedImpl.prototype.b1 = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.wt_1;
|
|
1079
1079
|
};
|
|
1080
|
-
LongIndexedImpl.prototype.
|
|
1081
|
-
return this.
|
|
1080
|
+
LongIndexedImpl.prototype.ws = function (other) {
|
|
1081
|
+
return this.vt_1.ah(other.vq()).ph();
|
|
1082
1082
|
};
|
|
1083
1083
|
LongIndexedImpl.prototype.aa = function (other) {
|
|
1084
|
-
return this.
|
|
1084
|
+
return this.ws((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1085
1085
|
};
|
|
1086
1086
|
LongIndexedImpl.prototype.toString = function () {
|
|
1087
|
-
return 'LongIndexedImpl(index=' + toString(this.
|
|
1087
|
+
return 'LongIndexedImpl(index=' + toString(this.vt_1) + ', value=' + this.wt_1 + ')';
|
|
1088
1088
|
};
|
|
1089
1089
|
LongIndexedImpl.prototype.hashCode = function () {
|
|
1090
|
-
var result = this.
|
|
1091
|
-
result = imul(result, 31) + (this.
|
|
1090
|
+
var result = this.vt_1.hashCode();
|
|
1091
|
+
result = imul(result, 31) + (this.wt_1 == null ? 0 : hashCode(this.wt_1)) | 0;
|
|
1092
1092
|
return result;
|
|
1093
1093
|
};
|
|
1094
1094
|
LongIndexedImpl.prototype.equals = function (other) {
|
|
@@ -1097,38 +1097,38 @@
|
|
|
1097
1097
|
if (!(other instanceof LongIndexedImpl))
|
|
1098
1098
|
return false;
|
|
1099
1099
|
var tmp0_other_with_cast = other instanceof LongIndexedImpl ? other : THROW_CCE();
|
|
1100
|
-
if (!this.
|
|
1100
|
+
if (!this.vt_1.equals(tmp0_other_with_cast.vt_1))
|
|
1101
1101
|
return false;
|
|
1102
|
-
if (!equals(this.
|
|
1102
|
+
if (!equals(this.wt_1, tmp0_other_with_cast.wt_1))
|
|
1103
1103
|
return false;
|
|
1104
1104
|
return true;
|
|
1105
1105
|
};
|
|
1106
1106
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1107
1107
|
return function () {
|
|
1108
|
-
return this$0.
|
|
1108
|
+
return this$0.yt_1(ensureNotNull(this$0.xt_1.rq()));
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
1111
|
function MapperCursor(wrapped, mapper) {
|
|
1112
1112
|
AbstractCursor.call(this);
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1113
|
+
this.xt_1 = wrapped;
|
|
1114
|
+
this.yt_1 = mapper;
|
|
1115
1115
|
var tmp = this;
|
|
1116
|
-
tmp.
|
|
1116
|
+
tmp.zt_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1117
1117
|
}
|
|
1118
|
-
MapperCursor.prototype.
|
|
1119
|
-
return this.
|
|
1118
|
+
MapperCursor.prototype.qq = function () {
|
|
1119
|
+
return this.xt_1.qq().et(this.yt_1);
|
|
1120
1120
|
};
|
|
1121
|
-
MapperCursor.prototype.
|
|
1121
|
+
MapperCursor.prototype.rq = function () {
|
|
1122
1122
|
var tmp$ret$0;
|
|
1123
1123
|
// Inline function 'kotlin.getValue' call
|
|
1124
1124
|
var tmp0_getValue = current$factory();
|
|
1125
|
-
tmp$ret$0 = this.
|
|
1125
|
+
tmp$ret$0 = this.zt_1.b1();
|
|
1126
1126
|
return tmp$ret$0;
|
|
1127
1127
|
};
|
|
1128
|
-
MapperCursor.prototype.
|
|
1128
|
+
MapperCursor.prototype.sq = function () {
|
|
1129
1129
|
return true;
|
|
1130
1130
|
};
|
|
1131
|
-
MapperCursor.prototype.
|
|
1131
|
+
MapperCursor.prototype.tq = function () {
|
|
1132
1132
|
return false;
|
|
1133
1133
|
};
|
|
1134
1134
|
MapperCursor.prototype.equals = function (other) {
|
|
@@ -1140,64 +1140,64 @@
|
|
|
1140
1140
|
other;
|
|
1141
1141
|
else
|
|
1142
1142
|
THROW_CCE();
|
|
1143
|
-
if (!equals(this.
|
|
1143
|
+
if (!equals(this.xt_1, other.xt_1))
|
|
1144
1144
|
return false;
|
|
1145
|
-
if (!equals(this.
|
|
1145
|
+
if (!equals(this.yt_1, other.yt_1))
|
|
1146
1146
|
return false;
|
|
1147
1147
|
return true;
|
|
1148
1148
|
};
|
|
1149
1149
|
MapperCursor.prototype.hashCode = function () {
|
|
1150
|
-
var result = hashCode(this.
|
|
1151
|
-
result = imul(31, result) + hashCode(this.
|
|
1150
|
+
var result = hashCode(this.xt_1);
|
|
1151
|
+
result = imul(31, result) + hashCode(this.yt_1) | 0;
|
|
1152
1152
|
return result;
|
|
1153
1153
|
};
|
|
1154
|
-
MapperCursor.prototype.
|
|
1155
|
-
return new ValueCursor(mapper(this.
|
|
1154
|
+
MapperCursor.prototype.au = function (mapper) {
|
|
1155
|
+
return new ValueCursor(mapper(this.rq()), this.qq().et(mapper));
|
|
1156
1156
|
};
|
|
1157
1157
|
MapperCursor.prototype.map = function (mapper) {
|
|
1158
|
-
return this.
|
|
1158
|
+
return this.au(mapper);
|
|
1159
1159
|
};
|
|
1160
|
-
MapperCursor.prototype.
|
|
1161
|
-
return this.
|
|
1160
|
+
MapperCursor.prototype.et = function (mapper) {
|
|
1161
|
+
return this.au(mapper);
|
|
1162
1162
|
};
|
|
1163
1163
|
function current$factory() {
|
|
1164
1164
|
return getPropertyCallableRef('current', 1, KProperty1, function (receiver) {
|
|
1165
|
-
return receiver.
|
|
1165
|
+
return receiver.rq();
|
|
1166
1166
|
}, null);
|
|
1167
1167
|
}
|
|
1168
1168
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1169
1169
|
return function () {
|
|
1170
1170
|
var tmp$ret$0;
|
|
1171
1171
|
// Inline function 'kotlin.also' call
|
|
1172
|
-
var tmp0_also = Companion_getInstance_8().
|
|
1172
|
+
var tmp0_also = Companion_getInstance_8().uq($source);
|
|
1173
1173
|
// Inline function 'kotlin.contracts.contract' call
|
|
1174
1174
|
// Inline function 'it.unibo.tuprolog.utils.impl.NonLastCursor.next$delegate.<anonymous>.<anonymous>' call
|
|
1175
|
-
this$0.
|
|
1175
|
+
this$0.bu_1 = null;
|
|
1176
1176
|
tmp$ret$0 = tmp0_also;
|
|
1177
1177
|
return tmp$ret$0;
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
function NonLastCursor(source) {
|
|
1181
1181
|
AbstractCursor.call(this);
|
|
1182
|
-
this.
|
|
1182
|
+
this.bu_1 = source;
|
|
1183
1183
|
var tmp = this;
|
|
1184
|
-
tmp.
|
|
1185
|
-
this.
|
|
1184
|
+
tmp.cu_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1185
|
+
this.du_1 = source.n();
|
|
1186
1186
|
}
|
|
1187
|
-
NonLastCursor.prototype.
|
|
1187
|
+
NonLastCursor.prototype.qq = function () {
|
|
1188
1188
|
var tmp$ret$0;
|
|
1189
1189
|
// Inline function 'kotlin.getValue' call
|
|
1190
1190
|
var tmp0_getValue = next$factory_0();
|
|
1191
|
-
tmp$ret$0 = this.
|
|
1191
|
+
tmp$ret$0 = this.cu_1.b1();
|
|
1192
1192
|
return tmp$ret$0;
|
|
1193
1193
|
};
|
|
1194
|
-
NonLastCursor.prototype.
|
|
1195
|
-
return this.
|
|
1194
|
+
NonLastCursor.prototype.rq = function () {
|
|
1195
|
+
return this.du_1;
|
|
1196
1196
|
};
|
|
1197
|
-
NonLastCursor.prototype.
|
|
1197
|
+
NonLastCursor.prototype.sq = function () {
|
|
1198
1198
|
return true;
|
|
1199
1199
|
};
|
|
1200
|
-
NonLastCursor.prototype.
|
|
1200
|
+
NonLastCursor.prototype.tq = function () {
|
|
1201
1201
|
return false;
|
|
1202
1202
|
};
|
|
1203
1203
|
NonLastCursor.prototype.toString = function () {
|
|
@@ -1205,28 +1205,28 @@
|
|
|
1205
1205
|
};
|
|
1206
1206
|
function next$factory_0() {
|
|
1207
1207
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
1208
|
-
return receiver.
|
|
1208
|
+
return receiver.qq();
|
|
1209
1209
|
}, null);
|
|
1210
1210
|
}
|
|
1211
1211
|
function removeLeastRecent($this) {
|
|
1212
1212
|
var tmp$ret$0;
|
|
1213
1213
|
// Inline function 'kotlin.collections.iterator' call
|
|
1214
|
-
var tmp0_iterator = $this.
|
|
1214
|
+
var tmp0_iterator = $this.fu_1;
|
|
1215
1215
|
tmp$ret$0 = tmp0_iterator.z().j();
|
|
1216
|
-
var entry = tmp$ret$0.
|
|
1217
|
-
$this.
|
|
1216
|
+
var entry = tmp$ret$0.n();
|
|
1217
|
+
$this.fu_1.x3(entry.a1());
|
|
1218
1218
|
var tmp = Companion_getInstance_7();
|
|
1219
1219
|
var tmp$ret$1;
|
|
1220
1220
|
// Inline function 'kotlin.collections.toPair' call
|
|
1221
1221
|
tmp$ret$1 = new Pair(entry.a1(), entry.b1());
|
|
1222
|
-
return tmp.
|
|
1222
|
+
return tmp.ct(tmp$ret$1);
|
|
1223
1223
|
}
|
|
1224
1224
|
function removeLeastRecentIfNecessary($this) {
|
|
1225
1225
|
var tmp;
|
|
1226
|
-
if ($this.
|
|
1226
|
+
if ($this.fu_1.p() >= $this.eu_1) {
|
|
1227
1227
|
tmp = removeLeastRecent($this);
|
|
1228
1228
|
} else {
|
|
1229
|
-
return Companion_getInstance_7().
|
|
1229
|
+
return Companion_getInstance_7().lq();
|
|
1230
1230
|
}
|
|
1231
1231
|
return tmp;
|
|
1232
1232
|
}
|
|
@@ -1240,9 +1240,9 @@
|
|
|
1240
1240
|
return '' + it.g4_1 + ' = ' + it.h4_1;
|
|
1241
1241
|
}
|
|
1242
1242
|
function SimpleLRUCache(capacity) {
|
|
1243
|
-
this.
|
|
1243
|
+
this.eu_1 = capacity;
|
|
1244
1244
|
// Inline function 'kotlin.require' call
|
|
1245
|
-
var tmp0_require = this.
|
|
1245
|
+
var tmp0_require = this.eu_1 > 0;
|
|
1246
1246
|
// Inline function 'kotlin.contracts.contract' call
|
|
1247
1247
|
// Inline function 'kotlin.require' call
|
|
1248
1248
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1253,21 +1253,21 @@
|
|
|
1253
1253
|
var message = tmp$ret$0;
|
|
1254
1254
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1255
1255
|
}
|
|
1256
|
-
this.
|
|
1256
|
+
this.fu_1 = LinkedHashMap_init_$Create$();
|
|
1257
1257
|
}
|
|
1258
|
-
SimpleLRUCache.prototype.
|
|
1258
|
+
SimpleLRUCache.prototype.eq = function (key, value) {
|
|
1259
1259
|
var evicted = removeLeastRecentIfNecessary(this);
|
|
1260
1260
|
// Inline function 'kotlin.collections.set' call
|
|
1261
|
-
var tmp0_set = this.
|
|
1261
|
+
var tmp0_set = this.fu_1;
|
|
1262
1262
|
tmp0_set.w3(key, value);
|
|
1263
1263
|
return evicted;
|
|
1264
1264
|
};
|
|
1265
1265
|
SimpleLRUCache.prototype.a3 = function (key) {
|
|
1266
1266
|
var tmp;
|
|
1267
|
-
if (this.
|
|
1268
|
-
tmp = Companion_getInstance_7().
|
|
1267
|
+
if (this.fu_1.u2(key)) {
|
|
1268
|
+
tmp = Companion_getInstance_7().mq(this.fu_1.a3(key));
|
|
1269
1269
|
} else {
|
|
1270
|
-
tmp = Companion_getInstance_7().
|
|
1270
|
+
tmp = Companion_getInstance_7().lq();
|
|
1271
1271
|
}
|
|
1272
1272
|
return tmp;
|
|
1273
1273
|
};
|
|
@@ -1280,41 +1280,41 @@
|
|
|
1280
1280
|
other;
|
|
1281
1281
|
else
|
|
1282
1282
|
THROW_CCE();
|
|
1283
|
-
if (!(this.
|
|
1283
|
+
if (!(this.eu_1 === other.eu_1))
|
|
1284
1284
|
return false;
|
|
1285
|
-
if (!this.
|
|
1285
|
+
if (!this.fu_1.equals(other.fu_1))
|
|
1286
1286
|
return false;
|
|
1287
1287
|
return true;
|
|
1288
1288
|
};
|
|
1289
1289
|
SimpleLRUCache.prototype.hashCode = function () {
|
|
1290
|
-
var result = this.
|
|
1291
|
-
result = imul(31, result) + this.
|
|
1290
|
+
var result = this.eu_1;
|
|
1291
|
+
result = imul(31, result) + this.fu_1.hashCode() | 0;
|
|
1292
1292
|
return result;
|
|
1293
1293
|
};
|
|
1294
|
-
SimpleLRUCache.prototype.
|
|
1295
|
-
var tmp = asSequence(this.
|
|
1294
|
+
SimpleLRUCache.prototype.gu = function () {
|
|
1295
|
+
var tmp = asSequence(this.fu_1.z());
|
|
1296
1296
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda));
|
|
1297
1297
|
};
|
|
1298
1298
|
SimpleLRUCache.prototype.toString = function () {
|
|
1299
|
-
var tmp = this.
|
|
1299
|
+
var tmp = this.gu();
|
|
1300
1300
|
var tmp_0 = map(tmp, SimpleLRUCache$toString$lambda);
|
|
1301
1301
|
return 'SimpleLRUCache(' + joinToString$default(tmp_0, ', ', null, null, 0, null, null, 62, null) + ')';
|
|
1302
1302
|
};
|
|
1303
1303
|
function ValueCursor(current, next) {
|
|
1304
1304
|
AbstractCursor.call(this);
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1305
|
+
this.hu_1 = current;
|
|
1306
|
+
this.iu_1 = next;
|
|
1307
1307
|
}
|
|
1308
|
-
ValueCursor.prototype.
|
|
1309
|
-
return this.
|
|
1308
|
+
ValueCursor.prototype.rq = function () {
|
|
1309
|
+
return this.hu_1;
|
|
1310
1310
|
};
|
|
1311
|
-
ValueCursor.prototype.
|
|
1312
|
-
return this.
|
|
1311
|
+
ValueCursor.prototype.qq = function () {
|
|
1312
|
+
return this.iu_1;
|
|
1313
1313
|
};
|
|
1314
|
-
ValueCursor.prototype.
|
|
1314
|
+
ValueCursor.prototype.sq = function () {
|
|
1315
1315
|
return true;
|
|
1316
1316
|
};
|
|
1317
|
-
ValueCursor.prototype.
|
|
1317
|
+
ValueCursor.prototype.tq = function () {
|
|
1318
1318
|
return false;
|
|
1319
1319
|
};
|
|
1320
1320
|
function dequeOf(items) {
|
|
@@ -1339,7 +1339,7 @@
|
|
|
1339
1339
|
function takeFirst(_this__u8e3s4) {
|
|
1340
1340
|
if (_this__u8e3s4.d())
|
|
1341
1341
|
return null;
|
|
1342
|
-
var first = _this__u8e3s4.
|
|
1342
|
+
var first = _this__u8e3s4.o(0);
|
|
1343
1343
|
_this__u8e3s4.t4(0);
|
|
1344
1344
|
return first;
|
|
1345
1345
|
}
|
|
@@ -1350,7 +1350,7 @@
|
|
|
1350
1350
|
var i = _this__u8e3s4.bb();
|
|
1351
1351
|
var tmp0_iterator = items.j();
|
|
1352
1352
|
while (tmp0_iterator.m()) {
|
|
1353
|
-
var item = tmp0_iterator.
|
|
1353
|
+
var item = tmp0_iterator.n();
|
|
1354
1354
|
i.va(item);
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
@@ -1361,19 +1361,19 @@
|
|
|
1361
1361
|
//region block: post-declaration
|
|
1362
1362
|
AbstractCursor.prototype.asIterable = asIterable_1;
|
|
1363
1363
|
AbstractCursor.prototype.asSequence = asSequence_0;
|
|
1364
|
-
CachedImpl.prototype.
|
|
1364
|
+
CachedImpl.prototype.kq = ifValid;
|
|
1365
1365
|
ConjunctionCursor.prototype.asIterable = asIterable_1;
|
|
1366
1366
|
ConjunctionCursor.prototype.asSequence = asSequence_0;
|
|
1367
1367
|
EmptyCursor.prototype.asIterable = asIterable_1;
|
|
1368
1368
|
EmptyCursor.prototype.asSequence = asSequence_0;
|
|
1369
|
-
IntIndexedImpl.prototype.
|
|
1369
|
+
IntIndexedImpl.prototype.xq = compareTo;
|
|
1370
1370
|
LazyCursor.prototype.asIterable = asIterable_1;
|
|
1371
1371
|
LazyCursor.prototype.asSequence = asSequence_0;
|
|
1372
1372
|
MapperCursor.prototype.asIterable = asIterable_1;
|
|
1373
1373
|
MapperCursor.prototype.asSequence = asSequence_0;
|
|
1374
1374
|
NonLastCursor.prototype.asIterable = asIterable_1;
|
|
1375
1375
|
NonLastCursor.prototype.asSequence = asSequence_0;
|
|
1376
|
-
SimpleLRUCache.prototype.
|
|
1376
|
+
SimpleLRUCache.prototype.fq = getOrSet;
|
|
1377
1377
|
ValueCursor.prototype.asIterable = asIterable_1;
|
|
1378
1378
|
ValueCursor.prototype.asSequence = asSequence_0;
|
|
1379
1379
|
//endregion
|