@tuprolog/arg2p 0.14.2 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +3265 -3058
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +526 -620
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +259 -259
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +172 -171
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +6 -6
- package/2p-dsl-unify.js.map +1 -1
- package/2p-parser-core.js +266 -875
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +5554 -0
- package/2p-parser-impl.js.map +1 -0
- package/2p-parser-theory.js +199 -45
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1075 -1081
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +4008 -4039
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1814 -1834
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +648 -367
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +475 -479
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +571 -265
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +2199 -2029
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +125 -125
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2965 -2707
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1598 -1598
- package/kt-math.js.map +1 -1
- package/package.json +2 -5
- package/2p-parser-js.js +0 -39
- package/2p-parser-js.js.map +0 -1
package/2p-dsl-core.js
CHANGED
|
@@ -21,77 +21,78 @@
|
|
|
21
21
|
}(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils, kotlin_io_github_gciatto_kt_math) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
25
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.nb;
|
|
25
|
+
var Unit_instance = kotlin_kotlin.$_$.o;
|
|
26
|
+
var constructCallableReference = kotlin_kotlin.$_$.j6;
|
|
27
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.f7;
|
|
29
|
+
var toString = kotlin_kotlin.$_$.i7;
|
|
30
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
31
|
+
var Term = kotlin_it_unibo_tuprolog_core.$_$.s2;
|
|
32
|
+
var isInterface = kotlin_kotlin.$_$.z6;
|
|
33
|
+
var TermConvertible = kotlin_it_unibo_tuprolog_core.$_$.v1;
|
|
34
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.x7;
|
|
35
|
+
var getKClass = kotlin_kotlin.$_$.y7;
|
|
36
|
+
var toString_0 = kotlin_kotlin.$_$.g;
|
|
37
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
38
|
+
var asIterable = kotlin_kotlin.$_$.b2;
|
|
38
39
|
var assertItemsAreNotNull = kotlin_it_unibo_tuprolog_utils.$_$.s;
|
|
39
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
40
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
41
42
|
var assertItemsAreNotNull_0 = kotlin_it_unibo_tuprolog_utils.$_$.r;
|
|
42
|
-
var map = kotlin_kotlin.$_$.
|
|
43
|
+
var map = kotlin_kotlin.$_$.z8;
|
|
43
44
|
var assertItemsAreNotNull_1 = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
44
|
-
var Char = kotlin_kotlin.$_$.
|
|
45
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
45
|
+
var Char = kotlin_kotlin.$_$.bb;
|
|
46
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.l;
|
|
46
47
|
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
47
48
|
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
48
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
49
|
-
var Iterable = kotlin_kotlin.$_$.
|
|
50
|
-
var KtList = kotlin_kotlin.$_$.
|
|
51
|
-
var KtSet = kotlin_kotlin.$_$.
|
|
52
|
-
var Pair = kotlin_kotlin.$_$.
|
|
53
|
-
var Triple = kotlin_kotlin.$_$.
|
|
54
|
-
var Entry = kotlin_kotlin.$_$.
|
|
55
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
49
|
+
var Sequence = kotlin_kotlin.$_$.c8;
|
|
50
|
+
var Iterable = kotlin_kotlin.$_$.s1;
|
|
51
|
+
var KtList = kotlin_kotlin.$_$.t1;
|
|
52
|
+
var KtSet = kotlin_kotlin.$_$.w1;
|
|
53
|
+
var Pair = kotlin_kotlin.$_$.lb;
|
|
54
|
+
var Triple = kotlin_kotlin.$_$.pb;
|
|
55
|
+
var Entry = kotlin_kotlin.$_$.u1;
|
|
56
|
+
var KtMap = kotlin_kotlin.$_$.v1;
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.s6;
|
|
57
58
|
var VOID = kotlin_kotlin.$_$.b;
|
|
58
|
-
var Struct = kotlin_it_unibo_tuprolog_core.$_$.
|
|
59
|
-
var Scope = kotlin_it_unibo_tuprolog_core.$_$.
|
|
60
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
61
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.
|
|
62
|
-
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
63
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
64
|
-
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.
|
|
65
|
-
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.
|
|
66
|
-
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.
|
|
67
|
-
var plus = kotlin_kotlin.$_$.
|
|
68
|
-
var Tuple = kotlin_it_unibo_tuprolog_core.$_$.
|
|
69
|
-
var Companion_instance_1 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
70
|
-
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
71
|
-
var Var = kotlin_it_unibo_tuprolog_core.$_$.
|
|
59
|
+
var Struct = kotlin_it_unibo_tuprolog_core.$_$.t1;
|
|
60
|
+
var Scope = kotlin_it_unibo_tuprolog_core.$_$.s1;
|
|
61
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.u6;
|
|
62
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.m;
|
|
63
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
64
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.t6;
|
|
65
|
+
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
66
|
+
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
67
|
+
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
68
|
+
var plus = kotlin_kotlin.$_$.f4;
|
|
69
|
+
var Tuple = kotlin_it_unibo_tuprolog_core.$_$.t2;
|
|
70
|
+
var Companion_instance_1 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
71
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.o;
|
|
72
|
+
var Var = kotlin_it_unibo_tuprolog_core.$_$.u2;
|
|
72
73
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
73
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
74
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
75
|
-
var listOf = kotlin_kotlin.$_$.
|
|
76
|
-
var Rule = kotlin_it_unibo_tuprolog_core.$_$.
|
|
77
|
-
var Directive = kotlin_it_unibo_tuprolog_core.$_$.
|
|
78
|
-
var Fact = kotlin_it_unibo_tuprolog_core.$_$.
|
|
74
|
+
var sequenceOf = kotlin_kotlin.$_$.f9;
|
|
75
|
+
var copyToArray = kotlin_kotlin.$_$.q2;
|
|
76
|
+
var listOf = kotlin_kotlin.$_$.n3;
|
|
77
|
+
var Rule = kotlin_it_unibo_tuprolog_core.$_$.r1;
|
|
78
|
+
var Directive = kotlin_it_unibo_tuprolog_core.$_$.k1;
|
|
79
|
+
var Fact = kotlin_it_unibo_tuprolog_core.$_$.l1;
|
|
79
80
|
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.k;
|
|
80
81
|
//endregion
|
|
81
82
|
//region block: pre-declaration
|
|
82
83
|
function copy(scope, $super) {
|
|
83
|
-
scope = scope === VOID ? this.
|
|
84
|
-
return $super === VOID ? this.
|
|
84
|
+
scope = scope === VOID ? this.a1i() : scope;
|
|
85
|
+
return $super === VOID ? this.b1i(scope) : $super.b1i.call(this, scope);
|
|
85
86
|
}
|
|
86
87
|
initMetadataForInterface(Termificator, 'Termificator');
|
|
87
88
|
initMetadataForClass(AbstractTermificator, 'AbstractTermificator', VOID, VOID, [Termificator]);
|
|
88
89
|
function convertToTerm(_this__u8e3s4) {
|
|
89
|
-
return this.
|
|
90
|
+
return this.x30().toTerm(_this__u8e3s4);
|
|
90
91
|
}
|
|
91
92
|
function convertToSpecificSubTypeOfTerm(_this__u8e3s4, type, converter) {
|
|
92
93
|
var t = this.convertToTerm(_this__u8e3s4);
|
|
93
94
|
var tmp;
|
|
94
|
-
if (type.
|
|
95
|
+
if (type.f9(t)) {
|
|
95
96
|
tmp = isInterface(t, Term) ? t : THROW_CCE();
|
|
96
97
|
} else {
|
|
97
98
|
if (isInterface(t, Struct)) {
|
|
@@ -104,6 +105,197 @@
|
|
|
104
105
|
}
|
|
105
106
|
initMetadataForInterface(BaseLogicProgrammingScope, 'BaseLogicProgrammingScope', VOID, VOID, [Scope]);
|
|
106
107
|
initMetadataForCompanion(Companion);
|
|
108
|
+
function termPlus(_this__u8e3s4, other) {
|
|
109
|
+
return this.structOf('+', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
110
|
+
}
|
|
111
|
+
function number(_this__u8e3s4, other) {
|
|
112
|
+
return this.termPlus(this.convertToTerm(_this__u8e3s4), other);
|
|
113
|
+
}
|
|
114
|
+
function booleanPlus(_this__u8e3s4, other) {
|
|
115
|
+
return this.termPlus(this.convertToTerm(_this__u8e3s4), other);
|
|
116
|
+
}
|
|
117
|
+
function charPlus(_this__u8e3s4, other) {
|
|
118
|
+
return this.termPlus(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
119
|
+
}
|
|
120
|
+
function termMinus(_this__u8e3s4, other) {
|
|
121
|
+
return this.structOf('-', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
122
|
+
}
|
|
123
|
+
function numberMinus(_this__u8e3s4, other) {
|
|
124
|
+
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
125
|
+
}
|
|
126
|
+
function booleanMinus(_this__u8e3s4, other) {
|
|
127
|
+
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
128
|
+
}
|
|
129
|
+
function charMinus(_this__u8e3s4, other) {
|
|
130
|
+
return this.termMinus(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
131
|
+
}
|
|
132
|
+
function stringMinus(_this__u8e3s4, other) {
|
|
133
|
+
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
134
|
+
}
|
|
135
|
+
function termTimes(_this__u8e3s4, other) {
|
|
136
|
+
return this.structOf('*', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
137
|
+
}
|
|
138
|
+
function numberTimes(_this__u8e3s4, other) {
|
|
139
|
+
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
140
|
+
}
|
|
141
|
+
function booleanTimes(_this__u8e3s4, other) {
|
|
142
|
+
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
143
|
+
}
|
|
144
|
+
function charTimes(_this__u8e3s4, other) {
|
|
145
|
+
return this.termTimes(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
146
|
+
}
|
|
147
|
+
function stringTimes(_this__u8e3s4, other) {
|
|
148
|
+
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
149
|
+
}
|
|
150
|
+
function termDiv(_this__u8e3s4, other) {
|
|
151
|
+
return this.indicatorOf(this.convertToTerm(_this__u8e3s4), this.convertToTerm(other));
|
|
152
|
+
}
|
|
153
|
+
function numberDiv(_this__u8e3s4, other) {
|
|
154
|
+
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
155
|
+
}
|
|
156
|
+
function booleanDiv(_this__u8e3s4, other) {
|
|
157
|
+
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
158
|
+
}
|
|
159
|
+
function charDiv(_this__u8e3s4, other) {
|
|
160
|
+
return this.termDiv(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
161
|
+
}
|
|
162
|
+
function stringDiv(_this__u8e3s4, other) {
|
|
163
|
+
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
164
|
+
}
|
|
165
|
+
function anyEqualsTo(_this__u8e3s4, other) {
|
|
166
|
+
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
167
|
+
}
|
|
168
|
+
function anyNotEqualsTo(_this__u8e3s4, other) {
|
|
169
|
+
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
170
|
+
}
|
|
171
|
+
function anyGreaterThan(_this__u8e3s4, other) {
|
|
172
|
+
return this.structOf('>', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
173
|
+
}
|
|
174
|
+
function anyGreaterThanOrEqualsTo(_this__u8e3s4, other) {
|
|
175
|
+
return this.structOf('>=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
176
|
+
}
|
|
177
|
+
function anyNonLowerThan(_this__u8e3s4, other) {
|
|
178
|
+
return this.anyGreaterThanOrEqualsTo(_this__u8e3s4, other);
|
|
179
|
+
}
|
|
180
|
+
function anyLowerThan(_this__u8e3s4, other) {
|
|
181
|
+
return this.structOf('<', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
182
|
+
}
|
|
183
|
+
function anyLowerThanOrEqualsTo(_this__u8e3s4, other) {
|
|
184
|
+
return this.structOf('=<', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
185
|
+
}
|
|
186
|
+
function anyNonGreaterThan(_this__u8e3s4, other) {
|
|
187
|
+
return this.anyLowerThanOrEqualsTo(_this__u8e3s4, other);
|
|
188
|
+
}
|
|
189
|
+
function anyIntDiv(_this__u8e3s4, other) {
|
|
190
|
+
return this.structOf('//', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
191
|
+
}
|
|
192
|
+
function termRem(_this__u8e3s4, other) {
|
|
193
|
+
return this.structOf('rem', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
194
|
+
}
|
|
195
|
+
function numberRem(_this__u8e3s4, other) {
|
|
196
|
+
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
197
|
+
}
|
|
198
|
+
function booleanRem(_this__u8e3s4, other) {
|
|
199
|
+
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
200
|
+
}
|
|
201
|
+
function charRem(_this__u8e3s4, other) {
|
|
202
|
+
return this.termRem(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
203
|
+
}
|
|
204
|
+
function stringRem(_this__u8e3s4, other) {
|
|
205
|
+
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
206
|
+
}
|
|
207
|
+
function anyAnd(_this__u8e3s4, other) {
|
|
208
|
+
// Inline function 'kotlin.let' call
|
|
209
|
+
var it = this.convertToTerm(_this__u8e3s4);
|
|
210
|
+
var otherTerm = this.convertToTerm(other);
|
|
211
|
+
var tmp;
|
|
212
|
+
if (isInterface(it, Tuple)) {
|
|
213
|
+
tmp = this.tupleOfIterable(plus(it.bx(), otherTerm));
|
|
214
|
+
} else {
|
|
215
|
+
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
216
|
+
}
|
|
217
|
+
return tmp;
|
|
218
|
+
}
|
|
219
|
+
function anyOr(_this__u8e3s4, other) {
|
|
220
|
+
return this.structOf(';', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
221
|
+
}
|
|
222
|
+
function anyPow(_this__u8e3s4, other) {
|
|
223
|
+
return this.structOf('**', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
224
|
+
}
|
|
225
|
+
function anySup(_this__u8e3s4, other) {
|
|
226
|
+
return this.structOf('^', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
227
|
+
}
|
|
228
|
+
function anyIs(_this__u8e3s4, other) {
|
|
229
|
+
return this.structOf('is', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
230
|
+
}
|
|
231
|
+
function anyThen(_this__u8e3s4, other) {
|
|
232
|
+
return this.structOf('->', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
233
|
+
}
|
|
234
|
+
function anyImpliedBy(_this__u8e3s4, other) {
|
|
235
|
+
var t = this.convertToTerm(_this__u8e3s4);
|
|
236
|
+
var tmp;
|
|
237
|
+
if (isInterface(t, Struct)) {
|
|
238
|
+
tmp = this.ruleOf(t, this.convertToTerm(other), []);
|
|
239
|
+
} else {
|
|
240
|
+
raiseErrorConvertingTo(_this__u8e3s4, getKClass(Struct));
|
|
241
|
+
}
|
|
242
|
+
return tmp;
|
|
243
|
+
}
|
|
244
|
+
function anyIf(_this__u8e3s4, other) {
|
|
245
|
+
return this.anyImpliedBy(_this__u8e3s4, other);
|
|
246
|
+
}
|
|
247
|
+
function anyImpliedByVararg(_this__u8e3s4, other) {
|
|
248
|
+
var tmp = Companion_instance_1;
|
|
249
|
+
// Inline function 'kotlin.collections.map' call
|
|
250
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
251
|
+
var destination = ArrayList_init_$Create$(other.length);
|
|
252
|
+
var inductionVariable = 0;
|
|
253
|
+
var last = other.length;
|
|
254
|
+
while (inductionVariable < last) {
|
|
255
|
+
var item = other[inductionVariable];
|
|
256
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
257
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
258
|
+
destination.k(tmp$ret$2);
|
|
259
|
+
}
|
|
260
|
+
return this.anyImpliedBy(_this__u8e3s4, tmp.wrapIterableIfNeeded(destination));
|
|
261
|
+
}
|
|
262
|
+
function anyIfVararg(_this__u8e3s4, other) {
|
|
263
|
+
return this.anyImpliedByVararg(_this__u8e3s4, other.slice());
|
|
264
|
+
}
|
|
265
|
+
initMetadataForInterface(LogicProgrammingScopeWithOperators, 'LogicProgrammingScopeWithOperators', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
266
|
+
function varTo(_this__u8e3s4, termObject) {
|
|
267
|
+
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
268
|
+
}
|
|
269
|
+
function stringTo(_this__u8e3s4, termObject) {
|
|
270
|
+
return Companion_getInstance_0().of(this.varOf(_this__u8e3s4), this.convertToTerm(termObject));
|
|
271
|
+
}
|
|
272
|
+
function substitutionGet(_this__u8e3s4, term) {
|
|
273
|
+
var t = this.convertToTerm(term);
|
|
274
|
+
var tmp;
|
|
275
|
+
if (isInterface(t, Var)) {
|
|
276
|
+
tmp = _this__u8e3s4.i2(t);
|
|
277
|
+
} else {
|
|
278
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
279
|
+
}
|
|
280
|
+
return tmp;
|
|
281
|
+
}
|
|
282
|
+
function substitutionContainsKey(_this__u8e3s4, term) {
|
|
283
|
+
var t = this.convertToTerm(term);
|
|
284
|
+
var tmp;
|
|
285
|
+
if (isInterface(t, Var)) {
|
|
286
|
+
tmp = _this__u8e3s4.g2(t);
|
|
287
|
+
} else {
|
|
288
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
289
|
+
}
|
|
290
|
+
return tmp;
|
|
291
|
+
}
|
|
292
|
+
function substitutionContains(_this__u8e3s4, term) {
|
|
293
|
+
return this.substitutionContainsKey(_this__u8e3s4, term);
|
|
294
|
+
}
|
|
295
|
+
function substitutionContainsValue(_this__u8e3s4, term) {
|
|
296
|
+
return _this__u8e3s4.h2(this.convertToTerm(term));
|
|
297
|
+
}
|
|
298
|
+
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
107
299
|
function at_end_of_stream1(alias) {
|
|
108
300
|
return this.structOf('at_end_of_stream', [this.convertToTerm(alias)]);
|
|
109
301
|
}
|
|
@@ -291,164 +483,6 @@
|
|
|
291
483
|
return this.structOf('include', [this.convertToTerm(url)]);
|
|
292
484
|
}
|
|
293
485
|
initMetadataForInterface(LogicProgrammingScopeWithPrologStandardLibrary, 'LogicProgrammingScopeWithPrologStandardLibrary', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
294
|
-
function termPlus(_this__u8e3s4, other) {
|
|
295
|
-
return this.structOf('+', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
296
|
-
}
|
|
297
|
-
function number(_this__u8e3s4, other) {
|
|
298
|
-
return this.termPlus(this.convertToTerm(_this__u8e3s4), other);
|
|
299
|
-
}
|
|
300
|
-
function booleanPlus(_this__u8e3s4, other) {
|
|
301
|
-
return this.termPlus(this.convertToTerm(_this__u8e3s4), other);
|
|
302
|
-
}
|
|
303
|
-
function charPlus(_this__u8e3s4, other) {
|
|
304
|
-
return this.termPlus(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
305
|
-
}
|
|
306
|
-
function termMinus(_this__u8e3s4, other) {
|
|
307
|
-
return this.structOf('-', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
308
|
-
}
|
|
309
|
-
function numberMinus(_this__u8e3s4, other) {
|
|
310
|
-
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
311
|
-
}
|
|
312
|
-
function booleanMinus(_this__u8e3s4, other) {
|
|
313
|
-
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
314
|
-
}
|
|
315
|
-
function charMinus(_this__u8e3s4, other) {
|
|
316
|
-
return this.termMinus(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
317
|
-
}
|
|
318
|
-
function stringMinus(_this__u8e3s4, other) {
|
|
319
|
-
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
320
|
-
}
|
|
321
|
-
function termTimes(_this__u8e3s4, other) {
|
|
322
|
-
return this.structOf('*', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
323
|
-
}
|
|
324
|
-
function numberTimes(_this__u8e3s4, other) {
|
|
325
|
-
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
326
|
-
}
|
|
327
|
-
function booleanTimes(_this__u8e3s4, other) {
|
|
328
|
-
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
329
|
-
}
|
|
330
|
-
function charTimes(_this__u8e3s4, other) {
|
|
331
|
-
return this.termTimes(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
332
|
-
}
|
|
333
|
-
function stringTimes(_this__u8e3s4, other) {
|
|
334
|
-
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
335
|
-
}
|
|
336
|
-
function termDiv(_this__u8e3s4, other) {
|
|
337
|
-
return this.indicatorOf(this.convertToTerm(_this__u8e3s4), this.convertToTerm(other));
|
|
338
|
-
}
|
|
339
|
-
function numberDiv(_this__u8e3s4, other) {
|
|
340
|
-
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
341
|
-
}
|
|
342
|
-
function booleanDiv(_this__u8e3s4, other) {
|
|
343
|
-
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
344
|
-
}
|
|
345
|
-
function charDiv(_this__u8e3s4, other) {
|
|
346
|
-
return this.termDiv(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
347
|
-
}
|
|
348
|
-
function stringDiv(_this__u8e3s4, other) {
|
|
349
|
-
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
350
|
-
}
|
|
351
|
-
function anyEqualsTo(_this__u8e3s4, other) {
|
|
352
|
-
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
353
|
-
}
|
|
354
|
-
function anyNotEqualsTo(_this__u8e3s4, other) {
|
|
355
|
-
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
356
|
-
}
|
|
357
|
-
function anyGreaterThan(_this__u8e3s4, other) {
|
|
358
|
-
return this.structOf('>', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
359
|
-
}
|
|
360
|
-
function anyGreaterThanOrEqualsTo(_this__u8e3s4, other) {
|
|
361
|
-
return this.structOf('>=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
362
|
-
}
|
|
363
|
-
function anyNonLowerThan(_this__u8e3s4, other) {
|
|
364
|
-
return this.anyGreaterThanOrEqualsTo(_this__u8e3s4, other);
|
|
365
|
-
}
|
|
366
|
-
function anyLowerThan(_this__u8e3s4, other) {
|
|
367
|
-
return this.structOf('<', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
368
|
-
}
|
|
369
|
-
function anyLowerThanOrEqualsTo(_this__u8e3s4, other) {
|
|
370
|
-
return this.structOf('=<', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
371
|
-
}
|
|
372
|
-
function anyNonGreaterThan(_this__u8e3s4, other) {
|
|
373
|
-
return this.anyLowerThanOrEqualsTo(_this__u8e3s4, other);
|
|
374
|
-
}
|
|
375
|
-
function anyIntDiv(_this__u8e3s4, other) {
|
|
376
|
-
return this.structOf('//', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
377
|
-
}
|
|
378
|
-
function termRem(_this__u8e3s4, other) {
|
|
379
|
-
return this.structOf('rem', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
380
|
-
}
|
|
381
|
-
function numberRem(_this__u8e3s4, other) {
|
|
382
|
-
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
383
|
-
}
|
|
384
|
-
function booleanRem(_this__u8e3s4, other) {
|
|
385
|
-
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
386
|
-
}
|
|
387
|
-
function charRem(_this__u8e3s4, other) {
|
|
388
|
-
return this.termRem(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
389
|
-
}
|
|
390
|
-
function stringRem(_this__u8e3s4, other) {
|
|
391
|
-
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
392
|
-
}
|
|
393
|
-
function anyAnd(_this__u8e3s4, other) {
|
|
394
|
-
// Inline function 'kotlin.let' call
|
|
395
|
-
var it = this.convertToTerm(_this__u8e3s4);
|
|
396
|
-
var otherTerm = this.convertToTerm(other);
|
|
397
|
-
var tmp;
|
|
398
|
-
if (isInterface(it, Tuple)) {
|
|
399
|
-
tmp = this.tupleOfIterable(plus(it.sw(), otherTerm));
|
|
400
|
-
} else {
|
|
401
|
-
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
402
|
-
}
|
|
403
|
-
return tmp;
|
|
404
|
-
}
|
|
405
|
-
function anyOr(_this__u8e3s4, other) {
|
|
406
|
-
return this.structOf(';', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
407
|
-
}
|
|
408
|
-
function anyPow(_this__u8e3s4, other) {
|
|
409
|
-
return this.structOf('**', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
410
|
-
}
|
|
411
|
-
function anySup(_this__u8e3s4, other) {
|
|
412
|
-
return this.structOf('^', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
413
|
-
}
|
|
414
|
-
function anyIs(_this__u8e3s4, other) {
|
|
415
|
-
return this.structOf('is', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
416
|
-
}
|
|
417
|
-
function anyThen(_this__u8e3s4, other) {
|
|
418
|
-
return this.structOf('->', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
419
|
-
}
|
|
420
|
-
function anyImpliedBy(_this__u8e3s4, other) {
|
|
421
|
-
var t = this.convertToTerm(_this__u8e3s4);
|
|
422
|
-
var tmp;
|
|
423
|
-
if (isInterface(t, Struct)) {
|
|
424
|
-
tmp = this.ruleOf(t, this.convertToTerm(other), []);
|
|
425
|
-
} else {
|
|
426
|
-
raiseErrorConvertingTo(_this__u8e3s4, getKClass(Struct));
|
|
427
|
-
}
|
|
428
|
-
return tmp;
|
|
429
|
-
}
|
|
430
|
-
function anyIf(_this__u8e3s4, other) {
|
|
431
|
-
return this.anyImpliedBy(_this__u8e3s4, other);
|
|
432
|
-
}
|
|
433
|
-
function anyImpliedByVararg(_this__u8e3s4, other) {
|
|
434
|
-
var tmp = Companion_instance_1;
|
|
435
|
-
// Inline function 'kotlin.collections.map' call
|
|
436
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
437
|
-
var destination = ArrayList_init_$Create$(other.length);
|
|
438
|
-
var inductionVariable = 0;
|
|
439
|
-
var last = other.length;
|
|
440
|
-
while (inductionVariable < last) {
|
|
441
|
-
var item = other[inductionVariable];
|
|
442
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
443
|
-
var tmp$ret$0 = this.convertToTerm(item);
|
|
444
|
-
destination.m(tmp$ret$0);
|
|
445
|
-
}
|
|
446
|
-
return this.anyImpliedBy(_this__u8e3s4, tmp.wrapIterableIfNeeded(destination));
|
|
447
|
-
}
|
|
448
|
-
function anyIfVararg(_this__u8e3s4, other) {
|
|
449
|
-
return this.anyImpliedByVararg(_this__u8e3s4, other.slice());
|
|
450
|
-
}
|
|
451
|
-
initMetadataForInterface(LogicProgrammingScopeWithOperators, 'LogicProgrammingScopeWithOperators', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
452
486
|
function stringInvoke(_this__u8e3s4, term, terms) {
|
|
453
487
|
var tmp = sequenceOf(arrayConcat([[term], terms]));
|
|
454
488
|
return this.structOfSequence(_this__u8e3s4, map(tmp, MinimalLogicProgrammingScope$invoke$lambda(this)));
|
|
@@ -462,8 +496,8 @@
|
|
|
462
496
|
while (inductionVariable < last) {
|
|
463
497
|
var item = args[inductionVariable];
|
|
464
498
|
inductionVariable = inductionVariable + 1 | 0;
|
|
465
|
-
var tmp$ret$
|
|
466
|
-
destination.
|
|
499
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
500
|
+
destination.k(tmp$ret$2);
|
|
467
501
|
}
|
|
468
502
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
469
503
|
var tmp$ret$3 = copyToArray(destination);
|
|
@@ -478,8 +512,8 @@
|
|
|
478
512
|
while (inductionVariable < last) {
|
|
479
513
|
var item = terms[inductionVariable];
|
|
480
514
|
inductionVariable = inductionVariable + 1 | 0;
|
|
481
|
-
var tmp$ret$
|
|
482
|
-
destination.
|
|
515
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
516
|
+
destination.k(tmp$ret$2);
|
|
483
517
|
}
|
|
484
518
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
485
519
|
var tmp$ret$3 = copyToArray(destination);
|
|
@@ -494,8 +528,8 @@
|
|
|
494
528
|
while (inductionVariable < last) {
|
|
495
529
|
var item = terms[inductionVariable];
|
|
496
530
|
inductionVariable = inductionVariable + 1 | 0;
|
|
497
|
-
var tmp$ret$
|
|
498
|
-
destination.
|
|
531
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
532
|
+
destination.k(tmp$ret$2);
|
|
499
533
|
}
|
|
500
534
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
501
535
|
var tmp$ret$3 = copyToArray(destination);
|
|
@@ -510,8 +544,8 @@
|
|
|
510
544
|
while (inductionVariable < last) {
|
|
511
545
|
var item = terms[inductionVariable];
|
|
512
546
|
inductionVariable = inductionVariable + 1 | 0;
|
|
513
|
-
var tmp$ret$
|
|
514
|
-
destination.
|
|
547
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
548
|
+
destination.k(tmp$ret$2);
|
|
515
549
|
}
|
|
516
550
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
517
551
|
var tmp$ret$3 = copyToArray(destination);
|
|
@@ -534,8 +568,8 @@
|
|
|
534
568
|
while (inductionVariable < last) {
|
|
535
569
|
var item = terms[inductionVariable];
|
|
536
570
|
inductionVariable = inductionVariable + 1 | 0;
|
|
537
|
-
var tmp$ret$
|
|
538
|
-
destination.
|
|
571
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
572
|
+
destination.k(tmp$ret$2);
|
|
539
573
|
}
|
|
540
574
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
541
575
|
var tmp$ret$3 = copyToArray(destination);
|
|
@@ -549,16 +583,16 @@
|
|
|
549
583
|
var this_0 = listOf(items.slice());
|
|
550
584
|
// Inline function 'kotlin.collections.mapTo' call
|
|
551
585
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
552
|
-
var _iterator__ex2g4s = this_0.
|
|
553
|
-
while (_iterator__ex2g4s.
|
|
554
|
-
var item = _iterator__ex2g4s.
|
|
555
|
-
var tmp$ret$
|
|
556
|
-
destination.
|
|
586
|
+
var _iterator__ex2g4s = this_0.n();
|
|
587
|
+
while (_iterator__ex2g4s.q()) {
|
|
588
|
+
var item = _iterator__ex2g4s.r();
|
|
589
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
590
|
+
destination.k(tmp$ret$2);
|
|
557
591
|
}
|
|
558
592
|
// Inline function 'kotlin.let' call
|
|
559
593
|
var tmp;
|
|
560
594
|
if (!(tail == null)) {
|
|
561
|
-
tmp = this.
|
|
595
|
+
tmp = this.f11(destination, this.convertToTerm(tail));
|
|
562
596
|
} else {
|
|
563
597
|
tmp = this.logicListOfIterable(destination);
|
|
564
598
|
}
|
|
@@ -566,7 +600,7 @@
|
|
|
566
600
|
}
|
|
567
601
|
function logicList_0(items, tail, $super) {
|
|
568
602
|
tail = tail === VOID ? null : tail;
|
|
569
|
-
return $super === VOID ? this.
|
|
603
|
+
return $super === VOID ? this.d31(items, tail) : logicList(items, tail);
|
|
570
604
|
}
|
|
571
605
|
function rule(function_0) {
|
|
572
606
|
var tmp = this.convertToTerm(function_0(this.newScope()));
|
|
@@ -583,40 +617,7 @@
|
|
|
583
617
|
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$factOf$ref(this));
|
|
584
618
|
}
|
|
585
619
|
initMetadataForInterface(MinimalLogicProgrammingScope, 'MinimalLogicProgrammingScope', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
586
|
-
|
|
587
|
-
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
588
|
-
}
|
|
589
|
-
function stringTo(_this__u8e3s4, termObject) {
|
|
590
|
-
return Companion_getInstance_0().of(this.varOf(_this__u8e3s4), this.convertToTerm(termObject));
|
|
591
|
-
}
|
|
592
|
-
function substitutionGet(_this__u8e3s4, term) {
|
|
593
|
-
var t = this.convertToTerm(term);
|
|
594
|
-
var tmp;
|
|
595
|
-
if (isInterface(t, Var)) {
|
|
596
|
-
tmp = _this__u8e3s4.h2(t);
|
|
597
|
-
} else {
|
|
598
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
599
|
-
}
|
|
600
|
-
return tmp;
|
|
601
|
-
}
|
|
602
|
-
function substitutionContainsKey(_this__u8e3s4, term) {
|
|
603
|
-
var t = this.convertToTerm(term);
|
|
604
|
-
var tmp;
|
|
605
|
-
if (isInterface(t, Var)) {
|
|
606
|
-
tmp = _this__u8e3s4.f2(t);
|
|
607
|
-
} else {
|
|
608
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
609
|
-
}
|
|
610
|
-
return tmp;
|
|
611
|
-
}
|
|
612
|
-
function substitutionContains(_this__u8e3s4, term) {
|
|
613
|
-
return this.substitutionContainsKey(_this__u8e3s4, term);
|
|
614
|
-
}
|
|
615
|
-
function substitutionContainsValue(_this__u8e3s4, term) {
|
|
616
|
-
return _this__u8e3s4.g2(this.convertToTerm(term));
|
|
617
|
-
}
|
|
618
|
-
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
619
|
-
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [LogicProgrammingScopeWithPrologStandardLibrary, LogicProgrammingScopeWithOperators, MinimalLogicProgrammingScope, LogicProgrammingScopeWithSubstitutions, BaseLogicProgrammingScope, Scope]);
|
|
620
|
+
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [LogicProgrammingScopeWithOperators, LogicProgrammingScopeWithSubstitutions, BaseLogicProgrammingScope, Scope, LogicProgrammingScopeWithPrologStandardLibrary, MinimalLogicProgrammingScope]);
|
|
620
621
|
initMetadataForCompanion(Companion_0);
|
|
621
622
|
initMetadataForClass(DefaultTermificator, 'DefaultTermificator', VOID, AbstractTermificator);
|
|
622
623
|
//endregion
|
|
@@ -627,193 +628,100 @@
|
|
|
627
628
|
}
|
|
628
629
|
function AbstractTermificator$handleSequenceAsList$lambda(this$0) {
|
|
629
630
|
return function (it) {
|
|
630
|
-
return this$0.
|
|
631
|
+
return this$0.d30(it);
|
|
631
632
|
};
|
|
632
633
|
}
|
|
633
634
|
function AbstractTermificator$handleCharAsString$ref(p0) {
|
|
634
|
-
|
|
635
|
-
return p0.
|
|
636
|
-
};
|
|
637
|
-
l.callableName = 'handleCharAsString';
|
|
638
|
-
return l;
|
|
635
|
+
return constructCallableReference(function (p0_0) {
|
|
636
|
+
return p0.e30(p0_0.r1_1);
|
|
637
|
+
}, 1, 0, 91, 'handleCharAsString', [p0]);
|
|
639
638
|
}
|
|
640
639
|
function AbstractTermificator$handleBooleanAsTruth$ref(p0) {
|
|
641
|
-
|
|
642
|
-
return p0.
|
|
643
|
-
};
|
|
644
|
-
l.callableName = 'handleBooleanAsTruth';
|
|
645
|
-
return l;
|
|
640
|
+
return constructCallableReference(function (p0_0) {
|
|
641
|
+
return p0.f30(p0_0);
|
|
642
|
+
}, 1, 0, 92, 'handleBooleanAsTruth', [p0]);
|
|
646
643
|
}
|
|
647
644
|
function AbstractTermificator$handleStringAsAtomOrVariable$ref(p0) {
|
|
648
|
-
|
|
649
|
-
return p0.
|
|
650
|
-
};
|
|
651
|
-
l.callableName = 'handleStringAsAtomOrVariable';
|
|
652
|
-
return l;
|
|
645
|
+
return constructCallableReference(function (p0_0) {
|
|
646
|
+
return p0.g30(p0_0);
|
|
647
|
+
}, 1, 0, 93, 'handleStringAsAtomOrVariable', [p0]);
|
|
653
648
|
}
|
|
654
649
|
function AbstractTermificator$handleBigIntegerAsInteger$ref(p0) {
|
|
655
|
-
|
|
656
|
-
return p0.
|
|
657
|
-
};
|
|
658
|
-
l.callableName = 'handleBigIntegerAsInteger';
|
|
659
|
-
return l;
|
|
650
|
+
return constructCallableReference(function (p0_0) {
|
|
651
|
+
return p0.h30(p0_0);
|
|
652
|
+
}, 1, 0, 94, 'handleBigIntegerAsInteger', [p0]);
|
|
660
653
|
}
|
|
661
654
|
function AbstractTermificator$handleBigDecimalAsReal$ref(p0) {
|
|
662
|
-
|
|
663
|
-
return p0.
|
|
664
|
-
};
|
|
665
|
-
l.callableName = 'handleBigDecimalAsReal';
|
|
666
|
-
return l;
|
|
655
|
+
return constructCallableReference(function (p0_0) {
|
|
656
|
+
return p0.i30(p0_0);
|
|
657
|
+
}, 1, 0, 95, 'handleBigDecimalAsReal', [p0]);
|
|
667
658
|
}
|
|
668
659
|
function AbstractTermificator$handleNumberAsNumeric$ref(p0) {
|
|
669
|
-
|
|
670
|
-
return p0.
|
|
671
|
-
};
|
|
672
|
-
l.callableName = 'handleNumberAsNumeric';
|
|
673
|
-
return l;
|
|
660
|
+
return constructCallableReference(function (p0_0) {
|
|
661
|
+
return p0.j30(p0_0);
|
|
662
|
+
}, 1, 0, 96, 'handleNumberAsNumeric', [p0]);
|
|
674
663
|
}
|
|
675
664
|
function AbstractTermificator$handleArrayAsList$ref(p0) {
|
|
676
|
-
|
|
677
|
-
return p0.
|
|
678
|
-
};
|
|
679
|
-
l.callableName = 'handleArrayAsList';
|
|
680
|
-
return l;
|
|
665
|
+
return constructCallableReference(function (p0_0) {
|
|
666
|
+
return p0.k30(p0_0);
|
|
667
|
+
}, 1, 0, 97, 'handleArrayAsList', [p0]);
|
|
681
668
|
}
|
|
682
669
|
function AbstractTermificator$handleSequenceAsList$ref(p0) {
|
|
683
|
-
|
|
684
|
-
return p0.
|
|
685
|
-
};
|
|
686
|
-
l.callableName = 'handleSequenceAsList';
|
|
687
|
-
return l;
|
|
670
|
+
return constructCallableReference(function (p0_0) {
|
|
671
|
+
return p0.l30(p0_0);
|
|
672
|
+
}, 1, 0, 98, 'handleSequenceAsList', [p0]);
|
|
688
673
|
}
|
|
689
674
|
function AbstractTermificator$handleIterableAsList$ref(p0) {
|
|
690
|
-
|
|
691
|
-
return p0.
|
|
692
|
-
};
|
|
693
|
-
l.callableName = 'handleIterableAsList';
|
|
694
|
-
return l;
|
|
695
|
-
}
|
|
696
|
-
function AbstractTermificator$handleCharAsString$ref_0(p0) {
|
|
697
|
-
var l = function (_this__u8e3s4) {
|
|
698
|
-
return p0.p2x(_this__u8e3s4.q1_1);
|
|
699
|
-
};
|
|
700
|
-
l.callableName = 'handleCharAsString';
|
|
701
|
-
return l;
|
|
702
|
-
}
|
|
703
|
-
function AbstractTermificator$handleBooleanAsTruth$ref_0(p0) {
|
|
704
|
-
var l = function (_this__u8e3s4) {
|
|
705
|
-
return p0.q2x(_this__u8e3s4);
|
|
706
|
-
};
|
|
707
|
-
l.callableName = 'handleBooleanAsTruth';
|
|
708
|
-
return l;
|
|
709
|
-
}
|
|
710
|
-
function AbstractTermificator$handleStringAsAtomOrVariable$ref_0(p0) {
|
|
711
|
-
var l = function (_this__u8e3s4) {
|
|
712
|
-
return p0.r2x(_this__u8e3s4);
|
|
713
|
-
};
|
|
714
|
-
l.callableName = 'handleStringAsAtomOrVariable';
|
|
715
|
-
return l;
|
|
716
|
-
}
|
|
717
|
-
function AbstractTermificator$handleBigIntegerAsInteger$ref_0(p0) {
|
|
718
|
-
var l = function (_this__u8e3s4) {
|
|
719
|
-
return p0.s2x(_this__u8e3s4);
|
|
720
|
-
};
|
|
721
|
-
l.callableName = 'handleBigIntegerAsInteger';
|
|
722
|
-
return l;
|
|
723
|
-
}
|
|
724
|
-
function AbstractTermificator$handleBigDecimalAsReal$ref_0(p0) {
|
|
725
|
-
var l = function (_this__u8e3s4) {
|
|
726
|
-
return p0.t2x(_this__u8e3s4);
|
|
727
|
-
};
|
|
728
|
-
l.callableName = 'handleBigDecimalAsReal';
|
|
729
|
-
return l;
|
|
730
|
-
}
|
|
731
|
-
function AbstractTermificator$handleNumberAsNumeric$ref_0(p0) {
|
|
732
|
-
var l = function (_this__u8e3s4) {
|
|
733
|
-
return p0.u2x(_this__u8e3s4);
|
|
734
|
-
};
|
|
735
|
-
l.callableName = 'handleNumberAsNumeric';
|
|
736
|
-
return l;
|
|
737
|
-
}
|
|
738
|
-
function AbstractTermificator$handleArrayAsList$ref_0(p0) {
|
|
739
|
-
var l = function (_this__u8e3s4) {
|
|
740
|
-
return p0.v2x(_this__u8e3s4);
|
|
741
|
-
};
|
|
742
|
-
l.callableName = 'handleArrayAsList';
|
|
743
|
-
return l;
|
|
744
|
-
}
|
|
745
|
-
function AbstractTermificator$handleSequenceAsList$ref_0(p0) {
|
|
746
|
-
var l = function (_this__u8e3s4) {
|
|
747
|
-
return p0.w2x(_this__u8e3s4);
|
|
748
|
-
};
|
|
749
|
-
l.callableName = 'handleSequenceAsList';
|
|
750
|
-
return l;
|
|
675
|
+
return constructCallableReference(function (p0_0) {
|
|
676
|
+
return p0.m30(p0_0);
|
|
677
|
+
}, 1, 0, 99, 'handleIterableAsList', [p0]);
|
|
751
678
|
}
|
|
752
679
|
function AbstractTermificator$handleKotlinListAsLogicList$ref(p0) {
|
|
753
|
-
|
|
754
|
-
return p0.
|
|
755
|
-
};
|
|
756
|
-
l.callableName = 'handleKotlinListAsLogicList';
|
|
757
|
-
return l;
|
|
680
|
+
return constructCallableReference(function (p0_0) {
|
|
681
|
+
return p0.n30(p0_0);
|
|
682
|
+
}, 1, 0, 100, 'handleKotlinListAsLogicList', [p0]);
|
|
758
683
|
}
|
|
759
684
|
function AbstractTermificator$handleSetAsBlock$ref(p0) {
|
|
760
|
-
|
|
761
|
-
return p0.
|
|
762
|
-
};
|
|
763
|
-
l.callableName = 'handleSetAsBlock';
|
|
764
|
-
return l;
|
|
685
|
+
return constructCallableReference(function (p0_0) {
|
|
686
|
+
return p0.o30(p0_0);
|
|
687
|
+
}, 1, 0, 101, 'handleSetAsBlock', [p0]);
|
|
765
688
|
}
|
|
766
689
|
function AbstractTermificator$handlePairAsTuple$ref(p0) {
|
|
767
|
-
|
|
768
|
-
return p0.
|
|
769
|
-
};
|
|
770
|
-
l.callableName = 'handlePairAsTuple';
|
|
771
|
-
return l;
|
|
690
|
+
return constructCallableReference(function (p0_0) {
|
|
691
|
+
return p0.p30(p0_0);
|
|
692
|
+
}, 1, 0, 102, 'handlePairAsTuple', [p0]);
|
|
772
693
|
}
|
|
773
694
|
function AbstractTermificator$handleTripletAsTuple$ref(p0) {
|
|
774
|
-
|
|
775
|
-
return p0.
|
|
776
|
-
};
|
|
777
|
-
l.callableName = 'handleTripletAsTuple';
|
|
778
|
-
return l;
|
|
695
|
+
return constructCallableReference(function (p0_0) {
|
|
696
|
+
return p0.q30(p0_0);
|
|
697
|
+
}, 1, 0, 103, 'handleTripletAsTuple', [p0]);
|
|
779
698
|
}
|
|
780
699
|
function AbstractTermificator$handleKeyValuePairAsStruct$ref(p0) {
|
|
781
|
-
|
|
782
|
-
return p0.
|
|
783
|
-
};
|
|
784
|
-
l.callableName = 'handleKeyValuePairAsStruct';
|
|
785
|
-
return l;
|
|
700
|
+
return constructCallableReference(function (p0_0) {
|
|
701
|
+
return p0.r30(p0_0);
|
|
702
|
+
}, 1, 0, 104, 'handleKeyValuePairAsStruct', [p0]);
|
|
786
703
|
}
|
|
787
704
|
function AbstractTermificator$handleMapAsBlock$ref(p0) {
|
|
788
|
-
|
|
789
|
-
return p0.
|
|
790
|
-
};
|
|
791
|
-
l.callableName = 'handleMapAsBlock';
|
|
792
|
-
return l;
|
|
793
|
-
}
|
|
794
|
-
function AbstractTermificator$handleIterableAsList$ref_0(p0) {
|
|
795
|
-
var l = function (_this__u8e3s4) {
|
|
796
|
-
return p0.x2x(_this__u8e3s4);
|
|
797
|
-
};
|
|
798
|
-
l.callableName = 'handleIterableAsList';
|
|
799
|
-
return l;
|
|
705
|
+
return constructCallableReference(function (p0_0) {
|
|
706
|
+
return p0.s30(p0_0);
|
|
707
|
+
}, 1, 0, 105, 'handleMapAsBlock', [p0]);
|
|
800
708
|
}
|
|
801
709
|
function AbstractTermificator(scope) {
|
|
802
|
-
this.
|
|
710
|
+
this.b30_1 = scope;
|
|
803
711
|
var tmp = this;
|
|
804
712
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
805
|
-
tmp.
|
|
713
|
+
tmp.c30_1 = LinkedHashMap_init_$Create$();
|
|
806
714
|
}
|
|
807
|
-
protoOf(AbstractTermificator).
|
|
808
|
-
return this.
|
|
715
|
+
protoOf(AbstractTermificator).a1i = function () {
|
|
716
|
+
return this.b30_1;
|
|
809
717
|
};
|
|
810
|
-
protoOf(AbstractTermificator).
|
|
811
|
-
var tmp0 = this.
|
|
718
|
+
protoOf(AbstractTermificator).t30 = function (type, conversion) {
|
|
719
|
+
var tmp0 = this.c30_1;
|
|
812
720
|
// Inline function 'kotlin.collections.set' call
|
|
813
721
|
var value = AbstractTermificator$handleType$lambda(conversion);
|
|
814
|
-
tmp0.
|
|
722
|
+
tmp0.l4(type, value);
|
|
815
723
|
};
|
|
816
|
-
protoOf(AbstractTermificator).
|
|
724
|
+
protoOf(AbstractTermificator).d30 = function (value) {
|
|
817
725
|
$l$block: {
|
|
818
726
|
// Inline function 'kotlin.requireNotNull' call
|
|
819
727
|
if (value == null) {
|
|
@@ -830,190 +738,190 @@
|
|
|
830
738
|
return value.toTerm();
|
|
831
739
|
}
|
|
832
740
|
var type = getKClassFromExpression(value);
|
|
833
|
-
var exactConverter = this.
|
|
741
|
+
var exactConverter = this.c30_1.i2(type);
|
|
834
742
|
if (!(exactConverter == null)) {
|
|
835
743
|
return exactConverter(value);
|
|
836
744
|
}
|
|
837
745
|
// Inline function 'kotlin.collections.iterator' call
|
|
838
|
-
var _iterator__ex2g4s = this.
|
|
839
|
-
while (_iterator__ex2g4s.
|
|
840
|
-
var _destruct__k2r9zo = _iterator__ex2g4s.
|
|
746
|
+
var _iterator__ex2g4s = this.c30_1.d1().n();
|
|
747
|
+
while (_iterator__ex2g4s.q()) {
|
|
748
|
+
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
841
749
|
// Inline function 'kotlin.collections.component1' call
|
|
842
|
-
var superType = _destruct__k2r9zo.
|
|
750
|
+
var superType = _destruct__k2r9zo.e2();
|
|
843
751
|
// Inline function 'kotlin.collections.component2' call
|
|
844
|
-
var converter = _destruct__k2r9zo.
|
|
845
|
-
if (superType.
|
|
752
|
+
var converter = _destruct__k2r9zo.f2();
|
|
753
|
+
if (superType.f9(value)) {
|
|
846
754
|
return converter(value);
|
|
847
755
|
}
|
|
848
756
|
}
|
|
849
757
|
raiseErrorConvertingTo(value, getKClass(Term));
|
|
850
758
|
};
|
|
851
759
|
protoOf(AbstractTermificator).toTerm = function (value) {
|
|
852
|
-
return this.
|
|
760
|
+
return this.d30(value);
|
|
853
761
|
};
|
|
854
|
-
protoOf(AbstractTermificator).
|
|
855
|
-
return this.
|
|
762
|
+
protoOf(AbstractTermificator).f30 = function (value) {
|
|
763
|
+
return this.a1i().truthOf(value);
|
|
856
764
|
};
|
|
857
|
-
protoOf(AbstractTermificator).
|
|
858
|
-
return this.
|
|
765
|
+
protoOf(AbstractTermificator).e30 = function (value) {
|
|
766
|
+
return this.d30(toString_0(value));
|
|
859
767
|
};
|
|
860
|
-
protoOf(AbstractTermificator).
|
|
768
|
+
protoOf(AbstractTermificator).g30 = function (value) {
|
|
861
769
|
var tmp;
|
|
862
770
|
// Inline function 'kotlin.text.matches' call
|
|
863
|
-
if (Companion_getInstance().
|
|
864
|
-
tmp = this.
|
|
771
|
+
if (Companion_getInstance().l14_1.ab(value)) {
|
|
772
|
+
tmp = this.a1i().varOf(value);
|
|
865
773
|
} else {
|
|
866
|
-
tmp = this.
|
|
774
|
+
tmp = this.a1i().atomOf(value);
|
|
867
775
|
}
|
|
868
776
|
return tmp;
|
|
869
777
|
};
|
|
870
|
-
protoOf(AbstractTermificator).
|
|
871
|
-
return this.
|
|
778
|
+
protoOf(AbstractTermificator).h30 = function (value) {
|
|
779
|
+
return this.a1i().intOfBigInteger(value);
|
|
872
780
|
};
|
|
873
|
-
protoOf(AbstractTermificator).
|
|
874
|
-
return this.
|
|
781
|
+
protoOf(AbstractTermificator).i30 = function (value) {
|
|
782
|
+
return this.a1i().realOfBigDecimal(value);
|
|
875
783
|
};
|
|
876
|
-
protoOf(AbstractTermificator).
|
|
877
|
-
var tmp = this.
|
|
784
|
+
protoOf(AbstractTermificator).k30 = function (value) {
|
|
785
|
+
var tmp = this.a1i();
|
|
878
786
|
// Inline function 'kotlin.collections.map' call
|
|
879
787
|
var this_0 = assertItemsAreNotNull(asIterable(value));
|
|
880
788
|
// Inline function 'kotlin.collections.mapTo' call
|
|
881
789
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
882
|
-
var _iterator__ex2g4s = this_0.
|
|
883
|
-
while (_iterator__ex2g4s.
|
|
884
|
-
var item = _iterator__ex2g4s.
|
|
885
|
-
var tmp$ret$
|
|
886
|
-
destination.
|
|
790
|
+
var _iterator__ex2g4s = this_0.n();
|
|
791
|
+
while (_iterator__ex2g4s.q()) {
|
|
792
|
+
var item = _iterator__ex2g4s.r();
|
|
793
|
+
var tmp$ret$2 = this.d30(item);
|
|
794
|
+
destination.k(tmp$ret$2);
|
|
887
795
|
}
|
|
888
796
|
return tmp.logicListOfIterable(destination);
|
|
889
797
|
};
|
|
890
|
-
protoOf(AbstractTermificator).
|
|
891
|
-
var tmp = this.
|
|
798
|
+
protoOf(AbstractTermificator).l30 = function (value) {
|
|
799
|
+
var tmp = this.a1i();
|
|
892
800
|
var tmp_0 = assertItemsAreNotNull_0(value);
|
|
893
801
|
return tmp.logicListOfSequence(map(tmp_0, AbstractTermificator$handleSequenceAsList$lambda(this)));
|
|
894
802
|
};
|
|
895
|
-
protoOf(AbstractTermificator).
|
|
896
|
-
var tmp = this.
|
|
803
|
+
protoOf(AbstractTermificator).m30 = function (value) {
|
|
804
|
+
var tmp = this.a1i();
|
|
897
805
|
// Inline function 'kotlin.collections.map' call
|
|
898
806
|
var this_0 = assertItemsAreNotNull(value);
|
|
899
807
|
// Inline function 'kotlin.collections.mapTo' call
|
|
900
808
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
901
|
-
var _iterator__ex2g4s = this_0.
|
|
902
|
-
while (_iterator__ex2g4s.
|
|
903
|
-
var item = _iterator__ex2g4s.
|
|
904
|
-
var tmp$ret$
|
|
905
|
-
destination.
|
|
809
|
+
var _iterator__ex2g4s = this_0.n();
|
|
810
|
+
while (_iterator__ex2g4s.q()) {
|
|
811
|
+
var item = _iterator__ex2g4s.r();
|
|
812
|
+
var tmp$ret$2 = this.d30(item);
|
|
813
|
+
destination.k(tmp$ret$2);
|
|
906
814
|
}
|
|
907
815
|
return tmp.logicListOfIterable(destination);
|
|
908
816
|
};
|
|
909
|
-
protoOf(AbstractTermificator).
|
|
910
|
-
var tmp = this.
|
|
817
|
+
protoOf(AbstractTermificator).n30 = function (value) {
|
|
818
|
+
var tmp = this.a1i();
|
|
911
819
|
// Inline function 'kotlin.collections.map' call
|
|
912
820
|
var this_0 = assertItemsAreNotNull_1(value);
|
|
913
821
|
// Inline function 'kotlin.collections.mapTo' call
|
|
914
822
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
915
|
-
var _iterator__ex2g4s = this_0.
|
|
916
|
-
while (_iterator__ex2g4s.
|
|
917
|
-
var item = _iterator__ex2g4s.
|
|
918
|
-
var tmp$ret$
|
|
919
|
-
destination.
|
|
823
|
+
var _iterator__ex2g4s = this_0.n();
|
|
824
|
+
while (_iterator__ex2g4s.q()) {
|
|
825
|
+
var item = _iterator__ex2g4s.r();
|
|
826
|
+
var tmp$ret$2 = this.d30(item);
|
|
827
|
+
destination.k(tmp$ret$2);
|
|
920
828
|
}
|
|
921
829
|
return tmp.logicListOfIterable(destination);
|
|
922
830
|
};
|
|
923
|
-
protoOf(AbstractTermificator).
|
|
924
|
-
var tmp = this.
|
|
831
|
+
protoOf(AbstractTermificator).o30 = function (value) {
|
|
832
|
+
var tmp = this.a1i();
|
|
925
833
|
// Inline function 'kotlin.collections.map' call
|
|
926
834
|
var this_0 = assertItemsAreNotNull(value);
|
|
927
835
|
// Inline function 'kotlin.collections.mapTo' call
|
|
928
836
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
929
|
-
var _iterator__ex2g4s = this_0.
|
|
930
|
-
while (_iterator__ex2g4s.
|
|
931
|
-
var item = _iterator__ex2g4s.
|
|
932
|
-
var tmp$ret$
|
|
933
|
-
destination.
|
|
837
|
+
var _iterator__ex2g4s = this_0.n();
|
|
838
|
+
while (_iterator__ex2g4s.q()) {
|
|
839
|
+
var item = _iterator__ex2g4s.r();
|
|
840
|
+
var tmp$ret$2 = this.d30(item);
|
|
841
|
+
destination.k(tmp$ret$2);
|
|
934
842
|
}
|
|
935
843
|
return tmp.blockOfIterable(destination);
|
|
936
844
|
};
|
|
937
|
-
protoOf(AbstractTermificator).
|
|
938
|
-
return this.
|
|
845
|
+
protoOf(AbstractTermificator).p30 = function (value) {
|
|
846
|
+
return this.a1i().tupleOf([this.d30(value.first), this.d30(value.second)]);
|
|
939
847
|
};
|
|
940
|
-
protoOf(AbstractTermificator).
|
|
941
|
-
return this.
|
|
848
|
+
protoOf(AbstractTermificator).q30 = function (value) {
|
|
849
|
+
return this.a1i().tupleOf([this.d30(value.si_1), this.d30(value.ti_1), this.d30(value.ui_1)]);
|
|
942
850
|
};
|
|
943
|
-
protoOf(AbstractTermificator).
|
|
944
|
-
return this.
|
|
851
|
+
protoOf(AbstractTermificator).r30 = function (value) {
|
|
852
|
+
return this.a1i().structOf(':', [this.d30(value.e2()), this.d30(value.f2())]);
|
|
945
853
|
};
|
|
946
|
-
protoOf(AbstractTermificator).
|
|
947
|
-
var tmp = this.
|
|
854
|
+
protoOf(AbstractTermificator).s30 = function (value) {
|
|
855
|
+
var tmp = this.a1i();
|
|
948
856
|
// Inline function 'kotlin.collections.map' call
|
|
949
|
-
var this_0 = assertItemsAreNotNull(value.
|
|
857
|
+
var this_0 = assertItemsAreNotNull(value.d1());
|
|
950
858
|
// Inline function 'kotlin.collections.mapTo' call
|
|
951
859
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
952
|
-
var _iterator__ex2g4s = this_0.
|
|
953
|
-
while (_iterator__ex2g4s.
|
|
954
|
-
var item = _iterator__ex2g4s.
|
|
955
|
-
var tmp$ret$
|
|
956
|
-
destination.
|
|
860
|
+
var _iterator__ex2g4s = this_0.n();
|
|
861
|
+
while (_iterator__ex2g4s.q()) {
|
|
862
|
+
var item = _iterator__ex2g4s.r();
|
|
863
|
+
var tmp$ret$2 = this.r30(item);
|
|
864
|
+
destination.k(tmp$ret$2);
|
|
957
865
|
}
|
|
958
866
|
return tmp.blockOfIterable(destination);
|
|
959
867
|
};
|
|
960
|
-
protoOf(AbstractTermificator).
|
|
868
|
+
protoOf(AbstractTermificator).u30 = function () {
|
|
961
869
|
var tmp = getKClass(Char);
|
|
962
|
-
this.
|
|
963
|
-
var tmp_0 = PrimitiveClasses_getInstance().
|
|
964
|
-
this.
|
|
965
|
-
var tmp_1 = PrimitiveClasses_getInstance().
|
|
966
|
-
this.
|
|
870
|
+
this.t30(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
871
|
+
var tmp_0 = PrimitiveClasses_getInstance().q9();
|
|
872
|
+
this.t30(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
873
|
+
var tmp_1 = PrimitiveClasses_getInstance().y9();
|
|
874
|
+
this.t30(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
967
875
|
var tmp_2 = getKClass(BigInteger);
|
|
968
|
-
this.
|
|
876
|
+
this.t30(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
969
877
|
var tmp_3 = getKClass(BigDecimal);
|
|
970
|
-
this.
|
|
971
|
-
var tmp_4 = PrimitiveClasses_getInstance().
|
|
972
|
-
this.
|
|
973
|
-
var tmp_5 = PrimitiveClasses_getInstance().
|
|
974
|
-
this.
|
|
878
|
+
this.t30(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
879
|
+
var tmp_4 = PrimitiveClasses_getInstance().o9();
|
|
880
|
+
this.t30(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
881
|
+
var tmp_5 = PrimitiveClasses_getInstance().x9();
|
|
882
|
+
this.t30(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
975
883
|
var tmp_6 = getKClass(Sequence);
|
|
976
|
-
this.
|
|
884
|
+
this.t30(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
977
885
|
var tmp_7 = getKClass(Iterable);
|
|
978
|
-
this.
|
|
886
|
+
this.t30(tmp_7, AbstractTermificator$handleIterableAsList$ref(this));
|
|
979
887
|
};
|
|
980
|
-
protoOf(AbstractTermificator).
|
|
888
|
+
protoOf(AbstractTermificator).v30 = function () {
|
|
981
889
|
var tmp = getKClass(Char);
|
|
982
|
-
this.
|
|
983
|
-
var tmp_0 = PrimitiveClasses_getInstance().
|
|
984
|
-
this.
|
|
985
|
-
var tmp_1 = PrimitiveClasses_getInstance().
|
|
986
|
-
this.
|
|
890
|
+
this.t30(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
891
|
+
var tmp_0 = PrimitiveClasses_getInstance().q9();
|
|
892
|
+
this.t30(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
893
|
+
var tmp_1 = PrimitiveClasses_getInstance().y9();
|
|
894
|
+
this.t30(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
987
895
|
var tmp_2 = getKClass(BigInteger);
|
|
988
|
-
this.
|
|
896
|
+
this.t30(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
989
897
|
var tmp_3 = getKClass(BigDecimal);
|
|
990
|
-
this.
|
|
991
|
-
var tmp_4 = PrimitiveClasses_getInstance().
|
|
992
|
-
this.
|
|
993
|
-
var tmp_5 = PrimitiveClasses_getInstance().
|
|
994
|
-
this.
|
|
898
|
+
this.t30(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
899
|
+
var tmp_4 = PrimitiveClasses_getInstance().o9();
|
|
900
|
+
this.t30(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
901
|
+
var tmp_5 = PrimitiveClasses_getInstance().x9();
|
|
902
|
+
this.t30(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
995
903
|
var tmp_6 = getKClass(Sequence);
|
|
996
|
-
this.
|
|
904
|
+
this.t30(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
997
905
|
var tmp_7 = getKClass(KtList);
|
|
998
|
-
this.
|
|
906
|
+
this.t30(tmp_7, AbstractTermificator$handleKotlinListAsLogicList$ref(this));
|
|
999
907
|
var tmp_8 = getKClass(KtSet);
|
|
1000
|
-
this.
|
|
908
|
+
this.t30(tmp_8, AbstractTermificator$handleSetAsBlock$ref(this));
|
|
1001
909
|
var tmp_9 = getKClass(Pair);
|
|
1002
|
-
this.
|
|
910
|
+
this.t30(tmp_9, AbstractTermificator$handlePairAsTuple$ref(this));
|
|
1003
911
|
var tmp_10 = getKClass(Triple);
|
|
1004
|
-
this.
|
|
912
|
+
this.t30(tmp_10, AbstractTermificator$handleTripletAsTuple$ref(this));
|
|
1005
913
|
var tmp_11 = getKClass(Entry);
|
|
1006
|
-
this.
|
|
914
|
+
this.t30(tmp_11, AbstractTermificator$handleKeyValuePairAsStruct$ref(this));
|
|
1007
915
|
var tmp_12 = getKClass(KtMap);
|
|
1008
|
-
this.
|
|
916
|
+
this.t30(tmp_12, AbstractTermificator$handleMapAsBlock$ref(this));
|
|
1009
917
|
var tmp_13 = getKClass(Iterable);
|
|
1010
|
-
this.
|
|
918
|
+
this.t30(tmp_13, AbstractTermificator$handleIterableAsList$ref(this));
|
|
1011
919
|
};
|
|
1012
|
-
protoOf(AbstractTermificator).
|
|
920
|
+
protoOf(AbstractTermificator).w30 = function (novel) {
|
|
1013
921
|
if (novel) {
|
|
1014
|
-
this.
|
|
922
|
+
this.v30();
|
|
1015
923
|
} else {
|
|
1016
|
-
this.
|
|
924
|
+
this.u30();
|
|
1017
925
|
}
|
|
1018
926
|
};
|
|
1019
927
|
function BaseLogicProgrammingScope() {
|
|
@@ -1029,244 +937,244 @@
|
|
|
1029
937
|
protoOf(Companion).empty = function () {
|
|
1030
938
|
return this.of();
|
|
1031
939
|
};
|
|
1032
|
-
protoOf(Companion).
|
|
1033
|
-
return new LogicProgrammingScopeImpl(scope, termificator.
|
|
940
|
+
protoOf(Companion).y30 = function (scope, termificator, variablesProvider) {
|
|
941
|
+
return new LogicProgrammingScopeImpl(scope, termificator.a1i() === scope ? termificator : termificator.b1i(scope), variablesProvider.a1i() === scope ? variablesProvider : variablesProvider.b1i(scope));
|
|
1034
942
|
};
|
|
1035
943
|
protoOf(Companion).of = function (scope, termificator, variablesProvider, $super) {
|
|
1036
944
|
scope = scope === VOID ? Companion_instance.empty() : scope;
|
|
1037
945
|
termificator = termificator === VOID ? Companion_instance_3.default(scope) : termificator;
|
|
1038
|
-
variablesProvider = variablesProvider === VOID ? Companion_instance_0.
|
|
1039
|
-
return $super === VOID ? this.
|
|
946
|
+
variablesProvider = variablesProvider === VOID ? Companion_instance_0.q14(scope) : variablesProvider;
|
|
947
|
+
return $super === VOID ? this.y30(scope, termificator, variablesProvider) : $super.y30.call(this, scope, termificator, variablesProvider);
|
|
1040
948
|
};
|
|
1041
949
|
var Companion_instance_2;
|
|
1042
950
|
function Companion_getInstance_1() {
|
|
1043
951
|
return Companion_instance_2;
|
|
1044
952
|
}
|
|
1045
953
|
function LogicProgrammingScopeImpl(scope, termificator, variablesProvider) {
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
954
|
+
this.z30_1 = scope;
|
|
955
|
+
this.a31_1 = termificator;
|
|
956
|
+
this.b31_1 = variablesProvider;
|
|
1049
957
|
// Inline function 'kotlin.require' call
|
|
1050
|
-
if (!(this.
|
|
958
|
+
if (!(this.z30_1 === this.b31_1.a1i() && this.z30_1 === this.a31_1.a1i())) {
|
|
1051
959
|
var message = 'The provided Scope should be the same object for both Termificator and VariablesProvider';
|
|
1052
960
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1053
961
|
}
|
|
1054
962
|
}
|
|
1055
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1056
|
-
return this.
|
|
963
|
+
protoOf(LogicProgrammingScopeImpl).a1i = function () {
|
|
964
|
+
return this.z30_1;
|
|
1057
965
|
};
|
|
1058
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1059
|
-
return this.
|
|
966
|
+
protoOf(LogicProgrammingScopeImpl).x30 = function () {
|
|
967
|
+
return this.a31_1;
|
|
1060
968
|
};
|
|
1061
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1062
|
-
return new LogicProgrammingScopeImpl(scope, this.
|
|
969
|
+
protoOf(LogicProgrammingScopeImpl).b1i = function (scope) {
|
|
970
|
+
return new LogicProgrammingScopeImpl(scope, this.a31_1.b1i(scope), this.b31_1.b1i(scope));
|
|
1063
971
|
};
|
|
1064
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1065
|
-
return this.
|
|
972
|
+
protoOf(LogicProgrammingScopeImpl).c31 = function () {
|
|
973
|
+
return this.b1i(Companion_instance.empty());
|
|
1066
974
|
};
|
|
1067
975
|
protoOf(LogicProgrammingScopeImpl).newScope = function () {
|
|
1068
|
-
return this.
|
|
976
|
+
return this.c31();
|
|
1069
977
|
};
|
|
1070
978
|
protoOf(LogicProgrammingScopeImpl).structOf = function (functor, args) {
|
|
1071
|
-
return this.
|
|
979
|
+
return this.b31_1.structOf(functor, args);
|
|
1072
980
|
};
|
|
1073
981
|
protoOf(LogicProgrammingScopeImpl).structOfSequence = function (functor, args) {
|
|
1074
|
-
return this.
|
|
982
|
+
return this.b31_1.structOfSequence(functor, args);
|
|
1075
983
|
};
|
|
1076
984
|
protoOf(LogicProgrammingScopeImpl).structOfIterable = function (functor, args) {
|
|
1077
|
-
return this.
|
|
985
|
+
return this.b31_1.structOfIterable(functor, args);
|
|
1078
986
|
};
|
|
1079
987
|
protoOf(LogicProgrammingScopeImpl).structOfList = function (functor, args) {
|
|
1080
|
-
return this.
|
|
988
|
+
return this.b31_1.structOfList(functor, args);
|
|
1081
989
|
};
|
|
1082
990
|
protoOf(LogicProgrammingScopeImpl).tupleOf = function (terms) {
|
|
1083
|
-
return this.
|
|
991
|
+
return this.b31_1.tupleOf(terms);
|
|
1084
992
|
};
|
|
1085
993
|
protoOf(LogicProgrammingScopeImpl).tupleOfIterable = function (terms) {
|
|
1086
|
-
return this.
|
|
994
|
+
return this.b31_1.tupleOfIterable(terms);
|
|
1087
995
|
};
|
|
1088
996
|
protoOf(LogicProgrammingScopeImpl).tupleOfSequence = function (terms) {
|
|
1089
|
-
return this.
|
|
997
|
+
return this.b31_1.tupleOfSequence(terms);
|
|
1090
998
|
};
|
|
1091
999
|
protoOf(LogicProgrammingScopeImpl).logicListOf = function (terms) {
|
|
1092
|
-
return this.
|
|
1000
|
+
return this.b31_1.logicListOf(terms);
|
|
1093
1001
|
};
|
|
1094
1002
|
protoOf(LogicProgrammingScopeImpl).logicListOfIterable = function (terms) {
|
|
1095
|
-
return this.
|
|
1003
|
+
return this.b31_1.logicListOfIterable(terms);
|
|
1096
1004
|
};
|
|
1097
1005
|
protoOf(LogicProgrammingScopeImpl).logicListOfSequence = function (terms) {
|
|
1098
|
-
return this.
|
|
1006
|
+
return this.b31_1.logicListOfSequence(terms);
|
|
1099
1007
|
};
|
|
1100
1008
|
protoOf(LogicProgrammingScopeImpl).blockOf = function (terms) {
|
|
1101
|
-
return this.
|
|
1009
|
+
return this.b31_1.blockOf(terms);
|
|
1102
1010
|
};
|
|
1103
1011
|
protoOf(LogicProgrammingScopeImpl).blockOfIterable = function (terms) {
|
|
1104
|
-
return this.
|
|
1012
|
+
return this.b31_1.blockOfIterable(terms);
|
|
1105
1013
|
};
|
|
1106
1014
|
protoOf(LogicProgrammingScopeImpl).blockOfSequence = function (terms) {
|
|
1107
|
-
return this.
|
|
1015
|
+
return this.b31_1.blockOfSequence(terms);
|
|
1108
1016
|
};
|
|
1109
1017
|
protoOf(LogicProgrammingScopeImpl).factOf = function (head) {
|
|
1110
|
-
return this.
|
|
1018
|
+
return this.b31_1.factOf(head);
|
|
1111
1019
|
};
|
|
1112
1020
|
protoOf(LogicProgrammingScopeImpl).consOf = function (head, tail) {
|
|
1113
|
-
return this.
|
|
1021
|
+
return this.b31_1.consOf(head, tail);
|
|
1114
1022
|
};
|
|
1115
1023
|
protoOf(LogicProgrammingScopeImpl).directiveOf = function (body1, body) {
|
|
1116
|
-
return this.
|
|
1024
|
+
return this.b31_1.directiveOf(body1, body);
|
|
1117
1025
|
};
|
|
1118
1026
|
protoOf(LogicProgrammingScopeImpl).containsVar = function (variable) {
|
|
1119
|
-
return this.
|
|
1027
|
+
return this.b31_1.containsVar(variable);
|
|
1120
1028
|
};
|
|
1121
1029
|
protoOf(LogicProgrammingScopeImpl).contains = function (variable) {
|
|
1122
|
-
return this.
|
|
1030
|
+
return this.b31_1.contains(variable);
|
|
1123
1031
|
};
|
|
1124
1032
|
protoOf(LogicProgrammingScopeImpl).get = function (variable) {
|
|
1125
|
-
return this.
|
|
1033
|
+
return this.b31_1.get(variable);
|
|
1126
1034
|
};
|
|
1127
1035
|
protoOf(LogicProgrammingScopeImpl).where = function (lambda) {
|
|
1128
|
-
return this.
|
|
1036
|
+
return this.b31_1.where(lambda);
|
|
1129
1037
|
};
|
|
1130
1038
|
protoOf(LogicProgrammingScopeImpl).with = function (lambda) {
|
|
1131
|
-
return this.
|
|
1039
|
+
return this.b31_1.with(lambda);
|
|
1132
1040
|
};
|
|
1133
1041
|
protoOf(LogicProgrammingScopeImpl).varOf = function (name) {
|
|
1134
|
-
return this.
|
|
1042
|
+
return this.b31_1.varOf(name);
|
|
1135
1043
|
};
|
|
1136
1044
|
protoOf(LogicProgrammingScopeImpl).varOfChar = function (name) {
|
|
1137
|
-
return this.
|
|
1045
|
+
return this.b31_1.varOfChar(name);
|
|
1138
1046
|
};
|
|
1139
1047
|
protoOf(LogicProgrammingScopeImpl).atomOf = function (value) {
|
|
1140
|
-
return this.
|
|
1048
|
+
return this.b31_1.atomOf(value);
|
|
1141
1049
|
};
|
|
1142
1050
|
protoOf(LogicProgrammingScopeImpl).atomOfChar = function (value) {
|
|
1143
|
-
return this.
|
|
1051
|
+
return this.b31_1.atomOfChar(value);
|
|
1144
1052
|
};
|
|
1145
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1146
|
-
return this.
|
|
1053
|
+
protoOf(LogicProgrammingScopeImpl).e11 = function (terms, last) {
|
|
1054
|
+
return this.b31_1.e11(terms, last);
|
|
1147
1055
|
};
|
|
1148
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1149
|
-
return this.
|
|
1056
|
+
protoOf(LogicProgrammingScopeImpl).f11 = function (terms, last) {
|
|
1057
|
+
return this.b31_1.f11(terms, last);
|
|
1150
1058
|
};
|
|
1151
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1152
|
-
return this.
|
|
1059
|
+
protoOf(LogicProgrammingScopeImpl).g11 = function (terms, last) {
|
|
1060
|
+
return this.b31_1.g11(terms, last);
|
|
1153
1061
|
};
|
|
1154
1062
|
protoOf(LogicProgrammingScopeImpl).ruleOf = function (head, body1, body) {
|
|
1155
|
-
return this.
|
|
1063
|
+
return this.b31_1.ruleOf(head, body1, body);
|
|
1156
1064
|
};
|
|
1157
1065
|
protoOf(LogicProgrammingScopeImpl).clauseOf = function (head, body) {
|
|
1158
|
-
return this.
|
|
1066
|
+
return this.b31_1.clauseOf(head, body);
|
|
1159
1067
|
};
|
|
1160
1068
|
protoOf(LogicProgrammingScopeImpl).indicatorOf = function (name, arity) {
|
|
1161
|
-
return this.
|
|
1069
|
+
return this.b31_1.indicatorOf(name, arity);
|
|
1162
1070
|
};
|
|
1163
1071
|
protoOf(LogicProgrammingScopeImpl).indicatorOfStringInt = function (name, arity) {
|
|
1164
|
-
return this.
|
|
1072
|
+
return this.b31_1.indicatorOfStringInt(name, arity);
|
|
1165
1073
|
};
|
|
1166
1074
|
protoOf(LogicProgrammingScopeImpl).anonymous = function () {
|
|
1167
|
-
return this.
|
|
1075
|
+
return this.b31_1.anonymous();
|
|
1168
1076
|
};
|
|
1169
1077
|
protoOf(LogicProgrammingScopeImpl).whatever = function () {
|
|
1170
|
-
return this.
|
|
1078
|
+
return this.b31_1.whatever();
|
|
1171
1079
|
};
|
|
1172
1080
|
protoOf(LogicProgrammingScopeImpl).numOfBigDecimal = function (value) {
|
|
1173
|
-
return this.
|
|
1081
|
+
return this.b31_1.numOfBigDecimal(value);
|
|
1174
1082
|
};
|
|
1175
1083
|
protoOf(LogicProgrammingScopeImpl).numOfDouble = function (value) {
|
|
1176
|
-
return this.
|
|
1084
|
+
return this.b31_1.numOfDouble(value);
|
|
1177
1085
|
};
|
|
1178
1086
|
protoOf(LogicProgrammingScopeImpl).numOfFloat = function (value) {
|
|
1179
|
-
return this.
|
|
1087
|
+
return this.b31_1.numOfFloat(value);
|
|
1180
1088
|
};
|
|
1181
1089
|
protoOf(LogicProgrammingScopeImpl).numOfBigInteger = function (value) {
|
|
1182
|
-
return this.
|
|
1090
|
+
return this.b31_1.numOfBigInteger(value);
|
|
1183
1091
|
};
|
|
1184
1092
|
protoOf(LogicProgrammingScopeImpl).numOfInt = function (value) {
|
|
1185
|
-
return this.
|
|
1093
|
+
return this.b31_1.numOfInt(value);
|
|
1186
1094
|
};
|
|
1187
1095
|
protoOf(LogicProgrammingScopeImpl).numOfLong = function (value) {
|
|
1188
|
-
return this.
|
|
1096
|
+
return this.b31_1.numOfLong(value);
|
|
1189
1097
|
};
|
|
1190
1098
|
protoOf(LogicProgrammingScopeImpl).numOfShort = function (value) {
|
|
1191
|
-
return this.
|
|
1099
|
+
return this.b31_1.numOfShort(value);
|
|
1192
1100
|
};
|
|
1193
1101
|
protoOf(LogicProgrammingScopeImpl).numOfByte = function (value) {
|
|
1194
|
-
return this.
|
|
1102
|
+
return this.b31_1.numOfByte(value);
|
|
1195
1103
|
};
|
|
1196
1104
|
protoOf(LogicProgrammingScopeImpl).parseNum = function (value) {
|
|
1197
|
-
return this.
|
|
1105
|
+
return this.b31_1.parseNum(value);
|
|
1198
1106
|
};
|
|
1199
1107
|
protoOf(LogicProgrammingScopeImpl).numOf = function (value) {
|
|
1200
|
-
return this.
|
|
1108
|
+
return this.b31_1.numOf(value);
|
|
1201
1109
|
};
|
|
1202
1110
|
protoOf(LogicProgrammingScopeImpl).intOfBigInteger = function (value) {
|
|
1203
|
-
return this.
|
|
1111
|
+
return this.b31_1.intOfBigInteger(value);
|
|
1204
1112
|
};
|
|
1205
1113
|
protoOf(LogicProgrammingScopeImpl).intOf = function (value) {
|
|
1206
|
-
return this.
|
|
1114
|
+
return this.b31_1.intOf(value);
|
|
1207
1115
|
};
|
|
1208
1116
|
protoOf(LogicProgrammingScopeImpl).intOfLong = function (value) {
|
|
1209
|
-
return this.
|
|
1117
|
+
return this.b31_1.intOfLong(value);
|
|
1210
1118
|
};
|
|
1211
1119
|
protoOf(LogicProgrammingScopeImpl).intOfShort = function (value) {
|
|
1212
|
-
return this.
|
|
1120
|
+
return this.b31_1.intOfShort(value);
|
|
1213
1121
|
};
|
|
1214
1122
|
protoOf(LogicProgrammingScopeImpl).intOfByte = function (value) {
|
|
1215
|
-
return this.
|
|
1123
|
+
return this.b31_1.intOfByte(value);
|
|
1216
1124
|
};
|
|
1217
1125
|
protoOf(LogicProgrammingScopeImpl).parseInt = function (value) {
|
|
1218
|
-
return this.
|
|
1126
|
+
return this.b31_1.parseInt(value);
|
|
1219
1127
|
};
|
|
1220
1128
|
protoOf(LogicProgrammingScopeImpl).parseIntRadix = function (value, radix) {
|
|
1221
|
-
return this.
|
|
1129
|
+
return this.b31_1.parseIntRadix(value, radix);
|
|
1222
1130
|
};
|
|
1223
1131
|
protoOf(LogicProgrammingScopeImpl).realOfBigDecimal = function (value) {
|
|
1224
|
-
return this.
|
|
1132
|
+
return this.b31_1.realOfBigDecimal(value);
|
|
1225
1133
|
};
|
|
1226
1134
|
protoOf(LogicProgrammingScopeImpl).realOf = function (value) {
|
|
1227
|
-
return this.
|
|
1135
|
+
return this.b31_1.realOf(value);
|
|
1228
1136
|
};
|
|
1229
1137
|
protoOf(LogicProgrammingScopeImpl).realOfFloat = function (value) {
|
|
1230
|
-
return this.
|
|
1138
|
+
return this.b31_1.realOfFloat(value);
|
|
1231
1139
|
};
|
|
1232
1140
|
protoOf(LogicProgrammingScopeImpl).parseReal = function (value) {
|
|
1233
|
-
return this.
|
|
1141
|
+
return this.b31_1.parseReal(value);
|
|
1234
1142
|
};
|
|
1235
1143
|
protoOf(LogicProgrammingScopeImpl).truthOf = function (value) {
|
|
1236
|
-
return this.
|
|
1144
|
+
return this.b31_1.truthOf(value);
|
|
1237
1145
|
};
|
|
1238
1146
|
protoOf(LogicProgrammingScopeImpl).unifierOf = function (assignments) {
|
|
1239
|
-
return this.
|
|
1147
|
+
return this.b31_1.unifierOf(assignments);
|
|
1240
1148
|
};
|
|
1241
1149
|
protoOf(LogicProgrammingScopeImpl).unifierOfIterable = function (assignments) {
|
|
1242
|
-
return this.
|
|
1150
|
+
return this.b31_1.unifierOfIterable(assignments);
|
|
1243
1151
|
};
|
|
1244
1152
|
protoOf(LogicProgrammingScopeImpl).unifierOfSequence = function (assignments) {
|
|
1245
|
-
return this.
|
|
1153
|
+
return this.b31_1.unifierOfSequence(assignments);
|
|
1246
1154
|
};
|
|
1247
1155
|
protoOf(LogicProgrammingScopeImpl).substitutionOf = function (assignments) {
|
|
1248
|
-
return this.
|
|
1156
|
+
return this.b31_1.substitutionOf(assignments);
|
|
1249
1157
|
};
|
|
1250
1158
|
protoOf(LogicProgrammingScopeImpl).substitutionOfIterable = function (assignments) {
|
|
1251
|
-
return this.
|
|
1159
|
+
return this.b31_1.substitutionOfIterable(assignments);
|
|
1252
1160
|
};
|
|
1253
1161
|
protoOf(LogicProgrammingScopeImpl).substitutionOfSequence = function (assignments) {
|
|
1254
|
-
return this.
|
|
1162
|
+
return this.b31_1.substitutionOfSequence(assignments);
|
|
1255
1163
|
};
|
|
1256
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1257
|
-
return this.
|
|
1164
|
+
protoOf(LogicProgrammingScopeImpl).c11 = function () {
|
|
1165
|
+
return this.b31_1.c11();
|
|
1258
1166
|
};
|
|
1259
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1260
|
-
return this.
|
|
1167
|
+
protoOf(LogicProgrammingScopeImpl).d11 = function () {
|
|
1168
|
+
return this.b31_1.d11();
|
|
1261
1169
|
};
|
|
1262
1170
|
protoOf(LogicProgrammingScopeImpl).getValue = function (thisRef, property) {
|
|
1263
|
-
return this.
|
|
1171
|
+
return this.b31_1.getValue(thisRef, property);
|
|
1264
1172
|
};
|
|
1265
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1266
|
-
return this.
|
|
1173
|
+
protoOf(LogicProgrammingScopeImpl).d1i = function () {
|
|
1174
|
+
return this.b31_1.d1i();
|
|
1267
1175
|
};
|
|
1268
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1269
|
-
return this.
|
|
1176
|
+
protoOf(LogicProgrammingScopeImpl).e1i = function () {
|
|
1177
|
+
return this.b31_1.e1i();
|
|
1270
1178
|
};
|
|
1271
1179
|
function LogicProgrammingScopeWithOperators() {
|
|
1272
1180
|
}
|
|
@@ -1280,16 +1188,14 @@
|
|
|
1280
1188
|
};
|
|
1281
1189
|
}
|
|
1282
1190
|
function MinimalLogicProgrammingScope$directiveOf$ref(p0) {
|
|
1283
|
-
return function (
|
|
1284
|
-
return p0.directiveOf(
|
|
1285
|
-
};
|
|
1191
|
+
return constructCallableReference(function (p0_0) {
|
|
1192
|
+
return p0.directiveOf(p0_0, []);
|
|
1193
|
+
}, 1, 0, 106, VOID, [p0]);
|
|
1286
1194
|
}
|
|
1287
1195
|
function MinimalLogicProgrammingScope$factOf$ref(p0) {
|
|
1288
|
-
|
|
1289
|
-
return p0.factOf(
|
|
1290
|
-
};
|
|
1291
|
-
l.callableName = 'factOf';
|
|
1292
|
-
return l;
|
|
1196
|
+
return constructCallableReference(function (p0_0) {
|
|
1197
|
+
return p0.factOf(p0_0);
|
|
1198
|
+
}, 1, 0, 107, 'factOf', [p0]);
|
|
1293
1199
|
}
|
|
1294
1200
|
function MinimalLogicProgrammingScope() {
|
|
1295
1201
|
}
|
|
@@ -1310,21 +1216,21 @@
|
|
|
1310
1216
|
function DefaultTermificator(scope, novel) {
|
|
1311
1217
|
novel = novel === VOID ? false : novel;
|
|
1312
1218
|
AbstractTermificator.call(this, scope);
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1219
|
+
this.g31_1 = novel;
|
|
1220
|
+
this.w30(this.g31_1);
|
|
1221
|
+
this.h31_1 = new NumberTypeTester();
|
|
1316
1222
|
}
|
|
1317
|
-
protoOf(DefaultTermificator).
|
|
1223
|
+
protoOf(DefaultTermificator).j30 = function (value) {
|
|
1318
1224
|
var tmp;
|
|
1319
|
-
if (this.
|
|
1320
|
-
tmp = this.
|
|
1225
|
+
if (this.h31_1.xs(value)) {
|
|
1226
|
+
tmp = this.a1i().intOfBigInteger(this.h31_1.ys(value));
|
|
1321
1227
|
} else {
|
|
1322
|
-
tmp = this.
|
|
1228
|
+
tmp = this.a1i().realOfBigDecimal(this.h31_1.zs(value));
|
|
1323
1229
|
}
|
|
1324
1230
|
return tmp;
|
|
1325
1231
|
};
|
|
1326
|
-
protoOf(DefaultTermificator).
|
|
1327
|
-
return new DefaultTermificator(scope, this.
|
|
1232
|
+
protoOf(DefaultTermificator).b1i = function (scope) {
|
|
1233
|
+
return new DefaultTermificator(scope, this.g31_1);
|
|
1328
1234
|
};
|
|
1329
1235
|
protoOf(DefaultTermificator).copy = function (scope, $super) {
|
|
1330
1236
|
return this.copy(scope, ($super == null ? true : $super instanceof DefaultTermificator) ? $super : THROW_CCE());
|
|
@@ -1343,7 +1249,7 @@
|
|
|
1343
1249
|
protoOf(LogicProgrammingScopeImpl).consOfAny = consOfAny;
|
|
1344
1250
|
protoOf(LogicProgrammingScopeImpl).directiveOfAny = directiveOfAny;
|
|
1345
1251
|
protoOf(LogicProgrammingScopeImpl).withScope = withScope;
|
|
1346
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1252
|
+
protoOf(LogicProgrammingScopeImpl).d31 = logicList;
|
|
1347
1253
|
protoOf(LogicProgrammingScopeImpl).logicList = logicList_0;
|
|
1348
1254
|
protoOf(LogicProgrammingScopeImpl).rule = rule;
|
|
1349
1255
|
protoOf(LogicProgrammingScopeImpl).clause2 = clause2;
|
|
@@ -1468,8 +1374,8 @@
|
|
|
1468
1374
|
//endregion
|
|
1469
1375
|
//region block: exports
|
|
1470
1376
|
_.$_$ = _.$_$ || {};
|
|
1471
|
-
_.$_$.a =
|
|
1472
|
-
_.$_$.b =
|
|
1377
|
+
_.$_$.a = Companion_instance_3;
|
|
1378
|
+
_.$_$.b = logicList_0;
|
|
1473
1379
|
_.$_$.c = convertToSpecificSubTypeOfTerm;
|
|
1474
1380
|
_.$_$.d = convertToTerm;
|
|
1475
1381
|
_.$_$.e = BaseLogicProgrammingScope;
|