@tuprolog/2p-full 0.31.5-dev0a → 0.31.5-dev0f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +141 -141
- package/2p-core.js +2841 -2841
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +573 -573
- package/2p-oop-lib.js +815 -815
- package/2p-parser-core.js +136 -136
- package/2p-parser-theory.js +11 -11
- package/2p-repl.js +80 -80
- package/2p-solve-classic.js +936 -936
- package/2p-solve-plp.js +1 -1
- package/2p-solve-problog.js +1250 -1250
- package/2p-solve-streams.js +851 -851
- package/2p-solve.js +3409 -3409
- package/2p-theory.js +1258 -1258
- package/2p-unify.js +208 -208
- package/2p-utils.js +324 -324
- package/clikt-clikt-js-ir.js +1143 -1180
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +760 -747
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kt-math.js +2184 -2184
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
package/2p-unify.js
CHANGED
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
//endregion
|
|
38
38
|
//region block: pre-declaration
|
|
39
39
|
function mgu(term1, term2) {
|
|
40
|
-
return this.
|
|
40
|
+
return this.z1j(term1, term2, true);
|
|
41
41
|
}
|
|
42
42
|
function matchWithOccurCheck(term1, term2, occurCheckEnabled) {
|
|
43
|
-
return !(this.
|
|
43
|
+
return !(this.z1j(term1, term2, occurCheckEnabled) === Companion_getInstance().failed());
|
|
44
44
|
}
|
|
45
45
|
function match(term1, term2) {
|
|
46
46
|
return this.matchWithOccurCheck(term1, term2, true);
|
|
47
47
|
}
|
|
48
48
|
function unifyWithOccurCheck(term1, term2, occurCheckEnabled) {
|
|
49
|
-
var substitution = this.
|
|
50
|
-
return substitution.
|
|
49
|
+
var substitution = this.z1j(term1, term2, occurCheckEnabled);
|
|
50
|
+
return substitution.o12() ? null : term1.getSubstituted(substitution, []);
|
|
51
51
|
}
|
|
52
52
|
function unify(term1, term2) {
|
|
53
53
|
return this.unifyWithOccurCheck(term1, term2, true);
|
|
@@ -72,21 +72,21 @@
|
|
|
72
72
|
var tmp$ret$0;
|
|
73
73
|
// Inline function 'kotlin.getValue' call
|
|
74
74
|
var tmp0_getValue = contextEquations$factory();
|
|
75
|
-
tmp$ret$0 = $this.
|
|
75
|
+
tmp$ret$0 = $this.g1j_1.b1();
|
|
76
76
|
return tmp$ret$0;
|
|
77
77
|
}
|
|
78
78
|
function occurrenceCheck($this, variable, term) {
|
|
79
79
|
var tmp;
|
|
80
|
-
if (term.
|
|
81
|
-
tmp = $this.
|
|
82
|
-
} else if (term.
|
|
80
|
+
if (term.yw()) {
|
|
81
|
+
tmp = $this.h1j(variable, term);
|
|
82
|
+
} else if (term.iw()) {
|
|
83
83
|
var tmp$ret$1;
|
|
84
84
|
$l$block: {
|
|
85
85
|
// Inline function 'kotlin.sequences.any' call
|
|
86
|
-
var tmp0_any = term.
|
|
86
|
+
var tmp0_any = term.ew();
|
|
87
87
|
var tmp0_iterator = tmp0_any.j();
|
|
88
88
|
while (tmp0_iterator.m()) {
|
|
89
|
-
var element = tmp0_iterator.
|
|
89
|
+
var element = tmp0_iterator.n();
|
|
90
90
|
var tmp$ret$0;
|
|
91
91
|
// Inline function 'it.unibo.tuprolog.unify.AbstractUnificator.occurrenceCheck.<anonymous>' call
|
|
92
92
|
tmp$ret$0 = occurrenceCheck($this, variable, element);
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
}
|
|
106
106
|
function equationsFor($this, term1, term2) {
|
|
107
107
|
var tmp = Companion_getInstance_2();
|
|
108
|
-
return tmp.
|
|
108
|
+
return tmp.i1j(term1, term2, AbstractUnificator$checkTermsEquality$ref($this));
|
|
109
109
|
}
|
|
110
110
|
function equationsFor_0($this, substitution1, substitution2) {
|
|
111
111
|
var tmp = Companion_getInstance_2();
|
|
112
112
|
var tmp_0 = plus(asSequence(substitution1), asSequence(substitution2));
|
|
113
113
|
var tmp_1 = map(tmp_0, AbstractUnificator$equationsFor$lambda);
|
|
114
|
-
return tmp.
|
|
114
|
+
return tmp.j1j(tmp_1, null, 2, null);
|
|
115
115
|
}
|
|
116
116
|
function applySubstitutionToEquations($this, substitution, equations, exceptIndex) {
|
|
117
117
|
var changed = {_v: false};
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
}
|
|
125
125
|
while (inductionVariable < exceptIndex);
|
|
126
126
|
var inductionVariable_0 = exceptIndex + 1 | 0;
|
|
127
|
-
var last = equations.
|
|
127
|
+
var last = equations.p();
|
|
128
128
|
if (inductionVariable_0 < last)
|
|
129
129
|
do {
|
|
130
130
|
var i_0 = inductionVariable_0;
|
|
@@ -140,27 +140,27 @@
|
|
|
140
140
|
changed = false;
|
|
141
141
|
var eqIterator = equations.bb();
|
|
142
142
|
while (eqIterator.m()) {
|
|
143
|
-
var eq = eqIterator.
|
|
144
|
-
if (eq.
|
|
143
|
+
var eq = eqIterator.n();
|
|
144
|
+
if (eq.o1j()) {
|
|
145
145
|
return Companion_getInstance().failed();
|
|
146
|
-
} else if (eq.
|
|
146
|
+
} else if (eq.p1j()) {
|
|
147
147
|
eqIterator.u4();
|
|
148
148
|
changed = true;
|
|
149
|
-
} else if (eq.
|
|
150
|
-
var assignment = eq.
|
|
151
|
-
if (occurCheckEnabled ? occurrenceCheck($this, assignment.
|
|
149
|
+
} else if (eq.w1j()) {
|
|
150
|
+
var assignment = eq.r1j();
|
|
151
|
+
if (occurCheckEnabled ? occurrenceCheck($this, assignment.u1j_1, eq.n1j()) : false) {
|
|
152
152
|
return Companion_getInstance().failed();
|
|
153
153
|
} else {
|
|
154
154
|
changed = changed ? true : applySubstitutionToEquations($this, assignment.toSubstitution(), equations, eqIterator.sa());
|
|
155
155
|
}
|
|
156
|
-
} else if (eq.
|
|
156
|
+
} else if (eq.q1j()) {
|
|
157
157
|
eqIterator.u4();
|
|
158
|
-
var tmp0_iterator = equationsFor($this, eq.
|
|
158
|
+
var tmp0_iterator = equationsFor($this, eq.m1j(), eq.n1j()).j();
|
|
159
159
|
insertion: while (tmp0_iterator.m()) {
|
|
160
|
-
var it = tmp0_iterator.
|
|
161
|
-
if (it.
|
|
160
|
+
var it = tmp0_iterator.n();
|
|
161
|
+
if (it.p1j())
|
|
162
162
|
continue insertion;
|
|
163
|
-
else if (it.
|
|
163
|
+
else if (it.o1j())
|
|
164
164
|
return Companion_getInstance().failed();
|
|
165
165
|
else {
|
|
166
166
|
eqIterator.va(it);
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
178
178
|
var tmp0_iterator_0 = equations.j();
|
|
179
179
|
while (tmp0_iterator_0.m()) {
|
|
180
|
-
var element = tmp0_iterator_0.
|
|
180
|
+
var element = tmp0_iterator_0.n();
|
|
181
181
|
var tmp$ret$0;
|
|
182
182
|
// Inline function 'it.unibo.tuprolog.unify.AbstractUnificator.mgu.<anonymous>' call
|
|
183
|
-
tmp$ret$0 = element.
|
|
183
|
+
tmp$ret$0 = element.w1j();
|
|
184
184
|
if (tmp$ret$0) {
|
|
185
185
|
tmp0_filterTo.g(element);
|
|
186
186
|
}
|
|
@@ -196,15 +196,15 @@
|
|
|
196
196
|
return toCollection(items, tmp$ret$0);
|
|
197
197
|
}
|
|
198
198
|
function applySubstitutionToEquations$handleIndex($equations, $substitution, this$0, changed, i) {
|
|
199
|
-
if ($equations.
|
|
199
|
+
if ($equations.o(i).o1j() ? true : $equations.o(i).p1j())
|
|
200
200
|
return Unit_getInstance();
|
|
201
|
-
var currentEq = $equations.
|
|
202
|
-
var tmp0_container = currentEq.
|
|
201
|
+
var currentEq = $equations.o(i);
|
|
202
|
+
var tmp0_container = currentEq.x1j($substitution, null, 2, null).toPair();
|
|
203
203
|
var newLhs = tmp0_container.n3();
|
|
204
204
|
var newRhs = tmp0_container.o3();
|
|
205
|
-
if (!currentEq.
|
|
205
|
+
if (!currentEq.m1j().equals(newLhs) ? true : !currentEq.n1j().equals(newRhs)) {
|
|
206
206
|
var tmp = Companion_getInstance_2();
|
|
207
|
-
$equations.s4(i, tmp.
|
|
207
|
+
$equations.s4(i, tmp.y1j(newLhs, newRhs, AbstractUnificator$checkTermsEquality$ref_0(this$0)));
|
|
208
208
|
changed._v = true;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
}
|
|
216
216
|
function AbstractUnificator$checkTermsEquality$ref($boundThis) {
|
|
217
217
|
var l = function (p0, p1) {
|
|
218
|
-
return $boundThis.
|
|
218
|
+
return $boundThis.h1j(p0, p1);
|
|
219
219
|
};
|
|
220
220
|
l.callableName = 'checkTermsEquality';
|
|
221
221
|
return l;
|
|
@@ -228,31 +228,31 @@
|
|
|
228
228
|
}
|
|
229
229
|
function AbstractUnificator$checkTermsEquality$ref_0($boundThis) {
|
|
230
230
|
var l = function (p0, p1) {
|
|
231
|
-
return $boundThis.
|
|
231
|
+
return $boundThis.h1j(p0, p1);
|
|
232
232
|
};
|
|
233
233
|
l.callableName = 'checkTermsEquality';
|
|
234
234
|
return l;
|
|
235
235
|
}
|
|
236
236
|
function AbstractUnificator(context) {
|
|
237
|
-
this.
|
|
237
|
+
this.f1j_1 = context;
|
|
238
238
|
var tmp = this;
|
|
239
|
-
tmp.
|
|
239
|
+
tmp.g1j_1 = lazy(AbstractUnificator$contextEquations$delegate$lambda(this));
|
|
240
240
|
}
|
|
241
241
|
AbstractUnificator.prototype.j5 = function () {
|
|
242
|
-
return this.
|
|
242
|
+
return this.f1j_1;
|
|
243
243
|
};
|
|
244
|
-
AbstractUnificator.prototype.
|
|
245
|
-
if (this.j5().
|
|
244
|
+
AbstractUnificator.prototype.z1j = function (term1, term2, occurCheckEnabled) {
|
|
245
|
+
if (this.j5().o12())
|
|
246
246
|
return Companion_getInstance().failed();
|
|
247
247
|
var equations = newDeque(this, plus(asSequence_0(_get_contextEquations__x0dd77(this)), equationsFor(this, term1, term2)));
|
|
248
248
|
return mgu_0(this, equations, occurCheckEnabled);
|
|
249
249
|
};
|
|
250
|
-
AbstractUnificator.prototype.
|
|
251
|
-
if ((this.j5().
|
|
250
|
+
AbstractUnificator.prototype.a1k = function (substitution1, substitution2, occurCheckEnabled) {
|
|
251
|
+
if ((this.j5().o12() ? true : substitution1.o12()) ? true : substitution2.o12())
|
|
252
252
|
return Companion_getInstance().failed();
|
|
253
253
|
if (!occurCheckEnabled) {
|
|
254
254
|
var quickMerge = this.j5().plus(substitution1).plus(substitution2);
|
|
255
|
-
if (quickMerge.
|
|
255
|
+
if (quickMerge.n12()) {
|
|
256
256
|
return quickMerge;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
return mgu_0(this, equations, occurCheckEnabled);
|
|
261
261
|
};
|
|
262
262
|
AbstractUnificator.prototype.mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
|
|
263
|
-
return this.
|
|
263
|
+
return this.a1k(substitution1, substitution2, occurCheckEnabled);
|
|
264
264
|
};
|
|
265
265
|
function contextEquations$factory() {
|
|
266
266
|
return getPropertyCallableRef('contextEquations', 1, KProperty1, function (receiver) {
|
|
@@ -268,37 +268,37 @@
|
|
|
268
268
|
}, null);
|
|
269
269
|
}
|
|
270
270
|
function CachedUnificator(decorated, cacheCapacity) {
|
|
271
|
-
this.
|
|
272
|
-
this.
|
|
271
|
+
this.b1k_1 = decorated;
|
|
272
|
+
this.c1k_1 = Companion_getInstance_0().dq(cacheCapacity);
|
|
273
273
|
}
|
|
274
|
-
CachedUnificator.prototype.
|
|
274
|
+
CachedUnificator.prototype.z1j = function (term1, term2, occurCheckEnabled) {
|
|
275
275
|
var mguRequest = new Triple(term1, term2, occurCheckEnabled);
|
|
276
|
-
var cached = this.
|
|
276
|
+
var cached = this.c1k_1.a3(mguRequest);
|
|
277
277
|
var tmp;
|
|
278
278
|
if (cached instanceof Some) {
|
|
279
|
-
tmp = cached.
|
|
279
|
+
tmp = cached.gq_1;
|
|
280
280
|
} else {
|
|
281
|
-
var mguResult = this.
|
|
282
|
-
this.
|
|
281
|
+
var mguResult = this.b1k_1.z1j(term1, term2, occurCheckEnabled);
|
|
282
|
+
this.c1k_1.eq(mguRequest, mguResult);
|
|
283
283
|
tmp = mguResult;
|
|
284
284
|
}
|
|
285
285
|
return tmp;
|
|
286
286
|
};
|
|
287
|
-
CachedUnificator.prototype.
|
|
287
|
+
CachedUnificator.prototype.a1k = function (substitution1, substitution2, occurCheckEnabled) {
|
|
288
288
|
var mguRequest = new Triple(substitution1, substitution2, occurCheckEnabled);
|
|
289
|
-
var cached = this.
|
|
289
|
+
var cached = this.c1k_1.a3(mguRequest);
|
|
290
290
|
var tmp;
|
|
291
291
|
if (cached instanceof Some) {
|
|
292
|
-
tmp = cached.
|
|
292
|
+
tmp = cached.gq_1;
|
|
293
293
|
} else {
|
|
294
|
-
var mguResult = this.
|
|
295
|
-
this.
|
|
294
|
+
var mguResult = this.b1k_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
|
|
295
|
+
this.c1k_1.eq(mguRequest, mguResult);
|
|
296
296
|
tmp = mguResult;
|
|
297
297
|
}
|
|
298
298
|
return tmp;
|
|
299
299
|
};
|
|
300
300
|
CachedUnificator.prototype.mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
|
|
301
|
-
return this.
|
|
301
|
+
return this.a1k(substitution1, substitution2, occurCheckEnabled);
|
|
302
302
|
};
|
|
303
303
|
function allOfLists($this, lhs, rhs, equalityChecker) {
|
|
304
304
|
var tmp = zip(lhs.unfold(), rhs.unfold());
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
}
|
|
332
332
|
function Equation$Companion$from$lambda($equalityChecker) {
|
|
333
333
|
return function (it) {
|
|
334
|
-
return Companion_getInstance_2().
|
|
334
|
+
return Companion_getInstance_2().d1k(it, $equalityChecker);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
function Term$equals$ref_2() {
|
|
@@ -359,14 +359,14 @@
|
|
|
359
359
|
return function (_name_for_destructuring_parameter_0__wldtmu) {
|
|
360
360
|
var l = _name_for_destructuring_parameter_0__wldtmu.n3();
|
|
361
361
|
var r = _name_for_destructuring_parameter_0__wldtmu.o3();
|
|
362
|
-
return (l.
|
|
362
|
+
return (l.pw() ? r.pw() : false) ? sequenceOf([Companion_getInstance_2().y1j(l.castToCons().iy(), r.castToCons().iy(), $equalityChecker)]) : (l.ow() ? r.ow() : false) ? sequenceOf([Companion_getInstance_2().y1j(l.castToList(), r.castToList(), $equalityChecker)]) : Companion_getInstance_2().i1j(l, r, $equalityChecker);
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
function Equation$Companion$allOfTuples$lambda($equalityChecker) {
|
|
366
366
|
return function (_name_for_destructuring_parameter_0__wldtmu) {
|
|
367
367
|
var l = _name_for_destructuring_parameter_0__wldtmu.n3();
|
|
368
368
|
var r = _name_for_destructuring_parameter_0__wldtmu.o3();
|
|
369
|
-
return (l.
|
|
369
|
+
return (l.nw() ? r.nw() : false) ? sequenceOf([Companion_getInstance_2().y1j(l.castToTuple().wx(), r.castToTuple().wx(), $equalityChecker)]) : Companion_getInstance_2().i1j(l, r, $equalityChecker);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
function Term$equals$ref_5() {
|
|
@@ -378,29 +378,29 @@
|
|
|
378
378
|
}
|
|
379
379
|
function Equation$Companion$allOf$lambda($equalityChecker) {
|
|
380
380
|
return function (it) {
|
|
381
|
-
return Companion_getInstance_2().
|
|
381
|
+
return Companion_getInstance_2().d1k(it, $equalityChecker);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
function Identity(lhs, rhs) {
|
|
385
385
|
Equation.call(this, lhs, rhs);
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
386
|
+
this.g1k_1 = lhs;
|
|
387
|
+
this.h1k_1 = rhs;
|
|
388
388
|
}
|
|
389
|
-
Identity.prototype.
|
|
390
|
-
return this.
|
|
389
|
+
Identity.prototype.m1j = function () {
|
|
390
|
+
return this.g1k_1;
|
|
391
391
|
};
|
|
392
|
-
Identity.prototype.
|
|
393
|
-
return this.
|
|
392
|
+
Identity.prototype.n1j = function () {
|
|
393
|
+
return this.h1k_1;
|
|
394
394
|
};
|
|
395
|
-
Identity.prototype.
|
|
395
|
+
Identity.prototype.p1j = function () {
|
|
396
396
|
return true;
|
|
397
397
|
};
|
|
398
398
|
Identity.prototype.toString = function () {
|
|
399
|
-
return 'Identity(lhs=' + this.
|
|
399
|
+
return 'Identity(lhs=' + this.g1k_1 + ', rhs=' + this.h1k_1 + ')';
|
|
400
400
|
};
|
|
401
401
|
Identity.prototype.hashCode = function () {
|
|
402
|
-
var result = this.
|
|
403
|
-
result = imul(result, 31) + this.
|
|
402
|
+
var result = this.g1k_1.hashCode();
|
|
403
|
+
result = imul(result, 31) + this.h1k_1.hashCode() | 0;
|
|
404
404
|
return result;
|
|
405
405
|
};
|
|
406
406
|
Identity.prototype.equals = function (other) {
|
|
@@ -409,44 +409,44 @@
|
|
|
409
409
|
if (!(other instanceof Identity))
|
|
410
410
|
return false;
|
|
411
411
|
var tmp0_other_with_cast = other instanceof Identity ? other : THROW_CCE();
|
|
412
|
-
if (!this.
|
|
412
|
+
if (!this.g1k_1.equals(tmp0_other_with_cast.g1k_1))
|
|
413
413
|
return false;
|
|
414
|
-
if (!this.
|
|
414
|
+
if (!this.h1k_1.equals(tmp0_other_with_cast.h1k_1))
|
|
415
415
|
return false;
|
|
416
416
|
return true;
|
|
417
417
|
};
|
|
418
418
|
function Assignment(lhs, rhs) {
|
|
419
419
|
Equation.call(this, lhs, rhs);
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
420
|
+
this.u1j_1 = lhs;
|
|
421
|
+
this.v1j_1 = rhs;
|
|
422
422
|
}
|
|
423
|
-
Assignment.prototype.
|
|
424
|
-
return this.
|
|
423
|
+
Assignment.prototype.m1j = function () {
|
|
424
|
+
return this.u1j_1;
|
|
425
425
|
};
|
|
426
|
-
Assignment.prototype.
|
|
427
|
-
return this.
|
|
426
|
+
Assignment.prototype.n1j = function () {
|
|
427
|
+
return this.v1j_1;
|
|
428
428
|
};
|
|
429
429
|
Assignment.prototype.toSubstitution = function () {
|
|
430
|
-
return Companion_getInstance().unifier(this.
|
|
430
|
+
return Companion_getInstance().unifier(this.u1j_1, this.v1j_1);
|
|
431
431
|
};
|
|
432
|
-
Assignment.prototype.
|
|
433
|
-
return to(this.
|
|
432
|
+
Assignment.prototype.k1k = function () {
|
|
433
|
+
return to(this.u1j_1, this.v1j_1);
|
|
434
434
|
};
|
|
435
435
|
Assignment.prototype.toPair = function () {
|
|
436
|
-
return this.
|
|
436
|
+
return this.k1k();
|
|
437
437
|
};
|
|
438
|
-
Assignment.prototype.
|
|
438
|
+
Assignment.prototype.w1j = function () {
|
|
439
439
|
return true;
|
|
440
440
|
};
|
|
441
|
-
Assignment.prototype.
|
|
441
|
+
Assignment.prototype.i1k = function () {
|
|
442
442
|
return this;
|
|
443
443
|
};
|
|
444
444
|
Assignment.prototype.toString = function () {
|
|
445
|
-
return 'Assignment(lhs=' + this.
|
|
445
|
+
return 'Assignment(lhs=' + this.u1j_1 + ', rhs=' + this.v1j_1 + ')';
|
|
446
446
|
};
|
|
447
447
|
Assignment.prototype.hashCode = function () {
|
|
448
|
-
var result = this.
|
|
449
|
-
result = imul(result, 31) + this.
|
|
448
|
+
var result = this.u1j_1.hashCode();
|
|
449
|
+
result = imul(result, 31) + this.v1j_1.hashCode() | 0;
|
|
450
450
|
return result;
|
|
451
451
|
};
|
|
452
452
|
Assignment.prototype.equals = function (other) {
|
|
@@ -455,32 +455,32 @@
|
|
|
455
455
|
if (!(other instanceof Assignment))
|
|
456
456
|
return false;
|
|
457
457
|
var tmp0_other_with_cast = other instanceof Assignment ? other : THROW_CCE();
|
|
458
|
-
if (!this.
|
|
458
|
+
if (!this.u1j_1.equals(tmp0_other_with_cast.u1j_1))
|
|
459
459
|
return false;
|
|
460
|
-
if (!this.
|
|
460
|
+
if (!this.v1j_1.equals(tmp0_other_with_cast.v1j_1))
|
|
461
461
|
return false;
|
|
462
462
|
return true;
|
|
463
463
|
};
|
|
464
464
|
function Comparison(lhs, rhs) {
|
|
465
465
|
Equation.call(this, lhs, rhs);
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
466
|
+
this.n1k_1 = lhs;
|
|
467
|
+
this.o1k_1 = rhs;
|
|
468
468
|
}
|
|
469
|
-
Comparison.prototype.
|
|
470
|
-
return this.
|
|
469
|
+
Comparison.prototype.m1j = function () {
|
|
470
|
+
return this.n1k_1;
|
|
471
471
|
};
|
|
472
|
-
Comparison.prototype.
|
|
473
|
-
return this.
|
|
472
|
+
Comparison.prototype.n1j = function () {
|
|
473
|
+
return this.o1k_1;
|
|
474
474
|
};
|
|
475
|
-
Comparison.prototype.
|
|
475
|
+
Comparison.prototype.q1j = function () {
|
|
476
476
|
return true;
|
|
477
477
|
};
|
|
478
478
|
Comparison.prototype.toString = function () {
|
|
479
|
-
return 'Comparison(lhs=' + this.
|
|
479
|
+
return 'Comparison(lhs=' + this.n1k_1 + ', rhs=' + this.o1k_1 + ')';
|
|
480
480
|
};
|
|
481
481
|
Comparison.prototype.hashCode = function () {
|
|
482
|
-
var result = this.
|
|
483
|
-
result = imul(result, 31) + this.
|
|
482
|
+
var result = this.n1k_1.hashCode();
|
|
483
|
+
result = imul(result, 31) + this.o1k_1.hashCode() | 0;
|
|
484
484
|
return result;
|
|
485
485
|
};
|
|
486
486
|
Comparison.prototype.equals = function (other) {
|
|
@@ -489,32 +489,32 @@
|
|
|
489
489
|
if (!(other instanceof Comparison))
|
|
490
490
|
return false;
|
|
491
491
|
var tmp0_other_with_cast = other instanceof Comparison ? other : THROW_CCE();
|
|
492
|
-
if (!this.
|
|
492
|
+
if (!this.n1k_1.equals(tmp0_other_with_cast.n1k_1))
|
|
493
493
|
return false;
|
|
494
|
-
if (!this.
|
|
494
|
+
if (!this.o1k_1.equals(tmp0_other_with_cast.o1k_1))
|
|
495
495
|
return false;
|
|
496
496
|
return true;
|
|
497
497
|
};
|
|
498
498
|
function Contradiction(lhs, rhs) {
|
|
499
499
|
Equation.call(this, lhs, rhs);
|
|
500
|
-
this.
|
|
501
|
-
this.
|
|
500
|
+
this.r1k_1 = lhs;
|
|
501
|
+
this.s1k_1 = rhs;
|
|
502
502
|
}
|
|
503
|
-
Contradiction.prototype.
|
|
504
|
-
return this.
|
|
503
|
+
Contradiction.prototype.m1j = function () {
|
|
504
|
+
return this.r1k_1;
|
|
505
505
|
};
|
|
506
|
-
Contradiction.prototype.
|
|
507
|
-
return this.
|
|
506
|
+
Contradiction.prototype.n1j = function () {
|
|
507
|
+
return this.s1k_1;
|
|
508
508
|
};
|
|
509
|
-
Contradiction.prototype.
|
|
509
|
+
Contradiction.prototype.o1j = function () {
|
|
510
510
|
return true;
|
|
511
511
|
};
|
|
512
512
|
Contradiction.prototype.toString = function () {
|
|
513
|
-
return 'Contradiction(lhs=' + this.
|
|
513
|
+
return 'Contradiction(lhs=' + this.r1k_1 + ', rhs=' + this.s1k_1 + ')';
|
|
514
514
|
};
|
|
515
515
|
Contradiction.prototype.hashCode = function () {
|
|
516
|
-
var result = this.
|
|
517
|
-
result = imul(result, 31) + this.
|
|
516
|
+
var result = this.r1k_1.hashCode();
|
|
517
|
+
result = imul(result, 31) + this.s1k_1.hashCode() | 0;
|
|
518
518
|
return result;
|
|
519
519
|
};
|
|
520
520
|
Contradiction.prototype.equals = function (other) {
|
|
@@ -523,9 +523,9 @@
|
|
|
523
523
|
if (!(other instanceof Contradiction))
|
|
524
524
|
return false;
|
|
525
525
|
var tmp0_other_with_cast = other instanceof Contradiction ? other : THROW_CCE();
|
|
526
|
-
if (!this.
|
|
526
|
+
if (!this.r1k_1.equals(tmp0_other_with_cast.r1k_1))
|
|
527
527
|
return false;
|
|
528
|
-
if (!this.
|
|
528
|
+
if (!this.s1k_1.equals(tmp0_other_with_cast.s1k_1))
|
|
529
529
|
return false;
|
|
530
530
|
return true;
|
|
531
531
|
};
|
|
@@ -539,11 +539,11 @@
|
|
|
539
539
|
} else {
|
|
540
540
|
tmp = equalityChecker;
|
|
541
541
|
}
|
|
542
|
-
return this.
|
|
542
|
+
return this.y1j(lhs, rhs, tmp);
|
|
543
543
|
};
|
|
544
|
-
Companion.prototype.
|
|
544
|
+
Companion.prototype.y1j = function (lhs, rhs, equalityChecker) {
|
|
545
545
|
var tmp;
|
|
546
|
-
if (lhs.
|
|
546
|
+
if (lhs.yw() ? rhs.yw() : false) {
|
|
547
547
|
var tmp_0;
|
|
548
548
|
if (equalityChecker(lhs, rhs)) {
|
|
549
549
|
tmp_0 = new Identity(lhs, rhs);
|
|
@@ -551,11 +551,11 @@
|
|
|
551
551
|
tmp_0 = new Assignment(lhs.castToVar(), rhs);
|
|
552
552
|
}
|
|
553
553
|
tmp = tmp_0;
|
|
554
|
-
} else if (lhs.
|
|
554
|
+
} else if (lhs.yw()) {
|
|
555
555
|
tmp = new Assignment(lhs.castToVar(), rhs);
|
|
556
|
-
} else if (rhs.
|
|
556
|
+
} else if (rhs.yw()) {
|
|
557
557
|
tmp = new Assignment(rhs.castToVar(), lhs);
|
|
558
|
-
} else if (lhs.
|
|
558
|
+
} else if (lhs.bx() ? rhs.bx() : false) {
|
|
559
559
|
var tmp_1;
|
|
560
560
|
if (equalityChecker(lhs, rhs)) {
|
|
561
561
|
tmp_1 = new Identity(lhs, rhs);
|
|
@@ -563,13 +563,13 @@
|
|
|
563
563
|
tmp_1 = new Contradiction(lhs, rhs);
|
|
564
564
|
}
|
|
565
565
|
tmp = tmp_1;
|
|
566
|
-
} else if (lhs.
|
|
566
|
+
} else if (lhs.bx() ? true : rhs.bx()) {
|
|
567
567
|
tmp = new Contradiction(lhs, rhs);
|
|
568
|
-
} else if (lhs.
|
|
568
|
+
} else if (lhs.iw() ? rhs.iw() : false) {
|
|
569
569
|
var lhsStruct = lhs.castToStruct();
|
|
570
570
|
var rhsStruct = rhs.castToStruct();
|
|
571
571
|
var tmp_2;
|
|
572
|
-
if (!(lhsStruct.
|
|
572
|
+
if (!(lhsStruct.wv() === rhsStruct.wv()) ? true : !(lhsStruct.cw() === rhsStruct.cw())) {
|
|
573
573
|
tmp_2 = new Contradiction(lhsStruct, rhsStruct);
|
|
574
574
|
} else {
|
|
575
575
|
tmp_2 = new Comparison(lhsStruct, rhsStruct);
|
|
@@ -580,11 +580,11 @@
|
|
|
580
580
|
}
|
|
581
581
|
return tmp;
|
|
582
582
|
};
|
|
583
|
-
Companion.prototype.
|
|
583
|
+
Companion.prototype.t1k = function (lhs, rhs, equalityChecker, $mask0, $handler) {
|
|
584
584
|
if (!(($mask0 & 4) === 0)) {
|
|
585
585
|
equalityChecker = Term$equals$ref();
|
|
586
586
|
}
|
|
587
|
-
return this.
|
|
587
|
+
return this.y1j(lhs, rhs, equalityChecker);
|
|
588
588
|
};
|
|
589
589
|
Companion.prototype.ofPair = function (pair, equalityChecker) {
|
|
590
590
|
var tmp;
|
|
@@ -593,10 +593,10 @@
|
|
|
593
593
|
} else {
|
|
594
594
|
tmp = equalityChecker;
|
|
595
595
|
}
|
|
596
|
-
return this.
|
|
596
|
+
return this.u1k(pair, tmp);
|
|
597
597
|
};
|
|
598
|
-
Companion.prototype.
|
|
599
|
-
return this.
|
|
598
|
+
Companion.prototype.u1k = function (pair, equalityChecker) {
|
|
599
|
+
return this.y1j(pair.g4_1, pair.h4_1, equalityChecker);
|
|
600
600
|
};
|
|
601
601
|
Companion.prototype.fromSequence = function (pairs, equalityChecker) {
|
|
602
602
|
var tmp;
|
|
@@ -605,16 +605,16 @@
|
|
|
605
605
|
} else {
|
|
606
606
|
tmp = equalityChecker;
|
|
607
607
|
}
|
|
608
|
-
return this.
|
|
608
|
+
return this.v1k(pairs, tmp);
|
|
609
609
|
};
|
|
610
|
-
Companion.prototype.
|
|
610
|
+
Companion.prototype.v1k = function (pairs, equalityChecker) {
|
|
611
611
|
return flatMap(pairs, Equation$Companion$from$lambda(equalityChecker));
|
|
612
612
|
};
|
|
613
|
-
Companion.prototype.
|
|
613
|
+
Companion.prototype.j1j = function (pairs, equalityChecker, $mask0, $handler) {
|
|
614
614
|
if (!(($mask0 & 2) === 0)) {
|
|
615
615
|
equalityChecker = Term$equals$ref_1();
|
|
616
616
|
}
|
|
617
|
-
return this.
|
|
617
|
+
return this.v1k(pairs, equalityChecker);
|
|
618
618
|
};
|
|
619
619
|
Companion.prototype.fromIterable = function (pairs, equalityChecker) {
|
|
620
620
|
var tmp;
|
|
@@ -623,10 +623,10 @@
|
|
|
623
623
|
} else {
|
|
624
624
|
tmp = equalityChecker;
|
|
625
625
|
}
|
|
626
|
-
return this.
|
|
626
|
+
return this.w1k(pairs, tmp);
|
|
627
627
|
};
|
|
628
|
-
Companion.prototype.
|
|
629
|
-
return this.
|
|
628
|
+
Companion.prototype.w1k = function (pairs, equalityChecker) {
|
|
629
|
+
return this.v1k(asSequence_0(pairs), equalityChecker);
|
|
630
630
|
};
|
|
631
631
|
Companion.prototype.from = function (pairs, equalityChecker) {
|
|
632
632
|
var tmp;
|
|
@@ -635,10 +635,10 @@
|
|
|
635
635
|
} else {
|
|
636
636
|
tmp = equalityChecker;
|
|
637
637
|
}
|
|
638
|
-
return this.
|
|
638
|
+
return this.x1k(pairs, tmp);
|
|
639
639
|
};
|
|
640
|
-
Companion.prototype.
|
|
641
|
-
return this.
|
|
640
|
+
Companion.prototype.x1k = function (pairs, equalityChecker) {
|
|
641
|
+
return this.v1k(sequenceOf(pairs.slice()), equalityChecker);
|
|
642
642
|
};
|
|
643
643
|
Companion.prototype.allOfPair = function (pair, equalityChecker) {
|
|
644
644
|
var tmp;
|
|
@@ -647,10 +647,10 @@
|
|
|
647
647
|
} else {
|
|
648
648
|
tmp = equalityChecker;
|
|
649
649
|
}
|
|
650
|
-
return this.
|
|
650
|
+
return this.d1k(pair, tmp);
|
|
651
651
|
};
|
|
652
|
-
Companion.prototype.
|
|
653
|
-
return this.
|
|
652
|
+
Companion.prototype.d1k = function (pair, equalityChecker) {
|
|
653
|
+
return this.i1j(pair.g4_1, pair.h4_1, equalityChecker);
|
|
654
654
|
};
|
|
655
655
|
Companion.prototype.allOf = function (lhs, rhs, equalityChecker) {
|
|
656
656
|
var tmp;
|
|
@@ -659,29 +659,29 @@
|
|
|
659
659
|
} else {
|
|
660
660
|
tmp = equalityChecker;
|
|
661
661
|
}
|
|
662
|
-
return this.
|
|
662
|
+
return this.i1j(lhs, rhs, tmp);
|
|
663
663
|
};
|
|
664
|
-
Companion.prototype.
|
|
664
|
+
Companion.prototype.i1j = function (lhs, rhs, equalityChecker) {
|
|
665
665
|
var tmp;
|
|
666
|
-
if (lhs.
|
|
667
|
-
tmp = sequenceOf([this.
|
|
668
|
-
} else if (lhs.
|
|
666
|
+
if (lhs.xv() ? rhs.xv() : false) {
|
|
667
|
+
tmp = sequenceOf([this.y1j(lhs, rhs, equalityChecker)]);
|
|
668
|
+
} else if (lhs.ow() ? rhs.ow() : false) {
|
|
669
669
|
tmp = allOfLists(this, lhs.castToList(), rhs.castToList(), equalityChecker);
|
|
670
|
-
} else if (lhs.
|
|
670
|
+
} else if (lhs.nw() ? rhs.nw() : false) {
|
|
671
671
|
tmp = allOfTuples(this, lhs.castToTuple(), rhs.castToTuple(), equalityChecker);
|
|
672
|
-
} else if (lhs.
|
|
672
|
+
} else if (lhs.iw() ? rhs.iw() : false) {
|
|
673
673
|
var lhsStruct = lhs.castToStruct();
|
|
674
674
|
var rhsStruct = rhs.castToStruct();
|
|
675
675
|
var tmp_0;
|
|
676
|
-
if (lhsStruct.
|
|
677
|
-
var tmp_1 = zip(lhsStruct.
|
|
676
|
+
if (lhsStruct.wv() === rhsStruct.wv() ? lhsStruct.cw() === rhsStruct.cw() : false) {
|
|
677
|
+
var tmp_1 = zip(lhsStruct.vw(), rhsStruct.vw());
|
|
678
678
|
tmp_0 = flatMap(tmp_1, Equation$Companion$allOf$lambda(equalityChecker));
|
|
679
679
|
} else {
|
|
680
|
-
tmp_0 = sequenceOf([this.
|
|
680
|
+
tmp_0 = sequenceOf([this.y1j(lhs, rhs, equalityChecker)]);
|
|
681
681
|
}
|
|
682
682
|
tmp = tmp_0;
|
|
683
683
|
} else {
|
|
684
|
-
tmp = sequenceOf([this.
|
|
684
|
+
tmp = sequenceOf([this.y1j(lhs, rhs, equalityChecker)]);
|
|
685
685
|
}
|
|
686
686
|
return tmp;
|
|
687
687
|
};
|
|
@@ -700,26 +700,26 @@
|
|
|
700
700
|
}
|
|
701
701
|
function Equation(lhs, rhs) {
|
|
702
702
|
Companion_getInstance_2();
|
|
703
|
-
this.
|
|
704
|
-
this.
|
|
703
|
+
this.k1j_1 = lhs;
|
|
704
|
+
this.l1j_1 = rhs;
|
|
705
705
|
}
|
|
706
|
-
Equation.prototype.
|
|
707
|
-
return this.
|
|
706
|
+
Equation.prototype.m1j = function () {
|
|
707
|
+
return this.k1j_1;
|
|
708
708
|
};
|
|
709
|
-
Equation.prototype.
|
|
710
|
-
return this.
|
|
709
|
+
Equation.prototype.n1j = function () {
|
|
710
|
+
return this.l1j_1;
|
|
711
711
|
};
|
|
712
|
-
Equation.prototype.
|
|
712
|
+
Equation.prototype.p1j = function () {
|
|
713
713
|
return false;
|
|
714
714
|
};
|
|
715
|
-
Equation.prototype.
|
|
715
|
+
Equation.prototype.w1j = function () {
|
|
716
716
|
return false;
|
|
717
717
|
};
|
|
718
|
-
Equation.prototype.
|
|
718
|
+
Equation.prototype.i1k = function () {
|
|
719
719
|
return null;
|
|
720
720
|
};
|
|
721
|
-
Equation.prototype.
|
|
722
|
-
var tmp0_elvis_lhs = this.
|
|
721
|
+
Equation.prototype.r1j = function () {
|
|
722
|
+
var tmp0_elvis_lhs = this.i1k();
|
|
723
723
|
var tmp;
|
|
724
724
|
if (tmp0_elvis_lhs == null) {
|
|
725
725
|
throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(Assignment).kd());
|
|
@@ -728,26 +728,26 @@
|
|
|
728
728
|
}
|
|
729
729
|
return tmp;
|
|
730
730
|
};
|
|
731
|
-
Equation.prototype.
|
|
731
|
+
Equation.prototype.q1j = function () {
|
|
732
732
|
return false;
|
|
733
733
|
};
|
|
734
|
-
Equation.prototype.
|
|
734
|
+
Equation.prototype.o1j = function () {
|
|
735
735
|
return false;
|
|
736
736
|
};
|
|
737
|
-
Equation.prototype.
|
|
738
|
-
return Companion_getInstance_1().of('=', [this.
|
|
737
|
+
Equation.prototype.o1i = function () {
|
|
738
|
+
return Companion_getInstance_1().of('=', [this.m1j(), this.n1j()]);
|
|
739
739
|
};
|
|
740
740
|
Equation.prototype.toTerm = function () {
|
|
741
|
-
return this.
|
|
741
|
+
return this.o1i();
|
|
742
742
|
};
|
|
743
743
|
Equation.prototype.toPair = function () {
|
|
744
|
-
return new Pair(this.
|
|
744
|
+
return new Pair(this.m1j(), this.n1j());
|
|
745
745
|
};
|
|
746
746
|
Equation.prototype.swap = function () {
|
|
747
747
|
var tmp = Companion_getInstance_2();
|
|
748
|
-
var tmp_0 = this.
|
|
749
|
-
var tmp_1 = this.
|
|
750
|
-
return tmp.
|
|
748
|
+
var tmp_0 = this.n1j();
|
|
749
|
+
var tmp_1 = this.m1j();
|
|
750
|
+
return tmp.t1k(tmp_0, tmp_1, null, 4, null);
|
|
751
751
|
};
|
|
752
752
|
Equation.prototype.apply = function (substitution, equalityChecker) {
|
|
753
753
|
var tmp;
|
|
@@ -756,27 +756,27 @@
|
|
|
756
756
|
} else {
|
|
757
757
|
tmp = equalityChecker;
|
|
758
758
|
}
|
|
759
|
-
return this.
|
|
759
|
+
return this.j1k(substitution, tmp);
|
|
760
760
|
};
|
|
761
|
-
Equation.prototype.
|
|
762
|
-
return Companion_getInstance_2().
|
|
761
|
+
Equation.prototype.j1k = function (substitution, equalityChecker) {
|
|
762
|
+
return Companion_getInstance_2().y1j(this.m1j().getSubstituted(substitution, []), this.n1j().getSubstituted(substitution, []), equalityChecker);
|
|
763
763
|
};
|
|
764
|
-
Equation.prototype.
|
|
764
|
+
Equation.prototype.x1j = function (substitution, equalityChecker, $mask0, $handler) {
|
|
765
765
|
if (!(($mask0 & 2) === 0)) {
|
|
766
766
|
equalityChecker = Term$equals$ref_6();
|
|
767
767
|
}
|
|
768
|
-
return this.
|
|
768
|
+
return this.j1k(substitution, equalityChecker);
|
|
769
769
|
};
|
|
770
770
|
Object.defineProperty(Equation.prototype, 'lhs', {
|
|
771
771
|
configurable: true,
|
|
772
772
|
get: function () {
|
|
773
|
-
return this.
|
|
773
|
+
return this.m1j();
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
Object.defineProperty(Equation.prototype, 'rhs', {
|
|
777
777
|
configurable: true,
|
|
778
778
|
get: function () {
|
|
779
|
-
return this.
|
|
779
|
+
return this.n1j();
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
function toEquations(_this__u8e3s4) {
|
|
@@ -788,7 +788,7 @@
|
|
|
788
788
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
789
789
|
var tmp0_iterator = tmp0_map.j();
|
|
790
790
|
while (tmp0_iterator.m()) {
|
|
791
|
-
var item = tmp0_iterator.
|
|
791
|
+
var item = tmp0_iterator.n();
|
|
792
792
|
var tmp$ret$2;
|
|
793
793
|
// Inline function 'it.unibo.tuprolog.unify.toEquations.<anonymous>' call
|
|
794
794
|
var tmp$ret$0;
|
|
@@ -813,12 +813,12 @@
|
|
|
813
813
|
}
|
|
814
814
|
function toAssignmentPair(_this__u8e3s4) {
|
|
815
815
|
var tmp;
|
|
816
|
-
if (_this__u8e3s4.
|
|
817
|
-
tmp = _this__u8e3s4.
|
|
818
|
-
} else if (_this__u8e3s4.
|
|
819
|
-
tmp = to(_this__u8e3s4.
|
|
820
|
-
} else if (_this__u8e3s4.
|
|
821
|
-
tmp = to(_this__u8e3s4.
|
|
816
|
+
if (_this__u8e3s4.w1j()) {
|
|
817
|
+
tmp = _this__u8e3s4.r1j().k1k();
|
|
818
|
+
} else if (_this__u8e3s4.m1j().yw()) {
|
|
819
|
+
tmp = to(_this__u8e3s4.m1j().castToVar(), _this__u8e3s4.n1j());
|
|
820
|
+
} else if (_this__u8e3s4.n1j().yw()) {
|
|
821
|
+
tmp = to(_this__u8e3s4.n1j().castToVar(), _this__u8e3s4.m1j());
|
|
822
822
|
} else {
|
|
823
823
|
throw IllegalArgumentException_init_$Create$('Equation contains no variables: ' + _this__u8e3s4);
|
|
824
824
|
}
|
|
@@ -833,12 +833,12 @@
|
|
|
833
833
|
function Unificator$Companion$naive$1($context) {
|
|
834
834
|
AbstractUnificator.call(this, $context);
|
|
835
835
|
}
|
|
836
|
-
Unificator$Companion$naive$1.prototype.
|
|
836
|
+
Unificator$Companion$naive$1.prototype.h1j = function (first, second) {
|
|
837
837
|
var tmp;
|
|
838
|
-
if (first.
|
|
839
|
-
tmp = first.castToInteger().b1().
|
|
840
|
-
} else if (first.
|
|
841
|
-
tmp = first.castToNumeric().
|
|
838
|
+
if (first.dx() ? second.dx() : false) {
|
|
839
|
+
tmp = first.castToInteger().b1().ik(second.castToInteger().b1()) === 0;
|
|
840
|
+
} else if (first.cx() ? second.cx() : false) {
|
|
841
|
+
tmp = first.castToNumeric().u10().zj(second.castToNumeric().u10()) === 0;
|
|
842
842
|
} else {
|
|
843
843
|
tmp = first.equals(second);
|
|
844
844
|
}
|
|
@@ -847,33 +847,33 @@
|
|
|
847
847
|
function Unificator$Companion$strict$1($context) {
|
|
848
848
|
AbstractUnificator.call(this, $context);
|
|
849
849
|
}
|
|
850
|
-
Unificator$Companion$strict$1.prototype.
|
|
850
|
+
Unificator$Companion$strict$1.prototype.h1j = function (first, second) {
|
|
851
851
|
return first.equals(second);
|
|
852
852
|
};
|
|
853
853
|
function Companion_0() {
|
|
854
854
|
Companion_instance_0 = this;
|
|
855
855
|
var tmp = this;
|
|
856
|
-
tmp.
|
|
857
|
-
this.
|
|
856
|
+
tmp.c1l_1 = lazy(Unificator$Companion$default$delegate$lambda);
|
|
857
|
+
this.d1l_1 = 32;
|
|
858
858
|
}
|
|
859
|
-
Companion_0.prototype.
|
|
859
|
+
Companion_0.prototype.e1l = function () {
|
|
860
860
|
var tmp$ret$0;
|
|
861
861
|
// Inline function 'kotlin.getValue' call
|
|
862
862
|
var tmp0_getValue = default$factory();
|
|
863
|
-
tmp$ret$0 = this.
|
|
863
|
+
tmp$ret$0 = this.c1l_1.b1();
|
|
864
864
|
return tmp$ret$0;
|
|
865
865
|
};
|
|
866
866
|
Companion_0.prototype.mguWith = function (_this__u8e3s4, other) {
|
|
867
|
-
return this.
|
|
867
|
+
return this.e1l().mgu(_this__u8e3s4, other);
|
|
868
868
|
};
|
|
869
869
|
Companion_0.prototype.matches = function (_this__u8e3s4, other) {
|
|
870
|
-
return this.
|
|
870
|
+
return this.e1l().match(_this__u8e3s4, other);
|
|
871
871
|
};
|
|
872
872
|
Companion_0.prototype.unifyWith = function (_this__u8e3s4, other) {
|
|
873
|
-
return this.
|
|
873
|
+
return this.e1l().unify(_this__u8e3s4, other);
|
|
874
874
|
};
|
|
875
875
|
Companion_0.prototype.mergeWith = function (_this__u8e3s4, other) {
|
|
876
|
-
return this.
|
|
876
|
+
return this.e1l().merge(_this__u8e3s4, other);
|
|
877
877
|
};
|
|
878
878
|
Companion_0.prototype.naiveWithContext = function (context) {
|
|
879
879
|
return new Unificator$Companion$naive$1(context);
|
|
@@ -888,12 +888,12 @@
|
|
|
888
888
|
return this.strictWithContext(Companion_getInstance().empty());
|
|
889
889
|
};
|
|
890
890
|
Companion_0.prototype.cached = function (other, capacity) {
|
|
891
|
-
return this.
|
|
891
|
+
return this.f1l(other, capacity === void 1 ? 32 : capacity);
|
|
892
892
|
};
|
|
893
|
-
Companion_0.prototype.
|
|
893
|
+
Companion_0.prototype.f1l = function (other, capacity) {
|
|
894
894
|
var tmp;
|
|
895
895
|
if (other instanceof CachedUnificator) {
|
|
896
|
-
tmp = new CachedUnificator(other.
|
|
896
|
+
tmp = new CachedUnificator(other.b1k_1, capacity);
|
|
897
897
|
} else {
|
|
898
898
|
tmp = new CachedUnificator(other, capacity);
|
|
899
899
|
}
|
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
};
|
|
902
902
|
Object.defineProperty(Companion_0.prototype, 'default', {
|
|
903
903
|
configurable: true,
|
|
904
|
-
get: Companion_0.prototype.
|
|
904
|
+
get: Companion_0.prototype.e1l
|
|
905
905
|
});
|
|
906
906
|
var Companion_instance_0;
|
|
907
907
|
function Companion_getInstance_3() {
|
|
@@ -913,7 +913,7 @@
|
|
|
913
913
|
}
|
|
914
914
|
function default$factory() {
|
|
915
915
|
return getPropertyCallableRef('default', 1, KProperty1, function (receiver) {
|
|
916
|
-
return receiver.
|
|
916
|
+
return receiver.e1l();
|
|
917
917
|
}, null);
|
|
918
918
|
}
|
|
919
919
|
//region block: post-declaration
|
|
@@ -929,11 +929,11 @@
|
|
|
929
929
|
CachedUnificator.prototype.unifyWithOccurCheck = unifyWithOccurCheck;
|
|
930
930
|
CachedUnificator.prototype.unify = unify;
|
|
931
931
|
CachedUnificator.prototype.merge = merge;
|
|
932
|
-
Equation.prototype.
|
|
933
|
-
Identity.prototype.
|
|
934
|
-
Assignment.prototype.
|
|
935
|
-
Comparison.prototype.
|
|
936
|
-
Contradiction.prototype.
|
|
932
|
+
Equation.prototype.nq = castTo;
|
|
933
|
+
Identity.prototype.nq = castTo;
|
|
934
|
+
Assignment.prototype.nq = castTo;
|
|
935
|
+
Comparison.prototype.nq = castTo;
|
|
936
|
+
Contradiction.prototype.nq = castTo;
|
|
937
937
|
Unificator$Companion$naive$1.prototype.mgu = mgu;
|
|
938
938
|
Unificator$Companion$naive$1.prototype.merge = merge;
|
|
939
939
|
Unificator$Companion$naive$1.prototype.matchWithOccurCheck = matchWithOccurCheck;
|