@tuprolog/arg2p 0.17.4 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +2567 -2558
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +628 -622
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +261 -265
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +162 -156
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +6 -6
- package/2p-io-lib.js +936 -936
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +136 -136
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1461 -1451
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +89 -94
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve.js +4713 -4966
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1460 -1460
- package/2p-unify.js +349 -349
- package/2p-utils.js +488 -489
- package/2p-utils.js.map +1 -1
- package/README.md +26 -19
- package/arg2p-causality-solver.js +569 -486
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +13492 -5266
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +26 -551
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3337 -3145
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1530 -1530
- package/okio-parent-okio-nodefilesystem.js +52 -52
- package/okio-parent-okio.js +685 -685
- package/okio-parent-okio.js.map +1 -1
- package/package.json +1 -1
- package/2p-solve-prolog.js +0 -2856
- package/2p-solve-prolog.js.map +0 -1
package/2p-dsl-core.js
CHANGED
|
@@ -21,78 +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 constructCallableReference = kotlin_kotlin.$_$.
|
|
27
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var toString = kotlin_kotlin.$_$.
|
|
30
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.pc;
|
|
25
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
26
|
+
var constructCallableReference = kotlin_kotlin.$_$.i7;
|
|
27
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.e8;
|
|
29
|
+
var toString = kotlin_kotlin.$_$.h8;
|
|
30
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
31
31
|
var Term = kotlin_it_unibo_tuprolog_core.$_$.a3;
|
|
32
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
32
|
+
var isInterface = kotlin_kotlin.$_$.y7;
|
|
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.$_$.v8;
|
|
35
|
+
var getKClass = kotlin_kotlin.$_$.w8;
|
|
36
36
|
var toString_0 = kotlin_kotlin.$_$.h;
|
|
37
37
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
38
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
39
|
-
var assertItemsAreNotNull = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
40
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
41
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
-
var assertItemsAreNotNull_0 = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
43
|
-
var map = kotlin_kotlin.$_$.
|
|
44
|
-
var assertItemsAreNotNull_1 = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
45
|
-
var Char = kotlin_kotlin.$_$.
|
|
46
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
38
|
+
var asIterable = kotlin_kotlin.$_$.n2;
|
|
39
|
+
var assertItemsAreNotNull = kotlin_it_unibo_tuprolog_utils.$_$.v;
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.x2;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
42
|
+
var assertItemsAreNotNull_0 = kotlin_it_unibo_tuprolog_utils.$_$.u;
|
|
43
|
+
var map = kotlin_kotlin.$_$.x9;
|
|
44
|
+
var assertItemsAreNotNull_1 = kotlin_it_unibo_tuprolog_utils.$_$.w;
|
|
45
|
+
var Char = kotlin_kotlin.$_$.cc;
|
|
46
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n;
|
|
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.$_$.
|
|
50
|
-
var Iterable = kotlin_kotlin.$_$.
|
|
51
|
-
var KtList = kotlin_kotlin.$_$.
|
|
52
|
-
var KtSet = kotlin_kotlin.$_$.
|
|
53
|
-
var Pair = kotlin_kotlin.$_$.
|
|
54
|
-
var Triple = kotlin_kotlin.$_$.
|
|
55
|
-
var Entry = kotlin_kotlin.$_$.
|
|
56
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
49
|
+
var Sequence = kotlin_kotlin.$_$.a9;
|
|
50
|
+
var Iterable = kotlin_kotlin.$_$.d2;
|
|
51
|
+
var KtList = kotlin_kotlin.$_$.f2;
|
|
52
|
+
var KtSet = kotlin_kotlin.$_$.i2;
|
|
53
|
+
var Pair = kotlin_kotlin.$_$.nc;
|
|
54
|
+
var Triple = kotlin_kotlin.$_$.rc;
|
|
55
|
+
var Entry = kotlin_kotlin.$_$.g2;
|
|
56
|
+
var KtMap = kotlin_kotlin.$_$.h2;
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
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.$_$.t7;
|
|
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.$_$.s7;
|
|
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;
|
|
68
|
-
var plus = kotlin_kotlin.$_$.
|
|
68
|
+
var plus = kotlin_kotlin.$_$.x4;
|
|
69
69
|
var Tuple = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
70
70
|
var Companion_instance_1 = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
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.$_$.
|
|
75
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
76
|
-
var listOf = kotlin_kotlin.$_$.
|
|
74
|
+
var sequenceOf = kotlin_kotlin.$_$.da;
|
|
75
|
+
var copyToArray = kotlin_kotlin.$_$.h3;
|
|
76
|
+
var listOf = kotlin_kotlin.$_$.f4;
|
|
77
77
|
var Rule = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
78
78
|
var Directive = kotlin_it_unibo_tuprolog_core.$_$.s1;
|
|
79
79
|
var Fact = kotlin_it_unibo_tuprolog_core.$_$.t1;
|
|
80
|
-
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
80
|
+
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.n;
|
|
81
81
|
//endregion
|
|
82
82
|
//region block: pre-declaration
|
|
83
83
|
function copy(scope, $super) {
|
|
84
|
-
scope = scope === VOID ? this.
|
|
85
|
-
return $super === VOID ? this.
|
|
84
|
+
scope = scope === VOID ? this.t1j() : scope;
|
|
85
|
+
return $super === VOID ? this.u1j(scope) : $super.u1j.call(this, scope);
|
|
86
86
|
}
|
|
87
87
|
initMetadataForInterface(Termificator, 'Termificator');
|
|
88
88
|
initMetadataForClass(AbstractTermificator, 'AbstractTermificator', VOID, VOID, [Termificator]);
|
|
89
89
|
function convertToTerm(_this__u8e3s4) {
|
|
90
|
-
return this.
|
|
90
|
+
return this.m3p().toTerm(_this__u8e3s4);
|
|
91
91
|
}
|
|
92
92
|
function convertToSpecificSubTypeOfTerm(_this__u8e3s4, type, converter) {
|
|
93
93
|
var t = this.convertToTerm(_this__u8e3s4);
|
|
94
94
|
var tmp;
|
|
95
|
-
if (type.
|
|
95
|
+
if (type.s9(t)) {
|
|
96
96
|
tmp = isInterface(t, Term) ? t : THROW_CCE();
|
|
97
97
|
} else {
|
|
98
98
|
if (isInterface(t, Struct)) {
|
|
@@ -105,193 +105,173 @@
|
|
|
105
105
|
}
|
|
106
106
|
initMetadataForInterface(BaseLogicProgrammingScope, 'BaseLogicProgrammingScope', VOID, VOID, [Scope]);
|
|
107
107
|
initMetadataForCompanion(Companion);
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
function call1(goal) {
|
|
112
|
-
return this.structOf('call', [this.convertToTerm(goal)]);
|
|
113
|
-
}
|
|
114
|
-
function catch3(goal, error, continuation) {
|
|
115
|
-
return this.structOf('catch', [this.convertToTerm(goal), this.convertToTerm(error), this.convertToTerm(continuation)]);
|
|
116
|
-
}
|
|
117
|
-
function throw1(error) {
|
|
118
|
-
return this.structOf('throw', [this.convertToTerm(error)]);
|
|
119
|
-
}
|
|
120
|
-
function not1(goal) {
|
|
121
|
-
return this.structOf('not', [this.convertToTerm(goal)]);
|
|
122
|
-
}
|
|
123
|
-
function naf1(goal) {
|
|
124
|
-
return this.structOf('\\+', [this.convertToTerm(goal)]);
|
|
125
|
-
}
|
|
126
|
-
function assert1(clause) {
|
|
127
|
-
return this.structOf('assert', [this.convertToTerm(clause)]);
|
|
128
|
-
}
|
|
129
|
-
function asserta1(clause) {
|
|
130
|
-
return this.structOf('asserta', [this.convertToTerm(clause)]);
|
|
131
|
-
}
|
|
132
|
-
function assertz1(clause) {
|
|
133
|
-
return this.structOf('assertz', [this.convertToTerm(clause)]);
|
|
134
|
-
}
|
|
135
|
-
function arg3(index, compound, argument) {
|
|
136
|
-
return this.structOf('arg', [this.convertToTerm(index), this.convertToTerm(compound), this.convertToTerm(argument)]);
|
|
137
|
-
}
|
|
138
|
-
function atom1(atom) {
|
|
139
|
-
return this.structOf('atom', [this.convertToTerm(atom)]);
|
|
140
|
-
}
|
|
141
|
-
function atomic1(atomic) {
|
|
142
|
-
return this.structOf('atomic', [this.convertToTerm(atomic)]);
|
|
143
|
-
}
|
|
144
|
-
function between3(min, max, number) {
|
|
145
|
-
return this.structOf('between', [this.convertToTerm(min), this.convertToTerm(max), this.convertToTerm(number)]);
|
|
146
|
-
}
|
|
147
|
-
function callable1(goal) {
|
|
148
|
-
return this.structOf('callable', [this.convertToTerm(goal)]);
|
|
149
|
-
}
|
|
150
|
-
function compound1(struct) {
|
|
151
|
-
return this.structOf('compound', [this.convertToTerm(struct)]);
|
|
152
|
-
}
|
|
153
|
-
function current_op3(precedence, specifier, functor) {
|
|
154
|
-
return this.structOf('current_op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
155
|
-
}
|
|
156
|
-
function op3(precedence, specifier, functor) {
|
|
157
|
-
return this.structOf('op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
158
|
-
}
|
|
159
|
-
function findall3(template, goal, bag) {
|
|
160
|
-
return this.structOf('findall', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
161
|
-
}
|
|
162
|
-
function float1(number) {
|
|
163
|
-
return this.structOf('float', [this.convertToTerm(number)]);
|
|
164
|
-
}
|
|
165
|
-
function functor3(struct, functor, arity) {
|
|
166
|
-
return this.structOf('functor', [this.convertToTerm(struct), this.convertToTerm(functor), this.convertToTerm(arity)]);
|
|
167
|
-
}
|
|
168
|
-
function ground1(term) {
|
|
169
|
-
return this.structOf('ground', [this.convertToTerm(term)]);
|
|
170
|
-
}
|
|
171
|
-
function integer1(number) {
|
|
172
|
-
return this.structOf('integer', [this.convertToTerm(number)]);
|
|
173
|
-
}
|
|
174
|
-
function natural(number) {
|
|
175
|
-
return this.structOf('natural', [this.convertToTerm(number)]);
|
|
176
|
-
}
|
|
177
|
-
function nonvar1(number) {
|
|
178
|
-
return this.structOf('nonvar', [this.convertToTerm(number)]);
|
|
179
|
-
}
|
|
180
|
-
function number1(number) {
|
|
181
|
-
return this.structOf('number', [this.convertToTerm(number)]);
|
|
182
|
-
}
|
|
183
|
-
function var1(term) {
|
|
184
|
-
return this.structOf('var', [this.convertToTerm(term)]);
|
|
185
|
-
}
|
|
186
|
-
function write1(term) {
|
|
187
|
-
return this.structOf('write', [this.convertToTerm(term)]);
|
|
188
|
-
}
|
|
189
|
-
function univ2(_this__u8e3s4, other) {
|
|
190
|
-
return this.structOf('=..', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
191
|
-
}
|
|
192
|
-
function eq2(_this__u8e3s4, right) {
|
|
193
|
-
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
194
|
-
}
|
|
195
|
-
function neq2(_this__u8e3s4, right) {
|
|
196
|
-
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
197
|
-
}
|
|
198
|
-
function id2(_this__u8e3s4, right) {
|
|
199
|
-
return this.structOf('==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
200
|
-
}
|
|
201
|
-
function nid2(_this__u8e3s4, right) {
|
|
202
|
-
return this.structOf('\\==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
203
|
-
}
|
|
204
|
-
function arithEq2(_this__u8e3s4, right) {
|
|
205
|
-
return this.structOf('=:=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
206
|
-
}
|
|
207
|
-
function arithNeq2(_this__u8e3s4, right) {
|
|
208
|
-
return this.structOf('=\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
209
|
-
}
|
|
210
|
-
function member2(item, list) {
|
|
211
|
-
return this.structOf('member', [this.convertToTerm(item), this.convertToTerm(list)]);
|
|
212
|
-
}
|
|
213
|
-
function retract1(clause) {
|
|
214
|
-
return this.structOf('retract', [this.convertToTerm(clause)]);
|
|
215
|
-
}
|
|
216
|
-
function append3(left, right, result) {
|
|
217
|
-
return this.structOf('append', [this.convertToTerm(left), this.convertToTerm(right), this.convertToTerm(result)]);
|
|
218
|
-
}
|
|
219
|
-
function retractall1(clause) {
|
|
220
|
-
return this.structOf('retractall', [this.convertToTerm(clause)]);
|
|
221
|
-
}
|
|
222
|
-
function abolish1(indicator) {
|
|
223
|
-
return this.structOf('abolish', [this.convertToTerm(indicator)]);
|
|
224
|
-
}
|
|
225
|
-
function atom_chars2(atom, chars) {
|
|
226
|
-
return this.structOf('atom_chars', [this.convertToTerm(atom), this.convertToTerm(chars)]);
|
|
227
|
-
}
|
|
228
|
-
function atom_codes2(atom, codes) {
|
|
229
|
-
return this.structOf('atom_codes', [this.convertToTerm(atom), this.convertToTerm(codes)]);
|
|
230
|
-
}
|
|
231
|
-
function atom_concat3(first, second, result) {
|
|
232
|
-
return this.structOf('atom_concat', [this.convertToTerm(first), this.convertToTerm(second), this.convertToTerm(result)]);
|
|
233
|
-
}
|
|
234
|
-
function atom_length2(atom, length) {
|
|
235
|
-
return this.structOf('atom_length', [this.convertToTerm(atom), this.convertToTerm(length)]);
|
|
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)));
|
|
236
111
|
}
|
|
237
|
-
function
|
|
238
|
-
|
|
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.l(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());
|
|
239
127
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
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.l(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());
|
|
242
143
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
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.l(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());
|
|
245
159
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
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.l(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());
|
|
248
175
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
176
|
+
function factOfAny(term) {
|
|
177
|
+
var tmp = this.convertToTerm(term);
|
|
178
|
+
return this.factOf(isInterface(tmp, Struct) ? tmp : THROW_CCE());
|
|
251
179
|
}
|
|
252
|
-
function
|
|
253
|
-
return this.
|
|
180
|
+
function consOfAny(head, tail) {
|
|
181
|
+
return this.consOf(this.convertToTerm(head), this.convertToTerm(tail));
|
|
254
182
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
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.l(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());
|
|
257
199
|
}
|
|
258
|
-
function
|
|
259
|
-
return
|
|
200
|
+
function withScope(function_0) {
|
|
201
|
+
return function_0(this.newScope());
|
|
260
202
|
}
|
|
261
|
-
function
|
|
262
|
-
|
|
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.n();
|
|
209
|
+
while (_iterator__ex2g4s.q()) {
|
|
210
|
+
var item = _iterator__ex2g4s.r();
|
|
211
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
212
|
+
destination.l(tmp$ret$2);
|
|
213
|
+
}
|
|
214
|
+
// Inline function 'kotlin.let' call
|
|
215
|
+
var tmp;
|
|
216
|
+
if (!(tail == null)) {
|
|
217
|
+
tmp = this.v12(destination, this.convertToTerm(tail));
|
|
218
|
+
} else {
|
|
219
|
+
tmp = this.logicListOfIterable(destination);
|
|
220
|
+
}
|
|
221
|
+
return tmp;
|
|
263
222
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
223
|
+
function logicList_0(items, tail, $super) {
|
|
224
|
+
tail = tail === VOID ? null : tail;
|
|
225
|
+
return $super === VOID ? this.s3p(items, tail) : logicList(items, tail);
|
|
266
226
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
227
|
+
function rule(function_0) {
|
|
228
|
+
var tmp = this.convertToTerm(function_0(this.newScope()));
|
|
229
|
+
return isInterface(tmp, Rule) ? tmp : THROW_CCE();
|
|
269
230
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
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));
|
|
272
235
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
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));
|
|
275
240
|
}
|
|
276
|
-
|
|
277
|
-
|
|
241
|
+
initMetadataForInterface(MinimalLogicProgrammingScope, 'MinimalLogicProgrammingScope', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
242
|
+
function varTo(_this__u8e3s4, termObject) {
|
|
243
|
+
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
278
244
|
}
|
|
279
|
-
function
|
|
280
|
-
return this.
|
|
245
|
+
function stringTo(_this__u8e3s4, termObject) {
|
|
246
|
+
return Companion_getInstance_0().of(this.varOf(_this__u8e3s4), this.convertToTerm(termObject));
|
|
281
247
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
248
|
+
function substitutionGet(_this__u8e3s4, term) {
|
|
249
|
+
var t = this.convertToTerm(term);
|
|
250
|
+
var tmp;
|
|
251
|
+
if (isInterface(t, Var)) {
|
|
252
|
+
tmp = _this__u8e3s4.k2(t);
|
|
253
|
+
} else {
|
|
254
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
255
|
+
}
|
|
256
|
+
return tmp;
|
|
284
257
|
}
|
|
285
|
-
function
|
|
286
|
-
|
|
258
|
+
function substitutionContainsKey(_this__u8e3s4, term) {
|
|
259
|
+
var t = this.convertToTerm(term);
|
|
260
|
+
var tmp;
|
|
261
|
+
if (isInterface(t, Var)) {
|
|
262
|
+
tmp = _this__u8e3s4.i2(t);
|
|
263
|
+
} else {
|
|
264
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
265
|
+
}
|
|
266
|
+
return tmp;
|
|
287
267
|
}
|
|
288
|
-
function
|
|
289
|
-
return this.
|
|
268
|
+
function substitutionContains(_this__u8e3s4, term) {
|
|
269
|
+
return this.substitutionContainsKey(_this__u8e3s4, term);
|
|
290
270
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
271
|
+
function substitutionContainsValue(_this__u8e3s4, term) {
|
|
272
|
+
return _this__u8e3s4.j2(this.convertToTerm(term));
|
|
293
273
|
}
|
|
294
|
-
initMetadataForInterface(
|
|
274
|
+
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
295
275
|
function termPlus(_this__u8e3s4, other) {
|
|
296
276
|
return this.structOf('+', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
297
277
|
}
|
|
@@ -391,233 +371,253 @@
|
|
|
391
371
|
function stringRem(_this__u8e3s4, other) {
|
|
392
372
|
return this.termRem(this.convertToTerm(_this__u8e3s4), other);
|
|
393
373
|
}
|
|
394
|
-
function anyAnd(_this__u8e3s4, other) {
|
|
395
|
-
// Inline function 'kotlin.let' call
|
|
396
|
-
var it = this.convertToTerm(_this__u8e3s4);
|
|
397
|
-
var otherTerm = this.convertToTerm(other);
|
|
398
|
-
var tmp;
|
|
399
|
-
if (isInterface(it, Tuple)) {
|
|
400
|
-
tmp = this.tupleOfIterable(plus(it.
|
|
401
|
-
} else {
|
|
402
|
-
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
403
|
-
}
|
|
404
|
-
return tmp;
|
|
374
|
+
function anyAnd(_this__u8e3s4, other) {
|
|
375
|
+
// Inline function 'kotlin.let' call
|
|
376
|
+
var it = this.convertToTerm(_this__u8e3s4);
|
|
377
|
+
var otherTerm = this.convertToTerm(other);
|
|
378
|
+
var tmp;
|
|
379
|
+
if (isInterface(it, Tuple)) {
|
|
380
|
+
tmp = this.tupleOfIterable(plus(it.ry(), otherTerm));
|
|
381
|
+
} else {
|
|
382
|
+
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
383
|
+
}
|
|
384
|
+
return tmp;
|
|
385
|
+
}
|
|
386
|
+
function anyOr(_this__u8e3s4, other) {
|
|
387
|
+
return this.structOf(';', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
388
|
+
}
|
|
389
|
+
function anyPow(_this__u8e3s4, other) {
|
|
390
|
+
return this.structOf('**', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
391
|
+
}
|
|
392
|
+
function anySup(_this__u8e3s4, other) {
|
|
393
|
+
return this.structOf('^', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
394
|
+
}
|
|
395
|
+
function anyIs(_this__u8e3s4, other) {
|
|
396
|
+
return this.structOf('is', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
397
|
+
}
|
|
398
|
+
function anyThen(_this__u8e3s4, other) {
|
|
399
|
+
return this.structOf('->', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
400
|
+
}
|
|
401
|
+
function anyImpliedBy(_this__u8e3s4, other) {
|
|
402
|
+
var t = this.convertToTerm(_this__u8e3s4);
|
|
403
|
+
var tmp;
|
|
404
|
+
if (isInterface(t, Struct)) {
|
|
405
|
+
tmp = this.ruleOf(t, this.convertToTerm(other), []);
|
|
406
|
+
} else {
|
|
407
|
+
raiseErrorConvertingTo(_this__u8e3s4, getKClass(Struct));
|
|
408
|
+
}
|
|
409
|
+
return tmp;
|
|
410
|
+
}
|
|
411
|
+
function anyIf(_this__u8e3s4, other) {
|
|
412
|
+
return this.anyImpliedBy(_this__u8e3s4, other);
|
|
413
|
+
}
|
|
414
|
+
function anyImpliedByVararg(_this__u8e3s4, other) {
|
|
415
|
+
var tmp = Companion_instance_1;
|
|
416
|
+
// Inline function 'kotlin.collections.map' call
|
|
417
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
418
|
+
var destination = ArrayList_init_$Create$(other.length);
|
|
419
|
+
var inductionVariable = 0;
|
|
420
|
+
var last = other.length;
|
|
421
|
+
while (inductionVariable < last) {
|
|
422
|
+
var item = other[inductionVariable];
|
|
423
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
424
|
+
var tmp$ret$2 = this.convertToTerm(item);
|
|
425
|
+
destination.l(tmp$ret$2);
|
|
426
|
+
}
|
|
427
|
+
return this.anyImpliedBy(_this__u8e3s4, tmp.wrapIterableIfNeeded(destination));
|
|
428
|
+
}
|
|
429
|
+
function anyIfVararg(_this__u8e3s4, other) {
|
|
430
|
+
return this.anyImpliedByVararg(_this__u8e3s4, other.slice());
|
|
431
|
+
}
|
|
432
|
+
initMetadataForInterface(LogicProgrammingScopeWithOperators, 'LogicProgrammingScopeWithOperators', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
433
|
+
function at_end_of_stream1(alias) {
|
|
434
|
+
return this.structOf('at_end_of_stream', [this.convertToTerm(alias)]);
|
|
435
|
+
}
|
|
436
|
+
function call1(goal) {
|
|
437
|
+
return this.structOf('call', [this.convertToTerm(goal)]);
|
|
438
|
+
}
|
|
439
|
+
function catch3(goal, error, continuation) {
|
|
440
|
+
return this.structOf('catch', [this.convertToTerm(goal), this.convertToTerm(error), this.convertToTerm(continuation)]);
|
|
441
|
+
}
|
|
442
|
+
function throw1(error) {
|
|
443
|
+
return this.structOf('throw', [this.convertToTerm(error)]);
|
|
444
|
+
}
|
|
445
|
+
function not1(goal) {
|
|
446
|
+
return this.structOf('not', [this.convertToTerm(goal)]);
|
|
447
|
+
}
|
|
448
|
+
function naf1(goal) {
|
|
449
|
+
return this.structOf('\\+', [this.convertToTerm(goal)]);
|
|
450
|
+
}
|
|
451
|
+
function assert1(clause) {
|
|
452
|
+
return this.structOf('assert', [this.convertToTerm(clause)]);
|
|
453
|
+
}
|
|
454
|
+
function asserta1(clause) {
|
|
455
|
+
return this.structOf('asserta', [this.convertToTerm(clause)]);
|
|
456
|
+
}
|
|
457
|
+
function assertz1(clause) {
|
|
458
|
+
return this.structOf('assertz', [this.convertToTerm(clause)]);
|
|
459
|
+
}
|
|
460
|
+
function arg3(index, compound, argument) {
|
|
461
|
+
return this.structOf('arg', [this.convertToTerm(index), this.convertToTerm(compound), this.convertToTerm(argument)]);
|
|
462
|
+
}
|
|
463
|
+
function atom1(atom) {
|
|
464
|
+
return this.structOf('atom', [this.convertToTerm(atom)]);
|
|
465
|
+
}
|
|
466
|
+
function atomic1(atomic) {
|
|
467
|
+
return this.structOf('atomic', [this.convertToTerm(atomic)]);
|
|
468
|
+
}
|
|
469
|
+
function between3(min, max, number) {
|
|
470
|
+
return this.structOf('between', [this.convertToTerm(min), this.convertToTerm(max), this.convertToTerm(number)]);
|
|
471
|
+
}
|
|
472
|
+
function callable1(goal) {
|
|
473
|
+
return this.structOf('callable', [this.convertToTerm(goal)]);
|
|
474
|
+
}
|
|
475
|
+
function compound1(struct) {
|
|
476
|
+
return this.structOf('compound', [this.convertToTerm(struct)]);
|
|
477
|
+
}
|
|
478
|
+
function current_op3(precedence, specifier, functor) {
|
|
479
|
+
return this.structOf('current_op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
480
|
+
}
|
|
481
|
+
function op3(precedence, specifier, functor) {
|
|
482
|
+
return this.structOf('op', [this.convertToTerm(precedence), this.convertToTerm(specifier), this.convertToTerm(functor)]);
|
|
483
|
+
}
|
|
484
|
+
function findall3(template, goal, bag) {
|
|
485
|
+
return this.structOf('findall', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
486
|
+
}
|
|
487
|
+
function float1(number) {
|
|
488
|
+
return this.structOf('float', [this.convertToTerm(number)]);
|
|
489
|
+
}
|
|
490
|
+
function functor3(struct, functor, arity) {
|
|
491
|
+
return this.structOf('functor', [this.convertToTerm(struct), this.convertToTerm(functor), this.convertToTerm(arity)]);
|
|
492
|
+
}
|
|
493
|
+
function ground1(term) {
|
|
494
|
+
return this.structOf('ground', [this.convertToTerm(term)]);
|
|
495
|
+
}
|
|
496
|
+
function integer1(number) {
|
|
497
|
+
return this.structOf('integer', [this.convertToTerm(number)]);
|
|
498
|
+
}
|
|
499
|
+
function natural(number) {
|
|
500
|
+
return this.structOf('natural', [this.convertToTerm(number)]);
|
|
501
|
+
}
|
|
502
|
+
function nonvar1(number) {
|
|
503
|
+
return this.structOf('nonvar', [this.convertToTerm(number)]);
|
|
504
|
+
}
|
|
505
|
+
function number1(number) {
|
|
506
|
+
return this.structOf('number', [this.convertToTerm(number)]);
|
|
507
|
+
}
|
|
508
|
+
function var1(term) {
|
|
509
|
+
return this.structOf('var', [this.convertToTerm(term)]);
|
|
510
|
+
}
|
|
511
|
+
function write1(term) {
|
|
512
|
+
return this.structOf('write', [this.convertToTerm(term)]);
|
|
513
|
+
}
|
|
514
|
+
function univ2(_this__u8e3s4, other) {
|
|
515
|
+
return this.structOf('=..', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(other)]);
|
|
516
|
+
}
|
|
517
|
+
function eq2(_this__u8e3s4, right) {
|
|
518
|
+
return this.structOf('=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
519
|
+
}
|
|
520
|
+
function neq2(_this__u8e3s4, right) {
|
|
521
|
+
return this.structOf('\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
522
|
+
}
|
|
523
|
+
function id2(_this__u8e3s4, right) {
|
|
524
|
+
return this.structOf('==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
525
|
+
}
|
|
526
|
+
function nid2(_this__u8e3s4, right) {
|
|
527
|
+
return this.structOf('\\==', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
405
528
|
}
|
|
406
|
-
function
|
|
407
|
-
return this.structOf('
|
|
529
|
+
function arithEq2(_this__u8e3s4, right) {
|
|
530
|
+
return this.structOf('=:=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
408
531
|
}
|
|
409
|
-
function
|
|
410
|
-
return this.structOf('
|
|
532
|
+
function arithNeq2(_this__u8e3s4, right) {
|
|
533
|
+
return this.structOf('=\\=', [this.convertToTerm(_this__u8e3s4), this.convertToTerm(right)]);
|
|
411
534
|
}
|
|
412
|
-
function
|
|
413
|
-
return this.structOf('
|
|
535
|
+
function member2(item, list) {
|
|
536
|
+
return this.structOf('member', [this.convertToTerm(item), this.convertToTerm(list)]);
|
|
414
537
|
}
|
|
415
|
-
function
|
|
416
|
-
return this.structOf('
|
|
538
|
+
function retract1(clause) {
|
|
539
|
+
return this.structOf('retract', [this.convertToTerm(clause)]);
|
|
417
540
|
}
|
|
418
|
-
function
|
|
419
|
-
return this.structOf('
|
|
541
|
+
function append3(left, right, result) {
|
|
542
|
+
return this.structOf('append', [this.convertToTerm(left), this.convertToTerm(right), this.convertToTerm(result)]);
|
|
420
543
|
}
|
|
421
|
-
function
|
|
422
|
-
|
|
423
|
-
var tmp;
|
|
424
|
-
if (isInterface(t, Struct)) {
|
|
425
|
-
tmp = this.ruleOf(t, this.convertToTerm(other), []);
|
|
426
|
-
} else {
|
|
427
|
-
raiseErrorConvertingTo(_this__u8e3s4, getKClass(Struct));
|
|
428
|
-
}
|
|
429
|
-
return tmp;
|
|
544
|
+
function retractall1(clause) {
|
|
545
|
+
return this.structOf('retractall', [this.convertToTerm(clause)]);
|
|
430
546
|
}
|
|
431
|
-
function
|
|
432
|
-
return this.
|
|
547
|
+
function abolish1(indicator) {
|
|
548
|
+
return this.structOf('abolish', [this.convertToTerm(indicator)]);
|
|
433
549
|
}
|
|
434
|
-
function
|
|
435
|
-
|
|
436
|
-
// Inline function 'kotlin.collections.map' call
|
|
437
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
438
|
-
var destination = ArrayList_init_$Create$(other.length);
|
|
439
|
-
var inductionVariable = 0;
|
|
440
|
-
var last = other.length;
|
|
441
|
-
while (inductionVariable < last) {
|
|
442
|
-
var item = other[inductionVariable];
|
|
443
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
444
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
445
|
-
destination.l(tmp$ret$2);
|
|
446
|
-
}
|
|
447
|
-
return this.anyImpliedBy(_this__u8e3s4, tmp.wrapIterableIfNeeded(destination));
|
|
550
|
+
function atom_chars2(atom, chars) {
|
|
551
|
+
return this.structOf('atom_chars', [this.convertToTerm(atom), this.convertToTerm(chars)]);
|
|
448
552
|
}
|
|
449
|
-
function
|
|
450
|
-
return this.
|
|
553
|
+
function atom_codes2(atom, codes) {
|
|
554
|
+
return this.structOf('atom_codes', [this.convertToTerm(atom), this.convertToTerm(codes)]);
|
|
451
555
|
}
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
var tmp = sequenceOf(arrayConcat([[term], terms]));
|
|
455
|
-
return this.structOfSequence(_this__u8e3s4, map(tmp, MinimalLogicProgrammingScope$invoke$lambda(this)));
|
|
556
|
+
function atom_concat3(first, second, result) {
|
|
557
|
+
return this.structOf('atom_concat', [this.convertToTerm(first), this.convertToTerm(second), this.convertToTerm(result)]);
|
|
456
558
|
}
|
|
457
|
-
function
|
|
458
|
-
|
|
459
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
460
|
-
var destination = ArrayList_init_$Create$(args.length);
|
|
461
|
-
var inductionVariable = 0;
|
|
462
|
-
var last = args.length;
|
|
463
|
-
while (inductionVariable < last) {
|
|
464
|
-
var item = args[inductionVariable];
|
|
465
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
466
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
467
|
-
destination.l(tmp$ret$2);
|
|
468
|
-
}
|
|
469
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
470
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
471
|
-
return this.structOf(functor, tmp$ret$3.slice());
|
|
559
|
+
function atom_length2(atom, length) {
|
|
560
|
+
return this.structOf('atom_length', [this.convertToTerm(atom), this.convertToTerm(length)]);
|
|
472
561
|
}
|
|
473
|
-
function
|
|
474
|
-
|
|
475
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
476
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
477
|
-
var inductionVariable = 0;
|
|
478
|
-
var last = terms.length;
|
|
479
|
-
while (inductionVariable < last) {
|
|
480
|
-
var item = terms[inductionVariable];
|
|
481
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
482
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
483
|
-
destination.l(tmp$ret$2);
|
|
484
|
-
}
|
|
485
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
486
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
487
|
-
return this.tupleOf(tmp$ret$3.slice());
|
|
562
|
+
function char_code2(char, code) {
|
|
563
|
+
return this.structOf('char_code', [this.convertToTerm(char), this.convertToTerm(code)]);
|
|
488
564
|
}
|
|
489
|
-
function
|
|
490
|
-
|
|
491
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
492
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
493
|
-
var inductionVariable = 0;
|
|
494
|
-
var last = terms.length;
|
|
495
|
-
while (inductionVariable < last) {
|
|
496
|
-
var item = terms[inductionVariable];
|
|
497
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
498
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
499
|
-
destination.l(tmp$ret$2);
|
|
500
|
-
}
|
|
501
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
502
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
503
|
-
return this.logicListOf(tmp$ret$3.slice());
|
|
565
|
+
function clause2(head, body) {
|
|
566
|
+
return this.structOf('clause', [this.convertToTerm(head), this.convertToTerm(body)]);
|
|
504
567
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
508
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
509
|
-
var inductionVariable = 0;
|
|
510
|
-
var last = terms.length;
|
|
511
|
-
while (inductionVariable < last) {
|
|
512
|
-
var item = terms[inductionVariable];
|
|
513
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
514
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
515
|
-
destination.l(tmp$ret$2);
|
|
516
|
-
}
|
|
517
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
518
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
519
|
-
return this.blockOf(tmp$ret$3.slice());
|
|
568
|
+
function copy_term2(term, copy) {
|
|
569
|
+
return this.structOf('copy_term', [this.convertToTerm(term), this.convertToTerm(copy)]);
|
|
520
570
|
}
|
|
521
|
-
function
|
|
522
|
-
|
|
523
|
-
return this.factOf(isInterface(tmp, Struct) ? tmp : THROW_CCE());
|
|
571
|
+
function current_flag2(name, value) {
|
|
572
|
+
return this.structOf('current_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
524
573
|
}
|
|
525
|
-
function
|
|
526
|
-
return this.
|
|
574
|
+
function current_prolog_flag2(name, value) {
|
|
575
|
+
return this.structOf('current_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
527
576
|
}
|
|
528
|
-
function
|
|
529
|
-
|
|
530
|
-
// Inline function 'kotlin.collections.map' call
|
|
531
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
532
|
-
var destination = ArrayList_init_$Create$(terms.length);
|
|
533
|
-
var inductionVariable = 0;
|
|
534
|
-
var last = terms.length;
|
|
535
|
-
while (inductionVariable < last) {
|
|
536
|
-
var item = terms[inductionVariable];
|
|
537
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
538
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
539
|
-
destination.l(tmp$ret$2);
|
|
540
|
-
}
|
|
541
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
542
|
-
var tmp$ret$3 = copyToArray(destination);
|
|
543
|
-
return this.directiveOf(tmp, tmp$ret$3.slice());
|
|
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)]);
|
|
544
579
|
}
|
|
545
|
-
function
|
|
546
|
-
return
|
|
580
|
+
function number_chars2(first, second) {
|
|
581
|
+
return this.structOf('number_chars', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
547
582
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
var this_0 = listOf(items.slice());
|
|
551
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
552
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
553
|
-
var _iterator__ex2g4s = this_0.n();
|
|
554
|
-
while (_iterator__ex2g4s.q()) {
|
|
555
|
-
var item = _iterator__ex2g4s.r();
|
|
556
|
-
var tmp$ret$2 = this.convertToTerm(item);
|
|
557
|
-
destination.l(tmp$ret$2);
|
|
558
|
-
}
|
|
559
|
-
// Inline function 'kotlin.let' call
|
|
560
|
-
var tmp;
|
|
561
|
-
if (!(tail == null)) {
|
|
562
|
-
tmp = this.o12(destination, this.convertToTerm(tail));
|
|
563
|
-
} else {
|
|
564
|
-
tmp = this.logicListOfIterable(destination);
|
|
565
|
-
}
|
|
566
|
-
return tmp;
|
|
583
|
+
function number_codes2(first, second) {
|
|
584
|
+
return this.structOf('number_codes', [this.convertToTerm(first), this.convertToTerm(second)]);
|
|
567
585
|
}
|
|
568
|
-
function
|
|
569
|
-
|
|
570
|
-
return $super === VOID ? this.v3b(items, tail) : logicList(items, tail);
|
|
586
|
+
function bagof3(template, goal, bag) {
|
|
587
|
+
return this.structOf('bagof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
571
588
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
574
|
-
return isInterface(tmp, Rule) ? tmp : THROW_CCE();
|
|
589
|
+
function setof3(template, goal, bag) {
|
|
590
|
+
return this.structOf('setof', [this.convertToTerm(template), this.convertToTerm(goal), this.convertToTerm(bag)]);
|
|
575
591
|
}
|
|
576
|
-
function
|
|
577
|
-
|
|
578
|
-
var tmp_0 = getKClass(Directive);
|
|
579
|
-
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$directiveOf$ref(this));
|
|
592
|
+
function consult1(url) {
|
|
593
|
+
return this.structOf('consult', [this.convertToTerm(url)]);
|
|
580
594
|
}
|
|
581
|
-
function
|
|
582
|
-
|
|
583
|
-
var tmp_0 = getKClass(Fact);
|
|
584
|
-
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$factOf$ref(this));
|
|
595
|
+
function set_flag2(name, value) {
|
|
596
|
+
return this.structOf('set_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
585
597
|
}
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
598
|
+
function set_prolog_flag2(name, value) {
|
|
599
|
+
return this.structOf('set_prolog_flag', [this.convertToTerm(name), this.convertToTerm(value)]);
|
|
589
600
|
}
|
|
590
|
-
function
|
|
591
|
-
return
|
|
601
|
+
function dynamic1(indicator) {
|
|
602
|
+
return this.structOf('dynamic', [this.convertToTerm(indicator)]);
|
|
592
603
|
}
|
|
593
|
-
function
|
|
594
|
-
|
|
595
|
-
var tmp;
|
|
596
|
-
if (isInterface(t, Var)) {
|
|
597
|
-
tmp = _this__u8e3s4.l2(t);
|
|
598
|
-
} else {
|
|
599
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
600
|
-
}
|
|
601
|
-
return tmp;
|
|
604
|
+
function static1(indicator) {
|
|
605
|
+
return this.structOf('static', [this.convertToTerm(indicator)]);
|
|
602
606
|
}
|
|
603
|
-
function
|
|
604
|
-
|
|
605
|
-
var tmp;
|
|
606
|
-
if (isInterface(t, Var)) {
|
|
607
|
-
tmp = _this__u8e3s4.j2(t);
|
|
608
|
-
} else {
|
|
609
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
610
|
-
}
|
|
611
|
-
return tmp;
|
|
607
|
+
function solve1(goal) {
|
|
608
|
+
return this.structOf('solve', [this.convertToTerm(goal)]);
|
|
612
609
|
}
|
|
613
|
-
function
|
|
614
|
-
return this.
|
|
610
|
+
function initialization1(goal) {
|
|
611
|
+
return this.structOf('initialization', [this.convertToTerm(goal)]);
|
|
615
612
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
613
|
+
function load1(url) {
|
|
614
|
+
return this.structOf('load', [this.convertToTerm(url)]);
|
|
618
615
|
}
|
|
619
|
-
|
|
620
|
-
|
|
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, [MinimalLogicProgrammingScope, BaseLogicProgrammingScope, Scope, LogicProgrammingScopeWithSubstitutions, LogicProgrammingScopeWithOperators, LogicProgrammingScopeWithPrologStandardLibrary]);
|
|
621
621
|
initMetadataForCompanion(Companion_0);
|
|
622
622
|
initMetadataForClass(DefaultTermificator, 'DefaultTermificator', VOID, AbstractTermificator);
|
|
623
623
|
//endregion
|
|
@@ -628,100 +628,100 @@
|
|
|
628
628
|
}
|
|
629
629
|
function AbstractTermificator$handleSequenceAsList$lambda(this$0) {
|
|
630
630
|
return function (it) {
|
|
631
|
-
return this$0.
|
|
631
|
+
return this$0.s3o(it);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
function AbstractTermificator$handleCharAsString$ref(p0) {
|
|
635
635
|
return constructCallableReference(function (p0_0) {
|
|
636
|
-
return p0.
|
|
637
|
-
}, 1, 0,
|
|
636
|
+
return p0.t3o(p0_0.p1_1);
|
|
637
|
+
}, 1, 0, 85, 'handleCharAsString', [p0]);
|
|
638
638
|
}
|
|
639
639
|
function AbstractTermificator$handleBooleanAsTruth$ref(p0) {
|
|
640
640
|
return constructCallableReference(function (p0_0) {
|
|
641
|
-
return p0.
|
|
642
|
-
}, 1, 0,
|
|
641
|
+
return p0.u3o(p0_0);
|
|
642
|
+
}, 1, 0, 86, 'handleBooleanAsTruth', [p0]);
|
|
643
643
|
}
|
|
644
644
|
function AbstractTermificator$handleStringAsAtomOrVariable$ref(p0) {
|
|
645
645
|
return constructCallableReference(function (p0_0) {
|
|
646
|
-
return p0.
|
|
647
|
-
}, 1, 0,
|
|
646
|
+
return p0.v3o(p0_0);
|
|
647
|
+
}, 1, 0, 87, 'handleStringAsAtomOrVariable', [p0]);
|
|
648
648
|
}
|
|
649
649
|
function AbstractTermificator$handleBigIntegerAsInteger$ref(p0) {
|
|
650
650
|
return constructCallableReference(function (p0_0) {
|
|
651
|
-
return p0.
|
|
652
|
-
}, 1, 0,
|
|
651
|
+
return p0.w3o(p0_0);
|
|
652
|
+
}, 1, 0, 88, 'handleBigIntegerAsInteger', [p0]);
|
|
653
653
|
}
|
|
654
654
|
function AbstractTermificator$handleBigDecimalAsReal$ref(p0) {
|
|
655
655
|
return constructCallableReference(function (p0_0) {
|
|
656
|
-
return p0.
|
|
657
|
-
}, 1, 0,
|
|
656
|
+
return p0.x3o(p0_0);
|
|
657
|
+
}, 1, 0, 89, 'handleBigDecimalAsReal', [p0]);
|
|
658
658
|
}
|
|
659
659
|
function AbstractTermificator$handleNumberAsNumeric$ref(p0) {
|
|
660
660
|
return constructCallableReference(function (p0_0) {
|
|
661
|
-
return p0.
|
|
662
|
-
}, 1, 0,
|
|
661
|
+
return p0.y3o(p0_0);
|
|
662
|
+
}, 1, 0, 90, 'handleNumberAsNumeric', [p0]);
|
|
663
663
|
}
|
|
664
664
|
function AbstractTermificator$handleArrayAsList$ref(p0) {
|
|
665
665
|
return constructCallableReference(function (p0_0) {
|
|
666
|
-
return p0.
|
|
667
|
-
}, 1, 0,
|
|
666
|
+
return p0.z3o(p0_0);
|
|
667
|
+
}, 1, 0, 91, 'handleArrayAsList', [p0]);
|
|
668
668
|
}
|
|
669
669
|
function AbstractTermificator$handleSequenceAsList$ref(p0) {
|
|
670
670
|
return constructCallableReference(function (p0_0) {
|
|
671
|
-
return p0.
|
|
672
|
-
}, 1, 0,
|
|
671
|
+
return p0.a3p(p0_0);
|
|
672
|
+
}, 1, 0, 92, 'handleSequenceAsList', [p0]);
|
|
673
673
|
}
|
|
674
674
|
function AbstractTermificator$handleIterableAsList$ref(p0) {
|
|
675
675
|
return constructCallableReference(function (p0_0) {
|
|
676
|
-
return p0.
|
|
677
|
-
}, 1, 0,
|
|
676
|
+
return p0.b3p(p0_0);
|
|
677
|
+
}, 1, 0, 93, 'handleIterableAsList', [p0]);
|
|
678
678
|
}
|
|
679
679
|
function AbstractTermificator$handleKotlinListAsLogicList$ref(p0) {
|
|
680
680
|
return constructCallableReference(function (p0_0) {
|
|
681
|
-
return p0.
|
|
682
|
-
}, 1, 0,
|
|
681
|
+
return p0.c3p(p0_0);
|
|
682
|
+
}, 1, 0, 94, 'handleKotlinListAsLogicList', [p0]);
|
|
683
683
|
}
|
|
684
684
|
function AbstractTermificator$handleSetAsBlock$ref(p0) {
|
|
685
685
|
return constructCallableReference(function (p0_0) {
|
|
686
|
-
return p0.
|
|
687
|
-
}, 1, 0,
|
|
686
|
+
return p0.d3p(p0_0);
|
|
687
|
+
}, 1, 0, 95, 'handleSetAsBlock', [p0]);
|
|
688
688
|
}
|
|
689
689
|
function AbstractTermificator$handlePairAsTuple$ref(p0) {
|
|
690
690
|
return constructCallableReference(function (p0_0) {
|
|
691
|
-
return p0.
|
|
692
|
-
}, 1, 0,
|
|
691
|
+
return p0.e3p(p0_0);
|
|
692
|
+
}, 1, 0, 96, 'handlePairAsTuple', [p0]);
|
|
693
693
|
}
|
|
694
694
|
function AbstractTermificator$handleTripletAsTuple$ref(p0) {
|
|
695
695
|
return constructCallableReference(function (p0_0) {
|
|
696
|
-
return p0.
|
|
697
|
-
}, 1, 0,
|
|
696
|
+
return p0.f3p(p0_0);
|
|
697
|
+
}, 1, 0, 97, 'handleTripletAsTuple', [p0]);
|
|
698
698
|
}
|
|
699
699
|
function AbstractTermificator$handleKeyValuePairAsStruct$ref(p0) {
|
|
700
700
|
return constructCallableReference(function (p0_0) {
|
|
701
|
-
return p0.
|
|
702
|
-
}, 1, 0,
|
|
701
|
+
return p0.g3p(p0_0);
|
|
702
|
+
}, 1, 0, 98, 'handleKeyValuePairAsStruct', [p0]);
|
|
703
703
|
}
|
|
704
704
|
function AbstractTermificator$handleMapAsBlock$ref(p0) {
|
|
705
705
|
return constructCallableReference(function (p0_0) {
|
|
706
|
-
return p0.
|
|
707
|
-
}, 1, 0,
|
|
706
|
+
return p0.h3p(p0_0);
|
|
707
|
+
}, 1, 0, 99, 'handleMapAsBlock', [p0]);
|
|
708
708
|
}
|
|
709
709
|
function AbstractTermificator(scope) {
|
|
710
|
-
this.
|
|
710
|
+
this.q3o_1 = scope;
|
|
711
711
|
var tmp = this;
|
|
712
712
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
713
|
-
tmp.
|
|
713
|
+
tmp.r3o_1 = LinkedHashMap_init_$Create$();
|
|
714
714
|
}
|
|
715
|
-
protoOf(AbstractTermificator).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(AbstractTermificator).t1j = function () {
|
|
716
|
+
return this.q3o_1;
|
|
717
717
|
};
|
|
718
|
-
protoOf(AbstractTermificator).
|
|
719
|
-
var tmp0 = this.
|
|
718
|
+
protoOf(AbstractTermificator).i3p = function (type, conversion) {
|
|
719
|
+
var tmp0 = this.r3o_1;
|
|
720
720
|
// Inline function 'kotlin.collections.set' call
|
|
721
721
|
var value = AbstractTermificator$handleType$lambda(conversion);
|
|
722
722
|
tmp0.t4(type, value);
|
|
723
723
|
};
|
|
724
|
-
protoOf(AbstractTermificator).
|
|
724
|
+
protoOf(AbstractTermificator).s3o = function (value) {
|
|
725
725
|
$l$block: {
|
|
726
726
|
// Inline function 'kotlin.requireNotNull' call
|
|
727
727
|
if (value == null) {
|
|
@@ -738,51 +738,51 @@
|
|
|
738
738
|
return value.toTerm();
|
|
739
739
|
}
|
|
740
740
|
var type = getKClassFromExpression(value);
|
|
741
|
-
var exactConverter = this.
|
|
741
|
+
var exactConverter = this.r3o_1.k2(type);
|
|
742
742
|
if (!(exactConverter == null)) {
|
|
743
743
|
return exactConverter(value);
|
|
744
744
|
}
|
|
745
745
|
// Inline function 'kotlin.collections.iterator' call
|
|
746
|
-
var _iterator__ex2g4s = this.
|
|
746
|
+
var _iterator__ex2g4s = this.r3o_1.d1().n();
|
|
747
747
|
while (_iterator__ex2g4s.q()) {
|
|
748
748
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
749
749
|
// Inline function 'kotlin.collections.component1' call
|
|
750
|
-
var superType = _destruct__k2r9zo.
|
|
750
|
+
var superType = _destruct__k2r9zo.g2();
|
|
751
751
|
// Inline function 'kotlin.collections.component2' call
|
|
752
|
-
var converter = _destruct__k2r9zo.
|
|
753
|
-
if (superType.
|
|
752
|
+
var converter = _destruct__k2r9zo.h2();
|
|
753
|
+
if (superType.s9(value)) {
|
|
754
754
|
return converter(value);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
raiseErrorConvertingTo(value, getKClass(Term));
|
|
758
758
|
};
|
|
759
759
|
protoOf(AbstractTermificator).toTerm = function (value) {
|
|
760
|
-
return this.
|
|
760
|
+
return this.s3o(value);
|
|
761
761
|
};
|
|
762
|
-
protoOf(AbstractTermificator).
|
|
763
|
-
return this.
|
|
762
|
+
protoOf(AbstractTermificator).u3o = function (value) {
|
|
763
|
+
return this.t1j().truthOf(value);
|
|
764
764
|
};
|
|
765
|
-
protoOf(AbstractTermificator).
|
|
766
|
-
return this.
|
|
765
|
+
protoOf(AbstractTermificator).t3o = function (value) {
|
|
766
|
+
return this.s3o(toString_0(value));
|
|
767
767
|
};
|
|
768
|
-
protoOf(AbstractTermificator).
|
|
768
|
+
protoOf(AbstractTermificator).v3o = function (value) {
|
|
769
769
|
var tmp;
|
|
770
770
|
// Inline function 'kotlin.text.matches' call
|
|
771
|
-
if (Companion_getInstance().
|
|
772
|
-
tmp = this.
|
|
771
|
+
if (Companion_getInstance().b16_1.pb(value)) {
|
|
772
|
+
tmp = this.t1j().varOf(value);
|
|
773
773
|
} else {
|
|
774
|
-
tmp = this.
|
|
774
|
+
tmp = this.t1j().atomOf(value);
|
|
775
775
|
}
|
|
776
776
|
return tmp;
|
|
777
777
|
};
|
|
778
|
-
protoOf(AbstractTermificator).
|
|
779
|
-
return this.
|
|
778
|
+
protoOf(AbstractTermificator).w3o = function (value) {
|
|
779
|
+
return this.t1j().intOfBigInteger(value);
|
|
780
780
|
};
|
|
781
|
-
protoOf(AbstractTermificator).
|
|
782
|
-
return this.
|
|
781
|
+
protoOf(AbstractTermificator).x3o = function (value) {
|
|
782
|
+
return this.t1j().realOfBigDecimal(value);
|
|
783
783
|
};
|
|
784
|
-
protoOf(AbstractTermificator).
|
|
785
|
-
var tmp = this.
|
|
784
|
+
protoOf(AbstractTermificator).z3o = function (value) {
|
|
785
|
+
var tmp = this.t1j();
|
|
786
786
|
// Inline function 'kotlin.collections.map' call
|
|
787
787
|
var this_0 = assertItemsAreNotNull(asIterable(value));
|
|
788
788
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -790,18 +790,18 @@
|
|
|
790
790
|
var _iterator__ex2g4s = this_0.n();
|
|
791
791
|
while (_iterator__ex2g4s.q()) {
|
|
792
792
|
var item = _iterator__ex2g4s.r();
|
|
793
|
-
var tmp$ret$2 = this.
|
|
793
|
+
var tmp$ret$2 = this.s3o(item);
|
|
794
794
|
destination.l(tmp$ret$2);
|
|
795
795
|
}
|
|
796
796
|
return tmp.logicListOfIterable(destination);
|
|
797
797
|
};
|
|
798
|
-
protoOf(AbstractTermificator).
|
|
799
|
-
var tmp = this.
|
|
798
|
+
protoOf(AbstractTermificator).a3p = function (value) {
|
|
799
|
+
var tmp = this.t1j();
|
|
800
800
|
var tmp_0 = assertItemsAreNotNull_0(value);
|
|
801
801
|
return tmp.logicListOfSequence(map(tmp_0, AbstractTermificator$handleSequenceAsList$lambda(this)));
|
|
802
802
|
};
|
|
803
|
-
protoOf(AbstractTermificator).
|
|
804
|
-
var tmp = this.
|
|
803
|
+
protoOf(AbstractTermificator).b3p = function (value) {
|
|
804
|
+
var tmp = this.t1j();
|
|
805
805
|
// Inline function 'kotlin.collections.map' call
|
|
806
806
|
var this_0 = assertItemsAreNotNull(value);
|
|
807
807
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -809,13 +809,13 @@
|
|
|
809
809
|
var _iterator__ex2g4s = this_0.n();
|
|
810
810
|
while (_iterator__ex2g4s.q()) {
|
|
811
811
|
var item = _iterator__ex2g4s.r();
|
|
812
|
-
var tmp$ret$2 = this.
|
|
812
|
+
var tmp$ret$2 = this.s3o(item);
|
|
813
813
|
destination.l(tmp$ret$2);
|
|
814
814
|
}
|
|
815
815
|
return tmp.logicListOfIterable(destination);
|
|
816
816
|
};
|
|
817
|
-
protoOf(AbstractTermificator).
|
|
818
|
-
var tmp = this.
|
|
817
|
+
protoOf(AbstractTermificator).c3p = function (value) {
|
|
818
|
+
var tmp = this.t1j();
|
|
819
819
|
// Inline function 'kotlin.collections.map' call
|
|
820
820
|
var this_0 = assertItemsAreNotNull_1(value);
|
|
821
821
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -823,13 +823,13 @@
|
|
|
823
823
|
var _iterator__ex2g4s = this_0.n();
|
|
824
824
|
while (_iterator__ex2g4s.q()) {
|
|
825
825
|
var item = _iterator__ex2g4s.r();
|
|
826
|
-
var tmp$ret$2 = this.
|
|
826
|
+
var tmp$ret$2 = this.s3o(item);
|
|
827
827
|
destination.l(tmp$ret$2);
|
|
828
828
|
}
|
|
829
829
|
return tmp.logicListOfIterable(destination);
|
|
830
830
|
};
|
|
831
|
-
protoOf(AbstractTermificator).
|
|
832
|
-
var tmp = this.
|
|
831
|
+
protoOf(AbstractTermificator).d3p = function (value) {
|
|
832
|
+
var tmp = this.t1j();
|
|
833
833
|
// Inline function 'kotlin.collections.map' call
|
|
834
834
|
var this_0 = assertItemsAreNotNull(value);
|
|
835
835
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -837,22 +837,22 @@
|
|
|
837
837
|
var _iterator__ex2g4s = this_0.n();
|
|
838
838
|
while (_iterator__ex2g4s.q()) {
|
|
839
839
|
var item = _iterator__ex2g4s.r();
|
|
840
|
-
var tmp$ret$2 = this.
|
|
840
|
+
var tmp$ret$2 = this.s3o(item);
|
|
841
841
|
destination.l(tmp$ret$2);
|
|
842
842
|
}
|
|
843
843
|
return tmp.blockOfIterable(destination);
|
|
844
844
|
};
|
|
845
|
-
protoOf(AbstractTermificator).
|
|
846
|
-
return this.
|
|
845
|
+
protoOf(AbstractTermificator).e3p = function (value) {
|
|
846
|
+
return this.t1j().tupleOf([this.s3o(value.first), this.s3o(value.second)]);
|
|
847
847
|
};
|
|
848
|
-
protoOf(AbstractTermificator).
|
|
849
|
-
return this.
|
|
848
|
+
protoOf(AbstractTermificator).f3p = function (value) {
|
|
849
|
+
return this.t1j().tupleOf([this.s3o(value.ck_1), this.s3o(value.dk_1), this.s3o(value.ek_1)]);
|
|
850
850
|
};
|
|
851
|
-
protoOf(AbstractTermificator).
|
|
852
|
-
return this.
|
|
851
|
+
protoOf(AbstractTermificator).g3p = function (value) {
|
|
852
|
+
return this.t1j().structOf(':', [this.s3o(value.g2()), this.s3o(value.h2())]);
|
|
853
853
|
};
|
|
854
|
-
protoOf(AbstractTermificator).
|
|
855
|
-
var tmp = this.
|
|
854
|
+
protoOf(AbstractTermificator).h3p = function (value) {
|
|
855
|
+
var tmp = this.t1j();
|
|
856
856
|
// Inline function 'kotlin.collections.map' call
|
|
857
857
|
var this_0 = assertItemsAreNotNull(value.d1());
|
|
858
858
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -860,68 +860,68 @@
|
|
|
860
860
|
var _iterator__ex2g4s = this_0.n();
|
|
861
861
|
while (_iterator__ex2g4s.q()) {
|
|
862
862
|
var item = _iterator__ex2g4s.r();
|
|
863
|
-
var tmp$ret$2 = this.
|
|
863
|
+
var tmp$ret$2 = this.g3p(item);
|
|
864
864
|
destination.l(tmp$ret$2);
|
|
865
865
|
}
|
|
866
866
|
return tmp.blockOfIterable(destination);
|
|
867
867
|
};
|
|
868
|
-
protoOf(AbstractTermificator).
|
|
868
|
+
protoOf(AbstractTermificator).j3p = function () {
|
|
869
869
|
var tmp = getKClass(Char);
|
|
870
|
-
this.
|
|
871
|
-
var tmp_0 = PrimitiveClasses_getInstance().
|
|
872
|
-
this.
|
|
873
|
-
var tmp_1 = PrimitiveClasses_getInstance().
|
|
874
|
-
this.
|
|
870
|
+
this.i3p(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
871
|
+
var tmp_0 = PrimitiveClasses_getInstance().da();
|
|
872
|
+
this.i3p(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
873
|
+
var tmp_1 = PrimitiveClasses_getInstance().la();
|
|
874
|
+
this.i3p(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
875
875
|
var tmp_2 = getKClass(BigInteger);
|
|
876
|
-
this.
|
|
876
|
+
this.i3p(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
877
877
|
var tmp_3 = getKClass(BigDecimal);
|
|
878
|
-
this.
|
|
879
|
-
var tmp_4 = PrimitiveClasses_getInstance().
|
|
880
|
-
this.
|
|
881
|
-
var tmp_5 = PrimitiveClasses_getInstance().
|
|
882
|
-
this.
|
|
878
|
+
this.i3p(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
879
|
+
var tmp_4 = PrimitiveClasses_getInstance().ba();
|
|
880
|
+
this.i3p(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
881
|
+
var tmp_5 = PrimitiveClasses_getInstance().ka();
|
|
882
|
+
this.i3p(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
883
883
|
var tmp_6 = getKClass(Sequence);
|
|
884
|
-
this.
|
|
884
|
+
this.i3p(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
885
885
|
var tmp_7 = getKClass(Iterable);
|
|
886
|
-
this.
|
|
886
|
+
this.i3p(tmp_7, AbstractTermificator$handleIterableAsList$ref(this));
|
|
887
887
|
};
|
|
888
|
-
protoOf(AbstractTermificator).
|
|
888
|
+
protoOf(AbstractTermificator).k3p = function () {
|
|
889
889
|
var tmp = getKClass(Char);
|
|
890
|
-
this.
|
|
891
|
-
var tmp_0 = PrimitiveClasses_getInstance().
|
|
892
|
-
this.
|
|
893
|
-
var tmp_1 = PrimitiveClasses_getInstance().
|
|
894
|
-
this.
|
|
890
|
+
this.i3p(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
891
|
+
var tmp_0 = PrimitiveClasses_getInstance().da();
|
|
892
|
+
this.i3p(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
893
|
+
var tmp_1 = PrimitiveClasses_getInstance().la();
|
|
894
|
+
this.i3p(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
895
895
|
var tmp_2 = getKClass(BigInteger);
|
|
896
|
-
this.
|
|
896
|
+
this.i3p(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
897
897
|
var tmp_3 = getKClass(BigDecimal);
|
|
898
|
-
this.
|
|
899
|
-
var tmp_4 = PrimitiveClasses_getInstance().
|
|
900
|
-
this.
|
|
901
|
-
var tmp_5 = PrimitiveClasses_getInstance().
|
|
902
|
-
this.
|
|
898
|
+
this.i3p(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
899
|
+
var tmp_4 = PrimitiveClasses_getInstance().ba();
|
|
900
|
+
this.i3p(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
901
|
+
var tmp_5 = PrimitiveClasses_getInstance().ka();
|
|
902
|
+
this.i3p(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
903
903
|
var tmp_6 = getKClass(Sequence);
|
|
904
|
-
this.
|
|
904
|
+
this.i3p(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
905
905
|
var tmp_7 = getKClass(KtList);
|
|
906
|
-
this.
|
|
906
|
+
this.i3p(tmp_7, AbstractTermificator$handleKotlinListAsLogicList$ref(this));
|
|
907
907
|
var tmp_8 = getKClass(KtSet);
|
|
908
|
-
this.
|
|
908
|
+
this.i3p(tmp_8, AbstractTermificator$handleSetAsBlock$ref(this));
|
|
909
909
|
var tmp_9 = getKClass(Pair);
|
|
910
|
-
this.
|
|
910
|
+
this.i3p(tmp_9, AbstractTermificator$handlePairAsTuple$ref(this));
|
|
911
911
|
var tmp_10 = getKClass(Triple);
|
|
912
|
-
this.
|
|
912
|
+
this.i3p(tmp_10, AbstractTermificator$handleTripletAsTuple$ref(this));
|
|
913
913
|
var tmp_11 = getKClass(Entry);
|
|
914
|
-
this.
|
|
914
|
+
this.i3p(tmp_11, AbstractTermificator$handleKeyValuePairAsStruct$ref(this));
|
|
915
915
|
var tmp_12 = getKClass(KtMap);
|
|
916
|
-
this.
|
|
916
|
+
this.i3p(tmp_12, AbstractTermificator$handleMapAsBlock$ref(this));
|
|
917
917
|
var tmp_13 = getKClass(Iterable);
|
|
918
|
-
this.
|
|
918
|
+
this.i3p(tmp_13, AbstractTermificator$handleIterableAsList$ref(this));
|
|
919
919
|
};
|
|
920
|
-
protoOf(AbstractTermificator).
|
|
920
|
+
protoOf(AbstractTermificator).l3p = function (novel) {
|
|
921
921
|
if (novel) {
|
|
922
|
-
this.
|
|
922
|
+
this.k3p();
|
|
923
923
|
} else {
|
|
924
|
-
this.
|
|
924
|
+
this.j3p();
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
927
|
function BaseLogicProgrammingScope() {
|
|
@@ -937,244 +937,250 @@
|
|
|
937
937
|
protoOf(Companion).empty = function () {
|
|
938
938
|
return this.of();
|
|
939
939
|
};
|
|
940
|
-
protoOf(Companion).
|
|
941
|
-
return new LogicProgrammingScopeImpl(scope, termificator.
|
|
940
|
+
protoOf(Companion).n3p = function (scope, termificator, variablesProvider) {
|
|
941
|
+
return new LogicProgrammingScopeImpl(scope, termificator.t1j() === scope ? termificator : termificator.u1j(scope), variablesProvider.t1j() === scope ? variablesProvider : variablesProvider.u1j(scope));
|
|
942
942
|
};
|
|
943
943
|
protoOf(Companion).of = function (scope, termificator, variablesProvider, $super) {
|
|
944
944
|
scope = scope === VOID ? Companion_instance.empty() : scope;
|
|
945
945
|
termificator = termificator === VOID ? Companion_instance_3.default(scope) : termificator;
|
|
946
|
-
variablesProvider = variablesProvider === VOID ? Companion_instance_0.
|
|
947
|
-
return $super === VOID ? this.
|
|
946
|
+
variablesProvider = variablesProvider === VOID ? Companion_instance_0.h16(scope) : variablesProvider;
|
|
947
|
+
return $super === VOID ? this.n3p(scope, termificator, variablesProvider) : $super.n3p.call(this, scope, termificator, variablesProvider);
|
|
948
948
|
};
|
|
949
949
|
var Companion_instance_2;
|
|
950
950
|
function Companion_getInstance_1() {
|
|
951
951
|
return Companion_instance_2;
|
|
952
952
|
}
|
|
953
953
|
function LogicProgrammingScopeImpl(scope, termificator, variablesProvider) {
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
954
|
+
this.o3p_1 = scope;
|
|
955
|
+
this.p3p_1 = termificator;
|
|
956
|
+
this.q3p_1 = variablesProvider;
|
|
957
957
|
// Inline function 'kotlin.require' call
|
|
958
|
-
if (!(this.
|
|
958
|
+
if (!(this.o3p_1 === this.q3p_1.t1j() && this.o3p_1 === this.p3p_1.t1j())) {
|
|
959
959
|
var message = 'The provided Scope should be the same object for both Termificator and VariablesProvider';
|
|
960
960
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
964
|
-
return this.
|
|
963
|
+
protoOf(LogicProgrammingScopeImpl).t1j = function () {
|
|
964
|
+
return this.o3p_1;
|
|
965
965
|
};
|
|
966
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
967
|
-
return this.
|
|
966
|
+
protoOf(LogicProgrammingScopeImpl).m3p = function () {
|
|
967
|
+
return this.p3p_1;
|
|
968
968
|
};
|
|
969
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
970
|
-
return new LogicProgrammingScopeImpl(scope, this.
|
|
969
|
+
protoOf(LogicProgrammingScopeImpl).u1j = function (scope) {
|
|
970
|
+
return new LogicProgrammingScopeImpl(scope, this.p3p_1.u1j(scope), this.q3p_1.u1j(scope));
|
|
971
971
|
};
|
|
972
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
973
|
-
return this.
|
|
972
|
+
protoOf(LogicProgrammingScopeImpl).r3p = function () {
|
|
973
|
+
return this.u1j(Companion_instance.empty());
|
|
974
974
|
};
|
|
975
975
|
protoOf(LogicProgrammingScopeImpl).newScope = function () {
|
|
976
|
-
return this.
|
|
976
|
+
return this.r3p();
|
|
977
977
|
};
|
|
978
978
|
protoOf(LogicProgrammingScopeImpl).structOf = function (functor, args) {
|
|
979
|
-
return this.
|
|
979
|
+
return this.q3p_1.structOf(functor, args);
|
|
980
980
|
};
|
|
981
981
|
protoOf(LogicProgrammingScopeImpl).structOfSequence = function (functor, args) {
|
|
982
|
-
return this.
|
|
982
|
+
return this.q3p_1.structOfSequence(functor, args);
|
|
983
983
|
};
|
|
984
984
|
protoOf(LogicProgrammingScopeImpl).structOfIterable = function (functor, args) {
|
|
985
|
-
return this.
|
|
985
|
+
return this.q3p_1.structOfIterable(functor, args);
|
|
986
986
|
};
|
|
987
987
|
protoOf(LogicProgrammingScopeImpl).structOfList = function (functor, args) {
|
|
988
|
-
return this.
|
|
988
|
+
return this.q3p_1.structOfList(functor, args);
|
|
989
989
|
};
|
|
990
990
|
protoOf(LogicProgrammingScopeImpl).tupleOf = function (terms) {
|
|
991
|
-
return this.
|
|
991
|
+
return this.q3p_1.tupleOf(terms);
|
|
992
992
|
};
|
|
993
993
|
protoOf(LogicProgrammingScopeImpl).tupleOfIterable = function (terms) {
|
|
994
|
-
return this.
|
|
994
|
+
return this.q3p_1.tupleOfIterable(terms);
|
|
995
995
|
};
|
|
996
996
|
protoOf(LogicProgrammingScopeImpl).tupleOfSequence = function (terms) {
|
|
997
|
-
return this.
|
|
997
|
+
return this.q3p_1.tupleOfSequence(terms);
|
|
998
998
|
};
|
|
999
999
|
protoOf(LogicProgrammingScopeImpl).logicListOf = function (terms) {
|
|
1000
|
-
return this.
|
|
1000
|
+
return this.q3p_1.logicListOf(terms);
|
|
1001
1001
|
};
|
|
1002
1002
|
protoOf(LogicProgrammingScopeImpl).logicListOfIterable = function (terms) {
|
|
1003
|
-
return this.
|
|
1003
|
+
return this.q3p_1.logicListOfIterable(terms);
|
|
1004
1004
|
};
|
|
1005
1005
|
protoOf(LogicProgrammingScopeImpl).logicListOfSequence = function (terms) {
|
|
1006
|
-
return this.
|
|
1006
|
+
return this.q3p_1.logicListOfSequence(terms);
|
|
1007
1007
|
};
|
|
1008
1008
|
protoOf(LogicProgrammingScopeImpl).blockOf = function (terms) {
|
|
1009
|
-
return this.
|
|
1009
|
+
return this.q3p_1.blockOf(terms);
|
|
1010
1010
|
};
|
|
1011
1011
|
protoOf(LogicProgrammingScopeImpl).blockOfIterable = function (terms) {
|
|
1012
|
-
return this.
|
|
1012
|
+
return this.q3p_1.blockOfIterable(terms);
|
|
1013
1013
|
};
|
|
1014
1014
|
protoOf(LogicProgrammingScopeImpl).blockOfSequence = function (terms) {
|
|
1015
|
-
return this.
|
|
1015
|
+
return this.q3p_1.blockOfSequence(terms);
|
|
1016
1016
|
};
|
|
1017
1017
|
protoOf(LogicProgrammingScopeImpl).factOf = function (head) {
|
|
1018
|
-
return this.
|
|
1018
|
+
return this.q3p_1.factOf(head);
|
|
1019
1019
|
};
|
|
1020
1020
|
protoOf(LogicProgrammingScopeImpl).consOf = function (head, tail) {
|
|
1021
|
-
return this.
|
|
1021
|
+
return this.q3p_1.consOf(head, tail);
|
|
1022
1022
|
};
|
|
1023
1023
|
protoOf(LogicProgrammingScopeImpl).directiveOf = function (body1, body) {
|
|
1024
|
-
return this.
|
|
1024
|
+
return this.q3p_1.directiveOf(body1, body);
|
|
1025
1025
|
};
|
|
1026
1026
|
protoOf(LogicProgrammingScopeImpl).containsVar = function (variable) {
|
|
1027
|
-
return this.
|
|
1027
|
+
return this.q3p_1.containsVar(variable);
|
|
1028
1028
|
};
|
|
1029
1029
|
protoOf(LogicProgrammingScopeImpl).contains = function (variable) {
|
|
1030
|
-
return this.
|
|
1030
|
+
return this.q3p_1.contains(variable);
|
|
1031
1031
|
};
|
|
1032
1032
|
protoOf(LogicProgrammingScopeImpl).get = function (variable) {
|
|
1033
|
-
return this.
|
|
1033
|
+
return this.q3p_1.get(variable);
|
|
1034
1034
|
};
|
|
1035
1035
|
protoOf(LogicProgrammingScopeImpl).where = function (lambda) {
|
|
1036
|
-
return this.
|
|
1036
|
+
return this.q3p_1.where(lambda);
|
|
1037
1037
|
};
|
|
1038
1038
|
protoOf(LogicProgrammingScopeImpl).with = function (lambda) {
|
|
1039
|
-
return this.
|
|
1039
|
+
return this.q3p_1.with(lambda);
|
|
1040
1040
|
};
|
|
1041
1041
|
protoOf(LogicProgrammingScopeImpl).varOf = function (name) {
|
|
1042
|
-
return this.
|
|
1042
|
+
return this.q3p_1.varOf(name);
|
|
1043
1043
|
};
|
|
1044
1044
|
protoOf(LogicProgrammingScopeImpl).varOfChar = function (name) {
|
|
1045
|
-
return this.
|
|
1045
|
+
return this.q3p_1.varOfChar(name);
|
|
1046
1046
|
};
|
|
1047
1047
|
protoOf(LogicProgrammingScopeImpl).atomOf = function (value) {
|
|
1048
|
-
return this.
|
|
1048
|
+
return this.q3p_1.atomOf(value);
|
|
1049
1049
|
};
|
|
1050
1050
|
protoOf(LogicProgrammingScopeImpl).atomOfChar = function (value) {
|
|
1051
|
-
return this.
|
|
1051
|
+
return this.q3p_1.atomOfChar(value);
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1054
|
-
return this.
|
|
1053
|
+
protoOf(LogicProgrammingScopeImpl).u12 = function (terms, last) {
|
|
1054
|
+
return this.q3p_1.u12(terms, last);
|
|
1055
1055
|
};
|
|
1056
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1057
|
-
return this.
|
|
1056
|
+
protoOf(LogicProgrammingScopeImpl).v12 = function (terms, last) {
|
|
1057
|
+
return this.q3p_1.v12(terms, last);
|
|
1058
1058
|
};
|
|
1059
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1060
|
-
return this.
|
|
1059
|
+
protoOf(LogicProgrammingScopeImpl).w12 = function (terms, last) {
|
|
1060
|
+
return this.q3p_1.w12(terms, last);
|
|
1061
1061
|
};
|
|
1062
1062
|
protoOf(LogicProgrammingScopeImpl).ruleOf = function (head, body1, body) {
|
|
1063
|
-
return this.
|
|
1063
|
+
return this.q3p_1.ruleOf(head, body1, body);
|
|
1064
1064
|
};
|
|
1065
1065
|
protoOf(LogicProgrammingScopeImpl).clauseOf = function (head, body) {
|
|
1066
|
-
return this.
|
|
1066
|
+
return this.q3p_1.clauseOf(head, body);
|
|
1067
1067
|
};
|
|
1068
1068
|
protoOf(LogicProgrammingScopeImpl).indicatorOf = function (name, arity) {
|
|
1069
|
-
return this.
|
|
1069
|
+
return this.q3p_1.indicatorOf(name, arity);
|
|
1070
1070
|
};
|
|
1071
1071
|
protoOf(LogicProgrammingScopeImpl).indicatorOfStringInt = function (name, arity) {
|
|
1072
|
-
return this.
|
|
1072
|
+
return this.q3p_1.indicatorOfStringInt(name, arity);
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(LogicProgrammingScopeImpl).anonymous = function () {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.q3p_1.anonymous();
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(LogicProgrammingScopeImpl).whatever = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.q3p_1.whatever();
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(LogicProgrammingScopeImpl).numOfBigDecimal = function (value) {
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.q3p_1.numOfBigDecimal(value);
|
|
1082
1082
|
};
|
|
1083
1083
|
protoOf(LogicProgrammingScopeImpl).numOfDouble = function (value) {
|
|
1084
|
-
return this.
|
|
1084
|
+
return this.q3p_1.numOfDouble(value);
|
|
1085
1085
|
};
|
|
1086
1086
|
protoOf(LogicProgrammingScopeImpl).numOfFloat = function (value) {
|
|
1087
|
-
return this.
|
|
1087
|
+
return this.q3p_1.numOfFloat(value);
|
|
1088
1088
|
};
|
|
1089
1089
|
protoOf(LogicProgrammingScopeImpl).numOfBigInteger = function (value) {
|
|
1090
|
-
return this.
|
|
1090
|
+
return this.q3p_1.numOfBigInteger(value);
|
|
1091
1091
|
};
|
|
1092
1092
|
protoOf(LogicProgrammingScopeImpl).numOfInt = function (value) {
|
|
1093
|
-
return this.
|
|
1093
|
+
return this.q3p_1.numOfInt(value);
|
|
1094
1094
|
};
|
|
1095
1095
|
protoOf(LogicProgrammingScopeImpl).numOfLong = function (value) {
|
|
1096
|
-
return this.
|
|
1096
|
+
return this.q3p_1.numOfLong(value);
|
|
1097
1097
|
};
|
|
1098
1098
|
protoOf(LogicProgrammingScopeImpl).numOfShort = function (value) {
|
|
1099
|
-
return this.
|
|
1099
|
+
return this.q3p_1.numOfShort(value);
|
|
1100
1100
|
};
|
|
1101
1101
|
protoOf(LogicProgrammingScopeImpl).numOfByte = function (value) {
|
|
1102
|
-
return this.
|
|
1102
|
+
return this.q3p_1.numOfByte(value);
|
|
1103
1103
|
};
|
|
1104
1104
|
protoOf(LogicProgrammingScopeImpl).parseNum = function (value) {
|
|
1105
|
-
return this.
|
|
1105
|
+
return this.q3p_1.parseNum(value);
|
|
1106
1106
|
};
|
|
1107
1107
|
protoOf(LogicProgrammingScopeImpl).numOf = function (value) {
|
|
1108
|
-
return this.
|
|
1108
|
+
return this.q3p_1.numOf(value);
|
|
1109
1109
|
};
|
|
1110
1110
|
protoOf(LogicProgrammingScopeImpl).intOfBigInteger = function (value) {
|
|
1111
|
-
return this.
|
|
1111
|
+
return this.q3p_1.intOfBigInteger(value);
|
|
1112
1112
|
};
|
|
1113
1113
|
protoOf(LogicProgrammingScopeImpl).intOf = function (value) {
|
|
1114
|
-
return this.
|
|
1114
|
+
return this.q3p_1.intOf(value);
|
|
1115
1115
|
};
|
|
1116
1116
|
protoOf(LogicProgrammingScopeImpl).intOfLong = function (value) {
|
|
1117
|
-
return this.
|
|
1117
|
+
return this.q3p_1.intOfLong(value);
|
|
1118
1118
|
};
|
|
1119
1119
|
protoOf(LogicProgrammingScopeImpl).intOfShort = function (value) {
|
|
1120
|
-
return this.
|
|
1120
|
+
return this.q3p_1.intOfShort(value);
|
|
1121
1121
|
};
|
|
1122
1122
|
protoOf(LogicProgrammingScopeImpl).intOfByte = function (value) {
|
|
1123
|
-
return this.
|
|
1123
|
+
return this.q3p_1.intOfByte(value);
|
|
1124
1124
|
};
|
|
1125
1125
|
protoOf(LogicProgrammingScopeImpl).parseInt = function (value) {
|
|
1126
|
-
return this.
|
|
1126
|
+
return this.q3p_1.parseInt(value);
|
|
1127
1127
|
};
|
|
1128
1128
|
protoOf(LogicProgrammingScopeImpl).parseIntRadix = function (value, radix) {
|
|
1129
|
-
return this.
|
|
1129
|
+
return this.q3p_1.parseIntRadix(value, radix);
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(LogicProgrammingScopeImpl).realOfBigDecimal = function (value) {
|
|
1132
|
-
return this.
|
|
1132
|
+
return this.q3p_1.realOfBigDecimal(value);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(LogicProgrammingScopeImpl).realOf = function (value) {
|
|
1135
|
-
return this.
|
|
1135
|
+
return this.q3p_1.realOf(value);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(LogicProgrammingScopeImpl).realOfFloat = function (value) {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.q3p_1.realOfFloat(value);
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(LogicProgrammingScopeImpl).parseReal = function (value) {
|
|
1141
|
-
return this.
|
|
1141
|
+
return this.q3p_1.parseReal(value);
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(LogicProgrammingScopeImpl).truthOf = function (value) {
|
|
1144
|
-
return this.
|
|
1144
|
+
return this.q3p_1.truthOf(value);
|
|
1145
1145
|
};
|
|
1146
1146
|
protoOf(LogicProgrammingScopeImpl).unifierOf = function (assignments) {
|
|
1147
|
-
return this.
|
|
1147
|
+
return this.q3p_1.unifierOf(assignments);
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(LogicProgrammingScopeImpl).unifierOfIterable = function (assignments) {
|
|
1150
|
-
return this.
|
|
1150
|
+
return this.q3p_1.unifierOfIterable(assignments);
|
|
1151
1151
|
};
|
|
1152
1152
|
protoOf(LogicProgrammingScopeImpl).unifierOfSequence = function (assignments) {
|
|
1153
|
-
return this.
|
|
1153
|
+
return this.q3p_1.unifierOfSequence(assignments);
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(LogicProgrammingScopeImpl).substitutionOf = function (assignments) {
|
|
1156
|
-
return this.
|
|
1156
|
+
return this.q3p_1.substitutionOf(assignments);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(LogicProgrammingScopeImpl).substitutionOfIterable = function (assignments) {
|
|
1159
|
-
return this.
|
|
1159
|
+
return this.q3p_1.substitutionOfIterable(assignments);
|
|
1160
1160
|
};
|
|
1161
1161
|
protoOf(LogicProgrammingScopeImpl).substitutionOfSequence = function (assignments) {
|
|
1162
|
-
return this.
|
|
1162
|
+
return this.q3p_1.substitutionOfSequence(assignments);
|
|
1163
1163
|
};
|
|
1164
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1165
|
-
return this.
|
|
1164
|
+
protoOf(LogicProgrammingScopeImpl).s12 = function () {
|
|
1165
|
+
return this.q3p_1.s12();
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1168
|
-
return this.
|
|
1167
|
+
protoOf(LogicProgrammingScopeImpl).t12 = function () {
|
|
1168
|
+
return this.q3p_1.t12();
|
|
1169
1169
|
};
|
|
1170
1170
|
protoOf(LogicProgrammingScopeImpl).getValue = function (thisRef, property) {
|
|
1171
|
-
return this.
|
|
1171
|
+
return this.q3p_1.getValue(thisRef, property);
|
|
1172
|
+
};
|
|
1173
|
+
protoOf(LogicProgrammingScopeImpl).w1j = function () {
|
|
1174
|
+
return this.q3p_1.w1j();
|
|
1175
|
+
};
|
|
1176
|
+
protoOf(LogicProgrammingScopeImpl).x1j = function () {
|
|
1177
|
+
return this.q3p_1.x1j();
|
|
1172
1178
|
};
|
|
1173
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1174
|
-
return this.
|
|
1179
|
+
protoOf(LogicProgrammingScopeImpl).y1j = function () {
|
|
1180
|
+
return this.q3p_1.y1j();
|
|
1175
1181
|
};
|
|
1176
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1177
|
-
return this.
|
|
1182
|
+
protoOf(LogicProgrammingScopeImpl).z1j = function () {
|
|
1183
|
+
return this.q3p_1.z1j();
|
|
1178
1184
|
};
|
|
1179
1185
|
function LogicProgrammingScopeWithOperators() {
|
|
1180
1186
|
}
|
|
@@ -1190,12 +1196,12 @@
|
|
|
1190
1196
|
function MinimalLogicProgrammingScope$directiveOf$ref(p0) {
|
|
1191
1197
|
return constructCallableReference(function (p0_0) {
|
|
1192
1198
|
return p0.directiveOf(p0_0, []);
|
|
1193
|
-
}, 1, 0,
|
|
1199
|
+
}, 1, 0, 100, VOID, [p0]);
|
|
1194
1200
|
}
|
|
1195
1201
|
function MinimalLogicProgrammingScope$factOf$ref(p0) {
|
|
1196
1202
|
return constructCallableReference(function (p0_0) {
|
|
1197
1203
|
return p0.factOf(p0_0);
|
|
1198
|
-
}, 1, 0,
|
|
1204
|
+
}, 1, 0, 101, 'factOf', [p0]);
|
|
1199
1205
|
}
|
|
1200
1206
|
function MinimalLogicProgrammingScope() {
|
|
1201
1207
|
}
|
|
@@ -1216,21 +1222,21 @@
|
|
|
1216
1222
|
function DefaultTermificator(scope, novel) {
|
|
1217
1223
|
novel = novel === VOID ? false : novel;
|
|
1218
1224
|
AbstractTermificator.call(this, scope);
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1225
|
+
this.v3p_1 = novel;
|
|
1226
|
+
this.l3p(this.v3p_1);
|
|
1227
|
+
this.w3p_1 = new NumberTypeTester();
|
|
1222
1228
|
}
|
|
1223
|
-
protoOf(DefaultTermificator).
|
|
1229
|
+
protoOf(DefaultTermificator).y3o = function (value) {
|
|
1224
1230
|
var tmp;
|
|
1225
|
-
if (this.
|
|
1226
|
-
tmp = this.
|
|
1231
|
+
if (this.w3p_1.bu(value)) {
|
|
1232
|
+
tmp = this.t1j().intOfBigInteger(this.w3p_1.cu(value));
|
|
1227
1233
|
} else {
|
|
1228
|
-
tmp = this.
|
|
1234
|
+
tmp = this.t1j().realOfBigDecimal(this.w3p_1.du(value));
|
|
1229
1235
|
}
|
|
1230
1236
|
return tmp;
|
|
1231
1237
|
};
|
|
1232
|
-
protoOf(DefaultTermificator).
|
|
1233
|
-
return new DefaultTermificator(scope, this.
|
|
1238
|
+
protoOf(DefaultTermificator).u1j = function (scope) {
|
|
1239
|
+
return new DefaultTermificator(scope, this.v3p_1);
|
|
1234
1240
|
};
|
|
1235
1241
|
protoOf(DefaultTermificator).copy = function (scope, $super) {
|
|
1236
1242
|
return this.copy(scope, ($super == null ? true : $super instanceof DefaultTermificator) ? $super : THROW_CCE());
|
|
@@ -1249,7 +1255,7 @@
|
|
|
1249
1255
|
protoOf(LogicProgrammingScopeImpl).consOfAny = consOfAny;
|
|
1250
1256
|
protoOf(LogicProgrammingScopeImpl).directiveOfAny = directiveOfAny;
|
|
1251
1257
|
protoOf(LogicProgrammingScopeImpl).withScope = withScope;
|
|
1252
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1258
|
+
protoOf(LogicProgrammingScopeImpl).s3p = logicList;
|
|
1253
1259
|
protoOf(LogicProgrammingScopeImpl).logicList = logicList_0;
|
|
1254
1260
|
protoOf(LogicProgrammingScopeImpl).rule = rule;
|
|
1255
1261
|
protoOf(LogicProgrammingScopeImpl).clause2 = clause2;
|