@tuprolog/2p-full 0.30.5 → 0.31.1-dev02

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.
Files changed (70) hide show
  1. package/2p-bdd.js +609 -0
  2. package/2p-bdd.js.map +1 -0
  3. package/2p-core.js +12057 -0
  4. package/2p-core.js.map +1 -0
  5. package/2p-datalog.js +8 -0
  6. package/2p-datalog.js.map +1 -0
  7. package/2p-dsl-core.js +8 -0
  8. package/2p-dsl-core.js.map +1 -0
  9. package/2p-dsl-solve.js +8 -0
  10. package/2p-dsl-solve.js.map +1 -0
  11. package/2p-dsl-theory.js +8 -0
  12. package/2p-dsl-theory.js.map +1 -0
  13. package/2p-dsl-unify.js +8 -0
  14. package/2p-dsl-unify.js.map +1 -0
  15. package/2p-full.d.ts +270 -0
  16. package/2p-full.js +21 -0
  17. package/2p-full.js.map +1 -0
  18. package/2p-io-lib.js +3600 -0
  19. package/2p-io-lib.js.map +1 -0
  20. package/2p-oop-lib.js +3660 -0
  21. package/2p-oop-lib.js.map +1 -0
  22. package/2p-parser-core.js +1450 -0
  23. package/2p-parser-core.js.map +1 -0
  24. package/2p-parser-js.js +29 -0
  25. package/2p-parser-js.js.map +1 -0
  26. package/2p-parser-theory.js +114 -0
  27. package/2p-parser-theory.js.map +1 -0
  28. package/2p-repl.js +519 -0
  29. package/2p-repl.js.map +1 -0
  30. package/2p-serialize-core.js +8 -0
  31. package/2p-serialize-core.js.map +1 -0
  32. package/2p-serialize-theory.js +8 -0
  33. package/2p-serialize-theory.js.map +1 -0
  34. package/2p-solve-classic.js +3329 -0
  35. package/2p-solve-classic.js.map +1 -0
  36. package/2p-solve-concurrent.js +8 -0
  37. package/2p-solve-concurrent.js.map +1 -0
  38. package/2p-solve-plp.js +44 -0
  39. package/2p-solve-plp.js.map +1 -0
  40. package/2p-solve-problog.js +4547 -0
  41. package/2p-solve-problog.js.map +1 -0
  42. package/2p-solve-streams.js +3028 -0
  43. package/2p-solve-streams.js.map +1 -0
  44. package/2p-solve.js +16824 -0
  45. package/2p-solve.js.map +1 -0
  46. package/2p-theory.js +4902 -0
  47. package/2p-theory.js.map +1 -0
  48. package/2p-unify.js +957 -0
  49. package/2p-unify.js.map +1 -0
  50. package/2p-utils.js +1423 -0
  51. package/2p-utils.js.map +1 -0
  52. package/88b0986a7186d029-atomicfu-js-ir.js +8 -0
  53. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -0
  54. package/clikt-clikt-js-ir.js +7240 -0
  55. package/clikt-clikt-js-ir.js.map +1 -0
  56. package/kotlin-kotlin-stdlib-js-ir.js +11847 -0
  57. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
  58. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +8 -0
  59. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -0
  60. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +8 -0
  61. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -0
  62. package/kt-math.js +11348 -0
  63. package/kt-math.js.map +1 -0
  64. package/package.json +4 -36
  65. package/CONTRIBUTORS +0 -10
  66. package/LICENSE +0 -202
  67. package/kotlin/2p-full/it/unibo/tuprolog/tuprolog.kjsm +0 -0
  68. package/kotlin/2p-full.js +0 -15
  69. package/kotlin/2p-full.js.map +0 -1
  70. package/kotlin/2p-full.meta.js +0 -1
package/2p-unify.js ADDED
@@ -0,0 +1,957 @@
1
+ (function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var Unit_getInstance = kotlin_kotlin.$_$.r2;
6
+ var asSequence = kotlin_kotlin.$_$.f3;
7
+ var plus = kotlin_kotlin.$_$.g9;
8
+ var map = kotlin_kotlin.$_$.c9;
9
+ var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.e1;
10
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.c1;
11
+ var toCollection = kotlin_kotlin.$_$.n9;
12
+ var Pair = kotlin_kotlin.$_$.qb;
13
+ var lazy = kotlin_kotlin.$_$.xb;
14
+ var asSequence_0 = kotlin_kotlin.$_$.g3;
15
+ var classMeta = kotlin_kotlin.$_$.m6;
16
+ var setMetadataFor = kotlin_kotlin.$_$.j7;
17
+ var KProperty1 = kotlin_kotlin.$_$.d8;
18
+ var getPropertyCallableRef = kotlin_kotlin.$_$.r6;
19
+ var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_utils.$_$.a;
20
+ var Triple = kotlin_kotlin.$_$.ub;
21
+ var Some = kotlin_it_unibo_tuprolog_utils.$_$.k;
22
+ var zip = kotlin_kotlin.$_$.u9;
23
+ var flatMap = kotlin_kotlin.$_$.u8;
24
+ var sequenceOf = kotlin_kotlin.$_$.i9;
25
+ var THROW_CCE = kotlin_kotlin.$_$.sb;
26
+ var castTo = kotlin_it_unibo_tuprolog_utils.$_$.f;
27
+ var to = kotlin_kotlin.$_$.ec;
28
+ var objectMeta = kotlin_kotlin.$_$.i7;
29
+ var getKClass = kotlin_kotlin.$_$.c;
30
+ var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.o1;
31
+ var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.d1;
32
+ var Castable = kotlin_it_unibo_tuprolog_utils.$_$.g;
33
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.j3;
34
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.b1;
35
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
36
+ var interfaceMeta = kotlin_kotlin.$_$.u6;
37
+ //endregion
38
+ //region block: pre-declaration
39
+ function mgu(term1, term2) {
40
+ return this.c1k(term1, term2, true);
41
+ }
42
+ function matchWithOccurCheck(term1, term2, occurCheckEnabled) {
43
+ return !(this.c1k(term1, term2, occurCheckEnabled) === Companion_getInstance().failed());
44
+ }
45
+ function match(term1, term2) {
46
+ return this.matchWithOccurCheck(term1, term2, true);
47
+ }
48
+ function unifyWithOccurCheck(term1, term2, occurCheckEnabled) {
49
+ var substitution = this.c1k(term1, term2, occurCheckEnabled);
50
+ return substitution.r12() ? null : term1.getSubstituted(substitution, []);
51
+ }
52
+ function unify(term1, term2) {
53
+ return this.unifyWithOccurCheck(term1, term2, true);
54
+ }
55
+ function merge(substitution1, substitution2) {
56
+ return this.mergeWithOccurCheck(substitution1, substitution2, true);
57
+ }
58
+ setMetadataFor(Unificator, 'Unificator', interfaceMeta, undefined, undefined, undefined, undefined, []);
59
+ setMetadataFor(AbstractUnificator, 'AbstractUnificator', classMeta, undefined, [Unificator], undefined, undefined, []);
60
+ setMetadataFor(CachedUnificator, 'CachedUnificator', classMeta, undefined, [Unificator], undefined, undefined, []);
61
+ setMetadataFor(Equation, 'Equation', classMeta, undefined, [Castable], undefined, undefined, []);
62
+ setMetadataFor(Identity, 'Identity', classMeta, Equation, undefined, undefined, undefined, []);
63
+ setMetadataFor(Assignment, 'Assignment', classMeta, Equation, undefined, undefined, undefined, []);
64
+ setMetadataFor(Comparison, 'Comparison', classMeta, Equation, undefined, undefined, undefined, []);
65
+ setMetadataFor(Contradiction, 'Contradiction', classMeta, Equation, undefined, undefined, undefined, []);
66
+ setMetadataFor(Companion, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
67
+ setMetadataFor(Unificator$Companion$naive$1, undefined, classMeta, AbstractUnificator, undefined, undefined, undefined, []);
68
+ setMetadataFor(Unificator$Companion$strict$1, undefined, classMeta, AbstractUnificator, undefined, undefined, undefined, []);
69
+ setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
70
+ //endregion
71
+ function _get_contextEquations__x0dd77($this) {
72
+ var tmp$ret$0;
73
+ // Inline function 'kotlin.getValue' call
74
+ var tmp0_getValue = contextEquations$factory();
75
+ tmp$ret$0 = $this.j1j_1.b1();
76
+ return tmp$ret$0;
77
+ }
78
+ function occurrenceCheck($this, variable, term) {
79
+ var tmp;
80
+ if (term.bx()) {
81
+ tmp = $this.k1j(variable, term);
82
+ } else if (term.lw()) {
83
+ var tmp$ret$1;
84
+ $l$block: {
85
+ // Inline function 'kotlin.sequences.any' call
86
+ var tmp0_any = term.hw();
87
+ var tmp0_iterator = tmp0_any.j();
88
+ while (tmp0_iterator.m()) {
89
+ var element = tmp0_iterator.p();
90
+ var tmp$ret$0;
91
+ // Inline function 'it.unibo.tuprolog.unify.AbstractUnificator.occurrenceCheck.<anonymous>' call
92
+ tmp$ret$0 = occurrenceCheck($this, variable, element);
93
+ if (tmp$ret$0) {
94
+ tmp$ret$1 = true;
95
+ break $l$block;
96
+ }
97
+ }
98
+ tmp$ret$1 = false;
99
+ }
100
+ tmp = tmp$ret$1;
101
+ } else {
102
+ tmp = false;
103
+ }
104
+ return tmp;
105
+ }
106
+ function equationsFor($this, term1, term2) {
107
+ var tmp = Companion_getInstance_2();
108
+ return tmp.l1j(term1, term2, AbstractUnificator$checkTermsEquality$ref($this));
109
+ }
110
+ function equationsFor_0($this, substitution1, substitution2) {
111
+ var tmp = Companion_getInstance_2();
112
+ var tmp_0 = plus(asSequence(substitution1), asSequence(substitution2));
113
+ var tmp_1 = map(tmp_0, AbstractUnificator$equationsFor$lambda);
114
+ return tmp.m1j(tmp_1, null, 2, null);
115
+ }
116
+ function applySubstitutionToEquations($this, substitution, equations, exceptIndex) {
117
+ var changed = {_v: false};
118
+ var inductionVariable = 0;
119
+ if (inductionVariable < exceptIndex)
120
+ do {
121
+ var i = inductionVariable;
122
+ inductionVariable = inductionVariable + 1 | 0;
123
+ applySubstitutionToEquations$handleIndex(equations, substitution, $this, changed, i);
124
+ }
125
+ while (inductionVariable < exceptIndex);
126
+ var inductionVariable_0 = exceptIndex + 1 | 0;
127
+ var last = equations.o();
128
+ if (inductionVariable_0 < last)
129
+ do {
130
+ var i_0 = inductionVariable_0;
131
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
132
+ applySubstitutionToEquations$handleIndex(equations, substitution, $this, changed, i_0);
133
+ }
134
+ while (inductionVariable_0 < last);
135
+ return changed._v;
136
+ }
137
+ function mgu_0($this, equations, occurCheckEnabled) {
138
+ var changed = true;
139
+ while (changed) {
140
+ changed = false;
141
+ var eqIterator = equations.bb();
142
+ while (eqIterator.m()) {
143
+ var eq = eqIterator.p();
144
+ if (eq.r1j()) {
145
+ return Companion_getInstance().failed();
146
+ } else if (eq.s1j()) {
147
+ eqIterator.u4();
148
+ changed = true;
149
+ } else if (eq.z1j()) {
150
+ var assignment = eq.u1j();
151
+ if (occurCheckEnabled ? occurrenceCheck($this, assignment.x1j_1, eq.q1j()) : false) {
152
+ return Companion_getInstance().failed();
153
+ } else {
154
+ changed = changed ? true : applySubstitutionToEquations($this, assignment.toSubstitution(), equations, eqIterator.sa());
155
+ }
156
+ } else if (eq.t1j()) {
157
+ eqIterator.u4();
158
+ var tmp0_iterator = equationsFor($this, eq.p1j(), eq.q1j()).j();
159
+ insertion: while (tmp0_iterator.m()) {
160
+ var it = tmp0_iterator.p();
161
+ if (it.s1j())
162
+ continue insertion;
163
+ else if (it.r1j())
164
+ return Companion_getInstance().failed();
165
+ else {
166
+ eqIterator.va(it);
167
+ }
168
+ }
169
+ changed = true;
170
+ }
171
+ }
172
+ }
173
+ var tmp$ret$2;
174
+ // Inline function 'kotlin.collections.filter' call
175
+ var tmp$ret$1;
176
+ // Inline function 'kotlin.collections.filterTo' call
177
+ var tmp0_filterTo = ArrayList_init_$Create$();
178
+ var tmp0_iterator_0 = equations.j();
179
+ while (tmp0_iterator_0.m()) {
180
+ var element = tmp0_iterator_0.p();
181
+ var tmp$ret$0;
182
+ // Inline function 'it.unibo.tuprolog.unify.AbstractUnificator.mgu.<anonymous>' call
183
+ tmp$ret$0 = element.z1j();
184
+ if (tmp$ret$0) {
185
+ tmp0_filterTo.g(element);
186
+ }
187
+ }
188
+ tmp$ret$1 = tmp0_filterTo;
189
+ tmp$ret$2 = tmp$ret$1;
190
+ return toSubstitution(tmp$ret$2);
191
+ }
192
+ function newDeque($this, items) {
193
+ var tmp$ret$0;
194
+ // Inline function 'kotlin.collections.arrayListOf' call
195
+ tmp$ret$0 = ArrayList_init_$Create$();
196
+ return toCollection(items, tmp$ret$0);
197
+ }
198
+ function applySubstitutionToEquations$handleIndex($equations, $substitution, this$0, changed, i) {
199
+ if ($equations.n(i).r1j() ? true : $equations.n(i).s1j())
200
+ return Unit_getInstance();
201
+ var currentEq = $equations.n(i);
202
+ var tmp0_container = currentEq.a1k($substitution, null, 2, null).toPair();
203
+ var newLhs = tmp0_container.n3();
204
+ var newRhs = tmp0_container.o3();
205
+ if (!currentEq.p1j().equals(newLhs) ? true : !currentEq.q1j().equals(newRhs)) {
206
+ var tmp = Companion_getInstance_2();
207
+ $equations.s4(i, tmp.b1k(newLhs, newRhs, AbstractUnificator$checkTermsEquality$ref_0(this$0)));
208
+ changed._v = true;
209
+ }
210
+ }
211
+ function AbstractUnificator$contextEquations$delegate$lambda(this$0) {
212
+ return function () {
213
+ return toEquations(this$0.j5());
214
+ };
215
+ }
216
+ function AbstractUnificator$checkTermsEquality$ref($boundThis) {
217
+ var l = function (p0, p1) {
218
+ return $boundThis.k1j(p0, p1);
219
+ };
220
+ l.callableName = 'checkTermsEquality';
221
+ return l;
222
+ }
223
+ function AbstractUnificator$equationsFor$lambda(it) {
224
+ var tmp$ret$0;
225
+ // Inline function 'kotlin.collections.toPair' call
226
+ tmp$ret$0 = new Pair(it.a1(), it.b1());
227
+ return tmp$ret$0;
228
+ }
229
+ function AbstractUnificator$checkTermsEquality$ref_0($boundThis) {
230
+ var l = function (p0, p1) {
231
+ return $boundThis.k1j(p0, p1);
232
+ };
233
+ l.callableName = 'checkTermsEquality';
234
+ return l;
235
+ }
236
+ function AbstractUnificator(context) {
237
+ this.i1j_1 = context;
238
+ var tmp = this;
239
+ tmp.j1j_1 = lazy(AbstractUnificator$contextEquations$delegate$lambda(this));
240
+ }
241
+ AbstractUnificator.prototype.j5 = function () {
242
+ return this.i1j_1;
243
+ };
244
+ AbstractUnificator.prototype.c1k = function (term1, term2, occurCheckEnabled) {
245
+ if (this.j5().r12())
246
+ return Companion_getInstance().failed();
247
+ var equations = newDeque(this, plus(asSequence_0(_get_contextEquations__x0dd77(this)), equationsFor(this, term1, term2)));
248
+ return mgu_0(this, equations, occurCheckEnabled);
249
+ };
250
+ AbstractUnificator.prototype.d1k = function (substitution1, substitution2, occurCheckEnabled) {
251
+ if ((this.j5().r12() ? true : substitution1.r12()) ? true : substitution2.r12())
252
+ return Companion_getInstance().failed();
253
+ if (!occurCheckEnabled) {
254
+ var quickMerge = this.j5().plus(substitution1).plus(substitution2);
255
+ if (quickMerge.q12()) {
256
+ return quickMerge;
257
+ }
258
+ }
259
+ var equations = newDeque(this, plus(asSequence_0(_get_contextEquations__x0dd77(this)), equationsFor_0(this, substitution1, substitution2)));
260
+ return mgu_0(this, equations, occurCheckEnabled);
261
+ };
262
+ AbstractUnificator.prototype.mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
263
+ return this.d1k(substitution1, substitution2, occurCheckEnabled);
264
+ };
265
+ function contextEquations$factory() {
266
+ return getPropertyCallableRef('contextEquations', 1, KProperty1, function (receiver) {
267
+ return _get_contextEquations__x0dd77(receiver);
268
+ }, null);
269
+ }
270
+ function CachedUnificator(decorated, cacheCapacity) {
271
+ this.e1k_1 = decorated;
272
+ this.f1k_1 = Companion_getInstance_0().gq(cacheCapacity);
273
+ }
274
+ CachedUnificator.prototype.c1k = function (term1, term2, occurCheckEnabled) {
275
+ var mguRequest = new Triple(term1, term2, occurCheckEnabled);
276
+ var cached = this.f1k_1.a3(mguRequest);
277
+ var tmp;
278
+ if (cached instanceof Some) {
279
+ tmp = cached.jq_1;
280
+ } else {
281
+ var mguResult = this.e1k_1.c1k(term1, term2, occurCheckEnabled);
282
+ this.f1k_1.hq(mguRequest, mguResult);
283
+ tmp = mguResult;
284
+ }
285
+ return tmp;
286
+ };
287
+ CachedUnificator.prototype.d1k = function (substitution1, substitution2, occurCheckEnabled) {
288
+ var mguRequest = new Triple(substitution1, substitution2, occurCheckEnabled);
289
+ var cached = this.f1k_1.a3(mguRequest);
290
+ var tmp;
291
+ if (cached instanceof Some) {
292
+ tmp = cached.jq_1;
293
+ } else {
294
+ var mguResult = this.e1k_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
295
+ this.f1k_1.hq(mguRequest, mguResult);
296
+ tmp = mguResult;
297
+ }
298
+ return tmp;
299
+ };
300
+ CachedUnificator.prototype.mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
301
+ return this.d1k(substitution1, substitution2, occurCheckEnabled);
302
+ };
303
+ function allOfLists($this, lhs, rhs, equalityChecker) {
304
+ var tmp = zip(lhs.unfold(), rhs.unfold());
305
+ return flatMap(tmp, Equation$Companion$allOfLists$lambda(equalityChecker));
306
+ }
307
+ function allOfTuples($this, lhs, rhs, equalityChecker) {
308
+ var tmp = zip(lhs.unfold(), rhs.unfold());
309
+ return flatMap(tmp, Equation$Companion$allOfTuples$lambda(equalityChecker));
310
+ }
311
+ function Term$equals$ref() {
312
+ var l = function (p0, p1) {
313
+ return p0.equals(p1);
314
+ };
315
+ l.callableName = 'equals';
316
+ return l;
317
+ }
318
+ function Term$equals$ref_0() {
319
+ var l = function (p0, p1) {
320
+ return p0.equals(p1);
321
+ };
322
+ l.callableName = 'equals';
323
+ return l;
324
+ }
325
+ function Term$equals$ref_1() {
326
+ var l = function (p0, p1) {
327
+ return p0.equals(p1);
328
+ };
329
+ l.callableName = 'equals';
330
+ return l;
331
+ }
332
+ function Equation$Companion$from$lambda($equalityChecker) {
333
+ return function (it) {
334
+ return Companion_getInstance_2().g1k(it, $equalityChecker);
335
+ };
336
+ }
337
+ function Term$equals$ref_2() {
338
+ var l = function (p0, p1) {
339
+ return p0.equals(p1);
340
+ };
341
+ l.callableName = 'equals';
342
+ return l;
343
+ }
344
+ function Term$equals$ref_3() {
345
+ var l = function (p0, p1) {
346
+ return p0.equals(p1);
347
+ };
348
+ l.callableName = 'equals';
349
+ return l;
350
+ }
351
+ function Term$equals$ref_4() {
352
+ var l = function (p0, p1) {
353
+ return p0.equals(p1);
354
+ };
355
+ l.callableName = 'equals';
356
+ return l;
357
+ }
358
+ function Equation$Companion$allOfLists$lambda($equalityChecker) {
359
+ return function (_name_for_destructuring_parameter_0__wldtmu) {
360
+ var l = _name_for_destructuring_parameter_0__wldtmu.n3();
361
+ var r = _name_for_destructuring_parameter_0__wldtmu.o3();
362
+ return (l.sw() ? r.sw() : false) ? sequenceOf([Companion_getInstance_2().b1k(l.castToCons().ly(), r.castToCons().ly(), $equalityChecker)]) : (l.rw() ? r.rw() : false) ? sequenceOf([Companion_getInstance_2().b1k(l.castToList(), r.castToList(), $equalityChecker)]) : Companion_getInstance_2().l1j(l, r, $equalityChecker);
363
+ };
364
+ }
365
+ function Equation$Companion$allOfTuples$lambda($equalityChecker) {
366
+ return function (_name_for_destructuring_parameter_0__wldtmu) {
367
+ var l = _name_for_destructuring_parameter_0__wldtmu.n3();
368
+ var r = _name_for_destructuring_parameter_0__wldtmu.o3();
369
+ return (l.qw() ? r.qw() : false) ? sequenceOf([Companion_getInstance_2().b1k(l.castToTuple().zx(), r.castToTuple().zx(), $equalityChecker)]) : Companion_getInstance_2().l1j(l, r, $equalityChecker);
370
+ };
371
+ }
372
+ function Term$equals$ref_5() {
373
+ var l = function (p0, p1) {
374
+ return p0.equals(p1);
375
+ };
376
+ l.callableName = 'equals';
377
+ return l;
378
+ }
379
+ function Equation$Companion$allOf$lambda($equalityChecker) {
380
+ return function (it) {
381
+ return Companion_getInstance_2().g1k(it, $equalityChecker);
382
+ };
383
+ }
384
+ function Identity(lhs, rhs) {
385
+ Equation.call(this, lhs, rhs);
386
+ this.j1k_1 = lhs;
387
+ this.k1k_1 = rhs;
388
+ }
389
+ Identity.prototype.p1j = function () {
390
+ return this.j1k_1;
391
+ };
392
+ Identity.prototype.q1j = function () {
393
+ return this.k1k_1;
394
+ };
395
+ Identity.prototype.s1j = function () {
396
+ return true;
397
+ };
398
+ Identity.prototype.toString = function () {
399
+ return 'Identity(lhs=' + this.j1k_1 + ', rhs=' + this.k1k_1 + ')';
400
+ };
401
+ Identity.prototype.hashCode = function () {
402
+ var result = this.j1k_1.hashCode();
403
+ result = imul(result, 31) + this.k1k_1.hashCode() | 0;
404
+ return result;
405
+ };
406
+ Identity.prototype.equals = function (other) {
407
+ if (this === other)
408
+ return true;
409
+ if (!(other instanceof Identity))
410
+ return false;
411
+ var tmp0_other_with_cast = other instanceof Identity ? other : THROW_CCE();
412
+ if (!this.j1k_1.equals(tmp0_other_with_cast.j1k_1))
413
+ return false;
414
+ if (!this.k1k_1.equals(tmp0_other_with_cast.k1k_1))
415
+ return false;
416
+ return true;
417
+ };
418
+ function Assignment(lhs, rhs) {
419
+ Equation.call(this, lhs, rhs);
420
+ this.x1j_1 = lhs;
421
+ this.y1j_1 = rhs;
422
+ }
423
+ Assignment.prototype.p1j = function () {
424
+ return this.x1j_1;
425
+ };
426
+ Assignment.prototype.q1j = function () {
427
+ return this.y1j_1;
428
+ };
429
+ Assignment.prototype.toSubstitution = function () {
430
+ return Companion_getInstance().unifier(this.x1j_1, this.y1j_1);
431
+ };
432
+ Assignment.prototype.n1k = function () {
433
+ return to(this.x1j_1, this.y1j_1);
434
+ };
435
+ Assignment.prototype.toPair = function () {
436
+ return this.n1k();
437
+ };
438
+ Assignment.prototype.z1j = function () {
439
+ return true;
440
+ };
441
+ Assignment.prototype.l1k = function () {
442
+ return this;
443
+ };
444
+ Assignment.prototype.toString = function () {
445
+ return 'Assignment(lhs=' + this.x1j_1 + ', rhs=' + this.y1j_1 + ')';
446
+ };
447
+ Assignment.prototype.hashCode = function () {
448
+ var result = this.x1j_1.hashCode();
449
+ result = imul(result, 31) + this.y1j_1.hashCode() | 0;
450
+ return result;
451
+ };
452
+ Assignment.prototype.equals = function (other) {
453
+ if (this === other)
454
+ return true;
455
+ if (!(other instanceof Assignment))
456
+ return false;
457
+ var tmp0_other_with_cast = other instanceof Assignment ? other : THROW_CCE();
458
+ if (!this.x1j_1.equals(tmp0_other_with_cast.x1j_1))
459
+ return false;
460
+ if (!this.y1j_1.equals(tmp0_other_with_cast.y1j_1))
461
+ return false;
462
+ return true;
463
+ };
464
+ function Comparison(lhs, rhs) {
465
+ Equation.call(this, lhs, rhs);
466
+ this.q1k_1 = lhs;
467
+ this.r1k_1 = rhs;
468
+ }
469
+ Comparison.prototype.p1j = function () {
470
+ return this.q1k_1;
471
+ };
472
+ Comparison.prototype.q1j = function () {
473
+ return this.r1k_1;
474
+ };
475
+ Comparison.prototype.t1j = function () {
476
+ return true;
477
+ };
478
+ Comparison.prototype.toString = function () {
479
+ return 'Comparison(lhs=' + this.q1k_1 + ', rhs=' + this.r1k_1 + ')';
480
+ };
481
+ Comparison.prototype.hashCode = function () {
482
+ var result = this.q1k_1.hashCode();
483
+ result = imul(result, 31) + this.r1k_1.hashCode() | 0;
484
+ return result;
485
+ };
486
+ Comparison.prototype.equals = function (other) {
487
+ if (this === other)
488
+ return true;
489
+ if (!(other instanceof Comparison))
490
+ return false;
491
+ var tmp0_other_with_cast = other instanceof Comparison ? other : THROW_CCE();
492
+ if (!this.q1k_1.equals(tmp0_other_with_cast.q1k_1))
493
+ return false;
494
+ if (!this.r1k_1.equals(tmp0_other_with_cast.r1k_1))
495
+ return false;
496
+ return true;
497
+ };
498
+ function Contradiction(lhs, rhs) {
499
+ Equation.call(this, lhs, rhs);
500
+ this.u1k_1 = lhs;
501
+ this.v1k_1 = rhs;
502
+ }
503
+ Contradiction.prototype.p1j = function () {
504
+ return this.u1k_1;
505
+ };
506
+ Contradiction.prototype.q1j = function () {
507
+ return this.v1k_1;
508
+ };
509
+ Contradiction.prototype.r1j = function () {
510
+ return true;
511
+ };
512
+ Contradiction.prototype.toString = function () {
513
+ return 'Contradiction(lhs=' + this.u1k_1 + ', rhs=' + this.v1k_1 + ')';
514
+ };
515
+ Contradiction.prototype.hashCode = function () {
516
+ var result = this.u1k_1.hashCode();
517
+ result = imul(result, 31) + this.v1k_1.hashCode() | 0;
518
+ return result;
519
+ };
520
+ Contradiction.prototype.equals = function (other) {
521
+ if (this === other)
522
+ return true;
523
+ if (!(other instanceof Contradiction))
524
+ return false;
525
+ var tmp0_other_with_cast = other instanceof Contradiction ? other : THROW_CCE();
526
+ if (!this.u1k_1.equals(tmp0_other_with_cast.u1k_1))
527
+ return false;
528
+ if (!this.v1k_1.equals(tmp0_other_with_cast.v1k_1))
529
+ return false;
530
+ return true;
531
+ };
532
+ function Companion() {
533
+ Companion_instance = this;
534
+ }
535
+ Companion.prototype.of = function (lhs, rhs, equalityChecker) {
536
+ var tmp;
537
+ if (equalityChecker === void 1) {
538
+ tmp = Term$equals$ref();
539
+ } else {
540
+ tmp = equalityChecker;
541
+ }
542
+ return this.b1k(lhs, rhs, tmp);
543
+ };
544
+ Companion.prototype.b1k = function (lhs, rhs, equalityChecker) {
545
+ var tmp;
546
+ if (lhs.bx() ? rhs.bx() : false) {
547
+ var tmp_0;
548
+ if (equalityChecker(lhs, rhs)) {
549
+ tmp_0 = new Identity(lhs, rhs);
550
+ } else {
551
+ tmp_0 = new Assignment(lhs.castToVar(), rhs);
552
+ }
553
+ tmp = tmp_0;
554
+ } else if (lhs.bx()) {
555
+ tmp = new Assignment(lhs.castToVar(), rhs);
556
+ } else if (rhs.bx()) {
557
+ tmp = new Assignment(rhs.castToVar(), lhs);
558
+ } else if (lhs.ex() ? rhs.ex() : false) {
559
+ var tmp_1;
560
+ if (equalityChecker(lhs, rhs)) {
561
+ tmp_1 = new Identity(lhs, rhs);
562
+ } else {
563
+ tmp_1 = new Contradiction(lhs, rhs);
564
+ }
565
+ tmp = tmp_1;
566
+ } else if (lhs.ex() ? true : rhs.ex()) {
567
+ tmp = new Contradiction(lhs, rhs);
568
+ } else if (lhs.lw() ? rhs.lw() : false) {
569
+ var lhsStruct = lhs.castToStruct();
570
+ var rhsStruct = rhs.castToStruct();
571
+ var tmp_2;
572
+ if (!(lhsStruct.zv() === rhsStruct.zv()) ? true : !(lhsStruct.fw() === rhsStruct.fw())) {
573
+ tmp_2 = new Contradiction(lhsStruct, rhsStruct);
574
+ } else {
575
+ tmp_2 = new Comparison(lhsStruct, rhsStruct);
576
+ }
577
+ tmp = tmp_2;
578
+ } else {
579
+ tmp = new Comparison(lhs, rhs);
580
+ }
581
+ return tmp;
582
+ };
583
+ Companion.prototype.w1k = function (lhs, rhs, equalityChecker, $mask0, $handler) {
584
+ if (!(($mask0 & 4) === 0)) {
585
+ equalityChecker = Term$equals$ref();
586
+ }
587
+ return this.b1k(lhs, rhs, equalityChecker);
588
+ };
589
+ Companion.prototype.ofPair = function (pair, equalityChecker) {
590
+ var tmp;
591
+ if (equalityChecker === void 1) {
592
+ tmp = Term$equals$ref_0();
593
+ } else {
594
+ tmp = equalityChecker;
595
+ }
596
+ return this.x1k(pair, tmp);
597
+ };
598
+ Companion.prototype.x1k = function (pair, equalityChecker) {
599
+ return this.b1k(pair.g4_1, pair.h4_1, equalityChecker);
600
+ };
601
+ Companion.prototype.fromSequence = function (pairs, equalityChecker) {
602
+ var tmp;
603
+ if (equalityChecker === void 1) {
604
+ tmp = Term$equals$ref_1();
605
+ } else {
606
+ tmp = equalityChecker;
607
+ }
608
+ return this.y1k(pairs, tmp);
609
+ };
610
+ Companion.prototype.y1k = function (pairs, equalityChecker) {
611
+ return flatMap(pairs, Equation$Companion$from$lambda(equalityChecker));
612
+ };
613
+ Companion.prototype.m1j = function (pairs, equalityChecker, $mask0, $handler) {
614
+ if (!(($mask0 & 2) === 0)) {
615
+ equalityChecker = Term$equals$ref_1();
616
+ }
617
+ return this.y1k(pairs, equalityChecker);
618
+ };
619
+ Companion.prototype.fromIterable = function (pairs, equalityChecker) {
620
+ var tmp;
621
+ if (equalityChecker === void 1) {
622
+ tmp = Term$equals$ref_2();
623
+ } else {
624
+ tmp = equalityChecker;
625
+ }
626
+ return this.z1k(pairs, tmp);
627
+ };
628
+ Companion.prototype.z1k = function (pairs, equalityChecker) {
629
+ return this.y1k(asSequence_0(pairs), equalityChecker);
630
+ };
631
+ Companion.prototype.from = function (pairs, equalityChecker) {
632
+ var tmp;
633
+ if (equalityChecker === void 1) {
634
+ tmp = Term$equals$ref_3();
635
+ } else {
636
+ tmp = equalityChecker;
637
+ }
638
+ return this.a1l(pairs, tmp);
639
+ };
640
+ Companion.prototype.a1l = function (pairs, equalityChecker) {
641
+ return this.y1k(sequenceOf(pairs.slice()), equalityChecker);
642
+ };
643
+ Companion.prototype.allOfPair = function (pair, equalityChecker) {
644
+ var tmp;
645
+ if (equalityChecker === void 1) {
646
+ tmp = Term$equals$ref_4();
647
+ } else {
648
+ tmp = equalityChecker;
649
+ }
650
+ return this.g1k(pair, tmp);
651
+ };
652
+ Companion.prototype.g1k = function (pair, equalityChecker) {
653
+ return this.l1j(pair.g4_1, pair.h4_1, equalityChecker);
654
+ };
655
+ Companion.prototype.allOf = function (lhs, rhs, equalityChecker) {
656
+ var tmp;
657
+ if (equalityChecker === void 1) {
658
+ tmp = Term$equals$ref_5();
659
+ } else {
660
+ tmp = equalityChecker;
661
+ }
662
+ return this.l1j(lhs, rhs, tmp);
663
+ };
664
+ Companion.prototype.l1j = function (lhs, rhs, equalityChecker) {
665
+ var tmp;
666
+ if (lhs.aw() ? rhs.aw() : false) {
667
+ tmp = sequenceOf([this.b1k(lhs, rhs, equalityChecker)]);
668
+ } else if (lhs.rw() ? rhs.rw() : false) {
669
+ tmp = allOfLists(this, lhs.castToList(), rhs.castToList(), equalityChecker);
670
+ } else if (lhs.qw() ? rhs.qw() : false) {
671
+ tmp = allOfTuples(this, lhs.castToTuple(), rhs.castToTuple(), equalityChecker);
672
+ } else if (lhs.lw() ? rhs.lw() : false) {
673
+ var lhsStruct = lhs.castToStruct();
674
+ var rhsStruct = rhs.castToStruct();
675
+ var tmp_0;
676
+ if (lhsStruct.zv() === rhsStruct.zv() ? lhsStruct.fw() === rhsStruct.fw() : false) {
677
+ var tmp_1 = zip(lhsStruct.yw(), rhsStruct.yw());
678
+ tmp_0 = flatMap(tmp_1, Equation$Companion$allOf$lambda(equalityChecker));
679
+ } else {
680
+ tmp_0 = sequenceOf([this.b1k(lhs, rhs, equalityChecker)]);
681
+ }
682
+ tmp = tmp_0;
683
+ } else {
684
+ tmp = sequenceOf([this.b1k(lhs, rhs, equalityChecker)]);
685
+ }
686
+ return tmp;
687
+ };
688
+ var Companion_instance;
689
+ function Companion_getInstance_2() {
690
+ if (Companion_instance == null)
691
+ new Companion();
692
+ return Companion_instance;
693
+ }
694
+ function Term$equals$ref_6() {
695
+ var l = function (p0, p1) {
696
+ return p0.equals(p1);
697
+ };
698
+ l.callableName = 'equals';
699
+ return l;
700
+ }
701
+ function Equation(lhs, rhs) {
702
+ Companion_getInstance_2();
703
+ this.n1j_1 = lhs;
704
+ this.o1j_1 = rhs;
705
+ }
706
+ Equation.prototype.p1j = function () {
707
+ return this.n1j_1;
708
+ };
709
+ Equation.prototype.q1j = function () {
710
+ return this.o1j_1;
711
+ };
712
+ Equation.prototype.s1j = function () {
713
+ return false;
714
+ };
715
+ Equation.prototype.z1j = function () {
716
+ return false;
717
+ };
718
+ Equation.prototype.l1k = function () {
719
+ return null;
720
+ };
721
+ Equation.prototype.u1j = function () {
722
+ var tmp0_elvis_lhs = this.l1k();
723
+ var tmp;
724
+ if (tmp0_elvis_lhs == null) {
725
+ throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(Assignment).kd());
726
+ } else {
727
+ tmp = tmp0_elvis_lhs;
728
+ }
729
+ return tmp;
730
+ };
731
+ Equation.prototype.t1j = function () {
732
+ return false;
733
+ };
734
+ Equation.prototype.r1j = function () {
735
+ return false;
736
+ };
737
+ Equation.prototype.r1i = function () {
738
+ return Companion_getInstance_1().of('=', [this.p1j(), this.q1j()]);
739
+ };
740
+ Equation.prototype.toTerm = function () {
741
+ return this.r1i();
742
+ };
743
+ Equation.prototype.toPair = function () {
744
+ return new Pair(this.p1j(), this.q1j());
745
+ };
746
+ Equation.prototype.swap = function () {
747
+ var tmp = Companion_getInstance_2();
748
+ var tmp_0 = this.q1j();
749
+ var tmp_1 = this.p1j();
750
+ return tmp.w1k(tmp_0, tmp_1, null, 4, null);
751
+ };
752
+ Equation.prototype.apply = function (substitution, equalityChecker) {
753
+ var tmp;
754
+ if (equalityChecker === void 1) {
755
+ tmp = Term$equals$ref_6();
756
+ } else {
757
+ tmp = equalityChecker;
758
+ }
759
+ return this.m1k(substitution, tmp);
760
+ };
761
+ Equation.prototype.m1k = function (substitution, equalityChecker) {
762
+ return Companion_getInstance_2().b1k(this.p1j().getSubstituted(substitution, []), this.q1j().getSubstituted(substitution, []), equalityChecker);
763
+ };
764
+ Equation.prototype.a1k = function (substitution, equalityChecker, $mask0, $handler) {
765
+ if (!(($mask0 & 2) === 0)) {
766
+ equalityChecker = Term$equals$ref_6();
767
+ }
768
+ return this.m1k(substitution, equalityChecker);
769
+ };
770
+ Object.defineProperty(Equation.prototype, 'lhs', {
771
+ configurable: true,
772
+ get: function () {
773
+ return this.p1j();
774
+ }
775
+ });
776
+ Object.defineProperty(Equation.prototype, 'rhs', {
777
+ configurable: true,
778
+ get: function () {
779
+ return this.q1j();
780
+ }
781
+ });
782
+ function toEquations(_this__u8e3s4) {
783
+ var tmp$ret$4;
784
+ // Inline function 'kotlin.collections.map' call
785
+ var tmp0_map = _this__u8e3s4.z();
786
+ var tmp$ret$3;
787
+ // Inline function 'kotlin.collections.mapTo' call
788
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
789
+ var tmp0_iterator = tmp0_map.j();
790
+ while (tmp0_iterator.m()) {
791
+ var item = tmp0_iterator.p();
792
+ var tmp$ret$2;
793
+ // Inline function 'it.unibo.tuprolog.unify.toEquations.<anonymous>' call
794
+ var tmp$ret$0;
795
+ // Inline function 'kotlin.collections.component1' call
796
+ tmp$ret$0 = item.a1();
797
+ var variable = tmp$ret$0;
798
+ var tmp$ret$1;
799
+ // Inline function 'kotlin.collections.component2' call
800
+ tmp$ret$1 = item.b1();
801
+ var term = tmp$ret$1;
802
+ tmp$ret$2 = new Assignment(variable, term);
803
+ tmp0_mapTo.g(tmp$ret$2);
804
+ }
805
+ tmp$ret$3 = tmp0_mapTo;
806
+ tmp$ret$4 = tmp$ret$3;
807
+ return tmp$ret$4;
808
+ }
809
+ function toSubstitution(_this__u8e3s4) {
810
+ var tmp = Companion_getInstance();
811
+ var tmp_0 = asSequence_0(_this__u8e3s4);
812
+ return tmp.ofSequence(map(tmp_0, toSubstitution$lambda));
813
+ }
814
+ function toAssignmentPair(_this__u8e3s4) {
815
+ var tmp;
816
+ if (_this__u8e3s4.z1j()) {
817
+ tmp = _this__u8e3s4.u1j().n1k();
818
+ } else if (_this__u8e3s4.p1j().bx()) {
819
+ tmp = to(_this__u8e3s4.p1j().castToVar(), _this__u8e3s4.q1j());
820
+ } else if (_this__u8e3s4.q1j().bx()) {
821
+ tmp = to(_this__u8e3s4.q1j().castToVar(), _this__u8e3s4.p1j());
822
+ } else {
823
+ throw IllegalArgumentException_init_$Create$('Equation contains no variables: ' + _this__u8e3s4);
824
+ }
825
+ return tmp;
826
+ }
827
+ function toSubstitution$lambda(it) {
828
+ return toAssignmentPair(it);
829
+ }
830
+ function Unificator$Companion$default$delegate$lambda() {
831
+ return Companion_getInstance_3().strict();
832
+ }
833
+ function Unificator$Companion$naive$1($context) {
834
+ AbstractUnificator.call(this, $context);
835
+ }
836
+ Unificator$Companion$naive$1.prototype.k1j = function (first, second) {
837
+ var tmp;
838
+ if (first.gx() ? second.gx() : false) {
839
+ tmp = first.castToInteger().b1().lk(second.castToInteger().b1()) === 0;
840
+ } else if (first.fx() ? second.fx() : false) {
841
+ tmp = first.castToNumeric().x10().ck(second.castToNumeric().x10()) === 0;
842
+ } else {
843
+ tmp = first.equals(second);
844
+ }
845
+ return tmp;
846
+ };
847
+ function Unificator$Companion$strict$1($context) {
848
+ AbstractUnificator.call(this, $context);
849
+ }
850
+ Unificator$Companion$strict$1.prototype.k1j = function (first, second) {
851
+ return first.equals(second);
852
+ };
853
+ function Companion_0() {
854
+ Companion_instance_0 = this;
855
+ var tmp = this;
856
+ tmp.f1l_1 = lazy(Unificator$Companion$default$delegate$lambda);
857
+ this.g1l_1 = 32;
858
+ }
859
+ Companion_0.prototype.h1l = function () {
860
+ var tmp$ret$0;
861
+ // Inline function 'kotlin.getValue' call
862
+ var tmp0_getValue = default$factory();
863
+ tmp$ret$0 = this.f1l_1.b1();
864
+ return tmp$ret$0;
865
+ };
866
+ Companion_0.prototype.mguWith = function (_this__u8e3s4, other) {
867
+ return this.h1l().mgu(_this__u8e3s4, other);
868
+ };
869
+ Companion_0.prototype.matches = function (_this__u8e3s4, other) {
870
+ return this.h1l().match(_this__u8e3s4, other);
871
+ };
872
+ Companion_0.prototype.unifyWith = function (_this__u8e3s4, other) {
873
+ return this.h1l().unify(_this__u8e3s4, other);
874
+ };
875
+ Companion_0.prototype.mergeWith = function (_this__u8e3s4, other) {
876
+ return this.h1l().merge(_this__u8e3s4, other);
877
+ };
878
+ Companion_0.prototype.naiveWithContext = function (context) {
879
+ return new Unificator$Companion$naive$1(context);
880
+ };
881
+ Companion_0.prototype.naive = function () {
882
+ return this.naiveWithContext(Companion_getInstance().empty());
883
+ };
884
+ Companion_0.prototype.strictWithContext = function (context) {
885
+ return new Unificator$Companion$strict$1(context);
886
+ };
887
+ Companion_0.prototype.strict = function () {
888
+ return this.strictWithContext(Companion_getInstance().empty());
889
+ };
890
+ Companion_0.prototype.cached = function (other, capacity) {
891
+ return this.i1l(other, capacity === void 1 ? 32 : capacity);
892
+ };
893
+ Companion_0.prototype.i1l = function (other, capacity) {
894
+ var tmp;
895
+ if (other instanceof CachedUnificator) {
896
+ tmp = new CachedUnificator(other.e1k_1, capacity);
897
+ } else {
898
+ tmp = new CachedUnificator(other, capacity);
899
+ }
900
+ return tmp;
901
+ };
902
+ Object.defineProperty(Companion_0.prototype, 'default', {
903
+ configurable: true,
904
+ get: Companion_0.prototype.h1l
905
+ });
906
+ var Companion_instance_0;
907
+ function Companion_getInstance_3() {
908
+ if (Companion_instance_0 == null)
909
+ new Companion_0();
910
+ return Companion_instance_0;
911
+ }
912
+ function Unificator() {
913
+ }
914
+ function default$factory() {
915
+ return getPropertyCallableRef('default', 1, KProperty1, function (receiver) {
916
+ return receiver.h1l();
917
+ }, null);
918
+ }
919
+ //region block: post-declaration
920
+ AbstractUnificator.prototype.mgu = mgu;
921
+ AbstractUnificator.prototype.matchWithOccurCheck = matchWithOccurCheck;
922
+ AbstractUnificator.prototype.match = match;
923
+ AbstractUnificator.prototype.unifyWithOccurCheck = unifyWithOccurCheck;
924
+ AbstractUnificator.prototype.unify = unify;
925
+ AbstractUnificator.prototype.merge = merge;
926
+ CachedUnificator.prototype.mgu = mgu;
927
+ CachedUnificator.prototype.matchWithOccurCheck = matchWithOccurCheck;
928
+ CachedUnificator.prototype.match = match;
929
+ CachedUnificator.prototype.unifyWithOccurCheck = unifyWithOccurCheck;
930
+ CachedUnificator.prototype.unify = unify;
931
+ CachedUnificator.prototype.merge = merge;
932
+ Equation.prototype.qq = castTo;
933
+ Identity.prototype.qq = castTo;
934
+ Assignment.prototype.qq = castTo;
935
+ Comparison.prototype.qq = castTo;
936
+ Contradiction.prototype.qq = castTo;
937
+ Unificator$Companion$naive$1.prototype.mgu = mgu;
938
+ Unificator$Companion$naive$1.prototype.merge = merge;
939
+ Unificator$Companion$naive$1.prototype.matchWithOccurCheck = matchWithOccurCheck;
940
+ Unificator$Companion$naive$1.prototype.match = match;
941
+ Unificator$Companion$naive$1.prototype.unifyWithOccurCheck = unifyWithOccurCheck;
942
+ Unificator$Companion$naive$1.prototype.unify = unify;
943
+ Unificator$Companion$strict$1.prototype.mgu = mgu;
944
+ Unificator$Companion$strict$1.prototype.merge = merge;
945
+ Unificator$Companion$strict$1.prototype.matchWithOccurCheck = matchWithOccurCheck;
946
+ Unificator$Companion$strict$1.prototype.match = match;
947
+ Unificator$Companion$strict$1.prototype.unifyWithOccurCheck = unifyWithOccurCheck;
948
+ Unificator$Companion$strict$1.prototype.unify = unify;
949
+ //endregion
950
+ //region block: exports
951
+ _.$_$ = _.$_$ || {};
952
+ _.$_$.a = Companion_getInstance_3;
953
+ //endregion
954
+ return _;
955
+ }(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./2p-core.js'), require('./2p-utils.js')));
956
+
957
+ //# sourceMappingURL=2p-unify.js.map