@tuprolog/2p-full 0.32.4 → 1.0.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 +136 -136
- package/2p-core.js +379 -412
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +463 -463
- package/2p-oop-lib.js +594 -594
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +114 -114
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-theory.js +11 -11
- package/2p-repl.js +63 -63
- package/2p-repl.js.map +1 -1
- package/2p-solve-classic.js +794 -794
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-plp.js +1 -1
- package/2p-solve-problog.js +922 -922
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +641 -641
- package/2p-solve.js +2877 -2867
- package/2p-solve.js.map +1 -1
- package/2p-test-dsl.js +15 -0
- package/2p-test-dsl.js.map +1 -0
- package/2p-theory.js +1342 -1065
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +160 -160
- package/2p-utils.js +3 -3
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-js-ir.js +1010 -1010
- package/kotlin-kotlin-stdlib.js +31 -31
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test-kotlin-test-js-ir.js +15 -0
- package/kotlin-kotlin-test-kotlin-test-js-ir.js.map +1 -0
- package/package.json +1 -1
package/2p-solve-streams.js
CHANGED
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
setMetadataFor(AlreadyExecutedState, 'AlreadyExecutedState', classMeta);
|
|
193
193
|
setMetadataFor(FinalState, 'FinalState', interfaceMeta);
|
|
194
194
|
function get_context() {
|
|
195
|
-
var tmp = this.
|
|
195
|
+
var tmp = this.w4b().context;
|
|
196
196
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
197
197
|
}
|
|
198
198
|
setMetadataFor(IntermediateState, 'IntermediateState', interfaceMeta);
|
|
@@ -226,19 +226,19 @@
|
|
|
226
226
|
//endregion
|
|
227
227
|
function SolverStrategies$Companion$prologStandard$1() {
|
|
228
228
|
}
|
|
229
|
-
protoOf(SolverStrategies$Companion$prologStandard$1).
|
|
229
|
+
protoOf(SolverStrategies$Companion$prologStandard$1).s4b = function (predicationSequence, context) {
|
|
230
230
|
return first(predicationSequence);
|
|
231
231
|
};
|
|
232
|
-
protoOf(SolverStrategies$Companion$prologStandard$1).
|
|
232
|
+
protoOf(SolverStrategies$Companion$prologStandard$1).t4b = function (unifiableClauses, context) {
|
|
233
233
|
return first(unifiableClauses);
|
|
234
234
|
};
|
|
235
|
-
protoOf(SolverStrategies$Companion$prologStandard$1).
|
|
235
|
+
protoOf(SolverStrategies$Companion$prologStandard$1).u4b = function (term, context) {
|
|
236
236
|
return term.ow();
|
|
237
237
|
};
|
|
238
238
|
function Companion() {
|
|
239
239
|
Companion_instance_11 = this;
|
|
240
240
|
var tmp = this;
|
|
241
|
-
tmp.
|
|
241
|
+
tmp.v4b_1 = new SolverStrategies$Companion$prologStandard$1();
|
|
242
242
|
}
|
|
243
243
|
var Companion_instance_11;
|
|
244
244
|
function Companion_getInstance_6() {
|
|
@@ -251,14 +251,14 @@
|
|
|
251
251
|
}
|
|
252
252
|
function StreamsSolver$Companion$solveToFinalStates$lambda_0($goalRequest) {
|
|
253
253
|
return function (it) {
|
|
254
|
-
return it.
|
|
254
|
+
return it.w4b().solution.c1w().equals($goalRequest.c1w());
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
function StreamsSolver$Companion$solveToResponses$lambda(it) {
|
|
258
|
-
return it.
|
|
258
|
+
return it.w4b();
|
|
259
259
|
}
|
|
260
260
|
function StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $this) {
|
|
261
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
261
|
+
unificator = unificator === VOID ? Companion_getInstance().c1l() : unificator;
|
|
262
262
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
263
263
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
264
264
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
stdOut = stdOut === VOID ? Companion_instance_3.stdOut() : stdOut;
|
|
268
268
|
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
269
269
|
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
270
|
-
StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
270
|
+
StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.q1y(stdIn), Companion_instance_5.t1y(stdOut, stdErr, warnings));
|
|
271
271
|
return $this;
|
|
272
272
|
}
|
|
273
273
|
function StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
@@ -275,15 +275,15 @@
|
|
|
275
275
|
}
|
|
276
276
|
function Companion_0() {
|
|
277
277
|
}
|
|
278
|
-
protoOf(Companion_0).
|
|
278
|
+
protoOf(Companion_0).x4b = function (goalRequest) {
|
|
279
279
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
280
|
-
var this_0 = StateMachineExecutor_instance.
|
|
280
|
+
var this_0 = StateMachineExecutor_instance.y4b(new StateInit(goalRequest));
|
|
281
281
|
var tmp = filter(this_0, StreamsSolver$Companion$solveToFinalStates$lambda);
|
|
282
282
|
var tmp_0 = isInterface(tmp, Sequence) ? tmp : THROW_CCE();
|
|
283
283
|
return filter(tmp_0, StreamsSolver$Companion$solveToFinalStates$lambda_0(goalRequest));
|
|
284
284
|
};
|
|
285
|
-
protoOf(Companion_0).
|
|
286
|
-
var tmp = this.
|
|
285
|
+
protoOf(Companion_0).z4b = function (goalRequest) {
|
|
286
|
+
var tmp = this.x4b(goalRequest);
|
|
287
287
|
return map(tmp, StreamsSolver$Companion$solveToResponses$lambda);
|
|
288
288
|
};
|
|
289
289
|
var Companion_instance_12;
|
|
@@ -292,79 +292,79 @@
|
|
|
292
292
|
}
|
|
293
293
|
function StreamsSolver$solve$lambda(this$0) {
|
|
294
294
|
return function (it) {
|
|
295
|
-
this$0.
|
|
296
|
-
return it.
|
|
295
|
+
this$0.a4c_1 = it.uc().p36(it.w4b().sideEffects);
|
|
296
|
+
return it.w4b().solution.cleanUp();
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
function StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
300
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
300
|
+
unificator = unificator === VOID ? Companion_getInstance().c1l() : unificator;
|
|
301
301
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
302
302
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
303
303
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
304
304
|
dynamicKb = dynamicKb === VOID ? Companion_instance_0.empty(unificator) : dynamicKb;
|
|
305
305
|
inputChannels = inputChannels === VOID ? Companion_instance_4.fromStandard() : inputChannels;
|
|
306
306
|
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
307
|
-
this.
|
|
307
|
+
this.a4c_1 = new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])), inputChannels, outputChannels);
|
|
308
308
|
}
|
|
309
|
-
protoOf(StreamsSolver).
|
|
310
|
-
this.
|
|
311
|
-
var tmp = Companion_instance_12.
|
|
309
|
+
protoOf(StreamsSolver).p2b = function (goal, options) {
|
|
310
|
+
this.a4c_1 = new StreamsExecutionContext(this.f1l(), this.c1v(), this.d1v(), this.e1v(), this.f1v(), VOID, this.g1v(), this.h1v(), VOID, VOID, VOID, options.k1x());
|
|
311
|
+
var tmp = Companion_instance_12.x4b(new Request(extractSignature(goal), goal.rw(), this.a4c_1));
|
|
312
312
|
var solutionSequence = map(tmp, StreamsSolver$solve$lambda(this));
|
|
313
|
-
if (options.
|
|
314
|
-
solutionSequence = take(solutionSequence, options.
|
|
313
|
+
if (options.l1x() > 0) {
|
|
314
|
+
solutionSequence = take(solutionSequence, options.l1x());
|
|
315
315
|
}
|
|
316
|
-
if (options.
|
|
316
|
+
if (options.j1x()) {
|
|
317
317
|
solutionSequence = buffered(solutionSequence);
|
|
318
318
|
}
|
|
319
319
|
return solutionSequence;
|
|
320
320
|
};
|
|
321
321
|
protoOf(StreamsSolver).solveWithOptions = function (goal, options) {
|
|
322
|
-
return this.
|
|
322
|
+
return this.p2b(goal, options);
|
|
323
323
|
};
|
|
324
|
-
protoOf(StreamsSolver).
|
|
324
|
+
protoOf(StreamsSolver).t1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
325
325
|
return StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
326
326
|
};
|
|
327
|
-
protoOf(StreamsSolver).
|
|
328
|
-
return this.
|
|
327
|
+
protoOf(StreamsSolver).f1l = function () {
|
|
328
|
+
return this.a4c_1.b4c_1;
|
|
329
329
|
};
|
|
330
|
-
protoOf(StreamsSolver).
|
|
331
|
-
return this.
|
|
330
|
+
protoOf(StreamsSolver).c1v = function () {
|
|
331
|
+
return this.a4c_1.c4c_1;
|
|
332
332
|
};
|
|
333
|
-
protoOf(StreamsSolver).
|
|
334
|
-
return this.
|
|
333
|
+
protoOf(StreamsSolver).d1v = function () {
|
|
334
|
+
return this.a4c_1.d4c_1;
|
|
335
335
|
};
|
|
336
|
-
protoOf(StreamsSolver).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(StreamsSolver).e1v = function () {
|
|
337
|
+
return this.a4c_1.e4c_1;
|
|
338
338
|
};
|
|
339
|
-
protoOf(StreamsSolver).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(StreamsSolver).f1v = function () {
|
|
340
|
+
return this.a4c_1.f4c_1;
|
|
341
341
|
};
|
|
342
|
-
protoOf(StreamsSolver).
|
|
343
|
-
return this.
|
|
342
|
+
protoOf(StreamsSolver).g1v = function () {
|
|
343
|
+
return this.a4c_1.h4c_1;
|
|
344
344
|
};
|
|
345
|
-
protoOf(StreamsSolver).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(StreamsSolver).h1v = function () {
|
|
346
|
+
return this.a4c_1.i4c_1;
|
|
347
347
|
};
|
|
348
|
-
protoOf(StreamsSolver).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(StreamsSolver).l1v = function () {
|
|
349
|
+
return this.a4c_1.g4c_1;
|
|
350
350
|
};
|
|
351
351
|
function StreamsSolverFactory() {
|
|
352
352
|
}
|
|
353
|
-
protoOf(StreamsSolverFactory).
|
|
353
|
+
protoOf(StreamsSolverFactory).d1y = function () {
|
|
354
354
|
return DefaultBuiltins_getInstance();
|
|
355
355
|
};
|
|
356
|
-
protoOf(StreamsSolverFactory).
|
|
356
|
+
protoOf(StreamsSolverFactory).o1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
357
357
|
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
358
358
|
};
|
|
359
|
-
protoOf(StreamsSolverFactory).
|
|
360
|
-
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
359
|
+
protoOf(StreamsSolverFactory).u1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
360
|
+
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.q1y(stdIn), Companion_instance_5.t1y(stdOut, stdErr, warnings));
|
|
361
361
|
};
|
|
362
|
-
protoOf(StreamsSolverFactory).
|
|
362
|
+
protoOf(StreamsSolverFactory).w1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
363
363
|
// Inline function 'kotlin.TODO' call
|
|
364
364
|
var reason = 'Mutable stream solver is not supported yet';
|
|
365
365
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
366
366
|
};
|
|
367
|
-
protoOf(StreamsSolverFactory).
|
|
367
|
+
protoOf(StreamsSolverFactory).y1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
368
368
|
// Inline function 'kotlin.TODO' call
|
|
369
369
|
var reason = 'Mutable stream solver is not supported yet';
|
|
370
370
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
@@ -377,13 +377,13 @@
|
|
|
377
377
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
378
378
|
// Inline function 'kotlin.collections.filter' call
|
|
379
379
|
// Inline function 'kotlin.collections.filterTo' call
|
|
380
|
-
var this_0 = $this.
|
|
380
|
+
var this_0 = $this.q4c_1;
|
|
381
381
|
var destination = ArrayList_init_$Create$();
|
|
382
382
|
var tmp0_iterator = this_0.r();
|
|
383
383
|
while (tmp0_iterator.s()) {
|
|
384
384
|
var element = tmp0_iterator.u();
|
|
385
385
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.getFirstChoicePointContext.<anonymous>' call
|
|
386
|
-
if (element.
|
|
386
|
+
if (element.o4c_1.r4c_1) {
|
|
387
387
|
destination.o(element);
|
|
388
388
|
}
|
|
389
389
|
}
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
var element_0 = tmp0_iterator_0.u();
|
|
396
396
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
397
397
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.getFirstChoicePointContext.<anonymous>' call
|
|
398
|
-
var tmp0_safe_receiver = firstOrNull(element_0.
|
|
398
|
+
var tmp0_safe_receiver = firstOrNull(element_0.o4c_1.q4c_1);
|
|
399
399
|
if (tmp0_safe_receiver == null)
|
|
400
400
|
null;
|
|
401
401
|
else {
|
|
@@ -413,38 +413,38 @@
|
|
|
413
413
|
logicalParentRequests = logicalParentRequests === VOID ? emptyList() : logicalParentRequests;
|
|
414
414
|
throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? emptySequence() : throwNonSelectableParentContexts;
|
|
415
415
|
throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? null : throwRelatedToCutContextsParent;
|
|
416
|
-
this.
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
416
|
+
this.q4c_1 = clauseScopedParents;
|
|
417
|
+
this.r4c_1 = isChoicePointChild;
|
|
418
|
+
this.s4c_1 = toCutContextsParent;
|
|
419
|
+
this.t4c_1 = logicalParentRequests;
|
|
420
|
+
this.u4c_1 = throwNonSelectableParentContexts;
|
|
421
|
+
this.v4c_1 = throwRelatedToCutContextsParent;
|
|
422
422
|
}
|
|
423
|
-
protoOf(SideEffectManagerImpl).
|
|
424
|
-
return this.
|
|
423
|
+
protoOf(SideEffectManagerImpl).w4c = function () {
|
|
424
|
+
return this.x4c(VOID, VOID, plus(this.s4c_1, getFirstChoicePointContext(this)));
|
|
425
425
|
};
|
|
426
426
|
protoOf(SideEffectManagerImpl).cut = function () {
|
|
427
|
-
return this.
|
|
427
|
+
return this.w4c();
|
|
428
428
|
};
|
|
429
|
-
protoOf(SideEffectManagerImpl).
|
|
429
|
+
protoOf(SideEffectManagerImpl).y4c = function (currentContext) {
|
|
430
430
|
// Inline function 'kotlin.apply' call
|
|
431
|
-
var this_0 = toMutableList(this.
|
|
431
|
+
var this_0 = toMutableList(this.q4c_1);
|
|
432
432
|
// Inline function 'kotlin.contracts.contract' call
|
|
433
433
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.stateInitInitialize.<anonymous>' call
|
|
434
434
|
this_0.p1(0, currentContext);
|
|
435
|
-
return this.
|
|
435
|
+
return this.x4c(this_0, false);
|
|
436
436
|
};
|
|
437
|
-
protoOf(SideEffectManagerImpl).
|
|
437
|
+
protoOf(SideEffectManagerImpl).z4c = function (currentContext, isChoicePointChild, logicalParentRequest) {
|
|
438
438
|
// Inline function 'kotlin.apply' call
|
|
439
|
-
var this_0 = toMutableList(this.
|
|
439
|
+
var this_0 = toMutableList(this.q4c_1);
|
|
440
440
|
// Inline function 'kotlin.contracts.contract' call
|
|
441
441
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.creatingNewRequest.<anonymous>' call
|
|
442
442
|
this_0.p1(0, currentContext);
|
|
443
443
|
var tmp = this_0;
|
|
444
444
|
var tmp_0;
|
|
445
|
-
if (this.
|
|
445
|
+
if (this.t4c_1.n(logicalParentRequest)) {
|
|
446
446
|
// Inline function 'kotlin.collections.dropWhile' call
|
|
447
|
-
var this_1 = this.
|
|
447
|
+
var this_1 = this.t4c_1;
|
|
448
448
|
var yielding = false;
|
|
449
449
|
var list = ArrayList_init_$Create$();
|
|
450
450
|
var tmp0_iterator = this_1.r();
|
|
@@ -463,33 +463,33 @@
|
|
|
463
463
|
tmp_0 = list;
|
|
464
464
|
} else {
|
|
465
465
|
// Inline function 'kotlin.apply' call
|
|
466
|
-
var this_2 = toMutableList(this.
|
|
466
|
+
var this_2 = toMutableList(this.t4c_1);
|
|
467
467
|
// Inline function 'kotlin.contracts.contract' call
|
|
468
468
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.creatingNewRequest.<anonymous>' call
|
|
469
469
|
this_2.p1(0, logicalParentRequest);
|
|
470
470
|
tmp_0 = this_2;
|
|
471
471
|
}
|
|
472
|
-
return this.
|
|
472
|
+
return this.x4c(tmp, isChoicePointChild, VOID, tmp_0);
|
|
473
473
|
};
|
|
474
|
-
protoOf(SideEffectManagerImpl).
|
|
475
|
-
return this.
|
|
474
|
+
protoOf(SideEffectManagerImpl).a4d = function () {
|
|
475
|
+
return this.x4c(listOf(first_0(this.q4c_1)));
|
|
476
476
|
};
|
|
477
|
-
protoOf(SideEffectManagerImpl).
|
|
477
|
+
protoOf(SideEffectManagerImpl).b4d = function (upperScopeSideEffectsManager) {
|
|
478
478
|
// Inline function 'kotlin.apply' call
|
|
479
|
-
var this_0 = toMutableList(this.
|
|
479
|
+
var this_0 = toMutableList(this.q4c_1);
|
|
480
480
|
// Inline function 'kotlin.contracts.contract' call
|
|
481
481
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.extendParentScopeWith.<anonymous>' call
|
|
482
|
-
this_0.v(upperScopeSideEffectsManager.
|
|
483
|
-
return this.
|
|
482
|
+
this_0.v(upperScopeSideEffectsManager.q4c_1);
|
|
483
|
+
return this.x4c(this_0);
|
|
484
484
|
};
|
|
485
|
-
protoOf(SideEffectManagerImpl).
|
|
486
|
-
return contains(this.
|
|
485
|
+
protoOf(SideEffectManagerImpl).c4d = function () {
|
|
486
|
+
return contains(this.s4c_1, lastOrNull(this.q4c_1)) ? true : this.d4d();
|
|
487
487
|
};
|
|
488
|
-
protoOf(SideEffectManagerImpl).
|
|
488
|
+
protoOf(SideEffectManagerImpl).e4d = function (toUnifyArgument) {
|
|
489
489
|
// Inline function 'kotlin.collections.filterNot' call
|
|
490
490
|
// Inline function 'kotlin.collections.filter' call
|
|
491
491
|
// Inline function 'kotlin.collections.filterTo' call
|
|
492
|
-
var this_0 = this.
|
|
492
|
+
var this_0 = this.t4c_1;
|
|
493
493
|
var destination = ArrayList_init_$Create$();
|
|
494
494
|
var tmp0_iterator = this_0.r();
|
|
495
495
|
while (tmp0_iterator.s()) {
|
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
while (tmp0_iterator_0.s()) {
|
|
506
506
|
var element_0 = tmp0_iterator_0.u();
|
|
507
507
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
|
|
508
|
-
if (!contains(this.
|
|
508
|
+
if (!contains(this.u4c_1, element_0.context)) {
|
|
509
509
|
destination_0.o(element_0);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -527,23 +527,23 @@
|
|
|
527
527
|
}
|
|
528
528
|
return tmp$ret$7;
|
|
529
529
|
};
|
|
530
|
-
protoOf(SideEffectManagerImpl).
|
|
531
|
-
return this.
|
|
530
|
+
protoOf(SideEffectManagerImpl).f4d = function (ancestorCatchContext) {
|
|
531
|
+
return this.x4c(VOID, VOID, VOID, VOID, VOID, ancestorCatchContext);
|
|
532
532
|
};
|
|
533
|
-
protoOf(SideEffectManagerImpl).
|
|
534
|
-
return equals(this.
|
|
533
|
+
protoOf(SideEffectManagerImpl).g4d = function (contextImpl) {
|
|
534
|
+
return equals(this.v4c_1, contextImpl);
|
|
535
535
|
};
|
|
536
|
-
protoOf(SideEffectManagerImpl).
|
|
537
|
-
return this.
|
|
536
|
+
protoOf(SideEffectManagerImpl).h4d = function (contextImpl) {
|
|
537
|
+
return this.x4c(VOID, VOID, VOID, VOID, plus_0(this.u4c_1, contextImpl));
|
|
538
538
|
};
|
|
539
|
-
protoOf(SideEffectManagerImpl).
|
|
540
|
-
return this.
|
|
539
|
+
protoOf(SideEffectManagerImpl).i4d = function (toRecoverSituation) {
|
|
540
|
+
return this.x4c(VOID, VOID, toRecoverSituation.s4c_1);
|
|
541
541
|
};
|
|
542
|
-
protoOf(SideEffectManagerImpl).
|
|
542
|
+
protoOf(SideEffectManagerImpl).d4d = function () {
|
|
543
543
|
var tmp$ret$0;
|
|
544
544
|
$l$block_0: {
|
|
545
545
|
// Inline function 'kotlin.collections.any' call
|
|
546
|
-
var this_0 = this.
|
|
546
|
+
var this_0 = this.t4c_1;
|
|
547
547
|
var tmp;
|
|
548
548
|
if (isInterface(this_0, Collection)) {
|
|
549
549
|
tmp = this_0.y();
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
while (tmp0_iterator.s()) {
|
|
559
559
|
var element = tmp0_iterator.u();
|
|
560
560
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.shouldExecuteThrowCut.<anonymous>' call
|
|
561
|
-
if (element.context.equals(this.
|
|
561
|
+
if (element.context.equals(this.v4c_1)) {
|
|
562
562
|
tmp$ret$0 = true;
|
|
563
563
|
break $l$block_0;
|
|
564
564
|
}
|
|
@@ -567,28 +567,28 @@
|
|
|
567
567
|
}
|
|
568
568
|
return tmp$ret$0;
|
|
569
569
|
};
|
|
570
|
-
protoOf(SideEffectManagerImpl).
|
|
570
|
+
protoOf(SideEffectManagerImpl).j4d = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
|
|
571
571
|
return new SideEffectManagerImpl(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
572
572
|
};
|
|
573
|
-
protoOf(SideEffectManagerImpl).
|
|
574
|
-
clauseScopedParents = clauseScopedParents === VOID ? this.
|
|
575
|
-
isChoicePointChild = isChoicePointChild === VOID ? this.
|
|
576
|
-
toCutContextsParent = toCutContextsParent === VOID ? this.
|
|
577
|
-
logicalParentRequests = logicalParentRequests === VOID ? this.
|
|
578
|
-
throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? this.
|
|
579
|
-
throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? this.
|
|
580
|
-
return $super === VOID ? this.
|
|
573
|
+
protoOf(SideEffectManagerImpl).x4c = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $super) {
|
|
574
|
+
clauseScopedParents = clauseScopedParents === VOID ? this.q4c_1 : clauseScopedParents;
|
|
575
|
+
isChoicePointChild = isChoicePointChild === VOID ? this.r4c_1 : isChoicePointChild;
|
|
576
|
+
toCutContextsParent = toCutContextsParent === VOID ? this.s4c_1 : toCutContextsParent;
|
|
577
|
+
logicalParentRequests = logicalParentRequests === VOID ? this.t4c_1 : logicalParentRequests;
|
|
578
|
+
throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? this.u4c_1 : throwNonSelectableParentContexts;
|
|
579
|
+
throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? this.v4c_1 : throwRelatedToCutContextsParent;
|
|
580
|
+
return $super === VOID ? this.j4d(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) : $super.j4d.call(this, clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
581
581
|
};
|
|
582
582
|
protoOf(SideEffectManagerImpl).toString = function () {
|
|
583
|
-
return 'SideEffectManagerImpl(clauseScopedParents=' + this.
|
|
583
|
+
return 'SideEffectManagerImpl(clauseScopedParents=' + this.q4c_1 + ', isChoicePointChild=' + this.r4c_1 + ', toCutContextsParent=' + this.s4c_1 + ', logicalParentRequests=' + this.t4c_1 + ', throwNonSelectableParentContexts=' + this.u4c_1 + ', throwRelatedToCutContextsParent=' + this.v4c_1 + ')';
|
|
584
584
|
};
|
|
585
585
|
protoOf(SideEffectManagerImpl).hashCode = function () {
|
|
586
|
-
var result = hashCode(this.
|
|
587
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
588
|
-
result = imul(result, 31) + hashCode(this.
|
|
589
|
-
result = imul(result, 31) + hashCode(this.
|
|
590
|
-
result = imul(result, 31) + hashCode(this.
|
|
591
|
-
result = imul(result, 31) + (this.
|
|
586
|
+
var result = hashCode(this.q4c_1);
|
|
587
|
+
result = imul(result, 31) + getBooleanHashCode(this.r4c_1) | 0;
|
|
588
|
+
result = imul(result, 31) + hashCode(this.s4c_1) | 0;
|
|
589
|
+
result = imul(result, 31) + hashCode(this.t4c_1) | 0;
|
|
590
|
+
result = imul(result, 31) + hashCode(this.u4c_1) | 0;
|
|
591
|
+
result = imul(result, 31) + (this.v4c_1 == null ? 0 : this.v4c_1.hashCode()) | 0;
|
|
592
592
|
return result;
|
|
593
593
|
};
|
|
594
594
|
protoOf(SideEffectManagerImpl).equals = function (other) {
|
|
@@ -597,42 +597,42 @@
|
|
|
597
597
|
if (!(other instanceof SideEffectManagerImpl))
|
|
598
598
|
return false;
|
|
599
599
|
var tmp0_other_with_cast = other instanceof SideEffectManagerImpl ? other : THROW_CCE();
|
|
600
|
-
if (!equals(this.
|
|
600
|
+
if (!equals(this.q4c_1, tmp0_other_with_cast.q4c_1))
|
|
601
601
|
return false;
|
|
602
|
-
if (!(this.
|
|
602
|
+
if (!(this.r4c_1 === tmp0_other_with_cast.r4c_1))
|
|
603
603
|
return false;
|
|
604
|
-
if (!equals(this.
|
|
604
|
+
if (!equals(this.s4c_1, tmp0_other_with_cast.s4c_1))
|
|
605
605
|
return false;
|
|
606
|
-
if (!equals(this.
|
|
606
|
+
if (!equals(this.t4c_1, tmp0_other_with_cast.t4c_1))
|
|
607
607
|
return false;
|
|
608
|
-
if (!equals(this.
|
|
608
|
+
if (!equals(this.u4c_1, tmp0_other_with_cast.u4c_1))
|
|
609
609
|
return false;
|
|
610
|
-
if (!equals(this.
|
|
610
|
+
if (!equals(this.v4c_1, tmp0_other_with_cast.v4c_1))
|
|
611
611
|
return false;
|
|
612
612
|
return true;
|
|
613
613
|
};
|
|
614
614
|
function resetCutWorkChanges(_this__u8e3s4, toRecoverSituation) {
|
|
615
615
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
616
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
616
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i4d(toRecoverSituation);
|
|
617
617
|
}
|
|
618
618
|
function isSelectedThrowCatch(_this__u8e3s4, context) {
|
|
619
619
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
620
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
620
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g4d(context);
|
|
621
621
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
622
622
|
}
|
|
623
623
|
function shouldExecuteThrowCut(_this__u8e3s4) {
|
|
624
624
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
625
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
625
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d4d();
|
|
626
626
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
627
627
|
}
|
|
628
628
|
function shouldCutExecuteInRuleSelection(_this__u8e3s4) {
|
|
629
629
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
630
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
630
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c4d();
|
|
631
631
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
632
632
|
}
|
|
633
633
|
function extendParentScopeWith(_this__u8e3s4, upperScopeSideEffectsManager) {
|
|
634
634
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
635
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
635
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b4d(upperScopeSideEffectsManager);
|
|
636
636
|
}
|
|
637
637
|
function isWellFormed(_this__u8e3s4) {
|
|
638
638
|
return _this__u8e3s4.accept(Companion_getInstance_1().bodyWellFormedVisitor);
|
|
@@ -646,24 +646,24 @@
|
|
|
646
646
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
647
647
|
var this_0 = otherResponse.sideEffects;
|
|
648
648
|
var tmp$ret$0 = copyToArray(this_0);
|
|
649
|
-
return _this__u8e3s4.
|
|
649
|
+
return _this__u8e3s4.p2i(otherResponse.solution, tmp, tmp$ret$0.slice());
|
|
650
650
|
}
|
|
651
651
|
function newSolveRequest(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild) {
|
|
652
652
|
toAddSubstitutions = toAddSubstitutions === VOID ? Companion_getInstance_2().empty() : toAddSubstitutions;
|
|
653
653
|
toPropagateContextData = toPropagateContextData === VOID ? _this__u8e3s4.context : toPropagateContextData;
|
|
654
|
-
baseSideEffectManager = baseSideEffectManager === VOID ? _this__u8e3s4.context.
|
|
655
|
-
requestIssuingInstant = requestIssuingInstant === VOID ? _this__u8e3s4.
|
|
654
|
+
baseSideEffectManager = baseSideEffectManager === VOID ? _this__u8e3s4.context.o4c_1 : baseSideEffectManager;
|
|
655
|
+
requestIssuingInstant = requestIssuingInstant === VOID ? _this__u8e3s4.q29_1 : requestIssuingInstant;
|
|
656
656
|
isChoicePointChild = isChoicePointChild === VOID ? false : isChoicePointChild;
|
|
657
657
|
var tmp = extractSignature(newGoal);
|
|
658
658
|
var tmp_0 = newGoal.rw();
|
|
659
|
-
var tmp_1 = toPropagateContextData.
|
|
660
|
-
var tmp_2 = toPropagateContextData.
|
|
661
|
-
var tmp_3 = toPropagateContextData.
|
|
662
|
-
var tmp_4 = toPropagateContextData.
|
|
663
|
-
var tmp_5 = toPropagateContextData.
|
|
664
|
-
var tmp_6 = toPropagateContextData.
|
|
665
|
-
var tmp_7 = _this__u8e3s4.context.
|
|
666
|
-
return _this__u8e3s4.
|
|
659
|
+
var tmp_1 = toPropagateContextData.c1v();
|
|
660
|
+
var tmp_2 = toPropagateContextData.d1v();
|
|
661
|
+
var tmp_3 = toPropagateContextData.e1v();
|
|
662
|
+
var tmp_4 = toPropagateContextData.f1v();
|
|
663
|
+
var tmp_5 = toPropagateContextData.g1v();
|
|
664
|
+
var tmp_6 = toPropagateContextData.h1v();
|
|
665
|
+
var tmp_7 = _this__u8e3s4.context.k4c_1.plus(toAddSubstitutions);
|
|
666
|
+
return _this__u8e3s4.w2i(tmp, tmp_0, _this__u8e3s4.context.k4d(VOID, tmp_1, tmp_2, tmp_3, tmp_4, VOID, tmp_5, tmp_6, VOID, isInterface(tmp_7, Unifier) ? tmp_7 : THROW_CCE(), VOID, VOID, VOID, baseSideEffectManager.z4c(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4)), requestIssuingInstant);
|
|
667
667
|
}
|
|
668
668
|
function prepareForExecutionAsGoal(_this__u8e3s4) {
|
|
669
669
|
return single(prepareForExecution(Companion_instance_6.of(_this__u8e3s4, [])).rw()).kx();
|
|
@@ -725,19 +725,19 @@
|
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
727
|
function orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
728
|
+
this.t4d_1 = $selectionStrategy;
|
|
729
|
+
this.u4d_1 = $this_orderWithStrategy;
|
|
730
|
+
this.v4d_1 = $context;
|
|
731
731
|
CoroutineImpl.call(this, resultContinuation);
|
|
732
732
|
}
|
|
733
|
-
protoOf(orderWithStrategy$slambda).
|
|
734
|
-
var tmp = this.
|
|
733
|
+
protoOf(orderWithStrategy$slambda).z4d = function ($this$sequence, $completion) {
|
|
734
|
+
var tmp = this.a4e($this$sequence, $completion);
|
|
735
735
|
tmp.pc_1 = Unit_instance;
|
|
736
736
|
tmp.qc_1 = null;
|
|
737
737
|
return tmp.yc();
|
|
738
738
|
};
|
|
739
739
|
protoOf(orderWithStrategy$slambda).ld = function (p1, $completion) {
|
|
740
|
-
return this.
|
|
740
|
+
return this.z4d(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
741
741
|
};
|
|
742
742
|
protoOf(orderWithStrategy$slambda).yc = function () {
|
|
743
743
|
var suspendResult = this.pc_1;
|
|
@@ -748,11 +748,11 @@
|
|
|
748
748
|
case 0:
|
|
749
749
|
this.oc_1 = 3;
|
|
750
750
|
var tmp_0 = this;
|
|
751
|
-
tmp_0.
|
|
751
|
+
tmp_0.x4d_1 = this.t4d_1(this.u4d_1, this.v4d_1);
|
|
752
752
|
var tmp_1 = this;
|
|
753
|
-
tmp_1.
|
|
753
|
+
tmp_1.y4d_1 = this.x4d_1;
|
|
754
754
|
this.nc_1 = 1;
|
|
755
|
-
suspendResult = this.
|
|
755
|
+
suspendResult = this.w4d_1.ef(this.y4d_1, this);
|
|
756
756
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
757
757
|
return suspendResult;
|
|
758
758
|
}
|
|
@@ -760,7 +760,7 @@
|
|
|
760
760
|
continue $sm;
|
|
761
761
|
case 1:
|
|
762
762
|
this.nc_1 = 2;
|
|
763
|
-
suspendResult = this.
|
|
763
|
+
suspendResult = this.w4d_1.hf(orderWithStrategy(filterIndexed(this.u4d_1, orderWithStrategy$slambda$lambda(this.u4d_1, this.y4d_1)), this.v4d_1, this.t4d_1), this);
|
|
764
764
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
765
765
|
return suspendResult;
|
|
766
766
|
}
|
|
@@ -782,34 +782,34 @@
|
|
|
782
782
|
}
|
|
783
783
|
while (true);
|
|
784
784
|
};
|
|
785
|
-
protoOf(orderWithStrategy$slambda).
|
|
786
|
-
var i = new orderWithStrategy$slambda(this.
|
|
787
|
-
i.
|
|
785
|
+
protoOf(orderWithStrategy$slambda).a4e = function ($this$sequence, completion) {
|
|
786
|
+
var i = new orderWithStrategy$slambda(this.t4d_1, this.u4d_1, this.v4d_1, completion);
|
|
787
|
+
i.w4d_1 = $this$sequence;
|
|
788
788
|
return i;
|
|
789
789
|
};
|
|
790
790
|
function orderWithStrategy$slambda_0($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
|
|
791
791
|
var i = new orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation);
|
|
792
792
|
var l = function ($this$sequence, $completion) {
|
|
793
|
-
return i.
|
|
793
|
+
return i.z4d($this$sequence, $completion);
|
|
794
794
|
};
|
|
795
795
|
l.$arity = 1;
|
|
796
796
|
return l;
|
|
797
797
|
}
|
|
798
798
|
function StreamsExecutionContext_init_$Init$(context, newCurrentSubstitution, $this) {
|
|
799
|
-
var tmp = context.
|
|
800
|
-
var tmp_0 = context.
|
|
801
|
-
var tmp_1 = context.
|
|
802
|
-
var tmp_2 = context.
|
|
803
|
-
var tmp_3 = context.
|
|
804
|
-
var tmp_4 = context.
|
|
805
|
-
var tmp_5 = context.
|
|
806
|
-
var tmp_6 = context.
|
|
807
|
-
var tmp_7 = context.
|
|
799
|
+
var tmp = context.f1l();
|
|
800
|
+
var tmp_0 = context.c1v();
|
|
801
|
+
var tmp_1 = context.d1v();
|
|
802
|
+
var tmp_2 = context.e1v();
|
|
803
|
+
var tmp_3 = context.f1v();
|
|
804
|
+
var tmp_4 = context.l1v();
|
|
805
|
+
var tmp_5 = context.g1v();
|
|
806
|
+
var tmp_6 = context.h1v();
|
|
807
|
+
var tmp_7 = context.a1v();
|
|
808
808
|
var tmp0_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
|
|
809
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
810
|
-
var tmp_8 = tmp1_elvis_lhs == null ? Companion_getInstance_6().
|
|
809
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n4c_1;
|
|
810
|
+
var tmp_8 = tmp1_elvis_lhs == null ? Companion_getInstance_6().v4b_1 : tmp1_elvis_lhs;
|
|
811
811
|
var tmp2_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
|
|
812
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
812
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.o4c_1;
|
|
813
813
|
StreamsExecutionContext.call($this, tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, newCurrentSubstitution, VOID, VOID, tmp_8, tmp3_elvis_lhs == null ? new SideEffectManagerImpl() : tmp3_elvis_lhs);
|
|
814
814
|
return $this;
|
|
815
815
|
}
|
|
@@ -817,16 +817,16 @@
|
|
|
817
817
|
return StreamsExecutionContext_init_$Init$(context, newCurrentSubstitution, objectCreate(protoOf(StreamsExecutionContext)));
|
|
818
818
|
}
|
|
819
819
|
function StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
820
|
-
return it.
|
|
820
|
+
return it.c1w();
|
|
821
821
|
}
|
|
822
822
|
function StreamsExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
823
823
|
return function () {
|
|
824
|
-
var tmp = asSequence(this$0.
|
|
824
|
+
var tmp = asSequence(this$0.o4c_1.t4c_1);
|
|
825
825
|
return toList(map(tmp, StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda));
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
828
|
function StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
|
|
829
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
829
|
+
unificator = unificator === VOID ? Companion_getInstance().c1l() : unificator;
|
|
830
830
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
831
831
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
832
832
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -845,150 +845,150 @@
|
|
|
845
845
|
tmp = maxDuration;
|
|
846
846
|
}
|
|
847
847
|
maxDuration = tmp;
|
|
848
|
-
solverStrategies = solverStrategies === VOID ? Companion_getInstance_6().
|
|
848
|
+
solverStrategies = solverStrategies === VOID ? Companion_getInstance_6().v4b_1 : solverStrategies;
|
|
849
849
|
sideEffectManager = sideEffectManager === VOID ? new SideEffectManagerImpl() : sideEffectManager;
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
853
|
-
this.
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
850
|
+
this.b4c_1 = unificator;
|
|
851
|
+
this.c4c_1 = libraries;
|
|
852
|
+
this.d4c_1 = flags;
|
|
853
|
+
this.e4c_1 = staticKb;
|
|
854
|
+
this.f4c_1 = dynamicKb;
|
|
855
|
+
this.g4c_1 = operators;
|
|
856
|
+
this.h4c_1 = inputChannels;
|
|
857
|
+
this.i4c_1 = outputChannels;
|
|
858
|
+
this.j4c_1 = customData;
|
|
859
|
+
this.k4c_1 = substitution;
|
|
860
|
+
this.l4c_1 = startTime;
|
|
861
|
+
this.m4c_1 = maxDuration;
|
|
862
|
+
this.n4c_1 = solverStrategies;
|
|
863
|
+
this.o4c_1 = sideEffectManager;
|
|
864
864
|
var tmp_0 = this;
|
|
865
|
-
tmp_0.
|
|
865
|
+
tmp_0.p4c_1 = lazy(StreamsExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
866
866
|
}
|
|
867
|
-
protoOf(StreamsExecutionContext).
|
|
868
|
-
return this.
|
|
867
|
+
protoOf(StreamsExecutionContext).f1l = function () {
|
|
868
|
+
return this.b4c_1;
|
|
869
869
|
};
|
|
870
|
-
protoOf(StreamsExecutionContext).
|
|
871
|
-
return this.
|
|
870
|
+
protoOf(StreamsExecutionContext).c1v = function () {
|
|
871
|
+
return this.c4c_1;
|
|
872
872
|
};
|
|
873
|
-
protoOf(StreamsExecutionContext).
|
|
874
|
-
return this.
|
|
873
|
+
protoOf(StreamsExecutionContext).d1v = function () {
|
|
874
|
+
return this.d4c_1;
|
|
875
875
|
};
|
|
876
|
-
protoOf(StreamsExecutionContext).
|
|
877
|
-
return this.
|
|
876
|
+
protoOf(StreamsExecutionContext).e1v = function () {
|
|
877
|
+
return this.e4c_1;
|
|
878
878
|
};
|
|
879
|
-
protoOf(StreamsExecutionContext).
|
|
880
|
-
return this.
|
|
879
|
+
protoOf(StreamsExecutionContext).f1v = function () {
|
|
880
|
+
return this.f4c_1;
|
|
881
881
|
};
|
|
882
|
-
protoOf(StreamsExecutionContext).
|
|
883
|
-
return this.
|
|
882
|
+
protoOf(StreamsExecutionContext).l1v = function () {
|
|
883
|
+
return this.g4c_1;
|
|
884
884
|
};
|
|
885
|
-
protoOf(StreamsExecutionContext).
|
|
886
|
-
return this.
|
|
885
|
+
protoOf(StreamsExecutionContext).g1v = function () {
|
|
886
|
+
return this.h4c_1;
|
|
887
887
|
};
|
|
888
|
-
protoOf(StreamsExecutionContext).
|
|
889
|
-
return this.
|
|
888
|
+
protoOf(StreamsExecutionContext).h1v = function () {
|
|
889
|
+
return this.i4c_1;
|
|
890
890
|
};
|
|
891
|
-
protoOf(StreamsExecutionContext).
|
|
892
|
-
return this.
|
|
891
|
+
protoOf(StreamsExecutionContext).a1v = function () {
|
|
892
|
+
return this.j4c_1;
|
|
893
893
|
};
|
|
894
|
-
protoOf(StreamsExecutionContext).
|
|
895
|
-
return this.
|
|
894
|
+
protoOf(StreamsExecutionContext).y1u = function () {
|
|
895
|
+
return this.k4c_1;
|
|
896
896
|
};
|
|
897
|
-
protoOf(StreamsExecutionContext).
|
|
898
|
-
return this.
|
|
897
|
+
protoOf(StreamsExecutionContext).s1u = function () {
|
|
898
|
+
return this.l4c_1;
|
|
899
899
|
};
|
|
900
|
-
protoOf(StreamsExecutionContext).
|
|
901
|
-
return this.
|
|
900
|
+
protoOf(StreamsExecutionContext).u1u = function () {
|
|
901
|
+
return this.m4c_1;
|
|
902
902
|
};
|
|
903
|
-
protoOf(StreamsExecutionContext).
|
|
903
|
+
protoOf(StreamsExecutionContext).x1u = function () {
|
|
904
904
|
// Inline function 'kotlin.collections.map' call
|
|
905
|
-
var this_0 = this.
|
|
905
|
+
var this_0 = this.o4c_1.t4c_1;
|
|
906
906
|
// Inline function 'kotlin.collections.mapTo' call
|
|
907
907
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
908
908
|
var tmp0_iterator = this_0.r();
|
|
909
909
|
while (tmp0_iterator.s()) {
|
|
910
910
|
var item = tmp0_iterator.u();
|
|
911
911
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.StreamsExecutionContext.<get-procedure>.<anonymous>' call
|
|
912
|
-
var tmp$ret$0 = item.
|
|
912
|
+
var tmp$ret$0 = item.c1w();
|
|
913
913
|
destination.o(tmp$ret$0);
|
|
914
914
|
}
|
|
915
915
|
return firstOrNull(destination);
|
|
916
916
|
};
|
|
917
|
-
protoOf(StreamsExecutionContext).
|
|
917
|
+
protoOf(StreamsExecutionContext).z1u = function () {
|
|
918
918
|
// Inline function 'kotlin.getValue' call
|
|
919
|
-
var this_0 = this.
|
|
919
|
+
var this_0 = this.p4c_1;
|
|
920
920
|
logicStackTrace$factory();
|
|
921
921
|
return this_0.r2();
|
|
922
922
|
};
|
|
923
|
-
protoOf(StreamsExecutionContext).
|
|
923
|
+
protoOf(StreamsExecutionContext).b1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
924
924
|
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels);
|
|
925
925
|
};
|
|
926
|
-
protoOf(StreamsExecutionContext).
|
|
926
|
+
protoOf(StreamsExecutionContext).i1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
927
927
|
var reason = 'Not yet implemented';
|
|
928
928
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
929
929
|
};
|
|
930
|
-
protoOf(StreamsExecutionContext).
|
|
930
|
+
protoOf(StreamsExecutionContext).o36 = function (sideEffect) {
|
|
931
931
|
var tmp = apply.call(this, sideEffect);
|
|
932
932
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
933
933
|
};
|
|
934
934
|
protoOf(StreamsExecutionContext).apply = function (sideEffect) {
|
|
935
|
-
return this.
|
|
935
|
+
return this.o36(sideEffect);
|
|
936
936
|
};
|
|
937
|
-
protoOf(StreamsExecutionContext).
|
|
937
|
+
protoOf(StreamsExecutionContext).p36 = function (sideEffects) {
|
|
938
938
|
var tmp = applyIterable.call(this, sideEffects);
|
|
939
939
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
940
940
|
};
|
|
941
941
|
protoOf(StreamsExecutionContext).applyIterable = function (sideEffects) {
|
|
942
|
-
return this.
|
|
942
|
+
return this.p36(sideEffects);
|
|
943
943
|
};
|
|
944
|
-
protoOf(StreamsExecutionContext).
|
|
944
|
+
protoOf(StreamsExecutionContext).q36 = function (sideEffects) {
|
|
945
945
|
var tmp = applySequence.call(this, sideEffects);
|
|
946
946
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
947
947
|
};
|
|
948
948
|
protoOf(StreamsExecutionContext).applySequence = function (sideEffects) {
|
|
949
|
-
return this.
|
|
949
|
+
return this.q36(sideEffects);
|
|
950
950
|
};
|
|
951
|
-
protoOf(StreamsExecutionContext).
|
|
952
|
-
return this.
|
|
951
|
+
protoOf(StreamsExecutionContext).k1v = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
952
|
+
return this.k4d(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData);
|
|
953
953
|
};
|
|
954
|
-
protoOf(StreamsExecutionContext).
|
|
954
|
+
protoOf(StreamsExecutionContext).b4e = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
|
|
955
955
|
return new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
956
956
|
};
|
|
957
|
-
protoOf(StreamsExecutionContext).
|
|
958
|
-
unificator = unificator === VOID ? this.
|
|
959
|
-
libraries = libraries === VOID ? this.
|
|
960
|
-
flags = flags === VOID ? this.
|
|
961
|
-
staticKb = staticKb === VOID ? this.
|
|
962
|
-
dynamicKb = dynamicKb === VOID ? this.
|
|
963
|
-
operators = operators === VOID ? this.
|
|
964
|
-
inputChannels = inputChannels === VOID ? this.
|
|
965
|
-
outputChannels = outputChannels === VOID ? this.
|
|
966
|
-
customData = customData === VOID ? this.
|
|
967
|
-
substitution = substitution === VOID ? this.
|
|
968
|
-
startTime = startTime === VOID ? this.
|
|
969
|
-
maxDuration = maxDuration === VOID ? this.
|
|
970
|
-
solverStrategies = solverStrategies === VOID ? this.
|
|
971
|
-
sideEffectManager = sideEffectManager === VOID ? this.
|
|
972
|
-
return $super === VOID ? this.
|
|
957
|
+
protoOf(StreamsExecutionContext).k4d = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $super) {
|
|
958
|
+
unificator = unificator === VOID ? this.b4c_1 : unificator;
|
|
959
|
+
libraries = libraries === VOID ? this.c4c_1 : libraries;
|
|
960
|
+
flags = flags === VOID ? this.d4c_1 : flags;
|
|
961
|
+
staticKb = staticKb === VOID ? this.e4c_1 : staticKb;
|
|
962
|
+
dynamicKb = dynamicKb === VOID ? this.f4c_1 : dynamicKb;
|
|
963
|
+
operators = operators === VOID ? this.g4c_1 : operators;
|
|
964
|
+
inputChannels = inputChannels === VOID ? this.h4c_1 : inputChannels;
|
|
965
|
+
outputChannels = outputChannels === VOID ? this.i4c_1 : outputChannels;
|
|
966
|
+
customData = customData === VOID ? this.j4c_1 : customData;
|
|
967
|
+
substitution = substitution === VOID ? this.k4c_1 : substitution;
|
|
968
|
+
startTime = startTime === VOID ? this.l4c_1 : startTime;
|
|
969
|
+
maxDuration = maxDuration === VOID ? this.m4c_1 : maxDuration;
|
|
970
|
+
solverStrategies = solverStrategies === VOID ? this.n4c_1 : solverStrategies;
|
|
971
|
+
sideEffectManager = sideEffectManager === VOID ? this.o4c_1 : sideEffectManager;
|
|
972
|
+
return $super === VOID ? this.b4e(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) : $super.b4e.call(this, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
973
973
|
};
|
|
974
974
|
protoOf(StreamsExecutionContext).toString = function () {
|
|
975
|
-
return 'StreamsExecutionContext(unificator=' + this.
|
|
975
|
+
return 'StreamsExecutionContext(unificator=' + this.b4c_1 + ', libraries=' + this.c4c_1 + ', flags=' + this.d4c_1 + ', staticKb=' + this.e4c_1 + ', dynamicKb=' + this.f4c_1 + ', operators=' + this.g4c_1 + ', inputChannels=' + this.h4c_1 + ', outputChannels=' + this.i4c_1 + ', customData=' + this.j4c_1 + ', substitution=' + this.k4c_1 + ', startTime=' + this.l4c_1.toString() + ', maxDuration=' + this.m4c_1.toString() + ', solverStrategies=' + this.n4c_1 + ', sideEffectManager=' + this.o4c_1 + ')';
|
|
976
976
|
};
|
|
977
977
|
protoOf(StreamsExecutionContext).hashCode = function () {
|
|
978
|
-
var result = hashCode(this.
|
|
979
|
-
result = imul(result, 31) + hashCode(this.
|
|
980
|
-
result = imul(result, 31) + this.
|
|
981
|
-
result = imul(result, 31) + hashCode(this.
|
|
982
|
-
result = imul(result, 31) + hashCode(this.
|
|
983
|
-
result = imul(result, 31) + this.
|
|
984
|
-
result = imul(result, 31) + hashCode(this.
|
|
985
|
-
result = imul(result, 31) + hashCode(this.
|
|
986
|
-
result = imul(result, 31) + this.
|
|
987
|
-
result = imul(result, 31) + hashCode(this.
|
|
988
|
-
result = imul(result, 31) + this.
|
|
989
|
-
result = imul(result, 31) + this.
|
|
990
|
-
result = imul(result, 31) + hashCode(this.
|
|
991
|
-
result = imul(result, 31) + this.
|
|
978
|
+
var result = hashCode(this.b4c_1);
|
|
979
|
+
result = imul(result, 31) + hashCode(this.c4c_1) | 0;
|
|
980
|
+
result = imul(result, 31) + this.d4c_1.hashCode() | 0;
|
|
981
|
+
result = imul(result, 31) + hashCode(this.e4c_1) | 0;
|
|
982
|
+
result = imul(result, 31) + hashCode(this.f4c_1) | 0;
|
|
983
|
+
result = imul(result, 31) + this.g4c_1.hashCode() | 0;
|
|
984
|
+
result = imul(result, 31) + hashCode(this.h4c_1) | 0;
|
|
985
|
+
result = imul(result, 31) + hashCode(this.i4c_1) | 0;
|
|
986
|
+
result = imul(result, 31) + this.j4c_1.hashCode() | 0;
|
|
987
|
+
result = imul(result, 31) + hashCode(this.k4c_1) | 0;
|
|
988
|
+
result = imul(result, 31) + this.l4c_1.hashCode() | 0;
|
|
989
|
+
result = imul(result, 31) + this.m4c_1.hashCode() | 0;
|
|
990
|
+
result = imul(result, 31) + hashCode(this.n4c_1) | 0;
|
|
991
|
+
result = imul(result, 31) + this.o4c_1.hashCode() | 0;
|
|
992
992
|
return result;
|
|
993
993
|
};
|
|
994
994
|
protoOf(StreamsExecutionContext).equals = function (other) {
|
|
@@ -997,64 +997,64 @@
|
|
|
997
997
|
if (!(other instanceof StreamsExecutionContext))
|
|
998
998
|
return false;
|
|
999
999
|
var tmp0_other_with_cast = other instanceof StreamsExecutionContext ? other : THROW_CCE();
|
|
1000
|
-
if (!equals(this.
|
|
1000
|
+
if (!equals(this.b4c_1, tmp0_other_with_cast.b4c_1))
|
|
1001
1001
|
return false;
|
|
1002
|
-
if (!equals(this.
|
|
1002
|
+
if (!equals(this.c4c_1, tmp0_other_with_cast.c4c_1))
|
|
1003
1003
|
return false;
|
|
1004
|
-
if (!this.
|
|
1004
|
+
if (!this.d4c_1.equals(tmp0_other_with_cast.d4c_1))
|
|
1005
1005
|
return false;
|
|
1006
|
-
if (!equals(this.
|
|
1006
|
+
if (!equals(this.e4c_1, tmp0_other_with_cast.e4c_1))
|
|
1007
1007
|
return false;
|
|
1008
|
-
if (!equals(this.
|
|
1008
|
+
if (!equals(this.f4c_1, tmp0_other_with_cast.f4c_1))
|
|
1009
1009
|
return false;
|
|
1010
|
-
if (!this.
|
|
1010
|
+
if (!this.g4c_1.equals(tmp0_other_with_cast.g4c_1))
|
|
1011
1011
|
return false;
|
|
1012
|
-
if (!equals(this.
|
|
1012
|
+
if (!equals(this.h4c_1, tmp0_other_with_cast.h4c_1))
|
|
1013
1013
|
return false;
|
|
1014
|
-
if (!equals(this.
|
|
1014
|
+
if (!equals(this.i4c_1, tmp0_other_with_cast.i4c_1))
|
|
1015
1015
|
return false;
|
|
1016
|
-
if (!this.
|
|
1016
|
+
if (!this.j4c_1.equals(tmp0_other_with_cast.j4c_1))
|
|
1017
1017
|
return false;
|
|
1018
|
-
if (!equals(this.
|
|
1018
|
+
if (!equals(this.k4c_1, tmp0_other_with_cast.k4c_1))
|
|
1019
1019
|
return false;
|
|
1020
|
-
if (!this.
|
|
1020
|
+
if (!this.l4c_1.equals(tmp0_other_with_cast.l4c_1))
|
|
1021
1021
|
return false;
|
|
1022
|
-
if (!this.
|
|
1022
|
+
if (!this.m4c_1.equals(tmp0_other_with_cast.m4c_1))
|
|
1023
1023
|
return false;
|
|
1024
|
-
if (!equals(this.
|
|
1024
|
+
if (!equals(this.n4c_1, tmp0_other_with_cast.n4c_1))
|
|
1025
1025
|
return false;
|
|
1026
|
-
if (!this.
|
|
1026
|
+
if (!this.o4c_1.equals(tmp0_other_with_cast.o4c_1))
|
|
1027
1027
|
return false;
|
|
1028
1028
|
return true;
|
|
1029
1029
|
};
|
|
1030
1030
|
function getSideEffectManager(_this__u8e3s4) {
|
|
1031
1031
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof StreamsExecutionContext ? _this__u8e3s4 : null;
|
|
1032
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1032
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o4c_1;
|
|
1033
1033
|
}
|
|
1034
1034
|
function logicStackTrace$factory() {
|
|
1035
1035
|
return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
|
|
1036
|
-
return receiver.
|
|
1036
|
+
return receiver.z1u();
|
|
1037
1037
|
}, null);
|
|
1038
1038
|
}
|
|
1039
1039
|
function AbstractState(solve) {
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1040
|
+
this.c4e_1 = solve;
|
|
1041
|
+
this.d4e_1 = false;
|
|
1042
1042
|
}
|
|
1043
|
-
protoOf(AbstractState).
|
|
1044
|
-
return this.
|
|
1043
|
+
protoOf(AbstractState).e4e = function () {
|
|
1044
|
+
return this.d4e_1;
|
|
1045
1045
|
};
|
|
1046
1046
|
function AlreadyExecutedState(wrappedState) {
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1047
|
+
this.g4e_1 = wrappedState;
|
|
1048
|
+
this.h4e_1 = true;
|
|
1049
1049
|
}
|
|
1050
|
-
protoOf(AlreadyExecutedState).
|
|
1051
|
-
return this.
|
|
1050
|
+
protoOf(AlreadyExecutedState).f4e = function () {
|
|
1051
|
+
return this.g4e_1.f4e();
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(AlreadyExecutedState).
|
|
1054
|
-
return this.
|
|
1053
|
+
protoOf(AlreadyExecutedState).e4e = function () {
|
|
1054
|
+
return this.h4e_1;
|
|
1055
1055
|
};
|
|
1056
1056
|
protoOf(AlreadyExecutedState).toString = function () {
|
|
1057
|
-
return 'AlreadyExecutedState of: ' + this.
|
|
1057
|
+
return 'AlreadyExecutedState of: ' + this.g4e_1;
|
|
1058
1058
|
};
|
|
1059
1059
|
function asAlreadyExecuted(_this__u8e3s4) {
|
|
1060
1060
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof AlreadyExecutedState ? _this__u8e3s4 : null;
|
|
@@ -1076,7 +1076,7 @@
|
|
|
1076
1076
|
}
|
|
1077
1077
|
function internalExecute($this, state) {
|
|
1078
1078
|
var tmp;
|
|
1079
|
-
if (state.
|
|
1079
|
+
if (state.e4e()) {
|
|
1080
1080
|
tmp = sequenceOf([state]);
|
|
1081
1081
|
} else {
|
|
1082
1082
|
tmp = sequence(StateMachineExecutor$internalExecute$slambda_0(state, null));
|
|
@@ -1084,23 +1084,23 @@
|
|
|
1084
1084
|
return tmp;
|
|
1085
1085
|
}
|
|
1086
1086
|
function StateMachineExecutor$execute$lambda(it) {
|
|
1087
|
-
return StateMachineExecutor_instance.
|
|
1087
|
+
return StateMachineExecutor_instance.i4e(it);
|
|
1088
1088
|
}
|
|
1089
1089
|
function StateMachineExecutor$executeWrapping$lambda(it) {
|
|
1090
1090
|
return asAlreadyExecuted(it);
|
|
1091
1091
|
}
|
|
1092
1092
|
function StateMachineExecutor$internalExecute$slambda($state, resultContinuation) {
|
|
1093
|
-
this.
|
|
1093
|
+
this.r4e_1 = $state;
|
|
1094
1094
|
CoroutineImpl.call(this, resultContinuation);
|
|
1095
1095
|
}
|
|
1096
|
-
protoOf(StateMachineExecutor$internalExecute$slambda).
|
|
1097
|
-
var tmp = this.
|
|
1096
|
+
protoOf(StateMachineExecutor$internalExecute$slambda).x4e = function ($this$sequence, $completion) {
|
|
1097
|
+
var tmp = this.y4e($this$sequence, $completion);
|
|
1098
1098
|
tmp.pc_1 = Unit_instance;
|
|
1099
1099
|
tmp.qc_1 = null;
|
|
1100
1100
|
return tmp.yc();
|
|
1101
1101
|
};
|
|
1102
1102
|
protoOf(StateMachineExecutor$internalExecute$slambda).ld = function (p1, $completion) {
|
|
1103
|
-
return this.
|
|
1103
|
+
return this.x4e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1104
1104
|
};
|
|
1105
1105
|
protoOf(StateMachineExecutor$internalExecute$slambda).yc = function () {
|
|
1106
1106
|
var suspendResult = this.pc_1;
|
|
@@ -1111,7 +1111,7 @@
|
|
|
1111
1111
|
case 0:
|
|
1112
1112
|
this.oc_1 = 5;
|
|
1113
1113
|
this.nc_1 = 1;
|
|
1114
|
-
suspendResult = this.
|
|
1114
|
+
suspendResult = this.s4e_1.ef(this.r4e_1, this);
|
|
1115
1115
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1116
1116
|
return suspendResult;
|
|
1117
1117
|
}
|
|
@@ -1119,21 +1119,21 @@
|
|
|
1119
1119
|
continue $sm;
|
|
1120
1120
|
case 1:
|
|
1121
1121
|
var tmp_0 = this;
|
|
1122
|
-
tmp_0.
|
|
1123
|
-
this.
|
|
1122
|
+
tmp_0.t4e_1 = this.r4e_1.f4e();
|
|
1123
|
+
this.u4e_1 = this.t4e_1.r();
|
|
1124
1124
|
this.nc_1 = 2;
|
|
1125
1125
|
continue $sm;
|
|
1126
1126
|
case 2:
|
|
1127
|
-
if (!this.
|
|
1127
|
+
if (!this.u4e_1.s()) {
|
|
1128
1128
|
this.nc_1 = 4;
|
|
1129
1129
|
continue $sm;
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
this.
|
|
1132
|
+
this.v4e_1 = this.u4e_1.u();
|
|
1133
1133
|
var tmp_1 = this;
|
|
1134
|
-
tmp_1.
|
|
1134
|
+
tmp_1.w4e_1 = this.v4e_1;
|
|
1135
1135
|
this.nc_1 = 3;
|
|
1136
|
-
suspendResult = this.
|
|
1136
|
+
suspendResult = this.s4e_1.hf(internalExecute(StateMachineExecutor_instance, this.w4e_1), this);
|
|
1137
1137
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1138
1138
|
return suspendResult;
|
|
1139
1139
|
}
|
|
@@ -1158,24 +1158,24 @@
|
|
|
1158
1158
|
}
|
|
1159
1159
|
while (true);
|
|
1160
1160
|
};
|
|
1161
|
-
protoOf(StateMachineExecutor$internalExecute$slambda).
|
|
1162
|
-
var i = new StateMachineExecutor$internalExecute$slambda(this.
|
|
1163
|
-
i.
|
|
1161
|
+
protoOf(StateMachineExecutor$internalExecute$slambda).y4e = function ($this$sequence, completion) {
|
|
1162
|
+
var i = new StateMachineExecutor$internalExecute$slambda(this.r4e_1, completion);
|
|
1163
|
+
i.s4e_1 = $this$sequence;
|
|
1164
1164
|
return i;
|
|
1165
1165
|
};
|
|
1166
1166
|
function StateMachineExecutor$internalExecute$slambda_0($state, resultContinuation) {
|
|
1167
1167
|
var i = new StateMachineExecutor$internalExecute$slambda($state, resultContinuation);
|
|
1168
1168
|
var l = function ($this$sequence, $completion) {
|
|
1169
|
-
return i.
|
|
1169
|
+
return i.x4e($this$sequence, $completion);
|
|
1170
1170
|
};
|
|
1171
1171
|
l.$arity = 1;
|
|
1172
1172
|
return l;
|
|
1173
1173
|
}
|
|
1174
1174
|
function StateMachineExecutor() {
|
|
1175
1175
|
}
|
|
1176
|
-
protoOf(StateMachineExecutor).
|
|
1176
|
+
protoOf(StateMachineExecutor).y4b = function (state) {
|
|
1177
1177
|
var tmp;
|
|
1178
|
-
if (state.
|
|
1178
|
+
if (state.e4e()) {
|
|
1179
1179
|
tmp = emptySequence();
|
|
1180
1180
|
} else {
|
|
1181
1181
|
var tmp_0 = drop_0(internalExecute(this, state), 1);
|
|
@@ -1183,14 +1183,14 @@
|
|
|
1183
1183
|
}
|
|
1184
1184
|
return tmp;
|
|
1185
1185
|
};
|
|
1186
|
-
protoOf(StateMachineExecutor).
|
|
1187
|
-
var tmp = this.
|
|
1186
|
+
protoOf(StateMachineExecutor).z4e = function (state) {
|
|
1187
|
+
var tmp = this.y4b(state);
|
|
1188
1188
|
return map(tmp, StateMachineExecutor$executeWrapping$lambda);
|
|
1189
1189
|
};
|
|
1190
|
-
protoOf(StateMachineExecutor).
|
|
1190
|
+
protoOf(StateMachineExecutor).i4e = function (_this__u8e3s4) {
|
|
1191
1191
|
var tmp;
|
|
1192
1192
|
if (_this__u8e3s4 instanceof AlreadyExecutedState) {
|
|
1193
|
-
tmp = _this__u8e3s4.
|
|
1193
|
+
tmp = _this__u8e3s4.g4e_1;
|
|
1194
1194
|
} else {
|
|
1195
1195
|
tmp = _this__u8e3s4;
|
|
1196
1196
|
}
|
|
@@ -1201,11 +1201,11 @@
|
|
|
1201
1201
|
return StateMachineExecutor_instance;
|
|
1202
1202
|
}
|
|
1203
1203
|
function statEndHaltTimeout(_this__u8e3s4, $this) {
|
|
1204
|
-
return stateEndHalt(_this__u8e3s4, TimeOutException_init_$Create$('Given time for `' + _this__u8e3s4.
|
|
1204
|
+
return stateEndHalt(_this__u8e3s4, TimeOutException_init_$Create$('Given time for `' + _this__u8e3s4.w4b().c1w() + '` computation (' + _this__u8e3s4.w4b().r29_1.toString() + ") wasn't enough for completion", VOID, _this__u8e3s4.w4b().context, _this__u8e3s4.w4b().r29_1), VOID, []);
|
|
1205
1205
|
}
|
|
1206
1206
|
function _get_stateCurrentTime__3c8uza($this) {
|
|
1207
1207
|
// Inline function 'kotlin.getValue' call
|
|
1208
|
-
var this_0 = $this.
|
|
1208
|
+
var this_0 = $this.d4f_1;
|
|
1209
1209
|
stateCurrentTime$factory();
|
|
1210
1210
|
return this_0.r2();
|
|
1211
1211
|
}
|
|
@@ -1223,33 +1223,33 @@
|
|
|
1223
1223
|
}
|
|
1224
1224
|
function AbstractTimedState(solve) {
|
|
1225
1225
|
AbstractState.call(this, solve);
|
|
1226
|
-
this.
|
|
1226
|
+
this.c4f_1 = solve;
|
|
1227
1227
|
var tmp = this;
|
|
1228
|
-
tmp.
|
|
1228
|
+
tmp.d4f_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
|
|
1229
1229
|
}
|
|
1230
|
-
protoOf(AbstractTimedState).
|
|
1231
|
-
return this.
|
|
1230
|
+
protoOf(AbstractTimedState).w4b = function () {
|
|
1231
|
+
return this.c4f_1;
|
|
1232
1232
|
};
|
|
1233
|
-
protoOf(AbstractTimedState).
|
|
1233
|
+
protoOf(AbstractTimedState).f4e = function () {
|
|
1234
1234
|
var tmp;
|
|
1235
|
-
var tmp_0 = this.
|
|
1235
|
+
var tmp_0 = this.w4b().r29_1;
|
|
1236
1236
|
Companion_getInstance_3();
|
|
1237
1237
|
if (tmp_0.equals(new Long(-1, 2147483647))) {
|
|
1238
|
-
tmp = this.
|
|
1238
|
+
tmp = this.e4f();
|
|
1239
1239
|
} else {
|
|
1240
|
-
if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).pb(this.
|
|
1240
|
+
if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).pb(this.w4b().q29_1), this.w4b().r29_1)) {
|
|
1241
1241
|
tmp = sequenceOf([statEndHaltTimeout(this, Companion_instance_13)]);
|
|
1242
1242
|
} else {
|
|
1243
|
-
tmp = this.
|
|
1243
|
+
tmp = this.e4f();
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
return tmp;
|
|
1247
1247
|
};
|
|
1248
|
-
protoOf(AbstractTimedState).
|
|
1249
|
-
return timeIsOver(this, currentTimeInstant().pb(_this__u8e3s4.
|
|
1248
|
+
protoOf(AbstractTimedState).f4f = function (_this__u8e3s4, toYieldState) {
|
|
1249
|
+
return timeIsOver(this, currentTimeInstant().pb(_this__u8e3s4.w4b().q29_1), _this__u8e3s4.w4b().r29_1) ? statEndHaltTimeout(_this__u8e3s4, Companion_instance_13) : toYieldState;
|
|
1250
1250
|
};
|
|
1251
1251
|
protoOf(AbstractTimedState).toString = function () {
|
|
1252
|
-
return '' + getKClassFromExpression(this) + ' with ' + this.
|
|
1252
|
+
return '' + getKClassFromExpression(this) + ' with ' + this.w4b();
|
|
1253
1253
|
};
|
|
1254
1254
|
function stateCurrentTime$factory() {
|
|
1255
1255
|
return getPropertyCallableRef('stateCurrentTime', 1, KProperty1, function (receiver) {
|
|
@@ -1258,32 +1258,32 @@
|
|
|
1258
1258
|
}
|
|
1259
1259
|
function StateEnd$Halt$exception$delegate$lambda(this$0) {
|
|
1260
1260
|
return function () {
|
|
1261
|
-
var tmp = this$0.
|
|
1262
|
-
return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).
|
|
1261
|
+
var tmp = this$0.m4f_1.solution;
|
|
1262
|
+
return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).f1w();
|
|
1263
1263
|
};
|
|
1264
1264
|
}
|
|
1265
1265
|
function True(sourceContext, solve) {
|
|
1266
1266
|
StateEnd.call(this, sourceContext, solve);
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1267
|
+
this.t4f_1 = sourceContext;
|
|
1268
|
+
this.u4f_1 = solve;
|
|
1269
1269
|
// Inline function 'kotlin.require' call
|
|
1270
|
-
var tmp = this.
|
|
1270
|
+
var tmp = this.u4f_1.solution;
|
|
1271
1271
|
// Inline function 'kotlin.contracts.contract' call
|
|
1272
1272
|
if (!isInterface(tmp, Yes)) {
|
|
1273
1273
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.True.<anonymous>' call
|
|
1274
|
-
var message = 'True end state can be created only with Solution.Yes. Current: `' + this.
|
|
1274
|
+
var message = 'True end state can be created only with Solution.Yes. Current: `' + this.u4f_1.solution + '`';
|
|
1275
1275
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
protoOf(True).
|
|
1279
|
-
return this.
|
|
1278
|
+
protoOf(True).w4b = function () {
|
|
1279
|
+
return this.u4f_1;
|
|
1280
1280
|
};
|
|
1281
1281
|
protoOf(True).toString = function () {
|
|
1282
|
-
return 'True(sourceContext=' + this.
|
|
1282
|
+
return 'True(sourceContext=' + this.t4f_1 + ', solve=' + this.u4f_1 + ')';
|
|
1283
1283
|
};
|
|
1284
1284
|
protoOf(True).hashCode = function () {
|
|
1285
|
-
var result = hashCode(this.
|
|
1286
|
-
result = imul(result, 31) + this.
|
|
1285
|
+
var result = hashCode(this.t4f_1);
|
|
1286
|
+
result = imul(result, 31) + this.u4f_1.hashCode() | 0;
|
|
1287
1287
|
return result;
|
|
1288
1288
|
};
|
|
1289
1289
|
protoOf(True).equals = function (other) {
|
|
@@ -1292,34 +1292,34 @@
|
|
|
1292
1292
|
if (!(other instanceof True))
|
|
1293
1293
|
return false;
|
|
1294
1294
|
var tmp0_other_with_cast = other instanceof True ? other : THROW_CCE();
|
|
1295
|
-
if (!equals(this.
|
|
1295
|
+
if (!equals(this.t4f_1, tmp0_other_with_cast.t4f_1))
|
|
1296
1296
|
return false;
|
|
1297
|
-
if (!this.
|
|
1297
|
+
if (!this.u4f_1.equals(tmp0_other_with_cast.u4f_1))
|
|
1298
1298
|
return false;
|
|
1299
1299
|
return true;
|
|
1300
1300
|
};
|
|
1301
1301
|
function False(sourceContext, solve) {
|
|
1302
1302
|
StateEnd.call(this, sourceContext, solve);
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1303
|
+
this.f4g_1 = sourceContext;
|
|
1304
|
+
this.g4g_1 = solve;
|
|
1305
1305
|
// Inline function 'kotlin.require' call
|
|
1306
|
-
var tmp = this.
|
|
1306
|
+
var tmp = this.g4g_1.solution;
|
|
1307
1307
|
// Inline function 'kotlin.contracts.contract' call
|
|
1308
1308
|
if (!isInterface(tmp, No)) {
|
|
1309
1309
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.False.<anonymous>' call
|
|
1310
|
-
var message = 'False end state can be created only with Solution.No. Current: `' + this.
|
|
1310
|
+
var message = 'False end state can be created only with Solution.No. Current: `' + this.g4g_1.solution + '`';
|
|
1311
1311
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
|
-
protoOf(False).
|
|
1315
|
-
return this.
|
|
1314
|
+
protoOf(False).w4b = function () {
|
|
1315
|
+
return this.g4g_1;
|
|
1316
1316
|
};
|
|
1317
1317
|
protoOf(False).toString = function () {
|
|
1318
|
-
return 'False(sourceContext=' + this.
|
|
1318
|
+
return 'False(sourceContext=' + this.f4g_1 + ', solve=' + this.g4g_1 + ')';
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf(False).hashCode = function () {
|
|
1321
|
-
var result = hashCode(this.
|
|
1322
|
-
result = imul(result, 31) + this.
|
|
1321
|
+
var result = hashCode(this.f4g_1);
|
|
1322
|
+
result = imul(result, 31) + this.g4g_1.hashCode() | 0;
|
|
1323
1323
|
return result;
|
|
1324
1324
|
};
|
|
1325
1325
|
protoOf(False).equals = function (other) {
|
|
@@ -1328,36 +1328,36 @@
|
|
|
1328
1328
|
if (!(other instanceof False))
|
|
1329
1329
|
return false;
|
|
1330
1330
|
var tmp0_other_with_cast = other instanceof False ? other : THROW_CCE();
|
|
1331
|
-
if (!equals(this.
|
|
1331
|
+
if (!equals(this.f4g_1, tmp0_other_with_cast.f4g_1))
|
|
1332
1332
|
return false;
|
|
1333
|
-
if (!this.
|
|
1333
|
+
if (!this.g4g_1.equals(tmp0_other_with_cast.g4g_1))
|
|
1334
1334
|
return false;
|
|
1335
1335
|
return true;
|
|
1336
1336
|
};
|
|
1337
1337
|
function Halt_0(sourceContext, solve) {
|
|
1338
1338
|
StateEnd.call(this, sourceContext, solve);
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1339
|
+
this.l4f_1 = sourceContext;
|
|
1340
|
+
this.m4f_1 = solve;
|
|
1341
1341
|
// Inline function 'kotlin.require' call
|
|
1342
|
-
var tmp = this.
|
|
1342
|
+
var tmp = this.m4f_1.solution;
|
|
1343
1343
|
// Inline function 'kotlin.contracts.contract' call
|
|
1344
1344
|
if (!isInterface(tmp, Halt)) {
|
|
1345
1345
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Halt.<anonymous>' call
|
|
1346
|
-
var message = 'Halt end state can be created only with Solution.Halt. Current: `' + this.
|
|
1346
|
+
var message = 'Halt end state can be created only with Solution.Halt. Current: `' + this.m4f_1.solution + '`';
|
|
1347
1347
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1348
1348
|
}
|
|
1349
1349
|
var tmp_0 = this;
|
|
1350
|
-
tmp_0.
|
|
1350
|
+
tmp_0.n4f_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
|
|
1351
1351
|
}
|
|
1352
|
-
protoOf(Halt_0).
|
|
1353
|
-
return this.
|
|
1352
|
+
protoOf(Halt_0).w4b = function () {
|
|
1353
|
+
return this.m4f_1;
|
|
1354
1354
|
};
|
|
1355
1355
|
protoOf(Halt_0).toString = function () {
|
|
1356
|
-
return 'Halt(sourceContext=' + this.
|
|
1356
|
+
return 'Halt(sourceContext=' + this.l4f_1 + ', solve=' + this.m4f_1 + ')';
|
|
1357
1357
|
};
|
|
1358
1358
|
protoOf(Halt_0).hashCode = function () {
|
|
1359
|
-
var result = hashCode(this.
|
|
1360
|
-
result = imul(result, 31) + this.
|
|
1359
|
+
var result = hashCode(this.l4f_1);
|
|
1360
|
+
result = imul(result, 31) + this.m4f_1.hashCode() | 0;
|
|
1361
1361
|
return result;
|
|
1362
1362
|
};
|
|
1363
1363
|
protoOf(Halt_0).equals = function (other) {
|
|
@@ -1366,35 +1366,35 @@
|
|
|
1366
1366
|
if (!(other instanceof Halt_0))
|
|
1367
1367
|
return false;
|
|
1368
1368
|
var tmp0_other_with_cast = other instanceof Halt_0 ? other : THROW_CCE();
|
|
1369
|
-
if (!equals(this.
|
|
1369
|
+
if (!equals(this.l4f_1, tmp0_other_with_cast.l4f_1))
|
|
1370
1370
|
return false;
|
|
1371
|
-
if (!this.
|
|
1371
|
+
if (!this.m4f_1.equals(tmp0_other_with_cast.m4f_1))
|
|
1372
1372
|
return false;
|
|
1373
1373
|
return true;
|
|
1374
1374
|
};
|
|
1375
1375
|
function StateEnd$context$delegate$lambda(this$0) {
|
|
1376
1376
|
return function () {
|
|
1377
|
-
var tmp = this$0.
|
|
1377
|
+
var tmp = this$0.w4b().solution.y1u();
|
|
1378
1378
|
var tmp0_elvis_lhs = isInterface(tmp, Unifier) ? tmp : null;
|
|
1379
|
-
return StreamsExecutionContext_init_$Create$(this$0.
|
|
1379
|
+
return StreamsExecutionContext_init_$Create$(this$0.x4f_1, tmp0_elvis_lhs == null ? Companion_getInstance_2().empty() : tmp0_elvis_lhs);
|
|
1380
1380
|
};
|
|
1381
1381
|
}
|
|
1382
1382
|
function StateEnd(sourceContext, solve) {
|
|
1383
1383
|
AbstractState.call(this, solve);
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1384
|
+
this.x4f_1 = sourceContext;
|
|
1385
|
+
this.y4f_1 = solve;
|
|
1386
1386
|
var tmp = this;
|
|
1387
|
-
tmp.
|
|
1387
|
+
tmp.z4f_1 = lazy(StateEnd$context$delegate$lambda(this));
|
|
1388
1388
|
}
|
|
1389
|
-
protoOf(StateEnd).
|
|
1390
|
-
return this.
|
|
1389
|
+
protoOf(StateEnd).w4b = function () {
|
|
1390
|
+
return this.y4f_1;
|
|
1391
1391
|
};
|
|
1392
|
-
protoOf(StateEnd).
|
|
1392
|
+
protoOf(StateEnd).f4e = function () {
|
|
1393
1393
|
return emptySequence();
|
|
1394
1394
|
};
|
|
1395
1395
|
protoOf(StateEnd).uc = function () {
|
|
1396
1396
|
// Inline function 'kotlin.getValue' call
|
|
1397
|
-
var this_0 = this.
|
|
1397
|
+
var this_0 = this.z4f_1;
|
|
1398
1398
|
context$factory();
|
|
1399
1399
|
return this_0.r2();
|
|
1400
1400
|
};
|
|
@@ -1402,21 +1402,21 @@
|
|
|
1402
1402
|
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
1403
1403
|
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1404
1404
|
var tmp = _this__u8e3s4.uc();
|
|
1405
|
-
var tmp_0 = _this__u8e3s4.
|
|
1406
|
-
return new True(tmp, tmp_0.
|
|
1405
|
+
var tmp_0 = _this__u8e3s4.w4b();
|
|
1406
|
+
return new True(tmp, tmp_0.h2i(substitution, sideEffectManager == null ? getSideEffectManager(_this__u8e3s4.w4b().context) : sideEffectManager, sideEffects.slice()));
|
|
1407
1407
|
}
|
|
1408
1408
|
function stateEndFalse(_this__u8e3s4, sideEffectManager, sideEffects) {
|
|
1409
1409
|
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1410
1410
|
var tmp = _this__u8e3s4.uc();
|
|
1411
|
-
var tmp_0 = _this__u8e3s4.
|
|
1412
|
-
return new False(tmp, tmp_0.
|
|
1411
|
+
var tmp_0 = _this__u8e3s4.w4b();
|
|
1412
|
+
return new False(tmp, tmp_0.i2i(sideEffectManager == null ? getSideEffectManager(_this__u8e3s4.w4b().context) : sideEffectManager, sideEffects.slice()));
|
|
1413
1413
|
}
|
|
1414
1414
|
function stateEndHalt(_this__u8e3s4, exception, sideEffectManager, sideEffects) {
|
|
1415
1415
|
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1416
1416
|
var tmp = _this__u8e3s4.uc();
|
|
1417
|
-
var tmp_0 = _this__u8e3s4.
|
|
1417
|
+
var tmp_0 = _this__u8e3s4.w4b();
|
|
1418
1418
|
var tmp1_elvis_lhs = sideEffectManager == null ? getSideEffectManager(exception.uc()) : sideEffectManager;
|
|
1419
|
-
return new Halt_0(tmp, tmp_0.
|
|
1419
|
+
return new Halt_0(tmp, tmp_0.j2i(exception, tmp1_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.w4b().context) : tmp1_elvis_lhs, sideEffects.slice()));
|
|
1420
1420
|
}
|
|
1421
1421
|
function stateEnd(_this__u8e3s4, response) {
|
|
1422
1422
|
// Inline function 'kotlin.with' call
|
|
@@ -1436,7 +1436,7 @@
|
|
|
1436
1436
|
function stateEnd$lambda($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
1437
1437
|
return function (sol) {
|
|
1438
1438
|
// Inline function 'kotlin.takeUnless' call
|
|
1439
|
-
var this_0 = sol.
|
|
1439
|
+
var this_0 = sol.y1u();
|
|
1440
1440
|
// Inline function 'kotlin.contracts.contract' call
|
|
1441
1441
|
var tmp;
|
|
1442
1442
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.stateEnd.<anonymous>.<anonymous>' call
|
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
tmp = null;
|
|
1447
1447
|
}
|
|
1448
1448
|
var tmp0_elvis_lhs = tmp;
|
|
1449
|
-
return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.
|
|
1449
|
+
return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.w4b().context.y1u() : tmp0_elvis_lhs, $sideEffectManager, $sideEffects.slice());
|
|
1450
1450
|
};
|
|
1451
1451
|
}
|
|
1452
1452
|
function stateEnd$lambda_0($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
@@ -1456,7 +1456,7 @@
|
|
|
1456
1456
|
}
|
|
1457
1457
|
function stateEnd$lambda_1($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
1458
1458
|
return function (it) {
|
|
1459
|
-
return stateEndHalt($this_stateEnd, it.
|
|
1459
|
+
return stateEndHalt($this_stateEnd, it.f1w(), $sideEffectManager, $sideEffects.slice());
|
|
1460
1460
|
};
|
|
1461
1461
|
}
|
|
1462
1462
|
function context$factory() {
|
|
@@ -1468,9 +1468,9 @@
|
|
|
1468
1468
|
var tmp = Companion_getInstance_4();
|
|
1469
1469
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1470
1470
|
var tmp$ret$0 = Throw_getInstance().signature.name;
|
|
1471
|
-
var tmp_0 = tmp.of(tmp$ret$0, [error.
|
|
1471
|
+
var tmp_0 = tmp.of(tmp$ret$0, [error.c25()]);
|
|
1472
1472
|
var tmp0_elvis_lhs = getSideEffectManager(error.uc());
|
|
1473
|
-
return newSolveRequest(_this__u8e3s4, tmp_0, VOID, VOID, tmp0_elvis_lhs == null ? _this__u8e3s4.context.
|
|
1473
|
+
return newSolveRequest(_this__u8e3s4, tmp_0, VOID, VOID, tmp0_elvis_lhs == null ? _this__u8e3s4.context.o4c_1 : tmp0_elvis_lhs, currentTimeInstant());
|
|
1474
1474
|
}
|
|
1475
1475
|
function Companion_2() {
|
|
1476
1476
|
}
|
|
@@ -1479,17 +1479,17 @@
|
|
|
1479
1479
|
return Companion_instance_14;
|
|
1480
1480
|
}
|
|
1481
1481
|
function StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1482
|
-
this.
|
|
1482
|
+
this.p4g_1 = this$0;
|
|
1483
1483
|
CoroutineImpl.call(this, resultContinuation);
|
|
1484
1484
|
}
|
|
1485
|
-
protoOf(StateGoalEvaluation$behaveTimed$slambda).
|
|
1486
|
-
var tmp = this.
|
|
1485
|
+
protoOf(StateGoalEvaluation$behaveTimed$slambda).x4e = function ($this$sequence, $completion) {
|
|
1486
|
+
var tmp = this.y4e($this$sequence, $completion);
|
|
1487
1487
|
tmp.pc_1 = Unit_instance;
|
|
1488
1488
|
tmp.qc_1 = null;
|
|
1489
1489
|
return tmp.yc();
|
|
1490
1490
|
};
|
|
1491
1491
|
protoOf(StateGoalEvaluation$behaveTimed$slambda).ld = function (p1, $completion) {
|
|
1492
|
-
return this.
|
|
1492
|
+
return this.x4e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1493
1493
|
};
|
|
1494
1494
|
protoOf(StateGoalEvaluation$behaveTimed$slambda).yc = function () {
|
|
1495
1495
|
var suspendResult = this.pc_1;
|
|
@@ -1500,21 +1500,21 @@
|
|
|
1500
1500
|
case 0:
|
|
1501
1501
|
this.oc_1 = 11;
|
|
1502
1502
|
var tmp_0 = this;
|
|
1503
|
-
var $this$with = this.
|
|
1504
|
-
tmp_0.
|
|
1505
|
-
this.
|
|
1506
|
-
if (this.
|
|
1507
|
-
this.
|
|
1503
|
+
var $this$with = this.p4g_1.m4h_1;
|
|
1504
|
+
tmp_0.r4g_1 = $this$with.context.c4c_1.i2e().x2($this$with.signature);
|
|
1505
|
+
this.s4g_1 = this.r4g_1;
|
|
1506
|
+
if (this.s4g_1 == null) {
|
|
1507
|
+
this.t4g_1 = null;
|
|
1508
1508
|
this.nc_1 = 8;
|
|
1509
1509
|
continue $sm;
|
|
1510
1510
|
} else {
|
|
1511
1511
|
var tmp_1 = this;
|
|
1512
|
-
tmp_1.
|
|
1512
|
+
tmp_1.u4g_1 = this.s4g_1;
|
|
1513
1513
|
var tmp_2 = this;
|
|
1514
|
-
tmp_2.
|
|
1515
|
-
this.
|
|
1514
|
+
tmp_2.v4g_1 = this.u4g_1;
|
|
1515
|
+
this.w4g_1 = null;
|
|
1516
1516
|
this.oc_1 = 1;
|
|
1517
|
-
this.
|
|
1517
|
+
this.w4g_1 = this.r4g_1.solve(this.p4g_1.m4h_1);
|
|
1518
1518
|
this.oc_1 = 11;
|
|
1519
1519
|
this.nc_1 = 3;
|
|
1520
1520
|
continue $sm;
|
|
@@ -1524,9 +1524,9 @@
|
|
|
1524
1524
|
this.oc_1 = 11;
|
|
1525
1525
|
var tmp_3 = this.qc_1;
|
|
1526
1526
|
if (tmp_3 instanceof HaltException) {
|
|
1527
|
-
this.
|
|
1527
|
+
this.x4g_1 = this.qc_1;
|
|
1528
1528
|
this.nc_1 = 2;
|
|
1529
|
-
suspendResult = this.
|
|
1529
|
+
suspendResult = this.q4g_1.ef(stateEndHalt(this.p4g_1, this.x4g_1, VOID, []), this);
|
|
1530
1530
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1531
1531
|
return suspendResult;
|
|
1532
1532
|
}
|
|
@@ -1534,8 +1534,8 @@
|
|
|
1534
1534
|
} else {
|
|
1535
1535
|
var tmp_4 = this.qc_1;
|
|
1536
1536
|
if (tmp_4 instanceof LogicError) {
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1537
|
+
this.y4g_1 = this.qc_1;
|
|
1538
|
+
this.w4g_1 = Companion_instance_12.z4b(newThrowSolveRequest(this.p4g_1.m4h_1, Companion_instance_14, this.y4g_1));
|
|
1539
1539
|
this.nc_1 = 3;
|
|
1540
1540
|
continue $sm;
|
|
1541
1541
|
} else {
|
|
@@ -1548,69 +1548,69 @@
|
|
|
1548
1548
|
continue $sm;
|
|
1549
1549
|
case 3:
|
|
1550
1550
|
this.oc_1 = 11;
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1553
|
-
if (this.
|
|
1554
|
-
this.
|
|
1551
|
+
this.z4g_1 = emptyList();
|
|
1552
|
+
this.a4h_1 = this.w4g_1;
|
|
1553
|
+
if (this.a4h_1 == null) {
|
|
1554
|
+
this.b4h_1 = null;
|
|
1555
1555
|
this.nc_1 = 7;
|
|
1556
1556
|
continue $sm;
|
|
1557
1557
|
} else {
|
|
1558
1558
|
var tmp_5 = this;
|
|
1559
|
-
tmp_5.
|
|
1560
|
-
this.
|
|
1559
|
+
tmp_5.c4h_1 = this.a4h_1;
|
|
1560
|
+
this.d4h_1 = this.c4h_1.r();
|
|
1561
1561
|
this.nc_1 = 4;
|
|
1562
1562
|
continue $sm;
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
1565
|
case 4:
|
|
1566
|
-
if (!this.
|
|
1566
|
+
if (!this.d4h_1.s()) {
|
|
1567
1567
|
this.nc_1 = 6;
|
|
1568
1568
|
continue $sm;
|
|
1569
1569
|
}
|
|
1570
1570
|
|
|
1571
|
-
this.
|
|
1571
|
+
this.e4h_1 = this.d4h_1.u();
|
|
1572
1572
|
var tmp_6 = this;
|
|
1573
|
-
tmp_6.
|
|
1574
|
-
this.
|
|
1573
|
+
tmp_6.f4h_1 = this.e4h_1;
|
|
1574
|
+
this.z4g_1 = addWithNoDuplicates(this.z4g_1, this.f4h_1.sideEffects);
|
|
1575
1575
|
this.nc_1 = 5;
|
|
1576
|
-
suspendResult = this.
|
|
1576
|
+
suspendResult = this.q4g_1.ef(this.p4g_1.f4f(this.p4g_1, stateEnd(this.p4g_1, this.f4h_1.b2j(VOID, VOID, this.z4g_1))), this);
|
|
1577
1577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1578
1578
|
return suspendResult;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
continue $sm;
|
|
1582
1582
|
case 5:
|
|
1583
|
-
var tmp_7 = this.
|
|
1583
|
+
var tmp_7 = this.f4h_1.solution;
|
|
1584
1584
|
if (isInterface(tmp_7, Halt))
|
|
1585
1585
|
return Unit_instance;
|
|
1586
1586
|
this.nc_1 = 4;
|
|
1587
1587
|
continue $sm;
|
|
1588
1588
|
case 6:
|
|
1589
|
-
this.
|
|
1589
|
+
this.b4h_1 = Unit_instance;
|
|
1590
1590
|
this.nc_1 = 7;
|
|
1591
1591
|
continue $sm;
|
|
1592
1592
|
case 7:
|
|
1593
|
-
this.
|
|
1593
|
+
this.t4g_1 = this.u4g_1;
|
|
1594
1594
|
this.nc_1 = 8;
|
|
1595
1595
|
continue $sm;
|
|
1596
1596
|
case 8:
|
|
1597
|
-
this.
|
|
1598
|
-
if (this.
|
|
1597
|
+
this.g4h_1 = this.t4g_1;
|
|
1598
|
+
if (this.g4h_1 == null) {
|
|
1599
1599
|
this.nc_1 = 9;
|
|
1600
|
-
suspendResult = this.
|
|
1600
|
+
suspendResult = this.q4g_1.ef(new StateRuleSelection(this.p4g_1.m4h_1), this);
|
|
1601
1601
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1602
1602
|
return suspendResult;
|
|
1603
1603
|
}
|
|
1604
1604
|
continue $sm;
|
|
1605
1605
|
} else {
|
|
1606
|
-
this.
|
|
1606
|
+
this.h4h_1 = this.g4h_1;
|
|
1607
1607
|
this.nc_1 = 10;
|
|
1608
1608
|
continue $sm;
|
|
1609
1609
|
}
|
|
1610
1610
|
|
|
1611
1611
|
case 9:
|
|
1612
1612
|
var tmp_8 = this;
|
|
1613
|
-
tmp_8.
|
|
1613
|
+
tmp_8.h4h_1 = Unit_instance;
|
|
1614
1614
|
this.nc_1 = 10;
|
|
1615
1615
|
continue $sm;
|
|
1616
1616
|
case 10:
|
|
@@ -1629,41 +1629,41 @@
|
|
|
1629
1629
|
}
|
|
1630
1630
|
while (true);
|
|
1631
1631
|
};
|
|
1632
|
-
protoOf(StateGoalEvaluation$behaveTimed$slambda).
|
|
1633
|
-
var i = new StateGoalEvaluation$behaveTimed$slambda(this.
|
|
1634
|
-
i.
|
|
1632
|
+
protoOf(StateGoalEvaluation$behaveTimed$slambda).y4e = function ($this$sequence, completion) {
|
|
1633
|
+
var i = new StateGoalEvaluation$behaveTimed$slambda(this.p4g_1, completion);
|
|
1634
|
+
i.q4g_1 = $this$sequence;
|
|
1635
1635
|
return i;
|
|
1636
1636
|
};
|
|
1637
1637
|
function StateGoalEvaluation$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
1638
1638
|
var i = new StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation);
|
|
1639
1639
|
var l = function ($this$sequence, $completion) {
|
|
1640
|
-
return i.
|
|
1640
|
+
return i.x4e($this$sequence, $completion);
|
|
1641
1641
|
};
|
|
1642
1642
|
l.$arity = 1;
|
|
1643
1643
|
return l;
|
|
1644
1644
|
}
|
|
1645
1645
|
function StateGoalEvaluation(solve) {
|
|
1646
1646
|
AbstractTimedState.call(this, solve);
|
|
1647
|
-
this.
|
|
1647
|
+
this.m4h_1 = solve;
|
|
1648
1648
|
}
|
|
1649
|
-
protoOf(StateGoalEvaluation).
|
|
1650
|
-
return this.
|
|
1649
|
+
protoOf(StateGoalEvaluation).w4b = function () {
|
|
1650
|
+
return this.m4h_1;
|
|
1651
1651
|
};
|
|
1652
|
-
protoOf(StateGoalEvaluation).
|
|
1652
|
+
protoOf(StateGoalEvaluation).e4f = function () {
|
|
1653
1653
|
return sequence(StateGoalEvaluation$behaveTimed$slambda_0(this, null));
|
|
1654
1654
|
};
|
|
1655
1655
|
function StateInit$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1656
|
-
this.
|
|
1656
|
+
this.v4h_1 = this$0;
|
|
1657
1657
|
CoroutineImpl.call(this, resultContinuation);
|
|
1658
1658
|
}
|
|
1659
|
-
protoOf(StateInit$behaveTimed$slambda).
|
|
1660
|
-
var tmp = this.
|
|
1659
|
+
protoOf(StateInit$behaveTimed$slambda).x4e = function ($this$sequence, $completion) {
|
|
1660
|
+
var tmp = this.y4e($this$sequence, $completion);
|
|
1661
1661
|
tmp.pc_1 = Unit_instance;
|
|
1662
1662
|
tmp.qc_1 = null;
|
|
1663
1663
|
return tmp.yc();
|
|
1664
1664
|
};
|
|
1665
1665
|
protoOf(StateInit$behaveTimed$slambda).ld = function (p1, $completion) {
|
|
1666
|
-
return this.
|
|
1666
|
+
return this.x4e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1667
1667
|
};
|
|
1668
1668
|
protoOf(StateInit$behaveTimed$slambda).yc = function () {
|
|
1669
1669
|
var suspendResult = this.pc_1;
|
|
@@ -1674,35 +1674,35 @@
|
|
|
1674
1674
|
case 0:
|
|
1675
1675
|
this.oc_1 = 6;
|
|
1676
1676
|
var tmp_0 = this;
|
|
1677
|
-
var $this$with = this.
|
|
1678
|
-
tmp_0.
|
|
1679
|
-
this.
|
|
1680
|
-
var $this$with_0 = this.
|
|
1681
|
-
if ($this$with_0.
|
|
1677
|
+
var $this$with = this.v4h_1.f4i_1.context;
|
|
1678
|
+
tmp_0.x4h_1 = $this$with.o4c_1.y4c($this$with);
|
|
1679
|
+
this.y4h_1 = this.v4h_1.f4i_1.c1w();
|
|
1680
|
+
var $this$with_0 = this.v4h_1.f4i_1.context;
|
|
1681
|
+
if ($this$with_0.n4c_1.u4b(this.y4h_1, $this$with_0)) {
|
|
1682
1682
|
this.nc_1 = 4;
|
|
1683
|
-
suspendResult = this.
|
|
1683
|
+
suspendResult = this.w4h_1.ef(this.v4h_1.f4f(this.v4h_1, stateEndTrue(this.v4h_1, this.v4h_1.f4i_1.context.k4c_1, this.x4h_1, [])), this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
1687
1687
|
continue $sm;
|
|
1688
1688
|
} else {
|
|
1689
|
-
if (isWellFormed(this.
|
|
1689
|
+
if (isWellFormed(this.y4h_1)) {
|
|
1690
1690
|
var tmp_1 = this;
|
|
1691
|
-
tmp_1.
|
|
1691
|
+
tmp_1.z4h_1 = prepareForExecutionAsGoal(this.y4h_1);
|
|
1692
1692
|
var tmp_2 = this;
|
|
1693
|
-
tmp_2.
|
|
1693
|
+
tmp_2.a4i_1 = this.z4h_1;
|
|
1694
1694
|
this.nc_1 = 2;
|
|
1695
|
-
var tmp_3 = extractSignature(this.
|
|
1696
|
-
var tmp_4 = this.
|
|
1697
|
-
var $this$with_1 = this.
|
|
1698
|
-
suspendResult = this.
|
|
1695
|
+
var tmp_3 = extractSignature(this.a4i_1);
|
|
1696
|
+
var tmp_4 = this.a4i_1.rw();
|
|
1697
|
+
var $this$with_1 = this.v4h_1.f4i_1.context;
|
|
1698
|
+
suspendResult = this.w4h_1.ef(new StateGoalEvaluation(this.v4h_1.f4i_1.w2i(tmp_3, tmp_4, $this$with_1.k4d(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x4h_1))), this);
|
|
1699
1699
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1700
1700
|
return suspendResult;
|
|
1701
1701
|
}
|
|
1702
1702
|
continue $sm;
|
|
1703
1703
|
} else {
|
|
1704
1704
|
this.nc_1 = 1;
|
|
1705
|
-
suspendResult = this.
|
|
1705
|
+
suspendResult = this.w4h_1.ef(stateEndFalse(this.v4h_1, this.x4h_1, []), this);
|
|
1706
1706
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1707
1707
|
return suspendResult;
|
|
1708
1708
|
}
|
|
@@ -1738,27 +1738,27 @@
|
|
|
1738
1738
|
}
|
|
1739
1739
|
while (true);
|
|
1740
1740
|
};
|
|
1741
|
-
protoOf(StateInit$behaveTimed$slambda).
|
|
1742
|
-
var i = new StateInit$behaveTimed$slambda(this.
|
|
1743
|
-
i.
|
|
1741
|
+
protoOf(StateInit$behaveTimed$slambda).y4e = function ($this$sequence, completion) {
|
|
1742
|
+
var i = new StateInit$behaveTimed$slambda(this.v4h_1, completion);
|
|
1743
|
+
i.w4h_1 = $this$sequence;
|
|
1744
1744
|
return i;
|
|
1745
1745
|
};
|
|
1746
1746
|
function StateInit$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
1747
1747
|
var i = new StateInit$behaveTimed$slambda(this$0, resultContinuation);
|
|
1748
1748
|
var l = function ($this$sequence, $completion) {
|
|
1749
|
-
return i.
|
|
1749
|
+
return i.x4e($this$sequence, $completion);
|
|
1750
1750
|
};
|
|
1751
1751
|
l.$arity = 1;
|
|
1752
1752
|
return l;
|
|
1753
1753
|
}
|
|
1754
1754
|
function StateInit(solve) {
|
|
1755
1755
|
AbstractTimedState.call(this, solve);
|
|
1756
|
-
this.
|
|
1756
|
+
this.f4i_1 = solve;
|
|
1757
1757
|
}
|
|
1758
|
-
protoOf(StateInit).
|
|
1759
|
-
return this.
|
|
1758
|
+
protoOf(StateInit).w4b = function () {
|
|
1759
|
+
return this.f4i_1;
|
|
1760
1760
|
};
|
|
1761
|
-
protoOf(StateInit).
|
|
1761
|
+
protoOf(StateInit).e4f = function () {
|
|
1762
1762
|
return sequence(StateInit$behaveTimed$slambda_0(this, null));
|
|
1763
1763
|
};
|
|
1764
1764
|
function retrieveRulesMatching(_this__u8e3s4, $this, currentGoal) {
|
|
@@ -1767,7 +1767,7 @@
|
|
|
1767
1767
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.retrieveRulesMatching.<anonymous>' call
|
|
1768
1768
|
var refreshedGoal = currentGoal.tw();
|
|
1769
1769
|
// Inline function 'kotlin.takeIf' call
|
|
1770
|
-
var this_0 = _this__u8e3s4.
|
|
1770
|
+
var this_0 = _this__u8e3s4.c1v().asTheory(_this__u8e3s4.f1l()).getByHead(refreshedGoal);
|
|
1771
1771
|
// Inline function 'kotlin.contracts.contract' call
|
|
1772
1772
|
var tmp;
|
|
1773
1773
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.retrieveRulesMatching.<anonymous>.<anonymous>' call
|
|
@@ -1779,7 +1779,7 @@
|
|
|
1779
1779
|
var tmp0_elvis_lhs = tmp;
|
|
1780
1780
|
var tmp_0;
|
|
1781
1781
|
if (tmp0_elvis_lhs == null) {
|
|
1782
|
-
var tmp_1 = sequenceOf([_this__u8e3s4.
|
|
1782
|
+
var tmp_1 = sequenceOf([_this__u8e3s4.e1v(), _this__u8e3s4.f1v()]);
|
|
1783
1783
|
tmp_0 = flatMap(tmp_1, StateRuleSelection$Companion$retrieveRulesMatching$lambda(refreshedGoal));
|
|
1784
1784
|
} else {
|
|
1785
1785
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -1791,13 +1791,13 @@
|
|
|
1791
1791
|
// Inline function 'kotlin.contracts.contract' call
|
|
1792
1792
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.initializeForSubRuleScope.<anonymous>' call
|
|
1793
1793
|
var $this$with = _this__u8e3s4.context;
|
|
1794
|
-
var tmp$ret$1 = $this$with.
|
|
1795
|
-
return _this__u8e3s4.
|
|
1794
|
+
var tmp$ret$1 = $this$with.k4d(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$with.o4c_1.a4d());
|
|
1795
|
+
return _this__u8e3s4.w2i(VOID, VOID, tmp$ret$1);
|
|
1796
1796
|
}
|
|
1797
1797
|
function removeSubstitutionFor(_this__u8e3s4, $this, unusedVariables) {
|
|
1798
1798
|
var tmp;
|
|
1799
1799
|
if (isInterface(_this__u8e3s4, Yes)) {
|
|
1800
|
-
tmp = _this__u8e3s4.copy(VOID, _this__u8e3s4.
|
|
1800
|
+
tmp = _this__u8e3s4.copy(VOID, _this__u8e3s4.y1u().o12(asIterable(unusedVariables)));
|
|
1801
1801
|
} else {
|
|
1802
1802
|
tmp = _this__u8e3s4;
|
|
1803
1803
|
}
|
|
@@ -1810,7 +1810,7 @@
|
|
|
1810
1810
|
}
|
|
1811
1811
|
function SolverStrategies$clauseChoiceStrategy$ref($boundThis) {
|
|
1812
1812
|
var l = function (p0, p1) {
|
|
1813
|
-
return $boundThis.
|
|
1813
|
+
return $boundThis.t4b(p0, p1);
|
|
1814
1814
|
};
|
|
1815
1815
|
l.callableName = 'clauseChoiceStrategy';
|
|
1816
1816
|
return l;
|
|
@@ -1827,23 +1827,23 @@
|
|
|
1827
1827
|
}
|
|
1828
1828
|
function StateMachineExecutor$executeWrapping$ref($boundThis) {
|
|
1829
1829
|
var l = function (p0) {
|
|
1830
|
-
return $boundThis.
|
|
1830
|
+
return $boundThis.z4e(p0);
|
|
1831
1831
|
};
|
|
1832
1832
|
l.callableName = 'executeWrapping';
|
|
1833
1833
|
return l;
|
|
1834
1834
|
}
|
|
1835
1835
|
function StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1836
|
-
this.
|
|
1836
|
+
this.o4i_1 = this$0;
|
|
1837
1837
|
CoroutineImpl.call(this, resultContinuation);
|
|
1838
1838
|
}
|
|
1839
|
-
protoOf(StateRuleSelection$behaveTimed$slambda).
|
|
1840
|
-
var tmp = this.
|
|
1839
|
+
protoOf(StateRuleSelection$behaveTimed$slambda).x4e = function ($this$sequence, $completion) {
|
|
1840
|
+
var tmp = this.y4e($this$sequence, $completion);
|
|
1841
1841
|
tmp.pc_1 = Unit_instance;
|
|
1842
1842
|
tmp.qc_1 = null;
|
|
1843
1843
|
return tmp.yc();
|
|
1844
1844
|
};
|
|
1845
1845
|
protoOf(StateRuleSelection$behaveTimed$slambda).ld = function (p1, $completion) {
|
|
1846
|
-
return this.
|
|
1846
|
+
return this.x4e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1847
1847
|
};
|
|
1848
1848
|
protoOf(StateRuleSelection$behaveTimed$slambda).yc = function () {
|
|
1849
1849
|
var suspendResult = this.pc_1;
|
|
@@ -1853,103 +1853,103 @@
|
|
|
1853
1853
|
switch (tmp) {
|
|
1854
1854
|
case 0:
|
|
1855
1855
|
this.oc_1 = 12;
|
|
1856
|
-
this.
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1859
|
-
if (none(this.
|
|
1856
|
+
this.q4i_1 = this.o4i_1.o4j_1.c1w();
|
|
1857
|
+
this.r4i_1 = retrieveRulesMatching(this.o4i_1.o4j_1.context, Companion_instance_15, this.q4i_1);
|
|
1858
|
+
this.s4i_1 = moreThanOne(this.r4i_1);
|
|
1859
|
+
if (none(this.r4i_1)) {
|
|
1860
1860
|
this.nc_1 = 10;
|
|
1861
|
-
suspendResult = this.
|
|
1861
|
+
suspendResult = this.p4i_1.ef(stateEndFalse(this.o4i_1, VOID, []), this);
|
|
1862
1862
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1863
1863
|
return suspendResult;
|
|
1864
1864
|
}
|
|
1865
1865
|
continue $sm;
|
|
1866
1866
|
} else {
|
|
1867
1867
|
var tmp_0 = this;
|
|
1868
|
-
var $this$with = this.
|
|
1869
|
-
var tmp_1 = orderWithStrategy(this.
|
|
1870
|
-
tmp_0.
|
|
1868
|
+
var $this$with = this.o4i_1.o4j_1.context;
|
|
1869
|
+
var tmp_1 = orderWithStrategy(this.r4i_1, $this$with, SolverStrategies$clauseChoiceStrategy$ref($this$with.n4c_1));
|
|
1870
|
+
tmp_0.t4i_1 = map(tmp_1, StateRuleSelection$behaveTimed$slambda$lambda);
|
|
1871
1871
|
var tmp_2 = this;
|
|
1872
|
-
tmp_2.
|
|
1872
|
+
tmp_2.u4i_1 = this.t4i_1.r();
|
|
1873
1873
|
this.nc_1 = 1;
|
|
1874
1874
|
continue $sm;
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
1877
1877
|
case 1:
|
|
1878
|
-
if (!this.
|
|
1878
|
+
if (!this.u4i_1.s()) {
|
|
1879
1879
|
this.nc_1 = 9;
|
|
1880
1880
|
continue $sm;
|
|
1881
1881
|
}
|
|
1882
1882
|
|
|
1883
1883
|
var tmp_3 = this;
|
|
1884
|
-
tmp_3.
|
|
1884
|
+
tmp_3.v4i_1 = this.u4i_1.u();
|
|
1885
1885
|
var tmp_4 = this;
|
|
1886
|
-
tmp_4.
|
|
1887
|
-
this.
|
|
1886
|
+
tmp_4.w4i_1 = this.u4i_1.s();
|
|
1887
|
+
this.x4i_1 = this.o4i_1.uc().b4c_1.mgu(this.q4i_1, this.v4i_1.wy());
|
|
1888
1888
|
var tmp_5 = this;
|
|
1889
|
-
var tmp_6 = this.
|
|
1890
|
-
tmp_5.
|
|
1889
|
+
var tmp_6 = this.v4i_1.xy().applySubstitution(this.x4i_1);
|
|
1890
|
+
tmp_5.y4i_1 = isInterface(tmp_6, Struct) ? tmp_6 : THROW_CCE();
|
|
1891
1891
|
var tmp_7 = this;
|
|
1892
|
-
var tmp0_$receiver = this.
|
|
1892
|
+
var tmp0_$receiver = this.o4i_1.o4j_1;
|
|
1893
1893
|
var tmp1_requestIssuingInstant = currentTimeInstant();
|
|
1894
|
-
tmp_7.
|
|
1894
|
+
tmp_7.z4i_1 = newSolveRequest(tmp0_$receiver, this.y4i_1, this.x4i_1, VOID, VOID, tmp1_requestIssuingInstant, this.s4i_1);
|
|
1895
1895
|
var tmp_8 = this;
|
|
1896
|
-
tmp_8.
|
|
1896
|
+
tmp_8.a4j_1 = new StateInit(initializeForSubRuleScope(this.z4i_1, Companion_instance_15));
|
|
1897
1897
|
var tmp_9 = this;
|
|
1898
|
-
tmp_9.
|
|
1898
|
+
tmp_9.b4j_1 = this.a4j_1;
|
|
1899
1899
|
this.nc_1 = 2;
|
|
1900
|
-
suspendResult = this.
|
|
1900
|
+
suspendResult = this.p4i_1.ef(asAlreadyExecuted(this.b4j_1), this);
|
|
1901
1901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1902
1902
|
return suspendResult;
|
|
1903
1903
|
}
|
|
1904
1904
|
|
|
1905
1905
|
continue $sm;
|
|
1906
1906
|
case 2:
|
|
1907
|
-
this.
|
|
1908
|
-
this.
|
|
1907
|
+
this.c4j_1 = this.a4j_1;
|
|
1908
|
+
this.d4j_1 = false;
|
|
1909
1909
|
var tmp_10 = this;
|
|
1910
|
-
tmp_10.
|
|
1911
|
-
this.
|
|
1910
|
+
tmp_10.e4j_1 = this.o4i_1.p4j_1(this.c4j_1);
|
|
1911
|
+
this.f4j_1 = this.e4j_1.r();
|
|
1912
1912
|
this.nc_1 = 3;
|
|
1913
1913
|
continue $sm;
|
|
1914
1914
|
case 3:
|
|
1915
|
-
if (!this.
|
|
1915
|
+
if (!this.f4j_1.s()) {
|
|
1916
1916
|
this.nc_1 = 8;
|
|
1917
1917
|
continue $sm;
|
|
1918
1918
|
}
|
|
1919
1919
|
|
|
1920
|
-
this.
|
|
1920
|
+
this.g4j_1 = this.f4j_1.u();
|
|
1921
1921
|
var tmp_11 = this;
|
|
1922
|
-
tmp_11.
|
|
1923
|
-
this.
|
|
1922
|
+
tmp_11.h4j_1 = this.g4j_1;
|
|
1923
|
+
this.i4j_1 = this.h4j_1.g4e_1;
|
|
1924
1924
|
var tmp_12;
|
|
1925
|
-
var tmp_13 = this.
|
|
1925
|
+
var tmp_13 = this.i4j_1;
|
|
1926
1926
|
if (isInterface(tmp_13, FinalState)) {
|
|
1927
|
-
tmp_12 = this.
|
|
1927
|
+
tmp_12 = this.i4j_1.w4b().solution.c1w().equals(this.z4i_1.c1w());
|
|
1928
1928
|
} else {
|
|
1929
1929
|
tmp_12 = false;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
1932
|
if (tmp_12) {
|
|
1933
|
-
if (shouldCutExecuteInRuleSelection(this.
|
|
1934
|
-
this.
|
|
1933
|
+
if (shouldCutExecuteInRuleSelection(this.i4j_1.w4b().sideEffectManager)) {
|
|
1934
|
+
this.d4j_1 = true;
|
|
1935
1935
|
}
|
|
1936
1936
|
var tmp_14;
|
|
1937
1937
|
var tmp_15;
|
|
1938
|
-
var tmp_16 = this.
|
|
1938
|
+
var tmp_16 = this.i4j_1;
|
|
1939
1939
|
if (!(tmp_16 instanceof False)) {
|
|
1940
1940
|
tmp_15 = true;
|
|
1941
1941
|
} else {
|
|
1942
|
-
tmp_15 = !this.
|
|
1942
|
+
tmp_15 = !this.w4i_1;
|
|
1943
1943
|
}
|
|
1944
1944
|
if (tmp_15) {
|
|
1945
1945
|
tmp_14 = true;
|
|
1946
1946
|
} else {
|
|
1947
|
-
tmp_14 = this.
|
|
1947
|
+
tmp_14 = this.d4j_1;
|
|
1948
1948
|
}
|
|
1949
1949
|
if (tmp_14) {
|
|
1950
|
-
this.
|
|
1950
|
+
this.j4j_1 = extendParentScopeWith(this.i4j_1.w4b().sideEffectManager, this.o4i_1.o4j_1.context.o4c_1);
|
|
1951
1951
|
this.nc_1 = 5;
|
|
1952
|
-
suspendResult = this.
|
|
1952
|
+
suspendResult = this.p4i_1.ef(stateEnd(this.o4i_1, this.i4j_1.w4b().b2j(removeSubstitutionFor(this.i4j_1.w4b().solution, Companion_instance_15, this.v4i_1.sw()), this.j4j_1)), this);
|
|
1953
1953
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1954
1954
|
return suspendResult;
|
|
1955
1955
|
}
|
|
@@ -1960,7 +1960,7 @@
|
|
|
1960
1960
|
}
|
|
1961
1961
|
} else {
|
|
1962
1962
|
this.nc_1 = 4;
|
|
1963
|
-
suspendResult = this.
|
|
1963
|
+
suspendResult = this.p4i_1.ef(this.h4j_1, this);
|
|
1964
1964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1965
1965
|
return suspendResult;
|
|
1966
1966
|
}
|
|
@@ -1974,7 +1974,7 @@
|
|
|
1974
1974
|
this.nc_1 = 6;
|
|
1975
1975
|
continue $sm;
|
|
1976
1976
|
case 6:
|
|
1977
|
-
var tmp_17 = this.
|
|
1977
|
+
var tmp_17 = this.i4j_1;
|
|
1978
1978
|
if (tmp_17 instanceof Halt_0)
|
|
1979
1979
|
return Unit_instance;
|
|
1980
1980
|
this.nc_1 = 7;
|
|
@@ -1983,7 +1983,7 @@
|
|
|
1983
1983
|
this.nc_1 = 3;
|
|
1984
1984
|
continue $sm;
|
|
1985
1985
|
case 8:
|
|
1986
|
-
if (this.
|
|
1986
|
+
if (this.d4j_1)
|
|
1987
1987
|
return Unit_instance;
|
|
1988
1988
|
this.nc_1 = 1;
|
|
1989
1989
|
continue $sm;
|
|
@@ -2009,36 +2009,36 @@
|
|
|
2009
2009
|
}
|
|
2010
2010
|
while (true);
|
|
2011
2011
|
};
|
|
2012
|
-
protoOf(StateRuleSelection$behaveTimed$slambda).
|
|
2013
|
-
var i = new StateRuleSelection$behaveTimed$slambda(this.
|
|
2014
|
-
i.
|
|
2012
|
+
protoOf(StateRuleSelection$behaveTimed$slambda).y4e = function ($this$sequence, completion) {
|
|
2013
|
+
var i = new StateRuleSelection$behaveTimed$slambda(this.o4i_1, completion);
|
|
2014
|
+
i.p4i_1 = $this$sequence;
|
|
2015
2015
|
return i;
|
|
2016
2016
|
};
|
|
2017
2017
|
function StateRuleSelection$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
2018
2018
|
var i = new StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation);
|
|
2019
2019
|
var l = function ($this$sequence, $completion) {
|
|
2020
|
-
return i.
|
|
2020
|
+
return i.x4e($this$sequence, $completion);
|
|
2021
2021
|
};
|
|
2022
2022
|
l.$arity = 1;
|
|
2023
2023
|
return l;
|
|
2024
2024
|
}
|
|
2025
2025
|
function StateRuleSelection(solve) {
|
|
2026
2026
|
AbstractTimedState.call(this, solve);
|
|
2027
|
-
this.
|
|
2027
|
+
this.o4j_1 = solve;
|
|
2028
2028
|
var tmp = this;
|
|
2029
|
-
tmp.
|
|
2029
|
+
tmp.p4j_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_instance);
|
|
2030
2030
|
}
|
|
2031
|
-
protoOf(StateRuleSelection).
|
|
2032
|
-
return this.
|
|
2031
|
+
protoOf(StateRuleSelection).w4b = function () {
|
|
2032
|
+
return this.o4j_1;
|
|
2033
2033
|
};
|
|
2034
|
-
protoOf(StateRuleSelection).
|
|
2034
|
+
protoOf(StateRuleSelection).e4f = function () {
|
|
2035
2035
|
return sequence(StateRuleSelection$behaveTimed$slambda_0(this, null));
|
|
2036
2036
|
};
|
|
2037
2037
|
function DefaultBuiltins() {
|
|
2038
2038
|
DefaultBuiltins_instance = this;
|
|
2039
2039
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2040
2040
|
}
|
|
2041
|
-
protoOf(DefaultBuiltins).
|
|
2041
|
+
protoOf(DefaultBuiltins).w2e = function () {
|
|
2042
2042
|
return listOf_0([Call_getInstance(), Catch_getInstance(), Conjunction_getInstance(), Cut_getInstance(), Throw_getInstance(), Not_getInstance()]);
|
|
2043
2043
|
};
|
|
2044
2044
|
var DefaultBuiltins_instance;
|
|
@@ -2049,29 +2049,29 @@
|
|
|
2049
2049
|
}
|
|
2050
2050
|
function Call$uncheckedImplementation$lambda($request) {
|
|
2051
2051
|
return function (it) {
|
|
2052
|
-
return replyWith($request, it.
|
|
2052
|
+
return replyWith($request, it.b2j(VOID, resetCutWorkChanges(it.sideEffectManager, $request.context.o4c_1)));
|
|
2053
2053
|
};
|
|
2054
2054
|
}
|
|
2055
2055
|
function Call() {
|
|
2056
2056
|
Call_instance = this;
|
|
2057
2057
|
PrimitiveWrapper_init_$Init$('call', 1, VOID, this);
|
|
2058
2058
|
}
|
|
2059
|
-
protoOf(Call).
|
|
2059
|
+
protoOf(Call).x4j = function (request) {
|
|
2060
2060
|
// Inline function 'kotlin.let' call
|
|
2061
2061
|
// Inline function 'kotlin.contracts.contract' call
|
|
2062
2062
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Call.uncheckedImplementation.<anonymous>' call
|
|
2063
|
-
var toBeCalledGoal = single(Companion_getInstance_5().
|
|
2063
|
+
var toBeCalledGoal = single(Companion_getInstance_5().w2f(request).arguments);
|
|
2064
2064
|
var tmp;
|
|
2065
2065
|
if (isWellFormed(toBeCalledGoal)) {
|
|
2066
|
-
var tmp_0 = Companion_instance_12.
|
|
2066
|
+
var tmp_0 = Companion_instance_12.z4b(newSolveRequest(request, prepareForExecutionAsGoal(toBeCalledGoal)));
|
|
2067
2067
|
tmp = map(tmp_0, Call$uncheckedImplementation$lambda(request));
|
|
2068
2068
|
} else {
|
|
2069
2069
|
throw TypeError_init_$Create$('call/1 argument is neither a Variable nor a well-formed goal', VOID, request.context, Expected_CALLABLE_getInstance(), toBeCalledGoal);
|
|
2070
2070
|
}
|
|
2071
2071
|
return tmp;
|
|
2072
2072
|
};
|
|
2073
|
-
protoOf(Call).
|
|
2074
|
-
return this.
|
|
2073
|
+
protoOf(Call).i2g = function (request) {
|
|
2074
|
+
return this.x4j(request);
|
|
2075
2075
|
};
|
|
2076
2076
|
var Call_instance;
|
|
2077
2077
|
function Call_getInstance() {
|
|
@@ -2091,20 +2091,20 @@
|
|
|
2091
2091
|
return tmp.of(tmp$ret$0, [goal]);
|
|
2092
2092
|
}
|
|
2093
2093
|
function ensureNoMoreSelectableCatch(_this__u8e3s4, $this, notSelectableContext) {
|
|
2094
|
-
return _this__u8e3s4.
|
|
2094
|
+
return _this__u8e3s4.w2i(VOID, VOID, _this__u8e3s4.context.k4d(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.context.o4c_1.h4d(notSelectableContext)));
|
|
2095
2095
|
}
|
|
2096
2096
|
function Catch$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2097
|
-
this.
|
|
2097
|
+
this.g4k_1 = $request;
|
|
2098
2098
|
CoroutineImpl.call(this, resultContinuation);
|
|
2099
2099
|
}
|
|
2100
|
-
protoOf(Catch$uncheckedImplementation$slambda).
|
|
2101
|
-
var tmp = this.
|
|
2100
|
+
protoOf(Catch$uncheckedImplementation$slambda).s2s = function ($this$sequence, $completion) {
|
|
2101
|
+
var tmp = this.t2s($this$sequence, $completion);
|
|
2102
2102
|
tmp.pc_1 = Unit_instance;
|
|
2103
2103
|
tmp.qc_1 = null;
|
|
2104
2104
|
return tmp.yc();
|
|
2105
2105
|
};
|
|
2106
2106
|
protoOf(Catch$uncheckedImplementation$slambda).ld = function (p1, $completion) {
|
|
2107
|
-
return this.
|
|
2107
|
+
return this.s2s(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2108
2108
|
};
|
|
2109
2109
|
protoOf(Catch$uncheckedImplementation$slambda).yc = function () {
|
|
2110
2110
|
var suspendResult = this.pc_1;
|
|
@@ -2114,34 +2114,34 @@
|
|
|
2114
2114
|
switch (tmp) {
|
|
2115
2115
|
case 0:
|
|
2116
2116
|
this.oc_1 = 6;
|
|
2117
|
-
this.
|
|
2117
|
+
this.i4k_1 = first_0(this.g4k_1.arguments);
|
|
2118
2118
|
var tmp_0 = this;
|
|
2119
|
-
tmp_0.
|
|
2120
|
-
this.
|
|
2119
|
+
tmp_0.j4k_1 = Companion_instance_12.z4b(newSolveRequest(this.g4k_1, call(Catch_getInstance(), this.i4k_1)));
|
|
2120
|
+
this.k4k_1 = this.j4k_1.r();
|
|
2121
2121
|
this.nc_1 = 1;
|
|
2122
2122
|
continue $sm;
|
|
2123
2123
|
case 1:
|
|
2124
|
-
if (!this.
|
|
2124
|
+
if (!this.k4k_1.s()) {
|
|
2125
2125
|
this.nc_1 = 5;
|
|
2126
2126
|
continue $sm;
|
|
2127
2127
|
}
|
|
2128
2128
|
|
|
2129
|
-
this.
|
|
2129
|
+
this.l4k_1 = this.k4k_1.u();
|
|
2130
2130
|
var tmp_1 = this;
|
|
2131
|
-
tmp_1.
|
|
2132
|
-
if (isSelectedThrowCatch(this.
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2131
|
+
tmp_1.m4k_1 = this.l4k_1;
|
|
2132
|
+
if (isSelectedThrowCatch(this.m4k_1.sideEffectManager, this.g4k_1.context)) {
|
|
2133
|
+
this.n4k_1 = last(this.g4k_1.arguments).applySubstitution(this.m4k_1.solution.y1u());
|
|
2134
|
+
this.o4k_1 = ensureNoMoreSelectableCatch(newSolveRequest(this.g4k_1, call(Catch_getInstance(), this.n4k_1), this.m4k_1.solution.y1u().minus(this.g4k_1.context.k4c_1), VOID, VOID, currentTimeInstant()), Catch_getInstance(), this.g4k_1.context);
|
|
2135
2135
|
this.nc_1 = 3;
|
|
2136
|
-
var tmp_2 = Companion_instance_12.
|
|
2137
|
-
suspendResult = this.
|
|
2136
|
+
var tmp_2 = Companion_instance_12.z4b(this.o4k_1);
|
|
2137
|
+
suspendResult = this.h4k_1.hf(map(tmp_2, Catch$uncheckedImplementation$slambda$lambda(this.g4k_1)), this);
|
|
2138
2138
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2139
2139
|
return suspendResult;
|
|
2140
2140
|
}
|
|
2141
2141
|
continue $sm;
|
|
2142
2142
|
} else {
|
|
2143
2143
|
this.nc_1 = 2;
|
|
2144
|
-
suspendResult = this.
|
|
2144
|
+
suspendResult = this.h4k_1.ef(replyWith(this.g4k_1, this.m4k_1), this);
|
|
2145
2145
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2146
2146
|
return suspendResult;
|
|
2147
2147
|
}
|
|
@@ -2173,15 +2173,15 @@
|
|
|
2173
2173
|
}
|
|
2174
2174
|
while (true);
|
|
2175
2175
|
};
|
|
2176
|
-
protoOf(Catch$uncheckedImplementation$slambda).
|
|
2177
|
-
var i = new Catch$uncheckedImplementation$slambda(this.
|
|
2178
|
-
i.
|
|
2176
|
+
protoOf(Catch$uncheckedImplementation$slambda).t2s = function ($this$sequence, completion) {
|
|
2177
|
+
var i = new Catch$uncheckedImplementation$slambda(this.g4k_1, completion);
|
|
2178
|
+
i.h4k_1 = $this$sequence;
|
|
2179
2179
|
return i;
|
|
2180
2180
|
};
|
|
2181
2181
|
function Catch$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2182
2182
|
var i = new Catch$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2183
2183
|
var l = function ($this$sequence, $completion) {
|
|
2184
|
-
return i.
|
|
2184
|
+
return i.s2s($this$sequence, $completion);
|
|
2185
2185
|
};
|
|
2186
2186
|
l.$arity = 1;
|
|
2187
2187
|
return l;
|
|
@@ -2190,11 +2190,11 @@
|
|
|
2190
2190
|
Catch_instance = this;
|
|
2191
2191
|
PrimitiveWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2192
2192
|
}
|
|
2193
|
-
protoOf(Catch).
|
|
2193
|
+
protoOf(Catch).x4j = function (request) {
|
|
2194
2194
|
return sequence(Catch$uncheckedImplementation$slambda_0(request, null));
|
|
2195
2195
|
};
|
|
2196
|
-
protoOf(Catch).
|
|
2197
|
-
return this.
|
|
2196
|
+
protoOf(Catch).i2g = function (request) {
|
|
2197
|
+
return this.x4j(request);
|
|
2198
2198
|
};
|
|
2199
2199
|
var Catch_instance;
|
|
2200
2200
|
function Catch_getInstance() {
|
|
@@ -2204,7 +2204,7 @@
|
|
|
2204
2204
|
}
|
|
2205
2205
|
function SolverStrategies$predicationChoiceStrategy$ref($boundThis) {
|
|
2206
2206
|
var l = function (p0, p1) {
|
|
2207
|
-
return $boundThis.
|
|
2207
|
+
return $boundThis.s4b(p0, p1);
|
|
2208
2208
|
};
|
|
2209
2209
|
l.callableName = 'predicationChoiceStrategy';
|
|
2210
2210
|
return l;
|
|
@@ -2216,17 +2216,17 @@
|
|
|
2216
2216
|
return tmp.yc();
|
|
2217
2217
|
}
|
|
2218
2218
|
function Conjunction$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2219
|
-
this.
|
|
2219
|
+
this.y4l_1 = $request;
|
|
2220
2220
|
CoroutineImpl.call(this, resultContinuation);
|
|
2221
2221
|
}
|
|
2222
|
-
protoOf(Conjunction$uncheckedImplementation$slambda).
|
|
2223
|
-
var tmp = this.
|
|
2222
|
+
protoOf(Conjunction$uncheckedImplementation$slambda).s2s = function ($this$sequence, $completion) {
|
|
2223
|
+
var tmp = this.t2s($this$sequence, $completion);
|
|
2224
2224
|
tmp.pc_1 = Unit_instance;
|
|
2225
2225
|
tmp.qc_1 = null;
|
|
2226
2226
|
return tmp.yc();
|
|
2227
2227
|
};
|
|
2228
2228
|
protoOf(Conjunction$uncheckedImplementation$slambda).ld = function (p1, $completion) {
|
|
2229
|
-
return this.
|
|
2229
|
+
return this.s2s(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2230
2230
|
};
|
|
2231
2231
|
protoOf(Conjunction$uncheckedImplementation$slambda).yc = function () {
|
|
2232
2232
|
var suspendResult = this.pc_1;
|
|
@@ -2237,11 +2237,11 @@
|
|
|
2237
2237
|
case 0:
|
|
2238
2238
|
this.oc_1 = 2;
|
|
2239
2239
|
var tmp_0 = this;
|
|
2240
|
-
var $this$with = this.
|
|
2241
|
-
var tmp_1 = $this$with.
|
|
2242
|
-
tmp_0.
|
|
2240
|
+
var $this$with = this.y4l_1;
|
|
2241
|
+
var tmp_1 = $this$with.c1w().castToTuple().uu();
|
|
2242
|
+
tmp_0.a4m_1 = toList(orderWithStrategy(tmp_1, $this$with.context, SolverStrategies$predicationChoiceStrategy$ref($this$with.context.n4c_1)));
|
|
2243
2243
|
this.nc_1 = 1;
|
|
2244
|
-
suspendResult = solveConjunctionGoals(this.
|
|
2244
|
+
suspendResult = solveConjunctionGoals(this.z4l_1, Conjunction_getInstance(), this.y4l_1, this.a4m_1, this.y4l_1.context, Companion_getInstance_2().empty(), emptyList(), this.y4l_1.context.o4c_1, false, this);
|
|
2245
2245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2246
2246
|
return suspendResult;
|
|
2247
2247
|
}
|
|
@@ -2263,30 +2263,30 @@
|
|
|
2263
2263
|
}
|
|
2264
2264
|
while (true);
|
|
2265
2265
|
};
|
|
2266
|
-
protoOf(Conjunction$uncheckedImplementation$slambda).
|
|
2267
|
-
var i = new Conjunction$uncheckedImplementation$slambda(this.
|
|
2268
|
-
i.
|
|
2266
|
+
protoOf(Conjunction$uncheckedImplementation$slambda).t2s = function ($this$sequence, completion) {
|
|
2267
|
+
var i = new Conjunction$uncheckedImplementation$slambda(this.y4l_1, completion);
|
|
2268
|
+
i.z4l_1 = $this$sequence;
|
|
2269
2269
|
return i;
|
|
2270
2270
|
};
|
|
2271
2271
|
function Conjunction$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2272
2272
|
var i = new Conjunction$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2273
2273
|
var l = function ($this$sequence, $completion) {
|
|
2274
|
-
return i.
|
|
2274
|
+
return i.s2s($this$sequence, $completion);
|
|
2275
2275
|
};
|
|
2276
2276
|
l.$arity = 1;
|
|
2277
2277
|
return l;
|
|
2278
2278
|
}
|
|
2279
2279
|
function $solveConjunctionGoalsCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, resultContinuation) {
|
|
2280
2280
|
CoroutineImpl.call(this, resultContinuation);
|
|
2281
|
-
this.
|
|
2282
|
-
this.
|
|
2283
|
-
this.
|
|
2284
|
-
this.
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2281
|
+
this.y4k_1 = _this__u8e3s4;
|
|
2282
|
+
this.z4k_1 = _this__u8e3s4_0;
|
|
2283
|
+
this.a4l_1 = mainRequest;
|
|
2284
|
+
this.b4l_1 = goals;
|
|
2285
|
+
this.c4l_1 = toPropagateContext;
|
|
2286
|
+
this.d4l_1 = accumulatedSubstitutions;
|
|
2287
|
+
this.e4l_1 = accumulatedSideEffects;
|
|
2288
|
+
this.f4l_1 = previousResponseSideEffectManager;
|
|
2289
|
+
this.g4l_1 = previousGoalsHadAlternatives;
|
|
2290
2290
|
}
|
|
2291
2291
|
protoOf($solveConjunctionGoalsCOROUTINE$0).yc = function () {
|
|
2292
2292
|
var suspendResult = this.pc_1;
|
|
@@ -2296,54 +2296,54 @@
|
|
|
2296
2296
|
switch (tmp) {
|
|
2297
2297
|
case 0:
|
|
2298
2298
|
this.oc_1 = 7;
|
|
2299
|
-
this.
|
|
2299
|
+
this.h4l_1 = prepareForExecutionAsGoal(first_1(this.b4l_1).applySubstitution(this.d4l_1));
|
|
2300
2300
|
var tmp_0 = this;
|
|
2301
|
-
var tmp0_elvis_lhs = this.
|
|
2302
|
-
tmp_0.
|
|
2303
|
-
this.
|
|
2304
|
-
this.
|
|
2301
|
+
var tmp0_elvis_lhs = this.f4l_1;
|
|
2302
|
+
tmp_0.i4l_1 = newSolveRequest(this.a4l_1, this.h4l_1, this.d4l_1, this.c4l_1, tmp0_elvis_lhs == null ? this.a4l_1.context.o4c_1 : tmp0_elvis_lhs);
|
|
2303
|
+
this.j4l_1 = false;
|
|
2304
|
+
this.k4l_1 = emptyList();
|
|
2305
2305
|
var tmp_1 = this;
|
|
2306
|
-
tmp_1.
|
|
2306
|
+
tmp_1.l4l_1 = Companion_instance_12.x4b(this.i4l_1);
|
|
2307
2307
|
var tmp_2 = this;
|
|
2308
|
-
tmp_2.
|
|
2308
|
+
tmp_2.m4l_1 = this.l4l_1.r();
|
|
2309
2309
|
this.nc_1 = 1;
|
|
2310
2310
|
continue $sm;
|
|
2311
2311
|
case 1:
|
|
2312
|
-
if (!this.
|
|
2312
|
+
if (!this.m4l_1.s()) {
|
|
2313
2313
|
this.nc_1 = 6;
|
|
2314
2314
|
continue $sm;
|
|
2315
2315
|
}
|
|
2316
2316
|
|
|
2317
2317
|
var tmp_3 = this;
|
|
2318
|
-
tmp_3.
|
|
2318
|
+
tmp_3.n4l_1 = this.m4l_1.u();
|
|
2319
2319
|
var tmp_4 = this;
|
|
2320
|
-
tmp_4.
|
|
2321
|
-
this.
|
|
2320
|
+
tmp_4.o4l_1 = this.m4l_1.s();
|
|
2321
|
+
this.p4l_1 = this.n4l_1.w4b();
|
|
2322
2322
|
var tmp_5;
|
|
2323
|
-
if (Cut_getInstance().signature.name === this.
|
|
2323
|
+
if (Cut_getInstance().signature.name === this.h4l_1.qw()) {
|
|
2324
2324
|
tmp_5 = true;
|
|
2325
2325
|
} else {
|
|
2326
|
-
var tmp0_safe_receiver = this.
|
|
2326
|
+
var tmp0_safe_receiver = this.p4l_1.sideEffectManager;
|
|
2327
2327
|
tmp_5 = (tmp0_safe_receiver == null ? null : shouldExecuteThrowCut(tmp0_safe_receiver)) === true;
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
2330
|
if (tmp_5) {
|
|
2331
|
-
this.
|
|
2331
|
+
this.j4l_1 = true;
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
|
-
this.
|
|
2334
|
+
this.k4l_1 = addWithNoDuplicates(this.k4l_1, this.p4l_1.sideEffects);
|
|
2335
2335
|
var tmp_6;
|
|
2336
2336
|
var tmp_7;
|
|
2337
|
-
var tmp1_safe_receiver = this.
|
|
2337
|
+
var tmp1_safe_receiver = this.p4l_1.sideEffectManager;
|
|
2338
2338
|
if ((tmp1_safe_receiver == null ? null : shouldExecuteThrowCut(tmp1_safe_receiver)) === false) {
|
|
2339
|
-
var tmp_8 = this.
|
|
2339
|
+
var tmp_8 = this.p4l_1.solution;
|
|
2340
2340
|
tmp_7 = isInterface(tmp_8, Yes);
|
|
2341
2341
|
} else {
|
|
2342
2342
|
tmp_7 = false;
|
|
2343
2343
|
}
|
|
2344
2344
|
|
|
2345
2345
|
if (tmp_7) {
|
|
2346
|
-
tmp_6 = moreThanOne(asSequence(this.
|
|
2346
|
+
tmp_6 = moreThanOne(asSequence(this.b4l_1));
|
|
2347
2347
|
} else {
|
|
2348
2348
|
tmp_6 = false;
|
|
2349
2349
|
}
|
|
@@ -2351,12 +2351,12 @@
|
|
|
2351
2351
|
if (tmp_6) {
|
|
2352
2352
|
this.nc_1 = 4;
|
|
2353
2353
|
var tmp_9 = Conjunction_getInstance();
|
|
2354
|
-
var tmp_10 = drop(this.
|
|
2355
|
-
var tmp_11 = this.
|
|
2356
|
-
var tmp_12 = this.
|
|
2357
|
-
var tmp_13 = this.
|
|
2358
|
-
var tmp_14 = this.
|
|
2359
|
-
suspendResult = solveConjunctionGoals(this.
|
|
2354
|
+
var tmp_10 = drop(this.b4l_1, 1);
|
|
2355
|
+
var tmp_11 = this.n4l_1.uc().p36(this.k4l_1);
|
|
2356
|
+
var tmp_12 = this.p4l_1.solution.y1u().minus(this.a4l_1.context.k4c_1);
|
|
2357
|
+
var tmp_13 = this.k4l_1;
|
|
2358
|
+
var tmp_14 = this.p4l_1.sideEffectManager;
|
|
2359
|
+
suspendResult = solveConjunctionGoals(this.z4k_1, tmp_9, this.a4l_1, tmp_10, tmp_11, tmp_12, tmp_13, tmp_14 instanceof SideEffectManagerImpl ? tmp_14 : null, this.g4l_1 ? true : this.o4l_1, this);
|
|
2360
2360
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2361
2361
|
return suspendResult;
|
|
2362
2362
|
}
|
|
@@ -2364,20 +2364,20 @@
|
|
|
2364
2364
|
} else {
|
|
2365
2365
|
var tmp_15;
|
|
2366
2366
|
var tmp_16;
|
|
2367
|
-
var tmp_17 = this.
|
|
2367
|
+
var tmp_17 = this.p4l_1.solution;
|
|
2368
2368
|
if (!isInterface(tmp_17, No)) {
|
|
2369
2369
|
tmp_16 = true;
|
|
2370
2370
|
} else {
|
|
2371
|
-
tmp_16 = !this.
|
|
2371
|
+
tmp_16 = !this.g4l_1 ? !this.o4l_1 : false;
|
|
2372
2372
|
}
|
|
2373
2373
|
if (tmp_16) {
|
|
2374
2374
|
tmp_15 = true;
|
|
2375
2375
|
} else {
|
|
2376
|
-
tmp_15 = this.
|
|
2376
|
+
tmp_15 = this.j4l_1;
|
|
2377
2377
|
}
|
|
2378
2378
|
if (tmp_15) {
|
|
2379
2379
|
this.nc_1 = 2;
|
|
2380
|
-
suspendResult = this.
|
|
2380
|
+
suspendResult = this.z4k_1.ef(replyWith(this.a4l_1, this.p4l_1.b2j(VOID, VOID, plus_1(this.e4l_1, this.k4l_1))), this);
|
|
2381
2381
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2382
2382
|
return suspendResult;
|
|
2383
2383
|
}
|
|
@@ -2397,29 +2397,29 @@
|
|
|
2397
2397
|
case 4:
|
|
2398
2398
|
var sideEffectPair = suspendResult;
|
|
2399
2399
|
if (sideEffectPair.ye_1) {
|
|
2400
|
-
this.
|
|
2400
|
+
this.j4l_1 = true;
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
|
-
this.
|
|
2403
|
+
this.k4l_1 = sideEffectPair.ze_1;
|
|
2404
2404
|
this.nc_1 = 5;
|
|
2405
2405
|
continue $sm;
|
|
2406
2406
|
case 5:
|
|
2407
2407
|
var tmp_18;
|
|
2408
|
-
if (this.
|
|
2408
|
+
if (this.j4l_1) {
|
|
2409
2409
|
tmp_18 = true;
|
|
2410
2410
|
} else {
|
|
2411
|
-
var tmp_19 = this.
|
|
2411
|
+
var tmp_19 = this.p4l_1.solution;
|
|
2412
2412
|
tmp_18 = isInterface(tmp_19, Halt);
|
|
2413
2413
|
}
|
|
2414
2414
|
|
|
2415
2415
|
if (tmp_18) {
|
|
2416
|
-
return new Pair(true, plus_1(this.
|
|
2416
|
+
return new Pair(true, plus_1(this.e4l_1, this.k4l_1));
|
|
2417
2417
|
}
|
|
2418
2418
|
|
|
2419
2419
|
this.nc_1 = 1;
|
|
2420
2420
|
continue $sm;
|
|
2421
2421
|
case 6:
|
|
2422
|
-
return new Pair(this.
|
|
2422
|
+
return new Pair(this.j4l_1, plus_1(this.e4l_1, this.k4l_1));
|
|
2423
2423
|
case 7:
|
|
2424
2424
|
throw this.qc_1;
|
|
2425
2425
|
}
|
|
@@ -2438,11 +2438,11 @@
|
|
|
2438
2438
|
Conjunction_instance = this;
|
|
2439
2439
|
PrimitiveWrapper_init_$Init$(',', 2, VOID, this);
|
|
2440
2440
|
}
|
|
2441
|
-
protoOf(Conjunction).
|
|
2441
|
+
protoOf(Conjunction).x4j = function (request) {
|
|
2442
2442
|
return sequence(Conjunction$uncheckedImplementation$slambda_0(request, null));
|
|
2443
2443
|
};
|
|
2444
|
-
protoOf(Conjunction).
|
|
2445
|
-
return this.
|
|
2444
|
+
protoOf(Conjunction).i2g = function (request) {
|
|
2445
|
+
return this.x4j(request);
|
|
2446
2446
|
};
|
|
2447
2447
|
var Conjunction_instance;
|
|
2448
2448
|
function Conjunction_getInstance() {
|
|
@@ -2454,14 +2454,14 @@
|
|
|
2454
2454
|
Cut_instance = this;
|
|
2455
2455
|
PrimitiveWrapper_init_$Init$('!', 0, VOID, this);
|
|
2456
2456
|
}
|
|
2457
|
-
protoOf(Cut).
|
|
2457
|
+
protoOf(Cut).x4j = function (request) {
|
|
2458
2458
|
// Inline function 'kotlin.with' call
|
|
2459
2459
|
// Inline function 'kotlin.contracts.contract' call
|
|
2460
2460
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Cut.uncheckedImplementation.<anonymous>' call
|
|
2461
|
-
return sequenceOf([request.replySuccess(request.context.
|
|
2461
|
+
return sequenceOf([request.replySuccess(request.context.k4c_1, request.context.o4c_1.w4c(), [])]);
|
|
2462
2462
|
};
|
|
2463
|
-
protoOf(Cut).
|
|
2464
|
-
return this.
|
|
2463
|
+
protoOf(Cut).i2g = function (request) {
|
|
2464
|
+
return this.x4j(request);
|
|
2465
2465
|
};
|
|
2466
2466
|
var Cut_instance;
|
|
2467
2467
|
function Cut_getInstance() {
|
|
@@ -2470,17 +2470,17 @@
|
|
|
2470
2470
|
return Cut_instance;
|
|
2471
2471
|
}
|
|
2472
2472
|
function Not$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2473
|
-
this.
|
|
2473
|
+
this.l4m_1 = $request;
|
|
2474
2474
|
CoroutineImpl.call(this, resultContinuation);
|
|
2475
2475
|
}
|
|
2476
|
-
protoOf(Not$uncheckedImplementation$slambda).
|
|
2477
|
-
var tmp = this.
|
|
2476
|
+
protoOf(Not$uncheckedImplementation$slambda).s2s = function ($this$sequence, $completion) {
|
|
2477
|
+
var tmp = this.t2s($this$sequence, $completion);
|
|
2478
2478
|
tmp.pc_1 = Unit_instance;
|
|
2479
2479
|
tmp.qc_1 = null;
|
|
2480
2480
|
return tmp.yc();
|
|
2481
2481
|
};
|
|
2482
2482
|
protoOf(Not$uncheckedImplementation$slambda).ld = function (p1, $completion) {
|
|
2483
|
-
return this.
|
|
2483
|
+
return this.s2s(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2484
2484
|
};
|
|
2485
2485
|
protoOf(Not$uncheckedImplementation$slambda).yc = function () {
|
|
2486
2486
|
var suspendResult = this.pc_1;
|
|
@@ -2490,45 +2490,45 @@
|
|
|
2490
2490
|
switch (tmp) {
|
|
2491
2491
|
case 0:
|
|
2492
2492
|
this.oc_1 = 7;
|
|
2493
|
-
this.
|
|
2493
|
+
this.n4m_1 = single(this.l4m_1.arguments);
|
|
2494
2494
|
var tmp_0 = this;
|
|
2495
2495
|
var tmp_1 = Companion_instance_12;
|
|
2496
2496
|
var tmp_2 = Companion_getInstance_4();
|
|
2497
2497
|
var this_0 = Call_getInstance();
|
|
2498
|
-
tmp_0.
|
|
2499
|
-
this.
|
|
2498
|
+
tmp_0.o4m_1 = tmp_1.z4b(newSolveRequest(this.l4m_1, tmp_2.of(this_0.signature.name, [this.n4m_1])));
|
|
2499
|
+
this.p4m_1 = this.o4m_1.r();
|
|
2500
2500
|
this.nc_1 = 1;
|
|
2501
2501
|
continue $sm;
|
|
2502
2502
|
case 1:
|
|
2503
|
-
if (!this.
|
|
2503
|
+
if (!this.p4m_1.s()) {
|
|
2504
2504
|
this.nc_1 = 6;
|
|
2505
2505
|
continue $sm;
|
|
2506
2506
|
}
|
|
2507
2507
|
|
|
2508
|
-
this.
|
|
2508
|
+
this.q4m_1 = this.p4m_1.u();
|
|
2509
2509
|
var tmp_3 = this;
|
|
2510
|
-
tmp_3.
|
|
2511
|
-
this.
|
|
2512
|
-
var tmp_4 = this.
|
|
2510
|
+
tmp_3.r4m_1 = this.q4m_1;
|
|
2511
|
+
this.s4m_1 = this.r4m_1.solution;
|
|
2512
|
+
var tmp_4 = this.s4m_1;
|
|
2513
2513
|
if (isInterface(tmp_4, Yes)) {
|
|
2514
2514
|
this.nc_1 = 5;
|
|
2515
|
-
suspendResult = this.
|
|
2515
|
+
suspendResult = this.m4m_1.ef(this.l4m_1.replyFail(VOID, []), this);
|
|
2516
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2517
2517
|
return suspendResult;
|
|
2518
2518
|
}
|
|
2519
2519
|
continue $sm;
|
|
2520
2520
|
} else {
|
|
2521
|
-
var tmp_5 = this.
|
|
2521
|
+
var tmp_5 = this.s4m_1;
|
|
2522
2522
|
if (isInterface(tmp_5, No)) {
|
|
2523
2523
|
this.nc_1 = 3;
|
|
2524
|
-
suspendResult = this.
|
|
2524
|
+
suspendResult = this.m4m_1.ef(this.l4m_1.replySuccess(this.l4m_1.context.k4c_1, VOID, []), this);
|
|
2525
2525
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2526
2526
|
return suspendResult;
|
|
2527
2527
|
}
|
|
2528
2528
|
continue $sm;
|
|
2529
2529
|
} else {
|
|
2530
2530
|
this.nc_1 = 2;
|
|
2531
|
-
suspendResult = this.
|
|
2531
|
+
suspendResult = this.m4m_1.ef(replyWith(this.l4m_1, this.r4m_1), this);
|
|
2532
2532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2533
2533
|
return suspendResult;
|
|
2534
2534
|
}
|
|
@@ -2563,15 +2563,15 @@
|
|
|
2563
2563
|
}
|
|
2564
2564
|
while (true);
|
|
2565
2565
|
};
|
|
2566
|
-
protoOf(Not$uncheckedImplementation$slambda).
|
|
2567
|
-
var i = new Not$uncheckedImplementation$slambda(this.
|
|
2568
|
-
i.
|
|
2566
|
+
protoOf(Not$uncheckedImplementation$slambda).t2s = function ($this$sequence, completion) {
|
|
2567
|
+
var i = new Not$uncheckedImplementation$slambda(this.l4m_1, completion);
|
|
2568
|
+
i.m4m_1 = $this$sequence;
|
|
2569
2569
|
return i;
|
|
2570
2570
|
};
|
|
2571
2571
|
function Not$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2572
2572
|
var i = new Not$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2573
2573
|
var l = function ($this$sequence, $completion) {
|
|
2574
|
-
return i.
|
|
2574
|
+
return i.s2s($this$sequence, $completion);
|
|
2575
2575
|
};
|
|
2576
2576
|
l.$arity = 1;
|
|
2577
2577
|
return l;
|
|
@@ -2580,11 +2580,11 @@
|
|
|
2580
2580
|
Not_instance = this;
|
|
2581
2581
|
PrimitiveWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2582
2582
|
}
|
|
2583
|
-
protoOf(Not).
|
|
2583
|
+
protoOf(Not).x4j = function (request) {
|
|
2584
2584
|
return sequence(Not$uncheckedImplementation$slambda_0(request, null));
|
|
2585
2585
|
};
|
|
2586
|
-
protoOf(Not).
|
|
2587
|
-
return this.
|
|
2586
|
+
protoOf(Not).i2g = function (request) {
|
|
2587
|
+
return this.x4j(request);
|
|
2588
2588
|
};
|
|
2589
2589
|
var Not_instance;
|
|
2590
2590
|
function Not_getInstance() {
|
|
@@ -2643,14 +2643,14 @@
|
|
|
2643
2643
|
Throw_instance = this;
|
|
2644
2644
|
NonBacktrackable.call(this, 'throw');
|
|
2645
2645
|
}
|
|
2646
|
-
protoOf(Throw).
|
|
2646
|
+
protoOf(Throw).v4m = function (_this__u8e3s4, first) {
|
|
2647
2647
|
var tmp;
|
|
2648
2648
|
try {
|
|
2649
2649
|
// Inline function 'kotlin.let' call
|
|
2650
2650
|
// Inline function 'kotlin.contracts.contract' call
|
|
2651
2651
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.computeOne.<anonymous>' call
|
|
2652
|
-
var throwArgument = single(Companion_getInstance_5().
|
|
2653
|
-
var ancestorCatch = _this__u8e3s4.context.
|
|
2652
|
+
var throwArgument = single(Companion_getInstance_5().w2f(_this__u8e3s4).arguments).freshCopy();
|
|
2653
|
+
var ancestorCatch = _this__u8e3s4.context.o4c_1.e4d(throwArgument);
|
|
2654
2654
|
var tmp1_safe_receiver = ancestorCatch == null ? null : ancestorCatch.arguments;
|
|
2655
2655
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c1(1);
|
|
2656
2656
|
var tmp_0;
|
|
@@ -2660,14 +2660,14 @@
|
|
|
2660
2660
|
// Inline function 'kotlin.let' call
|
|
2661
2661
|
// Inline function 'kotlin.contracts.contract' call
|
|
2662
2662
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.computeOne.<anonymous>.<anonymous>' call
|
|
2663
|
-
tmp_0 = Companion_getInstance_5().
|
|
2663
|
+
tmp_0 = Companion_getInstance_5().w2g(_this__u8e3s4, tmp2_safe_receiver, throwArgument);
|
|
2664
2664
|
}
|
|
2665
2665
|
var catcher = tmp_0;
|
|
2666
2666
|
var tmp_1;
|
|
2667
2667
|
if (!(catcher == null) ? isInterface(catcher, Unifier) : false) {
|
|
2668
|
-
var tmp_2 = _this__u8e3s4.context.
|
|
2668
|
+
var tmp_2 = _this__u8e3s4.context.k4c_1.plus(catcher);
|
|
2669
2669
|
var newSubstitution = isInterface(tmp_2, Unifier) ? tmp_2 : THROW_CCE();
|
|
2670
|
-
tmp_1 = _this__u8e3s4.replySuccess(newSubstitution, _this__u8e3s4.context.
|
|
2670
|
+
tmp_1 = _this__u8e3s4.replySuccess(newSubstitution, _this__u8e3s4.context.o4c_1.f4d(ancestorCatch.context), []);
|
|
2671
2671
|
} else {
|
|
2672
2672
|
var errorCause = extractErrorCauseChain(throwArgument, Throw_getInstance(), _this__u8e3s4.context);
|
|
2673
2673
|
var tmp_3;
|
|
@@ -2690,8 +2690,8 @@
|
|
|
2690
2690
|
}
|
|
2691
2691
|
return tmp;
|
|
2692
2692
|
};
|
|
2693
|
-
protoOf(Throw).
|
|
2694
|
-
return this.
|
|
2693
|
+
protoOf(Throw).q2j = function (_this__u8e3s4, first) {
|
|
2694
|
+
return this.v4m(_this__u8e3s4, first);
|
|
2695
2695
|
};
|
|
2696
2696
|
var Throw_instance;
|
|
2697
2697
|
function Throw_getInstance() {
|
|
@@ -2710,38 +2710,38 @@
|
|
|
2710
2710
|
protoOf(StreamsSolver).solveOnce = solveOnce;
|
|
2711
2711
|
protoOf(StreamsSolver).solveOnceWithOptions = solveOnceWithOptions;
|
|
2712
2712
|
protoOf(StreamsSolver).clone = clone;
|
|
2713
|
-
protoOf(StreamsSolver).
|
|
2714
|
-
protoOf(StreamsSolver).
|
|
2715
|
-
protoOf(StreamsSolver).
|
|
2716
|
-
protoOf(StreamsSolver).
|
|
2713
|
+
protoOf(StreamsSolver).m1v = get_standardInput;
|
|
2714
|
+
protoOf(StreamsSolver).n1v = get_standardOutput;
|
|
2715
|
+
protoOf(StreamsSolver).o1v = get_standardError;
|
|
2716
|
+
protoOf(StreamsSolver).p1v = get_warnings;
|
|
2717
2717
|
protoOf(StreamsSolverFactory).rawSolverOf = rawSolverOf;
|
|
2718
2718
|
protoOf(StreamsSolverFactory).solverOf = solverOf;
|
|
2719
2719
|
protoOf(StreamsSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2720
2720
|
protoOf(StreamsSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2721
2721
|
protoOf(StreamsSolverFactory).newBuilder = newBuilder;
|
|
2722
|
-
protoOf(StreamsSolverFactory).
|
|
2723
|
-
protoOf(StreamsSolverFactory).
|
|
2724
|
-
protoOf(StreamsSolverFactory).
|
|
2725
|
-
protoOf(StreamsSolverFactory).
|
|
2726
|
-
protoOf(StreamsSolverFactory).
|
|
2727
|
-
protoOf(StreamsSolverFactory).
|
|
2728
|
-
protoOf(StreamsSolverFactory).
|
|
2729
|
-
protoOf(StreamsSolverFactory).
|
|
2730
|
-
protoOf(StreamsSolverFactory).
|
|
2731
|
-
protoOf(StreamsSolverFactory).
|
|
2722
|
+
protoOf(StreamsSolverFactory).c1y = get_defaultRuntime;
|
|
2723
|
+
protoOf(StreamsSolverFactory).e1y = get_defaultUnificator;
|
|
2724
|
+
protoOf(StreamsSolverFactory).f1y = get_defaultFlags;
|
|
2725
|
+
protoOf(StreamsSolverFactory).i1y = get_defaultStaticKb;
|
|
2726
|
+
protoOf(StreamsSolverFactory).j1y = get_defaultDynamicKb;
|
|
2727
|
+
protoOf(StreamsSolverFactory).k1y = get_defaultInputChannel;
|
|
2728
|
+
protoOf(StreamsSolverFactory).l1y = get_defaultOutputChannel;
|
|
2729
|
+
protoOf(StreamsSolverFactory).m1y = get_defaultErrorChannel;
|
|
2730
|
+
protoOf(StreamsSolverFactory).n1y = get_defaultWarningsChannel;
|
|
2731
|
+
protoOf(StreamsSolverFactory).v1y = solverWithDefaultBuiltins;
|
|
2732
2732
|
protoOf(StreamsSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2733
|
-
protoOf(StreamsSolverFactory).
|
|
2733
|
+
protoOf(StreamsSolverFactory).x1y = mutableSolverWithDefaultBuiltins;
|
|
2734
2734
|
protoOf(StreamsSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2735
2735
|
protoOf(StreamsExecutionContext).createSolver = createSolver;
|
|
2736
2736
|
protoOf(StreamsExecutionContext).createMutableSolver = createMutableSolver;
|
|
2737
2737
|
protoOf(StreamsExecutionContext).update = update;
|
|
2738
|
-
protoOf(StreamsExecutionContext).
|
|
2739
|
-
protoOf(StreamsExecutionContext).
|
|
2740
|
-
protoOf(StreamsExecutionContext).
|
|
2741
|
-
protoOf(StreamsExecutionContext).
|
|
2742
|
-
protoOf(StreamsExecutionContext).
|
|
2743
|
-
protoOf(StreamsExecutionContext).
|
|
2744
|
-
protoOf(StreamsExecutionContext).
|
|
2738
|
+
protoOf(StreamsExecutionContext).m1v = get_standardInput;
|
|
2739
|
+
protoOf(StreamsExecutionContext).n1v = get_standardOutput;
|
|
2740
|
+
protoOf(StreamsExecutionContext).o1v = get_standardError;
|
|
2741
|
+
protoOf(StreamsExecutionContext).p1v = get_warnings;
|
|
2742
|
+
protoOf(StreamsExecutionContext).t1u = get_endTime;
|
|
2743
|
+
protoOf(StreamsExecutionContext).v1u = get_remainingTime;
|
|
2744
|
+
protoOf(StreamsExecutionContext).w1u = get_elapsedTime;
|
|
2745
2745
|
protoOf(AbstractTimedState).uc = get_context;
|
|
2746
2746
|
//endregion
|
|
2747
2747
|
//region block: init
|