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