@tuprolog/2p-full 0.31.5-dev0a → 0.31.5-dev0f
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 +141 -141
- package/2p-core.js +2841 -2841
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +573 -573
- package/2p-oop-lib.js +815 -815
- package/2p-parser-core.js +136 -136
- package/2p-parser-theory.js +11 -11
- package/2p-repl.js +80 -80
- package/2p-solve-classic.js +936 -936
- package/2p-solve-plp.js +1 -1
- package/2p-solve-problog.js +1250 -1250
- package/2p-solve-streams.js +851 -851
- package/2p-solve.js +3409 -3409
- package/2p-theory.js +1258 -1258
- package/2p-unify.js +208 -208
- package/2p-utils.js +324 -324
- package/clikt-clikt-js-ir.js +1143 -1180
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +760 -747
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kt-math.js +2184 -2184
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
package/2p-solve-streams.js
CHANGED
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
setMetadataFor(AlreadyExecutedState, 'AlreadyExecutedState', classMeta, undefined, undefined, undefined, undefined, []);
|
|
165
165
|
setMetadataFor(FinalState, 'FinalState', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
166
166
|
function get_context() {
|
|
167
|
-
var tmp = this.
|
|
167
|
+
var tmp = this.h4c().context;
|
|
168
168
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
169
169
|
}
|
|
170
170
|
setMetadataFor(IntermediateState, 'IntermediateState', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
@@ -198,19 +198,19 @@
|
|
|
198
198
|
//endregion
|
|
199
199
|
function SolverStrategies$Companion$prologStandard$1() {
|
|
200
200
|
}
|
|
201
|
-
SolverStrategies$Companion$prologStandard$1.prototype.
|
|
201
|
+
SolverStrategies$Companion$prologStandard$1.prototype.d4c = function (predicationSequence, context) {
|
|
202
202
|
return first(predicationSequence);
|
|
203
203
|
};
|
|
204
|
-
SolverStrategies$Companion$prologStandard$1.prototype.
|
|
204
|
+
SolverStrategies$Companion$prologStandard$1.prototype.e4c = function (unifiableClauses, context) {
|
|
205
205
|
return first(unifiableClauses);
|
|
206
206
|
};
|
|
207
|
-
SolverStrategies$Companion$prologStandard$1.prototype.
|
|
208
|
-
return term.
|
|
207
|
+
SolverStrategies$Companion$prologStandard$1.prototype.f4c = function (term, context) {
|
|
208
|
+
return term.aw();
|
|
209
209
|
};
|
|
210
210
|
function Companion() {
|
|
211
211
|
Companion_instance = this;
|
|
212
212
|
var tmp = this;
|
|
213
|
-
tmp.
|
|
213
|
+
tmp.g4c_1 = new SolverStrategies$Companion$prologStandard$1();
|
|
214
214
|
}
|
|
215
215
|
var Companion_instance;
|
|
216
216
|
function Companion_getInstance_15() {
|
|
@@ -223,14 +223,14 @@
|
|
|
223
223
|
}
|
|
224
224
|
function StreamsSolver$Companion$solveToFinalStates$lambda_0($goalRequest) {
|
|
225
225
|
return function (it) {
|
|
226
|
-
return it.
|
|
226
|
+
return it.h4c().solution.u1v().equals($goalRequest.u1v());
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
function StreamsSolver$Companion$solveToResponses$lambda(it) {
|
|
230
|
-
return it.
|
|
230
|
+
return it.h4c();
|
|
231
231
|
}
|
|
232
232
|
function StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $this) {
|
|
233
|
-
StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().
|
|
233
|
+
StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().m1y(stdIn), Companion_getInstance_0().p1y(stdOut, stdErr, warnings));
|
|
234
234
|
return $this;
|
|
235
235
|
}
|
|
236
236
|
function StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
@@ -239,17 +239,17 @@
|
|
|
239
239
|
function Companion_0() {
|
|
240
240
|
Companion_instance_0 = this;
|
|
241
241
|
}
|
|
242
|
-
Companion_0.prototype.
|
|
242
|
+
Companion_0.prototype.i4c = function (goalRequest) {
|
|
243
243
|
var tmp$ret$0;
|
|
244
244
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
245
|
-
var tmp0_filterIsInstance = StateMachineExecutor_getInstance().
|
|
245
|
+
var tmp0_filterIsInstance = StateMachineExecutor_getInstance().j4c(new StateInit(goalRequest));
|
|
246
246
|
var tmp = filter(tmp0_filterIsInstance, StreamsSolver$Companion$solveToFinalStates$lambda);
|
|
247
247
|
tmp$ret$0 = isInterface(tmp, Sequence) ? tmp : THROW_CCE();
|
|
248
248
|
var tmp_0 = tmp$ret$0;
|
|
249
249
|
return filter(tmp_0, StreamsSolver$Companion$solveToFinalStates$lambda_0(goalRequest));
|
|
250
250
|
};
|
|
251
|
-
Companion_0.prototype.
|
|
252
|
-
var tmp = this.
|
|
251
|
+
Companion_0.prototype.k4c = function (goalRequest) {
|
|
252
|
+
var tmp = this.i4c(goalRequest);
|
|
253
253
|
return map(tmp, StreamsSolver$Companion$solveToResponses$lambda);
|
|
254
254
|
};
|
|
255
255
|
var Companion_instance_0;
|
|
@@ -260,8 +260,8 @@
|
|
|
260
260
|
}
|
|
261
261
|
function StreamsSolver$solve$lambda(this$0) {
|
|
262
262
|
return function (it) {
|
|
263
|
-
this$0.
|
|
264
|
-
return it.
|
|
263
|
+
this$0.l4c_1 = it.j5().z36(it.h4c().sideEffects);
|
|
264
|
+
return it.h4c().solution.cleanUp();
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
function StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
@@ -270,82 +270,82 @@
|
|
|
270
270
|
var tmp_0 = toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb]));
|
|
271
271
|
var tmp_1 = new Long(0, 0);
|
|
272
272
|
var tmp_2 = new Long(0, 0);
|
|
273
|
-
tmp.
|
|
273
|
+
tmp.l4c_1 = StreamsExecutionContext_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, tmp_0, inputChannels, outputChannels, null, null, tmp_1, tmp_2, null, null, 16128, null);
|
|
274
274
|
}
|
|
275
|
-
StreamsSolver.prototype.
|
|
275
|
+
StreamsSolver.prototype.z2b = function (goal, options) {
|
|
276
276
|
var tmp = this;
|
|
277
|
-
var tmp_0 = this.
|
|
278
|
-
var tmp_1 = this.
|
|
279
|
-
var tmp_2 = this.
|
|
280
|
-
var tmp_3 = this.
|
|
281
|
-
var tmp_4 = this.
|
|
282
|
-
var tmp_5 = this.
|
|
283
|
-
var tmp_6 = this.
|
|
277
|
+
var tmp_0 = this.h1l();
|
|
278
|
+
var tmp_1 = this.t1u();
|
|
279
|
+
var tmp_2 = this.u1u();
|
|
280
|
+
var tmp_3 = this.v1u();
|
|
281
|
+
var tmp_4 = this.w1u();
|
|
282
|
+
var tmp_5 = this.x1u();
|
|
283
|
+
var tmp_6 = this.y1u();
|
|
284
284
|
var tmp_7 = new Long(0, 0);
|
|
285
|
-
var tmp_8 = options.
|
|
286
|
-
tmp.
|
|
285
|
+
var tmp_8 = options.g1x();
|
|
286
|
+
tmp.l4c_1 = StreamsExecutionContext_init_$Create$(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, null, tmp_5, tmp_6, null, null, tmp_7, tmp_8, null, null, 14112, null);
|
|
287
287
|
var tmp_9 = Companion_getInstance_16();
|
|
288
288
|
var tmp_10 = extractSignature(goal);
|
|
289
|
-
var tmp_11 = goal.
|
|
290
|
-
var tmp_12 = this.
|
|
289
|
+
var tmp_11 = goal.dw();
|
|
290
|
+
var tmp_12 = this.l4c_1;
|
|
291
291
|
var tmp_13 = new Long(0, 0);
|
|
292
|
-
var tmp_14 = tmp_9.
|
|
292
|
+
var tmp_14 = tmp_9.i4c(Request_init_$Create$(tmp_10, tmp_11, tmp_12, tmp_13, new Long(0, 0), 24, null));
|
|
293
293
|
var solutionSequence = map(tmp_14, StreamsSolver$solve$lambda(this));
|
|
294
|
-
if (options.
|
|
295
|
-
solutionSequence = take(solutionSequence, options.
|
|
294
|
+
if (options.h1x() > 0) {
|
|
295
|
+
solutionSequence = take(solutionSequence, options.h1x());
|
|
296
296
|
}
|
|
297
|
-
if (options.
|
|
297
|
+
if (options.f1x()) {
|
|
298
298
|
solutionSequence = buffered(solutionSequence);
|
|
299
299
|
}
|
|
300
300
|
return solutionSequence;
|
|
301
301
|
};
|
|
302
302
|
StreamsSolver.prototype.solveWithOptions = function (goal, options) {
|
|
303
|
-
return this.
|
|
303
|
+
return this.z2b(goal, options);
|
|
304
304
|
};
|
|
305
|
-
StreamsSolver.prototype.
|
|
305
|
+
StreamsSolver.prototype.m1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
306
306
|
return StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
307
307
|
};
|
|
308
|
-
StreamsSolver.prototype.
|
|
309
|
-
return this.
|
|
308
|
+
StreamsSolver.prototype.h1l = function () {
|
|
309
|
+
return this.l4c_1.m4c_1;
|
|
310
310
|
};
|
|
311
|
-
StreamsSolver.prototype.
|
|
312
|
-
return this.
|
|
311
|
+
StreamsSolver.prototype.t1u = function () {
|
|
312
|
+
return this.l4c_1.n4c_1;
|
|
313
313
|
};
|
|
314
|
-
StreamsSolver.prototype.
|
|
315
|
-
return this.o4c_1
|
|
314
|
+
StreamsSolver.prototype.u1u = function () {
|
|
315
|
+
return this.l4c_1.o4c_1;
|
|
316
316
|
};
|
|
317
|
-
StreamsSolver.prototype.
|
|
318
|
-
return this.
|
|
317
|
+
StreamsSolver.prototype.v1u = function () {
|
|
318
|
+
return this.l4c_1.p4c_1;
|
|
319
319
|
};
|
|
320
|
-
StreamsSolver.prototype.
|
|
321
|
-
return this.
|
|
320
|
+
StreamsSolver.prototype.w1u = function () {
|
|
321
|
+
return this.l4c_1.q4c_1;
|
|
322
322
|
};
|
|
323
|
-
StreamsSolver.prototype.
|
|
324
|
-
return this.
|
|
323
|
+
StreamsSolver.prototype.x1u = function () {
|
|
324
|
+
return this.l4c_1.s4c_1;
|
|
325
325
|
};
|
|
326
|
-
StreamsSolver.prototype.
|
|
327
|
-
return this.
|
|
326
|
+
StreamsSolver.prototype.y1u = function () {
|
|
327
|
+
return this.l4c_1.t4c_1;
|
|
328
328
|
};
|
|
329
|
-
StreamsSolver.prototype.
|
|
330
|
-
return this.
|
|
329
|
+
StreamsSolver.prototype.e1v = function () {
|
|
330
|
+
return this.l4c_1.r4c_1;
|
|
331
331
|
};
|
|
332
332
|
function StreamsSolverFactory() {
|
|
333
333
|
StreamsSolverFactory_instance = this;
|
|
334
334
|
}
|
|
335
|
-
StreamsSolverFactory.prototype.
|
|
335
|
+
StreamsSolverFactory.prototype.a1y = function () {
|
|
336
336
|
return DefaultBuiltins_getInstance();
|
|
337
337
|
};
|
|
338
|
-
StreamsSolverFactory.prototype.
|
|
338
|
+
StreamsSolverFactory.prototype.q1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
339
339
|
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
340
340
|
};
|
|
341
|
-
StreamsSolverFactory.prototype.
|
|
342
|
-
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().
|
|
341
|
+
StreamsSolverFactory.prototype.s1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
342
|
+
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().m1y(stdIn), Companion_getInstance_0().p1y(stdOut, stdErr, warnings));
|
|
343
343
|
};
|
|
344
|
-
StreamsSolverFactory.prototype.
|
|
344
|
+
StreamsSolverFactory.prototype.w1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
345
345
|
// Inline function 'kotlin.TODO' call
|
|
346
346
|
throw new NotImplementedError('An operation is not implemented: Mutable stream solver is not supported yet');
|
|
347
347
|
};
|
|
348
|
-
StreamsSolverFactory.prototype.
|
|
348
|
+
StreamsSolverFactory.prototype.a1z = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
349
349
|
// Inline function 'kotlin.TODO' call
|
|
350
350
|
throw new NotImplementedError('An operation is not implemented: Mutable stream solver is not supported yet');
|
|
351
351
|
};
|
|
@@ -379,16 +379,16 @@
|
|
|
379
379
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
380
380
|
var tmp$ret$2;
|
|
381
381
|
// Inline function 'kotlin.collections.filter' call
|
|
382
|
-
var tmp0_filter = $this.
|
|
382
|
+
var tmp0_filter = $this.b4d_1;
|
|
383
383
|
var tmp$ret$1;
|
|
384
384
|
// Inline function 'kotlin.collections.filterTo' call
|
|
385
385
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
386
386
|
var tmp0_iterator = tmp0_filter.j();
|
|
387
387
|
while (tmp0_iterator.m()) {
|
|
388
|
-
var element = tmp0_iterator.
|
|
388
|
+
var element = tmp0_iterator.n();
|
|
389
389
|
var tmp$ret$0;
|
|
390
390
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.getFirstChoicePointContext.<anonymous>' call
|
|
391
|
-
tmp$ret$0 = element.c4d_1
|
|
391
|
+
tmp$ret$0 = element.z4c_1.c4d_1;
|
|
392
392
|
if (tmp$ret$0) {
|
|
393
393
|
tmp0_filterTo.g(element);
|
|
394
394
|
}
|
|
@@ -402,11 +402,11 @@
|
|
|
402
402
|
// Inline function 'kotlin.collections.forEach' call
|
|
403
403
|
var tmp0_iterator_0 = tmp1_mapNotNull.j();
|
|
404
404
|
while (tmp0_iterator_0.m()) {
|
|
405
|
-
var element_0 = tmp0_iterator_0.
|
|
405
|
+
var element_0 = tmp0_iterator_0.n();
|
|
406
406
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
407
407
|
var tmp$ret$3;
|
|
408
408
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.getFirstChoicePointContext.<anonymous>' call
|
|
409
|
-
tmp$ret$3 = firstOrNull(element_0.
|
|
409
|
+
tmp$ret$3 = firstOrNull(element_0.z4c_1.b4d_1);
|
|
410
410
|
var tmp0_safe_receiver = tmp$ret$3;
|
|
411
411
|
if (tmp0_safe_receiver == null)
|
|
412
412
|
null;
|
|
@@ -423,35 +423,35 @@
|
|
|
423
423
|
return tmp$ret$6;
|
|
424
424
|
}
|
|
425
425
|
function SideEffectManagerImpl(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
|
|
426
|
-
this.
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
426
|
+
this.b4d_1 = clauseScopedParents;
|
|
427
|
+
this.c4d_1 = isChoicePointChild;
|
|
428
|
+
this.d4d_1 = toCutContextsParent;
|
|
429
|
+
this.e4d_1 = logicalParentRequests;
|
|
430
|
+
this.f4d_1 = throwNonSelectableParentContexts;
|
|
431
|
+
this.g4d_1 = throwRelatedToCutContextsParent;
|
|
432
432
|
}
|
|
433
|
-
SideEffectManagerImpl.prototype.
|
|
434
|
-
var tmp = plus(this.
|
|
435
|
-
return this.
|
|
433
|
+
SideEffectManagerImpl.prototype.h4d = function () {
|
|
434
|
+
var tmp = plus(this.d4d_1, getFirstChoicePointContext(this));
|
|
435
|
+
return this.i4d(null, false, tmp, null, null, null, 59, null);
|
|
436
436
|
};
|
|
437
437
|
SideEffectManagerImpl.prototype.cut = function () {
|
|
438
|
-
return this.
|
|
438
|
+
return this.h4d();
|
|
439
439
|
};
|
|
440
|
-
SideEffectManagerImpl.prototype.
|
|
440
|
+
SideEffectManagerImpl.prototype.j4d = function (currentContext) {
|
|
441
441
|
var tmp$ret$0;
|
|
442
442
|
// Inline function 'kotlin.apply' call
|
|
443
|
-
var tmp0_apply = toMutableList(this.
|
|
443
|
+
var tmp0_apply = toMutableList(this.b4d_1);
|
|
444
444
|
// Inline function 'kotlin.contracts.contract' call
|
|
445
445
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.stateInitInitialize.<anonymous>' call
|
|
446
446
|
tmp0_apply.ua(0, currentContext);
|
|
447
447
|
tmp$ret$0 = tmp0_apply;
|
|
448
448
|
var tmp = tmp$ret$0;
|
|
449
|
-
return this.
|
|
449
|
+
return this.i4d(tmp, false, null, null, null, null, 60, null);
|
|
450
450
|
};
|
|
451
|
-
SideEffectManagerImpl.prototype.
|
|
451
|
+
SideEffectManagerImpl.prototype.k4d = function (currentContext, isChoicePointChild, logicalParentRequest) {
|
|
452
452
|
var tmp$ret$0;
|
|
453
453
|
// Inline function 'kotlin.apply' call
|
|
454
|
-
var tmp0_apply = toMutableList(this.
|
|
454
|
+
var tmp0_apply = toMutableList(this.b4d_1);
|
|
455
455
|
// Inline function 'kotlin.contracts.contract' call
|
|
456
456
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.creatingNewRequest.<anonymous>' call
|
|
457
457
|
tmp0_apply.ua(0, currentContext);
|
|
@@ -459,15 +459,15 @@
|
|
|
459
459
|
var tmp = tmp$ret$0;
|
|
460
460
|
var tmp0_subject = logicalParentRequest;
|
|
461
461
|
var tmp_0;
|
|
462
|
-
if (this.
|
|
462
|
+
if (this.e4d_1.v(tmp0_subject)) {
|
|
463
463
|
var tmp$ret$2;
|
|
464
464
|
// Inline function 'kotlin.collections.dropWhile' call
|
|
465
|
-
var tmp1_dropWhile = this.
|
|
465
|
+
var tmp1_dropWhile = this.e4d_1;
|
|
466
466
|
var yielding = false;
|
|
467
467
|
var list = ArrayList_init_$Create$();
|
|
468
468
|
var tmp0_iterator = tmp1_dropWhile.j();
|
|
469
469
|
while (tmp0_iterator.m()) {
|
|
470
|
-
var item = tmp0_iterator.
|
|
470
|
+
var item = tmp0_iterator.n();
|
|
471
471
|
if (yielding) {
|
|
472
472
|
list.g(item);
|
|
473
473
|
} else {
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
} else {
|
|
486
486
|
var tmp$ret$3;
|
|
487
487
|
// Inline function 'kotlin.apply' call
|
|
488
|
-
var tmp2_apply = toMutableList(this.
|
|
488
|
+
var tmp2_apply = toMutableList(this.e4d_1);
|
|
489
489
|
// Inline function 'kotlin.contracts.contract' call
|
|
490
490
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.creatingNewRequest.<anonymous>' call
|
|
491
491
|
tmp2_apply.ua(0, logicalParentRequest);
|
|
@@ -493,38 +493,38 @@
|
|
|
493
493
|
tmp_0 = tmp$ret$3;
|
|
494
494
|
}
|
|
495
495
|
var tmp_1 = tmp_0;
|
|
496
|
-
return this.
|
|
496
|
+
return this.i4d(tmp, isChoicePointChild, null, tmp_1, null, null, 52, null);
|
|
497
497
|
};
|
|
498
|
-
SideEffectManagerImpl.prototype.
|
|
499
|
-
var tmp = listOf(first_0(this.
|
|
500
|
-
return this.
|
|
498
|
+
SideEffectManagerImpl.prototype.l4d = function () {
|
|
499
|
+
var tmp = listOf(first_0(this.b4d_1));
|
|
500
|
+
return this.i4d(tmp, false, null, null, null, null, 62, null);
|
|
501
501
|
};
|
|
502
|
-
SideEffectManagerImpl.prototype.
|
|
502
|
+
SideEffectManagerImpl.prototype.m4d = function (upperScopeSideEffectsManager) {
|
|
503
503
|
var tmp$ret$0;
|
|
504
504
|
// Inline function 'kotlin.apply' call
|
|
505
|
-
var tmp0_apply = toMutableList(this.
|
|
505
|
+
var tmp0_apply = toMutableList(this.b4d_1);
|
|
506
506
|
// Inline function 'kotlin.contracts.contract' call
|
|
507
507
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.extendParentScopeWith.<anonymous>' call
|
|
508
|
-
tmp0_apply.t(upperScopeSideEffectsManager.
|
|
508
|
+
tmp0_apply.t(upperScopeSideEffectsManager.b4d_1);
|
|
509
509
|
tmp$ret$0 = tmp0_apply;
|
|
510
510
|
var tmp = tmp$ret$0;
|
|
511
|
-
return this.
|
|
511
|
+
return this.i4d(tmp, false, null, null, null, null, 62, null);
|
|
512
512
|
};
|
|
513
|
-
SideEffectManagerImpl.prototype.
|
|
514
|
-
return contains(this.
|
|
513
|
+
SideEffectManagerImpl.prototype.n4d = function () {
|
|
514
|
+
return contains(this.d4d_1, lastOrNull(this.b4d_1)) ? true : this.o4d();
|
|
515
515
|
};
|
|
516
|
-
SideEffectManagerImpl.prototype.
|
|
516
|
+
SideEffectManagerImpl.prototype.p4d = function (toUnifyArgument) {
|
|
517
517
|
var tmp$ret$5;
|
|
518
518
|
// Inline function 'kotlin.collections.filterNot' call
|
|
519
519
|
var tmp$ret$2;
|
|
520
520
|
// Inline function 'kotlin.collections.filter' call
|
|
521
|
-
var tmp0_filter = this.
|
|
521
|
+
var tmp0_filter = this.e4d_1;
|
|
522
522
|
var tmp$ret$1;
|
|
523
523
|
// Inline function 'kotlin.collections.filterTo' call
|
|
524
524
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
525
525
|
var tmp0_iterator = tmp0_filter.j();
|
|
526
526
|
while (tmp0_iterator.m()) {
|
|
527
|
-
var element = tmp0_iterator.
|
|
527
|
+
var element = tmp0_iterator.n();
|
|
528
528
|
var tmp$ret$0;
|
|
529
529
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
|
|
530
530
|
tmp$ret$0 = element.signature.equals(Catch_getInstance().signature);
|
|
@@ -540,10 +540,10 @@
|
|
|
540
540
|
var tmp0_filterNotTo = ArrayList_init_$Create$();
|
|
541
541
|
var tmp0_iterator_0 = tmp1_filterNot.j();
|
|
542
542
|
while (tmp0_iterator_0.m()) {
|
|
543
|
-
var element_0 = tmp0_iterator_0.
|
|
543
|
+
var element_0 = tmp0_iterator_0.n();
|
|
544
544
|
var tmp$ret$3;
|
|
545
545
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
|
|
546
|
-
tmp$ret$3 = contains(this.
|
|
546
|
+
tmp$ret$3 = contains(this.f4d_1, element_0.context);
|
|
547
547
|
if (!tmp$ret$3) {
|
|
548
548
|
tmp0_filterNotTo.g(element_0);
|
|
549
549
|
}
|
|
@@ -558,10 +558,10 @@
|
|
|
558
558
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
559
559
|
var tmp0_iterator_1 = ancestorCatchesRequests.j();
|
|
560
560
|
while (tmp0_iterator_1.m()) {
|
|
561
|
-
var element_1 = tmp0_iterator_1.
|
|
561
|
+
var element_1 = tmp0_iterator_1.n();
|
|
562
562
|
var tmp$ret$6;
|
|
563
563
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
|
|
564
|
-
tmp$ret$6 = Companion_getInstance_1().matches(element_1.arguments.
|
|
564
|
+
tmp$ret$6 = Companion_getInstance_1().matches(element_1.arguments.o(1), toUnifyArgument);
|
|
565
565
|
if (tmp$ret$6) {
|
|
566
566
|
tmp$ret$7 = element_1;
|
|
567
567
|
break $l$block;
|
|
@@ -572,24 +572,24 @@
|
|
|
572
572
|
tmp$ret$8 = tmp$ret$7;
|
|
573
573
|
return tmp$ret$8;
|
|
574
574
|
};
|
|
575
|
-
SideEffectManagerImpl.prototype.
|
|
576
|
-
return this.
|
|
575
|
+
SideEffectManagerImpl.prototype.q4d = function (ancestorCatchContext) {
|
|
576
|
+
return this.i4d(null, false, null, null, null, ancestorCatchContext, 31, null);
|
|
577
577
|
};
|
|
578
|
-
SideEffectManagerImpl.prototype.
|
|
579
|
-
return equals(this.
|
|
578
|
+
SideEffectManagerImpl.prototype.r4d = function (contextImpl) {
|
|
579
|
+
return equals(this.g4d_1, contextImpl);
|
|
580
580
|
};
|
|
581
|
-
SideEffectManagerImpl.prototype.
|
|
582
|
-
var tmp = plus_0(this.
|
|
583
|
-
return this.
|
|
581
|
+
SideEffectManagerImpl.prototype.s4d = function (contextImpl) {
|
|
582
|
+
var tmp = plus_0(this.f4d_1, contextImpl);
|
|
583
|
+
return this.i4d(null, false, null, null, tmp, null, 47, null);
|
|
584
584
|
};
|
|
585
|
-
SideEffectManagerImpl.prototype.
|
|
586
|
-
return this.
|
|
585
|
+
SideEffectManagerImpl.prototype.t4d = function (toRecoverSituation) {
|
|
586
|
+
return this.i4d(null, false, toRecoverSituation.d4d_1, null, null, null, 59, null);
|
|
587
587
|
};
|
|
588
|
-
SideEffectManagerImpl.prototype.
|
|
588
|
+
SideEffectManagerImpl.prototype.o4d = function () {
|
|
589
589
|
var tmp$ret$0;
|
|
590
590
|
$l$block_0: {
|
|
591
591
|
// Inline function 'kotlin.collections.any' call
|
|
592
|
-
var tmp0_any = this.
|
|
592
|
+
var tmp0_any = this.e4d_1;
|
|
593
593
|
var tmp;
|
|
594
594
|
if (isInterface(tmp0_any, Collection)) {
|
|
595
595
|
tmp = tmp0_any.d();
|
|
@@ -602,10 +602,10 @@
|
|
|
602
602
|
}
|
|
603
603
|
var tmp0_iterator = tmp0_any.j();
|
|
604
604
|
while (tmp0_iterator.m()) {
|
|
605
|
-
var element = tmp0_iterator.
|
|
605
|
+
var element = tmp0_iterator.n();
|
|
606
606
|
var tmp$ret$1;
|
|
607
607
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.shouldExecuteThrowCut.<anonymous>' call
|
|
608
|
-
tmp$ret$1 = element.context.equals(this.
|
|
608
|
+
tmp$ret$1 = element.context.equals(this.g4d_1);
|
|
609
609
|
if (tmp$ret$1) {
|
|
610
610
|
tmp$ret$0 = true;
|
|
611
611
|
break $l$block_0;
|
|
@@ -615,34 +615,34 @@
|
|
|
615
615
|
}
|
|
616
616
|
return tmp$ret$0;
|
|
617
617
|
};
|
|
618
|
-
SideEffectManagerImpl.prototype.
|
|
618
|
+
SideEffectManagerImpl.prototype.u4d = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
|
|
619
619
|
return new SideEffectManagerImpl(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
620
620
|
};
|
|
621
|
-
SideEffectManagerImpl.prototype.
|
|
621
|
+
SideEffectManagerImpl.prototype.i4d = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $mask0, $handler) {
|
|
622
622
|
if (!(($mask0 & 1) === 0))
|
|
623
|
-
clauseScopedParents = this.
|
|
623
|
+
clauseScopedParents = this.b4d_1;
|
|
624
624
|
if (!(($mask0 & 2) === 0))
|
|
625
|
-
isChoicePointChild = this.
|
|
625
|
+
isChoicePointChild = this.c4d_1;
|
|
626
626
|
if (!(($mask0 & 4) === 0))
|
|
627
|
-
toCutContextsParent = this.
|
|
627
|
+
toCutContextsParent = this.d4d_1;
|
|
628
628
|
if (!(($mask0 & 8) === 0))
|
|
629
|
-
logicalParentRequests = this.
|
|
629
|
+
logicalParentRequests = this.e4d_1;
|
|
630
630
|
if (!(($mask0 & 16) === 0))
|
|
631
|
-
throwNonSelectableParentContexts = this.
|
|
631
|
+
throwNonSelectableParentContexts = this.f4d_1;
|
|
632
632
|
if (!(($mask0 & 32) === 0))
|
|
633
|
-
throwRelatedToCutContextsParent = this.
|
|
634
|
-
return this.
|
|
633
|
+
throwRelatedToCutContextsParent = this.g4d_1;
|
|
634
|
+
return this.u4d(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
635
635
|
};
|
|
636
636
|
SideEffectManagerImpl.prototype.toString = function () {
|
|
637
|
-
return 'SideEffectManagerImpl(clauseScopedParents=' + this.
|
|
637
|
+
return 'SideEffectManagerImpl(clauseScopedParents=' + this.b4d_1 + ', isChoicePointChild=' + this.c4d_1 + ', toCutContextsParent=' + this.d4d_1 + ', logicalParentRequests=' + this.e4d_1 + ', throwNonSelectableParentContexts=' + this.f4d_1 + ', throwRelatedToCutContextsParent=' + this.g4d_1 + ')';
|
|
638
638
|
};
|
|
639
639
|
SideEffectManagerImpl.prototype.hashCode = function () {
|
|
640
|
-
var result = hashCode(this.
|
|
641
|
-
result = imul(result, 31) + (this.
|
|
642
|
-
result = imul(result, 31) + hashCode(this.
|
|
643
|
-
result = imul(result, 31) + hashCode(this.
|
|
644
|
-
result = imul(result, 31) + hashCode(this.
|
|
645
|
-
result = imul(result, 31) + (this.
|
|
640
|
+
var result = hashCode(this.b4d_1);
|
|
641
|
+
result = imul(result, 31) + (this.c4d_1 | 0) | 0;
|
|
642
|
+
result = imul(result, 31) + hashCode(this.d4d_1) | 0;
|
|
643
|
+
result = imul(result, 31) + hashCode(this.e4d_1) | 0;
|
|
644
|
+
result = imul(result, 31) + hashCode(this.f4d_1) | 0;
|
|
645
|
+
result = imul(result, 31) + (this.g4d_1 == null ? 0 : this.g4d_1.hashCode()) | 0;
|
|
646
646
|
return result;
|
|
647
647
|
};
|
|
648
648
|
SideEffectManagerImpl.prototype.equals = function (other) {
|
|
@@ -651,42 +651,42 @@
|
|
|
651
651
|
if (!(other instanceof SideEffectManagerImpl))
|
|
652
652
|
return false;
|
|
653
653
|
var tmp0_other_with_cast = other instanceof SideEffectManagerImpl ? other : THROW_CCE();
|
|
654
|
-
if (!equals(this.
|
|
654
|
+
if (!equals(this.b4d_1, tmp0_other_with_cast.b4d_1))
|
|
655
655
|
return false;
|
|
656
|
-
if (!(this.
|
|
656
|
+
if (!(this.c4d_1 === tmp0_other_with_cast.c4d_1))
|
|
657
657
|
return false;
|
|
658
|
-
if (!equals(this.
|
|
658
|
+
if (!equals(this.d4d_1, tmp0_other_with_cast.d4d_1))
|
|
659
659
|
return false;
|
|
660
|
-
if (!equals(this.
|
|
660
|
+
if (!equals(this.e4d_1, tmp0_other_with_cast.e4d_1))
|
|
661
661
|
return false;
|
|
662
|
-
if (!equals(this.
|
|
662
|
+
if (!equals(this.f4d_1, tmp0_other_with_cast.f4d_1))
|
|
663
663
|
return false;
|
|
664
|
-
if (!equals(this.
|
|
664
|
+
if (!equals(this.g4d_1, tmp0_other_with_cast.g4d_1))
|
|
665
665
|
return false;
|
|
666
666
|
return true;
|
|
667
667
|
};
|
|
668
668
|
function resetCutWorkChanges(_this__u8e3s4, toRecoverSituation) {
|
|
669
669
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
670
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
670
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t4d(toRecoverSituation);
|
|
671
671
|
}
|
|
672
672
|
function isSelectedThrowCatch(_this__u8e3s4, context) {
|
|
673
673
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
674
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
674
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r4d(context);
|
|
675
675
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
676
676
|
}
|
|
677
677
|
function shouldExecuteThrowCut(_this__u8e3s4) {
|
|
678
678
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
679
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
679
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o4d();
|
|
680
680
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
681
681
|
}
|
|
682
682
|
function shouldCutExecuteInRuleSelection(_this__u8e3s4) {
|
|
683
683
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
684
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
684
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n4d();
|
|
685
685
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
686
686
|
}
|
|
687
687
|
function extendParentScopeWith(_this__u8e3s4, upperScopeSideEffectsManager) {
|
|
688
688
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
689
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
689
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m4d(upperScopeSideEffectsManager);
|
|
690
690
|
}
|
|
691
691
|
function isWellFormed(_this__u8e3s4) {
|
|
692
692
|
return _this__u8e3s4.accept(Companion_getInstance_2().bodyWellFormedVisitor);
|
|
@@ -703,25 +703,25 @@
|
|
|
703
703
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
704
704
|
var tmp0_toTypedArray = otherResponse.sideEffects;
|
|
705
705
|
tmp$ret$0 = copyToArray(tmp0_toTypedArray);
|
|
706
|
-
tmp$ret$1 = _this__u8e3s4.
|
|
706
|
+
tmp$ret$1 = _this__u8e3s4.v2i(otherResponse.solution, tmp, tmp$ret$0.slice());
|
|
707
707
|
tmp$ret$2 = tmp$ret$1;
|
|
708
708
|
return tmp$ret$2;
|
|
709
709
|
}
|
|
710
710
|
function newSolveRequest(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild) {
|
|
711
711
|
var tmp = extractSignature(newGoal);
|
|
712
|
-
var tmp_0 = newGoal.
|
|
713
|
-
var tmp_1 = toPropagateContextData.
|
|
714
|
-
var tmp_2 = toPropagateContextData.
|
|
715
|
-
var tmp_3 = toPropagateContextData.
|
|
716
|
-
var tmp_4 = toPropagateContextData.
|
|
717
|
-
var tmp_5 = toPropagateContextData.
|
|
718
|
-
var tmp_6 = toPropagateContextData.
|
|
719
|
-
var tmp_7 = _this__u8e3s4.context.
|
|
712
|
+
var tmp_0 = newGoal.dw();
|
|
713
|
+
var tmp_1 = toPropagateContextData.t1u();
|
|
714
|
+
var tmp_2 = toPropagateContextData.u1u();
|
|
715
|
+
var tmp_3 = toPropagateContextData.v1u();
|
|
716
|
+
var tmp_4 = toPropagateContextData.w1u();
|
|
717
|
+
var tmp_5 = toPropagateContextData.x1u();
|
|
718
|
+
var tmp_6 = toPropagateContextData.y1u();
|
|
719
|
+
var tmp_7 = _this__u8e3s4.context.v4c_1.plus(toAddSubstitutions);
|
|
720
720
|
var tmp_8 = isInterface(tmp_7, Unifier) ? tmp_7 : THROW_CCE();
|
|
721
721
|
var tmp_9 = new Long(0, 0);
|
|
722
722
|
var tmp_10 = new Long(0, 0);
|
|
723
|
-
var tmp_11 = _this__u8e3s4.context.
|
|
724
|
-
return _this__u8e3s4.
|
|
723
|
+
var tmp_11 = _this__u8e3s4.context.v4d(null, tmp_1, tmp_2, tmp_3, tmp_4, null, tmp_5, tmp_6, null, tmp_8, tmp_9, tmp_10, null, baseSideEffectManager.k4d(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4), 7457, null);
|
|
724
|
+
return _this__u8e3s4.g2j(tmp, tmp_0, tmp_11, requestIssuingInstant, new Long(0, 0), 16, null);
|
|
725
725
|
}
|
|
726
726
|
function newSolveRequest$default(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild, $mask0, $handler) {
|
|
727
727
|
if (!(($mask0 & 2) === 0))
|
|
@@ -729,15 +729,15 @@
|
|
|
729
729
|
if (!(($mask0 & 4) === 0))
|
|
730
730
|
toPropagateContextData = _this__u8e3s4.context;
|
|
731
731
|
if (!(($mask0 & 8) === 0))
|
|
732
|
-
baseSideEffectManager = _this__u8e3s4.context.
|
|
732
|
+
baseSideEffectManager = _this__u8e3s4.context.z4c_1;
|
|
733
733
|
if (!(($mask0 & 16) === 0))
|
|
734
|
-
requestIssuingInstant = _this__u8e3s4.
|
|
734
|
+
requestIssuingInstant = _this__u8e3s4.a2a_1;
|
|
735
735
|
if (!(($mask0 & 32) === 0))
|
|
736
736
|
isChoicePointChild = false;
|
|
737
737
|
return newSolveRequest(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild);
|
|
738
738
|
}
|
|
739
739
|
function prepareForExecutionAsGoal(_this__u8e3s4) {
|
|
740
|
-
return single(prepareForExecution(Companion_getInstance_4().of(_this__u8e3s4, [])).
|
|
740
|
+
return single(prepareForExecution(Companion_getInstance_4().of(_this__u8e3s4, [])).dw()).ww();
|
|
741
741
|
}
|
|
742
742
|
function orderWithStrategy(_this__u8e3s4, context, selectionStrategy) {
|
|
743
743
|
var tmp0_subject = any(_this__u8e3s4);
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
// Inline function 'kotlin.collections.forEach' call
|
|
755
755
|
var tmp0_iterator = _this__u8e3s4.j();
|
|
756
756
|
while (tmp0_iterator.m()) {
|
|
757
|
-
var element = tmp0_iterator.
|
|
757
|
+
var element = tmp0_iterator.n();
|
|
758
758
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.addWithNoDuplicates.<anonymous>' call
|
|
759
759
|
var tmp$ret$2;
|
|
760
760
|
// Inline function 'kotlin.collections.find' call
|
|
@@ -763,7 +763,7 @@
|
|
|
763
763
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
764
764
|
var tmp0_iterator_0 = toAddSideEffects.j();
|
|
765
765
|
while (tmp0_iterator_0.m()) {
|
|
766
|
-
var element_0 = tmp0_iterator_0.
|
|
766
|
+
var element_0 = tmp0_iterator_0.n();
|
|
767
767
|
var tmp$ret$0;
|
|
768
768
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.addWithNoDuplicates.<anonymous>.<anonymous>' call
|
|
769
769
|
tmp$ret$0 = element === element_0;
|
|
@@ -793,7 +793,7 @@
|
|
|
793
793
|
if (!tmp0_with.m()) {
|
|
794
794
|
tmp = false;
|
|
795
795
|
} else {
|
|
796
|
-
tmp0_with.
|
|
796
|
+
tmp0_with.n();
|
|
797
797
|
tmp = tmp0_with.m();
|
|
798
798
|
}
|
|
799
799
|
tmp$ret$0 = tmp;
|
|
@@ -806,40 +806,40 @@
|
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
808
|
function orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
809
|
+
this.e4e_1 = $selectionStrategy;
|
|
810
|
+
this.f4e_1 = $this_orderWithStrategy;
|
|
811
|
+
this.g4e_1 = $context;
|
|
812
812
|
CoroutineImpl.call(this, resultContinuation);
|
|
813
813
|
}
|
|
814
|
-
orderWithStrategy$slambda.prototype.
|
|
815
|
-
var tmp = this.
|
|
816
|
-
tmp.
|
|
817
|
-
tmp.
|
|
818
|
-
return tmp.
|
|
814
|
+
orderWithStrategy$slambda.prototype.j4e = function ($this$sequence, $cont) {
|
|
815
|
+
var tmp = this.k4e($this$sequence, $cont);
|
|
816
|
+
tmp.bi_1 = Unit_getInstance();
|
|
817
|
+
tmp.ci_1 = null;
|
|
818
|
+
return tmp.hi();
|
|
819
819
|
};
|
|
820
|
-
orderWithStrategy$slambda.prototype.
|
|
821
|
-
return this.
|
|
820
|
+
orderWithStrategy$slambda.prototype.ti = function (p1, $cont) {
|
|
821
|
+
return this.j4e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
822
822
|
};
|
|
823
|
-
orderWithStrategy$slambda.prototype.
|
|
824
|
-
var suspendResult = this.
|
|
823
|
+
orderWithStrategy$slambda.prototype.hi = function () {
|
|
824
|
+
var suspendResult = this.bi_1;
|
|
825
825
|
$sm: do
|
|
826
826
|
try {
|
|
827
|
-
var tmp = this.
|
|
827
|
+
var tmp = this.zh_1;
|
|
828
828
|
switch (tmp) {
|
|
829
829
|
case 0:
|
|
830
|
-
this.
|
|
830
|
+
this.ai_1 = 3;
|
|
831
831
|
var tmp_0 = this;
|
|
832
|
-
tmp_0.
|
|
833
|
-
this.
|
|
834
|
-
suspendResult = this.
|
|
832
|
+
tmp_0.i4e_1 = this.e4e_1(this.f4e_1, this.g4e_1);
|
|
833
|
+
this.zh_1 = 1;
|
|
834
|
+
suspendResult = this.h4e_1.z4(this.i4e_1, this);
|
|
835
835
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
836
836
|
return suspendResult;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
continue $sm;
|
|
840
840
|
case 1:
|
|
841
|
-
this.
|
|
842
|
-
suspendResult = this.
|
|
841
|
+
this.zh_1 = 2;
|
|
842
|
+
suspendResult = this.h4e_1.c5(orderWithStrategy(filterIndexed(this.f4e_1, orderWithStrategy$slambda$lambda(this.f4e_1, this.i4e_1)), this.g4e_1, this.e4e_1), this);
|
|
843
843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
844
844
|
return suspendResult;
|
|
845
845
|
}
|
|
@@ -848,34 +848,34 @@
|
|
|
848
848
|
case 2:
|
|
849
849
|
return Unit_getInstance();
|
|
850
850
|
case 3:
|
|
851
|
-
throw this.
|
|
851
|
+
throw this.ci_1;
|
|
852
852
|
}
|
|
853
853
|
} catch ($p) {
|
|
854
|
-
if (this.
|
|
854
|
+
if (this.ai_1 === 3) {
|
|
855
855
|
throw $p;
|
|
856
856
|
} else {
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
857
|
+
this.zh_1 = this.ai_1;
|
|
858
|
+
this.ci_1 = $p;
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
while (true);
|
|
862
862
|
};
|
|
863
|
-
orderWithStrategy$slambda.prototype.
|
|
864
|
-
var i = new orderWithStrategy$slambda(this.
|
|
865
|
-
i.
|
|
863
|
+
orderWithStrategy$slambda.prototype.k4e = function ($this$sequence, completion) {
|
|
864
|
+
var i = new orderWithStrategy$slambda(this.e4e_1, this.f4e_1, this.g4e_1, completion);
|
|
865
|
+
i.h4e_1 = $this$sequence;
|
|
866
866
|
return i;
|
|
867
867
|
};
|
|
868
868
|
function orderWithStrategy$slambda_0($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
|
|
869
869
|
var i = new orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation);
|
|
870
870
|
var l = function ($this$sequence, $cont) {
|
|
871
|
-
return i.
|
|
871
|
+
return i.j4e($this$sequence, $cont);
|
|
872
872
|
};
|
|
873
873
|
l.$arity = 1;
|
|
874
874
|
return l;
|
|
875
875
|
}
|
|
876
876
|
function StreamsExecutionContext_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $marker, $this) {
|
|
877
877
|
if (!(($mask0 & 1) === 0))
|
|
878
|
-
unificator = Companion_getInstance_1().
|
|
878
|
+
unificator = Companion_getInstance_1().e1l();
|
|
879
879
|
if (!(($mask0 & 2) === 0))
|
|
880
880
|
libraries = Companion_getInstance_5().empty();
|
|
881
881
|
if (!(($mask0 & 4) === 0))
|
|
@@ -888,11 +888,11 @@
|
|
|
888
888
|
operators = toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb]));
|
|
889
889
|
if (!(($mask0 & 64) === 0)) {
|
|
890
890
|
var tmp = Companion_getInstance();
|
|
891
|
-
inputChannels = tmp.
|
|
891
|
+
inputChannels = tmp.s1z(null, 1, null);
|
|
892
892
|
}
|
|
893
893
|
if (!(($mask0 & 128) === 0)) {
|
|
894
894
|
var tmp_0 = Companion_getInstance_0();
|
|
895
|
-
outputChannels = tmp_0.
|
|
895
|
+
outputChannels = tmp_0.t1z(null, null, null, 7, null);
|
|
896
896
|
}
|
|
897
897
|
if (!(($mask0 & 256) === 0))
|
|
898
898
|
customData = Companion_getInstance_8().empty();
|
|
@@ -905,7 +905,7 @@
|
|
|
905
905
|
maxDuration = new Long(-1, 2147483647);
|
|
906
906
|
}
|
|
907
907
|
if (!(($mask0 & 4096) === 0))
|
|
908
|
-
solverStrategies = Companion_getInstance_15().
|
|
908
|
+
solverStrategies = Companion_getInstance_15().g4c_1;
|
|
909
909
|
if (!(($mask0 & 8192) === 0)) {
|
|
910
910
|
sideEffectManager = SideEffectManagerImpl_init_$Create$(null, false, null, null, null, null, 63, null);
|
|
911
911
|
}
|
|
@@ -916,22 +916,22 @@
|
|
|
916
916
|
return StreamsExecutionContext_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $marker, Object.create(StreamsExecutionContext.prototype));
|
|
917
917
|
}
|
|
918
918
|
function StreamsExecutionContext_init_$Init$_0(context, newCurrentSubstitution, $this) {
|
|
919
|
-
var tmp = context.
|
|
920
|
-
var tmp_0 = context.
|
|
921
|
-
var tmp_1 = context.
|
|
922
|
-
var tmp_2 = context.
|
|
923
|
-
var tmp_3 = context.
|
|
924
|
-
var tmp_4 = context.
|
|
925
|
-
var tmp_5 = context.
|
|
926
|
-
var tmp_6 = context.
|
|
927
|
-
var tmp_7 = context.
|
|
919
|
+
var tmp = context.h1l();
|
|
920
|
+
var tmp_0 = context.t1u();
|
|
921
|
+
var tmp_1 = context.u1u();
|
|
922
|
+
var tmp_2 = context.v1u();
|
|
923
|
+
var tmp_3 = context.w1u();
|
|
924
|
+
var tmp_4 = context.e1v();
|
|
925
|
+
var tmp_5 = context.x1u();
|
|
926
|
+
var tmp_6 = context.y1u();
|
|
927
|
+
var tmp_7 = context.q1u();
|
|
928
928
|
var tmp_8 = new Long(0, 0);
|
|
929
929
|
var tmp_9 = new Long(0, 0);
|
|
930
930
|
var tmp0_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
|
|
931
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
932
|
-
var tmp_10 = tmp1_elvis_lhs == null ? Companion_getInstance_15().
|
|
931
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y4c_1;
|
|
932
|
+
var tmp_10 = tmp1_elvis_lhs == null ? Companion_getInstance_15().g4c_1 : tmp1_elvis_lhs;
|
|
933
933
|
var tmp2_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
|
|
934
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
934
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.z4c_1;
|
|
935
935
|
var tmp_11;
|
|
936
936
|
if (tmp3_elvis_lhs == null) {
|
|
937
937
|
tmp_11 = SideEffectManagerImpl_init_$Create$(null, false, null, null, null, null, 63, null);
|
|
@@ -945,178 +945,178 @@
|
|
|
945
945
|
return StreamsExecutionContext_init_$Init$_0(context, newCurrentSubstitution, Object.create(StreamsExecutionContext.prototype));
|
|
946
946
|
}
|
|
947
947
|
function StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
948
|
-
return it.
|
|
948
|
+
return it.u1v();
|
|
949
949
|
}
|
|
950
950
|
function StreamsExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
951
951
|
return function () {
|
|
952
|
-
var tmp = asSequence(this$0.
|
|
952
|
+
var tmp = asSequence(this$0.z4c_1.e4d_1);
|
|
953
953
|
return toList(map(tmp, StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda));
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
function StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
|
|
957
|
-
this.
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
969
|
-
this.
|
|
970
|
-
this.
|
|
957
|
+
this.m4c_1 = unificator;
|
|
958
|
+
this.n4c_1 = libraries;
|
|
959
|
+
this.o4c_1 = flags;
|
|
960
|
+
this.p4c_1 = staticKb;
|
|
961
|
+
this.q4c_1 = dynamicKb;
|
|
962
|
+
this.r4c_1 = operators;
|
|
963
|
+
this.s4c_1 = inputChannels;
|
|
964
|
+
this.t4c_1 = outputChannels;
|
|
965
|
+
this.u4c_1 = customData;
|
|
966
|
+
this.v4c_1 = substitution;
|
|
967
|
+
this.w4c_1 = startTime;
|
|
968
|
+
this.x4c_1 = maxDuration;
|
|
969
|
+
this.y4c_1 = solverStrategies;
|
|
970
|
+
this.z4c_1 = sideEffectManager;
|
|
971
971
|
var tmp = this;
|
|
972
|
-
tmp.
|
|
972
|
+
tmp.a4d_1 = lazy(StreamsExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
973
973
|
}
|
|
974
|
-
StreamsExecutionContext.prototype.
|
|
974
|
+
StreamsExecutionContext.prototype.h1l = function () {
|
|
975
|
+
return this.m4c_1;
|
|
976
|
+
};
|
|
977
|
+
StreamsExecutionContext.prototype.t1u = function () {
|
|
978
|
+
return this.n4c_1;
|
|
979
|
+
};
|
|
980
|
+
StreamsExecutionContext.prototype.u1u = function () {
|
|
981
|
+
return this.o4c_1;
|
|
982
|
+
};
|
|
983
|
+
StreamsExecutionContext.prototype.v1u = function () {
|
|
975
984
|
return this.p4c_1;
|
|
976
985
|
};
|
|
977
986
|
StreamsExecutionContext.prototype.w1u = function () {
|
|
978
987
|
return this.q4c_1;
|
|
979
988
|
};
|
|
980
|
-
StreamsExecutionContext.prototype.
|
|
989
|
+
StreamsExecutionContext.prototype.e1v = function () {
|
|
981
990
|
return this.r4c_1;
|
|
982
991
|
};
|
|
983
|
-
StreamsExecutionContext.prototype.
|
|
992
|
+
StreamsExecutionContext.prototype.x1u = function () {
|
|
984
993
|
return this.s4c_1;
|
|
985
994
|
};
|
|
986
|
-
StreamsExecutionContext.prototype.
|
|
995
|
+
StreamsExecutionContext.prototype.y1u = function () {
|
|
987
996
|
return this.t4c_1;
|
|
988
997
|
};
|
|
989
|
-
StreamsExecutionContext.prototype.
|
|
998
|
+
StreamsExecutionContext.prototype.q1u = function () {
|
|
990
999
|
return this.u4c_1;
|
|
991
1000
|
};
|
|
992
|
-
StreamsExecutionContext.prototype.
|
|
1001
|
+
StreamsExecutionContext.prototype.o1u = function () {
|
|
993
1002
|
return this.v4c_1;
|
|
994
1003
|
};
|
|
995
|
-
StreamsExecutionContext.prototype.
|
|
1004
|
+
StreamsExecutionContext.prototype.i1u = function () {
|
|
996
1005
|
return this.w4c_1;
|
|
997
1006
|
};
|
|
998
|
-
StreamsExecutionContext.prototype.
|
|
1007
|
+
StreamsExecutionContext.prototype.k1u = function () {
|
|
999
1008
|
return this.x4c_1;
|
|
1000
1009
|
};
|
|
1001
|
-
StreamsExecutionContext.prototype.r1u = function () {
|
|
1002
|
-
return this.y4c_1;
|
|
1003
|
-
};
|
|
1004
|
-
StreamsExecutionContext.prototype.l1u = function () {
|
|
1005
|
-
return this.z4c_1;
|
|
1006
|
-
};
|
|
1007
1010
|
StreamsExecutionContext.prototype.n1u = function () {
|
|
1008
|
-
return this.a4d_1;
|
|
1009
|
-
};
|
|
1010
|
-
StreamsExecutionContext.prototype.q1u = function () {
|
|
1011
1011
|
var tmp$ret$2;
|
|
1012
1012
|
// Inline function 'kotlin.collections.map' call
|
|
1013
|
-
var tmp0_map = this.
|
|
1013
|
+
var tmp0_map = this.z4c_1.e4d_1;
|
|
1014
1014
|
var tmp$ret$1;
|
|
1015
1015
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1016
1016
|
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10));
|
|
1017
1017
|
var tmp0_iterator = tmp0_map.j();
|
|
1018
1018
|
while (tmp0_iterator.m()) {
|
|
1019
|
-
var item = tmp0_iterator.
|
|
1019
|
+
var item = tmp0_iterator.n();
|
|
1020
1020
|
var tmp$ret$0;
|
|
1021
1021
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.StreamsExecutionContext.<get-procedure>.<anonymous>' call
|
|
1022
|
-
tmp$ret$0 = item.
|
|
1022
|
+
tmp$ret$0 = item.u1v();
|
|
1023
1023
|
tmp0_mapTo.g(tmp$ret$0);
|
|
1024
1024
|
}
|
|
1025
1025
|
tmp$ret$1 = tmp0_mapTo;
|
|
1026
1026
|
tmp$ret$2 = tmp$ret$1;
|
|
1027
1027
|
return firstOrNull(tmp$ret$2);
|
|
1028
1028
|
};
|
|
1029
|
-
StreamsExecutionContext.prototype.
|
|
1029
|
+
StreamsExecutionContext.prototype.p1u = function () {
|
|
1030
1030
|
var tmp$ret$0;
|
|
1031
1031
|
// Inline function 'kotlin.getValue' call
|
|
1032
1032
|
var tmp0_getValue = logicStackTrace$factory();
|
|
1033
|
-
tmp$ret$0 = this.
|
|
1033
|
+
tmp$ret$0 = this.a4d_1.b1();
|
|
1034
1034
|
return tmp$ret$0;
|
|
1035
1035
|
};
|
|
1036
|
-
StreamsExecutionContext.prototype.
|
|
1036
|
+
StreamsExecutionContext.prototype.r1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
1037
1037
|
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels);
|
|
1038
1038
|
};
|
|
1039
|
-
StreamsExecutionContext.prototype.
|
|
1039
|
+
StreamsExecutionContext.prototype.z1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
1040
1040
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
1041
1041
|
};
|
|
1042
|
-
StreamsExecutionContext.prototype.
|
|
1042
|
+
StreamsExecutionContext.prototype.y36 = function (sideEffect) {
|
|
1043
1043
|
var tmp = apply.call(this, sideEffect);
|
|
1044
1044
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
1045
1045
|
};
|
|
1046
1046
|
StreamsExecutionContext.prototype.apply = function (sideEffect) {
|
|
1047
|
-
return this.
|
|
1047
|
+
return this.y36(sideEffect);
|
|
1048
1048
|
};
|
|
1049
|
-
StreamsExecutionContext.prototype.
|
|
1049
|
+
StreamsExecutionContext.prototype.z36 = function (sideEffects) {
|
|
1050
1050
|
var tmp = applyIterable.call(this, sideEffects);
|
|
1051
1051
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
1052
1052
|
};
|
|
1053
1053
|
StreamsExecutionContext.prototype.applyIterable = function (sideEffects) {
|
|
1054
|
-
return this.
|
|
1054
|
+
return this.z36(sideEffects);
|
|
1055
1055
|
};
|
|
1056
|
-
StreamsExecutionContext.prototype.
|
|
1056
|
+
StreamsExecutionContext.prototype.a37 = function (sideEffects) {
|
|
1057
1057
|
var tmp = applySequence.call(this, sideEffects);
|
|
1058
1058
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
1059
1059
|
};
|
|
1060
1060
|
StreamsExecutionContext.prototype.applySequence = function (sideEffects) {
|
|
1061
|
-
return this.
|
|
1061
|
+
return this.a37(sideEffects);
|
|
1062
1062
|
};
|
|
1063
|
-
StreamsExecutionContext.prototype.
|
|
1063
|
+
StreamsExecutionContext.prototype.c1v = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
1064
1064
|
var tmp = new Long(0, 0);
|
|
1065
1065
|
var tmp_0 = new Long(0, 0);
|
|
1066
|
-
return this.
|
|
1066
|
+
return this.v4d(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, null, tmp, tmp_0, null, null, 15872, null);
|
|
1067
1067
|
};
|
|
1068
|
-
StreamsExecutionContext.prototype.
|
|
1068
|
+
StreamsExecutionContext.prototype.l4e = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
|
|
1069
1069
|
return new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
1070
1070
|
};
|
|
1071
|
-
StreamsExecutionContext.prototype.
|
|
1071
|
+
StreamsExecutionContext.prototype.v4d = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $handler) {
|
|
1072
1072
|
if (!(($mask0 & 1) === 0))
|
|
1073
|
-
unificator = this.
|
|
1073
|
+
unificator = this.m4c_1;
|
|
1074
1074
|
if (!(($mask0 & 2) === 0))
|
|
1075
|
-
libraries = this.
|
|
1075
|
+
libraries = this.n4c_1;
|
|
1076
1076
|
if (!(($mask0 & 4) === 0))
|
|
1077
|
-
flags = this.
|
|
1077
|
+
flags = this.o4c_1;
|
|
1078
1078
|
if (!(($mask0 & 8) === 0))
|
|
1079
|
-
staticKb = this.
|
|
1079
|
+
staticKb = this.p4c_1;
|
|
1080
1080
|
if (!(($mask0 & 16) === 0))
|
|
1081
|
-
dynamicKb = this.
|
|
1081
|
+
dynamicKb = this.q4c_1;
|
|
1082
1082
|
if (!(($mask0 & 32) === 0))
|
|
1083
|
-
operators = this.
|
|
1083
|
+
operators = this.r4c_1;
|
|
1084
1084
|
if (!(($mask0 & 64) === 0))
|
|
1085
|
-
inputChannels = this.
|
|
1085
|
+
inputChannels = this.s4c_1;
|
|
1086
1086
|
if (!(($mask0 & 128) === 0))
|
|
1087
|
-
outputChannels = this.
|
|
1087
|
+
outputChannels = this.t4c_1;
|
|
1088
1088
|
if (!(($mask0 & 256) === 0))
|
|
1089
|
-
customData = this.
|
|
1089
|
+
customData = this.u4c_1;
|
|
1090
1090
|
if (!(($mask0 & 512) === 0))
|
|
1091
|
-
substitution = this.
|
|
1091
|
+
substitution = this.v4c_1;
|
|
1092
1092
|
if (!(($mask0 & 1024) === 0))
|
|
1093
|
-
startTime = this.
|
|
1093
|
+
startTime = this.w4c_1;
|
|
1094
1094
|
if (!(($mask0 & 2048) === 0))
|
|
1095
|
-
maxDuration = this.
|
|
1095
|
+
maxDuration = this.x4c_1;
|
|
1096
1096
|
if (!(($mask0 & 4096) === 0))
|
|
1097
|
-
solverStrategies = this.
|
|
1097
|
+
solverStrategies = this.y4c_1;
|
|
1098
1098
|
if (!(($mask0 & 8192) === 0))
|
|
1099
|
-
sideEffectManager = this.
|
|
1100
|
-
return this.
|
|
1099
|
+
sideEffectManager = this.z4c_1;
|
|
1100
|
+
return this.l4e(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
1101
1101
|
};
|
|
1102
1102
|
StreamsExecutionContext.prototype.toString = function () {
|
|
1103
|
-
return 'StreamsExecutionContext(unificator=' + this.
|
|
1103
|
+
return 'StreamsExecutionContext(unificator=' + this.m4c_1 + ', libraries=' + this.n4c_1 + ', flags=' + this.o4c_1 + ', staticKb=' + this.p4c_1 + ', dynamicKb=' + this.q4c_1 + ', operators=' + this.r4c_1 + ', inputChannels=' + this.s4c_1 + ', outputChannels=' + this.t4c_1 + ', customData=' + this.u4c_1 + ', substitution=' + this.v4c_1 + ', startTime=' + toString(this.w4c_1) + ', maxDuration=' + toString(this.x4c_1) + ', solverStrategies=' + this.y4c_1 + ', sideEffectManager=' + this.z4c_1 + ')';
|
|
1104
1104
|
};
|
|
1105
1105
|
StreamsExecutionContext.prototype.hashCode = function () {
|
|
1106
|
-
var result = hashCode(this.
|
|
1106
|
+
var result = hashCode(this.m4c_1);
|
|
1107
|
+
result = imul(result, 31) + hashCode(this.n4c_1) | 0;
|
|
1108
|
+
result = imul(result, 31) + this.o4c_1.hashCode() | 0;
|
|
1109
|
+
result = imul(result, 31) + hashCode(this.p4c_1) | 0;
|
|
1107
1110
|
result = imul(result, 31) + hashCode(this.q4c_1) | 0;
|
|
1108
1111
|
result = imul(result, 31) + this.r4c_1.hashCode() | 0;
|
|
1109
1112
|
result = imul(result, 31) + hashCode(this.s4c_1) | 0;
|
|
1110
1113
|
result = imul(result, 31) + hashCode(this.t4c_1) | 0;
|
|
1111
1114
|
result = imul(result, 31) + this.u4c_1.hashCode() | 0;
|
|
1112
1115
|
result = imul(result, 31) + hashCode(this.v4c_1) | 0;
|
|
1113
|
-
result = imul(result, 31) +
|
|
1116
|
+
result = imul(result, 31) + this.w4c_1.hashCode() | 0;
|
|
1114
1117
|
result = imul(result, 31) + this.x4c_1.hashCode() | 0;
|
|
1115
1118
|
result = imul(result, 31) + hashCode(this.y4c_1) | 0;
|
|
1116
1119
|
result = imul(result, 31) + this.z4c_1.hashCode() | 0;
|
|
1117
|
-
result = imul(result, 31) + this.a4d_1.hashCode() | 0;
|
|
1118
|
-
result = imul(result, 31) + hashCode(this.b4d_1) | 0;
|
|
1119
|
-
result = imul(result, 31) + this.c4d_1.hashCode() | 0;
|
|
1120
1120
|
return result;
|
|
1121
1121
|
};
|
|
1122
1122
|
StreamsExecutionContext.prototype.equals = function (other) {
|
|
@@ -1125,6 +1125,12 @@
|
|
|
1125
1125
|
if (!(other instanceof StreamsExecutionContext))
|
|
1126
1126
|
return false;
|
|
1127
1127
|
var tmp0_other_with_cast = other instanceof StreamsExecutionContext ? other : THROW_CCE();
|
|
1128
|
+
if (!equals(this.m4c_1, tmp0_other_with_cast.m4c_1))
|
|
1129
|
+
return false;
|
|
1130
|
+
if (!equals(this.n4c_1, tmp0_other_with_cast.n4c_1))
|
|
1131
|
+
return false;
|
|
1132
|
+
if (!this.o4c_1.equals(tmp0_other_with_cast.o4c_1))
|
|
1133
|
+
return false;
|
|
1128
1134
|
if (!equals(this.p4c_1, tmp0_other_with_cast.p4c_1))
|
|
1129
1135
|
return false;
|
|
1130
1136
|
if (!equals(this.q4c_1, tmp0_other_with_cast.q4c_1))
|
|
@@ -1139,7 +1145,7 @@
|
|
|
1139
1145
|
return false;
|
|
1140
1146
|
if (!equals(this.v4c_1, tmp0_other_with_cast.v4c_1))
|
|
1141
1147
|
return false;
|
|
1142
|
-
if (!
|
|
1148
|
+
if (!this.w4c_1.equals(tmp0_other_with_cast.w4c_1))
|
|
1143
1149
|
return false;
|
|
1144
1150
|
if (!this.x4c_1.equals(tmp0_other_with_cast.x4c_1))
|
|
1145
1151
|
return false;
|
|
@@ -1147,42 +1153,36 @@
|
|
|
1147
1153
|
return false;
|
|
1148
1154
|
if (!this.z4c_1.equals(tmp0_other_with_cast.z4c_1))
|
|
1149
1155
|
return false;
|
|
1150
|
-
if (!this.a4d_1.equals(tmp0_other_with_cast.a4d_1))
|
|
1151
|
-
return false;
|
|
1152
|
-
if (!equals(this.b4d_1, tmp0_other_with_cast.b4d_1))
|
|
1153
|
-
return false;
|
|
1154
|
-
if (!this.c4d_1.equals(tmp0_other_with_cast.c4d_1))
|
|
1155
|
-
return false;
|
|
1156
1156
|
return true;
|
|
1157
1157
|
};
|
|
1158
1158
|
function getSideEffectManager(_this__u8e3s4) {
|
|
1159
1159
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof StreamsExecutionContext ? _this__u8e3s4 : null;
|
|
1160
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1160
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z4c_1;
|
|
1161
1161
|
}
|
|
1162
1162
|
function logicStackTrace$factory() {
|
|
1163
1163
|
return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
|
|
1164
|
-
return receiver.
|
|
1164
|
+
return receiver.p1u();
|
|
1165
1165
|
}, null);
|
|
1166
1166
|
}
|
|
1167
1167
|
function AbstractState(solve) {
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1168
|
+
this.m4e_1 = solve;
|
|
1169
|
+
this.n4e_1 = false;
|
|
1170
1170
|
}
|
|
1171
|
-
AbstractState.prototype.
|
|
1172
|
-
return this.
|
|
1171
|
+
AbstractState.prototype.o4e = function () {
|
|
1172
|
+
return this.n4e_1;
|
|
1173
1173
|
};
|
|
1174
1174
|
function AlreadyExecutedState(wrappedState) {
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1175
|
+
this.q4e_1 = wrappedState;
|
|
1176
|
+
this.r4e_1 = true;
|
|
1177
1177
|
}
|
|
1178
|
-
AlreadyExecutedState.prototype.
|
|
1179
|
-
return this.
|
|
1178
|
+
AlreadyExecutedState.prototype.p4e = function () {
|
|
1179
|
+
return this.q4e_1.p4e();
|
|
1180
1180
|
};
|
|
1181
|
-
AlreadyExecutedState.prototype.
|
|
1182
|
-
return this.
|
|
1181
|
+
AlreadyExecutedState.prototype.o4e = function () {
|
|
1182
|
+
return this.r4e_1;
|
|
1183
1183
|
};
|
|
1184
1184
|
AlreadyExecutedState.prototype.toString = function () {
|
|
1185
|
-
return 'AlreadyExecutedState of: ' + this.
|
|
1185
|
+
return 'AlreadyExecutedState of: ' + this.q4e_1;
|
|
1186
1186
|
};
|
|
1187
1187
|
function asAlreadyExecuted(_this__u8e3s4) {
|
|
1188
1188
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof AlreadyExecutedState ? _this__u8e3s4 : null;
|
|
@@ -1208,7 +1208,7 @@
|
|
|
1208
1208
|
}
|
|
1209
1209
|
function internalExecute($this, state) {
|
|
1210
1210
|
var tmp;
|
|
1211
|
-
if (state.
|
|
1211
|
+
if (state.o4e()) {
|
|
1212
1212
|
tmp = sequenceOf([state]);
|
|
1213
1213
|
} else {
|
|
1214
1214
|
tmp = sequence(StateMachineExecutor$internalExecute$slambda_0(state, null));
|
|
@@ -1216,34 +1216,34 @@
|
|
|
1216
1216
|
return tmp;
|
|
1217
1217
|
}
|
|
1218
1218
|
function StateMachineExecutor$execute$lambda(it) {
|
|
1219
|
-
return StateMachineExecutor_getInstance().
|
|
1219
|
+
return StateMachineExecutor_getInstance().s4e(it);
|
|
1220
1220
|
}
|
|
1221
1221
|
function StateMachineExecutor$executeWrapping$lambda(it) {
|
|
1222
1222
|
return asAlreadyExecuted(it);
|
|
1223
1223
|
}
|
|
1224
1224
|
function StateMachineExecutor$internalExecute$slambda($state, resultContinuation) {
|
|
1225
|
-
this.
|
|
1225
|
+
this.b4f_1 = $state;
|
|
1226
1226
|
CoroutineImpl.call(this, resultContinuation);
|
|
1227
1227
|
}
|
|
1228
|
-
StateMachineExecutor$internalExecute$slambda.prototype.
|
|
1229
|
-
var tmp = this.
|
|
1230
|
-
tmp.
|
|
1231
|
-
tmp.
|
|
1232
|
-
return tmp.
|
|
1228
|
+
StateMachineExecutor$internalExecute$slambda.prototype.g4f = function ($this$sequence, $cont) {
|
|
1229
|
+
var tmp = this.h4f($this$sequence, $cont);
|
|
1230
|
+
tmp.bi_1 = Unit_getInstance();
|
|
1231
|
+
tmp.ci_1 = null;
|
|
1232
|
+
return tmp.hi();
|
|
1233
1233
|
};
|
|
1234
|
-
StateMachineExecutor$internalExecute$slambda.prototype.
|
|
1235
|
-
return this.
|
|
1234
|
+
StateMachineExecutor$internalExecute$slambda.prototype.ti = function (p1, $cont) {
|
|
1235
|
+
return this.g4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
1236
1236
|
};
|
|
1237
|
-
StateMachineExecutor$internalExecute$slambda.prototype.
|
|
1238
|
-
var suspendResult = this.
|
|
1237
|
+
StateMachineExecutor$internalExecute$slambda.prototype.hi = function () {
|
|
1238
|
+
var suspendResult = this.bi_1;
|
|
1239
1239
|
$sm: do
|
|
1240
1240
|
try {
|
|
1241
|
-
var tmp = this.
|
|
1241
|
+
var tmp = this.zh_1;
|
|
1242
1242
|
switch (tmp) {
|
|
1243
1243
|
case 0:
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1246
|
-
suspendResult = this.
|
|
1244
|
+
this.ai_1 = 5;
|
|
1245
|
+
this.zh_1 = 1;
|
|
1246
|
+
suspendResult = this.c4f_1.z4(this.b4f_1, this);
|
|
1247
1247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1248
1248
|
return suspendResult;
|
|
1249
1249
|
}
|
|
@@ -1251,51 +1251,51 @@
|
|
|
1251
1251
|
continue $sm;
|
|
1252
1252
|
case 1:
|
|
1253
1253
|
var tmp_0 = this;
|
|
1254
|
-
tmp_0.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1254
|
+
tmp_0.d4f_1 = this.b4f_1.p4e();
|
|
1255
|
+
this.e4f_1 = this.d4f_1.j();
|
|
1256
|
+
this.zh_1 = 2;
|
|
1257
1257
|
continue $sm;
|
|
1258
1258
|
case 2:
|
|
1259
|
-
if (!this.
|
|
1260
|
-
this.
|
|
1259
|
+
if (!this.e4f_1.m()) {
|
|
1260
|
+
this.zh_1 = 4;
|
|
1261
1261
|
continue $sm;
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1266
|
-
suspendResult = this.
|
|
1264
|
+
this.f4f_1 = this.e4f_1.n();
|
|
1265
|
+
this.zh_1 = 3;
|
|
1266
|
+
suspendResult = this.c4f_1.c5(internalExecute(StateMachineExecutor_getInstance(), this.f4f_1), this);
|
|
1267
1267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1268
1268
|
return suspendResult;
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
1271
|
continue $sm;
|
|
1272
1272
|
case 3:
|
|
1273
|
-
this.
|
|
1273
|
+
this.zh_1 = 2;
|
|
1274
1274
|
continue $sm;
|
|
1275
1275
|
case 4:
|
|
1276
1276
|
return Unit_getInstance();
|
|
1277
1277
|
case 5:
|
|
1278
|
-
throw this.
|
|
1278
|
+
throw this.ci_1;
|
|
1279
1279
|
}
|
|
1280
1280
|
} catch ($p) {
|
|
1281
|
-
if (this.
|
|
1281
|
+
if (this.ai_1 === 5) {
|
|
1282
1282
|
throw $p;
|
|
1283
1283
|
} else {
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1284
|
+
this.zh_1 = this.ai_1;
|
|
1285
|
+
this.ci_1 = $p;
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
while (true);
|
|
1289
1289
|
};
|
|
1290
|
-
StateMachineExecutor$internalExecute$slambda.prototype.
|
|
1291
|
-
var i = new StateMachineExecutor$internalExecute$slambda(this.
|
|
1292
|
-
i.
|
|
1290
|
+
StateMachineExecutor$internalExecute$slambda.prototype.h4f = function ($this$sequence, completion) {
|
|
1291
|
+
var i = new StateMachineExecutor$internalExecute$slambda(this.b4f_1, completion);
|
|
1292
|
+
i.c4f_1 = $this$sequence;
|
|
1293
1293
|
return i;
|
|
1294
1294
|
};
|
|
1295
1295
|
function StateMachineExecutor$internalExecute$slambda_0($state, resultContinuation) {
|
|
1296
1296
|
var i = new StateMachineExecutor$internalExecute$slambda($state, resultContinuation);
|
|
1297
1297
|
var l = function ($this$sequence, $cont) {
|
|
1298
|
-
return i.
|
|
1298
|
+
return i.g4f($this$sequence, $cont);
|
|
1299
1299
|
};
|
|
1300
1300
|
l.$arity = 1;
|
|
1301
1301
|
return l;
|
|
@@ -1303,9 +1303,9 @@
|
|
|
1303
1303
|
function StateMachineExecutor() {
|
|
1304
1304
|
StateMachineExecutor_instance = this;
|
|
1305
1305
|
}
|
|
1306
|
-
StateMachineExecutor.prototype.
|
|
1306
|
+
StateMachineExecutor.prototype.j4c = function (state) {
|
|
1307
1307
|
var tmp;
|
|
1308
|
-
if (state.
|
|
1308
|
+
if (state.o4e()) {
|
|
1309
1309
|
tmp = emptySequence();
|
|
1310
1310
|
} else {
|
|
1311
1311
|
var tmp_0 = drop_0(internalExecute(this, state), 1);
|
|
@@ -1313,15 +1313,15 @@
|
|
|
1313
1313
|
}
|
|
1314
1314
|
return tmp;
|
|
1315
1315
|
};
|
|
1316
|
-
StateMachineExecutor.prototype.
|
|
1317
|
-
var tmp = this.
|
|
1316
|
+
StateMachineExecutor.prototype.i4f = function (state) {
|
|
1317
|
+
var tmp = this.j4c(state);
|
|
1318
1318
|
return map(tmp, StateMachineExecutor$executeWrapping$lambda);
|
|
1319
1319
|
};
|
|
1320
|
-
StateMachineExecutor.prototype.
|
|
1320
|
+
StateMachineExecutor.prototype.s4e = function (_this__u8e3s4) {
|
|
1321
1321
|
var tmp0_subject = _this__u8e3s4;
|
|
1322
1322
|
var tmp;
|
|
1323
1323
|
if (tmp0_subject instanceof AlreadyExecutedState) {
|
|
1324
|
-
tmp = _this__u8e3s4.
|
|
1324
|
+
tmp = _this__u8e3s4.q4e_1;
|
|
1325
1325
|
} else {
|
|
1326
1326
|
tmp = _this__u8e3s4;
|
|
1327
1327
|
}
|
|
@@ -1334,15 +1334,15 @@
|
|
|
1334
1334
|
return StateMachineExecutor_instance;
|
|
1335
1335
|
}
|
|
1336
1336
|
function statEndHaltTimeout(_this__u8e3s4, $this) {
|
|
1337
|
-
var tmp = 'Given time for `' + _this__u8e3s4.
|
|
1338
|
-
var tmp_0 = TimeOutException_init_$Create$(tmp, null, _this__u8e3s4.
|
|
1337
|
+
var tmp = 'Given time for `' + _this__u8e3s4.h4c().u1v() + '` computation (' + toString(_this__u8e3s4.h4c().b2a_1) + ") wasn't enough for completion";
|
|
1338
|
+
var tmp_0 = TimeOutException_init_$Create$(tmp, null, _this__u8e3s4.h4c().context, _this__u8e3s4.h4c().b2a_1, 2, null);
|
|
1339
1339
|
return stateEndHalt$default(_this__u8e3s4, tmp_0, null, [], 6, null);
|
|
1340
1340
|
}
|
|
1341
1341
|
function _get_stateCurrentTime__3c8uza($this) {
|
|
1342
1342
|
var tmp$ret$0;
|
|
1343
1343
|
// Inline function 'kotlin.getValue' call
|
|
1344
1344
|
var tmp0_getValue = stateCurrentTime$factory();
|
|
1345
|
-
tmp$ret$0 = $this.
|
|
1345
|
+
tmp$ret$0 = $this.m4f_1.b1();
|
|
1346
1346
|
return tmp$ret$0;
|
|
1347
1347
|
}
|
|
1348
1348
|
function timeIsOver($this, currentDuration, maxDuration) {
|
|
@@ -1363,33 +1363,33 @@
|
|
|
1363
1363
|
function AbstractTimedState(solve) {
|
|
1364
1364
|
Companion_getInstance_17();
|
|
1365
1365
|
AbstractState.call(this, solve);
|
|
1366
|
-
this.
|
|
1366
|
+
this.l4f_1 = solve;
|
|
1367
1367
|
var tmp = this;
|
|
1368
|
-
tmp.
|
|
1368
|
+
tmp.m4f_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
|
|
1369
1369
|
}
|
|
1370
|
-
AbstractTimedState.prototype.
|
|
1371
|
-
return this.
|
|
1370
|
+
AbstractTimedState.prototype.h4c = function () {
|
|
1371
|
+
return this.l4f_1;
|
|
1372
1372
|
};
|
|
1373
|
-
AbstractTimedState.prototype.
|
|
1373
|
+
AbstractTimedState.prototype.p4e = function () {
|
|
1374
1374
|
var tmp;
|
|
1375
|
-
var tmp_0 = this.
|
|
1375
|
+
var tmp_0 = this.h4c().b2a_1;
|
|
1376
1376
|
Companion_getInstance_9();
|
|
1377
1377
|
if (tmp_0.equals(new Long(-1, 2147483647))) {
|
|
1378
|
-
tmp = this.
|
|
1378
|
+
tmp = this.n4f();
|
|
1379
1379
|
} else {
|
|
1380
|
-
if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).
|
|
1380
|
+
if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).ah(this.h4c().a2a_1), this.h4c().b2a_1)) {
|
|
1381
1381
|
tmp = sequenceOf([statEndHaltTimeout(this, Companion_getInstance_17())]);
|
|
1382
1382
|
} else {
|
|
1383
|
-
tmp = this.
|
|
1383
|
+
tmp = this.n4f();
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
return tmp;
|
|
1387
1387
|
};
|
|
1388
|
-
AbstractTimedState.prototype.
|
|
1389
|
-
return timeIsOver(this, currentTimeInstant().
|
|
1388
|
+
AbstractTimedState.prototype.o4f = function (_this__u8e3s4, toYieldState) {
|
|
1389
|
+
return timeIsOver(this, currentTimeInstant().ah(_this__u8e3s4.h4c().a2a_1), _this__u8e3s4.h4c().b2a_1) ? statEndHaltTimeout(_this__u8e3s4, Companion_getInstance_17()) : toYieldState;
|
|
1390
1390
|
};
|
|
1391
1391
|
AbstractTimedState.prototype.toString = function () {
|
|
1392
|
-
return '' + getKClassFromExpression(this) + ' with ' + this.
|
|
1392
|
+
return '' + getKClassFromExpression(this) + ' with ' + this.h4c();
|
|
1393
1393
|
};
|
|
1394
1394
|
function stateCurrentTime$factory() {
|
|
1395
1395
|
return getPropertyCallableRef('stateCurrentTime', 1, KProperty1, function (receiver) {
|
|
@@ -1398,35 +1398,35 @@
|
|
|
1398
1398
|
}
|
|
1399
1399
|
function StateEnd$Halt$exception$delegate$lambda(this$0) {
|
|
1400
1400
|
return function () {
|
|
1401
|
-
var tmp = this$0.
|
|
1402
|
-
return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).
|
|
1401
|
+
var tmp = this$0.v4f_1.solution;
|
|
1402
|
+
return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).z1v();
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
1405
|
function True(sourceContext, solve) {
|
|
1406
1406
|
StateEnd.call(this, sourceContext, solve);
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1407
|
+
this.c4g_1 = sourceContext;
|
|
1408
|
+
this.d4g_1 = solve;
|
|
1409
1409
|
// Inline function 'kotlin.require' call
|
|
1410
|
-
var tmp = this.
|
|
1410
|
+
var tmp = this.d4g_1.solution;
|
|
1411
1411
|
var tmp0_require = isInterface(tmp, Yes);
|
|
1412
1412
|
// Inline function 'kotlin.contracts.contract' call
|
|
1413
1413
|
if (!tmp0_require) {
|
|
1414
1414
|
var tmp$ret$0;
|
|
1415
1415
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.True.<anonymous>' call
|
|
1416
|
-
tmp$ret$0 = 'True end state can be created only with Solution.Yes. Current: `' + this.
|
|
1416
|
+
tmp$ret$0 = 'True end state can be created only with Solution.Yes. Current: `' + this.d4g_1.solution + '`';
|
|
1417
1417
|
var message = tmp$ret$0;
|
|
1418
1418
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
|
-
True.prototype.
|
|
1422
|
-
return this.
|
|
1421
|
+
True.prototype.h4c = function () {
|
|
1422
|
+
return this.d4g_1;
|
|
1423
1423
|
};
|
|
1424
1424
|
True.prototype.toString = function () {
|
|
1425
|
-
return 'True(sourceContext=' + this.
|
|
1425
|
+
return 'True(sourceContext=' + this.c4g_1 + ', solve=' + this.d4g_1 + ')';
|
|
1426
1426
|
};
|
|
1427
1427
|
True.prototype.hashCode = function () {
|
|
1428
|
-
var result = hashCode(this.
|
|
1429
|
-
result = imul(result, 31) + this.
|
|
1428
|
+
var result = hashCode(this.c4g_1);
|
|
1429
|
+
result = imul(result, 31) + this.d4g_1.hashCode() | 0;
|
|
1430
1430
|
return result;
|
|
1431
1431
|
};
|
|
1432
1432
|
True.prototype.equals = function (other) {
|
|
@@ -1435,37 +1435,37 @@
|
|
|
1435
1435
|
if (!(other instanceof True))
|
|
1436
1436
|
return false;
|
|
1437
1437
|
var tmp0_other_with_cast = other instanceof True ? other : THROW_CCE();
|
|
1438
|
-
if (!equals(this.
|
|
1438
|
+
if (!equals(this.c4g_1, tmp0_other_with_cast.c4g_1))
|
|
1439
1439
|
return false;
|
|
1440
|
-
if (!this.
|
|
1440
|
+
if (!this.d4g_1.equals(tmp0_other_with_cast.d4g_1))
|
|
1441
1441
|
return false;
|
|
1442
1442
|
return true;
|
|
1443
1443
|
};
|
|
1444
1444
|
function False(sourceContext, solve) {
|
|
1445
1445
|
StateEnd.call(this, sourceContext, solve);
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1446
|
+
this.o4g_1 = sourceContext;
|
|
1447
|
+
this.p4g_1 = solve;
|
|
1448
1448
|
// Inline function 'kotlin.require' call
|
|
1449
|
-
var tmp = this.
|
|
1449
|
+
var tmp = this.p4g_1.solution;
|
|
1450
1450
|
var tmp0_require = isInterface(tmp, No);
|
|
1451
1451
|
// Inline function 'kotlin.contracts.contract' call
|
|
1452
1452
|
if (!tmp0_require) {
|
|
1453
1453
|
var tmp$ret$0;
|
|
1454
1454
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.False.<anonymous>' call
|
|
1455
|
-
tmp$ret$0 = 'False end state can be created only with Solution.No. Current: `' + this.
|
|
1455
|
+
tmp$ret$0 = 'False end state can be created only with Solution.No. Current: `' + this.p4g_1.solution + '`';
|
|
1456
1456
|
var message = tmp$ret$0;
|
|
1457
1457
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
False.prototype.
|
|
1461
|
-
return this.
|
|
1460
|
+
False.prototype.h4c = function () {
|
|
1461
|
+
return this.p4g_1;
|
|
1462
1462
|
};
|
|
1463
1463
|
False.prototype.toString = function () {
|
|
1464
|
-
return 'False(sourceContext=' + this.
|
|
1464
|
+
return 'False(sourceContext=' + this.o4g_1 + ', solve=' + this.p4g_1 + ')';
|
|
1465
1465
|
};
|
|
1466
1466
|
False.prototype.hashCode = function () {
|
|
1467
|
-
var result = hashCode(this.
|
|
1468
|
-
result = imul(result, 31) + this.
|
|
1467
|
+
var result = hashCode(this.o4g_1);
|
|
1468
|
+
result = imul(result, 31) + this.p4g_1.hashCode() | 0;
|
|
1469
1469
|
return result;
|
|
1470
1470
|
};
|
|
1471
1471
|
False.prototype.equals = function (other) {
|
|
@@ -1474,39 +1474,39 @@
|
|
|
1474
1474
|
if (!(other instanceof False))
|
|
1475
1475
|
return false;
|
|
1476
1476
|
var tmp0_other_with_cast = other instanceof False ? other : THROW_CCE();
|
|
1477
|
-
if (!equals(this.
|
|
1477
|
+
if (!equals(this.o4g_1, tmp0_other_with_cast.o4g_1))
|
|
1478
1478
|
return false;
|
|
1479
|
-
if (!this.
|
|
1479
|
+
if (!this.p4g_1.equals(tmp0_other_with_cast.p4g_1))
|
|
1480
1480
|
return false;
|
|
1481
1481
|
return true;
|
|
1482
1482
|
};
|
|
1483
1483
|
function Halt_0(sourceContext, solve) {
|
|
1484
1484
|
StateEnd.call(this, sourceContext, solve);
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1485
|
+
this.u4f_1 = sourceContext;
|
|
1486
|
+
this.v4f_1 = solve;
|
|
1487
1487
|
// Inline function 'kotlin.require' call
|
|
1488
|
-
var tmp = this.
|
|
1488
|
+
var tmp = this.v4f_1.solution;
|
|
1489
1489
|
var tmp0_require = isInterface(tmp, Halt);
|
|
1490
1490
|
// Inline function 'kotlin.contracts.contract' call
|
|
1491
1491
|
if (!tmp0_require) {
|
|
1492
1492
|
var tmp$ret$0;
|
|
1493
1493
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Halt.<anonymous>' call
|
|
1494
|
-
tmp$ret$0 = 'Halt end state can be created only with Solution.Halt. Current: `' + this.
|
|
1494
|
+
tmp$ret$0 = 'Halt end state can be created only with Solution.Halt. Current: `' + this.v4f_1.solution + '`';
|
|
1495
1495
|
var message = tmp$ret$0;
|
|
1496
1496
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1497
1497
|
}
|
|
1498
1498
|
var tmp_0 = this;
|
|
1499
|
-
tmp_0.
|
|
1499
|
+
tmp_0.w4f_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
|
|
1500
1500
|
}
|
|
1501
|
-
Halt_0.prototype.
|
|
1502
|
-
return this.
|
|
1501
|
+
Halt_0.prototype.h4c = function () {
|
|
1502
|
+
return this.v4f_1;
|
|
1503
1503
|
};
|
|
1504
1504
|
Halt_0.prototype.toString = function () {
|
|
1505
|
-
return 'Halt(sourceContext=' + this.
|
|
1505
|
+
return 'Halt(sourceContext=' + this.u4f_1 + ', solve=' + this.v4f_1 + ')';
|
|
1506
1506
|
};
|
|
1507
1507
|
Halt_0.prototype.hashCode = function () {
|
|
1508
|
-
var result = hashCode(this.
|
|
1509
|
-
result = imul(result, 31) + this.
|
|
1508
|
+
var result = hashCode(this.u4f_1);
|
|
1509
|
+
result = imul(result, 31) + this.v4f_1.hashCode() | 0;
|
|
1510
1510
|
return result;
|
|
1511
1511
|
};
|
|
1512
1512
|
Halt_0.prototype.equals = function (other) {
|
|
@@ -1515,44 +1515,44 @@
|
|
|
1515
1515
|
if (!(other instanceof Halt_0))
|
|
1516
1516
|
return false;
|
|
1517
1517
|
var tmp0_other_with_cast = other instanceof Halt_0 ? other : THROW_CCE();
|
|
1518
|
-
if (!equals(this.
|
|
1518
|
+
if (!equals(this.u4f_1, tmp0_other_with_cast.u4f_1))
|
|
1519
1519
|
return false;
|
|
1520
|
-
if (!this.
|
|
1520
|
+
if (!this.v4f_1.equals(tmp0_other_with_cast.v4f_1))
|
|
1521
1521
|
return false;
|
|
1522
1522
|
return true;
|
|
1523
1523
|
};
|
|
1524
1524
|
function StateEnd$context$delegate$lambda(this$0) {
|
|
1525
1525
|
return function () {
|
|
1526
|
-
var tmp = this$0.
|
|
1526
|
+
var tmp = this$0.h4c().solution.o1u();
|
|
1527
1527
|
var tmp0_elvis_lhs = isInterface(tmp, Unifier) ? tmp : null;
|
|
1528
|
-
return StreamsExecutionContext_init_$Create$_0(this$0.
|
|
1528
|
+
return StreamsExecutionContext_init_$Create$_0(this$0.g4g_1, tmp0_elvis_lhs == null ? Companion_getInstance_3().empty() : tmp0_elvis_lhs);
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
function StateEnd(sourceContext, solve) {
|
|
1532
1532
|
AbstractState.call(this, solve);
|
|
1533
|
-
this.
|
|
1534
|
-
this.
|
|
1533
|
+
this.g4g_1 = sourceContext;
|
|
1534
|
+
this.h4g_1 = solve;
|
|
1535
1535
|
var tmp = this;
|
|
1536
|
-
tmp.
|
|
1536
|
+
tmp.i4g_1 = lazy(StateEnd$context$delegate$lambda(this));
|
|
1537
1537
|
}
|
|
1538
|
-
StateEnd.prototype.
|
|
1539
|
-
return this.
|
|
1538
|
+
StateEnd.prototype.h4c = function () {
|
|
1539
|
+
return this.h4g_1;
|
|
1540
1540
|
};
|
|
1541
|
-
StateEnd.prototype.
|
|
1541
|
+
StateEnd.prototype.p4e = function () {
|
|
1542
1542
|
return emptySequence();
|
|
1543
1543
|
};
|
|
1544
1544
|
StateEnd.prototype.j5 = function () {
|
|
1545
1545
|
var tmp$ret$0;
|
|
1546
1546
|
// Inline function 'kotlin.getValue' call
|
|
1547
1547
|
var tmp0_getValue = context$factory();
|
|
1548
|
-
tmp$ret$0 = this.
|
|
1548
|
+
tmp$ret$0 = this.i4g_1.b1();
|
|
1549
1549
|
return tmp$ret$0;
|
|
1550
1550
|
};
|
|
1551
1551
|
function stateEndTrue(_this__u8e3s4, substitution, sideEffectManager, sideEffects) {
|
|
1552
1552
|
var tmp = _this__u8e3s4.j5();
|
|
1553
|
-
var tmp_0 = _this__u8e3s4.
|
|
1553
|
+
var tmp_0 = _this__u8e3s4.h4c();
|
|
1554
1554
|
var tmp0_elvis_lhs = sideEffectManager;
|
|
1555
|
-
return new True(tmp, tmp_0.
|
|
1555
|
+
return new True(tmp, tmp_0.m2i(substitution, tmp0_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.h4c().context) : tmp0_elvis_lhs, sideEffects.slice()));
|
|
1556
1556
|
}
|
|
1557
1557
|
function stateEndTrue$default(_this__u8e3s4, substitution, sideEffectManager, sideEffects, $mask0, $handler) {
|
|
1558
1558
|
if (!(($mask0 & 1) === 0))
|
|
@@ -1563,9 +1563,9 @@
|
|
|
1563
1563
|
}
|
|
1564
1564
|
function stateEndFalse(_this__u8e3s4, sideEffectManager, sideEffects) {
|
|
1565
1565
|
var tmp = _this__u8e3s4.j5();
|
|
1566
|
-
var tmp_0 = _this__u8e3s4.
|
|
1566
|
+
var tmp_0 = _this__u8e3s4.h4c();
|
|
1567
1567
|
var tmp0_elvis_lhs = sideEffectManager;
|
|
1568
|
-
return new False(tmp, tmp_0.
|
|
1568
|
+
return new False(tmp, tmp_0.n2i(tmp0_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.h4c().context) : tmp0_elvis_lhs, sideEffects.slice()));
|
|
1569
1569
|
}
|
|
1570
1570
|
function stateEndFalse$default(_this__u8e3s4, sideEffectManager, sideEffects, $mask0, $handler) {
|
|
1571
1571
|
if (!(($mask0 & 1) === 0))
|
|
@@ -1574,10 +1574,10 @@
|
|
|
1574
1574
|
}
|
|
1575
1575
|
function stateEndHalt(_this__u8e3s4, exception, sideEffectManager, sideEffects) {
|
|
1576
1576
|
var tmp = _this__u8e3s4.j5();
|
|
1577
|
-
var tmp_0 = _this__u8e3s4.
|
|
1577
|
+
var tmp_0 = _this__u8e3s4.h4c();
|
|
1578
1578
|
var tmp0_elvis_lhs = sideEffectManager;
|
|
1579
1579
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getSideEffectManager(exception.j5()) : tmp0_elvis_lhs;
|
|
1580
|
-
return new Halt_0(tmp, tmp_0.
|
|
1580
|
+
return new Halt_0(tmp, tmp_0.o2i(exception, tmp1_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.h4c().context) : tmp1_elvis_lhs, sideEffects.slice()));
|
|
1581
1581
|
}
|
|
1582
1582
|
function stateEndHalt$default(_this__u8e3s4, exception, sideEffectManager, sideEffects, $mask0, $handler) {
|
|
1583
1583
|
if (!(($mask0 & 2) === 0))
|
|
@@ -1602,13 +1602,13 @@
|
|
|
1602
1602
|
var tmp = stateEnd$lambda(_this__u8e3s4, sideEffectManager, sideEffects);
|
|
1603
1603
|
var tmp_0 = stateEnd$lambda_0(_this__u8e3s4, sideEffectManager, sideEffects);
|
|
1604
1604
|
var tmp_1 = stateEnd$lambda_1(_this__u8e3s4, sideEffectManager, sideEffects);
|
|
1605
|
-
return solution.
|
|
1605
|
+
return solution.e1w(tmp, tmp_0, tmp_1, null, 8, null);
|
|
1606
1606
|
}
|
|
1607
1607
|
function stateEnd$lambda($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
1608
1608
|
return function (sol) {
|
|
1609
1609
|
var tmp$ret$1;
|
|
1610
1610
|
// Inline function 'kotlin.takeUnless' call
|
|
1611
|
-
var tmp0_takeUnless = sol.
|
|
1611
|
+
var tmp0_takeUnless = sol.o1u();
|
|
1612
1612
|
// Inline function 'kotlin.contracts.contract' call
|
|
1613
1613
|
var tmp;
|
|
1614
1614
|
var tmp$ret$0;
|
|
@@ -1621,7 +1621,7 @@
|
|
|
1621
1621
|
}
|
|
1622
1622
|
tmp$ret$1 = tmp;
|
|
1623
1623
|
var tmp0_elvis_lhs = tmp$ret$1;
|
|
1624
|
-
return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.
|
|
1624
|
+
return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.h4c().context.o1u() : tmp0_elvis_lhs, $sideEffectManager, $sideEffects.slice());
|
|
1625
1625
|
};
|
|
1626
1626
|
}
|
|
1627
1627
|
function stateEnd$lambda_0($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
}
|
|
1632
1632
|
function stateEnd$lambda_1($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
1633
1633
|
return function (it) {
|
|
1634
|
-
return stateEndHalt($this_stateEnd, it.
|
|
1634
|
+
return stateEndHalt($this_stateEnd, it.z1v(), $sideEffectManager, $sideEffects.slice());
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
1637
1637
|
function context$factory() {
|
|
@@ -1645,9 +1645,9 @@
|
|
|
1645
1645
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1646
1646
|
var tmp0__get_functor__thl4dk = Throw_getInstance();
|
|
1647
1647
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
1648
|
-
var tmp_0 = tmp.of(tmp$ret$0, [error.
|
|
1648
|
+
var tmp_0 = tmp.of(tmp$ret$0, [error.k25()]);
|
|
1649
1649
|
var tmp0_elvis_lhs = getSideEffectManager(error.j5());
|
|
1650
|
-
var tmp_1 = tmp0_elvis_lhs == null ? _this__u8e3s4.context.
|
|
1650
|
+
var tmp_1 = tmp0_elvis_lhs == null ? _this__u8e3s4.context.z4c_1 : tmp0_elvis_lhs;
|
|
1651
1651
|
var tmp_2 = currentTimeInstant();
|
|
1652
1652
|
return newSolveRequest$default(_this__u8e3s4, tmp_0, null, null, tmp_1, tmp_2, false, 38, null);
|
|
1653
1653
|
}
|
|
@@ -1661,128 +1661,128 @@
|
|
|
1661
1661
|
return Companion_instance_2;
|
|
1662
1662
|
}
|
|
1663
1663
|
function StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1664
|
-
this.
|
|
1664
|
+
this.y4g_1 = this$0;
|
|
1665
1665
|
CoroutineImpl.call(this, resultContinuation);
|
|
1666
1666
|
}
|
|
1667
|
-
StateGoalEvaluation$behaveTimed$slambda.prototype.
|
|
1668
|
-
var tmp = this.
|
|
1669
|
-
tmp.
|
|
1670
|
-
tmp.
|
|
1671
|
-
return tmp.
|
|
1667
|
+
StateGoalEvaluation$behaveTimed$slambda.prototype.g4f = function ($this$sequence, $cont) {
|
|
1668
|
+
var tmp = this.h4f($this$sequence, $cont);
|
|
1669
|
+
tmp.bi_1 = Unit_getInstance();
|
|
1670
|
+
tmp.ci_1 = null;
|
|
1671
|
+
return tmp.hi();
|
|
1672
1672
|
};
|
|
1673
|
-
StateGoalEvaluation$behaveTimed$slambda.prototype.
|
|
1674
|
-
return this.
|
|
1673
|
+
StateGoalEvaluation$behaveTimed$slambda.prototype.ti = function (p1, $cont) {
|
|
1674
|
+
return this.g4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
1675
1675
|
};
|
|
1676
|
-
StateGoalEvaluation$behaveTimed$slambda.prototype.
|
|
1677
|
-
var suspendResult = this.
|
|
1676
|
+
StateGoalEvaluation$behaveTimed$slambda.prototype.hi = function () {
|
|
1677
|
+
var suspendResult = this.bi_1;
|
|
1678
1678
|
$sm: do
|
|
1679
1679
|
try {
|
|
1680
|
-
var tmp = this.
|
|
1680
|
+
var tmp = this.zh_1;
|
|
1681
1681
|
switch (tmp) {
|
|
1682
1682
|
case 0:
|
|
1683
|
-
this.
|
|
1683
|
+
this.ai_1 = 11;
|
|
1684
1684
|
var tmp_0 = this;
|
|
1685
|
-
var tmp0_with = this.
|
|
1686
|
-
tmp_0.
|
|
1687
|
-
this.
|
|
1688
|
-
if (this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1685
|
+
var tmp0_with = this.y4g_1.r4h_1;
|
|
1686
|
+
tmp_0.a4h_1 = tmp0_with.context.n4c_1.k2e().a3(tmp0_with.signature);
|
|
1687
|
+
this.b4h_1 = this.a4h_1;
|
|
1688
|
+
if (this.b4h_1 == null) {
|
|
1689
|
+
this.c4h_1 = null;
|
|
1690
|
+
this.zh_1 = 8;
|
|
1691
1691
|
continue $sm;
|
|
1692
1692
|
} else {
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1693
|
+
this.d4h_1 = null;
|
|
1694
|
+
this.ai_1 = 1;
|
|
1695
|
+
this.d4h_1 = this.a4h_1.solve(this.y4g_1.r4h_1);
|
|
1696
|
+
this.ai_1 = 11;
|
|
1697
|
+
this.zh_1 = 3;
|
|
1698
1698
|
continue $sm;
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
1701
|
break;
|
|
1702
1702
|
case 1:
|
|
1703
|
-
this.
|
|
1704
|
-
var tmp_1 = this.
|
|
1703
|
+
this.ai_1 = 11;
|
|
1704
|
+
var tmp_1 = this.ci_1;
|
|
1705
1705
|
if (tmp_1 instanceof HaltException) {
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1708
|
-
suspendResult = this.
|
|
1706
|
+
this.e4h_1 = this.ci_1;
|
|
1707
|
+
this.zh_1 = 2;
|
|
1708
|
+
suspendResult = this.z4g_1.z4(stateEndHalt$default(this.y4g_1, this.e4h_1, null, [], 6, null), this);
|
|
1709
1709
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1710
1710
|
return suspendResult;
|
|
1711
1711
|
}
|
|
1712
1712
|
continue $sm;
|
|
1713
1713
|
} else {
|
|
1714
|
-
var tmp_2 = this.
|
|
1714
|
+
var tmp_2 = this.ci_1;
|
|
1715
1715
|
if (tmp_2 instanceof LogicError) {
|
|
1716
|
-
this.
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1716
|
+
this.f4h_1 = this.ci_1;
|
|
1717
|
+
this.d4h_1 = Companion_getInstance_16().k4c(newThrowSolveRequest(this.y4g_1.r4h_1, Companion_getInstance_18(), this.f4h_1));
|
|
1718
|
+
this.zh_1 = 3;
|
|
1719
1719
|
continue $sm;
|
|
1720
1720
|
} else {
|
|
1721
|
-
throw this.
|
|
1721
|
+
throw this.ci_1;
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
|
|
1725
1725
|
break;
|
|
1726
1726
|
case 2:
|
|
1727
|
-
this.
|
|
1727
|
+
this.zh_1 = 3;
|
|
1728
1728
|
continue $sm;
|
|
1729
1729
|
case 3:
|
|
1730
|
-
this.
|
|
1731
|
-
this.
|
|
1732
|
-
this.
|
|
1733
|
-
if (this.
|
|
1734
|
-
this.
|
|
1735
|
-
this.
|
|
1730
|
+
this.ai_1 = 11;
|
|
1731
|
+
this.g4h_1 = emptyList();
|
|
1732
|
+
this.h4h_1 = this.d4h_1;
|
|
1733
|
+
if (this.h4h_1 == null) {
|
|
1734
|
+
this.i4h_1 = null;
|
|
1735
|
+
this.zh_1 = 7;
|
|
1736
1736
|
continue $sm;
|
|
1737
1737
|
} else {
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1738
|
+
this.j4h_1 = this.h4h_1.j();
|
|
1739
|
+
this.zh_1 = 4;
|
|
1740
1740
|
continue $sm;
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
1743
|
break;
|
|
1744
1744
|
case 4:
|
|
1745
|
-
if (!this.
|
|
1746
|
-
this.
|
|
1745
|
+
if (!this.j4h_1.m()) {
|
|
1746
|
+
this.zh_1 = 6;
|
|
1747
1747
|
continue $sm;
|
|
1748
1748
|
}
|
|
1749
1749
|
|
|
1750
|
-
this.
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
suspendResult = this.
|
|
1750
|
+
this.k4h_1 = this.j4h_1.n();
|
|
1751
|
+
this.g4h_1 = addWithNoDuplicates(this.g4h_1, this.k4h_1.sideEffects);
|
|
1752
|
+
this.zh_1 = 5;
|
|
1753
|
+
suspendResult = this.z4g_1.z4(this.y4g_1.o4f(this.y4g_1, stateEnd(this.y4g_1, this.k4h_1.l2j(null, null, this.g4h_1, 3, null))), this);
|
|
1754
1754
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1755
1755
|
return suspendResult;
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
1758
|
continue $sm;
|
|
1759
1759
|
case 5:
|
|
1760
|
-
var tmp_3 = this.
|
|
1760
|
+
var tmp_3 = this.k4h_1.solution;
|
|
1761
1761
|
if (isInterface(tmp_3, Halt))
|
|
1762
1762
|
return Unit_getInstance();
|
|
1763
|
-
this.
|
|
1763
|
+
this.zh_1 = 4;
|
|
1764
1764
|
continue $sm;
|
|
1765
1765
|
case 6:
|
|
1766
|
-
this.
|
|
1767
|
-
this.
|
|
1766
|
+
this.i4h_1 = Unit_getInstance();
|
|
1767
|
+
this.zh_1 = 7;
|
|
1768
1768
|
continue $sm;
|
|
1769
1769
|
case 7:
|
|
1770
1770
|
;
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1771
|
+
this.c4h_1 = this.b4h_1;
|
|
1772
|
+
this.zh_1 = 8;
|
|
1773
1773
|
continue $sm;
|
|
1774
1774
|
case 8:
|
|
1775
|
-
this.
|
|
1776
|
-
if (this.
|
|
1777
|
-
this.
|
|
1778
|
-
suspendResult = this.
|
|
1775
|
+
this.l4h_1 = this.c4h_1;
|
|
1776
|
+
if (this.l4h_1 == null) {
|
|
1777
|
+
this.zh_1 = 9;
|
|
1778
|
+
suspendResult = this.z4g_1.z4(new StateRuleSelection(this.y4g_1.r4h_1), this);
|
|
1779
1779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1780
1780
|
return suspendResult;
|
|
1781
1781
|
}
|
|
1782
1782
|
continue $sm;
|
|
1783
1783
|
} else {
|
|
1784
|
-
this.
|
|
1785
|
-
this.
|
|
1784
|
+
this.m4h_1 = this.l4h_1;
|
|
1785
|
+
this.zh_1 = 10;
|
|
1786
1786
|
continue $sm;
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
@@ -1790,34 +1790,34 @@
|
|
|
1790
1790
|
break;
|
|
1791
1791
|
case 9:
|
|
1792
1792
|
var tmp_4 = this;
|
|
1793
|
-
tmp_4.
|
|
1794
|
-
this.
|
|
1793
|
+
tmp_4.m4h_1 = Unit_getInstance();
|
|
1794
|
+
this.zh_1 = 10;
|
|
1795
1795
|
continue $sm;
|
|
1796
1796
|
case 10:
|
|
1797
1797
|
;
|
|
1798
1798
|
return Unit_getInstance();
|
|
1799
1799
|
case 11:
|
|
1800
|
-
throw this.
|
|
1800
|
+
throw this.ci_1;
|
|
1801
1801
|
}
|
|
1802
1802
|
} catch ($p) {
|
|
1803
|
-
if (this.
|
|
1803
|
+
if (this.ai_1 === 11) {
|
|
1804
1804
|
throw $p;
|
|
1805
1805
|
} else {
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1806
|
+
this.zh_1 = this.ai_1;
|
|
1807
|
+
this.ci_1 = $p;
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
while (true);
|
|
1811
1811
|
};
|
|
1812
|
-
StateGoalEvaluation$behaveTimed$slambda.prototype.
|
|
1813
|
-
var i = new StateGoalEvaluation$behaveTimed$slambda(this.
|
|
1814
|
-
i.
|
|
1812
|
+
StateGoalEvaluation$behaveTimed$slambda.prototype.h4f = function ($this$sequence, completion) {
|
|
1813
|
+
var i = new StateGoalEvaluation$behaveTimed$slambda(this.y4g_1, completion);
|
|
1814
|
+
i.z4g_1 = $this$sequence;
|
|
1815
1815
|
return i;
|
|
1816
1816
|
};
|
|
1817
1817
|
function StateGoalEvaluation$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
1818
1818
|
var i = new StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation);
|
|
1819
1819
|
var l = function ($this$sequence, $cont) {
|
|
1820
|
-
return i.
|
|
1820
|
+
return i.g4f($this$sequence, $cont);
|
|
1821
1821
|
};
|
|
1822
1822
|
l.$arity = 1;
|
|
1823
1823
|
return l;
|
|
@@ -1825,67 +1825,67 @@
|
|
|
1825
1825
|
function StateGoalEvaluation(solve) {
|
|
1826
1826
|
Companion_getInstance_18();
|
|
1827
1827
|
AbstractTimedState.call(this, solve);
|
|
1828
|
-
this.
|
|
1828
|
+
this.r4h_1 = solve;
|
|
1829
1829
|
}
|
|
1830
|
-
StateGoalEvaluation.prototype.
|
|
1831
|
-
return this.
|
|
1830
|
+
StateGoalEvaluation.prototype.h4c = function () {
|
|
1831
|
+
return this.r4h_1;
|
|
1832
1832
|
};
|
|
1833
|
-
StateGoalEvaluation.prototype.
|
|
1833
|
+
StateGoalEvaluation.prototype.n4f = function () {
|
|
1834
1834
|
return sequence(StateGoalEvaluation$behaveTimed$slambda_0(this, null));
|
|
1835
1835
|
};
|
|
1836
1836
|
function StateInit$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1837
|
-
this.
|
|
1837
|
+
this.a4i_1 = this$0;
|
|
1838
1838
|
CoroutineImpl.call(this, resultContinuation);
|
|
1839
1839
|
}
|
|
1840
|
-
StateInit$behaveTimed$slambda.prototype.
|
|
1841
|
-
var tmp = this.
|
|
1842
|
-
tmp.
|
|
1843
|
-
tmp.
|
|
1844
|
-
return tmp.
|
|
1840
|
+
StateInit$behaveTimed$slambda.prototype.g4f = function ($this$sequence, $cont) {
|
|
1841
|
+
var tmp = this.h4f($this$sequence, $cont);
|
|
1842
|
+
tmp.bi_1 = Unit_getInstance();
|
|
1843
|
+
tmp.ci_1 = null;
|
|
1844
|
+
return tmp.hi();
|
|
1845
1845
|
};
|
|
1846
|
-
StateInit$behaveTimed$slambda.prototype.
|
|
1847
|
-
return this.
|
|
1846
|
+
StateInit$behaveTimed$slambda.prototype.ti = function (p1, $cont) {
|
|
1847
|
+
return this.g4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
1848
1848
|
};
|
|
1849
|
-
StateInit$behaveTimed$slambda.prototype.
|
|
1850
|
-
var suspendResult = this.
|
|
1849
|
+
StateInit$behaveTimed$slambda.prototype.hi = function () {
|
|
1850
|
+
var suspendResult = this.bi_1;
|
|
1851
1851
|
$sm: do
|
|
1852
1852
|
try {
|
|
1853
|
-
var tmp = this.
|
|
1853
|
+
var tmp = this.zh_1;
|
|
1854
1854
|
switch (tmp) {
|
|
1855
1855
|
case 0:
|
|
1856
|
-
this.
|
|
1856
|
+
this.ai_1 = 6;
|
|
1857
1857
|
var tmp_0 = this;
|
|
1858
|
-
var tmp0_with = this.
|
|
1859
|
-
tmp_0.
|
|
1860
|
-
this.
|
|
1861
|
-
var tmp1_with = this.
|
|
1862
|
-
if (tmp1_with.
|
|
1863
|
-
this.
|
|
1864
|
-
suspendResult = this.
|
|
1858
|
+
var tmp0_with = this.a4i_1.j4i_1.context;
|
|
1859
|
+
tmp_0.c4i_1 = tmp0_with.z4c_1.j4d(tmp0_with);
|
|
1860
|
+
this.d4i_1 = this.a4i_1.j4i_1.u1v();
|
|
1861
|
+
var tmp1_with = this.a4i_1.j4i_1.context;
|
|
1862
|
+
if (tmp1_with.y4c_1.f4c(this.d4i_1, tmp1_with)) {
|
|
1863
|
+
this.zh_1 = 4;
|
|
1864
|
+
suspendResult = this.b4i_1.z4(this.a4i_1.o4f(this.a4i_1, stateEndTrue$default(this.a4i_1, this.a4i_1.j4i_1.context.v4c_1, this.c4i_1, [], 4, null)), this);
|
|
1865
1865
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1866
1866
|
return suspendResult;
|
|
1867
1867
|
}
|
|
1868
1868
|
continue $sm;
|
|
1869
1869
|
} else {
|
|
1870
|
-
if (isWellFormed(this.
|
|
1870
|
+
if (isWellFormed(this.d4i_1)) {
|
|
1871
1871
|
var tmp_1 = this;
|
|
1872
|
-
tmp_1.
|
|
1873
|
-
this.
|
|
1874
|
-
var tmp_2 = extractSignature(this.
|
|
1875
|
-
var tmp_3 = this.
|
|
1876
|
-
var tmp0_with_0 = this.
|
|
1872
|
+
tmp_1.e4i_1 = prepareForExecutionAsGoal(this.d4i_1);
|
|
1873
|
+
this.zh_1 = 2;
|
|
1874
|
+
var tmp_2 = extractSignature(this.e4i_1);
|
|
1875
|
+
var tmp_3 = this.e4i_1.dw();
|
|
1876
|
+
var tmp0_with_0 = this.a4i_1.j4i_1.context;
|
|
1877
1877
|
var tmp_4 = new Long(0, 0);
|
|
1878
1878
|
var tmp_5 = new Long(0, 0);
|
|
1879
|
-
var tmp_6 = tmp0_with_0.
|
|
1879
|
+
var tmp_6 = tmp0_with_0.v4d(null, null, null, null, null, null, null, null, null, null, tmp_4, tmp_5, null, this.c4i_1, 8191, null);
|
|
1880
1880
|
var tmp_7 = new Long(0, 0);
|
|
1881
|
-
suspendResult = this.
|
|
1881
|
+
suspendResult = this.b4i_1.z4(new StateGoalEvaluation(this.a4i_1.j4i_1.g2j(tmp_2, tmp_3, tmp_6, tmp_7, new Long(0, 0), 24, null)), this);
|
|
1882
1882
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1883
1883
|
return suspendResult;
|
|
1884
1884
|
}
|
|
1885
1885
|
continue $sm;
|
|
1886
1886
|
} else {
|
|
1887
|
-
this.
|
|
1888
|
-
suspendResult = this.
|
|
1887
|
+
this.zh_1 = 1;
|
|
1888
|
+
suspendResult = this.b4i_1.z4(stateEndFalse$default(this.a4i_1, this.c4i_1, [], 2, null), this);
|
|
1889
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1890
|
return suspendResult;
|
|
1891
1891
|
}
|
|
@@ -1895,66 +1895,66 @@
|
|
|
1895
1895
|
|
|
1896
1896
|
break;
|
|
1897
1897
|
case 1:
|
|
1898
|
-
this.
|
|
1898
|
+
this.zh_1 = 3;
|
|
1899
1899
|
continue $sm;
|
|
1900
1900
|
case 2:
|
|
1901
1901
|
;
|
|
1902
|
-
this.
|
|
1902
|
+
this.zh_1 = 3;
|
|
1903
1903
|
continue $sm;
|
|
1904
1904
|
case 3:
|
|
1905
|
-
this.
|
|
1905
|
+
this.zh_1 = 5;
|
|
1906
1906
|
continue $sm;
|
|
1907
1907
|
case 4:
|
|
1908
|
-
this.
|
|
1908
|
+
this.zh_1 = 5;
|
|
1909
1909
|
continue $sm;
|
|
1910
1910
|
case 5:
|
|
1911
1911
|
return Unit_getInstance();
|
|
1912
1912
|
case 6:
|
|
1913
|
-
throw this.
|
|
1913
|
+
throw this.ci_1;
|
|
1914
1914
|
}
|
|
1915
1915
|
} catch ($p) {
|
|
1916
|
-
if (this.
|
|
1916
|
+
if (this.ai_1 === 6) {
|
|
1917
1917
|
throw $p;
|
|
1918
1918
|
} else {
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1919
|
+
this.zh_1 = this.ai_1;
|
|
1920
|
+
this.ci_1 = $p;
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
1923
|
while (true);
|
|
1924
1924
|
};
|
|
1925
|
-
StateInit$behaveTimed$slambda.prototype.
|
|
1926
|
-
var i = new StateInit$behaveTimed$slambda(this.
|
|
1927
|
-
i.
|
|
1925
|
+
StateInit$behaveTimed$slambda.prototype.h4f = function ($this$sequence, completion) {
|
|
1926
|
+
var i = new StateInit$behaveTimed$slambda(this.a4i_1, completion);
|
|
1927
|
+
i.b4i_1 = $this$sequence;
|
|
1928
1928
|
return i;
|
|
1929
1929
|
};
|
|
1930
1930
|
function StateInit$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
1931
1931
|
var i = new StateInit$behaveTimed$slambda(this$0, resultContinuation);
|
|
1932
1932
|
var l = function ($this$sequence, $cont) {
|
|
1933
|
-
return i.
|
|
1933
|
+
return i.g4f($this$sequence, $cont);
|
|
1934
1934
|
};
|
|
1935
1935
|
l.$arity = 1;
|
|
1936
1936
|
return l;
|
|
1937
1937
|
}
|
|
1938
1938
|
function StateInit(solve) {
|
|
1939
1939
|
AbstractTimedState.call(this, solve);
|
|
1940
|
-
this.
|
|
1940
|
+
this.j4i_1 = solve;
|
|
1941
1941
|
}
|
|
1942
|
-
StateInit.prototype.
|
|
1943
|
-
return this.
|
|
1942
|
+
StateInit.prototype.h4c = function () {
|
|
1943
|
+
return this.j4i_1;
|
|
1944
1944
|
};
|
|
1945
|
-
StateInit.prototype.
|
|
1945
|
+
StateInit.prototype.n4f = function () {
|
|
1946
1946
|
return sequence(StateInit$behaveTimed$slambda_0(this, null));
|
|
1947
1947
|
};
|
|
1948
1948
|
function retrieveRulesMatching(_this__u8e3s4, $this, currentGoal) {
|
|
1949
1949
|
var tmp$ret$3;
|
|
1950
1950
|
// Inline function 'kotlin.let' call
|
|
1951
|
-
var tmp0_let = currentGoal.
|
|
1951
|
+
var tmp0_let = currentGoal.fw();
|
|
1952
1952
|
// Inline function 'kotlin.contracts.contract' call
|
|
1953
1953
|
var tmp$ret$2;
|
|
1954
1954
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.retrieveRulesMatching.<anonymous>' call
|
|
1955
1955
|
var tmp$ret$1;
|
|
1956
1956
|
// Inline function 'kotlin.takeIf' call
|
|
1957
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
1957
|
+
var tmp0_takeIf = _this__u8e3s4.t1u().asTheory(_this__u8e3s4.h1l()).getByHead(tmp0_let);
|
|
1958
1958
|
// Inline function 'kotlin.contracts.contract' call
|
|
1959
1959
|
var tmp;
|
|
1960
1960
|
var tmp$ret$0;
|
|
@@ -1969,7 +1969,7 @@
|
|
|
1969
1969
|
var tmp0_elvis_lhs = tmp$ret$1;
|
|
1970
1970
|
var tmp_0;
|
|
1971
1971
|
if (tmp0_elvis_lhs == null) {
|
|
1972
|
-
var tmp_1 = sequenceOf([_this__u8e3s4.
|
|
1972
|
+
var tmp_1 = sequenceOf([_this__u8e3s4.v1u(), _this__u8e3s4.w1u()]);
|
|
1973
1973
|
tmp_0 = flatMap(tmp_1, StateRuleSelection$Companion$retrieveRulesMatching$lambda(tmp0_let));
|
|
1974
1974
|
} else {
|
|
1975
1975
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -1987,17 +1987,17 @@
|
|
|
1987
1987
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.initializeForSubRuleScope.<anonymous>' call
|
|
1988
1988
|
var tmp = new Long(0, 0);
|
|
1989
1989
|
var tmp_0 = new Long(0, 0);
|
|
1990
|
-
tmp$ret$0 = tmp0_with.
|
|
1990
|
+
tmp$ret$0 = tmp0_with.v4d(null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, tmp0_with.z4c_1.l4d(), 8191, null);
|
|
1991
1991
|
tmp$ret$1 = tmp$ret$0;
|
|
1992
1992
|
var tmp_1 = tmp$ret$1;
|
|
1993
1993
|
var tmp_2 = new Long(0, 0);
|
|
1994
|
-
return _this__u8e3s4.
|
|
1994
|
+
return _this__u8e3s4.g2j(null, null, tmp_1, tmp_2, new Long(0, 0), 27, null);
|
|
1995
1995
|
}
|
|
1996
1996
|
function removeSubstitutionFor(_this__u8e3s4, $this, unusedVariables) {
|
|
1997
1997
|
var tmp0_subject = _this__u8e3s4;
|
|
1998
1998
|
var tmp;
|
|
1999
1999
|
if (isInterface(tmp0_subject, Yes)) {
|
|
2000
|
-
tmp = _this__u8e3s4.
|
|
2000
|
+
tmp = _this__u8e3s4.w1v(null, _this__u8e3s4.o1u().f12(asIterable(unusedVariables)), 1, null);
|
|
2001
2001
|
} else {
|
|
2002
2002
|
tmp = _this__u8e3s4;
|
|
2003
2003
|
}
|
|
@@ -2010,13 +2010,13 @@
|
|
|
2010
2010
|
}
|
|
2011
2011
|
function SolverStrategies$clauseChoiceStrategy$ref($boundThis) {
|
|
2012
2012
|
var l = function (p0, p1) {
|
|
2013
|
-
return $boundThis.
|
|
2013
|
+
return $boundThis.e4c(p0, p1);
|
|
2014
2014
|
};
|
|
2015
2015
|
l.callableName = 'clauseChoiceStrategy';
|
|
2016
2016
|
return l;
|
|
2017
2017
|
}
|
|
2018
2018
|
function StateRuleSelection$behaveTimed$slambda$lambda(it) {
|
|
2019
|
-
var tmp = prepareForExecution(it).
|
|
2019
|
+
var tmp = prepareForExecution(it).fw();
|
|
2020
2020
|
return isInterface(tmp, Rule) ? tmp : THROW_CCE();
|
|
2021
2021
|
}
|
|
2022
2022
|
function Companion_3() {
|
|
@@ -2030,139 +2030,139 @@
|
|
|
2030
2030
|
}
|
|
2031
2031
|
function StateMachineExecutor$executeWrapping$ref($boundThis) {
|
|
2032
2032
|
var l = function (p0) {
|
|
2033
|
-
return $boundThis.
|
|
2033
|
+
return $boundThis.i4f(p0);
|
|
2034
2034
|
};
|
|
2035
2035
|
l.callableName = 'executeWrapping';
|
|
2036
2036
|
return l;
|
|
2037
2037
|
}
|
|
2038
2038
|
function StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation) {
|
|
2039
|
-
this.
|
|
2039
|
+
this.s4i_1 = this$0;
|
|
2040
2040
|
CoroutineImpl.call(this, resultContinuation);
|
|
2041
2041
|
}
|
|
2042
|
-
StateRuleSelection$behaveTimed$slambda.prototype.
|
|
2043
|
-
var tmp = this.
|
|
2044
|
-
tmp.
|
|
2045
|
-
tmp.
|
|
2046
|
-
return tmp.
|
|
2042
|
+
StateRuleSelection$behaveTimed$slambda.prototype.g4f = function ($this$sequence, $cont) {
|
|
2043
|
+
var tmp = this.h4f($this$sequence, $cont);
|
|
2044
|
+
tmp.bi_1 = Unit_getInstance();
|
|
2045
|
+
tmp.ci_1 = null;
|
|
2046
|
+
return tmp.hi();
|
|
2047
2047
|
};
|
|
2048
|
-
StateRuleSelection$behaveTimed$slambda.prototype.
|
|
2049
|
-
return this.
|
|
2048
|
+
StateRuleSelection$behaveTimed$slambda.prototype.ti = function (p1, $cont) {
|
|
2049
|
+
return this.g4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
2050
2050
|
};
|
|
2051
|
-
StateRuleSelection$behaveTimed$slambda.prototype.
|
|
2052
|
-
var suspendResult = this.
|
|
2051
|
+
StateRuleSelection$behaveTimed$slambda.prototype.hi = function () {
|
|
2052
|
+
var suspendResult = this.bi_1;
|
|
2053
2053
|
$sm: do
|
|
2054
2054
|
try {
|
|
2055
|
-
var tmp = this.
|
|
2055
|
+
var tmp = this.zh_1;
|
|
2056
2056
|
switch (tmp) {
|
|
2057
2057
|
case 0:
|
|
2058
|
-
this.
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2061
|
-
this.
|
|
2062
|
-
if (none(this.
|
|
2063
|
-
this.
|
|
2064
|
-
suspendResult = this.
|
|
2058
|
+
this.ai_1 = 12;
|
|
2059
|
+
this.u4i_1 = this.s4i_1.q4j_1.u1v();
|
|
2060
|
+
this.v4i_1 = retrieveRulesMatching(this.s4i_1.q4j_1.context, Companion_getInstance_19(), this.u4i_1);
|
|
2061
|
+
this.w4i_1 = moreThanOne(this.v4i_1);
|
|
2062
|
+
if (none(this.v4i_1)) {
|
|
2063
|
+
this.zh_1 = 10;
|
|
2064
|
+
suspendResult = this.t4i_1.z4(stateEndFalse$default(this.s4i_1, null, [], 3, null), this);
|
|
2065
2065
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2066
2066
|
return suspendResult;
|
|
2067
2067
|
}
|
|
2068
2068
|
continue $sm;
|
|
2069
2069
|
} else {
|
|
2070
2070
|
var tmp_0 = this;
|
|
2071
|
-
var tmp0_with = this.
|
|
2072
|
-
var tmp_1 = orderWithStrategy(this.
|
|
2073
|
-
tmp_0.
|
|
2071
|
+
var tmp0_with = this.s4i_1.q4j_1.context;
|
|
2072
|
+
var tmp_1 = orderWithStrategy(this.v4i_1, tmp0_with, SolverStrategies$clauseChoiceStrategy$ref(tmp0_with.y4c_1));
|
|
2073
|
+
tmp_0.x4i_1 = map(tmp_1, StateRuleSelection$behaveTimed$slambda$lambda);
|
|
2074
2074
|
var tmp_2 = this;
|
|
2075
|
-
tmp_2.
|
|
2076
|
-
this.
|
|
2075
|
+
tmp_2.y4i_1 = this.x4i_1.j();
|
|
2076
|
+
this.zh_1 = 1;
|
|
2077
2077
|
continue $sm;
|
|
2078
2078
|
}
|
|
2079
2079
|
|
|
2080
2080
|
break;
|
|
2081
2081
|
case 1:
|
|
2082
|
-
if (!this.
|
|
2083
|
-
this.
|
|
2082
|
+
if (!this.y4i_1.m()) {
|
|
2083
|
+
this.zh_1 = 9;
|
|
2084
2084
|
continue $sm;
|
|
2085
2085
|
}
|
|
2086
2086
|
|
|
2087
2087
|
var tmp_3 = this;
|
|
2088
|
-
tmp_3.
|
|
2088
|
+
tmp_3.z4i_1 = this.y4i_1.n();
|
|
2089
2089
|
var tmp_4 = this;
|
|
2090
|
-
tmp_4.
|
|
2091
|
-
this.
|
|
2090
|
+
tmp_4.a4j_1 = this.y4i_1.m();
|
|
2091
|
+
this.b4j_1 = this.s4i_1.j5().m4c_1.mgu(this.u4i_1, this.z4i_1.iy());
|
|
2092
2092
|
var tmp_5 = this;
|
|
2093
|
-
var tmp_6 = this.
|
|
2094
|
-
tmp_5.
|
|
2093
|
+
var tmp_6 = this.z4i_1.jy().applySubstitution(this.b4j_1);
|
|
2094
|
+
tmp_5.c4j_1 = isInterface(tmp_6, Struct) ? tmp_6 : THROW_CCE();
|
|
2095
2095
|
var tmp_7 = this;
|
|
2096
|
-
var tmp0_$receiver = this.
|
|
2096
|
+
var tmp0_$receiver = this.s4i_1.q4j_1;
|
|
2097
2097
|
var tmp1_requestIssuingInstant = currentTimeInstant();
|
|
2098
|
-
tmp_7.
|
|
2098
|
+
tmp_7.d4j_1 = newSolveRequest$default(tmp0_$receiver, this.c4j_1, this.b4j_1, null, null, tmp1_requestIssuingInstant, this.w4i_1, 12, null);
|
|
2099
2099
|
var tmp_8 = this;
|
|
2100
|
-
tmp_8.
|
|
2101
|
-
this.
|
|
2102
|
-
suspendResult = this.
|
|
2100
|
+
tmp_8.e4j_1 = new StateInit(initializeForSubRuleScope(this.d4j_1, Companion_getInstance_19()));
|
|
2101
|
+
this.zh_1 = 2;
|
|
2102
|
+
suspendResult = this.t4i_1.z4(asAlreadyExecuted(this.e4j_1), this);
|
|
2103
2103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2104
2104
|
return suspendResult;
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
2107
|
continue $sm;
|
|
2108
2108
|
case 2:
|
|
2109
|
-
this.
|
|
2110
|
-
this.
|
|
2109
|
+
this.f4j_1 = this.e4j_1;
|
|
2110
|
+
this.g4j_1 = false;
|
|
2111
2111
|
var tmp_9 = this;
|
|
2112
|
-
tmp_9.
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2112
|
+
tmp_9.h4j_1 = this.s4i_1.r4j_1(this.f4j_1);
|
|
2113
|
+
this.i4j_1 = this.h4j_1.j();
|
|
2114
|
+
this.zh_1 = 3;
|
|
2115
2115
|
continue $sm;
|
|
2116
2116
|
case 3:
|
|
2117
|
-
if (!this.
|
|
2118
|
-
this.
|
|
2117
|
+
if (!this.i4j_1.m()) {
|
|
2118
|
+
this.zh_1 = 8;
|
|
2119
2119
|
continue $sm;
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
|
-
this.
|
|
2123
|
-
this.
|
|
2122
|
+
this.j4j_1 = this.i4j_1.n();
|
|
2123
|
+
this.k4j_1 = this.j4j_1.q4e_1;
|
|
2124
2124
|
var tmp_10;
|
|
2125
|
-
var tmp_11 = this.
|
|
2125
|
+
var tmp_11 = this.k4j_1;
|
|
2126
2126
|
if (isInterface(tmp_11, FinalState)) {
|
|
2127
|
-
tmp_10 = this.
|
|
2127
|
+
tmp_10 = this.k4j_1.h4c().solution.u1v().equals(this.d4j_1.u1v());
|
|
2128
2128
|
} else {
|
|
2129
2129
|
tmp_10 = false;
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
2132
|
if (tmp_10) {
|
|
2133
|
-
if (shouldCutExecuteInRuleSelection(this.
|
|
2134
|
-
this.
|
|
2133
|
+
if (shouldCutExecuteInRuleSelection(this.k4j_1.h4c().sideEffectManager)) {
|
|
2134
|
+
this.g4j_1 = true;
|
|
2135
2135
|
}
|
|
2136
2136
|
var tmp_12;
|
|
2137
2137
|
var tmp_13;
|
|
2138
|
-
var tmp_14 = this.
|
|
2138
|
+
var tmp_14 = this.k4j_1;
|
|
2139
2139
|
if (!(tmp_14 instanceof False)) {
|
|
2140
2140
|
tmp_13 = true;
|
|
2141
2141
|
} else {
|
|
2142
|
-
tmp_13 = !this.
|
|
2142
|
+
tmp_13 = !this.a4j_1;
|
|
2143
2143
|
}
|
|
2144
2144
|
if (tmp_13) {
|
|
2145
2145
|
tmp_12 = true;
|
|
2146
2146
|
} else {
|
|
2147
|
-
tmp_12 = this.
|
|
2147
|
+
tmp_12 = this.g4j_1;
|
|
2148
2148
|
}
|
|
2149
2149
|
if (tmp_12) {
|
|
2150
|
-
this.
|
|
2151
|
-
this.
|
|
2152
|
-
var tmp_15 = this.
|
|
2153
|
-
var tmp_16 = removeSubstitutionFor(this.
|
|
2154
|
-
suspendResult = this.
|
|
2150
|
+
this.l4j_1 = extendParentScopeWith(this.k4j_1.h4c().sideEffectManager, this.s4i_1.q4j_1.context.z4c_1);
|
|
2151
|
+
this.zh_1 = 5;
|
|
2152
|
+
var tmp_15 = this.k4j_1.h4c();
|
|
2153
|
+
var tmp_16 = removeSubstitutionFor(this.k4j_1.h4c().solution, Companion_getInstance_19(), this.z4i_1.ew());
|
|
2154
|
+
suspendResult = this.t4i_1.z4(stateEnd(this.s4i_1, tmp_15.l2j(tmp_16, this.l4j_1, null, 4, null)), this);
|
|
2155
2155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2156
|
return suspendResult;
|
|
2157
2157
|
}
|
|
2158
2158
|
continue $sm;
|
|
2159
2159
|
} else {
|
|
2160
|
-
this.
|
|
2160
|
+
this.zh_1 = 6;
|
|
2161
2161
|
continue $sm;
|
|
2162
2162
|
}
|
|
2163
2163
|
} else {
|
|
2164
|
-
this.
|
|
2165
|
-
suspendResult = this.
|
|
2164
|
+
this.zh_1 = 4;
|
|
2165
|
+
suspendResult = this.t4i_1.z4(this.j4j_1, this);
|
|
2166
2166
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2167
2167
|
return suspendResult;
|
|
2168
2168
|
}
|
|
@@ -2171,55 +2171,55 @@
|
|
|
2171
2171
|
|
|
2172
2172
|
break;
|
|
2173
2173
|
case 4:
|
|
2174
|
-
this.
|
|
2174
|
+
this.zh_1 = 7;
|
|
2175
2175
|
continue $sm;
|
|
2176
2176
|
case 5:
|
|
2177
|
-
this.
|
|
2177
|
+
this.zh_1 = 6;
|
|
2178
2178
|
continue $sm;
|
|
2179
2179
|
case 6:
|
|
2180
|
-
var tmp_17 = this.
|
|
2180
|
+
var tmp_17 = this.k4j_1;
|
|
2181
2181
|
if (tmp_17 instanceof Halt_0)
|
|
2182
2182
|
return Unit_getInstance();
|
|
2183
|
-
this.
|
|
2183
|
+
this.zh_1 = 7;
|
|
2184
2184
|
continue $sm;
|
|
2185
2185
|
case 7:
|
|
2186
|
-
this.
|
|
2186
|
+
this.zh_1 = 3;
|
|
2187
2187
|
continue $sm;
|
|
2188
2188
|
case 8:
|
|
2189
|
-
if (this.
|
|
2189
|
+
if (this.g4j_1)
|
|
2190
2190
|
return Unit_getInstance();
|
|
2191
|
-
this.
|
|
2191
|
+
this.zh_1 = 1;
|
|
2192
2192
|
continue $sm;
|
|
2193
2193
|
case 9:
|
|
2194
|
-
this.
|
|
2194
|
+
this.zh_1 = 11;
|
|
2195
2195
|
continue $sm;
|
|
2196
2196
|
case 10:
|
|
2197
|
-
this.
|
|
2197
|
+
this.zh_1 = 11;
|
|
2198
2198
|
continue $sm;
|
|
2199
2199
|
case 11:
|
|
2200
2200
|
return Unit_getInstance();
|
|
2201
2201
|
case 12:
|
|
2202
|
-
throw this.
|
|
2202
|
+
throw this.ci_1;
|
|
2203
2203
|
}
|
|
2204
2204
|
} catch ($p) {
|
|
2205
|
-
if (this.
|
|
2205
|
+
if (this.ai_1 === 12) {
|
|
2206
2206
|
throw $p;
|
|
2207
2207
|
} else {
|
|
2208
|
-
this.
|
|
2209
|
-
this.
|
|
2208
|
+
this.zh_1 = this.ai_1;
|
|
2209
|
+
this.ci_1 = $p;
|
|
2210
2210
|
}
|
|
2211
2211
|
}
|
|
2212
2212
|
while (true);
|
|
2213
2213
|
};
|
|
2214
|
-
StateRuleSelection$behaveTimed$slambda.prototype.
|
|
2215
|
-
var i = new StateRuleSelection$behaveTimed$slambda(this.
|
|
2216
|
-
i.
|
|
2214
|
+
StateRuleSelection$behaveTimed$slambda.prototype.h4f = function ($this$sequence, completion) {
|
|
2215
|
+
var i = new StateRuleSelection$behaveTimed$slambda(this.s4i_1, completion);
|
|
2216
|
+
i.t4i_1 = $this$sequence;
|
|
2217
2217
|
return i;
|
|
2218
2218
|
};
|
|
2219
2219
|
function StateRuleSelection$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
2220
2220
|
var i = new StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation);
|
|
2221
2221
|
var l = function ($this$sequence, $cont) {
|
|
2222
|
-
return i.
|
|
2222
|
+
return i.g4f($this$sequence, $cont);
|
|
2223
2223
|
};
|
|
2224
2224
|
l.$arity = 1;
|
|
2225
2225
|
return l;
|
|
@@ -2227,21 +2227,21 @@
|
|
|
2227
2227
|
function StateRuleSelection(solve) {
|
|
2228
2228
|
Companion_getInstance_19();
|
|
2229
2229
|
AbstractTimedState.call(this, solve);
|
|
2230
|
-
this.
|
|
2230
|
+
this.q4j_1 = solve;
|
|
2231
2231
|
var tmp = this;
|
|
2232
|
-
tmp.
|
|
2232
|
+
tmp.r4j_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_getInstance());
|
|
2233
2233
|
}
|
|
2234
|
-
StateRuleSelection.prototype.
|
|
2235
|
-
return this.
|
|
2234
|
+
StateRuleSelection.prototype.h4c = function () {
|
|
2235
|
+
return this.q4j_1;
|
|
2236
2236
|
};
|
|
2237
|
-
StateRuleSelection.prototype.
|
|
2237
|
+
StateRuleSelection.prototype.n4f = function () {
|
|
2238
2238
|
return sequence(StateRuleSelection$behaveTimed$slambda_0(this, null));
|
|
2239
2239
|
};
|
|
2240
2240
|
function DefaultBuiltins() {
|
|
2241
2241
|
DefaultBuiltins_instance = this;
|
|
2242
2242
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2243
2243
|
}
|
|
2244
|
-
DefaultBuiltins.prototype.
|
|
2244
|
+
DefaultBuiltins.prototype.y2e = function () {
|
|
2245
2245
|
return listOf_0([Call_getInstance(), Catch_getInstance(), Conjunction_getInstance(), Cut_getInstance(), Throw_getInstance(), Not_getInstance()]);
|
|
2246
2246
|
};
|
|
2247
2247
|
var DefaultBuiltins_instance;
|
|
@@ -2252,18 +2252,18 @@
|
|
|
2252
2252
|
}
|
|
2253
2253
|
function Call$uncheckedImplementation$lambda($request) {
|
|
2254
2254
|
return function (it) {
|
|
2255
|
-
var tmp = resetCutWorkChanges(it.sideEffectManager, $request.context.
|
|
2256
|
-
return replyWith($request, it.
|
|
2255
|
+
var tmp = resetCutWorkChanges(it.sideEffectManager, $request.context.z4c_1);
|
|
2256
|
+
return replyWith($request, it.l2j(null, tmp, null, 5, null));
|
|
2257
2257
|
};
|
|
2258
2258
|
}
|
|
2259
2259
|
function Call() {
|
|
2260
2260
|
Call_instance = this;
|
|
2261
2261
|
PrimitiveWrapper_init_$Init$('call', 1, false, 4, null, this);
|
|
2262
2262
|
}
|
|
2263
|
-
Call.prototype.
|
|
2263
|
+
Call.prototype.z4j = function (request) {
|
|
2264
2264
|
var tmp$ret$1;
|
|
2265
2265
|
// Inline function 'kotlin.let' call
|
|
2266
|
-
var tmp0_let = single(Companion_getInstance_11().
|
|
2266
|
+
var tmp0_let = single(Companion_getInstance_11().y2f(request).arguments);
|
|
2267
2267
|
// Inline function 'kotlin.contracts.contract' call
|
|
2268
2268
|
var tmp$ret$0;
|
|
2269
2269
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Call.uncheckedImplementation.<anonymous>' call
|
|
@@ -2272,7 +2272,7 @@
|
|
|
2272
2272
|
var tmp_0 = Companion_getInstance_16();
|
|
2273
2273
|
var tmp_1 = prepareForExecutionAsGoal(tmp0_let);
|
|
2274
2274
|
var tmp_2 = new Long(0, 0);
|
|
2275
|
-
var tmp_3 = tmp_0.
|
|
2275
|
+
var tmp_3 = tmp_0.k4c(newSolveRequest$default(request, tmp_1, null, null, null, tmp_2, false, 62, null));
|
|
2276
2276
|
tmp = map(tmp_3, Call$uncheckedImplementation$lambda(request));
|
|
2277
2277
|
} else {
|
|
2278
2278
|
var tmp_4 = Expected_CALLABLE_getInstance();
|
|
@@ -2282,8 +2282,8 @@
|
|
|
2282
2282
|
tmp$ret$1 = tmp$ret$0;
|
|
2283
2283
|
return tmp$ret$1;
|
|
2284
2284
|
};
|
|
2285
|
-
Call.prototype.
|
|
2286
|
-
return this.
|
|
2285
|
+
Call.prototype.n2g = function (request) {
|
|
2286
|
+
return this.z4j(request);
|
|
2287
2287
|
};
|
|
2288
2288
|
var Call_instance;
|
|
2289
2289
|
function Call_getInstance() {
|
|
@@ -2307,64 +2307,64 @@
|
|
|
2307
2307
|
function ensureNoMoreSelectableCatch(_this__u8e3s4, $this, notSelectableContext) {
|
|
2308
2308
|
var tmp = new Long(0, 0);
|
|
2309
2309
|
var tmp_0 = new Long(0, 0);
|
|
2310
|
-
var tmp_1 = _this__u8e3s4.context.
|
|
2310
|
+
var tmp_1 = _this__u8e3s4.context.v4d(null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, _this__u8e3s4.context.z4c_1.s4d(notSelectableContext), 8191, null);
|
|
2311
2311
|
var tmp_2 = new Long(0, 0);
|
|
2312
|
-
return _this__u8e3s4.
|
|
2312
|
+
return _this__u8e3s4.g2j(null, null, tmp_1, tmp_2, new Long(0, 0), 27, null);
|
|
2313
2313
|
}
|
|
2314
2314
|
function Catch$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2315
|
-
this.
|
|
2315
|
+
this.i4k_1 = $request;
|
|
2316
2316
|
CoroutineImpl.call(this, resultContinuation);
|
|
2317
2317
|
}
|
|
2318
|
-
Catch$uncheckedImplementation$slambda.prototype.
|
|
2319
|
-
var tmp = this.
|
|
2320
|
-
tmp.
|
|
2321
|
-
tmp.
|
|
2322
|
-
return tmp.
|
|
2318
|
+
Catch$uncheckedImplementation$slambda.prototype.b2t = function ($this$sequence, $cont) {
|
|
2319
|
+
var tmp = this.c2t($this$sequence, $cont);
|
|
2320
|
+
tmp.bi_1 = Unit_getInstance();
|
|
2321
|
+
tmp.ci_1 = null;
|
|
2322
|
+
return tmp.hi();
|
|
2323
2323
|
};
|
|
2324
|
-
Catch$uncheckedImplementation$slambda.prototype.
|
|
2325
|
-
return this.
|
|
2324
|
+
Catch$uncheckedImplementation$slambda.prototype.ti = function (p1, $cont) {
|
|
2325
|
+
return this.b2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
2326
2326
|
};
|
|
2327
|
-
Catch$uncheckedImplementation$slambda.prototype.
|
|
2328
|
-
var suspendResult = this.
|
|
2327
|
+
Catch$uncheckedImplementation$slambda.prototype.hi = function () {
|
|
2328
|
+
var suspendResult = this.bi_1;
|
|
2329
2329
|
$sm: do
|
|
2330
2330
|
try {
|
|
2331
|
-
var tmp = this.
|
|
2331
|
+
var tmp = this.zh_1;
|
|
2332
2332
|
switch (tmp) {
|
|
2333
2333
|
case 0:
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2334
|
+
this.ai_1 = 6;
|
|
2335
|
+
this.k4k_1 = first_0(this.i4k_1.arguments);
|
|
2336
2336
|
var tmp_0 = this;
|
|
2337
2337
|
var tmp_1 = Companion_getInstance_16();
|
|
2338
|
-
var tmp_2 = call(Catch_getInstance(), this.
|
|
2338
|
+
var tmp_2 = call(Catch_getInstance(), this.k4k_1);
|
|
2339
2339
|
var tmp_3 = new Long(0, 0);
|
|
2340
|
-
tmp_0.
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2340
|
+
tmp_0.l4k_1 = tmp_1.k4c(newSolveRequest$default(this.i4k_1, tmp_2, null, null, null, tmp_3, false, 62, null));
|
|
2341
|
+
this.m4k_1 = this.l4k_1.j();
|
|
2342
|
+
this.zh_1 = 1;
|
|
2343
2343
|
continue $sm;
|
|
2344
2344
|
case 1:
|
|
2345
|
-
if (!this.
|
|
2346
|
-
this.
|
|
2345
|
+
if (!this.m4k_1.m()) {
|
|
2346
|
+
this.zh_1 = 5;
|
|
2347
2347
|
continue $sm;
|
|
2348
2348
|
}
|
|
2349
2349
|
|
|
2350
|
-
this.
|
|
2351
|
-
if (isSelectedThrowCatch(this.
|
|
2352
|
-
this.
|
|
2350
|
+
this.n4k_1 = this.m4k_1.n();
|
|
2351
|
+
if (isSelectedThrowCatch(this.n4k_1.sideEffectManager, this.i4k_1.context)) {
|
|
2352
|
+
this.o4k_1 = last(this.i4k_1.arguments).applySubstitution(this.n4k_1.solution.o1u());
|
|
2353
2353
|
var tmp_4 = this;
|
|
2354
|
-
var tmp_5 = call(Catch_getInstance(), this.
|
|
2355
|
-
var tmp_6 = this.
|
|
2354
|
+
var tmp_5 = call(Catch_getInstance(), this.o4k_1);
|
|
2355
|
+
var tmp_6 = this.n4k_1.solution.o1u().minus(this.i4k_1.context.v4c_1);
|
|
2356
2356
|
var tmp_7 = currentTimeInstant();
|
|
2357
|
-
tmp_4.
|
|
2358
|
-
this.
|
|
2359
|
-
var tmp_8 = Companion_getInstance_16().
|
|
2360
|
-
suspendResult = this.
|
|
2357
|
+
tmp_4.p4k_1 = ensureNoMoreSelectableCatch(newSolveRequest$default(this.i4k_1, tmp_5, tmp_6, null, null, tmp_7, false, 44, null), Catch_getInstance(), this.i4k_1.context);
|
|
2358
|
+
this.zh_1 = 3;
|
|
2359
|
+
var tmp_8 = Companion_getInstance_16().k4c(this.p4k_1);
|
|
2360
|
+
suspendResult = this.j4k_1.c5(map(tmp_8, Catch$uncheckedImplementation$slambda$lambda(this.i4k_1)), this);
|
|
2361
2361
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2362
2362
|
return suspendResult;
|
|
2363
2363
|
}
|
|
2364
2364
|
continue $sm;
|
|
2365
2365
|
} else {
|
|
2366
|
-
this.
|
|
2367
|
-
suspendResult = this.
|
|
2366
|
+
this.zh_1 = 2;
|
|
2367
|
+
suspendResult = this.j4k_1.z4(replyWith(this.i4k_1, this.n4k_1), this);
|
|
2368
2368
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2369
2369
|
return suspendResult;
|
|
2370
2370
|
}
|
|
@@ -2373,38 +2373,38 @@
|
|
|
2373
2373
|
|
|
2374
2374
|
break;
|
|
2375
2375
|
case 2:
|
|
2376
|
-
this.
|
|
2376
|
+
this.zh_1 = 4;
|
|
2377
2377
|
continue $sm;
|
|
2378
2378
|
case 3:
|
|
2379
|
-
this.
|
|
2379
|
+
this.zh_1 = 4;
|
|
2380
2380
|
continue $sm;
|
|
2381
2381
|
case 4:
|
|
2382
|
-
this.
|
|
2382
|
+
this.zh_1 = 1;
|
|
2383
2383
|
continue $sm;
|
|
2384
2384
|
case 5:
|
|
2385
2385
|
return Unit_getInstance();
|
|
2386
2386
|
case 6:
|
|
2387
|
-
throw this.
|
|
2387
|
+
throw this.ci_1;
|
|
2388
2388
|
}
|
|
2389
2389
|
} catch ($p) {
|
|
2390
|
-
if (this.
|
|
2390
|
+
if (this.ai_1 === 6) {
|
|
2391
2391
|
throw $p;
|
|
2392
2392
|
} else {
|
|
2393
|
-
this.
|
|
2394
|
-
this.
|
|
2393
|
+
this.zh_1 = this.ai_1;
|
|
2394
|
+
this.ci_1 = $p;
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
2397
|
while (true);
|
|
2398
2398
|
};
|
|
2399
|
-
Catch$uncheckedImplementation$slambda.prototype.
|
|
2400
|
-
var i = new Catch$uncheckedImplementation$slambda(this.
|
|
2401
|
-
i.
|
|
2399
|
+
Catch$uncheckedImplementation$slambda.prototype.c2t = function ($this$sequence, completion) {
|
|
2400
|
+
var i = new Catch$uncheckedImplementation$slambda(this.i4k_1, completion);
|
|
2401
|
+
i.j4k_1 = $this$sequence;
|
|
2402
2402
|
return i;
|
|
2403
2403
|
};
|
|
2404
2404
|
function Catch$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2405
2405
|
var i = new Catch$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2406
2406
|
var l = function ($this$sequence, $cont) {
|
|
2407
|
-
return i.
|
|
2407
|
+
return i.b2t($this$sequence, $cont);
|
|
2408
2408
|
};
|
|
2409
2409
|
l.$arity = 1;
|
|
2410
2410
|
return l;
|
|
@@ -2413,11 +2413,11 @@
|
|
|
2413
2413
|
Catch_instance = this;
|
|
2414
2414
|
PrimitiveWrapper_init_$Init$('catch', 3, false, 4, null, this);
|
|
2415
2415
|
}
|
|
2416
|
-
Catch.prototype.
|
|
2416
|
+
Catch.prototype.z4j = function (request) {
|
|
2417
2417
|
return sequence(Catch$uncheckedImplementation$slambda_0(request, null));
|
|
2418
2418
|
};
|
|
2419
|
-
Catch.prototype.
|
|
2420
|
-
return this.
|
|
2419
|
+
Catch.prototype.n2g = function (request) {
|
|
2420
|
+
return this.z4j(request);
|
|
2421
2421
|
};
|
|
2422
2422
|
var Catch_instance;
|
|
2423
2423
|
function Catch_getInstance() {
|
|
@@ -2427,43 +2427,43 @@
|
|
|
2427
2427
|
}
|
|
2428
2428
|
function SolverStrategies$predicationChoiceStrategy$ref($boundThis) {
|
|
2429
2429
|
var l = function (p0, p1) {
|
|
2430
|
-
return $boundThis.
|
|
2430
|
+
return $boundThis.d4c(p0, p1);
|
|
2431
2431
|
};
|
|
2432
2432
|
l.callableName = 'predicationChoiceStrategy';
|
|
2433
2433
|
return l;
|
|
2434
2434
|
}
|
|
2435
2435
|
function solveConjunctionGoals(_this__u8e3s4, $this, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $cont) {
|
|
2436
2436
|
var tmp = new $solveConjunctionGoalsCOROUTINE$0($this, _this__u8e3s4, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $cont);
|
|
2437
|
-
tmp.
|
|
2438
|
-
tmp.
|
|
2439
|
-
return tmp.
|
|
2437
|
+
tmp.bi_1 = Unit_getInstance();
|
|
2438
|
+
tmp.ci_1 = null;
|
|
2439
|
+
return tmp.hi();
|
|
2440
2440
|
}
|
|
2441
2441
|
function Conjunction$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2442
|
-
this.
|
|
2442
|
+
this.z4l_1 = $request;
|
|
2443
2443
|
CoroutineImpl.call(this, resultContinuation);
|
|
2444
2444
|
}
|
|
2445
|
-
Conjunction$uncheckedImplementation$slambda.prototype.
|
|
2446
|
-
var tmp = this.
|
|
2447
|
-
tmp.
|
|
2448
|
-
tmp.
|
|
2449
|
-
return tmp.
|
|
2445
|
+
Conjunction$uncheckedImplementation$slambda.prototype.b2t = function ($this$sequence, $cont) {
|
|
2446
|
+
var tmp = this.c2t($this$sequence, $cont);
|
|
2447
|
+
tmp.bi_1 = Unit_getInstance();
|
|
2448
|
+
tmp.ci_1 = null;
|
|
2449
|
+
return tmp.hi();
|
|
2450
2450
|
};
|
|
2451
|
-
Conjunction$uncheckedImplementation$slambda.prototype.
|
|
2452
|
-
return this.
|
|
2451
|
+
Conjunction$uncheckedImplementation$slambda.prototype.ti = function (p1, $cont) {
|
|
2452
|
+
return this.b2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
2453
2453
|
};
|
|
2454
|
-
Conjunction$uncheckedImplementation$slambda.prototype.
|
|
2455
|
-
var suspendResult = this.
|
|
2454
|
+
Conjunction$uncheckedImplementation$slambda.prototype.hi = function () {
|
|
2455
|
+
var suspendResult = this.bi_1;
|
|
2456
2456
|
$sm: do
|
|
2457
2457
|
try {
|
|
2458
|
-
var tmp = this.
|
|
2458
|
+
var tmp = this.zh_1;
|
|
2459
2459
|
switch (tmp) {
|
|
2460
2460
|
case 0:
|
|
2461
|
-
this.
|
|
2461
|
+
this.ai_1 = 2;
|
|
2462
2462
|
var tmp_0 = this;
|
|
2463
|
-
var tmp_1 = this.
|
|
2464
|
-
tmp_0.
|
|
2465
|
-
this.
|
|
2466
|
-
suspendResult = solveConjunctionGoals(this.
|
|
2463
|
+
var tmp_1 = this.z4l_1.u1v().castToTuple().gu();
|
|
2464
|
+
tmp_0.b4m_1 = toList(orderWithStrategy(tmp_1, this.z4l_1.context, SolverStrategies$predicationChoiceStrategy$ref(this.z4l_1.context.y4c_1)));
|
|
2465
|
+
this.zh_1 = 1;
|
|
2466
|
+
suspendResult = solveConjunctionGoals(this.a4m_1, Conjunction_getInstance(), this.z4l_1, this.b4m_1, this.z4l_1.context, Companion_getInstance_3().empty(), emptyList(), this.z4l_1.context.z4c_1, false, this);
|
|
2467
2467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2468
2468
|
return suspendResult;
|
|
2469
2469
|
}
|
|
@@ -2473,115 +2473,115 @@
|
|
|
2473
2473
|
;
|
|
2474
2474
|
return Unit_getInstance();
|
|
2475
2475
|
case 2:
|
|
2476
|
-
throw this.
|
|
2476
|
+
throw this.ci_1;
|
|
2477
2477
|
}
|
|
2478
2478
|
} catch ($p) {
|
|
2479
|
-
if (this.
|
|
2479
|
+
if (this.ai_1 === 2) {
|
|
2480
2480
|
throw $p;
|
|
2481
2481
|
} else {
|
|
2482
|
-
this.
|
|
2483
|
-
this.
|
|
2482
|
+
this.zh_1 = this.ai_1;
|
|
2483
|
+
this.ci_1 = $p;
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
2486
|
while (true);
|
|
2487
2487
|
};
|
|
2488
|
-
Conjunction$uncheckedImplementation$slambda.prototype.
|
|
2489
|
-
var i = new Conjunction$uncheckedImplementation$slambda(this.
|
|
2490
|
-
i.
|
|
2488
|
+
Conjunction$uncheckedImplementation$slambda.prototype.c2t = function ($this$sequence, completion) {
|
|
2489
|
+
var i = new Conjunction$uncheckedImplementation$slambda(this.z4l_1, completion);
|
|
2490
|
+
i.a4m_1 = $this$sequence;
|
|
2491
2491
|
return i;
|
|
2492
2492
|
};
|
|
2493
2493
|
function Conjunction$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2494
2494
|
var i = new Conjunction$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2495
2495
|
var l = function ($this$sequence, $cont) {
|
|
2496
|
-
return i.
|
|
2496
|
+
return i.b2t($this$sequence, $cont);
|
|
2497
2497
|
};
|
|
2498
2498
|
l.$arity = 1;
|
|
2499
2499
|
return l;
|
|
2500
2500
|
}
|
|
2501
2501
|
function $solveConjunctionGoalsCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, resultContinuation) {
|
|
2502
2502
|
CoroutineImpl.call(this, resultContinuation);
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2512
|
-
}
|
|
2513
|
-
$solveConjunctionGoalsCOROUTINE$0.prototype.
|
|
2514
|
-
var suspendResult = this.
|
|
2503
|
+
this.z4k_1 = _this__u8e3s4;
|
|
2504
|
+
this.a4l_1 = _this__u8e3s4_0;
|
|
2505
|
+
this.b4l_1 = mainRequest;
|
|
2506
|
+
this.c4l_1 = goals;
|
|
2507
|
+
this.d4l_1 = toPropagateContext;
|
|
2508
|
+
this.e4l_1 = accumulatedSubstitutions;
|
|
2509
|
+
this.f4l_1 = accumulatedSideEffects;
|
|
2510
|
+
this.g4l_1 = previousResponseSideEffectManager;
|
|
2511
|
+
this.h4l_1 = previousGoalsHadAlternatives;
|
|
2512
|
+
}
|
|
2513
|
+
$solveConjunctionGoalsCOROUTINE$0.prototype.hi = function () {
|
|
2514
|
+
var suspendResult = this.bi_1;
|
|
2515
2515
|
$sm: do
|
|
2516
2516
|
try {
|
|
2517
|
-
var tmp = this.
|
|
2517
|
+
var tmp = this.zh_1;
|
|
2518
2518
|
switch (tmp) {
|
|
2519
2519
|
case 0:
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2520
|
+
this.ai_1 = 7;
|
|
2521
|
+
this.i4l_1 = prepareForExecutionAsGoal(first_1(this.c4l_1).applySubstitution(this.e4l_1));
|
|
2522
2522
|
var tmp_0 = this;
|
|
2523
|
-
var tmp0_elvis_lhs = this.
|
|
2524
|
-
var tmp_1 = tmp0_elvis_lhs == null ? this.
|
|
2523
|
+
var tmp0_elvis_lhs = this.g4l_1;
|
|
2524
|
+
var tmp_1 = tmp0_elvis_lhs == null ? this.b4l_1.context.z4c_1 : tmp0_elvis_lhs;
|
|
2525
2525
|
var tmp_2 = new Long(0, 0);
|
|
2526
|
-
tmp_0.
|
|
2527
|
-
this.
|
|
2528
|
-
this.
|
|
2526
|
+
tmp_0.j4l_1 = newSolveRequest$default(this.b4l_1, this.i4l_1, this.e4l_1, this.d4l_1, tmp_1, tmp_2, false, 48, null);
|
|
2527
|
+
this.k4l_1 = false;
|
|
2528
|
+
this.l4l_1 = emptyList();
|
|
2529
2529
|
var tmp_3 = this;
|
|
2530
|
-
tmp_3.
|
|
2530
|
+
tmp_3.m4l_1 = Companion_getInstance_16().i4c(this.j4l_1);
|
|
2531
2531
|
var tmp_4 = this;
|
|
2532
|
-
tmp_4.
|
|
2533
|
-
this.
|
|
2532
|
+
tmp_4.n4l_1 = this.m4l_1.j();
|
|
2533
|
+
this.zh_1 = 1;
|
|
2534
2534
|
continue $sm;
|
|
2535
2535
|
case 1:
|
|
2536
|
-
if (!this.
|
|
2537
|
-
this.
|
|
2536
|
+
if (!this.n4l_1.m()) {
|
|
2537
|
+
this.zh_1 = 6;
|
|
2538
2538
|
continue $sm;
|
|
2539
2539
|
}
|
|
2540
2540
|
|
|
2541
2541
|
var tmp_5 = this;
|
|
2542
|
-
tmp_5.
|
|
2542
|
+
tmp_5.o4l_1 = this.n4l_1.n();
|
|
2543
2543
|
var tmp_6 = this;
|
|
2544
|
-
tmp_6.
|
|
2545
|
-
this.
|
|
2544
|
+
tmp_6.p4l_1 = this.n4l_1.m();
|
|
2545
|
+
this.q4l_1 = this.o4l_1.h4c();
|
|
2546
2546
|
var tmp_7;
|
|
2547
2547
|
var tmp0__get_functor__thl4dk = Cut_getInstance();
|
|
2548
|
-
if (tmp0__get_functor__thl4dk.signature.name === this.
|
|
2548
|
+
if (tmp0__get_functor__thl4dk.signature.name === this.i4l_1.cw()) {
|
|
2549
2549
|
tmp_7 = true;
|
|
2550
2550
|
} else {
|
|
2551
|
-
var tmp0_safe_receiver = this.
|
|
2551
|
+
var tmp0_safe_receiver = this.q4l_1.sideEffectManager;
|
|
2552
2552
|
tmp_7 = (tmp0_safe_receiver == null ? null : shouldExecuteThrowCut(tmp0_safe_receiver)) === true;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
2555
|
if (tmp_7) {
|
|
2556
|
-
this.
|
|
2556
|
+
this.k4l_1 = true;
|
|
2557
2557
|
}
|
|
2558
2558
|
|
|
2559
|
-
this.
|
|
2559
|
+
this.l4l_1 = addWithNoDuplicates(this.l4l_1, this.q4l_1.sideEffects);
|
|
2560
2560
|
var tmp_8;
|
|
2561
2561
|
var tmp_9;
|
|
2562
|
-
var tmp1_safe_receiver = this.
|
|
2562
|
+
var tmp1_safe_receiver = this.q4l_1.sideEffectManager;
|
|
2563
2563
|
if ((tmp1_safe_receiver == null ? null : shouldExecuteThrowCut(tmp1_safe_receiver)) === false) {
|
|
2564
|
-
var tmp_10 = this.
|
|
2564
|
+
var tmp_10 = this.q4l_1.solution;
|
|
2565
2565
|
tmp_9 = isInterface(tmp_10, Yes);
|
|
2566
2566
|
} else {
|
|
2567
2567
|
tmp_9 = false;
|
|
2568
2568
|
}
|
|
2569
2569
|
|
|
2570
2570
|
if (tmp_9) {
|
|
2571
|
-
tmp_8 = moreThanOne(asSequence(this.
|
|
2571
|
+
tmp_8 = moreThanOne(asSequence(this.c4l_1));
|
|
2572
2572
|
} else {
|
|
2573
2573
|
tmp_8 = false;
|
|
2574
2574
|
}
|
|
2575
2575
|
|
|
2576
2576
|
if (tmp_8) {
|
|
2577
|
-
this.
|
|
2577
|
+
this.zh_1 = 4;
|
|
2578
2578
|
var tmp_11 = Conjunction_getInstance();
|
|
2579
|
-
var tmp_12 = drop(this.
|
|
2580
|
-
var tmp_13 = this.
|
|
2581
|
-
var tmp_14 = this.
|
|
2582
|
-
var tmp_15 = this.
|
|
2583
|
-
var tmp_16 = this.
|
|
2584
|
-
suspendResult = solveConjunctionGoals(this.
|
|
2579
|
+
var tmp_12 = drop(this.c4l_1, 1);
|
|
2580
|
+
var tmp_13 = this.o4l_1.j5().z36(this.l4l_1);
|
|
2581
|
+
var tmp_14 = this.q4l_1.solution.o1u().minus(this.b4l_1.context.v4c_1);
|
|
2582
|
+
var tmp_15 = this.l4l_1;
|
|
2583
|
+
var tmp_16 = this.q4l_1.sideEffectManager;
|
|
2584
|
+
suspendResult = solveConjunctionGoals(this.a4l_1, tmp_11, this.b4l_1, tmp_12, tmp_13, tmp_14, tmp_15, tmp_16 instanceof SideEffectManagerImpl ? tmp_16 : null, this.h4l_1 ? true : this.p4l_1, this);
|
|
2585
2585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2586
2586
|
return suspendResult;
|
|
2587
2587
|
}
|
|
@@ -2589,72 +2589,72 @@
|
|
|
2589
2589
|
} else {
|
|
2590
2590
|
var tmp_17;
|
|
2591
2591
|
var tmp_18;
|
|
2592
|
-
var tmp_19 = this.
|
|
2592
|
+
var tmp_19 = this.q4l_1.solution;
|
|
2593
2593
|
if (!isInterface(tmp_19, No)) {
|
|
2594
2594
|
tmp_18 = true;
|
|
2595
2595
|
} else {
|
|
2596
|
-
tmp_18 = !this.
|
|
2596
|
+
tmp_18 = !this.h4l_1 ? !this.p4l_1 : false;
|
|
2597
2597
|
}
|
|
2598
2598
|
if (tmp_18) {
|
|
2599
2599
|
tmp_17 = true;
|
|
2600
2600
|
} else {
|
|
2601
|
-
tmp_17 = this.
|
|
2601
|
+
tmp_17 = this.k4l_1;
|
|
2602
2602
|
}
|
|
2603
2603
|
if (tmp_17) {
|
|
2604
|
-
this.
|
|
2605
|
-
suspendResult = this.
|
|
2604
|
+
this.zh_1 = 2;
|
|
2605
|
+
suspendResult = this.a4l_1.z4(replyWith(this.b4l_1, this.q4l_1.l2j(null, null, plus_1(this.f4l_1, this.l4l_1), 3, null)), this);
|
|
2606
2606
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2607
2607
|
return suspendResult;
|
|
2608
2608
|
}
|
|
2609
2609
|
continue $sm;
|
|
2610
2610
|
} else {
|
|
2611
|
-
this.
|
|
2611
|
+
this.zh_1 = 3;
|
|
2612
2612
|
continue $sm;
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
2615
2615
|
|
|
2616
2616
|
break;
|
|
2617
2617
|
case 2:
|
|
2618
|
-
this.
|
|
2618
|
+
this.zh_1 = 3;
|
|
2619
2619
|
continue $sm;
|
|
2620
2620
|
case 3:
|
|
2621
|
-
this.
|
|
2621
|
+
this.zh_1 = 5;
|
|
2622
2622
|
continue $sm;
|
|
2623
2623
|
case 4:
|
|
2624
2624
|
var sideEffectPair = suspendResult;
|
|
2625
2625
|
if (sideEffectPair.g4_1) {
|
|
2626
|
-
this.
|
|
2626
|
+
this.k4l_1 = true;
|
|
2627
2627
|
}
|
|
2628
2628
|
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2629
|
+
this.l4l_1 = sideEffectPair.h4_1;
|
|
2630
|
+
this.zh_1 = 5;
|
|
2631
2631
|
continue $sm;
|
|
2632
2632
|
case 5:
|
|
2633
2633
|
var tmp_20;
|
|
2634
|
-
if (this.
|
|
2634
|
+
if (this.k4l_1) {
|
|
2635
2635
|
tmp_20 = true;
|
|
2636
2636
|
} else {
|
|
2637
|
-
var tmp_21 = this.
|
|
2637
|
+
var tmp_21 = this.q4l_1.solution;
|
|
2638
2638
|
tmp_20 = isInterface(tmp_21, Halt);
|
|
2639
2639
|
}
|
|
2640
2640
|
|
|
2641
2641
|
if (tmp_20) {
|
|
2642
|
-
return new Pair(true, plus_1(this.
|
|
2642
|
+
return new Pair(true, plus_1(this.f4l_1, this.l4l_1));
|
|
2643
2643
|
}
|
|
2644
2644
|
|
|
2645
|
-
this.
|
|
2645
|
+
this.zh_1 = 1;
|
|
2646
2646
|
continue $sm;
|
|
2647
2647
|
case 6:
|
|
2648
|
-
return new Pair(this.
|
|
2648
|
+
return new Pair(this.k4l_1, plus_1(this.f4l_1, this.l4l_1));
|
|
2649
2649
|
case 7:
|
|
2650
|
-
throw this.
|
|
2650
|
+
throw this.ci_1;
|
|
2651
2651
|
}
|
|
2652
2652
|
} catch ($p) {
|
|
2653
|
-
if (this.
|
|
2653
|
+
if (this.ai_1 === 7) {
|
|
2654
2654
|
throw $p;
|
|
2655
2655
|
} else {
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2656
|
+
this.zh_1 = this.ai_1;
|
|
2657
|
+
this.ci_1 = $p;
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
2660
|
while (true);
|
|
@@ -2664,11 +2664,11 @@
|
|
|
2664
2664
|
Companion_getInstance_12();
|
|
2665
2665
|
PrimitiveWrapper_init_$Init$(',', 2, false, 4, null, this);
|
|
2666
2666
|
}
|
|
2667
|
-
Conjunction.prototype.
|
|
2667
|
+
Conjunction.prototype.z4j = function (request) {
|
|
2668
2668
|
return sequence(Conjunction$uncheckedImplementation$slambda_0(request, null));
|
|
2669
2669
|
};
|
|
2670
|
-
Conjunction.prototype.
|
|
2671
|
-
return this.
|
|
2670
|
+
Conjunction.prototype.n2g = function (request) {
|
|
2671
|
+
return this.z4j(request);
|
|
2672
2672
|
};
|
|
2673
2673
|
var Conjunction_instance;
|
|
2674
2674
|
function Conjunction_getInstance() {
|
|
@@ -2680,18 +2680,18 @@
|
|
|
2680
2680
|
Cut_instance = this;
|
|
2681
2681
|
PrimitiveWrapper_init_$Init$('!', 0, false, 4, null, this);
|
|
2682
2682
|
}
|
|
2683
|
-
Cut.prototype.
|
|
2683
|
+
Cut.prototype.z4j = function (request) {
|
|
2684
2684
|
var tmp$ret$1;
|
|
2685
2685
|
// Inline function 'kotlin.with' call
|
|
2686
2686
|
// Inline function 'kotlin.contracts.contract' call
|
|
2687
2687
|
var tmp$ret$0;
|
|
2688
2688
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Cut.uncheckedImplementation.<anonymous>' call
|
|
2689
|
-
tmp$ret$0 = sequenceOf([request.
|
|
2689
|
+
tmp$ret$0 = sequenceOf([request.m2g(request.context.v4c_1, request.context.z4c_1.h4d(), [], 4, null)]);
|
|
2690
2690
|
tmp$ret$1 = tmp$ret$0;
|
|
2691
2691
|
return tmp$ret$1;
|
|
2692
2692
|
};
|
|
2693
|
-
Cut.prototype.
|
|
2694
|
-
return this.
|
|
2693
|
+
Cut.prototype.n2g = function (request) {
|
|
2694
|
+
return this.z4j(request);
|
|
2695
2695
|
};
|
|
2696
2696
|
var Cut_instance;
|
|
2697
2697
|
function Cut_getInstance() {
|
|
@@ -2700,65 +2700,65 @@
|
|
|
2700
2700
|
return Cut_instance;
|
|
2701
2701
|
}
|
|
2702
2702
|
function Not$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2703
|
-
this.
|
|
2703
|
+
this.m4m_1 = $request;
|
|
2704
2704
|
CoroutineImpl.call(this, resultContinuation);
|
|
2705
2705
|
}
|
|
2706
|
-
Not$uncheckedImplementation$slambda.prototype.
|
|
2707
|
-
var tmp = this.
|
|
2708
|
-
tmp.
|
|
2709
|
-
tmp.
|
|
2710
|
-
return tmp.
|
|
2706
|
+
Not$uncheckedImplementation$slambda.prototype.b2t = function ($this$sequence, $cont) {
|
|
2707
|
+
var tmp = this.c2t($this$sequence, $cont);
|
|
2708
|
+
tmp.bi_1 = Unit_getInstance();
|
|
2709
|
+
tmp.ci_1 = null;
|
|
2710
|
+
return tmp.hi();
|
|
2711
2711
|
};
|
|
2712
|
-
Not$uncheckedImplementation$slambda.prototype.
|
|
2713
|
-
return this.
|
|
2712
|
+
Not$uncheckedImplementation$slambda.prototype.ti = function (p1, $cont) {
|
|
2713
|
+
return this.b2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
|
|
2714
2714
|
};
|
|
2715
|
-
Not$uncheckedImplementation$slambda.prototype.
|
|
2716
|
-
var suspendResult = this.
|
|
2715
|
+
Not$uncheckedImplementation$slambda.prototype.hi = function () {
|
|
2716
|
+
var suspendResult = this.bi_1;
|
|
2717
2717
|
$sm: do
|
|
2718
2718
|
try {
|
|
2719
|
-
var tmp = this.
|
|
2719
|
+
var tmp = this.zh_1;
|
|
2720
2720
|
switch (tmp) {
|
|
2721
2721
|
case 0:
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2722
|
+
this.ai_1 = 7;
|
|
2723
|
+
this.o4m_1 = single(this.m4m_1.arguments);
|
|
2724
2724
|
var tmp_0 = this;
|
|
2725
2725
|
var tmp_1 = Companion_getInstance_16();
|
|
2726
2726
|
var tmp_2 = Companion_getInstance_10();
|
|
2727
2727
|
var tmp0__get_functor__thl4dk = Call_getInstance();
|
|
2728
|
-
var tmp_3 = tmp_2.of(tmp0__get_functor__thl4dk.signature.name, [this.
|
|
2728
|
+
var tmp_3 = tmp_2.of(tmp0__get_functor__thl4dk.signature.name, [this.o4m_1]);
|
|
2729
2729
|
var tmp_4 = new Long(0, 0);
|
|
2730
|
-
tmp_0.
|
|
2731
|
-
this.
|
|
2732
|
-
this.
|
|
2730
|
+
tmp_0.p4m_1 = tmp_1.k4c(newSolveRequest$default(this.m4m_1, tmp_3, null, null, null, tmp_4, false, 62, null));
|
|
2731
|
+
this.q4m_1 = this.p4m_1.j();
|
|
2732
|
+
this.zh_1 = 1;
|
|
2733
2733
|
continue $sm;
|
|
2734
2734
|
case 1:
|
|
2735
|
-
if (!this.
|
|
2736
|
-
this.
|
|
2735
|
+
if (!this.q4m_1.m()) {
|
|
2736
|
+
this.zh_1 = 6;
|
|
2737
2737
|
continue $sm;
|
|
2738
2738
|
}
|
|
2739
2739
|
|
|
2740
|
-
this.
|
|
2741
|
-
this.
|
|
2742
|
-
var tmp_5 = this.
|
|
2740
|
+
this.r4m_1 = this.q4m_1.n();
|
|
2741
|
+
this.s4m_1 = this.r4m_1.solution;
|
|
2742
|
+
var tmp_5 = this.s4m_1;
|
|
2743
2743
|
if (isInterface(tmp_5, Yes)) {
|
|
2744
|
-
this.
|
|
2745
|
-
suspendResult = this.
|
|
2744
|
+
this.zh_1 = 5;
|
|
2745
|
+
suspendResult = this.n4m_1.z4(this.m4m_1.l2g(null, [], 3, null), this);
|
|
2746
2746
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2747
2747
|
return suspendResult;
|
|
2748
2748
|
}
|
|
2749
2749
|
continue $sm;
|
|
2750
2750
|
} else {
|
|
2751
|
-
var tmp_6 = this.
|
|
2751
|
+
var tmp_6 = this.s4m_1;
|
|
2752
2752
|
if (isInterface(tmp_6, No)) {
|
|
2753
|
-
this.
|
|
2754
|
-
suspendResult = this.
|
|
2753
|
+
this.zh_1 = 3;
|
|
2754
|
+
suspendResult = this.n4m_1.z4(this.m4m_1.m2g(this.m4m_1.context.v4c_1, null, [], 6, null), this);
|
|
2755
2755
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2756
2756
|
return suspendResult;
|
|
2757
2757
|
}
|
|
2758
2758
|
continue $sm;
|
|
2759
2759
|
} else {
|
|
2760
|
-
this.
|
|
2761
|
-
suspendResult = this.
|
|
2760
|
+
this.zh_1 = 2;
|
|
2761
|
+
suspendResult = this.n4m_1.z4(replyWith(this.m4m_1, this.r4m_1), this);
|
|
2762
2762
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2763
2763
|
return suspendResult;
|
|
2764
2764
|
}
|
|
@@ -2768,40 +2768,40 @@
|
|
|
2768
2768
|
|
|
2769
2769
|
break;
|
|
2770
2770
|
case 2:
|
|
2771
|
-
this.
|
|
2771
|
+
this.zh_1 = 4;
|
|
2772
2772
|
continue $sm;
|
|
2773
2773
|
case 3:
|
|
2774
|
-
this.
|
|
2774
|
+
this.zh_1 = 4;
|
|
2775
2775
|
continue $sm;
|
|
2776
2776
|
case 4:
|
|
2777
|
-
this.
|
|
2777
|
+
this.zh_1 = 1;
|
|
2778
2778
|
continue $sm;
|
|
2779
2779
|
case 5:
|
|
2780
2780
|
return Unit_getInstance();
|
|
2781
2781
|
case 6:
|
|
2782
2782
|
return Unit_getInstance();
|
|
2783
2783
|
case 7:
|
|
2784
|
-
throw this.
|
|
2784
|
+
throw this.ci_1;
|
|
2785
2785
|
}
|
|
2786
2786
|
} catch ($p) {
|
|
2787
|
-
if (this.
|
|
2787
|
+
if (this.ai_1 === 7) {
|
|
2788
2788
|
throw $p;
|
|
2789
2789
|
} else {
|
|
2790
|
-
this.
|
|
2791
|
-
this.
|
|
2790
|
+
this.zh_1 = this.ai_1;
|
|
2791
|
+
this.ci_1 = $p;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
while (true);
|
|
2795
2795
|
};
|
|
2796
|
-
Not$uncheckedImplementation$slambda.prototype.
|
|
2797
|
-
var i = new Not$uncheckedImplementation$slambda(this.
|
|
2798
|
-
i.
|
|
2796
|
+
Not$uncheckedImplementation$slambda.prototype.c2t = function ($this$sequence, completion) {
|
|
2797
|
+
var i = new Not$uncheckedImplementation$slambda(this.m4m_1, completion);
|
|
2798
|
+
i.n4m_1 = $this$sequence;
|
|
2799
2799
|
return i;
|
|
2800
2800
|
};
|
|
2801
2801
|
function Not$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2802
2802
|
var i = new Not$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2803
2803
|
var l = function ($this$sequence, $cont) {
|
|
2804
|
-
return i.
|
|
2804
|
+
return i.b2t($this$sequence, $cont);
|
|
2805
2805
|
};
|
|
2806
2806
|
l.$arity = 1;
|
|
2807
2807
|
return l;
|
|
@@ -2810,11 +2810,11 @@
|
|
|
2810
2810
|
Not_instance = this;
|
|
2811
2811
|
PrimitiveWrapper_init_$Init$('\\+', 1, false, 4, null, this);
|
|
2812
2812
|
}
|
|
2813
|
-
Not.prototype.
|
|
2813
|
+
Not.prototype.z4j = function (request) {
|
|
2814
2814
|
return sequence(Not$uncheckedImplementation$slambda_0(request, null));
|
|
2815
2815
|
};
|
|
2816
|
-
Not.prototype.
|
|
2817
|
-
return this.
|
|
2816
|
+
Not.prototype.n2g = function (request) {
|
|
2817
|
+
return this.z4j(request);
|
|
2818
2818
|
};
|
|
2819
2819
|
var Not_instance;
|
|
2820
2820
|
function Not_getInstance() {
|
|
@@ -2832,15 +2832,15 @@
|
|
|
2832
2832
|
var tmp;
|
|
2833
2833
|
var tmp_0;
|
|
2834
2834
|
var tmp0_safe_receiver = tmp0_with;
|
|
2835
|
-
var tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2835
|
+
var tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cw();
|
|
2836
2836
|
ErrorUtils_getInstance();
|
|
2837
2837
|
if (tmp_1 === 'error') {
|
|
2838
|
-
tmp_0 = tmp0_with.
|
|
2838
|
+
tmp_0 = tmp0_with.wv() === 2;
|
|
2839
2839
|
} else {
|
|
2840
2840
|
tmp_0 = false;
|
|
2841
2841
|
}
|
|
2842
2842
|
if (tmp_0) {
|
|
2843
|
-
var tmp_2 = firstOrNull(tmp0_with.
|
|
2843
|
+
var tmp_2 = firstOrNull(tmp0_with.dw());
|
|
2844
2844
|
var tmp1_safe_receiver = (!(tmp_2 == null) ? isInterface(tmp_2, Struct) : false) ? tmp_2 : null;
|
|
2845
2845
|
var tmp_3;
|
|
2846
2846
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2851,7 +2851,7 @@
|
|
|
2851
2851
|
// Inline function 'kotlin.contracts.contract' call
|
|
2852
2852
|
var tmp$ret$0;
|
|
2853
2853
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.extractErrorTypeAndExtra.<anonymous>.<anonymous>' call
|
|
2854
|
-
tmp$ret$0 = new Pair(tmp1_safe_receiver, tmp0_with.
|
|
2854
|
+
tmp$ret$0 = new Pair(tmp1_safe_receiver, tmp0_with.dw().o(1));
|
|
2855
2855
|
tmp$ret$1 = tmp$ret$0;
|
|
2856
2856
|
tmp_3 = tmp$ret$1;
|
|
2857
2857
|
}
|
|
@@ -2878,7 +2878,7 @@
|
|
|
2878
2878
|
var extra = tmp0_safe_receiver.o3();
|
|
2879
2879
|
var tmp0_$this = Companion_getInstance_13();
|
|
2880
2880
|
var tmp1_cause = extractErrorCauseChain(extra, Throw_getInstance(), withContext);
|
|
2881
|
-
tmp$ret$0 = tmp0_$this.
|
|
2881
|
+
tmp$ret$0 = tmp0_$this.r25(null, tmp1_cause, withContext, type, extra, 1, null);
|
|
2882
2882
|
tmp$ret$1 = tmp$ret$0;
|
|
2883
2883
|
tmp = tmp$ret$1;
|
|
2884
2884
|
}
|
|
@@ -2888,19 +2888,19 @@
|
|
|
2888
2888
|
Throw_instance = this;
|
|
2889
2889
|
NonBacktrackable.call(this, 'throw');
|
|
2890
2890
|
}
|
|
2891
|
-
Throw.prototype.
|
|
2891
|
+
Throw.prototype.v4m = function (_this__u8e3s4, first) {
|
|
2892
2892
|
var tmp;
|
|
2893
2893
|
try {
|
|
2894
2894
|
var tmp$ret$3;
|
|
2895
2895
|
// Inline function 'kotlin.let' call
|
|
2896
|
-
var tmp0_let = single(Companion_getInstance_11().
|
|
2896
|
+
var tmp0_let = single(Companion_getInstance_11().y2f(_this__u8e3s4).arguments).freshCopy();
|
|
2897
2897
|
// Inline function 'kotlin.contracts.contract' call
|
|
2898
2898
|
var tmp$ret$2;
|
|
2899
2899
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.computeOne.<anonymous>' call
|
|
2900
|
-
var ancestorCatch = _this__u8e3s4.context.
|
|
2900
|
+
var ancestorCatch = _this__u8e3s4.context.z4c_1.p4d(tmp0_let);
|
|
2901
2901
|
var tmp0_safe_receiver = ancestorCatch;
|
|
2902
2902
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.arguments;
|
|
2903
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2903
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o(1);
|
|
2904
2904
|
var tmp_0;
|
|
2905
2905
|
if (tmp2_safe_receiver == null) {
|
|
2906
2906
|
tmp_0 = null;
|
|
@@ -2910,16 +2910,16 @@
|
|
|
2910
2910
|
// Inline function 'kotlin.contracts.contract' call
|
|
2911
2911
|
var tmp$ret$0;
|
|
2912
2912
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.computeOne.<anonymous>.<anonymous>' call
|
|
2913
|
-
tmp$ret$0 = Companion_getInstance_11().
|
|
2913
|
+
tmp$ret$0 = Companion_getInstance_11().b2h(_this__u8e3s4, tmp2_safe_receiver, tmp0_let);
|
|
2914
2914
|
tmp$ret$1 = tmp$ret$0;
|
|
2915
2915
|
tmp_0 = tmp$ret$1;
|
|
2916
2916
|
}
|
|
2917
2917
|
var catcher = tmp_0;
|
|
2918
2918
|
var tmp_1;
|
|
2919
2919
|
if (!(catcher == null) ? isInterface(catcher, Unifier) : false) {
|
|
2920
|
-
var tmp_2 = _this__u8e3s4.context.
|
|
2920
|
+
var tmp_2 = _this__u8e3s4.context.v4c_1.plus(catcher);
|
|
2921
2921
|
var newSubstitution = isInterface(tmp_2, Unifier) ? tmp_2 : THROW_CCE();
|
|
2922
|
-
tmp_1 = _this__u8e3s4.
|
|
2922
|
+
tmp_1 = _this__u8e3s4.m2g(newSubstitution, _this__u8e3s4.context.z4c_1.q4d(ancestorCatch.context), [], 4, null);
|
|
2923
2923
|
} else {
|
|
2924
2924
|
var errorCause = extractErrorCauseChain(tmp0_let, Throw_getInstance(), _this__u8e3s4.context);
|
|
2925
2925
|
var tmp_3;
|
|
@@ -2936,7 +2936,7 @@
|
|
|
2936
2936
|
} catch ($p) {
|
|
2937
2937
|
var tmp_4;
|
|
2938
2938
|
if ($p instanceof LogicError) {
|
|
2939
|
-
tmp_4 = _this__u8e3s4.
|
|
2939
|
+
tmp_4 = _this__u8e3s4.c2j($p, null, [], 6, null);
|
|
2940
2940
|
} else {
|
|
2941
2941
|
throw $p;
|
|
2942
2942
|
}
|
|
@@ -2944,8 +2944,8 @@
|
|
|
2944
2944
|
}
|
|
2945
2945
|
return tmp;
|
|
2946
2946
|
};
|
|
2947
|
-
Throw.prototype.
|
|
2948
|
-
return this.
|
|
2947
|
+
Throw.prototype.a2k = function (_this__u8e3s4, first) {
|
|
2948
|
+
return this.v4m(_this__u8e3s4, first);
|
|
2949
2949
|
};
|
|
2950
2950
|
var Throw_instance;
|
|
2951
2951
|
function Throw_getInstance() {
|
|
@@ -2954,7 +2954,7 @@
|
|
|
2954
2954
|
return Throw_instance;
|
|
2955
2955
|
}
|
|
2956
2956
|
//region block: post-declaration
|
|
2957
|
-
StreamsSolver.prototype.
|
|
2957
|
+
StreamsSolver.prototype.u1x = copy$default;
|
|
2958
2958
|
StreamsSolver.prototype.solveWithTimeout = solveWithTimeout;
|
|
2959
2959
|
StreamsSolver.prototype.solve = solve;
|
|
2960
2960
|
StreamsSolver.prototype.solveListWithTimeout = solveListWithTimeout;
|
|
@@ -2964,38 +2964,38 @@
|
|
|
2964
2964
|
StreamsSolver.prototype.solveOnce = solveOnce;
|
|
2965
2965
|
StreamsSolver.prototype.solveOnceWithOptions = solveOnceWithOptions;
|
|
2966
2966
|
StreamsSolver.prototype.clone = clone;
|
|
2967
|
-
StreamsSolver.prototype.
|
|
2968
|
-
StreamsSolver.prototype.
|
|
2969
|
-
StreamsSolver.prototype.
|
|
2970
|
-
StreamsSolver.prototype.
|
|
2971
|
-
StreamsSolverFactory.prototype.
|
|
2972
|
-
StreamsSolverFactory.prototype.
|
|
2973
|
-
StreamsSolverFactory.prototype.
|
|
2974
|
-
StreamsSolverFactory.prototype.
|
|
2967
|
+
StreamsSolver.prototype.f1v = get_standardInput;
|
|
2968
|
+
StreamsSolver.prototype.h1v = get_standardOutput;
|
|
2969
|
+
StreamsSolver.prototype.j1v = get_standardError;
|
|
2970
|
+
StreamsSolver.prototype.l1v = get_warnings;
|
|
2971
|
+
StreamsSolverFactory.prototype.r1y = solverOf$default;
|
|
2972
|
+
StreamsSolverFactory.prototype.t1y = solverOf$default_0;
|
|
2973
|
+
StreamsSolverFactory.prototype.x1y = mutableSolverOf$default;
|
|
2974
|
+
StreamsSolverFactory.prototype.b1z = mutableSolverOf$default_0;
|
|
2975
2975
|
StreamsSolverFactory.prototype.newBuilder = newBuilder;
|
|
2976
|
-
StreamsSolverFactory.prototype.
|
|
2977
|
-
StreamsSolverFactory.prototype.
|
|
2978
|
-
StreamsSolverFactory.prototype.
|
|
2979
|
-
StreamsSolverFactory.prototype.
|
|
2980
|
-
StreamsSolverFactory.prototype.
|
|
2981
|
-
StreamsSolverFactory.prototype.
|
|
2982
|
-
StreamsSolverFactory.prototype.
|
|
2983
|
-
StreamsSolverFactory.prototype.
|
|
2984
|
-
StreamsSolverFactory.prototype.
|
|
2985
|
-
StreamsSolverFactory.prototype.
|
|
2986
|
-
StreamsSolverFactory.prototype.
|
|
2987
|
-
StreamsSolverFactory.prototype.
|
|
2988
|
-
StreamsSolverFactory.prototype.
|
|
2989
|
-
StreamsExecutionContext.prototype.
|
|
2990
|
-
StreamsExecutionContext.prototype.
|
|
2991
|
-
StreamsExecutionContext.prototype.
|
|
2992
|
-
StreamsExecutionContext.prototype.
|
|
2993
|
-
StreamsExecutionContext.prototype.
|
|
2994
|
-
StreamsExecutionContext.prototype.
|
|
2995
|
-
StreamsExecutionContext.prototype.
|
|
2996
|
-
StreamsExecutionContext.prototype.
|
|
2997
|
-
StreamsExecutionContext.prototype.
|
|
2998
|
-
StreamsExecutionContext.prototype.
|
|
2976
|
+
StreamsSolverFactory.prototype.z1x = get_defaultRuntime;
|
|
2977
|
+
StreamsSolverFactory.prototype.b1y = get_defaultUnificator;
|
|
2978
|
+
StreamsSolverFactory.prototype.c1y = get_defaultFlags;
|
|
2979
|
+
StreamsSolverFactory.prototype.f1y = get_defaultStaticKb;
|
|
2980
|
+
StreamsSolverFactory.prototype.g1y = get_defaultDynamicKb;
|
|
2981
|
+
StreamsSolverFactory.prototype.h1y = get_defaultInputChannel;
|
|
2982
|
+
StreamsSolverFactory.prototype.i1y = get_defaultOutputChannel;
|
|
2983
|
+
StreamsSolverFactory.prototype.j1y = get_defaultErrorChannel;
|
|
2984
|
+
StreamsSolverFactory.prototype.k1y = get_defaultWarningsChannel;
|
|
2985
|
+
StreamsSolverFactory.prototype.u1y = solverWithDefaultBuiltins;
|
|
2986
|
+
StreamsSolverFactory.prototype.v1y = solverWithDefaultBuiltins$default;
|
|
2987
|
+
StreamsSolverFactory.prototype.y1y = mutableSolverWithDefaultBuiltins;
|
|
2988
|
+
StreamsSolverFactory.prototype.z1y = mutableSolverWithDefaultBuiltins$default;
|
|
2989
|
+
StreamsExecutionContext.prototype.s1u = createSolver$default;
|
|
2990
|
+
StreamsExecutionContext.prototype.a1v = createMutableSolver$default;
|
|
2991
|
+
StreamsExecutionContext.prototype.d1v = update$default;
|
|
2992
|
+
StreamsExecutionContext.prototype.f1v = get_standardInput;
|
|
2993
|
+
StreamsExecutionContext.prototype.h1v = get_standardOutput;
|
|
2994
|
+
StreamsExecutionContext.prototype.j1v = get_standardError;
|
|
2995
|
+
StreamsExecutionContext.prototype.l1v = get_warnings;
|
|
2996
|
+
StreamsExecutionContext.prototype.j1u = get_endTime;
|
|
2997
|
+
StreamsExecutionContext.prototype.l1u = get_remainingTime;
|
|
2998
|
+
StreamsExecutionContext.prototype.m1u = get_elapsedTime;
|
|
2999
2999
|
AbstractTimedState.prototype.j5 = get_context;
|
|
3000
3000
|
StateGoalEvaluation.prototype.j5 = get_context;
|
|
3001
3001
|
StateInit.prototype.j5 = get_context;
|
|
@@ -3004,7 +3004,7 @@
|
|
|
3004
3004
|
DefaultBuiltins.prototype.containsOperator = containsOperator;
|
|
3005
3005
|
DefaultBuiltins.prototype.hasPrimitive = hasPrimitive;
|
|
3006
3006
|
DefaultBuiltins.prototype.hasFunction = hasFunction;
|
|
3007
|
-
DefaultBuiltins.prototype.
|
|
3007
|
+
DefaultBuiltins.prototype.m2e = get_ruleSignatures;
|
|
3008
3008
|
DefaultBuiltins.prototype.hasProtected = hasProtected;
|
|
3009
3009
|
//endregion
|
|
3010
3010
|
//region block: exports
|