@tuprolog/2p-full 0.31.1 → 0.31.2

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.
@@ -185,7 +185,7 @@
185
185
  function get_probabilityOrNull() {
186
186
  var tmp;
187
187
  try {
188
- tmp = this.x3d();
188
+ tmp = this.a3e();
189
189
  } catch ($p) {
190
190
  var tmp_0;
191
191
  if ($p instanceof Error) {
@@ -230,157 +230,157 @@
230
230
  //endregion
231
231
  function MutableProblogSolver(solver) {
232
232
  ProblogSolver.call(this, solver);
233
- this.s3b_1 = solver;
233
+ this.v3b_1 = solver;
234
234
  }
235
- MutableProblogSolver.prototype.f37 = function (library) {
236
- this.s3b_1.loadLibrary(library);
235
+ MutableProblogSolver.prototype.i37 = function (library) {
236
+ this.v3b_1.loadLibrary(library);
237
237
  };
238
238
  MutableProblogSolver.prototype.loadLibrary = function (library) {
239
- return this.f37(library);
239
+ return this.i37(library);
240
240
  };
241
- MutableProblogSolver.prototype.g37 = function (library) {
242
- this.s3b_1.unloadLibrary(library);
241
+ MutableProblogSolver.prototype.j37 = function (library) {
242
+ this.v3b_1.unloadLibrary(library);
243
243
  };
244
244
  MutableProblogSolver.prototype.unloadLibrary = function (library) {
245
- return this.g37(library);
245
+ return this.j37(library);
246
246
  };
247
- MutableProblogSolver.prototype.h37 = function (libraries) {
248
- this.s3b_1.setLibraries(libraries);
247
+ MutableProblogSolver.prototype.k37 = function (libraries) {
248
+ this.v3b_1.setLibraries(libraries);
249
249
  };
250
250
  MutableProblogSolver.prototype.setLibraries = function (libraries) {
251
- return this.h37(libraries);
251
+ return this.k37(libraries);
252
252
  };
253
- MutableProblogSolver.prototype.i37 = function (theory) {
254
- this.s3b_1.loadStaticKb(Companion_getInstance_22().ofIterable(this.s3b_1.k1l(), theory));
253
+ MutableProblogSolver.prototype.l37 = function (theory) {
254
+ this.v3b_1.loadStaticKb(Companion_getInstance_22().ofIterable(this.v3b_1.k1l(), theory));
255
255
  };
256
256
  MutableProblogSolver.prototype.loadStaticKb = function (theory) {
257
- return this.i37(theory);
257
+ return this.l37(theory);
258
258
  };
259
- MutableProblogSolver.prototype.j37 = function (theory) {
260
- this.s3b_1.appendStaticKb(Companion_getInstance_22().ofIterable(this.s3b_1.k1l(), theory));
259
+ MutableProblogSolver.prototype.m37 = function (theory) {
260
+ this.v3b_1.appendStaticKb(Companion_getInstance_22().ofIterable(this.v3b_1.k1l(), theory));
261
261
  };
262
262
  MutableProblogSolver.prototype.appendStaticKb = function (theory) {
263
- return this.j37(theory);
263
+ return this.m37(theory);
264
264
  };
265
- MutableProblogSolver.prototype.k37 = function () {
266
- this.s3b_1.resetStaticKb();
265
+ MutableProblogSolver.prototype.n37 = function () {
266
+ this.v3b_1.resetStaticKb();
267
267
  };
268
268
  MutableProblogSolver.prototype.resetStaticKb = function () {
269
- return this.k37();
269
+ return this.n37();
270
270
  };
271
- MutableProblogSolver.prototype.l37 = function (theory) {
272
- this.s3b_1.loadDynamicKb(Companion_getInstance_22().ofIterable(this.s3b_1.k1l(), theory));
271
+ MutableProblogSolver.prototype.o37 = function (theory) {
272
+ this.v3b_1.loadDynamicKb(Companion_getInstance_22().ofIterable(this.v3b_1.k1l(), theory));
273
273
  };
274
274
  MutableProblogSolver.prototype.loadDynamicKb = function (theory) {
275
- return this.l37(theory);
275
+ return this.o37(theory);
276
276
  };
277
- MutableProblogSolver.prototype.m37 = function (theory) {
278
- this.s3b_1.appendDynamicKb(Companion_getInstance_22().ofIterable(this.s3b_1.k1l(), theory));
277
+ MutableProblogSolver.prototype.p37 = function (theory) {
278
+ this.v3b_1.appendDynamicKb(Companion_getInstance_22().ofIterable(this.v3b_1.k1l(), theory));
279
279
  };
280
280
  MutableProblogSolver.prototype.appendDynamicKb = function (theory) {
281
- return this.m37(theory);
281
+ return this.p37(theory);
282
282
  };
283
- MutableProblogSolver.prototype.n37 = function () {
284
- this.s3b_1.resetDynamicKb();
283
+ MutableProblogSolver.prototype.q37 = function () {
284
+ this.v3b_1.resetDynamicKb();
285
285
  };
286
286
  MutableProblogSolver.prototype.resetDynamicKb = function () {
287
- return this.n37();
287
+ return this.q37();
288
288
  };
289
289
  MutableProblogSolver.prototype.w1m = function (clause) {
290
- this.s3b_1.assertA(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [clause]).t1l()));
290
+ this.v3b_1.assertA(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [clause]).t1l()));
291
291
  };
292
292
  MutableProblogSolver.prototype.assertA = function (clause) {
293
293
  return this.w1m(clause);
294
294
  };
295
- MutableProblogSolver.prototype.o37 = function (fact) {
296
- this.s3b_1.assertA(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
295
+ MutableProblogSolver.prototype.r37 = function (fact) {
296
+ this.v3b_1.assertA(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
297
297
  };
298
298
  MutableProblogSolver.prototype.assertAFact = function (fact) {
299
- return this.o37(fact);
299
+ return this.r37(fact);
300
300
  };
301
301
  MutableProblogSolver.prototype.w1l = function (clause) {
302
- this.s3b_1.assertZ(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [clause]).t1l()));
302
+ this.v3b_1.assertZ(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [clause]).t1l()));
303
303
  };
304
304
  MutableProblogSolver.prototype.assertZ = function (clause) {
305
305
  return this.w1l(clause);
306
306
  };
307
- MutableProblogSolver.prototype.p37 = function (fact) {
308
- this.s3b_1.assertA(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
307
+ MutableProblogSolver.prototype.s37 = function (fact) {
308
+ this.v3b_1.assertA(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
309
309
  };
310
310
  MutableProblogSolver.prototype.assertZFact = function (fact) {
311
- return this.p37(fact);
311
+ return this.s37(fact);
312
312
  };
313
313
  MutableProblogSolver.prototype.e1t = function (clause) {
314
- return this.s3b_1.retract(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [clause]).t1l()));
314
+ return this.v3b_1.retract(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [clause]).t1l()));
315
315
  };
316
316
  MutableProblogSolver.prototype.retract = function (clause) {
317
317
  return this.e1t(clause);
318
318
  };
319
319
  MutableProblogSolver.prototype.f1t = function (fact) {
320
- return this.s3b_1.retract(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
320
+ return this.v3b_1.retract(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
321
321
  };
322
322
  MutableProblogSolver.prototype.retractByHead = function (fact) {
323
323
  return this.f1t(fact);
324
324
  };
325
325
  MutableProblogSolver.prototype.c1m = function (clause) {
326
- return this.s3b_1.retractAll(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [clause]).t1l()));
326
+ return this.v3b_1.retractAll(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [clause]).t1l()));
327
327
  };
328
328
  MutableProblogSolver.prototype.retractAll = function (clause) {
329
329
  return this.c1m(clause);
330
330
  };
331
- MutableProblogSolver.prototype.q37 = function (fact) {
332
- return this.s3b_1.retractAll(first(Companion_getInstance_22().of(this.s3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
331
+ MutableProblogSolver.prototype.t37 = function (fact) {
332
+ return this.v3b_1.retractAll(first(Companion_getInstance_22().of(this.v3b_1.k1l(), [Companion_getInstance().of(fact)]).t1l()));
333
333
  };
334
334
  MutableProblogSolver.prototype.retractAllBeHead = function (fact) {
335
- return this.q37(fact);
335
+ return this.t37(fact);
336
336
  };
337
- MutableProblogSolver.prototype.r37 = function (name, value) {
338
- this.s3b_1.setFlag(name, value);
337
+ MutableProblogSolver.prototype.u37 = function (name, value) {
338
+ this.v3b_1.setFlag(name, value);
339
339
  };
340
340
  MutableProblogSolver.prototype.setFlag = function (name, value) {
341
- return this.r37(name, value);
341
+ return this.u37(name, value);
342
342
  };
343
- MutableProblogSolver.prototype.s37 = function (flag) {
344
- this.s3b_1.setFlagPair(flag);
343
+ MutableProblogSolver.prototype.v37 = function (flag) {
344
+ this.v3b_1.setFlagPair(flag);
345
345
  };
346
346
  MutableProblogSolver.prototype.setFlagPair = function (flag) {
347
- return this.s37(flag);
347
+ return this.v37(flag);
348
348
  };
349
- MutableProblogSolver.prototype.t37 = function (flag) {
350
- this.s3b_1.setFlagNotable(flag);
349
+ MutableProblogSolver.prototype.w37 = function (flag) {
350
+ this.v3b_1.setFlagNotable(flag);
351
351
  };
352
352
  MutableProblogSolver.prototype.setFlagNotable = function (flag) {
353
- return this.t37(flag);
353
+ return this.w37(flag);
354
354
  };
355
- MutableProblogSolver.prototype.u37 = function (stdIn) {
356
- this.s3b_1.setStandardInput(stdIn);
355
+ MutableProblogSolver.prototype.x37 = function (stdIn) {
356
+ this.v3b_1.setStandardInput(stdIn);
357
357
  };
358
358
  MutableProblogSolver.prototype.setStandardInput = function (stdIn) {
359
- return this.u37(stdIn);
359
+ return this.x37(stdIn);
360
360
  };
361
- MutableProblogSolver.prototype.v37 = function (stdErr) {
362
- this.s3b_1.setStandardError(stdErr);
361
+ MutableProblogSolver.prototype.y37 = function (stdErr) {
362
+ this.v3b_1.setStandardError(stdErr);
363
363
  };
364
364
  MutableProblogSolver.prototype.setStandardError = function (stdErr) {
365
- return this.v37(stdErr);
365
+ return this.y37(stdErr);
366
366
  };
367
- MutableProblogSolver.prototype.w37 = function (stdOut) {
368
- this.s3b_1.setStandardOutput(stdOut);
367
+ MutableProblogSolver.prototype.z37 = function (stdOut) {
368
+ this.v3b_1.setStandardOutput(stdOut);
369
369
  };
370
370
  MutableProblogSolver.prototype.setStandardOutput = function (stdOut) {
371
- return this.w37(stdOut);
371
+ return this.z37(stdOut);
372
372
  };
373
- MutableProblogSolver.prototype.x37 = function (warnings) {
374
- this.s3b_1.setWarnings(warnings);
373
+ MutableProblogSolver.prototype.a38 = function (warnings) {
374
+ this.v3b_1.setWarnings(warnings);
375
375
  };
376
376
  MutableProblogSolver.prototype.setWarnings = function (warnings) {
377
- return this.x37(warnings);
377
+ return this.a38(warnings);
378
378
  };
379
379
  MutableProblogSolver.prototype.p1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
380
- return new MutableProblogSolver(this.s3b_1.p1v(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings));
380
+ return new MutableProblogSolver(this.v3b_1.p1v(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings));
381
381
  };
382
382
  MutableProblogSolver.prototype.z1s = function () {
383
- return new MutableProblogSolver(this.s3b_1.z1s());
383
+ return new MutableProblogSolver(this.v3b_1.z1s());
384
384
  };
385
385
  MutableProblogSolver.prototype.clone = function () {
386
386
  return this.z1s();
@@ -418,13 +418,13 @@
418
418
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
419
419
  var tmp0__get_functor__thl4dk = ProbSetConfig_getInstance();
420
420
  tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
421
- var tmp_1 = tmp_0.of(tmp$ret$0, [ProbSetConfig_getInstance().g3c(options)]);
421
+ var tmp_1 = tmp_0.of(tmp$ret$0, [ProbSetConfig_getInstance().j3c(options)]);
422
422
  var tmp_2 = Companion_getInstance_3();
423
423
  var tmp$ret$1;
424
424
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
425
425
  var tmp1__get_functor__4k11yf = Prob_getInstance();
426
426
  tmp$ret$1 = tmp1__get_functor__4k11yf.signature.name;
427
- var tmp_3 = $this.t3b_1.solveWithOptions(tmp.of(tmp_1, tmp_2.of(tmp$ret$1, [anonVar, goal])), options);
427
+ var tmp_3 = $this.w3b_1.solveWithOptions(tmp.of(tmp_1, tmp_2.of(tmp$ret$1, [anonVar, goal])), options);
428
428
  return map(tmp_3, ProblogSolver$solveNonProbabilistically$lambda(goal, anonVar));
429
429
  }
430
430
  function solveProbabilistically($this, goal, options) {
@@ -435,7 +435,7 @@
435
435
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
436
436
  var tmp0__get_functor__thl4dk = ProbQuery_getInstance();
437
437
  tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
438
- var tmp_0 = $this.t3b_1.solveWithOptions(tmp.of(tmp$ret$0, [probabilityVar, goal, ProbSetConfig_getInstance().g3c(options), bddVar]), options);
438
+ var tmp_0 = $this.w3b_1.solveWithOptions(tmp.of(tmp$ret$0, [probabilityVar, goal, ProbSetConfig_getInstance().j3c(options), bddVar]), options);
439
439
  return map(tmp_0, ProblogSolver$solveProbabilistically$lambda(probabilityVar, bddVar, goal, options));
440
440
  }
441
441
  function ProblogSolver$solveNonProbabilistically$lambda$lambda($anonVar) {
@@ -505,9 +505,9 @@
505
505
  tmp_5 = false;
506
506
  }
507
507
  if (tmp_5) {
508
- var explanation = bddTerm.h3c_1;
508
+ var explanation = bddTerm.k3c_1;
509
509
  if (explanation instanceof BinaryDecisionDiagramExplanation) {
510
- newSolution = setBinaryDecisionDiagram(newSolution, explanation.j3c_1);
510
+ newSolution = setBinaryDecisionDiagram(newSolution, explanation.m3c_1);
511
511
  }
512
512
  }
513
513
  tmp_2 = newSolution;
@@ -516,45 +516,45 @@
516
516
  };
517
517
  }
518
518
  function ProblogSolver(solver) {
519
- this.t3b_1 = solver;
519
+ this.w3b_1 = solver;
520
520
  }
521
521
  ProblogSolver.prototype.z1u = function () {
522
- return this.t3b_1.z1u();
522
+ return this.w3b_1.z1u();
523
523
  };
524
524
  ProblogSolver.prototype.x1u = function () {
525
- return this.t3b_1.x1u();
525
+ return this.w3b_1.x1u();
526
526
  };
527
527
  ProblogSolver.prototype.a1v = function () {
528
- return this.t3b_1.a1v();
528
+ return this.w3b_1.a1v();
529
529
  };
530
530
  ProblogSolver.prototype.w1u = function () {
531
- return this.t3b_1.w1u();
531
+ return this.w3b_1.w1u();
532
532
  };
533
533
  ProblogSolver.prototype.h1v = function () {
534
- return this.t3b_1.h1v();
534
+ return this.w3b_1.h1v();
535
535
  };
536
536
  ProblogSolver.prototype.b1v = function () {
537
- return this.t3b_1.b1v();
537
+ return this.w3b_1.b1v();
538
538
  };
539
539
  ProblogSolver.prototype.m1v = function () {
540
- return this.t3b_1.m1v();
540
+ return this.w3b_1.m1v();
541
541
  };
542
542
  ProblogSolver.prototype.i1v = function () {
543
- return this.t3b_1.i1v();
543
+ return this.w3b_1.i1v();
544
544
  };
545
545
  ProblogSolver.prototype.k1v = function () {
546
- return this.t3b_1.k1v();
546
+ return this.w3b_1.k1v();
547
547
  };
548
548
  ProblogSolver.prototype.y1u = function () {
549
- return this.t3b_1.y1u();
549
+ return this.w3b_1.y1u();
550
550
  };
551
551
  ProblogSolver.prototype.k1l = function () {
552
- return this.t3b_1.k1l();
552
+ return this.w3b_1.k1l();
553
553
  };
554
554
  ProblogSolver.prototype.o1v = function () {
555
- return this.t3b_1.o1v();
555
+ return this.w3b_1.o1v();
556
556
  };
557
- ProblogSolver.prototype.u2b = function (goal, options) {
557
+ ProblogSolver.prototype.c2c = function (goal, options) {
558
558
  var tmp;
559
559
  if (!get_isProbabilistic(options)) {
560
560
  tmp = solveNonProbabilistically(this, goal, options);
@@ -564,61 +564,61 @@
564
564
  return tmp;
565
565
  };
566
566
  ProblogSolver.prototype.solveWithOptions = function (goal, options) {
567
- return this.u2b(goal, options);
567
+ return this.c2c(goal, options);
568
568
  };
569
- ProblogSolver.prototype.u3b = function (goal, timeout) {
570
- return this.u2b(goal, Companion_getInstance_5().allLazilyWithTimeout(timeout));
569
+ ProblogSolver.prototype.x3b = function (goal, timeout) {
570
+ return this.c2c(goal, Companion_getInstance_5().allLazilyWithTimeout(timeout));
571
571
  };
572
572
  ProblogSolver.prototype.solveWithTimeout = function (goal, timeout) {
573
- return this.u3b(goal, timeout);
573
+ return this.x3b(goal, timeout);
574
574
  };
575
- ProblogSolver.prototype.v3b = function (goal) {
576
- return this.u2b(goal, Companion_getInstance_5().DEFAULT);
575
+ ProblogSolver.prototype.y3b = function (goal) {
576
+ return this.c2c(goal, Companion_getInstance_5().DEFAULT);
577
577
  };
578
578
  ProblogSolver.prototype.solve = function (goal) {
579
- return this.v3b(goal);
579
+ return this.y3b(goal);
580
580
  };
581
- ProblogSolver.prototype.w3b = function (goal, timeout) {
582
- return toList(this.u3b(goal, timeout));
581
+ ProblogSolver.prototype.z3b = function (goal, timeout) {
582
+ return toList(this.x3b(goal, timeout));
583
583
  };
584
584
  ProblogSolver.prototype.solveListWithTimeout = function (goal, timeout) {
585
- return this.w3b(goal, timeout);
585
+ return this.z3b(goal, timeout);
586
586
  };
587
- ProblogSolver.prototype.x3b = function (goal) {
588
- return toList(this.v3b(goal));
587
+ ProblogSolver.prototype.a3c = function (goal) {
588
+ return toList(this.y3b(goal));
589
589
  };
590
590
  ProblogSolver.prototype.solveList = function (goal) {
591
- return this.x3b(goal);
591
+ return this.a3c(goal);
592
592
  };
593
- ProblogSolver.prototype.y3b = function (goal, options) {
594
- return toList(this.u2b(goal, options));
593
+ ProblogSolver.prototype.b3c = function (goal, options) {
594
+ return toList(this.c2c(goal, options));
595
595
  };
596
596
  ProblogSolver.prototype.solveListWithOptions = function (goal, options) {
597
- return this.y3b(goal, options);
597
+ return this.b3c(goal, options);
598
598
  };
599
- ProblogSolver.prototype.z3b = function (goal, timeout) {
600
- return first_0(this.u2b(goal, Companion_getInstance_5().someLazilyWithTimeout(1, timeout)));
599
+ ProblogSolver.prototype.c3c = function (goal, timeout) {
600
+ return first_0(this.c2c(goal, Companion_getInstance_5().someLazilyWithTimeout(1, timeout)));
601
601
  };
602
602
  ProblogSolver.prototype.solveOnceWithTimeout = function (goal, timeout) {
603
- return this.z3b(goal, timeout);
603
+ return this.c3c(goal, timeout);
604
604
  };
605
- ProblogSolver.prototype.a3c = function (goal) {
606
- return first_0(this.u2b(goal, Companion_getInstance_5().someLazily(1)));
605
+ ProblogSolver.prototype.d3c = function (goal) {
606
+ return first_0(this.c2c(goal, Companion_getInstance_5().someLazily(1)));
607
607
  };
608
608
  ProblogSolver.prototype.solveOnce = function (goal) {
609
- return this.a3c(goal);
609
+ return this.d3c(goal);
610
610
  };
611
- ProblogSolver.prototype.b3c = function (goal, options) {
612
- return first_0(this.u2b(goal, options.setLimit(1)));
611
+ ProblogSolver.prototype.e3c = function (goal, options) {
612
+ return first_0(this.c2c(goal, options.setLimit(1)));
613
613
  };
614
614
  ProblogSolver.prototype.solveOnceWithOptions = function (goal, options) {
615
- return this.b3c(goal, options);
615
+ return this.e3c(goal, options);
616
616
  };
617
617
  ProblogSolver.prototype.p1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
618
- return new ProblogSolver(this.t3b_1.p1v(unificator, libraries, flags, Companion_getInstance_22().ofIterable(unificator, staticKb), Companion_getInstance_22().ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
618
+ return new ProblogSolver(this.w3b_1.p1v(unificator, libraries, flags, Companion_getInstance_22().ofIterable(unificator, staticKb), Companion_getInstance_22().ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
619
619
  };
620
620
  ProblogSolver.prototype.z1s = function () {
621
- return new ProblogSolver(this.t3b_1.clone());
621
+ return new ProblogSolver(this.w3b_1.clone());
622
622
  };
623
623
  ProblogSolver.prototype.clone = function () {
624
624
  return this.z1s();
@@ -631,7 +631,7 @@
631
631
  var tmp;
632
632
  var tmp$ret$1;
633
633
  // Inline function 'kotlin.collections.contains' call
634
- var tmp0_contains = ProblogLib_getInstance().i2e();
634
+ var tmp0_contains = ProblogLib_getInstance().o2e();
635
635
  var tmp$ret$0;
636
636
  // Inline function 'kotlin.collections.containsKey' call
637
637
  tmp$ret$0 = (isInterface(libraries, Map) ? libraries : THROW_CCE()).u2(tmp0_contains);
@@ -644,7 +644,7 @@
644
644
  return tmp;
645
645
  }
646
646
  function ProblogSolverFactory$ensureVariablesTracking$lambda($this$invoke) {
647
- return $this$invoke.m29_1;
647
+ return $this$invoke.u29_1;
648
648
  }
649
649
  function ProblogSolverFactory() {
650
650
  ProblogSolverFactory_instance = this;
@@ -677,17 +677,17 @@
677
677
  DefaultBuiltins_instance = this;
678
678
  ExtensionLibrary.call(this, DefaultBuiltins_getInstance());
679
679
  }
680
- DefaultBuiltins.prototype.i2e = function () {
681
- return ProblogLib_getInstance().i2e();
680
+ DefaultBuiltins.prototype.o2e = function () {
681
+ return ProblogLib_getInstance().o2e();
682
682
  };
683
- DefaultBuiltins.prototype.t2e = function () {
684
- return ProblogLib_getInstance().t2e();
683
+ DefaultBuiltins.prototype.z2e = function () {
684
+ return ProblogLib_getInstance().z2e();
685
685
  };
686
- DefaultBuiltins.prototype.y2e = function () {
687
- return ProblogLib_getInstance().y2e();
686
+ DefaultBuiltins.prototype.b2f = function () {
687
+ return ProblogLib_getInstance().b2f();
688
688
  };
689
- DefaultBuiltins.prototype.x2e = function () {
690
- return ProblogLib_getInstance().x2e();
689
+ DefaultBuiltins.prototype.a2f = function () {
690
+ return ProblogLib_getInstance().a2f();
691
691
  };
692
692
  var DefaultBuiltins_instance;
693
693
  function DefaultBuiltins_getInstance_0() {
@@ -699,10 +699,10 @@
699
699
  MinimalBuiltins_instance = this;
700
700
  ExtensionLibrary.call(this, ProblogLib_getInstance());
701
701
  }
702
- MinimalBuiltins.prototype.y2e = function () {
702
+ MinimalBuiltins.prototype.b2f = function () {
703
703
  return listOf(EnsureExecutable_getInstance());
704
704
  };
705
- MinimalBuiltins.prototype.x2e = function () {
705
+ MinimalBuiltins.prototype.a2f = function () {
706
706
  return listOf(Call_getInstance());
707
707
  };
708
708
  var MinimalBuiltins_instance;
@@ -714,18 +714,18 @@
714
714
  function ProblogLib() {
715
715
  ProblogLib_instance = this;
716
716
  var tmp = Companion_getInstance_6();
717
- ExtensionLibrary.call(this, tmp.e2e('problog.lang', null, null, null, null, 30, null));
718
- this.a3d_1 = 'EXPL';
719
- this.b3d_1 = 'evidence';
720
- this.c3d_1 = 'prob';
717
+ ExtensionLibrary.call(this, tmp.m2e('problog.lang', null, null, null, null, 30, null));
718
+ this.d3d_1 = 'EXPL';
719
+ this.e3d_1 = 'evidence';
720
+ this.f3d_1 = 'prob';
721
721
  }
722
- ProblogLib.prototype.t2e = function () {
722
+ ProblogLib.prototype.z2e = function () {
723
723
  return get_PROBLOG_SPECIFIC_OPERATORS();
724
724
  };
725
- ProblogLib.prototype.x2e = function () {
725
+ ProblogLib.prototype.a2f = function () {
726
726
  return listOf(Prob_getInstance());
727
727
  };
728
- ProblogLib.prototype.y2e = function () {
728
+ ProblogLib.prototype.b2f = function () {
729
729
  return listOf_0([ProbHelper_getInstance(), ProbSolve_getInstance(), ProbExplAnd_getInstance(), ProbQuery_getInstance(), ProbSolveEvidence_getInstance(), ProbSolveWithEvidence_getInstance(), ProbNegationAsFailure_getInstance(), ProbSetConfig_getInstance()]);
730
730
  };
731
731
  var ProblogLib_instance;
@@ -747,11 +747,11 @@
747
747
  }
748
748
  function ClauseMappingException(message, cause) {
749
749
  TuPrologException_init_$Init$(cause, this);
750
- this.j3d_1 = message;
750
+ this.m3d_1 = message;
751
751
  captureStack(this, ClauseMappingException);
752
752
  }
753
753
  ClauseMappingException.prototype.k1 = function () {
754
- return this.j3d_1;
754
+ return this.m3d_1;
755
755
  };
756
756
  Object.defineProperty(ClauseMappingException.prototype, 'message', {
757
757
  configurable: true,
@@ -803,11 +803,11 @@
803
803
  }
804
804
  function Companion_0() {
805
805
  Companion_instance_0 = this;
806
- this.k3d_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(false), Companion_getInstance_23().n3d_1);
807
- this.l3d_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(true), Companion_getInstance_23().o3d_1);
806
+ this.n3d_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(false), Companion_getInstance_23().q3d_1);
807
+ this.o3d_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(true), Companion_getInstance_23().r3d_1);
808
808
  }
809
- Companion_0.prototype.p3d = function (term) {
810
- return new BinaryDecisionDiagramExplanation(bddOf(term), new ComputedValue(term.r3d_1));
809
+ Companion_0.prototype.s3d = function (term) {
810
+ return new BinaryDecisionDiagramExplanation(bddOf(term), new ComputedValue(term.u3d_1));
811
811
  };
812
812
  var Companion_instance_0;
813
813
  function Companion_getInstance_21() {
@@ -831,296 +831,296 @@
831
831
  };
832
832
  }
833
833
  function ProbExplanationTerm(explanation) {
834
- this.h3c_1 = explanation;
835
- this.i3c_1 = Companion_getInstance_8().of('<expl:' + explanation + '>');
834
+ this.k3c_1 = explanation;
835
+ this.l3c_1 = Companion_getInstance_8().of('<expl:' + explanation + '>');
836
836
  }
837
837
  ProbExplanationTerm.prototype.gw = function () {
838
- return this.i3c_1.gw();
838
+ return this.l3c_1.gw();
839
839
  };
840
840
  ProbExplanationTerm.prototype.yw = function () {
841
- return this.i3c_1.yw();
841
+ return this.l3c_1.yw();
842
842
  };
843
843
  ProbExplanationTerm.prototype.zv = function () {
844
- return this.i3c_1.zv();
844
+ return this.l3c_1.zv();
845
845
  };
846
846
  ProbExplanationTerm.prototype.fw = function () {
847
- return this.i3c_1.fw();
847
+ return this.l3c_1.fw();
848
848
  };
849
849
  ProbExplanationTerm.prototype.xw = function () {
850
- return this.i3c_1.xw();
850
+ return this.l3c_1.xw();
851
851
  };
852
852
  ProbExplanationTerm.prototype.aw = function () {
853
- return this.i3c_1.aw();
853
+ return this.l3c_1.aw();
854
854
  };
855
855
  ProbExplanationTerm.prototype.tw = function () {
856
- return this.i3c_1.tw();
856
+ return this.l3c_1.tw();
857
857
  };
858
858
  ProbExplanationTerm.prototype.mw = function () {
859
- return this.i3c_1.mw();
859
+ return this.l3c_1.mw();
860
860
  };
861
861
  ProbExplanationTerm.prototype.sw = function () {
862
- return this.i3c_1.sw();
862
+ return this.l3c_1.sw();
863
863
  };
864
864
  ProbExplanationTerm.prototype.ow = function () {
865
- return this.i3c_1.ow();
865
+ return this.l3c_1.ow();
866
866
  };
867
867
  ProbExplanationTerm.prototype.bw = function () {
868
- return this.i3c_1.bw();
868
+ return this.l3c_1.bw();
869
869
  };
870
870
  ProbExplanationTerm.prototype.cw = function () {
871
- return this.i3c_1.cw();
871
+ return this.l3c_1.cw();
872
872
  };
873
873
  ProbExplanationTerm.prototype.pw = function () {
874
- return this.i3c_1.pw();
874
+ return this.l3c_1.pw();
875
875
  };
876
876
  ProbExplanationTerm.prototype.ew = function () {
877
- return this.i3c_1.ew();
877
+ return this.l3c_1.ew();
878
878
  };
879
879
  ProbExplanationTerm.prototype.ww = function () {
880
- return this.i3c_1.ww();
880
+ return this.l3c_1.ww();
881
881
  };
882
882
  ProbExplanationTerm.prototype.uw = function () {
883
- return this.i3c_1.uw();
883
+ return this.l3c_1.uw();
884
884
  };
885
885
  ProbExplanationTerm.prototype.gx = function () {
886
- return this.i3c_1.gx();
886
+ return this.l3c_1.gx();
887
887
  };
888
888
  ProbExplanationTerm.prototype.rw = function () {
889
- return this.i3c_1.rw();
889
+ return this.l3c_1.rw();
890
890
  };
891
891
  ProbExplanationTerm.prototype.fx = function () {
892
- return this.i3c_1.fx();
892
+ return this.l3c_1.fx();
893
893
  };
894
894
  ProbExplanationTerm.prototype.hx = function () {
895
- return this.i3c_1.hx();
895
+ return this.l3c_1.hx();
896
896
  };
897
897
  ProbExplanationTerm.prototype.dx = function () {
898
- return this.i3c_1.dx();
898
+ return this.l3c_1.dx();
899
899
  };
900
900
  ProbExplanationTerm.prototype.nw = function () {
901
- return this.i3c_1.nw();
901
+ return this.l3c_1.nw();
902
902
  };
903
903
  ProbExplanationTerm.prototype.lw = function () {
904
- return this.i3c_1.lw();
904
+ return this.l3c_1.lw();
905
905
  };
906
906
  ProbExplanationTerm.prototype.dw = function () {
907
- return this.i3c_1.dw();
907
+ return this.l3c_1.dw();
908
908
  };
909
909
  ProbExplanationTerm.prototype.cx = function () {
910
- return this.i3c_1.cx();
910
+ return this.l3c_1.cx();
911
911
  };
912
912
  ProbExplanationTerm.prototype.qw = function () {
913
- return this.i3c_1.qw();
913
+ return this.l3c_1.qw();
914
914
  };
915
915
  ProbExplanationTerm.prototype.bx = function () {
916
- return this.i3c_1.bx();
916
+ return this.l3c_1.bx();
917
917
  };
918
918
  ProbExplanationTerm.prototype.kt = function () {
919
- return this.i3c_1.kt();
919
+ return this.l3c_1.kt();
920
920
  };
921
921
  ProbExplanationTerm.prototype.b1 = function () {
922
- return this.i3c_1.b1();
922
+ return this.l3c_1.b1();
923
923
  };
924
924
  ProbExplanationTerm.prototype.hw = function () {
925
- return this.i3c_1.hw();
925
+ return this.l3c_1.hw();
926
926
  };
927
927
  ProbExplanationTerm.prototype.accept = function (visitor) {
928
- return this.i3c_1.accept(visitor);
928
+ return this.l3c_1.accept(visitor);
929
929
  };
930
930
  ProbExplanationTerm.prototype.addFirst = function (argument) {
931
- return this.i3c_1.addFirst(argument);
931
+ return this.l3c_1.addFirst(argument);
932
932
  };
933
933
  ProbExplanationTerm.prototype.addLast = function (argument) {
934
- return this.i3c_1.addLast(argument);
934
+ return this.l3c_1.addLast(argument);
935
935
  };
936
936
  ProbExplanationTerm.prototype.append = function (argument) {
937
- return this.i3c_1.append(argument);
937
+ return this.l3c_1.append(argument);
938
938
  };
939
939
  ProbExplanationTerm.prototype.kw = function () {
940
- return this.i3c_1.kw();
940
+ return this.l3c_1.kw();
941
941
  };
942
942
  ProbExplanationTerm.prototype.asAtom = function () {
943
943
  return this.kw();
944
944
  };
945
945
  ProbExplanationTerm.prototype.asBlock = function () {
946
- return this.i3c_1.asBlock();
946
+ return this.l3c_1.asBlock();
947
947
  };
948
948
  ProbExplanationTerm.prototype.asClause = function () {
949
- return this.i3c_1.asClause();
949
+ return this.l3c_1.asClause();
950
950
  };
951
951
  ProbExplanationTerm.prototype.asCons = function () {
952
- return this.i3c_1.asCons();
952
+ return this.l3c_1.asCons();
953
953
  };
954
954
  ProbExplanationTerm.prototype.asDirective = function () {
955
- return this.i3c_1.asDirective();
955
+ return this.l3c_1.asDirective();
956
956
  };
957
957
  ProbExplanationTerm.prototype.asEmptyBlock = function () {
958
- return this.i3c_1.asEmptyBlock();
958
+ return this.l3c_1.asEmptyBlock();
959
959
  };
960
960
  ProbExplanationTerm.prototype.asEmptyList = function () {
961
- return this.i3c_1.asEmptyList();
961
+ return this.l3c_1.asEmptyList();
962
962
  };
963
963
  ProbExplanationTerm.prototype.asFact = function () {
964
- return this.i3c_1.asFact();
964
+ return this.l3c_1.asFact();
965
965
  };
966
966
  ProbExplanationTerm.prototype.asIndicator = function () {
967
- return this.i3c_1.asIndicator();
967
+ return this.l3c_1.asIndicator();
968
968
  };
969
969
  ProbExplanationTerm.prototype.asInteger = function () {
970
- return this.i3c_1.asInteger();
970
+ return this.l3c_1.asInteger();
971
971
  };
972
972
  ProbExplanationTerm.prototype.asList = function () {
973
- return this.i3c_1.asList();
973
+ return this.l3c_1.asList();
974
974
  };
975
975
  ProbExplanationTerm.prototype.asNumeric = function () {
976
- return this.i3c_1.asNumeric();
976
+ return this.l3c_1.asNumeric();
977
977
  };
978
978
  ProbExplanationTerm.prototype.asReal = function () {
979
- return this.i3c_1.asReal();
979
+ return this.l3c_1.asReal();
980
980
  };
981
981
  ProbExplanationTerm.prototype.asRecursive = function () {
982
- return this.i3c_1.asRecursive();
982
+ return this.l3c_1.asRecursive();
983
983
  };
984
984
  ProbExplanationTerm.prototype.asRule = function () {
985
- return this.i3c_1.asRule();
985
+ return this.l3c_1.asRule();
986
986
  };
987
987
  ProbExplanationTerm.prototype.vw = function () {
988
- return this.i3c_1.vw();
988
+ return this.l3c_1.vw();
989
989
  };
990
990
  ProbExplanationTerm.prototype.asStruct = function () {
991
991
  return this.vw();
992
992
  };
993
993
  ProbExplanationTerm.prototype.asTerm = function () {
994
- return this.i3c_1.asTerm();
994
+ return this.l3c_1.asTerm();
995
995
  };
996
996
  ProbExplanationTerm.prototype.asTruth = function () {
997
- return this.i3c_1.asTruth();
997
+ return this.l3c_1.asTruth();
998
998
  };
999
999
  ProbExplanationTerm.prototype.asTuple = function () {
1000
- return this.i3c_1.asTuple();
1000
+ return this.l3c_1.asTuple();
1001
1001
  };
1002
1002
  ProbExplanationTerm.prototype.asVar = function () {
1003
- return this.i3c_1.asVar();
1003
+ return this.l3c_1.asVar();
1004
1004
  };
1005
1005
  ProbExplanationTerm.prototype.zw = function () {
1006
- return this.i3c_1.zw();
1006
+ return this.l3c_1.zw();
1007
1007
  };
1008
1008
  ProbExplanationTerm.prototype.qq = function () {
1009
1009
  return this.zw();
1010
1010
  };
1011
1011
  ProbExplanationTerm.prototype.castToAtom = function () {
1012
- return this.i3c_1.castToAtom();
1012
+ return this.l3c_1.castToAtom();
1013
1013
  };
1014
1014
  ProbExplanationTerm.prototype.castToBlock = function () {
1015
- return this.i3c_1.castToBlock();
1015
+ return this.l3c_1.castToBlock();
1016
1016
  };
1017
1017
  ProbExplanationTerm.prototype.castToClause = function () {
1018
- return this.i3c_1.castToClause();
1018
+ return this.l3c_1.castToClause();
1019
1019
  };
1020
1020
  ProbExplanationTerm.prototype.castToCons = function () {
1021
- return this.i3c_1.castToCons();
1021
+ return this.l3c_1.castToCons();
1022
1022
  };
1023
1023
  ProbExplanationTerm.prototype.castToConstant = function () {
1024
- return this.i3c_1.castToConstant();
1024
+ return this.l3c_1.castToConstant();
1025
1025
  };
1026
1026
  ProbExplanationTerm.prototype.castToDirective = function () {
1027
- return this.i3c_1.castToDirective();
1027
+ return this.l3c_1.castToDirective();
1028
1028
  };
1029
1029
  ProbExplanationTerm.prototype.castToEmptyBlock = function () {
1030
- return this.i3c_1.castToEmptyBlock();
1030
+ return this.l3c_1.castToEmptyBlock();
1031
1031
  };
1032
1032
  ProbExplanationTerm.prototype.castToEmptyList = function () {
1033
- return this.i3c_1.castToEmptyList();
1033
+ return this.l3c_1.castToEmptyList();
1034
1034
  };
1035
1035
  ProbExplanationTerm.prototype.castToFact = function () {
1036
- return this.i3c_1.castToFact();
1036
+ return this.l3c_1.castToFact();
1037
1037
  };
1038
1038
  ProbExplanationTerm.prototype.castToIndicator = function () {
1039
- return this.i3c_1.castToIndicator();
1039
+ return this.l3c_1.castToIndicator();
1040
1040
  };
1041
1041
  ProbExplanationTerm.prototype.castToInteger = function () {
1042
- return this.i3c_1.castToInteger();
1042
+ return this.l3c_1.castToInteger();
1043
1043
  };
1044
1044
  ProbExplanationTerm.prototype.castToList = function () {
1045
- return this.i3c_1.castToList();
1045
+ return this.l3c_1.castToList();
1046
1046
  };
1047
1047
  ProbExplanationTerm.prototype.castToNumeric = function () {
1048
- return this.i3c_1.castToNumeric();
1048
+ return this.l3c_1.castToNumeric();
1049
1049
  };
1050
1050
  ProbExplanationTerm.prototype.castToReal = function () {
1051
- return this.i3c_1.castToReal();
1051
+ return this.l3c_1.castToReal();
1052
1052
  };
1053
1053
  ProbExplanationTerm.prototype.castToRecursive = function () {
1054
- return this.i3c_1.castToRecursive();
1054
+ return this.l3c_1.castToRecursive();
1055
1055
  };
1056
1056
  ProbExplanationTerm.prototype.castToRule = function () {
1057
- return this.i3c_1.castToRule();
1057
+ return this.l3c_1.castToRule();
1058
1058
  };
1059
1059
  ProbExplanationTerm.prototype.castToStruct = function () {
1060
- return this.i3c_1.castToStruct();
1060
+ return this.l3c_1.castToStruct();
1061
1061
  };
1062
1062
  ProbExplanationTerm.prototype.castToTerm = function () {
1063
- return this.i3c_1.castToTerm();
1063
+ return this.l3c_1.castToTerm();
1064
1064
  };
1065
1065
  ProbExplanationTerm.prototype.castToTruth = function () {
1066
- return this.i3c_1.castToTruth();
1066
+ return this.l3c_1.castToTruth();
1067
1067
  };
1068
1068
  ProbExplanationTerm.prototype.castToTuple = function () {
1069
- return this.i3c_1.castToTuple();
1069
+ return this.l3c_1.castToTuple();
1070
1070
  };
1071
1071
  ProbExplanationTerm.prototype.castToVar = function () {
1072
- return this.i3c_1.castToVar();
1072
+ return this.l3c_1.castToVar();
1073
1073
  };
1074
1074
  ProbExplanationTerm.prototype.ax = function (other) {
1075
- return this.i3c_1.ax(other);
1075
+ return this.l3c_1.ax(other);
1076
1076
  };
1077
1077
  ProbExplanationTerm.prototype.aa = function (other) {
1078
1078
  return this.ax((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
1079
1079
  };
1080
1080
  ProbExplanationTerm.prototype.containsTag = function (name) {
1081
- return this.i3c_1.containsTag(name);
1081
+ return this.l3c_1.containsTag(name);
1082
1082
  };
1083
1083
  ProbExplanationTerm.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
1084
- return this.i3c_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1084
+ return this.l3c_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1085
1085
  };
1086
1086
  ProbExplanationTerm.prototype.equals = function (other) {
1087
- return this.i3c_1.equals(other);
1087
+ return this.l3c_1.equals(other);
1088
1088
  };
1089
1089
  ProbExplanationTerm.prototype.get = function (index) {
1090
- return this.i3c_1.get(index);
1090
+ return this.l3c_1.get(index);
1091
1091
  };
1092
1092
  ProbExplanationTerm.prototype.getArgAt = function (index) {
1093
- return this.i3c_1.getArgAt(index);
1093
+ return this.l3c_1.getArgAt(index);
1094
1094
  };
1095
1095
  ProbExplanationTerm.prototype.getTag = function (name) {
1096
- return this.i3c_1.getTag(name);
1096
+ return this.l3c_1.getTag(name);
1097
1097
  };
1098
1098
  ProbExplanationTerm.prototype.hashCode = function () {
1099
- return this.i3c_1.hashCode();
1099
+ return this.l3c_1.hashCode();
1100
1100
  };
1101
1101
  ProbExplanationTerm.prototype.insertAt = function (index, argument) {
1102
- return this.i3c_1.insertAt(index, argument);
1102
+ return this.l3c_1.insertAt(index, argument);
1103
1103
  };
1104
1104
  ProbExplanationTerm.prototype.resetTags = function (tags) {
1105
- return this.i3c_1.resetTags(tags);
1105
+ return this.l3c_1.resetTags(tags);
1106
1106
  };
1107
1107
  ProbExplanationTerm.prototype.setArgs = function (args) {
1108
- return this.i3c_1.setArgs(args);
1108
+ return this.l3c_1.setArgs(args);
1109
1109
  };
1110
1110
  ProbExplanationTerm.prototype.setArgsIterable = function (args) {
1111
- return this.i3c_1.setArgsIterable(args);
1111
+ return this.l3c_1.setArgsIterable(args);
1112
1112
  };
1113
1113
  ProbExplanationTerm.prototype.setArgsSequence = function (args) {
1114
- return this.i3c_1.setArgsSequence(args);
1114
+ return this.l3c_1.setArgsSequence(args);
1115
1115
  };
1116
1116
  ProbExplanationTerm.prototype.setFunctor = function (functor) {
1117
- return this.i3c_1.setFunctor(functor);
1117
+ return this.l3c_1.setFunctor(functor);
1118
1118
  };
1119
1119
  ProbExplanationTerm.prototype.structurallyEquals = function (other) {
1120
- return this.i3c_1.structurallyEquals(other);
1120
+ return this.l3c_1.structurallyEquals(other);
1121
1121
  };
1122
1122
  ProbExplanationTerm.prototype.toString = function () {
1123
- return this.i3c_1.toString();
1123
+ return this.l3c_1.toString();
1124
1124
  };
1125
1125
  ProbExplanationTerm.prototype.ex = function () {
1126
1126
  return false;
@@ -1132,35 +1132,35 @@
1132
1132
  return this.ix();
1133
1133
  };
1134
1134
  ProbExplanationTerm.prototype.iw = function () {
1135
- return new ProbExplanationTerm(this.h3c_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda));
1135
+ return new ProbExplanationTerm(this.k3c_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda));
1136
1136
  };
1137
1137
  ProbExplanationTerm.prototype.freshCopy = function () {
1138
1138
  return this.iw();
1139
1139
  };
1140
1140
  ProbExplanationTerm.prototype.jw = function (scope) {
1141
- return new ProbExplanationTerm(this.h3c_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda_0(scope)));
1141
+ return new ProbExplanationTerm(this.k3c_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda_0(scope)));
1142
1142
  };
1143
1143
  ProbExplanationTerm.prototype.freshCopyFromScope = function (scope) {
1144
1144
  return this.jw(scope);
1145
1145
  };
1146
- ProbExplanationTerm.prototype.b2p = function (substitution, substitutions) {
1147
- return this.c2p(substitution, substitutions.slice());
1146
+ ProbExplanationTerm.prototype.e2p = function (substitution, substitutions) {
1147
+ return this.f2p(substitution, substitutions.slice());
1148
1148
  };
1149
1149
  ProbExplanationTerm.prototype.getSubstituted = function (substitution, substitutions) {
1150
- return this.b2p(substitution, substitutions);
1150
+ return this.e2p(substitution, substitutions);
1151
1151
  };
1152
- ProbExplanationTerm.prototype.c2p = function (substitution, substitutions) {
1152
+ ProbExplanationTerm.prototype.f2p = function (substitution, substitutions) {
1153
1153
  return this.s16(Companion_getInstance_9().ofSubstitution(substitution, substitutions.slice()));
1154
1154
  };
1155
1155
  ProbExplanationTerm.prototype.apply = function (substitution, substitutions) {
1156
- return this.c2p(substitution, substitutions);
1156
+ return this.f2p(substitution, substitutions);
1157
1157
  };
1158
1158
  ProbExplanationTerm.prototype.s16 = function (substitution) {
1159
1159
  var tmp;
1160
1160
  if (substitution.d() ? true : this.jx()) {
1161
1161
  tmp = this;
1162
1162
  } else {
1163
- tmp = new ProbExplanationTerm(this.h3c_1.applyTransformation(ProbExplanationTerm$apply$lambda(substitution)));
1163
+ tmp = new ProbExplanationTerm(this.k3c_1.applyTransformation(ProbExplanationTerm$apply$lambda(substitution)));
1164
1164
  }
1165
1165
  return tmp;
1166
1166
  };
@@ -1168,23 +1168,23 @@
1168
1168
  return this.s16(substitution);
1169
1169
  };
1170
1170
  ProbExplanationTerm.prototype.jx = function () {
1171
- return !this.h3c_1.z3d();
1171
+ return !this.k3c_1.c3e();
1172
1172
  };
1173
1173
  function _get_cachedHashCode__d7x0zy($this) {
1174
1174
  var tmp$ret$0;
1175
1175
  // Inline function 'kotlin.getValue' call
1176
1176
  var tmp0_getValue = cachedHashCode$factory();
1177
- tmp$ret$0 = $this.w3d_1.b1();
1177
+ tmp$ret$0 = $this.z3d_1.b1();
1178
1178
  return tmp$ret$0;
1179
1179
  }
1180
1180
  function ProbTerm$isGround$delegate$lambda(this$0) {
1181
1181
  return function () {
1182
1182
  var tmp;
1183
- if (this$0.s3d_1.jx()) {
1183
+ if (this$0.v3d_1.jx()) {
1184
1184
  var tmp$ret$0;
1185
1185
  $l$block_0: {
1186
1186
  // Inline function 'kotlin.collections.any' call
1187
- var tmp0_any = this$0.t3d_1;
1187
+ var tmp0_any = this$0.w3d_1;
1188
1188
  var tmp_0;
1189
1189
  if (isInterface(tmp0_any, Collection)) {
1190
1190
  tmp_0 = tmp0_any.d();
@@ -1217,230 +1217,230 @@
1217
1217
  }
1218
1218
  function ProbTerm$cachedHashCode$delegate$lambda(this$0) {
1219
1219
  return function () {
1220
- var result = this$0.q3d_1.hashCode();
1221
- result = imul(31, result) + getNumberHashCode(this$0.r3d_1) | 0;
1222
- result = imul(31, result) + this$0.s3d_1.hashCode() | 0;
1223
- result = imul(31, result) + hashCode(this$0.t3d_1) | 0;
1220
+ var result = this$0.t3d_1.hashCode();
1221
+ result = imul(31, result) + getNumberHashCode(this$0.u3d_1) | 0;
1222
+ result = imul(31, result) + this$0.v3d_1.hashCode() | 0;
1223
+ result = imul(31, result) + hashCode(this$0.w3d_1) | 0;
1224
1224
  return result;
1225
1225
  };
1226
1226
  }
1227
1227
  function ProbTerm(id, probability, term, extraVariables) {
1228
- this.q3d_1 = id;
1229
- this.r3d_1 = probability;
1230
- this.s3d_1 = term;
1231
- this.t3d_1 = extraVariables;
1232
- this.u3d_1 = Companion_getInstance_3().of(get_ANNOTATION_FUNCTOR(), [Companion_getInstance_10().ofDouble(probability), term]);
1228
+ this.t3d_1 = id;
1229
+ this.u3d_1 = probability;
1230
+ this.v3d_1 = term;
1231
+ this.w3d_1 = extraVariables;
1232
+ this.x3d_1 = Companion_getInstance_3().of(get_ANNOTATION_FUNCTOR(), [Companion_getInstance_10().ofDouble(probability), term]);
1233
1233
  var tmp = this;
1234
- tmp.v3d_1 = lazy(ProbTerm$isGround$delegate$lambda(this));
1234
+ tmp.y3d_1 = lazy(ProbTerm$isGround$delegate$lambda(this));
1235
1235
  var tmp_0 = this;
1236
- tmp_0.w3d_1 = lazy(ProbTerm$cachedHashCode$delegate$lambda(this));
1236
+ tmp_0.z3d_1 = lazy(ProbTerm$cachedHashCode$delegate$lambda(this));
1237
1237
  }
1238
1238
  ProbTerm.prototype.aw = function () {
1239
- return this.u3d_1.aw();
1239
+ return this.x3d_1.aw();
1240
1240
  };
1241
1241
  ProbTerm.prototype.mw = function () {
1242
- return this.u3d_1.mw();
1242
+ return this.x3d_1.mw();
1243
1243
  };
1244
1244
  ProbTerm.prototype.sw = function () {
1245
- return this.u3d_1.sw();
1245
+ return this.x3d_1.sw();
1246
1246
  };
1247
1247
  ProbTerm.prototype.ex = function () {
1248
- return this.u3d_1.ex();
1248
+ return this.x3d_1.ex();
1249
1249
  };
1250
1250
  ProbTerm.prototype.bw = function () {
1251
- return this.u3d_1.bw();
1251
+ return this.x3d_1.bw();
1252
1252
  };
1253
1253
  ProbTerm.prototype.cw = function () {
1254
- return this.u3d_1.cw();
1254
+ return this.x3d_1.cw();
1255
1255
  };
1256
1256
  ProbTerm.prototype.uw = function () {
1257
- return this.u3d_1.uw();
1257
+ return this.x3d_1.uw();
1258
1258
  };
1259
1259
  ProbTerm.prototype.gx = function () {
1260
- return this.u3d_1.gx();
1260
+ return this.x3d_1.gx();
1261
1261
  };
1262
1262
  ProbTerm.prototype.rw = function () {
1263
- return this.u3d_1.rw();
1263
+ return this.x3d_1.rw();
1264
1264
  };
1265
1265
  ProbTerm.prototype.fx = function () {
1266
- return this.u3d_1.fx();
1266
+ return this.x3d_1.fx();
1267
1267
  };
1268
1268
  ProbTerm.prototype.hx = function () {
1269
- return this.u3d_1.hx();
1269
+ return this.x3d_1.hx();
1270
1270
  };
1271
1271
  ProbTerm.prototype.lw = function () {
1272
- return this.u3d_1.lw();
1272
+ return this.x3d_1.lw();
1273
1273
  };
1274
1274
  ProbTerm.prototype.dw = function () {
1275
- return this.u3d_1.dw();
1275
+ return this.x3d_1.dw();
1276
1276
  };
1277
1277
  ProbTerm.prototype.qw = function () {
1278
- return this.u3d_1.qw();
1278
+ return this.x3d_1.qw();
1279
1279
  };
1280
1280
  ProbTerm.prototype.bx = function () {
1281
- return this.u3d_1.bx();
1281
+ return this.x3d_1.bx();
1282
1282
  };
1283
1283
  ProbTerm.prototype.kt = function () {
1284
- return this.u3d_1.kt();
1284
+ return this.x3d_1.kt();
1285
1285
  };
1286
1286
  ProbTerm.prototype.hw = function () {
1287
- return this.u3d_1.hw();
1287
+ return this.x3d_1.hw();
1288
1288
  };
1289
1289
  ProbTerm.prototype.accept = function (visitor) {
1290
- return this.u3d_1.accept(visitor);
1290
+ return this.x3d_1.accept(visitor);
1291
1291
  };
1292
1292
  ProbTerm.prototype.asAtom = function () {
1293
- return this.u3d_1.asAtom();
1293
+ return this.x3d_1.asAtom();
1294
1294
  };
1295
1295
  ProbTerm.prototype.asBlock = function () {
1296
- return this.u3d_1.asBlock();
1296
+ return this.x3d_1.asBlock();
1297
1297
  };
1298
1298
  ProbTerm.prototype.asClause = function () {
1299
- return this.u3d_1.asClause();
1299
+ return this.x3d_1.asClause();
1300
1300
  };
1301
1301
  ProbTerm.prototype.asCons = function () {
1302
- return this.u3d_1.asCons();
1302
+ return this.x3d_1.asCons();
1303
1303
  };
1304
1304
  ProbTerm.prototype.asConstant = function () {
1305
- return this.u3d_1.asConstant();
1305
+ return this.x3d_1.asConstant();
1306
1306
  };
1307
1307
  ProbTerm.prototype.asDirective = function () {
1308
- return this.u3d_1.asDirective();
1308
+ return this.x3d_1.asDirective();
1309
1309
  };
1310
1310
  ProbTerm.prototype.asEmptyBlock = function () {
1311
- return this.u3d_1.asEmptyBlock();
1311
+ return this.x3d_1.asEmptyBlock();
1312
1312
  };
1313
1313
  ProbTerm.prototype.asEmptyList = function () {
1314
- return this.u3d_1.asEmptyList();
1314
+ return this.x3d_1.asEmptyList();
1315
1315
  };
1316
1316
  ProbTerm.prototype.asFact = function () {
1317
- return this.u3d_1.asFact();
1317
+ return this.x3d_1.asFact();
1318
1318
  };
1319
1319
  ProbTerm.prototype.asIndicator = function () {
1320
- return this.u3d_1.asIndicator();
1320
+ return this.x3d_1.asIndicator();
1321
1321
  };
1322
1322
  ProbTerm.prototype.asInteger = function () {
1323
- return this.u3d_1.asInteger();
1323
+ return this.x3d_1.asInteger();
1324
1324
  };
1325
1325
  ProbTerm.prototype.asList = function () {
1326
- return this.u3d_1.asList();
1326
+ return this.x3d_1.asList();
1327
1327
  };
1328
1328
  ProbTerm.prototype.asNumeric = function () {
1329
- return this.u3d_1.asNumeric();
1329
+ return this.x3d_1.asNumeric();
1330
1330
  };
1331
1331
  ProbTerm.prototype.asReal = function () {
1332
- return this.u3d_1.asReal();
1332
+ return this.x3d_1.asReal();
1333
1333
  };
1334
1334
  ProbTerm.prototype.asRecursive = function () {
1335
- return this.u3d_1.asRecursive();
1335
+ return this.x3d_1.asRecursive();
1336
1336
  };
1337
1337
  ProbTerm.prototype.asRule = function () {
1338
- return this.u3d_1.asRule();
1338
+ return this.x3d_1.asRule();
1339
1339
  };
1340
1340
  ProbTerm.prototype.asStruct = function () {
1341
- return this.u3d_1.vw();
1341
+ return this.x3d_1.vw();
1342
1342
  };
1343
1343
  ProbTerm.prototype.asTerm = function () {
1344
- return this.u3d_1.asTerm();
1344
+ return this.x3d_1.asTerm();
1345
1345
  };
1346
1346
  ProbTerm.prototype.asTruth = function () {
1347
- return this.u3d_1.asTruth();
1347
+ return this.x3d_1.asTruth();
1348
1348
  };
1349
1349
  ProbTerm.prototype.asTuple = function () {
1350
- return this.u3d_1.asTuple();
1350
+ return this.x3d_1.asTuple();
1351
1351
  };
1352
1352
  ProbTerm.prototype.asVar = function () {
1353
- return this.u3d_1.asVar();
1353
+ return this.x3d_1.asVar();
1354
1354
  };
1355
1355
  ProbTerm.prototype.zw = function () {
1356
- return this.u3d_1.zw();
1356
+ return this.x3d_1.zw();
1357
1357
  };
1358
1358
  ProbTerm.prototype.qq = function () {
1359
1359
  return this.zw();
1360
1360
  };
1361
1361
  ProbTerm.prototype.castToAtom = function () {
1362
- return this.u3d_1.castToAtom();
1362
+ return this.x3d_1.castToAtom();
1363
1363
  };
1364
1364
  ProbTerm.prototype.castToBlock = function () {
1365
- return this.u3d_1.castToBlock();
1365
+ return this.x3d_1.castToBlock();
1366
1366
  };
1367
1367
  ProbTerm.prototype.castToClause = function () {
1368
- return this.u3d_1.castToClause();
1368
+ return this.x3d_1.castToClause();
1369
1369
  };
1370
1370
  ProbTerm.prototype.castToCons = function () {
1371
- return this.u3d_1.castToCons();
1371
+ return this.x3d_1.castToCons();
1372
1372
  };
1373
1373
  ProbTerm.prototype.castToConstant = function () {
1374
- return this.u3d_1.castToConstant();
1374
+ return this.x3d_1.castToConstant();
1375
1375
  };
1376
1376
  ProbTerm.prototype.castToDirective = function () {
1377
- return this.u3d_1.castToDirective();
1377
+ return this.x3d_1.castToDirective();
1378
1378
  };
1379
1379
  ProbTerm.prototype.castToEmptyBlock = function () {
1380
- return this.u3d_1.castToEmptyBlock();
1380
+ return this.x3d_1.castToEmptyBlock();
1381
1381
  };
1382
1382
  ProbTerm.prototype.castToEmptyList = function () {
1383
- return this.u3d_1.castToEmptyList();
1383
+ return this.x3d_1.castToEmptyList();
1384
1384
  };
1385
1385
  ProbTerm.prototype.castToFact = function () {
1386
- return this.u3d_1.castToFact();
1386
+ return this.x3d_1.castToFact();
1387
1387
  };
1388
1388
  ProbTerm.prototype.castToIndicator = function () {
1389
- return this.u3d_1.castToIndicator();
1389
+ return this.x3d_1.castToIndicator();
1390
1390
  };
1391
1391
  ProbTerm.prototype.castToInteger = function () {
1392
- return this.u3d_1.castToInteger();
1392
+ return this.x3d_1.castToInteger();
1393
1393
  };
1394
1394
  ProbTerm.prototype.castToList = function () {
1395
- return this.u3d_1.castToList();
1395
+ return this.x3d_1.castToList();
1396
1396
  };
1397
1397
  ProbTerm.prototype.castToNumeric = function () {
1398
- return this.u3d_1.castToNumeric();
1398
+ return this.x3d_1.castToNumeric();
1399
1399
  };
1400
1400
  ProbTerm.prototype.castToReal = function () {
1401
- return this.u3d_1.castToReal();
1401
+ return this.x3d_1.castToReal();
1402
1402
  };
1403
1403
  ProbTerm.prototype.castToRecursive = function () {
1404
- return this.u3d_1.castToRecursive();
1404
+ return this.x3d_1.castToRecursive();
1405
1405
  };
1406
1406
  ProbTerm.prototype.castToRule = function () {
1407
- return this.u3d_1.castToRule();
1407
+ return this.x3d_1.castToRule();
1408
1408
  };
1409
1409
  ProbTerm.prototype.castToStruct = function () {
1410
- return this.u3d_1.castToStruct();
1410
+ return this.x3d_1.castToStruct();
1411
1411
  };
1412
1412
  ProbTerm.prototype.castToTerm = function () {
1413
- return this.u3d_1.castToTerm();
1413
+ return this.x3d_1.castToTerm();
1414
1414
  };
1415
1415
  ProbTerm.prototype.castToTruth = function () {
1416
- return this.u3d_1.castToTruth();
1416
+ return this.x3d_1.castToTruth();
1417
1417
  };
1418
1418
  ProbTerm.prototype.castToTuple = function () {
1419
- return this.u3d_1.castToTuple();
1419
+ return this.x3d_1.castToTuple();
1420
1420
  };
1421
1421
  ProbTerm.prototype.castToVar = function () {
1422
- return this.u3d_1.castToVar();
1422
+ return this.x3d_1.castToVar();
1423
1423
  };
1424
1424
  ProbTerm.prototype.containsTag = function (name) {
1425
- return this.u3d_1.containsTag(name);
1425
+ return this.x3d_1.containsTag(name);
1426
1426
  };
1427
1427
  ProbTerm.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
1428
- return this.u3d_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1428
+ return this.x3d_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1429
1429
  };
1430
1430
  ProbTerm.prototype.getTag = function (name) {
1431
- return this.u3d_1.getTag(name);
1431
+ return this.x3d_1.getTag(name);
1432
1432
  };
1433
1433
  ProbTerm.prototype.resetTags = function (tags) {
1434
- return this.u3d_1.resetTags(tags);
1434
+ return this.x3d_1.resetTags(tags);
1435
1435
  };
1436
1436
  ProbTerm.prototype.structurallyEquals = function (other) {
1437
- return this.u3d_1.structurallyEquals(other);
1437
+ return this.x3d_1.structurallyEquals(other);
1438
1438
  };
1439
1439
  ProbTerm.prototype.iw = function () {
1440
- var termCopy = this.s3d_1.freshCopy();
1440
+ var termCopy = this.v3d_1.freshCopy();
1441
1441
  var tmp$ret$2;
1442
1442
  // Inline function 'kotlin.collections.map' call
1443
- var tmp0_map = this.t3d_1;
1443
+ var tmp0_map = this.w3d_1;
1444
1444
  var tmp$ret$1;
1445
1445
  // Inline function 'kotlin.collections.mapTo' call
1446
1446
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
@@ -1454,16 +1454,16 @@
1454
1454
  }
1455
1455
  tmp$ret$1 = tmp0_mapTo;
1456
1456
  tmp$ret$2 = tmp$ret$1;
1457
- return new ProbTerm(this.q3d_1, this.r3d_1, termCopy, toSet(tmp$ret$2));
1457
+ return new ProbTerm(this.t3d_1, this.u3d_1, termCopy, toSet(tmp$ret$2));
1458
1458
  };
1459
1459
  ProbTerm.prototype.freshCopy = function () {
1460
1460
  return this.iw();
1461
1461
  };
1462
1462
  ProbTerm.prototype.jw = function (scope) {
1463
- var termCopy = this.s3d_1.freshCopyFromScope(scope);
1463
+ var termCopy = this.v3d_1.freshCopyFromScope(scope);
1464
1464
  var tmp$ret$2;
1465
1465
  // Inline function 'kotlin.collections.map' call
1466
- var tmp0_map = this.t3d_1;
1466
+ var tmp0_map = this.w3d_1;
1467
1467
  var tmp$ret$1;
1468
1468
  // Inline function 'kotlin.collections.mapTo' call
1469
1469
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
@@ -1477,22 +1477,22 @@
1477
1477
  }
1478
1478
  tmp$ret$1 = tmp0_mapTo;
1479
1479
  tmp$ret$2 = tmp$ret$1;
1480
- return new ProbTerm(this.q3d_1, this.r3d_1, termCopy, toSet(tmp$ret$2));
1480
+ return new ProbTerm(this.t3d_1, this.u3d_1, termCopy, toSet(tmp$ret$2));
1481
1481
  };
1482
1482
  ProbTerm.prototype.freshCopyFromScope = function (scope) {
1483
1483
  return this.jw(scope);
1484
1484
  };
1485
- ProbTerm.prototype.b2p = function (substitution, substitutions) {
1486
- return this.c2p(substitution, substitutions.slice());
1485
+ ProbTerm.prototype.e2p = function (substitution, substitutions) {
1486
+ return this.f2p(substitution, substitutions.slice());
1487
1487
  };
1488
1488
  ProbTerm.prototype.getSubstituted = function (substitution, substitutions) {
1489
- return this.b2p(substitution, substitutions);
1489
+ return this.e2p(substitution, substitutions);
1490
1490
  };
1491
- ProbTerm.prototype.c2p = function (substitution, substitutions) {
1491
+ ProbTerm.prototype.f2p = function (substitution, substitutions) {
1492
1492
  return this.s16(Companion_getInstance_9().ofSubstitution(substitution, substitutions.slice()));
1493
1493
  };
1494
1494
  ProbTerm.prototype.apply = function (substitution, substitutions) {
1495
- return this.c2p(substitution, substitutions);
1495
+ return this.f2p(substitution, substitutions);
1496
1496
  };
1497
1497
  ProbTerm.prototype.s16 = function (substitution) {
1498
1498
  var tmp;
@@ -1503,7 +1503,7 @@
1503
1503
  var tmp$ret$0;
1504
1504
  $l$block_0: {
1505
1505
  // Inline function 'kotlin.collections.any' call
1506
- var tmp0_any = this.t3d_1;
1506
+ var tmp0_any = this.w3d_1;
1507
1507
  var tmp_1;
1508
1508
  if (isInterface(tmp0_any, Collection)) {
1509
1509
  tmp_1 = tmp0_any.d();
@@ -1528,11 +1528,11 @@
1528
1528
  tmp$ret$0 = false;
1529
1529
  }
1530
1530
  if (!tmp$ret$0) {
1531
- tmp_0 = this.t3d_1;
1531
+ tmp_0 = this.w3d_1;
1532
1532
  } else {
1533
1533
  var tmp$ret$5;
1534
1534
  // Inline function 'kotlin.collections.mapNotNull' call
1535
- var tmp1_mapNotNull = this.t3d_1;
1535
+ var tmp1_mapNotNull = this.w3d_1;
1536
1536
  var tmp$ret$4;
1537
1537
  // Inline function 'kotlin.collections.mapNotNullTo' call
1538
1538
  var tmp0_mapNotNullTo = ArrayList_init_$Create$_0();
@@ -1560,7 +1560,7 @@
1560
1560
  tmp_0 = toSet(tmp$ret$5);
1561
1561
  }
1562
1562
  var newExtraVars = tmp_0;
1563
- tmp = new ProbTerm(this.q3d_1, this.r3d_1, this.s3d_1.applySubstitution(substitution), newExtraVars);
1563
+ tmp = new ProbTerm(this.t3d_1, this.u3d_1, this.v3d_1.applySubstitution(substitution), newExtraVars);
1564
1564
  }
1565
1565
  return tmp;
1566
1566
  };
@@ -1571,23 +1571,23 @@
1571
1571
  var tmp$ret$0;
1572
1572
  // Inline function 'kotlin.getValue' call
1573
1573
  var tmp0_getValue = isGround$factory();
1574
- tmp$ret$0 = this.v3d_1.b1();
1574
+ tmp$ret$0 = this.y3d_1.b1();
1575
1575
  return tmp$ret$0;
1576
1576
  };
1577
1577
  ProbTerm.prototype.ax = function (other) {
1578
1578
  if (!(other instanceof ProbTerm)) {
1579
1579
  return compareTo.call(this, other);
1580
1580
  }
1581
- var res = this.q3d_1.jd(other.q3d_1);
1581
+ var res = this.t3d_1.jd(other.t3d_1);
1582
1582
  if (!(res === 0))
1583
1583
  return res;
1584
- res = this.s3d_1.ax(other.s3d_1);
1584
+ res = this.v3d_1.ax(other.v3d_1);
1585
1585
  if (!(res === 0))
1586
1586
  return res;
1587
- res = equals(this.t3d_1, other.t3d_1) ? 0 : -1;
1587
+ res = equals(this.w3d_1, other.w3d_1) ? 0 : -1;
1588
1588
  if (!(res === 0))
1589
1589
  return res;
1590
- res = compareTo_0(this.r3d_1, other.r3d_1);
1590
+ res = compareTo_0(this.u3d_1, other.u3d_1);
1591
1591
  return res;
1592
1592
  };
1593
1593
  ProbTerm.prototype.aa = function (other) {
@@ -1606,7 +1606,7 @@
1606
1606
  return _get_cachedHashCode__d7x0zy(this);
1607
1607
  };
1608
1608
  ProbTerm.prototype.toString = function () {
1609
- return '' + round(this.r3d_1 * 100) / 100.0 + '::' + this.s3d_1;
1609
+ return '' + round(this.u3d_1 * 100) / 100.0 + '::' + this.v3d_1;
1610
1610
  };
1611
1611
  function isGround$factory() {
1612
1612
  return getPropertyCallableRef('isGround', 1, KProperty1, function (receiver) {
@@ -1729,7 +1729,7 @@
1729
1729
  function AnnotatedDisjunctionClauseMapper() {
1730
1730
  AnnotatedDisjunctionClauseMapper_instance = this;
1731
1731
  }
1732
- AnnotatedDisjunctionClauseMapper.prototype.a3e = function (clause) {
1732
+ AnnotatedDisjunctionClauseMapper.prototype.d3e = function (clause) {
1733
1733
  var tmp;
1734
1734
  if (isInterface(clause, Rule)) {
1735
1735
  var tmp_0 = clause.ly().fw();
@@ -1740,7 +1740,7 @@
1740
1740
  }
1741
1741
  return tmp;
1742
1742
  };
1743
- AnnotatedDisjunctionClauseMapper.prototype.b3e = function (clause) {
1743
+ AnnotatedDisjunctionClauseMapper.prototype.e3e = function (clause) {
1744
1744
  if (!isInterface(clause, Rule)) {
1745
1745
  var tmp = 'Clause is not an instance of Rule: ' + clause;
1746
1746
  throw ClauseMappingException_init_$Create$(tmp, null, 2, null);
@@ -1774,13 +1774,13 @@
1774
1774
  }
1775
1775
  var curRuleHead = tmp_1;
1776
1776
  probSum = probSum + curProb;
1777
- tmp$ret$1 = ProbabilisticClauseMapper_getInstance().c3e(Companion_getInstance_12().of(Companion_getInstance_3().of(get_ANNOTATION_FUNCTOR(), [Companion_getInstance_10().ofDouble(curProb / (1.0 - (probSum - curProb))), curRuleHead]), [body]));
1777
+ tmp$ret$1 = ProbabilisticClauseMapper_getInstance().f3e(Companion_getInstance_12().of(Companion_getInstance_3().of(get_ANNOTATION_FUNCTOR(), [Companion_getInstance_10().ofDouble(curProb / (1.0 - (probSum - curProb))), curRuleHead]), [body]));
1778
1778
  tmp0_mapTo.g(tmp$ret$1);
1779
1779
  }
1780
1780
  tmp$ret$2 = tmp0_mapTo;
1781
1781
  tmp$ret$3 = tmp$ret$2;
1782
1782
  var mappedRules = toList_0(tmp$ret$3);
1783
- var explanation = Companion_getInstance_21().l3d_1;
1783
+ var explanation = Companion_getInstance_21().o3d_1;
1784
1784
  var tmp$ret$6;
1785
1785
  // Inline function 'kotlin.collections.map' call
1786
1786
  var tmp$ret$5;
@@ -1791,10 +1791,10 @@
1791
1791
  var item_0 = tmp0_iterator_0.p();
1792
1792
  var tmp$ret$4;
1793
1793
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.AnnotatedDisjunctionClauseMapper.apply.<anonymous>' call
1794
- var thisExplanation = Companion_getInstance_21().p3d(item_0.h4_1);
1794
+ var thisExplanation = Companion_getInstance_21().s3d(item_0.h4_1);
1795
1795
  var resultExplanation = thisExplanation.and(explanation);
1796
1796
  explanation = explanation.and(thisExplanation.not());
1797
- tmp$ret$4 = ProbabilisticClauseMapper_getInstance().d3e(item_0.g4_1, resultExplanation);
1797
+ tmp$ret$4 = ProbabilisticClauseMapper_getInstance().g3e(item_0.g4_1, resultExplanation);
1798
1798
  tmp0_mapTo_0.g(tmp$ret$4);
1799
1799
  }
1800
1800
  tmp$ret$5 = tmp0_mapTo_0;
@@ -1809,7 +1809,7 @@
1809
1809
  }
1810
1810
  function BinaryDecisionDiagramExplanation_init_$Init$(diagram, computedValue, $mask0, $marker, $this) {
1811
1811
  if (!(($mask0 & 2) === 0))
1812
- computedValue = Companion_getInstance_23().m3d_1;
1812
+ computedValue = Companion_getInstance_23().p3d_1;
1813
1813
  BinaryDecisionDiagramExplanation.call($this, diagram, computedValue);
1814
1814
  return $this;
1815
1815
  }
@@ -1817,13 +1817,13 @@
1817
1817
  return BinaryDecisionDiagramExplanation_init_$Init$(diagram, computedValue, $mask0, $marker, Object.create(BinaryDecisionDiagramExplanation.prototype));
1818
1818
  }
1819
1819
  function ComputedValue(probability) {
1820
- this.e3e_1 = probability;
1820
+ this.h3e_1 = probability;
1821
1821
  }
1822
1822
  ComputedValue.prototype.toString = function () {
1823
- return 'ComputedValue(probability=' + this.e3e_1 + ')';
1823
+ return 'ComputedValue(probability=' + this.h3e_1 + ')';
1824
1824
  };
1825
1825
  ComputedValue.prototype.hashCode = function () {
1826
- return this.e3e_1 == null ? 0 : getNumberHashCode(this.e3e_1);
1826
+ return this.h3e_1 == null ? 0 : getNumberHashCode(this.h3e_1);
1827
1827
  };
1828
1828
  ComputedValue.prototype.equals = function (other) {
1829
1829
  if (this === other)
@@ -1831,15 +1831,15 @@
1831
1831
  if (!(other instanceof ComputedValue))
1832
1832
  return false;
1833
1833
  var tmp0_other_with_cast = other instanceof ComputedValue ? other : THROW_CCE();
1834
- if (!equals(this.e3e_1, tmp0_other_with_cast.e3e_1))
1834
+ if (!equals(this.h3e_1, tmp0_other_with_cast.h3e_1))
1835
1835
  return false;
1836
1836
  return true;
1837
1837
  };
1838
1838
  function Companion_2() {
1839
1839
  Companion_instance_2 = this;
1840
- this.m3d_1 = new ComputedValue(null);
1841
- this.n3d_1 = new ComputedValue(0.0);
1842
- this.o3d_1 = new ComputedValue(1.0);
1840
+ this.p3d_1 = new ComputedValue(null);
1841
+ this.q3d_1 = new ComputedValue(0.0);
1842
+ this.r3d_1 = new ComputedValue(1.0);
1843
1843
  }
1844
1844
  var Companion_instance_2;
1845
1845
  function Companion_getInstance_23() {
@@ -1855,8 +1855,8 @@
1855
1855
  }
1856
1856
  function computeExpansion($this, value, low, high) {
1857
1857
  var tmp;
1858
- if (!(low.e3e_1 == null) ? !(high.e3e_1 == null) : false) {
1859
- tmp = value.r3d_1 * high.e3e_1 + (1.0 - value.r3d_1) * low.e3e_1;
1858
+ if (!(low.h3e_1 == null) ? !(high.h3e_1 == null) : false) {
1859
+ tmp = value.u3d_1 * high.h3e_1 + (1.0 - value.u3d_1) * low.h3e_1;
1860
1860
  } else {
1861
1861
  tmp = null;
1862
1862
  }
@@ -1866,7 +1866,7 @@
1866
1866
  var tmp$ret$0;
1867
1867
  // Inline function 'kotlin.getValue' call
1868
1868
  var tmp0_getValue = cachedNot$factory();
1869
- tmp$ret$0 = $this.l3c_1.b1();
1869
+ tmp$ret$0 = $this.o3c_1.b1();
1870
1870
  return tmp$ret$0;
1871
1871
  }
1872
1872
  function BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda$lambda(this$0) {
@@ -1876,9 +1876,9 @@
1876
1876
  }
1877
1877
  function BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda(this$0) {
1878
1878
  return function () {
1879
- var tmp = Companion_getInstance_23().n3d_1;
1880
- var tmp_0 = Companion_getInstance_23().o3d_1;
1881
- var result = notThenExpansion(this$0.j3c_1, tmp, tmp_0, BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda$lambda(this$0));
1879
+ var tmp = Companion_getInstance_23().q3d_1;
1880
+ var tmp_0 = Companion_getInstance_23().r3d_1;
1881
+ var result = notThenExpansion(this$0.m3c_1, tmp, tmp_0, BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda$lambda(this$0));
1882
1882
  return new BinaryDecisionDiagramExplanation(result.g4_1, result.h4_1);
1883
1883
  };
1884
1884
  }
@@ -1893,14 +1893,14 @@
1893
1893
  };
1894
1894
  }
1895
1895
  function BinaryDecisionDiagramExplanation$probability$delegate$lambda$lambda(node, low, high) {
1896
- return node.r3d_1 * high + (1.0 - node.r3d_1) * low;
1896
+ return node.u3d_1 * high + (1.0 - node.u3d_1) * low;
1897
1897
  }
1898
1898
  function BinaryDecisionDiagramExplanation$probability$delegate$lambda(this$0) {
1899
1899
  return function () {
1900
- var tmp0_elvis_lhs = this$0.k3c_1.e3e_1;
1900
+ var tmp0_elvis_lhs = this$0.n3c_1.h3e_1;
1901
1901
  var tmp;
1902
1902
  if (tmp0_elvis_lhs == null) {
1903
- tmp = expansion(this$0.j3c_1, 0.0, 1.0, BinaryDecisionDiagramExplanation$probability$delegate$lambda$lambda);
1903
+ tmp = expansion(this$0.m3c_1, 0.0, 1.0, BinaryDecisionDiagramExplanation$probability$delegate$lambda$lambda);
1904
1904
  } else {
1905
1905
  tmp = tmp0_elvis_lhs;
1906
1906
  }
@@ -1912,7 +1912,7 @@
1912
1912
  }
1913
1913
  function BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda(this$0) {
1914
1914
  return function () {
1915
- return anyWhere(this$0.j3c_1, BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda$lambda);
1915
+ return anyWhere(this$0.m3c_1, BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda$lambda);
1916
1916
  };
1917
1917
  }
1918
1918
  function BinaryDecisionDiagramExplanation$apply$lambda($transformation) {
@@ -1922,64 +1922,64 @@
1922
1922
  }
1923
1923
  function BinaryDecisionDiagramExplanation(diagram, computedValue) {
1924
1924
  Companion_getInstance_23();
1925
- this.j3c_1 = diagram;
1926
- this.k3c_1 = computedValue;
1925
+ this.m3c_1 = diagram;
1926
+ this.n3c_1 = computedValue;
1927
1927
  var tmp = this;
1928
- tmp.l3c_1 = lazy(BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda(this));
1928
+ tmp.o3c_1 = lazy(BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda(this));
1929
1929
  var tmp_0 = this;
1930
- tmp_0.m3c_1 = lazy(BinaryDecisionDiagramExplanation$probability$delegate$lambda(this));
1930
+ tmp_0.p3c_1 = lazy(BinaryDecisionDiagramExplanation$probability$delegate$lambda(this));
1931
1931
  var tmp_1 = this;
1932
- tmp_1.n3c_1 = lazy(BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda(this));
1932
+ tmp_1.q3c_1 = lazy(BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda(this));
1933
1933
  }
1934
- BinaryDecisionDiagramExplanation.prototype.f3e = function () {
1934
+ BinaryDecisionDiagramExplanation.prototype.i3e = function () {
1935
1935
  return _get_cachedNot__l38068(this);
1936
1936
  };
1937
1937
  BinaryDecisionDiagramExplanation.prototype.not = function () {
1938
- return this.f3e();
1938
+ return this.i3e();
1939
1939
  };
1940
- BinaryDecisionDiagramExplanation.prototype.g3e = function (that) {
1941
- var tmp = getAsInternal(this, that).j3c_1;
1942
- var tmp_0 = Companion_getInstance_23().n3d_1;
1943
- var tmp_1 = Companion_getInstance_23().o3d_1;
1944
- var result = andThenExpansion(this.j3c_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$and$lambda(this));
1940
+ BinaryDecisionDiagramExplanation.prototype.j3e = function (that) {
1941
+ var tmp = getAsInternal(this, that).m3c_1;
1942
+ var tmp_0 = Companion_getInstance_23().q3d_1;
1943
+ var tmp_1 = Companion_getInstance_23().r3d_1;
1944
+ var result = andThenExpansion(this.m3c_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$and$lambda(this));
1945
1945
  return new BinaryDecisionDiagramExplanation(result.g4_1, result.h4_1);
1946
1946
  };
1947
1947
  BinaryDecisionDiagramExplanation.prototype.and = function (that) {
1948
- return this.g3e(that);
1948
+ return this.j3e(that);
1949
1949
  };
1950
- BinaryDecisionDiagramExplanation.prototype.h3e = function (that) {
1951
- var tmp = getAsInternal(this, that).j3c_1;
1952
- var tmp_0 = Companion_getInstance_23().n3d_1;
1953
- var tmp_1 = Companion_getInstance_23().o3d_1;
1954
- var result = orThenExpansion(this.j3c_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$or$lambda(this));
1950
+ BinaryDecisionDiagramExplanation.prototype.k3e = function (that) {
1951
+ var tmp = getAsInternal(this, that).m3c_1;
1952
+ var tmp_0 = Companion_getInstance_23().q3d_1;
1953
+ var tmp_1 = Companion_getInstance_23().r3d_1;
1954
+ var result = orThenExpansion(this.m3c_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$or$lambda(this));
1955
1955
  return new BinaryDecisionDiagramExplanation(result.g4_1, result.h4_1);
1956
1956
  };
1957
1957
  BinaryDecisionDiagramExplanation.prototype.or = function (that) {
1958
- return this.h3e(that);
1958
+ return this.k3e(that);
1959
1959
  };
1960
- BinaryDecisionDiagramExplanation.prototype.x3d = function () {
1960
+ BinaryDecisionDiagramExplanation.prototype.a3e = function () {
1961
1961
  var tmp$ret$0;
1962
1962
  // Inline function 'kotlin.getValue' call
1963
1963
  var tmp0_getValue = probability$factory();
1964
- tmp$ret$0 = this.m3c_1.b1();
1964
+ tmp$ret$0 = this.p3c_1.b1();
1965
1965
  return tmp$ret$0;
1966
1966
  };
1967
- BinaryDecisionDiagramExplanation.prototype.z3d = function () {
1967
+ BinaryDecisionDiagramExplanation.prototype.c3e = function () {
1968
1968
  var tmp$ret$0;
1969
1969
  // Inline function 'kotlin.getValue' call
1970
1970
  var tmp0_getValue = containsAnyNotGroundTerm$factory();
1971
- tmp$ret$0 = this.n3c_1.b1();
1971
+ tmp$ret$0 = this.q3c_1.b1();
1972
1972
  return tmp$ret$0;
1973
1973
  };
1974
1974
  BinaryDecisionDiagramExplanation.prototype.toString = function () {
1975
- return 'bdd:' + hashCode(this.j3c_1);
1975
+ return 'bdd:' + hashCode(this.m3c_1);
1976
1976
  };
1977
- BinaryDecisionDiagramExplanation.prototype.i3e = function (transformation) {
1978
- var tmp = map_0(this.j3c_1, BinaryDecisionDiagramExplanation$apply$lambda(transformation));
1977
+ BinaryDecisionDiagramExplanation.prototype.l3e = function (transformation) {
1978
+ var tmp = map_0(this.m3c_1, BinaryDecisionDiagramExplanation$apply$lambda(transformation));
1979
1979
  return BinaryDecisionDiagramExplanation_init_$Create$(tmp, null, 2, null);
1980
1980
  };
1981
1981
  BinaryDecisionDiagramExplanation.prototype.applyTransformation = function (transformation) {
1982
- return this.i3e(transformation);
1982
+ return this.l3e(transformation);
1983
1983
  };
1984
1984
  function cachedNot$factory() {
1985
1985
  return getPropertyCallableRef('cachedNot', 1, KProperty1, function (receiver) {
@@ -1988,12 +1988,12 @@
1988
1988
  }
1989
1989
  function probability$factory() {
1990
1990
  return getPropertyCallableRef('probability', 1, KProperty1, function (receiver) {
1991
- return receiver.x3d();
1991
+ return receiver.a3e();
1992
1992
  }, null);
1993
1993
  }
1994
1994
  function containsAnyNotGroundTerm$factory() {
1995
1995
  return getPropertyCallableRef('containsAnyNotGroundTerm', 1, KProperty1, function (receiver) {
1996
- return receiver.z3d();
1996
+ return receiver.c3e();
1997
1997
  }, null);
1998
1998
  }
1999
1999
  function get_nonWrappableFunctors() {
@@ -2003,16 +2003,16 @@
2003
2003
  var nonWrappableFunctors;
2004
2004
  function ClauseMappingUtils() {
2005
2005
  ClauseMappingUtils_instance = this;
2006
- this.j3e_1 = new Long(1, 0);
2007
- this.k3e_1 = listOf_0([DirectiveClauseMapper_getInstance(), AnnotatedDisjunctionClauseMapper_getInstance(), ProbabilisticClauseMapper_getInstance(), EvidenceClauseMapper_getInstance(), PrologClauseMapper_getInstance(), NothingClauseMapper_getInstance()]);
2006
+ this.m3e_1 = new Long(1, 0);
2007
+ this.n3e_1 = listOf_0([DirectiveClauseMapper_getInstance(), AnnotatedDisjunctionClauseMapper_getInstance(), ProbabilisticClauseMapper_getInstance(), EvidenceClauseMapper_getInstance(), PrologClauseMapper_getInstance(), NothingClauseMapper_getInstance()]);
2008
2008
  }
2009
- ClauseMappingUtils.prototype.l3e = function () {
2009
+ ClauseMappingUtils.prototype.o3e = function () {
2010
2010
  var tmp0_this = this;
2011
- var tmp1 = tmp0_this.j3e_1;
2012
- tmp0_this.j3e_1 = tmp1.gh();
2011
+ var tmp1 = tmp0_this.m3e_1;
2012
+ tmp0_this.m3e_1 = tmp1.gh();
2013
2013
  return tmp1;
2014
2014
  };
2015
- ClauseMappingUtils.prototype.m3e = function (clause) {
2015
+ ClauseMappingUtils.prototype.p3e = function (clause) {
2016
2016
  var tmp;
2017
2017
  if (get_isMappedAsProblog(clause)) {
2018
2018
  tmp = listOf(clause);
@@ -2022,13 +2022,13 @@
2022
2022
  var tmp$ret$1;
2023
2023
  $l$block: {
2024
2024
  // Inline function 'kotlin.collections.first' call
2025
- var tmp0_first = this.k3e_1;
2025
+ var tmp0_first = this.n3e_1;
2026
2026
  var tmp0_iterator = tmp0_first.j();
2027
2027
  while (tmp0_iterator.m()) {
2028
2028
  var element = tmp0_iterator.p();
2029
2029
  var tmp$ret$0;
2030
2030
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.ClauseMappingUtils.map.<anonymous>' call
2031
- tmp$ret$0 = element.a3e(clause);
2031
+ tmp$ret$0 = element.d3e(clause);
2032
2032
  if (tmp$ret$0) {
2033
2033
  tmp$ret$1 = element;
2034
2034
  break $l$block;
@@ -2036,7 +2036,7 @@
2036
2036
  }
2037
2037
  throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
2038
2038
  }
2039
- var tmp1_map = tmp$ret$1.b3e(clause);
2039
+ var tmp1_map = tmp$ret$1.e3e(clause);
2040
2040
  var tmp$ret$3;
2041
2041
  // Inline function 'kotlin.collections.mapTo' call
2042
2042
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
@@ -2054,7 +2054,7 @@
2054
2054
  }
2055
2055
  return tmp;
2056
2056
  };
2057
- ClauseMappingUtils.prototype.n3e = function (indicator) {
2057
+ ClauseMappingUtils.prototype.q3e = function (indicator) {
2058
2058
  var arityTerm = indicator.o10();
2059
2059
  var tmp = Companion_getInstance_13();
2060
2060
  var tmp_0 = indicator.n10();
@@ -2175,7 +2175,7 @@
2175
2175
  }
2176
2176
  function withExplanationNonWrappable(_this__u8e3s4, explanation) {
2177
2177
  init_properties_ClauseMappingUtils_kt_i29ma0();
2178
- return Companion_getInstance_2().of(_this__u8e3s4, Companion_getInstance_3().of('=', [explanation, toTerm(Companion_getInstance_21().l3d_1)]));
2178
+ return Companion_getInstance_2().of(_this__u8e3s4, Companion_getInstance_3().of('=', [explanation, toTerm(Companion_getInstance_21().o3d_1)]));
2179
2179
  }
2180
2180
  function wrapInPredicate(_this__u8e3s4, functor, explanation) {
2181
2181
  init_properties_ClauseMappingUtils_kt_i29ma0();
@@ -2297,10 +2297,10 @@
2297
2297
  function DirectiveClauseMapper() {
2298
2298
  DirectiveClauseMapper_instance = this;
2299
2299
  }
2300
- DirectiveClauseMapper.prototype.a3e = function (clause) {
2300
+ DirectiveClauseMapper.prototype.d3e = function (clause) {
2301
2301
  return clause.ow();
2302
2302
  };
2303
- DirectiveClauseMapper.prototype.b3e = function (clause) {
2303
+ DirectiveClauseMapper.prototype.e3e = function (clause) {
2304
2304
  var body = clause.my();
2305
2305
  if (!isInterface(clause, Directive)) {
2306
2306
  var tmp = 'Clause is not an instance of Directive: ' + clause;
@@ -2346,7 +2346,7 @@
2346
2346
  function EvidenceClauseMapper() {
2347
2347
  EvidenceClauseMapper_instance = this;
2348
2348
  }
2349
- EvidenceClauseMapper.prototype.a3e = function (clause) {
2349
+ EvidenceClauseMapper.prototype.d3e = function (clause) {
2350
2350
  var tmp;
2351
2351
  if (isInterface(clause, Rule)) {
2352
2352
  var tmp_0 = clause.ly().fw();
@@ -2357,7 +2357,7 @@
2357
2357
  }
2358
2358
  return tmp;
2359
2359
  };
2360
- EvidenceClauseMapper.prototype.b3e = function (clause) {
2360
+ EvidenceClauseMapper.prototype.e3e = function (clause) {
2361
2361
  if (!isInterface(clause, Rule)) {
2362
2362
  var tmp = 'Clause is not an instance of Rule: ' + clause;
2363
2363
  throw ClauseMappingException_init_$Create$(tmp, null, 2, null);
@@ -2417,7 +2417,7 @@
2417
2417
  var tmp$ret$0;
2418
2418
  var tmp$ret$0_0;
2419
2419
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedMutableProblogTheory.<init>.<anonymous>' call
2420
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2420
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2421
2421
  tmp$ret$0_0 = Unit_getInstance();
2422
2422
  var list = tmp$ret$0;
2423
2423
  addAll(tmp0_flatMapTo, list);
@@ -2438,79 +2438,79 @@
2438
2438
  return MappedMutableProblogTheory_init_$Init$(clauses, unificator, theory, $mask0, $marker, Object.create(MappedMutableProblogTheory.prototype));
2439
2439
  }
2440
2440
  function MappedMutableProblogTheory(clauses, unificator, theory) {
2441
- this.o3e_1 = theory;
2441
+ this.r3e_1 = theory;
2442
2442
  }
2443
2443
  MappedMutableProblogTheory.prototype.t1l = function () {
2444
- return this.o3e_1.t1l();
2444
+ return this.r3e_1.t1l();
2445
2445
  };
2446
2446
  MappedMutableProblogTheory.prototype.m1l = function () {
2447
- return this.o3e_1.m1l();
2447
+ return this.r3e_1.m1l();
2448
2448
  };
2449
2449
  MappedMutableProblogTheory.prototype.o1l = function () {
2450
- return this.o3e_1.o1l();
2450
+ return this.r3e_1.o1l();
2451
2451
  };
2452
2452
  MappedMutableProblogTheory.prototype.k1s = function () {
2453
- return this.o3e_1.k1s();
2453
+ return this.r3e_1.k1s();
2454
2454
  };
2455
2455
  MappedMutableProblogTheory.prototype.o = function () {
2456
- return this.o3e_1.o();
2456
+ return this.r3e_1.o();
2457
2457
  };
2458
2458
  MappedMutableProblogTheory.prototype.kt = function () {
2459
- return this.o3e_1.kt();
2459
+ return this.r3e_1.kt();
2460
2460
  };
2461
2461
  MappedMutableProblogTheory.prototype.k1l = function () {
2462
- return this.o3e_1.k1l();
2462
+ return this.r3e_1.k1l();
2463
2463
  };
2464
2464
  MappedMutableProblogTheory.prototype.z1s = function () {
2465
- return this.o3e_1.z1s();
2465
+ return this.r3e_1.z1s();
2466
2466
  };
2467
2467
  MappedMutableProblogTheory.prototype.clone = function () {
2468
2468
  return this.z1s();
2469
2469
  };
2470
2470
  MappedMutableProblogTheory.prototype.contains = function (clause) {
2471
- return this.o3e_1.contains(clause);
2471
+ return this.r3e_1.contains(clause);
2472
2472
  };
2473
2473
  MappedMutableProblogTheory.prototype.containsIndicator = function (indicator) {
2474
- return this.o3e_1.containsIndicator(indicator);
2474
+ return this.r3e_1.containsIndicator(indicator);
2475
2475
  };
2476
2476
  MappedMutableProblogTheory.prototype.containsHead = function (head) {
2477
- return this.o3e_1.containsHead(head);
2477
+ return this.r3e_1.containsHead(head);
2478
2478
  };
2479
2479
  MappedMutableProblogTheory.prototype.containsTag = function (name) {
2480
- return this.o3e_1.containsTag(name);
2480
+ return this.r3e_1.containsTag(name);
2481
2481
  };
2482
2482
  MappedMutableProblogTheory.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
2483
- return this.o3e_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2483
+ return this.r3e_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2484
2484
  };
2485
2485
  MappedMutableProblogTheory.prototype.get = function (clause) {
2486
- return this.o3e_1.get(clause);
2486
+ return this.r3e_1.get(clause);
2487
2487
  };
2488
2488
  MappedMutableProblogTheory.prototype.getByIndicator = function (indicator) {
2489
- return this.o3e_1.getByIndicator(indicator);
2489
+ return this.r3e_1.getByIndicator(indicator);
2490
2490
  };
2491
2491
  MappedMutableProblogTheory.prototype.getByHead = function (head) {
2492
- return this.o3e_1.getByHead(head);
2492
+ return this.r3e_1.getByHead(head);
2493
2493
  };
2494
2494
  MappedMutableProblogTheory.prototype.getTag = function (name) {
2495
- return this.o3e_1.getTag(name);
2495
+ return this.r3e_1.getTag(name);
2496
2496
  };
2497
2497
  MappedMutableProblogTheory.prototype.j = function () {
2498
- return this.o3e_1.j();
2498
+ return this.r3e_1.j();
2499
2499
  };
2500
2500
  MappedMutableProblogTheory.prototype.o12 = function (tags) {
2501
- return this.o3e_1.o12(tags);
2501
+ return this.r3e_1.o12(tags);
2502
2502
  };
2503
2503
  MappedMutableProblogTheory.prototype.resetTags = function (tags) {
2504
2504
  return this.o12(tags);
2505
2505
  };
2506
2506
  MappedMutableProblogTheory.prototype.l1s = function (unificator) {
2507
- return this.o3e_1.l1s(unificator);
2507
+ return this.r3e_1.l1s(unificator);
2508
2508
  };
2509
2509
  MappedMutableProblogTheory.prototype.setUnificator = function (unificator) {
2510
2510
  return this.l1s(unificator);
2511
2511
  };
2512
2512
  MappedMutableProblogTheory.prototype.toStringAsProlog = function (asPrologText) {
2513
- return this.o3e_1.toStringAsProlog(asPrologText);
2513
+ return this.r3e_1.toStringAsProlog(asPrologText);
2514
2514
  };
2515
2515
  MappedMutableProblogTheory.prototype.a1t = function () {
2516
2516
  return false;
@@ -2527,17 +2527,17 @@
2527
2527
  MappedMutableProblogTheory.prototype.toImmutableTheory = function () {
2528
2528
  return this.a1s();
2529
2529
  };
2530
- MappedMutableProblogTheory.prototype.p3e = function (theory) {
2531
- return new MappedMutableProblogTheory(null, this.k1l(), this.o3e_1.n1s(theory));
2530
+ MappedMutableProblogTheory.prototype.s3e = function (theory) {
2531
+ return new MappedMutableProblogTheory(null, this.k1l(), this.r3e_1.n1s(theory));
2532
2532
  };
2533
2533
  MappedMutableProblogTheory.prototype.n1s = function (theory) {
2534
2534
  var tmp0_subject = theory;
2535
2535
  var tmp;
2536
2536
  if (isInterface(tmp0_subject, ProblogTheory)) {
2537
- tmp = this.p3e(theory);
2537
+ tmp = this.s3e(theory);
2538
2538
  } else {
2539
2539
  var tmp_0 = this.k1l();
2540
- tmp = this.p3e(MappedMutableProblogTheory_init_$Create$(theory, tmp_0, null, 4, null));
2540
+ tmp = this.s3e(MappedMutableProblogTheory_init_$Create$(theory, tmp_0, null, 4, null));
2541
2541
  }
2542
2542
  return tmp;
2543
2543
  };
@@ -2545,8 +2545,8 @@
2545
2545
  return this.n1s(theory);
2546
2546
  };
2547
2547
  MappedMutableProblogTheory.prototype.b1s = function (clause) {
2548
- var mapped = ClauseMappingUtils_getInstance().m3e(clause);
2549
- return new MappedMutableProblogTheory(null, this.k1l(), this.o3e_1.n1s(Companion_getInstance_18().indexedOfIterable(this.k1l(), mapped)));
2548
+ var mapped = ClauseMappingUtils_getInstance().p3e(clause);
2549
+ return new MappedMutableProblogTheory(null, this.k1l(), this.r3e_1.n1s(Companion_getInstance_18().indexedOfIterable(this.k1l(), mapped)));
2550
2550
  };
2551
2551
  MappedMutableProblogTheory.prototype.plus = function (clause) {
2552
2552
  return this.b1s(clause);
@@ -2562,14 +2562,14 @@
2562
2562
  var element = tmp0_iterator.p();
2563
2563
  var tmp$ret$0;
2564
2564
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedMutableProblogTheory.assertA.<anonymous>' call
2565
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2565
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2566
2566
  var list = tmp$ret$0;
2567
2567
  addAll(tmp0_flatMapTo, list);
2568
2568
  }
2569
2569
  tmp$ret$1 = tmp0_flatMapTo;
2570
2570
  tmp$ret$2 = tmp$ret$1;
2571
2571
  var mapped = tmp$ret$2;
2572
- return new MappedMutableProblogTheory(null, this.k1l(), this.o3e_1.r1s(mapped));
2572
+ return new MappedMutableProblogTheory(null, this.k1l(), this.r3e_1.r1s(mapped));
2573
2573
  };
2574
2574
  MappedMutableProblogTheory.prototype.assertAIterable = function (clauses) {
2575
2575
  return this.r1s(clauses);
@@ -2585,14 +2585,14 @@
2585
2585
  var element = tmp0_iterator.p();
2586
2586
  var tmp$ret$0;
2587
2587
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedMutableProblogTheory.assertZ.<anonymous>' call
2588
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2588
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2589
2589
  var list = tmp$ret$0;
2590
2590
  addAll(tmp0_flatMapTo, list);
2591
2591
  }
2592
2592
  tmp$ret$1 = tmp0_flatMapTo;
2593
2593
  tmp$ret$2 = tmp$ret$1;
2594
2594
  var mapped = tmp$ret$2;
2595
- return new MappedMutableProblogTheory(null, this.k1l(), this.o3e_1.u1s(mapped));
2595
+ return new MappedMutableProblogTheory(null, this.k1l(), this.r3e_1.u1s(mapped));
2596
2596
  };
2597
2597
  MappedMutableProblogTheory.prototype.assertZIterable = function (clauses) {
2598
2598
  return this.u1s(clauses);
@@ -2608,14 +2608,14 @@
2608
2608
  var element = tmp0_iterator.p();
2609
2609
  var tmp$ret$0;
2610
2610
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedMutableProblogTheory.retract.<anonymous>' call
2611
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2611
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2612
2612
  var list = tmp$ret$0;
2613
2613
  addAll(tmp0_flatMapTo, list);
2614
2614
  }
2615
2615
  tmp$ret$1 = tmp0_flatMapTo;
2616
2616
  tmp$ret$2 = tmp$ret$1;
2617
2617
  var mapped = tmp$ret$2;
2618
- var result = this.o3e_1.y1s(mapped);
2618
+ var result = this.r3e_1.y1s(mapped);
2619
2619
  var tmp;
2620
2620
  if (result instanceof Success) {
2621
2621
  tmp = new Success(new MappedMutableProblogTheory(null, this.k1l(), result.h1s()), result.i1t_1);
@@ -2628,7 +2628,7 @@
2628
2628
  return this.y1s(clauses);
2629
2629
  };
2630
2630
  MappedMutableProblogTheory.prototype.c1m = function (clause) {
2631
- var mappedClauses = ClauseMappingUtils_getInstance().m3e(clause);
2631
+ var mappedClauses = ClauseMappingUtils_getInstance().p3e(clause);
2632
2632
  var result = null;
2633
2633
  var tmp0_iterator = mappedClauses.j();
2634
2634
  while (tmp0_iterator.m()) {
@@ -2640,7 +2640,7 @@
2640
2640
  tmp = !(result instanceof Failure);
2641
2641
  }
2642
2642
  if (tmp) {
2643
- result = this.o3e_1.c1m(c);
2643
+ result = this.r3e_1.c1m(c);
2644
2644
  }
2645
2645
  }
2646
2646
  var tmp1_subject = result;
@@ -2660,7 +2660,7 @@
2660
2660
  return this.c1m(clause);
2661
2661
  };
2662
2662
  MappedMutableProblogTheory.prototype.g1s = function (indicator) {
2663
- return new MappedMutableProblogTheory(null, this.k1l(), this.o3e_1.g1s(ClauseMappingUtils_getInstance().n3e(indicator)));
2663
+ return new MappedMutableProblogTheory(null, this.k1l(), this.r3e_1.g1s(ClauseMappingUtils_getInstance().q3e(indicator)));
2664
2664
  };
2665
2665
  MappedMutableProblogTheory.prototype.abolish = function (indicator) {
2666
2666
  return this.g1s(indicator);
@@ -2748,7 +2748,7 @@
2748
2748
  var tmp$ret$0;
2749
2749
  var tmp$ret$0_0;
2750
2750
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedProblogTheory.<init>.<anonymous>' call
2751
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2751
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2752
2752
  tmp$ret$0_0 = Unit_getInstance();
2753
2753
  var list = tmp$ret$0;
2754
2754
  addAll(tmp0_flatMapTo, list);
@@ -2769,70 +2769,70 @@
2769
2769
  return MappedProblogTheory_init_$Init$(clauses, unificator, theory, $mask0, $marker, Object.create(MappedProblogTheory.prototype));
2770
2770
  }
2771
2771
  function MappedProblogTheory(clauses, unificator, theory) {
2772
- this.q3e_1 = theory;
2772
+ this.t3e_1 = theory;
2773
2773
  }
2774
2774
  MappedProblogTheory.prototype.t1l = function () {
2775
- return this.q3e_1.t1l();
2775
+ return this.t3e_1.t1l();
2776
2776
  };
2777
2777
  MappedProblogTheory.prototype.m1l = function () {
2778
- return this.q3e_1.m1l();
2778
+ return this.t3e_1.m1l();
2779
2779
  };
2780
2780
  MappedProblogTheory.prototype.o1l = function () {
2781
- return this.q3e_1.o1l();
2781
+ return this.t3e_1.o1l();
2782
2782
  };
2783
2783
  MappedProblogTheory.prototype.k1s = function () {
2784
- return this.q3e_1.k1s();
2784
+ return this.t3e_1.k1s();
2785
2785
  };
2786
2786
  MappedProblogTheory.prototype.o = function () {
2787
- return this.q3e_1.o();
2787
+ return this.t3e_1.o();
2788
2788
  };
2789
2789
  MappedProblogTheory.prototype.kt = function () {
2790
- return this.q3e_1.kt();
2790
+ return this.t3e_1.kt();
2791
2791
  };
2792
2792
  MappedProblogTheory.prototype.k1l = function () {
2793
- return this.q3e_1.k1l();
2793
+ return this.t3e_1.k1l();
2794
2794
  };
2795
2795
  MappedProblogTheory.prototype.clone = function () {
2796
- return this.q3e_1.clone();
2796
+ return this.t3e_1.clone();
2797
2797
  };
2798
2798
  MappedProblogTheory.prototype.contains = function (clause) {
2799
- return this.q3e_1.contains(clause);
2799
+ return this.t3e_1.contains(clause);
2800
2800
  };
2801
2801
  MappedProblogTheory.prototype.containsIndicator = function (indicator) {
2802
- return this.q3e_1.containsIndicator(indicator);
2802
+ return this.t3e_1.containsIndicator(indicator);
2803
2803
  };
2804
2804
  MappedProblogTheory.prototype.containsHead = function (head) {
2805
- return this.q3e_1.containsHead(head);
2805
+ return this.t3e_1.containsHead(head);
2806
2806
  };
2807
2807
  MappedProblogTheory.prototype.containsTag = function (name) {
2808
- return this.q3e_1.containsTag(name);
2808
+ return this.t3e_1.containsTag(name);
2809
2809
  };
2810
2810
  MappedProblogTheory.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
2811
- return this.q3e_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2811
+ return this.t3e_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2812
2812
  };
2813
2813
  MappedProblogTheory.prototype.get = function (clause) {
2814
- return this.q3e_1.get(clause);
2814
+ return this.t3e_1.get(clause);
2815
2815
  };
2816
2816
  MappedProblogTheory.prototype.getByIndicator = function (indicator) {
2817
- return this.q3e_1.getByIndicator(indicator);
2817
+ return this.t3e_1.getByIndicator(indicator);
2818
2818
  };
2819
2819
  MappedProblogTheory.prototype.getByHead = function (head) {
2820
- return this.q3e_1.getByHead(head);
2820
+ return this.t3e_1.getByHead(head);
2821
2821
  };
2822
2822
  MappedProblogTheory.prototype.getTag = function (name) {
2823
- return this.q3e_1.getTag(name);
2823
+ return this.t3e_1.getTag(name);
2824
2824
  };
2825
2825
  MappedProblogTheory.prototype.j = function () {
2826
- return this.q3e_1.j();
2826
+ return this.t3e_1.j();
2827
2827
  };
2828
2828
  MappedProblogTheory.prototype.resetTags = function (tags) {
2829
- return this.q3e_1.resetTags(tags);
2829
+ return this.t3e_1.resetTags(tags);
2830
2830
  };
2831
2831
  MappedProblogTheory.prototype.setUnificator = function (unificator) {
2832
- return this.q3e_1.setUnificator(unificator);
2832
+ return this.t3e_1.setUnificator(unificator);
2833
2833
  };
2834
2834
  MappedProblogTheory.prototype.toStringAsProlog = function (asPrologText) {
2835
- return this.q3e_1.toStringAsProlog(asPrologText);
2835
+ return this.t3e_1.toStringAsProlog(asPrologText);
2836
2836
  };
2837
2837
  MappedProblogTheory.prototype.a1t = function () {
2838
2838
  return false;
@@ -2849,17 +2849,17 @@
2849
2849
  MappedProblogTheory.prototype.toImmutableTheory = function () {
2850
2850
  return this.a1s();
2851
2851
  };
2852
- MappedProblogTheory.prototype.p3e = function (theory) {
2853
- return new MappedProblogTheory(null, this.k1l(), this.q3e_1.plusTheory(theory));
2852
+ MappedProblogTheory.prototype.s3e = function (theory) {
2853
+ return new MappedProblogTheory(null, this.k1l(), this.t3e_1.plusTheory(theory));
2854
2854
  };
2855
2855
  MappedProblogTheory.prototype.n1s = function (theory) {
2856
2856
  var tmp0_subject = theory;
2857
2857
  var tmp;
2858
2858
  if (isInterface(tmp0_subject, ProblogTheory)) {
2859
- tmp = this.p3e(theory);
2859
+ tmp = this.s3e(theory);
2860
2860
  } else {
2861
2861
  var tmp_0 = this.k1l();
2862
- tmp = this.p3e(MappedProblogTheory_init_$Create$(theory, tmp_0, null, 4, null));
2862
+ tmp = this.s3e(MappedProblogTheory_init_$Create$(theory, tmp_0, null, 4, null));
2863
2863
  }
2864
2864
  return tmp;
2865
2865
  };
@@ -2867,8 +2867,8 @@
2867
2867
  return this.n1s(theory);
2868
2868
  };
2869
2869
  MappedProblogTheory.prototype.b1s = function (clause) {
2870
- var mapped = ClauseMappingUtils_getInstance().m3e(clause);
2871
- return new MappedProblogTheory(null, this.k1l(), this.q3e_1.plusTheory(Companion_getInstance_18().indexedOfIterable(this.k1l(), mapped)));
2870
+ var mapped = ClauseMappingUtils_getInstance().p3e(clause);
2871
+ return new MappedProblogTheory(null, this.k1l(), this.t3e_1.plusTheory(Companion_getInstance_18().indexedOfIterable(this.k1l(), mapped)));
2872
2872
  };
2873
2873
  MappedProblogTheory.prototype.plus = function (clause) {
2874
2874
  return this.b1s(clause);
@@ -2884,14 +2884,14 @@
2884
2884
  var element = tmp0_iterator.p();
2885
2885
  var tmp$ret$0;
2886
2886
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedProblogTheory.assertA.<anonymous>' call
2887
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2887
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2888
2888
  var list = tmp$ret$0;
2889
2889
  addAll(tmp0_flatMapTo, list);
2890
2890
  }
2891
2891
  tmp$ret$1 = tmp0_flatMapTo;
2892
2892
  tmp$ret$2 = tmp$ret$1;
2893
2893
  var mapped = tmp$ret$2;
2894
- return new MappedProblogTheory(null, this.k1l(), this.q3e_1.assertAIterable(mapped));
2894
+ return new MappedProblogTheory(null, this.k1l(), this.t3e_1.assertAIterable(mapped));
2895
2895
  };
2896
2896
  MappedProblogTheory.prototype.assertAIterable = function (clauses) {
2897
2897
  return this.r1s(clauses);
@@ -2907,14 +2907,14 @@
2907
2907
  var element = tmp0_iterator.p();
2908
2908
  var tmp$ret$0;
2909
2909
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedProblogTheory.assertZ.<anonymous>' call
2910
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2910
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2911
2911
  var list = tmp$ret$0;
2912
2912
  addAll(tmp0_flatMapTo, list);
2913
2913
  }
2914
2914
  tmp$ret$1 = tmp0_flatMapTo;
2915
2915
  tmp$ret$2 = tmp$ret$1;
2916
2916
  var mapped = tmp$ret$2;
2917
- return new MappedProblogTheory(null, this.k1l(), this.q3e_1.assertZIterable(mapped));
2917
+ return new MappedProblogTheory(null, this.k1l(), this.t3e_1.assertZIterable(mapped));
2918
2918
  };
2919
2919
  MappedProblogTheory.prototype.assertZIterable = function (clauses) {
2920
2920
  return this.u1s(clauses);
@@ -2930,14 +2930,14 @@
2930
2930
  var element = tmp0_iterator.p();
2931
2931
  var tmp$ret$0;
2932
2932
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.knowledge.impl.MappedProblogTheory.retract.<anonymous>' call
2933
- tmp$ret$0 = ClauseMappingUtils_getInstance().m3e(element);
2933
+ tmp$ret$0 = ClauseMappingUtils_getInstance().p3e(element);
2934
2934
  var list = tmp$ret$0;
2935
2935
  addAll(tmp0_flatMapTo, list);
2936
2936
  }
2937
2937
  tmp$ret$1 = tmp0_flatMapTo;
2938
2938
  tmp$ret$2 = tmp$ret$1;
2939
2939
  var mapped = tmp$ret$2;
2940
- var result = this.q3e_1.retractIterable(mapped);
2940
+ var result = this.t3e_1.retractIterable(mapped);
2941
2941
  var tmp;
2942
2942
  if (result instanceof Success) {
2943
2943
  tmp = new Success(new MappedProblogTheory(null, this.k1l(), result.h1s()), result.i1t_1);
@@ -2950,7 +2950,7 @@
2950
2950
  return this.y1s(clauses);
2951
2951
  };
2952
2952
  MappedProblogTheory.prototype.c1m = function (clause) {
2953
- var mappedClauses = ClauseMappingUtils_getInstance().m3e(clause);
2953
+ var mappedClauses = ClauseMappingUtils_getInstance().p3e(clause);
2954
2954
  var result = null;
2955
2955
  var tmp0_iterator = mappedClauses.j();
2956
2956
  while (tmp0_iterator.m()) {
@@ -2962,7 +2962,7 @@
2962
2962
  tmp = !(result instanceof Failure);
2963
2963
  }
2964
2964
  if (tmp) {
2965
- result = this.q3e_1.retractAll(c);
2965
+ result = this.t3e_1.retractAll(c);
2966
2966
  }
2967
2967
  }
2968
2968
  var tmp1_subject = result;
@@ -2978,7 +2978,7 @@
2978
2978
  return this.c1m(clause);
2979
2979
  };
2980
2980
  MappedProblogTheory.prototype.g1s = function (indicator) {
2981
- return new MappedProblogTheory(null, this.k1l(), this.q3e_1.abolish(ClauseMappingUtils_getInstance().n3e(indicator)));
2981
+ return new MappedProblogTheory(null, this.k1l(), this.t3e_1.abolish(ClauseMappingUtils_getInstance().q3e(indicator)));
2982
2982
  };
2983
2983
  MappedProblogTheory.prototype.abolish = function (indicator) {
2984
2984
  return this.g1s(indicator);
@@ -3046,10 +3046,10 @@
3046
3046
  function NothingClauseMapper() {
3047
3047
  NothingClauseMapper_instance = this;
3048
3048
  }
3049
- NothingClauseMapper.prototype.a3e = function (clause) {
3049
+ NothingClauseMapper.prototype.d3e = function (clause) {
3050
3050
  return true;
3051
3051
  };
3052
- NothingClauseMapper.prototype.b3e = function (clause) {
3052
+ NothingClauseMapper.prototype.e3e = function (clause) {
3053
3053
  return listOf(clause);
3054
3054
  };
3055
3055
  var NothingClauseMapper_instance;
@@ -3061,7 +3061,7 @@
3061
3061
  function ProbabilisticClauseMapper() {
3062
3062
  ProbabilisticClauseMapper_instance = this;
3063
3063
  }
3064
- ProbabilisticClauseMapper.prototype.a3e = function (clause) {
3064
+ ProbabilisticClauseMapper.prototype.d3e = function (clause) {
3065
3065
  var tmp;
3066
3066
  if (isInterface(clause, Rule)) {
3067
3067
  tmp = clause.ly().fw() === get_ANNOTATION_FUNCTOR();
@@ -3070,15 +3070,15 @@
3070
3070
  }
3071
3071
  return tmp;
3072
3072
  };
3073
- ProbabilisticClauseMapper.prototype.b3e = function (clause) {
3073
+ ProbabilisticClauseMapper.prototype.e3e = function (clause) {
3074
3074
  if (!isInterface(clause, Rule)) {
3075
3075
  var tmp = 'Clause is not an instance of Rule: ' + clause;
3076
3076
  throw ClauseMappingException_init_$Create$(tmp, null, 2, null);
3077
3077
  }
3078
- var mapped = this.c3e(clause);
3079
- return listOf(this.d3e(mapped.g4_1, Companion_getInstance_21().p3d(mapped.h4_1)));
3078
+ var mapped = this.f3e(clause);
3079
+ return listOf(this.g3e(mapped.g4_1, Companion_getInstance_21().s3d(mapped.h4_1)));
3080
3080
  };
3081
- ProbabilisticClauseMapper.prototype.c3e = function (rule) {
3081
+ ProbabilisticClauseMapper.prototype.f3e = function (rule) {
3082
3082
  if (!(rule.ly().zv() === 2)) {
3083
3083
  throw TuPrologException_init_$Create$('Invalid probabilistic rule: ' + rule.ly());
3084
3084
  }
@@ -3108,10 +3108,10 @@
3108
3108
  headTerm = anonVariablesFix.ly();
3109
3109
  bodyTerm = anonVariablesFix.my();
3110
3110
  var extraVariables = get_extraVariables(Companion_getInstance_12().of(headTerm, [bodyTerm]));
3111
- var probTerm_0 = new ProbTerm(ClauseMappingUtils_getInstance().l3e(), probability, headTerm, extraVariables);
3111
+ var probTerm_0 = new ProbTerm(ClauseMappingUtils_getInstance().o3e(), probability, headTerm, extraVariables);
3112
3112
  return new Pair(Companion_getInstance_12().of(headTerm, [bodyTerm]), probTerm_0);
3113
3113
  };
3114
- ProbabilisticClauseMapper.prototype.d3e = function (rule, explanation) {
3114
+ ProbabilisticClauseMapper.prototype.g3e = function (rule, explanation) {
3115
3115
  var tmp = rule.my();
3116
3116
  if (isInterface(tmp, Truth)) {
3117
3117
  return Companion_getInstance_12().of(withExplanation(rule.ly(), toTerm(explanation)), [rule.my()]);
@@ -3142,17 +3142,17 @@
3142
3142
  function PrologClauseMapper() {
3143
3143
  PrologClauseMapper_instance = this;
3144
3144
  }
3145
- PrologClauseMapper.prototype.a3e = function (clause) {
3145
+ PrologClauseMapper.prototype.d3e = function (clause) {
3146
3146
  return isInterface(clause, Rule);
3147
3147
  };
3148
- PrologClauseMapper.prototype.b3e = function (clause) {
3148
+ PrologClauseMapper.prototype.e3e = function (clause) {
3149
3149
  if (!isInterface(clause, Rule)) {
3150
3150
  var tmp = 'Clause is not an instance of Rule: ' + clause;
3151
3151
  throw ClauseMappingException_init_$Create$(tmp, null, 2, null);
3152
3152
  }
3153
3153
  var tmp_0 = clause.my();
3154
3154
  if (isInterface(tmp_0, Truth)) {
3155
- return listOf(Companion_getInstance_12().of(withExplanation(clause.ly(), toTerm(Companion_getInstance_21().l3d_1)), [clause.my()]));
3155
+ return listOf(Companion_getInstance_12().of(withExplanation(clause.ly(), toTerm(Companion_getInstance_21().o3d_1)), [clause.my()]));
3156
3156
  }
3157
3157
  var tmp_1 = Companion_getInstance_1();
3158
3158
  ProblogLib_getInstance();
@@ -3170,12 +3170,12 @@
3170
3170
  ProblogLib_getInstance();
3171
3171
  NonBacktrackable.call(this, 'prob' + '_expl_and');
3172
3172
  }
3173
- ProbExplAnd.prototype.z2r = function (_this__u8e3s4, first, second, third) {
3174
- Companion_getInstance_19().h2h(_this__u8e3s4, 1);
3175
- Companion_getInstance_19().n2h(_this__u8e3s4, 1);
3176
- if (ProbSetConfig_getInstance().s3e(_this__u8e3s4.context)) {
3177
- var tmp = Companion_getInstance_19().b2h(_this__u8e3s4, first, toTerm(Companion_getInstance_21().l3d_1));
3178
- return _this__u8e3s4.g2g(tmp, null, [], 6, null);
3173
+ ProbExplAnd.prototype.c2s = function (_this__u8e3s4, first, second, third) {
3174
+ Companion_getInstance_19().k2h(_this__u8e3s4, 1);
3175
+ Companion_getInstance_19().q2h(_this__u8e3s4, 1);
3176
+ if (ProbSetConfig_getInstance().v3e(_this__u8e3s4.context)) {
3177
+ var tmp = Companion_getInstance_19().e2h(_this__u8e3s4, first, toTerm(Companion_getInstance_21().o3d_1));
3178
+ return _this__u8e3s4.j2g(tmp, null, [], 6, null);
3179
3179
  }
3180
3180
  var tmp_0;
3181
3181
  var tmp_1;
@@ -3191,13 +3191,13 @@
3191
3191
  tmp_1 = false;
3192
3192
  }
3193
3193
  if (tmp_1) {
3194
- var explanation = (second.h3c_1.x3d() === 0.0 ? true : third.h3c_1.x3d() === 0.0) ? Companion_getInstance_21().k3d_1 : (second.h3c_1.x3d() === 1.0 ? third.h3c_1.x3d() === 1.0 : false) ? Companion_getInstance_21().l3d_1 : second.h3c_1.x3d() === 1.0 ? third.h3c_1 : third.h3c_1.x3d() === 1.0 ? second.h3c_1 : second.h3c_1.and(third.h3c_1);
3194
+ var explanation = (second.k3c_1.a3e() === 0.0 ? true : third.k3c_1.a3e() === 0.0) ? Companion_getInstance_21().n3d_1 : (second.k3c_1.a3e() === 1.0 ? third.k3c_1.a3e() === 1.0 : false) ? Companion_getInstance_21().o3d_1 : second.k3c_1.a3e() === 1.0 ? third.k3c_1 : third.k3c_1.a3e() === 1.0 ? second.k3c_1 : second.k3c_1.and(third.k3c_1);
3195
3195
  var tmp_3;
3196
- if (explanation.x3d() === 0.0) {
3197
- tmp_3 = _this__u8e3s4.y2i(false, null, [], 6, null);
3196
+ if (explanation.a3e() === 0.0) {
3197
+ tmp_3 = _this__u8e3s4.b2j(false, null, [], 6, null);
3198
3198
  } else {
3199
- var tmp_4 = Companion_getInstance_19().b2h(_this__u8e3s4, first, new ProbExplanationTerm(explanation));
3200
- tmp_3 = _this__u8e3s4.g2g(tmp_4, null, [], 6, null);
3199
+ var tmp_4 = Companion_getInstance_19().e2h(_this__u8e3s4, first, new ProbExplanationTerm(explanation));
3200
+ tmp_3 = _this__u8e3s4.j2g(tmp_4, null, [], 6, null);
3201
3201
  }
3202
3202
  tmp_0 = tmp_3;
3203
3203
  } else {
@@ -3206,12 +3206,12 @@
3206
3206
  tmp$ret$0 = this.signature.name;
3207
3207
  var tmp_5 = "Can't compute " + tmp$ret$0;
3208
3208
  var tmp_6 = ResolutionException_init_$Create$(tmp_5, null, _this__u8e3s4.context, [], 10, null);
3209
- tmp_0 = _this__u8e3s4.c2j(tmp_6, null, [], 6, null);
3209
+ tmp_0 = _this__u8e3s4.f2j(tmp_6, null, [], 6, null);
3210
3210
  }
3211
3211
  return tmp_0;
3212
3212
  };
3213
- ProbExplAnd.prototype.r2j = function (_this__u8e3s4, first, second, third) {
3214
- return this.z2r(_this__u8e3s4, first, second, third);
3213
+ ProbExplAnd.prototype.u2j = function (_this__u8e3s4, first, second, third) {
3214
+ return this.c2s(_this__u8e3s4, first, second, third);
3215
3215
  };
3216
3216
  var ProbExplAnd_instance;
3217
3217
  function ProbExplAnd_getInstance() {
@@ -3220,22 +3220,22 @@
3220
3220
  return ProbExplAnd_instance;
3221
3221
  }
3222
3222
  function ProbHelper$computeAllSubstitutions$slambda($goal, $this_computeAllSubstitutions, $third, $first, $second, $goalSignature, resultContinuation) {
3223
- this.b3f_1 = $goal;
3224
- this.c3f_1 = $this_computeAllSubstitutions;
3225
- this.d3f_1 = $third;
3226
- this.e3f_1 = $first;
3227
- this.f3f_1 = $second;
3228
- this.g3f_1 = $goalSignature;
3223
+ this.e3f_1 = $goal;
3224
+ this.f3f_1 = $this_computeAllSubstitutions;
3225
+ this.g3f_1 = $third;
3226
+ this.h3f_1 = $first;
3227
+ this.i3f_1 = $second;
3228
+ this.j3f_1 = $goalSignature;
3229
3229
  CoroutineImpl.call(this, resultContinuation);
3230
3230
  }
3231
- ProbHelper$computeAllSubstitutions$slambda.prototype.t2t = function ($this$sequence, $cont) {
3232
- var tmp = this.u2t($this$sequence, $cont);
3231
+ ProbHelper$computeAllSubstitutions$slambda.prototype.w2t = function ($this$sequence, $cont) {
3232
+ var tmp = this.x2t($this$sequence, $cont);
3233
3233
  tmp.ei_1 = Unit_getInstance();
3234
3234
  tmp.fi_1 = null;
3235
3235
  return tmp.ki();
3236
3236
  };
3237
3237
  ProbHelper$computeAllSubstitutions$slambda.prototype.wi = function (p1, $cont) {
3238
- return this.t2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
3238
+ return this.w2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
3239
3239
  };
3240
3240
  ProbHelper$computeAllSubstitutions$slambda.prototype.ki = function () {
3241
3241
  var suspendResult = this.ei_1;
@@ -3245,91 +3245,91 @@
3245
3245
  switch (tmp) {
3246
3246
  case 0:
3247
3247
  this.di_1 = 18;
3248
- this.i3f_1 = this.b3f_1.fw();
3249
- if (this.i3f_1 === '\\+' ? true : this.i3f_1 === 'not') {
3248
+ this.l3f_1 = this.e3f_1.fw();
3249
+ if (this.l3f_1 === '\\+' ? true : this.l3f_1 === 'not') {
3250
3250
  this.ci_1 = 16;
3251
3251
  var tmp_0;
3252
- if (ProbSetConfig_getInstance().s3e(this.c3f_1.context)) {
3252
+ if (ProbSetConfig_getInstance().v3e(this.f3f_1.context)) {
3253
3253
  var tmp_1 = Companion_getInstance_19();
3254
3254
  var tmp_2 = Companion_getInstance_3();
3255
- var tmp_3 = this.b3f_1.fw();
3255
+ var tmp_3 = this.e3f_1.fw();
3256
3256
  var tmp_4 = Companion_getInstance_3();
3257
3257
  var tmp0__get_functor__thl4dk = Prob_getInstance();
3258
- tmp_0 = tmp_1.b2h(this.c3f_1, this.d3f_1, tmp_2.of(tmp_3, [tmp_4.of(tmp0__get_functor__thl4dk.signature.name, [Companion_getInstance_1().anonymous(), this.b3f_1.get(0)])])).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1)));
3258
+ tmp_0 = tmp_1.e2h(this.f3f_1, this.g3f_1, tmp_2.of(tmp_3, [tmp_4.of(tmp0__get_functor__thl4dk.signature.name, [Companion_getInstance_1().anonymous(), this.e3f_1.get(0)])])).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1)));
3259
3259
  } else {
3260
3260
  var tmp_5 = Companion_getInstance_19();
3261
3261
  var tmp_6 = Companion_getInstance_3();
3262
3262
  var tmp1__get_functor__4k11yf = ProbNegationAsFailure_getInstance();
3263
- tmp_0 = tmp_5.b2h(this.c3f_1, this.d3f_1, tmp_6.of(tmp1__get_functor__4k11yf.signature.name, [this.e3f_1, this.b3f_1.get(0)]));
3263
+ tmp_0 = tmp_5.e2h(this.f3f_1, this.g3f_1, tmp_6.of(tmp1__get_functor__4k11yf.signature.name, [this.h3f_1, this.e3f_1.get(0)]));
3264
3264
  }
3265
- suspendResult = this.h3f_1.z4(tmp_0, this);
3265
+ suspendResult = this.k3f_1.z4(tmp_0, this);
3266
3266
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3267
3267
  return suspendResult;
3268
3268
  }
3269
3269
  continue $sm;
3270
3270
  } else {
3271
- if ((this.i3f_1 === ',' ? true : this.i3f_1 === ';') ? true : this.i3f_1 === '->') {
3271
+ if ((this.l3f_1 === ',' ? true : this.l3f_1 === ';') ? true : this.l3f_1 === '->') {
3272
3272
  this.ci_1 = 15;
3273
3273
  var tmp_7;
3274
- if (ProbSetConfig_getInstance().s3e(this.c3f_1.context)) {
3275
- tmp_7 = Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, withBodyExplanation(this.b3f_1, Companion_getInstance_1().anonymous())).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1)));
3274
+ if (ProbSetConfig_getInstance().v3e(this.f3f_1.context)) {
3275
+ tmp_7 = Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, withBodyExplanation(this.e3f_1, Companion_getInstance_1().anonymous())).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1)));
3276
3276
  } else {
3277
- tmp_7 = Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, withBodyExplanation(this.b3f_1, this.e3f_1));
3277
+ tmp_7 = Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, withBodyExplanation(this.e3f_1, this.h3f_1));
3278
3278
  }
3279
- suspendResult = this.h3f_1.z4(tmp_7, this);
3279
+ suspendResult = this.k3f_1.z4(tmp_7, this);
3280
3280
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3281
3281
  return suspendResult;
3282
3282
  }
3283
3283
  continue $sm;
3284
3284
  } else {
3285
- if (this.i3f_1 === 'call') {
3286
- this.j3f_1 = this.b3f_1.get(0);
3285
+ if (this.l3f_1 === 'call') {
3286
+ this.m3f_1 = this.e3f_1.get(0);
3287
3287
  this.ci_1 = 14;
3288
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, Companion_getInstance_2().of(Companion_getInstance_3().of('ensure_executable', [this.j3f_1]), Companion_getInstance_3().of(this.b3f_1.fw(), [withBodyExplanation(this.j3f_1, this.e3f_1)]))), this);
3288
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, Companion_getInstance_2().of(Companion_getInstance_3().of('ensure_executable', [this.m3f_1]), Companion_getInstance_3().of(this.e3f_1.fw(), [withBodyExplanation(this.m3f_1, this.h3f_1)]))), this);
3289
3289
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3290
3290
  return suspendResult;
3291
3291
  }
3292
3292
  continue $sm;
3293
3293
  } else {
3294
- if (this.i3f_1 === 'catch') {
3294
+ if (this.l3f_1 === 'catch') {
3295
3295
  this.ci_1 = 13;
3296
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, Companion_getInstance_3().of(this.b3f_1.fw(), [withBodyExplanation(this.b3f_1.get(0), this.e3f_1), this.b3f_1.get(1), withBodyExplanation(this.b3f_1.get(2), this.e3f_1)])), this);
3296
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, Companion_getInstance_3().of(this.e3f_1.fw(), [withBodyExplanation(this.e3f_1.get(0), this.h3f_1), this.e3f_1.get(1), withBodyExplanation(this.e3f_1.get(2), this.h3f_1)])), this);
3297
3297
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3298
3298
  return suspendResult;
3299
3299
  }
3300
3300
  continue $sm;
3301
3301
  } else {
3302
- if (this.i3f_1 === 'findall') {
3302
+ if (this.l3f_1 === 'findall') {
3303
3303
  var tmp_8 = this;
3304
- var tmp2_toTypedArray = this.b3f_1.gw();
3305
- tmp_8.k3f_1 = copyToArray(tmp2_toTypedArray);
3306
- this.k3f_1[1] = withBodyExplanation(this.k3f_1[1], Companion_getInstance_1().anonymous());
3304
+ var tmp2_toTypedArray = this.e3f_1.gw();
3305
+ tmp_8.n3f_1 = copyToArray(tmp2_toTypedArray);
3306
+ this.n3f_1[1] = withBodyExplanation(this.n3f_1[1], Companion_getInstance_1().anonymous());
3307
3307
  this.ci_1 = 12;
3308
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, Companion_getInstance_3().of(this.b3f_1.fw(), this.k3f_1.slice())).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1))), this);
3308
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, Companion_getInstance_3().of(this.e3f_1.fw(), this.n3f_1.slice())).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1))), this);
3309
3309
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3310
3310
  return suspendResult;
3311
3311
  }
3312
3312
  continue $sm;
3313
3313
  } else {
3314
- if ((this.i3f_1 === 'assert' ? true : this.i3f_1 === 'asserta') ? true : this.i3f_1 === 'assertz') {
3315
- this.l3f_1 = this.b3f_1.get(0);
3314
+ if ((this.l3f_1 === 'assert' ? true : this.l3f_1 === 'asserta') ? true : this.l3f_1 === 'assertz') {
3315
+ this.o3f_1 = this.e3f_1.get(0);
3316
3316
  var tmp_9 = this;
3317
- var tmp1_subject = this.l3f_1;
3317
+ var tmp1_subject = this.o3f_1;
3318
3318
  var tmp_10;
3319
3319
  if (isInterface(tmp1_subject, Clause)) {
3320
- tmp_10 = extractSignature(ensureNotNull(this.l3f_1.ly()));
3320
+ tmp_10 = extractSignature(ensureNotNull(this.o3f_1.ly()));
3321
3321
  } else {
3322
- tmp_10 = extractSignature(safeToStruct(this.l3f_1));
3322
+ tmp_10 = extractSignature(safeToStruct(this.o3f_1));
3323
3323
  }
3324
- tmp_9.m3f_1 = tmp_10;
3324
+ tmp_9.p3f_1 = tmp_10;
3325
3325
  var tmp_11;
3326
- if (this.c3f_1.context.w1u().containsSignature(this.m3f_1)) {
3326
+ if (this.f3f_1.context.w1u().containsSignature(this.p3f_1)) {
3327
3327
  tmp_11 = true;
3328
3328
  } else {
3329
3329
  var tmp_12;
3330
- var tmp_13 = this.l3f_1;
3330
+ var tmp_13 = this.o3f_1;
3331
3331
  if (isInterface(tmp_13, Clause)) {
3332
- tmp_12 = !this.l3f_1.vy();
3332
+ tmp_12 = !this.o3f_1.vy();
3333
3333
  } else {
3334
3334
  tmp_12 = false;
3335
3335
  }
@@ -3337,20 +3337,20 @@
3337
3337
  }
3338
3338
  if (tmp_11) {
3339
3339
  this.ci_1 = 10;
3340
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, this.b3f_1).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1))), this);
3340
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, this.e3f_1).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1))), this);
3341
3341
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3342
3342
  return suspendResult;
3343
3343
  }
3344
3344
  continue $sm;
3345
3345
  } else {
3346
3346
  var tmp_14 = this;
3347
- var tmp2_subject = this.l3f_1;
3347
+ var tmp2_subject = this.o3f_1;
3348
3348
  var tmp_15;
3349
3349
  if (isInterface(tmp2_subject, Clause)) {
3350
- tmp_15 = ClauseMappingUtils_getInstance().m3e(this.l3f_1);
3350
+ tmp_15 = ClauseMappingUtils_getInstance().p3e(this.o3f_1);
3351
3351
  } else {
3352
3352
  if (isInterface(tmp2_subject, Struct)) {
3353
- var tmp3_map = ClauseMappingUtils_getInstance().m3e(Companion_getInstance().of(this.l3f_1));
3353
+ var tmp3_map = ClauseMappingUtils_getInstance().p3e(Companion_getInstance().of(this.o3f_1));
3354
3354
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp3_map, 10));
3355
3355
  var tmp0_iterator = tmp3_map.j();
3356
3356
  while (tmp0_iterator.m()) {
@@ -3359,40 +3359,40 @@
3359
3359
  }
3360
3360
  tmp_15 = tmp0_mapTo;
3361
3361
  } else {
3362
- tmp_15 = listOf(this.l3f_1);
3362
+ tmp_15 = listOf(this.o3f_1);
3363
3363
  }
3364
3364
  }
3365
- tmp_14.n3f_1 = tmp_15;
3365
+ tmp_14.q3f_1 = tmp_15;
3366
3366
  this.ci_1 = 9;
3367
- var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this.n3f_1, 10));
3368
- var tmp0_iterator_0 = this.n3f_1.j();
3367
+ var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this.q3f_1, 10));
3368
+ var tmp0_iterator_0 = this.q3f_1.j();
3369
3369
  while (tmp0_iterator_0.m()) {
3370
3370
  var item_0 = tmp0_iterator_0.p();
3371
- tmp0_mapTo_0.g(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, Companion_getInstance_3().of(this.b3f_1.fw(), [item_0])).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1))));
3371
+ tmp0_mapTo_0.g(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, Companion_getInstance_3().of(this.e3f_1.fw(), [item_0])).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1))));
3372
3372
  }
3373
- suspendResult = this.h3f_1.b5(tmp0_mapTo_0, this);
3373
+ suspendResult = this.k3f_1.b5(tmp0_mapTo_0, this);
3374
3374
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3375
3375
  return suspendResult;
3376
3376
  }
3377
3377
  continue $sm;
3378
3378
  }
3379
3379
  } else {
3380
- if (this.i3f_1 === 'retract' ? true : this.i3f_1 === 'retractall') {
3381
- this.o3f_1 = this.b3f_1.get(0);
3380
+ if (this.l3f_1 === 'retract' ? true : this.l3f_1 === 'retractall') {
3381
+ this.r3f_1 = this.e3f_1.get(0);
3382
3382
  this.ci_1 = 8;
3383
3383
  var tmp_16 = Companion_getInstance_19();
3384
3384
  var tmp_17 = Companion_getInstance_3();
3385
- var tmp_18 = this.b3f_1.fw();
3385
+ var tmp_18 = this.e3f_1.fw();
3386
3386
  var tmp_19;
3387
3387
  var tmp_20;
3388
3388
  var tmp_21;
3389
- if (this.o3f_1.mw()) {
3389
+ if (this.r3f_1.mw()) {
3390
3390
  tmp_21 = true;
3391
3391
  } else {
3392
3392
  var tmp_22;
3393
- var tmp_23 = this.o3f_1;
3393
+ var tmp_23 = this.r3f_1;
3394
3394
  if (isInterface(tmp_23, Struct)) {
3395
- tmp_22 = this.o3f_1.fw() === ':-';
3395
+ tmp_22 = this.r3f_1.fw() === ':-';
3396
3396
  } else {
3397
3397
  tmp_22 = false;
3398
3398
  }
@@ -3401,38 +3401,38 @@
3401
3401
  if (tmp_21) {
3402
3402
  tmp_20 = true;
3403
3403
  } else {
3404
- tmp_20 = this.c3f_1.context.w1u().containsSignature(extractSignature(safeToStruct(this.o3f_1)));
3404
+ tmp_20 = this.f3f_1.context.w1u().containsSignature(extractSignature(safeToStruct(this.r3f_1)));
3405
3405
  }
3406
3406
  if (tmp_20) {
3407
- tmp_19 = this.o3f_1;
3407
+ tmp_19 = this.r3f_1;
3408
3408
  } else {
3409
- tmp_19 = withExplanation(this.o3f_1, this.e3f_1);
3409
+ tmp_19 = withExplanation(this.r3f_1, this.h3f_1);
3410
3410
  }
3411
- suspendResult = this.h3f_1.z4(tmp_16.b2h(this.c3f_1, this.d3f_1, tmp_17.of(tmp_18, [tmp_19])), this);
3411
+ suspendResult = this.k3f_1.z4(tmp_16.e2h(this.f3f_1, this.g3f_1, tmp_17.of(tmp_18, [tmp_19])), this);
3412
3412
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3413
3413
  return suspendResult;
3414
3414
  }
3415
3415
  continue $sm;
3416
3416
  } else {
3417
- if (this.i3f_1 === 'clause') {
3418
- this.p3f_1 = this.b3f_1.get(0);
3417
+ if (this.l3f_1 === 'clause') {
3418
+ this.s3f_1 = this.e3f_1.get(0);
3419
3419
  var tmp_24;
3420
- var tmp_25 = this.p3f_1;
3420
+ var tmp_25 = this.s3f_1;
3421
3421
  if (!isInterface(tmp_25, Struct)) {
3422
3422
  tmp_24 = true;
3423
3423
  } else {
3424
- tmp_24 = this.c3f_1.context.w1u().hasProtected(extractSignature(this.p3f_1));
3424
+ tmp_24 = this.f3f_1.context.w1u().hasProtected(extractSignature(this.s3f_1));
3425
3425
  }
3426
3426
  if (tmp_24) {
3427
3427
  this.ci_1 = 6;
3428
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, this.b3f_1).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1))), this);
3428
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, this.e3f_1).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1))), this);
3429
3429
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3430
3430
  return suspendResult;
3431
3431
  }
3432
3432
  continue $sm;
3433
3433
  } else {
3434
3434
  this.ci_1 = 5;
3435
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, Companion_getInstance_3().of(this.b3f_1.fw(), [withExplanation(this.b3f_1.get(0), this.e3f_1), this.b3f_1.get(1)])), this);
3435
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, Companion_getInstance_3().of(this.e3f_1.fw(), [withExplanation(this.e3f_1.get(0), this.h3f_1), this.e3f_1.get(1)])), this);
3436
3436
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3437
3437
  return suspendResult;
3438
3438
  }
@@ -3441,16 +3441,16 @@
3441
3441
  } else {
3442
3442
  var tmp_26 = this;
3443
3443
  var tmp_27;
3444
- var tmp_28 = this.f3f_1;
3444
+ var tmp_28 = this.i3f_1;
3445
3445
  if (isInterface(tmp_28, Truth)) {
3446
3446
  tmp_27 = true;
3447
3447
  } else {
3448
- tmp_27 = this.c3f_1.context.w1u().containsSignature(this.g3f_1);
3448
+ tmp_27 = this.f3f_1.context.w1u().containsSignature(this.j3f_1);
3449
3449
  }
3450
- tmp_26.q3f_1 = tmp_27;
3451
- if ((this.q3f_1 ? true : this.c3f_1.context.y1u().containsIndicator(this.g3f_1.toIndicator())) ? true : this.c3f_1.context.z1u().containsIndicator(this.g3f_1.toIndicator())) {
3450
+ tmp_26.t3f_1 = tmp_27;
3451
+ if ((this.t3f_1 ? true : this.f3f_1.context.y1u().containsIndicator(this.j3f_1.toIndicator())) ? true : this.f3f_1.context.z1u().containsIndicator(this.j3f_1.toIndicator())) {
3452
3452
  this.ci_1 = 1;
3453
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, this.b3f_1).plus(Companion_getInstance_19().b2h(this.c3f_1, this.e3f_1, toTerm(Companion_getInstance_21().l3d_1))), this);
3453
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, this.e3f_1).plus(Companion_getInstance_19().e2h(this.f3f_1, this.h3f_1, toTerm(Companion_getInstance_21().o3d_1))), this);
3454
3454
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3455
3455
  return suspendResult;
3456
3456
  }
@@ -3473,9 +3473,9 @@
3473
3473
  this.ci_1 = 2;
3474
3474
  continue $sm;
3475
3475
  case 2:
3476
- if (!this.q3f_1) {
3476
+ if (!this.t3f_1) {
3477
3477
  this.ci_1 = 3;
3478
- suspendResult = this.h3f_1.z4(Companion_getInstance_19().b2h(this.c3f_1, this.d3f_1, withExplanation(this.b3f_1, this.e3f_1)), this);
3478
+ suspendResult = this.k3f_1.z4(Companion_getInstance_19().e2h(this.f3f_1, this.g3f_1, withExplanation(this.e3f_1, this.h3f_1)), this);
3479
3479
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3480
3480
  return suspendResult;
3481
3481
  }
@@ -3543,15 +3543,15 @@
3543
3543
  }
3544
3544
  while (true);
3545
3545
  };
3546
- ProbHelper$computeAllSubstitutions$slambda.prototype.u2t = function ($this$sequence, completion) {
3547
- var i = new ProbHelper$computeAllSubstitutions$slambda(this.b3f_1, this.c3f_1, this.d3f_1, this.e3f_1, this.f3f_1, this.g3f_1, completion);
3548
- i.h3f_1 = $this$sequence;
3546
+ ProbHelper$computeAllSubstitutions$slambda.prototype.x2t = function ($this$sequence, completion) {
3547
+ var i = new ProbHelper$computeAllSubstitutions$slambda(this.e3f_1, this.f3f_1, this.g3f_1, this.h3f_1, this.i3f_1, this.j3f_1, completion);
3548
+ i.k3f_1 = $this$sequence;
3549
3549
  return i;
3550
3550
  };
3551
3551
  function ProbHelper$computeAllSubstitutions$slambda_0($goal, $this_computeAllSubstitutions, $third, $first, $second, $goalSignature, resultContinuation) {
3552
3552
  var i = new ProbHelper$computeAllSubstitutions$slambda($goal, $this_computeAllSubstitutions, $third, $first, $second, $goalSignature, resultContinuation);
3553
3553
  var l = function ($this$sequence, $cont) {
3554
- return i.t2t($this$sequence, $cont);
3554
+ return i.w2t($this$sequence, $cont);
3555
3555
  };
3556
3556
  l.$arity = 1;
3557
3557
  return l;
@@ -3561,15 +3561,15 @@
3561
3561
  ProblogLib_getInstance();
3562
3562
  WithoutSideEffects.call(this, 'prob' + '_helper');
3563
3563
  }
3564
- ProbHelper.prototype.r2p = function (_this__u8e3s4, first, second, third) {
3565
- Companion_getInstance_19().h2h(_this__u8e3s4, 1);
3566
- Companion_getInstance_19().n2h(_this__u8e3s4, 1);
3564
+ ProbHelper.prototype.u2p = function (_this__u8e3s4, first, second, third) {
3565
+ Companion_getInstance_19().k2h(_this__u8e3s4, 1);
3566
+ Companion_getInstance_19().q2h(_this__u8e3s4, 1);
3567
3567
  var goal = safeToStruct(second);
3568
3568
  var goalSignature = extractSignature(goal);
3569
3569
  return sequence(ProbHelper$computeAllSubstitutions$slambda_0(goal, _this__u8e3s4, third, first, second, goalSignature, null));
3570
3570
  };
3571
- ProbHelper.prototype.n2j = function (_this__u8e3s4, first, second, third) {
3572
- return this.r2p(_this__u8e3s4, first, second, third);
3571
+ ProbHelper.prototype.q2j = function (_this__u8e3s4, first, second, third) {
3572
+ return this.u2p(_this__u8e3s4, first, second, third);
3573
3573
  };
3574
3574
  var ProbHelper_instance;
3575
3575
  function ProbHelper_getInstance() {
@@ -3582,14 +3582,14 @@
3582
3582
  ProblogLib_getInstance();
3583
3583
  NonBacktrackable_0.call(this, 'prob' + '_negation_as_failure');
3584
3584
  }
3585
- ProbNegationAsFailure.prototype.x2p = function (_this__u8e3s4, first, second) {
3586
- Companion_getInstance_19().h2h(_this__u8e3s4, 1);
3587
- Companion_getInstance_19().n2h(_this__u8e3s4, 1);
3585
+ ProbNegationAsFailure.prototype.a2q = function (_this__u8e3s4, first, second) {
3586
+ Companion_getInstance_19().k2h(_this__u8e3s4, 1);
3587
+ Companion_getInstance_19().q2h(_this__u8e3s4, 1);
3588
3588
  var tmp;
3589
3589
  if (!second.jx()) {
3590
3590
  var tmp_0 = 'Probabilistic negation does not support non-ground goals: ' + second;
3591
3591
  var tmp_1 = ResolutionException_init_$Create$(tmp_0, null, _this__u8e3s4.context, [], 10, null);
3592
- tmp = _this__u8e3s4.c2j(tmp_1, null, [], 6, null);
3592
+ tmp = _this__u8e3s4.f2j(tmp_1, null, [], 6, null);
3593
3593
  } else {
3594
3594
  var explanationTermVar = Companion_getInstance_1().of('Explanation');
3595
3595
  var tmp_2 = _this__u8e3s4.subSolver();
@@ -3601,7 +3601,7 @@
3601
3601
  var solution = firstOrNull(tmp_2.solveWithOptions(tmp_3.of(tmp$ret$0, [explanationTermVar, second]), setProbabilistic(Companion_getInstance_5().DEFAULT, false)));
3602
3602
  var tmp_4;
3603
3603
  if (solution == null) {
3604
- tmp_4 = _this__u8e3s4.l2g(null, [], 3, null);
3604
+ tmp_4 = _this__u8e3s4.o2g(null, [], 3, null);
3605
3605
  } else {
3606
3606
  var explanationTerm = solution.r1u().a3(explanationTermVar);
3607
3607
  var tmp_5;
@@ -3614,10 +3614,10 @@
3614
3614
  if (tmp_6) {
3615
3615
  var tmp_7 = 'No valid explanation has been solved for goal: ' + second;
3616
3616
  var tmp_8 = ResolutionException_init_$Create$(tmp_7, null, _this__u8e3s4.context, [], 10, null);
3617
- tmp_5 = _this__u8e3s4.c2j(tmp_8, null, [], 6, null);
3617
+ tmp_5 = _this__u8e3s4.f2j(tmp_8, null, [], 6, null);
3618
3618
  } else {
3619
- var tmp_9 = Companion_getInstance_9().ofSubstitution(Companion_getInstance_19().b2h(_this__u8e3s4, first, new ProbExplanationTerm(explanationTerm.h3c_1.not())), []);
3620
- tmp_5 = _this__u8e3s4.g2g(tmp_9, null, [], 6, null);
3619
+ var tmp_9 = Companion_getInstance_9().ofSubstitution(Companion_getInstance_19().e2h(_this__u8e3s4, first, new ProbExplanationTerm(explanationTerm.k3c_1.not())), []);
3620
+ tmp_5 = _this__u8e3s4.j2g(tmp_9, null, [], 6, null);
3621
3621
  }
3622
3622
  tmp_4 = tmp_5;
3623
3623
  }
@@ -3625,8 +3625,8 @@
3625
3625
  }
3626
3626
  return tmp;
3627
3627
  };
3628
- ProbNegationAsFailure.prototype.a2g = function (_this__u8e3s4, first, second) {
3629
- return this.x2p(_this__u8e3s4, first, second);
3628
+ ProbNegationAsFailure.prototype.d2g = function (_this__u8e3s4, first, second) {
3629
+ return this.a2q(_this__u8e3s4, first, second);
3630
3630
  };
3631
3631
  var ProbNegationAsFailure_instance;
3632
3632
  function ProbNegationAsFailure_getInstance() {
@@ -3640,22 +3640,22 @@
3640
3640
  };
3641
3641
  }
3642
3642
  function ProbQuery$computeAllSubstitutions$slambda($solutions, $queryWithEvidenceExplanation, $evidenceExplanation, $this_computeAllSubstitutions, $first, $fourth, resultContinuation) {
3643
- this.b3g_1 = $solutions;
3644
- this.c3g_1 = $queryWithEvidenceExplanation;
3645
- this.d3g_1 = $evidenceExplanation;
3646
- this.e3g_1 = $this_computeAllSubstitutions;
3647
- this.f3g_1 = $first;
3648
- this.g3g_1 = $fourth;
3643
+ this.e3g_1 = $solutions;
3644
+ this.f3g_1 = $queryWithEvidenceExplanation;
3645
+ this.g3g_1 = $evidenceExplanation;
3646
+ this.h3g_1 = $this_computeAllSubstitutions;
3647
+ this.i3g_1 = $first;
3648
+ this.j3g_1 = $fourth;
3649
3649
  CoroutineImpl.call(this, resultContinuation);
3650
3650
  }
3651
- ProbQuery$computeAllSubstitutions$slambda.prototype.t2t = function ($this$sequence, $cont) {
3652
- var tmp = this.u2t($this$sequence, $cont);
3651
+ ProbQuery$computeAllSubstitutions$slambda.prototype.w2t = function ($this$sequence, $cont) {
3652
+ var tmp = this.x2t($this$sequence, $cont);
3653
3653
  tmp.ei_1 = Unit_getInstance();
3654
3654
  tmp.fi_1 = null;
3655
3655
  return tmp.ki();
3656
3656
  };
3657
3657
  ProbQuery$computeAllSubstitutions$slambda.prototype.wi = function (p1, $cont) {
3658
- return this.t2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
3658
+ return this.w2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
3659
3659
  };
3660
3660
  ProbQuery$computeAllSubstitutions$slambda.prototype.ki = function () {
3661
3661
  var suspendResult = this.ei_1;
@@ -3665,67 +3665,67 @@
3665
3665
  switch (tmp) {
3666
3666
  case 0:
3667
3667
  this.di_1 = 8;
3668
- this.i3g_1 = this.b3g_1.j();
3668
+ this.l3g_1 = this.e3g_1.j();
3669
3669
  this.ci_1 = 1;
3670
3670
  continue $sm;
3671
3671
  case 1:
3672
- if (!this.i3g_1.m()) {
3672
+ if (!this.l3g_1.m()) {
3673
3673
  this.ci_1 = 7;
3674
3674
  continue $sm;
3675
3675
  }
3676
3676
 
3677
- this.j3g_1 = this.i3g_1.p();
3678
- if (this.j3g_1.f1w())
3679
- throw ensureNotNull(this.j3g_1.c1w());
3680
- this.k3g_1 = this.j3g_1.r1u().a3(this.c3g_1);
3681
- this.l3g_1 = this.j3g_1.r1u().a3(this.d3g_1);
3677
+ this.m3g_1 = this.l3g_1.p();
3678
+ if (this.m3g_1.f1w())
3679
+ throw ensureNotNull(this.m3g_1.c1w());
3680
+ this.n3g_1 = this.m3g_1.r1u().a3(this.f3g_1);
3681
+ this.o3g_1 = this.m3g_1.r1u().a3(this.g3g_1);
3682
3682
  var tmp_0;
3683
3683
  var tmp_1;
3684
3684
  var tmp_2;
3685
- if (this.k3g_1 == null) {
3685
+ if (this.n3g_1 == null) {
3686
3686
  tmp_2 = true;
3687
3687
  } else {
3688
- var tmp_3 = this.k3g_1;
3688
+ var tmp_3 = this.n3g_1;
3689
3689
  tmp_2 = !(tmp_3 instanceof ProbExplanationTerm);
3690
3690
  }
3691
3691
 
3692
3692
  if (tmp_2) {
3693
3693
  tmp_1 = true;
3694
3694
  } else {
3695
- tmp_1 = this.l3g_1 == null;
3695
+ tmp_1 = this.o3g_1 == null;
3696
3696
  }
3697
3697
 
3698
3698
  if (tmp_1) {
3699
3699
  tmp_0 = true;
3700
3700
  } else {
3701
- var tmp_4 = this.l3g_1;
3701
+ var tmp_4 = this.o3g_1;
3702
3702
  tmp_0 = !(tmp_4 instanceof ProbExplanationTerm);
3703
3703
  }
3704
3704
 
3705
3705
  if (tmp_0) {
3706
3706
  this.ci_1 = 5;
3707
- suspendResult = this.h3g_1.z4(Companion_getInstance_9().failed(), this);
3707
+ suspendResult = this.k3g_1.z4(Companion_getInstance_9().failed(), this);
3708
3708
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3709
3709
  return suspendResult;
3710
3710
  }
3711
3711
  continue $sm;
3712
3712
  } else {
3713
- this.m3g_1 = this.k3g_1.h3c_1.y3d();
3714
- this.n3g_1 = this.l3g_1.h3c_1.y3d();
3715
- if (this.m3g_1 == null ? true : this.n3g_1 == null) {
3713
+ this.p3g_1 = this.n3g_1.k3c_1.b3e();
3714
+ this.q3g_1 = this.o3g_1.k3c_1.b3e();
3715
+ if (this.p3g_1 == null ? true : this.q3g_1 == null) {
3716
3716
  this.ci_1 = 3;
3717
- suspendResult = this.h3g_1.z4(Companion_getInstance_9().failed(), this);
3717
+ suspendResult = this.k3g_1.z4(Companion_getInstance_9().failed(), this);
3718
3718
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3719
3719
  return suspendResult;
3720
3720
  }
3721
3721
  continue $sm;
3722
3722
  } else {
3723
3723
  var tmp_5 = this;
3724
- var tmp_6 = this.j3g_1.r1u();
3725
- tmp_5.o3g_1 = tmp_6.filter(ProbQuery$computeAllSubstitutions$slambda$lambda(this.d3g_1, this.c3g_1));
3726
- this.p3g_1 = Companion_getInstance_10().ofDouble(this.m3g_1 / this.n3g_1);
3724
+ var tmp_6 = this.m3g_1.r1u();
3725
+ tmp_5.r3g_1 = tmp_6.filter(ProbQuery$computeAllSubstitutions$slambda$lambda(this.g3g_1, this.f3g_1));
3726
+ this.s3g_1 = Companion_getInstance_10().ofDouble(this.p3g_1 / this.q3g_1);
3727
3727
  this.ci_1 = 2;
3728
- suspendResult = this.h3g_1.z4(Companion_getInstance_9().ofSubstitution(this.o3g_1, [Companion_getInstance_19().b2h(this.e3g_1, this.f3g_1, this.p3g_1), Companion_getInstance_19().b2h(this.e3g_1, this.g3g_1, this.k3g_1)]), this);
3728
+ suspendResult = this.k3g_1.z4(Companion_getInstance_9().ofSubstitution(this.r3g_1, [Companion_getInstance_19().e2h(this.h3g_1, this.i3g_1, this.s3g_1), Companion_getInstance_19().e2h(this.h3g_1, this.j3g_1, this.n3g_1)]), this);
3729
3729
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3730
3730
  return suspendResult;
3731
3731
  }
@@ -3764,15 +3764,15 @@
3764
3764
  }
3765
3765
  while (true);
3766
3766
  };
3767
- ProbQuery$computeAllSubstitutions$slambda.prototype.u2t = function ($this$sequence, completion) {
3768
- var i = new ProbQuery$computeAllSubstitutions$slambda(this.b3g_1, this.c3g_1, this.d3g_1, this.e3g_1, this.f3g_1, this.g3g_1, completion);
3769
- i.h3g_1 = $this$sequence;
3767
+ ProbQuery$computeAllSubstitutions$slambda.prototype.x2t = function ($this$sequence, completion) {
3768
+ var i = new ProbQuery$computeAllSubstitutions$slambda(this.e3g_1, this.f3g_1, this.g3g_1, this.h3g_1, this.i3g_1, this.j3g_1, completion);
3769
+ i.k3g_1 = $this$sequence;
3770
3770
  return i;
3771
3771
  };
3772
3772
  function ProbQuery$computeAllSubstitutions$slambda_0($solutions, $queryWithEvidenceExplanation, $evidenceExplanation, $this_computeAllSubstitutions, $first, $fourth, resultContinuation) {
3773
3773
  var i = new ProbQuery$computeAllSubstitutions$slambda($solutions, $queryWithEvidenceExplanation, $evidenceExplanation, $this_computeAllSubstitutions, $first, $fourth, resultContinuation);
3774
3774
  var l = function ($this$sequence, $cont) {
3775
- return i.t2t($this$sequence, $cont);
3775
+ return i.w2t($this$sequence, $cont);
3776
3776
  };
3777
3777
  l.$arity = 1;
3778
3778
  return l;
@@ -3782,11 +3782,11 @@
3782
3782
  ProblogLib_getInstance();
3783
3783
  WithoutSideEffects_0.call(this, 'prob' + '_query');
3784
3784
  }
3785
- ProbQuery.prototype.r3g = function (_this__u8e3s4, first, second, third, fourth) {
3786
- Companion_getInstance_19().h2h(_this__u8e3s4, 1);
3787
- Companion_getInstance_19().n2h(_this__u8e3s4, 1);
3788
- Companion_getInstance_19().l2h(_this__u8e3s4, 1);
3789
- Companion_getInstance_19().h2h(_this__u8e3s4, 2);
3785
+ ProbQuery.prototype.u3g = function (_this__u8e3s4, first, second, third, fourth) {
3786
+ Companion_getInstance_19().k2h(_this__u8e3s4, 1);
3787
+ Companion_getInstance_19().q2h(_this__u8e3s4, 1);
3788
+ Companion_getInstance_19().o2h(_this__u8e3s4, 1);
3789
+ Companion_getInstance_19().k2h(_this__u8e3s4, 2);
3790
3790
  var queryWithEvidenceExplanation = Companion_getInstance_1().of('QueryWithEvidenceExplanation');
3791
3791
  var evidenceExplanation = Companion_getInstance_1().of('EvidenceExplanation');
3792
3792
  var tmp = _this__u8e3s4.subSolver();
@@ -3802,11 +3802,11 @@
3802
3802
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3803
3803
  var tmp1__get_functor__4k11yf = ProbSolveWithEvidence_getInstance();
3804
3804
  tmp$ret$1 = tmp1__get_functor__4k11yf.signature.name;
3805
- var solutions = tmp.solveWithOptions(tmp_0.of(tmp_2, tmp_3.of(tmp$ret$1, [queryWithEvidenceExplanation, evidenceExplanation, second])), ProbSetConfig_getInstance().s3g(third));
3805
+ var solutions = tmp.solveWithOptions(tmp_0.of(tmp_2, tmp_3.of(tmp$ret$1, [queryWithEvidenceExplanation, evidenceExplanation, second])), ProbSetConfig_getInstance().v3g(third));
3806
3806
  return sequence(ProbQuery$computeAllSubstitutions$slambda_0(solutions, queryWithEvidenceExplanation, evidenceExplanation, _this__u8e3s4, first, fourth, null));
3807
3807
  };
3808
- ProbQuery.prototype.d2i = function (_this__u8e3s4, first, second, third, fourth) {
3809
- return this.r3g(_this__u8e3s4, first, second, third, fourth);
3808
+ ProbQuery.prototype.g2i = function (_this__u8e3s4, first, second, third, fourth) {
3809
+ return this.u3g(_this__u8e3s4, first, second, third, fourth);
3810
3810
  };
3811
3811
  var ProbQuery_instance;
3812
3812
  function ProbQuery_getInstance() {
@@ -3822,24 +3822,24 @@
3822
3822
  var tmp$ret$0;
3823
3823
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3824
3824
  tmp$ret$0 = this.signature.name;
3825
- tmp.d3c_1 = tmp$ret$0 + '_flag';
3825
+ tmp.g3c_1 = tmp$ret$0 + '_flag';
3826
3826
  var tmp_0 = this;
3827
3827
  var tmp$ret$1;
3828
3828
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3829
3829
  tmp$ret$1 = this.signature.name;
3830
- tmp_0.e3c_1 = tmp$ret$1 + '_term';
3830
+ tmp_0.h3c_1 = tmp$ret$1 + '_term';
3831
3831
  var tmp_1 = this;
3832
3832
  var tmp$ret$2;
3833
3833
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3834
3834
  tmp$ret$2 = this.signature.name;
3835
- tmp_1.f3c_1 = 'it.unibo.tuprolog.solve.probability' + tmp$ret$2 + '_tag';
3835
+ tmp_1.i3c_1 = 'it.unibo.tuprolog.solve.probability' + tmp$ret$2 + '_tag';
3836
3836
  }
3837
- ProbSetConfig.prototype.g2p = function (_this__u8e3s4, first) {
3838
- Companion_getInstance_19().h2h(_this__u8e3s4, 0);
3839
- Companion_getInstance_19().q2h(_this__u8e3s4, 0);
3837
+ ProbSetConfig.prototype.j2p = function (_this__u8e3s4, first) {
3838
+ Companion_getInstance_19().k2h(_this__u8e3s4, 0);
3839
+ Companion_getInstance_19().t2h(_this__u8e3s4, 0);
3840
3840
  var tmp$ret$2;
3841
3841
  // Inline function 'kotlin.arrayOf' call
3842
- var tmp0_arrayOf = [SetFlags_init_$Create$([new Pair(this.d3c_1, first)])];
3842
+ var tmp0_arrayOf = [SetFlags_init_$Create$([new Pair(this.g3c_1, first)])];
3843
3843
  var tmp$ret$1;
3844
3844
  // Inline function 'kotlin.js.unsafeCast' call
3845
3845
  var tmp$ret$0;
@@ -3847,25 +3847,25 @@
3847
3847
  tmp$ret$0 = tmp0_arrayOf;
3848
3848
  tmp$ret$1 = tmp$ret$0;
3849
3849
  tmp$ret$2 = tmp$ret$1;
3850
- return _this__u8e3s4.m2g(null, null, tmp$ret$2.slice(), 3, null);
3850
+ return _this__u8e3s4.p2g(null, null, tmp$ret$2.slice(), 3, null);
3851
3851
  };
3852
- ProbSetConfig.prototype.a2k = function (_this__u8e3s4, first) {
3853
- return this.g2p(_this__u8e3s4, first);
3852
+ ProbSetConfig.prototype.d2k = function (_this__u8e3s4, first) {
3853
+ return this.j2p(_this__u8e3s4, first);
3854
3854
  };
3855
- ProbSetConfig.prototype.s3g = function (_this__u8e3s4) {
3856
- var tmp0_elvis_lhs = _this__u8e3s4.getTag(this.f3c_1);
3855
+ ProbSetConfig.prototype.v3g = function (_this__u8e3s4) {
3856
+ var tmp0_elvis_lhs = _this__u8e3s4.getTag(this.i3c_1);
3857
3857
  return tmp0_elvis_lhs == null ? Companion_getInstance_5().DEFAULT : tmp0_elvis_lhs;
3858
3858
  };
3859
- ProbSetConfig.prototype.g3c = function (_this__u8e3s4) {
3860
- return setTag(Companion_getInstance_8().of(this.e3c_1), this.f3c_1, _this__u8e3s4);
3859
+ ProbSetConfig.prototype.j3c = function (_this__u8e3s4) {
3860
+ return setTag(Companion_getInstance_8().of(this.h3c_1), this.i3c_1, _this__u8e3s4);
3861
3861
  };
3862
- ProbSetConfig.prototype.t3g = function (_this__u8e3s4) {
3863
- var tmp0_safe_receiver = _this__u8e3s4.x1u().o9(this.d3c_1);
3864
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.s3g(tmp0_safe_receiver);
3862
+ ProbSetConfig.prototype.w3g = function (_this__u8e3s4) {
3863
+ var tmp0_safe_receiver = _this__u8e3s4.x1u().o9(this.g3c_1);
3864
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.v3g(tmp0_safe_receiver);
3865
3865
  return tmp1_elvis_lhs == null ? Companion_getInstance_5().DEFAULT : tmp1_elvis_lhs;
3866
3866
  };
3867
- ProbSetConfig.prototype.s3e = function (_this__u8e3s4) {
3868
- return !get_isProbabilistic(this.t3g(_this__u8e3s4));
3867
+ ProbSetConfig.prototype.v3e = function (_this__u8e3s4) {
3868
+ return !get_isProbabilistic(this.w3g(_this__u8e3s4));
3869
3869
  };
3870
3870
  var ProbSetConfig_instance;
3871
3871
  function ProbSetConfig_getInstance() {
@@ -3887,20 +3887,20 @@
3887
3887
  };
3888
3888
  }
3889
3889
  function ProbSolve$computeAllSubstitutions$slambda($solutionGroups, $explanationVar, $this_computeAllSubstitutions, $first, resultContinuation) {
3890
- this.c3h_1 = $solutionGroups;
3891
- this.d3h_1 = $explanationVar;
3892
- this.e3h_1 = $this_computeAllSubstitutions;
3893
- this.f3h_1 = $first;
3890
+ this.f3h_1 = $solutionGroups;
3891
+ this.g3h_1 = $explanationVar;
3892
+ this.h3h_1 = $this_computeAllSubstitutions;
3893
+ this.i3h_1 = $first;
3894
3894
  CoroutineImpl.call(this, resultContinuation);
3895
3895
  }
3896
- ProbSolve$computeAllSubstitutions$slambda.prototype.t2t = function ($this$sequence, $cont) {
3897
- var tmp = this.u2t($this$sequence, $cont);
3896
+ ProbSolve$computeAllSubstitutions$slambda.prototype.w2t = function ($this$sequence, $cont) {
3897
+ var tmp = this.x2t($this$sequence, $cont);
3898
3898
  tmp.ei_1 = Unit_getInstance();
3899
3899
  tmp.fi_1 = null;
3900
3900
  return tmp.ki();
3901
3901
  };
3902
3902
  ProbSolve$computeAllSubstitutions$slambda.prototype.wi = function (p1, $cont) {
3903
- return this.t2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
3903
+ return this.w2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
3904
3904
  };
3905
3905
  ProbSolve$computeAllSubstitutions$slambda.prototype.ki = function () {
3906
3906
  var suspendResult = this.ei_1;
@@ -3911,23 +3911,23 @@
3911
3911
  case 0:
3912
3912
  this.di_1 = 4;
3913
3913
  var tmp_0 = this;
3914
- tmp_0.h3h_1 = this.c3h_1.z().j();
3914
+ tmp_0.k3h_1 = this.f3h_1.z().j();
3915
3915
  this.ci_1 = 1;
3916
3916
  continue $sm;
3917
3917
  case 1:
3918
- if (!this.h3h_1.m()) {
3918
+ if (!this.k3h_1.m()) {
3919
3919
  this.ci_1 = 3;
3920
3920
  continue $sm;
3921
3921
  }
3922
3922
 
3923
- this.i3h_1 = this.h3h_1.p();
3923
+ this.l3h_1 = this.k3h_1.p();
3924
3924
  var tmp_1 = this;
3925
- var tmp0_map = this.i3h_1.b1();
3925
+ var tmp0_map = this.l3h_1.b1();
3926
3926
  var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
3927
3927
  var tmp0_iterator = tmp0_map.j();
3928
3928
  while (tmp0_iterator.m()) {
3929
3929
  var item = tmp0_iterator.p();
3930
- tmp0_mapTo.g(item.r1u().a3(this.d3h_1));
3930
+ tmp0_mapTo.g(item.r1u().a3(this.g3h_1));
3931
3931
  }
3932
3932
 
3933
3933
  var tmp1_filterIsInstance = tmp0_mapTo;
@@ -3945,7 +3945,7 @@
3945
3945
  var tmp0_iterator_1 = tmp2_map.j();
3946
3946
  while (tmp0_iterator_1.m()) {
3947
3947
  var item_0 = tmp0_iterator_1.p();
3948
- tmp0_mapTo_0.g(item_0.h3c_1);
3948
+ tmp0_mapTo_0.g(item_0.k3c_1);
3949
3949
  }
3950
3950
 
3951
3951
  var tmp3_reduce = tmp0_mapTo_0;
@@ -3956,13 +3956,13 @@
3956
3956
  while (iterator.m()) {
3957
3957
  var tmp4__anonymous__pkmkx7 = accumulator;
3958
3958
  var tmp5__anonymous__kpxxpo = iterator.p();
3959
- accumulator = tmp5__anonymous__kpxxpo.x3d() === 1.0 ? tmp4__anonymous__pkmkx7 : tmp4__anonymous__pkmkx7.x3d() === 1.0 ? tmp5__anonymous__kpxxpo : tmp4__anonymous__pkmkx7.or(tmp5__anonymous__kpxxpo);
3959
+ accumulator = tmp5__anonymous__kpxxpo.a3e() === 1.0 ? tmp4__anonymous__pkmkx7 : tmp4__anonymous__pkmkx7.a3e() === 1.0 ? tmp5__anonymous__kpxxpo : tmp4__anonymous__pkmkx7.or(tmp5__anonymous__kpxxpo);
3960
3960
  }
3961
3961
 
3962
- tmp_1.j3h_1 = accumulator;
3963
- this.k3h_1 = Companion_getInstance_9().ofSubstitution(this.i3h_1.a1(), [Companion_getInstance_19().b2h(this.e3h_1, this.f3h_1, new ProbExplanationTerm(this.j3h_1))]);
3962
+ tmp_1.m3h_1 = accumulator;
3963
+ this.n3h_1 = Companion_getInstance_9().ofSubstitution(this.l3h_1.a1(), [Companion_getInstance_19().e2h(this.h3h_1, this.i3h_1, new ProbExplanationTerm(this.m3h_1))]);
3964
3964
  this.ci_1 = 2;
3965
- suspendResult = this.g3h_1.z4(this.k3h_1, this);
3965
+ suspendResult = this.j3h_1.z4(this.n3h_1, this);
3966
3966
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3967
3967
  return suspendResult;
3968
3968
  }
@@ -3986,15 +3986,15 @@
3986
3986
  }
3987
3987
  while (true);
3988
3988
  };
3989
- ProbSolve$computeAllSubstitutions$slambda.prototype.u2t = function ($this$sequence, completion) {
3990
- var i = new ProbSolve$computeAllSubstitutions$slambda(this.c3h_1, this.d3h_1, this.e3h_1, this.f3h_1, completion);
3991
- i.g3h_1 = $this$sequence;
3989
+ ProbSolve$computeAllSubstitutions$slambda.prototype.x2t = function ($this$sequence, completion) {
3990
+ var i = new ProbSolve$computeAllSubstitutions$slambda(this.f3h_1, this.g3h_1, this.h3h_1, this.i3h_1, completion);
3991
+ i.j3h_1 = $this$sequence;
3992
3992
  return i;
3993
3993
  };
3994
3994
  function ProbSolve$computeAllSubstitutions$slambda_0($solutionGroups, $explanationVar, $this_computeAllSubstitutions, $first, resultContinuation) {
3995
3995
  var i = new ProbSolve$computeAllSubstitutions$slambda($solutionGroups, $explanationVar, $this_computeAllSubstitutions, $first, resultContinuation);
3996
3996
  var l = function ($this$sequence, $cont) {
3997
- return i.t2t($this$sequence, $cont);
3997
+ return i.w2t($this$sequence, $cont);
3998
3998
  };
3999
3999
  l.$arity = 1;
4000
4000
  return l;
@@ -4004,17 +4004,17 @@
4004
4004
  ProblogLib_getInstance();
4005
4005
  WithoutSideEffects_1.call(this, 'prob' + '_solve');
4006
4006
  }
4007
- ProbSolve.prototype.w2q = function (_this__u8e3s4, first, second) {
4008
- Companion_getInstance_19().h2h(_this__u8e3s4, 1);
4009
- Companion_getInstance_19().n2h(_this__u8e3s4, 1);
4010
- if (ProbSetConfig_getInstance().s3e(_this__u8e3s4.context)) {
4007
+ ProbSolve.prototype.z2q = function (_this__u8e3s4, first, second) {
4008
+ Companion_getInstance_19().k2h(_this__u8e3s4, 1);
4009
+ Companion_getInstance_19().q2h(_this__u8e3s4, 1);
4010
+ if (ProbSetConfig_getInstance().v3e(_this__u8e3s4.context)) {
4011
4011
  var tmp = _this__u8e3s4.subSolver();
4012
4012
  var tmp_0 = Companion_getInstance_3();
4013
4013
  var tmp$ret$0;
4014
4014
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
4015
4015
  var tmp0__get_functor__thl4dk = Prob_getInstance();
4016
4016
  tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
4017
- var tmp_1 = tmp.solveWithOptions(tmp_0.of(tmp$ret$0, [first, second]), ProbSetConfig_getInstance().t3g(_this__u8e3s4.context));
4017
+ var tmp_1 = tmp.solveWithOptions(tmp_0.of(tmp$ret$0, [first, second]), ProbSetConfig_getInstance().w3g(_this__u8e3s4.context));
4018
4018
  return map(tmp_1, ProbSolve$computeAllSubstitutions$lambda);
4019
4019
  }
4020
4020
  var tmp_2 = Companion_getInstance_1();
@@ -4026,7 +4026,7 @@
4026
4026
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
4027
4027
  var tmp1__get_functor__4k11yf = Prob_getInstance();
4028
4028
  tmp$ret$1 = tmp1__get_functor__4k11yf.signature.name;
4029
- var solutions = toList(tmp_3.solveWithOptions(tmp_4.of(tmp$ret$1, [explanationVar, second]), ProbSetConfig_getInstance().t3g(_this__u8e3s4.context)));
4029
+ var solutions = toList(tmp_3.solveWithOptions(tmp_4.of(tmp$ret$1, [explanationVar, second]), ProbSetConfig_getInstance().w3g(_this__u8e3s4.context)));
4030
4030
  var tmp$ret$2;
4031
4031
  // Inline function 'kotlin.sequences.filterIsInstance' call
4032
4032
  var tmp2_filterIsInstance = asSequence(solutions);
@@ -4063,7 +4063,7 @@
4063
4063
  tmp$ret$3 = false;
4064
4064
  }
4065
4065
  if (!tmp$ret$3) {
4066
- tmp_6 = sequenceOf([Companion_getInstance_9().ofSubstitution(Companion_getInstance_19().b2h(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_21().k3d_1)), [])]);
4066
+ tmp_6 = sequenceOf([Companion_getInstance_9().ofSubstitution(Companion_getInstance_19().e2h(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_21().n3d_1)), [])]);
4067
4067
  } else {
4068
4068
  var tmp$ret$11;
4069
4069
  // Inline function 'kotlin.collections.groupBy' call
@@ -4118,8 +4118,8 @@
4118
4118
  }
4119
4119
  return tmp_6;
4120
4120
  };
4121
- ProbSolve.prototype.i2g = function (_this__u8e3s4, first, second) {
4122
- return this.w2q(_this__u8e3s4, first, second);
4121
+ ProbSolve.prototype.l2g = function (_this__u8e3s4, first, second) {
4122
+ return this.z2q(_this__u8e3s4, first, second);
4123
4123
  };
4124
4124
  var ProbSolve_instance;
4125
4125
  function ProbSolve_getInstance() {
@@ -4139,27 +4139,27 @@
4139
4139
  return it instanceof ProbExplanationTerm;
4140
4140
  }
4141
4141
  function ProbSolveEvidence$computeOne$lambda_2(t) {
4142
- return t.h3c_1;
4142
+ return t.k3c_1;
4143
4143
  }
4144
4144
  function ProbSolveEvidence() {
4145
4145
  ProbSolveEvidence_instance = this;
4146
4146
  ProblogLib_getInstance();
4147
4147
  NonBacktrackable_1.call(this, 'prob' + '_solve_evidence');
4148
4148
  }
4149
- ProbSolveEvidence.prototype.g2p = function (_this__u8e3s4, first) {
4149
+ ProbSolveEvidence.prototype.j2p = function (_this__u8e3s4, first) {
4150
4150
  var tmp = Companion_getInstance_13();
4151
4151
  ProblogLib_getInstance();
4152
4152
  var evidenceIndicator = tmp.ofString('evidence', 2);
4153
4153
  if (!_this__u8e3s4.context.y1u().containsIndicator(evidenceIndicator) ? !_this__u8e3s4.context.z1u().containsIndicator(evidenceIndicator) : false) {
4154
- var tmp_0 = Companion_getInstance_19().b2h(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_21().l3d_1));
4155
- return _this__u8e3s4.g2g(tmp_0, null, [], 6, null);
4154
+ var tmp_0 = Companion_getInstance_19().e2h(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_21().o3d_1));
4155
+ return _this__u8e3s4.j2g(tmp_0, null, [], 6, null);
4156
4156
  }
4157
4157
  var evidenceTermVar = Companion_getInstance_1().of('TermVar');
4158
4158
  var evidenceTruthVar = Companion_getInstance_1().of('TruthVar');
4159
4159
  var tmp_1 = Companion_getInstance_3();
4160
4160
  ProblogLib_getInstance();
4161
4161
  var subQuery = tmp_1.of('evidence', [evidenceTermVar, evidenceTruthVar]);
4162
- var tmp_2 = ProbSetConfig_getInstance().t3g(_this__u8e3s4.context);
4162
+ var tmp_2 = ProbSetConfig_getInstance().w3g(_this__u8e3s4.context);
4163
4163
  Companion_getInstance_5();
4164
4164
  var subOptions = tmp_2.setLimit(-1).setLazy(false);
4165
4165
  var tmp$ret$10;
@@ -4190,7 +4190,7 @@
4190
4190
  tmp_5 = !(!(truth == null) ? isInterface(truth, Truth) : false);
4191
4191
  }
4192
4192
  if (tmp_5) {
4193
- tmp_4 = Companion_getInstance_21().k3d_1;
4193
+ tmp_4 = Companion_getInstance_21().n3d_1;
4194
4194
  } else {
4195
4195
  var tmp_6 = Companion_getInstance_1();
4196
4196
  ProblogLib_getInstance();
@@ -4205,7 +4205,7 @@
4205
4205
  var tmp0__get_functor__thl4dk = ProbSolve_getInstance();
4206
4206
  tmp$ret$1 = tmp0__get_functor__thl4dk.signature.name;
4207
4207
  var tmp_8 = tmp_7.of(tmp$ret$1, [explanationVar, term]);
4208
- var tmp_9 = _this__u8e3s4.e2j(tmp_8, new Long(0, 0), 2, null);
4208
+ var tmp_9 = _this__u8e3s4.h2j(tmp_8, new Long(0, 0), 2, null);
4209
4209
  var tmp1_filterIsInstance = map(tmp_9, ProbSolveEvidence$computeOne$lambda_0(explanationVar));
4210
4210
  var tmp_10 = filter(tmp1_filterIsInstance, ProbSolveEvidence$computeOne$lambda_1);
4211
4211
  tmp$ret$2 = isInterface(tmp_10, Sequence) ? tmp_10 : THROW_CCE();
@@ -4220,7 +4220,7 @@
4220
4220
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.primitive.ProbSolveEvidence.computeOne.<anonymous>.<anonymous>' call
4221
4221
  var tmp3__anonymous__ufb84q = accumulator;
4222
4222
  var tmp4__anonymous__pkmkx7 = iterator.p();
4223
- tmp$ret$3 = tmp4__anonymous__pkmkx7.x3d() === 1.0 ? tmp3__anonymous__ufb84q : tmp3__anonymous__ufb84q.x3d() === 1.0 ? tmp4__anonymous__pkmkx7 : tmp4__anonymous__pkmkx7.or(tmp3__anonymous__ufb84q);
4223
+ tmp$ret$3 = tmp4__anonymous__pkmkx7.a3e() === 1.0 ? tmp3__anonymous__ufb84q : tmp3__anonymous__ufb84q.a3e() === 1.0 ? tmp4__anonymous__pkmkx7 : tmp4__anonymous__pkmkx7.or(tmp3__anonymous__ufb84q);
4224
4224
  accumulator = tmp$ret$3;
4225
4225
  }
4226
4226
  tmp$ret$4 = accumulator;
@@ -4241,7 +4241,7 @@
4241
4241
  var element = tmp0_iterator_0.p();
4242
4242
  var tmp$ret$8;
4243
4243
  // Inline function 'it.unibo.tuprolog.solve.problog.lib.primitive.ProbSolveEvidence.computeOne.<anonymous>' call
4244
- tmp$ret$8 = !equals(element, Companion_getInstance_21().k3d_1);
4244
+ tmp$ret$8 = !equals(element, Companion_getInstance_21().n3d_1);
4245
4245
  if (tmp$ret$8) {
4246
4246
  tmp0_filterTo.g(element);
4247
4247
  }
@@ -4251,7 +4251,7 @@
4251
4251
  var result = tmp$ret$10;
4252
4252
  var tmp_12;
4253
4253
  if (result.d()) {
4254
- tmp_12 = Companion_getInstance_21().l3d_1;
4254
+ tmp_12 = Companion_getInstance_21().o3d_1;
4255
4255
  } else {
4256
4256
  var tmp$ret$12;
4257
4257
  // Inline function 'kotlin.collections.reduce' call
@@ -4271,11 +4271,11 @@
4271
4271
  tmp_12 = tmp$ret$12;
4272
4272
  }
4273
4273
  var resultExplanation = tmp_12;
4274
- var tmp_13 = Companion_getInstance_19().b2h(_this__u8e3s4, first, new ProbExplanationTerm(resultExplanation));
4275
- return _this__u8e3s4.g2g(tmp_13, null, [], 6, null);
4274
+ var tmp_13 = Companion_getInstance_19().e2h(_this__u8e3s4, first, new ProbExplanationTerm(resultExplanation));
4275
+ return _this__u8e3s4.j2g(tmp_13, null, [], 6, null);
4276
4276
  };
4277
- ProbSolveEvidence.prototype.a2k = function (_this__u8e3s4, first) {
4278
- return this.g2p(_this__u8e3s4, first);
4277
+ ProbSolveEvidence.prototype.d2k = function (_this__u8e3s4, first) {
4278
+ return this.j2p(_this__u8e3s4, first);
4279
4279
  };
4280
4280
  var ProbSolveEvidence_instance;
4281
4281
  function ProbSolveEvidence_getInstance() {
@@ -4289,22 +4289,22 @@
4289
4289
  };
4290
4290
  }
4291
4291
  function ProbSolveWithEvidence$computeAllSubstitutions$slambda($solutions, $goalExplanationVar, $evidenceExplanationTerm, $this_computeAllSubstitutions, $first, $second, resultContinuation) {
4292
- this.v3h_1 = $solutions;
4293
- this.w3h_1 = $goalExplanationVar;
4294
- this.x3h_1 = $evidenceExplanationTerm;
4295
- this.y3h_1 = $this_computeAllSubstitutions;
4296
- this.z3h_1 = $first;
4297
- this.a3i_1 = $second;
4292
+ this.y3h_1 = $solutions;
4293
+ this.z3h_1 = $goalExplanationVar;
4294
+ this.a3i_1 = $evidenceExplanationTerm;
4295
+ this.b3i_1 = $this_computeAllSubstitutions;
4296
+ this.c3i_1 = $first;
4297
+ this.d3i_1 = $second;
4298
4298
  CoroutineImpl.call(this, resultContinuation);
4299
4299
  }
4300
- ProbSolveWithEvidence$computeAllSubstitutions$slambda.prototype.t2t = function ($this$sequence, $cont) {
4301
- var tmp = this.u2t($this$sequence, $cont);
4300
+ ProbSolveWithEvidence$computeAllSubstitutions$slambda.prototype.w2t = function ($this$sequence, $cont) {
4301
+ var tmp = this.x2t($this$sequence, $cont);
4302
4302
  tmp.ei_1 = Unit_getInstance();
4303
4303
  tmp.fi_1 = null;
4304
4304
  return tmp.ki();
4305
4305
  };
4306
4306
  ProbSolveWithEvidence$computeAllSubstitutions$slambda.prototype.wi = function (p1, $cont) {
4307
- return this.t2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
4307
+ return this.w2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
4308
4308
  };
4309
4309
  ProbSolveWithEvidence$computeAllSubstitutions$slambda.prototype.ki = function () {
4310
4310
  var suspendResult = this.ei_1;
@@ -4314,57 +4314,57 @@
4314
4314
  switch (tmp) {
4315
4315
  case 0:
4316
4316
  this.di_1 = 6;
4317
- this.c3i_1 = this.v3h_1.j();
4317
+ this.f3i_1 = this.y3h_1.j();
4318
4318
  this.ci_1 = 1;
4319
4319
  continue $sm;
4320
4320
  case 1:
4321
- if (!this.c3i_1.m()) {
4321
+ if (!this.f3i_1.m()) {
4322
4322
  this.ci_1 = 5;
4323
4323
  continue $sm;
4324
4324
  }
4325
4325
 
4326
- this.d3i_1 = this.c3i_1.p();
4327
- if (this.d3i_1.f1w())
4328
- throw ensureNotNull(this.d3i_1.c1w());
4329
- this.e3i_1 = this.d3i_1.r1u().a3(this.w3h_1);
4326
+ this.g3i_1 = this.f3i_1.p();
4327
+ if (this.g3i_1.f1w())
4328
+ throw ensureNotNull(this.g3i_1.c1w());
4329
+ this.h3i_1 = this.g3i_1.r1u().a3(this.z3h_1);
4330
4330
  var tmp_0;
4331
4331
  var tmp_1;
4332
4332
  var tmp_2;
4333
- if (this.x3h_1 == null) {
4333
+ if (this.a3i_1 == null) {
4334
4334
  tmp_2 = true;
4335
4335
  } else {
4336
- var tmp_3 = this.x3h_1;
4336
+ var tmp_3 = this.a3i_1;
4337
4337
  tmp_2 = !(tmp_3 instanceof ProbExplanationTerm);
4338
4338
  }
4339
4339
 
4340
4340
  if (tmp_2) {
4341
4341
  tmp_1 = true;
4342
4342
  } else {
4343
- tmp_1 = this.e3i_1 == null;
4343
+ tmp_1 = this.h3i_1 == null;
4344
4344
  }
4345
4345
 
4346
4346
  if (tmp_1) {
4347
4347
  tmp_0 = true;
4348
4348
  } else {
4349
- var tmp_4 = this.e3i_1;
4349
+ var tmp_4 = this.h3i_1;
4350
4350
  tmp_0 = !(tmp_4 instanceof ProbExplanationTerm);
4351
4351
  }
4352
4352
 
4353
4353
  if (tmp_0) {
4354
4354
  this.ci_1 = 3;
4355
- suspendResult = this.b3i_1.z4(Companion_getInstance_9().failed(), this);
4355
+ suspendResult = this.e3i_1.z4(Companion_getInstance_9().failed(), this);
4356
4356
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4357
4357
  return suspendResult;
4358
4358
  }
4359
4359
  continue $sm;
4360
4360
  } else {
4361
- this.f3i_1 = new ProbExplanationTerm(this.e3i_1.h3c_1.and(this.x3h_1.h3c_1));
4361
+ this.i3i_1 = new ProbExplanationTerm(this.h3i_1.k3c_1.and(this.a3i_1.k3c_1));
4362
4362
  this.ci_1 = 2;
4363
4363
  var tmp_5 = Companion_getInstance_9();
4364
- var tmp_6 = Companion_getInstance_19().b2h(this.y3h_1, this.z3h_1, this.f3i_1);
4365
- var tmp_7 = Companion_getInstance_19().b2h(this.y3h_1, this.a3i_1, this.x3h_1);
4366
- var tmp_8 = this.d3i_1.r1u();
4367
- suspendResult = this.b3i_1.z4(tmp_5.ofSubstitution(tmp_6, [tmp_7, tmp_8.filter(ProbSolveWithEvidence$computeAllSubstitutions$slambda$lambda(this.w3h_1))]), this);
4364
+ var tmp_6 = Companion_getInstance_19().e2h(this.b3i_1, this.c3i_1, this.i3i_1);
4365
+ var tmp_7 = Companion_getInstance_19().e2h(this.b3i_1, this.d3i_1, this.a3i_1);
4366
+ var tmp_8 = this.g3i_1.r1u();
4367
+ suspendResult = this.e3i_1.z4(tmp_5.ofSubstitution(tmp_6, [tmp_7, tmp_8.filter(ProbSolveWithEvidence$computeAllSubstitutions$slambda$lambda(this.z3h_1))]), this);
4368
4368
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4369
4369
  return suspendResult;
4370
4370
  }
@@ -4396,15 +4396,15 @@
4396
4396
  }
4397
4397
  while (true);
4398
4398
  };
4399
- ProbSolveWithEvidence$computeAllSubstitutions$slambda.prototype.u2t = function ($this$sequence, completion) {
4400
- var i = new ProbSolveWithEvidence$computeAllSubstitutions$slambda(this.v3h_1, this.w3h_1, this.x3h_1, this.y3h_1, this.z3h_1, this.a3i_1, completion);
4401
- i.b3i_1 = $this$sequence;
4399
+ ProbSolveWithEvidence$computeAllSubstitutions$slambda.prototype.x2t = function ($this$sequence, completion) {
4400
+ var i = new ProbSolveWithEvidence$computeAllSubstitutions$slambda(this.y3h_1, this.z3h_1, this.a3i_1, this.b3i_1, this.c3i_1, this.d3i_1, completion);
4401
+ i.e3i_1 = $this$sequence;
4402
4402
  return i;
4403
4403
  };
4404
4404
  function ProbSolveWithEvidence$computeAllSubstitutions$slambda_0($solutions, $goalExplanationVar, $evidenceExplanationTerm, $this_computeAllSubstitutions, $first, $second, resultContinuation) {
4405
4405
  var i = new ProbSolveWithEvidence$computeAllSubstitutions$slambda($solutions, $goalExplanationVar, $evidenceExplanationTerm, $this_computeAllSubstitutions, $first, $second, resultContinuation);
4406
4406
  var l = function ($this$sequence, $cont) {
4407
- return i.t2t($this$sequence, $cont);
4407
+ return i.w2t($this$sequence, $cont);
4408
4408
  };
4409
4409
  l.$arity = 1;
4410
4410
  return l;
@@ -4414,13 +4414,13 @@
4414
4414
  ProblogLib_getInstance();
4415
4415
  WithoutSideEffects.call(this, 'prob' + '_solve_with_evidence');
4416
4416
  }
4417
- ProbSolveWithEvidence.prototype.r2p = function (_this__u8e3s4, first, second, third) {
4418
- Companion_getInstance_19().h2h(_this__u8e3s4, 2);
4419
- Companion_getInstance_19().n2h(_this__u8e3s4, 2);
4417
+ ProbSolveWithEvidence.prototype.u2p = function (_this__u8e3s4, first, second, third) {
4418
+ Companion_getInstance_19().k2h(_this__u8e3s4, 2);
4419
+ Companion_getInstance_19().q2h(_this__u8e3s4, 2);
4420
4420
  var evidenceExplanationVar = Companion_getInstance_1().of('EvidenceExplanation');
4421
4421
  var tmp;
4422
- if (ProbSetConfig_getInstance().s3e(_this__u8e3s4.context)) {
4423
- tmp = toTerm(Companion_getInstance_21().l3d_1);
4422
+ if (ProbSetConfig_getInstance().v3e(_this__u8e3s4.context)) {
4423
+ tmp = toTerm(Companion_getInstance_21().o3d_1);
4424
4424
  } else {
4425
4425
  var tmp_0 = Companion_getInstance_3();
4426
4426
  var tmp$ret$0;
@@ -4428,7 +4428,7 @@
4428
4428
  var tmp0__get_functor__thl4dk = ProbSolveEvidence_getInstance();
4429
4429
  tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
4430
4430
  var subQuery = tmp_0.of(tmp$ret$0, [evidenceExplanationVar]);
4431
- var solution = _this__u8e3s4.subSolver().solveOnceWithOptions(subQuery, ProbSetConfig_getInstance().t3g(_this__u8e3s4.context));
4431
+ var solution = _this__u8e3s4.subSolver().solveOnceWithOptions(subQuery, ProbSetConfig_getInstance().w3g(_this__u8e3s4.context));
4432
4432
  tmp = solution.r1u().a3(evidenceExplanationVar);
4433
4433
  }
4434
4434
  var evidenceExplanationTerm = tmp;
@@ -4439,11 +4439,11 @@
4439
4439
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
4440
4440
  var tmp1__get_functor__4k11yf = ProbSolve_getInstance();
4441
4441
  tmp$ret$1 = tmp1__get_functor__4k11yf.signature.name;
4442
- var solutions = tmp_1.solveWithOptions(tmp_2.of(tmp$ret$1, [goalExplanationVar, third]), ProbSetConfig_getInstance().t3g(_this__u8e3s4.context));
4442
+ var solutions = tmp_1.solveWithOptions(tmp_2.of(tmp$ret$1, [goalExplanationVar, third]), ProbSetConfig_getInstance().w3g(_this__u8e3s4.context));
4443
4443
  return sequence(ProbSolveWithEvidence$computeAllSubstitutions$slambda_0(solutions, goalExplanationVar, evidenceExplanationTerm, _this__u8e3s4, first, second, null));
4444
4444
  };
4445
- ProbSolveWithEvidence.prototype.n2j = function (_this__u8e3s4, first, second, third) {
4446
- return this.r2p(_this__u8e3s4, first, second, third);
4445
+ ProbSolveWithEvidence.prototype.q2j = function (_this__u8e3s4, first, second, third) {
4446
+ return this.u2p(_this__u8e3s4, first, second, third);
4447
4447
  };
4448
4448
  var ProbSolveWithEvidence_instance;
4449
4449
  function ProbSolveWithEvidence_getInstance() {
@@ -4456,10 +4456,10 @@
4456
4456
  ProblogLib_getInstance();
4457
4457
  RuleWrapper_init_$Init$('prob', 2, false, 4, null, this);
4458
4458
  }
4459
- Prob.prototype.g2k = function (_this__u8e3s4) {
4459
+ Prob.prototype.j2k = function (_this__u8e3s4) {
4460
4460
  return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('EXPL'), _this__u8e3s4.varOf('GOAL')]);
4461
4461
  };
4462
- Prob.prototype.h2k = function (_this__u8e3s4) {
4462
+ Prob.prototype.k2k = function (_this__u8e3s4) {
4463
4463
  var expl = _this__u8e3s4.varOf('EXPL');
4464
4464
  var goal = _this__u8e3s4.varOf('GOAL');
4465
4465
  var newGoal = _this__u8e3s4.varOf('NEW_GOAL');
@@ -4507,21 +4507,21 @@
4507
4507
  DefaultBuiltins.prototype.containsOperator = containsOperator;
4508
4508
  DefaultBuiltins.prototype.hasPrimitive = hasPrimitive;
4509
4509
  DefaultBuiltins.prototype.hasFunction = hasFunction;
4510
- DefaultBuiltins.prototype.j2e = get_ruleSignatures;
4510
+ DefaultBuiltins.prototype.p2e = get_ruleSignatures;
4511
4511
  DefaultBuiltins.prototype.hasProtected = hasProtected;
4512
4512
  MinimalBuiltins.prototype.containsSignature = containsSignature;
4513
4513
  MinimalBuiltins.prototype.containsOperator = containsOperator;
4514
4514
  MinimalBuiltins.prototype.hasPrimitive = hasPrimitive;
4515
4515
  MinimalBuiltins.prototype.hasFunction = hasFunction;
4516
- MinimalBuiltins.prototype.j2e = get_ruleSignatures;
4516
+ MinimalBuiltins.prototype.p2e = get_ruleSignatures;
4517
4517
  MinimalBuiltins.prototype.hasProtected = hasProtected;
4518
4518
  ProblogLib.prototype.containsSignature = containsSignature;
4519
4519
  ProblogLib.prototype.containsOperator = containsOperator;
4520
4520
  ProblogLib.prototype.hasPrimitive = hasPrimitive;
4521
4521
  ProblogLib.prototype.hasFunction = hasFunction;
4522
- ProblogLib.prototype.j2e = get_ruleSignatures;
4522
+ ProblogLib.prototype.p2e = get_ruleSignatures;
4523
4523
  ProblogLib.prototype.hasProtected = hasProtected;
4524
- BinaryDecisionDiagramExplanation.prototype.y3d = get_probabilityOrNull;
4524
+ BinaryDecisionDiagramExplanation.prototype.b3e = get_probabilityOrNull;
4525
4525
  //endregion
4526
4526
  //region block: init
4527
4527
  ANNOTATION_FUNCTOR = '::';