@tuprolog/arg2p-core 0.6.7 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,30 +6,40 @@
6
6
  else {
7
7
  if (typeof kotlin === 'undefined') {
8
8
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to '@tuprolog/arg2p-core'.");
9
- }if (typeof this['@tuprolog/2p-solve'] === 'undefined') {
9
+ }
10
+ if (typeof this['@tuprolog/2p-solve'] === 'undefined') {
10
11
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-solve' was not found. Please, check whether '@tuprolog/2p-solve' is loaded prior to '@tuprolog/arg2p-core'.");
11
- }if (typeof this['@tuprolog/2p-dsl-theory'] === 'undefined') {
12
+ }
13
+ if (typeof this['@tuprolog/2p-dsl-theory'] === 'undefined') {
12
14
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-dsl-theory' was not found. Please, check whether '@tuprolog/2p-dsl-theory' is loaded prior to '@tuprolog/arg2p-core'.");
13
- }if (typeof this['@tuprolog/2p-dsl-core'] === 'undefined') {
15
+ }
16
+ if (typeof this['@tuprolog/2p-dsl-core'] === 'undefined') {
14
17
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-dsl-core' was not found. Please, check whether '@tuprolog/2p-dsl-core' is loaded prior to '@tuprolog/arg2p-core'.");
15
- }if (typeof this['@tuprolog/2p-unify'] === 'undefined') {
18
+ }
19
+ if (typeof this['@tuprolog/2p-unify'] === 'undefined') {
16
20
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-unify' was not found. Please, check whether '@tuprolog/2p-unify' is loaded prior to '@tuprolog/arg2p-core'.");
17
- }if (typeof this['@tuprolog/2p-core'] === 'undefined') {
21
+ }
22
+ if (typeof this['@tuprolog/2p-core'] === 'undefined') {
18
23
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-core' was not found. Please, check whether '@tuprolog/2p-core' is loaded prior to '@tuprolog/arg2p-core'.");
19
- }if (typeof this['@tuprolog/2p-theory'] === 'undefined') {
24
+ }
25
+ if (typeof this['@tuprolog/2p-theory'] === 'undefined') {
20
26
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-theory' was not found. Please, check whether '@tuprolog/2p-theory' is loaded prior to '@tuprolog/arg2p-core'.");
21
- }if (typeof this['@tuprolog/2p-parser-theory'] === 'undefined') {
27
+ }
28
+ if (typeof this['@tuprolog/2p-parser-theory'] === 'undefined') {
22
29
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-parser-theory' was not found. Please, check whether '@tuprolog/2p-parser-theory' is loaded prior to '@tuprolog/arg2p-core'.");
23
- }if (typeof this['@tuprolog/2p-solve-classic'] === 'undefined') {
30
+ }
31
+ if (typeof this['@tuprolog/2p-solve-classic'] === 'undefined') {
24
32
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-solve-classic' was not found. Please, check whether '@tuprolog/2p-solve-classic' is loaded prior to '@tuprolog/arg2p-core'.");
25
- }if (typeof this['@tuprolog/2p-parser-core'] === 'undefined') {
33
+ }
34
+ if (typeof this['@tuprolog/2p-parser-core'] === 'undefined') {
26
35
  throw new Error("Error loading module '@tuprolog/arg2p-core'. Its dependency '@tuprolog/2p-parser-core' was not found. Please, check whether '@tuprolog/2p-parser-core' is loaded prior to '@tuprolog/arg2p-core'.");
27
- }root['@tuprolog/arg2p-core'] = factory(typeof this['@tuprolog/arg2p-core'] === 'undefined' ? {} : this['@tuprolog/arg2p-core'], kotlin, this['@tuprolog/2p-solve'], this['@tuprolog/2p-dsl-theory'], this['@tuprolog/2p-dsl-core'], this['@tuprolog/2p-unify'], this['@tuprolog/2p-core'], this['@tuprolog/2p-theory'], this['@tuprolog/2p-parser-theory'], this['@tuprolog/2p-solve-classic'], this['@tuprolog/2p-parser-core']);
36
+ }
37
+ root['@tuprolog/arg2p-core'] = factory(typeof this['@tuprolog/arg2p-core'] === 'undefined' ? {} : this['@tuprolog/arg2p-core'], kotlin, this['@tuprolog/2p-solve'], this['@tuprolog/2p-dsl-theory'], this['@tuprolog/2p-dsl-core'], this['@tuprolog/2p-unify'], this['@tuprolog/2p-core'], this['@tuprolog/2p-theory'], this['@tuprolog/2p-parser-theory'], this['@tuprolog/2p-solve-classic'], this['@tuprolog/2p-parser-core']);
28
38
  }
29
39
  }(this, function (_, Kotlin, $module$_2p_solve, $module$_2p_dsl_theory, $module$_2p_dsl_core, $module$_2p_unify, $module$_2p_core, $module$_2p_theory, $module$_2p_parser_theory, $module$_2p_solve_classic, $module$_2p_parser_core) {
30
40
  'use strict';
31
41
  var $$importsForInline$$ = _.$$importsForInline$$ || (_.$$importsForInline$$ = {});
32
- var Libraries = $module$_2p_solve.it.unibo.tuprolog.solve.library.Libraries;
42
+ var Runtime = $module$_2p_solve.it.unibo.tuprolog.solve.library.Runtime;
33
43
  var listOf = Kotlin.kotlin.collections.listOf_i5x0yv$;
34
44
  var plus = Kotlin.kotlin.collections.plus_mydzjv$;
35
45
  var Kind_CLASS = Kotlin.Kind.CLASS;
@@ -39,8 +49,8 @@
39
49
  var collectionSizeOrDefault = Kotlin.kotlin.collections.collectionSizeOrDefault_ba2ldo$;
40
50
  var ArrayList_init = Kotlin.kotlin.collections.ArrayList_init_ww73n8$;
41
51
  var UnsupportedOperationException_init = Kotlin.kotlin.UnsupportedOperationException_init_pdl1vj$;
42
- var PrologScopeWithTheories = $module$_2p_dsl_theory.it.unibo.tuprolog.dsl.theory.PrologScopeWithTheories;
43
- var PrologScope = $module$_2p_dsl_core.it.unibo.tuprolog.dsl.PrologScope;
52
+ var LogicProgrammingScopeWithTheories = $module$_2p_dsl_theory.it.unibo.tuprolog.dsl.theory.LogicProgrammingScopeWithTheories;
53
+ var LogicProgrammingScope = $module$_2p_dsl_core.it.unibo.tuprolog.dsl.LogicProgrammingScope;
44
54
  var Unificator = $module$_2p_unify.it.unibo.tuprolog.unify.Unificator;
45
55
  var OperatorSet = $module$_2p_core.it.unibo.tuprolog.core.operators.OperatorSet;
46
56
  var union = Kotlin.kotlin.collections.union_q4559j$;
@@ -81,7 +91,7 @@
81
91
  var Long$Companion$MAX_VALUE = Kotlin.Long.MAX_VALUE;
82
92
  var Unit = Kotlin.kotlin.Unit;
83
93
  var filter = Kotlin.kotlin.sequences.filter_euau3h$;
84
- var prolog = $module$_2p_dsl_core.it.unibo.tuprolog.dsl.prolog;
94
+ var logicProgramming = $module$_2p_dsl_core.it.unibo.tuprolog.dsl.logicProgramming;
85
95
  var Specifier = $module$_2p_core.it.unibo.tuprolog.core.operators.Specifier;
86
96
  var Operator = $module$_2p_core.it.unibo.tuprolog.core.operators.Operator;
87
97
  var OperatorSet_init = $module$_2p_core.it.unibo.tuprolog.core.operators.OperatorSet_init_1gzv2l$;
@@ -98,7 +108,7 @@
98
108
  var Solver = $module$_2p_solve.it.unibo.tuprolog.solve.Solver;
99
109
  var classic_0 = $module$_2p_solve_classic.it.unibo.tuprolog.solve.classic.classicSolver;
100
110
  var toString = Kotlin.toString;
101
- var prolog_0 = $module$_2p_dsl_theory.it.unibo.tuprolog.dsl.theory.prolog;
111
+ var logicProgramming_0 = $module$_2p_dsl_theory.it.unibo.tuprolog.dsl.theory.logicProgramming;
102
112
  var contains = Kotlin.kotlin.text.contains_li3zpu$;
103
113
  var removeSurrounding = Kotlin.kotlin.text.removeSurrounding_gsj5wt$;
104
114
  var toList = Kotlin.kotlin.sequences.toList_veqyi0$;
@@ -117,14 +127,12 @@
117
127
  var copyToArray = Kotlin.kotlin.collections.copyToArray;
118
128
  var hashCode = Kotlin.hashCode;
119
129
  var Collection = Kotlin.kotlin.collections.Collection;
120
- var AliasedLibrary = $module$_2p_solve.it.unibo.tuprolog.solve.library.AliasedLibrary;
121
130
  var compareBy = Kotlin.kotlin.comparisons.compareBy_bvgy4j$;
122
131
  var sortedWith = Kotlin.kotlin.sequences.sortedWith_vjgqpk$;
123
132
  var mapIndexed = Kotlin.kotlin.sequences.mapIndexed_b7yuyq$;
124
133
  var Pair = Kotlin.kotlin.Pair;
125
- var firstOrNull = Kotlin.kotlin.sequences.firstOrNull_veqyi0$;
126
134
  var NoSuchElementException_init = Kotlin.kotlin.NoSuchElementException;
127
- var firstOrNull_0 = Kotlin.kotlin.collections.firstOrNull_2p1efm$;
135
+ var firstOrNull = Kotlin.kotlin.collections.firstOrNull_2p1efm$;
128
136
  var plus_0 = Kotlin.kotlin.collections.plus_qloxvw$;
129
137
  var Cons = $module$_2p_core.it.unibo.tuprolog.core.Cons;
130
138
  DynamicLoader$WithLib.prototype = Object.create(DynamicLoader$AbstractWithLib.prototype);
@@ -235,7 +243,7 @@
235
243
  Arg2pSolver$Companion_getInstance();
236
244
  }
237
245
  Arg2pSolver.prototype.to2pLibraries = function () {
238
- var tmp$ = Libraries.Companion;
246
+ var tmp$ = Runtime.Companion;
239
247
  var $receiver = plus(listOf([this.loader, this.context]), this.staticLibraries());
240
248
  var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10));
241
249
  var tmp$_0;
@@ -314,7 +322,8 @@
314
322
  function Arg2pSolver$Companion_getInstance() {
315
323
  if (Arg2pSolver$Companion_instance === null) {
316
324
  new Arg2pSolver$Companion();
317
- }return Arg2pSolver$Companion_instance;
325
+ }
326
+ return Arg2pSolver$Companion_instance;
318
327
  }
319
328
  Arg2pSolver.$metadata$ = {
320
329
  kind: Kind_INTERFACE,
@@ -329,10 +338,10 @@
329
338
  PrologWithArgumentation.$metadata$ = {
330
339
  kind: Kind_INTERFACE,
331
340
  simpleName: 'PrologWithArgumentation',
332
- interfaces: [PrologScopeWithTheories]
341
+ interfaces: [LogicProgrammingScopeWithTheories]
333
342
  };
334
343
  function PrologWithArgumentationImpl() {
335
- this.$delegate_38xz9p$_0 = PrologScope.Companion.empty();
344
+ this.$delegate_38xz9p$_0 = LogicProgrammingScope.Companion.empty();
336
345
  this.$delegate_38xz9p$_1 = Unificator.Companion.default;
337
346
  }
338
347
  Object.defineProperty(PrologWithArgumentationImpl.prototype, 'A', {
@@ -626,8 +635,8 @@
626
635
  PrologWithArgumentationImpl.prototype.char_code2 = function (char, code) {
627
636
  return this.$delegate_38xz9p$_0.char_code2(char, code);
628
637
  };
629
- PrologWithArgumentationImpl.prototype.clause_fzbqwd$ = function (function_0) {
630
- return this.$delegate_38xz9p$_0.clause_fzbqwd$(function_0);
638
+ PrologWithArgumentationImpl.prototype.clause_x8scsp$ = function (function_0) {
639
+ return this.$delegate_38xz9p$_0.clause_x8scsp$(function_0);
631
640
  };
632
641
  PrologWithArgumentationImpl.prototype.clause2 = function (head, body) {
633
642
  return this.$delegate_38xz9p$_0.clause2(head, body);
@@ -698,6 +707,9 @@
698
707
  PrologWithArgumentationImpl.prototype.get = function (variable) {
699
708
  return this.$delegate_38xz9p$_0.get(variable);
700
709
  };
710
+ PrologWithArgumentationImpl.prototype.getValue_n5byny$ = function (thisRef, property) {
711
+ return this.$delegate_38xz9p$_0.getValue_n5byny$(thisRef, property);
712
+ };
701
713
  PrologWithArgumentationImpl.prototype.ground1 = function (term) {
702
714
  return this.$delegate_38xz9p$_0.ground1(term);
703
715
  };
@@ -893,6 +905,15 @@
893
905
  PrologWithArgumentationImpl.prototype.sub_atom5 = function (atom, before, length, after, sub_atom) {
894
906
  return this.$delegate_38xz9p$_0.sub_atom5(atom, before, length, after, sub_atom);
895
907
  };
908
+ PrologWithArgumentationImpl.prototype.substitutionOf = function (assignments) {
909
+ return this.$delegate_38xz9p$_0.substitutionOf(assignments);
910
+ };
911
+ PrologWithArgumentationImpl.prototype.substitutionOfIterable = function (assignments) {
912
+ return this.$delegate_38xz9p$_0.substitutionOfIterable(assignments);
913
+ };
914
+ PrologWithArgumentationImpl.prototype.substitutionOfSequence = function (assignments) {
915
+ return this.$delegate_38xz9p$_0.substitutionOfSequence(assignments);
916
+ };
896
917
  PrologWithArgumentationImpl.prototype.throw1 = function (error) {
897
918
  return this.$delegate_38xz9p$_0.throw1(error);
898
919
  };
@@ -911,6 +932,15 @@
911
932
  PrologWithArgumentationImpl.prototype.tupleOfSequence = function (terms) {
912
933
  return this.$delegate_38xz9p$_0.tupleOfSequence(terms);
913
934
  };
935
+ PrologWithArgumentationImpl.prototype.unifierOf = function (assignments) {
936
+ return this.$delegate_38xz9p$_0.unifierOf(assignments);
937
+ };
938
+ PrologWithArgumentationImpl.prototype.unifierOfIterable = function (assignments) {
939
+ return this.$delegate_38xz9p$_0.unifierOfIterable(assignments);
940
+ };
941
+ PrologWithArgumentationImpl.prototype.unifierOfSequence = function (assignments) {
942
+ return this.$delegate_38xz9p$_0.unifierOfSequence(assignments);
943
+ };
914
944
  PrologWithArgumentationImpl.prototype.var1 = function (term) {
915
945
  return this.$delegate_38xz9p$_0.var1(term);
916
946
  };
@@ -1085,7 +1115,7 @@
1085
1115
  PrologWithArgumentationImpl.$metadata$ = {
1086
1116
  kind: Kind_CLASS,
1087
1117
  simpleName: 'PrologWithArgumentationImpl',
1088
- interfaces: [PrologWithArgumentation, Unificator, PrologScope]
1118
+ interfaces: [PrologWithArgumentation, Unificator, LogicProgrammingScope]
1089
1119
  };
1090
1120
  function arg2pScope(function_0) {
1091
1121
  return function_0(new PrologWithArgumentationImpl());
@@ -1129,7 +1159,7 @@
1129
1159
  return union(this.baseFlags, this.parentLibrary.flags());
1130
1160
  };
1131
1161
  UnionArgLibrary.prototype.content = function () {
1132
- return Library.Companion.aliased(this.baseContent.alias, void 0, this.baseContent.theory.plusTheory(this.parentLibrary.content().theory));
1162
+ return Library.Companion.of(this.baseContent.alias, void 0, this.baseContent.theory.plusTheory(this.parentLibrary.content().theory));
1133
1163
  };
1134
1164
  UnionArgLibrary.$metadata$ = {
1135
1165
  kind: Kind_INTERFACE,
@@ -1274,7 +1304,8 @@
1274
1304
  throw this.exception_0;
1275
1305
  case 2:
1276
1306
  return this.result_0;
1277
- default:this.state_0 = 1;
1307
+ default:
1308
+ this.state_0 = 1;
1278
1309
  throw new Error('State Machine Unreachable execution');
1279
1310
  }
1280
1311
  } catch (e) {
@@ -1326,7 +1357,7 @@
1326
1357
  var element = tmp$_1.next();
1327
1358
  destination.put_xwzc9p$(element.signature, element);
1328
1359
  }
1329
- return tmp$.aliased(tmp$_0, destination);
1360
+ return tmp$.of(tmp$_0, destination);
1330
1361
  }
1331
1362
  });
1332
1363
  Object.defineProperty(Cache.prototype, 'baseFlags', {
@@ -1540,7 +1571,8 @@
1540
1571
  throw this.exception_0;
1541
1572
  case 2:
1542
1573
  return this.result_0;
1543
- default:this.state_0 = 1;
1574
+ default:
1575
+ this.state_0 = 1;
1544
1576
  throw new Error('State Machine Unreachable execution');
1545
1577
  }
1546
1578
  } catch (e) {
@@ -1618,7 +1650,8 @@
1618
1650
  throw this.exception_0;
1619
1651
  case 2:
1620
1652
  return this.result_0;
1621
- default:this.state_0 = 1;
1653
+ default:
1654
+ this.state_0 = 1;
1622
1655
  throw new Error('State Machine Unreachable execution');
1623
1656
  }
1624
1657
  } catch (e) {
@@ -1671,7 +1704,7 @@
1671
1704
  var element = tmp$_1.next();
1672
1705
  destination.put_xwzc9p$(element.signature, element);
1673
1706
  }
1674
- return tmp$.aliased(tmp$_0, destination);
1707
+ return tmp$.of(tmp$_0, destination);
1675
1708
  }
1676
1709
  });
1677
1710
  Object.defineProperty(Context.prototype, 'baseFlags', {
@@ -1721,7 +1754,7 @@
1721
1754
  switch (this.state_0) {
1722
1755
  case 0:
1723
1756
  this.state_0 = 2;
1724
- this.result_0 = this.local$$receiver.yieldAll_swo9gw$(map(this.local$closure$solver.solveWithOptions(this.local$closure$goal, SolveOptions.Companion.someEagerlyWithTimeout(1000, Long$Companion$MAX_VALUE)), DynamicLoader$AbstractWithLib$solve$lambda$lambda(this.local$closure$request)), this);
1757
+ this.result_0 = this.local$$receiver.yieldAll_swo9gw$(map(this.local$closure$solver.solveWithOptions(this.local$closure$goal, SolveOptions.Companion.allLazilyWithTimeout(Long$Companion$MAX_VALUE)), DynamicLoader$AbstractWithLib$solve$lambda$lambda(this.local$closure$request)), this);
1725
1758
  if (this.result_0 === COROUTINE_SUSPENDED)
1726
1759
  return COROUTINE_SUSPENDED;
1727
1760
  continue;
@@ -1729,7 +1762,8 @@
1729
1762
  throw this.exception_0;
1730
1763
  case 2:
1731
1764
  return this.result_0;
1732
- default:this.state_0 = 1;
1765
+ default:
1766
+ this.state_0 = 1;
1733
1767
  throw new Error('State Machine Unreachable execution');
1734
1768
  }
1735
1769
  } catch (e) {
@@ -1758,9 +1792,11 @@
1758
1792
  var goal = request.arguments.get_za3lpa$(1);
1759
1793
  if (!Kotlin.isType(lib, Atom)) {
1760
1794
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, lib);
1761
- }if (!Kotlin.isType(goal, Struct)) {
1795
+ }
1796
+ if (!Kotlin.isType(goal, Struct)) {
1762
1797
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.CALLABLE, goal);
1763
- }var $receiver = this.$outer.solver_0.dynamicLibraries();
1798
+ }
1799
+ var $receiver = this.$outer.solver_0.dynamicLibraries();
1764
1800
  var firstOrNull$result;
1765
1801
  firstOrNull$break: do {
1766
1802
  var tmp$_0;
@@ -1771,17 +1807,19 @@
1771
1807
  if (equals((Kotlin.isType(tmp$_1 = element, Loadable) ? tmp$_1 : throwCCE()).identifier(), lib.toString())) {
1772
1808
  firstOrNull$result = element;
1773
1809
  break firstOrNull$break;
1774
- }}
1810
+ }
1811
+ }
1775
1812
  firstOrNull$result = null;
1776
1813
  }
1777
1814
  while (false);
1778
1815
  tmp$ = firstOrNull$result;
1779
1816
  if (tmp$ == null) {
1780
1817
  throw DomainError.Companion.forGoal(request.context, request.signature, DomainError$Expected.Companion.of('Loadable Lib'), lib);
1781
- }this.$outer;
1818
+ }
1819
+ this.$outer;
1782
1820
  var this$DynamicLoader = this.$outer;
1783
1821
  var tmp$_2 = request.context;
1784
- var tmp$_3 = Libraries.Companion;
1822
+ var tmp$_3 = Runtime.Companion;
1785
1823
  var $receiver_0 = request.context.libraries.libraries;
1786
1824
  var destination = ArrayList_init_0();
1787
1825
  var tmp$_4;
@@ -1799,7 +1837,7 @@
1799
1837
  if (!destination_0.contains_11rb$(element_0.alias))
1800
1838
  destination.add_11rb$(element_0);
1801
1839
  }
1802
- var solver = tmp$_2.createMutableSolver(tmp$_3.ofIterable(destination).plus(tmp$.content()), void 0, request.context.staticKb);
1840
+ var solver = tmp$_2.createMutableSolver(tmp$_3.ofIterable(destination).plusLibrary(tmp$.content()), void 0, request.context.staticKb);
1803
1841
  this.execute_khyi1m$(lib.toString(), solver);
1804
1842
  return sequence(DynamicLoader$AbstractWithLib$solve$lambda(solver, goal, request));
1805
1843
  };
@@ -1853,7 +1891,7 @@
1853
1891
  };
1854
1892
  }
1855
1893
  DynamicLoader$WithLibInNewContext.prototype.execute_khyi1m$ = function (module_0, solver) {
1856
- prolog(DynamicLoader$WithLibInNewContext$execute$lambda(solver));
1894
+ logicProgramming(DynamicLoader$WithLibInNewContext$execute$lambda(solver));
1857
1895
  };
1858
1896
  DynamicLoader$WithLibInNewContext.$metadata$ = {
1859
1897
  kind: Kind_CLASS,
@@ -1880,7 +1918,7 @@
1880
1918
  var element = tmp$_1.next();
1881
1919
  destination.put_xwzc9p$(element.signature, element);
1882
1920
  }
1883
- return tmp$.aliased(tmp$_0, destination, void 0, DynamicLoader$Companion_getInstance().operators());
1921
+ return tmp$.of(tmp$_0, destination, void 0, DynamicLoader$Companion_getInstance().operators());
1884
1922
  }
1885
1923
  });
1886
1924
  Object.defineProperty(DynamicLoader.prototype, 'baseFlags', {
@@ -1913,7 +1951,8 @@
1913
1951
  function DynamicLoader$Companion_getInstance() {
1914
1952
  if (DynamicLoader$Companion_instance === null) {
1915
1953
  new DynamicLoader$Companion();
1916
- }return DynamicLoader$Companion_instance;
1954
+ }
1955
+ return DynamicLoader$Companion_instance;
1917
1956
  }
1918
1957
  DynamicLoader.$metadata$ = {
1919
1958
  kind: Kind_CLASS,
@@ -1934,7 +1973,7 @@
1934
1973
  Object.defineProperty(EngineInterfaceBase.prototype, 'baseContent', {
1935
1974
  configurable: true,
1936
1975
  get: function () {
1937
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory, RuleParserBase$Companion_getInstance().operators());
1976
+ return Library.Companion.of(this.alias, void 0, this.prologTheory, RuleParserBase$Companion_getInstance().operators());
1938
1977
  }
1939
1978
  });
1940
1979
  Object.defineProperty(EngineInterfaceBase.prototype, 'baseFlags', {
@@ -2021,7 +2060,8 @@
2021
2060
  function FlagsBuilder$Companion_getInstance() {
2022
2061
  if (FlagsBuilder$Companion_instance === null) {
2023
2062
  new FlagsBuilder$Companion();
2024
- }return FlagsBuilder$Companion_instance;
2063
+ }
2064
+ return FlagsBuilder$Companion_instance;
2025
2065
  }
2026
2066
  FlagsBuilder.prototype.queryMode_6taknv$ = function (queryMode) {
2027
2067
  this.queryMode = queryMode;
@@ -2072,7 +2112,7 @@
2072
2112
  Object.defineProperty(FlagsBuilder$create$ObjectLiteral.prototype, 'baseContent', {
2073
2113
  configurable: true,
2074
2114
  get: function () {
2075
- return Library.Companion.aliased(this.alias, void 0, FlagsBuilder$Companion_getInstance().setupSolver_ds05wj$(this.this$FlagsBuilder));
2115
+ return Library.Companion.of(this.alias, void 0, FlagsBuilder$Companion_getInstance().setupSolver_ds05wj$(this.this$FlagsBuilder));
2076
2116
  }
2077
2117
  });
2078
2118
  Object.defineProperty(FlagsBuilder$create$ObjectLiteral.prototype, 'baseFlags', {
@@ -2159,7 +2199,7 @@
2159
2199
  Object.defineProperty(MetaInterpreter.prototype, 'baseContent', {
2160
2200
  configurable: true,
2161
2201
  get: function () {
2162
- return Library.Companion.aliased(this.alias, void 0, parse_2(Theory.Companion, trimIndent('\n % with_facts_and_length/3\n with_facts_and_length(X, Y, L) :-\n solve(X, R),\n recover_facts(R, Y),\n length(Y, L).\n \n % lenght/2\n \n length([], 0).\n length([_|T], X) :- length(T, Y), X is Y + 1.\n \n % recover_facts/2\n \n recover_facts([], []) :- !.\n recover_facts([H|T], C) :-\n is_list(H), !,\n recover_facts(T, TC),\n recover_facts(H, HC),\n append(TC, HC, C).\n recover_facts([H|T], C) :-\n \\+ is_list(H),\n recover_facts(T, TC),\n evaluate(H, HC),\n append(TC, HC, C).\n \n evaluate(user_fact(X), [X]) :- !.\n evaluate(_, []) :- !.\n \n % solve/2\n \n solve((A,B), Result) :- !,\n solve(A, ARes),\n solve(B, BRes),\n append(ARes, BRes, Result).\n \n solve((A;B), Result) :- !,\n solve(A, Result);\n solve(B, Result).\n \n solve(member(A, B), [system_predicate]) :- !,\n call(member(A, B)).\n \n solve(\\+(A), [not(A)]) :- !,\n call(\\+(A)).\n \n solve((A)\\=(B), [doNotUnify(A, B)]) :- !,\n call((A)\\=(B)).\n \n solve(A, [system_predicate]) :-\n catch(clause(A, _), B, true),\n \\+ var(B), !,\n call(A).\n \n solve(A, [A]) :-\n \\+ clause(A, B), !,\n call(A).\n \n solve(A, [A|[Res]]) :-\n clause(A, B),\n solve(B, Res).\n \n % is_list/1\n \n is_list(X) :- var(X), !, fail.\n is_list([]).\n is_list([_|T]) :- is_list(T).\n \n % fetch_argument_facts/2\n \n fetch_argument_facts(Conclusion, Facts) :-\n argument([R, TR, [Conclusion]]),\n findall(user_fact(Fact), \n support([_, _, [user_fact(Fact)]], [R, TR, [Conclusion]]),\n Facts).\n ')));
2202
+ return Library.Companion.of(this.alias, void 0, parse_2(Theory.Companion, trimIndent('\n % with_facts_and_length/3\n with_facts_and_length(X, Y, L) :-\n solve(X, R),\n recover_facts(R, Y),\n length(Y, L).\n \n % lenght/2\n \n length([], 0).\n length([_|T], X) :- length(T, Y), X is Y + 1.\n \n % recover_facts/2\n \n recover_facts([], []) :- !.\n recover_facts([H|T], C) :-\n is_list(H), !,\n recover_facts(T, TC),\n recover_facts(H, HC),\n append(TC, HC, C).\n recover_facts([H|T], C) :-\n \\+ is_list(H),\n recover_facts(T, TC),\n evaluate(H, HC),\n append(TC, HC, C).\n \n evaluate(user_fact(X), [X]) :- !.\n evaluate(_, []) :- !.\n \n % solve/2\n \n solve((A,B), Result) :- !,\n solve(A, ARes),\n solve(B, BRes),\n append(ARes, BRes, Result).\n \n solve((A;B), Result) :- !,\n solve(A, Result);\n solve(B, Result).\n \n solve(member(A, B), [system_predicate]) :- !,\n call(member(A, B)).\n \n solve(\\+(A), [not(A)]) :- !,\n call(\\+(A)).\n \n solve((A)\\=(B), [doNotUnify(A, B)]) :- !,\n call((A)\\=(B)).\n \n solve(A, [system_predicate]) :-\n catch(clause(A, _), B, true),\n \\+ var(B), !,\n call(A).\n \n solve(A, [A]) :-\n \\+ clause(A, B), !,\n call(A).\n \n solve(A, [A|[Res]]) :-\n clause(A, B),\n solve(B, Res).\n \n % is_list/1\n \n is_list(X) :- var(X), !, fail.\n is_list([]).\n is_list([_|T]) :- is_list(T).\n \n % fetch_argument_facts/2\n \n fetch_argument_facts(Conclusion, Facts) :-\n argument([R, TR, [Conclusion]]),\n findall(user_fact(Fact), \n support([_, _, [user_fact(Fact)]], [R, TR, [Conclusion]]),\n Facts).\n ')));
2163
2203
  }
2164
2204
  });
2165
2205
  Object.defineProperty(MetaInterpreter.prototype, 'baseFlags', {
@@ -2180,7 +2220,8 @@
2180
2220
  function MetaInterpreter_getInstance() {
2181
2221
  if (MetaInterpreter_instance === null) {
2182
2222
  new MetaInterpreter();
2183
- }return MetaInterpreter_instance;
2223
+ }
2224
+ return MetaInterpreter_instance;
2184
2225
  }
2185
2226
  function ModuleCalls() {
2186
2227
  ModuleCalls_instance = this;
@@ -2195,7 +2236,7 @@
2195
2236
  Object.defineProperty(ModuleCalls.prototype, 'baseContent', {
2196
2237
  configurable: true,
2197
2238
  get: function () {
2198
- return Library.Companion.aliased(this.alias, mapOf(to(ModuleCall_getInstance().signature, ModuleCall_getInstance())));
2239
+ return Library.Companion.of(this.alias, mapOf(to(ModuleCall_getInstance().signature, ModuleCall_getInstance())));
2199
2240
  }
2200
2241
  });
2201
2242
  Object.defineProperty(ModuleCalls.prototype, 'baseFlags', {
@@ -2216,7 +2257,8 @@
2216
2257
  function ModuleCalls_getInstance() {
2217
2258
  if (ModuleCalls_instance === null) {
2218
2259
  new ModuleCalls();
2219
- }return ModuleCalls_instance;
2260
+ }
2261
+ return ModuleCalls_instance;
2220
2262
  }
2221
2263
  function ModulesPath() {
2222
2264
  ModulesPath_instance = this;
@@ -2239,7 +2281,8 @@
2239
2281
  function ModulesPath_getInstance() {
2240
2282
  if (ModulesPath_instance === null) {
2241
2283
  new ModulesPath();
2242
- }return ModulesPath_instance;
2284
+ }
2285
+ return ModulesPath_instance;
2243
2286
  }
2244
2287
  function ModuleCall() {
2245
2288
  ModuleCall_instance = this;
@@ -2283,7 +2326,8 @@
2283
2326
  throw this.exception_0;
2284
2327
  case 2:
2285
2328
  return this.result_0;
2286
- default:this.state_0 = 1;
2329
+ default:
2330
+ this.state_0 = 1;
2287
2331
  throw new Error('State Machine Unreachable execution');
2288
2332
  }
2289
2333
  } catch (e) {
@@ -2311,9 +2355,11 @@
2311
2355
  var goal = request.arguments.get_za3lpa$(1);
2312
2356
  if (!Kotlin.isType(modules, List)) {
2313
2357
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, modules);
2314
- }if (!Kotlin.isType(goal, Struct)) {
2358
+ }
2359
+ if (!Kotlin.isType(goal, Struct)) {
2315
2360
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.CALLABLE, goal);
2316
- }var tmp$ = request.context;
2361
+ }
2362
+ var tmp$ = request.context;
2317
2363
  var tmp$_0 = this.mineModulesPath_0(request.context);
2318
2364
  var $receiver = modules.toList();
2319
2365
  var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10));
@@ -2337,7 +2383,7 @@
2337
2383
  };
2338
2384
  }
2339
2385
  ModuleCall.prototype.mineModulesPath_0 = function (context) {
2340
- return prolog_0(ModuleCall$mineModulesPath$lambda(context));
2386
+ return logicProgramming_0(void 0, ModuleCall$mineModulesPath$lambda(context));
2341
2387
  };
2342
2388
  function ModuleCall$getCleanSolver$lambda(closure$modulesPath) {
2343
2389
  return function (mod) {
@@ -2360,7 +2406,7 @@
2360
2406
  }
2361
2407
  ModuleCall.prototype.getCleanSolver_0 = function (context, modulesPath, modules) {
2362
2408
  var module_0 = ModuleCall$getCleanSolver$lambda(modulesPath);
2363
- return prolog_0(ModuleCall$getCleanSolver$lambda_0(context, modules, module_0));
2409
+ return logicProgramming_0(void 0, ModuleCall$getCleanSolver$lambda_0(context, modules, module_0));
2364
2410
  };
2365
2411
  ModuleCall.$metadata$ = {
2366
2412
  kind: Kind_OBJECT,
@@ -2371,7 +2417,8 @@
2371
2417
  function ModuleCall_getInstance() {
2372
2418
  if (ModuleCall_instance === null) {
2373
2419
  new ModuleCall();
2374
- }return ModuleCall_instance;
2420
+ }
2421
+ return ModuleCall_instance;
2375
2422
  }
2376
2423
  function AbstractModeBase() {
2377
2424
  LazyRawPrologContent.call(this);
@@ -2387,7 +2434,7 @@
2387
2434
  Object.defineProperty(AbstractModeBase.prototype, 'baseContent', {
2388
2435
  configurable: true,
2389
2436
  get: function () {
2390
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2437
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2391
2438
  }
2392
2439
  });
2393
2440
  Object.defineProperty(AbstractModeBase.prototype, 'baseFlags', {
@@ -2431,7 +2478,8 @@
2431
2478
  function GraphExtension_getInstance() {
2432
2479
  if (GraphExtension_instance === null) {
2433
2480
  new GraphExtension();
2434
- }return GraphExtension_instance;
2481
+ }
2482
+ return GraphExtension_instance;
2435
2483
  }
2436
2484
  function ArgumentLabellingMode() {
2437
2485
  ArgumentLabellingMode_instance = this;
@@ -2454,7 +2502,8 @@
2454
2502
  function ArgumentLabellingMode_getInstance() {
2455
2503
  if (ArgumentLabellingMode_instance === null) {
2456
2504
  new ArgumentLabellingMode();
2457
- }return ArgumentLabellingMode_instance;
2505
+ }
2506
+ return ArgumentLabellingMode_instance;
2458
2507
  }
2459
2508
  function StatementLabellingMode() {
2460
2509
  StatementLabellingMode_instance = this;
@@ -2477,7 +2526,8 @@
2477
2526
  function StatementLabellingMode_getInstance() {
2478
2527
  if (StatementLabellingMode_instance === null) {
2479
2528
  new StatementLabellingMode();
2480
- }return StatementLabellingMode_instance;
2529
+ }
2530
+ return StatementLabellingMode_instance;
2481
2531
  }
2482
2532
  function GraphBuildMode() {
2483
2533
  GraphBuildMode_instance = this;
@@ -2500,7 +2550,8 @@
2500
2550
  function GraphBuildMode_getInstance() {
2501
2551
  if (GraphBuildMode_instance === null) {
2502
2552
  new GraphBuildMode();
2503
- }return GraphBuildMode_instance;
2553
+ }
2554
+ return GraphBuildMode_instance;
2504
2555
  }
2505
2556
  function ArgumentationGraphBuilderBase() {
2506
2557
  LazyRawPrologContent.call(this);
@@ -2516,7 +2567,7 @@
2516
2567
  Object.defineProperty(ArgumentationGraphBuilderBase.prototype, 'baseContent', {
2517
2568
  configurable: true,
2518
2569
  get: function () {
2519
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2570
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2520
2571
  }
2521
2572
  });
2522
2573
  Object.defineProperty(ArgumentationGraphBuilderBase.prototype, 'baseFlags', {
@@ -2553,7 +2604,7 @@
2553
2604
  Object.defineProperty(AttackRestrictionHandlerBase.prototype, 'baseContent', {
2554
2605
  configurable: true,
2555
2606
  get: function () {
2556
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2607
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2557
2608
  }
2558
2609
  });
2559
2610
  Object.defineProperty(AttackRestrictionHandlerBase.prototype, 'baseFlags', {
@@ -2590,7 +2641,7 @@
2590
2641
  Object.defineProperty(BpMetaGraphHandlerBase.prototype, 'baseContent', {
2591
2642
  configurable: true,
2592
2643
  get: function () {
2593
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2644
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2594
2645
  }
2595
2646
  });
2596
2647
  Object.defineProperty(BpMetaGraphHandlerBase.prototype, 'baseFlags', {
@@ -2627,7 +2678,7 @@
2627
2678
  Object.defineProperty(DefeasiblePreferencesHandlerBase.prototype, 'baseContent', {
2628
2679
  configurable: true,
2629
2680
  get: function () {
2630
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2681
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2631
2682
  }
2632
2683
  });
2633
2684
  Object.defineProperty(DefeasiblePreferencesHandlerBase.prototype, 'baseFlags', {
@@ -2664,7 +2715,7 @@
2664
2715
  Object.defineProperty(GenericDefeasiblePreferencesHandlerBase.prototype, 'baseContent', {
2665
2716
  configurable: true,
2666
2717
  get: function () {
2667
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2718
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2668
2719
  }
2669
2720
  });
2670
2721
  Object.defineProperty(GenericDefeasiblePreferencesHandlerBase.prototype, 'baseFlags', {
@@ -2701,7 +2752,7 @@
2701
2752
  Object.defineProperty(StrictPreferencesHandlerBase.prototype, 'baseContent', {
2702
2753
  configurable: true,
2703
2754
  get: function () {
2704
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2755
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2705
2756
  }
2706
2757
  });
2707
2758
  Object.defineProperty(StrictPreferencesHandlerBase.prototype, 'baseFlags', {
@@ -2738,7 +2789,7 @@
2738
2789
  Object.defineProperty(BinaryStatementLabeller.prototype, 'baseContent', {
2739
2790
  configurable: true,
2740
2791
  get: function () {
2741
- return Library.Companion.aliased(this.alias, void 0, Theory.Companion.of([BinaryLabelling_getInstance().wrappedImplementation]));
2792
+ return Library.Companion.of(this.alias, void 0, Theory.Companion.of([BinaryLabelling_getInstance().wrappedImplementation]));
2742
2793
  }
2743
2794
  });
2744
2795
  Object.defineProperty(BinaryStatementLabeller.prototype, 'baseFlags', {
@@ -2765,7 +2816,8 @@
2765
2816
  function BinaryStatementLabeller_getInstance() {
2766
2817
  if (BinaryStatementLabeller_instance === null) {
2767
2818
  new BinaryStatementLabeller();
2768
- }return BinaryStatementLabeller_instance;
2819
+ }
2820
+ return BinaryStatementLabeller_instance;
2769
2821
  }
2770
2822
  function BinaryLabelling() {
2771
2823
  BinaryLabelling_instance = this;
@@ -2775,7 +2827,7 @@
2775
2827
  return $receiver.tupleOf([$receiver.stringInvoke('findall', $receiver._, [$receiver.tupleOf([$receiver.stringInvoke('context_check', $receiver.stringInvoke('in', $receiver.listOf([$receiver._, $receiver._, $receiver.X, $receiver._, $receiver._]), []), []), $receiver.not1($receiver.stringInvoke('contextCheck', $receiver.stringInvoke('statIn', $receiver.X, []), [])), $receiver.stringInvoke('context_assert', $receiver.stringInvoke('statIn', $receiver.X, []), [])]), $receiver._]), $receiver.stringInvoke('findall', $receiver._, [$receiver.tupleOf([$receiver.anyOr($receiver.stringInvoke('context_check', $receiver.stringInvoke('out', $receiver.listOf([$receiver._, $receiver._, $receiver.X, $receiver._, $receiver._]), []), []), $receiver.stringInvoke('context_check', $receiver.stringInvoke('und', $receiver.listOf([$receiver._, $receiver._, $receiver.X, $receiver._, $receiver._]), []), [])), $receiver.not1($receiver.stringInvoke('context_check', $receiver.stringInvoke('statOut', $receiver.X, []), [])), $receiver.stringInvoke('context_assert', $receiver.stringInvoke('statOut', $receiver.X, []), [])]), $receiver._])]);
2776
2828
  }
2777
2829
  BinaryLabelling.prototype.get_body_cjtn4o$ = function ($receiver) {
2778
- return prolog(BinaryLabelling$get_BinaryLabelling$body$lambda);
2830
+ return logicProgramming(BinaryLabelling$get_BinaryLabelling$body$lambda);
2779
2831
  };
2780
2832
  BinaryLabelling.$metadata$ = {
2781
2833
  kind: Kind_OBJECT,
@@ -2786,7 +2838,8 @@
2786
2838
  function BinaryLabelling_getInstance() {
2787
2839
  if (BinaryLabelling_instance === null) {
2788
2840
  new BinaryLabelling();
2789
- }return BinaryLabelling_instance;
2841
+ }
2842
+ return BinaryLabelling_instance;
2790
2843
  }
2791
2844
  function BpCompleteLabellerBase() {
2792
2845
  LazyRawPrologContent.call(this);
@@ -2802,7 +2855,7 @@
2802
2855
  Object.defineProperty(BpCompleteLabellerBase.prototype, 'baseContent', {
2803
2856
  configurable: true,
2804
2857
  get: function () {
2805
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2858
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2806
2859
  }
2807
2860
  });
2808
2861
  Object.defineProperty(BpCompleteLabellerBase.prototype, 'baseFlags', {
@@ -2839,7 +2892,7 @@
2839
2892
  Object.defineProperty(BpLabellerBase.prototype, 'baseContent', {
2840
2893
  configurable: true,
2841
2894
  get: function () {
2842
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2895
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2843
2896
  }
2844
2897
  });
2845
2898
  Object.defineProperty(BpLabellerBase.prototype, 'baseFlags', {
@@ -2876,7 +2929,7 @@
2876
2929
  Object.defineProperty(BpPartialLabellerBase.prototype, 'baseContent', {
2877
2930
  configurable: true,
2878
2931
  get: function () {
2879
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2932
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2880
2933
  }
2881
2934
  });
2882
2935
  Object.defineProperty(BpPartialLabellerBase.prototype, 'baseFlags', {
@@ -2913,7 +2966,7 @@
2913
2966
  Object.defineProperty(CompleteLabellerBase.prototype, 'baseContent', {
2914
2967
  configurable: true,
2915
2968
  get: function () {
2916
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
2969
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2917
2970
  }
2918
2971
  });
2919
2972
  Object.defineProperty(CompleteLabellerBase.prototype, 'baseFlags', {
@@ -2950,7 +3003,7 @@
2950
3003
  Object.defineProperty(GroundedLabellerBase.prototype, 'baseContent', {
2951
3004
  configurable: true,
2952
3005
  get: function () {
2953
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
3006
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2954
3007
  }
2955
3008
  });
2956
3009
  Object.defineProperty(GroundedLabellerBase.prototype, 'baseFlags', {
@@ -2987,7 +3040,7 @@
2987
3040
  Object.defineProperty(GroundedLabellerOptimizedBase.prototype, 'baseContent', {
2988
3041
  configurable: true,
2989
3042
  get: function () {
2990
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
3043
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
2991
3044
  }
2992
3045
  });
2993
3046
  Object.defineProperty(GroundedLabellerOptimizedBase.prototype, 'baseFlags', {
@@ -3024,7 +3077,7 @@
3024
3077
  Object.defineProperty(PassThroughStatementLabeller.prototype, 'baseContent', {
3025
3078
  configurable: true,
3026
3079
  get: function () {
3027
- return Library.Companion.aliased(this.alias, void 0, Theory.Companion.of([Labelling_getInstance().wrappedImplementation]));
3080
+ return Library.Companion.of(this.alias, void 0, Theory.Companion.of([Labelling_getInstance().wrappedImplementation]));
3028
3081
  }
3029
3082
  });
3030
3083
  Object.defineProperty(PassThroughStatementLabeller.prototype, 'baseFlags', {
@@ -3051,7 +3104,8 @@
3051
3104
  function PassThroughStatementLabeller_getInstance() {
3052
3105
  if (PassThroughStatementLabeller_instance === null) {
3053
3106
  new PassThroughStatementLabeller();
3054
- }return PassThroughStatementLabeller_instance;
3107
+ }
3108
+ return PassThroughStatementLabeller_instance;
3055
3109
  }
3056
3110
  function Labelling() {
3057
3111
  Labelling_instance = this;
@@ -3061,7 +3115,7 @@
3061
3115
  return $receiver.tupleOf([$receiver.stringInvoke('findall', $receiver._, [$receiver.tupleOf([$receiver.stringInvoke('context_check', $receiver.stringInvoke('in', $receiver.listOf([$receiver._, $receiver._, $receiver.X, $receiver._, $receiver._]), []), []), $receiver.stringInvoke('context_assert', $receiver.stringInvoke('statIn', $receiver.X, []), [])]), $receiver._]), $receiver.stringInvoke('findall', $receiver._, [$receiver.tupleOf([$receiver.stringInvoke('context_check', $receiver.stringInvoke('out', $receiver.listOf([$receiver._, $receiver._, $receiver.X, $receiver._, $receiver._]), []), []), $receiver.stringInvoke('context_assert', $receiver.stringInvoke('statOut', $receiver.X, []), [])]), $receiver._]), $receiver.stringInvoke('findall', $receiver._, [$receiver.tupleOf([$receiver.stringInvoke('context_check', $receiver.stringInvoke('und', $receiver.listOf([$receiver._, $receiver._, $receiver.X, $receiver._, $receiver._]), []), []), $receiver.stringInvoke('context_assert', $receiver.stringInvoke('statUnd', $receiver.X, []), [])]), $receiver._])]);
3062
3116
  }
3063
3117
  Labelling.prototype.get_body_cjtn4o$ = function ($receiver) {
3064
- return prolog(Labelling$get_Labelling$body$lambda);
3118
+ return logicProgramming(Labelling$get_Labelling$body$lambda);
3065
3119
  };
3066
3120
  Labelling.$metadata$ = {
3067
3121
  kind: Kind_OBJECT,
@@ -3072,7 +3126,8 @@
3072
3126
  function Labelling_getInstance() {
3073
3127
  if (Labelling_instance === null) {
3074
3128
  new Labelling();
3075
- }return Labelling_instance;
3129
+ }
3130
+ return Labelling_instance;
3076
3131
  }
3077
3132
  function StatementLabellerBase() {
3078
3133
  LazyRawPrologContent.call(this);
@@ -3088,7 +3143,7 @@
3088
3143
  Object.defineProperty(StatementLabellerBase.prototype, 'baseContent', {
3089
3144
  configurable: true,
3090
3145
  get: function () {
3091
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
3146
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
3092
3147
  }
3093
3148
  });
3094
3149
  Object.defineProperty(StatementLabellerBase.prototype, 'baseFlags', {
@@ -3126,7 +3181,7 @@
3126
3181
  Object.defineProperty(RuleParserBase.prototype, 'baseContent', {
3127
3182
  configurable: true,
3128
3183
  get: function () {
3129
- return Library.Companion.aliased(this.alias, mapOf_0([getPropertyCallableRef('descriptionPair', 0, function ($receiver) {
3184
+ return Library.Companion.of(this.alias, mapOf_0([getPropertyCallableRef('descriptionPair', 0, function ($receiver) {
3130
3185
  return $receiver.descriptionPair;
3131
3186
  }.bind(null, StrictRules_getInstance())).get(), getPropertyCallableRef('descriptionPair', 0, function ($receiver) {
3132
3187
  return $receiver.descriptionPair;
@@ -3173,7 +3228,8 @@
3173
3228
  function RuleParserBase$Companion_getInstance() {
3174
3229
  if (RuleParserBase$Companion_instance === null) {
3175
3230
  new RuleParserBase$Companion();
3176
- }return RuleParserBase$Companion_instance;
3231
+ }
3232
+ return RuleParserBase$Companion_instance;
3177
3233
  }
3178
3234
  RuleParserBase.$metadata$ = {
3179
3235
  kind: Kind_CLASS,
@@ -3201,7 +3257,8 @@
3201
3257
  function AutoTransposition_getInstance() {
3202
3258
  if (AutoTransposition_instance === null) {
3203
3259
  new AutoTransposition();
3204
- }return AutoTransposition_instance;
3260
+ }
3261
+ return AutoTransposition_instance;
3205
3262
  }
3206
3263
  function PrologStrictCompatibility() {
3207
3264
  PrologStrictCompatibility_instance = this;
@@ -3224,7 +3281,8 @@
3224
3281
  function PrologStrictCompatibility_getInstance() {
3225
3282
  if (PrologStrictCompatibility_instance === null) {
3226
3283
  new PrologStrictCompatibility();
3227
- }return PrologStrictCompatibility_instance;
3284
+ }
3285
+ return PrologStrictCompatibility_instance;
3228
3286
  }
3229
3287
  function ConversionUtils() {
3230
3288
  ConversionUtils_instance = this;
@@ -3246,7 +3304,7 @@
3246
3304
  };
3247
3305
  }
3248
3306
  ConversionUtils.prototype.modifiers_3bh3rj$ = function (target, context) {
3249
- return prolog_0(ConversionUtils$modifiers$lambda(target, context));
3307
+ return logicProgramming_0(void 0, ConversionUtils$modifiers$lambda(target, context));
3250
3308
  };
3251
3309
  function ConversionUtils$commonMap$lambda(closure$first, closure$force, closure$context, closure$mapper) {
3252
3310
  return function ($receiver) {
@@ -3261,11 +3319,11 @@
3261
3319
  return sequenceOf([tmp$_1.of(tmp$, tmp$_0)]);
3262
3320
  };
3263
3321
  }
3264
- ConversionUtils.prototype.commonMap_sg2xgv$ = function (context, first, force, mapper) {
3322
+ ConversionUtils.prototype.commonMap_2z7qph$ = function (context, first, force, mapper) {
3265
3323
  if (force === void 0)
3266
3324
  force = false;
3267
3325
  PrimitiveWrapper.Companion.ensuringArgumentIsVariable_3adri$(context, 0);
3268
- return prolog_0(ConversionUtils$commonMap$lambda(first, force, context, mapper));
3326
+ return logicProgramming_0(void 0, ConversionUtils$commonMap$lambda(first, force, context, mapper));
3269
3327
  };
3270
3328
  ConversionUtils.$metadata$ = {
3271
3329
  kind: Kind_OBJECT,
@@ -3276,7 +3334,8 @@
3276
3334
  function ConversionUtils_getInstance() {
3277
3335
  if (ConversionUtils_instance === null) {
3278
3336
  new ConversionUtils();
3279
- }return ConversionUtils_instance;
3337
+ }
3338
+ return ConversionUtils_instance;
3280
3339
  }
3281
3340
  function StrictRules() {
3282
3341
  StrictRules_instance = this;
@@ -3305,7 +3364,7 @@
3305
3364
  };
3306
3365
  }
3307
3366
  StrictRules.prototype.computeAllSubstitutions_jktvg7$ = function ($receiver, first) {
3308
- return ConversionUtils_getInstance().commonMap_sg2xgv$($receiver, first, void 0, StrictRules$computeAllSubstitutions$lambda($receiver));
3367
+ return ConversionUtils_getInstance().commonMap_2z7qph$($receiver, first, void 0, StrictRules$computeAllSubstitutions$lambda($receiver));
3309
3368
  };
3310
3369
  StrictRules.$metadata$ = {
3311
3370
  kind: Kind_OBJECT,
@@ -3316,7 +3375,8 @@
3316
3375
  function StrictRules_getInstance() {
3317
3376
  if (StrictRules_instance === null) {
3318
3377
  new StrictRules();
3319
- }return StrictRules_instance;
3378
+ }
3379
+ return StrictRules_instance;
3320
3380
  }
3321
3381
  function Axioms() {
3322
3382
  Axioms_instance = this;
@@ -3341,7 +3401,7 @@
3341
3401
  return toTerm(destination_0);
3342
3402
  }
3343
3403
  Axioms.prototype.computeAllSubstitutions_jktvg7$ = function ($receiver, first) {
3344
- return ConversionUtils_getInstance().commonMap_sg2xgv$($receiver, first, void 0, Axioms$computeAllSubstitutions$lambda);
3404
+ return ConversionUtils_getInstance().commonMap_2z7qph$($receiver, first, void 0, Axioms$computeAllSubstitutions$lambda);
3345
3405
  };
3346
3406
  Axioms.$metadata$ = {
3347
3407
  kind: Kind_OBJECT,
@@ -3352,7 +3412,8 @@
3352
3412
  function Axioms_getInstance() {
3353
3413
  if (Axioms_instance === null) {
3354
3414
  new Axioms();
3355
- }return Axioms_instance;
3415
+ }
3416
+ return Axioms_instance;
3356
3417
  }
3357
3418
  function Premises() {
3358
3419
  Premises_instance = this;
@@ -3377,7 +3438,7 @@
3377
3438
  return toTerm(destination_0);
3378
3439
  }
3379
3440
  Premises.prototype.computeAllSubstitutions_jktvg7$ = function ($receiver, first) {
3380
- return ConversionUtils_getInstance().commonMap_sg2xgv$($receiver, first, void 0, Premises$computeAllSubstitutions$lambda);
3441
+ return ConversionUtils_getInstance().commonMap_2z7qph$($receiver, first, void 0, Premises$computeAllSubstitutions$lambda);
3381
3442
  };
3382
3443
  Premises.$metadata$ = {
3383
3444
  kind: Kind_OBJECT,
@@ -3388,7 +3449,8 @@
3388
3449
  function Premises_getInstance() {
3389
3450
  if (Premises_instance === null) {
3390
3451
  new Premises();
3391
- }return Premises_instance;
3452
+ }
3453
+ return Premises_instance;
3392
3454
  }
3393
3455
  function DefeasibleRules() {
3394
3456
  DefeasibleRules_instance = this;
@@ -3427,7 +3489,7 @@
3427
3489
  };
3428
3490
  }
3429
3491
  DefeasibleRules.prototype.computeAllSubstitutions_jktvg7$ = function ($receiver, first) {
3430
- return ConversionUtils_getInstance().commonMap_sg2xgv$($receiver, first, void 0, DefeasibleRules$computeAllSubstitutions$lambda($receiver));
3492
+ return ConversionUtils_getInstance().commonMap_2z7qph$($receiver, first, void 0, DefeasibleRules$computeAllSubstitutions$lambda($receiver));
3431
3493
  };
3432
3494
  DefeasibleRules.$metadata$ = {
3433
3495
  kind: Kind_OBJECT,
@@ -3438,7 +3500,8 @@
3438
3500
  function DefeasibleRules_getInstance() {
3439
3501
  if (DefeasibleRules_instance === null) {
3440
3502
  new DefeasibleRules();
3441
- }return DefeasibleRules_instance;
3503
+ }
3504
+ return DefeasibleRules_instance;
3442
3505
  }
3443
3506
  function Bps() {
3444
3507
  Bps_instance = this;
@@ -3464,7 +3527,7 @@
3464
3527
  return toTerm(destination_0);
3465
3528
  }
3466
3529
  Bps.prototype.computeAllSubstitutions_jktvg7$ = function ($receiver, first) {
3467
- return ConversionUtils_getInstance().commonMap_sg2xgv$($receiver, first, true, Bps$computeAllSubstitutions$lambda);
3530
+ return ConversionUtils_getInstance().commonMap_2z7qph$($receiver, first, true, Bps$computeAllSubstitutions$lambda);
3468
3531
  };
3469
3532
  Bps.$metadata$ = {
3470
3533
  kind: Kind_OBJECT,
@@ -3475,7 +3538,8 @@
3475
3538
  function Bps_getInstance() {
3476
3539
  if (Bps_instance === null) {
3477
3540
  new Bps();
3478
- }return Bps_instance;
3541
+ }
3542
+ return Bps_instance;
3479
3543
  }
3480
3544
  function ExtractStrictIds() {
3481
3545
  ExtractStrictIds_instance = this;
@@ -3504,7 +3568,8 @@
3504
3568
  function ExtractStrictIds_getInstance() {
3505
3569
  if (ExtractStrictIds_instance === null) {
3506
3570
  new ExtractStrictIds();
3507
- }return ExtractStrictIds_instance;
3571
+ }
3572
+ return ExtractStrictIds_instance;
3508
3573
  }
3509
3574
  function RuleToClause() {
3510
3575
  RuleToClause_instance = this;
@@ -3531,7 +3596,8 @@
3531
3596
  case 3:
3532
3597
  block$result = Clause.Companion.of(Struct.Companion.of('rl', [it.get_za3lpa$(2)]), [item]);
3533
3598
  break block$break;
3534
- default:throw IllegalArgumentException_init();
3599
+ default:
3600
+ throw IllegalArgumentException_init();
3535
3601
  }
3536
3602
  }
3537
3603
  while (false);
@@ -3548,7 +3614,8 @@
3548
3614
  function RuleToClause_getInstance() {
3549
3615
  if (RuleToClause_instance === null) {
3550
3616
  new RuleToClause();
3551
- }return RuleToClause_instance;
3617
+ }
3618
+ return RuleToClause_instance;
3552
3619
  }
3553
3620
  function StructuredModeBase() {
3554
3621
  LazyRawPrologContent.call(this);
@@ -3564,7 +3631,7 @@
3564
3631
  Object.defineProperty(StructuredModeBase.prototype, 'baseContent', {
3565
3632
  configurable: true,
3566
3633
  get: function () {
3567
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
3634
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
3568
3635
  }
3569
3636
  });
3570
3637
  Object.defineProperty(StructuredModeBase.prototype, 'baseFlags', {
@@ -3608,7 +3675,8 @@
3608
3675
  function QueryMode_getInstance() {
3609
3676
  if (QueryMode_instance === null) {
3610
3677
  new QueryMode();
3611
- }return QueryMode_instance;
3678
+ }
3679
+ return QueryMode_instance;
3612
3680
  }
3613
3681
  function AmbiguityBlocking() {
3614
3682
  AmbiguityBlocking_instance = this;
@@ -3631,7 +3699,8 @@
3631
3699
  function AmbiguityBlocking_getInstance() {
3632
3700
  if (AmbiguityBlocking_instance === null) {
3633
3701
  new AmbiguityBlocking();
3634
- }return AmbiguityBlocking_instance;
3702
+ }
3703
+ return AmbiguityBlocking_instance;
3635
3704
  }
3636
3705
  function DebugBase() {
3637
3706
  LazyRawPrologContent.call(this);
@@ -3647,7 +3716,7 @@
3647
3716
  Object.defineProperty(DebugBase.prototype, 'baseContent', {
3648
3717
  configurable: true,
3649
3718
  get: function () {
3650
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
3719
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
3651
3720
  }
3652
3721
  });
3653
3722
  Object.defineProperty(DebugBase.prototype, 'baseFlags', {
@@ -3684,7 +3753,7 @@
3684
3753
  Object.defineProperty(SuperiorityRelationBase.prototype, 'baseContent', {
3685
3754
  configurable: true,
3686
3755
  get: function () {
3687
- return Library.Companion.aliased(this.alias, void 0, this.prologTheory);
3756
+ return Library.Companion.of(this.alias, void 0, this.prologTheory);
3688
3757
  }
3689
3758
  });
3690
3759
  Object.defineProperty(SuperiorityRelationBase.prototype, 'baseFlags', {
@@ -3728,7 +3797,8 @@
3728
3797
  function OrderingPrinciple_getInstance() {
3729
3798
  if (OrderingPrinciple_instance === null) {
3730
3799
  new OrderingPrinciple();
3731
- }return OrderingPrinciple_instance;
3800
+ }
3801
+ return OrderingPrinciple_instance;
3732
3802
  }
3733
3803
  function OrderingComparator() {
3734
3804
  OrderingComparator_instance = this;
@@ -3751,7 +3821,8 @@
3751
3821
  function OrderingComparator_getInstance() {
3752
3822
  if (OrderingComparator_instance === null) {
3753
3823
  new OrderingComparator();
3754
- }return OrderingComparator_instance;
3824
+ }
3825
+ return OrderingComparator_instance;
3755
3826
  }
3756
3827
  function UtilsBase() {
3757
3828
  LazyRawPrologContent.call(this);
@@ -3774,7 +3845,7 @@
3774
3845
  var tmp$_2 = to(AppendOptimized_getInstance().signature, AppendOptimized_getInstance());
3775
3846
  var tmp$_3 = to(AssertAll_getInstance().signature, AssertAll_getInstance());
3776
3847
  var $this = ArgumentHash_getInstance();
3777
- return tmp$_1.aliased(tmp$, mapOf_0([tmp$_2, tmp$_3, to($this.signature, $this.wrappedImplementation), to(Contains_getInstance().signature, Contains_getInstance()), to(ContainsAny_getInstance().signature, ContainsAny_getInstance())]), tmp$_0);
3848
+ return tmp$_1.of(tmp$, mapOf_0([tmp$_2, tmp$_3, to($this.signature, $this.wrappedImplementation), to(Contains_getInstance().signature, Contains_getInstance()), to(ContainsAny_getInstance().signature, ContainsAny_getInstance())]), tmp$_0);
3778
3849
  }
3779
3850
  });
3780
3851
  Object.defineProperty(UtilsBase.prototype, 'baseFlags', {
@@ -3832,7 +3903,8 @@
3832
3903
  throw this.exception_0;
3833
3904
  case 2:
3834
3905
  return this.result_0;
3835
- default:this.state_0 = 1;
3906
+ default:
3907
+ this.state_0 = 1;
3836
3908
  throw new Error('State Machine Unreachable execution');
3837
3909
  }
3838
3910
  } catch (e) {
@@ -3861,11 +3933,14 @@
3861
3933
  var res = request.arguments.get_za3lpa$(2);
3862
3934
  if (!Kotlin.isType(list1, List)) {
3863
3935
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, list1);
3864
- }if (!Kotlin.isType(list2, List)) {
3936
+ }
3937
+ if (!Kotlin.isType(list2, List)) {
3865
3938
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, list2);
3866
- }if (!Kotlin.isType(res, Var)) {
3939
+ }
3940
+ if (!Kotlin.isType(res, Var)) {
3867
3941
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.VARIABLE, res);
3868
- }return sequence(AppendOptimized$solve$lambda(request, res, list1, list2));
3942
+ }
3943
+ return sequence(AppendOptimized$solve$lambda(request, res, list1, list2));
3869
3944
  };
3870
3945
  AppendOptimized.$metadata$ = {
3871
3946
  kind: Kind_OBJECT,
@@ -3876,7 +3951,8 @@
3876
3951
  function AppendOptimized_getInstance() {
3877
3952
  if (AppendOptimized_instance === null) {
3878
3953
  new AppendOptimized();
3879
- }return AppendOptimized_instance;
3954
+ }
3955
+ return AppendOptimized_instance;
3880
3956
  }
3881
3957
  function AssertAll() {
3882
3958
  AssertAll_instance = this;
@@ -3922,7 +3998,8 @@
3922
3998
  throw this.exception_0;
3923
3999
  case 2:
3924
4000
  return this.result_0;
3925
- default:this.state_0 = 1;
4001
+ default:
4002
+ this.state_0 = 1;
3926
4003
  throw new Error('State Machine Unreachable execution');
3927
4004
  }
3928
4005
  } catch (e) {
@@ -3949,7 +4026,8 @@
3949
4026
  var list = request.arguments.get_za3lpa$(0);
3950
4027
  if (!Kotlin.isType(list, List)) {
3951
4028
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, list);
3952
- }arg2pScope(AssertAll$solve$lambda(list, request));
4029
+ }
4030
+ arg2pScope(AssertAll$solve$lambda(list, request));
3953
4031
  return sequence(AssertAll$solve$lambda_0(request));
3954
4032
  };
3955
4033
  AssertAll.$metadata$ = {
@@ -3961,7 +4039,8 @@
3961
4039
  function AssertAll_getInstance() {
3962
4040
  if (AssertAll_instance === null) {
3963
4041
  new AssertAll();
3964
- }return AssertAll_instance;
4042
+ }
4043
+ return AssertAll_instance;
3965
4044
  }
3966
4045
  function ArgumentHash() {
3967
4046
  ArgumentHash_instance = this;
@@ -3979,7 +4058,8 @@
3979
4058
  function ArgumentHash_getInstance() {
3980
4059
  if (ArgumentHash_instance === null) {
3981
4060
  new ArgumentHash();
3982
- }return ArgumentHash_instance;
4061
+ }
4062
+ return ArgumentHash_instance;
3983
4063
  }
3984
4064
  function Contains() {
3985
4065
  Contains_instance = this;
@@ -4014,14 +4094,16 @@
4014
4094
  if (Kotlin.isType($receiver, Collection) && $receiver.isEmpty()) {
4015
4095
  any$result = false;
4016
4096
  break any$break;
4017
- }tmp$_0 = $receiver.iterator();
4097
+ }
4098
+ tmp$_0 = $receiver.iterator();
4018
4099
  while (tmp$_0.hasNext()) {
4019
4100
  var element = tmp$_0.next();
4020
4101
  var closure$elem = this.local$closure$elem;
4021
4102
  if (Unificator.Companion.default.match(element, closure$elem)) {
4022
4103
  any$result = true;
4023
4104
  break any$break;
4024
- }}
4105
+ }
4106
+ }
4025
4107
  any$result = false;
4026
4108
  }
4027
4109
  while (false);
@@ -4034,7 +4116,8 @@
4034
4116
  throw this.exception_0;
4035
4117
  case 2:
4036
4118
  return this.result_0;
4037
- default:this.state_0 = 1;
4119
+ default:
4120
+ this.state_0 = 1;
4038
4121
  throw new Error('State Machine Unreachable execution');
4039
4122
  }
4040
4123
  } catch (e) {
@@ -4062,7 +4145,8 @@
4062
4145
  var list = request.arguments.get_za3lpa$(1);
4063
4146
  if (!Kotlin.isType(list, List)) {
4064
4147
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, list);
4065
- }return sequence(Contains$solve$lambda(request, list, elem));
4148
+ }
4149
+ return sequence(Contains$solve$lambda(request, list, elem));
4066
4150
  };
4067
4151
  Contains.$metadata$ = {
4068
4152
  kind: Kind_OBJECT,
@@ -4073,7 +4157,8 @@
4073
4157
  function Contains_getInstance() {
4074
4158
  if (Contains_instance === null) {
4075
4159
  new Contains();
4076
- }return Contains_instance;
4160
+ }
4161
+ return Contains_instance;
4077
4162
  }
4078
4163
  function ContainsAny() {
4079
4164
  ContainsAny_instance = this;
@@ -4118,14 +4203,16 @@
4118
4203
  if (Unificator.Companion.default.match(element, element_0)) {
4119
4204
  any$result_0 = true;
4120
4205
  break any$break_0;
4121
- }}
4206
+ }
4207
+ }
4122
4208
  any$result_0 = false;
4123
4209
  }
4124
4210
  while (false);
4125
4211
  if (any$result_0) {
4126
4212
  any$result = true;
4127
4213
  break any$break;
4128
- }}
4214
+ }
4215
+ }
4129
4216
  any$result = false;
4130
4217
  }
4131
4218
  while (false);
@@ -4138,7 +4225,8 @@
4138
4225
  throw this.exception_0;
4139
4226
  case 2:
4140
4227
  return this.result_0;
4141
- default:this.state_0 = 1;
4228
+ default:
4229
+ this.state_0 = 1;
4142
4230
  throw new Error('State Machine Unreachable execution');
4143
4231
  }
4144
4232
  } catch (e) {
@@ -4166,9 +4254,11 @@
4166
4254
  var list = request.arguments.get_za3lpa$(1);
4167
4255
  if (!Kotlin.isType(list, List)) {
4168
4256
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, list);
4169
- }if (!Kotlin.isType(elemList, List)) {
4257
+ }
4258
+ if (!Kotlin.isType(elemList, List)) {
4170
4259
  throw TypeError.Companion.forGoal(request.context, request.signature, TypeError$Expected.LIST, list);
4171
- }return sequence(ContainsAny$solve$lambda(request, list, elemList));
4260
+ }
4261
+ return sequence(ContainsAny$solve$lambda(request, list, elemList));
4172
4262
  };
4173
4263
  ContainsAny.$metadata$ = {
4174
4264
  kind: Kind_OBJECT,
@@ -4179,11 +4269,12 @@
4179
4269
  function ContainsAny_getInstance() {
4180
4270
  if (ContainsAny_instance === null) {
4181
4271
  new ContainsAny();
4182
- }return ContainsAny_instance;
4272
+ }
4273
+ return ContainsAny_instance;
4183
4274
  }
4184
4275
  function MetaInterpreterLib() {
4185
4276
  MetaInterpreterLib_instance = this;
4186
- this.$delegate_3wovwi$_0 = Library.Companion.aliased('prolog.argumentation.meta', void 0, parse_2(Theory.Companion, trimIndent('\n % with_facts_and_length/3\n with_facts_and_length(X, Y, L) :-\n solve(X, R),\n recover_facts(R, Y),\n length(Y, L).\n\n % lenght/2\n\n length([], 0).\n length([_|T], X) :- length(T, Y), X is Y + 1.\n\n % recover_facts/2\n\n recover_facts([], []) :- !.\n recover_facts([H|T], C) :-\n is_list(H), !,\n recover_facts(T, TC),\n recover_facts(H, HC),\n append(TC, HC, C).\n recover_facts([H|T], C) :-\n \\+ is_list(H),\n recover_facts(T, TC),\n evaluate(H, HC),\n append(TC, HC, C).\n\n evaluate(user_fact(X), [X]) :- !.\n evaluate(_, []) :- !.\n\n % solve/2\n\n solve((A,B), Result) :- !,\n solve(A, ARes),\n solve(B, BRes),\n append(ARes, BRes, Result).\n\n solve((A;B), Result) :- !,\n solve(A, Result);\n solve(B, Result).\n\n solve(member(A, B), [system_predicate]) :- !,\n call(member(A, B)).\n\n solve(\\+(A), [not(A)]) :- !,\n call(\\+(A)).\n\n solve((A)\\=(B), [doNotUnify(A, B)]) :- !,\n call((A)\\=(B)).\n\n solve(A, [system_predicate]) :-\n catch(clause(A, _), B, true),\n \\+ var(B), !,\n call(A).\n\n solve(A, [A]) :-\n \\+ clause(A, B), !,\n call(A).\n\n solve(A, [A|[Res]]) :-\n clause(A, B),\n solve(B, Res).\n\n % is_list/1\n\n is_list(X) :- var(X), !, fail.\n is_list([]).\n is_list([_|T]) :- is_list(T).\n \n % fetch_argument_facts/2\n \n fetch_argument_facts(Conclusion, Facts) :-\n argument([R, TR, [Conclusion]]),\n findall(user_fact(Fact), \n support([_, _, [user_fact(Fact)]], [R, TR, [Conclusion]]),\n Facts).\n ')));
4277
+ this.$delegate_3wovwi$_0 = Library.Companion.of('prolog.argumentation.meta', void 0, parse_2(Theory.Companion, trimIndent('\n % with_facts_and_length/3\n with_facts_and_length(X, Y, L) :-\n solve(X, R),\n recover_facts(R, Y),\n length(Y, L).\n\n % lenght/2\n\n length([], 0).\n length([_|T], X) :- length(T, Y), X is Y + 1.\n\n % recover_facts/2\n\n recover_facts([], []) :- !.\n recover_facts([H|T], C) :-\n is_list(H), !,\n recover_facts(T, TC),\n recover_facts(H, HC),\n append(TC, HC, C).\n recover_facts([H|T], C) :-\n \\+ is_list(H),\n recover_facts(T, TC),\n evaluate(H, HC),\n append(TC, HC, C).\n\n evaluate(user_fact(X), [X]) :- !.\n evaluate(_, []) :- !.\n\n % solve/2\n\n solve((A,B), Result) :- !,\n solve(A, ARes),\n solve(B, BRes),\n append(ARes, BRes, Result).\n\n solve((A;B), Result) :- !,\n solve(A, Result);\n solve(B, Result).\n\n solve(member(A, B), [system_predicate]) :- !,\n call(member(A, B)).\n\n solve(\\+(A), [not(A)]) :- !,\n call(\\+(A)).\n\n solve((A)\\=(B), [doNotUnify(A, B)]) :- !,\n call((A)\\=(B)).\n\n solve(A, [system_predicate]) :-\n catch(clause(A, _), B, true),\n \\+ var(B), !,\n call(A).\n\n solve(A, [A]) :-\n \\+ clause(A, B), !,\n call(A).\n\n solve(A, [A|[Res]]) :-\n clause(A, B),\n solve(B, Res).\n\n % is_list/1\n\n is_list(X) :- var(X), !, fail.\n is_list([]).\n is_list([_|T]) :- is_list(T).\n \n % fetch_argument_facts/2\n \n fetch_argument_facts(Conclusion, Facts) :-\n argument([R, TR, [Conclusion]]),\n findall(user_fact(Fact), \n support([_, _, [user_fact(Fact)]], [R, TR, [Conclusion]]),\n Facts).\n ')));
4187
4278
  }
4188
4279
  Object.defineProperty(MetaInterpreterLib.prototype, 'alias', {
4189
4280
  configurable: true,
@@ -4221,22 +4312,32 @@
4221
4312
  MetaInterpreterLib.prototype.containsSignature = function (signature) {
4222
4313
  return this.$delegate_3wovwi$_0.containsSignature(signature);
4223
4314
  };
4315
+ MetaInterpreterLib.prototype.equals = function (other) {
4316
+ return this.$delegate_3wovwi$_0.equals(other);
4317
+ };
4224
4318
  MetaInterpreterLib.prototype.hasPrimitive = function (signature) {
4225
4319
  return this.$delegate_3wovwi$_0.hasPrimitive(signature);
4226
4320
  };
4227
4321
  MetaInterpreterLib.prototype.hasProtected = function (signature) {
4228
4322
  return this.$delegate_3wovwi$_0.hasProtected(signature);
4229
4323
  };
4324
+ MetaInterpreterLib.prototype.hashCode = function () {
4325
+ return this.$delegate_3wovwi$_0.hashCode();
4326
+ };
4327
+ MetaInterpreterLib.prototype.toString = function () {
4328
+ return this.$delegate_3wovwi$_0.toString();
4329
+ };
4230
4330
  MetaInterpreterLib.$metadata$ = {
4231
4331
  kind: Kind_OBJECT,
4232
4332
  simpleName: 'MetaInterpreterLib',
4233
- interfaces: [AliasedLibrary]
4333
+ interfaces: [Library]
4234
4334
  };
4235
4335
  var MetaInterpreterLib_instance = null;
4236
4336
  function MetaInterpreterLib_getInstance() {
4237
4337
  if (MetaInterpreterLib_instance === null) {
4238
4338
  new MetaInterpreterLib();
4239
- }return MetaInterpreterLib_instance;
4339
+ }
4340
+ return MetaInterpreterLib_instance;
4240
4341
  }
4241
4342
  function graph($receiver, context) {
4242
4343
  var it = arguments_0($receiver, context);
@@ -4275,7 +4376,7 @@
4275
4376
  };
4276
4377
  }
4277
4378
  function arguments_0($receiver, context) {
4278
- return toList(prolog(arguments$lambda($receiver, context)));
4379
+ return toList(logicProgramming(arguments$lambda($receiver, context)));
4279
4380
  }
4280
4381
  function attacks$lambda$lambda(it) {
4281
4382
  return it.isYes;
@@ -4297,7 +4398,8 @@
4297
4398
  if (element.hashCode() === solution.first.hashCode()) {
4298
4399
  first$result = element;
4299
4400
  break first$break;
4300
- }}
4401
+ }
4402
+ }
4301
4403
  throw new NoSuchElementException_init('Collection contains no element matching the predicate.');
4302
4404
  }
4303
4405
  while (false);
@@ -4312,7 +4414,8 @@
4312
4414
  if (element_0.hashCode() === solution.second.hashCode()) {
4313
4415
  first$result_0 = element_0;
4314
4416
  break first$break;
4315
- }}
4417
+ }
4418
+ }
4316
4419
  throw new NoSuchElementException_init('Collection contains no element matching the predicate.');
4317
4420
  }
4318
4421
  while (false);
@@ -4327,7 +4430,7 @@
4327
4430
  function attacks($receiver, context, arguments_0) {
4328
4431
  if (arguments_0.isEmpty())
4329
4432
  return emptyList();
4330
- return toList(prolog(attacks$lambda($receiver, context, arguments_0)));
4433
+ return toList(logicProgramming(attacks$lambda($receiver, context, arguments_0)));
4331
4434
  }
4332
4435
  function supports$lambda$lambda(it) {
4333
4436
  return it.isYes;
@@ -4349,7 +4452,8 @@
4349
4452
  if (element.hashCode() === solution.second.hashCode()) {
4350
4453
  first$result = element;
4351
4454
  break first$break;
4352
- }}
4455
+ }
4456
+ }
4353
4457
  throw new NoSuchElementException_init('Collection contains no element matching the predicate.');
4354
4458
  }
4355
4459
  while (false);
@@ -4364,7 +4468,8 @@
4364
4468
  if (element_0.hashCode() === solution.first.hashCode()) {
4365
4469
  first$result_0 = element_0;
4366
4470
  break first$break;
4367
- }}
4471
+ }
4472
+ }
4368
4473
  throw new NoSuchElementException_init('Collection contains no element matching the predicate.');
4369
4474
  }
4370
4475
  while (false);
@@ -4379,37 +4484,48 @@
4379
4484
  };
4380
4485
  }
4381
4486
  function supports($receiver, context, arguments_0) {
4382
- return prolog(supports$lambda($receiver, context, arguments_0));
4487
+ return logicProgramming(supports$lambda($receiver, context, arguments_0));
4383
4488
  }
4384
4489
  function labels$checkFunctor$lambda$lambda(it) {
4385
4490
  return it.isYes;
4386
4491
  }
4387
- function labels$checkFunctor$lambda$lambda_0(closure$functor) {
4388
- return function (it) {
4389
- return closure$functor;
4492
+ function labels$checkFunctor$lambda$lambda_0(closure$arguments, this$, closure$functor) {
4493
+ return function (res) {
4494
+ var $receiver = closure$arguments;
4495
+ var first$result;
4496
+ first$break: do {
4497
+ var tmp$;
4498
+ tmp$ = $receiver.iterator();
4499
+ while (tmp$.hasNext()) {
4500
+ var element = tmp$.next();
4501
+ var this$_0 = this$;
4502
+ var tmp$_0 = element.hashCode();
4503
+ var $receiver_0 = res.substitution.get_11rb$(this$_0.X);
4504
+ var tmp$_1;
4505
+ if (tmp$_0 === ((tmp$_1 = $receiver_0 != null ? hashCode($receiver_0) : null) != null ? tmp$_1 : 0)) {
4506
+ first$result = element;
4507
+ break first$break;
4508
+ }
4509
+ }
4510
+ throw new NoSuchElementException_init('Collection contains no element matching the predicate.');
4511
+ }
4512
+ while (false);
4513
+ return new LabelledArgument(first$result, closure$functor);
4390
4514
  };
4391
4515
  }
4392
- function labels$checkFunctor$lambda(this$labels, closure$context, closure$functor, closure$argument) {
4516
+ function labels$checkFunctor$lambda(this$labels, closure$context, closure$functor, closure$arguments) {
4393
4517
  return function ($receiver) {
4394
- return firstOrNull(map(filter(this$labels.solve($receiver.stringInvoke('context_check', closure$context, [$receiver.stringInvoke(closure$functor, closure$argument.termRepresentation(), [])])), labels$checkFunctor$lambda$lambda), labels$checkFunctor$lambda$lambda_0(closure$functor)));
4518
+ return toList(map(filter(this$labels.solve($receiver.stringInvoke('context_check', closure$context, [$receiver.stringInvoke(closure$functor, $receiver.X, [])])), labels$checkFunctor$lambda$lambda), labels$checkFunctor$lambda$lambda_0(closure$arguments, $receiver, closure$functor)));
4395
4519
  };
4396
4520
  }
4397
- function labels$checkFunctor(this$labels, closure$context) {
4398
- return function (functor, argument) {
4399
- return prolog(labels$checkFunctor$lambda(this$labels, closure$context, functor, argument));
4521
+ function labels$checkFunctor(this$labels, closure$context, closure$arguments) {
4522
+ return function (functor) {
4523
+ return logicProgramming(labels$checkFunctor$lambda(this$labels, closure$context, functor, closure$arguments));
4400
4524
  };
4401
4525
  }
4402
4526
  function labels($receiver, context, arguments_0) {
4403
- var checkFunctor = labels$checkFunctor($receiver, context);
4404
- var destination = ArrayList_init(collectionSizeOrDefault(arguments_0, 10));
4405
- var tmp$;
4406
- tmp$ = arguments_0.iterator();
4407
- while (tmp$.hasNext()) {
4408
- var item = tmp$.next();
4409
- var tmp$_0, tmp$_1;
4410
- destination.add_11rb$(new LabelledArgument(item, (tmp$_1 = (tmp$_0 = checkFunctor('in', item)) != null ? tmp$_0 : checkFunctor('out', item)) != null ? tmp$_1 : 'und'));
4411
- }
4412
- return destination;
4527
+ var checkFunctor = labels$checkFunctor($receiver, context, arguments_0);
4528
+ return plus(plus(checkFunctor('in'), checkFunctor('out')), checkFunctor('und'));
4413
4529
  }
4414
4530
  function Argument(rules, topRule, conclusion, groundings, defeasibleRules, defeasiblePremises, lastDefeasibleRules, term) {
4415
4531
  Argument$Companion_getInstance();
@@ -4445,7 +4561,7 @@
4445
4561
  var tmp$, tmp$_0, tmp$_1;
4446
4562
  tmp$_1 = this.identifier + ' : ';
4447
4563
  if (equals(this.topRule, 'none'))
4448
- tmp$_0 = (tmp$ = firstOrNull_0(this.rules)) != null ? tmp$ : '';
4564
+ tmp$_0 = (tmp$ = firstOrNull(this.rules)) != null ? tmp$ : '';
4449
4565
  else {
4450
4566
  var $receiver = this.supports;
4451
4567
  var destination = ArrayList_init(collectionSizeOrDefault($receiver, 10));
@@ -4549,7 +4665,8 @@
4549
4665
  function Argument$Companion_getInstance() {
4550
4666
  if (Argument$Companion_instance === null) {
4551
4667
  new Argument$Companion();
4552
- }return Argument$Companion_instance;
4668
+ }
4669
+ return Argument$Companion_instance;
4553
4670
  }
4554
4671
  Argument.$metadata$ = {
4555
4672
  kind: Kind_CLASS,
@@ -4665,7 +4782,8 @@
4665
4782
  function Graph$Companion_getInstance() {
4666
4783
  if (Graph$Companion_instance === null) {
4667
4784
  new Graph$Companion();
4668
- }return Graph$Companion_instance;
4785
+ }
4786
+ return Graph$Companion_instance;
4669
4787
  }
4670
4788
  Graph.$metadata$ = {
4671
4789
  kind: Kind_CLASS,
@@ -4891,7 +5009,8 @@
4891
5009
  function EngineInterface_getInstance() {
4892
5010
  if (EngineInterface_instance === null) {
4893
5011
  new EngineInterface();
4894
- }return EngineInterface_instance;
5012
+ }
5013
+ return EngineInterface_instance;
4895
5014
  }
4896
5015
  function AbstractMode() {
4897
5016
  AbstractMode_instance = this;
@@ -4912,7 +5031,8 @@
4912
5031
  function AbstractMode_getInstance() {
4913
5032
  if (AbstractMode_instance === null) {
4914
5033
  new AbstractMode();
4915
- }return AbstractMode_instance;
5034
+ }
5035
+ return AbstractMode_instance;
4916
5036
  }
4917
5037
  function ArgumentationGraphBuilder() {
4918
5038
  ArgumentationGraphBuilder_instance = this;
@@ -4933,7 +5053,8 @@
4933
5053
  function ArgumentationGraphBuilder_getInstance() {
4934
5054
  if (ArgumentationGraphBuilder_instance === null) {
4935
5055
  new ArgumentationGraphBuilder();
4936
- }return ArgumentationGraphBuilder_instance;
5056
+ }
5057
+ return ArgumentationGraphBuilder_instance;
4937
5058
  }
4938
5059
  function AttackRestrictionHandler() {
4939
5060
  AttackRestrictionHandler_instance = this;
@@ -4954,7 +5075,8 @@
4954
5075
  function AttackRestrictionHandler_getInstance() {
4955
5076
  if (AttackRestrictionHandler_instance === null) {
4956
5077
  new AttackRestrictionHandler();
4957
- }return AttackRestrictionHandler_instance;
5078
+ }
5079
+ return AttackRestrictionHandler_instance;
4958
5080
  }
4959
5081
  function BpMetaGraphHandler() {
4960
5082
  BpMetaGraphHandler_instance = this;
@@ -4975,7 +5097,8 @@
4975
5097
  function BpMetaGraphHandler_getInstance() {
4976
5098
  if (BpMetaGraphHandler_instance === null) {
4977
5099
  new BpMetaGraphHandler();
4978
- }return BpMetaGraphHandler_instance;
5100
+ }
5101
+ return BpMetaGraphHandler_instance;
4979
5102
  }
4980
5103
  function DefeasiblePreferencesHandler() {
4981
5104
  DefeasiblePreferencesHandler_instance = this;
@@ -4996,7 +5119,8 @@
4996
5119
  function DefeasiblePreferencesHandler_getInstance() {
4997
5120
  if (DefeasiblePreferencesHandler_instance === null) {
4998
5121
  new DefeasiblePreferencesHandler();
4999
- }return DefeasiblePreferencesHandler_instance;
5122
+ }
5123
+ return DefeasiblePreferencesHandler_instance;
5000
5124
  }
5001
5125
  function GenericDefeasiblePreferencesHandler() {
5002
5126
  GenericDefeasiblePreferencesHandler_instance = this;
@@ -5017,7 +5141,8 @@
5017
5141
  function GenericDefeasiblePreferencesHandler_getInstance() {
5018
5142
  if (GenericDefeasiblePreferencesHandler_instance === null) {
5019
5143
  new GenericDefeasiblePreferencesHandler();
5020
- }return GenericDefeasiblePreferencesHandler_instance;
5144
+ }
5145
+ return GenericDefeasiblePreferencesHandler_instance;
5021
5146
  }
5022
5147
  function StrictPreferencesHandler() {
5023
5148
  StrictPreferencesHandler_instance = this;
@@ -5038,7 +5163,8 @@
5038
5163
  function StrictPreferencesHandler_getInstance() {
5039
5164
  if (StrictPreferencesHandler_instance === null) {
5040
5165
  new StrictPreferencesHandler();
5041
- }return StrictPreferencesHandler_instance;
5166
+ }
5167
+ return StrictPreferencesHandler_instance;
5042
5168
  }
5043
5169
  function BpCompleteLabeller() {
5044
5170
  BpCompleteLabeller_instance = this;
@@ -5059,7 +5185,8 @@
5059
5185
  function BpCompleteLabeller_getInstance() {
5060
5186
  if (BpCompleteLabeller_instance === null) {
5061
5187
  new BpCompleteLabeller();
5062
- }return BpCompleteLabeller_instance;
5188
+ }
5189
+ return BpCompleteLabeller_instance;
5063
5190
  }
5064
5191
  function BpLabeller() {
5065
5192
  BpLabeller_instance = this;
@@ -5080,7 +5207,8 @@
5080
5207
  function BpLabeller_getInstance() {
5081
5208
  if (BpLabeller_instance === null) {
5082
5209
  new BpLabeller();
5083
- }return BpLabeller_instance;
5210
+ }
5211
+ return BpLabeller_instance;
5084
5212
  }
5085
5213
  function BpPartialLabeller() {
5086
5214
  BpPartialLabeller_instance = this;
@@ -5101,7 +5229,8 @@
5101
5229
  function BpPartialLabeller_getInstance() {
5102
5230
  if (BpPartialLabeller_instance === null) {
5103
5231
  new BpPartialLabeller();
5104
- }return BpPartialLabeller_instance;
5232
+ }
5233
+ return BpPartialLabeller_instance;
5105
5234
  }
5106
5235
  function CompleteLabeller() {
5107
5236
  CompleteLabeller_instance = this;
@@ -5122,7 +5251,8 @@
5122
5251
  function CompleteLabeller_getInstance() {
5123
5252
  if (CompleteLabeller_instance === null) {
5124
5253
  new CompleteLabeller();
5125
- }return CompleteLabeller_instance;
5254
+ }
5255
+ return CompleteLabeller_instance;
5126
5256
  }
5127
5257
  function GroundedLabeller() {
5128
5258
  GroundedLabeller_instance = this;
@@ -5143,7 +5273,8 @@
5143
5273
  function GroundedLabeller_getInstance() {
5144
5274
  if (GroundedLabeller_instance === null) {
5145
5275
  new GroundedLabeller();
5146
- }return GroundedLabeller_instance;
5276
+ }
5277
+ return GroundedLabeller_instance;
5147
5278
  }
5148
5279
  function GroundedLabellerOptimized() {
5149
5280
  GroundedLabellerOptimized_instance = this;
@@ -5164,7 +5295,8 @@
5164
5295
  function GroundedLabellerOptimized_getInstance() {
5165
5296
  if (GroundedLabellerOptimized_instance === null) {
5166
5297
  new GroundedLabellerOptimized();
5167
- }return GroundedLabellerOptimized_instance;
5298
+ }
5299
+ return GroundedLabellerOptimized_instance;
5168
5300
  }
5169
5301
  function StatementLabeller() {
5170
5302
  StatementLabeller_instance = this;
@@ -5185,7 +5317,8 @@
5185
5317
  function StatementLabeller_getInstance() {
5186
5318
  if (StatementLabeller_instance === null) {
5187
5319
  new StatementLabeller();
5188
- }return StatementLabeller_instance;
5320
+ }
5321
+ return StatementLabeller_instance;
5189
5322
  }
5190
5323
  function RuleParser() {
5191
5324
  RuleParser_instance = this;
@@ -5206,7 +5339,8 @@
5206
5339
  function RuleParser_getInstance() {
5207
5340
  if (RuleParser_instance === null) {
5208
5341
  new RuleParser();
5209
- }return RuleParser_instance;
5342
+ }
5343
+ return RuleParser_instance;
5210
5344
  }
5211
5345
  function AbstractMode_0() {
5212
5346
  AbstractMode_instance_0 = this;
@@ -5221,7 +5355,8 @@
5221
5355
  function AbstractMode_getInstance_0() {
5222
5356
  if (AbstractMode_instance_0 === null) {
5223
5357
  new AbstractMode_0();
5224
- }return AbstractMode_instance_0;
5358
+ }
5359
+ return AbstractMode_instance_0;
5225
5360
  }
5226
5361
  function ArgumentationEngineInterface() {
5227
5362
  ArgumentationEngineInterface_instance = this;
@@ -5236,7 +5371,8 @@
5236
5371
  function ArgumentationEngineInterface_getInstance() {
5237
5372
  if (ArgumentationEngineInterface_instance === null) {
5238
5373
  new ArgumentationEngineInterface();
5239
- }return ArgumentationEngineInterface_instance;
5374
+ }
5375
+ return ArgumentationEngineInterface_instance;
5240
5376
  }
5241
5377
  function ArgumentationGraph() {
5242
5378
  ArgumentationGraph_instance = this;
@@ -5251,7 +5387,8 @@
5251
5387
  function ArgumentationGraph_getInstance() {
5252
5388
  if (ArgumentationGraph_instance === null) {
5253
5389
  new ArgumentationGraph();
5254
- }return ArgumentationGraph_instance;
5390
+ }
5391
+ return ArgumentationGraph_instance;
5255
5392
  }
5256
5393
  function AttackRestriction() {
5257
5394
  AttackRestriction_instance = this;
@@ -5266,11 +5403,12 @@
5266
5403
  function AttackRestriction_getInstance() {
5267
5404
  if (AttackRestriction_instance === null) {
5268
5405
  new AttackRestriction();
5269
- }return AttackRestriction_instance;
5406
+ }
5407
+ return AttackRestriction_instance;
5270
5408
  }
5271
5409
  function Bp() {
5272
5410
  Bp_instance = this;
5273
- this.theoryCode = trimIndent('\n modifyArgumentationGraph :-\n findall(([Rules, Top, [bp, Checked], G, I], [Z, P, Y, GG, II]), (\n context_check(argument([Rules, Top, [bp, Checked], G, I])),\n member(Y, Checked),\n context_check(argument([Z, P, Y, GG, II]))\n ), TemplateBpPairs),\n checkBpArguments(TemplateBpPairs).\n checkBpArguments([]).\n checkBpArguments(TemplateBpPairs) :-\n createBpArguments(TemplateBpPairs, BpPairs),\n createBpAttacks(BpPairs).\n createBpArguments([], []).\n createBpArguments([(Original, [Z, P, Y, B, I])|Others], [(Conflict, [Z, P, Y, B, I])|BpPairs]) :-\n Conflict = [[artificial|Z], artificial, [neg, burdmet(Y)], [], [[artificial], [artificial], []]],\n context_assert(argument(Conflict)),\n context_assert(support(Original, Conflict)),\n liftBpAttacks(Original, Conflict),\n createBpArguments(Others, BpPairs).\n liftBpAttacks(Template, BpArg) :-\n findall(_, (\n context_check(attack(T, A, Template, O)),\n context_assert(attack(T, A, BpArg, O))\n ), _).\n createBpAttacks(BpPairs) :-\n generateBpsEvaluationChain(BpPairs, OrderedBpPairs),\n evaluateBurdenedArgs(OrderedBpPairs).\n generateBpsEvaluationChain([], []).\n generateBpsEvaluationChain([BpPair|BpPairs], OrderedBpPairs) :-\n generateBpsEvaluationChain(BpPairs, TempOrderedBpPairs),\n insertBpPair(BpPair, TempOrderedBpPairs, OrderedBpPairs).\n insertBpPair(BpPair, [], [BpPair]).\n insertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(BpL, BurdenedL)|Return]) :-\n bp_grounded::argumentChain(BurdenedL, Burdened),\n insertBpPair((Bp, Burdened), Others, Return), !.\n insertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(Bp, Burdened)|[(BpL, BurdenedL)|Others]]).\n evaluateBurdenedArgs([]).\n evaluateBurdenedArgs([(Bp, Burdened)|Others]) :-\n context_active(X),\n grounded:::argumentLabelling,\n statusToAttack((Bp, Burdened), Attack),\n context_checkout(X),\n context_assert(Attack),\n evaluateBurdenedArgs(Others).\n statusToAttack((Bp, Burdened), attack(bprebut, Burdened, Bp, Bp)) :-\n context_check(in(Burdened)).\n statusToAttack((Bp, Burdened), attack(bprebut, Bp, Burdened, Burdened)) :-\n \\+ context_check(in(Burdened)).\n ');
5411
+ this.theoryCode = trimIndent('\n modifyArgumentationGraph :-\n findall(([Rules, Top, [bp(Checked)], G, I], [Z, P, [Y], GG, II]), (\n context_check(argument([Rules, Top, [bp(Checked)], G, I])),\n member(Y, [Checked]),\n context_check(argument([Z, P, [Y], GG, II]))\n ), TemplateBpPairs),\n checkBpArguments(TemplateBpPairs).\n checkBpArguments([]).\n checkBpArguments(TemplateBpPairs) :-\n createBpArguments(TemplateBpPairs, BpPairs),\n createBpAttacks(BpPairs).\n createBpArguments([], []).\n createBpArguments([(Original, [Z, P, Y, B, I])|Others], [(Conflict, [Z, P, Y, B, I])|BpPairs]) :-\n Conflict = [[artificial|Z], artificial, [-burdmet(Y)], [], [[artificial], [artificial], []]],\n context_assert(argument(Conflict)),\n context_assert(support(Original, Conflict)),\n liftBpAttacks(Original, Conflict),\n createBpArguments(Others, BpPairs).\n liftBpAttacks(Template, BpArg) :-\n findall(_, (\n context_check(attack(T, A, Template, O)),\n context_assert(attack(T, A, BpArg, O))\n ), _).\n createBpAttacks(BpPairs) :-\n generateBpsEvaluationChain(BpPairs, OrderedBpPairs),\n evaluateBurdenedArgs(OrderedBpPairs).\n generateBpsEvaluationChain([], []).\n generateBpsEvaluationChain([BpPair|BpPairs], OrderedBpPairs) :-\n generateBpsEvaluationChain(BpPairs, TempOrderedBpPairs),\n insertBpPair(BpPair, TempOrderedBpPairs, OrderedBpPairs).\n insertBpPair(BpPair, [], [BpPair]).\n insertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(BpL, BurdenedL)|Return]) :-\n bp_grounded::argumentChain(BurdenedL, Burdened),\n insertBpPair((Bp, Burdened), Others, Return), !.\n insertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(Bp, Burdened)|[(BpL, BurdenedL)|Others]]).\n evaluateBurdenedArgs([]).\n evaluateBurdenedArgs([(Bp, Burdened)|Others]) :-\n context_active(X),\n grounded:::argumentLabelling,\n statusToAttack((Bp, Burdened), Attack),\n context_checkout(X),\n context_assert(Attack),\n evaluateBurdenedArgs(Others).\n statusToAttack((Bp, Burdened), attack(bprebut, Burdened, Bp, Bp)) :-\n context_check(in(Burdened)).\n statusToAttack((Bp, Burdened), attack(bprebut, Bp, Burdened, Burdened)) :-\n \\+ context_check(in(Burdened)).\n ');
5274
5412
  }
5275
5413
  Bp.$metadata$ = {
5276
5414
  kind: Kind_OBJECT,
@@ -5281,7 +5419,8 @@
5281
5419
  function Bp_getInstance() {
5282
5420
  if (Bp_instance === null) {
5283
5421
  new Bp();
5284
- }return Bp_instance;
5422
+ }
5423
+ return Bp_instance;
5285
5424
  }
5286
5425
  function BpGrounded() {
5287
5426
  BpGrounded_instance = this;
@@ -5296,7 +5435,8 @@
5296
5435
  function BpGrounded_getInstance() {
5297
5436
  if (BpGrounded_instance === null) {
5298
5437
  new BpGrounded();
5299
- }return BpGrounded_instance;
5438
+ }
5439
+ return BpGrounded_instance;
5300
5440
  }
5301
5441
  function BpGroundedComplete() {
5302
5442
  BpGroundedComplete_instance = this;
@@ -5311,7 +5451,8 @@
5311
5451
  function BpGroundedComplete_getInstance() {
5312
5452
  if (BpGroundedComplete_instance === null) {
5313
5453
  new BpGroundedComplete();
5314
- }return BpGroundedComplete_instance;
5454
+ }
5455
+ return BpGroundedComplete_instance;
5315
5456
  }
5316
5457
  function BpGroundedPartial() {
5317
5458
  BpGroundedPartial_instance = this;
@@ -5326,7 +5467,8 @@
5326
5467
  function BpGroundedPartial_getInstance() {
5327
5468
  if (BpGroundedPartial_instance === null) {
5328
5469
  new BpGroundedPartial();
5329
- }return BpGroundedPartial_instance;
5470
+ }
5471
+ return BpGroundedPartial_instance;
5330
5472
  }
5331
5473
  function Complete() {
5332
5474
  Complete_instance = this;
@@ -5341,7 +5483,8 @@
5341
5483
  function Complete_getInstance() {
5342
5484
  if (Complete_instance === null) {
5343
5485
  new Complete();
5344
- }return Complete_instance;
5486
+ }
5487
+ return Complete_instance;
5345
5488
  }
5346
5489
  function Debug() {
5347
5490
  Debug_instance = this;
@@ -5356,7 +5499,8 @@
5356
5499
  function Debug_getInstance() {
5357
5500
  if (Debug_instance === null) {
5358
5501
  new Debug();
5359
- }return Debug_instance;
5502
+ }
5503
+ return Debug_instance;
5360
5504
  }
5361
5505
  function DefPreferences() {
5362
5506
  DefPreferences_instance = this;
@@ -5371,7 +5515,8 @@
5371
5515
  function DefPreferences_getInstance() {
5372
5516
  if (DefPreferences_instance === null) {
5373
5517
  new DefPreferences();
5374
- }return DefPreferences_instance;
5518
+ }
5519
+ return DefPreferences_instance;
5375
5520
  }
5376
5521
  function GenericDefPreferences() {
5377
5522
  GenericDefPreferences_instance = this;
@@ -5386,7 +5531,8 @@
5386
5531
  function GenericDefPreferences_getInstance() {
5387
5532
  if (GenericDefPreferences_instance === null) {
5388
5533
  new GenericDefPreferences();
5389
- }return GenericDefPreferences_instance;
5534
+ }
5535
+ return GenericDefPreferences_instance;
5390
5536
  }
5391
5537
  function Grounded() {
5392
5538
  Grounded_instance = this;
@@ -5401,7 +5547,8 @@
5401
5547
  function Grounded_getInstance() {
5402
5548
  if (Grounded_instance === null) {
5403
5549
  new Grounded();
5404
- }return Grounded_instance;
5550
+ }
5551
+ return Grounded_instance;
5405
5552
  }
5406
5553
  function GroundedOptimized() {
5407
5554
  GroundedOptimized_instance = this;
@@ -5416,7 +5563,8 @@
5416
5563
  function GroundedOptimized_getInstance() {
5417
5564
  if (GroundedOptimized_instance === null) {
5418
5565
  new GroundedOptimized();
5419
- }return GroundedOptimized_instance;
5566
+ }
5567
+ return GroundedOptimized_instance;
5420
5568
  }
5421
5569
  function Preferences() {
5422
5570
  Preferences_instance = this;
@@ -5431,7 +5579,8 @@
5431
5579
  function Preferences_getInstance() {
5432
5580
  if (Preferences_instance === null) {
5433
5581
  new Preferences();
5434
- }return Preferences_instance;
5582
+ }
5583
+ return Preferences_instance;
5435
5584
  }
5436
5585
  function QueryMode_0() {
5437
5586
  QueryMode_instance_0 = this;
@@ -5446,7 +5595,8 @@
5446
5595
  function QueryMode_getInstance_0() {
5447
5596
  if (QueryMode_instance_0 === null) {
5448
5597
  new QueryMode_0();
5449
- }return QueryMode_instance_0;
5598
+ }
5599
+ return QueryMode_instance_0;
5450
5600
  }
5451
5601
  function RuleTranslator() {
5452
5602
  RuleTranslator_instance = this;
@@ -5461,7 +5611,8 @@
5461
5611
  function RuleTranslator_getInstance() {
5462
5612
  if (RuleTranslator_instance === null) {
5463
5613
  new RuleTranslator();
5464
- }return RuleTranslator_instance;
5614
+ }
5615
+ return RuleTranslator_instance;
5465
5616
  }
5466
5617
  function StatementLabelling() {
5467
5618
  StatementLabelling_instance = this;
@@ -5476,7 +5627,8 @@
5476
5627
  function StatementLabelling_getInstance() {
5477
5628
  if (StatementLabelling_instance === null) {
5478
5629
  new StatementLabelling();
5479
- }return StatementLabelling_instance;
5630
+ }
5631
+ return StatementLabelling_instance;
5480
5632
  }
5481
5633
  function SuperiorityRelation() {
5482
5634
  SuperiorityRelation_instance = this;
@@ -5491,7 +5643,8 @@
5491
5643
  function SuperiorityRelation_getInstance() {
5492
5644
  if (SuperiorityRelation_instance === null) {
5493
5645
  new SuperiorityRelation();
5494
- }return SuperiorityRelation_instance;
5646
+ }
5647
+ return SuperiorityRelation_instance;
5495
5648
  }
5496
5649
  function Utils() {
5497
5650
  Utils_instance = this;
@@ -5506,7 +5659,8 @@
5506
5659
  function Utils_getInstance() {
5507
5660
  if (Utils_instance === null) {
5508
5661
  new Utils();
5509
- }return Utils_instance;
5662
+ }
5663
+ return Utils_instance;
5510
5664
  }
5511
5665
  function StructuredMode() {
5512
5666
  StructuredMode_instance = this;
@@ -5527,7 +5681,8 @@
5527
5681
  function StructuredMode_getInstance() {
5528
5682
  if (StructuredMode_instance === null) {
5529
5683
  new StructuredMode();
5530
- }return StructuredMode_instance;
5684
+ }
5685
+ return StructuredMode_instance;
5531
5686
  }
5532
5687
  function Debug_0() {
5533
5688
  Debug_instance_0 = this;
@@ -5548,7 +5703,8 @@
5548
5703
  function Debug_getInstance_0() {
5549
5704
  if (Debug_instance_0 === null) {
5550
5705
  new Debug_0();
5551
- }return Debug_instance_0;
5706
+ }
5707
+ return Debug_instance_0;
5552
5708
  }
5553
5709
  function SuperiorityRelation_0() {
5554
5710
  SuperiorityRelation_instance_0 = this;
@@ -5569,7 +5725,8 @@
5569
5725
  function SuperiorityRelation_getInstance_0() {
5570
5726
  if (SuperiorityRelation_instance_0 === null) {
5571
5727
  new SuperiorityRelation_0();
5572
- }return SuperiorityRelation_instance_0;
5728
+ }
5729
+ return SuperiorityRelation_instance_0;
5573
5730
  }
5574
5731
  function Utils_0() {
5575
5732
  Utils_instance_0 = this;
@@ -5590,7 +5747,8 @@
5590
5747
  function Utils_getInstance_0() {
5591
5748
  if (Utils_instance_0 === null) {
5592
5749
  new Utils_0();
5593
- }return Utils_instance_0;
5750
+ }
5751
+ return Utils_instance_0;
5594
5752
  }
5595
5753
  Object.defineProperty(Arg2pSolver, 'Companion', {
5596
5754
  get: Arg2pSolver$Companion_getInstance
@@ -5907,168 +6065,98 @@
5907
6065
  });
5908
6066
  Arg2pSolver$Companion$of$ObjectLiteral.prototype.to2pLibraries = Arg2pSolver.prototype.to2pLibraries;
5909
6067
  Arg2pSolver$Companion$of$ObjectLiteral.prototype.operators = Arg2pSolver.prototype.operators;
5910
- PrologWithArgumentation.prototype.call1 = PrologScopeWithTheories.prototype.call1;
5911
- Object.defineProperty(PrologWithArgumentation.prototype, 'A', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'A'));
5912
- Object.defineProperty(PrologWithArgumentation.prototype, 'B', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'B'));
5913
- Object.defineProperty(PrologWithArgumentation.prototype, 'C', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'C'));
5914
- Object.defineProperty(PrologWithArgumentation.prototype, 'D', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'D'));
5915
- Object.defineProperty(PrologWithArgumentation.prototype, 'E', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'E'));
5916
- Object.defineProperty(PrologWithArgumentation.prototype, 'F', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'F'));
5917
- Object.defineProperty(PrologWithArgumentation.prototype, 'G', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'G'));
5918
- Object.defineProperty(PrologWithArgumentation.prototype, 'H', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'H'));
5919
- Object.defineProperty(PrologWithArgumentation.prototype, 'I', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'I'));
5920
- Object.defineProperty(PrologWithArgumentation.prototype, 'J', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'J'));
5921
- Object.defineProperty(PrologWithArgumentation.prototype, 'K', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'K'));
5922
- Object.defineProperty(PrologWithArgumentation.prototype, 'L', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'L'));
5923
- Object.defineProperty(PrologWithArgumentation.prototype, 'M', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'M'));
5924
- Object.defineProperty(PrologWithArgumentation.prototype, 'N', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'N'));
5925
- Object.defineProperty(PrologWithArgumentation.prototype, 'O', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'O'));
5926
- Object.defineProperty(PrologWithArgumentation.prototype, 'P', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'P'));
5927
- Object.defineProperty(PrologWithArgumentation.prototype, 'Q', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'Q'));
5928
- Object.defineProperty(PrologWithArgumentation.prototype, 'R', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'R'));
5929
- Object.defineProperty(PrologWithArgumentation.prototype, 'S', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'S'));
5930
- Object.defineProperty(PrologWithArgumentation.prototype, 'T', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'T'));
5931
- Object.defineProperty(PrologWithArgumentation.prototype, 'U', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'U'));
5932
- Object.defineProperty(PrologWithArgumentation.prototype, 'V', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'V'));
5933
- Object.defineProperty(PrologWithArgumentation.prototype, 'W', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'W'));
5934
- Object.defineProperty(PrologWithArgumentation.prototype, 'X', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'X'));
5935
- Object.defineProperty(PrologWithArgumentation.prototype, 'Y', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'Y'));
5936
- Object.defineProperty(PrologWithArgumentation.prototype, 'Z', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'Z'));
5937
- Object.defineProperty(PrologWithArgumentation.prototype, '_', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, '_'));
5938
- Object.defineProperty(PrologWithArgumentation.prototype, 'at_end_of_stream', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'at_end_of_stream'));
5939
- Object.defineProperty(PrologWithArgumentation.prototype, 'cut', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'cut'));
5940
- Object.defineProperty(PrologWithArgumentation.prototype, 'halt', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'halt'));
5941
- Object.defineProperty(PrologWithArgumentation.prototype, 'nl', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'nl'));
5942
- Object.defineProperty(PrologWithArgumentation.prototype, 'repeat', Object.getOwnPropertyDescriptor(PrologScopeWithTheories.prototype, 'repeat'));
5943
- PrologWithArgumentation.prototype.abolish1 = PrologScopeWithTheories.prototype.abolish1;
5944
- PrologWithArgumentation.prototype.append3 = PrologScopeWithTheories.prototype.append3;
5945
- PrologWithArgumentation.prototype.arg3 = PrologScopeWithTheories.prototype.arg3;
5946
- PrologWithArgumentation.prototype.assert1 = PrologScopeWithTheories.prototype.assert1;
5947
- PrologWithArgumentation.prototype.asserta1 = PrologScopeWithTheories.prototype.asserta1;
5948
- PrologWithArgumentation.prototype.assertz1 = PrologScopeWithTheories.prototype.assertz1;
5949
- PrologWithArgumentation.prototype.at_end_of_stream1 = PrologScopeWithTheories.prototype.at_end_of_stream1;
5950
- PrologWithArgumentation.prototype.atom1 = PrologScopeWithTheories.prototype.atom1;
5951
- PrologWithArgumentation.prototype.atom_chars2 = PrologScopeWithTheories.prototype.atom_chars2;
5952
- PrologWithArgumentation.prototype.atom_codes2 = PrologScopeWithTheories.prototype.atom_codes2;
5953
- PrologWithArgumentation.prototype.atom_concat3 = PrologScopeWithTheories.prototype.atom_concat3;
5954
- PrologWithArgumentation.prototype.atom_length2 = PrologScopeWithTheories.prototype.atom_length2;
5955
- PrologWithArgumentation.prototype.atomic1 = PrologScopeWithTheories.prototype.atomic1;
5956
- PrologWithArgumentation.prototype.bagof3 = PrologScopeWithTheories.prototype.bagof3;
5957
- PrologWithArgumentation.prototype.between3 = PrologScopeWithTheories.prototype.between3;
5958
- PrologWithArgumentation.prototype.blockOf = PrologScopeWithTheories.prototype.blockOf;
5959
- PrologWithArgumentation.prototype.callable1 = PrologScopeWithTheories.prototype.callable1;
5960
- PrologWithArgumentation.prototype.catch3 = PrologScopeWithTheories.prototype.catch3;
5961
- PrologWithArgumentation.prototype.char_code2 = PrologScopeWithTheories.prototype.char_code2;
5962
- PrologWithArgumentation.prototype.clause_fzbqwd$ = PrologScopeWithTheories.prototype.clause_fzbqwd$;
5963
- PrologWithArgumentation.prototype.clause2 = PrologScopeWithTheories.prototype.clause2;
5964
- PrologWithArgumentation.prototype.compound1 = PrologScopeWithTheories.prototype.compound1;
5965
- PrologWithArgumentation.prototype.consOfAny = PrologScopeWithTheories.prototype.consOfAny;
5966
- PrologWithArgumentation.prototype.consult1 = PrologScopeWithTheories.prototype.consult1;
5967
- PrologWithArgumentation.prototype.substitutionContains = PrologScopeWithTheories.prototype.substitutionContains;
5968
- PrologWithArgumentation.prototype.copy_term2 = PrologScopeWithTheories.prototype.copy_term2;
5969
- PrologWithArgumentation.prototype.current_flag2 = PrologScopeWithTheories.prototype.current_flag2;
5970
- PrologWithArgumentation.prototype.current_op3 = PrologScopeWithTheories.prototype.current_op3;
5971
- PrologWithArgumentation.prototype.current_prolog_flag2 = PrologScopeWithTheories.prototype.current_prolog_flag2;
5972
- PrologWithArgumentation.prototype.directive = PrologScopeWithTheories.prototype.directive;
5973
- PrologWithArgumentation.prototype.directiveOfAny = PrologScopeWithTheories.prototype.directiveOfAny;
5974
- PrologWithArgumentation.prototype.dynamic1 = PrologScopeWithTheories.prototype.dynamic1;
5975
- PrologWithArgumentation.prototype.fact = PrologScopeWithTheories.prototype.fact;
5976
- PrologWithArgumentation.prototype.factOfAny = PrologScopeWithTheories.prototype.factOfAny;
5977
- PrologWithArgumentation.prototype.findall3 = PrologScopeWithTheories.prototype.findall3;
5978
- PrologWithArgumentation.prototype.float1 = PrologScopeWithTheories.prototype.float1;
5979
- PrologWithArgumentation.prototype.functor3 = PrologScopeWithTheories.prototype.functor3;
5980
- PrologWithArgumentation.prototype.substitutionGet = PrologScopeWithTheories.prototype.substitutionGet;
5981
- PrologWithArgumentation.prototype.ground1 = PrologScopeWithTheories.prototype.ground1;
5982
- PrologWithArgumentation.prototype.include1 = PrologScopeWithTheories.prototype.include1;
5983
- PrologWithArgumentation.prototype.initialization1 = PrologScopeWithTheories.prototype.initialization1;
5984
- PrologWithArgumentation.prototype.integer1 = PrologScopeWithTheories.prototype.integer1;
5985
- PrologWithArgumentation.prototype.list$default = PrologScopeWithTheories.prototype.list$default;
5986
- PrologWithArgumentation.prototype.listOfAny = PrologScopeWithTheories.prototype.listOfAny;
5987
- PrologWithArgumentation.prototype.load1 = PrologScopeWithTheories.prototype.load1;
5988
- PrologWithArgumentation.prototype.matchAny$default = PrologScopeWithTheories.prototype.matchAny$default;
5989
- PrologWithArgumentation.prototype.match = PrologScopeWithTheories.prototype.match;
5990
- PrologWithArgumentation.prototype.matchWithOccurCheck = PrologScopeWithTheories.prototype.matchWithOccurCheck;
5991
- PrologWithArgumentation.prototype.member2 = PrologScopeWithTheories.prototype.member2;
5992
- PrologWithArgumentation.prototype.merge = PrologScopeWithTheories.prototype.merge;
5993
- PrologWithArgumentation.prototype.mguAny$default = PrologScopeWithTheories.prototype.mguAny$default;
5994
- PrologWithArgumentation.prototype.mgu = PrologScopeWithTheories.prototype.mgu;
5995
- PrologWithArgumentation.prototype.naf1 = PrologScopeWithTheories.prototype.naf1;
5996
- PrologWithArgumentation.prototype.natural = PrologScopeWithTheories.prototype.natural;
5997
- PrologWithArgumentation.prototype.nonvar1 = PrologScopeWithTheories.prototype.nonvar1;
5998
- PrologWithArgumentation.prototype.not1 = PrologScopeWithTheories.prototype.not1;
5999
- PrologWithArgumentation.prototype.number1 = PrologScopeWithTheories.prototype.number1;
6000
- PrologWithArgumentation.prototype.number_chars2 = PrologScopeWithTheories.prototype.number_chars2;
6001
- PrologWithArgumentation.prototype.number_codes2 = PrologScopeWithTheories.prototype.number_codes2;
6002
- PrologWithArgumentation.prototype.op3 = PrologScopeWithTheories.prototype.op3;
6003
- PrologWithArgumentation.prototype.retract1 = PrologScopeWithTheories.prototype.retract1;
6004
- PrologWithArgumentation.prototype.retractall1 = PrologScopeWithTheories.prototype.retractall1;
6005
- PrologWithArgumentation.prototype.rule = PrologScopeWithTheories.prototype.rule;
6006
- PrologWithArgumentation.prototype.scope = PrologScopeWithTheories.prototype.scope;
6007
- PrologWithArgumentation.prototype.set_flag2 = PrologScopeWithTheories.prototype.set_flag2;
6008
- PrologWithArgumentation.prototype.set_prolog_flag2 = PrologScopeWithTheories.prototype.set_prolog_flag2;
6009
- PrologWithArgumentation.prototype.setof3 = PrologScopeWithTheories.prototype.setof3;
6010
- PrologWithArgumentation.prototype.solve1 = PrologScopeWithTheories.prototype.solve1;
6011
- PrologWithArgumentation.prototype.static1 = PrologScopeWithTheories.prototype.static1;
6012
- PrologWithArgumentation.prototype.structOfAny = PrologScopeWithTheories.prototype.structOfAny;
6013
- PrologWithArgumentation.prototype.sub_atom5 = PrologScopeWithTheories.prototype.sub_atom5;
6014
- PrologWithArgumentation.prototype.theory = PrologScopeWithTheories.prototype.theory;
6015
- PrologWithArgumentation.prototype.theoryOf = PrologScopeWithTheories.prototype.theoryOf;
6016
- PrologWithArgumentation.prototype.theoryOfIterable = PrologScopeWithTheories.prototype.theoryOfIterable;
6017
- PrologWithArgumentation.prototype.theoryOfSequence = PrologScopeWithTheories.prototype.theoryOfSequence;
6018
- PrologWithArgumentation.prototype.throw1 = PrologScopeWithTheories.prototype.throw1;
6019
- PrologWithArgumentation.prototype.tupleOfAny = PrologScopeWithTheories.prototype.tupleOfAny;
6020
- PrologWithArgumentation.prototype.unifyAny$default = PrologScopeWithTheories.prototype.unifyAny$default;
6021
- PrologWithArgumentation.prototype.unify = PrologScopeWithTheories.prototype.unify;
6022
- PrologWithArgumentation.prototype.unifyWithOccurCheck = PrologScopeWithTheories.prototype.unifyWithOccurCheck;
6023
- PrologWithArgumentation.prototype.var1 = PrologScopeWithTheories.prototype.var1;
6024
- PrologWithArgumentation.prototype.write1 = PrologScopeWithTheories.prototype.write1;
6025
- PrologWithArgumentation.prototype.anyAnd = PrologScopeWithTheories.prototype.anyAnd;
6026
- PrologWithArgumentation.prototype.arithEq2 = PrologScopeWithTheories.prototype.arithEq2;
6027
- PrologWithArgumentation.prototype.arithNeq2 = PrologScopeWithTheories.prototype.arithNeq2;
6028
- PrologWithArgumentation.prototype.substitutionContainsKey = PrologScopeWithTheories.prototype.substitutionContainsKey;
6029
- PrologWithArgumentation.prototype.substitutionContainsValue = PrologScopeWithTheories.prototype.substitutionContainsValue;
6030
- PrologWithArgumentation.prototype.anyDiv = PrologScopeWithTheories.prototype.anyDiv;
6031
- PrologWithArgumentation.prototype.eq2 = PrologScopeWithTheories.prototype.eq2;
6032
- PrologWithArgumentation.prototype.anyEqualsTo = PrologScopeWithTheories.prototype.anyEqualsTo;
6033
- PrologWithArgumentation.prototype.anyGreaterThan = PrologScopeWithTheories.prototype.anyGreaterThan;
6034
- PrologWithArgumentation.prototype.anyGreaterThanOrEqualsTo = PrologScopeWithTheories.prototype.anyGreaterThanOrEqualsTo;
6035
- PrologWithArgumentation.prototype.id2 = PrologScopeWithTheories.prototype.id2;
6036
- PrologWithArgumentation.prototype.anyIf = PrologScopeWithTheories.prototype.anyIf;
6037
- PrologWithArgumentation.prototype.anyIfVararg = PrologScopeWithTheories.prototype.anyIfVararg;
6038
- PrologWithArgumentation.prototype.anyImpliedBy = PrologScopeWithTheories.prototype.anyImpliedBy;
6039
- PrologWithArgumentation.prototype.anyImpliedByVararg = PrologScopeWithTheories.prototype.anyImpliedByVararg;
6040
- PrologWithArgumentation.prototype.anyIntDiv = PrologScopeWithTheories.prototype.anyIntDiv;
6041
- PrologWithArgumentation.prototype.stringInvoke = PrologScopeWithTheories.prototype.stringInvoke;
6042
- PrologWithArgumentation.prototype.anyIs = PrologScopeWithTheories.prototype.anyIs;
6043
- PrologWithArgumentation.prototype.anyLowerThan = PrologScopeWithTheories.prototype.anyLowerThan;
6044
- PrologWithArgumentation.prototype.anyLowerThanOrEqualsTo = PrologScopeWithTheories.prototype.anyLowerThanOrEqualsTo;
6045
- PrologWithArgumentation.prototype.anyMatches = PrologScopeWithTheories.prototype.anyMatches;
6046
- PrologWithArgumentation.prototype.anyMguWith = PrologScopeWithTheories.prototype.anyMguWith;
6047
- PrologWithArgumentation.prototype.anyMinus = PrologScopeWithTheories.prototype.anyMinus;
6048
- PrologWithArgumentation.prototype.neq2 = PrologScopeWithTheories.prototype.neq2;
6049
- PrologWithArgumentation.prototype.nid2 = PrologScopeWithTheories.prototype.nid2;
6050
- PrologWithArgumentation.prototype.anyNonGreaterThan = PrologScopeWithTheories.prototype.anyNonGreaterThan;
6051
- PrologWithArgumentation.prototype.anyNonLowerThan = PrologScopeWithTheories.prototype.anyNonLowerThan;
6052
- PrologWithArgumentation.prototype.anyNotEqualsTo = PrologScopeWithTheories.prototype.anyNotEqualsTo;
6053
- PrologWithArgumentation.prototype.anyOr = PrologScopeWithTheories.prototype.anyOr;
6054
- PrologWithArgumentation.prototype.anyPlus = PrologScopeWithTheories.prototype.anyPlus;
6055
- PrologWithArgumentation.prototype.anyPow = PrologScopeWithTheories.prototype.anyPow;
6056
- PrologWithArgumentation.prototype.anyRem = PrologScopeWithTheories.prototype.anyRem;
6057
- PrologWithArgumentation.prototype.anySup = PrologScopeWithTheories.prototype.anySup;
6058
- PrologWithArgumentation.prototype.anyThen = PrologScopeWithTheories.prototype.anyThen;
6059
- PrologWithArgumentation.prototype.anyTimes = PrologScopeWithTheories.prototype.anyTimes;
6060
- PrologWithArgumentation.prototype.varTo = PrologScopeWithTheories.prototype.varTo;
6061
- PrologWithArgumentation.prototype.stringTo = PrologScopeWithTheories.prototype.stringTo;
6062
- PrologWithArgumentation.prototype.anyUnifyWith = PrologScopeWithTheories.prototype.anyUnifyWith;
6063
- PrologWithArgumentation.prototype.univ2 = PrologScopeWithTheories.prototype.univ2;
6064
- PrologWithArgumentation.prototype.list = PrologScopeWithTheories.prototype.list;
6065
- PrologWithArgumentation.prototype.listFrom = PrologScopeWithTheories.prototype.listFrom;
6066
- PrologWithArgumentation.prototype.listFromIterable = PrologScopeWithTheories.prototype.listFromIterable;
6067
- PrologWithArgumentation.prototype.listFromSequence = PrologScopeWithTheories.prototype.listFromSequence;
6068
- PrologWithArgumentation.prototype.matchAny = PrologScopeWithTheories.prototype.matchAny;
6069
- PrologWithArgumentation.prototype.mguAny = PrologScopeWithTheories.prototype.mguAny;
6070
- PrologWithArgumentation.prototype.mguWithOccurCheck = PrologScopeWithTheories.prototype.mguWithOccurCheck;
6071
- PrologWithArgumentation.prototype.unifyAny = PrologScopeWithTheories.prototype.unifyAny;
6068
+ PrologWithArgumentation.prototype.call1 = LogicProgrammingScopeWithTheories.prototype.call1;
6069
+ Object.defineProperty(PrologWithArgumentation.prototype, '_', Object.getOwnPropertyDescriptor(LogicProgrammingScopeWithTheories.prototype, '_'));
6070
+ Object.defineProperty(PrologWithArgumentation.prototype, 'at_end_of_stream', Object.getOwnPropertyDescriptor(LogicProgrammingScopeWithTheories.prototype, 'at_end_of_stream'));
6071
+ Object.defineProperty(PrologWithArgumentation.prototype, 'cut', Object.getOwnPropertyDescriptor(LogicProgrammingScopeWithTheories.prototype, 'cut'));
6072
+ Object.defineProperty(PrologWithArgumentation.prototype, 'halt', Object.getOwnPropertyDescriptor(LogicProgrammingScopeWithTheories.prototype, 'halt'));
6073
+ Object.defineProperty(PrologWithArgumentation.prototype, 'nl', Object.getOwnPropertyDescriptor(LogicProgrammingScopeWithTheories.prototype, 'nl'));
6074
+ Object.defineProperty(PrologWithArgumentation.prototype, 'repeat', Object.getOwnPropertyDescriptor(LogicProgrammingScopeWithTheories.prototype, 'repeat'));
6075
+ PrologWithArgumentation.prototype.abolish1 = LogicProgrammingScopeWithTheories.prototype.abolish1;
6076
+ PrologWithArgumentation.prototype.append3 = LogicProgrammingScopeWithTheories.prototype.append3;
6077
+ PrologWithArgumentation.prototype.arg3 = LogicProgrammingScopeWithTheories.prototype.arg3;
6078
+ PrologWithArgumentation.prototype.assert1 = LogicProgrammingScopeWithTheories.prototype.assert1;
6079
+ PrologWithArgumentation.prototype.asserta1 = LogicProgrammingScopeWithTheories.prototype.asserta1;
6080
+ PrologWithArgumentation.prototype.assertz1 = LogicProgrammingScopeWithTheories.prototype.assertz1;
6081
+ PrologWithArgumentation.prototype.at_end_of_stream1 = LogicProgrammingScopeWithTheories.prototype.at_end_of_stream1;
6082
+ PrologWithArgumentation.prototype.atom1 = LogicProgrammingScopeWithTheories.prototype.atom1;
6083
+ PrologWithArgumentation.prototype.atom_chars2 = LogicProgrammingScopeWithTheories.prototype.atom_chars2;
6084
+ PrologWithArgumentation.prototype.atom_codes2 = LogicProgrammingScopeWithTheories.prototype.atom_codes2;
6085
+ PrologWithArgumentation.prototype.atom_concat3 = LogicProgrammingScopeWithTheories.prototype.atom_concat3;
6086
+ PrologWithArgumentation.prototype.atom_length2 = LogicProgrammingScopeWithTheories.prototype.atom_length2;
6087
+ PrologWithArgumentation.prototype.atomic1 = LogicProgrammingScopeWithTheories.prototype.atomic1;
6088
+ PrologWithArgumentation.prototype.bagof3 = LogicProgrammingScopeWithTheories.prototype.bagof3;
6089
+ PrologWithArgumentation.prototype.between3 = LogicProgrammingScopeWithTheories.prototype.between3;
6090
+ PrologWithArgumentation.prototype.callable1 = LogicProgrammingScopeWithTheories.prototype.callable1;
6091
+ PrologWithArgumentation.prototype.catch3 = LogicProgrammingScopeWithTheories.prototype.catch3;
6092
+ PrologWithArgumentation.prototype.char_code2 = LogicProgrammingScopeWithTheories.prototype.char_code2;
6093
+ PrologWithArgumentation.prototype.clause2 = LogicProgrammingScopeWithTheories.prototype.clause2;
6094
+ PrologWithArgumentation.prototype.compound1 = LogicProgrammingScopeWithTheories.prototype.compound1;
6095
+ PrologWithArgumentation.prototype.consult1 = LogicProgrammingScopeWithTheories.prototype.consult1;
6096
+ PrologWithArgumentation.prototype.copy_term2 = LogicProgrammingScopeWithTheories.prototype.copy_term2;
6097
+ PrologWithArgumentation.prototype.current_flag2 = LogicProgrammingScopeWithTheories.prototype.current_flag2;
6098
+ PrologWithArgumentation.prototype.current_op3 = LogicProgrammingScopeWithTheories.prototype.current_op3;
6099
+ PrologWithArgumentation.prototype.current_prolog_flag2 = LogicProgrammingScopeWithTheories.prototype.current_prolog_flag2;
6100
+ PrologWithArgumentation.prototype.dynamic1 = LogicProgrammingScopeWithTheories.prototype.dynamic1;
6101
+ PrologWithArgumentation.prototype.findall3 = LogicProgrammingScopeWithTheories.prototype.findall3;
6102
+ PrologWithArgumentation.prototype.float1 = LogicProgrammingScopeWithTheories.prototype.float1;
6103
+ PrologWithArgumentation.prototype.functor3 = LogicProgrammingScopeWithTheories.prototype.functor3;
6104
+ PrologWithArgumentation.prototype.ground1 = LogicProgrammingScopeWithTheories.prototype.ground1;
6105
+ PrologWithArgumentation.prototype.include1 = LogicProgrammingScopeWithTheories.prototype.include1;
6106
+ PrologWithArgumentation.prototype.initialization1 = LogicProgrammingScopeWithTheories.prototype.initialization1;
6107
+ PrologWithArgumentation.prototype.integer1 = LogicProgrammingScopeWithTheories.prototype.integer1;
6108
+ PrologWithArgumentation.prototype.load1 = LogicProgrammingScopeWithTheories.prototype.load1;
6109
+ PrologWithArgumentation.prototype.matchAny$default = LogicProgrammingScopeWithTheories.prototype.matchAny$default;
6110
+ PrologWithArgumentation.prototype.match = LogicProgrammingScopeWithTheories.prototype.match;
6111
+ PrologWithArgumentation.prototype.matchWithOccurCheck = LogicProgrammingScopeWithTheories.prototype.matchWithOccurCheck;
6112
+ PrologWithArgumentation.prototype.member2 = LogicProgrammingScopeWithTheories.prototype.member2;
6113
+ PrologWithArgumentation.prototype.merge = LogicProgrammingScopeWithTheories.prototype.merge;
6114
+ PrologWithArgumentation.prototype.mguAny$default = LogicProgrammingScopeWithTheories.prototype.mguAny$default;
6115
+ PrologWithArgumentation.prototype.mgu = LogicProgrammingScopeWithTheories.prototype.mgu;
6116
+ PrologWithArgumentation.prototype.naf1 = LogicProgrammingScopeWithTheories.prototype.naf1;
6117
+ PrologWithArgumentation.prototype.natural = LogicProgrammingScopeWithTheories.prototype.natural;
6118
+ PrologWithArgumentation.prototype.nonvar1 = LogicProgrammingScopeWithTheories.prototype.nonvar1;
6119
+ PrologWithArgumentation.prototype.not1 = LogicProgrammingScopeWithTheories.prototype.not1;
6120
+ PrologWithArgumentation.prototype.number1 = LogicProgrammingScopeWithTheories.prototype.number1;
6121
+ PrologWithArgumentation.prototype.number_chars2 = LogicProgrammingScopeWithTheories.prototype.number_chars2;
6122
+ PrologWithArgumentation.prototype.number_codes2 = LogicProgrammingScopeWithTheories.prototype.number_codes2;
6123
+ PrologWithArgumentation.prototype.op3 = LogicProgrammingScopeWithTheories.prototype.op3;
6124
+ PrologWithArgumentation.prototype.retract1 = LogicProgrammingScopeWithTheories.prototype.retract1;
6125
+ PrologWithArgumentation.prototype.retractall1 = LogicProgrammingScopeWithTheories.prototype.retractall1;
6126
+ PrologWithArgumentation.prototype.set_flag2 = LogicProgrammingScopeWithTheories.prototype.set_flag2;
6127
+ PrologWithArgumentation.prototype.set_prolog_flag2 = LogicProgrammingScopeWithTheories.prototype.set_prolog_flag2;
6128
+ PrologWithArgumentation.prototype.setof3 = LogicProgrammingScopeWithTheories.prototype.setof3;
6129
+ PrologWithArgumentation.prototype.solve1 = LogicProgrammingScopeWithTheories.prototype.solve1;
6130
+ PrologWithArgumentation.prototype.static1 = LogicProgrammingScopeWithTheories.prototype.static1;
6131
+ PrologWithArgumentation.prototype.sub_atom5 = LogicProgrammingScopeWithTheories.prototype.sub_atom5;
6132
+ PrologWithArgumentation.prototype.theory = LogicProgrammingScopeWithTheories.prototype.theory;
6133
+ PrologWithArgumentation.prototype.theoryOf = LogicProgrammingScopeWithTheories.prototype.theoryOf;
6134
+ PrologWithArgumentation.prototype.theoryOfIterable = LogicProgrammingScopeWithTheories.prototype.theoryOfIterable;
6135
+ PrologWithArgumentation.prototype.theoryOfSequence = LogicProgrammingScopeWithTheories.prototype.theoryOfSequence;
6136
+ PrologWithArgumentation.prototype.throw1 = LogicProgrammingScopeWithTheories.prototype.throw1;
6137
+ PrologWithArgumentation.prototype.unifyAny$default = LogicProgrammingScopeWithTheories.prototype.unifyAny$default;
6138
+ PrologWithArgumentation.prototype.unify = LogicProgrammingScopeWithTheories.prototype.unify;
6139
+ PrologWithArgumentation.prototype.unifyWithOccurCheck = LogicProgrammingScopeWithTheories.prototype.unifyWithOccurCheck;
6140
+ PrologWithArgumentation.prototype.var1 = LogicProgrammingScopeWithTheories.prototype.var1;
6141
+ PrologWithArgumentation.prototype.write1 = LogicProgrammingScopeWithTheories.prototype.write1;
6142
+ PrologWithArgumentation.prototype.arithEq2 = LogicProgrammingScopeWithTheories.prototype.arithEq2;
6143
+ PrologWithArgumentation.prototype.arithNeq2 = LogicProgrammingScopeWithTheories.prototype.arithNeq2;
6144
+ PrologWithArgumentation.prototype.eq2 = LogicProgrammingScopeWithTheories.prototype.eq2;
6145
+ PrologWithArgumentation.prototype.id2 = LogicProgrammingScopeWithTheories.prototype.id2;
6146
+ PrologWithArgumentation.prototype.anyMatches = LogicProgrammingScopeWithTheories.prototype.anyMatches;
6147
+ PrologWithArgumentation.prototype.anyMguWith = LogicProgrammingScopeWithTheories.prototype.anyMguWith;
6148
+ PrologWithArgumentation.prototype.neq2 = LogicProgrammingScopeWithTheories.prototype.neq2;
6149
+ PrologWithArgumentation.prototype.nid2 = LogicProgrammingScopeWithTheories.prototype.nid2;
6150
+ PrologWithArgumentation.prototype.anyUnifyWith = LogicProgrammingScopeWithTheories.prototype.anyUnifyWith;
6151
+ PrologWithArgumentation.prototype.univ2 = LogicProgrammingScopeWithTheories.prototype.univ2;
6152
+ PrologWithArgumentation.prototype.list = LogicProgrammingScopeWithTheories.prototype.list;
6153
+ PrologWithArgumentation.prototype.listFrom = LogicProgrammingScopeWithTheories.prototype.listFrom;
6154
+ PrologWithArgumentation.prototype.listFromIterable = LogicProgrammingScopeWithTheories.prototype.listFromIterable;
6155
+ PrologWithArgumentation.prototype.listFromSequence = LogicProgrammingScopeWithTheories.prototype.listFromSequence;
6156
+ PrologWithArgumentation.prototype.matchAny = LogicProgrammingScopeWithTheories.prototype.matchAny;
6157
+ PrologWithArgumentation.prototype.mguAny = LogicProgrammingScopeWithTheories.prototype.mguAny;
6158
+ PrologWithArgumentation.prototype.mguWithOccurCheck = LogicProgrammingScopeWithTheories.prototype.mguWithOccurCheck;
6159
+ PrologWithArgumentation.prototype.unifyAny = LogicProgrammingScopeWithTheories.prototype.unifyAny;
6072
6160
  PrologWithArgumentationImpl.prototype.call_k9kufj$ = PrologWithArgumentation.prototype.call_k9kufj$;
6073
6161
  PrologWithArgumentationImpl.prototype.matchAny$default = PrologWithArgumentation.prototype.matchAny$default;
6074
6162
  PrologWithArgumentationImpl.prototype.mguAny$default = PrologWithArgumentation.prototype.mguAny$default;
@@ -6082,8 +6170,8 @@
6082
6170
  PrologWithArgumentationImpl.prototype.anyUnifyWith = PrologWithArgumentation.prototype.anyUnifyWith;
6083
6171
  PrologWithArgumentationImpl.prototype.list = PrologWithArgumentation.prototype.list;
6084
6172
  PrologWithArgumentationImpl.prototype.listFromIterable = PrologWithArgumentation.prototype.listFromIterable;
6085
- PrologWithArgumentationImpl.prototype.listFromSequence = PrologWithArgumentation.prototype.listFromSequence;
6086
6173
  PrologWithArgumentationImpl.prototype.listFrom = PrologWithArgumentation.prototype.listFrom;
6174
+ PrologWithArgumentationImpl.prototype.listFromSequence = PrologWithArgumentation.prototype.listFromSequence;
6087
6175
  PrologWithArgumentationImpl.prototype.matchAny = PrologWithArgumentation.prototype.matchAny;
6088
6176
  PrologWithArgumentationImpl.prototype.mguWithOccurCheck = PrologWithArgumentation.prototype.mguWithOccurCheck;
6089
6177
  PrologWithArgumentationImpl.prototype.mguAny = PrologWithArgumentation.prototype.mguAny;