@tuprolog/arg2p 0.16.2 → 0.16.3

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.
@@ -34,64 +34,64 @@
34
34
  'use strict';
35
35
  //region block: imports
36
36
  var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.i;
37
- var ensureNotNull = kotlin_kotlin.$_$.sb;
38
- var filter = kotlin_kotlin.$_$.n8;
39
- var map = kotlin_kotlin.$_$.z8;
40
- var firstOrNull = kotlin_kotlin.$_$.o8;
37
+ var ensureNotNull = kotlin_kotlin.$_$.hc;
38
+ var filter = kotlin_kotlin.$_$.w8;
39
+ var map = kotlin_kotlin.$_$.i9;
40
+ var firstOrNull = kotlin_kotlin.$_$.x8;
41
41
  var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.o;
42
42
  var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_unify.$_$.a;
43
43
  var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.p;
44
44
  var parseTerm = kotlin_it_unibo_tuprolog_parser_core.$_$.e;
45
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.q;
46
- var Unit_instance = kotlin_kotlin.$_$.o;
47
- var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
48
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.p;
49
- var plus = kotlin_kotlin.$_$.i4;
50
- var addAll = kotlin_kotlin.$_$.x1;
51
- var plus_0 = kotlin_kotlin.$_$.h4;
52
- var emptyList = kotlin_kotlin.$_$.u2;
53
- var to = kotlin_kotlin.$_$.zb;
45
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.s;
46
+ var Unit_instance = kotlin_kotlin.$_$.p;
47
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.o2;
48
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.r;
49
+ var plus = kotlin_kotlin.$_$.q4;
50
+ var addAll = kotlin_kotlin.$_$.c2;
51
+ var plus_0 = kotlin_kotlin.$_$.p4;
52
+ var emptyList = kotlin_kotlin.$_$.c3;
53
+ var to = kotlin_kotlin.$_$.oc;
54
54
  var Companion_instance_1 = kotlin_it_unibo_tuprolog_theory.$_$.b;
55
- var parseTheoryWithOperators = kotlin_it_unibo_tuprolog_parser_theory.$_$.b;
55
+ var parseTheoryWithOperators = kotlin_it_unibo_tuprolog_parser_theory.$_$.c;
56
56
  var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.n;
57
57
  var parseStruct = kotlin_it_unibo_tuprolog_parser_core.$_$.d;
58
58
  var Graph = kotlin_it_unibo_tuprolog_argumentation_core.$_$.l;
59
- var asSequence = kotlin_kotlin.$_$.g2;
60
- var flatMap = kotlin_kotlin.$_$.r8;
61
- var toList = kotlin_kotlin.$_$.o9;
59
+ var asSequence = kotlin_kotlin.$_$.l2;
60
+ var flatMap = kotlin_kotlin.$_$.a9;
61
+ var toList = kotlin_kotlin.$_$.x9;
62
62
  var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.e;
63
- var Collection = kotlin_kotlin.$_$.r1;
64
- var isInterface = kotlin_kotlin.$_$.z6;
65
- var distinct = kotlin_kotlin.$_$.s2;
63
+ var Collection = kotlin_kotlin.$_$.w1;
64
+ var isInterface = kotlin_kotlin.$_$.i7;
65
+ var distinct = kotlin_kotlin.$_$.a3;
66
66
  var arg2pScope = kotlin_it_unibo_tuprolog_argumentation_core.$_$.e;
67
- var toList_0 = kotlin_kotlin.$_$.s4;
68
- var toString = kotlin_kotlin.$_$.i7;
69
- var Default_getInstance = kotlin_kotlin.$_$.k;
70
- var nextUInt = kotlin_kotlin.$_$.o7;
71
- var UInt = kotlin_kotlin.$_$.qb;
72
- var Signature = kotlin_it_unibo_tuprolog_solve.$_$.u2;
73
- var protoOf = kotlin_kotlin.$_$.f7;
67
+ var toList_0 = kotlin_kotlin.$_$.b5;
68
+ var toString = kotlin_kotlin.$_$.r7;
69
+ var Default_getInstance = kotlin_kotlin.$_$.l;
70
+ var nextUInt = kotlin_kotlin.$_$.x7;
71
+ var UInt = kotlin_kotlin.$_$.ec;
72
+ var Signature = kotlin_it_unibo_tuprolog_solve.$_$.s3;
73
+ var protoOf = kotlin_kotlin.$_$.o7;
74
74
  var VOID = kotlin_kotlin.$_$.b;
75
- var sequenceOf = kotlin_kotlin.$_$.g9;
76
- var Primitive = kotlin_it_unibo_tuprolog_solve.$_$.w1;
77
- var initMetadataForClass = kotlin_kotlin.$_$.s6;
78
- var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.l;
79
- var Expected_VARIABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c1;
80
- var Var = kotlin_it_unibo_tuprolog_core.$_$.u2;
75
+ var sequenceOf = kotlin_kotlin.$_$.p9;
76
+ var Primitive = kotlin_it_unibo_tuprolog_solve.$_$.q2;
77
+ var initMetadataForClass = kotlin_kotlin.$_$.b7;
78
+ var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.n;
79
+ var Expected_VARIABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.o1;
80
+ var Var = kotlin_it_unibo_tuprolog_core.$_$.d3;
81
81
  var mineActiveGraph = kotlin_it_unibo_tuprolog_argumentation_core.$_$.k;
82
82
  var Arg2pSolverFactory_instance = kotlin_it_unibo_tuprolog_argumentation_core.$_$.d;
83
83
  var FlagsBuilder = kotlin_it_unibo_tuprolog_argumentation_core.$_$.f;
84
84
  var Companion_instance_3 = kotlin_it_unibo_tuprolog_argumentation_core.$_$.c;
85
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
85
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
86
86
  var Companion_instance_4 = kotlin_it_unibo_tuprolog_argumentation_core.$_$.a;
87
87
  var Companion_instance_5 = kotlin_it_unibo_tuprolog_argumentation_core.$_$.b;
88
88
  var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.b;
89
- var replace = kotlin_kotlin.$_$.ka;
90
- var listOf = kotlin_kotlin.$_$.n3;
91
- var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.r;
92
- var mapCapacity = kotlin_kotlin.$_$.o3;
93
- var coerceAtLeast = kotlin_kotlin.$_$.t7;
94
- var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.r;
89
+ var replace = kotlin_kotlin.$_$.va;
90
+ var listOf = kotlin_kotlin.$_$.v3;
91
+ var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.t;
92
+ var mapCapacity = kotlin_kotlin.$_$.w3;
93
+ var coerceAtLeast = kotlin_kotlin.$_$.c8;
94
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.t;
95
95
  var content = kotlin_it_unibo_tuprolog_argumentation_core.$_$.g;
96
96
  var ArgLibrary = kotlin_it_unibo_tuprolog_argumentation_core.$_$.h;
97
97
  var Loadable = kotlin_it_unibo_tuprolog_argumentation_core.$_$.i;
@@ -105,11 +105,11 @@
105
105
  initMetadataForClass(CausalitySolver, 'CausalitySolver', CausalitySolver, VOID, [ArgLibrary, Loadable]);
106
106
  //endregion
107
107
  function CausalitySolver$CausalityCheckCauseButFor$solve$lambda$lambda(it) {
108
- return it.p1x();
108
+ return it.r1y();
109
109
  }
110
110
  function CausalitySolver$CausalityCheckCauseButFor$solve$lambda$lambda_0($this_arg2pScope) {
111
111
  return function (it) {
112
- return Companion_instance.of([ensureNotNull(it.h1w().i2($this_arg2pScope.d1i()))]);
112
+ return Companion_instance.of([ensureNotNull(it.j1x().i2($this_arg2pScope.f1j()))]);
113
113
  };
114
114
  }
115
115
  function CausalitySolver$CausalityCheckCauseButFor$solve$lambda$lambda_1(this$0, $request, $effect) {
@@ -119,7 +119,7 @@
119
119
  }
120
120
  function CausalitySolver$CausalityCheckCauseButFor$solve$lambda($request, $cause, this$0, $effect) {
121
121
  return function ($this$arg2pScope) {
122
- var tmp = $request.solve($this$arg2pScope.stringInvoke('compl', $cause, [$this$arg2pScope.d1i()]));
122
+ var tmp = $request.solve($this$arg2pScope.stringInvoke('compl', $cause, [$this$arg2pScope.f1j()]));
123
123
  var tmp_0 = filter(tmp, CausalitySolver$CausalityCheckCauseButFor$solve$lambda$lambda);
124
124
  var tmp_1 = map(tmp_0, CausalitySolver$CausalityCheckCauseButFor$solve$lambda$lambda_0($this$arg2pScope));
125
125
  var tmp0_elvis_lhs = firstOrNull(map(tmp_1, CausalitySolver$CausalityCheckCauseButFor$solve$lambda$lambda_1(this$0, $request, $effect)));
@@ -147,17 +147,17 @@
147
147
  };
148
148
  }
149
149
  function equalTerms($this, a, b) {
150
- return Companion_getInstance_0().g1m().match(parseTerm(Companion_instance_0, a), parseTerm(Companion_instance_0, b));
150
+ return Companion_getInstance_0().i1n().match(parseTerm(Companion_instance_0, a), parseTerm(Companion_instance_0, b));
151
151
  }
152
152
  function attackers($this, x, graph) {
153
153
  // Inline function 'kotlin.collections.filter' call
154
- var tmp0 = graph.r43_1;
154
+ var tmp0 = graph.z4g_1;
155
155
  // Inline function 'kotlin.collections.filterTo' call
156
156
  var destination = ArrayList_init_$Create$();
157
157
  var _iterator__ex2g4s = tmp0.n();
158
158
  while (_iterator__ex2g4s.q()) {
159
159
  var element = _iterator__ex2g4s.r();
160
- if (element.l43_1.a43_1 === x.a43_1) {
160
+ if (element.t4g_1.i4g_1 === x.i4g_1) {
161
161
  destination.k(element);
162
162
  }
163
163
  }
@@ -168,14 +168,14 @@
168
168
  while (_iterator__ex2g4s_0.q()) {
169
169
  var item = _iterator__ex2g4s_0.r();
170
170
  // Inline function 'kotlin.collections.find' call
171
- var tmp0_0 = graph.t43_1;
171
+ var tmp0_0 = graph.b4h_1;
172
172
  var tmp$ret$7;
173
173
  $l$block: {
174
174
  // Inline function 'kotlin.collections.firstOrNull' call
175
175
  var _iterator__ex2g4s_1 = tmp0_0.n();
176
176
  while (_iterator__ex2g4s_1.q()) {
177
177
  var element_0 = _iterator__ex2g4s_1.r();
178
- if (item.k43_1.a43_1 === element_0.o43_1.a43_1) {
178
+ if (item.s4g_1.i4g_1 === element_0.w4g_1.i4g_1) {
179
179
  tmp$ret$7 = element_0;
180
180
  break $l$block;
181
181
  }
@@ -190,17 +190,17 @@
190
190
  }
191
191
  function supporters($this, x, graph, chain) {
192
192
  var tmp;
193
- if (chain.s(x.a43_1)) {
193
+ if (chain.s(x.i4g_1)) {
194
194
  tmp = emptyList();
195
195
  } else {
196
196
  // Inline function 'kotlin.collections.filter' call
197
- var tmp0 = graph.t43_1;
197
+ var tmp0 = graph.b4h_1;
198
198
  // Inline function 'kotlin.collections.filterTo' call
199
199
  var destination = ArrayList_init_$Create$();
200
200
  var _iterator__ex2g4s = tmp0.n();
201
201
  while (_iterator__ex2g4s.q()) {
202
202
  var element = _iterator__ex2g4s.r();
203
- if (x.a43_1 === element.o43_1.a43_1 && element.p43_1 === 'in') {
203
+ if (x.i4g_1 === element.w4g_1.i4g_1 && element.x4g_1 === 'in') {
204
204
  destination.k(element);
205
205
  }
206
206
  }
@@ -213,13 +213,13 @@
213
213
  while (_iterator__ex2g4s_0.q()) {
214
214
  var element_0 = _iterator__ex2g4s_0.r();
215
215
  // Inline function 'kotlin.collections.filter' call
216
- var tmp0_1 = attackers($this, element_0.o43_1, graph);
216
+ var tmp0_1 = attackers($this, element_0.w4g_1, graph);
217
217
  // Inline function 'kotlin.collections.filterTo' call
218
218
  var destination_1 = ArrayList_init_$Create$();
219
219
  var _iterator__ex2g4s_1 = tmp0_1.n();
220
220
  while (_iterator__ex2g4s_1.q()) {
221
221
  var element_1 = _iterator__ex2g4s_1.r();
222
- if (!(element_1.o43_1.a43_1 === x.a43_1)) {
222
+ if (!(element_1.w4g_1.i4g_1 === x.i4g_1)) {
223
223
  destination_1.k(element_1);
224
224
  }
225
225
  }
@@ -229,7 +229,7 @@
229
229
  var _iterator__ex2g4s_2 = destination_1.n();
230
230
  while (_iterator__ex2g4s_2.q()) {
231
231
  var element_2 = _iterator__ex2g4s_2.r();
232
- var list = supporters($this, element_2.o43_1, graph, plus(chain, x.a43_1));
232
+ var list = supporters($this, element_2.w4g_1, graph, plus(chain, x.i4g_1));
233
233
  addAll(destination_2, list);
234
234
  }
235
235
  var list_0 = destination_2;
@@ -241,37 +241,37 @@
241
241
  }
242
242
  function solveFresh($this, effect, kb) {
243
243
  var theory = kb.toStringAsProlog(true);
244
- var tmp0_safe_receiver = $this.c47_1.i2(to(theory, effect));
244
+ var tmp0_safe_receiver = $this.k4k_1.i2(to(theory, effect));
245
245
  if (tmp0_safe_receiver == null)
246
246
  null;
247
247
  else {
248
248
  // Inline function 'kotlin.let' call
249
249
  return tmp0_safe_receiver;
250
250
  }
251
- if ($this.c47_1.t() >= 256) {
252
- $this.c47_1.e3();
251
+ if ($this.k4k_1.t() >= 256) {
252
+ $this.k4k_1.j3();
253
253
  }
254
- $this.a47_1.resetStaticKb();
255
- $this.a47_1.loadStaticKb(parseTheoryWithOperators(Companion_instance_1, theory, $this.b47_1));
256
- var tmp = $this.a47_1.solve(parseStruct(Companion_getInstance_1(), 'answerQuery(' + effect + ')'));
254
+ $this.i4k_1.resetStaticKb();
255
+ $this.i4k_1.loadStaticKb(parseTheoryWithOperators(Companion_instance_1, theory, $this.j4k_1));
256
+ var tmp = $this.i4k_1.solve(parseStruct(Companion_getInstance_1(), 'answerQuery(' + effect + ')'));
257
257
  var tmp1_elvis_lhs = firstOrNull(map(tmp, CausalitySolver$solveFresh$lambda($this)));
258
258
  // Inline function 'kotlin.also' call
259
259
  var this_0 = tmp1_elvis_lhs == null ? new Graph(emptyList(), emptyList(), emptyList()) : tmp1_elvis_lhs;
260
- var tmp0 = $this.c47_1;
260
+ var tmp0 = $this.k4k_1;
261
261
  // Inline function 'kotlin.collections.set' call
262
262
  var key = to(theory, effect);
263
- tmp0.l4(key, this_0);
263
+ tmp0.q4(key, this_0);
264
264
  return this_0;
265
265
  }
266
266
  function getSupports($this, graph, effect) {
267
- var tmp = asSequence(graph.t43_1);
267
+ var tmp = asSequence(graph.b4h_1);
268
268
  var tmp_0 = filter(tmp, CausalitySolver$getSupports$lambda($this, effect));
269
269
  var tmp_1 = flatMap(tmp_0, CausalitySolver$getSupports$lambda_0($this, graph));
270
270
  return map(tmp_1, CausalitySolver$getSupports$lambda_1);
271
271
  }
272
272
  function checkBaseTheory($this, request, effect) {
273
273
  // Inline function 'kotlin.let' call
274
- var it = solveFresh($this, effect, request.context.n1w());
274
+ var it = solveFresh($this, effect, request.context.p1x());
275
275
  var tmp = getSupports($this, it, effect);
276
276
  return toList(map(tmp, CausalitySolver$checkBaseTheory$lambda));
277
277
  }
@@ -288,15 +288,15 @@
288
288
  }
289
289
  // Inline function 'kotlin.let' call
290
290
  // Inline function 'kotlin.let' call
291
- var naf = solveFresh($this, effect, request.context.n1w().plusTheory(Companion_instance_1.ofIterableWithDefaultUnificator(destination)));
291
+ var naf = solveFresh($this, effect, request.context.p1x().plusTheory(Companion_instance_1.ofIterableWithDefaultUnificator(destination)));
292
292
  // Inline function 'kotlin.collections.filter' call
293
- var tmp0 = naf.t43_1;
293
+ var tmp0 = naf.b4h_1;
294
294
  // Inline function 'kotlin.collections.filterTo' call
295
295
  var destination_0 = ArrayList_init_$Create$();
296
296
  var _iterator__ex2g4s_0 = tmp0.n();
297
297
  while (_iterator__ex2g4s_0.q()) {
298
298
  var element = _iterator__ex2g4s_0.r();
299
- if (element.p43_1 === 'out' || element.p43_1 === 'und') {
299
+ if (element.x4g_1 === 'out' || element.x4g_1 === 'und') {
300
300
  destination_0.k(element);
301
301
  }
302
302
  }
@@ -322,7 +322,7 @@
322
322
  var _iterator__ex2g4s_2 = support.n();
323
323
  while (_iterator__ex2g4s_2.q()) {
324
324
  var element_1 = _iterator__ex2g4s_2.r();
325
- if (Companion_getInstance_0().g1m().match(element_0.o43_1.c43(), element_1)) {
325
+ if (Companion_getInstance_0().i1n().match(element_0.w4g_1.k4g(), element_1)) {
326
326
  tmp$ret$13 = true;
327
327
  break $l$block_0;
328
328
  }
@@ -340,13 +340,13 @@
340
340
  while (_iterator__ex2g4s_3.q()) {
341
341
  var element_2 = _iterator__ex2g4s_3.r();
342
342
  // Inline function 'kotlin.collections.filter' call
343
- var tmp0_0 = attackers($this, element_2.o43_1, naf);
343
+ var tmp0_0 = attackers($this, element_2.w4g_1, naf);
344
344
  // Inline function 'kotlin.collections.filterTo' call
345
345
  var destination_3 = ArrayList_init_$Create$();
346
346
  var _iterator__ex2g4s_4 = tmp0_0.n();
347
347
  while (_iterator__ex2g4s_4.q()) {
348
348
  var element_3 = _iterator__ex2g4s_4.r();
349
- if (element_3.p43_1 === 'in') {
349
+ if (element_3.x4g_1 === 'in') {
350
350
  destination_3.k(element_3);
351
351
  }
352
352
  }
@@ -359,7 +359,7 @@
359
359
  var _iterator__ex2g4s_5 = destination_2.n();
360
360
  while (_iterator__ex2g4s_5.q()) {
361
361
  var item_0 = _iterator__ex2g4s_5.r();
362
- var tmp$ret$23 = item_0.o43_1;
362
+ var tmp$ret$23 = item_0.w4g_1;
363
363
  destination_4.k(tmp$ret$23);
364
364
  }
365
365
  return distinct(destination_4);
@@ -370,13 +370,13 @@
370
370
  function getInterventions($this, request, cause, effect) {
371
371
  var tmp = Companion_instance_0;
372
372
  // Inline function 'kotlin.collections.map' call
373
- var this_0 = solveFresh($this, effect, request.context.n1w()).q43_1;
373
+ var this_0 = solveFresh($this, effect, request.context.p1x()).y4g_1;
374
374
  // Inline function 'kotlin.collections.mapTo' call
375
375
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
376
376
  var _iterator__ex2g4s = this_0.n();
377
377
  while (_iterator__ex2g4s.q()) {
378
378
  var item = _iterator__ex2g4s.r();
379
- var tmp$ret$2 = item.t42_1;
379
+ var tmp$ret$2 = item.b4g_1;
380
380
  destination.k(tmp$ret$2);
381
381
  }
382
382
  // Inline function 'kotlin.collections.filter' call
@@ -401,7 +401,7 @@
401
401
  // Inline function 'kotlin.collections.isNotEmpty' call
402
402
  if (!attackers.h()) {
403
403
  var tmp_0;
404
- if (intervention.ny() <= 1) {
404
+ if (intervention.pz() <= 1) {
405
405
  tmp_0 = true;
406
406
  } else {
407
407
  var tmp0 = getSubsets($this, request, intervention);
@@ -448,7 +448,7 @@
448
448
  var _iterator__ex2g4s = this_0.n();
449
449
  while (_iterator__ex2g4s.q()) {
450
450
  var item = _iterator__ex2g4s.r();
451
- var tmp$ret$2 = item.c43();
451
+ var tmp$ret$2 = item.k4g();
452
452
  destination.k(tmp$ret$2);
453
453
  }
454
454
  var attackers = destination;
@@ -456,7 +456,7 @@
456
456
  // Inline function 'kotlin.collections.isNotEmpty' call
457
457
  if (!attackers.h()) {
458
458
  var tmp_0;
459
- if (intervention.ny() <= 1) {
459
+ if (intervention.pz() <= 1) {
460
460
  tmp_0 = true;
461
461
  } else {
462
462
  var tmp0 = getSubsets($this, request, intervention);
@@ -483,7 +483,7 @@
483
483
  var _iterator__ex2g4s_1 = this_1.n();
484
484
  while (_iterator__ex2g4s_1.q()) {
485
485
  var item_0 = _iterator__ex2g4s_1.r();
486
- var tmp$ret$8 = item_0.c43();
486
+ var tmp$ret$8 = item_0.k4g();
487
487
  destination_0.k(tmp$ret$8);
488
488
  }
489
489
  var n = destination_0;
@@ -519,7 +519,7 @@
519
519
  var _iterator__ex2g4s_3 = n.n();
520
520
  while (_iterator__ex2g4s_3.q()) {
521
521
  var element_1 = _iterator__ex2g4s_3.r();
522
- if (Companion_getInstance_0().g1m().match(element_0, element_1)) {
522
+ if (Companion_getInstance_0().i1n().match(element_0, element_1)) {
523
523
  tmp$ret$11 = true;
524
524
  break $l$block_2;
525
525
  }
@@ -551,7 +551,7 @@
551
551
  function checkButFor($this, request, intervention, effect) {
552
552
  var tmp;
553
553
  // Inline function 'kotlin.let' call
554
- var tmp0 = solveFresh($this, effect, request.context.n1w()).t43_1;
554
+ var tmp0 = solveFresh($this, effect, request.context.p1x()).b4h_1;
555
555
  var tmp$ret$2;
556
556
  $l$block_0: {
557
557
  // Inline function 'kotlin.collections.any' call
@@ -568,7 +568,7 @@
568
568
  var _iterator__ex2g4s = tmp0.n();
569
569
  while (_iterator__ex2g4s.q()) {
570
570
  var element = _iterator__ex2g4s.r();
571
- if (element.p43_1 === 'in' && equalTerms($this, element.o43_1.u42_1, effect)) {
571
+ if (element.x4g_1 === 'in' && equalTerms($this, element.w4g_1.c4g_1, effect)) {
572
572
  tmp$ret$2 = true;
573
573
  break $l$block_0;
574
574
  }
@@ -588,7 +588,7 @@
588
588
  }
589
589
  // Inline function 'kotlin.let' call
590
590
  // Inline function 'kotlin.let' call
591
- var tmp0_0 = solveFresh($this, effect, request.context.n1w().plusTheory(Companion_instance_1.ofIterableWithDefaultUnificator(destination))).t43_1;
591
+ var tmp0_0 = solveFresh($this, effect, request.context.p1x().plusTheory(Companion_instance_1.ofIterableWithDefaultUnificator(destination))).b4h_1;
592
592
  var tmp$ret$11;
593
593
  $l$block_2: {
594
594
  // Inline function 'kotlin.collections.none' call
@@ -605,7 +605,7 @@
605
605
  var _iterator__ex2g4s_1 = tmp0_0.n();
606
606
  while (_iterator__ex2g4s_1.q()) {
607
607
  var element_0 = _iterator__ex2g4s_1.r();
608
- if (element_0.p43_1 === 'in' && equalTerms($this, element_0.o43_1.u42_1, effect)) {
608
+ if (element_0.x4g_1 === 'in' && equalTerms($this, element_0.w4g_1.c4g_1, effect)) {
609
609
  tmp$ret$11 = false;
610
610
  break $l$block_2;
611
611
  }
@@ -619,141 +619,141 @@
619
619
  return tmp;
620
620
  }
621
621
  function CausalityCheckCauseButFor($outer) {
622
- this.g47_1 = $outer;
623
- this.f47_1 = new Signature('but_for', 2);
622
+ this.o4k_1 = $outer;
623
+ this.n4k_1 = new Signature('but_for', 2);
624
624
  }
625
- protoOf(CausalityCheckCauseButFor).y1v = function () {
626
- return this.f47_1;
625
+ protoOf(CausalityCheckCauseButFor).a1x = function () {
626
+ return this.n4k_1;
627
627
  };
628
- protoOf(CausalityCheckCauseButFor).s2h = function (request) {
628
+ protoOf(CausalityCheckCauseButFor).w2i = function (request) {
629
629
  var cause = request.arguments.u(0);
630
- var effect = this.g47_1.h47(request.arguments.u(1).toString());
631
- return sequenceOf(request.replyWithCondition(arg2pScope(CausalitySolver$CausalityCheckCauseButFor$solve$lambda(request, cause, this.g47_1, effect)), VOID, []));
630
+ var effect = this.o4k_1.p4k(request.arguments.u(1).toString());
631
+ return sequenceOf(request.replyWithCondition(arg2pScope(CausalitySolver$CausalityCheckCauseButFor$solve$lambda(request, cause, this.o4k_1, effect)), VOID, []));
632
632
  };
633
633
  protoOf(CausalityCheckCauseButFor).solve = function (request) {
634
- return this.s2h(request);
634
+ return this.w2i(request);
635
635
  };
636
636
  function CausalityCheckInterventionICAIL24($outer) {
637
- this.j47_1 = $outer;
638
- this.i47_1 = new Signature('ness_original_intervention', 2);
637
+ this.r4k_1 = $outer;
638
+ this.q4k_1 = new Signature('ness_original_intervention', 2);
639
639
  }
640
- protoOf(CausalityCheckInterventionICAIL24).y1v = function () {
641
- return this.i47_1;
640
+ protoOf(CausalityCheckInterventionICAIL24).a1x = function () {
641
+ return this.q4k_1;
642
642
  };
643
- protoOf(CausalityCheckInterventionICAIL24).s2h = function (request) {
643
+ protoOf(CausalityCheckInterventionICAIL24).w2i = function (request) {
644
644
  var intervention = request.arguments.u(0).castToList();
645
- var effect = this.j47_1.h47(request.arguments.u(1).toString());
646
- return sequenceOf(request.replyWithCondition(checkCausalityICAIL24(this.j47_1, request, intervention, effect), VOID, []));
645
+ var effect = this.r4k_1.p4k(request.arguments.u(1).toString());
646
+ return sequenceOf(request.replyWithCondition(checkCausalityICAIL24(this.r4k_1, request, intervention, effect), VOID, []));
647
647
  };
648
648
  protoOf(CausalityCheckInterventionICAIL24).solve = function (request) {
649
- return this.s2h(request);
649
+ return this.w2i(request);
650
650
  };
651
651
  function CausalityCheckCauseICAIL24($outer) {
652
- this.l47_1 = $outer;
653
- this.k47_1 = new Signature('ness_original', 3);
652
+ this.t4k_1 = $outer;
653
+ this.s4k_1 = new Signature('ness_original', 3);
654
654
  }
655
- protoOf(CausalityCheckCauseICAIL24).y1v = function () {
656
- return this.k47_1;
655
+ protoOf(CausalityCheckCauseICAIL24).a1x = function () {
656
+ return this.s4k_1;
657
657
  };
658
- protoOf(CausalityCheckCauseICAIL24).s2h = function (request) {
658
+ protoOf(CausalityCheckCauseICAIL24).w2i = function (request) {
659
659
  var intervention = request.arguments.u(0);
660
660
  var cause = request.arguments.u(1);
661
- var effect = this.l47_1.h47(request.arguments.u(2).toString());
661
+ var effect = this.t4k_1.p4k(request.arguments.u(2).toString());
662
662
  if (!isInterface(intervention, Var)) {
663
663
  throw Companion_instance_2.forGoal(request.context, request.signature, Expected_VARIABLE_getInstance(), intervention);
664
664
  }
665
- var tmp = getInterventions(this.l47_1, request, cause, effect);
666
- var tmp_0 = filter(tmp, CausalitySolver$CausalityCheckCauseICAIL24$solve$lambda(this.l47_1, request, effect));
665
+ var tmp = getInterventions(this.t4k_1, request, cause, effect);
666
+ var tmp_0 = filter(tmp, CausalitySolver$CausalityCheckCauseICAIL24$solve$lambda(this.t4k_1, request, effect));
667
667
  var tmp0_elvis_lhs = firstOrNull(map(tmp_0, CausalitySolver$CausalityCheckCauseICAIL24$solve$lambda_0(intervention)));
668
668
  return sequenceOf(request.replyWith(tmp0_elvis_lhs == null ? Companion_getInstance().failed() : tmp0_elvis_lhs, VOID, []));
669
669
  };
670
670
  protoOf(CausalityCheckCauseICAIL24).solve = function (request) {
671
- return this.s2h(request);
671
+ return this.w2i(request);
672
672
  };
673
673
  function CausalityCheckInterventionICAIL25($outer) {
674
- this.n47_1 = $outer;
675
- this.m47_1 = new Signature('ness_intervention', 2);
674
+ this.v4k_1 = $outer;
675
+ this.u4k_1 = new Signature('ness_intervention', 2);
676
676
  }
677
- protoOf(CausalityCheckInterventionICAIL25).y1v = function () {
678
- return this.m47_1;
677
+ protoOf(CausalityCheckInterventionICAIL25).a1x = function () {
678
+ return this.u4k_1;
679
679
  };
680
- protoOf(CausalityCheckInterventionICAIL25).s2h = function (request) {
680
+ protoOf(CausalityCheckInterventionICAIL25).w2i = function (request) {
681
681
  var intervention = request.arguments.u(0).castToList();
682
- var effect = this.n47_1.h47(request.arguments.u(1).toString());
683
- return sequenceOf(request.replyWithCondition(checkCausalityICAIL25(this.n47_1, request, intervention, effect), VOID, []));
682
+ var effect = this.v4k_1.p4k(request.arguments.u(1).toString());
683
+ return sequenceOf(request.replyWithCondition(checkCausalityICAIL25(this.v4k_1, request, intervention, effect), VOID, []));
684
684
  };
685
685
  protoOf(CausalityCheckInterventionICAIL25).solve = function (request) {
686
- return this.s2h(request);
686
+ return this.w2i(request);
687
687
  };
688
688
  function CausalityCheckCauseICAIL25($outer) {
689
- this.p47_1 = $outer;
690
- this.o47_1 = new Signature('ness', 3);
689
+ this.x4k_1 = $outer;
690
+ this.w4k_1 = new Signature('ness', 3);
691
691
  }
692
- protoOf(CausalityCheckCauseICAIL25).y1v = function () {
693
- return this.o47_1;
692
+ protoOf(CausalityCheckCauseICAIL25).a1x = function () {
693
+ return this.w4k_1;
694
694
  };
695
- protoOf(CausalityCheckCauseICAIL25).s2h = function (request) {
695
+ protoOf(CausalityCheckCauseICAIL25).w2i = function (request) {
696
696
  var intervention = request.arguments.u(0);
697
697
  var cause = request.arguments.u(1);
698
- var effect = this.p47_1.h47(request.arguments.u(2).toString());
698
+ var effect = this.x4k_1.p4k(request.arguments.u(2).toString());
699
699
  if (!isInterface(intervention, Var)) {
700
700
  throw Companion_instance_2.forGoal(request.context, request.signature, Expected_VARIABLE_getInstance(), intervention);
701
701
  }
702
- var tmp = getInterventions(this.p47_1, request, cause, effect);
703
- var tmp_0 = filter(tmp, CausalitySolver$CausalityCheckCauseICAIL25$solve$lambda(this.p47_1, request, effect));
702
+ var tmp = getInterventions(this.x4k_1, request, cause, effect);
703
+ var tmp_0 = filter(tmp, CausalitySolver$CausalityCheckCauseICAIL25$solve$lambda(this.x4k_1, request, effect));
704
704
  var tmp0_elvis_lhs = firstOrNull(map(tmp_0, CausalitySolver$CausalityCheckCauseICAIL25$solve$lambda_0(intervention)));
705
705
  return sequenceOf(request.replyWith(tmp0_elvis_lhs == null ? Companion_getInstance().failed() : tmp0_elvis_lhs, VOID, []));
706
706
  };
707
707
  protoOf(CausalityCheckCauseICAIL25).solve = function (request) {
708
- return this.s2h(request);
708
+ return this.w2i(request);
709
709
  };
710
710
  function CausalitySolver$solveFresh$lambda(this$0) {
711
711
  return function (it) {
712
- return mineActiveGraph(this$0.a47_1);
712
+ return mineActiveGraph(this$0.i4k_1);
713
713
  };
714
714
  }
715
715
  function CausalitySolver$getSupports$lambda(this$0, $effect) {
716
716
  return function (it) {
717
- return equalTerms(this$0, it.o43_1.u42_1, $effect);
717
+ return equalTerms(this$0, it.w4g_1.c4g_1, $effect);
718
718
  };
719
719
  }
720
720
  function CausalitySolver$getSupports$lambda_0(this$0, $graph) {
721
721
  return function (it) {
722
- return supporters(this$0, it.o43_1, $graph, emptyList());
722
+ return supporters(this$0, it.w4g_1, $graph, emptyList());
723
723
  };
724
724
  }
725
725
  function CausalitySolver$getSupports$lambda_1(it) {
726
- return it.o43_1;
726
+ return it.w4g_1;
727
727
  }
728
728
  function CausalitySolver$checkBaseTheory$lambda(a) {
729
- return a.c43();
729
+ return a.k4g();
730
730
  }
731
731
  function CausalitySolver$getSubsets$lambda$lambda(it) {
732
- return it.p1x();
732
+ return it.r1y();
733
733
  }
734
734
  function CausalitySolver$getSubsets$lambda$lambda_0($this_arg2pScope) {
735
735
  return function (it) {
736
- return ensureNotNull(it.h1w().i2($this_arg2pScope.d1i())).castToList();
736
+ return ensureNotNull(it.j1x().i2($this_arg2pScope.f1j())).castToList();
737
737
  };
738
738
  }
739
739
  function CausalitySolver$getSubsets$lambda($request, $intervention) {
740
740
  return function ($this$arg2pScope) {
741
- var tmp = $request.solve($this$arg2pScope.stringInvoke('proper_subsets', $intervention, [$this$arg2pScope.d1i()]));
741
+ var tmp = $request.solve($this$arg2pScope.stringInvoke('proper_subsets', $intervention, [$this$arg2pScope.f1j()]));
742
742
  var tmp_0 = filter(tmp, CausalitySolver$getSubsets$lambda$lambda);
743
743
  return toList(map(tmp_0, CausalitySolver$getSubsets$lambda$lambda_0($this$arg2pScope)));
744
744
  };
745
745
  }
746
746
  function CausalitySolver$getInterventions$lambda$lambda(it) {
747
- return it.p1x();
747
+ return it.r1y();
748
748
  }
749
749
  function CausalitySolver$getInterventions$lambda$lambda_0($this_arg2pScope) {
750
750
  return function (it) {
751
- return ensureNotNull(it.h1w().i2($this_arg2pScope.d1i())).castToList();
751
+ return ensureNotNull(it.j1x().i2($this_arg2pScope.f1j())).castToList();
752
752
  };
753
753
  }
754
754
  function CausalitySolver$getInterventions$lambda($request, $rules, $cause) {
755
755
  return function ($this$arg2pScope) {
756
- var tmp = $request.solve($this$arg2pScope.stringInvoke('generate_interventions', $rules, [$cause, $this$arg2pScope.d1i()]));
756
+ var tmp = $request.solve($this$arg2pScope.stringInvoke('generate_interventions', $rules, [$cause, $this$arg2pScope.f1j()]));
757
757
  var tmp_0 = filter(tmp, CausalitySolver$getInterventions$lambda$lambda);
758
758
  return map(tmp_0, CausalitySolver$getInterventions$lambda$lambda_0($this$arg2pScope));
759
759
  };
@@ -762,21 +762,21 @@
762
762
  var tmp = this;
763
763
  var tmp_0 = Arg2pSolverFactory_instance;
764
764
  var tmp0_graphExtensions = emptyList();
765
- tmp.a47_1 = tmp_0.c3q(VOID, (new FlagsBuilder(VOID, VOID, VOID, VOID, VOID, 'grounded', VOID, VOID, VOID, VOID, tmp0_graphExtensions)).o3q());
766
- this.b47_1 = Companion_instance_3.y3p().v3p();
765
+ tmp.i4k_1 = tmp_0.k43(VOID, (new FlagsBuilder(VOID, VOID, VOID, VOID, VOID, 'grounded', VOID, VOID, VOID, VOID, tmp0_graphExtensions)).w43());
766
+ this.j4k_1 = Companion_instance_3.g43().d43();
767
767
  var tmp_1 = this;
768
768
  // Inline function 'kotlin.collections.mutableMapOf' call
769
- tmp_1.c47_1 = LinkedHashMap_init_$Create$();
770
- this.d47_1 = 'prolog.argumentation.causality.solver';
771
- this.e47_1 = Companion_instance_4.v3p().plusOperatorSet(Companion_instance_5.v3p()).plusOperatorSet(Companion_getInstance_3().DEFAULT);
769
+ tmp_1.k4k_1 = LinkedHashMap_init_$Create$();
770
+ this.l4k_1 = 'prolog.argumentation.causality.solver';
771
+ this.m4k_1 = Companion_instance_4.d43().plusOperatorSet(Companion_instance_5.d43()).plusOperatorSet(Companion_getInstance_3().DEFAULT);
772
772
  }
773
- protoOf(CausalitySolver).h47 = function (string) {
773
+ protoOf(CausalitySolver).p4k = function (string) {
774
774
  return replace(replace(string, ' ', ''), "'", '');
775
775
  };
776
- protoOf(CausalitySolver).k2f = function () {
777
- return this.d47_1;
776
+ protoOf(CausalitySolver).m2g = function () {
777
+ return this.l4k_1;
778
778
  };
779
- protoOf(CausalitySolver).q3q = function () {
779
+ protoOf(CausalitySolver).y43 = function () {
780
780
  // Inline function 'kotlin.let' call
781
781
  var primitives = listOf([new CausalityCheckInterventionICAIL24(this), new CausalityCheckCauseICAIL24(this), new CausalityCheckInterventionICAIL25(this), new CausalityCheckCauseICAIL25(this), new CausalityCheckCauseButFor(this)]);
782
782
  var tmp = Companion_getInstance_4();
@@ -787,19 +787,19 @@
787
787
  var _iterator__ex2g4s = primitives.n();
788
788
  while (_iterator__ex2g4s.q()) {
789
789
  var element = _iterator__ex2g4s.r();
790
- var tmp$ret$4 = element.y1v();
791
- destination.l4(tmp$ret$4, element);
790
+ var tmp$ret$4 = element.a1x();
791
+ destination.q4(tmp$ret$4, element);
792
792
  }
793
- return tmp.of(this.d47_1, destination, parseTheoryWithOperators(Companion_instance_1, 'subsets([], []).\nsubsets([H|T], [H|NT]) :- subsets(T, NT).\nsubsets([_|T], NT) :- subsets(T, NT).\n\nproper_subsets(L, S) :-\n subsets(L, S),\n S \\= [],\n S \\= L.\n\ngenerate_interventions(_, S, [CS]) :-\n compl(S, CS).\ngenerate_interventions(_, S, [undercut(S)]) :-\n S \\= -_.\ngenerate_interventions(R, S, SUP) :-\n parser:::convertAllRules(_),\n compl(S, CS),\n unused_premises(R, UP), !,\n subsets(UP, SUP),\n member(CS, SUP),\n SUP \\= [].\n\ncompl(-X, X) :- !.\ncompl(X, -X).\n\nunused_premises(R, UP) :-\n findall(P, (parser::rule(Id, P, _), \\+ member(Id, R), ground(Id)), RR),\n utils::appendLists(RR, UP).\n', this.e47_1));
793
+ return tmp.of(this.l4k_1, destination, parseTheoryWithOperators(Companion_instance_1, 'subsets([], []).\nsubsets([H|T], [H|NT]) :- subsets(T, NT).\nsubsets([_|T], NT) :- subsets(T, NT).\n\nproper_subsets(L, S) :-\n subsets(L, S),\n S \\= [],\n S \\= L.\n\ngenerate_interventions(_, S, [CS]) :-\n compl(S, CS).\ngenerate_interventions(_, S, [undercut(S)]) :-\n S \\= -_.\ngenerate_interventions(R, S, SUP) :-\n parser:::convertAllRules(_),\n compl(S, CS),\n unused_premises(R, UP), !,\n subsets(UP, SUP),\n member(CS, SUP),\n SUP \\= [].\n\ncompl(-X, X) :- !.\ncompl(X, -X).\n\nunused_premises(R, UP) :-\n findall(P, (parser::rule(Id, P, _), \\+ member(Id, R), ground(Id)), RR),\n utils::appendLists(RR, UP).\n', this.m4k_1));
794
794
  };
795
- protoOf(CausalitySolver).r3q = function () {
795
+ protoOf(CausalitySolver).z43 = function () {
796
796
  return 'causality';
797
797
  };
798
- protoOf(CausalitySolver).a3q = function () {
799
- return this.e47_1;
798
+ protoOf(CausalitySolver).i43 = function () {
799
+ return this.m4k_1;
800
800
  };
801
801
  //region block: post-declaration
802
- protoOf(CausalitySolver).z3p = content;
802
+ protoOf(CausalitySolver).h43 = content;
803
803
  //endregion
804
804
  //region block: exports
805
805
  _.$_$ = _.$_$ || {};