@tuprolog/arg2p 0.16.6 → 0.16.7
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 +80 -75
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +399 -399
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +18 -18
- package/2p-dsl-theory.js +16 -16
- package/2p-dsl-unify.js +11 -11
- package/2p-io-lib.js +333 -123
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +12 -12
- package/2p-parser-impl.js +51 -51
- package/2p-parser-theory.js +13 -13
- package/{2p-solve-classic.js → 2p-solve-prolog.js} +726 -702
- package/2p-solve-prolog.js.map +1 -0
- package/2p-solve.js +2422 -1227
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +51 -51
- package/2p-unify.js +25 -25
- package/2p-utils.js +43 -43
- package/arg2p-causality-solver.js +33 -27
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +138 -119
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +31 -31
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +334 -265
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +70 -70
- package/okio-parent-okio-nodefilesystem.js +10 -10
- package/okio-parent-okio.js +29 -29
- package/package.json +1 -1
- package/2p-solve-classic.js.map +0 -1
package/2p-dsl-core.js
CHANGED
|
@@ -21,18 +21,18 @@
|
|
|
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.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.gc;
|
|
25
25
|
var Unit_instance = kotlin_kotlin.$_$.q;
|
|
26
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
26
|
+
var constructCallableReference = kotlin_kotlin.$_$.w6;
|
|
27
27
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var toString = kotlin_kotlin.$_$.
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.s7;
|
|
29
|
+
var toString = kotlin_kotlin.$_$.v7;
|
|
30
30
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
31
31
|
var Term = kotlin_it_unibo_tuprolog_core.$_$.a3;
|
|
32
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
32
|
+
var isInterface = kotlin_kotlin.$_$.m7;
|
|
33
33
|
var TermConvertible = kotlin_it_unibo_tuprolog_core.$_$.d2;
|
|
34
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
35
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
34
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.k8;
|
|
35
|
+
var getKClass = kotlin_kotlin.$_$.l8;
|
|
36
36
|
var toString_0 = kotlin_kotlin.$_$.h;
|
|
37
37
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
38
38
|
var asIterable = kotlin_kotlin.$_$.i2;
|
|
@@ -40,28 +40,28 @@
|
|
|
40
40
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.q2;
|
|
41
41
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
42
42
|
var assertItemsAreNotNull_0 = kotlin_it_unibo_tuprolog_utils.$_$.r;
|
|
43
|
-
var map = kotlin_kotlin.$_$.
|
|
43
|
+
var map = kotlin_kotlin.$_$.m9;
|
|
44
44
|
var assertItemsAreNotNull_1 = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
45
|
-
var Char = kotlin_kotlin.$_$.
|
|
45
|
+
var Char = kotlin_kotlin.$_$.tb;
|
|
46
46
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.m;
|
|
47
47
|
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
48
48
|
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
49
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
49
|
+
var Sequence = kotlin_kotlin.$_$.p8;
|
|
50
50
|
var Iterable = kotlin_kotlin.$_$.y1;
|
|
51
51
|
var KtList = kotlin_kotlin.$_$.a2;
|
|
52
52
|
var KtSet = kotlin_kotlin.$_$.d2;
|
|
53
|
-
var Pair = kotlin_kotlin.$_$.
|
|
54
|
-
var Triple = kotlin_kotlin.$_$.
|
|
53
|
+
var Pair = kotlin_kotlin.$_$.ec;
|
|
54
|
+
var Triple = kotlin_kotlin.$_$.ic;
|
|
55
55
|
var Entry = kotlin_kotlin.$_$.b2;
|
|
56
56
|
var KtMap = kotlin_kotlin.$_$.c2;
|
|
57
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.f7;
|
|
58
58
|
var VOID = kotlin_kotlin.$_$.b;
|
|
59
59
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
60
60
|
var Scope = kotlin_it_unibo_tuprolog_core.$_$.a2;
|
|
61
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
61
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.h7;
|
|
62
62
|
var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
63
63
|
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.c1;
|
|
64
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
64
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.g7;
|
|
65
65
|
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
66
66
|
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
67
67
|
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.f1;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
72
72
|
var Var = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
73
73
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
74
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
74
|
+
var sequenceOf = kotlin_kotlin.$_$.s9;
|
|
75
75
|
var copyToArray = kotlin_kotlin.$_$.a3;
|
|
76
76
|
var listOf = kotlin_kotlin.$_$.x3;
|
|
77
77
|
var Rule = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
@@ -105,193 +105,298 @@
|
|
|
105
105
|
}
|
|
106
106
|
initMetadataForInterface(BaseLogicProgrammingScope, 'BaseLogicProgrammingScope', VOID, VOID, [Scope]);
|
|
107
107
|
initMetadataForCompanion(Companion);
|
|
108
|
-
function
|
|
109
|
-
|
|
108
|
+
function stringInvoke(_this__u8e3s4, term, terms) {
|
|
109
|
+
var tmp = sequenceOf(arrayConcat([[term], terms]));
|
|
110
|
+
return this.structOfSequence(_this__u8e3s4, map(tmp, MinimalLogicProgrammingScope$invoke$lambda(this)));
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
112
|
+
function structOfAny(functor, args) {
|
|
113
|
+
// Inline function 'kotlin.collections.map' call
|
|
114
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
115
|
+
var destination = ArrayList_init_$Create$(args.length);
|
|
116
|
+
var inductionVariable = 0;
|
|
117
|
+
var last = args.length;
|
|
118
|
+
while (inductionVariable < last) {
|
|
119
|
+
var item = args[inductionVariable];
|
|
120
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
121
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
122
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
123
|
+
}
|
|
124
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
125
|
+
var tmp$ret$3 = copyToArray(destination);
|
|
126
|
+
return this.structOf(functor, tmp$ret$3.slice());
|
|
113
127
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
128
|
+
function tupleOfAny(terms) {
|
|
129
|
+
// Inline function 'kotlin.collections.map' call
|
|
130
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
131
|
+
var destination = ArrayList_init_$Create$(terms.length);
|
|
132
|
+
var inductionVariable = 0;
|
|
133
|
+
var last = terms.length;
|
|
134
|
+
while (inductionVariable < last) {
|
|
135
|
+
var item = terms[inductionVariable];
|
|
136
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
137
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
138
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
139
|
+
}
|
|
140
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
141
|
+
var tmp$ret$3 = copyToArray(destination);
|
|
142
|
+
return this.tupleOf(tmp$ret$3.slice());
|
|
116
143
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
144
|
+
function logicListOfAny(terms) {
|
|
145
|
+
// Inline function 'kotlin.collections.map' call
|
|
146
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
147
|
+
var destination = ArrayList_init_$Create$(terms.length);
|
|
148
|
+
var inductionVariable = 0;
|
|
149
|
+
var last = terms.length;
|
|
150
|
+
while (inductionVariable < last) {
|
|
151
|
+
var item = terms[inductionVariable];
|
|
152
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
153
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
154
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
155
|
+
}
|
|
156
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
157
|
+
var tmp$ret$3 = copyToArray(destination);
|
|
158
|
+
return this.logicListOf(tmp$ret$3.slice());
|
|
119
159
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
160
|
+
function blockOfAny(terms) {
|
|
161
|
+
// Inline function 'kotlin.collections.map' call
|
|
162
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
163
|
+
var destination = ArrayList_init_$Create$(terms.length);
|
|
164
|
+
var inductionVariable = 0;
|
|
165
|
+
var last = terms.length;
|
|
166
|
+
while (inductionVariable < last) {
|
|
167
|
+
var item = terms[inductionVariable];
|
|
168
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
169
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
170
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
171
|
+
}
|
|
172
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
173
|
+
var tmp$ret$3 = copyToArray(destination);
|
|
174
|
+
return this.blockOf(tmp$ret$3.slice());
|
|
122
175
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
176
|
+
function factOfAny(term) {
|
|
177
|
+
var tmp = this.convertToTerm(term);
|
|
178
|
+
return this.factOf(isInterface(tmp, Struct) ? tmp : THROW_CCE());
|
|
125
179
|
}
|
|
126
|
-
function
|
|
127
|
-
return this.
|
|
180
|
+
function consOfAny(head, tail) {
|
|
181
|
+
return this.consOf(this.convertToTerm(head), this.convertToTerm(tail));
|
|
128
182
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
183
|
+
function directiveOfAny(term, terms) {
|
|
184
|
+
var tmp = this.convertToTerm(term);
|
|
185
|
+
// Inline function 'kotlin.collections.map' call
|
|
186
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
187
|
+
var destination = ArrayList_init_$Create$(terms.length);
|
|
188
|
+
var inductionVariable = 0;
|
|
189
|
+
var last = terms.length;
|
|
190
|
+
while (inductionVariable < last) {
|
|
191
|
+
var item = terms[inductionVariable];
|
|
192
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
193
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
194
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
195
|
+
}
|
|
196
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
197
|
+
var tmp$ret$3 = copyToArray(destination);
|
|
198
|
+
return this.directiveOf(tmp, tmp$ret$3.slice());
|
|
131
199
|
}
|
|
132
|
-
function
|
|
133
|
-
return
|
|
200
|
+
function withScope(function_0) {
|
|
201
|
+
return function_0(this.newScope());
|
|
134
202
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
203
|
+
function logicList(items, tail) {
|
|
204
|
+
// Inline function 'kotlin.collections.map' call
|
|
205
|
+
var this_0 = listOf(items.slice());
|
|
206
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
207
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
208
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
209
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
210
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
211
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
212
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
213
|
+
}
|
|
214
|
+
// Inline function 'kotlin.let' call
|
|
215
|
+
var tmp;
|
|
216
|
+
if (!(tail == null)) {
|
|
217
|
+
tmp = this.logicListFrom_yn067b_k$(destination, this.convertToTerm(tail));
|
|
218
|
+
} else {
|
|
219
|
+
tmp = this.logicListOfIterable(destination);
|
|
220
|
+
}
|
|
221
|
+
return tmp;
|
|
137
222
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
223
|
+
function logicList_0(items, tail, $super) {
|
|
224
|
+
tail = tail === VOID ? null : tail;
|
|
225
|
+
return $super === VOID ? this.logicList_6qlnr0_k$(items, tail) : logicList(items, tail);
|
|
140
226
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
227
|
+
function rule(function_0) {
|
|
228
|
+
var tmp = this.convertToTerm(function_0(this.newScope()));
|
|
229
|
+
return isInterface(tmp, Rule) ? tmp : THROW_CCE();
|
|
143
230
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
231
|
+
function directive(function_0) {
|
|
232
|
+
var tmp = function_0(this.newScope());
|
|
233
|
+
var tmp_0 = getKClass(Directive);
|
|
234
|
+
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$directiveOf$ref(this));
|
|
146
235
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
236
|
+
function fact(function_0) {
|
|
237
|
+
var tmp = function_0(this.newScope());
|
|
238
|
+
var tmp_0 = getKClass(Fact);
|
|
239
|
+
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$factOf$ref(this));
|
|
149
240
|
}
|
|
150
|
-
|
|
151
|
-
|
|
241
|
+
initMetadataForInterface(MinimalLogicProgrammingScope, 'MinimalLogicProgrammingScope', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
242
|
+
function termPlus(_this__u8e3s4, other) {
|
|
243
|
+
return this.structOf('+', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
152
244
|
}
|
|
153
|
-
function
|
|
154
|
-
return this.
|
|
245
|
+
function number(_this__u8e3s4, other) {
|
|
246
|
+
return this.termPlus(this.convertToTerm(_this__u8e3s4), other);
|
|
155
247
|
}
|
|
156
|
-
function
|
|
157
|
-
return this.
|
|
248
|
+
function booleanPlus(_this__u8e3s4, other) {
|
|
249
|
+
return this.termPlus(this.convertToTerm(_this__u8e3s4), other);
|
|
158
250
|
}
|
|
159
|
-
function
|
|
160
|
-
return this.
|
|
251
|
+
function charPlus(_this__u8e3s4, other) {
|
|
252
|
+
return this.termPlus(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
161
253
|
}
|
|
162
|
-
function
|
|
163
|
-
return this.structOf('
|
|
254
|
+
function termMinus(_this__u8e3s4, other) {
|
|
255
|
+
return this.structOf('-', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
164
256
|
}
|
|
165
|
-
function
|
|
166
|
-
return this.
|
|
257
|
+
function numberMinus(_this__u8e3s4, other) {
|
|
258
|
+
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
167
259
|
}
|
|
168
|
-
function
|
|
169
|
-
return this.
|
|
260
|
+
function booleanMinus(_this__u8e3s4, other) {
|
|
261
|
+
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
170
262
|
}
|
|
171
|
-
function
|
|
172
|
-
return this.
|
|
263
|
+
function charMinus(_this__u8e3s4, other) {
|
|
264
|
+
return this.termMinus(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
173
265
|
}
|
|
174
|
-
function
|
|
175
|
-
return this.
|
|
266
|
+
function stringMinus(_this__u8e3s4, other) {
|
|
267
|
+
return this.termMinus(this.convertToTerm(_this__u8e3s4), other);
|
|
176
268
|
}
|
|
177
|
-
function
|
|
178
|
-
return this.structOf('
|
|
269
|
+
function termTimes(_this__u8e3s4, other) {
|
|
270
|
+
return this.structOf('*', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
179
271
|
}
|
|
180
|
-
function
|
|
181
|
-
return this.
|
|
272
|
+
function numberTimes(_this__u8e3s4, other) {
|
|
273
|
+
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
182
274
|
}
|
|
183
|
-
function
|
|
184
|
-
return this.
|
|
275
|
+
function booleanTimes(_this__u8e3s4, other) {
|
|
276
|
+
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
185
277
|
}
|
|
186
|
-
function
|
|
187
|
-
return this.
|
|
278
|
+
function charTimes(_this__u8e3s4, other) {
|
|
279
|
+
return this.termTimes(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
188
280
|
}
|
|
189
|
-
function
|
|
190
|
-
return this.
|
|
281
|
+
function stringTimes(_this__u8e3s4, other) {
|
|
282
|
+
return this.termTimes(this.convertToTerm(_this__u8e3s4), other);
|
|
191
283
|
}
|
|
192
|
-
function
|
|
193
|
-
return this.
|
|
284
|
+
function termDiv(_this__u8e3s4, other) {
|
|
285
|
+
return this.indicatorOf(this.convertToTerm(_this__u8e3s4), this.convertToTerm(other));
|
|
194
286
|
}
|
|
195
|
-
function
|
|
196
|
-
return this.
|
|
287
|
+
function numberDiv(_this__u8e3s4, other) {
|
|
288
|
+
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
197
289
|
}
|
|
198
|
-
function
|
|
199
|
-
return this.
|
|
290
|
+
function booleanDiv(_this__u8e3s4, other) {
|
|
291
|
+
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
200
292
|
}
|
|
201
|
-
function
|
|
202
|
-
return this.
|
|
293
|
+
function charDiv(_this__u8e3s4, other) {
|
|
294
|
+
return this.termDiv(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
203
295
|
}
|
|
204
|
-
function
|
|
205
|
-
return this.
|
|
296
|
+
function stringDiv(_this__u8e3s4, other) {
|
|
297
|
+
return this.termDiv(this.convertToTerm(_this__u8e3s4), other);
|
|
206
298
|
}
|
|
207
|
-
function
|
|
208
|
-
return this.structOf('
|
|
299
|
+
function anyEqualsTo(_this__u8e3s4, other) {
|
|
300
|
+
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
209
301
|
}
|
|
210
|
-
function
|
|
211
|
-
return this.structOf('
|
|
302
|
+
function anyNotEqualsTo(_this__u8e3s4, other) {
|
|
303
|
+
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
212
304
|
}
|
|
213
|
-
function
|
|
214
|
-
return this.structOf('
|
|
305
|
+
function anyGreaterThan(_this__u8e3s4, other) {
|
|
306
|
+
return this.structOf('>', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
215
307
|
}
|
|
216
|
-
function
|
|
217
|
-
return this.structOf('
|
|
308
|
+
function anyGreaterThanOrEqualsTo(_this__u8e3s4, other) {
|
|
309
|
+
return this.structOf('>=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
218
310
|
}
|
|
219
|
-
function
|
|
220
|
-
return this.
|
|
311
|
+
function anyNonLowerThan(_this__u8e3s4, other) {
|
|
312
|
+
return this.anyGreaterThanOrEqualsTo(_this__u8e3s4, other);
|
|
221
313
|
}
|
|
222
|
-
function
|
|
223
|
-
return this.structOf('
|
|
314
|
+
function anyLowerThan(_this__u8e3s4, other) {
|
|
315
|
+
return this.structOf('<', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
224
316
|
}
|
|
225
|
-
function
|
|
226
|
-
return this.structOf('
|
|
317
|
+
function anyLowerThanOrEqualsTo(_this__u8e3s4, other) {
|
|
318
|
+
return this.structOf('=<', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
227
319
|
}
|
|
228
|
-
function
|
|
229
|
-
return this.
|
|
320
|
+
function anyNonGreaterThan(_this__u8e3s4, other) {
|
|
321
|
+
return this.anyLowerThanOrEqualsTo(_this__u8e3s4, other);
|
|
230
322
|
}
|
|
231
|
-
function
|
|
232
|
-
return this.structOf('
|
|
233
|
-
}
|
|
234
|
-
function atom_length2(atom, length) {
|
|
235
|
-
return this.structOf('atom_length', [this.convertToTerm(atom), this.convertToTerm(length)]);
|
|
236
|
-
}
|
|
237
|
-
function char_code2(char, code) {
|
|
238
|
-
return this.structOf('char_code', [this.convertToTerm(char), this.convertToTerm(code)]);
|
|
239
|
-
}
|
|
240
|
-
function clause2(head, body) {
|
|
241
|
-
return this.structOf('clause', [this.convertToTerm(head), this.convertToTerm(body)]);
|
|
242
|
-
}
|
|
243
|
-
function copy_term2(term, copy) {
|
|
244
|
-
return this.structOf('copy_term', [this.convertToTerm(term), this.convertToTerm(copy)]);
|
|
245
|
-
}
|
|
246
|
-
function current_flag2(name, value) {
|
|
247
|
-
return this.structOf('current_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
323
|
+
function anyIntDiv(_this__u8e3s4, other) {
|
|
324
|
+
return this.structOf('//', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
248
325
|
}
|
|
249
|
-
function
|
|
250
|
-
return this.structOf('
|
|
326
|
+
function termRem(_this__u8e3s4, other) {
|
|
327
|
+
return this.structOf('rem', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
251
328
|
}
|
|
252
|
-
function
|
|
253
|
-
return this.
|
|
329
|
+
function numberRem(_this__u8e3s4, other) {
|
|
330
|
+
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
254
331
|
}
|
|
255
|
-
function
|
|
256
|
-
return this.
|
|
332
|
+
function booleanRem(_this__u8e3s4, other) {
|
|
333
|
+
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
257
334
|
}
|
|
258
|
-
function
|
|
259
|
-
return this.
|
|
335
|
+
function charRem(_this__u8e3s4, other) {
|
|
336
|
+
return this.termRem(this.convertToTerm(new Char(_this__u8e3s4)), other);
|
|
260
337
|
}
|
|
261
|
-
function
|
|
262
|
-
return this.
|
|
338
|
+
function stringRem(_this__u8e3s4, other) {
|
|
339
|
+
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
263
340
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
341
|
+
function anyAnd(_this__u8e3s4, other) {
|
|
342
|
+
// Inline function 'kotlin.let' call
|
|
343
|
+
var it = this.convertToTerm(_this__u8e3s4);
|
|
344
|
+
var otherTerm = this.convertToTerm(other);
|
|
345
|
+
var tmp;
|
|
346
|
+
if (isInterface(it, Tuple)) {
|
|
347
|
+
tmp = this.tupleOfIterable(plus(it.get_items_it823b_k$(), otherTerm));
|
|
348
|
+
} else {
|
|
349
|
+
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
350
|
+
}
|
|
351
|
+
return tmp;
|
|
266
352
|
}
|
|
267
|
-
function
|
|
268
|
-
return this.structOf('
|
|
353
|
+
function anyOr(_this__u8e3s4, other) {
|
|
354
|
+
return this.structOf(';', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
269
355
|
}
|
|
270
|
-
function
|
|
271
|
-
return this.structOf('
|
|
356
|
+
function anyPow(_this__u8e3s4, other) {
|
|
357
|
+
return this.structOf('**', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
272
358
|
}
|
|
273
|
-
function
|
|
274
|
-
return this.structOf('
|
|
359
|
+
function anySup(_this__u8e3s4, other) {
|
|
360
|
+
return this.structOf('^', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
275
361
|
}
|
|
276
|
-
function
|
|
277
|
-
return this.structOf('
|
|
362
|
+
function anyIs(_this__u8e3s4, other) {
|
|
363
|
+
return this.structOf('is', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
278
364
|
}
|
|
279
|
-
function
|
|
280
|
-
return this.structOf('
|
|
365
|
+
function anyThen(_this__u8e3s4, other) {
|
|
366
|
+
return this.structOf('->', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
281
367
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
368
|
+
function anyImpliedBy(_this__u8e3s4, other) {
|
|
369
|
+
var t = this.convertToTerm(_this__u8e3s4);
|
|
370
|
+
var tmp;
|
|
371
|
+
if (isInterface(t, Struct)) {
|
|
372
|
+
tmp = this.ruleOf(t, this.convertToTerm(other), []);
|
|
373
|
+
} else {
|
|
374
|
+
raiseErrorConvertingTo(_this__u8e3s4, getKClass(Struct));
|
|
375
|
+
}
|
|
376
|
+
return tmp;
|
|
284
377
|
}
|
|
285
|
-
function
|
|
286
|
-
return this.
|
|
378
|
+
function anyIf(_this__u8e3s4, other) {
|
|
379
|
+
return this.anyImpliedBy(_this__u8e3s4, other);
|
|
287
380
|
}
|
|
288
|
-
function
|
|
289
|
-
|
|
381
|
+
function anyImpliedByVararg(_this__u8e3s4, other) {
|
|
382
|
+
var tmp = Companion_instance_1;
|
|
383
|
+
// Inline function 'kotlin.collections.map' call
|
|
384
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
385
|
+
var destination = ArrayList_init_$Create$(other.length);
|
|
386
|
+
var inductionVariable = 0;
|
|
387
|
+
var last = other.length;
|
|
388
|
+
while (inductionVariable < last) {
|
|
389
|
+
var item = other[inductionVariable];
|
|
390
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
391
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
392
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
393
|
+
}
|
|
394
|
+
return this.anyImpliedBy(_this__u8e3s4, tmp.wrapIterableIfNeeded(destination));
|
|
290
395
|
}
|
|
291
|
-
function
|
|
292
|
-
return this.
|
|
396
|
+
function anyIfVararg(_this__u8e3s4, other) {
|
|
397
|
+
return this.anyImpliedByVararg(_this__u8e3s4, other.slice());
|
|
293
398
|
}
|
|
294
|
-
initMetadataForInterface(
|
|
399
|
+
initMetadataForInterface(LogicProgrammingScopeWithOperators, 'LogicProgrammingScopeWithOperators', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
295
400
|
function varTo(_this__u8e3s4, termObject) {
|
|
296
401
|
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
297
402
|
}
|
|
@@ -325,299 +430,194 @@
|
|
|
325
430
|
return _this__u8e3s4.containsValue_yf2ykl_k$(this.convertToTerm(term));
|
|
326
431
|
}
|
|
327
432
|
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
328
|
-
function
|
|
329
|
-
return this.structOf('
|
|
433
|
+
function at_end_of_stream1(alias) {
|
|
434
|
+
return this.structOf('at_end_of_stream', [this.convertToTerm(alias)]);
|
|
330
435
|
}
|
|
331
|
-
function
|
|
332
|
-
return this.
|
|
436
|
+
function call1(goal) {
|
|
437
|
+
return this.structOf('call', [this.convertToTerm(goal)]);
|
|
333
438
|
}
|
|
334
|
-
function
|
|
335
|
-
return this.
|
|
439
|
+
function catch3(goal, error, continuation) {
|
|
440
|
+
return this.structOf('catch', [this.convertToTerm(goal), this.convertToTerm(error), this.convertToTerm(continuation)]);
|
|
336
441
|
}
|
|
337
|
-
function
|
|
338
|
-
return this.
|
|
442
|
+
function throw1(error) {
|
|
443
|
+
return this.structOf('throw', [this.convertToTerm(error)]);
|
|
339
444
|
}
|
|
340
|
-
function
|
|
341
|
-
return this.structOf('
|
|
445
|
+
function not1(goal) {
|
|
446
|
+
return this.structOf('not', [this.convertToTerm(goal)]);
|
|
342
447
|
}
|
|
343
|
-
function
|
|
344
|
-
return this.
|
|
448
|
+
function naf1(goal) {
|
|
449
|
+
return this.structOf('\\+', [this.convertToTerm(goal)]);
|
|
345
450
|
}
|
|
346
|
-
function
|
|
347
|
-
return this.
|
|
451
|
+
function assert1(clause) {
|
|
452
|
+
return this.structOf('assert', [this.convertToTerm(clause)]);
|
|
348
453
|
}
|
|
349
|
-
function
|
|
350
|
-
return this.
|
|
454
|
+
function asserta1(clause) {
|
|
455
|
+
return this.structOf('asserta', [this.convertToTerm(clause)]);
|
|
351
456
|
}
|
|
352
|
-
function
|
|
353
|
-
return this.
|
|
457
|
+
function assertz1(clause) {
|
|
458
|
+
return this.structOf('assertz', [this.convertToTerm(clause)]);
|
|
354
459
|
}
|
|
355
|
-
function
|
|
356
|
-
return this.structOf('
|
|
460
|
+
function arg3(index, compound, argument) {
|
|
461
|
+
return this.structOf('arg', [this.convertToTerm(index), this.convertToTerm(compound), this.convertToTerm(argument)]);
|
|
357
462
|
}
|
|
358
|
-
function
|
|
359
|
-
return this.
|
|
463
|
+
function atom1(atom) {
|
|
464
|
+
return this.structOf('atom', [this.convertToTerm(atom)]);
|
|
360
465
|
}
|
|
361
|
-
function
|
|
362
|
-
return this.
|
|
466
|
+
function atomic1(atomic) {
|
|
467
|
+
return this.structOf('atomic', [this.convertToTerm(atomic)]);
|
|
363
468
|
}
|
|
364
|
-
function
|
|
365
|
-
return this.
|
|
469
|
+
function between3(min, max, number) {
|
|
470
|
+
return this.structOf('between', [this.convertToTerm(min), this.convertToTerm(max), this.convertToTerm(number)]);
|
|
366
471
|
}
|
|
367
|
-
function
|
|
368
|
-
return this.
|
|
472
|
+
function callable1(goal) {
|
|
473
|
+
return this.structOf('callable', [this.convertToTerm(goal)]);
|
|
369
474
|
}
|
|
370
|
-
function
|
|
371
|
-
return this.
|
|
475
|
+
function compound1(struct) {
|
|
476
|
+
return this.structOf('compound', [this.convertToTerm(struct)]);
|
|
372
477
|
}
|
|
373
|
-
function
|
|
374
|
-
return this.
|
|
478
|
+
function current_op3(precedence, specifier, functor) {
|
|
479
|
+
return this.structOf('current_op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
375
480
|
}
|
|
376
|
-
function
|
|
377
|
-
return this.
|
|
481
|
+
function op3(precedence, specifier, functor) {
|
|
482
|
+
return this.structOf('op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
378
483
|
}
|
|
379
|
-
function
|
|
380
|
-
return this.
|
|
484
|
+
function findall3(template, goal, bag) {
|
|
485
|
+
return this.structOf('findall', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
381
486
|
}
|
|
382
|
-
function
|
|
383
|
-
return this.
|
|
487
|
+
function float1(number) {
|
|
488
|
+
return this.structOf('float', [this.convertToTerm(number)]);
|
|
384
489
|
}
|
|
385
|
-
function
|
|
386
|
-
return this.structOf('
|
|
490
|
+
function functor3(struct, functor, arity) {
|
|
491
|
+
return this.structOf('functor', [this.convertToTerm(struct), this.convertToTerm(functor), this.convertToTerm(arity)]);
|
|
387
492
|
}
|
|
388
|
-
function
|
|
389
|
-
return this.structOf('
|
|
493
|
+
function ground1(term) {
|
|
494
|
+
return this.structOf('ground', [this.convertToTerm(term)]);
|
|
390
495
|
}
|
|
391
|
-
function
|
|
392
|
-
return this.structOf('
|
|
496
|
+
function integer1(number) {
|
|
497
|
+
return this.structOf('integer', [this.convertToTerm(number)]);
|
|
393
498
|
}
|
|
394
|
-
function
|
|
395
|
-
return this.structOf('
|
|
499
|
+
function natural(number) {
|
|
500
|
+
return this.structOf('natural', [this.convertToTerm(number)]);
|
|
396
501
|
}
|
|
397
|
-
function
|
|
398
|
-
return this.
|
|
502
|
+
function nonvar1(number) {
|
|
503
|
+
return this.structOf('nonvar', [this.convertToTerm(number)]);
|
|
399
504
|
}
|
|
400
|
-
function
|
|
401
|
-
return this.structOf('
|
|
505
|
+
function number1(number) {
|
|
506
|
+
return this.structOf('number', [this.convertToTerm(number)]);
|
|
402
507
|
}
|
|
403
|
-
function
|
|
404
|
-
return this.structOf('
|
|
508
|
+
function var1(term) {
|
|
509
|
+
return this.structOf('var', [this.convertToTerm(term)]);
|
|
405
510
|
}
|
|
406
|
-
function
|
|
407
|
-
return this.
|
|
511
|
+
function write1(term) {
|
|
512
|
+
return this.structOf('write', [this.convertToTerm(term)]);
|
|
408
513
|
}
|
|
409
|
-
function
|
|
410
|
-
return this.structOf('
|
|
514
|
+
function univ2(_this__u8e3s4, other) {
|
|
515
|
+
return this.structOf('=..', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
411
516
|
}
|
|
412
|
-
function
|
|
413
|
-
return this.structOf('
|
|
517
|
+
function eq2(_this__u8e3s4, right) {
|
|
518
|
+
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
414
519
|
}
|
|
415
|
-
function
|
|
416
|
-
return this.
|
|
520
|
+
function neq2(_this__u8e3s4, right) {
|
|
521
|
+
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
417
522
|
}
|
|
418
|
-
function
|
|
419
|
-
return this.
|
|
523
|
+
function id2(_this__u8e3s4, right) {
|
|
524
|
+
return this.structOf('==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
420
525
|
}
|
|
421
|
-
function
|
|
422
|
-
return this.
|
|
526
|
+
function nid2(_this__u8e3s4, right) {
|
|
527
|
+
return this.structOf('\\==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
423
528
|
}
|
|
424
|
-
function
|
|
425
|
-
return this.
|
|
529
|
+
function arithEq2(_this__u8e3s4, right) {
|
|
530
|
+
return this.structOf('=:=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
426
531
|
}
|
|
427
|
-
function
|
|
428
|
-
|
|
429
|
-
var it = this.convertToTerm(_this__u8e3s4);
|
|
430
|
-
var otherTerm = this.convertToTerm(other);
|
|
431
|
-
var tmp;
|
|
432
|
-
if (isInterface(it, Tuple)) {
|
|
433
|
-
tmp = this.tupleOfIterable(plus(it.get_items_it823b_k$(), otherTerm));
|
|
434
|
-
} else {
|
|
435
|
-
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
436
|
-
}
|
|
437
|
-
return tmp;
|
|
532
|
+
function arithNeq2(_this__u8e3s4, right) {
|
|
533
|
+
return this.structOf('=\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
438
534
|
}
|
|
439
|
-
function
|
|
440
|
-
return this.structOf('
|
|
535
|
+
function member2(item, list) {
|
|
536
|
+
return this.structOf('member', [this.convertToTerm(item), this.convertToTerm(list)]);
|
|
441
537
|
}
|
|
442
|
-
function
|
|
443
|
-
return this.structOf('
|
|
538
|
+
function retract1(clause) {
|
|
539
|
+
return this.structOf('retract', [this.convertToTerm(clause)]);
|
|
444
540
|
}
|
|
445
|
-
function
|
|
446
|
-
return this.structOf('
|
|
541
|
+
function append3(left, right, result) {
|
|
542
|
+
return this.structOf('append', [this.convertToTerm(left), this.convertToTerm(right), this.convertToTerm(result)]);
|
|
447
543
|
}
|
|
448
|
-
function
|
|
449
|
-
return this.structOf('
|
|
544
|
+
function retractall1(clause) {
|
|
545
|
+
return this.structOf('retractall', [this.convertToTerm(clause)]);
|
|
450
546
|
}
|
|
451
|
-
function
|
|
452
|
-
return this.structOf('
|
|
547
|
+
function abolish1(indicator) {
|
|
548
|
+
return this.structOf('abolish', [this.convertToTerm(indicator)]);
|
|
453
549
|
}
|
|
454
|
-
function
|
|
455
|
-
|
|
456
|
-
var tmp;
|
|
457
|
-
if (isInterface(t, Struct)) {
|
|
458
|
-
tmp = this.ruleOf(t, this.convertToTerm(other), []);
|
|
459
|
-
} else {
|
|
460
|
-
raiseErrorConvertingTo(_this__u8e3s4, getKClass(Struct));
|
|
461
|
-
}
|
|
462
|
-
return tmp;
|
|
550
|
+
function atom_chars2(atom, chars) {
|
|
551
|
+
return this.structOf('atom_chars', [this.convertToTerm(atom), this.convertToTerm(chars)]);
|
|
463
552
|
}
|
|
464
|
-
function
|
|
465
|
-
return this.
|
|
553
|
+
function atom_codes2(atom, codes) {
|
|
554
|
+
return this.structOf('atom_codes', [this.convertToTerm(atom), this.convertToTerm(codes)]);
|
|
466
555
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
469
|
-
// Inline function 'kotlin.collections.map' call
|
|
470
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
471
|
-
var destination = ArrayList_init_$Create$(other.length);
|
|
472
|
-
var inductionVariable = 0;
|
|
473
|
-
var last = other.length;
|
|
474
|
-
while (inductionVariable < last) {
|
|
475
|
-
var item = other[inductionVariable];
|
|
476
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
477
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
478
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
479
|
-
}
|
|
480
|
-
return this.anyImpliedBy(_this__u8e3s4, tmp.wrapIterableIfNeeded(destination));
|
|
556
|
+
function atom_concat3(first, second, result) {
|
|
557
|
+
return this.structOf('atom_concat', [this.convertToTerm(first), this.convertToTerm(second), this.convertToTerm(result)]);
|
|
481
558
|
}
|
|
482
|
-
function
|
|
483
|
-
return this.
|
|
559
|
+
function atom_length2(atom, length) {
|
|
560
|
+
return this.structOf('atom_length', [this.convertToTerm(atom), this.convertToTerm(length)]);
|
|
484
561
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
var tmp = sequenceOf(arrayConcat([[term], terms]));
|
|
488
|
-
return this.structOfSequence(_this__u8e3s4, map(tmp, MinimalLogicProgrammingScope$invoke$lambda(this)));
|
|
562
|
+
function char_code2(char, code) {
|
|
563
|
+
return this.structOf('char_code', [this.convertToTerm(char), this.convertToTerm(code)]);
|
|
489
564
|
}
|
|
490
|
-
function
|
|
491
|
-
|
|
492
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
493
|
-
var destination = ArrayList_init_$Create$(args.length);
|
|
494
|
-
var inductionVariable = 0;
|
|
495
|
-
var last = args.length;
|
|
496
|
-
while (inductionVariable < last) {
|
|
497
|
-
var item = args[inductionVariable];
|
|
498
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
499
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
500
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
501
|
-
}
|
|
502
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
503
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
504
|
-
return this.structOf(functor, tmp$ret$3.slice());
|
|
565
|
+
function clause2(head, body) {
|
|
566
|
+
return this.structOf('clause', [this.convertToTerm(head), this.convertToTerm(body)]);
|
|
505
567
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
508
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
509
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
510
|
-
var inductionVariable = 0;
|
|
511
|
-
var last = terms.length;
|
|
512
|
-
while (inductionVariable < last) {
|
|
513
|
-
var item = terms[inductionVariable];
|
|
514
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
515
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
516
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
517
|
-
}
|
|
518
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
519
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
520
|
-
return this.tupleOf(tmp$ret$3.slice());
|
|
568
|
+
function copy_term2(term, copy) {
|
|
569
|
+
return this.structOf('copy_term', [this.convertToTerm(term), this.convertToTerm(copy)]);
|
|
521
570
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
524
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
525
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
526
|
-
var inductionVariable = 0;
|
|
527
|
-
var last = terms.length;
|
|
528
|
-
while (inductionVariable < last) {
|
|
529
|
-
var item = terms[inductionVariable];
|
|
530
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
531
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
532
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
533
|
-
}
|
|
534
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
535
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
536
|
-
return this.logicListOf(tmp$ret$3.slice());
|
|
571
|
+
function current_flag2(name, value) {
|
|
572
|
+
return this.structOf('current_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
537
573
|
}
|
|
538
|
-
function
|
|
539
|
-
|
|
540
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
541
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
542
|
-
var inductionVariable = 0;
|
|
543
|
-
var last = terms.length;
|
|
544
|
-
while (inductionVariable < last) {
|
|
545
|
-
var item = terms[inductionVariable];
|
|
546
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
547
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
548
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
549
|
-
}
|
|
550
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
551
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
552
|
-
return this.blockOf(tmp$ret$3.slice());
|
|
574
|
+
function current_prolog_flag2(name, value) {
|
|
575
|
+
return this.structOf('current_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
553
576
|
}
|
|
554
|
-
function
|
|
555
|
-
|
|
556
|
-
return this.factOf(isInterface(tmp, Struct) ? tmp : THROW_CCE());
|
|
577
|
+
function sub_atom5(atom, before, length, after, sub_atom) {
|
|
578
|
+
return this.structOf('sub_atom', [this.convertToTerm(atom), this.convertToTerm(before), this.convertToTerm(length), this.convertToTerm(after), this.convertToTerm(sub_atom)]);
|
|
557
579
|
}
|
|
558
|
-
function
|
|
559
|
-
return this.
|
|
580
|
+
function number_chars2(first, second) {
|
|
581
|
+
return this.structOf('number_chars', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
560
582
|
}
|
|
561
|
-
function
|
|
562
|
-
|
|
563
|
-
// Inline function 'kotlin.collections.map' call
|
|
564
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
565
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
566
|
-
var inductionVariable = 0;
|
|
567
|
-
var last = terms.length;
|
|
568
|
-
while (inductionVariable < last) {
|
|
569
|
-
var item = terms[inductionVariable];
|
|
570
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
571
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
572
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
573
|
-
}
|
|
574
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
575
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
576
|
-
return this.directiveOf(tmp, tmp$ret$3.slice());
|
|
583
|
+
function number_codes2(first, second) {
|
|
584
|
+
return this.structOf('number_codes', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
577
585
|
}
|
|
578
|
-
function
|
|
579
|
-
return
|
|
586
|
+
function bagof3(template, goal, bag) {
|
|
587
|
+
return this.structOf('bagof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
580
588
|
}
|
|
581
|
-
function
|
|
582
|
-
|
|
583
|
-
var this_0 = listOf(items.slice());
|
|
584
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
585
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
586
|
-
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
587
|
-
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
588
|
-
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
589
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
590
|
-
destination.add_utx5q5_k$(tmp$ret$2);
|
|
591
|
-
}
|
|
592
|
-
// Inline function 'kotlin.let' call
|
|
593
|
-
var tmp;
|
|
594
|
-
if (!(tail == null)) {
|
|
595
|
-
tmp = this.logicListFrom_yn067b_k$(destination, this.convertToTerm(tail));
|
|
596
|
-
} else {
|
|
597
|
-
tmp = this.logicListOfIterable(destination);
|
|
598
|
-
}
|
|
599
|
-
return tmp;
|
|
589
|
+
function setof3(template, goal, bag) {
|
|
590
|
+
return this.structOf('setof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
600
591
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
return $super === VOID ? this.logicList_6qlnr0_k$(items, tail) : logicList(items, tail);
|
|
592
|
+
function consult1(url) {
|
|
593
|
+
return this.structOf('consult', [this.convertToTerm(url)]);
|
|
604
594
|
}
|
|
605
|
-
function
|
|
606
|
-
|
|
607
|
-
return isInterface(tmp, Rule) ? tmp : THROW_CCE();
|
|
595
|
+
function set_flag2(name, value) {
|
|
596
|
+
return this.structOf('set_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
608
597
|
}
|
|
609
|
-
function
|
|
610
|
-
|
|
611
|
-
var tmp_0 = getKClass(Directive);
|
|
612
|
-
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$directiveOf$ref(this));
|
|
598
|
+
function set_prolog_flag2(name, value) {
|
|
599
|
+
return this.structOf('set_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
613
600
|
}
|
|
614
|
-
function
|
|
615
|
-
|
|
616
|
-
var tmp_0 = getKClass(Fact);
|
|
617
|
-
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$factOf$ref(this));
|
|
601
|
+
function dynamic1(indicator) {
|
|
602
|
+
return this.structOf('dynamic', [this.convertToTerm(indicator)]);
|
|
618
603
|
}
|
|
619
|
-
|
|
620
|
-
|
|
604
|
+
function static1(indicator) {
|
|
605
|
+
return this.structOf('static', [this.convertToTerm(indicator)]);
|
|
606
|
+
}
|
|
607
|
+
function solve1(goal) {
|
|
608
|
+
return this.structOf('solve', [this.convertToTerm(goal)]);
|
|
609
|
+
}
|
|
610
|
+
function initialization1(goal) {
|
|
611
|
+
return this.structOf('initialization', [this.convertToTerm(goal)]);
|
|
612
|
+
}
|
|
613
|
+
function load1(url) {
|
|
614
|
+
return this.structOf('load', [this.convertToTerm(url)]);
|
|
615
|
+
}
|
|
616
|
+
function include1(url) {
|
|
617
|
+
return this.structOf('include', [this.convertToTerm(url)]);
|
|
618
|
+
}
|
|
619
|
+
initMetadataForInterface(LogicProgrammingScopeWithPrologStandardLibrary, 'LogicProgrammingScopeWithPrologStandardLibrary', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
620
|
+
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [BaseLogicProgrammingScope, Scope, MinimalLogicProgrammingScope, LogicProgrammingScopeWithOperators, LogicProgrammingScopeWithSubstitutions, LogicProgrammingScopeWithPrologStandardLibrary]);
|
|
621
621
|
initMetadataForCompanion(Companion_0);
|
|
622
622
|
initMetadataForClass(DefaultTermificator, 'DefaultTermificator', VOID, AbstractTermificator);
|
|
623
623
|
//endregion
|
|
@@ -634,77 +634,77 @@
|
|
|
634
634
|
function AbstractTermificator$handleCharAsString$ref(p0) {
|
|
635
635
|
return constructCallableReference(function (p0_0) {
|
|
636
636
|
return p0.handleCharAsString_4c4o0s_k$(p0_0.value_1);
|
|
637
|
-
}, 1, 0,
|
|
637
|
+
}, 1, 0, 87, 'handleCharAsString', [p0]);
|
|
638
638
|
}
|
|
639
639
|
function AbstractTermificator$handleBooleanAsTruth$ref(p0) {
|
|
640
640
|
return constructCallableReference(function (p0_0) {
|
|
641
641
|
return p0.handleBooleanAsTruth_5aozo4_k$(p0_0);
|
|
642
|
-
}, 1, 0,
|
|
642
|
+
}, 1, 0, 88, 'handleBooleanAsTruth', [p0]);
|
|
643
643
|
}
|
|
644
644
|
function AbstractTermificator$handleStringAsAtomOrVariable$ref(p0) {
|
|
645
645
|
return constructCallableReference(function (p0_0) {
|
|
646
646
|
return p0.handleStringAsAtomOrVariable_vn22sf_k$(p0_0);
|
|
647
|
-
}, 1, 0,
|
|
647
|
+
}, 1, 0, 89, 'handleStringAsAtomOrVariable', [p0]);
|
|
648
648
|
}
|
|
649
649
|
function AbstractTermificator$handleBigIntegerAsInteger$ref(p0) {
|
|
650
650
|
return constructCallableReference(function (p0_0) {
|
|
651
651
|
return p0.handleBigIntegerAsInteger_p5tknf_k$(p0_0);
|
|
652
|
-
}, 1, 0,
|
|
652
|
+
}, 1, 0, 90, 'handleBigIntegerAsInteger', [p0]);
|
|
653
653
|
}
|
|
654
654
|
function AbstractTermificator$handleBigDecimalAsReal$ref(p0) {
|
|
655
655
|
return constructCallableReference(function (p0_0) {
|
|
656
656
|
return p0.handleBigDecimalAsReal_gsm0at_k$(p0_0);
|
|
657
|
-
}, 1, 0,
|
|
657
|
+
}, 1, 0, 91, 'handleBigDecimalAsReal', [p0]);
|
|
658
658
|
}
|
|
659
659
|
function AbstractTermificator$handleNumberAsNumeric$ref(p0) {
|
|
660
660
|
return constructCallableReference(function (p0_0) {
|
|
661
661
|
return p0.handleNumberAsNumeric_mlad0f_k$(p0_0);
|
|
662
|
-
}, 1, 0,
|
|
662
|
+
}, 1, 0, 92, 'handleNumberAsNumeric', [p0]);
|
|
663
663
|
}
|
|
664
664
|
function AbstractTermificator$handleArrayAsList$ref(p0) {
|
|
665
665
|
return constructCallableReference(function (p0_0) {
|
|
666
666
|
return p0.handleArrayAsList_ov2k4j_k$(p0_0);
|
|
667
|
-
}, 1, 0,
|
|
667
|
+
}, 1, 0, 93, 'handleArrayAsList', [p0]);
|
|
668
668
|
}
|
|
669
669
|
function AbstractTermificator$handleSequenceAsList$ref(p0) {
|
|
670
670
|
return constructCallableReference(function (p0_0) {
|
|
671
671
|
return p0.handleSequenceAsList_xpdiuf_k$(p0_0);
|
|
672
|
-
}, 1, 0,
|
|
672
|
+
}, 1, 0, 94, 'handleSequenceAsList', [p0]);
|
|
673
673
|
}
|
|
674
674
|
function AbstractTermificator$handleIterableAsList$ref(p0) {
|
|
675
675
|
return constructCallableReference(function (p0_0) {
|
|
676
676
|
return p0.handleIterableAsList_rtt3vc_k$(p0_0);
|
|
677
|
-
}, 1, 0,
|
|
677
|
+
}, 1, 0, 95, 'handleIterableAsList', [p0]);
|
|
678
678
|
}
|
|
679
679
|
function AbstractTermificator$handleKotlinListAsLogicList$ref(p0) {
|
|
680
680
|
return constructCallableReference(function (p0_0) {
|
|
681
681
|
return p0.handleKotlinListAsLogicList_3lr5v1_k$(p0_0);
|
|
682
|
-
}, 1, 0,
|
|
682
|
+
}, 1, 0, 96, 'handleKotlinListAsLogicList', [p0]);
|
|
683
683
|
}
|
|
684
684
|
function AbstractTermificator$handleSetAsBlock$ref(p0) {
|
|
685
685
|
return constructCallableReference(function (p0_0) {
|
|
686
686
|
return p0.handleSetAsBlock_umzisl_k$(p0_0);
|
|
687
|
-
}, 1, 0,
|
|
687
|
+
}, 1, 0, 97, 'handleSetAsBlock', [p0]);
|
|
688
688
|
}
|
|
689
689
|
function AbstractTermificator$handlePairAsTuple$ref(p0) {
|
|
690
690
|
return constructCallableReference(function (p0_0) {
|
|
691
691
|
return p0.handlePairAsTuple_wk96bv_k$(p0_0);
|
|
692
|
-
}, 1, 0,
|
|
692
|
+
}, 1, 0, 98, 'handlePairAsTuple', [p0]);
|
|
693
693
|
}
|
|
694
694
|
function AbstractTermificator$handleTripletAsTuple$ref(p0) {
|
|
695
695
|
return constructCallableReference(function (p0_0) {
|
|
696
696
|
return p0.handleTripletAsTuple_sx17bz_k$(p0_0);
|
|
697
|
-
}, 1, 0,
|
|
697
|
+
}, 1, 0, 99, 'handleTripletAsTuple', [p0]);
|
|
698
698
|
}
|
|
699
699
|
function AbstractTermificator$handleKeyValuePairAsStruct$ref(p0) {
|
|
700
700
|
return constructCallableReference(function (p0_0) {
|
|
701
701
|
return p0.handleKeyValuePairAsStruct_mdstn7_k$(p0_0);
|
|
702
|
-
}, 1, 0,
|
|
702
|
+
}, 1, 0, 100, 'handleKeyValuePairAsStruct', [p0]);
|
|
703
703
|
}
|
|
704
704
|
function AbstractTermificator$handleMapAsBlock$ref(p0) {
|
|
705
705
|
return constructCallableReference(function (p0_0) {
|
|
706
706
|
return p0.handleMapAsBlock_vbyuxp_k$(p0_0);
|
|
707
|
-
}, 1, 0,
|
|
707
|
+
}, 1, 0, 101, 'handleMapAsBlock', [p0]);
|
|
708
708
|
}
|
|
709
709
|
function AbstractTermificator(scope) {
|
|
710
710
|
this.scope_1 = scope;
|
|
@@ -1190,12 +1190,12 @@
|
|
|
1190
1190
|
function MinimalLogicProgrammingScope$directiveOf$ref(p0) {
|
|
1191
1191
|
return constructCallableReference(function (p0_0) {
|
|
1192
1192
|
return p0.directiveOf(p0_0, []);
|
|
1193
|
-
}, 1, 0,
|
|
1193
|
+
}, 1, 0, 102, VOID, [p0]);
|
|
1194
1194
|
}
|
|
1195
1195
|
function MinimalLogicProgrammingScope$factOf$ref(p0) {
|
|
1196
1196
|
return constructCallableReference(function (p0_0) {
|
|
1197
1197
|
return p0.factOf(p0_0);
|
|
1198
|
-
}, 1, 0,
|
|
1198
|
+
}, 1, 0, 103, 'factOf', [p0]);
|
|
1199
1199
|
}
|
|
1200
1200
|
function MinimalLogicProgrammingScope() {
|
|
1201
1201
|
}
|