@tuprolog/2p-full 1.0.3 → 1.1.0
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 +204 -201
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +3668 -4128
- package/2p-core.js.map +1 -1
- package/2p-datalog.js +3 -3
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js +3 -3
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +3 -3
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +3 -3
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +3 -3
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +9 -19
- package/2p-full.js.map +1 -1
- package/2p-io-lib.js +6 -3321
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +6 -3435
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +6 -1266
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +6 -30
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +6 -126
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +6 -499
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js +3 -3
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js +3 -3
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1216 -1203
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js +3 -3
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +8 -8
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +2095 -2140
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1244 -1333
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5185 -6393
- package/2p-solve.js.map +1 -1
- package/2p-test-dsl.js +3 -3
- package/2p-test-dsl.js.map +1 -1
- package/2p-theory.js +2091 -1992
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +315 -300
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +625 -635
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +15 -0
- package/clikt-clikt-mordant.js.map +1 -0
- package/clikt-clikt.js +15 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +15 -0
- package/colormath-root-colormath.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +6829 -8585
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js +15 -0
- package/kotlin-kotlin-test.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +15 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +15 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kt-math.js +3143 -3508
- package/kt-math.js.map +1 -1
- package/mordant-mordant-omnibus.js +15 -0
- package/mordant-mordant-omnibus.js.map +1 -0
- package/mordant-mordant.js +19 -0
- package/mordant-mordant.js.map +1 -0
- package/package.json +2 -3
- package/88b0986a7186d029-atomicfu-js-ir.js +0 -15
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/clikt-clikt-js-ir.js +0 -6006
- package/clikt-clikt-js-ir.js.map +0 -1
- package/kotlin-kotlin-test-kotlin-test-js-ir.js +0 -15
- package/kotlin-kotlin-test-kotlin-test-js-ir.js.map +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +0 -15
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
package/2p-utils.js
CHANGED
|
@@ -1,195 +1,190 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js'
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-utils'.");
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
throw new Error("Error loading module '2p-utils'. Its dependency 'kt-math' was not found. Please, check whether 'kt-math' is loaded prior to '2p-utils'.");
|
|
12
|
-
}
|
|
13
|
-
root['2p-utils'] = factory(typeof this['2p-utils'] === 'undefined' ? {} : this['2p-utils'], this['kotlin-kotlin-stdlib'], this['kt-math']);
|
|
10
|
+
globalThis['2p-utils'] = factory(typeof globalThis['2p-utils'] === 'undefined' ? {} : globalThis['2p-utils'], globalThis['kotlin-kotlin-stdlib']);
|
|
14
11
|
}
|
|
15
|
-
}(
|
|
12
|
+
}(function (_, kotlin_kotlin) {
|
|
16
13
|
'use strict';
|
|
17
14
|
//region block: imports
|
|
18
15
|
var imul = Math.imul;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var asIterable_0 = kotlin_kotlin.$_$.
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var
|
|
16
|
+
var protoOf = kotlin_kotlin.$_$.k6;
|
|
17
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.u5;
|
|
18
|
+
var Unit_instance = kotlin_kotlin.$_$.k1;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.w5;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.ea;
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.c6;
|
|
22
|
+
var initMetadataForClass = kotlin_kotlin.$_$.t5;
|
|
23
|
+
var Sequence = kotlin_kotlin.$_$.e7;
|
|
24
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
25
|
+
var arrayIterator = kotlin_kotlin.$_$.d5;
|
|
26
|
+
var Comparable = kotlin_kotlin.$_$.t9;
|
|
27
|
+
var toList = kotlin_kotlin.$_$.q8;
|
|
28
|
+
var asSequence = kotlin_kotlin.$_$.w1;
|
|
29
|
+
var asIterable = kotlin_kotlin.$_$.s1;
|
|
30
|
+
var hashCode = kotlin_kotlin.$_$.s5;
|
|
31
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.z1;
|
|
32
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.c;
|
|
33
|
+
var asIterable_0 = kotlin_kotlin.$_$.g7;
|
|
34
|
+
var sequence = kotlin_kotlin.$_$.k8;
|
|
35
|
+
var IntRange = kotlin_kotlin.$_$.w6;
|
|
36
|
+
var zip = kotlin_kotlin.$_$.u8;
|
|
37
|
+
var equals = kotlin_kotlin.$_$.m5;
|
|
38
|
+
var FunctionAdapter = kotlin_kotlin.$_$.c5;
|
|
39
|
+
var Comparator = kotlin_kotlin.$_$.u9;
|
|
40
|
+
var CoroutineImpl = kotlin_kotlin.$_$.k4;
|
|
41
|
+
var SequenceScope = kotlin_kotlin.$_$.d7;
|
|
42
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.j4;
|
|
43
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.x5;
|
|
44
|
+
var withIndex = kotlin_kotlin.$_$.t8;
|
|
45
|
+
var ensureNotNull = kotlin_kotlin.$_$.ha;
|
|
46
|
+
var map = kotlin_kotlin.$_$.c8;
|
|
47
|
+
var filterNot = kotlin_kotlin.$_$.p7;
|
|
48
|
+
var toMutableList = kotlin_kotlin.$_$.r8;
|
|
49
|
+
var minWithOrNull = kotlin_kotlin.$_$.d8;
|
|
50
|
+
var subtract = kotlin_kotlin.$_$.a5;
|
|
51
|
+
var convertToInt = kotlin_kotlin.$_$.p4;
|
|
52
|
+
var toString = kotlin_kotlin.$_$.oa;
|
|
53
|
+
var initMetadataForObject = kotlin_kotlin.$_$.y5;
|
|
54
|
+
var KtMap = kotlin_kotlin.$_$.n1;
|
|
55
|
+
var toMutableMap = kotlin_kotlin.$_$.g4;
|
|
56
|
+
var toString_0 = kotlin_kotlin.$_$.n6;
|
|
57
|
+
var lazy = kotlin_kotlin.$_$.ja;
|
|
58
|
+
var KProperty1 = kotlin_kotlin.$_$.c7;
|
|
59
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.q5;
|
|
60
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.a7;
|
|
61
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
62
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.n5;
|
|
63
|
+
var first = kotlin_kotlin.$_$.m2;
|
|
64
|
+
var to = kotlin_kotlin.$_$.pa;
|
|
65
|
+
var Pair = kotlin_kotlin.$_$.ca;
|
|
66
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
67
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.y7;
|
|
69
|
+
var mutableListOf = kotlin_kotlin.$_$.i3;
|
|
70
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.d;
|
|
71
|
+
var addAll = kotlin_kotlin.$_$.p1;
|
|
72
72
|
//endregion
|
|
73
73
|
//region block: pre-declaration
|
|
74
|
-
|
|
74
|
+
initMetadataForCompanion(Companion);
|
|
75
75
|
function getOrSet(key, valueGenerator) {
|
|
76
|
-
var got = this.
|
|
76
|
+
var got = this.h2(key);
|
|
77
77
|
var tmp;
|
|
78
78
|
if (got instanceof Some) {
|
|
79
|
-
tmp = got.
|
|
79
|
+
tmp = got.zo_1;
|
|
80
80
|
} else {
|
|
81
81
|
// Inline function 'kotlin.also' call
|
|
82
82
|
var this_0 = valueGenerator();
|
|
83
|
-
|
|
84
|
-
// Inline function 'it.unibo.tuprolog.utils.Cache.getOrSet.<anonymous>' call
|
|
85
|
-
this.sq(key, this_0);
|
|
83
|
+
this.xo(key, this_0);
|
|
86
84
|
tmp = this_0;
|
|
87
85
|
}
|
|
88
86
|
return tmp;
|
|
89
87
|
}
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
initMetadataForInterface(Cache, 'Cache');
|
|
89
|
+
initMetadataForCompanion(Companion_0);
|
|
92
90
|
function ifValid(consumer) {
|
|
93
91
|
var tmp;
|
|
94
|
-
if (this.
|
|
95
|
-
var tmp_0 =
|
|
92
|
+
if (this.bp()) {
|
|
93
|
+
var tmp_0 = Companion_instance_4;
|
|
96
94
|
// Inline function 'kotlin.let' call
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
tmp = tmp_0.ar(tmp$ret$0);
|
|
95
|
+
var tmp$ret$0 = consumer(this.e2());
|
|
96
|
+
tmp = tmp_0.fp(tmp$ret$0);
|
|
100
97
|
} else {
|
|
101
|
-
tmp =
|
|
98
|
+
tmp = Companion_instance_4.ep();
|
|
102
99
|
}
|
|
103
100
|
return tmp;
|
|
104
101
|
}
|
|
105
|
-
|
|
102
|
+
initMetadataForInterface(Cached, 'Cached');
|
|
106
103
|
function castTo() {
|
|
107
104
|
return isInterface(this, Castable) ? this : THROW_CCE();
|
|
108
105
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
initMetadataForInterface(Castable, 'Castable');
|
|
107
|
+
initMetadataForCompanion(Companion_1);
|
|
108
|
+
initMetadataForClass(Cursor$asIterable$$inlined$Iterable$1);
|
|
109
|
+
initMetadataForClass(Cursor$asSequence$$inlined$Sequence$1, VOID, VOID, VOID, [Sequence]);
|
|
113
110
|
function asIterable_1() {
|
|
114
111
|
// Inline function 'kotlin.collections.Iterable' call
|
|
115
|
-
return new
|
|
112
|
+
return new Cursor$asIterable$$inlined$Iterable$1(this);
|
|
116
113
|
}
|
|
117
114
|
function asSequence_0() {
|
|
118
115
|
// Inline function 'kotlin.sequences.Sequence' call
|
|
119
|
-
return new
|
|
116
|
+
return new Cursor$asSequence$$inlined$Sequence$1(this);
|
|
120
117
|
}
|
|
121
|
-
|
|
118
|
+
initMetadataForInterface(Cursor, 'Cursor');
|
|
122
119
|
function component1() {
|
|
123
|
-
return this.
|
|
120
|
+
return this.op();
|
|
124
121
|
}
|
|
125
122
|
function component2() {
|
|
126
|
-
return this.
|
|
123
|
+
return this.e2();
|
|
127
124
|
}
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
initMetadataForInterface(Indexed, 'Indexed');
|
|
126
|
+
initMetadataForCompanion(Companion_2);
|
|
130
127
|
function compareTo(other) {
|
|
131
|
-
return this.
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
128
|
+
return this.op() - other.op() | 0;
|
|
129
|
+
}
|
|
130
|
+
initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
131
|
+
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
132
|
+
initMetadataForLambda(dropLast$slambda, CoroutineImpl, VOID, [1]);
|
|
133
|
+
initMetadataForLambda(insertAt$slambda, CoroutineImpl, VOID, [1]);
|
|
134
|
+
initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
135
|
+
initMetadataForLambda(merge$slambda, CoroutineImpl, VOID, [1]);
|
|
136
|
+
initMetadataForCompanion(Companion_3);
|
|
140
137
|
function compareTo_0(other) {
|
|
141
|
-
return this.
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
setMetadataFor(Some, 'Some', classMeta, Optional);
|
|
149
|
-
setMetadataFor(None, 'None', objectMeta, Optional);
|
|
138
|
+
return convertToInt(subtract(this.op(), other.op()));
|
|
139
|
+
}
|
|
140
|
+
initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
141
|
+
initMetadataForCompanion(Companion_4);
|
|
142
|
+
initMetadataForClass(Optional, 'Optional');
|
|
143
|
+
initMetadataForClass(Some, 'Some', VOID, Optional);
|
|
144
|
+
initMetadataForObject(None, 'None', VOID, Optional);
|
|
150
145
|
function getTag(name) {
|
|
151
|
-
var tmp = this.
|
|
146
|
+
var tmp = this.nr().h2(name);
|
|
152
147
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
153
148
|
}
|
|
154
149
|
function containsTag(name) {
|
|
155
150
|
// Inline function 'kotlin.collections.contains' call
|
|
156
151
|
// Inline function 'kotlin.collections.containsKey' call
|
|
157
|
-
var this_0 = this.
|
|
158
|
-
return (isInterface(this_0,
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
152
|
+
var this_0 = this.nr();
|
|
153
|
+
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2(name);
|
|
154
|
+
}
|
|
155
|
+
initMetadataForInterface(Taggable, 'Taggable');
|
|
156
|
+
initMetadataForCompanion(Companion_5);
|
|
157
|
+
initMetadataForClass(AbstractCursor$iterator$1);
|
|
158
|
+
initMetadataForClass(AbstractCursor, 'AbstractCursor', VOID, VOID, [Cursor]);
|
|
159
|
+
initMetadataForClass(CachedImpl, 'CachedImpl', VOID, VOID, [Cached]);
|
|
160
|
+
initMetadataForClass(ConjunctionCursor, 'ConjunctionCursor', VOID, AbstractCursor);
|
|
161
|
+
initMetadataForObject(EmptyCursor, 'EmptyCursor', VOID, AbstractCursor);
|
|
162
|
+
initMetadataForClass(IntIndexedImpl, 'IntIndexedImpl', VOID, VOID, [IntIndexed]);
|
|
163
|
+
initMetadataForClass(LazyCursor, 'LazyCursor', VOID, AbstractCursor);
|
|
164
|
+
initMetadataForClass(LongIndexedImpl, 'LongIndexedImpl', VOID, VOID, [LongIndexed]);
|
|
165
|
+
initMetadataForClass(MapperCursor, 'MapperCursor', VOID, AbstractCursor);
|
|
166
|
+
initMetadataForClass(NonLastCursor, 'NonLastCursor', VOID, AbstractCursor);
|
|
167
|
+
initMetadataForClass(SimpleLRUCache, 'SimpleLRUCache', VOID, VOID, [Cache]);
|
|
168
|
+
initMetadataForClass(ValueCursor, 'ValueCursor', VOID, AbstractCursor);
|
|
174
169
|
//endregion
|
|
175
170
|
function Companion() {
|
|
176
171
|
}
|
|
177
|
-
protoOf(Companion).
|
|
172
|
+
protoOf(Companion).wo = function (capacity) {
|
|
178
173
|
return new SimpleLRUCache(capacity);
|
|
179
174
|
};
|
|
180
175
|
var Companion_instance;
|
|
181
|
-
function
|
|
176
|
+
function Companion_getInstance() {
|
|
182
177
|
return Companion_instance;
|
|
183
178
|
}
|
|
184
179
|
function Cache() {
|
|
185
180
|
}
|
|
186
181
|
function Companion_0() {
|
|
187
182
|
}
|
|
188
|
-
protoOf(Companion_0).
|
|
183
|
+
protoOf(Companion_0).ap = function (generator) {
|
|
189
184
|
return new CachedImpl(generator);
|
|
190
185
|
};
|
|
191
186
|
var Companion_instance_0;
|
|
192
|
-
function
|
|
187
|
+
function Companion_getInstance_0() {
|
|
193
188
|
return Companion_instance_0;
|
|
194
189
|
}
|
|
195
190
|
function Cached() {
|
|
@@ -202,520 +197,523 @@
|
|
|
202
197
|
return toCursor(iterator);
|
|
203
198
|
};
|
|
204
199
|
protoOf(Companion_1).ofSequence = function (sequence) {
|
|
205
|
-
return
|
|
200
|
+
return cursor(sequence);
|
|
206
201
|
};
|
|
207
202
|
protoOf(Companion_1).empty = function () {
|
|
208
203
|
return EmptyCursor_getInstance();
|
|
209
204
|
};
|
|
210
205
|
var Companion_instance_1;
|
|
211
|
-
function
|
|
206
|
+
function Companion_getInstance_1() {
|
|
212
207
|
return Companion_instance_1;
|
|
213
208
|
}
|
|
214
|
-
function
|
|
215
|
-
this.
|
|
209
|
+
function Cursor$asIterable$$inlined$Iterable$1(this$0) {
|
|
210
|
+
this.hp_1 = this$0;
|
|
216
211
|
}
|
|
217
|
-
protoOf(
|
|
218
|
-
|
|
219
|
-
return this.cr_1.iterator();
|
|
212
|
+
protoOf(Cursor$asIterable$$inlined$Iterable$1).p = function () {
|
|
213
|
+
return this.hp_1.iterator();
|
|
220
214
|
};
|
|
221
|
-
function
|
|
222
|
-
this.
|
|
215
|
+
function Cursor$asSequence$$inlined$Sequence$1(this$0) {
|
|
216
|
+
this.ip_1 = this$0;
|
|
223
217
|
}
|
|
224
|
-
protoOf(
|
|
225
|
-
|
|
226
|
-
return this.dr_1.iterator();
|
|
218
|
+
protoOf(Cursor$asSequence$$inlined$Sequence$1).p = function () {
|
|
219
|
+
return this.ip_1.iterator();
|
|
227
220
|
};
|
|
228
221
|
function Cursor() {
|
|
229
222
|
}
|
|
230
223
|
function cursor(_this__u8e3s4) {
|
|
231
|
-
return toCursor(_this__u8e3s4.
|
|
224
|
+
return toCursor(_this__u8e3s4.p());
|
|
225
|
+
}
|
|
226
|
+
function plus(_this__u8e3s4, other) {
|
|
227
|
+
return other.lp() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.lp() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
232
228
|
}
|
|
233
229
|
function cursor_0(_this__u8e3s4) {
|
|
234
|
-
return toCursor(_this__u8e3s4.
|
|
230
|
+
return toCursor(_this__u8e3s4.p());
|
|
235
231
|
}
|
|
236
232
|
function cursor_1(_this__u8e3s4) {
|
|
237
233
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
238
234
|
}
|
|
239
|
-
function plus(_this__u8e3s4, other) {
|
|
240
|
-
return other.gr() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.gr() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
241
|
-
}
|
|
242
235
|
function toCursor(_this__u8e3s4) {
|
|
243
|
-
return
|
|
236
|
+
return Companion_instance_5.np(_this__u8e3s4);
|
|
244
237
|
}
|
|
245
238
|
function Indexed() {
|
|
246
239
|
}
|
|
247
240
|
function Companion_2() {
|
|
248
241
|
}
|
|
249
|
-
protoOf(Companion_2).
|
|
242
|
+
protoOf(Companion_2).pp = function (index, value) {
|
|
250
243
|
return new IntIndexedImpl(index, value);
|
|
251
244
|
};
|
|
252
245
|
var Companion_instance_2;
|
|
253
|
-
function
|
|
246
|
+
function Companion_getInstance_2() {
|
|
254
247
|
return Companion_instance_2;
|
|
255
248
|
}
|
|
256
249
|
function IntIndexed() {
|
|
257
250
|
}
|
|
258
|
-
function
|
|
259
|
-
return
|
|
251
|
+
function cached(_this__u8e3s4) {
|
|
252
|
+
return cursor(_this__u8e3s4).asSequence();
|
|
253
|
+
}
|
|
254
|
+
function buffered(_this__u8e3s4) {
|
|
255
|
+
return asSequence(toList(_this__u8e3s4));
|
|
256
|
+
}
|
|
257
|
+
function itemWiseHashCode(items) {
|
|
258
|
+
return itemWiseHashCode_0(asIterable(items));
|
|
260
259
|
}
|
|
261
|
-
function
|
|
260
|
+
function itemWiseHashCode_0(iterable) {
|
|
262
261
|
var hash = 13;
|
|
263
|
-
var i = iterable.
|
|
262
|
+
var i = iterable.p();
|
|
264
263
|
while (i.s()) {
|
|
265
264
|
var tmp = imul(31, hash);
|
|
266
|
-
var tmp0_safe_receiver = i.
|
|
265
|
+
var tmp0_safe_receiver = i.t();
|
|
267
266
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
268
267
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
269
268
|
}
|
|
270
269
|
return hash;
|
|
271
270
|
}
|
|
272
|
-
function
|
|
273
|
-
return
|
|
271
|
+
function itemWiseEquals(iterable1, iterable2) {
|
|
272
|
+
return itemWiseEquals_1(iterable1, iterable2, itemWiseEquals$lambda);
|
|
274
273
|
}
|
|
275
|
-
function
|
|
276
|
-
|
|
274
|
+
function mergeSequences(iterables, comparator) {
|
|
275
|
+
var tmp = new sam$kotlin_Comparator$0(comparator);
|
|
276
|
+
// Inline function 'kotlin.collections.map' call
|
|
277
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
278
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
279
|
+
var _iterator__ex2g4s = iterables.p();
|
|
280
|
+
while (_iterator__ex2g4s.s()) {
|
|
281
|
+
var item = _iterator__ex2g4s.t();
|
|
282
|
+
var tmp$ret$0 = asIterable_0(item);
|
|
283
|
+
destination.n(tmp$ret$0);
|
|
284
|
+
}
|
|
285
|
+
return merge(tmp, destination);
|
|
277
286
|
}
|
|
278
|
-
function
|
|
279
|
-
return
|
|
287
|
+
function dropLast(_this__u8e3s4) {
|
|
288
|
+
return sequence(dropLast$slambda_0(_this__u8e3s4, null));
|
|
280
289
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
290
|
+
function itemWiseHashCode_1(sequence) {
|
|
291
|
+
return itemWiseHashCode_0(asIterable_0(sequence));
|
|
283
292
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
293
|
+
function itemWiseEquals_0(sequence1, sequence2, comparator) {
|
|
294
|
+
return itemWiseEquals_1(asIterable_0(sequence1), asIterable_0(sequence2), comparator);
|
|
286
295
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
296
|
+
function insertAt(_this__u8e3s4, index, item, items) {
|
|
297
|
+
return sequence(insertAt$slambda_0(_this__u8e3s4, index, item, items, null));
|
|
298
|
+
}
|
|
299
|
+
function itemWiseEquals_1(iterable1, iterable2, comparator) {
|
|
300
|
+
var i = iterable1.p();
|
|
301
|
+
var j = iterable2.p();
|
|
302
|
+
while (i.s() && j.s()) {
|
|
303
|
+
var a = i.t();
|
|
304
|
+
var b = j.t();
|
|
293
305
|
if (!comparator(a, b)) {
|
|
294
306
|
return false;
|
|
295
307
|
}
|
|
296
308
|
}
|
|
297
309
|
return i.s() === j.s();
|
|
298
310
|
}
|
|
299
|
-
function itemWiseHashCode_1(items) {
|
|
300
|
-
return itemWiseHashCode(asIterable_0(items));
|
|
301
|
-
}
|
|
302
|
-
function itemWiseEquals_1(iterable1, iterable2) {
|
|
303
|
-
return itemWiseEquals_0(iterable1, iterable2, itemWiseEquals$lambda);
|
|
304
|
-
}
|
|
305
|
-
function mergeSequences(iterables, comparator) {
|
|
306
|
-
var tmp = new sam$kotlin_Comparator$0(comparator);
|
|
307
|
-
// Inline function 'kotlin.collections.map' call
|
|
308
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
309
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
310
|
-
var tmp0_iterator = iterables.r();
|
|
311
|
-
while (tmp0_iterator.s()) {
|
|
312
|
-
var item = tmp0_iterator.u();
|
|
313
|
-
// Inline function 'it.unibo.tuprolog.utils.mergeSequences.<anonymous>' call
|
|
314
|
-
var tmp$ret$0 = asIterable(item);
|
|
315
|
-
destination.o(tmp$ret$0);
|
|
316
|
-
}
|
|
317
|
-
return merge(tmp, destination);
|
|
318
|
-
}
|
|
319
311
|
function merge(comparator, iterables) {
|
|
320
312
|
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
321
313
|
}
|
|
322
314
|
function indexed(_this__u8e3s4) {
|
|
323
|
-
var tmp = asSequence(new IntRange(0,
|
|
315
|
+
var tmp = asSequence(new IntRange(0, 2147483647));
|
|
324
316
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
325
317
|
}
|
|
326
318
|
function sam$kotlin_Comparator$0(function_0) {
|
|
327
|
-
this.
|
|
319
|
+
this.rp_1 = function_0;
|
|
328
320
|
}
|
|
329
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
330
|
-
return this.
|
|
321
|
+
protoOf(sam$kotlin_Comparator$0).tb = function (a, b) {
|
|
322
|
+
return this.rp_1(a, b);
|
|
331
323
|
};
|
|
332
324
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
333
|
-
return this.
|
|
325
|
+
return this.tb(a, b);
|
|
326
|
+
};
|
|
327
|
+
protoOf(sam$kotlin_Comparator$0).p2 = function () {
|
|
328
|
+
return this.rp_1;
|
|
334
329
|
};
|
|
330
|
+
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
331
|
+
var tmp;
|
|
332
|
+
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
333
|
+
var tmp_0;
|
|
334
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
335
|
+
tmp_0 = equals(this.p2(), other.p2());
|
|
336
|
+
} else {
|
|
337
|
+
tmp_0 = false;
|
|
338
|
+
}
|
|
339
|
+
tmp = tmp_0;
|
|
340
|
+
} else {
|
|
341
|
+
tmp = false;
|
|
342
|
+
}
|
|
343
|
+
return tmp;
|
|
344
|
+
};
|
|
345
|
+
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
346
|
+
return hashCode(this.p2());
|
|
347
|
+
};
|
|
348
|
+
function itemWiseEquals$lambda(a, b) {
|
|
349
|
+
return equals(a, b);
|
|
350
|
+
}
|
|
335
351
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
336
|
-
this.
|
|
352
|
+
this.aq_1 = $this_dropLast;
|
|
337
353
|
CoroutineImpl.call(this, resultContinuation);
|
|
338
354
|
}
|
|
339
|
-
protoOf(dropLast$slambda).
|
|
340
|
-
var tmp = this.
|
|
341
|
-
tmp.
|
|
342
|
-
tmp.
|
|
343
|
-
return tmp.
|
|
355
|
+
protoOf(dropLast$slambda).dq = function ($this$sequence, $completion) {
|
|
356
|
+
var tmp = this.eq($this$sequence, $completion);
|
|
357
|
+
tmp.d8_1 = Unit_instance;
|
|
358
|
+
tmp.e8_1 = null;
|
|
359
|
+
return tmp.j8();
|
|
344
360
|
};
|
|
345
|
-
protoOf(dropLast$slambda).
|
|
346
|
-
return this.
|
|
361
|
+
protoOf(dropLast$slambda).a9 = function (p1, $completion) {
|
|
362
|
+
return this.dq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
347
363
|
};
|
|
348
|
-
protoOf(dropLast$slambda).
|
|
349
|
-
var suspendResult = this.
|
|
364
|
+
protoOf(dropLast$slambda).j8 = function () {
|
|
365
|
+
var suspendResult = this.d8_1;
|
|
350
366
|
$sm: do
|
|
351
367
|
try {
|
|
352
|
-
var tmp = this.
|
|
368
|
+
var tmp = this.b8_1;
|
|
353
369
|
switch (tmp) {
|
|
354
370
|
case 0:
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
371
|
+
this.c8_1 = 5;
|
|
372
|
+
this.cq_1 = this.aq_1.p();
|
|
373
|
+
this.b8_1 = 1;
|
|
358
374
|
continue $sm;
|
|
359
375
|
case 1:
|
|
360
|
-
if (!this.
|
|
361
|
-
this.
|
|
376
|
+
if (!this.cq_1.s()) {
|
|
377
|
+
this.b8_1 = 4;
|
|
362
378
|
continue $sm;
|
|
363
379
|
}
|
|
364
380
|
|
|
365
|
-
|
|
366
|
-
if (this.
|
|
367
|
-
this.
|
|
368
|
-
suspendResult = this.
|
|
381
|
+
var current = this.cq_1.t();
|
|
382
|
+
if (this.cq_1.s()) {
|
|
383
|
+
this.b8_1 = 2;
|
|
384
|
+
suspendResult = this.bq_1.gd(current, this);
|
|
369
385
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
370
386
|
return suspendResult;
|
|
371
387
|
}
|
|
372
388
|
continue $sm;
|
|
373
389
|
} else {
|
|
374
|
-
this.
|
|
390
|
+
this.b8_1 = 3;
|
|
375
391
|
continue $sm;
|
|
376
392
|
}
|
|
377
393
|
|
|
378
394
|
case 2:
|
|
379
|
-
this.
|
|
395
|
+
this.b8_1 = 3;
|
|
380
396
|
continue $sm;
|
|
381
397
|
case 3:
|
|
382
|
-
this.
|
|
398
|
+
this.b8_1 = 1;
|
|
383
399
|
continue $sm;
|
|
384
400
|
case 4:
|
|
385
401
|
return Unit_instance;
|
|
386
402
|
case 5:
|
|
387
|
-
throw this.
|
|
403
|
+
throw this.e8_1;
|
|
388
404
|
}
|
|
389
405
|
} catch ($p) {
|
|
390
406
|
var e = $p;
|
|
391
|
-
if (this.
|
|
407
|
+
if (this.c8_1 === 5) {
|
|
392
408
|
throw e;
|
|
393
409
|
} else {
|
|
394
|
-
this.
|
|
395
|
-
this.
|
|
410
|
+
this.b8_1 = this.c8_1;
|
|
411
|
+
this.e8_1 = e;
|
|
396
412
|
}
|
|
397
413
|
}
|
|
398
414
|
while (true);
|
|
399
415
|
};
|
|
400
|
-
protoOf(dropLast$slambda).
|
|
401
|
-
var i = new dropLast$slambda(this.
|
|
402
|
-
i.
|
|
416
|
+
protoOf(dropLast$slambda).eq = function ($this$sequence, completion) {
|
|
417
|
+
var i = new dropLast$slambda(this.aq_1, completion);
|
|
418
|
+
i.bq_1 = $this$sequence;
|
|
403
419
|
return i;
|
|
404
420
|
};
|
|
405
421
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
406
422
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
407
423
|
var l = function ($this$sequence, $completion) {
|
|
408
|
-
return i.
|
|
424
|
+
return i.dq($this$sequence, $completion);
|
|
409
425
|
};
|
|
410
426
|
l.$arity = 1;
|
|
411
427
|
return l;
|
|
412
428
|
}
|
|
413
429
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
this.
|
|
417
|
-
this.
|
|
430
|
+
this.nq_1 = $this_insertAt;
|
|
431
|
+
this.oq_1 = $index;
|
|
432
|
+
this.pq_1 = $item;
|
|
433
|
+
this.qq_1 = $items;
|
|
418
434
|
CoroutineImpl.call(this, resultContinuation);
|
|
419
435
|
}
|
|
420
|
-
protoOf(insertAt$slambda).
|
|
421
|
-
var tmp = this.
|
|
422
|
-
tmp.
|
|
423
|
-
tmp.
|
|
424
|
-
return tmp.
|
|
436
|
+
protoOf(insertAt$slambda).dq = function ($this$sequence, $completion) {
|
|
437
|
+
var tmp = this.eq($this$sequence, $completion);
|
|
438
|
+
tmp.d8_1 = Unit_instance;
|
|
439
|
+
tmp.e8_1 = null;
|
|
440
|
+
return tmp.j8();
|
|
425
441
|
};
|
|
426
|
-
protoOf(insertAt$slambda).
|
|
427
|
-
return this.
|
|
442
|
+
protoOf(insertAt$slambda).a9 = function (p1, $completion) {
|
|
443
|
+
return this.dq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
428
444
|
};
|
|
429
|
-
protoOf(insertAt$slambda).
|
|
430
|
-
var suspendResult = this.
|
|
445
|
+
protoOf(insertAt$slambda).j8 = function () {
|
|
446
|
+
var suspendResult = this.d8_1;
|
|
431
447
|
$sm: do
|
|
432
448
|
try {
|
|
433
|
-
var tmp = this.
|
|
449
|
+
var tmp = this.b8_1;
|
|
434
450
|
switch (tmp) {
|
|
435
451
|
case 0:
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
452
|
+
this.c8_1 = 7;
|
|
453
|
+
this.tq_1 = asIterable_0(withIndex(this.nq_1)).p();
|
|
454
|
+
this.b8_1 = 1;
|
|
439
455
|
continue $sm;
|
|
440
456
|
case 1:
|
|
441
|
-
if (!this.
|
|
442
|
-
this.
|
|
457
|
+
if (!this.tq_1.s()) {
|
|
458
|
+
this.b8_1 = 6;
|
|
443
459
|
continue $sm;
|
|
444
460
|
}
|
|
445
461
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
this.
|
|
449
|
-
if (
|
|
450
|
-
this.
|
|
451
|
-
suspendResult = this.
|
|
462
|
+
var _destruct__k2r9zo = this.tq_1.t();
|
|
463
|
+
var i = _destruct__k2r9zo.rc();
|
|
464
|
+
this.sq_1 = _destruct__k2r9zo.sc();
|
|
465
|
+
if (i === this.oq_1) {
|
|
466
|
+
this.b8_1 = 2;
|
|
467
|
+
suspendResult = this.rq_1.gd(this.pq_1, this);
|
|
452
468
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
453
469
|
return suspendResult;
|
|
454
470
|
}
|
|
455
471
|
continue $sm;
|
|
456
472
|
} else {
|
|
457
|
-
this.
|
|
473
|
+
this.b8_1 = 4;
|
|
458
474
|
continue $sm;
|
|
459
475
|
}
|
|
460
476
|
|
|
461
477
|
case 2:
|
|
462
|
-
this.
|
|
463
|
-
suspendResult = this.
|
|
478
|
+
this.b8_1 = 3;
|
|
479
|
+
suspendResult = this.rq_1.id(asIterable(this.qq_1), this);
|
|
464
480
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
465
481
|
return suspendResult;
|
|
466
482
|
}
|
|
467
483
|
|
|
468
484
|
continue $sm;
|
|
469
485
|
case 3:
|
|
470
|
-
this.
|
|
486
|
+
this.b8_1 = 4;
|
|
471
487
|
continue $sm;
|
|
472
488
|
case 4:
|
|
473
|
-
this.
|
|
474
|
-
suspendResult = this.
|
|
489
|
+
this.b8_1 = 5;
|
|
490
|
+
suspendResult = this.rq_1.gd(this.sq_1, this);
|
|
475
491
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
476
492
|
return suspendResult;
|
|
477
493
|
}
|
|
478
494
|
|
|
479
495
|
continue $sm;
|
|
480
496
|
case 5:
|
|
481
|
-
this.
|
|
497
|
+
this.b8_1 = 1;
|
|
482
498
|
continue $sm;
|
|
483
499
|
case 6:
|
|
484
500
|
return Unit_instance;
|
|
485
501
|
case 7:
|
|
486
|
-
throw this.
|
|
502
|
+
throw this.e8_1;
|
|
487
503
|
}
|
|
488
504
|
} catch ($p) {
|
|
489
505
|
var e = $p;
|
|
490
|
-
if (this.
|
|
506
|
+
if (this.c8_1 === 7) {
|
|
491
507
|
throw e;
|
|
492
508
|
} else {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
509
|
+
this.b8_1 = this.c8_1;
|
|
510
|
+
this.e8_1 = e;
|
|
495
511
|
}
|
|
496
512
|
}
|
|
497
513
|
while (true);
|
|
498
514
|
};
|
|
499
|
-
protoOf(insertAt$slambda).
|
|
500
|
-
var i = new insertAt$slambda(this.
|
|
501
|
-
i.
|
|
515
|
+
protoOf(insertAt$slambda).eq = function ($this$sequence, completion) {
|
|
516
|
+
var i = new insertAt$slambda(this.nq_1, this.oq_1, this.pq_1, this.qq_1, completion);
|
|
517
|
+
i.rq_1 = $this$sequence;
|
|
502
518
|
return i;
|
|
503
519
|
};
|
|
504
520
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
505
521
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
506
522
|
var l = function ($this$sequence, $completion) {
|
|
507
|
-
return i.
|
|
523
|
+
return i.dq($this$sequence, $completion);
|
|
508
524
|
};
|
|
509
525
|
l.$arity = 1;
|
|
510
526
|
return l;
|
|
511
527
|
}
|
|
512
|
-
function itemWiseEquals$lambda(a, b) {
|
|
513
|
-
return equals(a, b);
|
|
514
|
-
}
|
|
515
528
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
516
|
-
this.
|
|
529
|
+
this.uq_1 = function_0;
|
|
517
530
|
}
|
|
518
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
519
|
-
return this.
|
|
531
|
+
protoOf(sam$kotlin_Comparator$0_0).tb = function (a, b) {
|
|
532
|
+
return this.uq_1(a, b);
|
|
520
533
|
};
|
|
521
534
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
522
|
-
return this.
|
|
535
|
+
return this.tb(a, b);
|
|
536
|
+
};
|
|
537
|
+
protoOf(sam$kotlin_Comparator$0_0).p2 = function () {
|
|
538
|
+
return this.uq_1;
|
|
539
|
+
};
|
|
540
|
+
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
541
|
+
var tmp;
|
|
542
|
+
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
543
|
+
var tmp_0;
|
|
544
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
545
|
+
tmp_0 = equals(this.p2(), other.p2());
|
|
546
|
+
} else {
|
|
547
|
+
tmp_0 = false;
|
|
548
|
+
}
|
|
549
|
+
tmp = tmp_0;
|
|
550
|
+
} else {
|
|
551
|
+
tmp = false;
|
|
552
|
+
}
|
|
553
|
+
return tmp;
|
|
554
|
+
};
|
|
555
|
+
protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
|
|
556
|
+
return hashCode(this.p2());
|
|
523
557
|
};
|
|
524
558
|
function merge$slambda$lambda(it) {
|
|
525
|
-
return
|
|
559
|
+
return cursor_0(it);
|
|
526
560
|
}
|
|
527
561
|
function merge$slambda$lambda_0(it) {
|
|
528
|
-
return it.
|
|
562
|
+
return it.mp();
|
|
529
563
|
}
|
|
530
564
|
function merge$slambda$lambda_1(it) {
|
|
531
|
-
return ensureNotNull(it.
|
|
565
|
+
return ensureNotNull(it.kp());
|
|
532
566
|
}
|
|
533
567
|
function merge$slambda$lambda_2($comparator) {
|
|
534
568
|
return function (a, b) {
|
|
535
|
-
return $comparator.compare(a.
|
|
569
|
+
return $comparator.compare(a.e2(), b.e2());
|
|
536
570
|
};
|
|
537
571
|
}
|
|
538
572
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
539
|
-
this.
|
|
540
|
-
this.
|
|
573
|
+
this.dr_1 = $iterables;
|
|
574
|
+
this.er_1 = $comparator;
|
|
541
575
|
CoroutineImpl.call(this, resultContinuation);
|
|
542
576
|
}
|
|
543
|
-
protoOf(merge$slambda).
|
|
544
|
-
var tmp = this.
|
|
545
|
-
tmp.
|
|
546
|
-
tmp.
|
|
547
|
-
return tmp.
|
|
577
|
+
protoOf(merge$slambda).dq = function ($this$sequence, $completion) {
|
|
578
|
+
var tmp = this.eq($this$sequence, $completion);
|
|
579
|
+
tmp.d8_1 = Unit_instance;
|
|
580
|
+
tmp.e8_1 = null;
|
|
581
|
+
return tmp.j8();
|
|
548
582
|
};
|
|
549
|
-
protoOf(merge$slambda).
|
|
550
|
-
return this.
|
|
583
|
+
protoOf(merge$slambda).a9 = function (p1, $completion) {
|
|
584
|
+
return this.dq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
551
585
|
};
|
|
552
|
-
protoOf(merge$slambda).
|
|
553
|
-
var suspendResult = this.
|
|
586
|
+
protoOf(merge$slambda).j8 = function () {
|
|
587
|
+
var suspendResult = this.d8_1;
|
|
554
588
|
$sm: do
|
|
555
589
|
try {
|
|
556
|
-
var tmp = this.
|
|
590
|
+
var tmp = this.b8_1;
|
|
557
591
|
switch (tmp) {
|
|
558
592
|
case 0:
|
|
559
|
-
this.
|
|
593
|
+
this.c8_1 = 3;
|
|
560
594
|
var tmp_0 = this;
|
|
561
|
-
var tmp_1 = asSequence(this.
|
|
595
|
+
var tmp_1 = asSequence(this.dr_1);
|
|
562
596
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
563
|
-
tmp_0.
|
|
564
|
-
this.
|
|
597
|
+
tmp_0.hr_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
598
|
+
this.b8_1 = 1;
|
|
565
599
|
continue $sm;
|
|
566
600
|
case 1:
|
|
567
|
-
if (!!this.
|
|
568
|
-
this.
|
|
601
|
+
if (!!this.hr_1.j()) {
|
|
602
|
+
this.b8_1 = 4;
|
|
569
603
|
continue $sm;
|
|
570
604
|
}
|
|
571
605
|
|
|
572
|
-
var tmp_3 = this;
|
|
573
|
-
var tmp_4 =
|
|
574
|
-
var tmp_5 =
|
|
575
|
-
var
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
suspendResult = this.et_1.ef(this.it_1, this);
|
|
606
|
+
var tmp_3 = asSequence(this.hr_1);
|
|
607
|
+
var tmp_4 = indexed(map(tmp_3, merge$slambda$lambda_1));
|
|
608
|
+
var tmp_5 = merge$slambda$lambda_2(this.er_1);
|
|
609
|
+
var _destruct__k2r9zo = ensureNotNull(minWithOrNull(tmp_4, new sam$kotlin_Comparator$0_0(tmp_5)));
|
|
610
|
+
this.gr_1 = _destruct__k2r9zo.rc();
|
|
611
|
+
var minValue = _destruct__k2r9zo.sc();
|
|
612
|
+
this.b8_1 = 2;
|
|
613
|
+
suspendResult = this.fr_1.gd(minValue, this);
|
|
581
614
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
582
615
|
return suspendResult;
|
|
583
616
|
}
|
|
584
617
|
|
|
585
618
|
continue $sm;
|
|
586
619
|
case 2:
|
|
587
|
-
var it = this.
|
|
588
|
-
|
|
589
|
-
|
|
620
|
+
var it = this.hr_1.z(this.gr_1).jp();
|
|
621
|
+
var tmp_6;
|
|
622
|
+
if (it.mp()) {
|
|
623
|
+
tmp_6 = this.hr_1.g3(this.gr_1);
|
|
590
624
|
} else {
|
|
591
|
-
this.
|
|
625
|
+
this.hr_1.y3(this.gr_1, it);
|
|
626
|
+
tmp_6 = Unit_instance;
|
|
592
627
|
}
|
|
593
628
|
|
|
594
|
-
this.
|
|
629
|
+
this.b8_1 = 1;
|
|
595
630
|
continue $sm;
|
|
596
631
|
case 3:
|
|
597
|
-
throw this.
|
|
632
|
+
throw this.e8_1;
|
|
598
633
|
case 4:
|
|
599
634
|
return Unit_instance;
|
|
600
635
|
}
|
|
601
636
|
} catch ($p) {
|
|
602
637
|
var e = $p;
|
|
603
|
-
if (this.
|
|
638
|
+
if (this.c8_1 === 3) {
|
|
604
639
|
throw e;
|
|
605
640
|
} else {
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
641
|
+
this.b8_1 = this.c8_1;
|
|
642
|
+
this.e8_1 = e;
|
|
608
643
|
}
|
|
609
644
|
}
|
|
610
645
|
while (true);
|
|
611
646
|
};
|
|
612
|
-
protoOf(merge$slambda).
|
|
613
|
-
var i = new merge$slambda(this.
|
|
614
|
-
i.
|
|
647
|
+
protoOf(merge$slambda).eq = function ($this$sequence, completion) {
|
|
648
|
+
var i = new merge$slambda(this.dr_1, this.er_1, completion);
|
|
649
|
+
i.fr_1 = $this$sequence;
|
|
615
650
|
return i;
|
|
616
651
|
};
|
|
617
652
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
618
653
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
619
654
|
var l = function ($this$sequence, $completion) {
|
|
620
|
-
return i.
|
|
655
|
+
return i.dq($this$sequence, $completion);
|
|
621
656
|
};
|
|
622
657
|
l.$arity = 1;
|
|
623
658
|
return l;
|
|
624
659
|
}
|
|
625
660
|
function indexed$lambda(it, i) {
|
|
626
|
-
return Companion_instance_2.
|
|
661
|
+
return Companion_instance_2.pp(i, it);
|
|
627
662
|
}
|
|
628
663
|
function Companion_3() {
|
|
629
664
|
}
|
|
630
|
-
protoOf(Companion_3).
|
|
665
|
+
protoOf(Companion_3).ir = function (index, value) {
|
|
631
666
|
return new LongIndexedImpl(index, value);
|
|
632
667
|
};
|
|
633
668
|
var Companion_instance_3;
|
|
634
|
-
function
|
|
669
|
+
function Companion_getInstance_3() {
|
|
635
670
|
return Companion_instance_3;
|
|
636
671
|
}
|
|
637
672
|
function LongIndexed() {
|
|
638
673
|
}
|
|
639
674
|
function Companion_4() {
|
|
640
|
-
Companion_instance_4 = this;
|
|
641
|
-
var tmp = this;
|
|
642
|
-
// Inline function 'kotlin.text.toRegex' call
|
|
643
|
-
tmp.lt_1 = Regex_init_$Create$('[0-9]+');
|
|
644
675
|
}
|
|
645
|
-
|
|
646
|
-
function Companion_getInstance_6() {
|
|
647
|
-
if (Companion_instance_4 == null)
|
|
648
|
-
new Companion_4();
|
|
649
|
-
return Companion_instance_4;
|
|
650
|
-
}
|
|
651
|
-
function _get_stringRepresentation__xuqjt9(_this__u8e3s4, $this) {
|
|
652
|
-
return $this.mt_1.tq(_this__u8e3s4, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg(_this__u8e3s4));
|
|
653
|
-
}
|
|
654
|
-
function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
|
|
655
|
-
return function () {
|
|
656
|
-
return toString($this_stringRepresentation);
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
function NumberTypeTester() {
|
|
660
|
-
Companion_getInstance_6();
|
|
661
|
-
this.mt_1 = Companion_instance.rq(8);
|
|
662
|
-
}
|
|
663
|
-
protoOf(NumberTypeTester).nt = function (_this__u8e3s4) {
|
|
664
|
-
return Companion_getInstance_6().lt_1.o8(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
665
|
-
};
|
|
666
|
-
protoOf(NumberTypeTester).ot = function (_this__u8e3s4) {
|
|
667
|
-
return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
668
|
-
};
|
|
669
|
-
protoOf(NumberTypeTester).pt = function (_this__u8e3s4) {
|
|
670
|
-
return Companion_getInstance_0().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
|
|
671
|
-
};
|
|
672
|
-
function Companion_5() {
|
|
673
|
-
}
|
|
674
|
-
protoOf(Companion_5).qt = function (value) {
|
|
676
|
+
protoOf(Companion_4).kr = function (value) {
|
|
675
677
|
return new Some(value);
|
|
676
678
|
};
|
|
677
|
-
protoOf(
|
|
679
|
+
protoOf(Companion_4).fp = function (value) {
|
|
678
680
|
var tmp;
|
|
679
681
|
if (value == null) {
|
|
680
|
-
tmp = this.
|
|
682
|
+
tmp = this.ep();
|
|
681
683
|
} else {
|
|
682
|
-
tmp = this.
|
|
684
|
+
tmp = this.kr(value);
|
|
683
685
|
}
|
|
684
686
|
return tmp;
|
|
685
687
|
};
|
|
686
|
-
protoOf(
|
|
688
|
+
protoOf(Companion_4).ep = function () {
|
|
687
689
|
return None_getInstance();
|
|
688
690
|
};
|
|
689
|
-
var
|
|
690
|
-
function
|
|
691
|
-
return
|
|
691
|
+
var Companion_instance_4;
|
|
692
|
+
function Companion_getInstance_4() {
|
|
693
|
+
return Companion_instance_4;
|
|
692
694
|
}
|
|
693
695
|
function Some(value) {
|
|
694
696
|
Optional.call(this);
|
|
695
|
-
this.
|
|
697
|
+
this.zo_1 = value;
|
|
696
698
|
}
|
|
697
|
-
protoOf(Some).
|
|
698
|
-
return this.
|
|
699
|
+
protoOf(Some).e2 = function () {
|
|
700
|
+
return this.zo_1;
|
|
699
701
|
};
|
|
700
|
-
protoOf(Some).
|
|
702
|
+
protoOf(Some).lr = function () {
|
|
701
703
|
return true;
|
|
702
704
|
};
|
|
703
|
-
protoOf(Some).st = function (function_0) {
|
|
704
|
-
return new Some(function_0(this.uq_1));
|
|
705
|
-
};
|
|
706
705
|
protoOf(Some).toString = function () {
|
|
707
|
-
return 'Some(' + this.
|
|
706
|
+
return 'Some(' + toString(this.zo_1) + ')';
|
|
708
707
|
};
|
|
709
708
|
protoOf(Some).hashCode = function () {
|
|
710
|
-
return this.
|
|
709
|
+
return this.zo_1 == null ? 0 : hashCode(this.zo_1);
|
|
711
710
|
};
|
|
712
711
|
protoOf(Some).equals = function (other) {
|
|
713
712
|
if (this === other)
|
|
714
713
|
return true;
|
|
715
714
|
if (!(other instanceof Some))
|
|
716
715
|
return false;
|
|
717
|
-
|
|
718
|
-
if (!equals(this.uq_1, tmp0_other_with_cast.uq_1))
|
|
716
|
+
if (!equals(this.zo_1, other.zo_1))
|
|
719
717
|
return false;
|
|
720
718
|
return true;
|
|
721
719
|
};
|
|
@@ -723,18 +721,12 @@
|
|
|
723
721
|
None_instance = this;
|
|
724
722
|
Optional.call(this);
|
|
725
723
|
}
|
|
726
|
-
protoOf(None).
|
|
724
|
+
protoOf(None).e2 = function () {
|
|
727
725
|
return null;
|
|
728
726
|
};
|
|
729
|
-
protoOf(None).
|
|
727
|
+
protoOf(None).lr = function () {
|
|
730
728
|
return false;
|
|
731
729
|
};
|
|
732
|
-
protoOf(None).ut = function (function_0) {
|
|
733
|
-
return None_getInstance();
|
|
734
|
-
};
|
|
735
|
-
protoOf(None).st = function (function_0) {
|
|
736
|
-
return this.ut(function_0);
|
|
737
|
-
};
|
|
738
730
|
protoOf(None).toString = function () {
|
|
739
731
|
return 'None';
|
|
740
732
|
};
|
|
@@ -746,30 +738,28 @@
|
|
|
746
738
|
}
|
|
747
739
|
function Optional() {
|
|
748
740
|
}
|
|
749
|
-
protoOf(Optional).
|
|
750
|
-
return !this.
|
|
741
|
+
protoOf(Optional).mr = function () {
|
|
742
|
+
return !this.lr();
|
|
751
743
|
};
|
|
752
744
|
function Taggable() {
|
|
753
745
|
}
|
|
754
|
-
function setTags(_this__u8e3s4, tags) {
|
|
755
|
-
var tmp = _this__u8e3s4.resetTags(tags);
|
|
756
|
-
return isInterface(tmp, Taggable) ? tmp : THROW_CCE();
|
|
757
|
-
}
|
|
758
746
|
function setTag(_this__u8e3s4, key, value) {
|
|
759
747
|
// Inline function 'kotlin.also' call
|
|
760
|
-
var this_0 = toMutableMap(_this__u8e3s4.
|
|
761
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
762
|
-
// Inline function 'it.unibo.tuprolog.utils.setTag.<anonymous>' call
|
|
748
|
+
var this_0 = toMutableMap(_this__u8e3s4.nr());
|
|
763
749
|
// Inline function 'kotlin.collections.set' call
|
|
764
|
-
this_0.
|
|
750
|
+
this_0.k4(key, value);
|
|
765
751
|
return setTags(_this__u8e3s4, this_0);
|
|
766
752
|
}
|
|
753
|
+
function setTags(_this__u8e3s4, tags) {
|
|
754
|
+
var tmp = _this__u8e3s4.resetTags(tags);
|
|
755
|
+
return isInterface(tmp, Taggable) ? tmp : THROW_CCE();
|
|
756
|
+
}
|
|
767
757
|
function synchronizedOnSelf(_this__u8e3s4, action) {
|
|
768
758
|
return synchronizedOn(_this__u8e3s4, action);
|
|
769
759
|
}
|
|
770
|
-
function
|
|
760
|
+
function Companion_5() {
|
|
771
761
|
}
|
|
772
|
-
protoOf(
|
|
762
|
+
protoOf(Companion_5).np = function (source) {
|
|
773
763
|
var tmp;
|
|
774
764
|
if (source.s()) {
|
|
775
765
|
tmp = new LazyCursor(source);
|
|
@@ -778,156 +768,156 @@
|
|
|
778
768
|
}
|
|
779
769
|
return tmp;
|
|
780
770
|
};
|
|
781
|
-
var
|
|
782
|
-
function
|
|
783
|
-
return
|
|
771
|
+
var Companion_instance_5;
|
|
772
|
+
function Companion_getInstance_5() {
|
|
773
|
+
return Companion_instance_5;
|
|
784
774
|
}
|
|
785
775
|
function AbstractCursor$iterator$1(this$0) {
|
|
786
|
-
this.
|
|
776
|
+
this.pr_1 = this$0;
|
|
787
777
|
}
|
|
788
778
|
protoOf(AbstractCursor$iterator$1).s = function () {
|
|
789
|
-
return !this.
|
|
779
|
+
return !this.pr_1.mp();
|
|
790
780
|
};
|
|
791
|
-
protoOf(AbstractCursor$iterator$1).
|
|
792
|
-
var result = this.
|
|
793
|
-
this.
|
|
781
|
+
protoOf(AbstractCursor$iterator$1).t = function () {
|
|
782
|
+
var result = this.pr_1.kp();
|
|
783
|
+
this.pr_1 = this.pr_1.jp();
|
|
794
784
|
return ensureNotNull(result);
|
|
795
785
|
};
|
|
796
786
|
function AbstractCursor() {
|
|
797
787
|
}
|
|
798
788
|
protoOf(AbstractCursor).toString = function () {
|
|
799
|
-
return this.
|
|
789
|
+
return this.mp() ? '[]' : !this.lp() ? '[' + toString(this.kp()) + ']' : '[' + toString(this.kp()) + ', ...]';
|
|
800
790
|
};
|
|
801
|
-
protoOf(AbstractCursor).
|
|
791
|
+
protoOf(AbstractCursor).p = function () {
|
|
802
792
|
return new AbstractCursor$iterator$1(this);
|
|
803
793
|
};
|
|
804
794
|
protoOf(AbstractCursor).iterator = function () {
|
|
805
|
-
return this.
|
|
795
|
+
return this.p();
|
|
806
796
|
};
|
|
807
|
-
protoOf(AbstractCursor).
|
|
797
|
+
protoOf(AbstractCursor).qr = function () {
|
|
808
798
|
return false;
|
|
809
799
|
};
|
|
810
|
-
protoOf(AbstractCursor).
|
|
800
|
+
protoOf(AbstractCursor).rr = function (mapper) {
|
|
811
801
|
return new MapperCursor(this, mapper);
|
|
812
802
|
};
|
|
813
803
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
814
|
-
return this.
|
|
804
|
+
return this.rr(mapper);
|
|
815
805
|
};
|
|
816
806
|
function CachedImpl(generator) {
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
807
|
+
this.sr_1 = generator;
|
|
808
|
+
this.tr_1 = Companion_instance_4.ep();
|
|
819
809
|
}
|
|
820
|
-
protoOf(CachedImpl).
|
|
821
|
-
return this.
|
|
810
|
+
protoOf(CachedImpl).bp = function () {
|
|
811
|
+
return this.tr_1.lr();
|
|
822
812
|
};
|
|
823
|
-
protoOf(CachedImpl).
|
|
824
|
-
return this.
|
|
813
|
+
protoOf(CachedImpl).ur = function () {
|
|
814
|
+
return this.tr_1.mr();
|
|
825
815
|
};
|
|
826
|
-
protoOf(CachedImpl).
|
|
827
|
-
this.
|
|
828
|
-
return ensureNotNull(this.
|
|
816
|
+
protoOf(CachedImpl).e2 = function () {
|
|
817
|
+
this.vr();
|
|
818
|
+
return ensureNotNull(this.tr_1.e2());
|
|
829
819
|
};
|
|
830
|
-
protoOf(CachedImpl).
|
|
831
|
-
if (this.
|
|
832
|
-
this.
|
|
820
|
+
protoOf(CachedImpl).vr = function () {
|
|
821
|
+
if (this.ur()) {
|
|
822
|
+
this.tr_1 = Companion_instance_4.kr(this.sr_1());
|
|
833
823
|
}
|
|
834
824
|
};
|
|
835
|
-
protoOf(CachedImpl).
|
|
836
|
-
this.
|
|
825
|
+
protoOf(CachedImpl).cp = function () {
|
|
826
|
+
this.tr_1 = Companion_instance_4.ep();
|
|
837
827
|
};
|
|
838
828
|
protoOf(CachedImpl).toString = function () {
|
|
839
|
-
return 'CachedImpl(generator=' + this.
|
|
829
|
+
return 'CachedImpl(generator=' + toString_0(this.sr_1) + ')';
|
|
840
830
|
};
|
|
841
831
|
protoOf(CachedImpl).hashCode = function () {
|
|
842
|
-
return hashCode(this.
|
|
832
|
+
return hashCode(this.sr_1);
|
|
843
833
|
};
|
|
844
834
|
protoOf(CachedImpl).equals = function (other) {
|
|
845
835
|
if (this === other)
|
|
846
836
|
return true;
|
|
847
837
|
if (!(other instanceof CachedImpl))
|
|
848
838
|
return false;
|
|
849
|
-
|
|
850
|
-
if (!equals(this.yt_1, tmp0_other_with_cast.yt_1))
|
|
839
|
+
if (!equals(this.sr_1, other.sr_1))
|
|
851
840
|
return false;
|
|
852
841
|
return true;
|
|
853
842
|
};
|
|
854
843
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
855
844
|
return function () {
|
|
856
|
-
return this$0.
|
|
845
|
+
return this$0.wr_1.lp() ? new ConjunctionCursor(this$0.wr_1.jp(), this$0.xr_1) : this$0.xr_1.qr() ? this$0.xr_1.jp() : this$0.xr_1;
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
function ConjunctionCursor$_get_next_$ref_xfvrtr() {
|
|
849
|
+
return function (p0) {
|
|
850
|
+
return p0.jp();
|
|
857
851
|
};
|
|
858
852
|
}
|
|
859
853
|
function ConjunctionCursor(first, second) {
|
|
860
854
|
AbstractCursor.call(this);
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
855
|
+
this.wr_1 = first;
|
|
856
|
+
this.xr_1 = second;
|
|
863
857
|
var tmp = this;
|
|
864
|
-
tmp.
|
|
858
|
+
tmp.yr_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
865
859
|
}
|
|
866
|
-
protoOf(ConjunctionCursor).
|
|
867
|
-
return this.
|
|
860
|
+
protoOf(ConjunctionCursor).mp = function () {
|
|
861
|
+
return this.wr_1.mp() && this.xr_1.mp();
|
|
868
862
|
};
|
|
869
|
-
protoOf(ConjunctionCursor).
|
|
863
|
+
protoOf(ConjunctionCursor).jp = function () {
|
|
864
|
+
var tmp0 = this.yr_1;
|
|
865
|
+
var tmp = KProperty1;
|
|
870
866
|
// Inline function 'kotlin.getValue' call
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
return this_0.r2();
|
|
867
|
+
getPropertyCallableRef('next', 1, tmp, ConjunctionCursor$_get_next_$ref_xfvrtr(), null);
|
|
868
|
+
return tmp0.e2();
|
|
874
869
|
};
|
|
875
|
-
protoOf(ConjunctionCursor).
|
|
876
|
-
return this.
|
|
870
|
+
protoOf(ConjunctionCursor).kp = function () {
|
|
871
|
+
return this.wr_1.lp() ? this.wr_1.kp() : this.xr_1.kp();
|
|
877
872
|
};
|
|
878
|
-
protoOf(ConjunctionCursor).
|
|
879
|
-
return this.
|
|
873
|
+
protoOf(ConjunctionCursor).lp = function () {
|
|
874
|
+
return this.wr_1.lp() || this.xr_1.lp();
|
|
880
875
|
};
|
|
881
876
|
protoOf(ConjunctionCursor).equals = function (other) {
|
|
882
877
|
if (this === other)
|
|
883
878
|
return true;
|
|
884
|
-
if (other == null
|
|
879
|
+
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
885
880
|
return false;
|
|
886
881
|
if (!(other instanceof ConjunctionCursor))
|
|
887
882
|
THROW_CCE();
|
|
888
|
-
if (!equals(this.
|
|
883
|
+
if (!equals(this.wr_1, other.wr_1))
|
|
889
884
|
return false;
|
|
890
|
-
if (!equals(this.
|
|
885
|
+
if (!equals(this.xr_1, other.xr_1))
|
|
891
886
|
return false;
|
|
892
887
|
return true;
|
|
893
888
|
};
|
|
894
889
|
protoOf(ConjunctionCursor).hashCode = function () {
|
|
895
|
-
var result = hashCode(this.
|
|
896
|
-
result = imul(31, result) + hashCode(this.
|
|
890
|
+
var result = hashCode(this.wr_1);
|
|
891
|
+
result = imul(31, result) + hashCode(this.xr_1) | 0;
|
|
897
892
|
return result;
|
|
898
893
|
};
|
|
899
|
-
function next$factory() {
|
|
900
|
-
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
901
|
-
return receiver.er();
|
|
902
|
-
}, null);
|
|
903
|
-
}
|
|
904
894
|
function EmptyCursor() {
|
|
905
895
|
EmptyCursor_instance = this;
|
|
906
896
|
AbstractCursor.call(this);
|
|
907
897
|
}
|
|
908
|
-
protoOf(EmptyCursor).
|
|
898
|
+
protoOf(EmptyCursor).jp = function () {
|
|
909
899
|
throw NoSuchElementException_init_$Create$();
|
|
910
900
|
};
|
|
911
|
-
protoOf(EmptyCursor).
|
|
901
|
+
protoOf(EmptyCursor).kp = function () {
|
|
912
902
|
return null;
|
|
913
903
|
};
|
|
914
|
-
protoOf(EmptyCursor).
|
|
904
|
+
protoOf(EmptyCursor).lp = function () {
|
|
915
905
|
return false;
|
|
916
906
|
};
|
|
917
|
-
protoOf(EmptyCursor).
|
|
907
|
+
protoOf(EmptyCursor).mp = function () {
|
|
918
908
|
return true;
|
|
919
909
|
};
|
|
920
910
|
protoOf(EmptyCursor).toString = function () {
|
|
921
911
|
return protoOf(AbstractCursor).toString.call(this);
|
|
922
912
|
};
|
|
923
|
-
protoOf(EmptyCursor).
|
|
913
|
+
protoOf(EmptyCursor).zr = function (mapper) {
|
|
924
914
|
return this;
|
|
925
915
|
};
|
|
926
916
|
protoOf(EmptyCursor).map = function (mapper) {
|
|
927
|
-
return this.
|
|
917
|
+
return this.zr(mapper);
|
|
928
918
|
};
|
|
929
|
-
protoOf(EmptyCursor).
|
|
930
|
-
return this.
|
|
919
|
+
protoOf(EmptyCursor).rr = function (mapper) {
|
|
920
|
+
return this.zr(mapper);
|
|
931
921
|
};
|
|
932
922
|
var EmptyCursor_instance;
|
|
933
923
|
function EmptyCursor_getInstance() {
|
|
@@ -936,27 +926,27 @@
|
|
|
936
926
|
return EmptyCursor_instance;
|
|
937
927
|
}
|
|
938
928
|
function IntIndexedImpl(index, value) {
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
929
|
+
this.as_1 = index;
|
|
930
|
+
this.bs_1 = value;
|
|
941
931
|
}
|
|
942
|
-
protoOf(IntIndexedImpl).
|
|
943
|
-
return this.
|
|
932
|
+
protoOf(IntIndexedImpl).op = function () {
|
|
933
|
+
return this.as_1;
|
|
944
934
|
};
|
|
945
|
-
protoOf(IntIndexedImpl).
|
|
946
|
-
return this.
|
|
935
|
+
protoOf(IntIndexedImpl).e2 = function () {
|
|
936
|
+
return this.bs_1;
|
|
947
937
|
};
|
|
948
|
-
protoOf(IntIndexedImpl).
|
|
949
|
-
return this.
|
|
938
|
+
protoOf(IntIndexedImpl).rc = function () {
|
|
939
|
+
return this.as_1;
|
|
950
940
|
};
|
|
951
|
-
protoOf(IntIndexedImpl).
|
|
952
|
-
return this.
|
|
941
|
+
protoOf(IntIndexedImpl).sc = function () {
|
|
942
|
+
return this.bs_1;
|
|
953
943
|
};
|
|
954
944
|
protoOf(IntIndexedImpl).toString = function () {
|
|
955
|
-
return 'IntIndexedImpl(index=' + this.
|
|
945
|
+
return 'IntIndexedImpl(index=' + this.as_1 + ', value=' + toString(this.bs_1) + ')';
|
|
956
946
|
};
|
|
957
947
|
protoOf(IntIndexedImpl).hashCode = function () {
|
|
958
|
-
var result = this.
|
|
959
|
-
result = imul(result, 31) + (this.
|
|
948
|
+
var result = this.as_1;
|
|
949
|
+
result = imul(result, 31) + (this.bs_1 == null ? 0 : hashCode(this.bs_1)) | 0;
|
|
960
950
|
return result;
|
|
961
951
|
};
|
|
962
952
|
protoOf(IntIndexedImpl).equals = function (other) {
|
|
@@ -964,97 +954,102 @@
|
|
|
964
954
|
return true;
|
|
965
955
|
if (!(other instanceof IntIndexedImpl))
|
|
966
956
|
return false;
|
|
967
|
-
|
|
968
|
-
if (!(this.fu_1 === tmp0_other_with_cast.fu_1))
|
|
957
|
+
if (!(this.as_1 === other.as_1))
|
|
969
958
|
return false;
|
|
970
|
-
if (!equals(this.
|
|
959
|
+
if (!equals(this.bs_1, other.bs_1))
|
|
971
960
|
return false;
|
|
972
961
|
return true;
|
|
973
962
|
};
|
|
974
963
|
protoOf(IntIndexedImpl).d = function (other) {
|
|
975
|
-
return this.
|
|
964
|
+
return this.qp((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
976
965
|
};
|
|
977
966
|
function _get_wrapped__s2ip8($this) {
|
|
967
|
+
var tmp0 = $this.ds_1;
|
|
968
|
+
var tmp = KProperty1;
|
|
978
969
|
// Inline function 'kotlin.getValue' call
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
return this_0.r2();
|
|
970
|
+
getPropertyCallableRef('wrapped', 1, tmp, LazyCursor$_get_wrapped_$ref_p28zr5(), null);
|
|
971
|
+
return tmp0.e2();
|
|
982
972
|
}
|
|
983
973
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
984
974
|
return function () {
|
|
985
|
-
return new NonLastCursor(this$0.
|
|
975
|
+
return new NonLastCursor(this$0.cs_1);
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
function LazyCursor$_get_wrapped_$ref_p28zr5() {
|
|
979
|
+
return function (p0) {
|
|
980
|
+
return _get_wrapped__s2ip8(p0);
|
|
986
981
|
};
|
|
987
982
|
}
|
|
988
983
|
function LazyCursor(delegate) {
|
|
989
984
|
AbstractCursor.call(this);
|
|
990
|
-
this.
|
|
985
|
+
this.cs_1 = delegate;
|
|
991
986
|
var tmp = this;
|
|
992
|
-
tmp.
|
|
987
|
+
tmp.ds_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
993
988
|
}
|
|
994
|
-
protoOf(LazyCursor).
|
|
989
|
+
protoOf(LazyCursor).qr = function () {
|
|
995
990
|
return true;
|
|
996
991
|
};
|
|
997
|
-
protoOf(LazyCursor).
|
|
998
|
-
return _get_wrapped__s2ip8(this).
|
|
992
|
+
protoOf(LazyCursor).jp = function () {
|
|
993
|
+
return _get_wrapped__s2ip8(this).jp();
|
|
999
994
|
};
|
|
1000
|
-
protoOf(LazyCursor).
|
|
1001
|
-
return _get_wrapped__s2ip8(this).
|
|
995
|
+
protoOf(LazyCursor).kp = function () {
|
|
996
|
+
return _get_wrapped__s2ip8(this).kp();
|
|
1002
997
|
};
|
|
1003
|
-
protoOf(LazyCursor).
|
|
998
|
+
protoOf(LazyCursor).lp = function () {
|
|
1004
999
|
return true;
|
|
1005
1000
|
};
|
|
1006
|
-
protoOf(LazyCursor).
|
|
1001
|
+
protoOf(LazyCursor).mp = function () {
|
|
1007
1002
|
return false;
|
|
1008
1003
|
};
|
|
1009
1004
|
protoOf(LazyCursor).toString = function () {
|
|
1010
1005
|
return protoOf(AbstractCursor).toString.call(this);
|
|
1011
1006
|
};
|
|
1012
|
-
protoOf(LazyCursor).
|
|
1013
|
-
return _get_wrapped__s2ip8(this).
|
|
1007
|
+
protoOf(LazyCursor).p = function () {
|
|
1008
|
+
return _get_wrapped__s2ip8(this).p();
|
|
1014
1009
|
};
|
|
1015
1010
|
protoOf(LazyCursor).iterator = function () {
|
|
1016
|
-
return this.
|
|
1011
|
+
return this.p();
|
|
1017
1012
|
};
|
|
1018
1013
|
protoOf(LazyCursor).hashCode = function () {
|
|
1019
|
-
return hashCode(this.
|
|
1014
|
+
return hashCode(this.cs_1);
|
|
1020
1015
|
};
|
|
1021
1016
|
protoOf(LazyCursor).equals = function (other) {
|
|
1022
1017
|
if (this === other)
|
|
1023
1018
|
return true;
|
|
1024
1019
|
if (!(other instanceof LazyCursor))
|
|
1025
1020
|
return false;
|
|
1026
|
-
|
|
1027
|
-
if (!equals(this.hu_1, tmp0_other_with_cast.hu_1))
|
|
1021
|
+
if (!equals(this.cs_1, other.cs_1))
|
|
1028
1022
|
return false;
|
|
1029
1023
|
return true;
|
|
1030
1024
|
};
|
|
1031
|
-
function wrapped$factory() {
|
|
1032
|
-
return getPropertyCallableRef('wrapped', 1, KProperty1, function (receiver) {
|
|
1033
|
-
return _get_wrapped__s2ip8(receiver);
|
|
1034
|
-
}, null);
|
|
1035
|
-
}
|
|
1036
1025
|
function LongIndexedImpl(index, value) {
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1026
|
+
this.es_1 = index;
|
|
1027
|
+
this.fs_1 = value;
|
|
1039
1028
|
}
|
|
1040
|
-
protoOf(LongIndexedImpl).
|
|
1041
|
-
return this.
|
|
1029
|
+
protoOf(LongIndexedImpl).op = function () {
|
|
1030
|
+
return this.es_1;
|
|
1042
1031
|
};
|
|
1043
|
-
protoOf(LongIndexedImpl).
|
|
1044
|
-
return this.
|
|
1032
|
+
protoOf(LongIndexedImpl).e2 = function () {
|
|
1033
|
+
return this.fs_1;
|
|
1045
1034
|
};
|
|
1046
|
-
protoOf(LongIndexedImpl).
|
|
1047
|
-
return this.
|
|
1035
|
+
protoOf(LongIndexedImpl).jr = function (other) {
|
|
1036
|
+
return convertToInt(subtract(this.es_1, other.op()));
|
|
1048
1037
|
};
|
|
1049
1038
|
protoOf(LongIndexedImpl).d = function (other) {
|
|
1050
|
-
return this.
|
|
1039
|
+
return this.jr((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1040
|
+
};
|
|
1041
|
+
protoOf(LongIndexedImpl).rc = function () {
|
|
1042
|
+
return this.es_1;
|
|
1043
|
+
};
|
|
1044
|
+
protoOf(LongIndexedImpl).sc = function () {
|
|
1045
|
+
return this.fs_1;
|
|
1051
1046
|
};
|
|
1052
1047
|
protoOf(LongIndexedImpl).toString = function () {
|
|
1053
|
-
return 'LongIndexedImpl(index=' + this.
|
|
1048
|
+
return 'LongIndexedImpl(index=' + this.es_1.toString() + ', value=' + toString(this.fs_1) + ')';
|
|
1054
1049
|
};
|
|
1055
1050
|
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1056
|
-
var result = this.
|
|
1057
|
-
result = imul(result, 31) + (this.
|
|
1051
|
+
var result = getBigIntHashCode(this.es_1);
|
|
1052
|
+
result = imul(result, 31) + (this.fs_1 == null ? 0 : hashCode(this.fs_1)) | 0;
|
|
1058
1053
|
return result;
|
|
1059
1054
|
};
|
|
1060
1055
|
protoOf(LongIndexedImpl).equals = function (other) {
|
|
@@ -1062,258 +1057,253 @@
|
|
|
1062
1057
|
return true;
|
|
1063
1058
|
if (!(other instanceof LongIndexedImpl))
|
|
1064
1059
|
return false;
|
|
1065
|
-
|
|
1066
|
-
if (!this.ju_1.equals(tmp0_other_with_cast.ju_1))
|
|
1060
|
+
if (!(this.es_1 === other.es_1))
|
|
1067
1061
|
return false;
|
|
1068
|
-
if (!equals(this.
|
|
1062
|
+
if (!equals(this.fs_1, other.fs_1))
|
|
1069
1063
|
return false;
|
|
1070
1064
|
return true;
|
|
1071
1065
|
};
|
|
1072
1066
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1073
1067
|
return function () {
|
|
1074
|
-
return this$0.
|
|
1068
|
+
return this$0.hs_1(ensureNotNull(this$0.gs_1.kp()));
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
function MapperCursor$_get_current_$ref_lsggiu() {
|
|
1072
|
+
return function (p0) {
|
|
1073
|
+
return p0.kp();
|
|
1075
1074
|
};
|
|
1076
1075
|
}
|
|
1077
1076
|
function MapperCursor(wrapped, mapper) {
|
|
1078
1077
|
AbstractCursor.call(this);
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1078
|
+
this.gs_1 = wrapped;
|
|
1079
|
+
this.hs_1 = mapper;
|
|
1081
1080
|
var tmp = this;
|
|
1082
|
-
tmp.
|
|
1081
|
+
tmp.is_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1083
1082
|
}
|
|
1084
|
-
protoOf(MapperCursor).
|
|
1085
|
-
return this.
|
|
1083
|
+
protoOf(MapperCursor).jp = function () {
|
|
1084
|
+
return this.gs_1.jp().rr(this.hs_1);
|
|
1086
1085
|
};
|
|
1087
|
-
protoOf(MapperCursor).
|
|
1086
|
+
protoOf(MapperCursor).kp = function () {
|
|
1087
|
+
var tmp0 = this.is_1;
|
|
1088
|
+
var tmp = KProperty1;
|
|
1088
1089
|
// Inline function 'kotlin.getValue' call
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
return this_0.r2();
|
|
1090
|
+
getPropertyCallableRef('current', 1, tmp, MapperCursor$_get_current_$ref_lsggiu(), null);
|
|
1091
|
+
return tmp0.e2();
|
|
1092
1092
|
};
|
|
1093
|
-
protoOf(MapperCursor).
|
|
1093
|
+
protoOf(MapperCursor).lp = function () {
|
|
1094
1094
|
return true;
|
|
1095
1095
|
};
|
|
1096
|
-
protoOf(MapperCursor).
|
|
1096
|
+
protoOf(MapperCursor).mp = function () {
|
|
1097
1097
|
return false;
|
|
1098
1098
|
};
|
|
1099
1099
|
protoOf(MapperCursor).equals = function (other) {
|
|
1100
1100
|
if (this === other)
|
|
1101
1101
|
return true;
|
|
1102
|
-
if (other == null
|
|
1102
|
+
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1103
1103
|
return false;
|
|
1104
1104
|
if (!(other instanceof MapperCursor))
|
|
1105
1105
|
THROW_CCE();
|
|
1106
|
-
if (!equals(this.
|
|
1106
|
+
if (!equals(this.gs_1, other.gs_1))
|
|
1107
1107
|
return false;
|
|
1108
|
-
if (!equals(this.
|
|
1108
|
+
if (!equals(this.hs_1, other.hs_1))
|
|
1109
1109
|
return false;
|
|
1110
1110
|
return true;
|
|
1111
1111
|
};
|
|
1112
1112
|
protoOf(MapperCursor).hashCode = function () {
|
|
1113
|
-
var result = hashCode(this.
|
|
1114
|
-
result = imul(31, result) + hashCode(this.
|
|
1113
|
+
var result = hashCode(this.gs_1);
|
|
1114
|
+
result = imul(31, result) + hashCode(this.hs_1) | 0;
|
|
1115
1115
|
return result;
|
|
1116
1116
|
};
|
|
1117
|
-
protoOf(MapperCursor).
|
|
1118
|
-
return new ValueCursor(mapper(this.
|
|
1117
|
+
protoOf(MapperCursor).js = function (mapper) {
|
|
1118
|
+
return new ValueCursor(mapper(this.kp()), this.jp().rr(mapper));
|
|
1119
1119
|
};
|
|
1120
1120
|
protoOf(MapperCursor).map = function (mapper) {
|
|
1121
|
-
return this.
|
|
1121
|
+
return this.js(mapper);
|
|
1122
1122
|
};
|
|
1123
|
-
protoOf(MapperCursor).
|
|
1124
|
-
return this.
|
|
1123
|
+
protoOf(MapperCursor).rr = function (mapper) {
|
|
1124
|
+
return this.js(mapper);
|
|
1125
1125
|
};
|
|
1126
|
-
function current$factory() {
|
|
1127
|
-
return getPropertyCallableRef('current', 1, KProperty1, function (receiver) {
|
|
1128
|
-
return receiver.fr();
|
|
1129
|
-
}, null);
|
|
1130
|
-
}
|
|
1131
1126
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1132
1127
|
return function () {
|
|
1133
1128
|
// Inline function 'kotlin.also' call
|
|
1134
|
-
var this_0 =
|
|
1135
|
-
|
|
1136
|
-
// Inline function 'it.unibo.tuprolog.utils.impl.NonLastCursor.next$delegate.<anonymous>.<anonymous>' call
|
|
1137
|
-
this$0.pu_1 = null;
|
|
1129
|
+
var this_0 = Companion_instance_5.np($source);
|
|
1130
|
+
this$0.ks_1 = null;
|
|
1138
1131
|
return this_0;
|
|
1139
1132
|
};
|
|
1140
1133
|
}
|
|
1134
|
+
function NonLastCursor$_get_next_$ref_gp6ycu() {
|
|
1135
|
+
return function (p0) {
|
|
1136
|
+
return p0.jp();
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1141
1139
|
function NonLastCursor(source) {
|
|
1142
1140
|
AbstractCursor.call(this);
|
|
1143
|
-
this.
|
|
1141
|
+
this.ks_1 = source;
|
|
1144
1142
|
var tmp = this;
|
|
1145
|
-
tmp.
|
|
1146
|
-
this.
|
|
1143
|
+
tmp.ls_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1144
|
+
this.ms_1 = source.t();
|
|
1147
1145
|
}
|
|
1148
|
-
protoOf(NonLastCursor).
|
|
1146
|
+
protoOf(NonLastCursor).jp = function () {
|
|
1147
|
+
var tmp0 = this.ls_1;
|
|
1148
|
+
var tmp = KProperty1;
|
|
1149
1149
|
// Inline function 'kotlin.getValue' call
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
return this_0.r2();
|
|
1150
|
+
getPropertyCallableRef('next', 1, tmp, NonLastCursor$_get_next_$ref_gp6ycu(), null);
|
|
1151
|
+
return tmp0.e2();
|
|
1153
1152
|
};
|
|
1154
|
-
protoOf(NonLastCursor).
|
|
1155
|
-
return this.
|
|
1153
|
+
protoOf(NonLastCursor).kp = function () {
|
|
1154
|
+
return this.ms_1;
|
|
1156
1155
|
};
|
|
1157
|
-
protoOf(NonLastCursor).
|
|
1156
|
+
protoOf(NonLastCursor).lp = function () {
|
|
1158
1157
|
return true;
|
|
1159
1158
|
};
|
|
1160
|
-
protoOf(NonLastCursor).
|
|
1159
|
+
protoOf(NonLastCursor).mp = function () {
|
|
1161
1160
|
return false;
|
|
1162
1161
|
};
|
|
1163
1162
|
protoOf(NonLastCursor).toString = function () {
|
|
1164
1163
|
return protoOf(AbstractCursor).toString.call(this);
|
|
1165
1164
|
};
|
|
1166
|
-
function next$factory_0() {
|
|
1167
|
-
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
1168
|
-
return receiver.er();
|
|
1169
|
-
}, null);
|
|
1170
|
-
}
|
|
1171
1165
|
function removeLeastRecent($this) {
|
|
1172
1166
|
// Inline function 'kotlin.collections.asIterable' call
|
|
1173
|
-
var tmp$ret$0 = $this.
|
|
1174
|
-
var
|
|
1167
|
+
var tmp$ret$0 = $this.os_1.f1();
|
|
1168
|
+
var _destruct__k2r9zo = first(tmp$ret$0);
|
|
1175
1169
|
// Inline function 'kotlin.collections.component1' call
|
|
1176
|
-
var key =
|
|
1170
|
+
var key = _destruct__k2r9zo.d2();
|
|
1177
1171
|
// Inline function 'kotlin.collections.component2' call
|
|
1178
|
-
var value =
|
|
1179
|
-
$this.
|
|
1180
|
-
return
|
|
1172
|
+
var value = _destruct__k2r9zo.e2();
|
|
1173
|
+
$this.os_1.l4(key);
|
|
1174
|
+
return Companion_instance_4.kr(to(key, value));
|
|
1181
1175
|
}
|
|
1182
1176
|
function removeLeastRecentIfNecessary($this) {
|
|
1183
1177
|
var tmp;
|
|
1184
|
-
if ($this.
|
|
1178
|
+
if ($this.os_1.u() >= $this.ns_1) {
|
|
1185
1179
|
tmp = removeLeastRecent($this);
|
|
1186
1180
|
} else {
|
|
1187
|
-
tmp =
|
|
1181
|
+
tmp = Companion_instance_4.ep();
|
|
1188
1182
|
}
|
|
1189
1183
|
return tmp;
|
|
1190
1184
|
}
|
|
1191
1185
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1192
1186
|
return function () {
|
|
1193
1187
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1194
|
-
var
|
|
1195
|
-
var
|
|
1188
|
+
var tmp0 = this$0.os_1;
|
|
1189
|
+
var tmp2 = $key;
|
|
1190
|
+
// Inline function 'kotlin.collections.set' call
|
|
1196
1191
|
var value = $value;
|
|
1197
|
-
|
|
1192
|
+
tmp0.k4(tmp2, value);
|
|
1198
1193
|
return evicted;
|
|
1199
1194
|
};
|
|
1200
1195
|
}
|
|
1201
1196
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1202
1197
|
return function () {
|
|
1203
1198
|
var tmp;
|
|
1204
|
-
if (this$0.
|
|
1205
|
-
tmp =
|
|
1199
|
+
if (this$0.os_1.f2($key)) {
|
|
1200
|
+
tmp = Companion_instance_4.fp(this$0.os_1.h2($key));
|
|
1206
1201
|
} else {
|
|
1207
|
-
tmp =
|
|
1202
|
+
tmp = Companion_instance_4.ep();
|
|
1208
1203
|
}
|
|
1209
1204
|
return tmp;
|
|
1210
1205
|
};
|
|
1211
1206
|
}
|
|
1212
1207
|
function SimpleLRUCache$toSequence$lambda$lambda(it) {
|
|
1213
1208
|
// Inline function 'kotlin.collections.toPair' call
|
|
1214
|
-
return new Pair(it.
|
|
1209
|
+
return new Pair(it.d2(), it.e2());
|
|
1215
1210
|
}
|
|
1216
1211
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1217
1212
|
return function () {
|
|
1218
|
-
var tmp = asSequence(this$0.
|
|
1213
|
+
var tmp = asSequence(this$0.os_1.f1());
|
|
1219
1214
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1220
1215
|
};
|
|
1221
1216
|
}
|
|
1222
1217
|
function SimpleLRUCache$toString$lambda(it) {
|
|
1223
|
-
return
|
|
1218
|
+
return toString(it.xc_1) + ' = ' + toString(it.yc_1);
|
|
1224
1219
|
}
|
|
1225
1220
|
function SimpleLRUCache(capacity) {
|
|
1226
|
-
this.
|
|
1221
|
+
this.ns_1 = capacity;
|
|
1227
1222
|
// Inline function 'kotlin.require' call
|
|
1228
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1229
1223
|
// Inline function 'kotlin.require' call
|
|
1230
|
-
|
|
1231
|
-
if (!(this.su_1 > 0)) {
|
|
1232
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
1224
|
+
if (!(this.ns_1 > 0)) {
|
|
1233
1225
|
var message = 'Failed requirement.';
|
|
1234
|
-
throw IllegalArgumentException_init_$Create$(
|
|
1226
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1235
1227
|
}
|
|
1236
|
-
this.
|
|
1228
|
+
this.os_1 = LinkedHashMap_init_$Create$();
|
|
1237
1229
|
}
|
|
1238
|
-
protoOf(SimpleLRUCache).
|
|
1230
|
+
protoOf(SimpleLRUCache).xo = function (key, value) {
|
|
1239
1231
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1240
1232
|
};
|
|
1241
|
-
protoOf(SimpleLRUCache).
|
|
1233
|
+
protoOf(SimpleLRUCache).h2 = function (key) {
|
|
1242
1234
|
return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
|
|
1243
1235
|
};
|
|
1244
1236
|
protoOf(SimpleLRUCache).equals = function (other) {
|
|
1245
1237
|
if (this === other)
|
|
1246
1238
|
return true;
|
|
1247
|
-
if (other == null
|
|
1239
|
+
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1248
1240
|
return false;
|
|
1249
1241
|
if (!(other instanceof SimpleLRUCache))
|
|
1250
1242
|
THROW_CCE();
|
|
1251
|
-
if (!(this.
|
|
1243
|
+
if (!(this.ns_1 === other.ns_1))
|
|
1252
1244
|
return false;
|
|
1253
|
-
if (!this.
|
|
1245
|
+
if (!this.os_1.equals(other.os_1))
|
|
1254
1246
|
return false;
|
|
1255
1247
|
return true;
|
|
1256
1248
|
};
|
|
1257
1249
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1258
|
-
var result = this.
|
|
1259
|
-
result = imul(31, result) + this.
|
|
1250
|
+
var result = this.ns_1;
|
|
1251
|
+
result = imul(31, result) + this.os_1.hashCode() | 0;
|
|
1260
1252
|
return result;
|
|
1261
1253
|
};
|
|
1262
|
-
protoOf(SimpleLRUCache).
|
|
1254
|
+
protoOf(SimpleLRUCache).ps = function () {
|
|
1263
1255
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1264
1256
|
};
|
|
1265
1257
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1266
|
-
var tmp = this.
|
|
1258
|
+
var tmp = this.ps();
|
|
1267
1259
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1268
1260
|
};
|
|
1269
1261
|
function ValueCursor(current, next) {
|
|
1270
1262
|
AbstractCursor.call(this);
|
|
1271
|
-
this.
|
|
1272
|
-
this.
|
|
1263
|
+
this.qs_1 = current;
|
|
1264
|
+
this.rs_1 = next;
|
|
1273
1265
|
}
|
|
1274
|
-
protoOf(ValueCursor).
|
|
1275
|
-
return this.
|
|
1266
|
+
protoOf(ValueCursor).kp = function () {
|
|
1267
|
+
return this.qs_1;
|
|
1276
1268
|
};
|
|
1277
|
-
protoOf(ValueCursor).
|
|
1278
|
-
return this.
|
|
1269
|
+
protoOf(ValueCursor).jp = function () {
|
|
1270
|
+
return this.rs_1;
|
|
1279
1271
|
};
|
|
1280
|
-
protoOf(ValueCursor).
|
|
1272
|
+
protoOf(ValueCursor).lp = function () {
|
|
1281
1273
|
return true;
|
|
1282
1274
|
};
|
|
1283
|
-
protoOf(ValueCursor).
|
|
1275
|
+
protoOf(ValueCursor).mp = function () {
|
|
1284
1276
|
return false;
|
|
1285
1277
|
};
|
|
1286
1278
|
function dequeOf(items) {
|
|
1287
|
-
return toMutableList(items);
|
|
1288
|
-
}
|
|
1289
|
-
function dequeOf_0(items) {
|
|
1290
1279
|
return mutableListOf(items.slice());
|
|
1291
1280
|
}
|
|
1292
|
-
function
|
|
1293
|
-
// Inline function 'kotlin.also' call
|
|
1281
|
+
function dequeOf_0(items) {
|
|
1294
1282
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1283
|
+
// Inline function 'kotlin.also' call
|
|
1295
1284
|
var this_0 = ArrayList_init_$Create$_0();
|
|
1296
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1297
|
-
// Inline function 'it.unibo.tuprolog.utils.dequeOf.<anonymous>' call
|
|
1298
1285
|
addAll(this_0, items);
|
|
1299
1286
|
return this_0;
|
|
1300
1287
|
}
|
|
1288
|
+
function dequeOf_1(items) {
|
|
1289
|
+
return toMutableList(items);
|
|
1290
|
+
}
|
|
1301
1291
|
function takeFirst(_this__u8e3s4) {
|
|
1302
|
-
if (_this__u8e3s4.
|
|
1292
|
+
if (_this__u8e3s4.j())
|
|
1303
1293
|
return null;
|
|
1304
|
-
var first = _this__u8e3s4.
|
|
1305
|
-
_this__u8e3s4.
|
|
1294
|
+
var first = _this__u8e3s4.z(0);
|
|
1295
|
+
_this__u8e3s4.g3(0);
|
|
1306
1296
|
return first;
|
|
1307
1297
|
}
|
|
1308
1298
|
function addFirst(_this__u8e3s4, item) {
|
|
1309
|
-
_this__u8e3s4.
|
|
1299
|
+
_this__u8e3s4.r3(0, item);
|
|
1310
1300
|
}
|
|
1311
1301
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1312
|
-
var i = _this__u8e3s4.
|
|
1313
|
-
var
|
|
1314
|
-
while (
|
|
1315
|
-
var item =
|
|
1316
|
-
i.
|
|
1302
|
+
var i = _this__u8e3s4.b4();
|
|
1303
|
+
var _iterator__ex2g4s = items.p();
|
|
1304
|
+
while (_iterator__ex2g4s.s()) {
|
|
1305
|
+
var item = _iterator__ex2g4s.t();
|
|
1306
|
+
i.s3(item);
|
|
1317
1307
|
}
|
|
1318
1308
|
}
|
|
1319
1309
|
function synchronizedOn(obj, action) {
|
|
@@ -1326,9 +1316,9 @@
|
|
|
1326
1316
|
//region block: post-declaration
|
|
1327
1317
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1328
1318
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1329
|
-
protoOf(CachedImpl).
|
|
1330
|
-
protoOf(IntIndexedImpl).
|
|
1331
|
-
protoOf(SimpleLRUCache).
|
|
1319
|
+
protoOf(CachedImpl).dp = ifValid;
|
|
1320
|
+
protoOf(IntIndexedImpl).qp = compareTo;
|
|
1321
|
+
protoOf(SimpleLRUCache).yo = getOrSet;
|
|
1332
1322
|
//endregion
|
|
1333
1323
|
//region block: init
|
|
1334
1324
|
Companion_instance = new Companion();
|
|
@@ -1336,8 +1326,8 @@
|
|
|
1336
1326
|
Companion_instance_1 = new Companion_1();
|
|
1337
1327
|
Companion_instance_2 = new Companion_2();
|
|
1338
1328
|
Companion_instance_3 = new Companion_3();
|
|
1329
|
+
Companion_instance_4 = new Companion_4();
|
|
1339
1330
|
Companion_instance_5 = new Companion_5();
|
|
1340
|
-
Companion_instance_6 = new Companion_6();
|
|
1341
1331
|
//endregion
|
|
1342
1332
|
//region block: exports
|
|
1343
1333
|
_.$_$ = _.$_$ || {};
|
|
@@ -1345,12 +1335,12 @@
|
|
|
1345
1335
|
_.$_$.b = Companion_instance_0;
|
|
1346
1336
|
_.$_$.c = Companion_instance_1;
|
|
1347
1337
|
_.$_$.d = Companion_instance_3;
|
|
1348
|
-
_.$_$.e =
|
|
1349
|
-
_.$_$.f =
|
|
1350
|
-
_.$_$.g =
|
|
1351
|
-
_.$_$.h =
|
|
1352
|
-
_.$_$.i =
|
|
1353
|
-
_.$_$.j =
|
|
1338
|
+
_.$_$.e = castTo;
|
|
1339
|
+
_.$_$.f = Castable;
|
|
1340
|
+
_.$_$.g = component1;
|
|
1341
|
+
_.$_$.h = component2;
|
|
1342
|
+
_.$_$.i = compareTo_0;
|
|
1343
|
+
_.$_$.j = LongIndexed;
|
|
1354
1344
|
_.$_$.k = Some;
|
|
1355
1345
|
_.$_$.l = containsTag;
|
|
1356
1346
|
_.$_$.m = getTag;
|
|
@@ -1359,20 +1349,20 @@
|
|
|
1359
1349
|
_.$_$.p = addFirst;
|
|
1360
1350
|
_.$_$.q = buffered;
|
|
1361
1351
|
_.$_$.r = cached;
|
|
1362
|
-
_.$_$.s =
|
|
1363
|
-
_.$_$.t =
|
|
1352
|
+
_.$_$.s = cursor_0;
|
|
1353
|
+
_.$_$.t = cursor;
|
|
1364
1354
|
_.$_$.u = cursor_1;
|
|
1365
|
-
_.$_$.v =
|
|
1366
|
-
_.$_$.w =
|
|
1367
|
-
_.$_$.x =
|
|
1355
|
+
_.$_$.v = dequeOf_1;
|
|
1356
|
+
_.$_$.w = dequeOf_0;
|
|
1357
|
+
_.$_$.x = dequeOf;
|
|
1368
1358
|
_.$_$.y = dropLast;
|
|
1369
1359
|
_.$_$.z = forceCast;
|
|
1370
1360
|
_.$_$.a1 = insertAt;
|
|
1371
|
-
_.$_$.b1 =
|
|
1372
|
-
_.$_$.c1 =
|
|
1373
|
-
_.$_$.d1 =
|
|
1374
|
-
_.$_$.e1 =
|
|
1375
|
-
_.$_$.f1 =
|
|
1361
|
+
_.$_$.b1 = itemWiseEquals_0;
|
|
1362
|
+
_.$_$.c1 = itemWiseEquals;
|
|
1363
|
+
_.$_$.d1 = itemWiseHashCode_0;
|
|
1364
|
+
_.$_$.e1 = itemWiseHashCode;
|
|
1365
|
+
_.$_$.f1 = itemWiseHashCode_1;
|
|
1376
1366
|
_.$_$.g1 = mergeSequences;
|
|
1377
1367
|
_.$_$.h1 = plus;
|
|
1378
1368
|
_.$_$.i1 = setTags;
|