@jakta/jakta-prolog-incarnation 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +2407 -2407
- package/2p-solve-classic.js +855 -855
- package/2p-solve.js +3233 -3238
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1355 -1355
- package/2p-unify.js +321 -321
- package/2p-utils.js +351 -351
- package/kotlin-kotlin-stdlib.js +1301 -1263
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1462 -1462
- package/package.json +1 -1
package/2p-solve-classic.js
CHANGED
|
@@ -45,15 +45,15 @@
|
|
|
45
45
|
var constructCallableReference = kotlin_kotlin.$_$.r5;
|
|
46
46
|
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
47
47
|
var protoOf = kotlin_kotlin.$_$.n6;
|
|
48
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
48
|
+
var THROW_CCE = kotlin_kotlin.$_$.ia;
|
|
49
49
|
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.k4;
|
|
50
50
|
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
51
51
|
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
52
|
-
var Long = kotlin_kotlin.$_$.
|
|
52
|
+
var Long = kotlin_kotlin.$_$.ca;
|
|
53
53
|
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
54
54
|
var asSequence = kotlin_kotlin.$_$.k7;
|
|
55
55
|
var initMetadataForClass = kotlin_kotlin.$_$.y5;
|
|
56
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
56
|
+
var ensureNotNull = kotlin_kotlin.$_$.ma;
|
|
57
57
|
var fromInt = kotlin_kotlin.$_$.x4;
|
|
58
58
|
var add = kotlin_kotlin.$_$.n4;
|
|
59
59
|
var hashCode = kotlin_kotlin.$_$.x5;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i4;
|
|
64
64
|
var initMetadataForLambda = kotlin_kotlin.$_$.b6;
|
|
65
65
|
var sequence = kotlin_kotlin.$_$.k8;
|
|
66
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
66
|
+
var toString_0 = kotlin_kotlin.$_$.sa;
|
|
67
67
|
var asSequence_0 = kotlin_kotlin.$_$.z1;
|
|
68
68
|
var emptySequence = kotlin_kotlin.$_$.p7;
|
|
69
69
|
var plus = kotlin_kotlin.$_$.h8;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
var Companion_instance_7 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
83
83
|
var emptySet = kotlin_kotlin.$_$.k2;
|
|
84
84
|
var compare = kotlin_kotlin.$_$.r4;
|
|
85
|
-
var lazy = kotlin_kotlin.$_$.
|
|
85
|
+
var lazy = kotlin_kotlin.$_$.oa;
|
|
86
86
|
var contains = kotlin_kotlin.$_$.l7;
|
|
87
87
|
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
88
88
|
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
var defineProp = kotlin_kotlin.$_$.s5;
|
|
123
123
|
var listOf = kotlin_kotlin.$_$.x2;
|
|
124
124
|
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.a3;
|
|
125
|
-
var to = kotlin_kotlin.$_$.
|
|
125
|
+
var to = kotlin_kotlin.$_$.ta;
|
|
126
126
|
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
127
127
|
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
128
128
|
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
@@ -208,20 +208,20 @@
|
|
|
208
208
|
var tmp0_elvis_lhs = this.asEndState();
|
|
209
209
|
var tmp;
|
|
210
210
|
if (tmp0_elvis_lhs == null) {
|
|
211
|
-
throw ClassCastException_init_$Create$('Cannot cast ' + toString(this) + ' to ' + getKClass(EndState).
|
|
211
|
+
throw ClassCastException_init_$Create$('Cannot cast ' + toString(this) + ' to ' + getKClass(EndState).h9());
|
|
212
212
|
} else {
|
|
213
213
|
tmp = tmp0_elvis_lhs;
|
|
214
214
|
}
|
|
215
215
|
return tmp;
|
|
216
216
|
}
|
|
217
217
|
function clone(context, $super) {
|
|
218
|
-
context = context === VOID ? this.
|
|
219
|
-
return $super === VOID ? this.
|
|
218
|
+
context = context === VOID ? this.n8() : context;
|
|
219
|
+
return $super === VOID ? this.o31(context) : $super.o31.call(this, context);
|
|
220
220
|
}
|
|
221
221
|
initMetadataForInterface(State, 'State');
|
|
222
222
|
initMetadataForClass(AbstractState, 'AbstractState', VOID, VOID, [State]);
|
|
223
223
|
function get_hasOpenAlternatives() {
|
|
224
|
-
return this.
|
|
224
|
+
return this.r2g().e1v() && this.n8().j2y();
|
|
225
225
|
}
|
|
226
226
|
function get_isEndState_0() {
|
|
227
227
|
return true;
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
return this;
|
|
231
231
|
}
|
|
232
232
|
function asEndState_1() {
|
|
233
|
-
return this.
|
|
233
|
+
return this.n31();
|
|
234
234
|
}
|
|
235
235
|
initMetadataForInterface(EndState, 'EndState', VOID, VOID, [State]);
|
|
236
236
|
initMetadataForClass(AbstractEndState, 'AbstractEndState', VOID, AbstractState, [EndState]);
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
initMetadataForCompanion(Companion_1);
|
|
263
263
|
//endregion
|
|
264
264
|
function AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
265
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
265
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
266
266
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
267
267
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
268
268
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -272,17 +272,17 @@
|
|
|
272
272
|
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
273
273
|
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
274
274
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
275
|
-
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
275
|
+
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.b1x(stdIn), Companion_instance_5.e1x(stdOut, stdErr, warnings), trustKb);
|
|
276
276
|
return $this;
|
|
277
277
|
}
|
|
278
278
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
279
279
|
// Inline function 'kotlin.require' call
|
|
280
280
|
// Inline function 'kotlin.require' call
|
|
281
|
-
if (!equalsLong(destination.
|
|
281
|
+
if (!equalsLong(destination.n8().f2x_1, index)) {
|
|
282
282
|
var message = 'Failed requirement.';
|
|
283
283
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
284
284
|
}
|
|
285
|
-
$this.
|
|
285
|
+
$this.m2x(destination.n8());
|
|
286
286
|
}
|
|
287
287
|
function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(p0) {
|
|
288
288
|
return constructCallableReference(function (p0_0, p1, p2) {
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
}, 3, 0, 83, 'updateCurrentContextAfterStateTransition', [p0]);
|
|
293
293
|
}
|
|
294
294
|
function AbstractClassicSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
295
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
295
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
296
296
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
297
297
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
298
298
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -302,101 +302,101 @@
|
|
|
302
302
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
303
303
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
304
304
|
}
|
|
305
|
-
protoOf(AbstractClassicSolver).
|
|
306
|
-
this.
|
|
305
|
+
protoOf(AbstractClassicSolver).m2x = function (_set____db54di) {
|
|
306
|
+
this.l2x_1 = _set____db54di;
|
|
307
307
|
};
|
|
308
|
-
protoOf(AbstractClassicSolver).
|
|
309
|
-
return this.
|
|
308
|
+
protoOf(AbstractClassicSolver).u29 = function (_set____db54di) {
|
|
309
|
+
return this.m2x(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
|
|
310
310
|
};
|
|
311
|
-
protoOf(AbstractClassicSolver).
|
|
312
|
-
var tmp = this.
|
|
311
|
+
protoOf(AbstractClassicSolver).s29 = function () {
|
|
312
|
+
var tmp = this.l2x_1;
|
|
313
313
|
if (!(tmp == null))
|
|
314
314
|
return tmp;
|
|
315
315
|
else {
|
|
316
316
|
throwUninitializedPropertyAccessException('currentContext');
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
|
-
protoOf(AbstractClassicSolver).
|
|
319
|
+
protoOf(AbstractClassicSolver).t29 = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
320
320
|
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_instance_0.empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_instance_1.empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID, new Long(0, 0));
|
|
321
321
|
};
|
|
322
|
-
protoOf(AbstractClassicSolver).
|
|
323
|
-
var tmp0_unificator = this.
|
|
324
|
-
var tmp1_libraries = this.
|
|
325
|
-
var tmp2_flags = this.
|
|
326
|
-
var tmp3_staticKb = this.
|
|
327
|
-
var tmp4_dynamicKb = this.
|
|
328
|
-
var tmp5_operators = this.
|
|
329
|
-
var tmp6_inputChannels = this.
|
|
330
|
-
var tmp7_outputChannels = this.
|
|
331
|
-
var tmp8_customData = this.
|
|
322
|
+
protoOf(AbstractClassicSolver).a2a = function (goal, options) {
|
|
323
|
+
var tmp0_unificator = this.f1k();
|
|
324
|
+
var tmp1_libraries = this.c1u();
|
|
325
|
+
var tmp2_flags = this.d1u();
|
|
326
|
+
var tmp3_staticKb = this.e1u().toImmutableTheory();
|
|
327
|
+
var tmp4_dynamicKb = this.f1u().toMutableTheory();
|
|
328
|
+
var tmp5_operators = this.l1u();
|
|
329
|
+
var tmp6_inputChannels = this.g1u();
|
|
330
|
+
var tmp7_outputChannels = this.h1u();
|
|
331
|
+
var tmp8_customData = this.s29().u2w_1;
|
|
332
332
|
var tmp9_startTime = currentTimeInstant();
|
|
333
|
-
var tmp10_maxDuration = options.
|
|
334
|
-
this.
|
|
335
|
-
var tmp = new StateInit(this.
|
|
336
|
-
return asSequence(this.
|
|
333
|
+
var tmp10_maxDuration = options.i1w();
|
|
334
|
+
this.m2x(new ClassicExecutionContext(VOID, tmp0_unificator, tmp1_libraries, tmp2_flags, tmp3_staticKb, tmp4_dynamicKb, tmp5_operators, tmp6_inputChannels, tmp7_outputChannels, tmp8_customData, VOID, goal, VOID, VOID, VOID, tmp9_startTime, tmp10_maxDuration));
|
|
335
|
+
var tmp = new StateInit(this.s29());
|
|
336
|
+
return asSequence(this.n2x(tmp, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
337
337
|
};
|
|
338
338
|
protoOf(AbstractClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
339
339
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof AbstractClassicSolver) ? $super : THROW_CCE());
|
|
340
340
|
};
|
|
341
341
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
342
342
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
343
|
+
this.s2x_1 = alternatives;
|
|
344
|
+
this.t2x_1 = executionContext;
|
|
345
|
+
this.u2x_1 = parent;
|
|
346
|
+
this.v2x_1 = depth;
|
|
347
347
|
}
|
|
348
|
-
protoOf(Primitives).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(Primitives).w2x = function () {
|
|
349
|
+
return this.s2x_1;
|
|
350
350
|
};
|
|
351
|
-
protoOf(Primitives).
|
|
352
|
-
return this.
|
|
351
|
+
protoOf(Primitives).x2x = function () {
|
|
352
|
+
return this.t2x_1;
|
|
353
353
|
};
|
|
354
|
-
protoOf(Primitives).
|
|
355
|
-
return this.
|
|
354
|
+
protoOf(Primitives).y2x = function () {
|
|
355
|
+
return this.u2x_1;
|
|
356
356
|
};
|
|
357
|
-
protoOf(Primitives).
|
|
358
|
-
return this.
|
|
357
|
+
protoOf(Primitives).z2x = function () {
|
|
358
|
+
return this.v2x_1;
|
|
359
359
|
};
|
|
360
360
|
protoOf(Primitives).toString = function () {
|
|
361
361
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
362
362
|
};
|
|
363
|
-
protoOf(Primitives).
|
|
363
|
+
protoOf(Primitives).a2y = function () {
|
|
364
364
|
return 'Primitives';
|
|
365
365
|
};
|
|
366
|
-
protoOf(Primitives).
|
|
367
|
-
var tmp0_$this = ensureNotNull(this.
|
|
368
|
-
var tmp1_primitives = this.
|
|
366
|
+
protoOf(Primitives).b2y = function (context) {
|
|
367
|
+
var tmp0_$this = ensureNotNull(this.t2x_1);
|
|
368
|
+
var tmp1_primitives = this.s2x_1;
|
|
369
369
|
// Inline function 'kotlin.Long.plus' call
|
|
370
|
-
var this_0 = context.
|
|
370
|
+
var this_0 = context.f2x_1;
|
|
371
371
|
var tmp2_step = add(this_0, fromInt(1));
|
|
372
|
-
var tmp3_startTime = context.
|
|
373
|
-
var tmp4_flags = context.
|
|
374
|
-
var tmp5_dynamicKb = context.
|
|
375
|
-
var tmp6_staticKb = context.
|
|
376
|
-
var tmp7_operators = context.
|
|
377
|
-
var tmp8_inputChannels = context.
|
|
378
|
-
var tmp9_outputChannels = context.
|
|
379
|
-
var tmp10_libraries = context.
|
|
380
|
-
var tmp11_customData = context.
|
|
381
|
-
var tempContext = tmp0_$this.
|
|
382
|
-
var nextChoicePointContext = this.
|
|
383
|
-
return tempContext.
|
|
384
|
-
};
|
|
385
|
-
protoOf(Primitives).
|
|
372
|
+
var tmp3_startTime = context.a2x_1;
|
|
373
|
+
var tmp4_flags = context.o2w_1;
|
|
374
|
+
var tmp5_dynamicKb = context.q2w_1;
|
|
375
|
+
var tmp6_staticKb = context.p2w_1;
|
|
376
|
+
var tmp7_operators = context.r2w_1;
|
|
377
|
+
var tmp8_inputChannels = context.s2w_1;
|
|
378
|
+
var tmp9_outputChannels = context.t2w_1;
|
|
379
|
+
var tmp10_libraries = context.n2w_1;
|
|
380
|
+
var tmp11_customData = context.u2w_1.discardEphemeral();
|
|
381
|
+
var tempContext = tmp0_$this.c2y(VOID, VOID, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, VOID, VOID, VOID, VOID, tmp1_primitives, tmp3_startTime, VOID, VOID, VOID, VOID, tmp2_step);
|
|
382
|
+
var nextChoicePointContext = this.d2y(this.s2x_1.uo(), tempContext);
|
|
383
|
+
return tempContext.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
384
|
+
};
|
|
385
|
+
protoOf(Primitives).e2y = function (alternatives, executionContext, parent, depth) {
|
|
386
386
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
387
387
|
};
|
|
388
|
-
protoOf(Primitives).
|
|
389
|
-
alternatives = alternatives === VOID ? this.
|
|
390
|
-
executionContext = executionContext === VOID ? this.
|
|
391
|
-
parent = parent === VOID ? this.
|
|
392
|
-
depth = depth === VOID ? this.
|
|
393
|
-
return $super === VOID ? this.
|
|
388
|
+
protoOf(Primitives).d2y = function (alternatives, executionContext, parent, depth, $super) {
|
|
389
|
+
alternatives = alternatives === VOID ? this.s2x_1 : alternatives;
|
|
390
|
+
executionContext = executionContext === VOID ? this.t2x_1 : executionContext;
|
|
391
|
+
parent = parent === VOID ? this.u2x_1 : parent;
|
|
392
|
+
depth = depth === VOID ? this.v2x_1 : depth;
|
|
393
|
+
return $super === VOID ? this.e2y(alternatives, executionContext, parent, depth) : $super.e2y.call(this, alternatives, executionContext, parent, depth);
|
|
394
394
|
};
|
|
395
395
|
protoOf(Primitives).hashCode = function () {
|
|
396
|
-
var result = hashCode(this.
|
|
397
|
-
result = imul(result, 31) + (this.
|
|
398
|
-
result = imul(result, 31) + (this.
|
|
399
|
-
result = imul(result, 31) + this.
|
|
396
|
+
var result = hashCode(this.s2x_1);
|
|
397
|
+
result = imul(result, 31) + (this.t2x_1 == null ? 0 : this.t2x_1.hashCode()) | 0;
|
|
398
|
+
result = imul(result, 31) + (this.u2x_1 == null ? 0 : hashCode(this.u2x_1)) | 0;
|
|
399
|
+
result = imul(result, 31) + this.v2x_1 | 0;
|
|
400
400
|
return result;
|
|
401
401
|
};
|
|
402
402
|
protoOf(Primitives).equals = function (other) {
|
|
@@ -404,75 +404,75 @@
|
|
|
404
404
|
return true;
|
|
405
405
|
if (!(other instanceof Primitives))
|
|
406
406
|
return false;
|
|
407
|
-
if (!equals(this.
|
|
407
|
+
if (!equals(this.s2x_1, other.s2x_1))
|
|
408
408
|
return false;
|
|
409
|
-
if (!equals(this.
|
|
409
|
+
if (!equals(this.t2x_1, other.t2x_1))
|
|
410
410
|
return false;
|
|
411
|
-
if (!equals(this.
|
|
411
|
+
if (!equals(this.u2x_1, other.u2x_1))
|
|
412
412
|
return false;
|
|
413
|
-
if (!(this.
|
|
413
|
+
if (!(this.v2x_1 === other.v2x_1))
|
|
414
414
|
return false;
|
|
415
415
|
return true;
|
|
416
416
|
};
|
|
417
417
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
418
418
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
422
|
-
this.
|
|
419
|
+
this.r2y_1 = alternatives;
|
|
420
|
+
this.s2y_1 = executionContext;
|
|
421
|
+
this.t2y_1 = parent;
|
|
422
|
+
this.u2y_1 = depth;
|
|
423
423
|
}
|
|
424
|
-
protoOf(Rules).
|
|
425
|
-
return this.
|
|
424
|
+
protoOf(Rules).w2x = function () {
|
|
425
|
+
return this.r2y_1;
|
|
426
426
|
};
|
|
427
|
-
protoOf(Rules).
|
|
428
|
-
return this.
|
|
427
|
+
protoOf(Rules).x2x = function () {
|
|
428
|
+
return this.s2y_1;
|
|
429
429
|
};
|
|
430
|
-
protoOf(Rules).
|
|
431
|
-
return this.
|
|
430
|
+
protoOf(Rules).y2x = function () {
|
|
431
|
+
return this.t2y_1;
|
|
432
432
|
};
|
|
433
|
-
protoOf(Rules).
|
|
434
|
-
return this.
|
|
433
|
+
protoOf(Rules).z2x = function () {
|
|
434
|
+
return this.u2y_1;
|
|
435
435
|
};
|
|
436
436
|
protoOf(Rules).toString = function () {
|
|
437
437
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
438
438
|
};
|
|
439
|
-
protoOf(Rules).
|
|
439
|
+
protoOf(Rules).a2y = function () {
|
|
440
440
|
return 'Rules';
|
|
441
441
|
};
|
|
442
|
-
protoOf(Rules).
|
|
443
|
-
var tmp0_$this = ensureNotNull(this.
|
|
444
|
-
var tmp1_rules = this.
|
|
442
|
+
protoOf(Rules).b2y = function (context) {
|
|
443
|
+
var tmp0_$this = ensureNotNull(this.s2y_1);
|
|
444
|
+
var tmp1_rules = this.r2y_1;
|
|
445
445
|
// Inline function 'kotlin.Long.plus' call
|
|
446
|
-
var this_0 = context.
|
|
446
|
+
var this_0 = context.f2x_1;
|
|
447
447
|
var tmp2_step = add(this_0, fromInt(1));
|
|
448
|
-
var tmp3_startTime = context.
|
|
449
|
-
var tmp4_flags = context.
|
|
450
|
-
var tmp5_dynamicKb = context.
|
|
451
|
-
var tmp6_staticKb = context.
|
|
452
|
-
var tmp7_operators = context.
|
|
453
|
-
var tmp8_inputChannels = context.
|
|
454
|
-
var tmp9_outputChannels = context.
|
|
455
|
-
var tmp10_libraries = context.
|
|
456
|
-
var tmp11_customData = context.
|
|
457
|
-
var tempContext = tmp0_$this.
|
|
458
|
-
var nextChoicePointContext = this.
|
|
459
|
-
return tempContext.
|
|
460
|
-
};
|
|
461
|
-
protoOf(Rules).
|
|
448
|
+
var tmp3_startTime = context.a2x_1;
|
|
449
|
+
var tmp4_flags = context.o2w_1;
|
|
450
|
+
var tmp5_dynamicKb = context.q2w_1;
|
|
451
|
+
var tmp6_staticKb = context.p2w_1;
|
|
452
|
+
var tmp7_operators = context.r2w_1;
|
|
453
|
+
var tmp8_inputChannels = context.s2w_1;
|
|
454
|
+
var tmp9_outputChannels = context.t2w_1;
|
|
455
|
+
var tmp10_libraries = context.n2w_1;
|
|
456
|
+
var tmp11_customData = context.u2w_1.discardEphemeral();
|
|
457
|
+
var tempContext = tmp0_$this.c2y(VOID, VOID, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, VOID, VOID, VOID, tmp1_rules, VOID, tmp3_startTime, VOID, VOID, VOID, VOID, tmp2_step);
|
|
458
|
+
var nextChoicePointContext = this.v2y(this.r2y_1.uo(), tempContext);
|
|
459
|
+
return tempContext.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
460
|
+
};
|
|
461
|
+
protoOf(Rules).w2y = function (alternatives, executionContext, parent, depth) {
|
|
462
462
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
463
463
|
};
|
|
464
|
-
protoOf(Rules).
|
|
465
|
-
alternatives = alternatives === VOID ? this.
|
|
466
|
-
executionContext = executionContext === VOID ? this.
|
|
467
|
-
parent = parent === VOID ? this.
|
|
468
|
-
depth = depth === VOID ? this.
|
|
469
|
-
return $super === VOID ? this.
|
|
464
|
+
protoOf(Rules).v2y = function (alternatives, executionContext, parent, depth, $super) {
|
|
465
|
+
alternatives = alternatives === VOID ? this.r2y_1 : alternatives;
|
|
466
|
+
executionContext = executionContext === VOID ? this.s2y_1 : executionContext;
|
|
467
|
+
parent = parent === VOID ? this.t2y_1 : parent;
|
|
468
|
+
depth = depth === VOID ? this.u2y_1 : depth;
|
|
469
|
+
return $super === VOID ? this.w2y(alternatives, executionContext, parent, depth) : $super.w2y.call(this, alternatives, executionContext, parent, depth);
|
|
470
470
|
};
|
|
471
471
|
protoOf(Rules).hashCode = function () {
|
|
472
|
-
var result = hashCode(this.
|
|
473
|
-
result = imul(result, 31) + (this.
|
|
474
|
-
result = imul(result, 31) + (this.
|
|
475
|
-
result = imul(result, 31) + this.
|
|
472
|
+
var result = hashCode(this.r2y_1);
|
|
473
|
+
result = imul(result, 31) + (this.s2y_1 == null ? 0 : this.s2y_1.hashCode()) | 0;
|
|
474
|
+
result = imul(result, 31) + (this.t2y_1 == null ? 0 : hashCode(this.t2y_1)) | 0;
|
|
475
|
+
result = imul(result, 31) + this.u2y_1 | 0;
|
|
476
476
|
return result;
|
|
477
477
|
};
|
|
478
478
|
protoOf(Rules).equals = function (other) {
|
|
@@ -480,112 +480,112 @@
|
|
|
480
480
|
return true;
|
|
481
481
|
if (!(other instanceof Rules))
|
|
482
482
|
return false;
|
|
483
|
-
if (!equals(this.
|
|
483
|
+
if (!equals(this.r2y_1, other.r2y_1))
|
|
484
484
|
return false;
|
|
485
|
-
if (!equals(this.
|
|
485
|
+
if (!equals(this.s2y_1, other.s2y_1))
|
|
486
486
|
return false;
|
|
487
|
-
if (!equals(this.
|
|
487
|
+
if (!equals(this.t2y_1, other.t2y_1))
|
|
488
488
|
return false;
|
|
489
|
-
if (!(this.
|
|
489
|
+
if (!(this.u2y_1 === other.u2y_1))
|
|
490
490
|
return false;
|
|
491
491
|
return true;
|
|
492
492
|
};
|
|
493
493
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
494
|
-
this.
|
|
494
|
+
this.f2z_1 = this$0;
|
|
495
495
|
CoroutineImpl.call(this, resultContinuation);
|
|
496
496
|
}
|
|
497
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
498
|
-
var tmp = this.
|
|
499
|
-
tmp.
|
|
500
|
-
tmp.
|
|
501
|
-
return tmp.
|
|
497
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).i2z = function ($this$sequence, $completion) {
|
|
498
|
+
var tmp = this.j2z($this$sequence, $completion);
|
|
499
|
+
tmp.j8_1 = Unit_instance;
|
|
500
|
+
tmp.k8_1 = null;
|
|
501
|
+
return tmp.p8();
|
|
502
502
|
};
|
|
503
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
504
|
-
return this.
|
|
503
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).g9 = function (p1, $completion) {
|
|
504
|
+
return this.i2z(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
505
505
|
};
|
|
506
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
507
|
-
var suspendResult = this.
|
|
506
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).p8 = function () {
|
|
507
|
+
var suspendResult = this.j8_1;
|
|
508
508
|
$sm: do
|
|
509
509
|
try {
|
|
510
|
-
var tmp = this.
|
|
510
|
+
var tmp = this.h8_1;
|
|
511
511
|
switch (tmp) {
|
|
512
512
|
case 0:
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
this.
|
|
513
|
+
this.i8_1 = 4;
|
|
514
|
+
this.h2z_1 = this.f2z_1;
|
|
515
|
+
this.h8_1 = 1;
|
|
516
516
|
continue $sm;
|
|
517
517
|
case 1:
|
|
518
|
-
if (!!(this.
|
|
519
|
-
this.
|
|
518
|
+
if (!!(this.h2z_1 == null)) {
|
|
519
|
+
this.h8_1 = 3;
|
|
520
520
|
continue $sm;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
this.
|
|
524
|
-
suspendResult = this.
|
|
523
|
+
this.h8_1 = 2;
|
|
524
|
+
suspendResult = this.g2z_1.oc(ensureNotNull(this.h2z_1), this);
|
|
525
525
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
526
526
|
return suspendResult;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
continue $sm;
|
|
530
530
|
case 2:
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
531
|
+
this.h2z_1 = this.h2z_1.y2x();
|
|
532
|
+
this.h8_1 = 1;
|
|
533
533
|
continue $sm;
|
|
534
534
|
case 3:
|
|
535
535
|
return Unit_instance;
|
|
536
536
|
case 4:
|
|
537
|
-
throw this.
|
|
537
|
+
throw this.k8_1;
|
|
538
538
|
}
|
|
539
539
|
} catch ($p) {
|
|
540
540
|
var e = $p;
|
|
541
|
-
if (this.
|
|
541
|
+
if (this.i8_1 === 4) {
|
|
542
542
|
throw e;
|
|
543
543
|
} else {
|
|
544
|
-
this.
|
|
545
|
-
this.
|
|
544
|
+
this.h8_1 = this.i8_1;
|
|
545
|
+
this.k8_1 = e;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
while (true);
|
|
549
549
|
};
|
|
550
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
551
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
552
|
-
i.
|
|
550
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).j2z = function ($this$sequence, completion) {
|
|
551
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.f2z_1, completion);
|
|
552
|
+
i.g2z_1 = $this$sequence;
|
|
553
553
|
return i;
|
|
554
554
|
};
|
|
555
555
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
556
556
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
557
557
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
558
|
-
return i.
|
|
558
|
+
return i.i2z($this$sequence, $completion);
|
|
559
559
|
}, 1);
|
|
560
560
|
}
|
|
561
561
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
562
562
|
depth = depth === VOID ? 0 : depth;
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
563
|
+
this.f2y_1 = alternatives;
|
|
564
|
+
this.g2y_1 = executionContext;
|
|
565
|
+
this.h2y_1 = parent;
|
|
566
|
+
this.i2y_1 = depth;
|
|
567
567
|
}
|
|
568
|
-
protoOf(ChoicePointContext).
|
|
569
|
-
return this.
|
|
568
|
+
protoOf(ChoicePointContext).w2x = function () {
|
|
569
|
+
return this.f2y_1;
|
|
570
570
|
};
|
|
571
|
-
protoOf(ChoicePointContext).
|
|
572
|
-
return this.
|
|
571
|
+
protoOf(ChoicePointContext).x2x = function () {
|
|
572
|
+
return this.g2y_1;
|
|
573
573
|
};
|
|
574
|
-
protoOf(ChoicePointContext).
|
|
575
|
-
return this.
|
|
574
|
+
protoOf(ChoicePointContext).y2x = function () {
|
|
575
|
+
return this.h2y_1;
|
|
576
576
|
};
|
|
577
|
-
protoOf(ChoicePointContext).
|
|
578
|
-
return this.
|
|
577
|
+
protoOf(ChoicePointContext).z2x = function () {
|
|
578
|
+
return this.i2y_1;
|
|
579
579
|
};
|
|
580
|
-
protoOf(ChoicePointContext).
|
|
581
|
-
var tmp0 = this.
|
|
580
|
+
protoOf(ChoicePointContext).j2y = function () {
|
|
581
|
+
var tmp0 = this.k2y();
|
|
582
582
|
var tmp$ret$0;
|
|
583
583
|
$l$block: {
|
|
584
584
|
// Inline function 'kotlin.sequences.any' call
|
|
585
585
|
var _iterator__ex2g4s = tmp0.m();
|
|
586
586
|
while (_iterator__ex2g4s.p()) {
|
|
587
587
|
var element = _iterator__ex2g4s.q();
|
|
588
|
-
if (element.
|
|
588
|
+
if (element.w2x().wo()) {
|
|
589
589
|
tmp$ret$0 = true;
|
|
590
590
|
break $l$block;
|
|
591
591
|
}
|
|
@@ -594,135 +594,135 @@
|
|
|
594
594
|
}
|
|
595
595
|
return tmp$ret$0;
|
|
596
596
|
};
|
|
597
|
-
protoOf(ChoicePointContext).
|
|
597
|
+
protoOf(ChoicePointContext).k2y = function () {
|
|
598
598
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
599
599
|
};
|
|
600
|
-
protoOf(ChoicePointContext).
|
|
601
|
-
var tmp0_safe_receiver = this.
|
|
602
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
600
|
+
protoOf(ChoicePointContext).l2y = function () {
|
|
601
|
+
var tmp0_safe_receiver = this.x2x();
|
|
602
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e2x_1;
|
|
603
603
|
};
|
|
604
|
-
protoOf(ChoicePointContext).
|
|
605
|
-
var tmp0_safe_receiver = this.
|
|
606
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
604
|
+
protoOf(ChoicePointContext).m2y = function () {
|
|
605
|
+
var tmp0_safe_receiver = this.x2x();
|
|
606
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l2w_1;
|
|
607
607
|
};
|
|
608
608
|
protoOf(ChoicePointContext).toString = function () {
|
|
609
|
-
var tmp = this.
|
|
609
|
+
var tmp = this.a2y() + '(' + ('alternatives=' + toString(this.w2x()) + ', ');
|
|
610
610
|
var tmp_0;
|
|
611
|
-
if (this.
|
|
612
|
-
tmp_0 = 'executionContext=' + toString_0(this.
|
|
611
|
+
if (this.x2x() === null) {
|
|
612
|
+
tmp_0 = 'executionContext=' + toString_0(this.x2x()) + ', ';
|
|
613
613
|
} else {
|
|
614
|
-
'executionContextDepth=' + this.
|
|
615
|
-
tmp_0 = 'executionContextProcedure=' + toString_0(this.
|
|
614
|
+
'executionContextDepth=' + this.l2y() + ', ';
|
|
615
|
+
tmp_0 = 'executionContextProcedure=' + toString_0(this.m2y()) + ', ';
|
|
616
616
|
}
|
|
617
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
617
|
+
return tmp + tmp_0 + ('depth=' + this.z2x()) + ')';
|
|
618
618
|
};
|
|
619
619
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
620
620
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
621
621
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
622
622
|
}
|
|
623
623
|
function nextDepth(_this__u8e3s4) {
|
|
624
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
624
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.z2x() + 1 | 0;
|
|
625
625
|
}
|
|
626
626
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
627
627
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
628
628
|
return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
629
629
|
}
|
|
630
630
|
function _get_locallyInterestingVariables__39cqti($this) {
|
|
631
|
-
var tmp = asSequence_0($this.
|
|
632
|
-
var tmp0_safe_receiver = $this.
|
|
633
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
631
|
+
var tmp = asSequence_0($this.g2x_1);
|
|
632
|
+
var tmp0_safe_receiver = $this.x2w_1.vo();
|
|
633
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mt();
|
|
634
634
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
635
635
|
}
|
|
636
636
|
function _get_interestingVariables__k6uw5o($this) {
|
|
637
|
-
var tmp0 = $this.
|
|
637
|
+
var tmp0 = $this.j2x_1;
|
|
638
638
|
var tmp = KProperty1;
|
|
639
639
|
// Inline function 'kotlin.getValue' call
|
|
640
640
|
getPropertyCallableRef('interestingVariables', 1, tmp, ClassicExecutionContext$_get_interestingVariables_$ref_xwa4zu(), null);
|
|
641
|
-
return tmp0.
|
|
641
|
+
return tmp0.d2();
|
|
642
642
|
}
|
|
643
643
|
function ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
644
|
-
this.
|
|
644
|
+
this.s2z_1 = this$0;
|
|
645
645
|
CoroutineImpl.call(this, resultContinuation);
|
|
646
646
|
}
|
|
647
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
648
|
-
var tmp = this.
|
|
649
|
-
tmp.
|
|
650
|
-
tmp.
|
|
651
|
-
return tmp.
|
|
647
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).v2z = function ($this$sequence, $completion) {
|
|
648
|
+
var tmp = this.w2z($this$sequence, $completion);
|
|
649
|
+
tmp.j8_1 = Unit_instance;
|
|
650
|
+
tmp.k8_1 = null;
|
|
651
|
+
return tmp.p8();
|
|
652
652
|
};
|
|
653
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
654
|
-
return this.
|
|
653
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).g9 = function (p1, $completion) {
|
|
654
|
+
return this.v2z(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
655
655
|
};
|
|
656
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
657
|
-
var suspendResult = this.
|
|
656
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).p8 = function () {
|
|
657
|
+
var suspendResult = this.j8_1;
|
|
658
658
|
$sm: do
|
|
659
659
|
try {
|
|
660
|
-
var tmp = this.
|
|
660
|
+
var tmp = this.h8_1;
|
|
661
661
|
switch (tmp) {
|
|
662
662
|
case 0:
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
663
|
+
this.i8_1 = 4;
|
|
664
|
+
this.u2z_1 = this.s2z_1;
|
|
665
|
+
this.h8_1 = 1;
|
|
666
666
|
continue $sm;
|
|
667
667
|
case 1:
|
|
668
|
-
if (!!(this.
|
|
669
|
-
this.
|
|
668
|
+
if (!!(this.u2z_1 == null)) {
|
|
669
|
+
this.h8_1 = 3;
|
|
670
670
|
continue $sm;
|
|
671
671
|
}
|
|
672
672
|
|
|
673
|
-
this.
|
|
674
|
-
suspendResult = this.
|
|
673
|
+
this.h8_1 = 2;
|
|
674
|
+
suspendResult = this.t2z_1.oc(this.u2z_1, this);
|
|
675
675
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
676
676
|
return suspendResult;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
continue $sm;
|
|
680
680
|
case 2:
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
681
|
+
this.u2z_1 = this.u2z_1.d2x_1;
|
|
682
|
+
this.h8_1 = 1;
|
|
683
683
|
continue $sm;
|
|
684
684
|
case 3:
|
|
685
685
|
return Unit_instance;
|
|
686
686
|
case 4:
|
|
687
|
-
throw this.
|
|
687
|
+
throw this.k8_1;
|
|
688
688
|
}
|
|
689
689
|
} catch ($p) {
|
|
690
690
|
var e = $p;
|
|
691
|
-
if (this.
|
|
691
|
+
if (this.i8_1 === 4) {
|
|
692
692
|
throw e;
|
|
693
693
|
} else {
|
|
694
|
-
this.
|
|
695
|
-
this.
|
|
694
|
+
this.h8_1 = this.i8_1;
|
|
695
|
+
this.k8_1 = e;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
while (true);
|
|
699
699
|
};
|
|
700
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
701
|
-
var i = new ClassicExecutionContext$pathToRoot$slambda(this.
|
|
702
|
-
i.
|
|
700
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).w2z = function ($this$sequence, completion) {
|
|
701
|
+
var i = new ClassicExecutionContext$pathToRoot$slambda(this.s2z_1, completion);
|
|
702
|
+
i.t2z_1 = $this$sequence;
|
|
703
703
|
return i;
|
|
704
704
|
};
|
|
705
705
|
function ClassicExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
706
706
|
var i = new ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
707
707
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
708
|
-
return i.
|
|
708
|
+
return i.v2z($this$sequence, $completion);
|
|
709
709
|
}, 1);
|
|
710
710
|
}
|
|
711
711
|
function ClassicExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
712
712
|
return function () {
|
|
713
713
|
var tmp;
|
|
714
|
-
if (this$0.
|
|
714
|
+
if (this$0.x2w_1.xo()) {
|
|
715
715
|
tmp = null;
|
|
716
716
|
} else {
|
|
717
|
-
var tmp0_safe_receiver = this$0.
|
|
718
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
717
|
+
var tmp0_safe_receiver = this$0.x2w_1.vo();
|
|
718
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.v2w_1);
|
|
719
719
|
}
|
|
720
720
|
return tmp;
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
function ClassicExecutionContext$_get_currentGoal_$ref_ulveh3() {
|
|
724
724
|
return constructCallableReference(function (p0) {
|
|
725
|
-
return p0.
|
|
725
|
+
return p0.x2z();
|
|
726
726
|
}, 1, 0, 84);
|
|
727
727
|
}
|
|
728
728
|
function ClassicExecutionContext$interestingVariables$delegate$lambda$lambda(it) {
|
|
@@ -730,8 +730,8 @@
|
|
|
730
730
|
}
|
|
731
731
|
function ClassicExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
732
732
|
return function () {
|
|
733
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
734
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
733
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.w2w_1.mt());
|
|
734
|
+
return cached(distinct(plus(tmp, flatMap(this$0.h2x_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
735
735
|
};
|
|
736
736
|
}
|
|
737
737
|
function ClassicExecutionContext$_get_interestingVariables_$ref_xwa4zu() {
|
|
@@ -740,28 +740,28 @@
|
|
|
740
740
|
}, 1, 0, 85);
|
|
741
741
|
}
|
|
742
742
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
743
|
-
return it.
|
|
743
|
+
return it.y2z();
|
|
744
744
|
}
|
|
745
745
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
746
746
|
return function (it) {
|
|
747
|
-
var tmp0_elvis_lhs = it.
|
|
748
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.
|
|
747
|
+
var tmp0_elvis_lhs = it.l2w_1;
|
|
748
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.w2w_1]) : tmp0_elvis_lhs;
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
751
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
752
752
|
return function () {
|
|
753
|
-
var tmp = filter(this$0.
|
|
753
|
+
var tmp = filter(this$0.h2x_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
754
754
|
return toList(map(tmp, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
757
|
function ClassicExecutionContext$_get_logicStackTrace_$ref_p35zx2() {
|
|
758
758
|
return constructCallableReference(function (p0) {
|
|
759
|
-
return p0.
|
|
759
|
+
return p0.z1t();
|
|
760
760
|
}, 1, 0, 86);
|
|
761
761
|
}
|
|
762
762
|
function ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
763
763
|
procedure = procedure === VOID ? null : procedure;
|
|
764
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
764
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
765
765
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
766
766
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
767
767
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
772
772
|
customData = customData === VOID ? Companion_instance_6.empty() : customData;
|
|
773
773
|
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
774
|
-
query = query === VOID ? Companion_getInstance_3().
|
|
774
|
+
query = query === VOID ? Companion_getInstance_3().bt_1 : query;
|
|
775
775
|
goals = goals === VOID ? Companion_instance_7.empty() : goals;
|
|
776
776
|
rules = rules === VOID ? Companion_instance_7.empty() : rules;
|
|
777
777
|
primitives = primitives === VOID ? Companion_instance_7.empty() : primitives;
|
|
@@ -781,197 +781,194 @@
|
|
|
781
781
|
depth = depth === VOID ? 0 : depth;
|
|
782
782
|
step = step === VOID ? new Long(0, 0) : step;
|
|
783
783
|
relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
784
|
+
this.l2w_1 = procedure;
|
|
785
|
+
this.m2w_1 = unificator;
|
|
786
|
+
this.n2w_1 = libraries;
|
|
787
|
+
this.o2w_1 = flags;
|
|
788
|
+
this.p2w_1 = staticKb;
|
|
789
|
+
this.q2w_1 = dynamicKb;
|
|
790
|
+
this.r2w_1 = operators;
|
|
791
|
+
this.s2w_1 = inputChannels;
|
|
792
|
+
this.t2w_1 = outputChannels;
|
|
793
|
+
this.u2w_1 = customData;
|
|
794
|
+
this.v2w_1 = substitution;
|
|
795
|
+
this.w2w_1 = query;
|
|
796
|
+
this.x2w_1 = goals;
|
|
797
|
+
this.y2w_1 = rules;
|
|
798
|
+
this.z2w_1 = primitives;
|
|
799
|
+
this.a2x_1 = startTime;
|
|
800
|
+
this.b2x_1 = maxDuration;
|
|
801
|
+
this.c2x_1 = choicePoints;
|
|
802
|
+
this.d2x_1 = parent;
|
|
803
|
+
this.e2x_1 = depth;
|
|
804
|
+
this.f2x_1 = step;
|
|
805
|
+
this.g2x_1 = relevantVariables;
|
|
806
806
|
// Inline function 'kotlin.require' call
|
|
807
807
|
// Inline function 'kotlin.require' call
|
|
808
|
-
if (!(this.
|
|
808
|
+
if (!(this.e2x_1 === 0 && this.d2x_1 == null || (this.e2x_1 > 0 && !(this.d2x_1 == null)))) {
|
|
809
809
|
var message = 'Failed requirement.';
|
|
810
810
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
811
811
|
}
|
|
812
812
|
// Inline function 'kotlin.require' call
|
|
813
813
|
// Inline function 'kotlin.require' call
|
|
814
|
-
if (!(compare(this.
|
|
814
|
+
if (!(compare(this.a2x_1, new Long(0, 0)) >= 0)) {
|
|
815
815
|
var message_0 = 'Failed requirement.';
|
|
816
816
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
817
817
|
}
|
|
818
818
|
// Inline function 'kotlin.require' call
|
|
819
819
|
// Inline function 'kotlin.require' call
|
|
820
|
-
if (!(compare(this.
|
|
820
|
+
if (!(compare(this.b2x_1, new Long(0, 0)) >= 0)) {
|
|
821
821
|
var message_1 = 'Failed requirement.';
|
|
822
822
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
823
823
|
}
|
|
824
824
|
var tmp = this;
|
|
825
|
-
tmp.
|
|
825
|
+
tmp.h2x_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
|
|
826
826
|
var tmp_0 = this;
|
|
827
|
-
tmp_0.
|
|
827
|
+
tmp_0.i2x_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
|
|
828
828
|
var tmp_1 = this;
|
|
829
|
-
tmp_1.
|
|
829
|
+
tmp_1.j2x_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
|
|
830
830
|
var tmp_2 = this;
|
|
831
|
-
tmp_2.
|
|
831
|
+
tmp_2.k2x_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
832
832
|
}
|
|
833
|
-
protoOf(ClassicExecutionContext).
|
|
834
|
-
return this.i2w_1;
|
|
835
|
-
};
|
|
836
|
-
protoOf(ClassicExecutionContext).c1k = function () {
|
|
837
|
-
return this.j2w_1;
|
|
838
|
-
};
|
|
839
|
-
protoOf(ClassicExecutionContext).z1t = function () {
|
|
840
|
-
return this.k2w_1;
|
|
841
|
-
};
|
|
842
|
-
protoOf(ClassicExecutionContext).a1u = function () {
|
|
833
|
+
protoOf(ClassicExecutionContext).x1t = function () {
|
|
843
834
|
return this.l2w_1;
|
|
844
835
|
};
|
|
845
|
-
protoOf(ClassicExecutionContext).
|
|
836
|
+
protoOf(ClassicExecutionContext).f1k = function () {
|
|
846
837
|
return this.m2w_1;
|
|
847
838
|
};
|
|
848
839
|
protoOf(ClassicExecutionContext).c1u = function () {
|
|
849
840
|
return this.n2w_1;
|
|
850
841
|
};
|
|
851
|
-
protoOf(ClassicExecutionContext).
|
|
842
|
+
protoOf(ClassicExecutionContext).d1u = function () {
|
|
852
843
|
return this.o2w_1;
|
|
853
844
|
};
|
|
854
|
-
protoOf(ClassicExecutionContext).
|
|
845
|
+
protoOf(ClassicExecutionContext).e1u = function () {
|
|
855
846
|
return this.p2w_1;
|
|
856
847
|
};
|
|
857
|
-
protoOf(ClassicExecutionContext).
|
|
848
|
+
protoOf(ClassicExecutionContext).f1u = function () {
|
|
858
849
|
return this.q2w_1;
|
|
859
850
|
};
|
|
860
|
-
protoOf(ClassicExecutionContext).
|
|
851
|
+
protoOf(ClassicExecutionContext).l1u = function () {
|
|
861
852
|
return this.r2w_1;
|
|
862
853
|
};
|
|
863
|
-
protoOf(ClassicExecutionContext).
|
|
854
|
+
protoOf(ClassicExecutionContext).g1u = function () {
|
|
864
855
|
return this.s2w_1;
|
|
865
856
|
};
|
|
866
|
-
protoOf(ClassicExecutionContext).
|
|
867
|
-
return this.
|
|
857
|
+
protoOf(ClassicExecutionContext).h1u = function () {
|
|
858
|
+
return this.t2w_1;
|
|
859
|
+
};
|
|
860
|
+
protoOf(ClassicExecutionContext).a1u = function () {
|
|
861
|
+
return this.u2w_1;
|
|
862
|
+
};
|
|
863
|
+
protoOf(ClassicExecutionContext).y1t = function () {
|
|
864
|
+
return this.v2w_1;
|
|
865
|
+
};
|
|
866
|
+
protoOf(ClassicExecutionContext).s1t = function () {
|
|
867
|
+
return this.a2x_1;
|
|
868
868
|
};
|
|
869
|
-
protoOf(ClassicExecutionContext).
|
|
870
|
-
return this.
|
|
869
|
+
protoOf(ClassicExecutionContext).u1t = function () {
|
|
870
|
+
return this.b2x_1;
|
|
871
871
|
};
|
|
872
|
-
protoOf(ClassicExecutionContext).
|
|
873
|
-
return this.
|
|
872
|
+
protoOf(ClassicExecutionContext).z2z = function () {
|
|
873
|
+
return this.e2x_1 === 0;
|
|
874
874
|
};
|
|
875
|
-
protoOf(ClassicExecutionContext).
|
|
876
|
-
var tmp0_safe_receiver = this.
|
|
877
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
875
|
+
protoOf(ClassicExecutionContext).j2y = function () {
|
|
876
|
+
var tmp0_safe_receiver = this.c2x_1;
|
|
877
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2y();
|
|
878
878
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
879
879
|
};
|
|
880
|
-
protoOf(ClassicExecutionContext).
|
|
881
|
-
return this.
|
|
880
|
+
protoOf(ClassicExecutionContext).y2z = function () {
|
|
881
|
+
return this.d2x_1 == null || (this.e2x_1 - this.d2x_1.e2x_1 | 0) >= 1;
|
|
882
882
|
};
|
|
883
|
-
protoOf(ClassicExecutionContext).
|
|
884
|
-
var tmp0 = this.
|
|
883
|
+
protoOf(ClassicExecutionContext).x2z = function () {
|
|
884
|
+
var tmp0 = this.i2x_1;
|
|
885
885
|
var tmp = KProperty1;
|
|
886
886
|
// Inline function 'kotlin.getValue' call
|
|
887
887
|
getPropertyCallableRef('currentGoal', 1, tmp, ClassicExecutionContext$_get_currentGoal_$ref_ulveh3(), null);
|
|
888
|
-
return tmp0.
|
|
888
|
+
return tmp0.d2();
|
|
889
889
|
};
|
|
890
|
-
protoOf(ClassicExecutionContext).
|
|
890
|
+
protoOf(ClassicExecutionContext).a30 = function (variable) {
|
|
891
891
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
892
892
|
};
|
|
893
|
-
protoOf(ClassicExecutionContext).
|
|
894
|
-
var tmp0 = this.
|
|
893
|
+
protoOf(ClassicExecutionContext).z1t = function () {
|
|
894
|
+
var tmp0 = this.k2x_1;
|
|
895
895
|
var tmp = KProperty1;
|
|
896
896
|
// Inline function 'kotlin.getValue' call
|
|
897
897
|
getPropertyCallableRef('logicStackTrace', 1, tmp, ClassicExecutionContext$_get_logicStackTrace_$ref_p35zx2(), null);
|
|
898
|
-
return tmp0.
|
|
898
|
+
return tmp0.d2();
|
|
899
899
|
};
|
|
900
|
-
protoOf(ClassicExecutionContext).
|
|
900
|
+
protoOf(ClassicExecutionContext).b1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
901
901
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
902
902
|
};
|
|
903
903
|
protoOf(ClassicExecutionContext).createSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
904
904
|
return this.createSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
905
905
|
};
|
|
906
|
-
protoOf(ClassicExecutionContext).
|
|
906
|
+
protoOf(ClassicExecutionContext).i1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
907
907
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
908
908
|
};
|
|
909
909
|
protoOf(ClassicExecutionContext).createMutableSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
910
910
|
return this.createMutableSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
911
911
|
};
|
|
912
|
-
protoOf(ClassicExecutionContext).
|
|
913
|
-
return this.
|
|
912
|
+
protoOf(ClassicExecutionContext).k1u = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
913
|
+
return this.c2y(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
914
914
|
};
|
|
915
915
|
protoOf(ClassicExecutionContext).update = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, $super) {
|
|
916
916
|
return this.update(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
917
917
|
};
|
|
918
|
-
protoOf(ClassicExecutionContext).
|
|
918
|
+
protoOf(ClassicExecutionContext).b30 = function (sideEffect) {
|
|
919
919
|
var tmp = apply.call(this, sideEffect);
|
|
920
920
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
921
921
|
};
|
|
922
922
|
protoOf(ClassicExecutionContext).apply = function (sideEffect) {
|
|
923
|
-
return this.
|
|
923
|
+
return this.b30(sideEffect);
|
|
924
924
|
};
|
|
925
|
-
protoOf(ClassicExecutionContext).
|
|
925
|
+
protoOf(ClassicExecutionContext).c30 = function (sideEffects) {
|
|
926
926
|
var tmp = applyIterable.call(this, sideEffects);
|
|
927
927
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
928
928
|
};
|
|
929
929
|
protoOf(ClassicExecutionContext).applyIterable = function (sideEffects) {
|
|
930
|
-
return this.
|
|
930
|
+
return this.c30(sideEffects);
|
|
931
931
|
};
|
|
932
|
-
protoOf(ClassicExecutionContext).
|
|
932
|
+
protoOf(ClassicExecutionContext).d30 = function (sideEffects) {
|
|
933
933
|
var tmp = applySequence.call(this, sideEffects);
|
|
934
934
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
935
935
|
};
|
|
936
936
|
protoOf(ClassicExecutionContext).applySequence = function (sideEffects) {
|
|
937
|
-
return this.
|
|
937
|
+
return this.d30(sideEffects);
|
|
938
938
|
};
|
|
939
939
|
protoOf(ClassicExecutionContext).toString = function () {
|
|
940
|
-
return 'ClassicExecutionContext(' + ('step=' + this.
|
|
940
|
+
return 'ClassicExecutionContext(' + ('step=' + this.f2x_1.toString() + ', ') + ('depth=' + this.e2x_1 + ', ') + ('substitution=' + toString(this.v2w_1) + ', ') + ('logicStackTrace=' + toString(this.z1t()) + ', ') + ('goals=' + toString(this.x2w_1) + ', ') + ('rules=' + toString(this.y2w_1) + ', ') + ('primitives=' + toString(this.z2w_1) + ', ') + ('startTime=' + this.a2x_1.toString() + ', ') + ('endTime=' + this.t1t().toString() + ', ') + ('maxDuration=' + this.b2x_1.toString() + ', ') + ('unificator=' + toString(this.m2w_1) + ', ') + ('choicePoints=' + toString_0(this.c2x_1)) + ')';
|
|
941
941
|
};
|
|
942
|
-
protoOf(ClassicExecutionContext).
|
|
942
|
+
protoOf(ClassicExecutionContext).e30 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
943
943
|
return new ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
944
944
|
};
|
|
945
|
-
protoOf(ClassicExecutionContext).
|
|
946
|
-
procedure = procedure === VOID ? this.
|
|
947
|
-
unificator = unificator === VOID ? this.
|
|
948
|
-
libraries = libraries === VOID ? this.
|
|
949
|
-
flags = flags === VOID ? this.
|
|
950
|
-
staticKb = staticKb === VOID ? this.
|
|
951
|
-
dynamicKb = dynamicKb === VOID ? this.
|
|
952
|
-
operators = operators === VOID ? this.
|
|
953
|
-
inputChannels = inputChannels === VOID ? this.
|
|
954
|
-
outputChannels = outputChannels === VOID ? this.
|
|
955
|
-
customData = customData === VOID ? this.
|
|
956
|
-
substitution = substitution === VOID ? this.
|
|
957
|
-
query = query === VOID ? this.
|
|
958
|
-
goals = goals === VOID ? this.
|
|
959
|
-
rules = rules === VOID ? this.
|
|
960
|
-
primitives = primitives === VOID ? this.
|
|
961
|
-
startTime = startTime === VOID ? this.
|
|
962
|
-
maxDuration = maxDuration === VOID ? this.
|
|
963
|
-
choicePoints = choicePoints === VOID ? this.
|
|
964
|
-
parent = parent === VOID ? this.
|
|
965
|
-
depth = depth === VOID ? this.
|
|
966
|
-
step = step === VOID ? this.
|
|
967
|
-
relevantVariables = relevantVariables === VOID ? this.
|
|
968
|
-
return $super === VOID ? this.
|
|
945
|
+
protoOf(ClassicExecutionContext).c2y = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
946
|
+
procedure = procedure === VOID ? this.l2w_1 : procedure;
|
|
947
|
+
unificator = unificator === VOID ? this.m2w_1 : unificator;
|
|
948
|
+
libraries = libraries === VOID ? this.n2w_1 : libraries;
|
|
949
|
+
flags = flags === VOID ? this.o2w_1 : flags;
|
|
950
|
+
staticKb = staticKb === VOID ? this.p2w_1 : staticKb;
|
|
951
|
+
dynamicKb = dynamicKb === VOID ? this.q2w_1 : dynamicKb;
|
|
952
|
+
operators = operators === VOID ? this.r2w_1 : operators;
|
|
953
|
+
inputChannels = inputChannels === VOID ? this.s2w_1 : inputChannels;
|
|
954
|
+
outputChannels = outputChannels === VOID ? this.t2w_1 : outputChannels;
|
|
955
|
+
customData = customData === VOID ? this.u2w_1 : customData;
|
|
956
|
+
substitution = substitution === VOID ? this.v2w_1 : substitution;
|
|
957
|
+
query = query === VOID ? this.w2w_1 : query;
|
|
958
|
+
goals = goals === VOID ? this.x2w_1 : goals;
|
|
959
|
+
rules = rules === VOID ? this.y2w_1 : rules;
|
|
960
|
+
primitives = primitives === VOID ? this.z2w_1 : primitives;
|
|
961
|
+
startTime = startTime === VOID ? this.a2x_1 : startTime;
|
|
962
|
+
maxDuration = maxDuration === VOID ? this.b2x_1 : maxDuration;
|
|
963
|
+
choicePoints = choicePoints === VOID ? this.c2x_1 : choicePoints;
|
|
964
|
+
parent = parent === VOID ? this.d2x_1 : parent;
|
|
965
|
+
depth = depth === VOID ? this.e2x_1 : depth;
|
|
966
|
+
step = step === VOID ? this.f2x_1 : step;
|
|
967
|
+
relevantVariables = relevantVariables === VOID ? this.g2x_1 : relevantVariables;
|
|
968
|
+
return $super === VOID ? this.e30(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.e30.call(this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
969
969
|
};
|
|
970
970
|
protoOf(ClassicExecutionContext).hashCode = function () {
|
|
971
|
-
var result = this.
|
|
972
|
-
result = imul(result, 31) + hashCode(this.j2w_1) | 0;
|
|
973
|
-
result = imul(result, 31) + hashCode(this.k2w_1) | 0;
|
|
974
|
-
result = imul(result, 31) + this.l2w_1.hashCode() | 0;
|
|
971
|
+
var result = this.l2w_1 == null ? 0 : this.l2w_1.hashCode();
|
|
975
972
|
result = imul(result, 31) + hashCode(this.m2w_1) | 0;
|
|
976
973
|
result = imul(result, 31) + hashCode(this.n2w_1) | 0;
|
|
977
974
|
result = imul(result, 31) + this.o2w_1.hashCode() | 0;
|
|
@@ -979,17 +976,20 @@
|
|
|
979
976
|
result = imul(result, 31) + hashCode(this.q2w_1) | 0;
|
|
980
977
|
result = imul(result, 31) + this.r2w_1.hashCode() | 0;
|
|
981
978
|
result = imul(result, 31) + hashCode(this.s2w_1) | 0;
|
|
982
|
-
result = imul(result, 31) + this.t2w_1
|
|
983
|
-
result = imul(result, 31) +
|
|
979
|
+
result = imul(result, 31) + hashCode(this.t2w_1) | 0;
|
|
980
|
+
result = imul(result, 31) + this.u2w_1.hashCode() | 0;
|
|
984
981
|
result = imul(result, 31) + hashCode(this.v2w_1) | 0;
|
|
985
|
-
result = imul(result, 31) +
|
|
986
|
-
result = imul(result, 31) + this.x2w_1
|
|
987
|
-
result = imul(result, 31) + this.y2w_1
|
|
988
|
-
result = imul(result, 31) +
|
|
989
|
-
result = imul(result, 31) +
|
|
990
|
-
result = imul(result, 31) + this.b2x_1 | 0;
|
|
991
|
-
result = imul(result, 31) + this.c2x_1
|
|
992
|
-
result = imul(result, 31) +
|
|
982
|
+
result = imul(result, 31) + this.w2w_1.hashCode() | 0;
|
|
983
|
+
result = imul(result, 31) + hashCode(this.x2w_1) | 0;
|
|
984
|
+
result = imul(result, 31) + hashCode(this.y2w_1) | 0;
|
|
985
|
+
result = imul(result, 31) + hashCode(this.z2w_1) | 0;
|
|
986
|
+
result = imul(result, 31) + this.a2x_1.hashCode() | 0;
|
|
987
|
+
result = imul(result, 31) + this.b2x_1.hashCode() | 0;
|
|
988
|
+
result = imul(result, 31) + (this.c2x_1 == null ? 0 : hashCode(this.c2x_1)) | 0;
|
|
989
|
+
result = imul(result, 31) + (this.d2x_1 == null ? 0 : this.d2x_1.hashCode()) | 0;
|
|
990
|
+
result = imul(result, 31) + this.e2x_1 | 0;
|
|
991
|
+
result = imul(result, 31) + this.f2x_1.hashCode() | 0;
|
|
992
|
+
result = imul(result, 31) + hashCode(this.g2x_1) | 0;
|
|
993
993
|
return result;
|
|
994
994
|
};
|
|
995
995
|
protoOf(ClassicExecutionContext).equals = function (other) {
|
|
@@ -997,13 +997,7 @@
|
|
|
997
997
|
return true;
|
|
998
998
|
if (!(other instanceof ClassicExecutionContext))
|
|
999
999
|
return false;
|
|
1000
|
-
if (!equals(this.
|
|
1001
|
-
return false;
|
|
1002
|
-
if (!equals(this.j2w_1, other.j2w_1))
|
|
1003
|
-
return false;
|
|
1004
|
-
if (!equals(this.k2w_1, other.k2w_1))
|
|
1005
|
-
return false;
|
|
1006
|
-
if (!this.l2w_1.equals(other.l2w_1))
|
|
1000
|
+
if (!equals(this.l2w_1, other.l2w_1))
|
|
1007
1001
|
return false;
|
|
1008
1002
|
if (!equals(this.m2w_1, other.m2w_1))
|
|
1009
1003
|
return false;
|
|
@@ -1019,32 +1013,38 @@
|
|
|
1019
1013
|
return false;
|
|
1020
1014
|
if (!equals(this.s2w_1, other.s2w_1))
|
|
1021
1015
|
return false;
|
|
1022
|
-
if (!this.t2w_1
|
|
1016
|
+
if (!equals(this.t2w_1, other.t2w_1))
|
|
1023
1017
|
return false;
|
|
1024
|
-
if (!
|
|
1018
|
+
if (!this.u2w_1.equals(other.u2w_1))
|
|
1025
1019
|
return false;
|
|
1026
1020
|
if (!equals(this.v2w_1, other.v2w_1))
|
|
1027
1021
|
return false;
|
|
1028
|
-
if (!
|
|
1022
|
+
if (!this.w2w_1.equals(other.w2w_1))
|
|
1029
1023
|
return false;
|
|
1030
|
-
if (!
|
|
1024
|
+
if (!equals(this.x2w_1, other.x2w_1))
|
|
1031
1025
|
return false;
|
|
1032
|
-
if (!
|
|
1026
|
+
if (!equals(this.y2w_1, other.y2w_1))
|
|
1033
1027
|
return false;
|
|
1034
1028
|
if (!equals(this.z2w_1, other.z2w_1))
|
|
1035
1029
|
return false;
|
|
1036
|
-
if (!
|
|
1030
|
+
if (!equalsLong(this.a2x_1, other.a2x_1))
|
|
1037
1031
|
return false;
|
|
1038
|
-
if (!(this.b2x_1
|
|
1032
|
+
if (!equalsLong(this.b2x_1, other.b2x_1))
|
|
1039
1033
|
return false;
|
|
1040
|
-
if (!
|
|
1034
|
+
if (!equals(this.c2x_1, other.c2x_1))
|
|
1041
1035
|
return false;
|
|
1042
1036
|
if (!equals(this.d2x_1, other.d2x_1))
|
|
1043
1037
|
return false;
|
|
1038
|
+
if (!(this.e2x_1 === other.e2x_1))
|
|
1039
|
+
return false;
|
|
1040
|
+
if (!equalsLong(this.f2x_1, other.f2x_1))
|
|
1041
|
+
return false;
|
|
1042
|
+
if (!equals(this.g2x_1, other.g2x_1))
|
|
1043
|
+
return false;
|
|
1044
1044
|
return true;
|
|
1045
1045
|
};
|
|
1046
1046
|
function ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1047
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1047
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
1048
1048
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1049
1049
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1050
1050
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1061
1061
|
}
|
|
1062
1062
|
function ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1063
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1063
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
1064
1064
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1065
1065
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1066
1066
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1077,47 +1077,47 @@
|
|
|
1077
1077
|
function ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1078
1078
|
return ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1079
1079
|
}
|
|
1080
|
-
protoOf(ClassicSolver).
|
|
1081
|
-
return Companion_instance_15.
|
|
1080
|
+
protoOf(ClassicSolver).n2x = function (initialState, onStateTransition) {
|
|
1081
|
+
return Companion_instance_15.g30(initialState, onStateTransition);
|
|
1082
1082
|
};
|
|
1083
|
-
protoOf(ClassicSolver).
|
|
1083
|
+
protoOf(ClassicSolver).m1w = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1084
1084
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1085
1085
|
};
|
|
1086
1086
|
protoOf(ClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1087
1087
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolver) ? $super : THROW_CCE());
|
|
1088
1088
|
};
|
|
1089
|
-
protoOf(ClassicSolver).
|
|
1089
|
+
protoOf(ClassicSolver).u1r = function () {
|
|
1090
1090
|
return this.copy();
|
|
1091
1091
|
};
|
|
1092
1092
|
protoOf(ClassicSolver).clone = function () {
|
|
1093
|
-
return this.
|
|
1093
|
+
return this.u1r();
|
|
1094
1094
|
};
|
|
1095
1095
|
function ClassicSolver() {
|
|
1096
1096
|
}
|
|
1097
1097
|
function ClassicSolverFactory() {
|
|
1098
1098
|
}
|
|
1099
|
-
protoOf(ClassicSolverFactory).
|
|
1099
|
+
protoOf(ClassicSolverFactory).o1w = function () {
|
|
1100
1100
|
return DefaultBuiltins_getInstance();
|
|
1101
1101
|
};
|
|
1102
|
-
protoOf(ClassicSolverFactory).
|
|
1102
|
+
protoOf(ClassicSolverFactory).z1w = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1103
1103
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1104
1104
|
};
|
|
1105
1105
|
protoOf(ClassicSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
1106
1106
|
return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1107
1107
|
};
|
|
1108
|
-
protoOf(ClassicSolverFactory).
|
|
1108
|
+
protoOf(ClassicSolverFactory).f1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1109
1109
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1110
1110
|
};
|
|
1111
1111
|
protoOf(ClassicSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1112
1112
|
return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1113
1113
|
};
|
|
1114
|
-
protoOf(ClassicSolverFactory).
|
|
1114
|
+
protoOf(ClassicSolverFactory).h1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1115
1115
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1116
1116
|
};
|
|
1117
1117
|
protoOf(ClassicSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1118
1118
|
return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1119
1119
|
};
|
|
1120
|
-
protoOf(ClassicSolverFactory).
|
|
1120
|
+
protoOf(ClassicSolverFactory).j1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1121
1121
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1122
1122
|
};
|
|
1123
1123
|
protoOf(ClassicSolverFactory).rawMutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
return ClassicSolverFactory_instance;
|
|
1129
1129
|
}
|
|
1130
1130
|
function MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1131
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1131
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
1132
1132
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1133
1133
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1134
1134
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1144,7 +1144,7 @@
|
|
|
1144
1144
|
return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutableClassicSolver)));
|
|
1145
1145
|
}
|
|
1146
1146
|
function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1147
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1147
|
+
unificator = unificator === VOID ? Companion_getInstance().y1j() : unificator;
|
|
1148
1148
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1149
1149
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1150
1150
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1163,265 +1163,265 @@
|
|
|
1163
1163
|
}
|
|
1164
1164
|
function MutableClassicSolver$loadLibrary$lambda($library) {
|
|
1165
1165
|
return function ($this$updateContext) {
|
|
1166
|
-
var newRuntime = $this$updateContext.
|
|
1167
|
-
return $this$updateContext.
|
|
1166
|
+
var newRuntime = $this$updateContext.n2w_1.plusLibrary($library);
|
|
1167
|
+
return $this$updateContext.c2y(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.r2w_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
1170
|
function MutableClassicSolver$unloadLibrary$lambda($library) {
|
|
1171
1171
|
return function ($this$updateContext) {
|
|
1172
|
-
var newRuntime = $this$updateContext.
|
|
1173
|
-
return $this$updateContext.
|
|
1172
|
+
var newRuntime = $this$updateContext.n2w_1.plusLibrary($library);
|
|
1173
|
+
return $this$updateContext.c2y(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.p2w_1, $this$updateContext.q2w_1])));
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
1176
|
function MutableClassicSolver$setRuntime$lambda($libraries) {
|
|
1177
1177
|
return function ($this$updateContext) {
|
|
1178
|
-
return $this$updateContext.
|
|
1178
|
+
return $this$updateContext.c2y(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.p2w_1, $this$updateContext.q2w_1])));
|
|
1179
1179
|
};
|
|
1180
1180
|
}
|
|
1181
1181
|
function MutableClassicSolver$resetStaticKb$lambda($this$updateContext) {
|
|
1182
|
-
return $this$updateContext.
|
|
1182
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, Companion_instance_0.empty($this$updateContext.m2w_1), VOID, toOperatorSet(getAllOperators($this$updateContext.n2w_1, [$this$updateContext.q2w_1])));
|
|
1183
1183
|
}
|
|
1184
1184
|
function MutableClassicSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
1185
|
-
return $this$updateContext.
|
|
1185
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, Companion_instance_1.empty($this$updateContext.m2w_1), toOperatorSet(getAllOperators($this$updateContext.n2w_1, [$this$updateContext.p2w_1])));
|
|
1186
1186
|
}
|
|
1187
1187
|
function MutableClassicSolver$assertA$lambda($clause) {
|
|
1188
1188
|
return function ($this$updateContext) {
|
|
1189
|
-
return $this$updateContext.
|
|
1189
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $this$updateContext.q2w_1.k1r($clause), $this$updateContext.r2w_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
1192
1192
|
function MutableClassicSolver$assertA$lambda_0($fact) {
|
|
1193
1193
|
return function ($this$updateContext) {
|
|
1194
|
-
return $this$updateContext.
|
|
1194
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $this$updateContext.q2w_1.j1s($fact));
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
1197
|
function MutableClassicSolver$assertZ$lambda($clause) {
|
|
1198
1198
|
return function ($this$updateContext) {
|
|
1199
|
-
return $this$updateContext.
|
|
1199
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $this$updateContext.q2w_1.o1r($clause), $this$updateContext.r2w_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
1202
|
function MutableClassicSolver$assertZ$lambda_0($fact) {
|
|
1203
1203
|
return function ($this$updateContext) {
|
|
1204
|
-
return $this$updateContext.
|
|
1204
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $this$updateContext.q2w_1.k1s($fact));
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
1207
|
function MutableClassicSolver$retract$lambda($result, $clause) {
|
|
1208
1208
|
return function ($this$updateContext) {
|
|
1209
|
-
return $this$updateContext.
|
|
1209
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $result.c1r().toMutableTheory(), $this$updateContext.r2w_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
1212
|
function MutableClassicSolver$retract$lambda_0($result) {
|
|
1213
1213
|
return function ($this$updateContext) {
|
|
1214
|
-
return $this$updateContext.
|
|
1214
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $result.c1r().toMutableTheory());
|
|
1215
1215
|
};
|
|
1216
1216
|
}
|
|
1217
1217
|
function MutableClassicSolver$retractAll$lambda($result) {
|
|
1218
1218
|
return function ($this$updateContext) {
|
|
1219
|
-
return $this$updateContext.
|
|
1219
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $result.c1r().toMutableTheory(), $this$updateContext.r2w_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.c1r()))));
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
1222
|
function MutableClassicSolver$retractAll$lambda_0($result) {
|
|
1223
1223
|
return function ($this$updateContext) {
|
|
1224
|
-
return $this$updateContext.
|
|
1224
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, $result.c1r().toMutableTheory());
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
1227
|
function MutableClassicSolver$setFlag$lambda($name, $value) {
|
|
1228
1228
|
return function ($this$updateContext) {
|
|
1229
|
-
return $this$updateContext.
|
|
1229
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, $this$updateContext.o2w_1.set($name, $value));
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
1232
|
function MutableClassicSolver$setFlag$lambda_0($flag) {
|
|
1233
1233
|
return function ($this$updateContext) {
|
|
1234
|
-
return $this$updateContext.
|
|
1234
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, $this$updateContext.o2w_1.plusPair($flag));
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
1237
|
function MutableClassicSolver$setFlag$lambda_1($flag) {
|
|
1238
1238
|
return function ($this$updateContext) {
|
|
1239
|
-
return $this$updateContext.
|
|
1239
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, $this$updateContext.o2w_1.plusNotable($flag));
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
1242
|
function MutableClassicSolver$setStandardInput$lambda($stdIn) {
|
|
1243
1243
|
return function ($this$updateContext) {
|
|
1244
|
-
return $this$updateContext.
|
|
1244
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.s2w_1.plus(to('stdin', $stdIn)));
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
1247
|
function MutableClassicSolver$setStandardError$lambda($stdErr) {
|
|
1248
1248
|
return function ($this$updateContext) {
|
|
1249
|
-
return $this$updateContext.
|
|
1249
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.t2w_1.plus(to('stderr', $stdErr)));
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
1252
|
function MutableClassicSolver$setStandardOutput$lambda($stdOut) {
|
|
1253
1253
|
return function ($this$updateContext) {
|
|
1254
|
-
return $this$updateContext.
|
|
1254
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.t2w_1.plus(to('stdout', $stdOut)));
|
|
1255
1255
|
};
|
|
1256
1256
|
}
|
|
1257
1257
|
function MutableClassicSolver$setWarnings$lambda($warnings) {
|
|
1258
1258
|
return function ($this$updateContext) {
|
|
1259
|
-
return $this$updateContext.
|
|
1259
|
+
return $this$updateContext.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_5.x1x($this$updateContext.t2w_1, $warnings));
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
|
-
protoOf(MutableClassicSolver).
|
|
1263
|
-
this.
|
|
1262
|
+
protoOf(MutableClassicSolver).i30 = function (library) {
|
|
1263
|
+
this.r29(MutableClassicSolver$loadLibrary$lambda(library));
|
|
1264
1264
|
};
|
|
1265
1265
|
protoOf(MutableClassicSolver).loadLibrary = function (library) {
|
|
1266
|
-
return this.
|
|
1266
|
+
return this.i30(library);
|
|
1267
1267
|
};
|
|
1268
|
-
protoOf(MutableClassicSolver).
|
|
1269
|
-
this.
|
|
1268
|
+
protoOf(MutableClassicSolver).j30 = function (library) {
|
|
1269
|
+
this.r29(MutableClassicSolver$unloadLibrary$lambda(library));
|
|
1270
1270
|
};
|
|
1271
1271
|
protoOf(MutableClassicSolver).unloadLibrary = function (library) {
|
|
1272
|
-
return this.
|
|
1272
|
+
return this.j30(library);
|
|
1273
1273
|
};
|
|
1274
|
-
protoOf(MutableClassicSolver).
|
|
1275
|
-
this.
|
|
1274
|
+
protoOf(MutableClassicSolver).k30 = function (libraries) {
|
|
1275
|
+
this.r29(MutableClassicSolver$setRuntime$lambda(libraries));
|
|
1276
1276
|
};
|
|
1277
1277
|
protoOf(MutableClassicSolver).setLibraries = function (libraries) {
|
|
1278
|
-
return this.
|
|
1278
|
+
return this.k30(libraries);
|
|
1279
1279
|
};
|
|
1280
|
-
protoOf(MutableClassicSolver).
|
|
1281
|
-
this.
|
|
1280
|
+
protoOf(MutableClassicSolver).l30 = function (theory) {
|
|
1281
|
+
this.v29(theory, VOID, false);
|
|
1282
1282
|
};
|
|
1283
1283
|
protoOf(MutableClassicSolver).loadStaticKb = function (theory) {
|
|
1284
|
-
return this.
|
|
1284
|
+
return this.l30(theory);
|
|
1285
1285
|
};
|
|
1286
|
-
protoOf(MutableClassicSolver).
|
|
1287
|
-
this.
|
|
1286
|
+
protoOf(MutableClassicSolver).m30 = function (theory) {
|
|
1287
|
+
this.v29(theory);
|
|
1288
1288
|
};
|
|
1289
1289
|
protoOf(MutableClassicSolver).appendStaticKb = function (theory) {
|
|
1290
|
-
return this.
|
|
1290
|
+
return this.m30(theory);
|
|
1291
1291
|
};
|
|
1292
|
-
protoOf(MutableClassicSolver).
|
|
1293
|
-
this.
|
|
1292
|
+
protoOf(MutableClassicSolver).n30 = function () {
|
|
1293
|
+
this.r29(MutableClassicSolver$resetStaticKb$lambda);
|
|
1294
1294
|
};
|
|
1295
1295
|
protoOf(MutableClassicSolver).resetStaticKb = function () {
|
|
1296
|
-
return this.
|
|
1296
|
+
return this.n30();
|
|
1297
1297
|
};
|
|
1298
|
-
protoOf(MutableClassicSolver).
|
|
1299
|
-
this.
|
|
1298
|
+
protoOf(MutableClassicSolver).o30 = function (theory) {
|
|
1299
|
+
this.v29(VOID, theory, VOID, false);
|
|
1300
1300
|
};
|
|
1301
1301
|
protoOf(MutableClassicSolver).loadDynamicKb = function (theory) {
|
|
1302
|
-
return this.
|
|
1302
|
+
return this.o30(theory);
|
|
1303
1303
|
};
|
|
1304
|
-
protoOf(MutableClassicSolver).
|
|
1305
|
-
this.
|
|
1304
|
+
protoOf(MutableClassicSolver).p30 = function (theory) {
|
|
1305
|
+
this.v29(VOID, theory);
|
|
1306
1306
|
};
|
|
1307
1307
|
protoOf(MutableClassicSolver).appendDynamicKb = function (theory) {
|
|
1308
|
-
return this.
|
|
1308
|
+
return this.p30(theory);
|
|
1309
1309
|
};
|
|
1310
|
-
protoOf(MutableClassicSolver).
|
|
1311
|
-
this.
|
|
1310
|
+
protoOf(MutableClassicSolver).q30 = function () {
|
|
1311
|
+
this.r29(MutableClassicSolver$resetDynamicKb$lambda);
|
|
1312
1312
|
};
|
|
1313
1313
|
protoOf(MutableClassicSolver).resetDynamicKb = function () {
|
|
1314
|
-
return this.
|
|
1314
|
+
return this.q30();
|
|
1315
1315
|
};
|
|
1316
|
-
protoOf(MutableClassicSolver).
|
|
1317
|
-
this.
|
|
1316
|
+
protoOf(MutableClassicSolver).r1l = function (clause) {
|
|
1317
|
+
this.r29(MutableClassicSolver$assertA$lambda(clause));
|
|
1318
1318
|
};
|
|
1319
1319
|
protoOf(MutableClassicSolver).assertA = function (clause) {
|
|
1320
|
-
return this.
|
|
1320
|
+
return this.r1l(clause);
|
|
1321
1321
|
};
|
|
1322
|
-
protoOf(MutableClassicSolver).
|
|
1323
|
-
this.
|
|
1322
|
+
protoOf(MutableClassicSolver).r30 = function (fact) {
|
|
1323
|
+
this.r29(MutableClassicSolver$assertA$lambda_0(fact));
|
|
1324
1324
|
};
|
|
1325
1325
|
protoOf(MutableClassicSolver).assertAFact = function (fact) {
|
|
1326
|
-
return this.
|
|
1326
|
+
return this.r30(fact);
|
|
1327
1327
|
};
|
|
1328
|
-
protoOf(MutableClassicSolver).
|
|
1329
|
-
this.
|
|
1328
|
+
protoOf(MutableClassicSolver).s1k = function (clause) {
|
|
1329
|
+
this.r29(MutableClassicSolver$assertZ$lambda(clause));
|
|
1330
1330
|
};
|
|
1331
1331
|
protoOf(MutableClassicSolver).assertZ = function (clause) {
|
|
1332
|
-
return this.
|
|
1332
|
+
return this.s1k(clause);
|
|
1333
1333
|
};
|
|
1334
|
-
protoOf(MutableClassicSolver).
|
|
1335
|
-
this.
|
|
1334
|
+
protoOf(MutableClassicSolver).s30 = function (fact) {
|
|
1335
|
+
this.r29(MutableClassicSolver$assertZ$lambda_0(fact));
|
|
1336
1336
|
};
|
|
1337
1337
|
protoOf(MutableClassicSolver).assertZFact = function (fact) {
|
|
1338
|
-
return this.
|
|
1338
|
+
return this.s30(fact);
|
|
1339
1339
|
};
|
|
1340
|
-
protoOf(MutableClassicSolver).
|
|
1341
|
-
var result = this.
|
|
1342
|
-
this.
|
|
1340
|
+
protoOf(MutableClassicSolver).l1s = function (clause) {
|
|
1341
|
+
var result = this.f1u().retract(clause);
|
|
1342
|
+
this.r29(MutableClassicSolver$retract$lambda(result, clause));
|
|
1343
1343
|
return result;
|
|
1344
1344
|
};
|
|
1345
1345
|
protoOf(MutableClassicSolver).retract = function (clause) {
|
|
1346
|
-
return this.
|
|
1346
|
+
return this.l1s(clause);
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(MutableClassicSolver).
|
|
1349
|
-
var result = this.
|
|
1350
|
-
this.
|
|
1348
|
+
protoOf(MutableClassicSolver).m1s = function (fact) {
|
|
1349
|
+
var result = this.f1u().retractByHead(fact);
|
|
1350
|
+
this.r29(MutableClassicSolver$retract$lambda_0(result));
|
|
1351
1351
|
return result;
|
|
1352
1352
|
};
|
|
1353
1353
|
protoOf(MutableClassicSolver).retractByHead = function (fact) {
|
|
1354
|
-
return this.
|
|
1354
|
+
return this.m1s(fact);
|
|
1355
1355
|
};
|
|
1356
|
-
protoOf(MutableClassicSolver).
|
|
1357
|
-
var result = this.
|
|
1358
|
-
this.
|
|
1356
|
+
protoOf(MutableClassicSolver).x1k = function (clause) {
|
|
1357
|
+
var result = this.f1u().retractAll(clause);
|
|
1358
|
+
this.r29(MutableClassicSolver$retractAll$lambda(result));
|
|
1359
1359
|
return result;
|
|
1360
1360
|
};
|
|
1361
1361
|
protoOf(MutableClassicSolver).retractAll = function (clause) {
|
|
1362
|
-
return this.
|
|
1362
|
+
return this.x1k(clause);
|
|
1363
1363
|
};
|
|
1364
|
-
protoOf(MutableClassicSolver).
|
|
1365
|
-
var result = this.
|
|
1366
|
-
this.
|
|
1364
|
+
protoOf(MutableClassicSolver).t30 = function (fact) {
|
|
1365
|
+
var result = this.f1u().retractAllByHead(fact);
|
|
1366
|
+
this.r29(MutableClassicSolver$retractAll$lambda_0(result));
|
|
1367
1367
|
return result;
|
|
1368
1368
|
};
|
|
1369
1369
|
protoOf(MutableClassicSolver).retractAllBeHead = function (fact) {
|
|
1370
|
-
return this.
|
|
1370
|
+
return this.t30(fact);
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(MutableClassicSolver).
|
|
1373
|
-
this.
|
|
1372
|
+
protoOf(MutableClassicSolver).u30 = function (name, value) {
|
|
1373
|
+
this.r29(MutableClassicSolver$setFlag$lambda(name, value));
|
|
1374
1374
|
};
|
|
1375
1375
|
protoOf(MutableClassicSolver).setFlag = function (name, value) {
|
|
1376
|
-
return this.
|
|
1376
|
+
return this.u30(name, value);
|
|
1377
1377
|
};
|
|
1378
|
-
protoOf(MutableClassicSolver).
|
|
1379
|
-
this.
|
|
1378
|
+
protoOf(MutableClassicSolver).v30 = function (flag) {
|
|
1379
|
+
this.r29(MutableClassicSolver$setFlag$lambda_0(flag));
|
|
1380
1380
|
};
|
|
1381
1381
|
protoOf(MutableClassicSolver).setFlagPair = function (flag) {
|
|
1382
|
-
return this.
|
|
1382
|
+
return this.v30(flag);
|
|
1383
1383
|
};
|
|
1384
|
-
protoOf(MutableClassicSolver).
|
|
1385
|
-
this.
|
|
1384
|
+
protoOf(MutableClassicSolver).w30 = function (flag) {
|
|
1385
|
+
this.r29(MutableClassicSolver$setFlag$lambda_1(flag));
|
|
1386
1386
|
};
|
|
1387
1387
|
protoOf(MutableClassicSolver).setFlagNotable = function (flag) {
|
|
1388
|
-
return this.
|
|
1388
|
+
return this.w30(flag);
|
|
1389
1389
|
};
|
|
1390
|
-
protoOf(MutableClassicSolver).
|
|
1391
|
-
this.
|
|
1390
|
+
protoOf(MutableClassicSolver).x30 = function (stdIn) {
|
|
1391
|
+
this.r29(MutableClassicSolver$setStandardInput$lambda(stdIn));
|
|
1392
1392
|
};
|
|
1393
1393
|
protoOf(MutableClassicSolver).setStandardInput = function (stdIn) {
|
|
1394
|
-
return this.
|
|
1394
|
+
return this.x30(stdIn);
|
|
1395
1395
|
};
|
|
1396
|
-
protoOf(MutableClassicSolver).
|
|
1397
|
-
this.
|
|
1396
|
+
protoOf(MutableClassicSolver).y30 = function (stdErr) {
|
|
1397
|
+
this.r29(MutableClassicSolver$setStandardError$lambda(stdErr));
|
|
1398
1398
|
};
|
|
1399
1399
|
protoOf(MutableClassicSolver).setStandardError = function (stdErr) {
|
|
1400
|
-
return this.
|
|
1400
|
+
return this.y30(stdErr);
|
|
1401
1401
|
};
|
|
1402
|
-
protoOf(MutableClassicSolver).
|
|
1403
|
-
this.
|
|
1402
|
+
protoOf(MutableClassicSolver).z30 = function (stdOut) {
|
|
1403
|
+
this.r29(MutableClassicSolver$setStandardOutput$lambda(stdOut));
|
|
1404
1404
|
};
|
|
1405
1405
|
protoOf(MutableClassicSolver).setStandardOutput = function (stdOut) {
|
|
1406
|
-
return this.
|
|
1406
|
+
return this.z30(stdOut);
|
|
1407
1407
|
};
|
|
1408
|
-
protoOf(MutableClassicSolver).
|
|
1409
|
-
this.
|
|
1408
|
+
protoOf(MutableClassicSolver).a31 = function (warnings) {
|
|
1409
|
+
this.r29(MutableClassicSolver$setWarnings$lambda(warnings));
|
|
1410
1410
|
};
|
|
1411
1411
|
protoOf(MutableClassicSolver).setWarnings = function (warnings) {
|
|
1412
|
-
return this.
|
|
1412
|
+
return this.a31(warnings);
|
|
1413
1413
|
};
|
|
1414
|
-
protoOf(MutableClassicSolver).
|
|
1414
|
+
protoOf(MutableClassicSolver).m1w = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1415
1415
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1416
1416
|
};
|
|
1417
1417
|
protoOf(MutableClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1418
1418
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof MutableClassicSolver) ? $super : THROW_CCE());
|
|
1419
1419
|
};
|
|
1420
|
-
protoOf(MutableClassicSolver).
|
|
1420
|
+
protoOf(MutableClassicSolver).u1r = function () {
|
|
1421
1421
|
return this.copy();
|
|
1422
1422
|
};
|
|
1423
1423
|
protoOf(MutableClassicSolver).clone = function () {
|
|
1424
|
-
return this.
|
|
1424
|
+
return this.u1r();
|
|
1425
1425
|
};
|
|
1426
1426
|
function MutableClassicSolver() {
|
|
1427
1427
|
}
|
|
@@ -1430,7 +1430,7 @@
|
|
|
1430
1430
|
}
|
|
1431
1431
|
function Companion() {
|
|
1432
1432
|
}
|
|
1433
|
-
protoOf(Companion).
|
|
1433
|
+
protoOf(Companion).g30 = function (initialState, onStateTransition) {
|
|
1434
1434
|
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1435
1435
|
};
|
|
1436
1436
|
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
@@ -1441,7 +1441,7 @@
|
|
|
1441
1441
|
tmp = onStateTransition;
|
|
1442
1442
|
}
|
|
1443
1443
|
onStateTransition = tmp;
|
|
1444
|
-
return $super === VOID ? this.
|
|
1444
|
+
return $super === VOID ? this.g30(initialState, onStateTransition) : $super.g30.call(this, initialState, onStateTransition);
|
|
1445
1445
|
};
|
|
1446
1446
|
var Companion_instance_15;
|
|
1447
1447
|
function Companion_getInstance_5() {
|
|
@@ -1449,81 +1449,81 @@
|
|
|
1449
1449
|
}
|
|
1450
1450
|
function AbstractEndState(solution, context) {
|
|
1451
1451
|
AbstractState.call(this, context);
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1452
|
+
this.d31_1 = solution;
|
|
1453
|
+
this.e31_1 = context;
|
|
1454
1454
|
}
|
|
1455
|
-
protoOf(AbstractEndState).
|
|
1456
|
-
return this.
|
|
1455
|
+
protoOf(AbstractEndState).r2g = function () {
|
|
1456
|
+
return this.d31_1;
|
|
1457
1457
|
};
|
|
1458
|
-
protoOf(AbstractEndState).
|
|
1459
|
-
return this.
|
|
1458
|
+
protoOf(AbstractEndState).n8 = function () {
|
|
1459
|
+
return this.e31_1;
|
|
1460
1460
|
};
|
|
1461
|
-
protoOf(AbstractEndState).
|
|
1461
|
+
protoOf(AbstractEndState).f31 = function () {
|
|
1462
1462
|
throw NoSuchElementException_init_$Create$();
|
|
1463
1463
|
};
|
|
1464
1464
|
protoOf(AbstractEndState).asEndState = function () {
|
|
1465
|
-
return this.
|
|
1465
|
+
return this.n31();
|
|
1466
1466
|
};
|
|
1467
1467
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1468
1468
|
return function () {
|
|
1469
|
-
return this$0.
|
|
1469
|
+
return this$0.k31();
|
|
1470
1470
|
};
|
|
1471
1471
|
}
|
|
1472
1472
|
function AbstractState$_get_executionTime_$ref_gwd5wm() {
|
|
1473
1473
|
return constructCallableReference(function (p0) {
|
|
1474
|
-
return p0.
|
|
1474
|
+
return p0.i31();
|
|
1475
1475
|
}, 1, 0, 87);
|
|
1476
1476
|
}
|
|
1477
1477
|
function AbstractState(context) {
|
|
1478
|
-
this.
|
|
1478
|
+
this.g31_1 = context;
|
|
1479
1479
|
var tmp = this;
|
|
1480
|
-
tmp.
|
|
1480
|
+
tmp.h31_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1481
1481
|
}
|
|
1482
|
-
protoOf(AbstractState).
|
|
1483
|
-
return this.
|
|
1482
|
+
protoOf(AbstractState).n8 = function () {
|
|
1483
|
+
return this.g31_1;
|
|
1484
1484
|
};
|
|
1485
|
-
protoOf(AbstractState).
|
|
1486
|
-
var tmp0 = this.
|
|
1485
|
+
protoOf(AbstractState).i31 = function () {
|
|
1486
|
+
var tmp0 = this.h31_1;
|
|
1487
1487
|
var tmp = KProperty1;
|
|
1488
1488
|
// Inline function 'kotlin.getValue' call
|
|
1489
1489
|
getPropertyCallableRef('executionTime', 1, tmp, AbstractState$_get_executionTime_$ref_gwd5wm(), null);
|
|
1490
|
-
return tmp0.
|
|
1490
|
+
return tmp0.d2();
|
|
1491
1491
|
};
|
|
1492
|
-
protoOf(AbstractState).
|
|
1493
|
-
return compare(subtract(this.
|
|
1492
|
+
protoOf(AbstractState).j31 = function () {
|
|
1493
|
+
return compare(subtract(this.i31(), this.n8().a2x_1), this.n8().b2x_1) > 0;
|
|
1494
1494
|
};
|
|
1495
1495
|
protoOf(AbstractState).q = function () {
|
|
1496
1496
|
var tmp;
|
|
1497
|
-
if (this.
|
|
1498
|
-
var tmp0_exceededDuration = this.
|
|
1499
|
-
var tmp1_context = this.
|
|
1500
|
-
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.
|
|
1497
|
+
if (this.j31()) {
|
|
1498
|
+
var tmp0_exceededDuration = this.n8().b2x_1;
|
|
1499
|
+
var tmp1_context = this.n8();
|
|
1500
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.n8().c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31()));
|
|
1501
1501
|
} else {
|
|
1502
|
-
tmp = this.
|
|
1502
|
+
tmp = this.f31();
|
|
1503
1503
|
}
|
|
1504
1504
|
return tmp;
|
|
1505
1505
|
};
|
|
1506
1506
|
protoOf(AbstractState).next = function () {
|
|
1507
1507
|
return this.q();
|
|
1508
1508
|
};
|
|
1509
|
-
protoOf(AbstractState).
|
|
1509
|
+
protoOf(AbstractState).k31 = function () {
|
|
1510
1510
|
return currentTimeInstant();
|
|
1511
1511
|
};
|
|
1512
|
-
protoOf(AbstractState).
|
|
1512
|
+
protoOf(AbstractState).l31 = function () {
|
|
1513
1513
|
// Inline function 'kotlin.Long.plus' call
|
|
1514
|
-
var this_0 = this.
|
|
1514
|
+
var this_0 = this.n8().f2x_1;
|
|
1515
1515
|
return add(this_0, fromInt(1));
|
|
1516
1516
|
};
|
|
1517
|
-
protoOf(AbstractState).
|
|
1518
|
-
var tmp0 = _this__u8e3s4.
|
|
1517
|
+
protoOf(AbstractState).p31 = function (_this__u8e3s4) {
|
|
1518
|
+
var tmp0 = _this__u8e3s4.h2x_1;
|
|
1519
1519
|
var tmp$ret$0;
|
|
1520
1520
|
$l$block: {
|
|
1521
1521
|
// Inline function 'kotlin.sequences.first' call
|
|
1522
1522
|
var _iterator__ex2g4s = tmp0.m();
|
|
1523
1523
|
while (_iterator__ex2g4s.p()) {
|
|
1524
1524
|
var element = _iterator__ex2g4s.q();
|
|
1525
|
-
var tmp0_safe_receiver = element.
|
|
1526
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1525
|
+
var tmp0_safe_receiver = element.l2w_1;
|
|
1526
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kt();
|
|
1527
1527
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1528
1528
|
if (!(tmp === Throw_getInstance().signature.name)) {
|
|
1529
1529
|
tmp$ret$0 = element;
|
|
@@ -1540,26 +1540,26 @@
|
|
|
1540
1540
|
}
|
|
1541
1541
|
function StateBacktracking(context) {
|
|
1542
1542
|
AbstractState.call(this, context);
|
|
1543
|
-
this.
|
|
1543
|
+
this.s31_1 = context;
|
|
1544
1544
|
}
|
|
1545
|
-
protoOf(StateBacktracking).
|
|
1546
|
-
return this.
|
|
1545
|
+
protoOf(StateBacktracking).n8 = function () {
|
|
1546
|
+
return this.s31_1;
|
|
1547
1547
|
};
|
|
1548
|
-
protoOf(StateBacktracking).
|
|
1549
|
-
var choicePoints = this.
|
|
1548
|
+
protoOf(StateBacktracking).f31 = function () {
|
|
1549
|
+
var choicePoints = this.s31_1.c2x_1;
|
|
1550
1550
|
var tmp;
|
|
1551
1551
|
// Inline function 'kotlin.let' call
|
|
1552
|
-
if (choicePoints === null || !choicePoints.
|
|
1553
|
-
tmp = new StateEnd(Companion_instance_8.no(this.
|
|
1552
|
+
if (choicePoints === null || !choicePoints.j2y()) {
|
|
1553
|
+
tmp = new StateEnd(Companion_instance_8.no(this.s31_1.w2w_1), this.s31_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31()));
|
|
1554
1554
|
} else {
|
|
1555
|
-
var tmp0 = ensureNotNull(choicePoints).
|
|
1555
|
+
var tmp0 = ensureNotNull(choicePoints).k2y();
|
|
1556
1556
|
var tmp$ret$2;
|
|
1557
1557
|
$l$block: {
|
|
1558
1558
|
// Inline function 'kotlin.sequences.first' call
|
|
1559
1559
|
var _iterator__ex2g4s = tmp0.m();
|
|
1560
1560
|
while (_iterator__ex2g4s.p()) {
|
|
1561
1561
|
var element = _iterator__ex2g4s.q();
|
|
1562
|
-
if (element.
|
|
1562
|
+
if (element.w2x().wo()) {
|
|
1563
1563
|
tmp$ret$2 = element;
|
|
1564
1564
|
break $l$block;
|
|
1565
1565
|
}
|
|
@@ -1567,9 +1567,9 @@
|
|
|
1567
1567
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1568
1568
|
}
|
|
1569
1569
|
var choicePointContext = tmp$ret$2;
|
|
1570
|
-
var nextContext = choicePointContext.
|
|
1570
|
+
var nextContext = choicePointContext.b2y(this.s31_1);
|
|
1571
1571
|
var tmp_0;
|
|
1572
|
-
if (nextContext.
|
|
1572
|
+
if (nextContext.z2w_1.wo()) {
|
|
1573
1573
|
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1574
1574
|
} else {
|
|
1575
1575
|
tmp_0 = new StateRuleExecution(nextContext);
|
|
@@ -1578,71 +1578,71 @@
|
|
|
1578
1578
|
}
|
|
1579
1579
|
return tmp;
|
|
1580
1580
|
};
|
|
1581
|
-
protoOf(StateBacktracking).
|
|
1582
|
-
return this.
|
|
1581
|
+
protoOf(StateBacktracking).o31 = function (context) {
|
|
1582
|
+
return this.t31(context);
|
|
1583
1583
|
};
|
|
1584
1584
|
protoOf(StateBacktracking).clone = function (context, $super) {
|
|
1585
1585
|
return this.clone(context, ($super == null ? true : $super instanceof StateBacktracking) ? $super : THROW_CCE());
|
|
1586
1586
|
};
|
|
1587
|
-
protoOf(StateBacktracking).
|
|
1587
|
+
protoOf(StateBacktracking).t31 = function (context) {
|
|
1588
1588
|
return new StateBacktracking(context);
|
|
1589
1589
|
};
|
|
1590
1590
|
protoOf(StateBacktracking).toString = function () {
|
|
1591
|
-
return 'StateBacktracking(context=' + this.
|
|
1591
|
+
return 'StateBacktracking(context=' + this.s31_1.toString() + ')';
|
|
1592
1592
|
};
|
|
1593
1593
|
protoOf(StateBacktracking).hashCode = function () {
|
|
1594
|
-
return this.
|
|
1594
|
+
return this.s31_1.hashCode();
|
|
1595
1595
|
};
|
|
1596
1596
|
protoOf(StateBacktracking).equals = function (other) {
|
|
1597
1597
|
if (this === other)
|
|
1598
1598
|
return true;
|
|
1599
1599
|
if (!(other instanceof StateBacktracking))
|
|
1600
1600
|
return false;
|
|
1601
|
-
if (!this.
|
|
1601
|
+
if (!this.s31_1.equals(other.s31_1))
|
|
1602
1602
|
return false;
|
|
1603
1603
|
return true;
|
|
1604
1604
|
};
|
|
1605
1605
|
function StateEnd(solution, context) {
|
|
1606
1606
|
AbstractEndState.call(this, solution, context);
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1607
|
+
this.y31_1 = solution;
|
|
1608
|
+
this.z31_1 = context;
|
|
1609
1609
|
}
|
|
1610
|
-
protoOf(StateEnd).
|
|
1611
|
-
return this.
|
|
1610
|
+
protoOf(StateEnd).r2g = function () {
|
|
1611
|
+
return this.y31_1;
|
|
1612
1612
|
};
|
|
1613
|
-
protoOf(StateEnd).
|
|
1614
|
-
return this.
|
|
1613
|
+
protoOf(StateEnd).n8 = function () {
|
|
1614
|
+
return this.z31_1;
|
|
1615
1615
|
};
|
|
1616
|
-
protoOf(StateEnd).
|
|
1616
|
+
protoOf(StateEnd).j31 = function () {
|
|
1617
1617
|
return false;
|
|
1618
1618
|
};
|
|
1619
|
-
protoOf(StateEnd).
|
|
1619
|
+
protoOf(StateEnd).f31 = function () {
|
|
1620
1620
|
var tmp;
|
|
1621
|
-
if (this.
|
|
1622
|
-
var tmp0_$this = this.
|
|
1623
|
-
var tmp1_step = this.
|
|
1624
|
-
var tmp2_startTime = this.
|
|
1625
|
-
tmp = new StateBacktracking(tmp0_$this.
|
|
1621
|
+
if (this.z31_1.j2y()) {
|
|
1622
|
+
var tmp0_$this = this.z31_1;
|
|
1623
|
+
var tmp1_step = this.l31();
|
|
1624
|
+
var tmp2_startTime = this.k31();
|
|
1625
|
+
tmp = new StateBacktracking(tmp0_$this.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1626
1626
|
} else {
|
|
1627
|
-
tmp = protoOf(AbstractEndState).
|
|
1627
|
+
tmp = protoOf(AbstractEndState).f31.call(this);
|
|
1628
1628
|
}
|
|
1629
1629
|
return tmp;
|
|
1630
1630
|
};
|
|
1631
|
-
protoOf(StateEnd).
|
|
1632
|
-
return this.
|
|
1631
|
+
protoOf(StateEnd).o31 = function (context) {
|
|
1632
|
+
return this.a32(this.y31_1, context);
|
|
1633
1633
|
};
|
|
1634
1634
|
protoOf(StateEnd).clone = function (context, $super) {
|
|
1635
1635
|
return this.clone(context, ($super == null ? true : $super instanceof StateEnd) ? $super : THROW_CCE());
|
|
1636
1636
|
};
|
|
1637
|
-
protoOf(StateEnd).
|
|
1637
|
+
protoOf(StateEnd).a32 = function (solution, context) {
|
|
1638
1638
|
return new StateEnd(solution, context);
|
|
1639
1639
|
};
|
|
1640
1640
|
protoOf(StateEnd).toString = function () {
|
|
1641
|
-
return 'StateEnd(solution=' + toString(this.
|
|
1641
|
+
return 'StateEnd(solution=' + toString(this.y31_1) + ', context=' + this.z31_1.toString() + ')';
|
|
1642
1642
|
};
|
|
1643
1643
|
protoOf(StateEnd).hashCode = function () {
|
|
1644
|
-
var result = hashCode(this.
|
|
1645
|
-
result = imul(result, 31) + this.
|
|
1644
|
+
var result = hashCode(this.y31_1);
|
|
1645
|
+
result = imul(result, 31) + this.z31_1.hashCode() | 0;
|
|
1646
1646
|
return result;
|
|
1647
1647
|
};
|
|
1648
1648
|
protoOf(StateEnd).equals = function (other) {
|
|
@@ -1650,19 +1650,19 @@
|
|
|
1650
1650
|
return true;
|
|
1651
1651
|
if (!(other instanceof StateEnd))
|
|
1652
1652
|
return false;
|
|
1653
|
-
if (!equals(this.
|
|
1653
|
+
if (!equals(this.y31_1, other.y31_1))
|
|
1654
1654
|
return false;
|
|
1655
|
-
if (!this.
|
|
1655
|
+
if (!this.z31_1.equals(other.z31_1))
|
|
1656
1656
|
return false;
|
|
1657
1657
|
return true;
|
|
1658
1658
|
};
|
|
1659
1659
|
protoOf(StateEnd).asEndState = function () {
|
|
1660
|
-
return this.
|
|
1660
|
+
return this.n31();
|
|
1661
1661
|
};
|
|
1662
1662
|
function isCatch($this, $receiver) {
|
|
1663
1663
|
var tmp;
|
|
1664
|
-
if ($receiver.
|
|
1665
|
-
var tmp_0 = $receiver.
|
|
1664
|
+
if ($receiver.et() === 3) {
|
|
1665
|
+
var tmp_0 = $receiver.kt();
|
|
1666
1666
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1667
1667
|
tmp = tmp_0 === Catch_getInstance().signature.name;
|
|
1668
1668
|
} else {
|
|
@@ -1673,9 +1673,9 @@
|
|
|
1673
1673
|
function getExceptionContent($this, $receiver) {
|
|
1674
1674
|
var tmp;
|
|
1675
1675
|
if ($receiver instanceof MessageError) {
|
|
1676
|
-
tmp = $receiver.
|
|
1676
|
+
tmp = $receiver.k25();
|
|
1677
1677
|
} else {
|
|
1678
|
-
tmp = $receiver.
|
|
1678
|
+
tmp = $receiver.m23();
|
|
1679
1679
|
}
|
|
1680
1680
|
return tmp;
|
|
1681
1681
|
}
|
|
@@ -1689,17 +1689,17 @@
|
|
|
1689
1689
|
return tmp;
|
|
1690
1690
|
}
|
|
1691
1691
|
function _get_finalState__3aigq8($this) {
|
|
1692
|
-
return new StateHalt(toPublicException($this, $this.
|
|
1692
|
+
return new StateHalt(toPublicException($this, $this.d32_1), $this.e32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
1693
1693
|
}
|
|
1694
1694
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1695
|
-
return new StateException($this.
|
|
1695
|
+
return new StateException($this.d32_1, ensureNotNull($this.e32_1.d2x_1).c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
1696
1696
|
}
|
|
1697
1697
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1698
1698
|
var tmp;
|
|
1699
1699
|
if (isCatch($this, catchGoal)) {
|
|
1700
1700
|
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent($this, error));
|
|
1701
1701
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1702
|
-
} else if ($this.
|
|
1702
|
+
} else if ($this.e32_1.z2z()) {
|
|
1703
1703
|
tmp = _get_finalState__3aigq8($this);
|
|
1704
1704
|
} else {
|
|
1705
1705
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1708,18 +1708,18 @@
|
|
|
1708
1708
|
}
|
|
1709
1709
|
function handleCatch($this, catchGoal, catcher) {
|
|
1710
1710
|
var tmp;
|
|
1711
|
-
if (catcher.
|
|
1712
|
-
var tmp_0 = $this.
|
|
1711
|
+
if (catcher.oz()) {
|
|
1712
|
+
var tmp_0 = $this.e32_1.v2w_1.plus(catcher);
|
|
1713
1713
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1714
1714
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1715
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1716
|
-
var tmp0_$this = $this.
|
|
1715
|
+
var newGoals = plus_0(toGoals(subGoals), $this.e32_1.x2w_1.uo());
|
|
1716
|
+
var tmp0_$this = $this.e32_1;
|
|
1717
1717
|
var tmp1_rules = Companion_instance_7.empty();
|
|
1718
1718
|
var tmp2_primitives = Companion_instance_7.empty();
|
|
1719
1719
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1720
|
-
var tmp4_step = $this.
|
|
1721
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
1722
|
-
} else if ($this.
|
|
1720
|
+
var tmp4_step = $this.l31();
|
|
1721
|
+
tmp = new StateGoalSelection(tmp0_$this.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_substitution, VOID, newGoals, tmp1_rules, tmp2_primitives, VOID, VOID, VOID, VOID, VOID, tmp4_step));
|
|
1722
|
+
} else if ($this.e32_1.z2z()) {
|
|
1723
1723
|
tmp = _get_finalState__3aigq8($this);
|
|
1724
1724
|
} else {
|
|
1725
1725
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1729,43 +1729,43 @@
|
|
|
1729
1729
|
function StateException$handleCatch$lambda(this$0) {
|
|
1730
1730
|
return function (_destruct__k2r9zo) {
|
|
1731
1731
|
// Inline function 'kotlin.collections.component1' call
|
|
1732
|
-
var it = _destruct__k2r9zo.
|
|
1733
|
-
return this$0.
|
|
1732
|
+
var it = _destruct__k2r9zo.c2();
|
|
1733
|
+
return this$0.e32_1.a30(it);
|
|
1734
1734
|
};
|
|
1735
1735
|
}
|
|
1736
1736
|
function StateException(exception, context) {
|
|
1737
1737
|
AbstractState.call(this, context);
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1738
|
+
this.d32_1 = exception;
|
|
1739
|
+
this.e32_1 = context;
|
|
1740
1740
|
}
|
|
1741
|
-
protoOf(StateException).
|
|
1742
|
-
return this.
|
|
1741
|
+
protoOf(StateException).n8 = function () {
|
|
1742
|
+
return this.e32_1;
|
|
1743
1743
|
};
|
|
1744
|
-
protoOf(StateException).
|
|
1744
|
+
protoOf(StateException).f31 = function () {
|
|
1745
1745
|
var tmp;
|
|
1746
|
-
if (this.
|
|
1747
|
-
var catchGoal = ensureNotNull(this.
|
|
1748
|
-
tmp = catchGoal.
|
|
1746
|
+
if (this.d32_1 instanceof LogicError) {
|
|
1747
|
+
var catchGoal = ensureNotNull(this.e32_1.x2z());
|
|
1748
|
+
tmp = catchGoal.qt() ? handleStruct(this, this.e32_1.m2w_1, catchGoal.castToStruct(), this.d32_1) : this.e32_1.z2z() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1749
1749
|
} else {
|
|
1750
1750
|
tmp = _get_finalState__3aigq8(this);
|
|
1751
1751
|
}
|
|
1752
1752
|
return tmp;
|
|
1753
1753
|
};
|
|
1754
|
-
protoOf(StateException).
|
|
1755
|
-
return this.
|
|
1754
|
+
protoOf(StateException).o31 = function (context) {
|
|
1755
|
+
return this.f32(this.d32_1, context);
|
|
1756
1756
|
};
|
|
1757
1757
|
protoOf(StateException).clone = function (context, $super) {
|
|
1758
1758
|
return this.clone(context, ($super == null ? true : $super instanceof StateException) ? $super : THROW_CCE());
|
|
1759
1759
|
};
|
|
1760
|
-
protoOf(StateException).
|
|
1760
|
+
protoOf(StateException).f32 = function (exception, context) {
|
|
1761
1761
|
return new StateException(exception, context);
|
|
1762
1762
|
};
|
|
1763
1763
|
protoOf(StateException).toString = function () {
|
|
1764
|
-
return 'StateException(exception=' + this.
|
|
1764
|
+
return 'StateException(exception=' + this.d32_1.toString() + ', context=' + this.e32_1.toString() + ')';
|
|
1765
1765
|
};
|
|
1766
1766
|
protoOf(StateException).hashCode = function () {
|
|
1767
|
-
var result = hashCode(this.
|
|
1768
|
-
result = imul(result, 31) + this.
|
|
1767
|
+
var result = hashCode(this.d32_1);
|
|
1768
|
+
result = imul(result, 31) + this.e32_1.hashCode() | 0;
|
|
1769
1769
|
return result;
|
|
1770
1770
|
};
|
|
1771
1771
|
protoOf(StateException).equals = function (other) {
|
|
@@ -1773,107 +1773,107 @@
|
|
|
1773
1773
|
return true;
|
|
1774
1774
|
if (!(other instanceof StateException))
|
|
1775
1775
|
return false;
|
|
1776
|
-
if (!equals(this.
|
|
1776
|
+
if (!equals(this.d32_1, other.d32_1))
|
|
1777
1777
|
return false;
|
|
1778
|
-
if (!this.
|
|
1778
|
+
if (!this.e32_1.equals(other.e32_1))
|
|
1779
1779
|
return false;
|
|
1780
1780
|
return true;
|
|
1781
1781
|
};
|
|
1782
1782
|
function StateGoalSelection$computeNext$lambda(this$0) {
|
|
1783
1783
|
return function (_destruct__k2r9zo) {
|
|
1784
1784
|
// Inline function 'kotlin.collections.component1' call
|
|
1785
|
-
var it = _destruct__k2r9zo.
|
|
1786
|
-
return this$0.
|
|
1785
|
+
var it = _destruct__k2r9zo.c2();
|
|
1786
|
+
return this$0.i32_1.a30(it);
|
|
1787
1787
|
};
|
|
1788
1788
|
}
|
|
1789
1789
|
function StateGoalSelection(context) {
|
|
1790
1790
|
AbstractState.call(this, context);
|
|
1791
|
-
this.
|
|
1791
|
+
this.i32_1 = context;
|
|
1792
1792
|
}
|
|
1793
|
-
protoOf(StateGoalSelection).
|
|
1794
|
-
return this.
|
|
1793
|
+
protoOf(StateGoalSelection).n8 = function () {
|
|
1794
|
+
return this.i32_1;
|
|
1795
1795
|
};
|
|
1796
|
-
protoOf(StateGoalSelection).
|
|
1796
|
+
protoOf(StateGoalSelection).f31 = function () {
|
|
1797
1797
|
var tmp;
|
|
1798
|
-
if (this.
|
|
1798
|
+
if (this.i32_1.x2w_1.xo()) {
|
|
1799
1799
|
var tmp_0;
|
|
1800
|
-
if (this.
|
|
1801
|
-
tmp_0 = new StateEnd(Companion_instance_8.
|
|
1800
|
+
if (this.i32_1.z2z()) {
|
|
1801
|
+
tmp_0 = new StateEnd(Companion_instance_8.n1v(this.i32_1.w2w_1, this.i32_1.v2w_1), this.i32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31()));
|
|
1802
1802
|
} else {
|
|
1803
1803
|
// Inline function 'kotlin.let' call
|
|
1804
|
-
var it = ensureNotNull(this.
|
|
1805
|
-
var tmp0_choicePoints = this.
|
|
1806
|
-
var tmp1_flags = this.
|
|
1807
|
-
var tmp2_dynamicKb = this.
|
|
1808
|
-
var tmp3_staticKb = this.
|
|
1809
|
-
var tmp4_substitution = this.
|
|
1810
|
-
var tmp5_goals = it.
|
|
1811
|
-
var tmp6_procedure = it.
|
|
1812
|
-
var tmp7_step = this.
|
|
1813
|
-
var tmp8_startTime = this.
|
|
1814
|
-
var tmp9_operators = this.
|
|
1815
|
-
var tmp10_inputChannels = this.
|
|
1816
|
-
var tmp11_outputChannels = this.
|
|
1817
|
-
var tmp12_libraries = this.
|
|
1818
|
-
var tmp13_customData = this.
|
|
1819
|
-
var tmp$ret$0 = it.
|
|
1804
|
+
var it = ensureNotNull(this.i32_1.d2x_1);
|
|
1805
|
+
var tmp0_choicePoints = this.i32_1.c2x_1;
|
|
1806
|
+
var tmp1_flags = this.i32_1.o2w_1;
|
|
1807
|
+
var tmp2_dynamicKb = this.i32_1.q2w_1;
|
|
1808
|
+
var tmp3_staticKb = this.i32_1.p2w_1;
|
|
1809
|
+
var tmp4_substitution = this.i32_1.v2w_1.iz(StateGoalSelection$computeNext$lambda(this));
|
|
1810
|
+
var tmp5_goals = it.x2w_1.uo();
|
|
1811
|
+
var tmp6_procedure = it.l2w_1;
|
|
1812
|
+
var tmp7_step = this.l31();
|
|
1813
|
+
var tmp8_startTime = this.i32_1.a2x_1;
|
|
1814
|
+
var tmp9_operators = this.i32_1.r2w_1;
|
|
1815
|
+
var tmp10_inputChannels = this.i32_1.s2w_1;
|
|
1816
|
+
var tmp11_outputChannels = this.i32_1.t2w_1;
|
|
1817
|
+
var tmp12_libraries = this.i32_1.n2w_1;
|
|
1818
|
+
var tmp13_customData = this.i32_1.u2w_1;
|
|
1819
|
+
var tmp$ret$0 = it.c2y(tmp6_procedure, VOID, tmp12_libraries, tmp1_flags, tmp3_staticKb, tmp2_dynamicKb, tmp9_operators, tmp10_inputChannels, tmp11_outputChannels, tmp13_customData, tmp4_substitution, VOID, tmp5_goals, VOID, VOID, tmp8_startTime, VOID, tmp0_choicePoints, VOID, VOID, tmp7_step);
|
|
1820
1820
|
tmp_0 = new StateGoalSelection(tmp$ret$0);
|
|
1821
1821
|
}
|
|
1822
1822
|
tmp = tmp_0;
|
|
1823
|
-
} else if (equals(this.
|
|
1824
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1823
|
+
} else if (equals(this.i32_1.o2w_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().r27_1)) {
|
|
1824
|
+
tmp = new StatePrimitiveSelection(this.i32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31(), plus_1(this.i32_1.g2x_1, toSet(ensureNotNull(this.i32_1.x2w_1.vo()).mt()))));
|
|
1825
1825
|
} else {
|
|
1826
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1826
|
+
tmp = new StatePrimitiveSelection(this.i32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31()));
|
|
1827
1827
|
}
|
|
1828
1828
|
return tmp;
|
|
1829
1829
|
};
|
|
1830
|
-
protoOf(StateGoalSelection).
|
|
1831
|
-
return this.
|
|
1830
|
+
protoOf(StateGoalSelection).o31 = function (context) {
|
|
1831
|
+
return this.t31(context);
|
|
1832
1832
|
};
|
|
1833
1833
|
protoOf(StateGoalSelection).clone = function (context, $super) {
|
|
1834
1834
|
return this.clone(context, ($super == null ? true : $super instanceof StateGoalSelection) ? $super : THROW_CCE());
|
|
1835
1835
|
};
|
|
1836
|
-
protoOf(StateGoalSelection).
|
|
1836
|
+
protoOf(StateGoalSelection).t31 = function (context) {
|
|
1837
1837
|
return new StateGoalSelection(context);
|
|
1838
1838
|
};
|
|
1839
1839
|
protoOf(StateGoalSelection).toString = function () {
|
|
1840
|
-
return 'StateGoalSelection(context=' + this.
|
|
1840
|
+
return 'StateGoalSelection(context=' + this.i32_1.toString() + ')';
|
|
1841
1841
|
};
|
|
1842
1842
|
protoOf(StateGoalSelection).hashCode = function () {
|
|
1843
|
-
return this.
|
|
1843
|
+
return this.i32_1.hashCode();
|
|
1844
1844
|
};
|
|
1845
1845
|
protoOf(StateGoalSelection).equals = function (other) {
|
|
1846
1846
|
if (this === other)
|
|
1847
1847
|
return true;
|
|
1848
1848
|
if (!(other instanceof StateGoalSelection))
|
|
1849
1849
|
return false;
|
|
1850
|
-
if (!this.
|
|
1850
|
+
if (!this.i32_1.equals(other.i32_1))
|
|
1851
1851
|
return false;
|
|
1852
1852
|
return true;
|
|
1853
1853
|
};
|
|
1854
1854
|
function StateHalt(exception, context) {
|
|
1855
|
-
AbstractEndState.call(this, Companion_instance_8.halt(context.
|
|
1856
|
-
this.
|
|
1857
|
-
this.
|
|
1855
|
+
AbstractEndState.call(this, Companion_instance_8.halt(context.w2w_1, exception), context);
|
|
1856
|
+
this.n32_1 = exception;
|
|
1857
|
+
this.o32_1 = context;
|
|
1858
1858
|
}
|
|
1859
|
-
protoOf(StateHalt).
|
|
1860
|
-
return this.
|
|
1859
|
+
protoOf(StateHalt).n8 = function () {
|
|
1860
|
+
return this.o32_1;
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(StateHalt).
|
|
1863
|
-
return this.
|
|
1862
|
+
protoOf(StateHalt).o31 = function (context) {
|
|
1863
|
+
return this.f32(this.n32_1, context);
|
|
1864
1864
|
};
|
|
1865
1865
|
protoOf(StateHalt).clone = function (context, $super) {
|
|
1866
1866
|
return this.clone(context, ($super == null ? true : $super instanceof StateHalt) ? $super : THROW_CCE());
|
|
1867
1867
|
};
|
|
1868
|
-
protoOf(StateHalt).
|
|
1868
|
+
protoOf(StateHalt).f32 = function (exception, context) {
|
|
1869
1869
|
return new StateHalt(exception, context);
|
|
1870
1870
|
};
|
|
1871
1871
|
protoOf(StateHalt).toString = function () {
|
|
1872
|
-
return 'StateHalt(exception=' + this.
|
|
1872
|
+
return 'StateHalt(exception=' + this.n32_1.toString() + ', context=' + this.o32_1.toString() + ')';
|
|
1873
1873
|
};
|
|
1874
1874
|
protoOf(StateHalt).hashCode = function () {
|
|
1875
|
-
var result = hashCode(this.
|
|
1876
|
-
result = imul(result, 31) + this.
|
|
1875
|
+
var result = hashCode(this.n32_1);
|
|
1876
|
+
result = imul(result, 31) + this.o32_1.hashCode() | 0;
|
|
1877
1877
|
return result;
|
|
1878
1878
|
};
|
|
1879
1879
|
protoOf(StateHalt).equals = function (other) {
|
|
@@ -1881,53 +1881,53 @@
|
|
|
1881
1881
|
return true;
|
|
1882
1882
|
if (!(other instanceof StateHalt))
|
|
1883
1883
|
return false;
|
|
1884
|
-
if (!equals(this.
|
|
1884
|
+
if (!equals(this.n32_1, other.n32_1))
|
|
1885
1885
|
return false;
|
|
1886
|
-
if (!this.
|
|
1886
|
+
if (!this.o32_1.equals(other.o32_1))
|
|
1887
1887
|
return false;
|
|
1888
1888
|
return true;
|
|
1889
1889
|
};
|
|
1890
1890
|
protoOf(StateHalt).asEndState = function () {
|
|
1891
|
-
return this.
|
|
1891
|
+
return this.n31();
|
|
1892
1892
|
};
|
|
1893
1893
|
function StateInit(context) {
|
|
1894
1894
|
AbstractState.call(this, context);
|
|
1895
|
-
this.
|
|
1895
|
+
this.r32_1 = context;
|
|
1896
1896
|
}
|
|
1897
|
-
protoOf(StateInit).
|
|
1898
|
-
return this.
|
|
1897
|
+
protoOf(StateInit).n8 = function () {
|
|
1898
|
+
return this.r32_1;
|
|
1899
1899
|
};
|
|
1900
|
-
protoOf(StateInit).
|
|
1901
|
-
var tmp0_$this = this.
|
|
1902
|
-
var tmp1_goals = toGoals(this.
|
|
1900
|
+
protoOf(StateInit).f31 = function () {
|
|
1901
|
+
var tmp0_$this = this.r32_1;
|
|
1902
|
+
var tmp1_goals = toGoals(this.r32_1.w2w_1);
|
|
1903
1903
|
var tmp2_rules = Companion_instance_7.empty();
|
|
1904
1904
|
var tmp3_primitives = Companion_instance_7.empty();
|
|
1905
1905
|
var tmp4_substitution = Companion_getInstance_2().empty();
|
|
1906
|
-
var tmp5_customData = this.
|
|
1906
|
+
var tmp5_customData = this.r32_1.u2w_1.preservePersistent();
|
|
1907
1907
|
var tmp6_relevantVariables = emptySet();
|
|
1908
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.
|
|
1908
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_customData, tmp4_substitution, VOID, tmp1_goals, tmp2_rules, tmp3_primitives, VOID, VOID, null, null, 0, new Long(1, 0), tmp6_relevantVariables), Companion_instance_7.empty()));
|
|
1909
1909
|
};
|
|
1910
|
-
protoOf(StateInit).
|
|
1911
|
-
return this.
|
|
1910
|
+
protoOf(StateInit).o31 = function (context) {
|
|
1911
|
+
return this.t31(context);
|
|
1912
1912
|
};
|
|
1913
1913
|
protoOf(StateInit).clone = function (context, $super) {
|
|
1914
1914
|
return this.clone(context, ($super == null ? true : $super instanceof StateInit) ? $super : THROW_CCE());
|
|
1915
1915
|
};
|
|
1916
|
-
protoOf(StateInit).
|
|
1916
|
+
protoOf(StateInit).t31 = function (context) {
|
|
1917
1917
|
return new StateInit(context);
|
|
1918
1918
|
};
|
|
1919
1919
|
protoOf(StateInit).toString = function () {
|
|
1920
|
-
return 'StateInit(context=' + this.
|
|
1920
|
+
return 'StateInit(context=' + this.r32_1.toString() + ')';
|
|
1921
1921
|
};
|
|
1922
1922
|
protoOf(StateInit).hashCode = function () {
|
|
1923
|
-
return this.
|
|
1923
|
+
return this.r32_1.hashCode();
|
|
1924
1924
|
};
|
|
1925
1925
|
protoOf(StateInit).equals = function (other) {
|
|
1926
1926
|
if (this === other)
|
|
1927
1927
|
return true;
|
|
1928
1928
|
if (!(other instanceof StateInit))
|
|
1929
1929
|
return false;
|
|
1930
|
-
if (!this.
|
|
1930
|
+
if (!this.r32_1.equals(other.r32_1))
|
|
1931
1931
|
return false;
|
|
1932
1932
|
return true;
|
|
1933
1933
|
};
|
|
@@ -1935,41 +1935,41 @@
|
|
|
1935
1935
|
goals = goals === VOID ? null : goals;
|
|
1936
1936
|
procedureFromAncestor = procedureFromAncestor === VOID ? 0 : procedureFromAncestor;
|
|
1937
1937
|
substitution = substitution === VOID ? null : substitution;
|
|
1938
|
-
var tmp0_safe_receiver = $receiver.
|
|
1938
|
+
var tmp0_safe_receiver = $receiver.z2w_1.vo();
|
|
1939
1939
|
var tmp;
|
|
1940
1940
|
if (tmp0_safe_receiver == null) {
|
|
1941
1941
|
tmp = null;
|
|
1942
1942
|
} else {
|
|
1943
1943
|
// Inline function 'kotlin.let' call
|
|
1944
|
-
tmp = $receiver.
|
|
1944
|
+
tmp = $receiver.c30(tmp0_safe_receiver.sideEffects);
|
|
1945
1945
|
}
|
|
1946
1946
|
var tmp1_elvis_lhs = tmp;
|
|
1947
1947
|
var ctx = tmp1_elvis_lhs == null ? $receiver : tmp1_elvis_lhs;
|
|
1948
|
-
var tmp4_goals = goals == null ? $receiver.
|
|
1949
|
-
var tmp_0 = drop($receiver.
|
|
1948
|
+
var tmp4_goals = goals == null ? $receiver.x2w_1 : goals;
|
|
1949
|
+
var tmp_0 = drop($receiver.h2x_1, procedureFromAncestor);
|
|
1950
1950
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
1951
1951
|
var tmp6_primitives = Companion_instance_7.empty();
|
|
1952
|
-
var tmp_1 = substitution == null ? $receiver.
|
|
1952
|
+
var tmp_1 = substitution == null ? $receiver.v2w_1 : substitution;
|
|
1953
1953
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
1954
|
-
var tmp8_step = $this.
|
|
1955
|
-
return ctx.
|
|
1954
|
+
var tmp8_step = $this.l31();
|
|
1955
|
+
return ctx.c2y(tmp5_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp7_substitution, VOID, tmp4_goals, VOID, tmp6_primitives, VOID, VOID, VOID, VOID, VOID, tmp8_step);
|
|
1956
1956
|
}
|
|
1957
1957
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
1958
|
-
return it.
|
|
1958
|
+
return it.l2w_1;
|
|
1959
1959
|
}
|
|
1960
1960
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
1961
1961
|
return function (it) {
|
|
1962
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.
|
|
1962
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.u32_1, this$0.u32_1.x2w_1.uo(), 1, this$0.u32_1.m2w_1.mergeWithOccurCheck(this$0.u32_1.v2w_1, it.y1t(), false)));
|
|
1963
1963
|
};
|
|
1964
1964
|
}
|
|
1965
1965
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
1966
1966
|
return function (it) {
|
|
1967
|
-
return new StateBacktracking(copyFromCurrentPrimitive(this$0, ensureNotNull(this$0.
|
|
1967
|
+
return new StateBacktracking(copyFromCurrentPrimitive(this$0, ensureNotNull(this$0.u32_1.d2x_1)));
|
|
1968
1968
|
};
|
|
1969
1969
|
}
|
|
1970
1970
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
1971
1971
|
return function (it) {
|
|
1972
|
-
return new StateException(it.
|
|
1972
|
+
return new StateException(it.d1v().updateLastContext(this$0.p31(this$0.u32_1)), copyFromCurrentPrimitive(this$0, this$0.u32_1));
|
|
1973
1973
|
};
|
|
1974
1974
|
}
|
|
1975
1975
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -1977,15 +1977,15 @@
|
|
|
1977
1977
|
}
|
|
1978
1978
|
function StatePrimitiveExecution(context) {
|
|
1979
1979
|
AbstractState.call(this, context);
|
|
1980
|
-
this.
|
|
1980
|
+
this.u32_1 = context;
|
|
1981
1981
|
}
|
|
1982
|
-
protoOf(StatePrimitiveExecution).
|
|
1983
|
-
return this.
|
|
1982
|
+
protoOf(StatePrimitiveExecution).n8 = function () {
|
|
1983
|
+
return this.u32_1;
|
|
1984
1984
|
};
|
|
1985
|
-
protoOf(StatePrimitiveExecution).
|
|
1985
|
+
protoOf(StatePrimitiveExecution).f31 = function () {
|
|
1986
1986
|
var tmp;
|
|
1987
1987
|
try {
|
|
1988
|
-
var tmp0_safe_receiver = this.
|
|
1988
|
+
var tmp0_safe_receiver = this.u32_1.z2w_1.vo();
|
|
1989
1989
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
1990
1990
|
var tmp_0;
|
|
1991
1991
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1994,15 +1994,15 @@
|
|
|
1994
1994
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
1995
1995
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
1996
1996
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
1997
|
-
tmp_0 = tmp1_safe_receiver.
|
|
1997
|
+
tmp_0 = tmp1_safe_receiver.h1v(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
1998
1998
|
}
|
|
1999
1999
|
var tmp2_elvis_lhs = tmp_0;
|
|
2000
|
-
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive(this, this.
|
|
2000
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive(this, this.u32_1)) : tmp2_elvis_lhs;
|
|
2001
2001
|
} catch ($p) {
|
|
2002
2002
|
var tmp_4;
|
|
2003
2003
|
if ($p instanceof ResolutionException) {
|
|
2004
2004
|
var exception = $p;
|
|
2005
|
-
tmp_4 = new StateException(exception.updateLastContext(this.
|
|
2005
|
+
tmp_4 = new StateException(exception.updateLastContext(this.p31(this.u32_1)), this.u32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31()));
|
|
2006
2006
|
} else {
|
|
2007
2007
|
throw $p;
|
|
2008
2008
|
}
|
|
@@ -2010,57 +2010,57 @@
|
|
|
2010
2010
|
}
|
|
2011
2011
|
return tmp;
|
|
2012
2012
|
};
|
|
2013
|
-
protoOf(StatePrimitiveExecution).
|
|
2014
|
-
return this.
|
|
2013
|
+
protoOf(StatePrimitiveExecution).o31 = function (context) {
|
|
2014
|
+
return this.t31(context);
|
|
2015
2015
|
};
|
|
2016
2016
|
protoOf(StatePrimitiveExecution).clone = function (context, $super) {
|
|
2017
2017
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveExecution) ? $super : THROW_CCE());
|
|
2018
2018
|
};
|
|
2019
|
-
protoOf(StatePrimitiveExecution).
|
|
2019
|
+
protoOf(StatePrimitiveExecution).t31 = function (context) {
|
|
2020
2020
|
return new StatePrimitiveExecution(context);
|
|
2021
2021
|
};
|
|
2022
2022
|
protoOf(StatePrimitiveExecution).toString = function () {
|
|
2023
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
2023
|
+
return 'StatePrimitiveExecution(context=' + this.u32_1.toString() + ')';
|
|
2024
2024
|
};
|
|
2025
2025
|
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2026
|
-
return this.
|
|
2026
|
+
return this.u32_1.hashCode();
|
|
2027
2027
|
};
|
|
2028
2028
|
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2029
2029
|
if (this === other)
|
|
2030
2030
|
return true;
|
|
2031
2031
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2032
2032
|
return false;
|
|
2033
|
-
if (!this.
|
|
2033
|
+
if (!this.u32_1.equals(other.u32_1))
|
|
2034
2034
|
return false;
|
|
2035
2035
|
return true;
|
|
2036
2036
|
};
|
|
2037
2037
|
function exceptionalState($this, exception) {
|
|
2038
|
-
return new StateException(exception, $this.
|
|
2038
|
+
return new StateException(exception, $this.x32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
2039
2039
|
}
|
|
2040
2040
|
function StatePrimitiveSelection(context) {
|
|
2041
2041
|
AbstractState.call(this, context);
|
|
2042
|
-
this.
|
|
2042
|
+
this.x32_1 = context;
|
|
2043
2043
|
}
|
|
2044
|
-
protoOf(StatePrimitiveSelection).
|
|
2045
|
-
return this.
|
|
2044
|
+
protoOf(StatePrimitiveSelection).n8 = function () {
|
|
2045
|
+
return this.x32_1;
|
|
2046
2046
|
};
|
|
2047
|
-
protoOf(StatePrimitiveSelection).
|
|
2047
|
+
protoOf(StatePrimitiveSelection).f31 = function () {
|
|
2048
2048
|
// Inline function 'kotlin.with' call
|
|
2049
|
-
var $this$with = this.
|
|
2050
|
-
var goal = ensureNotNull($this$with.
|
|
2049
|
+
var $this$with = this.x32_1;
|
|
2050
|
+
var goal = ensureNotNull($this$with.x2z());
|
|
2051
2051
|
var tmp;
|
|
2052
|
-
if (goal.
|
|
2053
|
-
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.
|
|
2054
|
-
} else if (goal.
|
|
2052
|
+
if (goal.gu()) {
|
|
2053
|
+
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.x32_1, extractSignature(ensureNotNull(this.x32_1.l2w_1)), goal.castToVar()));
|
|
2054
|
+
} else if (goal.qt()) {
|
|
2055
2055
|
var goalStruct = goal.castToStruct();
|
|
2056
2056
|
var signature = extractSignature(goalStruct);
|
|
2057
2057
|
var tmp_0;
|
|
2058
|
-
if ($this$with.
|
|
2058
|
+
if ($this$with.n2w_1.hasPrimitive(signature)) {
|
|
2059
2059
|
var childContext = createChild($this$with);
|
|
2060
2060
|
var tmp_1;
|
|
2061
2061
|
try {
|
|
2062
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2063
|
-
var tmp0_elvis_lhs = $this$with.
|
|
2062
|
+
var request = toRequest(childContext, goalStruct, signature, this.i31());
|
|
2063
|
+
var tmp0_elvis_lhs = $this$with.n2w_1.p2c().g2(signature);
|
|
2064
2064
|
var tmp_2;
|
|
2065
2065
|
if (tmp0_elvis_lhs == null) {
|
|
2066
2066
|
// Inline function 'kotlin.error' call
|
|
@@ -2076,7 +2076,7 @@
|
|
|
2076
2076
|
var tmp_3;
|
|
2077
2077
|
if ($p instanceof ResolutionException) {
|
|
2078
2078
|
var exception = $p;
|
|
2079
|
-
tmp_3 = exceptionalState(this, exception.updateLastContext(this.
|
|
2079
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.p31(childContext)));
|
|
2080
2080
|
} else {
|
|
2081
2081
|
throw $p;
|
|
2082
2082
|
}
|
|
@@ -2084,106 +2084,106 @@
|
|
|
2084
2084
|
}
|
|
2085
2085
|
tmp_0 = tmp_1;
|
|
2086
2086
|
} else {
|
|
2087
|
-
tmp_0 = new StateRuleSelection(this.
|
|
2087
|
+
tmp_0 = new StateRuleSelection(this.x32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.l31()));
|
|
2088
2088
|
}
|
|
2089
2089
|
tmp = tmp_0;
|
|
2090
2090
|
} else {
|
|
2091
2091
|
var tmp_4 = Companion_instance_10;
|
|
2092
|
-
var tmp1_safe_receiver = this.
|
|
2092
|
+
var tmp1_safe_receiver = this.x32_1.l2w_1;
|
|
2093
2093
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2094
|
-
tmp = exceptionalState(this, tmp_4.forGoal(this.
|
|
2094
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.x32_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2095
2095
|
}
|
|
2096
2096
|
return tmp;
|
|
2097
2097
|
};
|
|
2098
|
-
protoOf(StatePrimitiveSelection).
|
|
2099
|
-
return this.
|
|
2098
|
+
protoOf(StatePrimitiveSelection).o31 = function (context) {
|
|
2099
|
+
return this.t31(context);
|
|
2100
2100
|
};
|
|
2101
2101
|
protoOf(StatePrimitiveSelection).clone = function (context, $super) {
|
|
2102
2102
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveSelection) ? $super : THROW_CCE());
|
|
2103
2103
|
};
|
|
2104
|
-
protoOf(StatePrimitiveSelection).
|
|
2104
|
+
protoOf(StatePrimitiveSelection).t31 = function (context) {
|
|
2105
2105
|
return new StatePrimitiveSelection(context);
|
|
2106
2106
|
};
|
|
2107
2107
|
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2108
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2108
|
+
return 'StatePrimitiveSelection(context=' + this.x32_1.toString() + ')';
|
|
2109
2109
|
};
|
|
2110
2110
|
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2111
|
-
return this.
|
|
2111
|
+
return this.x32_1.hashCode();
|
|
2112
2112
|
};
|
|
2113
2113
|
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2114
2114
|
if (this === other)
|
|
2115
2115
|
return true;
|
|
2116
2116
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2117
2117
|
return false;
|
|
2118
|
-
if (!this.
|
|
2118
|
+
if (!this.x32_1.equals(other.x32_1))
|
|
2119
2119
|
return false;
|
|
2120
2120
|
return true;
|
|
2121
2121
|
};
|
|
2122
2122
|
function _get_failureState__yid9tw($this) {
|
|
2123
|
-
return new StateBacktracking($this.
|
|
2123
|
+
return new StateBacktracking($this.a33_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_7.empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
2124
2124
|
}
|
|
2125
2125
|
function StateRuleExecution(context) {
|
|
2126
2126
|
AbstractState.call(this, context);
|
|
2127
|
-
this.
|
|
2127
|
+
this.a33_1 = context;
|
|
2128
2128
|
}
|
|
2129
|
-
protoOf(StateRuleExecution).
|
|
2130
|
-
return this.
|
|
2129
|
+
protoOf(StateRuleExecution).n8 = function () {
|
|
2130
|
+
return this.a33_1;
|
|
2131
2131
|
};
|
|
2132
|
-
protoOf(StateRuleExecution).
|
|
2132
|
+
protoOf(StateRuleExecution).f31 = function () {
|
|
2133
2133
|
// Inline function 'kotlin.with' call
|
|
2134
|
-
var $this$with = this.
|
|
2135
|
-
var substitution = $this$with.
|
|
2134
|
+
var $this$with = this.a33_1;
|
|
2135
|
+
var substitution = $this$with.m2w_1.mgu(ensureNotNull($this$with.x2z()), ensureNotNull($this$with.y2w_1.vo()).qv());
|
|
2136
2136
|
var tmp;
|
|
2137
|
-
if (substitution.
|
|
2138
|
-
var newSubstitution = this.
|
|
2139
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2140
|
-
var tmp0_$this = this.
|
|
2137
|
+
if (substitution.oz()) {
|
|
2138
|
+
var newSubstitution = this.a33_1.v2w_1.plus(substitution).castToUnifier();
|
|
2139
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.a33_1.y2w_1.vo()), newSubstitution).rv().getSubstituted(newSubstitution, []);
|
|
2140
|
+
var tmp0_$this = this.a33_1;
|
|
2141
2141
|
var tmp1_goals = toGoals(subGoals);
|
|
2142
2142
|
var tmp2_rules = Companion_instance_7.empty();
|
|
2143
|
-
var tmp3_step = this.
|
|
2144
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
2143
|
+
var tmp3_step = this.l31();
|
|
2144
|
+
tmp = new StateGoalSelection(tmp0_$this.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
|
|
2145
2145
|
} else {
|
|
2146
2146
|
tmp = _get_failureState__yid9tw(this);
|
|
2147
2147
|
}
|
|
2148
2148
|
return tmp;
|
|
2149
2149
|
};
|
|
2150
|
-
protoOf(StateRuleExecution).
|
|
2151
|
-
return this.
|
|
2150
|
+
protoOf(StateRuleExecution).o31 = function (context) {
|
|
2151
|
+
return this.t31(context);
|
|
2152
2152
|
};
|
|
2153
2153
|
protoOf(StateRuleExecution).clone = function (context, $super) {
|
|
2154
2154
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleExecution) ? $super : THROW_CCE());
|
|
2155
2155
|
};
|
|
2156
|
-
protoOf(StateRuleExecution).
|
|
2156
|
+
protoOf(StateRuleExecution).t31 = function (context) {
|
|
2157
2157
|
return new StateRuleExecution(context);
|
|
2158
2158
|
};
|
|
2159
2159
|
protoOf(StateRuleExecution).toString = function () {
|
|
2160
|
-
return 'StateRuleExecution(context=' + this.
|
|
2160
|
+
return 'StateRuleExecution(context=' + this.a33_1.toString() + ')';
|
|
2161
2161
|
};
|
|
2162
2162
|
protoOf(StateRuleExecution).hashCode = function () {
|
|
2163
|
-
return this.
|
|
2163
|
+
return this.a33_1.hashCode();
|
|
2164
2164
|
};
|
|
2165
2165
|
protoOf(StateRuleExecution).equals = function (other) {
|
|
2166
2166
|
if (this === other)
|
|
2167
2167
|
return true;
|
|
2168
2168
|
if (!(other instanceof StateRuleExecution))
|
|
2169
2169
|
return false;
|
|
2170
|
-
if (!this.
|
|
2170
|
+
if (!this.a33_1.equals(other.a33_1))
|
|
2171
2171
|
return false;
|
|
2172
2172
|
return true;
|
|
2173
2173
|
};
|
|
2174
2174
|
function None() {
|
|
2175
2175
|
None_instance = this;
|
|
2176
2176
|
CutLimit.call(this);
|
|
2177
|
-
this.
|
|
2178
|
-
this.
|
|
2177
|
+
this.b33_1 = -1;
|
|
2178
|
+
this.c33_1 = null;
|
|
2179
2179
|
}
|
|
2180
|
-
protoOf(None).
|
|
2181
|
-
return this.
|
|
2180
|
+
protoOf(None).d33 = function () {
|
|
2181
|
+
return this.b33_1;
|
|
2182
2182
|
};
|
|
2183
|
-
protoOf(None).
|
|
2184
|
-
return this.
|
|
2183
|
+
protoOf(None).x1t = function () {
|
|
2184
|
+
return this.c33_1;
|
|
2185
2185
|
};
|
|
2186
|
-
protoOf(None).
|
|
2186
|
+
protoOf(None).e33 = function () {
|
|
2187
2187
|
return true;
|
|
2188
2188
|
};
|
|
2189
2189
|
var None_instance;
|
|
@@ -2194,24 +2194,24 @@
|
|
|
2194
2194
|
}
|
|
2195
2195
|
function Actual(depthToCut, procedure) {
|
|
2196
2196
|
CutLimit.call(this);
|
|
2197
|
-
this.
|
|
2198
|
-
this.
|
|
2197
|
+
this.f33_1 = depthToCut;
|
|
2198
|
+
this.g33_1 = procedure;
|
|
2199
2199
|
}
|
|
2200
|
-
protoOf(Actual).
|
|
2201
|
-
return this.
|
|
2200
|
+
protoOf(Actual).d33 = function () {
|
|
2201
|
+
return this.f33_1;
|
|
2202
2202
|
};
|
|
2203
|
-
protoOf(Actual).
|
|
2204
|
-
return this.
|
|
2203
|
+
protoOf(Actual).x1t = function () {
|
|
2204
|
+
return this.g33_1;
|
|
2205
2205
|
};
|
|
2206
2206
|
function CutLimit() {
|
|
2207
2207
|
}
|
|
2208
|
-
protoOf(CutLimit).
|
|
2208
|
+
protoOf(CutLimit).e33 = function () {
|
|
2209
2209
|
return false;
|
|
2210
2210
|
};
|
|
2211
2211
|
function Companion_0() {
|
|
2212
2212
|
Companion_instance_16 = this;
|
|
2213
|
-
this.
|
|
2214
|
-
this.
|
|
2213
|
+
this.h33_1 = Catch_getInstance().signature;
|
|
2214
|
+
this.i33_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2215
2215
|
}
|
|
2216
2216
|
var Companion_instance_16;
|
|
2217
2217
|
function Companion_getInstance_6() {
|
|
@@ -2220,15 +2220,15 @@
|
|
|
2220
2220
|
return Companion_instance_16;
|
|
2221
2221
|
}
|
|
2222
2222
|
function _get_failureState__yid9tw_0($this) {
|
|
2223
|
-
return new StateBacktracking($this.
|
|
2223
|
+
return new StateBacktracking($this.l33_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
2224
2224
|
}
|
|
2225
2225
|
function exceptionalState_0($this, exception) {
|
|
2226
|
-
return new StateException(exception, $this.
|
|
2226
|
+
return new StateException(exception, $this.l33_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
2227
2227
|
}
|
|
2228
2228
|
function missingProcedure($this, ruleSources, missing) {
|
|
2229
|
-
var unknown = $this.
|
|
2229
|
+
var unknown = $this.l33_1.o2w_1.get(Unknown_getInstance());
|
|
2230
2230
|
var tmp;
|
|
2231
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2231
|
+
if (equals(unknown, Unknown_getInstance().x27_1)) {
|
|
2232
2232
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2233
2233
|
} else {
|
|
2234
2234
|
var tmp_0;
|
|
@@ -2247,12 +2247,12 @@
|
|
|
2247
2247
|
}
|
|
2248
2248
|
if (tmp$ret$0) {
|
|
2249
2249
|
var tmp_1;
|
|
2250
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2251
|
-
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.
|
|
2252
|
-
} else if (equals(unknown, Unknown_getInstance().
|
|
2250
|
+
if (equals(unknown, Unknown_getInstance().v27_1)) {
|
|
2251
|
+
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.l33_1, missing));
|
|
2252
|
+
} else if (equals(unknown, Unknown_getInstance().w27_1)) {
|
|
2253
2253
|
// Inline function 'kotlin.also' call
|
|
2254
2254
|
var this_0 = _get_failureState__yid9tw_0($this);
|
|
2255
|
-
$this.
|
|
2255
|
+
$this.l33_1.p1u().write(MissingPredicate_init_$Create$($this.l33_1, missing));
|
|
2256
2256
|
tmp_1 = this_0;
|
|
2257
2257
|
} else {
|
|
2258
2258
|
tmp_1 = _get_failureState__yid9tw_0($this);
|
|
@@ -2266,26 +2266,26 @@
|
|
|
2266
2266
|
return tmp;
|
|
2267
2267
|
}
|
|
2268
2268
|
function _get_ignoreState__t4wl8y($this) {
|
|
2269
|
-
return new StateGoalSelection($this.
|
|
2269
|
+
return new StateGoalSelection($this.l33_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l33_1.x2w_1.uo(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.l31()));
|
|
2270
2270
|
}
|
|
2271
2271
|
function isCut($this, $receiver) {
|
|
2272
|
-
return $receiver.
|
|
2272
|
+
return $receiver.ft() && $receiver.castToAtom().d2() === '!';
|
|
2273
2273
|
}
|
|
2274
2274
|
function computeCutLimit($this, $receiver, magicCut) {
|
|
2275
2275
|
magicCut = magicCut === VOID ? false : magicCut;
|
|
2276
2276
|
var tmp;
|
|
2277
2277
|
if (magicCut) {
|
|
2278
|
-
tmp = firstOrNull($receiver.
|
|
2278
|
+
tmp = firstOrNull($receiver.h2x_1);
|
|
2279
2279
|
} else {
|
|
2280
|
-
var tmp0 = $receiver.
|
|
2280
|
+
var tmp0 = $receiver.h2x_1;
|
|
2281
2281
|
var tmp$ret$0;
|
|
2282
2282
|
$l$block: {
|
|
2283
2283
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2284
2284
|
var _iterator__ex2g4s = tmp0.m();
|
|
2285
2285
|
while (_iterator__ex2g4s.p()) {
|
|
2286
2286
|
var element = _iterator__ex2g4s.q();
|
|
2287
|
-
var tmp_0 = Companion_getInstance_6().
|
|
2288
|
-
var tmp0_safe_receiver = element.
|
|
2287
|
+
var tmp_0 = Companion_getInstance_6().i33_1;
|
|
2288
|
+
var tmp0_safe_receiver = element.l2w_1;
|
|
2289
2289
|
if (!contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver))) {
|
|
2290
2290
|
tmp$ret$0 = element;
|
|
2291
2291
|
break $l$block;
|
|
@@ -2300,21 +2300,21 @@
|
|
|
2300
2300
|
if (cutLimit == null) {
|
|
2301
2301
|
tmp_1 = None_getInstance();
|
|
2302
2302
|
} else {
|
|
2303
|
-
tmp_1 = new Actual(cutLimit.
|
|
2303
|
+
tmp_1 = new Actual(cutLimit.e2x_1, cutLimit.l2w_1);
|
|
2304
2304
|
}
|
|
2305
2305
|
return tmp_1;
|
|
2306
2306
|
}
|
|
2307
2307
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2308
|
-
return cutLimit.
|
|
2308
|
+
return cutLimit.e33() || cutLimit.d33() > executionContext.e2x_1 || (cutLimit.d33() === executionContext.e2x_1 && !equals(cutLimit.x1t(), executionContext.l2w_1));
|
|
2309
2309
|
}
|
|
2310
2310
|
function performCut($this, $receiver, cutLimit) {
|
|
2311
2311
|
var tmp;
|
|
2312
2312
|
if ($receiver === null) {
|
|
2313
2313
|
tmp = null;
|
|
2314
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull($receiver.
|
|
2314
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull($receiver.x2x()))) {
|
|
2315
2315
|
tmp = $receiver;
|
|
2316
2316
|
} else {
|
|
2317
|
-
var tmp_0 = $receiver.
|
|
2317
|
+
var tmp_0 = $receiver.k2y();
|
|
2318
2318
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2319
2319
|
var tmp_1;
|
|
2320
2320
|
if (any(cutCandidates)) {
|
|
@@ -2324,7 +2324,7 @@
|
|
|
2324
2324
|
var _iterator__ex2g4s = cutCandidates.m();
|
|
2325
2325
|
while (_iterator__ex2g4s.p()) {
|
|
2326
2326
|
var element = _iterator__ex2g4s.q();
|
|
2327
|
-
if (ensureNotNull(element.
|
|
2327
|
+
if (ensureNotNull(element.x2x()).e2x_1 <= cutLimit.d33()) {
|
|
2328
2328
|
tmp$ret$0 = element;
|
|
2329
2329
|
break $l$block;
|
|
2330
2330
|
}
|
|
@@ -2332,7 +2332,7 @@
|
|
|
2332
2332
|
tmp$ret$0 = null;
|
|
2333
2333
|
}
|
|
2334
2334
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2335
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2335
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2x();
|
|
2336
2336
|
} else {
|
|
2337
2337
|
tmp_1 = $receiver;
|
|
2338
2338
|
}
|
|
@@ -2342,9 +2342,9 @@
|
|
|
2342
2342
|
}
|
|
2343
2343
|
function _get_isTailRecursive__h5eso7($this, $receiver) {
|
|
2344
2344
|
var tmp;
|
|
2345
|
-
if ($receiver.
|
|
2345
|
+
if ($receiver.x2w_1.uo().xo() && equals($receiver.o2w_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().k27_1)) {
|
|
2346
2346
|
// Inline function 'kotlin.let' call
|
|
2347
|
-
var tmp0_safe_receiver = ensureNotNull($receiver.
|
|
2347
|
+
var tmp0_safe_receiver = ensureNotNull($receiver.x2z()).asStruct();
|
|
2348
2348
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver);
|
|
2349
2349
|
var tmp_0;
|
|
2350
2350
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2352,9 +2352,9 @@
|
|
|
2352
2352
|
} else {
|
|
2353
2353
|
// Inline function 'kotlin.let' call
|
|
2354
2354
|
var tmp_1;
|
|
2355
|
-
var tmp0_safe_receiver_0 = $receiver.
|
|
2355
|
+
var tmp0_safe_receiver_0 = $receiver.l2w_1;
|
|
2356
2356
|
if (tmp1_safe_receiver.equals(tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
|
|
2357
|
-
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().
|
|
2357
|
+
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().h33_1);
|
|
2358
2358
|
} else {
|
|
2359
2359
|
tmp_1 = false;
|
|
2360
2360
|
}
|
|
@@ -2372,7 +2372,7 @@
|
|
|
2372
2372
|
// Inline function 'kotlin.let' call
|
|
2373
2373
|
var it = ensureRules(map(tmp, StateRuleSelection$selectClauses$lambda));
|
|
2374
2374
|
var tmp_0;
|
|
2375
|
-
if ($receiver.
|
|
2375
|
+
if ($receiver.v1r()) {
|
|
2376
2376
|
tmp_0 = buffered(it);
|
|
2377
2377
|
} else {
|
|
2378
2378
|
tmp_0 = it;
|
|
@@ -2381,7 +2381,7 @@
|
|
|
2381
2381
|
}
|
|
2382
2382
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2383
2383
|
return function (it) {
|
|
2384
|
-
return equals(ensureNotNull(it.
|
|
2384
|
+
return equals(ensureNotNull(it.x2x()).l2w_1, $cutLimit.x1t());
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
2387
2387
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
@@ -2390,30 +2390,30 @@
|
|
|
2390
2390
|
};
|
|
2391
2391
|
}
|
|
2392
2392
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2393
|
-
return it.
|
|
2393
|
+
return it.nt();
|
|
2394
2394
|
}
|
|
2395
2395
|
function StateRuleSelection(context) {
|
|
2396
2396
|
Companion_getInstance_6();
|
|
2397
2397
|
AbstractState.call(this, context);
|
|
2398
|
-
this.
|
|
2398
|
+
this.l33_1 = context;
|
|
2399
2399
|
}
|
|
2400
|
-
protoOf(StateRuleSelection).
|
|
2401
|
-
return this.
|
|
2400
|
+
protoOf(StateRuleSelection).n8 = function () {
|
|
2401
|
+
return this.l33_1;
|
|
2402
2402
|
};
|
|
2403
|
-
protoOf(StateRuleSelection).
|
|
2404
|
-
var currentGoal = ensureNotNull(this.
|
|
2403
|
+
protoOf(StateRuleSelection).f31 = function () {
|
|
2404
|
+
var currentGoal = ensureNotNull(this.l33_1.x2z());
|
|
2405
2405
|
var tmp;
|
|
2406
|
-
if (currentGoal.
|
|
2407
|
-
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.
|
|
2408
|
-
} else if (currentGoal.
|
|
2406
|
+
if (currentGoal.gu()) {
|
|
2407
|
+
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.l33_1, extractSignature(ensureNotNull(this.l33_1.l2w_1)), currentGoal.castToVar()));
|
|
2408
|
+
} else if (currentGoal.qt()) {
|
|
2409
2409
|
// Inline function 'kotlin.with' call
|
|
2410
|
-
var $this$with = this.
|
|
2410
|
+
var $this$with = this.l33_1;
|
|
2411
2411
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2412
|
-
var ruleSources = sequenceOf([$this$with.
|
|
2412
|
+
var ruleSources = sequenceOf([$this$with.n2w_1.asTheory($this$with.m2w_1), $this$with.p2w_1, $this$with.q2w_1]);
|
|
2413
2413
|
var tmp_0;
|
|
2414
|
-
if (currentGoalStruct.
|
|
2414
|
+
if (currentGoalStruct.hu()) {
|
|
2415
2415
|
var tmp_1;
|
|
2416
|
-
if (currentGoalStruct.
|
|
2416
|
+
if (currentGoalStruct.it()) {
|
|
2417
2417
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2418
2418
|
} else {
|
|
2419
2419
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
@@ -2424,7 +2424,7 @@
|
|
|
2424
2424
|
var cutLimit = computeCutLimit(this, $this$with, currentGoalStruct instanceof MagicCut);
|
|
2425
2425
|
// Inline function 'kotlin.let' call
|
|
2426
2426
|
var it = _get_ignoreState__t4wl8y(this);
|
|
2427
|
-
tmp_0 = it.
|
|
2427
|
+
tmp_0 = it.t31(it.i32_1.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(this, it.i32_1.c2x_1, cutLimit)));
|
|
2428
2428
|
} else {
|
|
2429
2429
|
var tmp$ret$4;
|
|
2430
2430
|
$l$block: {
|
|
@@ -2442,10 +2442,10 @@
|
|
|
2442
2442
|
if (tmp$ret$4) {
|
|
2443
2443
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2444
2444
|
var tmp_2;
|
|
2445
|
-
if (_get_isTailRecursive__h5eso7(this, this.
|
|
2446
|
-
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.
|
|
2445
|
+
if (_get_isTailRecursive__h5eso7(this, this.l33_1)) {
|
|
2446
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.l33_1, rules));
|
|
2447
2447
|
} else {
|
|
2448
|
-
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.
|
|
2448
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.l33_1, rules));
|
|
2449
2449
|
}
|
|
2450
2450
|
tmp_0 = tmp_2;
|
|
2451
2451
|
} else {
|
|
@@ -2455,43 +2455,43 @@
|
|
|
2455
2455
|
}
|
|
2456
2456
|
tmp = tmp_0;
|
|
2457
2457
|
} else {
|
|
2458
|
-
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.
|
|
2458
|
+
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.l33_1, extractSignature(ensureNotNull(this.l33_1.l2w_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2459
2459
|
}
|
|
2460
2460
|
return tmp;
|
|
2461
2461
|
};
|
|
2462
|
-
protoOf(StateRuleSelection).
|
|
2463
|
-
return this.
|
|
2462
|
+
protoOf(StateRuleSelection).o31 = function (context) {
|
|
2463
|
+
return this.t31(context);
|
|
2464
2464
|
};
|
|
2465
2465
|
protoOf(StateRuleSelection).clone = function (context, $super) {
|
|
2466
2466
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleSelection) ? $super : THROW_CCE());
|
|
2467
2467
|
};
|
|
2468
|
-
protoOf(StateRuleSelection).
|
|
2468
|
+
protoOf(StateRuleSelection).t31 = function (context) {
|
|
2469
2469
|
return new StateRuleSelection(context);
|
|
2470
2470
|
};
|
|
2471
2471
|
protoOf(StateRuleSelection).toString = function () {
|
|
2472
|
-
return 'StateRuleSelection(context=' + this.
|
|
2472
|
+
return 'StateRuleSelection(context=' + this.l33_1.toString() + ')';
|
|
2473
2473
|
};
|
|
2474
2474
|
protoOf(StateRuleSelection).hashCode = function () {
|
|
2475
|
-
return this.
|
|
2475
|
+
return this.l33_1.hashCode();
|
|
2476
2476
|
};
|
|
2477
2477
|
protoOf(StateRuleSelection).equals = function (other) {
|
|
2478
2478
|
if (this === other)
|
|
2479
2479
|
return true;
|
|
2480
2480
|
if (!(other instanceof StateRuleSelection))
|
|
2481
2481
|
return false;
|
|
2482
|
-
if (!this.
|
|
2482
|
+
if (!this.l33_1.equals(other.l33_1))
|
|
2483
2483
|
return false;
|
|
2484
2484
|
return true;
|
|
2485
2485
|
};
|
|
2486
2486
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2487
2487
|
var tmp;
|
|
2488
|
-
if (rules.
|
|
2489
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2488
|
+
if (rules.wo()) {
|
|
2489
|
+
tmp = appendRules(_this__u8e3s4.c2x_1, rules.uo(), _this__u8e3s4);
|
|
2490
2490
|
} else {
|
|
2491
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2491
|
+
tmp = appendRules(_this__u8e3s4.c2x_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2492
2492
|
}
|
|
2493
2493
|
var newChoicePointContext = tmp;
|
|
2494
|
-
return _this__u8e3s4.
|
|
2494
|
+
return _this__u8e3s4.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2495
2495
|
}
|
|
2496
2496
|
function toGoals(_this__u8e3s4) {
|
|
2497
2497
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2499,8 +2499,8 @@
|
|
|
2499
2499
|
}
|
|
2500
2500
|
function unfoldGoals(_this__u8e3s4) {
|
|
2501
2501
|
var tmp;
|
|
2502
|
-
if (_this__u8e3s4.
|
|
2503
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2502
|
+
if (_this__u8e3s4.vt()) {
|
|
2503
|
+
var tmp_0 = _this__u8e3s4.castToTuple().as();
|
|
2504
2504
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2505
2505
|
} else {
|
|
2506
2506
|
tmp = sequenceOf_0(_this__u8e3s4);
|
|
@@ -2509,28 +2509,28 @@
|
|
|
2509
2509
|
}
|
|
2510
2510
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2511
2511
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2512
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2512
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.x2z()).castToStruct();
|
|
2513
2513
|
var tmp0_goals = toGoals(currentGoal);
|
|
2514
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2515
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2514
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.l2w_1;
|
|
2515
|
+
var tmp2_depth = _this__u8e3s4.e2x_1 + 1 | 0;
|
|
2516
2516
|
// Inline function 'kotlin.Long.plus' call
|
|
2517
|
-
var this_0 = _this__u8e3s4.
|
|
2517
|
+
var this_0 = _this__u8e3s4.f2x_1;
|
|
2518
2518
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2519
2519
|
var tmp4_relevantVariables = emptySet();
|
|
2520
|
-
return _this__u8e3s4.
|
|
2520
|
+
return _this__u8e3s4.c2y(tmp1_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_goals, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4, tmp2_depth, tmp3_step, tmp4_relevantVariables);
|
|
2521
2521
|
}
|
|
2522
2522
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2523
|
-
return new Request(signature, goal.
|
|
2523
|
+
return new Request(signature, goal.lt(), _this__u8e3s4, startTime);
|
|
2524
2524
|
}
|
|
2525
2525
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2526
2526
|
var tmp;
|
|
2527
|
-
if (primitiveExecutions.
|
|
2528
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2527
|
+
if (primitiveExecutions.wo()) {
|
|
2528
|
+
tmp = appendPrimitives(_this__u8e3s4.c2x_1, primitiveExecutions.uo(), _this__u8e3s4);
|
|
2529
2529
|
} else {
|
|
2530
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2530
|
+
tmp = appendPrimitives(_this__u8e3s4.c2x_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2531
2531
|
}
|
|
2532
2532
|
var newChoicePointContext = tmp;
|
|
2533
|
-
return _this__u8e3s4.
|
|
2533
|
+
return _this__u8e3s4.c2y(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2534
2534
|
}
|
|
2535
2535
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2536
2536
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
@@ -2547,17 +2547,17 @@
|
|
|
2547
2547
|
}
|
|
2548
2548
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2549
2549
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2550
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2550
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.x2z()).castToStruct();
|
|
2551
2551
|
var tmp0_goals = toGoals(currentGoal);
|
|
2552
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2553
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2552
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.l2w_1;
|
|
2553
|
+
var tmp2_depth = _this__u8e3s4.e2x_1 + 1 | 0;
|
|
2554
2554
|
// Inline function 'kotlin.Long.plus' call
|
|
2555
|
-
var this_0 = _this__u8e3s4.
|
|
2555
|
+
var this_0 = _this__u8e3s4.f2x_1;
|
|
2556
2556
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2557
|
-
return _this__u8e3s4.
|
|
2557
|
+
return _this__u8e3s4.c2y(tmp1_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_goals, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_depth, tmp3_step);
|
|
2558
2558
|
}
|
|
2559
2559
|
function toGoals$lambda(it) {
|
|
2560
|
-
return it.
|
|
2560
|
+
return it.gu() ? Companion_getInstance_1().of('call', [it]) : it;
|
|
2561
2561
|
}
|
|
2562
2562
|
function unfoldGoals$lambda(it) {
|
|
2563
2563
|
return unfoldGoals(it);
|
|
@@ -2565,54 +2565,54 @@
|
|
|
2565
2565
|
function ensureRules$lambda(it) {
|
|
2566
2566
|
// Inline function 'kotlin.require' call
|
|
2567
2567
|
// Inline function 'kotlin.require' call
|
|
2568
|
-
if (!it.
|
|
2568
|
+
if (!it.st()) {
|
|
2569
2569
|
var message = 'Failed requirement.';
|
|
2570
2570
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2571
2571
|
}
|
|
2572
2572
|
return it.castToRule();
|
|
2573
2573
|
}
|
|
2574
2574
|
function AbstractSolutionIterator(state) {
|
|
2575
|
-
this.
|
|
2576
|
-
this.
|
|
2575
|
+
this.m33_1 = state;
|
|
2576
|
+
this.n33_1 = new Long(0, 0);
|
|
2577
2577
|
}
|
|
2578
2578
|
protoOf(AbstractSolutionIterator).p = function () {
|
|
2579
2579
|
// Inline function 'kotlin.let' call
|
|
2580
|
-
var it = this.
|
|
2581
|
-
return !it.
|
|
2580
|
+
var it = this.m33_1;
|
|
2581
|
+
return !it.m31() || it.castToEndState().j2y();
|
|
2582
2582
|
};
|
|
2583
2583
|
protoOf(AbstractSolutionIterator).q = function () {
|
|
2584
2584
|
do {
|
|
2585
|
-
var previousState = this.
|
|
2585
|
+
var previousState = this.m33_1;
|
|
2586
2586
|
var tmp = this;
|
|
2587
|
-
var tmp_0 = this.
|
|
2588
|
-
this.
|
|
2589
|
-
tmp.
|
|
2590
|
-
this.onStateTransition(previousState, this.
|
|
2587
|
+
var tmp_0 = this.m33_1;
|
|
2588
|
+
this.n33_1 = add(this.n33_1, get_ONE());
|
|
2589
|
+
tmp.m33_1 = this.o33(tmp_0, this.n33_1);
|
|
2590
|
+
this.onStateTransition(previousState, this.m33_1, this.n33_1);
|
|
2591
2591
|
}
|
|
2592
|
-
while (!this.
|
|
2593
|
-
return this.
|
|
2592
|
+
while (!this.m33_1.m31());
|
|
2593
|
+
return this.m33_1.castToEndState().r2g().cleanUp();
|
|
2594
2594
|
};
|
|
2595
2595
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2596
2596
|
AbstractSolutionIterator.call(this, state);
|
|
2597
|
-
this.
|
|
2597
|
+
this.r33_1 = onStateTransitionCallback;
|
|
2598
2598
|
}
|
|
2599
|
-
protoOf(SimpleSolutionIterator).
|
|
2599
|
+
protoOf(SimpleSolutionIterator).o33 = function (state, step) {
|
|
2600
2600
|
return state.next();
|
|
2601
2601
|
};
|
|
2602
|
-
protoOf(SimpleSolutionIterator).
|
|
2603
|
-
return this.
|
|
2602
|
+
protoOf(SimpleSolutionIterator).s33 = function (source, destination, index) {
|
|
2603
|
+
return this.r33_1(source, destination, index);
|
|
2604
2604
|
};
|
|
2605
2605
|
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2606
|
-
return this.
|
|
2606
|
+
return this.s33(source, destination, index);
|
|
2607
2607
|
};
|
|
2608
2608
|
function DefaultBuiltins() {
|
|
2609
2609
|
DefaultBuiltins_instance = this;
|
|
2610
2610
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2611
2611
|
}
|
|
2612
|
-
protoOf(DefaultBuiltins).
|
|
2612
|
+
protoOf(DefaultBuiltins).d2d = function () {
|
|
2613
2613
|
return listOf(Throw_getInstance());
|
|
2614
2614
|
};
|
|
2615
|
-
protoOf(DefaultBuiltins).
|
|
2615
|
+
protoOf(DefaultBuiltins).c2d = function () {
|
|
2616
2616
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
2617
2617
|
};
|
|
2618
2618
|
var DefaultBuiltins_instance;
|
|
@@ -2626,12 +2626,12 @@
|
|
|
2626
2626
|
var tmp_0;
|
|
2627
2627
|
var tmp_1;
|
|
2628
2628
|
if (isInterface(error, Struct)) {
|
|
2629
|
-
tmp_1 = error.
|
|
2629
|
+
tmp_1 = error.kt() === 'error';
|
|
2630
2630
|
} else {
|
|
2631
2631
|
tmp_1 = false;
|
|
2632
2632
|
}
|
|
2633
2633
|
if (tmp_1) {
|
|
2634
|
-
var containsArg = error.
|
|
2634
|
+
var containsArg = error.et();
|
|
2635
2635
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
2636
2636
|
} else {
|
|
2637
2637
|
tmp_0 = false;
|
|
@@ -2639,9 +2639,9 @@
|
|
|
2639
2639
|
if (tmp_0) {
|
|
2640
2640
|
var tmp_2 = Companion_instance_14;
|
|
2641
2641
|
var tmp_3 = error.get(0);
|
|
2642
|
-
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.
|
|
2642
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.et() > 1 ? error.get(1) : null);
|
|
2643
2643
|
} else {
|
|
2644
|
-
tmp = Companion_instance_13.
|
|
2644
|
+
tmp = Companion_instance_13.f25(error, context);
|
|
2645
2645
|
}
|
|
2646
2646
|
return tmp;
|
|
2647
2647
|
}
|
|
@@ -2649,11 +2649,11 @@
|
|
|
2649
2649
|
Throw_instance = this;
|
|
2650
2650
|
UnaryPredicate.call(this, 'throw');
|
|
2651
2651
|
}
|
|
2652
|
-
protoOf(Throw).
|
|
2653
|
-
return sequenceOf_0(Companion_getInstance_4().
|
|
2652
|
+
protoOf(Throw).i2n = function (_this__u8e3s4, first) {
|
|
2653
|
+
return sequenceOf_0(Companion_getInstance_4().d2e(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.t(0)), VOID, []));
|
|
2654
2654
|
};
|
|
2655
|
-
protoOf(Throw).
|
|
2656
|
-
return this.
|
|
2655
|
+
protoOf(Throw).i2h = function (_this__u8e3s4, first) {
|
|
2656
|
+
return this.i2n(_this__u8e3s4, first);
|
|
2657
2657
|
};
|
|
2658
2658
|
var Throw_instance;
|
|
2659
2659
|
function Throw_getInstance() {
|
|
@@ -2665,10 +2665,10 @@
|
|
|
2665
2665
|
Call_instance = this;
|
|
2666
2666
|
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
2667
2667
|
}
|
|
2668
|
-
protoOf(Call).
|
|
2668
|
+
protoOf(Call).m2h = function (_this__u8e3s4) {
|
|
2669
2669
|
return listOf(_this__u8e3s4.varOf('G'));
|
|
2670
2670
|
};
|
|
2671
|
-
protoOf(Call).
|
|
2671
|
+
protoOf(Call).n2h = function (_this__u8e3s4) {
|
|
2672
2672
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2673
2673
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2674
2674
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('G')]), _this__u8e3s4.varOf('G')]);
|
|
@@ -2683,10 +2683,10 @@
|
|
|
2683
2683
|
Catch_instance = this;
|
|
2684
2684
|
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2685
2685
|
}
|
|
2686
|
-
protoOf(Catch).
|
|
2686
|
+
protoOf(Catch).m2h = function (_this__u8e3s4) {
|
|
2687
2687
|
return listOf_0([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
2688
2688
|
};
|
|
2689
|
-
protoOf(Catch).
|
|
2689
|
+
protoOf(Catch).n2h = function (_this__u8e3s4) {
|
|
2690
2690
|
return _this__u8e3s4.varOf('G');
|
|
2691
2691
|
};
|
|
2692
2692
|
var Catch_instance;
|
|
@@ -2699,10 +2699,10 @@
|
|
|
2699
2699
|
Comma_instance = this;
|
|
2700
2700
|
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
2701
2701
|
}
|
|
2702
|
-
protoOf(Comma).
|
|
2702
|
+
protoOf(Comma).m2h = function (_this__u8e3s4) {
|
|
2703
2703
|
return listOf_0([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2704
2704
|
};
|
|
2705
|
-
protoOf(Comma).
|
|
2705
|
+
protoOf(Comma).n2h = function (_this__u8e3s4) {
|
|
2706
2706
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2707
2707
|
};
|
|
2708
2708
|
var Comma_instance;
|
|
@@ -2725,7 +2725,7 @@
|
|
|
2725
2725
|
Fail_instance = this;
|
|
2726
2726
|
NegationAsFailure.call(this);
|
|
2727
2727
|
}
|
|
2728
|
-
protoOf(Fail).
|
|
2728
|
+
protoOf(Fail).n2h = function (_this__u8e3s4) {
|
|
2729
2729
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2730
2730
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2731
2731
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('X')]);
|
|
@@ -2743,7 +2743,7 @@
|
|
|
2743
2743
|
Success_instance = this;
|
|
2744
2744
|
NegationAsFailure.call(this);
|
|
2745
2745
|
}
|
|
2746
|
-
protoOf(Success).
|
|
2746
|
+
protoOf(Success).n2h = function (_this__u8e3s4) {
|
|
2747
2747
|
return _this__u8e3s4.truthOf(true);
|
|
2748
2748
|
};
|
|
2749
2749
|
var Success_instance;
|
|
@@ -2753,8 +2753,8 @@
|
|
|
2753
2753
|
return Success_instance;
|
|
2754
2754
|
}
|
|
2755
2755
|
function Companion_1() {
|
|
2756
|
-
this.
|
|
2757
|
-
this.
|
|
2756
|
+
this.s34_1 = '\\+';
|
|
2757
|
+
this.t34_1 = 1;
|
|
2758
2758
|
}
|
|
2759
2759
|
var Companion_instance_17;
|
|
2760
2760
|
function Companion_getInstance_7() {
|
|
@@ -2763,37 +2763,37 @@
|
|
|
2763
2763
|
function NegationAsFailure() {
|
|
2764
2764
|
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2765
2765
|
}
|
|
2766
|
-
protoOf(NegationAsFailure).
|
|
2766
|
+
protoOf(NegationAsFailure).m2h = function (_this__u8e3s4) {
|
|
2767
2767
|
return listOf(_this__u8e3s4.varOf('X'));
|
|
2768
2768
|
};
|
|
2769
2769
|
//region block: post-declaration
|
|
2770
2770
|
protoOf(ClassicExecutionContext).createSolver = createSolver;
|
|
2771
2771
|
protoOf(ClassicExecutionContext).createMutableSolver = createMutableSolver;
|
|
2772
2772
|
protoOf(ClassicExecutionContext).update = update;
|
|
2773
|
-
protoOf(ClassicExecutionContext).
|
|
2774
|
-
protoOf(ClassicExecutionContext).
|
|
2775
|
-
protoOf(ClassicExecutionContext).
|
|
2776
|
-
protoOf(ClassicExecutionContext).
|
|
2777
|
-
protoOf(ClassicExecutionContext).
|
|
2778
|
-
protoOf(ClassicExecutionContext).
|
|
2779
|
-
protoOf(ClassicExecutionContext).
|
|
2773
|
+
protoOf(ClassicExecutionContext).m1u = get_standardInput;
|
|
2774
|
+
protoOf(ClassicExecutionContext).n1u = get_standardOutput;
|
|
2775
|
+
protoOf(ClassicExecutionContext).o1u = get_standardError;
|
|
2776
|
+
protoOf(ClassicExecutionContext).p1u = get_warnings;
|
|
2777
|
+
protoOf(ClassicExecutionContext).t1t = get_endTime;
|
|
2778
|
+
protoOf(ClassicExecutionContext).v1t = get_remainingTime;
|
|
2779
|
+
protoOf(ClassicExecutionContext).w1t = get_elapsedTime;
|
|
2780
2780
|
protoOf(ClassicSolverFactory).rawSolverOf = rawSolverOf;
|
|
2781
2781
|
protoOf(ClassicSolverFactory).solverOf = solverOf;
|
|
2782
2782
|
protoOf(ClassicSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2783
2783
|
protoOf(ClassicSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2784
2784
|
protoOf(ClassicSolverFactory).newBuilder = newBuilder;
|
|
2785
|
-
protoOf(ClassicSolverFactory).
|
|
2786
|
-
protoOf(ClassicSolverFactory).
|
|
2787
|
-
protoOf(ClassicSolverFactory).
|
|
2788
|
-
protoOf(ClassicSolverFactory).
|
|
2789
|
-
protoOf(ClassicSolverFactory).
|
|
2790
|
-
protoOf(ClassicSolverFactory).
|
|
2791
|
-
protoOf(ClassicSolverFactory).
|
|
2792
|
-
protoOf(ClassicSolverFactory).
|
|
2793
|
-
protoOf(ClassicSolverFactory).
|
|
2794
|
-
protoOf(ClassicSolverFactory).
|
|
2785
|
+
protoOf(ClassicSolverFactory).n1w = get_defaultRuntime;
|
|
2786
|
+
protoOf(ClassicSolverFactory).p1w = get_defaultUnificator;
|
|
2787
|
+
protoOf(ClassicSolverFactory).q1w = get_defaultFlags;
|
|
2788
|
+
protoOf(ClassicSolverFactory).t1w = get_defaultStaticKb;
|
|
2789
|
+
protoOf(ClassicSolverFactory).u1w = get_defaultDynamicKb;
|
|
2790
|
+
protoOf(ClassicSolverFactory).v1w = get_defaultInputChannel;
|
|
2791
|
+
protoOf(ClassicSolverFactory).w1w = get_defaultOutputChannel;
|
|
2792
|
+
protoOf(ClassicSolverFactory).x1w = get_defaultErrorChannel;
|
|
2793
|
+
protoOf(ClassicSolverFactory).y1w = get_defaultWarningsChannel;
|
|
2794
|
+
protoOf(ClassicSolverFactory).g1x = solverWithDefaultBuiltins;
|
|
2795
2795
|
protoOf(ClassicSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2796
|
-
protoOf(ClassicSolverFactory).
|
|
2796
|
+
protoOf(ClassicSolverFactory).i1x = mutableSolverWithDefaultBuiltins;
|
|
2797
2797
|
protoOf(ClassicSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2798
2798
|
protoOf(MutableClassicSolver).loadStaticClauses = loadStaticClauses;
|
|
2799
2799
|
protoOf(MutableClassicSolver).loadStaticClausesIterable = loadStaticClausesIterable;
|
|
@@ -2801,13 +2801,13 @@
|
|
|
2801
2801
|
protoOf(MutableClassicSolver).loadDynamicClauses = loadDynamicClauses;
|
|
2802
2802
|
protoOf(MutableClassicSolver).loadDynamicClausesIterable = loadDynamicClausesIterable;
|
|
2803
2803
|
protoOf(MutableClassicSolver).loadDynamicClausesSequence = loadDynamicClausesSequence;
|
|
2804
|
-
protoOf(AbstractState).
|
|
2804
|
+
protoOf(AbstractState).m31 = get_isEndState;
|
|
2805
2805
|
protoOf(AbstractState).asEndState = asEndState;
|
|
2806
2806
|
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2807
2807
|
protoOf(AbstractState).clone = clone;
|
|
2808
|
-
protoOf(AbstractEndState).
|
|
2809
|
-
protoOf(AbstractEndState).
|
|
2810
|
-
protoOf(AbstractEndState).
|
|
2808
|
+
protoOf(AbstractEndState).m31 = get_isEndState_0;
|
|
2809
|
+
protoOf(AbstractEndState).n31 = asEndState_0;
|
|
2810
|
+
protoOf(AbstractEndState).j2y = get_hasOpenAlternatives;
|
|
2811
2811
|
//endregion
|
|
2812
2812
|
//region block: init
|
|
2813
2813
|
ClassicSolverFactory_instance = new ClassicSolverFactory();
|