@tuprolog/2p-full 1.1.4 → 1.3.1

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-unify.js CHANGED
@@ -19,60 +19,61 @@
19
19
  'use strict';
20
20
  //region block: imports
21
21
  var imul = Math.imul;
22
- var KProperty1 = kotlin_kotlin.$_$.c7;
23
- var getPropertyCallableRef = kotlin_kotlin.$_$.q5;
24
- var asSequence = kotlin_kotlin.$_$.v1;
25
- var plus = kotlin_kotlin.$_$.g8;
26
- var map = kotlin_kotlin.$_$.c8;
27
- var Unit_instance = kotlin_kotlin.$_$.k1;
28
- var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.v;
29
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
30
- var toCollection = kotlin_kotlin.$_$.o8;
31
- var Pair = kotlin_kotlin.$_$.ca;
22
+ var KProperty1 = kotlin_kotlin.$_$.h7;
23
+ var getPropertyCallableRef = kotlin_kotlin.$_$.x5;
24
+ var asSequence = kotlin_kotlin.$_$.z1;
25
+ var plus = kotlin_kotlin.$_$.l8;
26
+ var map = kotlin_kotlin.$_$.h8;
27
+ var Unit_instance = kotlin_kotlin.$_$.m;
28
+ var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.p;
29
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.o;
30
+ var toCollection = kotlin_kotlin.$_$.t8;
31
+ var constructCallableReference = kotlin_kotlin.$_$.r5;
32
+ var Pair = kotlin_kotlin.$_$.la;
32
33
  var VOID = kotlin_kotlin.$_$.b;
33
- var lazy = kotlin_kotlin.$_$.ja;
34
- var protoOf = kotlin_kotlin.$_$.k6;
35
- var asSequence_0 = kotlin_kotlin.$_$.w1;
36
- var THROW_CCE = kotlin_kotlin.$_$.ea;
37
- var initMetadataForClass = kotlin_kotlin.$_$.t5;
34
+ var lazy = kotlin_kotlin.$_$.ta;
35
+ var protoOf = kotlin_kotlin.$_$.p6;
36
+ var asSequence_0 = kotlin_kotlin.$_$.a2;
37
+ var THROW_CCE = kotlin_kotlin.$_$.na;
38
+ var initMetadataForClass = kotlin_kotlin.$_$.a6;
38
39
  var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.a;
39
- var Triple = kotlin_kotlin.$_$.ga;
40
+ var Triple = kotlin_kotlin.$_$.pa;
40
41
  var Some = kotlin_it_unibo_tuprolog_utils.$_$.k;
41
- var zip = kotlin_kotlin.$_$.v8;
42
- var flatMap = kotlin_kotlin.$_$.t7;
43
- var sequenceOf = kotlin_kotlin.$_$.j8;
44
- var to = kotlin_kotlin.$_$.pa;
45
- var sequenceOf_0 = kotlin_kotlin.$_$.i8;
46
- var initMetadataForCompanion = kotlin_kotlin.$_$.u5;
47
- var toString = kotlin_kotlin.$_$.n6;
48
- var getKClass = kotlin_kotlin.$_$.b7;
49
- var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.o;
50
- var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.u;
42
+ var zip = kotlin_kotlin.$_$.a9;
43
+ var flatMap = kotlin_kotlin.$_$.y7;
44
+ var sequenceOf = kotlin_kotlin.$_$.o8;
45
+ var to = kotlin_kotlin.$_$.ya;
46
+ var sequenceOf_0 = kotlin_kotlin.$_$.n8;
47
+ var initMetadataForCompanion = kotlin_kotlin.$_$.b6;
48
+ var toString = kotlin_kotlin.$_$.s6;
49
+ var getKClass = kotlin_kotlin.$_$.g7;
50
+ var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.z;
51
+ var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.o;
51
52
  var castTo = kotlin_it_unibo_tuprolog_utils.$_$.e;
52
- var defineProp = kotlin_kotlin.$_$.l5;
53
+ var defineProp = kotlin_kotlin.$_$.s5;
53
54
  var Castable = kotlin_it_unibo_tuprolog_utils.$_$.f;
54
- var collectionSizeOrDefault = kotlin_kotlin.$_$.z1;
55
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
56
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
57
- var initMetadataForInterface = kotlin_kotlin.$_$.w5;
55
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.d2;
56
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
57
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
58
+ var initMetadataForInterface = kotlin_kotlin.$_$.d6;
58
59
  //endregion
59
60
  //region block: pre-declaration
60
61
  function mguWithOccurCheck(term1, term2, occurCheckEnabled, $super) {
61
62
  occurCheckEnabled = occurCheckEnabled === VOID ? true : occurCheckEnabled;
62
- return $super === VOID ? this.g1h(term1, term2, occurCheckEnabled) : $super.g1h.call(this, term1, term2, occurCheckEnabled);
63
+ return $super === VOID ? this.f1h(term1, term2, occurCheckEnabled) : $super.f1h.call(this, term1, term2, occurCheckEnabled);
63
64
  }
64
65
  function mgu(term1, term2) {
65
- return this.g1h(term1, term2, true);
66
+ return this.f1h(term1, term2, true);
66
67
  }
67
68
  function matchWithOccurCheck(term1, term2, occurCheckEnabled) {
68
- return !(this.g1h(term1, term2, occurCheckEnabled) === Companion_getInstance().failed());
69
+ return !(this.f1h(term1, term2, occurCheckEnabled) === Companion_getInstance().failed());
69
70
  }
70
71
  function match(term1, term2) {
71
72
  return this.matchWithOccurCheck(term1, term2, true);
72
73
  }
73
74
  function unifyWithOccurCheck(term1, term2, occurCheckEnabled) {
74
- var substitution = this.g1h(term1, term2, occurCheckEnabled);
75
- return substitution.g10() ? null : term1.getSubstituted(substitution, []);
75
+ var substitution = this.f1h(term1, term2, occurCheckEnabled);
76
+ return substitution.e10() ? null : term1.getSubstituted(substitution, []);
76
77
  }
77
78
  function unify(term1, term2) {
78
79
  return this.unifyWithOccurCheck(term1, term2, true);
@@ -94,7 +95,7 @@
94
95
  initMetadataForCompanion(Companion_0);
95
96
  //endregion
96
97
  function _get_contextEquations__x0dd77($this) {
97
- var tmp0 = $this.p1g_1;
98
+ var tmp0 = $this.o1g_1;
98
99
  var tmp = KProperty1;
99
100
  // Inline function 'kotlin.getValue' call
100
101
  getPropertyCallableRef('contextEquations', 1, tmp, AbstractUnificator$_get_contextEquations_$ref_7ajcte(), null);
@@ -102,24 +103,24 @@
102
103
  }
103
104
  function occurrenceCheck($this, variable, term) {
104
105
  var tmp;
105
- if (term.vu()) {
106
- tmp = $this.q1g(variable, term);
107
- } else if (term.fu()) {
108
- var tmp0 = term.bu();
109
- var tmp$ret$1;
106
+ if (term.tu()) {
107
+ tmp = $this.p1g(variable, term);
108
+ } else if (term.du()) {
109
+ var tmp0 = term.zt();
110
+ var tmp$ret$0;
110
111
  $l$block: {
111
112
  // Inline function 'kotlin.sequences.any' call
112
- var _iterator__ex2g4s = tmp0.p();
113
- while (_iterator__ex2g4s.s()) {
114
- var element = _iterator__ex2g4s.t();
113
+ var _iterator__ex2g4s = tmp0.n();
114
+ while (_iterator__ex2g4s.q()) {
115
+ var element = _iterator__ex2g4s.r();
115
116
  if (occurrenceCheck($this, variable, element)) {
116
- tmp$ret$1 = true;
117
+ tmp$ret$0 = true;
117
118
  break $l$block;
118
119
  }
119
120
  }
120
- tmp$ret$1 = false;
121
+ tmp$ret$0 = false;
121
122
  }
122
- tmp = tmp$ret$1;
123
+ tmp = tmp$ret$0;
123
124
  } else {
124
125
  tmp = false;
125
126
  }
@@ -127,7 +128,7 @@
127
128
  }
128
129
  function equationsFor($this, term1, term2) {
129
130
  var tmp = Companion_instance_0;
130
- return tmp.r1g(term1, term2, AbstractUnificator$checkTermsEquality$ref($this));
131
+ return tmp.q1g(term1, term2, AbstractUnificator$checkTermsEquality$ref($this));
131
132
  }
132
133
  function equationsFor_0($this, substitution1, substitution2) {
133
134
  var tmp = Companion_instance_0;
@@ -145,7 +146,7 @@
145
146
  }
146
147
  while (inductionVariable < exceptIndex);
147
148
  var inductionVariable_0 = exceptIndex + 1 | 0;
148
- var last = equations.u();
149
+ var last = equations.s();
149
150
  if (inductionVariable_0 < last)
150
151
  do {
151
152
  var i_0 = inductionVariable_0;
@@ -160,28 +161,28 @@
160
161
  while (changed) {
161
162
  changed = false;
162
163
  var eqIterator = equations.b4();
163
- while (eqIterator.s()) {
164
- var eq = eqIterator.t();
165
- if (eq.w1g()) {
164
+ while (eqIterator.q()) {
165
+ var eq = eqIterator.r();
166
+ if (eq.v1g()) {
166
167
  return Companion_getInstance().failed();
167
- } else if (eq.x1g()) {
168
+ } else if (eq.w1g()) {
168
169
  eqIterator.b3();
169
170
  changed = true;
170
- } else if (eq.e1h()) {
171
- var assignment = eq.z1g();
172
- if (occurCheckEnabled && occurrenceCheck($this, assignment.c1h_1, eq.v1g())) {
171
+ } else if (eq.d1h()) {
172
+ var assignment = eq.y1g();
173
+ if (occurCheckEnabled && occurrenceCheck($this, assignment.b1h_1, eq.u1g())) {
173
174
  return Companion_getInstance().failed();
174
175
  } else {
175
176
  changed = changed || applySubstitutionToEquations($this, assignment.toSubstitution(), equations, eqIterator.p3());
176
177
  }
177
- } else if (eq.y1g()) {
178
+ } else if (eq.x1g()) {
178
179
  eqIterator.b3();
179
- var _iterator__ex2g4s = equationsFor($this, eq.u1g(), eq.v1g()).p();
180
- insertion: while (_iterator__ex2g4s.s()) {
181
- var it = _iterator__ex2g4s.t();
182
- if (it.x1g())
180
+ var _iterator__ex2g4s = equationsFor($this, eq.t1g(), eq.u1g()).n();
181
+ insertion: while (_iterator__ex2g4s.q()) {
182
+ var it = _iterator__ex2g4s.r();
183
+ if (it.w1g())
183
184
  continue insertion;
184
- else if (it.w1g())
185
+ else if (it.v1g())
185
186
  return Companion_getInstance().failed();
186
187
  else {
187
188
  eqIterator.s3(it);
@@ -194,11 +195,11 @@
194
195
  // Inline function 'kotlin.collections.filter' call
195
196
  // Inline function 'kotlin.collections.filterTo' call
196
197
  var destination = ArrayList_init_$Create$();
197
- var _iterator__ex2g4s_0 = equations.p();
198
- while (_iterator__ex2g4s_0.s()) {
199
- var element = _iterator__ex2g4s_0.t();
200
- if (element.e1h()) {
201
- destination.n(element);
198
+ var _iterator__ex2g4s_0 = equations.n();
199
+ while (_iterator__ex2g4s_0.q()) {
200
+ var element = _iterator__ex2g4s_0.r();
201
+ if (element.d1h()) {
202
+ destination.l(element);
202
203
  }
203
204
  }
204
205
  return toSubstitution(destination);
@@ -208,58 +209,49 @@
208
209
  var tmp$ret$0 = ArrayList_init_$Create$();
209
210
  return toCollection(items, tmp$ret$0);
210
211
  }
211
- function applySubstitutionToEquations$handleIndex($equations, $substitution, this$0, changed, i) {
212
- if ($equations.z(i).w1g() || $equations.z(i).x1g())
213
- return Unit_instance;
214
- var currentEq = $equations.z(i);
215
- var _destruct__k2r9zo = currentEq.apply($substitution).toPair();
216
- var newLhs = _destruct__k2r9zo.rc();
217
- var newRhs = _destruct__k2r9zo.sc();
218
- if (!currentEq.u1g().equals(newLhs) || !currentEq.v1g().equals(newRhs)) {
219
- var tmp = Companion_instance_0;
220
- $equations.y3(i, tmp.f1h(newLhs, newRhs, AbstractUnificator$checkTermsEquality$ref_0(this$0)));
221
- changed._v = true;
222
- }
223
- }
224
212
  function AbstractUnificator$contextEquations$delegate$lambda(this$0) {
225
213
  return function () {
226
214
  return toEquations(this$0.h8());
227
215
  };
228
216
  }
229
217
  function AbstractUnificator$_get_contextEquations_$ref_7ajcte() {
230
- return function (p0) {
218
+ return constructCallableReference(function (p0) {
231
219
  return _get_contextEquations__x0dd77(p0);
232
- };
220
+ }, 1, 0, 25);
233
221
  }
234
222
  function AbstractUnificator$checkTermsEquality$ref(p0) {
235
- var l = function (_this__u8e3s4, p0_0) {
236
- return p0.q1g(_this__u8e3s4, p0_0);
237
- };
238
- l.callableName = 'checkTermsEquality';
239
- return l;
223
+ return constructCallableReference(function (p0_0, p1) {
224
+ return p0.p1g(p0_0, p1);
225
+ }, 2, 0, 26, 'checkTermsEquality', [p0]);
240
226
  }
241
227
  function AbstractUnificator$equationsFor$lambda(it) {
242
228
  // Inline function 'kotlin.collections.toPair' call
243
229
  return new Pair(it.d2(), it.e2());
244
230
  }
245
- function AbstractUnificator$checkTermsEquality$ref_0(p0) {
246
- var l = function (_this__u8e3s4, p0_0) {
247
- return p0.q1g(_this__u8e3s4, p0_0);
248
- };
249
- l.callableName = 'checkTermsEquality';
250
- return l;
231
+ function applySubstitutionToEquations$handleIndex($equations, $substitution, this$0, changed, i) {
232
+ if ($equations.x(i).v1g() || $equations.x(i).w1g())
233
+ return Unit_instance;
234
+ var currentEq = $equations.x(i);
235
+ var _destruct__k2r9zo = currentEq.apply($substitution).toPair();
236
+ var newLhs = _destruct__k2r9zo.oc();
237
+ var newRhs = _destruct__k2r9zo.pc();
238
+ if (!currentEq.t1g().equals(newLhs) || !currentEq.u1g().equals(newRhs)) {
239
+ var tmp = Companion_instance_0;
240
+ $equations.y3(i, tmp.e1h(newLhs, newRhs, AbstractUnificator$checkTermsEquality$ref(this$0)));
241
+ changed._v = true;
242
+ }
251
243
  }
252
244
  function AbstractUnificator(context) {
253
245
  context = context === VOID ? Companion_getInstance().empty() : context;
254
- this.o1g_1 = context;
246
+ this.n1g_1 = context;
255
247
  var tmp = this;
256
- tmp.p1g_1 = lazy(AbstractUnificator$contextEquations$delegate$lambda(this));
248
+ tmp.o1g_1 = lazy(AbstractUnificator$contextEquations$delegate$lambda(this));
257
249
  }
258
250
  protoOf(AbstractUnificator).h8 = function () {
259
- return this.o1g_1;
251
+ return this.n1g_1;
260
252
  };
261
- protoOf(AbstractUnificator).g1h = function (term1, term2, occurCheckEnabled) {
262
- if (this.h8().g10())
253
+ protoOf(AbstractUnificator).f1h = function (term1, term2, occurCheckEnabled) {
254
+ if (this.h8().e10())
263
255
  return Companion_getInstance().failed();
264
256
  var equations = newDeque(this, plus(asSequence_0(_get_contextEquations__x0dd77(this)), equationsFor(this, term1, term2)));
265
257
  return mgu_0(this, equations, occurCheckEnabled);
@@ -267,12 +259,12 @@
267
259
  protoOf(AbstractUnificator).mguWithOccurCheck = function (term1, term2, occurCheckEnabled, $super) {
268
260
  return this.mguWithOccurCheck(term1, term2, occurCheckEnabled, ($super == null ? true : $super instanceof AbstractUnificator) ? $super : THROW_CCE());
269
261
  };
270
- protoOf(AbstractUnificator).h1h = function (substitution1, substitution2, occurCheckEnabled) {
271
- if (this.h8().g10() || substitution1.g10() || substitution2.g10())
262
+ protoOf(AbstractUnificator).g1h = function (substitution1, substitution2, occurCheckEnabled) {
263
+ if (this.h8().e10() || substitution1.e10() || substitution2.e10())
272
264
  return Companion_getInstance().failed();
273
265
  if (!occurCheckEnabled) {
274
266
  var quickMerge = this.h8().plus(substitution1).plus(substitution2);
275
- if (quickMerge.f10()) {
267
+ if (quickMerge.d10()) {
276
268
  return quickMerge;
277
269
  }
278
270
  }
@@ -280,21 +272,21 @@
280
272
  return mgu_0(this, equations, occurCheckEnabled);
281
273
  };
282
274
  protoOf(AbstractUnificator).mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
283
- return this.h1h(substitution1, substitution2, occurCheckEnabled);
275
+ return this.g1h(substitution1, substitution2, occurCheckEnabled);
284
276
  };
285
277
  function CachedUnificator(decorated, cacheCapacity) {
286
- this.i1h_1 = decorated;
287
- this.j1h_1 = Companion_instance.wo(cacheCapacity);
278
+ this.h1h_1 = decorated;
279
+ this.i1h_1 = Companion_instance.uo(cacheCapacity);
288
280
  }
289
- protoOf(CachedUnificator).g1h = function (term1, term2, occurCheckEnabled) {
281
+ protoOf(CachedUnificator).f1h = function (term1, term2, occurCheckEnabled) {
290
282
  var mguRequest = new Triple(term1, term2, occurCheckEnabled);
291
- var cached = this.j1h_1.h2(mguRequest);
283
+ var cached = this.i1h_1.h2(mguRequest);
292
284
  var tmp;
293
285
  if (cached instanceof Some) {
294
- tmp = cached.zo_1;
286
+ tmp = cached.xo_1;
295
287
  } else {
296
- var mguResult = this.i1h_1.g1h(term1, term2, occurCheckEnabled);
297
- this.j1h_1.xo(mguRequest, mguResult);
288
+ var mguResult = this.h1h_1.f1h(term1, term2, occurCheckEnabled);
289
+ this.i1h_1.vo(mguRequest, mguResult);
298
290
  tmp = mguResult;
299
291
  }
300
292
  return tmp;
@@ -302,123 +294,93 @@
302
294
  protoOf(CachedUnificator).mguWithOccurCheck = function (term1, term2, occurCheckEnabled, $super) {
303
295
  return this.mguWithOccurCheck(term1, term2, occurCheckEnabled, ($super == null ? true : $super instanceof CachedUnificator) ? $super : THROW_CCE());
304
296
  };
305
- protoOf(CachedUnificator).h1h = function (substitution1, substitution2, occurCheckEnabled) {
297
+ protoOf(CachedUnificator).g1h = function (substitution1, substitution2, occurCheckEnabled) {
306
298
  var mguRequest = new Triple(substitution1, substitution2, occurCheckEnabled);
307
- var cached = this.j1h_1.h2(mguRequest);
299
+ var cached = this.i1h_1.h2(mguRequest);
308
300
  var tmp;
309
301
  if (cached instanceof Some) {
310
- tmp = cached.zo_1;
302
+ tmp = cached.xo_1;
311
303
  } else {
312
- var mguResult = this.i1h_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
313
- this.j1h_1.xo(mguRequest, mguResult);
304
+ var mguResult = this.h1h_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
305
+ this.i1h_1.vo(mguRequest, mguResult);
314
306
  tmp = mguResult;
315
307
  }
316
308
  return tmp;
317
309
  };
318
310
  protoOf(CachedUnificator).mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
319
- return this.h1h(substitution1, substitution2, occurCheckEnabled);
311
+ return this.g1h(substitution1, substitution2, occurCheckEnabled);
320
312
  };
321
313
  function allOfLists($this, lhs, rhs, equalityChecker) {
322
- var tmp = zip(lhs.unfold(), rhs.unfold());
323
- return flatMap(tmp, Equation$Companion$allOfLists$lambda(equalityChecker));
314
+ var tmp;
315
+ if (equalityChecker === VOID) {
316
+ tmp = Term$equals$ref();
317
+ } else {
318
+ tmp = equalityChecker;
319
+ }
320
+ equalityChecker = tmp;
321
+ var tmp_0 = zip(lhs.unfold(), rhs.unfold());
322
+ return flatMap(tmp_0, Equation$Companion$allOfLists$lambda(equalityChecker));
324
323
  }
325
324
  function allOfTuples($this, lhs, rhs, equalityChecker) {
326
- var tmp = zip(lhs.unfold(), rhs.unfold());
327
- return flatMap(tmp, Equation$Companion$allOfTuples$lambda(equalityChecker));
325
+ var tmp;
326
+ if (equalityChecker === VOID) {
327
+ tmp = Term$equals$ref();
328
+ } else {
329
+ tmp = equalityChecker;
330
+ }
331
+ equalityChecker = tmp;
332
+ var tmp_0 = zip(lhs.unfold(), rhs.unfold());
333
+ return flatMap(tmp_0, Equation$Companion$allOfTuples$lambda(equalityChecker));
328
334
  }
329
335
  function Term$equals$ref() {
330
- var l = function (p0, p1) {
331
- return p0.equals(p1);
332
- };
333
- l.callableName = 'equals';
334
- return l;
335
- }
336
- function Term$equals$ref_0() {
337
- var l = function (p0, p1) {
338
- return p0.equals(p1);
339
- };
340
- l.callableName = 'equals';
341
- return l;
342
- }
343
- function Term$equals$ref_1() {
344
- var l = function (p0, p1) {
336
+ return constructCallableReference(function (p0, p1) {
345
337
  return p0.equals(p1);
346
- };
347
- l.callableName = 'equals';
348
- return l;
338
+ }, 2, 0, 27, 'equals');
349
339
  }
350
340
  function Equation$Companion$from$lambda($equalityChecker) {
351
341
  return function (it) {
352
- return Companion_instance_0.k1h(it, $equalityChecker);
353
- };
354
- }
355
- function Term$equals$ref_2() {
356
- var l = function (p0, p1) {
357
- return p0.equals(p1);
358
- };
359
- l.callableName = 'equals';
360
- return l;
361
- }
362
- function Term$equals$ref_3() {
363
- var l = function (p0, p1) {
364
- return p0.equals(p1);
365
- };
366
- l.callableName = 'equals';
367
- return l;
368
- }
369
- function Term$equals$ref_4() {
370
- var l = function (p0, p1) {
371
- return p0.equals(p1);
342
+ return Companion_instance_0.j1h(it, $equalityChecker);
372
343
  };
373
- l.callableName = 'equals';
374
- return l;
375
344
  }
376
345
  function Equation$Companion$allOfLists$lambda($equalityChecker) {
377
346
  return function (_destruct__k2r9zo) {
378
- var l = _destruct__k2r9zo.rc();
379
- var r = _destruct__k2r9zo.sc();
380
- return l.mu() && r.mu() ? sequenceOf(Companion_instance_0.f1h(l.castToCons().fw(), r.castToCons().fw(), $equalityChecker)) : l.lu() && r.lu() ? sequenceOf(Companion_instance_0.f1h(l.castToList(), r.castToList(), $equalityChecker)) : Companion_instance_0.r1g(l, r, $equalityChecker);
347
+ var l = _destruct__k2r9zo.oc();
348
+ var r = _destruct__k2r9zo.pc();
349
+ return l.ku() && r.ku() ? sequenceOf(Companion_instance_0.e1h(l.castToCons().dw(), r.castToCons().dw(), $equalityChecker)) : l.ju() && r.ju() ? sequenceOf(Companion_instance_0.e1h(l.castToList(), r.castToList(), $equalityChecker)) : Companion_instance_0.q1g(l, r, $equalityChecker);
381
350
  };
382
351
  }
383
352
  function Equation$Companion$allOfTuples$lambda($equalityChecker) {
384
353
  return function (_destruct__k2r9zo) {
385
- var l = _destruct__k2r9zo.rc();
386
- var r = _destruct__k2r9zo.sc();
387
- return l.ku() && r.ku() ? sequenceOf(Companion_instance_0.f1h(l.castToTuple().tv(), r.castToTuple().tv(), $equalityChecker)) : Companion_instance_0.r1g(l, r, $equalityChecker);
388
- };
389
- }
390
- function Term$equals$ref_5() {
391
- var l = function (p0, p1) {
392
- return p0.equals(p1);
354
+ var l = _destruct__k2r9zo.oc();
355
+ var r = _destruct__k2r9zo.pc();
356
+ return l.iu() && r.iu() ? sequenceOf(Companion_instance_0.e1h(l.castToTuple().rv(), r.castToTuple().rv(), $equalityChecker)) : Companion_instance_0.q1g(l, r, $equalityChecker);
393
357
  };
394
- l.callableName = 'equals';
395
- return l;
396
358
  }
397
359
  function Equation$Companion$allOf$lambda($equalityChecker) {
398
360
  return function (it) {
399
- return Companion_instance_0.k1h(it, $equalityChecker);
361
+ return Companion_instance_0.j1h(it, $equalityChecker);
400
362
  };
401
363
  }
402
364
  function Identity(lhs, rhs) {
403
365
  Equation.call(this, lhs, rhs);
404
- this.n1h_1 = lhs;
405
- this.o1h_1 = rhs;
366
+ this.m1h_1 = lhs;
367
+ this.n1h_1 = rhs;
406
368
  }
369
+ protoOf(Identity).t1g = function () {
370
+ return this.m1h_1;
371
+ };
407
372
  protoOf(Identity).u1g = function () {
408
373
  return this.n1h_1;
409
374
  };
410
- protoOf(Identity).v1g = function () {
411
- return this.o1h_1;
412
- };
413
- protoOf(Identity).x1g = function () {
375
+ protoOf(Identity).w1g = function () {
414
376
  return true;
415
377
  };
416
378
  protoOf(Identity).toString = function () {
417
- return 'Identity(lhs=' + this.n1h_1.toString() + ', rhs=' + this.o1h_1.toString() + ')';
379
+ return 'Identity(lhs=' + this.m1h_1.toString() + ', rhs=' + this.n1h_1.toString() + ')';
418
380
  };
419
381
  protoOf(Identity).hashCode = function () {
420
- var result = this.n1h_1.hashCode();
421
- result = imul(result, 31) + this.o1h_1.hashCode() | 0;
382
+ var result = this.m1h_1.hashCode();
383
+ result = imul(result, 31) + this.n1h_1.hashCode() | 0;
422
384
  return result;
423
385
  };
424
386
  protoOf(Identity).equals = function (other) {
@@ -426,44 +388,44 @@
426
388
  return true;
427
389
  if (!(other instanceof Identity))
428
390
  return false;
429
- if (!this.n1h_1.equals(other.n1h_1))
391
+ if (!this.m1h_1.equals(other.m1h_1))
430
392
  return false;
431
- if (!this.o1h_1.equals(other.o1h_1))
393
+ if (!this.n1h_1.equals(other.n1h_1))
432
394
  return false;
433
395
  return true;
434
396
  };
435
397
  function Assignment(lhs, rhs) {
436
398
  Equation.call(this, lhs, rhs);
437
- this.c1h_1 = lhs;
438
- this.d1h_1 = rhs;
399
+ this.b1h_1 = lhs;
400
+ this.c1h_1 = rhs;
439
401
  }
402
+ protoOf(Assignment).t1g = function () {
403
+ return this.b1h_1;
404
+ };
440
405
  protoOf(Assignment).u1g = function () {
441
406
  return this.c1h_1;
442
407
  };
443
- protoOf(Assignment).v1g = function () {
444
- return this.d1h_1;
445
- };
446
408
  protoOf(Assignment).toSubstitution = function () {
447
- return Companion_getInstance().unifier(this.c1h_1, this.d1h_1);
409
+ return Companion_getInstance().unifier(this.b1h_1, this.c1h_1);
448
410
  };
449
- protoOf(Assignment).r1h = function () {
450
- return to(this.c1h_1, this.d1h_1);
411
+ protoOf(Assignment).q1h = function () {
412
+ return to(this.b1h_1, this.c1h_1);
451
413
  };
452
414
  protoOf(Assignment).toPair = function () {
453
- return this.r1h();
415
+ return this.q1h();
454
416
  };
455
- protoOf(Assignment).e1h = function () {
417
+ protoOf(Assignment).d1h = function () {
456
418
  return true;
457
419
  };
458
- protoOf(Assignment).p1h = function () {
420
+ protoOf(Assignment).o1h = function () {
459
421
  return this;
460
422
  };
461
423
  protoOf(Assignment).toString = function () {
462
- return 'Assignment(lhs=' + this.c1h_1.toString() + ', rhs=' + this.d1h_1.toString() + ')';
424
+ return 'Assignment(lhs=' + this.b1h_1.toString() + ', rhs=' + this.c1h_1.toString() + ')';
463
425
  };
464
426
  protoOf(Assignment).hashCode = function () {
465
- var result = this.c1h_1.hashCode();
466
- result = imul(result, 31) + this.d1h_1.hashCode() | 0;
427
+ var result = this.b1h_1.hashCode();
428
+ result = imul(result, 31) + this.c1h_1.hashCode() | 0;
467
429
  return result;
468
430
  };
469
431
  protoOf(Assignment).equals = function (other) {
@@ -471,32 +433,32 @@
471
433
  return true;
472
434
  if (!(other instanceof Assignment))
473
435
  return false;
474
- if (!this.c1h_1.equals(other.c1h_1))
436
+ if (!this.b1h_1.equals(other.b1h_1))
475
437
  return false;
476
- if (!this.d1h_1.equals(other.d1h_1))
438
+ if (!this.c1h_1.equals(other.c1h_1))
477
439
  return false;
478
440
  return true;
479
441
  };
480
442
  function Comparison(lhs, rhs) {
481
443
  Equation.call(this, lhs, rhs);
482
- this.u1h_1 = lhs;
483
- this.v1h_1 = rhs;
444
+ this.t1h_1 = lhs;
445
+ this.u1h_1 = rhs;
484
446
  }
447
+ protoOf(Comparison).t1g = function () {
448
+ return this.t1h_1;
449
+ };
485
450
  protoOf(Comparison).u1g = function () {
486
451
  return this.u1h_1;
487
452
  };
488
- protoOf(Comparison).v1g = function () {
489
- return this.v1h_1;
490
- };
491
- protoOf(Comparison).y1g = function () {
453
+ protoOf(Comparison).x1g = function () {
492
454
  return true;
493
455
  };
494
456
  protoOf(Comparison).toString = function () {
495
- return 'Comparison(lhs=' + this.u1h_1.toString() + ', rhs=' + this.v1h_1.toString() + ')';
457
+ return 'Comparison(lhs=' + this.t1h_1.toString() + ', rhs=' + this.u1h_1.toString() + ')';
496
458
  };
497
459
  protoOf(Comparison).hashCode = function () {
498
- var result = this.u1h_1.hashCode();
499
- result = imul(result, 31) + this.v1h_1.hashCode() | 0;
460
+ var result = this.t1h_1.hashCode();
461
+ result = imul(result, 31) + this.u1h_1.hashCode() | 0;
500
462
  return result;
501
463
  };
502
464
  protoOf(Comparison).equals = function (other) {
@@ -504,32 +466,32 @@
504
466
  return true;
505
467
  if (!(other instanceof Comparison))
506
468
  return false;
507
- if (!this.u1h_1.equals(other.u1h_1))
469
+ if (!this.t1h_1.equals(other.t1h_1))
508
470
  return false;
509
- if (!this.v1h_1.equals(other.v1h_1))
471
+ if (!this.u1h_1.equals(other.u1h_1))
510
472
  return false;
511
473
  return true;
512
474
  };
513
475
  function Contradiction(lhs, rhs) {
514
476
  Equation.call(this, lhs, rhs);
515
- this.y1h_1 = lhs;
516
- this.z1h_1 = rhs;
477
+ this.x1h_1 = lhs;
478
+ this.y1h_1 = rhs;
517
479
  }
480
+ protoOf(Contradiction).t1g = function () {
481
+ return this.x1h_1;
482
+ };
518
483
  protoOf(Contradiction).u1g = function () {
519
484
  return this.y1h_1;
520
485
  };
521
486
  protoOf(Contradiction).v1g = function () {
522
- return this.z1h_1;
523
- };
524
- protoOf(Contradiction).w1g = function () {
525
487
  return true;
526
488
  };
527
489
  protoOf(Contradiction).toString = function () {
528
- return 'Contradiction(lhs=' + this.y1h_1.toString() + ', rhs=' + this.z1h_1.toString() + ')';
490
+ return 'Contradiction(lhs=' + this.x1h_1.toString() + ', rhs=' + this.y1h_1.toString() + ')';
529
491
  };
530
492
  protoOf(Contradiction).hashCode = function () {
531
- var result = this.y1h_1.hashCode();
532
- result = imul(result, 31) + this.z1h_1.hashCode() | 0;
493
+ var result = this.x1h_1.hashCode();
494
+ result = imul(result, 31) + this.y1h_1.hashCode() | 0;
533
495
  return result;
534
496
  };
535
497
  protoOf(Contradiction).equals = function (other) {
@@ -537,17 +499,17 @@
537
499
  return true;
538
500
  if (!(other instanceof Contradiction))
539
501
  return false;
540
- if (!this.y1h_1.equals(other.y1h_1))
502
+ if (!this.x1h_1.equals(other.x1h_1))
541
503
  return false;
542
- if (!this.z1h_1.equals(other.z1h_1))
504
+ if (!this.y1h_1.equals(other.y1h_1))
543
505
  return false;
544
506
  return true;
545
507
  };
546
508
  function Companion() {
547
509
  }
548
- protoOf(Companion).f1h = function (lhs, rhs, equalityChecker) {
510
+ protoOf(Companion).e1h = function (lhs, rhs, equalityChecker) {
549
511
  var tmp;
550
- if (lhs.vu() && rhs.vu()) {
512
+ if (lhs.tu() && rhs.tu()) {
551
513
  var tmp_0;
552
514
  if (equalityChecker(lhs, rhs)) {
553
515
  tmp_0 = new Identity(lhs, rhs);
@@ -555,11 +517,11 @@
555
517
  tmp_0 = new Assignment(lhs.castToVar(), rhs);
556
518
  }
557
519
  tmp = tmp_0;
558
- } else if (lhs.vu()) {
520
+ } else if (lhs.tu()) {
559
521
  tmp = new Assignment(lhs.castToVar(), rhs);
560
- } else if (rhs.vu()) {
522
+ } else if (rhs.tu()) {
561
523
  tmp = new Assignment(rhs.castToVar(), lhs);
562
- } else if (lhs.yu() && rhs.yu()) {
524
+ } else if (lhs.wu() && rhs.wu()) {
563
525
  var tmp_1;
564
526
  if (equalityChecker(lhs, rhs)) {
565
527
  tmp_1 = new Identity(lhs, rhs);
@@ -567,13 +529,13 @@
567
529
  tmp_1 = new Contradiction(lhs, rhs);
568
530
  }
569
531
  tmp = tmp_1;
570
- } else if (lhs.yu() || rhs.yu()) {
532
+ } else if (lhs.wu() || rhs.wu()) {
571
533
  tmp = new Contradiction(lhs, rhs);
572
- } else if (lhs.fu() && rhs.fu()) {
534
+ } else if (lhs.du() && rhs.du()) {
573
535
  var lhsStruct = lhs.castToStruct();
574
536
  var rhsStruct = rhs.castToStruct();
575
537
  var tmp_2;
576
- if (!(lhsStruct.tt() === rhsStruct.tt()) || !(lhsStruct.zt() === rhsStruct.zt())) {
538
+ if (!(lhsStruct.rt() === rhsStruct.rt()) || !(lhsStruct.xt() === rhsStruct.xt())) {
577
539
  tmp_2 = new Contradiction(lhsStruct, rhsStruct);
578
540
  } else {
579
541
  tmp_2 = new Comparison(lhsStruct, rhsStruct);
@@ -592,139 +554,132 @@
592
554
  tmp = equalityChecker;
593
555
  }
594
556
  equalityChecker = tmp;
595
- return $super === VOID ? this.f1h(lhs, rhs, equalityChecker) : $super.f1h.call(this, lhs, rhs, equalityChecker);
557
+ return $super === VOID ? this.e1h(lhs, rhs, equalityChecker) : $super.e1h.call(this, lhs, rhs, equalityChecker);
596
558
  };
597
- protoOf(Companion).a1i = function (pair, equalityChecker) {
598
- return this.f1h(pair.xc_1, pair.yc_1, equalityChecker);
559
+ protoOf(Companion).z1h = function (pair, equalityChecker) {
560
+ return this.e1h(pair.first, pair.second, equalityChecker);
599
561
  };
600
562
  protoOf(Companion).ofPair = function (pair, equalityChecker, $super) {
601
563
  var tmp;
602
564
  if (equalityChecker === VOID) {
603
- tmp = Term$equals$ref_0();
565
+ tmp = Term$equals$ref();
604
566
  } else {
605
567
  tmp = equalityChecker;
606
568
  }
607
569
  equalityChecker = tmp;
608
- return $super === VOID ? this.a1i(pair, equalityChecker) : $super.a1i.call(this, pair, equalityChecker);
570
+ return $super === VOID ? this.z1h(pair, equalityChecker) : $super.z1h.call(this, pair, equalityChecker);
609
571
  };
610
- protoOf(Companion).b1i = function (pairs, equalityChecker) {
572
+ protoOf(Companion).a1i = function (pairs, equalityChecker) {
611
573
  return flatMap(pairs, Equation$Companion$from$lambda(equalityChecker));
612
574
  };
613
575
  protoOf(Companion).fromSequence = function (pairs, equalityChecker, $super) {
614
576
  var tmp;
615
577
  if (equalityChecker === VOID) {
616
- tmp = Term$equals$ref_1();
578
+ tmp = Term$equals$ref();
617
579
  } else {
618
580
  tmp = equalityChecker;
619
581
  }
620
582
  equalityChecker = tmp;
621
- return $super === VOID ? this.b1i(pairs, equalityChecker) : $super.b1i.call(this, pairs, equalityChecker);
583
+ return $super === VOID ? this.a1i(pairs, equalityChecker) : $super.a1i.call(this, pairs, equalityChecker);
622
584
  };
623
- protoOf(Companion).c1i = function (pairs, equalityChecker) {
624
- return this.b1i(asSequence_0(pairs), equalityChecker);
585
+ protoOf(Companion).b1i = function (pairs, equalityChecker) {
586
+ return this.a1i(asSequence_0(pairs), equalityChecker);
625
587
  };
626
588
  protoOf(Companion).fromIterable = function (pairs, equalityChecker, $super) {
627
589
  var tmp;
628
590
  if (equalityChecker === VOID) {
629
- tmp = Term$equals$ref_2();
591
+ tmp = Term$equals$ref();
630
592
  } else {
631
593
  tmp = equalityChecker;
632
594
  }
633
595
  equalityChecker = tmp;
634
- return $super === VOID ? this.c1i(pairs, equalityChecker) : $super.c1i.call(this, pairs, equalityChecker);
596
+ return $super === VOID ? this.b1i(pairs, equalityChecker) : $super.b1i.call(this, pairs, equalityChecker);
635
597
  };
636
- protoOf(Companion).d1i = function (pairs, equalityChecker) {
637
- return this.b1i(sequenceOf_0(pairs.slice()), equalityChecker);
598
+ protoOf(Companion).c1i = function (pairs, equalityChecker) {
599
+ return this.a1i(sequenceOf_0(pairs.slice()), equalityChecker);
638
600
  };
639
601
  protoOf(Companion).from = function (pairs, equalityChecker, $super) {
640
602
  var tmp;
641
603
  if (equalityChecker === VOID) {
642
- tmp = Term$equals$ref_3();
604
+ tmp = Term$equals$ref();
643
605
  } else {
644
606
  tmp = equalityChecker;
645
607
  }
646
608
  equalityChecker = tmp;
647
- return $super === VOID ? this.d1i(pairs, equalityChecker) : $super.d1i.call(this, pairs, equalityChecker);
609
+ return $super === VOID ? this.c1i(pairs, equalityChecker) : $super.c1i.call(this, pairs, equalityChecker);
648
610
  };
649
- protoOf(Companion).k1h = function (pair, equalityChecker) {
650
- return this.r1g(pair.xc_1, pair.yc_1, equalityChecker);
611
+ protoOf(Companion).j1h = function (pair, equalityChecker) {
612
+ return this.q1g(pair.first, pair.second, equalityChecker);
651
613
  };
652
614
  protoOf(Companion).allOfPair = function (pair, equalityChecker, $super) {
653
615
  var tmp;
654
616
  if (equalityChecker === VOID) {
655
- tmp = Term$equals$ref_4();
617
+ tmp = Term$equals$ref();
656
618
  } else {
657
619
  tmp = equalityChecker;
658
620
  }
659
621
  equalityChecker = tmp;
660
- return $super === VOID ? this.k1h(pair, equalityChecker) : $super.k1h.call(this, pair, equalityChecker);
622
+ return $super === VOID ? this.j1h(pair, equalityChecker) : $super.j1h.call(this, pair, equalityChecker);
661
623
  };
662
- protoOf(Companion).r1g = function (lhs, rhs, equalityChecker) {
624
+ protoOf(Companion).q1g = function (lhs, rhs, equalityChecker) {
663
625
  var tmp;
664
- if (lhs.ut() && rhs.ut()) {
665
- tmp = sequenceOf(this.f1h(lhs, rhs, equalityChecker));
666
- } else if (lhs.lu() && rhs.lu()) {
626
+ if (lhs.st() && rhs.st()) {
627
+ tmp = sequenceOf(this.e1h(lhs, rhs, equalityChecker));
628
+ } else if (lhs.ju() && rhs.ju()) {
667
629
  tmp = allOfLists(this, lhs.castToList(), rhs.castToList(), equalityChecker);
668
- } else if (lhs.ku() && rhs.ku()) {
630
+ } else if (lhs.iu() && rhs.iu()) {
669
631
  tmp = allOfTuples(this, lhs.castToTuple(), rhs.castToTuple(), equalityChecker);
670
- } else if (lhs.fu() && rhs.fu()) {
632
+ } else if (lhs.du() && rhs.du()) {
671
633
  var lhsStruct = lhs.castToStruct();
672
634
  var rhsStruct = rhs.castToStruct();
673
635
  var tmp_0;
674
- if (lhsStruct.tt() === rhsStruct.tt() && lhsStruct.zt() === rhsStruct.zt()) {
675
- var tmp_1 = zip(lhsStruct.su(), rhsStruct.su());
636
+ if (lhsStruct.rt() === rhsStruct.rt() && lhsStruct.xt() === rhsStruct.xt()) {
637
+ var tmp_1 = zip(lhsStruct.qu(), rhsStruct.qu());
676
638
  tmp_0 = flatMap(tmp_1, Equation$Companion$allOf$lambda(equalityChecker));
677
639
  } else {
678
- tmp_0 = sequenceOf(this.f1h(lhs, rhs, equalityChecker));
640
+ tmp_0 = sequenceOf(this.e1h(lhs, rhs, equalityChecker));
679
641
  }
680
642
  tmp = tmp_0;
681
643
  } else {
682
- tmp = sequenceOf(this.f1h(lhs, rhs, equalityChecker));
644
+ tmp = sequenceOf(this.e1h(lhs, rhs, equalityChecker));
683
645
  }
684
646
  return tmp;
685
647
  };
686
648
  protoOf(Companion).allOf = function (lhs, rhs, equalityChecker, $super) {
687
649
  var tmp;
688
650
  if (equalityChecker === VOID) {
689
- tmp = Term$equals$ref_5();
651
+ tmp = Term$equals$ref();
690
652
  } else {
691
653
  tmp = equalityChecker;
692
654
  }
693
655
  equalityChecker = tmp;
694
- return $super === VOID ? this.r1g(lhs, rhs, equalityChecker) : $super.r1g.call(this, lhs, rhs, equalityChecker);
656
+ return $super === VOID ? this.q1g(lhs, rhs, equalityChecker) : $super.q1g.call(this, lhs, rhs, equalityChecker);
695
657
  };
696
658
  var Companion_instance_0;
697
659
  function Companion_getInstance_1() {
698
660
  return Companion_instance_0;
699
661
  }
700
- function Term$equals$ref_6() {
701
- var l = function (p0, p1) {
702
- return p0.equals(p1);
703
- };
704
- l.callableName = 'equals';
705
- return l;
706
- }
707
662
  function Equation(lhs, rhs) {
708
- this.s1g_1 = lhs;
709
- this.t1g_1 = rhs;
663
+ this.r1g_1 = lhs;
664
+ this.s1g_1 = rhs;
710
665
  }
666
+ protoOf(Equation).t1g = function () {
667
+ return this.r1g_1;
668
+ };
711
669
  protoOf(Equation).u1g = function () {
712
670
  return this.s1g_1;
713
671
  };
714
- protoOf(Equation).v1g = function () {
715
- return this.t1g_1;
716
- };
717
- protoOf(Equation).x1g = function () {
672
+ protoOf(Equation).w1g = function () {
718
673
  return false;
719
674
  };
720
- protoOf(Equation).e1h = function () {
675
+ protoOf(Equation).d1h = function () {
721
676
  return false;
722
677
  };
723
- protoOf(Equation).p1h = function () {
678
+ protoOf(Equation).o1h = function () {
724
679
  return null;
725
680
  };
726
- protoOf(Equation).z1g = function () {
727
- var tmp0_elvis_lhs = this.p1h();
681
+ protoOf(Equation).y1g = function () {
682
+ var tmp0_elvis_lhs = this.o1h();
728
683
  var tmp;
729
684
  if (tmp0_elvis_lhs == null) {
730
685
  throw ClassCastException_init_$Create$('Cannot cast ' + toString(this) + ' to ' + getKClass(Assignment).b9());
@@ -733,51 +688,51 @@
733
688
  }
734
689
  return tmp;
735
690
  };
736
- protoOf(Equation).y1g = function () {
691
+ protoOf(Equation).x1g = function () {
737
692
  return false;
738
693
  };
739
- protoOf(Equation).w1g = function () {
694
+ protoOf(Equation).v1g = function () {
740
695
  return false;
741
696
  };
742
- protoOf(Equation).x1f = function () {
743
- return Companion_getInstance_0().of('=', [this.u1g(), this.v1g()]);
697
+ protoOf(Equation).w1f = function () {
698
+ return Companion_getInstance_0().of('=', [this.t1g(), this.u1g()]);
744
699
  };
745
700
  protoOf(Equation).toTerm = function () {
746
- return this.x1f();
701
+ return this.w1f();
747
702
  };
748
703
  protoOf(Equation).toPair = function () {
749
- return new Pair(this.u1g(), this.v1g());
704
+ return new Pair(this.t1g(), this.u1g());
750
705
  };
751
706
  protoOf(Equation).swap = function () {
752
- return Companion_instance_0.of(this.v1g(), this.u1g());
707
+ return Companion_instance_0.of(this.u1g(), this.t1g());
753
708
  };
754
- protoOf(Equation).q1h = function (substitution, equalityChecker) {
755
- return Companion_instance_0.f1h(this.u1g().getSubstituted(substitution, []), this.v1g().getSubstituted(substitution, []), equalityChecker);
709
+ protoOf(Equation).p1h = function (substitution, equalityChecker) {
710
+ return Companion_instance_0.e1h(this.t1g().getSubstituted(substitution, []), this.u1g().getSubstituted(substitution, []), equalityChecker);
756
711
  };
757
712
  protoOf(Equation).apply = function (substitution, equalityChecker, $super) {
758
713
  var tmp;
759
714
  if (equalityChecker === VOID) {
760
- tmp = Term$equals$ref_6();
715
+ tmp = Term$equals$ref();
761
716
  } else {
762
717
  tmp = equalityChecker;
763
718
  }
764
719
  equalityChecker = tmp;
765
- return $super === VOID ? this.q1h(substitution, equalityChecker) : $super.q1h.call(this, substitution, equalityChecker);
720
+ return $super === VOID ? this.p1h(substitution, equalityChecker) : $super.p1h.call(this, substitution, equalityChecker);
766
721
  };
767
722
  function toEquations(_this__u8e3s4) {
768
723
  // Inline function 'kotlin.collections.map' call
769
- var this_0 = _this__u8e3s4.f1();
724
+ var this_0 = _this__u8e3s4.d1();
770
725
  // Inline function 'kotlin.collections.mapTo' call
771
726
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
772
- var _iterator__ex2g4s = this_0.p();
773
- while (_iterator__ex2g4s.s()) {
774
- var item = _iterator__ex2g4s.t();
727
+ var _iterator__ex2g4s = this_0.n();
728
+ while (_iterator__ex2g4s.q()) {
729
+ var item = _iterator__ex2g4s.r();
775
730
  // Inline function 'kotlin.collections.component1' call
776
731
  var variable = item.d2();
777
732
  // Inline function 'kotlin.collections.component2' call
778
733
  var term = item.e2();
779
734
  var tmp$ret$2 = new Assignment(variable, term);
780
- destination.n(tmp$ret$2);
735
+ destination.l(tmp$ret$2);
781
736
  }
782
737
  return destination;
783
738
  }
@@ -788,12 +743,12 @@
788
743
  }
789
744
  function toAssignmentPair(_this__u8e3s4) {
790
745
  var tmp;
791
- if (_this__u8e3s4.e1h()) {
792
- tmp = _this__u8e3s4.z1g().r1h();
793
- } else if (_this__u8e3s4.u1g().vu()) {
794
- tmp = to(_this__u8e3s4.u1g().castToVar(), _this__u8e3s4.v1g());
795
- } else if (_this__u8e3s4.v1g().vu()) {
796
- tmp = to(_this__u8e3s4.v1g().castToVar(), _this__u8e3s4.u1g());
746
+ if (_this__u8e3s4.d1h()) {
747
+ tmp = _this__u8e3s4.y1g().q1h();
748
+ } else if (_this__u8e3s4.t1g().tu()) {
749
+ tmp = to(_this__u8e3s4.t1g().castToVar(), _this__u8e3s4.u1g());
750
+ } else if (_this__u8e3s4.u1g().tu()) {
751
+ tmp = to(_this__u8e3s4.u1g().castToVar(), _this__u8e3s4.t1g());
797
752
  } else {
798
753
  throw IllegalArgumentException_init_$Create$('Equation contains no variables: ' + toString(_this__u8e3s4));
799
754
  }
@@ -806,19 +761,19 @@
806
761
  return Companion_getInstance_2().strict();
807
762
  }
808
763
  function Unificator$Companion$_get_default_$ref_8i2tx3() {
809
- return function (p0) {
810
- return p0.g1i();
811
- };
764
+ return constructCallableReference(function (p0) {
765
+ return p0.f1i();
766
+ }, 1, 0, 28);
812
767
  }
813
768
  function Unificator$Companion$naive$1($context) {
814
769
  AbstractUnificator.call(this, $context);
815
770
  }
816
- protoOf(Unificator$Companion$naive$1).q1g = function (first, second) {
771
+ protoOf(Unificator$Companion$naive$1).p1g = function (first, second) {
817
772
  var tmp;
818
- if (first.av() && second.av()) {
819
- tmp = first.castToInteger().e2().dj(second.castToInteger().e2()) === 0;
820
- } else if (first.zu() && second.zu()) {
821
- tmp = first.castToNumeric().py().ui(second.castToNumeric().py()) === 0;
773
+ if (first.yu() && second.yu()) {
774
+ tmp = first.castToInteger().e2().bj(second.castToInteger().e2()) === 0;
775
+ } else if (first.xu() && second.xu()) {
776
+ tmp = first.castToNumeric().ny().si(second.castToNumeric().ny()) === 0;
822
777
  } else {
823
778
  tmp = first.equals(second);
824
779
  }
@@ -830,7 +785,7 @@
830
785
  function Unificator$Companion$strict$1($context) {
831
786
  AbstractUnificator.call(this, $context);
832
787
  }
833
- protoOf(Unificator$Companion$strict$1).q1g = function (first, second) {
788
+ protoOf(Unificator$Companion$strict$1).p1g = function (first, second) {
834
789
  return first.equals(second);
835
790
  };
836
791
  protoOf(Unificator$Companion$strict$1).mguWithOccurCheck = function (term1, term2, occurCheckEnabled, $super) {
@@ -839,27 +794,27 @@
839
794
  function Companion_0() {
840
795
  Companion_instance_1 = this;
841
796
  var tmp = this;
842
- tmp.e1i_1 = lazy(Unificator$Companion$default$delegate$lambda);
843
- this.f1i_1 = 32;
797
+ tmp.d1i_1 = lazy(Unificator$Companion$default$delegate$lambda);
798
+ this.e1i_1 = 32;
844
799
  }
845
- protoOf(Companion_0).g1i = function () {
846
- var tmp0 = this.e1i_1;
800
+ protoOf(Companion_0).f1i = function () {
801
+ var tmp0 = this.d1i_1;
847
802
  var tmp = KProperty1;
848
803
  // Inline function 'kotlin.getValue' call
849
804
  getPropertyCallableRef('default', 1, tmp, Unificator$Companion$_get_default_$ref_8i2tx3(), null);
850
805
  return tmp0.e2();
851
806
  };
852
807
  protoOf(Companion_0).mguWith = function (_this__u8e3s4, other) {
853
- return this.g1i().mgu(_this__u8e3s4, other);
808
+ return this.f1i().mgu(_this__u8e3s4, other);
854
809
  };
855
810
  protoOf(Companion_0).matches = function (_this__u8e3s4, other) {
856
- return this.g1i().match(_this__u8e3s4, other);
811
+ return this.f1i().match(_this__u8e3s4, other);
857
812
  };
858
813
  protoOf(Companion_0).unifyWith = function (_this__u8e3s4, other) {
859
- return this.g1i().unify(_this__u8e3s4, other);
814
+ return this.f1i().unify(_this__u8e3s4, other);
860
815
  };
861
816
  protoOf(Companion_0).mergeWith = function (_this__u8e3s4, other) {
862
- return this.g1i().merge(_this__u8e3s4, other);
817
+ return this.f1i().merge(_this__u8e3s4, other);
863
818
  };
864
819
  protoOf(Companion_0).naiveWithContext = function (context) {
865
820
  return new Unificator$Companion$naive$1(context);
@@ -873,10 +828,10 @@
873
828
  protoOf(Companion_0).strict = function () {
874
829
  return this.strictWithContext(Companion_getInstance().empty());
875
830
  };
876
- protoOf(Companion_0).l1i = function (other, capacity) {
831
+ protoOf(Companion_0).k1i = function (other, capacity) {
877
832
  var tmp;
878
833
  if (other instanceof CachedUnificator) {
879
- tmp = new CachedUnificator(other.i1h_1, capacity);
834
+ tmp = new CachedUnificator(other.h1h_1, capacity);
880
835
  } else {
881
836
  tmp = new CachedUnificator(other, capacity);
882
837
  }
@@ -884,7 +839,7 @@
884
839
  };
885
840
  protoOf(Companion_0).cached = function (other, capacity, $super) {
886
841
  capacity = capacity === VOID ? 32 : capacity;
887
- return $super === VOID ? this.l1i(other, capacity) : $super.l1i.call(this, other, capacity);
842
+ return $super === VOID ? this.k1i(other, capacity) : $super.k1i.call(this, other, capacity);
888
843
  };
889
844
  var Companion_instance_1;
890
845
  function Companion_getInstance_2() {
@@ -909,14 +864,14 @@
909
864
  protoOf(CachedUnificator).unifyWithOccurCheck = unifyWithOccurCheck;
910
865
  protoOf(CachedUnificator).unify = unify;
911
866
  protoOf(CachedUnificator).merge = merge;
912
- protoOf(Equation).gp = castTo;
867
+ protoOf(Equation).ep = castTo;
913
868
  defineProp(protoOf(Equation), 'lhs', function () {
914
- return this.u1g();
869
+ return this.t1g();
915
870
  });
916
871
  defineProp(protoOf(Equation), 'rhs', function () {
917
- return this.v1g();
872
+ return this.u1g();
918
873
  });
919
- defineProp(protoOf(Companion_0), 'default', protoOf(Companion_0).g1i);
874
+ defineProp(protoOf(Companion_0), 'default', protoOf(Companion_0).f1i);
920
875
  //endregion
921
876
  //region block: init
922
877
  Companion_instance_0 = new Companion();