@tuprolog/arg2p 0.11.2 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/arg2p-core.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './2p-solve.js', './2p-core.js', './2p-parser-core.js', './2p-solve-classic.js', './2p-theory.js', './2p-parser-theory.js', './2p-dsl-solve.js', './2p-dsl-core.js', './2p-dsl-unify.js', './2p-unify.js', './2p-dsl-theory.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './2p-solve.js', './2p-solve-classic.js', './2p-theory.js', './2p-parser-theory.js', './2p-dsl-solve.js', './2p-dsl-core.js', './2p-core.js', './2p-dsl-unify.js', './2p-unify.js', './2p-dsl-theory.js', './2p-parser-core.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./2p-solve.js'), require('./2p-core.js'), require('./2p-parser-core.js'), require('./2p-solve-classic.js'), require('./2p-theory.js'), require('./2p-parser-theory.js'), require('./2p-dsl-solve.js'), require('./2p-dsl-core.js'), require('./2p-dsl-unify.js'), require('./2p-unify.js'), require('./2p-dsl-theory.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./2p-solve.js'), require('./2p-solve-classic.js'), require('./2p-theory.js'), require('./2p-parser-theory.js'), require('./2p-dsl-solve.js'), require('./2p-dsl-core.js'), require('./2p-core.js'), require('./2p-dsl-unify.js'), require('./2p-unify.js'), require('./2p-dsl-theory.js'), require('./2p-parser-core.js'));
6
6
  else {
7
7
  if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
8
  throw new Error("Error loading module 'arg2p-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'arg2p-core'.");
@@ -10,12 +10,6 @@
10
10
  if (typeof globalThis['2p-solve'] === 'undefined') {
11
11
  throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to 'arg2p-core'.");
12
12
  }
13
- if (typeof globalThis['2p-core'] === 'undefined') {
14
- throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to 'arg2p-core'.");
15
- }
16
- if (typeof globalThis['2p-parser-core'] === 'undefined') {
17
- throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-parser-core' was not found. Please, check whether '2p-parser-core' is loaded prior to 'arg2p-core'.");
18
- }
19
13
  if (typeof globalThis['2p-solve-classic'] === 'undefined') {
20
14
  throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-solve-classic' was not found. Please, check whether '2p-solve-classic' is loaded prior to 'arg2p-core'.");
21
15
  }
@@ -31,6 +25,9 @@
31
25
  if (typeof globalThis['2p-dsl-core'] === 'undefined') {
32
26
  throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-dsl-core' was not found. Please, check whether '2p-dsl-core' is loaded prior to 'arg2p-core'.");
33
27
  }
28
+ if (typeof globalThis['2p-core'] === 'undefined') {
29
+ throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to 'arg2p-core'.");
30
+ }
34
31
  if (typeof globalThis['2p-dsl-unify'] === 'undefined') {
35
32
  throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-dsl-unify' was not found. Please, check whether '2p-dsl-unify' is loaded prior to 'arg2p-core'.");
36
33
  }
@@ -40,9 +37,12 @@
40
37
  if (typeof globalThis['2p-dsl-theory'] === 'undefined') {
41
38
  throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-dsl-theory' was not found. Please, check whether '2p-dsl-theory' is loaded prior to 'arg2p-core'.");
42
39
  }
43
- globalThis['arg2p-core'] = factory(typeof globalThis['arg2p-core'] === 'undefined' ? {} : globalThis['arg2p-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['2p-solve'], globalThis['2p-core'], globalThis['2p-parser-core'], globalThis['2p-solve-classic'], globalThis['2p-theory'], globalThis['2p-parser-theory'], globalThis['2p-dsl-solve'], globalThis['2p-dsl-core'], globalThis['2p-dsl-unify'], globalThis['2p-unify'], globalThis['2p-dsl-theory']);
40
+ if (typeof globalThis['2p-parser-core'] === 'undefined') {
41
+ throw new Error("Error loading module 'arg2p-core'. Its dependency '2p-parser-core' was not found. Please, check whether '2p-parser-core' is loaded prior to 'arg2p-core'.");
42
+ }
43
+ globalThis['arg2p-core'] = factory(typeof globalThis['arg2p-core'] === 'undefined' ? {} : globalThis['arg2p-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['2p-solve'], globalThis['2p-solve-classic'], globalThis['2p-theory'], globalThis['2p-parser-theory'], globalThis['2p-dsl-solve'], globalThis['2p-dsl-core'], globalThis['2p-core'], globalThis['2p-dsl-unify'], globalThis['2p-unify'], globalThis['2p-dsl-theory'], globalThis['2p-parser-core']);
44
44
  }
45
- }(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_parser_core, kotlin_it_unibo_tuprolog_solve_classic, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_parser_theory, kotlin_it_unibo_tuprolog_dsl_solve, kotlin_it_unibo_tuprolog_dsl_core, kotlin_it_unibo_tuprolog_dsl_unify, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_dsl_theory) {
45
+ }(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_solve_classic, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_parser_theory, kotlin_it_unibo_tuprolog_dsl_solve, kotlin_it_unibo_tuprolog_dsl_core, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_dsl_unify, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_dsl_theory, kotlin_it_unibo_tuprolog_parser_core) {
46
46
  'use strict';
47
47
  //region block: imports
48
48
  var imul = Math.imul;
@@ -59,14 +59,10 @@
59
59
  var Unit_instance = kotlin_kotlin.$_$.k1;
60
60
  var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.c1;
61
61
  var initMetadataForInterface = kotlin_kotlin.$_$.z5;
62
- var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.u;
63
- var parseStruct = kotlin_it_unibo_tuprolog_parser_core.$_$.d;
64
- var filter = kotlin_kotlin.$_$.t7;
65
- var map = kotlin_kotlin.$_$.f8;
66
62
  var listOf_0 = kotlin_kotlin.$_$.b3;
67
63
  var plus_0 = kotlin_kotlin.$_$.u3;
68
64
  var ClassicSolverFactory_instance = kotlin_it_unibo_tuprolog_solve_classic.$_$.a;
69
- var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.d1;
65
+ var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d1;
70
66
  var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
71
67
  var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
72
68
  var Companion_instance_0 = kotlin_it_unibo_tuprolog_theory.$_$.b;
@@ -84,21 +80,22 @@
84
80
  var matchAny = kotlin_it_unibo_tuprolog_dsl_unify.$_$.a;
85
81
  var unifyAny = kotlin_it_unibo_tuprolog_dsl_unify.$_$.c;
86
82
  var solverOf = kotlin_it_unibo_tuprolog_dsl_solve.$_$.a;
83
+ var LogicProgrammingScopeWithOperators = kotlin_it_unibo_tuprolog_dsl_core.$_$.w1;
87
84
  var LogicProgrammingScopeWithPrologStandardLibrary = kotlin_it_unibo_tuprolog_dsl_core.$_$.h4;
85
+ var Scope = kotlin_it_unibo_tuprolog_core.$_$.r1;
86
+ var MinimalLogicProgrammingScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.c5;
88
87
  var LogicProgrammingScopeWithSubstitutions = kotlin_it_unibo_tuprolog_dsl_core.$_$.o4;
89
- var LogicProgrammingScopeWithResolution = kotlin_it_unibo_tuprolog_dsl_solve.$_$.c;
90
88
  var BaseLogicProgrammingScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.e;
91
- var LogicProgrammingScopeWithUnification = kotlin_it_unibo_tuprolog_dsl_unify.$_$.j;
92
- var LogicProgrammingScopeWithOperators = kotlin_it_unibo_tuprolog_dsl_core.$_$.w1;
93
- var Scope = kotlin_it_unibo_tuprolog_core.$_$.r1;
89
+ var LogicProgrammingScopeWithResolution = kotlin_it_unibo_tuprolog_dsl_solve.$_$.c;
94
90
  var LogicProgrammingScopeWithTheories = kotlin_it_unibo_tuprolog_dsl_theory.$_$.h;
95
- var MinimalLogicProgrammingScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.c5;
96
- var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.i;
91
+ var LogicProgrammingScopeWithUnification = kotlin_it_unibo_tuprolog_dsl_unify.$_$.j;
92
+ var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.i;
97
93
  var lazy = kotlin_kotlin.$_$.ra;
98
94
  var KProperty1 = kotlin_kotlin.$_$.g7;
99
95
  var getPropertyCallableRef = kotlin_kotlin.$_$.u5;
100
96
  var CoroutineImpl = kotlin_kotlin.$_$.p4;
101
97
  var SequenceScope = kotlin_kotlin.$_$.h7;
98
+ var map = kotlin_kotlin.$_$.f8;
102
99
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o4;
103
100
  var initMetadataForLambda = kotlin_kotlin.$_$.a6;
104
101
  var Signature = kotlin_it_unibo_tuprolog_solve.$_$.u2;
@@ -106,18 +103,19 @@
106
103
  var Primitive = kotlin_it_unibo_tuprolog_solve.$_$.w1;
107
104
  var sequence = kotlin_kotlin.$_$.n8;
108
105
  var Companion_instance_2 = kotlin_it_unibo_tuprolog_theory.$_$.a;
109
- var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_unify.$_$.b;
110
- var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_solve.$_$.h1;
106
+ var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_unify.$_$.b;
107
+ var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_solve.$_$.h1;
111
108
  var mapCapacity = kotlin_kotlin.$_$.d3;
112
109
  var coerceAtLeast = kotlin_kotlin.$_$.a7;
113
110
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.e;
114
111
  var ensureNotNull = kotlin_kotlin.$_$.pa;
115
- var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.v;
116
- var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.q;
112
+ var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.v;
113
+ var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.q;
117
114
  var first = kotlin_kotlin.$_$.v7;
118
115
  var to = kotlin_kotlin.$_$.ya;
119
116
  var mutableMapOf = kotlin_kotlin.$_$.n3;
120
- var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
117
+ var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
118
+ var filter = kotlin_kotlin.$_$.t7;
121
119
  var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
122
120
  var Expected_LIST_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b;
123
121
  var Atom = kotlin_it_unibo_tuprolog_core.$_$.f1;
@@ -131,8 +129,10 @@
131
129
  var Specifier_XFX_getInstance = kotlin_it_unibo_tuprolog_core.$_$.a;
132
130
  var Operator = kotlin_it_unibo_tuprolog_core.$_$.e1;
133
131
  var OperatorSet_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.f;
134
- var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_core.$_$.l;
132
+ var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.l;
135
133
  var parseClause = kotlin_it_unibo_tuprolog_parser_core.$_$.c;
134
+ var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_core.$_$.u;
135
+ var parseStruct = kotlin_it_unibo_tuprolog_parser_core.$_$.d;
136
136
  var toString = kotlin_kotlin.$_$.p6;
137
137
  var getBooleanHashCode = kotlin_kotlin.$_$.t5;
138
138
  var getStringHashCode = kotlin_kotlin.$_$.v5;
@@ -219,12 +219,12 @@
219
219
  initMetadataForClass(Arg2pSolver$Companion$of$1, VOID, VOID, VOID, [Arg2pSolver]);
220
220
  initMetadataForCompanion(Companion);
221
221
  initMetadataForObject(Arg2pSolverFactory, 'Arg2pSolverFactory');
222
- initMetadataForClass(PrologWithArgumentationImpl, 'PrologWithArgumentationImpl', PrologWithArgumentationImpl, VOID, [LogicProgrammingScopeWithPrologStandardLibrary, LogicProgrammingScopeWithSubstitutions, LogicProgrammingScopeWithResolution, BaseLogicProgrammingScope, LogicProgrammingScopeWithUnification, LogicProgrammingScopeWithOperators, Scope, LogicProgrammingScopeWithTheories, MinimalLogicProgrammingScope]);
222
+ initMetadataForClass(PrologWithArgumentationImpl, 'PrologWithArgumentationImpl', PrologWithArgumentationImpl, VOID, [LogicProgrammingScopeWithOperators, LogicProgrammingScopeWithPrologStandardLibrary, Scope, MinimalLogicProgrammingScope, LogicProgrammingScopeWithSubstitutions, BaseLogicProgrammingScope, LogicProgrammingScopeWithResolution, LogicProgrammingScopeWithTheories, LogicProgrammingScopeWithUnification]);
223
223
  function get_theoryOperators() {
224
- return Companion_getInstance_1().DEFAULT;
224
+ return Companion_getInstance_0().DEFAULT;
225
225
  }
226
226
  function content() {
227
- return this.z39();
227
+ return this.y39();
228
228
  }
229
229
  initMetadataForInterface(ArgLibrary, 'ArgLibrary');
230
230
  initMetadataForInterface(Loadable, 'Loadable');
@@ -398,39 +398,19 @@
398
398
  }
399
399
  function Arg2pSolver() {
400
400
  }
401
- function Arg2pSolverFactory$evaluate$lambda$lambda(it) {
402
- return it.d1u();
403
- }
404
- function Arg2pSolverFactory$evaluate$lambda$lambda_0($solver) {
405
- return function (it) {
406
- return mineActiveGraph($solver);
407
- };
408
- }
409
- function Arg2pSolverFactory$evaluate$lambda($kb, $flags) {
410
- return function ($this$arg2pScope) {
411
- // Inline function 'kotlin.let' call
412
- var solver = Arg2pSolverFactory_instance.v39($kb, $flags.u39());
413
- var tmp = solver.solve(parseStruct(Companion_getInstance(), 'buildLabelSetsSilent'));
414
- var tmp_0 = filter(tmp, Arg2pSolverFactory$evaluate$lambda$lambda);
415
- return map(tmp_0, Arg2pSolverFactory$evaluate$lambda$lambda_0(solver));
416
- };
417
- }
418
401
  function Arg2pSolverFactory() {
419
402
  }
420
- protoOf(Arg2pSolverFactory).w39 = function (theory, settings, staticLibs, dynamicLibs) {
403
+ protoOf(Arg2pSolverFactory).j39 = function (theory, settings, staticLibs, dynamicLibs) {
421
404
  // Inline function 'kotlin.let' call
422
405
  var it = Companion_instance_7.f39(plus_0(staticLibs, listOf_0(settings)), dynamicLibs);
423
- return ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, it.c39(), Companion_getInstance_0().z1v_1.setNotable(Unknown_getInstance(), Unknown_getInstance().f27_1).setNotable(TrackVariables_getInstance(), TrackVariables_getInstance().z26_1), parseTheoryWithOperators(Companion_instance_0, theory, it.d39()));
406
+ return ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, it.c39(), Companion_getInstance().z1v_1.setNotable(Unknown_getInstance(), Unknown_getInstance().f27_1).setNotable(TrackVariables_getInstance(), TrackVariables_getInstance().z26_1), parseTheoryWithOperators(Companion_instance_0, theory, it.d39()));
424
407
  };
425
- protoOf(Arg2pSolverFactory).v39 = function (theory, settings, staticLibs, dynamicLibs, $super) {
408
+ protoOf(Arg2pSolverFactory).k39 = function (theory, settings, staticLibs, dynamicLibs, $super) {
426
409
  theory = theory === VOID ? '' : theory;
427
- settings = settings === VOID ? (new FlagsBuilder()).u39() : settings;
410
+ settings = settings === VOID ? (new FlagsBuilder()).w39() : settings;
428
411
  staticLibs = staticLibs === VOID ? emptyList() : staticLibs;
429
412
  dynamicLibs = dynamicLibs === VOID ? emptyList() : dynamicLibs;
430
- return $super === VOID ? this.w39(theory, settings, staticLibs, dynamicLibs) : $super.w39.call(this, theory, settings, staticLibs, dynamicLibs);
431
- };
432
- protoOf(Arg2pSolverFactory).x39 = function (kb, flags) {
433
- return arg2pScope(Arg2pSolverFactory$evaluate$lambda(kb, flags));
413
+ return $super === VOID ? this.j39(theory, settings, staticLibs, dynamicLibs) : $super.j39.call(this, theory, settings, staticLibs, dynamicLibs);
434
414
  };
435
415
  var Arg2pSolverFactory_instance;
436
416
  function Arg2pSolverFactory_getInstance() {
@@ -440,910 +420,910 @@
440
420
  return function_0(new PrologWithArgumentationImpl());
441
421
  }
442
422
  function PrologWithArgumentationImpl() {
443
- this.y39_1 = Companion_instance_1.ofSolverFactory(ClassicSolverFactory_instance);
423
+ this.x39_1 = Companion_instance_1.ofSolverFactory(ClassicSolverFactory_instance);
444
424
  }
445
425
  protoOf(PrologWithArgumentationImpl).call1 = function (goal) {
446
- return this.y39_1.call1(goal);
426
+ return this.x39_1.call1(goal);
447
427
  };
448
428
  protoOf(PrologWithArgumentationImpl).stringInvoke = function (_this__u8e3s4, term, terms) {
449
- return this.y39_1.stringInvoke(_this__u8e3s4, term, terms);
429
+ return this.x39_1.stringInvoke(_this__u8e3s4, term, terms);
450
430
  };
451
431
  protoOf(PrologWithArgumentationImpl).structOfAny = function (functor, args) {
452
- return this.y39_1.structOfAny(functor, args);
432
+ return this.x39_1.structOfAny(functor, args);
453
433
  };
454
434
  protoOf(PrologWithArgumentationImpl).structOf = function (functor, args) {
455
- return this.y39_1.structOf(functor, args);
435
+ return this.x39_1.structOf(functor, args);
456
436
  };
457
437
  protoOf(PrologWithArgumentationImpl).structOfSequence = function (functor, args) {
458
- return this.y39_1.structOfSequence(functor, args);
438
+ return this.x39_1.structOfSequence(functor, args);
459
439
  };
460
440
  protoOf(PrologWithArgumentationImpl).structOfIterable = function (functor, args) {
461
- return this.y39_1.structOfIterable(functor, args);
441
+ return this.x39_1.structOfIterable(functor, args);
462
442
  };
463
443
  protoOf(PrologWithArgumentationImpl).structOfList = function (functor, args) {
464
- return this.y39_1.structOfList(functor, args);
444
+ return this.x39_1.structOfList(functor, args);
465
445
  };
466
446
  protoOf(PrologWithArgumentationImpl).tupleOfAny = function (terms) {
467
- return this.y39_1.tupleOfAny(terms);
447
+ return this.x39_1.tupleOfAny(terms);
468
448
  };
469
449
  protoOf(PrologWithArgumentationImpl).tupleOf = function (terms) {
470
- return this.y39_1.tupleOf(terms);
450
+ return this.x39_1.tupleOf(terms);
471
451
  };
472
452
  protoOf(PrologWithArgumentationImpl).tupleOfIterable = function (terms) {
473
- return this.y39_1.tupleOfIterable(terms);
453
+ return this.x39_1.tupleOfIterable(terms);
474
454
  };
475
455
  protoOf(PrologWithArgumentationImpl).tupleOfSequence = function (terms) {
476
- return this.y39_1.tupleOfSequence(terms);
456
+ return this.x39_1.tupleOfSequence(terms);
477
457
  };
478
458
  protoOf(PrologWithArgumentationImpl).logicListOfAny = function (terms) {
479
- return this.y39_1.logicListOfAny(terms);
459
+ return this.x39_1.logicListOfAny(terms);
480
460
  };
481
461
  protoOf(PrologWithArgumentationImpl).logicListOf = function (terms) {
482
- return this.y39_1.logicListOf(terms);
462
+ return this.x39_1.logicListOf(terms);
483
463
  };
484
464
  protoOf(PrologWithArgumentationImpl).logicListOfIterable = function (terms) {
485
- return this.y39_1.logicListOfIterable(terms);
465
+ return this.x39_1.logicListOfIterable(terms);
486
466
  };
487
467
  protoOf(PrologWithArgumentationImpl).logicListOfSequence = function (terms) {
488
- return this.y39_1.logicListOfSequence(terms);
468
+ return this.x39_1.logicListOfSequence(terms);
489
469
  };
490
470
  protoOf(PrologWithArgumentationImpl).blockOfAny = function (terms) {
491
- return this.y39_1.blockOfAny(terms);
471
+ return this.x39_1.blockOfAny(terms);
492
472
  };
493
473
  protoOf(PrologWithArgumentationImpl).blockOf = function (terms) {
494
- return this.y39_1.blockOf(terms);
474
+ return this.x39_1.blockOf(terms);
495
475
  };
496
476
  protoOf(PrologWithArgumentationImpl).blockOfIterable = function (terms) {
497
- return this.y39_1.blockOfIterable(terms);
477
+ return this.x39_1.blockOfIterable(terms);
498
478
  };
499
479
  protoOf(PrologWithArgumentationImpl).blockOfSequence = function (terms) {
500
- return this.y39_1.blockOfSequence(terms);
480
+ return this.x39_1.blockOfSequence(terms);
501
481
  };
502
482
  protoOf(PrologWithArgumentationImpl).factOfAny = function (term) {
503
- return this.y39_1.factOfAny(term);
483
+ return this.x39_1.factOfAny(term);
504
484
  };
505
485
  protoOf(PrologWithArgumentationImpl).factOf = function (head) {
506
- return this.y39_1.factOf(head);
486
+ return this.x39_1.factOf(head);
507
487
  };
508
488
  protoOf(PrologWithArgumentationImpl).consOfAny = function (head, tail) {
509
- return this.y39_1.consOfAny(head, tail);
489
+ return this.x39_1.consOfAny(head, tail);
510
490
  };
511
491
  protoOf(PrologWithArgumentationImpl).consOf = function (head, tail) {
512
- return this.y39_1.consOf(head, tail);
492
+ return this.x39_1.consOf(head, tail);
513
493
  };
514
494
  protoOf(PrologWithArgumentationImpl).directiveOfAny = function (term, terms) {
515
- return this.y39_1.directiveOfAny(term, terms);
495
+ return this.x39_1.directiveOfAny(term, terms);
516
496
  };
517
497
  protoOf(PrologWithArgumentationImpl).directiveOf = function (body1, body) {
518
- return this.y39_1.directiveOf(body1, body);
498
+ return this.x39_1.directiveOf(body1, body);
519
499
  };
520
500
  protoOf(PrologWithArgumentationImpl).withScope = function (function_0) {
521
- return this.y39_1.withScope(function_0);
501
+ return this.x39_1.withScope(function_0);
522
502
  };
523
503
  protoOf(PrologWithArgumentationImpl).a1g = function () {
524
- return this.y39_1.a1g();
504
+ return this.x39_1.a1g();
525
505
  };
526
506
  protoOf(PrologWithArgumentationImpl).r2x = function (items, tail) {
527
- return this.y39_1.r2x(items, tail);
507
+ return this.x39_1.r2x(items, tail);
528
508
  };
529
509
  protoOf(PrologWithArgumentationImpl).rule = function (function_0) {
530
- return this.y39_1.rule(function_0);
510
+ return this.x39_1.rule(function_0);
531
511
  };
532
512
  protoOf(PrologWithArgumentationImpl).clause2 = function (head, body) {
533
- return this.y39_1.clause2(head, body);
513
+ return this.x39_1.clause2(head, body);
534
514
  };
535
515
  protoOf(PrologWithArgumentationImpl).directive = function (function_0) {
536
- return this.y39_1.directive(function_0);
516
+ return this.x39_1.directive(function_0);
537
517
  };
538
518
  protoOf(PrologWithArgumentationImpl).fact = function (function_0) {
539
- return this.y39_1.fact(function_0);
519
+ return this.x39_1.fact(function_0);
540
520
  };
541
521
  protoOf(PrologWithArgumentationImpl).convertToTerm = function (_this__u8e3s4) {
542
- return this.y39_1.convertToTerm(_this__u8e3s4);
522
+ return this.x39_1.convertToTerm(_this__u8e3s4);
543
523
  };
544
524
  protoOf(PrologWithArgumentationImpl).convertToSpecificSubTypeOfTerm = function (_this__u8e3s4, type, converter) {
545
- return this.y39_1.convertToSpecificSubTypeOfTerm(_this__u8e3s4, type, converter);
525
+ return this.x39_1.convertToSpecificSubTypeOfTerm(_this__u8e3s4, type, converter);
546
526
  };
547
527
  protoOf(PrologWithArgumentationImpl).newScope = function () {
548
- return this.y39_1.newScope();
528
+ return this.x39_1.newScope();
549
529
  };
550
530
  protoOf(PrologWithArgumentationImpl).l2x = function () {
551
- return this.y39_1.l2x();
531
+ return this.x39_1.l2x();
552
532
  };
553
533
  protoOf(PrologWithArgumentationImpl).containsVar = function (variable) {
554
- return this.y39_1.containsVar(variable);
534
+ return this.x39_1.containsVar(variable);
555
535
  };
556
536
  protoOf(PrologWithArgumentationImpl).contains = function (variable) {
557
- return this.y39_1.contains(variable);
537
+ return this.x39_1.contains(variable);
558
538
  };
559
539
  protoOf(PrologWithArgumentationImpl).substitutionContains = function (_this__u8e3s4, term) {
560
- return this.y39_1.substitutionContains(_this__u8e3s4, term);
540
+ return this.x39_1.substitutionContains(_this__u8e3s4, term);
561
541
  };
562
542
  protoOf(PrologWithArgumentationImpl).get = function (variable) {
563
- return this.y39_1.get(variable);
543
+ return this.x39_1.get(variable);
564
544
  };
565
545
  protoOf(PrologWithArgumentationImpl).substitutionGet = function (_this__u8e3s4, term) {
566
- return this.y39_1.substitutionGet(_this__u8e3s4, term);
546
+ return this.x39_1.substitutionGet(_this__u8e3s4, term);
567
547
  };
568
548
  protoOf(PrologWithArgumentationImpl).where = function (lambda) {
569
- return this.y39_1.where(lambda);
549
+ return this.x39_1.where(lambda);
570
550
  };
571
551
  protoOf(PrologWithArgumentationImpl).with = function (lambda) {
572
- return this.y39_1.with(lambda);
552
+ return this.x39_1.with(lambda);
573
553
  };
574
554
  protoOf(PrologWithArgumentationImpl).varOf = function (name) {
575
- return this.y39_1.varOf(name);
555
+ return this.x39_1.varOf(name);
576
556
  };
577
557
  protoOf(PrologWithArgumentationImpl).varOfChar = function (name) {
578
- return this.y39_1.varOfChar(name);
558
+ return this.x39_1.varOfChar(name);
579
559
  };
580
560
  protoOf(PrologWithArgumentationImpl).atomOf = function (value) {
581
- return this.y39_1.atomOf(value);
561
+ return this.x39_1.atomOf(value);
582
562
  };
583
563
  protoOf(PrologWithArgumentationImpl).atomOfChar = function (value) {
584
- return this.y39_1.atomOfChar(value);
564
+ return this.x39_1.atomOfChar(value);
585
565
  };
586
566
  protoOf(PrologWithArgumentationImpl).xz = function (terms, last) {
587
- return this.y39_1.xz(terms, last);
567
+ return this.x39_1.xz(terms, last);
588
568
  };
589
569
  protoOf(PrologWithArgumentationImpl).yz = function (terms, last) {
590
- return this.y39_1.yz(terms, last);
570
+ return this.x39_1.yz(terms, last);
591
571
  };
592
572
  protoOf(PrologWithArgumentationImpl).zz = function (terms, last) {
593
- return this.y39_1.zz(terms, last);
573
+ return this.x39_1.zz(terms, last);
594
574
  };
595
575
  protoOf(PrologWithArgumentationImpl).ruleOf = function (head, body1, body) {
596
- return this.y39_1.ruleOf(head, body1, body);
576
+ return this.x39_1.ruleOf(head, body1, body);
597
577
  };
598
578
  protoOf(PrologWithArgumentationImpl).clauseOf = function (head, body) {
599
- return this.y39_1.clauseOf(head, body);
579
+ return this.x39_1.clauseOf(head, body);
600
580
  };
601
581
  protoOf(PrologWithArgumentationImpl).indicatorOf = function (name, arity) {
602
- return this.y39_1.indicatorOf(name, arity);
582
+ return this.x39_1.indicatorOf(name, arity);
603
583
  };
604
584
  protoOf(PrologWithArgumentationImpl).indicatorOfStringInt = function (name, arity) {
605
- return this.y39_1.indicatorOfStringInt(name, arity);
585
+ return this.x39_1.indicatorOfStringInt(name, arity);
606
586
  };
607
587
  protoOf(PrologWithArgumentationImpl).anonymous = function () {
608
- return this.y39_1.anonymous();
588
+ return this.x39_1.anonymous();
609
589
  };
610
590
  protoOf(PrologWithArgumentationImpl).whatever = function () {
611
- return this.y39_1.whatever();
591
+ return this.x39_1.whatever();
612
592
  };
613
593
  protoOf(PrologWithArgumentationImpl).numOfBigDecimal = function (value) {
614
- return this.y39_1.numOfBigDecimal(value);
594
+ return this.x39_1.numOfBigDecimal(value);
615
595
  };
616
596
  protoOf(PrologWithArgumentationImpl).numOfDouble = function (value) {
617
- return this.y39_1.numOfDouble(value);
597
+ return this.x39_1.numOfDouble(value);
618
598
  };
619
599
  protoOf(PrologWithArgumentationImpl).numOfFloat = function (value) {
620
- return this.y39_1.numOfFloat(value);
600
+ return this.x39_1.numOfFloat(value);
621
601
  };
622
602
  protoOf(PrologWithArgumentationImpl).numOfBigInteger = function (value) {
623
- return this.y39_1.numOfBigInteger(value);
603
+ return this.x39_1.numOfBigInteger(value);
624
604
  };
625
605
  protoOf(PrologWithArgumentationImpl).numOfInt = function (value) {
626
- return this.y39_1.numOfInt(value);
606
+ return this.x39_1.numOfInt(value);
627
607
  };
628
608
  protoOf(PrologWithArgumentationImpl).numOfLong = function (value) {
629
- return this.y39_1.numOfLong(value);
609
+ return this.x39_1.numOfLong(value);
630
610
  };
631
611
  protoOf(PrologWithArgumentationImpl).numOfShort = function (value) {
632
- return this.y39_1.numOfShort(value);
612
+ return this.x39_1.numOfShort(value);
633
613
  };
634
614
  protoOf(PrologWithArgumentationImpl).numOfByte = function (value) {
635
- return this.y39_1.numOfByte(value);
615
+ return this.x39_1.numOfByte(value);
636
616
  };
637
617
  protoOf(PrologWithArgumentationImpl).parseNum = function (value) {
638
- return this.y39_1.parseNum(value);
618
+ return this.x39_1.parseNum(value);
639
619
  };
640
620
  protoOf(PrologWithArgumentationImpl).numOf = function (value) {
641
- return this.y39_1.numOf(value);
621
+ return this.x39_1.numOf(value);
642
622
  };
643
623
  protoOf(PrologWithArgumentationImpl).intOfBigInteger = function (value) {
644
- return this.y39_1.intOfBigInteger(value);
624
+ return this.x39_1.intOfBigInteger(value);
645
625
  };
646
626
  protoOf(PrologWithArgumentationImpl).intOf = function (value) {
647
- return this.y39_1.intOf(value);
627
+ return this.x39_1.intOf(value);
648
628
  };
649
629
  protoOf(PrologWithArgumentationImpl).intOfLong = function (value) {
650
- return this.y39_1.intOfLong(value);
630
+ return this.x39_1.intOfLong(value);
651
631
  };
652
632
  protoOf(PrologWithArgumentationImpl).intOfShort = function (value) {
653
- return this.y39_1.intOfShort(value);
633
+ return this.x39_1.intOfShort(value);
654
634
  };
655
635
  protoOf(PrologWithArgumentationImpl).intOfByte = function (value) {
656
- return this.y39_1.intOfByte(value);
636
+ return this.x39_1.intOfByte(value);
657
637
  };
658
638
  protoOf(PrologWithArgumentationImpl).parseInt = function (value) {
659
- return this.y39_1.parseInt(value);
639
+ return this.x39_1.parseInt(value);
660
640
  };
661
641
  protoOf(PrologWithArgumentationImpl).parseIntRadix = function (value, radix) {
662
- return this.y39_1.parseIntRadix(value, radix);
642
+ return this.x39_1.parseIntRadix(value, radix);
663
643
  };
664
644
  protoOf(PrologWithArgumentationImpl).realOfBigDecimal = function (value) {
665
- return this.y39_1.realOfBigDecimal(value);
645
+ return this.x39_1.realOfBigDecimal(value);
666
646
  };
667
647
  protoOf(PrologWithArgumentationImpl).realOf = function (value) {
668
- return this.y39_1.realOf(value);
648
+ return this.x39_1.realOf(value);
669
649
  };
670
650
  protoOf(PrologWithArgumentationImpl).realOfFloat = function (value) {
671
- return this.y39_1.realOfFloat(value);
651
+ return this.x39_1.realOfFloat(value);
672
652
  };
673
653
  protoOf(PrologWithArgumentationImpl).parseReal = function (value) {
674
- return this.y39_1.parseReal(value);
654
+ return this.x39_1.parseReal(value);
675
655
  };
676
656
  protoOf(PrologWithArgumentationImpl).truthOf = function (value) {
677
- return this.y39_1.truthOf(value);
657
+ return this.x39_1.truthOf(value);
678
658
  };
679
659
  protoOf(PrologWithArgumentationImpl).unifierOf = function (assignments) {
680
- return this.y39_1.unifierOf(assignments);
660
+ return this.x39_1.unifierOf(assignments);
681
661
  };
682
662
  protoOf(PrologWithArgumentationImpl).unifierOfIterable = function (assignments) {
683
- return this.y39_1.unifierOfIterable(assignments);
663
+ return this.x39_1.unifierOfIterable(assignments);
684
664
  };
685
665
  protoOf(PrologWithArgumentationImpl).unifierOfSequence = function (assignments) {
686
- return this.y39_1.unifierOfSequence(assignments);
666
+ return this.x39_1.unifierOfSequence(assignments);
687
667
  };
688
668
  protoOf(PrologWithArgumentationImpl).substitutionOf = function (assignments) {
689
- return this.y39_1.substitutionOf(assignments);
669
+ return this.x39_1.substitutionOf(assignments);
690
670
  };
691
671
  protoOf(PrologWithArgumentationImpl).substitutionOfIterable = function (assignments) {
692
- return this.y39_1.substitutionOfIterable(assignments);
672
+ return this.x39_1.substitutionOfIterable(assignments);
693
673
  };
694
674
  protoOf(PrologWithArgumentationImpl).substitutionOfSequence = function (assignments) {
695
- return this.y39_1.substitutionOfSequence(assignments);
675
+ return this.x39_1.substitutionOfSequence(assignments);
696
676
  };
697
677
  protoOf(PrologWithArgumentationImpl).vz = function () {
698
- return this.y39_1.vz();
678
+ return this.x39_1.vz();
699
679
  };
700
680
  protoOf(PrologWithArgumentationImpl).wz = function () {
701
- return this.y39_1.wz();
681
+ return this.x39_1.wz();
702
682
  };
703
683
  protoOf(PrologWithArgumentationImpl).varTo = function (_this__u8e3s4, termObject) {
704
- return this.y39_1.varTo(_this__u8e3s4, termObject);
684
+ return this.x39_1.varTo(_this__u8e3s4, termObject);
705
685
  };
706
686
  protoOf(PrologWithArgumentationImpl).stringTo = function (_this__u8e3s4, termObject) {
707
- return this.y39_1.stringTo(_this__u8e3s4, termObject);
687
+ return this.x39_1.stringTo(_this__u8e3s4, termObject);
708
688
  };
709
689
  protoOf(PrologWithArgumentationImpl).substitutionContainsKey = function (_this__u8e3s4, term) {
710
- return this.y39_1.substitutionContainsKey(_this__u8e3s4, term);
690
+ return this.x39_1.substitutionContainsKey(_this__u8e3s4, term);
711
691
  };
712
692
  protoOf(PrologWithArgumentationImpl).substitutionContainsValue = function (_this__u8e3s4, term) {
713
- return this.y39_1.substitutionContainsValue(_this__u8e3s4, term);
693
+ return this.x39_1.substitutionContainsValue(_this__u8e3s4, term);
714
694
  };
715
695
  protoOf(PrologWithArgumentationImpl).at_end_of_stream1 = function (alias) {
716
- return this.y39_1.at_end_of_stream1(alias);
696
+ return this.x39_1.at_end_of_stream1(alias);
717
697
  };
718
698
  protoOf(PrologWithArgumentationImpl).catch3 = function (goal, error, continuation) {
719
- return this.y39_1.catch3(goal, error, continuation);
699
+ return this.x39_1.catch3(goal, error, continuation);
720
700
  };
721
701
  protoOf(PrologWithArgumentationImpl).throw1 = function (error) {
722
- return this.y39_1.throw1(error);
702
+ return this.x39_1.throw1(error);
723
703
  };
724
704
  protoOf(PrologWithArgumentationImpl).not1 = function (goal) {
725
- return this.y39_1.not1(goal);
705
+ return this.x39_1.not1(goal);
726
706
  };
727
707
  protoOf(PrologWithArgumentationImpl).naf1 = function (goal) {
728
- return this.y39_1.naf1(goal);
708
+ return this.x39_1.naf1(goal);
729
709
  };
730
710
  protoOf(PrologWithArgumentationImpl).assert1 = function (clause) {
731
- return this.y39_1.assert1(clause);
711
+ return this.x39_1.assert1(clause);
732
712
  };
733
713
  protoOf(PrologWithArgumentationImpl).asserta1 = function (clause) {
734
- return this.y39_1.asserta1(clause);
714
+ return this.x39_1.asserta1(clause);
735
715
  };
736
716
  protoOf(PrologWithArgumentationImpl).assertz1 = function (clause) {
737
- return this.y39_1.assertz1(clause);
717
+ return this.x39_1.assertz1(clause);
738
718
  };
739
719
  protoOf(PrologWithArgumentationImpl).arg3 = function (index, compound, argument) {
740
- return this.y39_1.arg3(index, compound, argument);
720
+ return this.x39_1.arg3(index, compound, argument);
741
721
  };
742
722
  protoOf(PrologWithArgumentationImpl).atom1 = function (atom) {
743
- return this.y39_1.atom1(atom);
723
+ return this.x39_1.atom1(atom);
744
724
  };
745
725
  protoOf(PrologWithArgumentationImpl).atomic1 = function (atomic) {
746
- return this.y39_1.atomic1(atomic);
726
+ return this.x39_1.atomic1(atomic);
747
727
  };
748
728
  protoOf(PrologWithArgumentationImpl).between3 = function (min, max, number) {
749
- return this.y39_1.between3(min, max, number);
729
+ return this.x39_1.between3(min, max, number);
750
730
  };
751
731
  protoOf(PrologWithArgumentationImpl).callable1 = function (goal) {
752
- return this.y39_1.callable1(goal);
732
+ return this.x39_1.callable1(goal);
753
733
  };
754
734
  protoOf(PrologWithArgumentationImpl).compound1 = function (struct) {
755
- return this.y39_1.compound1(struct);
735
+ return this.x39_1.compound1(struct);
756
736
  };
757
737
  protoOf(PrologWithArgumentationImpl).current_op3 = function (precedence, specifier, functor) {
758
- return this.y39_1.current_op3(precedence, specifier, functor);
738
+ return this.x39_1.current_op3(precedence, specifier, functor);
759
739
  };
760
740
  protoOf(PrologWithArgumentationImpl).op3 = function (precedence, specifier, functor) {
761
- return this.y39_1.op3(precedence, specifier, functor);
741
+ return this.x39_1.op3(precedence, specifier, functor);
762
742
  };
763
743
  protoOf(PrologWithArgumentationImpl).findall3 = function (template, goal, bag) {
764
- return this.y39_1.findall3(template, goal, bag);
744
+ return this.x39_1.findall3(template, goal, bag);
765
745
  };
766
746
  protoOf(PrologWithArgumentationImpl).float1 = function (number) {
767
- return this.y39_1.float1(number);
747
+ return this.x39_1.float1(number);
768
748
  };
769
749
  protoOf(PrologWithArgumentationImpl).functor3 = function (struct, functor, arity) {
770
- return this.y39_1.functor3(struct, functor, arity);
750
+ return this.x39_1.functor3(struct, functor, arity);
771
751
  };
772
752
  protoOf(PrologWithArgumentationImpl).ground1 = function (term) {
773
- return this.y39_1.ground1(term);
753
+ return this.x39_1.ground1(term);
774
754
  };
775
755
  protoOf(PrologWithArgumentationImpl).integer1 = function (number) {
776
- return this.y39_1.integer1(number);
756
+ return this.x39_1.integer1(number);
777
757
  };
778
758
  protoOf(PrologWithArgumentationImpl).natural = function (number) {
779
- return this.y39_1.natural(number);
759
+ return this.x39_1.natural(number);
780
760
  };
781
761
  protoOf(PrologWithArgumentationImpl).nonvar1 = function (number) {
782
- return this.y39_1.nonvar1(number);
762
+ return this.x39_1.nonvar1(number);
783
763
  };
784
764
  protoOf(PrologWithArgumentationImpl).number1 = function (number) {
785
- return this.y39_1.number1(number);
765
+ return this.x39_1.number1(number);
786
766
  };
787
767
  protoOf(PrologWithArgumentationImpl).var1 = function (term) {
788
- return this.y39_1.var1(term);
768
+ return this.x39_1.var1(term);
789
769
  };
790
770
  protoOf(PrologWithArgumentationImpl).write1 = function (term) {
791
- return this.y39_1.write1(term);
771
+ return this.x39_1.write1(term);
792
772
  };
793
773
  protoOf(PrologWithArgumentationImpl).univ2 = function (_this__u8e3s4, other) {
794
- return this.y39_1.univ2(_this__u8e3s4, other);
774
+ return this.x39_1.univ2(_this__u8e3s4, other);
795
775
  };
796
776
  protoOf(PrologWithArgumentationImpl).eq2 = function (_this__u8e3s4, right) {
797
- return this.y39_1.eq2(_this__u8e3s4, right);
777
+ return this.x39_1.eq2(_this__u8e3s4, right);
798
778
  };
799
779
  protoOf(PrologWithArgumentationImpl).neq2 = function (_this__u8e3s4, right) {
800
- return this.y39_1.neq2(_this__u8e3s4, right);
780
+ return this.x39_1.neq2(_this__u8e3s4, right);
801
781
  };
802
782
  protoOf(PrologWithArgumentationImpl).id2 = function (_this__u8e3s4, right) {
803
- return this.y39_1.id2(_this__u8e3s4, right);
783
+ return this.x39_1.id2(_this__u8e3s4, right);
804
784
  };
805
785
  protoOf(PrologWithArgumentationImpl).nid2 = function (_this__u8e3s4, right) {
806
- return this.y39_1.nid2(_this__u8e3s4, right);
786
+ return this.x39_1.nid2(_this__u8e3s4, right);
807
787
  };
808
788
  protoOf(PrologWithArgumentationImpl).arithEq2 = function (_this__u8e3s4, right) {
809
- return this.y39_1.arithEq2(_this__u8e3s4, right);
789
+ return this.x39_1.arithEq2(_this__u8e3s4, right);
810
790
  };
811
791
  protoOf(PrologWithArgumentationImpl).arithNeq2 = function (_this__u8e3s4, right) {
812
- return this.y39_1.arithNeq2(_this__u8e3s4, right);
792
+ return this.x39_1.arithNeq2(_this__u8e3s4, right);
813
793
  };
814
794
  protoOf(PrologWithArgumentationImpl).member2 = function (item, list) {
815
- return this.y39_1.member2(item, list);
795
+ return this.x39_1.member2(item, list);
816
796
  };
817
797
  protoOf(PrologWithArgumentationImpl).retract1 = function (clause) {
818
- return this.y39_1.retract1(clause);
798
+ return this.x39_1.retract1(clause);
819
799
  };
820
800
  protoOf(PrologWithArgumentationImpl).retract = function (clause) {
821
- return this.y39_1.retract(clause);
801
+ return this.x39_1.retract(clause);
822
802
  };
823
803
  protoOf(PrologWithArgumentationImpl).retractByHead = function (fact) {
824
- return this.y39_1.retractByHead(fact);
804
+ return this.x39_1.retractByHead(fact);
825
805
  };
826
806
  protoOf(PrologWithArgumentationImpl).append3 = function (left, right, result) {
827
- return this.y39_1.append3(left, right, result);
807
+ return this.x39_1.append3(left, right, result);
828
808
  };
829
809
  protoOf(PrologWithArgumentationImpl).retractall1 = function (clause) {
830
- return this.y39_1.retractall1(clause);
810
+ return this.x39_1.retractall1(clause);
831
811
  };
832
812
  protoOf(PrologWithArgumentationImpl).abolish1 = function (indicator) {
833
- return this.y39_1.abolish1(indicator);
813
+ return this.x39_1.abolish1(indicator);
834
814
  };
835
815
  protoOf(PrologWithArgumentationImpl).atom_chars2 = function (atom, chars) {
836
- return this.y39_1.atom_chars2(atom, chars);
816
+ return this.x39_1.atom_chars2(atom, chars);
837
817
  };
838
818
  protoOf(PrologWithArgumentationImpl).atom_codes2 = function (atom, codes) {
839
- return this.y39_1.atom_codes2(atom, codes);
819
+ return this.x39_1.atom_codes2(atom, codes);
840
820
  };
841
821
  protoOf(PrologWithArgumentationImpl).atom_concat3 = function (first, second, result) {
842
- return this.y39_1.atom_concat3(first, second, result);
822
+ return this.x39_1.atom_concat3(first, second, result);
843
823
  };
844
824
  protoOf(PrologWithArgumentationImpl).atom_length2 = function (atom, length) {
845
- return this.y39_1.atom_length2(atom, length);
825
+ return this.x39_1.atom_length2(atom, length);
846
826
  };
847
827
  protoOf(PrologWithArgumentationImpl).char_code2 = function (char, code) {
848
- return this.y39_1.char_code2(char, code);
828
+ return this.x39_1.char_code2(char, code);
849
829
  };
850
830
  protoOf(PrologWithArgumentationImpl).copy_term2 = function (term, copy) {
851
- return this.y39_1.copy_term2(term, copy);
831
+ return this.x39_1.copy_term2(term, copy);
852
832
  };
853
833
  protoOf(PrologWithArgumentationImpl).current_flag2 = function (name, value) {
854
- return this.y39_1.current_flag2(name, value);
834
+ return this.x39_1.current_flag2(name, value);
855
835
  };
856
836
  protoOf(PrologWithArgumentationImpl).current_prolog_flag2 = function (name, value) {
857
- return this.y39_1.current_prolog_flag2(name, value);
837
+ return this.x39_1.current_prolog_flag2(name, value);
858
838
  };
859
839
  protoOf(PrologWithArgumentationImpl).sub_atom5 = function (atom, before, length, after, sub_atom) {
860
- return this.y39_1.sub_atom5(atom, before, length, after, sub_atom);
840
+ return this.x39_1.sub_atom5(atom, before, length, after, sub_atom);
861
841
  };
862
842
  protoOf(PrologWithArgumentationImpl).number_chars2 = function (first, second) {
863
- return this.y39_1.number_chars2(first, second);
843
+ return this.x39_1.number_chars2(first, second);
864
844
  };
865
845
  protoOf(PrologWithArgumentationImpl).number_codes2 = function (first, second) {
866
- return this.y39_1.number_codes2(first, second);
846
+ return this.x39_1.number_codes2(first, second);
867
847
  };
868
848
  protoOf(PrologWithArgumentationImpl).bagof3 = function (template, goal, bag) {
869
- return this.y39_1.bagof3(template, goal, bag);
849
+ return this.x39_1.bagof3(template, goal, bag);
870
850
  };
871
851
  protoOf(PrologWithArgumentationImpl).setof3 = function (template, goal, bag) {
872
- return this.y39_1.setof3(template, goal, bag);
852
+ return this.x39_1.setof3(template, goal, bag);
873
853
  };
874
854
  protoOf(PrologWithArgumentationImpl).consult1 = function (url) {
875
- return this.y39_1.consult1(url);
855
+ return this.x39_1.consult1(url);
876
856
  };
877
857
  protoOf(PrologWithArgumentationImpl).set_flag2 = function (name, value) {
878
- return this.y39_1.set_flag2(name, value);
858
+ return this.x39_1.set_flag2(name, value);
879
859
  };
880
860
  protoOf(PrologWithArgumentationImpl).set_prolog_flag2 = function (name, value) {
881
- return this.y39_1.set_prolog_flag2(name, value);
861
+ return this.x39_1.set_prolog_flag2(name, value);
882
862
  };
883
863
  protoOf(PrologWithArgumentationImpl).dynamic1 = function (indicator) {
884
- return this.y39_1.dynamic1(indicator);
864
+ return this.x39_1.dynamic1(indicator);
885
865
  };
886
866
  protoOf(PrologWithArgumentationImpl).static1 = function (indicator) {
887
- return this.y39_1.static1(indicator);
867
+ return this.x39_1.static1(indicator);
888
868
  };
889
869
  protoOf(PrologWithArgumentationImpl).solve1 = function (goal) {
890
- return this.y39_1.solve1(goal);
870
+ return this.x39_1.solve1(goal);
891
871
  };
892
872
  protoOf(PrologWithArgumentationImpl).solveWithTimeout = function (goal, timeout) {
893
- return this.y39_1.solveWithTimeout(goal, timeout);
873
+ return this.x39_1.solveWithTimeout(goal, timeout);
894
874
  };
895
875
  protoOf(PrologWithArgumentationImpl).solve = function (goal) {
896
- return this.y39_1.solve(goal);
876
+ return this.x39_1.solve(goal);
897
877
  };
898
878
  protoOf(PrologWithArgumentationImpl).solveWithOptions = function (goal, options) {
899
- return this.y39_1.solveWithOptions(goal, options);
879
+ return this.x39_1.solveWithOptions(goal, options);
900
880
  };
901
881
  protoOf(PrologWithArgumentationImpl).initialization1 = function (goal) {
902
- return this.y39_1.initialization1(goal);
882
+ return this.x39_1.initialization1(goal);
903
883
  };
904
884
  protoOf(PrologWithArgumentationImpl).load1 = function (url) {
905
- return this.y39_1.load1(url);
885
+ return this.x39_1.load1(url);
906
886
  };
907
887
  protoOf(PrologWithArgumentationImpl).include1 = function (url) {
908
- return this.y39_1.include1(url);
888
+ return this.x39_1.include1(url);
909
889
  };
910
890
  protoOf(PrologWithArgumentationImpl).termPlus = function (_this__u8e3s4, other) {
911
- return this.y39_1.termPlus(_this__u8e3s4, other);
891
+ return this.x39_1.termPlus(_this__u8e3s4, other);
912
892
  };
913
893
  protoOf(PrologWithArgumentationImpl).number = function (_this__u8e3s4, other) {
914
- return this.y39_1.number(_this__u8e3s4, other);
894
+ return this.x39_1.number(_this__u8e3s4, other);
915
895
  };
916
896
  protoOf(PrologWithArgumentationImpl).booleanPlus = function (_this__u8e3s4, other) {
917
- return this.y39_1.booleanPlus(_this__u8e3s4, other);
897
+ return this.x39_1.booleanPlus(_this__u8e3s4, other);
918
898
  };
919
899
  protoOf(PrologWithArgumentationImpl).charPlus = function (_this__u8e3s4, other) {
920
- return this.y39_1.charPlus(_this__u8e3s4, other);
900
+ return this.x39_1.charPlus(_this__u8e3s4, other);
921
901
  };
922
902
  protoOf(PrologWithArgumentationImpl).termMinus = function (_this__u8e3s4, other) {
923
- return this.y39_1.termMinus(_this__u8e3s4, other);
903
+ return this.x39_1.termMinus(_this__u8e3s4, other);
924
904
  };
925
905
  protoOf(PrologWithArgumentationImpl).numberMinus = function (_this__u8e3s4, other) {
926
- return this.y39_1.numberMinus(_this__u8e3s4, other);
906
+ return this.x39_1.numberMinus(_this__u8e3s4, other);
927
907
  };
928
908
  protoOf(PrologWithArgumentationImpl).booleanMinus = function (_this__u8e3s4, other) {
929
- return this.y39_1.booleanMinus(_this__u8e3s4, other);
909
+ return this.x39_1.booleanMinus(_this__u8e3s4, other);
930
910
  };
931
911
  protoOf(PrologWithArgumentationImpl).charMinus = function (_this__u8e3s4, other) {
932
- return this.y39_1.charMinus(_this__u8e3s4, other);
912
+ return this.x39_1.charMinus(_this__u8e3s4, other);
933
913
  };
934
914
  protoOf(PrologWithArgumentationImpl).stringMinus = function (_this__u8e3s4, other) {
935
- return this.y39_1.stringMinus(_this__u8e3s4, other);
915
+ return this.x39_1.stringMinus(_this__u8e3s4, other);
936
916
  };
937
917
  protoOf(PrologWithArgumentationImpl).termTimes = function (_this__u8e3s4, other) {
938
- return this.y39_1.termTimes(_this__u8e3s4, other);
918
+ return this.x39_1.termTimes(_this__u8e3s4, other);
939
919
  };
940
920
  protoOf(PrologWithArgumentationImpl).numberTimes = function (_this__u8e3s4, other) {
941
- return this.y39_1.numberTimes(_this__u8e3s4, other);
921
+ return this.x39_1.numberTimes(_this__u8e3s4, other);
942
922
  };
943
923
  protoOf(PrologWithArgumentationImpl).booleanTimes = function (_this__u8e3s4, other) {
944
- return this.y39_1.booleanTimes(_this__u8e3s4, other);
924
+ return this.x39_1.booleanTimes(_this__u8e3s4, other);
945
925
  };
946
926
  protoOf(PrologWithArgumentationImpl).charTimes = function (_this__u8e3s4, other) {
947
- return this.y39_1.charTimes(_this__u8e3s4, other);
927
+ return this.x39_1.charTimes(_this__u8e3s4, other);
948
928
  };
949
929
  protoOf(PrologWithArgumentationImpl).stringTimes = function (_this__u8e3s4, other) {
950
- return this.y39_1.stringTimes(_this__u8e3s4, other);
930
+ return this.x39_1.stringTimes(_this__u8e3s4, other);
951
931
  };
952
932
  protoOf(PrologWithArgumentationImpl).termDiv = function (_this__u8e3s4, other) {
953
- return this.y39_1.termDiv(_this__u8e3s4, other);
933
+ return this.x39_1.termDiv(_this__u8e3s4, other);
954
934
  };
955
935
  protoOf(PrologWithArgumentationImpl).numberDiv = function (_this__u8e3s4, other) {
956
- return this.y39_1.numberDiv(_this__u8e3s4, other);
936
+ return this.x39_1.numberDiv(_this__u8e3s4, other);
957
937
  };
958
938
  protoOf(PrologWithArgumentationImpl).booleanDiv = function (_this__u8e3s4, other) {
959
- return this.y39_1.booleanDiv(_this__u8e3s4, other);
939
+ return this.x39_1.booleanDiv(_this__u8e3s4, other);
960
940
  };
961
941
  protoOf(PrologWithArgumentationImpl).charDiv = function (_this__u8e3s4, other) {
962
- return this.y39_1.charDiv(_this__u8e3s4, other);
942
+ return this.x39_1.charDiv(_this__u8e3s4, other);
963
943
  };
964
944
  protoOf(PrologWithArgumentationImpl).stringDiv = function (_this__u8e3s4, other) {
965
- return this.y39_1.stringDiv(_this__u8e3s4, other);
945
+ return this.x39_1.stringDiv(_this__u8e3s4, other);
966
946
  };
967
947
  protoOf(PrologWithArgumentationImpl).anyEqualsTo = function (_this__u8e3s4, other) {
968
- return this.y39_1.anyEqualsTo(_this__u8e3s4, other);
948
+ return this.x39_1.anyEqualsTo(_this__u8e3s4, other);
969
949
  };
970
950
  protoOf(PrologWithArgumentationImpl).anyNotEqualsTo = function (_this__u8e3s4, other) {
971
- return this.y39_1.anyNotEqualsTo(_this__u8e3s4, other);
951
+ return this.x39_1.anyNotEqualsTo(_this__u8e3s4, other);
972
952
  };
973
953
  protoOf(PrologWithArgumentationImpl).anyGreaterThan = function (_this__u8e3s4, other) {
974
- return this.y39_1.anyGreaterThan(_this__u8e3s4, other);
954
+ return this.x39_1.anyGreaterThan(_this__u8e3s4, other);
975
955
  };
976
956
  protoOf(PrologWithArgumentationImpl).anyGreaterThanOrEqualsTo = function (_this__u8e3s4, other) {
977
- return this.y39_1.anyGreaterThanOrEqualsTo(_this__u8e3s4, other);
957
+ return this.x39_1.anyGreaterThanOrEqualsTo(_this__u8e3s4, other);
978
958
  };
979
959
  protoOf(PrologWithArgumentationImpl).anyNonLowerThan = function (_this__u8e3s4, other) {
980
- return this.y39_1.anyNonLowerThan(_this__u8e3s4, other);
960
+ return this.x39_1.anyNonLowerThan(_this__u8e3s4, other);
981
961
  };
982
962
  protoOf(PrologWithArgumentationImpl).anyLowerThan = function (_this__u8e3s4, other) {
983
- return this.y39_1.anyLowerThan(_this__u8e3s4, other);
963
+ return this.x39_1.anyLowerThan(_this__u8e3s4, other);
984
964
  };
985
965
  protoOf(PrologWithArgumentationImpl).anyLowerThanOrEqualsTo = function (_this__u8e3s4, other) {
986
- return this.y39_1.anyLowerThanOrEqualsTo(_this__u8e3s4, other);
966
+ return this.x39_1.anyLowerThanOrEqualsTo(_this__u8e3s4, other);
987
967
  };
988
968
  protoOf(PrologWithArgumentationImpl).anyNonGreaterThan = function (_this__u8e3s4, other) {
989
- return this.y39_1.anyNonGreaterThan(_this__u8e3s4, other);
969
+ return this.x39_1.anyNonGreaterThan(_this__u8e3s4, other);
990
970
  };
991
971
  protoOf(PrologWithArgumentationImpl).anyIntDiv = function (_this__u8e3s4, other) {
992
- return this.y39_1.anyIntDiv(_this__u8e3s4, other);
972
+ return this.x39_1.anyIntDiv(_this__u8e3s4, other);
993
973
  };
994
974
  protoOf(PrologWithArgumentationImpl).termRem = function (_this__u8e3s4, other) {
995
- return this.y39_1.termRem(_this__u8e3s4, other);
975
+ return this.x39_1.termRem(_this__u8e3s4, other);
996
976
  };
997
977
  protoOf(PrologWithArgumentationImpl).numberRem = function (_this__u8e3s4, other) {
998
- return this.y39_1.numberRem(_this__u8e3s4, other);
978
+ return this.x39_1.numberRem(_this__u8e3s4, other);
999
979
  };
1000
980
  protoOf(PrologWithArgumentationImpl).booleanRem = function (_this__u8e3s4, other) {
1001
- return this.y39_1.booleanRem(_this__u8e3s4, other);
981
+ return this.x39_1.booleanRem(_this__u8e3s4, other);
1002
982
  };
1003
983
  protoOf(PrologWithArgumentationImpl).charRem = function (_this__u8e3s4, other) {
1004
- return this.y39_1.charRem(_this__u8e3s4, other);
984
+ return this.x39_1.charRem(_this__u8e3s4, other);
1005
985
  };
1006
986
  protoOf(PrologWithArgumentationImpl).stringRem = function (_this__u8e3s4, other) {
1007
- return this.y39_1.stringRem(_this__u8e3s4, other);
987
+ return this.x39_1.stringRem(_this__u8e3s4, other);
1008
988
  };
1009
989
  protoOf(PrologWithArgumentationImpl).anyAnd = function (_this__u8e3s4, other) {
1010
- return this.y39_1.anyAnd(_this__u8e3s4, other);
990
+ return this.x39_1.anyAnd(_this__u8e3s4, other);
1011
991
  };
1012
992
  protoOf(PrologWithArgumentationImpl).anyOr = function (_this__u8e3s4, other) {
1013
- return this.y39_1.anyOr(_this__u8e3s4, other);
993
+ return this.x39_1.anyOr(_this__u8e3s4, other);
1014
994
  };
1015
995
  protoOf(PrologWithArgumentationImpl).anyPow = function (_this__u8e3s4, other) {
1016
- return this.y39_1.anyPow(_this__u8e3s4, other);
996
+ return this.x39_1.anyPow(_this__u8e3s4, other);
1017
997
  };
1018
998
  protoOf(PrologWithArgumentationImpl).anySup = function (_this__u8e3s4, other) {
1019
- return this.y39_1.anySup(_this__u8e3s4, other);
999
+ return this.x39_1.anySup(_this__u8e3s4, other);
1020
1000
  };
1021
1001
  protoOf(PrologWithArgumentationImpl).anyIs = function (_this__u8e3s4, other) {
1022
- return this.y39_1.anyIs(_this__u8e3s4, other);
1002
+ return this.x39_1.anyIs(_this__u8e3s4, other);
1023
1003
  };
1024
1004
  protoOf(PrologWithArgumentationImpl).anyThen = function (_this__u8e3s4, other) {
1025
- return this.y39_1.anyThen(_this__u8e3s4, other);
1005
+ return this.x39_1.anyThen(_this__u8e3s4, other);
1026
1006
  };
1027
1007
  protoOf(PrologWithArgumentationImpl).anyImpliedBy = function (_this__u8e3s4, other) {
1028
- return this.y39_1.anyImpliedBy(_this__u8e3s4, other);
1008
+ return this.x39_1.anyImpliedBy(_this__u8e3s4, other);
1029
1009
  };
1030
1010
  protoOf(PrologWithArgumentationImpl).anyImpliedByVararg = function (_this__u8e3s4, other) {
1031
- return this.y39_1.anyImpliedByVararg(_this__u8e3s4, other);
1011
+ return this.x39_1.anyImpliedByVararg(_this__u8e3s4, other);
1032
1012
  };
1033
1013
  protoOf(PrologWithArgumentationImpl).anyIf = function (_this__u8e3s4, other) {
1034
- return this.y39_1.anyIf(_this__u8e3s4, other);
1014
+ return this.x39_1.anyIf(_this__u8e3s4, other);
1035
1015
  };
1036
1016
  protoOf(PrologWithArgumentationImpl).anyIfVararg = function (_this__u8e3s4, other) {
1037
- return this.y39_1.anyIfVararg(_this__u8e3s4, other);
1017
+ return this.x39_1.anyIfVararg(_this__u8e3s4, other);
1038
1018
  };
1039
1019
  protoOf(PrologWithArgumentationImpl).b1g = function (scope) {
1040
- return this.y39_1.b1g(scope);
1020
+ return this.x39_1.b1g(scope);
1041
1021
  };
1042
1022
  protoOf(PrologWithArgumentationImpl).t1q = function (unificator) {
1043
- return this.y39_1.t1q(unificator);
1023
+ return this.x39_1.t1q(unificator);
1044
1024
  };
1045
1025
  protoOf(PrologWithArgumentationImpl).q1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1046
- return this.y39_1.q1t(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1026
+ return this.x39_1.q1t(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1047
1027
  };
1048
1028
  protoOf(PrologWithArgumentationImpl).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
1049
1029
  return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologWithArgumentationImpl) ? $super : THROW_CCE());
1050
1030
  };
1051
1031
  protoOf(PrologWithArgumentationImpl).getValue = function (thisRef, property) {
1052
- return this.y39_1.getValue(thisRef, property);
1032
+ return this.x39_1.getValue(thisRef, property);
1053
1033
  };
1054
1034
  protoOf(PrologWithArgumentationImpl).d1g = function () {
1055
- return this.y39_1.d1g();
1035
+ return this.x39_1.d1g();
1056
1036
  };
1057
1037
  protoOf(PrologWithArgumentationImpl).e1g = function () {
1058
- return this.y39_1.e1g();
1038
+ return this.x39_1.e1g();
1059
1039
  };
1060
1040
  protoOf(PrologWithArgumentationImpl).anyMguWith = function (_this__u8e3s4, other) {
1061
- return this.y39_1.anyMguWith(_this__u8e3s4, other);
1041
+ return this.x39_1.anyMguWith(_this__u8e3s4, other);
1062
1042
  };
1063
1043
  protoOf(PrologWithArgumentationImpl).anyMatches = function (_this__u8e3s4, other) {
1064
- return this.y39_1.anyMatches(_this__u8e3s4, other);
1044
+ return this.x39_1.anyMatches(_this__u8e3s4, other);
1065
1045
  };
1066
1046
  protoOf(PrologWithArgumentationImpl).anyUnifyWith = function (_this__u8e3s4, other) {
1067
- return this.y39_1.anyUnifyWith(_this__u8e3s4, other);
1047
+ return this.x39_1.anyUnifyWith(_this__u8e3s4, other);
1068
1048
  };
1069
1049
  protoOf(PrologWithArgumentationImpl).w2x = function (term1, term2, occurCheckEnabled) {
1070
- return this.y39_1.w2x(term1, term2, occurCheckEnabled);
1050
+ return this.x39_1.w2x(term1, term2, occurCheckEnabled);
1071
1051
  };
1072
1052
  protoOf(PrologWithArgumentationImpl).u1h = function (term1, term2, occurCheckEnabled) {
1073
- return this.y39_1.u1h(term1, term2, occurCheckEnabled);
1053
+ return this.x39_1.u1h(term1, term2, occurCheckEnabled);
1074
1054
  };
1075
1055
  protoOf(PrologWithArgumentationImpl).mgu = function (term1, term2) {
1076
- return this.y39_1.mgu(term1, term2);
1056
+ return this.x39_1.mgu(term1, term2);
1077
1057
  };
1078
1058
  protoOf(PrologWithArgumentationImpl).x2x = function (term1, term2, occurCheckEnabled) {
1079
- return this.y39_1.x2x(term1, term2, occurCheckEnabled);
1059
+ return this.x39_1.x2x(term1, term2, occurCheckEnabled);
1080
1060
  };
1081
1061
  protoOf(PrologWithArgumentationImpl).matchWithOccurCheck = function (term1, term2, occurCheckEnabled) {
1082
- return this.y39_1.matchWithOccurCheck(term1, term2, occurCheckEnabled);
1062
+ return this.x39_1.matchWithOccurCheck(term1, term2, occurCheckEnabled);
1083
1063
  };
1084
1064
  protoOf(PrologWithArgumentationImpl).match = function (term1, term2) {
1085
- return this.y39_1.match(term1, term2);
1065
+ return this.x39_1.match(term1, term2);
1086
1066
  };
1087
1067
  protoOf(PrologWithArgumentationImpl).y2x = function (term1, term2, occurCheckEnabled) {
1088
- return this.y39_1.y2x(term1, term2, occurCheckEnabled);
1068
+ return this.x39_1.y2x(term1, term2, occurCheckEnabled);
1089
1069
  };
1090
1070
  protoOf(PrologWithArgumentationImpl).unifyWithOccurCheck = function (term1, term2, occurCheckEnabled) {
1091
- return this.y39_1.unifyWithOccurCheck(term1, term2, occurCheckEnabled);
1071
+ return this.x39_1.unifyWithOccurCheck(term1, term2, occurCheckEnabled);
1092
1072
  };
1093
1073
  protoOf(PrologWithArgumentationImpl).unify = function (term1, term2) {
1094
- return this.y39_1.unify(term1, term2);
1074
+ return this.x39_1.unify(term1, term2);
1095
1075
  };
1096
1076
  protoOf(PrologWithArgumentationImpl).b1j = function () {
1097
- return this.y39_1.b1j();
1077
+ return this.x39_1.b1j();
1098
1078
  };
1099
1079
  protoOf(PrologWithArgumentationImpl).mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
1100
- return this.y39_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
1080
+ return this.x39_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
1101
1081
  };
1102
1082
  protoOf(PrologWithArgumentationImpl).merge = function (substitution1, substitution2) {
1103
- return this.y39_1.merge(substitution1, substitution2);
1083
+ return this.x39_1.merge(substitution1, substitution2);
1104
1084
  };
1105
1085
  protoOf(PrologWithArgumentationImpl).convertToClause = function (_this__u8e3s4) {
1106
- return this.y39_1.convertToClause(_this__u8e3s4);
1086
+ return this.x39_1.convertToClause(_this__u8e3s4);
1107
1087
  };
1108
1088
  protoOf(PrologWithArgumentationImpl).theory = function (clauseFunctions) {
1109
- return this.y39_1.theory(clauseFunctions);
1089
+ return this.x39_1.theory(clauseFunctions);
1110
1090
  };
1111
1091
  protoOf(PrologWithArgumentationImpl).theoryOfConcatenatedSequences = function (clauses, otherClauses) {
1112
- return this.y39_1.theoryOfConcatenatedSequences(clauses, otherClauses);
1092
+ return this.x39_1.theoryOfConcatenatedSequences(clauses, otherClauses);
1113
1093
  };
1114
1094
  protoOf(PrologWithArgumentationImpl).theoryOfConcatenatedIterables = function (clauses, otherClauses) {
1115
- return this.y39_1.theoryOfConcatenatedIterables(clauses, otherClauses);
1095
+ return this.x39_1.theoryOfConcatenatedIterables(clauses, otherClauses);
1116
1096
  };
1117
1097
  protoOf(PrologWithArgumentationImpl).theoryOfIterableWithUnificator = function (clauses, unificator) {
1118
- return this.y39_1.theoryOfIterableWithUnificator(clauses, unificator);
1098
+ return this.x39_1.theoryOfIterableWithUnificator(clauses, unificator);
1119
1099
  };
1120
1100
  protoOf(PrologWithArgumentationImpl).theoryOfIterable = function (clauses) {
1121
- return this.y39_1.theoryOfIterable(clauses);
1101
+ return this.x39_1.theoryOfIterable(clauses);
1122
1102
  };
1123
1103
  protoOf(PrologWithArgumentationImpl).theoryOfWithUnificator = function (unificator, clauses) {
1124
- return this.y39_1.theoryOfWithUnificator(unificator, clauses);
1104
+ return this.x39_1.theoryOfWithUnificator(unificator, clauses);
1125
1105
  };
1126
1106
  protoOf(PrologWithArgumentationImpl).theoryOf = function (clauses) {
1127
- return this.y39_1.theoryOf(clauses);
1107
+ return this.x39_1.theoryOf(clauses);
1128
1108
  };
1129
1109
  protoOf(PrologWithArgumentationImpl).theoryOfSequenceWithUnificator = function (clauses, unificator) {
1130
- return this.y39_1.theoryOfSequenceWithUnificator(clauses, unificator);
1110
+ return this.x39_1.theoryOfSequenceWithUnificator(clauses, unificator);
1131
1111
  };
1132
1112
  protoOf(PrologWithArgumentationImpl).theoryOfSequence = function (clauses) {
1133
- return this.y39_1.theoryOfSequence(clauses);
1113
+ return this.x39_1.theoryOfSequence(clauses);
1134
1114
  };
1135
1115
  protoOf(PrologWithArgumentationImpl).mutableTheory = function (clauseFunctions) {
1136
- return this.y39_1.mutableTheory(clauseFunctions);
1116
+ return this.x39_1.mutableTheory(clauseFunctions);
1137
1117
  };
1138
1118
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfConcatenatedSequences = function (clauses, otherClauses) {
1139
- return this.y39_1.mutableTheoryOfConcatenatedSequences(clauses, otherClauses);
1119
+ return this.x39_1.mutableTheoryOfConcatenatedSequences(clauses, otherClauses);
1140
1120
  };
1141
1121
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfConcatenatedIterables = function (clauses, otherClauses) {
1142
- return this.y39_1.mutableTheoryOfConcatenatedIterables(clauses, otherClauses);
1122
+ return this.x39_1.mutableTheoryOfConcatenatedIterables(clauses, otherClauses);
1143
1123
  };
1144
1124
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfIterableWithUnificator = function (clauses, unificator) {
1145
- return this.y39_1.mutableTheoryOfIterableWithUnificator(clauses, unificator);
1125
+ return this.x39_1.mutableTheoryOfIterableWithUnificator(clauses, unificator);
1146
1126
  };
1147
1127
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfIterable = function (clauses) {
1148
- return this.y39_1.mutableTheoryOfIterable(clauses);
1128
+ return this.x39_1.mutableTheoryOfIterable(clauses);
1149
1129
  };
1150
1130
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfWithUnificator = function (unificator, clauses) {
1151
- return this.y39_1.mutableTheoryOfWithUnificator(unificator, clauses);
1131
+ return this.x39_1.mutableTheoryOfWithUnificator(unificator, clauses);
1152
1132
  };
1153
1133
  protoOf(PrologWithArgumentationImpl).mutableTheoryOf = function (clauses) {
1154
- return this.y39_1.mutableTheoryOf(clauses);
1134
+ return this.x39_1.mutableTheoryOf(clauses);
1155
1135
  };
1156
1136
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfSequenceWithUnificator = function (clauses, unificator) {
1157
- return this.y39_1.mutableTheoryOfSequenceWithUnificator(clauses, unificator);
1137
+ return this.x39_1.mutableTheoryOfSequenceWithUnificator(clauses, unificator);
1158
1138
  };
1159
1139
  protoOf(PrologWithArgumentationImpl).mutableTheoryOfSequence = function (clauses) {
1160
- return this.y39_1.mutableTheoryOfSequence(clauses);
1140
+ return this.x39_1.mutableTheoryOfSequence(clauses);
1161
1141
  };
1162
1142
  protoOf(PrologWithArgumentationImpl).emptyTheoryWithUnificator = function (unificator) {
1163
- return this.y39_1.emptyTheoryWithUnificator(unificator);
1143
+ return this.x39_1.emptyTheoryWithUnificator(unificator);
1164
1144
  };
1165
1145
  protoOf(PrologWithArgumentationImpl).emptyTheory = function () {
1166
- return this.y39_1.emptyTheory();
1146
+ return this.x39_1.emptyTheory();
1167
1147
  };
1168
1148
  protoOf(PrologWithArgumentationImpl).emptyMutableTheoryWithUnificator = function (unificator) {
1169
- return this.y39_1.emptyMutableTheoryWithUnificator(unificator);
1149
+ return this.x39_1.emptyMutableTheoryWithUnificator(unificator);
1170
1150
  };
1171
1151
  protoOf(PrologWithArgumentationImpl).emptyMutableTheory = function () {
1172
- return this.y39_1.emptyMutableTheory();
1152
+ return this.x39_1.emptyMutableTheory();
1173
1153
  };
1174
1154
  protoOf(PrologWithArgumentationImpl).m1w = function (unificator, otherLibraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1175
- return this.y39_1.m1w(unificator, otherLibraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1155
+ return this.x39_1.m1w(unificator, otherLibraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1176
1156
  };
1177
1157
  protoOf(PrologWithArgumentationImpl).staticKbByArray = function (clauses) {
1178
- this.y39_1.staticKbByArray(clauses);
1158
+ this.x39_1.staticKbByArray(clauses);
1179
1159
  };
1180
1160
  protoOf(PrologWithArgumentationImpl).staticKbByIterable = function (clauses) {
1181
- this.y39_1.staticKbByIterable(clauses);
1161
+ this.x39_1.staticKbByIterable(clauses);
1182
1162
  };
1183
1163
  protoOf(PrologWithArgumentationImpl).staticKbBySequence = function (clauses) {
1184
- this.y39_1.staticKbBySequence(clauses);
1164
+ this.x39_1.staticKbBySequence(clauses);
1185
1165
  };
1186
1166
  protoOf(PrologWithArgumentationImpl).staticKbByTheory = function (theory) {
1187
- this.y39_1.staticKbByTheory(theory);
1167
+ this.x39_1.staticKbByTheory(theory);
1188
1168
  };
1189
1169
  protoOf(PrologWithArgumentationImpl).b1t = function () {
1190
- return this.y39_1.b1t();
1170
+ return this.x39_1.b1t();
1191
1171
  };
1192
1172
  protoOf(PrologWithArgumentationImpl).dynamicKbByArray = function (clauses) {
1193
- this.y39_1.dynamicKbByArray(clauses);
1173
+ this.x39_1.dynamicKbByArray(clauses);
1194
1174
  };
1195
1175
  protoOf(PrologWithArgumentationImpl).dynamicKbByIterable = function (clauses) {
1196
- this.y39_1.dynamicKbByIterable(clauses);
1176
+ this.x39_1.dynamicKbByIterable(clauses);
1197
1177
  };
1198
1178
  protoOf(PrologWithArgumentationImpl).dynamicKbBySequence = function (clauses) {
1199
- this.y39_1.dynamicKbBySequence(clauses);
1179
+ this.x39_1.dynamicKbBySequence(clauses);
1200
1180
  };
1201
1181
  protoOf(PrologWithArgumentationImpl).dynamicKbByTheory = function (theory) {
1202
- this.y39_1.dynamicKbByTheory(theory);
1182
+ this.x39_1.dynamicKbByTheory(theory);
1203
1183
  };
1204
1184
  protoOf(PrologWithArgumentationImpl).c1t = function () {
1205
- return this.y39_1.c1t();
1185
+ return this.x39_1.c1t();
1206
1186
  };
1207
1187
  protoOf(PrologWithArgumentationImpl).r2y = function () {
1208
- return this.y39_1.r2y();
1188
+ return this.x39_1.r2y();
1209
1189
  };
1210
1190
  protoOf(PrologWithArgumentationImpl).s2y = function () {
1211
- return this.y39_1.s2y();
1191
+ return this.x39_1.s2y();
1212
1192
  };
1213
1193
  protoOf(PrologWithArgumentationImpl).loadLibrary = function (library) {
1214
- this.y39_1.loadLibrary(library);
1194
+ this.x39_1.loadLibrary(library);
1215
1195
  };
1216
1196
  protoOf(PrologWithArgumentationImpl).unloadLibrary = function (library) {
1217
- this.y39_1.unloadLibrary(library);
1197
+ this.x39_1.unloadLibrary(library);
1218
1198
  };
1219
1199
  protoOf(PrologWithArgumentationImpl).setLibraries = function (libraries) {
1220
- this.y39_1.setLibraries(libraries);
1200
+ this.x39_1.setLibraries(libraries);
1221
1201
  };
1222
1202
  protoOf(PrologWithArgumentationImpl).loadStaticKb = function (theory) {
1223
- this.y39_1.loadStaticKb(theory);
1203
+ this.x39_1.loadStaticKb(theory);
1224
1204
  };
1225
1205
  protoOf(PrologWithArgumentationImpl).loadStaticClauses = function (clauses) {
1226
- this.y39_1.loadStaticClauses(clauses);
1206
+ this.x39_1.loadStaticClauses(clauses);
1227
1207
  };
1228
1208
  protoOf(PrologWithArgumentationImpl).loadStaticClausesIterable = function (clauses) {
1229
- this.y39_1.loadStaticClausesIterable(clauses);
1209
+ this.x39_1.loadStaticClausesIterable(clauses);
1230
1210
  };
1231
1211
  protoOf(PrologWithArgumentationImpl).loadStaticClausesSequence = function (clauses) {
1232
- this.y39_1.loadStaticClausesSequence(clauses);
1212
+ this.x39_1.loadStaticClausesSequence(clauses);
1233
1213
  };
1234
1214
  protoOf(PrologWithArgumentationImpl).appendStaticKb = function (theory) {
1235
- this.y39_1.appendStaticKb(theory);
1215
+ this.x39_1.appendStaticKb(theory);
1236
1216
  };
1237
1217
  protoOf(PrologWithArgumentationImpl).resetStaticKb = function () {
1238
- this.y39_1.resetStaticKb();
1218
+ this.x39_1.resetStaticKb();
1239
1219
  };
1240
1220
  protoOf(PrologWithArgumentationImpl).loadDynamicKb = function (theory) {
1241
- this.y39_1.loadDynamicKb(theory);
1221
+ this.x39_1.loadDynamicKb(theory);
1242
1222
  };
1243
1223
  protoOf(PrologWithArgumentationImpl).loadDynamicClauses = function (clauses) {
1244
- this.y39_1.loadDynamicClauses(clauses);
1224
+ this.x39_1.loadDynamicClauses(clauses);
1245
1225
  };
1246
1226
  protoOf(PrologWithArgumentationImpl).loadDynamicClausesIterable = function (clauses) {
1247
- this.y39_1.loadDynamicClausesIterable(clauses);
1227
+ this.x39_1.loadDynamicClausesIterable(clauses);
1248
1228
  };
1249
1229
  protoOf(PrologWithArgumentationImpl).loadDynamicClausesSequence = function (clauses) {
1250
- this.y39_1.loadDynamicClausesSequence(clauses);
1230
+ this.x39_1.loadDynamicClausesSequence(clauses);
1251
1231
  };
1252
1232
  protoOf(PrologWithArgumentationImpl).appendDynamicKb = function (theory) {
1253
- this.y39_1.appendDynamicKb(theory);
1233
+ this.x39_1.appendDynamicKb(theory);
1254
1234
  };
1255
1235
  protoOf(PrologWithArgumentationImpl).resetDynamicKb = function () {
1256
- this.y39_1.resetDynamicKb();
1236
+ this.x39_1.resetDynamicKb();
1257
1237
  };
1258
1238
  protoOf(PrologWithArgumentationImpl).assertA = function (clause) {
1259
- this.y39_1.assertA(clause);
1239
+ this.x39_1.assertA(clause);
1260
1240
  };
1261
1241
  protoOf(PrologWithArgumentationImpl).assertAFact = function (fact) {
1262
- this.y39_1.assertAFact(fact);
1242
+ this.x39_1.assertAFact(fact);
1263
1243
  };
1264
1244
  protoOf(PrologWithArgumentationImpl).assertZ = function (clause) {
1265
- this.y39_1.assertZ(clause);
1245
+ this.x39_1.assertZ(clause);
1266
1246
  };
1267
1247
  protoOf(PrologWithArgumentationImpl).assertZFact = function (fact) {
1268
- this.y39_1.assertZFact(fact);
1248
+ this.x39_1.assertZFact(fact);
1269
1249
  };
1270
1250
  protoOf(PrologWithArgumentationImpl).retractAll = function (clause) {
1271
- return this.y39_1.retractAll(clause);
1251
+ return this.x39_1.retractAll(clause);
1272
1252
  };
1273
1253
  protoOf(PrologWithArgumentationImpl).retractAllBeHead = function (fact) {
1274
- return this.y39_1.retractAllBeHead(fact);
1254
+ return this.x39_1.retractAllBeHead(fact);
1275
1255
  };
1276
1256
  protoOf(PrologWithArgumentationImpl).setFlag = function (name, value) {
1277
- this.y39_1.setFlag(name, value);
1257
+ this.x39_1.setFlag(name, value);
1278
1258
  };
1279
1259
  protoOf(PrologWithArgumentationImpl).setFlagPair = function (flag) {
1280
- this.y39_1.setFlagPair(flag);
1260
+ this.x39_1.setFlagPair(flag);
1281
1261
  };
1282
1262
  protoOf(PrologWithArgumentationImpl).setFlagNotable = function (flag) {
1283
- this.y39_1.setFlagNotable(flag);
1263
+ this.x39_1.setFlagNotable(flag);
1284
1264
  };
1285
1265
  protoOf(PrologWithArgumentationImpl).setStandardInput = function (stdIn) {
1286
- this.y39_1.setStandardInput(stdIn);
1266
+ this.x39_1.setStandardInput(stdIn);
1287
1267
  };
1288
1268
  protoOf(PrologWithArgumentationImpl).setStandardError = function (stdErr) {
1289
- this.y39_1.setStandardError(stdErr);
1269
+ this.x39_1.setStandardError(stdErr);
1290
1270
  };
1291
1271
  protoOf(PrologWithArgumentationImpl).setStandardOutput = function (stdOut) {
1292
- this.y39_1.setStandardOutput(stdOut);
1272
+ this.x39_1.setStandardOutput(stdOut);
1293
1273
  };
1294
1274
  protoOf(PrologWithArgumentationImpl).setWarnings = function (warnings) {
1295
- this.y39_1.setWarnings(warnings);
1275
+ this.x39_1.setWarnings(warnings);
1296
1276
  };
1297
1277
  protoOf(PrologWithArgumentationImpl).q1q = function () {
1298
- return this.y39_1.q1q();
1278
+ return this.x39_1.q1q();
1299
1279
  };
1300
1280
  protoOf(PrologWithArgumentationImpl).clone = function () {
1301
1281
  return this.q1q();
1302
1282
  };
1303
1283
  protoOf(PrologWithArgumentationImpl).solveListWithTimeout = function (goal, timeout) {
1304
- return this.y39_1.solveListWithTimeout(goal, timeout);
1284
+ return this.x39_1.solveListWithTimeout(goal, timeout);
1305
1285
  };
1306
1286
  protoOf(PrologWithArgumentationImpl).solveList = function (goal) {
1307
- return this.y39_1.solveList(goal);
1287
+ return this.x39_1.solveList(goal);
1308
1288
  };
1309
1289
  protoOf(PrologWithArgumentationImpl).solveListWithOptions = function (goal, options) {
1310
- return this.y39_1.solveListWithOptions(goal, options);
1290
+ return this.x39_1.solveListWithOptions(goal, options);
1311
1291
  };
1312
1292
  protoOf(PrologWithArgumentationImpl).solveOnceWithTimeout = function (goal, timeout) {
1313
- return this.y39_1.solveOnceWithTimeout(goal, timeout);
1293
+ return this.x39_1.solveOnceWithTimeout(goal, timeout);
1314
1294
  };
1315
1295
  protoOf(PrologWithArgumentationImpl).solveOnce = function (goal) {
1316
- return this.y39_1.solveOnce(goal);
1296
+ return this.x39_1.solveOnce(goal);
1317
1297
  };
1318
1298
  protoOf(PrologWithArgumentationImpl).solveOnceWithOptions = function (goal, options) {
1319
- return this.y39_1.solveOnceWithOptions(goal, options);
1299
+ return this.x39_1.solveOnceWithOptions(goal, options);
1320
1300
  };
1321
1301
  protoOf(PrologWithArgumentationImpl).z1s = function () {
1322
- return this.y39_1.z1s();
1302
+ return this.x39_1.z1s();
1323
1303
  };
1324
1304
  protoOf(PrologWithArgumentationImpl).a1t = function () {
1325
- return this.y39_1.a1t();
1305
+ return this.x39_1.a1t();
1326
1306
  };
1327
1307
  protoOf(PrologWithArgumentationImpl).i1t = function () {
1328
- return this.y39_1.i1t();
1308
+ return this.x39_1.i1t();
1329
1309
  };
1330
1310
  protoOf(PrologWithArgumentationImpl).d1t = function () {
1331
- return this.y39_1.d1t();
1311
+ return this.x39_1.d1t();
1332
1312
  };
1333
1313
  protoOf(PrologWithArgumentationImpl).e1t = function () {
1334
- return this.y39_1.e1t();
1314
+ return this.x39_1.e1t();
1335
1315
  };
1336
1316
  protoOf(PrologWithArgumentationImpl).j1t = function () {
1337
- return this.y39_1.j1t();
1317
+ return this.x39_1.j1t();
1338
1318
  };
1339
1319
  protoOf(PrologWithArgumentationImpl).k1t = function () {
1340
- return this.y39_1.k1t();
1320
+ return this.x39_1.k1t();
1341
1321
  };
1342
1322
  protoOf(PrologWithArgumentationImpl).l1t = function () {
1343
- return this.y39_1.l1t();
1323
+ return this.x39_1.l1t();
1344
1324
  };
1345
1325
  protoOf(PrologWithArgumentationImpl).m1t = function () {
1346
- return this.y39_1.m1t();
1326
+ return this.x39_1.m1t();
1347
1327
  };
1348
1328
  function ArgLibrary() {
1349
1329
  }
@@ -1351,20 +1331,20 @@
1351
1331
  }
1352
1332
  function LazyRawPrologContent$prologTheory$delegate$lambda(this$0) {
1353
1333
  return function () {
1354
- return parseTheoryWithOperators(Companion_instance_0, this$0.c3a(), this$0.i39());
1334
+ return parseTheoryWithOperators(Companion_instance_0, this$0.b3a(), this$0.i39());
1355
1335
  };
1356
1336
  }
1357
1337
  function LazyRawPrologContent$_get_prologTheory_$ref_uti0i4() {
1358
1338
  return function (p0) {
1359
- return p0.d3a();
1339
+ return p0.c3a();
1360
1340
  };
1361
1341
  }
1362
1342
  function LazyRawPrologContent() {
1363
1343
  var tmp = this;
1364
- tmp.b3a_1 = lazy(LazyRawPrologContent$prologTheory$delegate$lambda(this));
1344
+ tmp.a3a_1 = lazy(LazyRawPrologContent$prologTheory$delegate$lambda(this));
1365
1345
  }
1366
- protoOf(LazyRawPrologContent).d3a = function () {
1367
- var tmp0 = this.b3a_1;
1346
+ protoOf(LazyRawPrologContent).c3a = function () {
1347
+ var tmp0 = this.a3a_1;
1368
1348
  var tmp = KProperty1;
1369
1349
  // Inline function 'kotlin.getValue' call
1370
1350
  getPropertyCallableRef('prologTheory', 1, tmp, LazyRawPrologContent$_get_prologTheory_$ref_uti0i4(), null);
@@ -1376,9 +1356,9 @@
1376
1356
  };
1377
1357
  }
1378
1358
  function Cache$CacheGet$solve$slambda(this$0, $term, $request, resultContinuation) {
1379
- this.m3a_1 = this$0;
1380
- this.n3a_1 = $term;
1381
- this.o3a_1 = $request;
1359
+ this.l3a_1 = this$0;
1360
+ this.m3a_1 = $term;
1361
+ this.n3a_1 = $request;
1382
1362
  CoroutineImpl.call(this, resultContinuation);
1383
1363
  }
1384
1364
  protoOf(Cache$CacheGet$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -1399,8 +1379,8 @@
1399
1379
  case 0:
1400
1380
  this.c8_1 = 2;
1401
1381
  this.b8_1 = 1;
1402
- var tmp_0 = this.m3a_1.q3a_1.solve(this.n3a_1.castToStruct());
1403
- suspendResult = this.p3a_1.sc(map(tmp_0, Cache$CacheGet$solve$slambda$lambda(this.o3a_1)), this);
1382
+ var tmp_0 = this.l3a_1.p3a_1.solve(this.m3a_1.castToStruct());
1383
+ suspendResult = this.o3a_1.sc(map(tmp_0, Cache$CacheGet$solve$slambda$lambda(this.n3a_1)), this);
1404
1384
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1405
1385
  return suspendResult;
1406
1386
  }
@@ -1423,8 +1403,8 @@
1423
1403
  while (true);
1424
1404
  };
1425
1405
  protoOf(Cache$CacheGet$solve$slambda).d2o = function ($this$sequence, completion) {
1426
- var i = new Cache$CacheGet$solve$slambda(this.m3a_1, this.n3a_1, this.o3a_1, completion);
1427
- i.p3a_1 = $this$sequence;
1406
+ var i = new Cache$CacheGet$solve$slambda(this.l3a_1, this.m3a_1, this.n3a_1, completion);
1407
+ i.o3a_1 = $this$sequence;
1428
1408
  return i;
1429
1409
  };
1430
1410
  function Cache$CacheGet$solve$slambda_0(this$0, $term, $request, resultContinuation) {
@@ -1436,45 +1416,45 @@
1436
1416
  return l;
1437
1417
  }
1438
1418
  function CacheAssert($outer) {
1439
- this.t3a_1 = $outer;
1440
- this.s3a_1 = new Signature('cache_assert', 1);
1419
+ this.s3a_1 = $outer;
1420
+ this.r3a_1 = new Signature('cache_assert', 1);
1441
1421
  }
1442
1422
  protoOf(CacheAssert).m1s = function () {
1443
- return this.s3a_1;
1423
+ return this.r3a_1;
1444
1424
  };
1445
1425
  protoOf(CacheAssert).g2e = function (request) {
1446
1426
  var term = request.arguments.w(0);
1447
- this.t3a_1.q3a_1.assertAFact(term.castToStruct());
1427
+ this.s3a_1.p3a_1.assertAFact(term.castToStruct());
1448
1428
  return sequenceOf(request.replyWithCondition(true, VOID, []));
1449
1429
  };
1450
1430
  protoOf(CacheAssert).solve = function (request) {
1451
1431
  return this.g2e(request);
1452
1432
  };
1453
1433
  function CacheRetract($outer) {
1454
- this.v3a_1 = $outer;
1455
- this.u3a_1 = new Signature('cache_retract', 1);
1434
+ this.u3a_1 = $outer;
1435
+ this.t3a_1 = new Signature('cache_retract', 1);
1456
1436
  }
1457
1437
  protoOf(CacheRetract).m1s = function () {
1458
- return this.u3a_1;
1438
+ return this.t3a_1;
1459
1439
  };
1460
1440
  protoOf(CacheRetract).g2e = function (request) {
1461
1441
  var term = request.arguments.w(0);
1462
- this.v3a_1.q3a_1.retractAllBeHead(term.castToStruct());
1442
+ this.u3a_1.p3a_1.retractAllBeHead(term.castToStruct());
1463
1443
  return sequenceOf(request.replyWithCondition(true, VOID, []));
1464
1444
  };
1465
1445
  protoOf(CacheRetract).solve = function (request) {
1466
1446
  return this.g2e(request);
1467
1447
  };
1468
1448
  function CacheGet($outer) {
1469
- this.x3a_1 = $outer;
1470
- this.w3a_1 = new Signature('cache_check', 1);
1449
+ this.w3a_1 = $outer;
1450
+ this.v3a_1 = new Signature('cache_check', 1);
1471
1451
  }
1472
1452
  protoOf(CacheGet).m1s = function () {
1473
- return this.w3a_1;
1453
+ return this.v3a_1;
1474
1454
  };
1475
1455
  protoOf(CacheGet).g2e = function (request) {
1476
1456
  var term = request.arguments.w(0);
1477
- return sequence(Cache$CacheGet$solve$slambda_0(this.x3a_1, term, request, null));
1457
+ return sequence(Cache$CacheGet$solve$slambda_0(this.w3a_1, term, request, null));
1478
1458
  };
1479
1459
  protoOf(CacheGet).solve = function (request) {
1480
1460
  return this.g2e(request);
@@ -1482,18 +1462,18 @@
1482
1462
  function Cache() {
1483
1463
  var tmp = this;
1484
1464
  // Inline function 'kotlin.also' call
1485
- var this_0 = ClassicSolverFactory_instance.rawMutableSolverOf(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.empty(Companion_getInstance_2().u1i()));
1465
+ var this_0 = ClassicSolverFactory_instance.rawMutableSolverOf(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.empty(Companion_getInstance_1().u1i()));
1486
1466
  this_0.setFlag(Unknown_getInstance().g27_1, Unknown_getInstance().f27_1);
1487
- tmp.q3a_1 = this_0;
1488
- this.r3a_1 = 'prolog.argumentation.cache';
1467
+ tmp.p3a_1 = this_0;
1468
+ this.q3a_1 = 'prolog.argumentation.cache';
1489
1469
  }
1490
1470
  protoOf(Cache).y2b = function () {
1491
- return this.r3a_1;
1471
+ return this.q3a_1;
1492
1472
  };
1493
- protoOf(Cache).z39 = function () {
1473
+ protoOf(Cache).y39 = function () {
1494
1474
  // Inline function 'kotlin.let' call
1495
1475
  var primitives = listOf([new CacheAssert(this), new CacheRetract(this), new CacheGet(this)]);
1496
- var tmp = Companion_getInstance_3();
1476
+ var tmp = Companion_getInstance_2();
1497
1477
  // Inline function 'kotlin.collections.associateBy' call
1498
1478
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(primitives, 10)), 16);
1499
1479
  // Inline function 'kotlin.collections.associateByTo' call
@@ -1504,16 +1484,16 @@
1504
1484
  var tmp$ret$0 = element.m1s();
1505
1485
  destination.k4(tmp$ret$0, element);
1506
1486
  }
1507
- return tmp.of(this.r3a_1, destination);
1487
+ return tmp.of(this.q3a_1, destination);
1508
1488
  };
1509
1489
  function Context$DynamicCacheAssert$solve$lambda(this$0, $term) {
1510
1490
  return function ($this$arg2pScope) {
1511
- return ensureNotNull(this$0.a3b_1.h2(this$0.z3a_1)).solve($this$arg2pScope.stringInvoke('asserta', $term, []));
1491
+ return ensureNotNull(this$0.z3a_1.h2(this$0.y3a_1)).solve($this$arg2pScope.stringInvoke('asserta', $term, []));
1512
1492
  };
1513
1493
  }
1514
1494
  function Context$DynamicCacheRetract$solve$lambda(this$0, $term) {
1515
1495
  return function ($this$arg2pScope) {
1516
- return ensureNotNull(this$0.a3b_1.h2(this$0.z3a_1)).solve($this$arg2pScope.stringInvoke('retractall', $term, []));
1496
+ return ensureNotNull(this$0.z3a_1.h2(this$0.y3a_1)).solve($this$arg2pScope.stringInvoke('retractall', $term, []));
1517
1497
  };
1518
1498
  }
1519
1499
  function Context$DynamicCacheGet$solve$slambda$lambda($request) {
@@ -1522,9 +1502,9 @@
1522
1502
  };
1523
1503
  }
1524
1504
  function Context$DynamicCacheGet$solve$slambda(this$0, $term, $request, resultContinuation) {
1525
- this.k3b_1 = this$0;
1526
- this.l3b_1 = $term;
1527
- this.m3b_1 = $request;
1505
+ this.j3b_1 = this$0;
1506
+ this.k3b_1 = $term;
1507
+ this.l3b_1 = $request;
1528
1508
  CoroutineImpl.call(this, resultContinuation);
1529
1509
  }
1530
1510
  protoOf(Context$DynamicCacheGet$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -1545,8 +1525,8 @@
1545
1525
  case 0:
1546
1526
  this.c8_1 = 2;
1547
1527
  this.b8_1 = 1;
1548
- var tmp_0 = ensureNotNull(this.k3b_1.a3b_1.h2(this.k3b_1.z3a_1)).solve(this.l3b_1.castToStruct());
1549
- suspendResult = this.n3b_1.sc(map(tmp_0, Context$DynamicCacheGet$solve$slambda$lambda(this.m3b_1)), this);
1528
+ var tmp_0 = ensureNotNull(this.j3b_1.z3a_1.h2(this.j3b_1.y3a_1)).solve(this.k3b_1.castToStruct());
1529
+ suspendResult = this.m3b_1.sc(map(tmp_0, Context$DynamicCacheGet$solve$slambda$lambda(this.l3b_1)), this);
1550
1530
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1551
1531
  return suspendResult;
1552
1532
  }
@@ -1569,8 +1549,8 @@
1569
1549
  while (true);
1570
1550
  };
1571
1551
  protoOf(Context$DynamicCacheGet$solve$slambda).d2o = function ($this$sequence, completion) {
1572
- var i = new Context$DynamicCacheGet$solve$slambda(this.k3b_1, this.l3b_1, this.m3b_1, completion);
1573
- i.n3b_1 = $this$sequence;
1552
+ var i = new Context$DynamicCacheGet$solve$slambda(this.j3b_1, this.k3b_1, this.l3b_1, completion);
1553
+ i.m3b_1 = $this$sequence;
1574
1554
  return i;
1575
1555
  };
1576
1556
  function Context$DynamicCacheGet$solve$slambda_0(this$0, $term, $request, resultContinuation) {
@@ -1587,10 +1567,10 @@
1587
1567
  };
1588
1568
  }
1589
1569
  function Context$DynamicCacheGetIndexed$solve$slambda(this$0, $index, $term, $request, resultContinuation) {
1590
- this.w3b_1 = this$0;
1591
- this.x3b_1 = $index;
1592
- this.y3b_1 = $term;
1593
- this.z3b_1 = $request;
1570
+ this.v3b_1 = this$0;
1571
+ this.w3b_1 = $index;
1572
+ this.x3b_1 = $term;
1573
+ this.y3b_1 = $request;
1594
1574
  CoroutineImpl.call(this, resultContinuation);
1595
1575
  }
1596
1576
  protoOf(Context$DynamicCacheGetIndexed$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -1611,8 +1591,8 @@
1611
1591
  case 0:
1612
1592
  this.c8_1 = 2;
1613
1593
  this.b8_1 = 1;
1614
- var tmp_0 = ensureNotNull(this.w3b_1.a3b_1.h2(this.x3b_1)).solve(this.y3b_1.castToStruct());
1615
- suspendResult = this.a3c_1.sc(map(tmp_0, Context$DynamicCacheGetIndexed$solve$slambda$lambda(this.z3b_1)), this);
1594
+ var tmp_0 = ensureNotNull(this.v3b_1.z3a_1.h2(this.w3b_1)).solve(this.x3b_1.castToStruct());
1595
+ suspendResult = this.z3b_1.sc(map(tmp_0, Context$DynamicCacheGetIndexed$solve$slambda$lambda(this.y3b_1)), this);
1616
1596
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1617
1597
  return suspendResult;
1618
1598
  }
@@ -1635,8 +1615,8 @@
1635
1615
  while (true);
1636
1616
  };
1637
1617
  protoOf(Context$DynamicCacheGetIndexed$solve$slambda).d2o = function ($this$sequence, completion) {
1638
- var i = new Context$DynamicCacheGetIndexed$solve$slambda(this.w3b_1, this.x3b_1, this.y3b_1, this.z3b_1, completion);
1639
- i.a3c_1 = $this$sequence;
1618
+ var i = new Context$DynamicCacheGetIndexed$solve$slambda(this.v3b_1, this.w3b_1, this.x3b_1, this.y3b_1, completion);
1619
+ i.z3b_1 = $this$sequence;
1640
1620
  return i;
1641
1621
  };
1642
1622
  function Context$DynamicCacheGetIndexed$solve$slambda_0(this$0, $index, $term, $request, resultContinuation) {
@@ -1648,19 +1628,19 @@
1648
1628
  return l;
1649
1629
  }
1650
1630
  function DynamicCacheReset($outer) {
1651
- this.c3c_1 = $outer;
1652
- this.b3c_1 = new Signature('context_reset', 0);
1631
+ this.b3c_1 = $outer;
1632
+ this.a3c_1 = new Signature('context_reset', 0);
1653
1633
  }
1654
1634
  protoOf(DynamicCacheReset).m1s = function () {
1655
- return this.b3c_1;
1635
+ return this.a3c_1;
1656
1636
  };
1657
1637
  protoOf(DynamicCacheReset).g2e = function (request) {
1658
- this.c3c_1.z3a_1 = 0;
1659
- this.c3c_1.y3a_1 = 1;
1660
- this.c3c_1.a3b_1.d3();
1661
- var tmp0 = this.c3c_1.a3b_1;
1638
+ this.b3c_1.y3a_1 = 0;
1639
+ this.b3c_1.x3a_1 = 1;
1640
+ this.b3c_1.z3a_1.d3();
1641
+ var tmp0 = this.b3c_1.z3a_1;
1662
1642
  // Inline function 'kotlin.also' call
1663
- var this_0 = ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.empty(Companion_getInstance_2().u1i()));
1643
+ var this_0 = ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.empty(Companion_getInstance_1().u1i()));
1664
1644
  this_0.setFlag(Unknown_getInstance().g27_1, Unknown_getInstance().f27_1);
1665
1645
  // Inline function 'kotlin.collections.set' call
1666
1646
  tmp0.k4(0, this_0);
@@ -1670,137 +1650,137 @@
1670
1650
  return this.g2e(request);
1671
1651
  };
1672
1652
  function DynamicCacheSelected($outer) {
1673
- this.e3c_1 = $outer;
1674
- this.d3c_1 = new Signature('context_active', 1);
1653
+ this.d3c_1 = $outer;
1654
+ this.c3c_1 = new Signature('context_active', 1);
1675
1655
  }
1676
1656
  protoOf(DynamicCacheSelected).m1s = function () {
1677
- return this.d3c_1;
1657
+ return this.c3c_1;
1678
1658
  };
1679
1659
  protoOf(DynamicCacheSelected).g2e = function (request) {
1680
1660
  var term = request.arguments.w(0);
1681
- return sequenceOf(request.replyWith(Companion_getInstance_4().of(term.castToVar(), Companion_getInstance_5().ofInteger(this.e3c_1.z3a_1)), VOID, []));
1661
+ return sequenceOf(request.replyWith(Companion_getInstance_3().of(term.castToVar(), Companion_getInstance_4().ofInteger(this.d3c_1.y3a_1)), VOID, []));
1682
1662
  };
1683
1663
  protoOf(DynamicCacheSelected).solve = function (request) {
1684
1664
  return this.g2e(request);
1685
1665
  };
1686
1666
  function DynamicCacheCheckout($outer) {
1687
- this.g3c_1 = $outer;
1688
- this.f3c_1 = new Signature('context_checkout', 1);
1667
+ this.f3c_1 = $outer;
1668
+ this.e3c_1 = new Signature('context_checkout', 1);
1689
1669
  }
1690
1670
  protoOf(DynamicCacheCheckout).m1s = function () {
1691
- return this.f3c_1;
1671
+ return this.e3c_1;
1692
1672
  };
1693
1673
  protoOf(DynamicCacheCheckout).g2e = function (request) {
1694
1674
  var target = request.arguments.w(0).castToInteger().py().toInt();
1695
- var result = this.g3c_1.a3b_1.i2().u(target);
1696
- this.g3c_1.z3a_1 = target;
1675
+ var result = this.f3c_1.z3a_1.i2().u(target);
1676
+ this.f3c_1.y3a_1 = target;
1697
1677
  return sequenceOf(request.replyWithCondition(result, VOID, []));
1698
1678
  };
1699
1679
  protoOf(DynamicCacheCheckout).solve = function (request) {
1700
1680
  return this.g2e(request);
1701
1681
  };
1702
1682
  function DynamicCacheBranch($outer) {
1703
- this.i3c_1 = $outer;
1704
- this.h3c_1 = new Signature('context_branch', 2);
1683
+ this.h3c_1 = $outer;
1684
+ this.g3c_1 = new Signature('context_branch', 2);
1705
1685
  }
1706
1686
  protoOf(DynamicCacheBranch).m1s = function () {
1707
- return this.h3c_1;
1687
+ return this.g3c_1;
1708
1688
  };
1709
1689
  protoOf(DynamicCacheBranch).g2e = function (request) {
1710
1690
  var target = request.arguments.w(0).castToInteger().py().toInt();
1711
1691
  var result = request.arguments.w(1);
1712
- var tmp0 = this.i3c_1.a3b_1;
1713
- var tmp2 = this.i3c_1.y3a_1;
1692
+ var tmp0 = this.h3c_1.z3a_1;
1693
+ var tmp2 = this.h3c_1.x3a_1;
1714
1694
  // Inline function 'kotlin.also' call
1715
- var this_0 = ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.ofIterable(Companion_getInstance_2().u1i(), ensureNotNull(this.i3c_1.a3b_1.h2(target)).c1t()));
1695
+ var this_0 = ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.ofIterable(Companion_getInstance_1().u1i(), ensureNotNull(this.h3c_1.z3a_1.h2(target)).c1t()));
1716
1696
  this_0.setFlag(Unknown_getInstance().g27_1, Unknown_getInstance().f27_1);
1717
1697
  // Inline function 'kotlin.collections.set' call
1718
1698
  tmp0.k4(tmp2, this_0);
1719
- var tmp = this.i3c_1;
1720
- var _unary__edvuaz = this.i3c_1.y3a_1;
1721
- this.i3c_1.y3a_1 = _unary__edvuaz + 1 | 0;
1722
- tmp.z3a_1 = _unary__edvuaz;
1723
- return sequenceOf(request.replyWith(Companion_getInstance_4().of(result.castToVar(), Companion_getInstance_5().ofInteger(this.i3c_1.z3a_1)), VOID, []));
1699
+ var tmp = this.h3c_1;
1700
+ var _unary__edvuaz = this.h3c_1.x3a_1;
1701
+ this.h3c_1.x3a_1 = _unary__edvuaz + 1 | 0;
1702
+ tmp.y3a_1 = _unary__edvuaz;
1703
+ return sequenceOf(request.replyWith(Companion_getInstance_3().of(result.castToVar(), Companion_getInstance_4().ofInteger(this.h3c_1.y3a_1)), VOID, []));
1724
1704
  };
1725
1705
  protoOf(DynamicCacheBranch).solve = function (request) {
1726
1706
  return this.g2e(request);
1727
1707
  };
1728
1708
  function DynamicCacheAssert($outer) {
1729
- this.k3c_1 = $outer;
1730
- this.j3c_1 = new Signature('context_assert', 1);
1709
+ this.j3c_1 = $outer;
1710
+ this.i3c_1 = new Signature('context_assert', 1);
1731
1711
  }
1732
1712
  protoOf(DynamicCacheAssert).m1s = function () {
1733
- return this.j3c_1;
1713
+ return this.i3c_1;
1734
1714
  };
1735
1715
  protoOf(DynamicCacheAssert).g2e = function (request) {
1736
1716
  var term = request.arguments.w(0);
1737
- first(arg2pScope(Context$DynamicCacheAssert$solve$lambda(this.k3c_1, term)));
1717
+ first(arg2pScope(Context$DynamicCacheAssert$solve$lambda(this.j3c_1, term)));
1738
1718
  return sequenceOf(request.replyWithCondition(true, VOID, []));
1739
1719
  };
1740
1720
  protoOf(DynamicCacheAssert).solve = function (request) {
1741
1721
  return this.g2e(request);
1742
1722
  };
1743
1723
  function DynamicCacheRetract($outer) {
1744
- this.m3c_1 = $outer;
1745
- this.l3c_1 = new Signature('context_retract', 1);
1724
+ this.l3c_1 = $outer;
1725
+ this.k3c_1 = new Signature('context_retract', 1);
1746
1726
  }
1747
1727
  protoOf(DynamicCacheRetract).m1s = function () {
1748
- return this.l3c_1;
1728
+ return this.k3c_1;
1749
1729
  };
1750
1730
  protoOf(DynamicCacheRetract).g2e = function (request) {
1751
1731
  var term = request.arguments.w(0);
1752
- first(arg2pScope(Context$DynamicCacheRetract$solve$lambda(this.m3c_1, term)));
1732
+ first(arg2pScope(Context$DynamicCacheRetract$solve$lambda(this.l3c_1, term)));
1753
1733
  return sequenceOf(request.replyWithCondition(true, VOID, []));
1754
1734
  };
1755
1735
  protoOf(DynamicCacheRetract).solve = function (request) {
1756
1736
  return this.g2e(request);
1757
1737
  };
1758
1738
  function DynamicCacheGet($outer) {
1759
- this.o3c_1 = $outer;
1760
- this.n3c_1 = new Signature('context_check', 1);
1739
+ this.n3c_1 = $outer;
1740
+ this.m3c_1 = new Signature('context_check', 1);
1761
1741
  }
1762
1742
  protoOf(DynamicCacheGet).m1s = function () {
1763
- return this.n3c_1;
1743
+ return this.m3c_1;
1764
1744
  };
1765
1745
  protoOf(DynamicCacheGet).g2e = function (request) {
1766
1746
  var term = request.arguments.w(0);
1767
- return sequence(Context$DynamicCacheGet$solve$slambda_0(this.o3c_1, term, request, null));
1747
+ return sequence(Context$DynamicCacheGet$solve$slambda_0(this.n3c_1, term, request, null));
1768
1748
  };
1769
1749
  protoOf(DynamicCacheGet).solve = function (request) {
1770
1750
  return this.g2e(request);
1771
1751
  };
1772
1752
  function DynamicCacheGetIndexed($outer) {
1773
- this.q3c_1 = $outer;
1774
- this.p3c_1 = new Signature('context_check', 2);
1753
+ this.p3c_1 = $outer;
1754
+ this.o3c_1 = new Signature('context_check', 2);
1775
1755
  }
1776
1756
  protoOf(DynamicCacheGetIndexed).m1s = function () {
1777
- return this.p3c_1;
1757
+ return this.o3c_1;
1778
1758
  };
1779
1759
  protoOf(DynamicCacheGetIndexed).g2e = function (request) {
1780
1760
  var index = ensureNotNull(request.arguments.w(0).asNumeric()).py().toInt();
1781
1761
  var term = request.arguments.w(1);
1782
- return sequence(Context$DynamicCacheGetIndexed$solve$slambda_0(this.q3c_1, index, term, request, null));
1762
+ return sequence(Context$DynamicCacheGetIndexed$solve$slambda_0(this.p3c_1, index, term, request, null));
1783
1763
  };
1784
1764
  protoOf(DynamicCacheGetIndexed).solve = function (request) {
1785
1765
  return this.g2e(request);
1786
1766
  };
1787
1767
  function Context() {
1788
- this.y3a_1 = 1;
1789
- this.z3a_1 = 0;
1768
+ this.x3a_1 = 1;
1769
+ this.y3a_1 = 0;
1790
1770
  var tmp = this;
1791
1771
  // Inline function 'kotlin.also' call
1792
- var this_0 = ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.empty(Companion_getInstance_2().u1i()));
1772
+ var this_0 = ClassicSolverFactory_instance.mutableSolverWithDefaultBuiltinsAnd(VOID, VOID, VOID, Companion_instance_0.emptyWithDefaultUnificator(), Companion_instance_2.empty(Companion_getInstance_1().u1i()));
1793
1773
  this_0.setFlag(Unknown_getInstance().g27_1, Unknown_getInstance().f27_1);
1794
- tmp.a3b_1 = mutableMapOf([to(0, this_0)]);
1795
- this.b3b_1 = 'prolog.argumentation.context';
1774
+ tmp.z3a_1 = mutableMapOf([to(0, this_0)]);
1775
+ this.a3b_1 = 'prolog.argumentation.context';
1796
1776
  }
1797
1777
  protoOf(Context).y2b = function () {
1798
- return this.b3b_1;
1778
+ return this.a3b_1;
1799
1779
  };
1800
- protoOf(Context).z39 = function () {
1780
+ protoOf(Context).y39 = function () {
1801
1781
  // Inline function 'kotlin.let' call
1802
1782
  var primitives = listOf([new DynamicCacheReset(this), new DynamicCacheCheckout(this), new DynamicCacheSelected(this), new DynamicCacheBranch(this), new DynamicCacheAssert(this), new DynamicCacheRetract(this), new DynamicCacheGet(this), new DynamicCacheGetIndexed(this)]);
1803
- var tmp = Companion_getInstance_3();
1783
+ var tmp = Companion_getInstance_2();
1804
1784
  // Inline function 'kotlin.collections.associateBy' call
1805
1785
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(primitives, 10)), 16);
1806
1786
  // Inline function 'kotlin.collections.associateByTo' call
@@ -1811,7 +1791,7 @@
1811
1791
  var tmp$ret$0 = element.m1s();
1812
1792
  destination.k4(tmp$ret$0, element);
1813
1793
  }
1814
- return tmp.of(this.b3b_1, destination);
1794
+ return tmp.of(this.a3b_1, destination);
1815
1795
  };
1816
1796
  function DynamicLoader$AbstractWithLib$solve$slambda$lambda($request) {
1817
1797
  return function (it) {
@@ -1819,9 +1799,9 @@
1819
1799
  };
1820
1800
  }
1821
1801
  function DynamicLoader$AbstractWithLib$solve$slambda($solver, $goal, $request, resultContinuation) {
1822
- this.z3c_1 = $solver;
1823
- this.a3d_1 = $goal;
1824
- this.b3d_1 = $request;
1802
+ this.y3c_1 = $solver;
1803
+ this.z3c_1 = $goal;
1804
+ this.a3d_1 = $request;
1825
1805
  CoroutineImpl.call(this, resultContinuation);
1826
1806
  }
1827
1807
  protoOf(DynamicLoader$AbstractWithLib$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -1842,8 +1822,8 @@
1842
1822
  case 0:
1843
1823
  this.c8_1 = 2;
1844
1824
  this.b8_1 = 1;
1845
- var tmp_0 = this.z3c_1.solveWithOptions(this.a3d_1, Companion_getInstance_6().allLazilyWithTimeout(9223372036854775807n));
1846
- suspendResult = this.c3d_1.sc(map(tmp_0, DynamicLoader$AbstractWithLib$solve$slambda$lambda(this.b3d_1)), this);
1825
+ var tmp_0 = this.y3c_1.solveWithOptions(this.z3c_1, Companion_getInstance_5().allLazilyWithTimeout(9223372036854775807n));
1826
+ suspendResult = this.b3d_1.sc(map(tmp_0, DynamicLoader$AbstractWithLib$solve$slambda$lambda(this.a3d_1)), this);
1847
1827
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1848
1828
  return suspendResult;
1849
1829
  }
@@ -1866,8 +1846,8 @@
1866
1846
  while (true);
1867
1847
  };
1868
1848
  protoOf(DynamicLoader$AbstractWithLib$solve$slambda).d2o = function ($this$sequence, completion) {
1869
- var i = new DynamicLoader$AbstractWithLib$solve$slambda(this.z3c_1, this.a3d_1, this.b3d_1, completion);
1870
- i.c3d_1 = $this$sequence;
1849
+ var i = new DynamicLoader$AbstractWithLib$solve$slambda(this.y3c_1, this.z3c_1, this.a3d_1, completion);
1850
+ i.b3d_1 = $this$sequence;
1871
1851
  return i;
1872
1852
  };
1873
1853
  function DynamicLoader$AbstractWithLib$solve$slambda_0($solver, $goal, $request, resultContinuation) {
@@ -1894,7 +1874,7 @@
1894
1874
  };
1895
1875
  }
1896
1876
  function AbstractWithLib($outer) {
1897
- this.d3d_1 = $outer;
1877
+ this.c3d_1 = $outer;
1898
1878
  }
1899
1879
  protoOf(AbstractWithLib).g2e = function (request) {
1900
1880
  var lib = request.arguments.w(0);
@@ -1905,14 +1885,14 @@
1905
1885
  if (!isInterface(goal, Struct)) {
1906
1886
  throw Companion_instance_3.forGoal(request.context, request.signature, Expected_CALLABLE_getInstance(), goal);
1907
1887
  }
1908
- var tmp0 = this.d3d_1.f3d_1.b39();
1888
+ var tmp0 = this.c3d_1.e3d_1.b39();
1909
1889
  var tmp$ret$1;
1910
1890
  $l$block: {
1911
1891
  // Inline function 'kotlin.collections.firstOrNull' call
1912
1892
  var _iterator__ex2g4s = tmp0.p();
1913
1893
  while (_iterator__ex2g4s.s()) {
1914
1894
  var element = _iterator__ex2g4s.t();
1915
- if ((isInterface(element, Loadable) ? element : THROW_CCE()).a3a() === lib.toString()) {
1895
+ if ((isInterface(element, Loadable) ? element : THROW_CCE()).z39() === lib.toString()) {
1916
1896
  tmp$ret$1 = element;
1917
1897
  break $l$block;
1918
1898
  }
@@ -1937,7 +1917,7 @@
1937
1917
  while (_iterator__ex2g4s_0.s()) {
1938
1918
  var element_0 = _iterator__ex2g4s_0.t();
1939
1919
  // Inline function 'kotlin.collections.map' call
1940
- var this_0 = this.d3d_1.f3d_1.b39();
1920
+ var this_0 = this.c3d_1.e3d_1.b39();
1941
1921
  // Inline function 'kotlin.collections.mapTo' call
1942
1922
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1943
1923
  var _iterator__ex2g4s_1 = this_0.p();
@@ -1951,32 +1931,32 @@
1951
1931
  }
1952
1932
  }
1953
1933
  var solver = request.context.createMutableSolver(VOID, tmp_0.ofIterable(destination).plusLibrary(library.h39()), VOID, request.context.b1t());
1954
- this.e3d(lib.toString(), solver);
1934
+ this.d3d(lib.toString(), solver);
1955
1935
  return sequence(DynamicLoader$AbstractWithLib$solve$slambda_0(solver, goal, request, null));
1956
1936
  };
1957
1937
  protoOf(AbstractWithLib).solve = function (request) {
1958
1938
  return this.g2e(request);
1959
1939
  };
1960
1940
  function WithLib($outer) {
1961
- this.k3d_1 = $outer;
1941
+ this.j3d_1 = $outer;
1962
1942
  AbstractWithLib.call(this, $outer);
1963
- this.j3d_1 = new Signature('::', 2);
1943
+ this.i3d_1 = new Signature('::', 2);
1964
1944
  }
1965
1945
  protoOf(WithLib).m1s = function () {
1966
- return this.j3d_1;
1946
+ return this.i3d_1;
1967
1947
  };
1968
- protoOf(WithLib).e3d = function (module_0, solver) {
1948
+ protoOf(WithLib).d3d = function (module_0, solver) {
1969
1949
  return Unit_instance;
1970
1950
  };
1971
1951
  function WithLibInNewContext($outer) {
1972
- this.n3d_1 = $outer;
1952
+ this.m3d_1 = $outer;
1973
1953
  AbstractWithLib.call(this, $outer);
1974
- this.m3d_1 = new Signature(':::', 2);
1954
+ this.l3d_1 = new Signature(':::', 2);
1975
1955
  }
1976
1956
  protoOf(WithLibInNewContext).m1s = function () {
1977
- return this.m3d_1;
1957
+ return this.l3d_1;
1978
1958
  };
1979
- protoOf(WithLibInNewContext).e3d = function (module_0, solver) {
1959
+ protoOf(WithLibInNewContext).d3d = function (module_0, solver) {
1980
1960
  return logicProgramming(DynamicLoader$WithLibInNewContext$execute$lambda(solver));
1981
1961
  };
1982
1962
  function Companion_0() {
@@ -1989,17 +1969,17 @@
1989
1969
  return Companion_instance_8;
1990
1970
  }
1991
1971
  function DynamicLoader(solver) {
1992
- this.f3d_1 = solver;
1993
- this.g3d_1 = 'prolog.argumentation.loader';
1994
- this.h3d_1 = Companion_instance_8.d39();
1972
+ this.e3d_1 = solver;
1973
+ this.f3d_1 = 'prolog.argumentation.loader';
1974
+ this.g3d_1 = Companion_instance_8.d39();
1995
1975
  }
1996
1976
  protoOf(DynamicLoader).y2b = function () {
1997
- return this.g3d_1;
1977
+ return this.f3d_1;
1998
1978
  };
1999
- protoOf(DynamicLoader).z39 = function () {
1979
+ protoOf(DynamicLoader).y39 = function () {
2000
1980
  // Inline function 'kotlin.let' call
2001
1981
  var it = listOf([new WithLib(this), new WithLibInNewContext(this)]);
2002
- var tmp = Companion_getInstance_3();
1982
+ var tmp = Companion_getInstance_2();
2003
1983
  // Inline function 'kotlin.collections.associateBy' call
2004
1984
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(it, 10)), 16);
2005
1985
  // Inline function 'kotlin.collections.associateByTo' call
@@ -2010,55 +1990,55 @@
2010
1990
  var tmp$ret$0 = element.m1s();
2011
1991
  destination.k4(tmp$ret$0, element);
2012
1992
  }
2013
- return tmp.of(this.g3d_1, destination, VOID, Companion_instance_8.d39());
1993
+ return tmp.of(this.f3d_1, destination, VOID, Companion_instance_8.d39());
2014
1994
  };
2015
1995
  protoOf(DynamicLoader).i39 = function () {
2016
- return this.h3d_1;
1996
+ return this.g3d_1;
2017
1997
  };
2018
1998
  function EngineInterfaceBase() {
2019
1999
  LazyRawPrologContent.call(this);
2020
- this.p3d_1 = 'prolog.argumentation.interface';
2021
- this.q3d_1 = Companion_instance_10.d39().plusOperatorSet(Companion_instance_8.d39()).plusOperatorSet(Companion_getInstance_1().DEFAULT);
2000
+ this.o3d_1 = 'prolog.argumentation.interface';
2001
+ this.p3d_1 = Companion_instance_10.d39().plusOperatorSet(Companion_instance_8.d39()).plusOperatorSet(Companion_getInstance_0().DEFAULT);
2022
2002
  }
2023
2003
  protoOf(EngineInterfaceBase).y2b = function () {
2024
- return this.p3d_1;
2004
+ return this.o3d_1;
2025
2005
  };
2026
- protoOf(EngineInterfaceBase).z39 = function () {
2027
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a(), Companion_instance_10.d39());
2006
+ protoOf(EngineInterfaceBase).y39 = function () {
2007
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a(), Companion_instance_10.d39());
2028
2008
  };
2029
2009
  protoOf(EngineInterfaceBase).i39 = function () {
2030
- return this.q3d_1;
2010
+ return this.p3d_1;
2031
2011
  };
2032
2012
  function Companion_1() {
2033
2013
  }
2034
- protoOf(Companion_1).r3d = function (target) {
2014
+ protoOf(Companion_1).q3d = function (target) {
2035
2015
  // Inline function 'kotlin.also' call
2036
- var this_0 = Companion_instance_2.empty(Companion_getInstance_2().u1i());
2016
+ var this_0 = Companion_instance_2.empty(Companion_getInstance_1().u1i());
2037
2017
  $l$block: {
2038
- if (target.j39_1) {
2018
+ if (target.l39_1) {
2039
2019
  break $l$block;
2040
2020
  }
2041
2021
  // Inline function 'kotlin.collections.forEach' call
2042
- var _iterator__ex2g4s = target.t39_1.p();
2022
+ var _iterator__ex2g4s = target.v39_1.p();
2043
2023
  while (_iterator__ex2g4s.s()) {
2044
2024
  var element = _iterator__ex2g4s.t();
2045
- this_0.g1q(parseClause(Companion_getInstance_7(), GraphExtension_instance.s3d() + '(X) :- X = ' + element));
2025
+ this_0.g1q(parseClause(Companion_getInstance_6(), GraphExtension_instance.r3d() + '(X) :- X = ' + element));
2046
2026
  }
2047
- if (target.k39_1) {
2048
- this_0.g1r(parseStruct(Companion_getInstance(), QueryMode_instance.s3d()));
2027
+ if (target.m39_1) {
2028
+ this_0.g1r(parseStruct(Companion_getInstance_7(), QueryMode_instance.r3d()));
2049
2029
  }
2050
- if (target.l39_1) {
2051
- this_0.g1r(parseStruct(Companion_getInstance(), AutoTransposition_instance.s3d()));
2030
+ if (target.n39_1) {
2031
+ this_0.g1r(parseStruct(Companion_getInstance_7(), AutoTransposition_instance.r3d()));
2052
2032
  }
2053
- if (target.m39_1) {
2054
- this_0.g1r(parseStruct(Companion_getInstance(), PrologStrictCompatibility_instance.s3d()));
2033
+ if (target.o39_1) {
2034
+ this_0.g1r(parseStruct(Companion_getInstance_7(), PrologStrictCompatibility_instance.r3d()));
2055
2035
  }
2056
- this_0.g1r(parseStruct(Companion_getInstance(), GraphBuildMode_instance.s3d() + '(' + target.n39_1 + ')'));
2057
- this_0.g1r(parseStruct(Companion_getInstance(), ArgumentLabellingMode_instance.s3d() + '(' + target.o39_1 + ')'));
2058
- this_0.g1r(parseStruct(Companion_getInstance(), StatementLabellingMode_instance.s3d() + '(' + target.p39_1 + ')'));
2059
- this_0.g1r(parseStruct(Companion_getInstance(), OrderingPrinciple_instance.s3d() + '(' + target.q39_1 + ')'));
2060
- this_0.g1r(parseStruct(Companion_getInstance(), OrderingComparator_instance.s3d() + '(' + target.r39_1 + ')'));
2061
- this_0.g1r(parseStruct(Companion_getInstance(), ModulesPath_instance.s3d() + '(' + target.s39_1 + ')'));
2036
+ this_0.g1r(parseStruct(Companion_getInstance_7(), GraphBuildMode_instance.r3d() + '(' + target.p39_1 + ')'));
2037
+ this_0.g1r(parseStruct(Companion_getInstance_7(), ArgumentLabellingMode_instance.r3d() + '(' + target.q39_1 + ')'));
2038
+ this_0.g1r(parseStruct(Companion_getInstance_7(), StatementLabellingMode_instance.r3d() + '(' + target.r39_1 + ')'));
2039
+ this_0.g1r(parseStruct(Companion_getInstance_7(), OrderingPrinciple_instance.r3d() + '(' + target.s39_1 + ')'));
2040
+ this_0.g1r(parseStruct(Companion_getInstance_7(), OrderingComparator_instance.r3d() + '(' + target.t39_1 + ')'));
2041
+ this_0.g1r(parseStruct(Companion_getInstance_7(), ModulesPath_instance.r3d() + '(' + target.u39_1 + ')'));
2062
2042
  }
2063
2043
  return this_0;
2064
2044
  };
@@ -2067,57 +2047,57 @@
2067
2047
  return Companion_instance_9;
2068
2048
  }
2069
2049
  function FlagsBuilder$create$1(this$0) {
2070
- this.u3d_1 = this$0;
2071
- this.t3d_1 = 'prolog.argumentation.flags';
2050
+ this.t3d_1 = this$0;
2051
+ this.s3d_1 = 'prolog.argumentation.flags';
2072
2052
  }
2073
2053
  protoOf(FlagsBuilder$create$1).y2b = function () {
2074
- return this.t3d_1;
2054
+ return this.s3d_1;
2075
2055
  };
2076
- protoOf(FlagsBuilder$create$1).z39 = function () {
2077
- return Companion_getInstance_3().of(this.t3d_1, VOID, Companion_instance_9.r3d(this.u3d_1));
2056
+ protoOf(FlagsBuilder$create$1).y39 = function () {
2057
+ return Companion_getInstance_2().of(this.s3d_1, VOID, Companion_instance_9.q3d(this.t3d_1));
2078
2058
  };
2079
2059
  function FlagsBuilder(emptyBuilder, queryMode, autoTransposition, prologStrictCompatibility, graphBuildMode, argumentLabellingMode, statementLabellingMode, orderingPrinciple, orderingComparator, modulesPath, graphExtensions) {
2080
2060
  emptyBuilder = emptyBuilder === VOID ? false : emptyBuilder;
2081
- queryMode = queryMode === VOID ? QueryMode_instance.v3d() : queryMode;
2082
- autoTransposition = autoTransposition === VOID ? AutoTransposition_instance.v3d() : autoTransposition;
2083
- prologStrictCompatibility = prologStrictCompatibility === VOID ? PrologStrictCompatibility_instance.v3d() : prologStrictCompatibility;
2084
- graphBuildMode = graphBuildMode === VOID ? GraphBuildMode_instance.v3d() : graphBuildMode;
2085
- argumentLabellingMode = argumentLabellingMode === VOID ? ArgumentLabellingMode_instance.v3d() : argumentLabellingMode;
2086
- statementLabellingMode = statementLabellingMode === VOID ? StatementLabellingMode_instance.v3d() : statementLabellingMode;
2087
- orderingPrinciple = orderingPrinciple === VOID ? OrderingPrinciple_instance.v3d() : orderingPrinciple;
2088
- orderingComparator = orderingComparator === VOID ? OrderingComparator_instance.v3d() : orderingComparator;
2089
- modulesPath = modulesPath === VOID ? ModulesPath_instance.v3d() : modulesPath;
2090
- graphExtensions = graphExtensions === VOID ? GraphExtension_instance.v3d() : graphExtensions;
2091
- this.j39_1 = emptyBuilder;
2092
- this.k39_1 = queryMode;
2093
- this.l39_1 = autoTransposition;
2094
- this.m39_1 = prologStrictCompatibility;
2095
- this.n39_1 = graphBuildMode;
2096
- this.o39_1 = argumentLabellingMode;
2097
- this.p39_1 = statementLabellingMode;
2098
- this.q39_1 = orderingPrinciple;
2099
- this.r39_1 = orderingComparator;
2100
- this.s39_1 = modulesPath;
2101
- this.t39_1 = graphExtensions;
2102
- }
2103
- protoOf(FlagsBuilder).u39 = function () {
2061
+ queryMode = queryMode === VOID ? QueryMode_instance.u3d() : queryMode;
2062
+ autoTransposition = autoTransposition === VOID ? AutoTransposition_instance.u3d() : autoTransposition;
2063
+ prologStrictCompatibility = prologStrictCompatibility === VOID ? PrologStrictCompatibility_instance.u3d() : prologStrictCompatibility;
2064
+ graphBuildMode = graphBuildMode === VOID ? GraphBuildMode_instance.u3d() : graphBuildMode;
2065
+ argumentLabellingMode = argumentLabellingMode === VOID ? ArgumentLabellingMode_instance.u3d() : argumentLabellingMode;
2066
+ statementLabellingMode = statementLabellingMode === VOID ? StatementLabellingMode_instance.u3d() : statementLabellingMode;
2067
+ orderingPrinciple = orderingPrinciple === VOID ? OrderingPrinciple_instance.u3d() : orderingPrinciple;
2068
+ orderingComparator = orderingComparator === VOID ? OrderingComparator_instance.u3d() : orderingComparator;
2069
+ modulesPath = modulesPath === VOID ? ModulesPath_instance.u3d() : modulesPath;
2070
+ graphExtensions = graphExtensions === VOID ? GraphExtension_instance.u3d() : graphExtensions;
2071
+ this.l39_1 = emptyBuilder;
2072
+ this.m39_1 = queryMode;
2073
+ this.n39_1 = autoTransposition;
2074
+ this.o39_1 = prologStrictCompatibility;
2075
+ this.p39_1 = graphBuildMode;
2076
+ this.q39_1 = argumentLabellingMode;
2077
+ this.r39_1 = statementLabellingMode;
2078
+ this.s39_1 = orderingPrinciple;
2079
+ this.t39_1 = orderingComparator;
2080
+ this.u39_1 = modulesPath;
2081
+ this.v39_1 = graphExtensions;
2082
+ }
2083
+ protoOf(FlagsBuilder).w39 = function () {
2104
2084
  return new FlagsBuilder$create$1(this);
2105
2085
  };
2106
2086
  protoOf(FlagsBuilder).toString = function () {
2107
- return 'FlagsBuilder(emptyBuilder=' + this.j39_1 + ', queryMode=' + this.k39_1 + ', autoTransposition=' + this.l39_1 + ', prologStrictCompatibility=' + this.m39_1 + ', graphBuildMode=' + this.n39_1 + ', argumentLabellingMode=' + this.o39_1 + ', statementLabellingMode=' + this.p39_1 + ', orderingPrinciple=' + this.q39_1 + ', orderingComparator=' + this.r39_1 + ', modulesPath=' + this.s39_1 + ', graphExtensions=' + toString(this.t39_1) + ')';
2087
+ return 'FlagsBuilder(emptyBuilder=' + this.l39_1 + ', queryMode=' + this.m39_1 + ', autoTransposition=' + this.n39_1 + ', prologStrictCompatibility=' + this.o39_1 + ', graphBuildMode=' + this.p39_1 + ', argumentLabellingMode=' + this.q39_1 + ', statementLabellingMode=' + this.r39_1 + ', orderingPrinciple=' + this.s39_1 + ', orderingComparator=' + this.t39_1 + ', modulesPath=' + this.u39_1 + ', graphExtensions=' + toString(this.v39_1) + ')';
2108
2088
  };
2109
2089
  protoOf(FlagsBuilder).hashCode = function () {
2110
- var result = getBooleanHashCode(this.j39_1);
2111
- result = imul(result, 31) + getBooleanHashCode(this.k39_1) | 0;
2112
- result = imul(result, 31) + getBooleanHashCode(this.l39_1) | 0;
2090
+ var result = getBooleanHashCode(this.l39_1);
2113
2091
  result = imul(result, 31) + getBooleanHashCode(this.m39_1) | 0;
2114
- result = imul(result, 31) + getStringHashCode(this.n39_1) | 0;
2115
- result = imul(result, 31) + getStringHashCode(this.o39_1) | 0;
2092
+ result = imul(result, 31) + getBooleanHashCode(this.n39_1) | 0;
2093
+ result = imul(result, 31) + getBooleanHashCode(this.o39_1) | 0;
2116
2094
  result = imul(result, 31) + getStringHashCode(this.p39_1) | 0;
2117
2095
  result = imul(result, 31) + getStringHashCode(this.q39_1) | 0;
2118
2096
  result = imul(result, 31) + getStringHashCode(this.r39_1) | 0;
2119
2097
  result = imul(result, 31) + getStringHashCode(this.s39_1) | 0;
2120
- result = imul(result, 31) + hashCode(this.t39_1) | 0;
2098
+ result = imul(result, 31) + getStringHashCode(this.t39_1) | 0;
2099
+ result = imul(result, 31) + getStringHashCode(this.u39_1) | 0;
2100
+ result = imul(result, 31) + hashCode(this.v39_1) | 0;
2121
2101
  return result;
2122
2102
  };
2123
2103
  protoOf(FlagsBuilder).equals = function (other) {
@@ -2125,10 +2105,6 @@
2125
2105
  return true;
2126
2106
  if (!(other instanceof FlagsBuilder))
2127
2107
  return false;
2128
- if (!(this.j39_1 === other.j39_1))
2129
- return false;
2130
- if (!(this.k39_1 === other.k39_1))
2131
- return false;
2132
2108
  if (!(this.l39_1 === other.l39_1))
2133
2109
  return false;
2134
2110
  if (!(this.m39_1 === other.m39_1))
@@ -2145,20 +2121,24 @@
2145
2121
  return false;
2146
2122
  if (!(this.s39_1 === other.s39_1))
2147
2123
  return false;
2148
- if (!equals(this.t39_1, other.t39_1))
2124
+ if (!(this.t39_1 === other.t39_1))
2125
+ return false;
2126
+ if (!(this.u39_1 === other.u39_1))
2127
+ return false;
2128
+ if (!equals(this.v39_1, other.v39_1))
2149
2129
  return false;
2150
2130
  return true;
2151
2131
  };
2152
2132
  function MetaInterpreter() {
2153
- this.w3d_1 = 'prolog.argumentation.meta.crossjustice';
2133
+ this.v3d_1 = 'prolog.argumentation.meta.crossjustice';
2154
2134
  }
2155
2135
  protoOf(MetaInterpreter).y2b = function () {
2156
- return this.w3d_1;
2136
+ return this.v3d_1;
2157
2137
  };
2158
- protoOf(MetaInterpreter).z39 = function () {
2159
- return Companion_getInstance_3().of(this.w3d_1, VOID, parseTheory(Companion_instance_0, '% with_facts_and_length/3\nwith_facts_and_length(X, Y, L) :-\n solve(X, R),\n recover_facts(R, Y),\n length(Y, L).\n\n% lenght/2\n\nlength([], 0).\nlength([_|T], X) :- length(T, Y), X is Y + 1.\n\n% recover_facts/2\n\nrecover_facts([], []) :- !.\nrecover_facts([H|T], C) :-\n is_list(H), !,\n recover_facts(T, TC),\n recover_facts(H, HC),\n append(TC, HC, C).\nrecover_facts([H|T], C) :-\n \\+ is_list(H),\n recover_facts(T, TC),\n evaluate(H, HC),\n append(TC, HC, C).\n\nevaluate(user_fact(X), [X]) :- !.\nevaluate(_, []) :- !.\n\n% solve/2\n\nsolve((A,B), Result) :- !,\n solve(A, ARes),\n solve(B, BRes),\n append(ARes, BRes, Result).\n\nsolve((A;B), Result) :- !,\n solve(A, Result);\n solve(B, Result).\n\nsolve(member(A, B), [system_predicate]) :- !,\n call(member(A, B)).\n\nsolve(\\+(A), [not(A)]) :- !,\n call(\\+(A)).\n\nsolve((A)\\=(B), [doNotUnify(A, B)]) :- !,\n call((A)\\=(B)).\n\nsolve(A, [system_predicate]) :-\n catch(clause(A, _), B, true),\n \\+ var(B), !,\n call(A).\n\nsolve(A, [A]) :-\n \\+ clause(A, B), !,\n call(A).\n\nsolve(A, [A|[Res]]) :-\n clause(A, B),\n solve(B, Res).\n\n% is_list/1\n\nis_list(X) :- var(X), !, fail.\nis_list([]).\nis_list([_|T]) :- is_list(T).\n\n% fetch_argument_facts/2\n\nfetch_argument_facts(Conclusion, Facts) :-\n argument([R, TR, [Conclusion]]),\n findall(user_fact(Fact), \n support([_, _, [user_fact(Fact)]], [R, TR, [Conclusion]]),\n Facts).'));
2138
+ protoOf(MetaInterpreter).y39 = function () {
2139
+ return Companion_getInstance_2().of(this.v3d_1, VOID, parseTheory(Companion_instance_0, '% with_facts_and_length/3\nwith_facts_and_length(X, Y, L) :-\n solve(X, R),\n recover_facts(R, Y),\n length(Y, L).\n\n% lenght/2\n\nlength([], 0).\nlength([_|T], X) :- length(T, Y), X is Y + 1.\n\n% recover_facts/2\n\nrecover_facts([], []) :- !.\nrecover_facts([H|T], C) :-\n is_list(H), !,\n recover_facts(T, TC),\n recover_facts(H, HC),\n append(TC, HC, C).\nrecover_facts([H|T], C) :-\n \\+ is_list(H),\n recover_facts(T, TC),\n evaluate(H, HC),\n append(TC, HC, C).\n\nevaluate(user_fact(X), [X]) :- !.\nevaluate(_, []) :- !.\n\n% solve/2\n\nsolve((A,B), Result) :- !,\n solve(A, ARes),\n solve(B, BRes),\n append(ARes, BRes, Result).\n\nsolve((A;B), Result) :- !,\n solve(A, Result);\n solve(B, Result).\n\nsolve(member(A, B), [system_predicate]) :- !,\n call(member(A, B)).\n\nsolve(\\+(A), [not(A)]) :- !,\n call(\\+(A)).\n\nsolve((A)\\=(B), [doNotUnify(A, B)]) :- !,\n call((A)\\=(B)).\n\nsolve(A, [system_predicate]) :-\n catch(clause(A, _), B, true),\n \\+ var(B), !,\n call(A).\n\nsolve(A, [A]) :-\n \\+ clause(A, B), !,\n call(A).\n\nsolve(A, [A|[Res]]) :-\n clause(A, B),\n solve(B, Res).\n\n% is_list/1\n\nis_list(X) :- var(X), !, fail.\nis_list([]).\nis_list([_|T]) :- is_list(T).\n\n% fetch_argument_facts/2\n\nfetch_argument_facts(Conclusion, Facts) :-\n argument([R, TR, [Conclusion]]),\n findall(user_fact(Fact), \n support([_, _, [user_fact(Fact)]], [R, TR, [Conclusion]]),\n Facts).'));
2160
2140
  };
2161
- protoOf(MetaInterpreter).a3a = function () {
2141
+ protoOf(MetaInterpreter).z39 = function () {
2162
2142
  return 'interpreter';
2163
2143
  };
2164
2144
  var MetaInterpreter_instance;
@@ -2166,15 +2146,15 @@
2166
2146
  return MetaInterpreter_instance;
2167
2147
  }
2168
2148
  function ModuleCalls() {
2169
- this.x3d_1 = 'prolog.argumentation.modularity';
2149
+ this.w3d_1 = 'prolog.argumentation.modularity';
2170
2150
  }
2171
2151
  protoOf(ModuleCalls).y2b = function () {
2172
- return this.x3d_1;
2152
+ return this.w3d_1;
2173
2153
  };
2174
- protoOf(ModuleCalls).z39 = function () {
2175
- return Companion_getInstance_3().of(this.x3d_1, mapOf(to(ModuleCall_getInstance().y3d_1, ModuleCall_getInstance())));
2154
+ protoOf(ModuleCalls).y39 = function () {
2155
+ return Companion_getInstance_2().of(this.w3d_1, mapOf(to(ModuleCall_getInstance().x3d_1, ModuleCall_getInstance())));
2176
2156
  };
2177
- protoOf(ModuleCalls).a3a = function () {
2157
+ protoOf(ModuleCalls).z39 = function () {
2178
2158
  return 'module';
2179
2159
  };
2180
2160
  var ModuleCalls_instance;
@@ -2200,9 +2180,9 @@
2200
2180
  return logicProgramming_0(VOID, ModuleCall$getCleanSolver$lambda_0(context, modules, module_0));
2201
2181
  }
2202
2182
  function ModuleCall$solve$slambda($solver, $goal, $request, resultContinuation) {
2203
- this.h3e_1 = $solver;
2204
- this.i3e_1 = $goal;
2205
- this.j3e_1 = $request;
2183
+ this.g3e_1 = $solver;
2184
+ this.h3e_1 = $goal;
2185
+ this.i3e_1 = $request;
2206
2186
  CoroutineImpl.call(this, resultContinuation);
2207
2187
  }
2208
2188
  protoOf(ModuleCall$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -2223,8 +2203,8 @@
2223
2203
  case 0:
2224
2204
  this.c8_1 = 2;
2225
2205
  this.b8_1 = 1;
2226
- var tmp_0 = this.h3e_1.solve(this.i3e_1);
2227
- suspendResult = this.k3e_1.sc(map(tmp_0, ModuleCall$solve$slambda$lambda(this.j3e_1)), this);
2206
+ var tmp_0 = this.g3e_1.solve(this.h3e_1);
2207
+ suspendResult = this.j3e_1.sc(map(tmp_0, ModuleCall$solve$slambda$lambda(this.i3e_1)), this);
2228
2208
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2229
2209
  return suspendResult;
2230
2210
  }
@@ -2247,8 +2227,8 @@
2247
2227
  while (true);
2248
2228
  };
2249
2229
  protoOf(ModuleCall$solve$slambda).d2o = function ($this$sequence, completion) {
2250
- var i = new ModuleCall$solve$slambda(this.h3e_1, this.i3e_1, this.j3e_1, completion);
2251
- i.k3e_1 = $this$sequence;
2230
+ var i = new ModuleCall$solve$slambda(this.g3e_1, this.h3e_1, this.i3e_1, completion);
2231
+ i.j3e_1 = $this$sequence;
2252
2232
  return i;
2253
2233
  };
2254
2234
  function ModuleCall$solve$slambda_0($solver, $goal, $request, resultContinuation) {
@@ -2296,7 +2276,7 @@
2296
2276
  }
2297
2277
  function ModuleCall() {
2298
2278
  ModuleCall_instance = this;
2299
- this.y3d_1 = new Signature('call_module', 2);
2279
+ this.x3d_1 = new Signature('call_module', 2);
2300
2280
  }
2301
2281
  protoOf(ModuleCall).g2e = function (request) {
2302
2282
  var modules = request.arguments.w(0);
@@ -2332,10 +2312,10 @@
2332
2312
  }
2333
2313
  function ModulesPath() {
2334
2314
  }
2335
- protoOf(ModulesPath).s3d = function () {
2315
+ protoOf(ModulesPath).r3d = function () {
2336
2316
  return 'modulesPath';
2337
2317
  };
2338
- protoOf(ModulesPath).v3d = function () {
2318
+ protoOf(ModulesPath).u3d = function () {
2339
2319
  return 'none';
2340
2320
  };
2341
2321
  var ModulesPath_instance;
@@ -2344,27 +2324,27 @@
2344
2324
  }
2345
2325
  function AbstractModeBase() {
2346
2326
  LazyRawPrologContent.call(this);
2347
- this.m3e_1 = 'prolog.argumentation.abstract';
2348
- this.n3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2327
+ this.l3e_1 = 'prolog.argumentation.abstract';
2328
+ this.m3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2349
2329
  }
2350
2330
  protoOf(AbstractModeBase).y2b = function () {
2351
- return this.m3e_1;
2331
+ return this.l3e_1;
2352
2332
  };
2353
- protoOf(AbstractModeBase).z39 = function () {
2354
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2333
+ protoOf(AbstractModeBase).y39 = function () {
2334
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2355
2335
  };
2356
- protoOf(AbstractModeBase).a3a = function () {
2336
+ protoOf(AbstractModeBase).z39 = function () {
2357
2337
  return 'abstract';
2358
2338
  };
2359
2339
  protoOf(AbstractModeBase).i39 = function () {
2360
- return this.n3e_1;
2340
+ return this.m3e_1;
2361
2341
  };
2362
2342
  function GraphExtension() {
2363
2343
  }
2364
- protoOf(GraphExtension).s3d = function () {
2344
+ protoOf(GraphExtension).r3d = function () {
2365
2345
  return 'graphExtension';
2366
2346
  };
2367
- protoOf(GraphExtension).v3d = function () {
2347
+ protoOf(GraphExtension).u3d = function () {
2368
2348
  return listOf_0('standardPref');
2369
2349
  };
2370
2350
  var GraphExtension_instance;
@@ -2373,10 +2353,10 @@
2373
2353
  }
2374
2354
  function ArgumentLabellingMode() {
2375
2355
  }
2376
- protoOf(ArgumentLabellingMode).s3d = function () {
2356
+ protoOf(ArgumentLabellingMode).r3d = function () {
2377
2357
  return 'argumentLabellingMode';
2378
2358
  };
2379
- protoOf(ArgumentLabellingMode).v3d = function () {
2359
+ protoOf(ArgumentLabellingMode).u3d = function () {
2380
2360
  return 'grounded';
2381
2361
  };
2382
2362
  var ArgumentLabellingMode_instance;
@@ -2385,10 +2365,10 @@
2385
2365
  }
2386
2366
  function StatementLabellingMode() {
2387
2367
  }
2388
- protoOf(StatementLabellingMode).s3d = function () {
2368
+ protoOf(StatementLabellingMode).r3d = function () {
2389
2369
  return 'statementLabellingMode';
2390
2370
  };
2391
- protoOf(StatementLabellingMode).v3d = function () {
2371
+ protoOf(StatementLabellingMode).u3d = function () {
2392
2372
  return 'statement';
2393
2373
  };
2394
2374
  var StatementLabellingMode_instance;
@@ -2397,10 +2377,10 @@
2397
2377
  }
2398
2378
  function GraphBuildMode() {
2399
2379
  }
2400
- protoOf(GraphBuildMode).s3d = function () {
2380
+ protoOf(GraphBuildMode).r3d = function () {
2401
2381
  return 'graphBuildMode';
2402
2382
  };
2403
- protoOf(GraphBuildMode).v3d = function () {
2383
+ protoOf(GraphBuildMode).u3d = function () {
2404
2384
  return 'standard_af';
2405
2385
  };
2406
2386
  var GraphBuildMode_instance;
@@ -2409,122 +2389,122 @@
2409
2389
  }
2410
2390
  function ArgumentationGraphBuilderBase() {
2411
2391
  LazyRawPrologContent.call(this);
2412
- this.p3e_1 = 'prolog.argumentation.graph';
2413
- this.q3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2392
+ this.o3e_1 = 'prolog.argumentation.graph';
2393
+ this.p3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2414
2394
  }
2415
2395
  protoOf(ArgumentationGraphBuilderBase).y2b = function () {
2416
- return this.p3e_1;
2396
+ return this.o3e_1;
2417
2397
  };
2418
- protoOf(ArgumentationGraphBuilderBase).z39 = function () {
2419
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2398
+ protoOf(ArgumentationGraphBuilderBase).y39 = function () {
2399
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2420
2400
  };
2421
- protoOf(ArgumentationGraphBuilderBase).a3a = function () {
2401
+ protoOf(ArgumentationGraphBuilderBase).z39 = function () {
2422
2402
  return 'standard_af';
2423
2403
  };
2424
2404
  protoOf(ArgumentationGraphBuilderBase).i39 = function () {
2425
- return this.q3e_1;
2405
+ return this.p3e_1;
2426
2406
  };
2427
2407
  function AttackRestrictionHandlerBase() {
2428
2408
  LazyRawPrologContent.call(this);
2429
- this.s3e_1 = 'prolog.argumentation.graph.rebutrestriction';
2430
- this.t3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2409
+ this.r3e_1 = 'prolog.argumentation.graph.rebutrestriction';
2410
+ this.s3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2431
2411
  }
2432
2412
  protoOf(AttackRestrictionHandlerBase).y2b = function () {
2433
- return this.s3e_1;
2413
+ return this.r3e_1;
2434
2414
  };
2435
- protoOf(AttackRestrictionHandlerBase).z39 = function () {
2436
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2415
+ protoOf(AttackRestrictionHandlerBase).y39 = function () {
2416
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2437
2417
  };
2438
- protoOf(AttackRestrictionHandlerBase).a3a = function () {
2418
+ protoOf(AttackRestrictionHandlerBase).z39 = function () {
2439
2419
  return 'rebutRestriction';
2440
2420
  };
2441
2421
  protoOf(AttackRestrictionHandlerBase).i39 = function () {
2442
- return this.t3e_1;
2422
+ return this.s3e_1;
2443
2423
  };
2444
2424
  function BpMetaGraphHandlerBase() {
2445
2425
  LazyRawPrologContent.call(this);
2446
- this.v3e_1 = 'prolog.argumentation.graph.meta.bp';
2447
- this.w3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2426
+ this.u3e_1 = 'prolog.argumentation.graph.meta.bp';
2427
+ this.v3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2448
2428
  }
2449
2429
  protoOf(BpMetaGraphHandlerBase).y2b = function () {
2450
- return this.v3e_1;
2430
+ return this.u3e_1;
2451
2431
  };
2452
- protoOf(BpMetaGraphHandlerBase).z39 = function () {
2453
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2432
+ protoOf(BpMetaGraphHandlerBase).y39 = function () {
2433
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2454
2434
  };
2455
- protoOf(BpMetaGraphHandlerBase).a3a = function () {
2435
+ protoOf(BpMetaGraphHandlerBase).z39 = function () {
2456
2436
  return 'bp';
2457
2437
  };
2458
2438
  protoOf(BpMetaGraphHandlerBase).i39 = function () {
2459
- return this.w3e_1;
2439
+ return this.v3e_1;
2460
2440
  };
2461
2441
  function DefeasiblePreferencesHandlerBase() {
2462
2442
  LazyRawPrologContent.call(this);
2463
- this.y3e_1 = 'prolog.argumentation.graph.preferences.defeasible';
2464
- this.z3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2443
+ this.x3e_1 = 'prolog.argumentation.graph.preferences.defeasible';
2444
+ this.y3e_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2465
2445
  }
2466
2446
  protoOf(DefeasiblePreferencesHandlerBase).y2b = function () {
2467
- return this.y3e_1;
2447
+ return this.x3e_1;
2468
2448
  };
2469
- protoOf(DefeasiblePreferencesHandlerBase).z39 = function () {
2470
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2449
+ protoOf(DefeasiblePreferencesHandlerBase).y39 = function () {
2450
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2471
2451
  };
2472
- protoOf(DefeasiblePreferencesHandlerBase).a3a = function () {
2452
+ protoOf(DefeasiblePreferencesHandlerBase).z39 = function () {
2473
2453
  return 'defeasiblePref';
2474
2454
  };
2475
2455
  protoOf(DefeasiblePreferencesHandlerBase).i39 = function () {
2476
- return this.z3e_1;
2456
+ return this.y3e_1;
2477
2457
  };
2478
2458
  function GenericDefeasiblePreferencesHandlerBase() {
2479
2459
  LazyRawPrologContent.call(this);
2480
- this.b3f_1 = 'prolog.argumentation.graph.preferences.defeasible.generic';
2481
- this.c3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2460
+ this.a3f_1 = 'prolog.argumentation.graph.preferences.defeasible.generic';
2461
+ this.b3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2482
2462
  }
2483
2463
  protoOf(GenericDefeasiblePreferencesHandlerBase).y2b = function () {
2484
- return this.b3f_1;
2464
+ return this.a3f_1;
2485
2465
  };
2486
- protoOf(GenericDefeasiblePreferencesHandlerBase).z39 = function () {
2487
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2466
+ protoOf(GenericDefeasiblePreferencesHandlerBase).y39 = function () {
2467
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2488
2468
  };
2489
- protoOf(GenericDefeasiblePreferencesHandlerBase).a3a = function () {
2469
+ protoOf(GenericDefeasiblePreferencesHandlerBase).z39 = function () {
2490
2470
  return 'defeasibleAllPref';
2491
2471
  };
2492
2472
  protoOf(GenericDefeasiblePreferencesHandlerBase).i39 = function () {
2493
- return this.c3f_1;
2473
+ return this.b3f_1;
2494
2474
  };
2495
2475
  function StrictPreferencesHandlerBase() {
2496
2476
  LazyRawPrologContent.call(this);
2497
- this.e3f_1 = 'prolog.argumentation.graph.preferences.strict';
2498
- this.f3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2477
+ this.d3f_1 = 'prolog.argumentation.graph.preferences.strict';
2478
+ this.e3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2499
2479
  }
2500
2480
  protoOf(StrictPreferencesHandlerBase).y2b = function () {
2501
- return this.e3f_1;
2481
+ return this.d3f_1;
2502
2482
  };
2503
- protoOf(StrictPreferencesHandlerBase).z39 = function () {
2504
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2483
+ protoOf(StrictPreferencesHandlerBase).y39 = function () {
2484
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2505
2485
  };
2506
- protoOf(StrictPreferencesHandlerBase).a3a = function () {
2486
+ protoOf(StrictPreferencesHandlerBase).z39 = function () {
2507
2487
  return 'standardPref';
2508
2488
  };
2509
2489
  protoOf(StrictPreferencesHandlerBase).i39 = function () {
2510
- return this.f3f_1;
2490
+ return this.e3f_1;
2511
2491
  };
2512
2492
  function BinaryStatementLabeller() {
2513
2493
  BinaryStatementLabeller_instance = this;
2514
- this.g3f_1 = 'prolog.argumentation.graph.labelling.statement.binary';
2515
- this.h3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2494
+ this.f3f_1 = 'prolog.argumentation.graph.labelling.statement.binary';
2495
+ this.g3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2516
2496
  }
2517
2497
  protoOf(BinaryStatementLabeller).y2b = function () {
2518
- return this.g3f_1;
2498
+ return this.f3f_1;
2519
2499
  };
2520
- protoOf(BinaryStatementLabeller).z39 = function () {
2521
- return Companion_getInstance_3().of(this.g3f_1, VOID, Companion_instance_0.ofWithDefaultUnificator([BinaryLabelling_getInstance().n1s()]));
2500
+ protoOf(BinaryStatementLabeller).y39 = function () {
2501
+ return Companion_getInstance_2().of(this.f3f_1, VOID, Companion_instance_0.ofWithDefaultUnificator([BinaryLabelling_getInstance().n1s()]));
2522
2502
  };
2523
- protoOf(BinaryStatementLabeller).a3a = function () {
2503
+ protoOf(BinaryStatementLabeller).z39 = function () {
2524
2504
  return 'statement_binary';
2525
2505
  };
2526
2506
  protoOf(BinaryStatementLabeller).i39 = function () {
2527
- return this.h3f_1;
2507
+ return this.g3f_1;
2528
2508
  };
2529
2509
  var BinaryStatementLabeller_instance;
2530
2510
  function BinaryStatementLabeller_getInstance() {
@@ -2550,122 +2530,122 @@
2550
2530
  }
2551
2531
  function BpCompleteLabellerBase() {
2552
2532
  LazyRawPrologContent.call(this);
2553
- this.m3f_1 = 'prolog.argumentation.graph.labelling.bpgroundedcomplete';
2554
- this.n3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2533
+ this.l3f_1 = 'prolog.argumentation.graph.labelling.bpgroundedcomplete';
2534
+ this.m3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2555
2535
  }
2556
2536
  protoOf(BpCompleteLabellerBase).y2b = function () {
2557
- return this.m3f_1;
2537
+ return this.l3f_1;
2558
2538
  };
2559
- protoOf(BpCompleteLabellerBase).z39 = function () {
2560
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2539
+ protoOf(BpCompleteLabellerBase).y39 = function () {
2540
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2561
2541
  };
2562
- protoOf(BpCompleteLabellerBase).a3a = function () {
2542
+ protoOf(BpCompleteLabellerBase).z39 = function () {
2563
2543
  return 'bp_grounded_complete';
2564
2544
  };
2565
2545
  protoOf(BpCompleteLabellerBase).i39 = function () {
2566
- return this.n3f_1;
2546
+ return this.m3f_1;
2567
2547
  };
2568
2548
  function BpLabellerBase() {
2569
2549
  LazyRawPrologContent.call(this);
2570
- this.p3f_1 = 'prolog.argumentation.graph.labelling.bpgrounded';
2571
- this.q3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2550
+ this.o3f_1 = 'prolog.argumentation.graph.labelling.bpgrounded';
2551
+ this.p3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2572
2552
  }
2573
2553
  protoOf(BpLabellerBase).y2b = function () {
2574
- return this.p3f_1;
2554
+ return this.o3f_1;
2575
2555
  };
2576
- protoOf(BpLabellerBase).z39 = function () {
2577
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2556
+ protoOf(BpLabellerBase).y39 = function () {
2557
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2578
2558
  };
2579
- protoOf(BpLabellerBase).a3a = function () {
2559
+ protoOf(BpLabellerBase).z39 = function () {
2580
2560
  return 'bp_grounded';
2581
2561
  };
2582
2562
  protoOf(BpLabellerBase).i39 = function () {
2583
- return this.q3f_1;
2563
+ return this.p3f_1;
2584
2564
  };
2585
2565
  function BpPartialLabellerBase() {
2586
2566
  LazyRawPrologContent.call(this);
2587
- this.s3f_1 = 'prolog.argumentation.graph.labelling.bpgroundedpartial';
2588
- this.t3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2567
+ this.r3f_1 = 'prolog.argumentation.graph.labelling.bpgroundedpartial';
2568
+ this.s3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2589
2569
  }
2590
2570
  protoOf(BpPartialLabellerBase).y2b = function () {
2591
- return this.s3f_1;
2571
+ return this.r3f_1;
2592
2572
  };
2593
- protoOf(BpPartialLabellerBase).z39 = function () {
2594
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2573
+ protoOf(BpPartialLabellerBase).y39 = function () {
2574
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2595
2575
  };
2596
- protoOf(BpPartialLabellerBase).a3a = function () {
2576
+ protoOf(BpPartialLabellerBase).z39 = function () {
2597
2577
  return 'bp_grounded_partial';
2598
2578
  };
2599
2579
  protoOf(BpPartialLabellerBase).i39 = function () {
2600
- return this.t3f_1;
2580
+ return this.s3f_1;
2601
2581
  };
2602
2582
  function CompleteLabellerBase() {
2603
2583
  LazyRawPrologContent.call(this);
2604
- this.v3f_1 = 'prolog.argumentation.graph.labelling.complete';
2605
- this.w3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2584
+ this.u3f_1 = 'prolog.argumentation.graph.labelling.complete';
2585
+ this.v3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2606
2586
  }
2607
2587
  protoOf(CompleteLabellerBase).y2b = function () {
2608
- return this.v3f_1;
2588
+ return this.u3f_1;
2609
2589
  };
2610
- protoOf(CompleteLabellerBase).z39 = function () {
2611
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2590
+ protoOf(CompleteLabellerBase).y39 = function () {
2591
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2612
2592
  };
2613
- protoOf(CompleteLabellerBase).a3a = function () {
2593
+ protoOf(CompleteLabellerBase).z39 = function () {
2614
2594
  return 'complete';
2615
2595
  };
2616
2596
  protoOf(CompleteLabellerBase).i39 = function () {
2617
- return this.w3f_1;
2597
+ return this.v3f_1;
2618
2598
  };
2619
2599
  function GroundedLabellerBase() {
2620
2600
  LazyRawPrologContent.call(this);
2621
- this.y3f_1 = 'prolog.argumentation.graph.labelling.grounded';
2622
- this.z3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2601
+ this.x3f_1 = 'prolog.argumentation.graph.labelling.grounded';
2602
+ this.y3f_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2623
2603
  }
2624
2604
  protoOf(GroundedLabellerBase).y2b = function () {
2625
- return this.y3f_1;
2605
+ return this.x3f_1;
2626
2606
  };
2627
- protoOf(GroundedLabellerBase).z39 = function () {
2628
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2607
+ protoOf(GroundedLabellerBase).y39 = function () {
2608
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2629
2609
  };
2630
- protoOf(GroundedLabellerBase).a3a = function () {
2610
+ protoOf(GroundedLabellerBase).z39 = function () {
2631
2611
  return 'grounded';
2632
2612
  };
2633
2613
  protoOf(GroundedLabellerBase).i39 = function () {
2634
- return this.z3f_1;
2614
+ return this.y3f_1;
2635
2615
  };
2636
2616
  function GroundedLabellerOptimizedBase() {
2637
2617
  LazyRawPrologContent.call(this);
2638
- this.b3g_1 = 'prolog.argumentation.graph.labelling.grounded.optimized';
2639
- this.c3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2618
+ this.a3g_1 = 'prolog.argumentation.graph.labelling.grounded.optimized';
2619
+ this.b3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2640
2620
  }
2641
2621
  protoOf(GroundedLabellerOptimizedBase).y2b = function () {
2642
- return this.b3g_1;
2622
+ return this.a3g_1;
2643
2623
  };
2644
- protoOf(GroundedLabellerOptimizedBase).z39 = function () {
2645
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2624
+ protoOf(GroundedLabellerOptimizedBase).y39 = function () {
2625
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2646
2626
  };
2647
- protoOf(GroundedLabellerOptimizedBase).a3a = function () {
2627
+ protoOf(GroundedLabellerOptimizedBase).z39 = function () {
2648
2628
  return 'grounded_hash';
2649
2629
  };
2650
2630
  protoOf(GroundedLabellerOptimizedBase).i39 = function () {
2651
- return this.c3g_1;
2631
+ return this.b3g_1;
2652
2632
  };
2653
2633
  function PassThroughStatementLabeller() {
2654
2634
  PassThroughStatementLabeller_instance = this;
2655
- this.d3g_1 = 'prolog.argumentation.graph.labelling.statement.pt';
2656
- this.e3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2635
+ this.c3g_1 = 'prolog.argumentation.graph.labelling.statement.pt';
2636
+ this.d3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2657
2637
  }
2658
2638
  protoOf(PassThroughStatementLabeller).y2b = function () {
2659
- return this.d3g_1;
2639
+ return this.c3g_1;
2660
2640
  };
2661
- protoOf(PassThroughStatementLabeller).z39 = function () {
2662
- return Companion_getInstance_3().of(this.d3g_1, VOID, Companion_instance_0.ofWithDefaultUnificator([Labelling_getInstance().n1s()]));
2641
+ protoOf(PassThroughStatementLabeller).y39 = function () {
2642
+ return Companion_getInstance_2().of(this.c3g_1, VOID, Companion_instance_0.ofWithDefaultUnificator([Labelling_getInstance().n1s()]));
2663
2643
  };
2664
- protoOf(PassThroughStatementLabeller).a3a = function () {
2644
+ protoOf(PassThroughStatementLabeller).z39 = function () {
2665
2645
  return 'statement_pass_through';
2666
2646
  };
2667
2647
  protoOf(PassThroughStatementLabeller).i39 = function () {
2668
- return this.e3g_1;
2648
+ return this.d3g_1;
2669
2649
  };
2670
2650
  var PassThroughStatementLabeller_instance;
2671
2651
  function PassThroughStatementLabeller_getInstance() {
@@ -2691,20 +2671,20 @@
2691
2671
  }
2692
2672
  function StatementLabellerBase() {
2693
2673
  LazyRawPrologContent.call(this);
2694
- this.j3g_1 = 'prolog.argumentation.graph.labelling.statement';
2695
- this.k3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
2674
+ this.i3g_1 = 'prolog.argumentation.graph.labelling.statement';
2675
+ this.j3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
2696
2676
  }
2697
2677
  protoOf(StatementLabellerBase).y2b = function () {
2698
- return this.j3g_1;
2678
+ return this.i3g_1;
2699
2679
  };
2700
- protoOf(StatementLabellerBase).z39 = function () {
2701
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
2680
+ protoOf(StatementLabellerBase).y39 = function () {
2681
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
2702
2682
  };
2703
- protoOf(StatementLabellerBase).a3a = function () {
2683
+ protoOf(StatementLabellerBase).z39 = function () {
2704
2684
  return 'statement';
2705
2685
  };
2706
2686
  protoOf(StatementLabellerBase).i39 = function () {
2707
- return this.k3g_1;
2687
+ return this.j3g_1;
2708
2688
  };
2709
2689
  function Companion_2() {
2710
2690
  }
@@ -2766,14 +2746,14 @@
2766
2746
  }
2767
2747
  function RuleParserBase() {
2768
2748
  LazyRawPrologContent.call(this);
2769
- this.m3g_1 = 'prolog.argumentation.parser';
2770
- this.n3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_instance_10.d39()).plusOperatorSet(Companion_getInstance_1().DEFAULT);
2749
+ this.l3g_1 = 'prolog.argumentation.parser';
2750
+ this.m3g_1 = Companion_instance_8.d39().plusOperatorSet(Companion_instance_10.d39()).plusOperatorSet(Companion_getInstance_0().DEFAULT);
2771
2751
  }
2772
2752
  protoOf(RuleParserBase).y2b = function () {
2773
- return this.m3g_1;
2753
+ return this.l3g_1;
2774
2754
  };
2775
- protoOf(RuleParserBase).z39 = function () {
2776
- var tmp = Companion_getInstance_3();
2755
+ protoOf(RuleParserBase).y39 = function () {
2756
+ var tmp = Companion_getInstance_2();
2777
2757
  var tmp_0 = this.y2b();
2778
2758
  var tmp_1 = KProperty0;
2779
2759
  var tmp_2 = getPropertyCallableRef('descriptionPair', 0, tmp_1, StrictRules$_get_descriptionPair_$ref_jme898(StrictRules_getInstance()), null).get();
@@ -2788,13 +2768,13 @@
2788
2768
  var tmp_11 = KProperty0;
2789
2769
  var tmp_12 = getPropertyCallableRef('descriptionPair', 0, tmp_11, ExtractStrictIds$_get_descriptionPair_$ref_faxu5w(ExtractStrictIds_getInstance()), null).get();
2790
2770
  var tmp_13 = KProperty0;
2791
- return tmp.of(tmp_0, mapOf_0([tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp_12, getPropertyCallableRef('descriptionPair', 0, tmp_13, RuleToClause$_get_descriptionPair_$ref_20povg(RuleToClause_getInstance()), null).get()]), this.d3a(), Companion_instance_10.d39());
2771
+ return tmp.of(tmp_0, mapOf_0([tmp_2, tmp_4, tmp_6, tmp_8, tmp_10, tmp_12, getPropertyCallableRef('descriptionPair', 0, tmp_13, RuleToClause$_get_descriptionPair_$ref_20povg(RuleToClause_getInstance()), null).get()]), this.c3a(), Companion_instance_10.d39());
2792
2772
  };
2793
- protoOf(RuleParserBase).a3a = function () {
2773
+ protoOf(RuleParserBase).z39 = function () {
2794
2774
  return 'parser';
2795
2775
  };
2796
2776
  protoOf(RuleParserBase).i39 = function () {
2797
- return this.n3g_1;
2777
+ return this.m3g_1;
2798
2778
  };
2799
2779
  function StrictRules$computeAllSubstitutions$lambda($this_computeAllSubstitutions) {
2800
2780
  return function (clauses, prologScope) {
@@ -2814,7 +2794,7 @@
2814
2794
  var _iterator__ex2g4s_0 = destination.p();
2815
2795
  while (_iterator__ex2g4s_0.s()) {
2816
2796
  var item = _iterator__ex2g4s_0.t();
2817
- var tmp$ret$3 = prologScope.logicListOfAny(['rule_' + Default_getInstance().wf(0, 2147483647), ConversionUtils_instance.o3g(item, $this_computeAllSubstitutions), ensureNotNull(item.nw())]);
2797
+ var tmp$ret$3 = prologScope.logicListOfAny(['rule_' + Default_getInstance().wf(0, 2147483647), ConversionUtils_instance.n3g(item, $this_computeAllSubstitutions), ensureNotNull(item.nw())]);
2818
2798
  destination_0.m(tmp$ret$3);
2819
2799
  }
2820
2800
  return listToTerm(destination_0);
@@ -2824,12 +2804,12 @@
2824
2804
  StrictRules_instance = this;
2825
2805
  WithoutSideEffects.call(this, 'prologStrictRules');
2826
2806
  }
2827
- protoOf(StrictRules).q3g = function (_this__u8e3s4, first) {
2807
+ protoOf(StrictRules).p3g = function (_this__u8e3s4, first) {
2828
2808
  var tmp = ConversionUtils_instance;
2829
- return tmp.r3g(_this__u8e3s4, first, VOID, StrictRules$computeAllSubstitutions$lambda(_this__u8e3s4));
2809
+ return tmp.q3g(_this__u8e3s4, first, VOID, StrictRules$computeAllSubstitutions$lambda(_this__u8e3s4));
2830
2810
  };
2831
2811
  protoOf(StrictRules).x2g = function (_this__u8e3s4, first) {
2832
- return this.q3g(_this__u8e3s4, first);
2812
+ return this.p3g(_this__u8e3s4, first);
2833
2813
  };
2834
2814
  var StrictRules_instance;
2835
2815
  function StrictRules_getInstance() {
@@ -2863,12 +2843,12 @@
2863
2843
  Axioms_instance = this;
2864
2844
  WithoutSideEffects.call(this, 'prologAxioms');
2865
2845
  }
2866
- protoOf(Axioms).q3g = function (_this__u8e3s4, first) {
2846
+ protoOf(Axioms).p3g = function (_this__u8e3s4, first) {
2867
2847
  var tmp = ConversionUtils_instance;
2868
- return tmp.r3g(_this__u8e3s4, first, VOID, Axioms$computeAllSubstitutions$lambda);
2848
+ return tmp.q3g(_this__u8e3s4, first, VOID, Axioms$computeAllSubstitutions$lambda);
2869
2849
  };
2870
2850
  protoOf(Axioms).x2g = function (_this__u8e3s4, first) {
2871
- return this.q3g(_this__u8e3s4, first);
2851
+ return this.p3g(_this__u8e3s4, first);
2872
2852
  };
2873
2853
  var Axioms_instance;
2874
2854
  function Axioms_getInstance() {
@@ -2900,7 +2880,7 @@
2900
2880
  var _iterator__ex2g4s_0 = destination.p();
2901
2881
  while (_iterator__ex2g4s_0.s()) {
2902
2882
  var item = _iterator__ex2g4s_0.t();
2903
- var tmp$ret$3 = Companion_getInstance().of('abstractBp', [prologScope.logicListOfIterable(ensureNotNull(item.nw()).iu())]);
2883
+ var tmp$ret$3 = Companion_getInstance_7().of('abstractBp', [prologScope.logicListOfIterable(ensureNotNull(item.nw()).iu())]);
2904
2884
  destination_0.m(tmp$ret$3);
2905
2885
  }
2906
2886
  return listToTerm(destination_0);
@@ -2909,12 +2889,12 @@
2909
2889
  Bps_instance = this;
2910
2890
  WithoutSideEffects.call(this, 'bpsNew');
2911
2891
  }
2912
- protoOf(Bps).q3g = function (_this__u8e3s4, first) {
2892
+ protoOf(Bps).p3g = function (_this__u8e3s4, first) {
2913
2893
  var tmp = ConversionUtils_instance;
2914
- return tmp.u3g(_this__u8e3s4, first, true, Bps$computeAllSubstitutions$lambda);
2894
+ return tmp.t3g(_this__u8e3s4, first, true, Bps$computeAllSubstitutions$lambda);
2915
2895
  };
2916
2896
  protoOf(Bps).x2g = function (_this__u8e3s4, first) {
2917
- return this.q3g(_this__u8e3s4, first);
2897
+ return this.p3g(_this__u8e3s4, first);
2918
2898
  };
2919
2899
  var Bps_instance;
2920
2900
  function Bps_getInstance() {
@@ -2948,12 +2928,12 @@
2948
2928
  Premises_instance = this;
2949
2929
  WithoutSideEffects.call(this, 'prologPremises');
2950
2930
  }
2951
- protoOf(Premises).q3g = function (_this__u8e3s4, first) {
2931
+ protoOf(Premises).p3g = function (_this__u8e3s4, first) {
2952
2932
  var tmp = ConversionUtils_instance;
2953
- return tmp.r3g(_this__u8e3s4, first, VOID, Premises$computeAllSubstitutions$lambda);
2933
+ return tmp.q3g(_this__u8e3s4, first, VOID, Premises$computeAllSubstitutions$lambda);
2954
2934
  };
2955
2935
  protoOf(Premises).x2g = function (_this__u8e3s4, first) {
2956
- return this.q3g(_this__u8e3s4, first);
2936
+ return this.p3g(_this__u8e3s4, first);
2957
2937
  };
2958
2938
  var Premises_instance;
2959
2939
  function Premises_getInstance() {
@@ -3019,7 +2999,7 @@
3019
2999
  }
3020
3000
  // Inline function 'kotlin.let' call
3021
3001
  var it = tmp_3;
3022
- var tmp$ret$6 = prologScope.logicListOfAny(['rule_' + Default_getInstance().wf(0, 2147483647), ConversionUtils_instance.o3g(it, $this_computeAllSubstitutions), ensureNotNull(it.nw())]);
3002
+ var tmp$ret$6 = prologScope.logicListOfAny(['rule_' + Default_getInstance().wf(0, 2147483647), ConversionUtils_instance.n3g(it, $this_computeAllSubstitutions), ensureNotNull(it.nw())]);
3023
3003
  destination_0.m(tmp$ret$6);
3024
3004
  }
3025
3005
  return listToTerm(destination_0);
@@ -3029,12 +3009,12 @@
3029
3009
  DefeasibleRules_instance = this;
3030
3010
  WithoutSideEffects.call(this, 'prologDefeasibleRules');
3031
3011
  }
3032
- protoOf(DefeasibleRules).q3g = function (_this__u8e3s4, first) {
3012
+ protoOf(DefeasibleRules).p3g = function (_this__u8e3s4, first) {
3033
3013
  var tmp = ConversionUtils_instance;
3034
- return tmp.r3g(_this__u8e3s4, first, VOID, DefeasibleRules$computeAllSubstitutions$lambda(_this__u8e3s4));
3014
+ return tmp.q3g(_this__u8e3s4, first, VOID, DefeasibleRules$computeAllSubstitutions$lambda(_this__u8e3s4));
3035
3015
  };
3036
3016
  protoOf(DefeasibleRules).x2g = function (_this__u8e3s4, first) {
3037
- return this.q3g(_this__u8e3s4, first);
3017
+ return this.p3g(_this__u8e3s4, first);
3038
3018
  };
3039
3019
  var DefeasibleRules_instance;
3040
3020
  function DefeasibleRules_getInstance() {
@@ -3047,7 +3027,7 @@
3047
3027
  WithoutSideEffects_0.call(this, 'extract_id');
3048
3028
  }
3049
3029
  protoOf(ExtractStrictIds).a2m = function (_this__u8e3s4, first, second) {
3050
- var tmp = Companion_getInstance_4();
3030
+ var tmp = Companion_getInstance_3();
3051
3031
  var tmp_0 = ensureNotNull(second.asVar());
3052
3032
  var tmp_1 = Companion_instance_6;
3053
3033
  // Inline function 'kotlin.collections.map' call
@@ -3057,7 +3037,7 @@
3057
3037
  var _iterator__ex2g4s = this_0.p();
3058
3038
  while (_iterator__ex2g4s.s()) {
3059
3039
  var item = _iterator__ex2g4s.t();
3060
- var tmp$ret$0 = Companion_getInstance().of('strict', [ensureNotNull(item.asCons()).nw()]);
3040
+ var tmp$ret$0 = Companion_getInstance_7().of('strict', [ensureNotNull(item.asCons()).nw()]);
3061
3041
  destination.m(tmp$ret$0);
3062
3042
  }
3063
3043
  return sequenceOf(tmp.of(tmp_0, tmp_1.ofList(destination)));
@@ -3076,7 +3056,7 @@
3076
3056
  WithoutSideEffects_0.call(this, 'rule_to_clause');
3077
3057
  }
3078
3058
  protoOf(RuleToClause).a2m = function (_this__u8e3s4, first, second) {
3079
- var tmp = Companion_getInstance_4();
3059
+ var tmp = Companion_getInstance_3();
3080
3060
  var tmp_0 = ensureNotNull(second.asVar());
3081
3061
  var tmp_1 = Companion_instance_6;
3082
3062
  // Inline function 'kotlin.collections.map' call
@@ -3091,10 +3071,10 @@
3091
3071
  var tmp_2;
3092
3072
  switch (it.v()) {
3093
3073
  case 2:
3094
- tmp_2 = Companion_getInstance_7().pw(Companion_getInstance().of('rl', [it.w(1)]), [item]);
3074
+ tmp_2 = Companion_getInstance_6().pw(Companion_getInstance_7().of('rl', [it.w(1)]), [item]);
3095
3075
  break;
3096
3076
  case 3:
3097
- tmp_2 = Companion_getInstance_7().pw(Companion_getInstance().of('rl', [it.w(2)]), [item]);
3077
+ tmp_2 = Companion_getInstance_6().pw(Companion_getInstance_7().of('rl', [it.w(2)]), [item]);
3098
3078
  break;
3099
3079
  default:
3100
3080
  throw IllegalArgumentException_init_$Create$();
@@ -3115,10 +3095,10 @@
3115
3095
  }
3116
3096
  function AutoTransposition() {
3117
3097
  }
3118
- protoOf(AutoTransposition).s3d = function () {
3098
+ protoOf(AutoTransposition).r3d = function () {
3119
3099
  return 'autoTransposition';
3120
3100
  };
3121
- protoOf(AutoTransposition).v3d = function () {
3101
+ protoOf(AutoTransposition).u3d = function () {
3122
3102
  return false;
3123
3103
  };
3124
3104
  var AutoTransposition_instance;
@@ -3127,10 +3107,10 @@
3127
3107
  }
3128
3108
  function PrologStrictCompatibility() {
3129
3109
  }
3130
- protoOf(PrologStrictCompatibility).s3d = function () {
3110
+ protoOf(PrologStrictCompatibility).r3d = function () {
3131
3111
  return 'prologStrictCompatibility';
3132
3112
  };
3133
- protoOf(PrologStrictCompatibility).v3d = function () {
3113
+ protoOf(PrologStrictCompatibility).u3d = function () {
3134
3114
  return false;
3135
3115
  };
3136
3116
  var PrologStrictCompatibility_instance;
@@ -3179,10 +3159,10 @@
3179
3159
  }
3180
3160
  function ConversionUtils$commonMap$lambda($first, $force, $context, $mapper) {
3181
3161
  return function ($this$prolog) {
3182
- var tmp = Companion_getInstance_4();
3162
+ var tmp = Companion_getInstance_3();
3183
3163
  var tmp_0 = $first.castToVar();
3184
3164
  var tmp_1;
3185
- if ($force || first($context.solve(parseStruct(Companion_getInstance(), 'prologStrictCompatibility'))).d1u()) {
3165
+ if ($force || first($context.solve(parseStruct(Companion_getInstance_7(), 'prologStrictCompatibility'))).d1u()) {
3186
3166
  tmp_1 = $mapper($context.context.b1t().l1j(), $this$prolog);
3187
3167
  } else {
3188
3168
  tmp_1 = $this$prolog.vz();
@@ -3192,16 +3172,16 @@
3192
3172
  }
3193
3173
  function ConversionUtils() {
3194
3174
  }
3195
- protoOf(ConversionUtils).o3g = function (target, context) {
3175
+ protoOf(ConversionUtils).n3g = function (target, context) {
3196
3176
  return prolog(VOID, ConversionUtils$modifiers$lambda(target, context));
3197
3177
  };
3198
- protoOf(ConversionUtils).u3g = function (context, first, force, mapper) {
3178
+ protoOf(ConversionUtils).t3g = function (context, first, force, mapper) {
3199
3179
  Companion_getInstance_9().v2e(context, 0);
3200
3180
  return prolog(VOID, ConversionUtils$commonMap$lambda(first, force, context, mapper));
3201
3181
  };
3202
- protoOf(ConversionUtils).r3g = function (context, first, force, mapper, $super) {
3182
+ protoOf(ConversionUtils).q3g = function (context, first, force, mapper, $super) {
3203
3183
  force = force === VOID ? false : force;
3204
- return $super === VOID ? this.u3g(context, first, force, mapper) : $super.u3g.call(this, context, first, force, mapper);
3184
+ return $super === VOID ? this.t3g(context, first, force, mapper) : $super.t3g.call(this, context, first, force, mapper);
3205
3185
  };
3206
3186
  var ConversionUtils_instance;
3207
3187
  function ConversionUtils_getInstance() {
@@ -3209,27 +3189,27 @@
3209
3189
  }
3210
3190
  function StructuredModeBase() {
3211
3191
  LazyRawPrologContent.call(this);
3212
- this.a3h_1 = 'prolog.argumentation.structured';
3213
- this.b3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
3192
+ this.z3g_1 = 'prolog.argumentation.structured';
3193
+ this.a3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
3214
3194
  }
3215
3195
  protoOf(StructuredModeBase).y2b = function () {
3216
- return this.a3h_1;
3196
+ return this.z3g_1;
3217
3197
  };
3218
- protoOf(StructuredModeBase).z39 = function () {
3219
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
3198
+ protoOf(StructuredModeBase).y39 = function () {
3199
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
3220
3200
  };
3221
- protoOf(StructuredModeBase).a3a = function () {
3201
+ protoOf(StructuredModeBase).z39 = function () {
3222
3202
  return 'structured';
3223
3203
  };
3224
3204
  protoOf(StructuredModeBase).i39 = function () {
3225
- return this.b3h_1;
3205
+ return this.a3h_1;
3226
3206
  };
3227
3207
  function QueryMode() {
3228
3208
  }
3229
- protoOf(QueryMode).s3d = function () {
3209
+ protoOf(QueryMode).r3d = function () {
3230
3210
  return 'queryMode';
3231
3211
  };
3232
- protoOf(QueryMode).v3d = function () {
3212
+ protoOf(QueryMode).u3d = function () {
3233
3213
  return true;
3234
3214
  };
3235
3215
  var QueryMode_instance;
@@ -3238,61 +3218,61 @@
3238
3218
  }
3239
3219
  function AttackRelationBase() {
3240
3220
  LazyRawPrologContent.call(this);
3241
- this.d3h_1 = 'prolog.argumentation.attack';
3242
- this.e3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
3221
+ this.c3h_1 = 'prolog.argumentation.attack';
3222
+ this.d3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
3243
3223
  }
3244
3224
  protoOf(AttackRelationBase).y2b = function () {
3245
- return this.d3h_1;
3225
+ return this.c3h_1;
3246
3226
  };
3247
- protoOf(AttackRelationBase).z39 = function () {
3248
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
3227
+ protoOf(AttackRelationBase).y39 = function () {
3228
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
3249
3229
  };
3250
- protoOf(AttackRelationBase).a3a = function () {
3230
+ protoOf(AttackRelationBase).z39 = function () {
3251
3231
  return 'attack';
3252
3232
  };
3253
3233
  protoOf(AttackRelationBase).i39 = function () {
3254
- return this.e3h_1;
3234
+ return this.d3h_1;
3255
3235
  };
3256
3236
  function DebugBase() {
3257
3237
  LazyRawPrologContent.call(this);
3258
- this.g3h_1 = 'prolog.argumentation.debug';
3259
- this.h3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
3238
+ this.f3h_1 = 'prolog.argumentation.debug';
3239
+ this.g3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
3260
3240
  }
3261
3241
  protoOf(DebugBase).y2b = function () {
3262
- return this.g3h_1;
3242
+ return this.f3h_1;
3263
3243
  };
3264
- protoOf(DebugBase).z39 = function () {
3265
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
3244
+ protoOf(DebugBase).y39 = function () {
3245
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
3266
3246
  };
3267
- protoOf(DebugBase).a3a = function () {
3247
+ protoOf(DebugBase).z39 = function () {
3268
3248
  return 'debug';
3269
3249
  };
3270
3250
  protoOf(DebugBase).i39 = function () {
3271
- return this.h3h_1;
3251
+ return this.g3h_1;
3272
3252
  };
3273
3253
  function SuperiorityRelationBase() {
3274
3254
  LazyRawPrologContent.call(this);
3275
- this.j3h_1 = 'prolog.argumentation.superiority';
3276
- this.k3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
3255
+ this.i3h_1 = 'prolog.argumentation.superiority';
3256
+ this.j3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
3277
3257
  }
3278
3258
  protoOf(SuperiorityRelationBase).y2b = function () {
3279
- return this.j3h_1;
3259
+ return this.i3h_1;
3280
3260
  };
3281
- protoOf(SuperiorityRelationBase).z39 = function () {
3282
- return Companion_getInstance_3().of(this.y2b(), VOID, this.d3a());
3261
+ protoOf(SuperiorityRelationBase).y39 = function () {
3262
+ return Companion_getInstance_2().of(this.y2b(), VOID, this.c3a());
3283
3263
  };
3284
- protoOf(SuperiorityRelationBase).a3a = function () {
3264
+ protoOf(SuperiorityRelationBase).z39 = function () {
3285
3265
  return 'superiority';
3286
3266
  };
3287
3267
  protoOf(SuperiorityRelationBase).i39 = function () {
3288
- return this.k3h_1;
3268
+ return this.j3h_1;
3289
3269
  };
3290
3270
  function OrderingPrinciple() {
3291
3271
  }
3292
- protoOf(OrderingPrinciple).s3d = function () {
3272
+ protoOf(OrderingPrinciple).r3d = function () {
3293
3273
  return 'orderingPrinciple';
3294
3274
  };
3295
- protoOf(OrderingPrinciple).v3d = function () {
3275
+ protoOf(OrderingPrinciple).u3d = function () {
3296
3276
  return 'last';
3297
3277
  };
3298
3278
  var OrderingPrinciple_instance;
@@ -3301,10 +3281,10 @@
3301
3281
  }
3302
3282
  function OrderingComparator() {
3303
3283
  }
3304
- protoOf(OrderingComparator).s3d = function () {
3284
+ protoOf(OrderingComparator).r3d = function () {
3305
3285
  return 'orderingComparator';
3306
3286
  };
3307
- protoOf(OrderingComparator).v3d = function () {
3287
+ protoOf(OrderingComparator).u3d = function () {
3308
3288
  return 'elitist';
3309
3289
  };
3310
3290
  var OrderingComparator_instance;
@@ -3313,35 +3293,35 @@
3313
3293
  }
3314
3294
  function UtilsBase() {
3315
3295
  LazyRawPrologContent.call(this);
3316
- this.m3h_1 = 'prolog.argumentation.utils';
3317
- this.n3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_1().DEFAULT);
3296
+ this.l3h_1 = 'prolog.argumentation.utils';
3297
+ this.m3h_1 = Companion_instance_8.d39().plusOperatorSet(Companion_getInstance_0().DEFAULT);
3318
3298
  }
3319
3299
  protoOf(UtilsBase).y2b = function () {
3320
- return this.m3h_1;
3300
+ return this.l3h_1;
3321
3301
  };
3322
- protoOf(UtilsBase).z39 = function () {
3323
- var tmp0_$this = Companion_getInstance_3();
3302
+ protoOf(UtilsBase).y39 = function () {
3303
+ var tmp0_$this = Companion_getInstance_2();
3324
3304
  var tmp1_alias = this.y2b();
3325
- var tmp2_clauses = this.d3a();
3326
- var tmp = to(AppendOptimized_getInstance().o3h_1, AppendOptimized_getInstance());
3327
- var tmp_0 = to(AssertAll_getInstance().p3h_1, AssertAll_getInstance());
3305
+ var tmp2_clauses = this.c3a();
3306
+ var tmp = to(AppendOptimized_getInstance().n3h_1, AppendOptimized_getInstance());
3307
+ var tmp_0 = to(AssertAll_getInstance().o3h_1, AssertAll_getInstance());
3328
3308
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
3329
3309
  var this_0 = ArgumentHash_getInstance();
3330
3310
  var tmp$ret$0 = to(this_0.signature, this_0.n1s());
3331
- var tmp3_primitives = mapOf_0([tmp, tmp_0, tmp$ret$0, to(Contains_getInstance().q3h_1, Contains_getInstance()), to(ContainsAny_getInstance().r3h_1, ContainsAny_getInstance())]);
3311
+ var tmp3_primitives = mapOf_0([tmp, tmp_0, tmp$ret$0, to(Contains_getInstance().p3h_1, Contains_getInstance()), to(ContainsAny_getInstance().q3h_1, ContainsAny_getInstance())]);
3332
3312
  return tmp0_$this.of(tmp1_alias, tmp3_primitives, tmp2_clauses);
3333
3313
  };
3334
- protoOf(UtilsBase).a3a = function () {
3314
+ protoOf(UtilsBase).z39 = function () {
3335
3315
  return 'utils';
3336
3316
  };
3337
3317
  protoOf(UtilsBase).i39 = function () {
3338
- return this.n3h_1;
3318
+ return this.m3h_1;
3339
3319
  };
3340
3320
  function AppendOptimized$solve$slambda($request, $res, $list1, $list2, resultContinuation) {
3341
- this.a3i_1 = $request;
3342
- this.b3i_1 = $res;
3343
- this.c3i_1 = $list1;
3344
- this.d3i_1 = $list2;
3321
+ this.z3h_1 = $request;
3322
+ this.a3i_1 = $res;
3323
+ this.b3i_1 = $list1;
3324
+ this.c3i_1 = $list2;
3345
3325
  CoroutineImpl.call(this, resultContinuation);
3346
3326
  }
3347
3327
  protoOf(AppendOptimized$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -3362,7 +3342,7 @@
3362
3342
  case 0:
3363
3343
  this.c8_1 = 2;
3364
3344
  this.b8_1 = 1;
3365
- suspendResult = this.e3i_1.pc(this.a3i_1.replyWith(Companion_getInstance_4().of(this.b3i_1, Companion_instance_6.ofList(plus(this.c3i_1.toList(), this.d3i_1.toList()))), VOID, []), this);
3345
+ suspendResult = this.d3i_1.pc(this.z3h_1.replyWith(Companion_getInstance_3().of(this.a3i_1, Companion_instance_6.ofList(plus(this.b3i_1.toList(), this.c3i_1.toList()))), VOID, []), this);
3366
3346
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3367
3347
  return suspendResult;
3368
3348
  }
@@ -3385,8 +3365,8 @@
3385
3365
  while (true);
3386
3366
  };
3387
3367
  protoOf(AppendOptimized$solve$slambda).d2o = function ($this$sequence, completion) {
3388
- var i = new AppendOptimized$solve$slambda(this.a3i_1, this.b3i_1, this.c3i_1, this.d3i_1, completion);
3389
- i.e3i_1 = $this$sequence;
3368
+ var i = new AppendOptimized$solve$slambda(this.z3h_1, this.a3i_1, this.b3i_1, this.c3i_1, completion);
3369
+ i.d3i_1 = $this$sequence;
3390
3370
  return i;
3391
3371
  };
3392
3372
  function AppendOptimized$solve$slambda_0($request, $res, $list1, $list2, resultContinuation) {
@@ -3399,7 +3379,7 @@
3399
3379
  }
3400
3380
  function AppendOptimized() {
3401
3381
  AppendOptimized_instance = this;
3402
- this.o3h_1 = new Signature('append_fast', 3);
3382
+ this.n3h_1 = new Signature('append_fast', 3);
3403
3383
  }
3404
3384
  protoOf(AppendOptimized).g2e = function (request) {
3405
3385
  var list1 = request.arguments.w(0);
@@ -3437,7 +3417,7 @@
3437
3417
  };
3438
3418
  }
3439
3419
  function AssertAll$solve$slambda($request, resultContinuation) {
3440
- this.n3i_1 = $request;
3420
+ this.m3i_1 = $request;
3441
3421
  CoroutineImpl.call(this, resultContinuation);
3442
3422
  }
3443
3423
  protoOf(AssertAll$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -3458,7 +3438,7 @@
3458
3438
  case 0:
3459
3439
  this.c8_1 = 2;
3460
3440
  this.b8_1 = 1;
3461
- suspendResult = this.o3i_1.pc(this.n3i_1.replyWithCondition(true, VOID, []), this);
3441
+ suspendResult = this.n3i_1.pc(this.m3i_1.replyWithCondition(true, VOID, []), this);
3462
3442
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3463
3443
  return suspendResult;
3464
3444
  }
@@ -3481,8 +3461,8 @@
3481
3461
  while (true);
3482
3462
  };
3483
3463
  protoOf(AssertAll$solve$slambda).d2o = function ($this$sequence, completion) {
3484
- var i = new AssertAll$solve$slambda(this.n3i_1, completion);
3485
- i.o3i_1 = $this$sequence;
3464
+ var i = new AssertAll$solve$slambda(this.m3i_1, completion);
3465
+ i.n3i_1 = $this$sequence;
3486
3466
  return i;
3487
3467
  };
3488
3468
  function AssertAll$solve$slambda_0($request, resultContinuation) {
@@ -3495,7 +3475,7 @@
3495
3475
  }
3496
3476
  function AssertAll() {
3497
3477
  AssertAll_instance = this;
3498
- this.p3h_1 = new Signature('assert_all', 1);
3478
+ this.o3h_1 = new Signature('assert_all', 1);
3499
3479
  }
3500
3480
  protoOf(AssertAll).g2e = function (request) {
3501
3481
  var list = request.arguments.w(0);
@@ -3519,7 +3499,7 @@
3519
3499
  WithoutSideEffects_0.call(this, 'hash');
3520
3500
  }
3521
3501
  protoOf(ArgumentHash).a2m = function (_this__u8e3s4, first, second) {
3522
- return sequenceOf(Companion_getInstance_4().of(ensureNotNull(second.asVar()), Companion_getInstance_5().ofInteger(getStringHashCode(first.toString()))));
3502
+ return sequenceOf(Companion_getInstance_3().of(ensureNotNull(second.asVar()), Companion_getInstance_4().ofInteger(getStringHashCode(first.toString()))));
3523
3503
  };
3524
3504
  protoOf(ArgumentHash).v2d = function (_this__u8e3s4, first, second) {
3525
3505
  return this.a2m(_this__u8e3s4, first, second);
@@ -3531,9 +3511,9 @@
3531
3511
  return ArgumentHash_instance;
3532
3512
  }
3533
3513
  function Contains$solve$slambda($request, $list, $elem, resultContinuation) {
3534
- this.y3i_1 = $request;
3535
- this.z3i_1 = $list;
3536
- this.a3j_1 = $elem;
3514
+ this.x3i_1 = $request;
3515
+ this.y3i_1 = $list;
3516
+ this.z3i_1 = $elem;
3537
3517
  CoroutineImpl.call(this, resultContinuation);
3538
3518
  }
3539
3519
  protoOf(Contains$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -3554,7 +3534,7 @@
3554
3534
  case 0:
3555
3535
  this.c8_1 = 2;
3556
3536
  this.b8_1 = 1;
3557
- var tmp0 = this.z3i_1.toList();
3537
+ var tmp0 = this.y3i_1.toList();
3558
3538
  var tmp$ret$0;
3559
3539
  l$ret$1: do {
3560
3540
  var tmp_0;
@@ -3570,7 +3550,7 @@
3570
3550
  var _iterator__ex2g4s = tmp0.p();
3571
3551
  while (_iterator__ex2g4s.s()) {
3572
3552
  var element = _iterator__ex2g4s.t();
3573
- if (Companion_getInstance_2().u1i().match(element, this.a3j_1)) {
3553
+ if (Companion_getInstance_1().u1i().match(element, this.z3i_1)) {
3574
3554
  tmp$ret$0 = true;
3575
3555
  break l$ret$1;
3576
3556
  }
@@ -3578,7 +3558,7 @@
3578
3558
  tmp$ret$0 = false;
3579
3559
  }
3580
3560
  while (false);
3581
- suspendResult = this.b3j_1.pc(this.y3i_1.replyWithCondition(tmp$ret$0, VOID, []), this);
3561
+ suspendResult = this.a3j_1.pc(this.x3i_1.replyWithCondition(tmp$ret$0, VOID, []), this);
3582
3562
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3583
3563
  return suspendResult;
3584
3564
  }
@@ -3601,8 +3581,8 @@
3601
3581
  while (true);
3602
3582
  };
3603
3583
  protoOf(Contains$solve$slambda).d2o = function ($this$sequence, completion) {
3604
- var i = new Contains$solve$slambda(this.y3i_1, this.z3i_1, this.a3j_1, completion);
3605
- i.b3j_1 = $this$sequence;
3584
+ var i = new Contains$solve$slambda(this.x3i_1, this.y3i_1, this.z3i_1, completion);
3585
+ i.a3j_1 = $this$sequence;
3606
3586
  return i;
3607
3587
  };
3608
3588
  function Contains$solve$slambda_0($request, $list, $elem, resultContinuation) {
@@ -3615,7 +3595,7 @@
3615
3595
  }
3616
3596
  function Contains() {
3617
3597
  Contains_instance = this;
3618
- this.q3h_1 = new Signature('contains', 2);
3598
+ this.p3h_1 = new Signature('contains', 2);
3619
3599
  }
3620
3600
  protoOf(Contains).g2e = function (request) {
3621
3601
  var elem = request.arguments.w(0);
@@ -3635,9 +3615,9 @@
3635
3615
  return Contains_instance;
3636
3616
  }
3637
3617
  function ContainsAny$solve$slambda($request, $list, $elemList, resultContinuation) {
3638
- this.k3j_1 = $request;
3639
- this.l3j_1 = $list;
3640
- this.m3j_1 = $elemList;
3618
+ this.j3j_1 = $request;
3619
+ this.k3j_1 = $list;
3620
+ this.l3j_1 = $elemList;
3641
3621
  CoroutineImpl.call(this, resultContinuation);
3642
3622
  }
3643
3623
  protoOf(ContainsAny$solve$slambda).c2o = function ($this$sequence, $completion) {
@@ -3658,19 +3638,19 @@
3658
3638
  case 0:
3659
3639
  this.c8_1 = 2;
3660
3640
  this.b8_1 = 1;
3661
- var tmp0 = this.l3j_1.xs();
3641
+ var tmp0 = this.k3j_1.xs();
3662
3642
  var tmp$ret$2;
3663
3643
  l$ret$3: do {
3664
3644
  var _iterator__ex2g4s = tmp0.p();
3665
3645
  while (_iterator__ex2g4s.s()) {
3666
3646
  var element = _iterator__ex2g4s.t();
3667
- var tmp0_0 = this.m3j_1.xs();
3647
+ var tmp0_0 = this.l3j_1.xs();
3668
3648
  var tmp$ret$0;
3669
3649
  l$ret$1: do {
3670
3650
  var _iterator__ex2g4s_0 = tmp0_0.p();
3671
3651
  while (_iterator__ex2g4s_0.s()) {
3672
3652
  var element_0 = _iterator__ex2g4s_0.t();
3673
- if (Companion_getInstance_2().u1i().match(element, element_0)) {
3653
+ if (Companion_getInstance_1().u1i().match(element, element_0)) {
3674
3654
  tmp$ret$0 = true;
3675
3655
  break l$ret$1;
3676
3656
  }
@@ -3686,7 +3666,7 @@
3686
3666
  tmp$ret$2 = false;
3687
3667
  }
3688
3668
  while (false);
3689
- suspendResult = this.n3j_1.pc(this.k3j_1.replyWithCondition(tmp$ret$2, VOID, []), this);
3669
+ suspendResult = this.m3j_1.pc(this.j3j_1.replyWithCondition(tmp$ret$2, VOID, []), this);
3690
3670
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3691
3671
  return suspendResult;
3692
3672
  }
@@ -3709,8 +3689,8 @@
3709
3689
  while (true);
3710
3690
  };
3711
3691
  protoOf(ContainsAny$solve$slambda).d2o = function ($this$sequence, completion) {
3712
- var i = new ContainsAny$solve$slambda(this.k3j_1, this.l3j_1, this.m3j_1, completion);
3713
- i.n3j_1 = $this$sequence;
3692
+ var i = new ContainsAny$solve$slambda(this.j3j_1, this.k3j_1, this.l3j_1, completion);
3693
+ i.m3j_1 = $this$sequence;
3714
3694
  return i;
3715
3695
  };
3716
3696
  function ContainsAny$solve$slambda_0($request, $list, $elemList, resultContinuation) {
@@ -3723,7 +3703,7 @@
3723
3703
  }
3724
3704
  function ContainsAny() {
3725
3705
  ContainsAny_instance = this;
3726
- this.r3h_1 = new Signature('contains_any', 2);
3706
+ this.q3h_1 = new Signature('contains_any', 2);
3727
3707
  }
3728
3708
  protoOf(ContainsAny).g2e = function (request) {
3729
3709
  var elemList = request.arguments.w(0);
@@ -3748,7 +3728,7 @@
3748
3728
  function mineGraph(_this__u8e3s4, context) {
3749
3729
  // Inline function 'kotlin.let' call
3750
3730
  var it = mineArguments(_this__u8e3s4, context);
3751
- return Companion_instance_12.o3j(mineLabels(_this__u8e3s4, context, it), mineAttacks(_this__u8e3s4, context, it), mineSupports(_this__u8e3s4, context, it));
3731
+ return Companion_instance_12.n3j(mineLabels(_this__u8e3s4, context, it), mineAttacks(_this__u8e3s4, context, it), mineSupports(_this__u8e3s4, context, it));
3752
3732
  }
3753
3733
  function mineArguments(_this__u8e3s4, context) {
3754
3734
  return toList(logicProgramming(arguments$lambda(_this__u8e3s4, context)));
@@ -3779,22 +3759,22 @@
3779
3759
  };
3780
3760
  }
3781
3761
  function arguments$lambda$lambda_1(solution) {
3782
- return Companion_instance_11.p3j(solution);
3762
+ return Companion_instance_11.o3j(solution);
3783
3763
  }
3784
3764
  function arguments$lambda$lambda_2(it) {
3785
- return it.z3j_1.v();
3765
+ return it.y3j_1.v();
3786
3766
  }
3787
3767
  function arguments$lambda$lambda_3(it) {
3788
- return it.q3j_1.v();
3768
+ return it.p3j_1.v();
3789
3769
  }
3790
3770
  function arguments$lambda$lambda_4(it) {
3791
- return it.s3j_1;
3771
+ return it.r3j_1;
3792
3772
  }
3793
3773
  function arguments$lambda$lambda_5(it) {
3794
- return it.r3j_1;
3774
+ return it.q3j_1;
3795
3775
  }
3796
3776
  function arguments$lambda$lambda_6(index, arg) {
3797
- arg.y3j_1 = 'A' + index;
3777
+ arg.x3j_1 = 'A' + index;
3798
3778
  return arg;
3799
3779
  }
3800
3780
  function arguments$lambda($this_arguments, $context) {
@@ -3827,7 +3807,7 @@
3827
3807
  var _iterator__ex2g4s = tmp0.p();
3828
3808
  while (_iterator__ex2g4s.s()) {
3829
3809
  var element = _iterator__ex2g4s.t();
3830
- if (Companion_getInstance_2().u1i().match(element.a3k(), solution.fc_1)) {
3810
+ if (Companion_getInstance_1().u1i().match(element.z3j(), solution.fc_1)) {
3831
3811
  tmp$ret$1 = element;
3832
3812
  break $l$block;
3833
3813
  }
@@ -3842,7 +3822,7 @@
3842
3822
  var _iterator__ex2g4s_0 = tmp0_0.p();
3843
3823
  while (_iterator__ex2g4s_0.s()) {
3844
3824
  var element_0 = _iterator__ex2g4s_0.t();
3845
- if (Companion_getInstance_2().u1i().match(element_0.a3k(), solution.gc_1)) {
3825
+ if (Companion_getInstance_1().u1i().match(element_0.z3j(), solution.gc_1)) {
3846
3826
  tmp$ret$3 = element_0;
3847
3827
  break $l$block_0;
3848
3828
  }
@@ -3877,7 +3857,7 @@
3877
3857
  var _iterator__ex2g4s = tmp0.p();
3878
3858
  while (_iterator__ex2g4s.s()) {
3879
3859
  var element = _iterator__ex2g4s.t();
3880
- if (Companion_getInstance_2().u1i().match(element.a3k(), solution.gc_1)) {
3860
+ if (Companion_getInstance_1().u1i().match(element.z3j(), solution.gc_1)) {
3881
3861
  tmp$ret$1 = element;
3882
3862
  break $l$block;
3883
3863
  }
@@ -3893,7 +3873,7 @@
3893
3873
  var _iterator__ex2g4s_0 = tmp0_0.p();
3894
3874
  while (_iterator__ex2g4s_0.s()) {
3895
3875
  var element_0 = _iterator__ex2g4s_0.t();
3896
- if (Companion_getInstance_2().u1i().match(element_0.a3k(), solution.fc_1)) {
3876
+ if (Companion_getInstance_1().u1i().match(element_0.z3j(), solution.fc_1)) {
3897
3877
  tmp$ret$3 = element_0;
3898
3878
  break $l$block_0;
3899
3879
  }
@@ -3902,7 +3882,7 @@
3902
3882
  }
3903
3883
  // Inline function 'kotlin.also' call
3904
3884
  var this_0 = new Support(tmp$ret$3, argument);
3905
- argument.z3j_1.m(this_0.b3k_1);
3885
+ argument.y3j_1.m(this_0.a3k_1);
3906
3886
  return this_0;
3907
3887
  };
3908
3888
  }
@@ -3955,7 +3935,7 @@
3955
3935
  var _iterator__ex2g4s = tmp0.p();
3956
3936
  while (_iterator__ex2g4s.s()) {
3957
3937
  var element = _iterator__ex2g4s.t();
3958
- if (Companion_getInstance_2().u1i().match(element.a3k(), ensureNotNull(res.v1s().h2($this_logicProgramming.d1g())))) {
3938
+ if (Companion_getInstance_1().u1i().match(element.z3j(), ensureNotNull(res.v1s().h2($this_logicProgramming.d1g())))) {
3959
3939
  tmp$ret$1 = element;
3960
3940
  break $l$block;
3961
3941
  }
@@ -4018,7 +3998,7 @@
4018
3998
  }
4019
3999
  function Companion_3() {
4020
4000
  }
4021
- protoOf(Companion_3).p3j = function (term) {
4001
+ protoOf(Companion_3).o3j = function (term) {
4022
4002
  // Inline function 'kotlin.let' call
4023
4003
  var it = of$termAsList(term);
4024
4004
  return new Argument(of$argRules(it), of$argTopRule(it), of$argConclusion(it), of$argGroundings(it), of$argDefeasibleRules(it), of$argDefeasiblePremises(it), of$argLastDefeasibleRules(it), term);
@@ -4033,44 +4013,44 @@
4033
4013
  defeasiblePremises = defeasiblePremises === VOID ? emptyList() : defeasiblePremises;
4034
4014
  lastDefeasibleRules = lastDefeasibleRules === VOID ? emptyList() : lastDefeasibleRules;
4035
4015
  term = term === VOID ? null : term;
4036
- this.q3j_1 = rules;
4037
- this.r3j_1 = topRule;
4038
- this.s3j_1 = conclusion;
4039
- this.t3j_1 = groundings;
4040
- this.u3j_1 = defeasibleRules;
4041
- this.v3j_1 = defeasiblePremises;
4042
- this.w3j_1 = lastDefeasibleRules;
4043
- this.x3j_1 = term;
4044
- this.y3j_1 = '';
4016
+ this.p3j_1 = rules;
4017
+ this.q3j_1 = topRule;
4018
+ this.r3j_1 = conclusion;
4019
+ this.s3j_1 = groundings;
4020
+ this.t3j_1 = defeasibleRules;
4021
+ this.u3j_1 = defeasiblePremises;
4022
+ this.v3j_1 = lastDefeasibleRules;
4023
+ this.w3j_1 = term;
4024
+ this.x3j_1 = '';
4045
4025
  var tmp = this;
4046
4026
  // Inline function 'kotlin.collections.mutableListOf' call
4047
- tmp.z3j_1 = ArrayList_init_$Create$_0();
4027
+ tmp.y3j_1 = ArrayList_init_$Create$_0();
4048
4028
  }
4049
4029
  protoOf(Argument).hashCode = function () {
4050
4030
  // Inline function 'kotlin.hashCode' call
4051
- var tmp0_safe_receiver = this.x3j_1;
4031
+ var tmp0_safe_receiver = this.w3j_1;
4052
4032
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
4053
4033
  return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
4054
4034
  };
4055
- protoOf(Argument).d3k = function () {
4056
- var tmp = this.y3j_1 + ' : ';
4035
+ protoOf(Argument).c3k = function () {
4036
+ var tmp = this.x3j_1 + ' : ';
4057
4037
  var tmp_0;
4058
- if (this.r3j_1 === 'none') {
4059
- var tmp0_elvis_lhs = firstOrNull_0(this.q3j_1);
4038
+ if (this.q3j_1 === 'none') {
4039
+ var tmp0_elvis_lhs = firstOrNull_0(this.p3j_1);
4060
4040
  tmp_0 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
4061
4041
  } else {
4062
4042
  // Inline function 'kotlin.collections.map' call
4063
- var this_0 = this.z3j_1;
4043
+ var this_0 = this.y3j_1;
4064
4044
  // Inline function 'kotlin.collections.mapTo' call
4065
4045
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
4066
4046
  var _iterator__ex2g4s = this_0.p();
4067
4047
  while (_iterator__ex2g4s.s()) {
4068
4048
  var item = _iterator__ex2g4s.t();
4069
- var tmp$ret$0 = item.y3j_1;
4049
+ var tmp$ret$0 = item.x3j_1;
4070
4050
  destination.m(tmp$ret$0);
4071
4051
  }
4072
4052
  // Inline function 'kotlin.collections.reduce' call
4073
- var iterator = plus_1(destination, this.r3j_1).p();
4053
+ var iterator = plus_1(destination, this.q3j_1).p();
4074
4054
  if (!iterator.s())
4075
4055
  throw UnsupportedOperationException_init_$Create$("Empty collection can't be reduced.");
4076
4056
  var accumulator = iterator.t();
@@ -4079,25 +4059,27 @@
4079
4059
  }
4080
4060
  tmp_0 = accumulator;
4081
4061
  }
4082
- return tmp + tmp_0 + ' : ' + this.s3j_1;
4062
+ return tmp + tmp_0 + ' : ' + this.r3j_1;
4083
4063
  };
4084
- protoOf(Argument).a3k = function () {
4085
- var tmp0_elvis_lhs = this.x3j_1;
4086
- return tmp0_elvis_lhs == null ? parseStruct(Companion_getInstance(), '[' + toString(this.q3j_1) + ', ' + this.r3j_1 + ', [' + this.s3j_1 + '], ' + toString(this.t3j_1) + ', [' + toString(this.w3j_1) + ', ' + toString(this.u3j_1) + ', ' + toString(this.v3j_1) + ']]') : tmp0_elvis_lhs;
4064
+ protoOf(Argument).z3j = function () {
4065
+ var tmp0_elvis_lhs = this.w3j_1;
4066
+ return tmp0_elvis_lhs == null ? parseStruct(Companion_getInstance_7(), '[' + toString(this.p3j_1) + ', ' + this.q3j_1 + ', [' + this.r3j_1 + '], ' + toString(this.s3j_1) + ', [' + toString(this.v3j_1) + ', ' + toString(this.t3j_1) + ', ' + toString(this.u3j_1) + ']]') : tmp0_elvis_lhs;
4087
4067
  };
4088
4068
  protoOf(Argument).toString = function () {
4089
- return 'argument(' + this.a3k().toString() + ')';
4069
+ return 'argument(' + this.z3j().toString() + ')';
4090
4070
  };
4091
4071
  protoOf(Argument).equals = function (other) {
4092
4072
  if (this === other)
4093
4073
  return true;
4094
4074
  if (!(other instanceof Argument))
4095
4075
  return false;
4096
- if (!equals(this.q3j_1, other.q3j_1))
4076
+ if (!equals(this.p3j_1, other.p3j_1))
4077
+ return false;
4078
+ if (!(this.q3j_1 === other.q3j_1))
4097
4079
  return false;
4098
4080
  if (!(this.r3j_1 === other.r3j_1))
4099
4081
  return false;
4100
- if (!(this.s3j_1 === other.s3j_1))
4082
+ if (!equals(this.s3j_1, other.s3j_1))
4101
4083
  return false;
4102
4084
  if (!equals(this.t3j_1, other.t3j_1))
4103
4085
  return false;
@@ -4107,8 +4089,6 @@
4107
4089
  return false;
4108
4090
  if (!equals(this.w3j_1, other.w3j_1))
4109
4091
  return false;
4110
- if (!equals(this.x3j_1, other.x3j_1))
4111
- return false;
4112
4092
  return true;
4113
4093
  };
4114
4094
  function toString$parse(x) {
@@ -4117,23 +4097,23 @@
4117
4097
  function Attack(attacker, target, type, on) {
4118
4098
  type = type === VOID ? null : type;
4119
4099
  on = on === VOID ? null : on;
4120
- this.e3k_1 = attacker;
4121
- this.f3k_1 = target;
4122
- this.g3k_1 = type;
4123
- this.h3k_1 = on;
4100
+ this.d3k_1 = attacker;
4101
+ this.e3k_1 = target;
4102
+ this.f3k_1 = type;
4103
+ this.g3k_1 = on;
4124
4104
  }
4125
4105
  protoOf(Attack).toString = function () {
4126
- var tmp = toString(toString$parse(this.g3k_1));
4127
- var tmp_0 = this.e3k_1.a3k().toString();
4128
- var tmp_1 = this.f3k_1.a3k().toString();
4129
- var tmp0_safe_receiver = this.h3k_1;
4130
- return 'attack(' + tmp + ', ' + tmp_0 + ', ' + tmp_1 + ', ' + toString(toString$parse(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a3k())) + ')';
4106
+ var tmp = toString(toString$parse(this.f3k_1));
4107
+ var tmp_0 = this.d3k_1.z3j().toString();
4108
+ var tmp_1 = this.e3k_1.z3j().toString();
4109
+ var tmp0_safe_receiver = this.g3k_1;
4110
+ return 'attack(' + tmp + ', ' + tmp_0 + ', ' + tmp_1 + ', ' + toString(toString$parse(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z3j())) + ')';
4131
4111
  };
4132
4112
  protoOf(Attack).hashCode = function () {
4133
- var result = this.e3k_1.hashCode();
4134
- result = imul(result, 31) + this.f3k_1.hashCode() | 0;
4135
- result = imul(result, 31) + (this.g3k_1 == null ? 0 : getStringHashCode(this.g3k_1)) | 0;
4136
- result = imul(result, 31) + (this.h3k_1 == null ? 0 : this.h3k_1.hashCode()) | 0;
4113
+ var result = this.d3k_1.hashCode();
4114
+ result = imul(result, 31) + this.e3k_1.hashCode() | 0;
4115
+ result = imul(result, 31) + (this.f3k_1 == null ? 0 : getStringHashCode(this.f3k_1)) | 0;
4116
+ result = imul(result, 31) + (this.g3k_1 == null ? 0 : this.g3k_1.hashCode()) | 0;
4137
4117
  return result;
4138
4118
  };
4139
4119
  protoOf(Attack).equals = function (other) {
@@ -4141,31 +4121,31 @@
4141
4121
  return true;
4142
4122
  if (!(other instanceof Attack))
4143
4123
  return false;
4144
- if (!this.e3k_1.equals(other.e3k_1))
4124
+ if (!this.d3k_1.equals(other.d3k_1))
4145
4125
  return false;
4146
- if (!this.f3k_1.equals(other.f3k_1))
4126
+ if (!this.e3k_1.equals(other.e3k_1))
4147
4127
  return false;
4148
- if (!(this.g3k_1 == other.g3k_1))
4128
+ if (!(this.f3k_1 == other.f3k_1))
4149
4129
  return false;
4150
- if (!equals(this.h3k_1, other.h3k_1))
4130
+ if (!equals(this.g3k_1, other.g3k_1))
4151
4131
  return false;
4152
4132
  return true;
4153
4133
  };
4154
4134
  function Companion_4() {
4155
4135
  }
4156
- protoOf(Companion_4).o3j = function (labellings, attacks, supports) {
4136
+ protoOf(Companion_4).n3j = function (labellings, attacks, supports) {
4157
4137
  // Inline function 'kotlin.collections.map' call
4158
4138
  // Inline function 'kotlin.collections.mapTo' call
4159
4139
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(labellings, 10));
4160
4140
  var _iterator__ex2g4s = labellings.p();
4161
4141
  while (_iterator__ex2g4s.s()) {
4162
4142
  var item = _iterator__ex2g4s.t();
4163
- var tmp$ret$0 = item.i3k_1;
4143
+ var tmp$ret$0 = item.h3k_1;
4164
4144
  destination.m(tmp$ret$0);
4165
4145
  }
4166
4146
  // Inline function 'kotlin.also' call
4167
4147
  var this_0 = new Graph(destination, attacks, supports);
4168
- this_0.n3k_1 = labellings;
4148
+ this_0.m3k_1 = labellings;
4169
4149
  return this_0;
4170
4150
  };
4171
4151
  var Companion_instance_12;
@@ -4173,18 +4153,18 @@
4173
4153
  return Companion_instance_12;
4174
4154
  }
4175
4155
  function Graph(arguments_0, attacks, supports) {
4176
- this.k3k_1 = arguments_0;
4177
- this.l3k_1 = attacks;
4178
- this.m3k_1 = supports;
4179
- this.n3k_1 = emptyList();
4156
+ this.j3k_1 = arguments_0;
4157
+ this.k3k_1 = attacks;
4158
+ this.l3k_1 = supports;
4159
+ this.m3k_1 = emptyList();
4180
4160
  }
4181
4161
  protoOf(Graph).toString = function () {
4182
- return 'Graph(arguments=' + toString(this.k3k_1) + ', attacks=' + toString(this.l3k_1) + ', supports=' + toString(this.m3k_1) + ')';
4162
+ return 'Graph(arguments=' + toString(this.j3k_1) + ', attacks=' + toString(this.k3k_1) + ', supports=' + toString(this.l3k_1) + ')';
4183
4163
  };
4184
4164
  protoOf(Graph).hashCode = function () {
4185
- var result = hashCode(this.k3k_1);
4165
+ var result = hashCode(this.j3k_1);
4166
+ result = imul(result, 31) + hashCode(this.k3k_1) | 0;
4186
4167
  result = imul(result, 31) + hashCode(this.l3k_1) | 0;
4187
- result = imul(result, 31) + hashCode(this.m3k_1) | 0;
4188
4168
  return result;
4189
4169
  };
4190
4170
  protoOf(Graph).equals = function (other) {
@@ -4192,24 +4172,24 @@
4192
4172
  return true;
4193
4173
  if (!(other instanceof Graph))
4194
4174
  return false;
4175
+ if (!equals(this.j3k_1, other.j3k_1))
4176
+ return false;
4195
4177
  if (!equals(this.k3k_1, other.k3k_1))
4196
4178
  return false;
4197
4179
  if (!equals(this.l3k_1, other.l3k_1))
4198
4180
  return false;
4199
- if (!equals(this.m3k_1, other.m3k_1))
4200
- return false;
4201
4181
  return true;
4202
4182
  };
4203
4183
  function LabelledArgument(argument, label) {
4204
- this.i3k_1 = argument;
4205
- this.j3k_1 = label;
4184
+ this.h3k_1 = argument;
4185
+ this.i3k_1 = label;
4206
4186
  }
4207
4187
  protoOf(LabelledArgument).toString = function () {
4208
- return this.j3k_1 + '(' + this.i3k_1.a3k().toString() + ')';
4188
+ return this.i3k_1 + '(' + this.h3k_1.z3j().toString() + ')';
4209
4189
  };
4210
4190
  protoOf(LabelledArgument).hashCode = function () {
4211
- var result = this.i3k_1.hashCode();
4212
- result = imul(result, 31) + getStringHashCode(this.j3k_1) | 0;
4191
+ var result = this.h3k_1.hashCode();
4192
+ result = imul(result, 31) + getStringHashCode(this.i3k_1) | 0;
4213
4193
  return result;
4214
4194
  };
4215
4195
  protoOf(LabelledArgument).equals = function (other) {
@@ -4217,22 +4197,22 @@
4217
4197
  return true;
4218
4198
  if (!(other instanceof LabelledArgument))
4219
4199
  return false;
4220
- if (!this.i3k_1.equals(other.i3k_1))
4200
+ if (!this.h3k_1.equals(other.h3k_1))
4221
4201
  return false;
4222
- if (!(this.j3k_1 === other.j3k_1))
4202
+ if (!(this.i3k_1 === other.i3k_1))
4223
4203
  return false;
4224
4204
  return true;
4225
4205
  };
4226
4206
  function Support(supporter, supported) {
4227
- this.b3k_1 = supporter;
4228
- this.c3k_1 = supported;
4207
+ this.a3k_1 = supporter;
4208
+ this.b3k_1 = supported;
4229
4209
  }
4230
4210
  protoOf(Support).toString = function () {
4231
- return 'support(' + this.b3k_1.a3k().toString() + ', ' + this.c3k_1.a3k().toString() + ')';
4211
+ return 'support(' + this.a3k_1.z3j().toString() + ', ' + this.b3k_1.z3j().toString() + ')';
4232
4212
  };
4233
4213
  protoOf(Support).hashCode = function () {
4234
- var result = this.b3k_1.hashCode();
4235
- result = imul(result, 31) + this.c3k_1.hashCode() | 0;
4214
+ var result = this.a3k_1.hashCode();
4215
+ result = imul(result, 31) + this.b3k_1.hashCode() | 0;
4236
4216
  return result;
4237
4217
  };
4238
4218
  protoOf(Support).equals = function (other) {
@@ -4240,9 +4220,9 @@
4240
4220
  return true;
4241
4221
  if (!(other instanceof Support))
4242
4222
  return false;
4243
- if (!this.b3k_1.equals(other.b3k_1))
4223
+ if (!this.a3k_1.equals(other.a3k_1))
4244
4224
  return false;
4245
- if (!this.c3k_1.equals(other.c3k_1))
4225
+ if (!this.b3k_1.equals(other.b3k_1))
4246
4226
  return false;
4247
4227
  return true;
4248
4228
  };
@@ -4250,8 +4230,8 @@
4250
4230
  EngineInterface_instance = this;
4251
4231
  EngineInterfaceBase.call(this);
4252
4232
  }
4253
- protoOf(EngineInterface).c3a = function () {
4254
- return ArgumentationEngineInterface_instance.r3k_1;
4233
+ protoOf(EngineInterface).b3a = function () {
4234
+ return ArgumentationEngineInterface_instance.q3k_1;
4255
4235
  };
4256
4236
  var EngineInterface_instance;
4257
4237
  function EngineInterface_getInstance() {
@@ -4263,8 +4243,8 @@
4263
4243
  AbstractMode_instance = this;
4264
4244
  AbstractModeBase.call(this);
4265
4245
  }
4266
- protoOf(AbstractMode).c3a = function () {
4267
- return AbstractMode_instance_0.v3k_1;
4246
+ protoOf(AbstractMode).b3a = function () {
4247
+ return AbstractMode_instance_0.u3k_1;
4268
4248
  };
4269
4249
  var AbstractMode_instance;
4270
4250
  function AbstractMode_getInstance() {
@@ -4276,8 +4256,8 @@
4276
4256
  ArgumentationGraphBuilder_instance = this;
4277
4257
  ArgumentationGraphBuilderBase.call(this);
4278
4258
  }
4279
- protoOf(ArgumentationGraphBuilder).c3a = function () {
4280
- return ArgumentationGraph_instance.z3k_1;
4259
+ protoOf(ArgumentationGraphBuilder).b3a = function () {
4260
+ return ArgumentationGraph_instance.y3k_1;
4281
4261
  };
4282
4262
  var ArgumentationGraphBuilder_instance;
4283
4263
  function ArgumentationGraphBuilder_getInstance() {
@@ -4289,8 +4269,8 @@
4289
4269
  AttackRestrictionHandler_instance = this;
4290
4270
  AttackRestrictionHandlerBase.call(this);
4291
4271
  }
4292
- protoOf(AttackRestrictionHandler).c3a = function () {
4293
- return AttackRestriction_instance.d3l_1;
4272
+ protoOf(AttackRestrictionHandler).b3a = function () {
4273
+ return AttackRestriction_instance.c3l_1;
4294
4274
  };
4295
4275
  var AttackRestrictionHandler_instance;
4296
4276
  function AttackRestrictionHandler_getInstance() {
@@ -4302,8 +4282,8 @@
4302
4282
  BpMetaGraphHandler_instance = this;
4303
4283
  BpMetaGraphHandlerBase.call(this);
4304
4284
  }
4305
- protoOf(BpMetaGraphHandler).c3a = function () {
4306
- return Bp_instance.h3l_1;
4285
+ protoOf(BpMetaGraphHandler).b3a = function () {
4286
+ return Bp_instance.g3l_1;
4307
4287
  };
4308
4288
  var BpMetaGraphHandler_instance;
4309
4289
  function BpMetaGraphHandler_getInstance() {
@@ -4315,8 +4295,8 @@
4315
4295
  DefeasiblePreferencesHandler_instance = this;
4316
4296
  DefeasiblePreferencesHandlerBase.call(this);
4317
4297
  }
4318
- protoOf(DefeasiblePreferencesHandler).c3a = function () {
4319
- return DefPreferences_instance.l3l_1;
4298
+ protoOf(DefeasiblePreferencesHandler).b3a = function () {
4299
+ return DefPreferences_instance.k3l_1;
4320
4300
  };
4321
4301
  var DefeasiblePreferencesHandler_instance;
4322
4302
  function DefeasiblePreferencesHandler_getInstance() {
@@ -4328,8 +4308,8 @@
4328
4308
  GenericDefeasiblePreferencesHandler_instance = this;
4329
4309
  GenericDefeasiblePreferencesHandlerBase.call(this);
4330
4310
  }
4331
- protoOf(GenericDefeasiblePreferencesHandler).c3a = function () {
4332
- return GenericDefPreferences_instance.p3l_1;
4311
+ protoOf(GenericDefeasiblePreferencesHandler).b3a = function () {
4312
+ return GenericDefPreferences_instance.o3l_1;
4333
4313
  };
4334
4314
  var GenericDefeasiblePreferencesHandler_instance;
4335
4315
  function GenericDefeasiblePreferencesHandler_getInstance() {
@@ -4341,8 +4321,8 @@
4341
4321
  StrictPreferencesHandler_instance = this;
4342
4322
  StrictPreferencesHandlerBase.call(this);
4343
4323
  }
4344
- protoOf(StrictPreferencesHandler).c3a = function () {
4345
- return Preferences_instance.t3l_1;
4324
+ protoOf(StrictPreferencesHandler).b3a = function () {
4325
+ return Preferences_instance.s3l_1;
4346
4326
  };
4347
4327
  var StrictPreferencesHandler_instance;
4348
4328
  function StrictPreferencesHandler_getInstance() {
@@ -4354,8 +4334,8 @@
4354
4334
  BpCompleteLabeller_instance = this;
4355
4335
  BpCompleteLabellerBase.call(this);
4356
4336
  }
4357
- protoOf(BpCompleteLabeller).c3a = function () {
4358
- return BpGroundedComplete_instance.x3l_1;
4337
+ protoOf(BpCompleteLabeller).b3a = function () {
4338
+ return BpGroundedComplete_instance.w3l_1;
4359
4339
  };
4360
4340
  var BpCompleteLabeller_instance;
4361
4341
  function BpCompleteLabeller_getInstance() {
@@ -4367,8 +4347,8 @@
4367
4347
  BpLabeller_instance = this;
4368
4348
  BpLabellerBase.call(this);
4369
4349
  }
4370
- protoOf(BpLabeller).c3a = function () {
4371
- return BpGrounded_instance.b3m_1;
4350
+ protoOf(BpLabeller).b3a = function () {
4351
+ return BpGrounded_instance.a3m_1;
4372
4352
  };
4373
4353
  var BpLabeller_instance;
4374
4354
  function BpLabeller_getInstance() {
@@ -4380,8 +4360,8 @@
4380
4360
  BpPartialLabeller_instance = this;
4381
4361
  BpPartialLabellerBase.call(this);
4382
4362
  }
4383
- protoOf(BpPartialLabeller).c3a = function () {
4384
- return BpGroundedPartial_instance.f3m_1;
4363
+ protoOf(BpPartialLabeller).b3a = function () {
4364
+ return BpGroundedPartial_instance.e3m_1;
4385
4365
  };
4386
4366
  var BpPartialLabeller_instance;
4387
4367
  function BpPartialLabeller_getInstance() {
@@ -4393,8 +4373,8 @@
4393
4373
  CompleteLabeller_instance = this;
4394
4374
  CompleteLabellerBase.call(this);
4395
4375
  }
4396
- protoOf(CompleteLabeller).c3a = function () {
4397
- return Complete_instance.j3m_1;
4376
+ protoOf(CompleteLabeller).b3a = function () {
4377
+ return Complete_instance.i3m_1;
4398
4378
  };
4399
4379
  var CompleteLabeller_instance;
4400
4380
  function CompleteLabeller_getInstance() {
@@ -4406,8 +4386,8 @@
4406
4386
  GroundedLabeller_instance = this;
4407
4387
  GroundedLabellerBase.call(this);
4408
4388
  }
4409
- protoOf(GroundedLabeller).c3a = function () {
4410
- return Grounded_instance.n3m_1;
4389
+ protoOf(GroundedLabeller).b3a = function () {
4390
+ return Grounded_instance.m3m_1;
4411
4391
  };
4412
4392
  var GroundedLabeller_instance;
4413
4393
  function GroundedLabeller_getInstance() {
@@ -4419,8 +4399,8 @@
4419
4399
  GroundedLabellerOptimized_instance = this;
4420
4400
  GroundedLabellerOptimizedBase.call(this);
4421
4401
  }
4422
- protoOf(GroundedLabellerOptimized).c3a = function () {
4423
- return GroundedOptimized_instance.r3m_1;
4402
+ protoOf(GroundedLabellerOptimized).b3a = function () {
4403
+ return GroundedOptimized_instance.q3m_1;
4424
4404
  };
4425
4405
  var GroundedLabellerOptimized_instance;
4426
4406
  function GroundedLabellerOptimized_getInstance() {
@@ -4432,8 +4412,8 @@
4432
4412
  StatementLabeller_instance = this;
4433
4413
  StatementLabellerBase.call(this);
4434
4414
  }
4435
- protoOf(StatementLabeller).c3a = function () {
4436
- return StatementLabelling_instance.v3m_1;
4415
+ protoOf(StatementLabeller).b3a = function () {
4416
+ return StatementLabelling_instance.u3m_1;
4437
4417
  };
4438
4418
  var StatementLabeller_instance;
4439
4419
  function StatementLabeller_getInstance() {
@@ -4445,8 +4425,8 @@
4445
4425
  RuleParser_instance = this;
4446
4426
  RuleParserBase.call(this);
4447
4427
  }
4448
- protoOf(RuleParser).c3a = function () {
4449
- return RuleTranslator_instance.z3m_1;
4428
+ protoOf(RuleParser).b3a = function () {
4429
+ return RuleTranslator_instance.y3m_1;
4450
4430
  };
4451
4431
  var RuleParser_instance;
4452
4432
  function RuleParser_getInstance() {
@@ -4455,147 +4435,147 @@
4455
4435
  return RuleParser_instance;
4456
4436
  }
4457
4437
  function AbstractMode_0() {
4458
- this.v3k_1 = 'computeGlobalAcceptance :-\n buildGraph,\n modifyGraph,\n buildArgumentLabelling,\n buildStatementLabelling.\ncomputeGlobalAcceptance([Arguments, Attacks, Supports], [ArgsIn, ArgsOut, ArgsUnd], [StatIn, StatOut, StatUnd]) :-\n computeGlobalAcceptance,\n utils::recoverGraph(Arguments, Attacks, Supports),\n utils::recoverArgumentLabelling(ArgsIn, ArgsOut, ArgsUnd),\n utils::recoverStatementLabelling(StatIn, StatOut, StatUnd).\nbuildGraph :-\n graphBuildMode(X),\n X:::buildArgumentationGraph.\nmodifyGraph :-\n findall(X, graphExtension(X), Ext),\n modifyGraph(Ext).\nmodifyGraph([]).\nmodifyGraph([X|Ext]) :-\n modifyGraph(Ext),\n X:::modifyArgumentationGraph.\nbuildArgumentLabelling :-\n argumentLabellingMode(X),\n X:::argumentLabelling.\nbuildStatementLabelling :-\n statementLabellingMode(X),\n X:::statementLabelling.';
4438
+ this.u3k_1 = 'computeGlobalAcceptance :-\n buildGraph,\n modifyGraph,\n buildArgumentLabelling,\n buildStatementLabelling.\ncomputeGlobalAcceptance([Arguments, Attacks, Supports], [ArgsIn, ArgsOut, ArgsUnd], [StatIn, StatOut, StatUnd]) :-\n computeGlobalAcceptance,\n utils::recoverGraph(Arguments, Attacks, Supports),\n utils::recoverArgumentLabelling(ArgsIn, ArgsOut, ArgsUnd),\n utils::recoverStatementLabelling(StatIn, StatOut, StatUnd).\nbuildGraph :-\n graphBuildMode(X),\n X:::buildArgumentationGraph.\nmodifyGraph :-\n findall(X, graphExtension(X), Ext),\n modifyGraph(Ext).\nmodifyGraph([]).\nmodifyGraph([X|Ext]) :-\n modifyGraph(Ext),\n X:::modifyArgumentationGraph.\nbuildArgumentLabelling :-\n argumentLabellingMode(X),\n X:::argumentLabelling.\nbuildStatementLabelling :-\n statementLabellingMode(X),\n X:::statementLabelling.';
4459
4439
  }
4460
4440
  var AbstractMode_instance_0;
4461
4441
  function AbstractMode_getInstance_0() {
4462
4442
  return AbstractMode_instance_0;
4463
4443
  }
4464
4444
  function ArgumentationEngineInterface() {
4465
- this.r3k_1 = 'argTuProlog.\nbuildLabelSets([StatIn, StatOut, StatUnd], [ArgsIn, ArgsOut, ArgsUnd]) :-\n context_reset,\n parser:::convertAllRules(_),\n abstract::computeGlobalAcceptance(_, [ArgsIn, ArgsOut, ArgsUnd], [StatIn, StatOut, StatUnd]).\nbuildLabelSets(StatIn, StatOut, StatUnd) :-\n buildLabelSets([StatIn, StatOut, StatUnd], _).\nbuildLabelSets :-\n context_reset,\n parser:::convertAllRules(ArgRules),\n abstract::computeGlobalAcceptance([Arguments, Attacks, Supports], [ArgsIn, ArgsOut, ArgsUnd], [StatIn, StatOut, StatUnd]),\n debug::printArgumentationGraph(Arguments, Attacks, Supports),\n debug::printArgumentLabelling([ArgsIn, ArgsOut, ArgsUnd]),\n debug::printStatementLabelling([StatIn, StatOut, StatUnd]).\nanswerQuery(Goal, Yes, No, Und) :-\n context_reset,\n parser:::convertAllRules(_),\n structured:::computeStatementAcceptance(Goal, Yes, No, Und).\nanswerQuery(Goal, Res) :-\n context_reset,\n parser:::convertAllRules(_),\n structured:::query(Goal, Res).\nbuildLabelSetsSilent :-\n context_reset,\n parser:::convertAllRules(ArgRules),\n abstract::computeGlobalAcceptance.';
4445
+ this.q3k_1 = 'argTuProlog.\nbuildLabelSets([StatIn, StatOut, StatUnd], [ArgsIn, ArgsOut, ArgsUnd]) :-\n context_reset,\n parser:::convertAllRules(_),\n abstract::computeGlobalAcceptance(_, [ArgsIn, ArgsOut, ArgsUnd], [StatIn, StatOut, StatUnd]).\nbuildLabelSets(StatIn, StatOut, StatUnd) :-\n buildLabelSets([StatIn, StatOut, StatUnd], _).\nbuildLabelSets :-\n context_reset,\n parser:::convertAllRules(ArgRules),\n abstract::computeGlobalAcceptance([Arguments, Attacks, Supports], [ArgsIn, ArgsOut, ArgsUnd], [StatIn, StatOut, StatUnd]),\n debug::printArgumentationGraph(Arguments, Attacks, Supports),\n debug::printArgumentLabelling([ArgsIn, ArgsOut, ArgsUnd]),\n debug::printStatementLabelling([StatIn, StatOut, StatUnd]).\nanswerQuery(Goal, Yes, No, Und) :-\n context_reset,\n parser:::convertAllRules(_),\n structured:::computeStatementAcceptance(Goal, Yes, No, Und).\nanswerQuery(Goal, Res) :-\n context_reset,\n parser:::convertAllRules(_),\n structured:::query(Goal, Res).\nbuildLabelSetsSilent :-\n context_reset,\n parser:::convertAllRules(ArgRules),\n abstract::computeGlobalAcceptance.';
4466
4446
  }
4467
4447
  var ArgumentationEngineInterface_instance;
4468
4448
  function ArgumentationEngineInterface_getInstance() {
4469
4449
  return ArgumentationEngineInterface_instance;
4470
4450
  }
4471
4451
  function ArgumentationGraph() {
4472
- this.z3k_1 = 'buildArgumentationGraph :-\n buildArguments,\n findall(_, buildAdditionalArgument, _),\n buildAttacks.\nbuildAdditionalArgument :-\n metaConflicts,\n conf_arg(A, CArg),\n context_check(clause(conc(A), argument([R, T, C, B, I]))),\n \\+ filter_meta([R, T, C, B, I]),\n saveArgument(a, A, [[mc|R], T, C, B, I]),\n saveSupport(CArg, [[mc|R], T, C, B, I]),\n cloneSupport([R, T, C, B, I], [[mc|R], T, C, B, I]),\n fail.\nbuildAdditionalArgument.\ncloneSupport(Original, New) :-\n findall(_, (\n context_check(support(S, Original)),\n saveSupport(S, New)\n ), _).\nconf_arg([A], Arg) :-\n context_check(clause(conc([conflict(A, _, _)]), argument(Arg))).\nconf_arg([A], Arg) :-\n context_check(clause(conc([conflict(A, _)]), argument(Arg))).\nfilter_meta([Id, _, _, _, _]) :- metaConflicts, member(mc, Id).\nfilter_meta(_) :- \\+ metaConflicts.\nbuildArguments :-\n\tbuildArgumentsFromPremises,\n\tbuildArgumentsFromEmptyRules,\n\tfindall([RuleID, RuleBody, RuleHead], (\n\t parser::classic_rule(RuleID, RuleBody, RuleHead),\n\t \\+ emptyRule([RuleID, RuleBody, RuleHead])\n ), Rules),\n findall(X, context_check(newConc(a, [X])), N),\n\tbuildArgumentsFromRules(N, b, Rules, Rules, n).\nbuildArgumentsFromPremises :-\n findall(\n _,\n (\n parser::classic_rule(PremiseID, Premise),\n checkStrict(PremiseID, DefPrem),\n saveArgument(a, Premise, [[PremiseID], none, Premise, [], [[], [], DefPrem]])\n ),\n _\n ).\nbuildArgumentsFromEmptyRules :-\n findall(\n _,\n (\n emptyRule([RuleID, RulePrem, RuleHead]),\n checkStrict(RuleID, DefRule),\n saveArgument(a, RuleHead, [[RuleID], RuleID, RuleHead, RulePrem, [DefRule, DefRule, []]])\n ),\n _\n ).\nemptyRule([RuleID, Body, RuleHead]) :-\n parser::classic_rule(RuleID, Body, RuleHead),\n \\+ (member(X, Body), X \\= ~(_), X \\= prolog(_)),\n ruleBodyIsSupported(RuleID, RuleHead, Body, Body, [[], [], [], []], _).\ncheckStrict(Id, []) :- parser::check_strict(Id), !.\ncheckStrict(Id, [Id]).\nbuildArgumentsFromRules(_, _, Rules, [], n) :- !.\nbuildArgumentsFromRules(_, Tn, Rules, [], y) :- !, clean(Tn, Rules).\nbuildArgumentsFromRules(N, Tn, Rules, [[Id, Body, Conc]|T], _) :-\n utils::contains_any(Body, N),\n findall(true, buildArgumentsFromRule(Tn, [Id, Body, Conc]), R),\n R \\== [],\n buildArgumentsFromRules(N, Tn, Rules, T, y), !.\nbuildArgumentsFromRules(N, Tn, Rules, [_|T], X) :-\n buildArgumentsFromRules(N, Tn, Rules, T, X).\nbuildArgumentsFromRule(Tn, [RuleID, RuleBody, RuleHead]) :-\n\truleBodyIsSupported(RuleID, RuleHead, RuleBody, RuleBody, [[], [], [], []], Argument),\n\tsaveArgument(Tn, RuleHead, Argument).\nclean(Tn, Rules) :-\n invert(Tn, Tx),\n context_retract(newConc(Tx, _)),\n findall(X, context_check(newConc(Tn, [X])), N),\n buildArgumentsFromRules(N, Tx, Rules, Rules, n).\ninvert(a, b).\ninvert(b, a).\ndefRules(Id, Def, Def) :- parser::check_strict(Id), !.\ndefRules(Id, Def, [Id|Def]).\nlastDefRules(Id, LDef, LDef) :- parser::check_strict(Id), !.\nlastDefRules(Id, LDef, [Id]) :- Id \\== none, \\+ parser::check_strict(Id).\nargumentInfo(RuleId, LDef, Def, Prem, [FLDef, FDef, FPrem]) :-\n utils::sortDistinct(Prem, FPrem),\n defRules(RuleId, Def, NDef),\n utils::sortDistinct(NDef, FDef),\n lastDefRules(RuleId, LDef, NLDef),\n utils::sortDistinct(NLDef, FLDef).\nruleBodyIsSupported(RuleID, RuleHead, RuleBody, [], [TAll, TLDef, TDef, TPrem], Argument) :-\n utils::appendLists(TAll, All),\n \\+ utils::contains(RuleID, All),\n utils::appendLists(TLDef, LDef),\n utils::appendLists(TDef, Def),\n utils::appendLists(TPrem, Prem),\n argumentInfo(RuleID, LDef, Def, Prem, Info),\n utils::sort([RuleID|All], Rules),\n Argument = [Rules, RuleID, RuleHead, RuleBody, Info],\n \\+ context_check(clause(conc(RuleHead), argument(Argument))).\nruleBodyIsSupported(RuleID, RuleHead, RuleBody, [~(_)|Others], Info, Argument) :-\n\truleBodyIsSupported(RuleID, RuleHead, RuleBody, Others, Info, Argument).\nruleBodyIsSupported(RuleID, RuleHead, RuleBody, [prolog(Check)|Others], Info, Argument) :-\n\t(callable(Check) -> call(Check); Check),\n\truleBodyIsSupported(RuleID, RuleHead, RuleBody, Others, Info, Argument).\nruleBodyIsSupported(RuleId, RuleHead, RuleBody, [Statement|Others], [All, LDef, Def, Prem], Argument) :-\n context_check(clause(conc([Statement]), argument([ArgumentID, RuleID, [Statement], Body, [NLDef, NDef, NPrem]]))),\n\truleBodyIsSupported(RuleId, RuleHead, RuleBody, Others, [[ArgumentID|All], [NLDef|LDef], [NDef|Def], [NPrem|Prem]], Argument),\n\tsaveSupport([ArgumentID, RuleID, [Statement], Body, [NLDef, NDef, NPrem]], Argument).\nbuildAttacks :-\n\tfindall(_, buildDirectAttack, _),\n\tbuildTransitiveAttacks.\nbuildDirectAttack :-\n context_check(argument(A)),\n attack::findPossibleAttackers(A, BB),\n\tcontext_check(clause(conc(BB), argument(B))),\n\tfilter_meta(B),\n\tA \\== B,\n attack::attacks(T, B, A),\n saveAttack(T, B, A, A),\n\tfail.\nbuildDirectAttack.\nbuildTransitiveAttacks :-\n\tcontext_check(attack(T, A, B, D)),\n\tcontext_check(support(B, C)),\n\tsaveAttack(T, A, C, D),!,\n buildTransitiveAttacks.\nbuildTransitiveAttacks.\nsaveArgument(T, Conclusion, Argument) :-\n \\+ context_check(clause(conc(Conclusion), argument(Argument))),\n context_assert(newConc(T, Conclusion)),\n utils::hash(argument(Argument), Id),\n context_assert(argument(Argument)),\n context_assert(conc(Conclusion) :- argument(Argument)),\n context_assert(arg(Id) :- argument(Argument)).\nsaveAttack(T, A, C, D) :-\n \\+ context_check(attack(T, A, C, D)),\n context_assert(attack(T, A, C, D)),\n utils::hash(argument(A), IdA),\n utils::hash(argument(C), IdC),\n context_assert(att(IdA, IdC) :- attack(T, A, C, D)).\nsaveSupport(A, B) :-\n \\+ context_check(support(A, B)),\n context_assert(support(A, B)).\nremoveAttack(T, A, B, C) :-\n context_retract(attack(T, A, B, C)),\n utils::hash(argument(A), IdA),\n utils::hash(argument(B), IdB),\n context_retract(att(IdA, IdB) :- attack(T, A, B, C)).';
4452
+ this.y3k_1 = 'buildArgumentationGraph :-\n buildArguments,\n findall(_, buildAdditionalArgument, _),\n buildAttacks.\nbuildAdditionalArgument :-\n metaConflicts,\n conf_arg(A, CArg),\n context_check(clause(conc(A), argument([R, T, C, B, I]))),\n \\+ filter_meta([R, T, C, B, I]),\n saveArgument(a, A, [[mc|R], T, C, B, I]),\n saveSupport(CArg, [[mc|R], T, C, B, I]),\n cloneSupport([R, T, C, B, I], [[mc|R], T, C, B, I]),\n fail.\nbuildAdditionalArgument.\ncloneSupport(Original, New) :-\n findall(_, (\n context_check(support(S, Original)),\n saveSupport(S, New)\n ), _).\nconf_arg([A], Arg) :-\n context_check(clause(conc([conflict(A, _, _)]), argument(Arg))).\nconf_arg([A], Arg) :-\n context_check(clause(conc([conflict(A, _)]), argument(Arg))).\nfilter_meta([Id, _, _, _, _]) :- metaConflicts, member(mc, Id).\nfilter_meta(_) :- \\+ metaConflicts.\nbuildArguments :-\n\tbuildArgumentsFromPremises,\n\tbuildArgumentsFromEmptyRules,\n\tfindall([RuleID, RuleBody, RuleHead], (\n\t parser::classic_rule(RuleID, RuleBody, RuleHead),\n\t \\+ emptyRule([RuleID, RuleBody, RuleHead])\n ), Rules),\n findall(X, context_check(newConc(a, [X])), N),\n\tbuildArgumentsFromRules(N, b, Rules, Rules, n).\nbuildArgumentsFromPremises :-\n findall(\n _,\n (\n parser::classic_rule(PremiseID, Premise),\n checkStrict(PremiseID, DefPrem),\n saveArgument(a, Premise, [[PremiseID], none, Premise, [], [[], [], DefPrem]])\n ),\n _\n ).\nbuildArgumentsFromEmptyRules :-\n findall(\n _,\n (\n emptyRule([RuleID, RulePrem, RuleHead]),\n checkStrict(RuleID, DefRule),\n saveArgument(a, RuleHead, [[RuleID], RuleID, RuleHead, RulePrem, [DefRule, DefRule, []]])\n ),\n _\n ).\nemptyRule([RuleID, Body, RuleHead]) :-\n parser::classic_rule(RuleID, Body, RuleHead),\n \\+ (member(X, Body), X \\= ~(_), X \\= prolog(_)),\n ruleBodyIsSupported(RuleID, RuleHead, Body, Body, [[], [], [], []], _).\ncheckStrict(Id, []) :- parser::check_strict(Id), !.\ncheckStrict(Id, [Id]).\nbuildArgumentsFromRules(_, _, Rules, [], n) :- !.\nbuildArgumentsFromRules(_, Tn, Rules, [], y) :- !, clean(Tn, Rules).\nbuildArgumentsFromRules(N, Tn, Rules, [[Id, Body, Conc]|T], _) :-\n utils::contains_any(Body, N),\n findall(true, buildArgumentsFromRule(Tn, [Id, Body, Conc]), R),\n R \\== [],\n buildArgumentsFromRules(N, Tn, Rules, T, y), !.\nbuildArgumentsFromRules(N, Tn, Rules, [_|T], X) :-\n buildArgumentsFromRules(N, Tn, Rules, T, X).\nbuildArgumentsFromRule(Tn, [RuleID, RuleBody, RuleHead]) :-\n\truleBodyIsSupported(RuleID, RuleHead, RuleBody, RuleBody, [[], [], [], []], Argument),\n\tsaveArgument(Tn, RuleHead, Argument).\nclean(Tn, Rules) :-\n invert(Tn, Tx),\n context_retract(newConc(Tx, _)),\n findall(X, context_check(newConc(Tn, [X])), N),\n buildArgumentsFromRules(N, Tx, Rules, Rules, n).\ninvert(a, b).\ninvert(b, a).\ndefRules(Id, Def, Def) :- parser::check_strict(Id), !.\ndefRules(Id, Def, [Id|Def]).\nlastDefRules(Id, LDef, LDef) :- parser::check_strict(Id), !.\nlastDefRules(Id, LDef, [Id]) :- Id \\== none, \\+ parser::check_strict(Id).\nargumentInfo(RuleId, LDef, Def, Prem, [FLDef, FDef, FPrem]) :-\n utils::sortDistinct(Prem, FPrem),\n defRules(RuleId, Def, NDef),\n utils::sortDistinct(NDef, FDef),\n lastDefRules(RuleId, LDef, NLDef),\n utils::sortDistinct(NLDef, FLDef).\nruleBodyIsSupported(RuleID, RuleHead, RuleBody, [], [TAll, TLDef, TDef, TPrem], Argument) :-\n utils::appendLists(TAll, All),\n \\+ utils::contains(RuleID, All),\n utils::appendLists(TLDef, LDef),\n utils::appendLists(TDef, Def),\n utils::appendLists(TPrem, Prem),\n argumentInfo(RuleID, LDef, Def, Prem, Info),\n utils::sort([RuleID|All], Rules),\n Argument = [Rules, RuleID, RuleHead, RuleBody, Info],\n \\+ context_check(clause(conc(RuleHead), argument(Argument))).\nruleBodyIsSupported(RuleID, RuleHead, RuleBody, [~(_)|Others], Info, Argument) :-\n\truleBodyIsSupported(RuleID, RuleHead, RuleBody, Others, Info, Argument).\nruleBodyIsSupported(RuleID, RuleHead, RuleBody, [prolog(Check)|Others], Info, Argument) :-\n\t(callable(Check) -> call(Check); Check),\n\truleBodyIsSupported(RuleID, RuleHead, RuleBody, Others, Info, Argument).\nruleBodyIsSupported(RuleId, RuleHead, RuleBody, [Statement|Others], [All, LDef, Def, Prem], Argument) :-\n context_check(clause(conc([Statement]), argument([ArgumentID, RuleID, [Statement], Body, [NLDef, NDef, NPrem]]))),\n\truleBodyIsSupported(RuleId, RuleHead, RuleBody, Others, [[ArgumentID|All], [NLDef|LDef], [NDef|Def], [NPrem|Prem]], Argument),\n\tsaveSupport([ArgumentID, RuleID, [Statement], Body, [NLDef, NDef, NPrem]], Argument).\nbuildAttacks :-\n\tfindall(_, buildDirectAttack, _).\nbuildDirectAttack :-\n context_check(argument(A)),\n attack::findPossibleAttackers(A, BB),\n\tcontext_check(clause(conc(BB), argument(B))),\n\tfilter_meta(B),\n\tA \\== B,\n attack::attacks(T, B, A),\n saveAttack(T, B, A, A),\n findall(_, (\n expanded_support(A, C),\n saveAttack(T, B, C, A)\n ),_),\n\tfail.\nbuildDirectAttack.\nexpanded_support(A, B) :-\n context_check(support(A, B)).\nexpanded_support(A, C) :-\n context_check(support(A, B)),\n expanded_support(B, C).\nsaveArgument(T, Conclusion, Argument) :-\n \\+ context_check(clause(conc(Conclusion), argument(Argument))),\n context_assert(newConc(T, Conclusion)),\n utils::hash(argument(Argument), Id),\n context_assert(argument(Argument)),\n context_assert(conc(Conclusion) :- argument(Argument)),\n context_assert(arg(Id) :- argument(Argument)).\nsaveAttack(T, A, C, D) :-\n \\+ context_check(attack(T, A, C, D)),\n context_assert(attack(T, A, C, D)),\n utils::hash(argument(A), IdA),\n utils::hash(argument(C), IdC),\n context_assert(att(IdA, IdC) :- attack(T, A, C, D)).\nsaveSupport(A, B) :-\n \\+ context_check(support(A, B)),\n context_assert(support(A, B)).\nremoveAttack(T, A, B, C) :-\n context_retract(attack(T, A, B, C)),\n utils::hash(argument(A), IdA),\n utils::hash(argument(B), IdB),\n context_retract(att(IdA, IdB) :- attack(T, A, B, C)).';
4473
4453
  }
4474
4454
  var ArgumentationGraph_instance;
4475
4455
  function ArgumentationGraph_getInstance() {
4476
4456
  return ArgumentationGraph_instance;
4477
4457
  }
4478
4458
  function AttackRelation() {
4479
- this.a3n_1 = 'attacks(rebut, A, B) :- rebuts(A, B), !.\nattacks(contrary_rebut, A, B) :- contraryRebuts(A, B), !.\nattacks(undermine, A, B) :- undermines(A, B), !.\nattacks(contrary_undermine, A, B) :- contraryUndermines(A, B), !.\nattacks(undercut, A, B) :- undercuts(A, B), !.\nexpanded_conflict(HeadA, HeadB) :-\n parser::classic_conflict(HeadA, HeadB).\nexpanded_conflict(HeadA, HeadB) :-\n parser::classic_conflict(HeadA, HeadB, Guard),\n (callable(Guard) -> call(Guard); Guard).\nrebuts([IDPremisesA, RuleA, RuleHeadA, _, _], [IDPremisesB, RuleB, RuleHeadB, _, Info]) :-\n\tRuleB \\== none,\n Info \\== [[], [], []],\n\texpanded_conflict(RuleHeadA, RuleHeadB).\ncontraryRebuts([IDPremisesA, RuleA, [RuleHeadA], _, _], [IDPremisesB, RuleB, RuleHeadB, Body, Info]) :-\n\tRuleA \\== none,\n\tRuleB \\== none,\n\tutils::contains(~(RuleHeadA), Body).\nundermines([IDPremisesA, RuleA, RuleHeadA, _, _], [[IDPremiseB], none, RuleHeadB, _, Info]) :-\n\tInfo \\== [[], [], []],\n\texpanded_conflict(RuleHeadA, RuleHeadB).\ncontraryUndermines([IDPremisesA, none, [RuleHeadA], _, _], [IDPremisesB, RuleB, RuleHeadB, Body, Info]) :-\n\tRuleB \\== none,\n\tutils::contains(~(RuleHeadA), Body).\nundercuts([_, _, [undercut(RuleB)], _, _], [_, RuleB, _, _, [[RuleB], _, _]]).\nundercuts([_, _, NegRuleB, _, _], [_, RuleB, _, _, [[RuleB], _, _]]) :-\n expanded_conflict(NegRuleB, [RuleB]).\nfindPossibleAttackers([_, _, Head, _, _], Conf) :-\n parser::classic_conflict(Conf, Head, Guard).\nfindPossibleAttackers([_, _, Head, _, _], Conf) :-\n parser::classic_conflict(Conf, Head).\nfindPossibleAttackers([_, _, _, Prem, _], [Conf]) :-\n member(~(Conf), Prem).\nfindPossibleAttackers([_, RuleID, _, _, _], [undercut(RuleID)]).\nfindPossibleAttackers([_, RuleID, _, _, _], Conf) :-\n parser::classic_conflict(Conf, [RuleID], Guard).\nfindPossibleAttackers([_, RuleID, _, _, _], Conf) :-\n parser::classic_conflict(Conf, [RuleID]).';
4459
+ this.z3m_1 = 'attacks(rebut, A, B) :- rebuts(A, B), !.\nattacks(contrary_rebut, A, B) :- contraryRebuts(A, B), !.\nattacks(undermine, A, B) :- undermines(A, B), !.\nattacks(contrary_undermine, A, B) :- contraryUndermines(A, B), !.\nattacks(undercut, A, B) :- undercuts(A, B), !.\nexpanded_conflict(HeadA, HeadB) :-\n parser::classic_conflict(HeadA, HeadB).\nexpanded_conflict(HeadA, HeadB) :-\n parser::classic_conflict(HeadA, HeadB, Guard),\n (callable(Guard) -> call(Guard); Guard).\nrebuts([IDPremisesA, RuleA, RuleHeadA, _, _], [IDPremisesB, RuleB, RuleHeadB, _, Info]) :-\n\tRuleB \\== none,\n Info \\== [[], [], []],\n\texpanded_conflict(RuleHeadA, RuleHeadB).\ncontraryRebuts([IDPremisesA, RuleA, [RuleHeadA], _, _], [IDPremisesB, RuleB, RuleHeadB, Body, Info]) :-\n\tRuleA \\== none,\n\tRuleB \\== none,\n\tutils::contains(~(RuleHeadA), Body).\nundermines([IDPremisesA, RuleA, RuleHeadA, _, _], [[IDPremiseB], none, RuleHeadB, _, Info]) :-\n\tInfo \\== [[], [], []],\n\texpanded_conflict(RuleHeadA, RuleHeadB).\ncontraryUndermines([IDPremisesA, none, [RuleHeadA], _, _], [IDPremisesB, RuleB, RuleHeadB, Body, Info]) :-\n\tRuleB \\== none,\n\tutils::contains(~(RuleHeadA), Body).\nundercuts([_, _, [undercut(RuleB)], _, _], [_, RuleB, _, _, [[RuleB], _, _]]).\nundercuts([_, _, NegRuleB, _, _], [_, RuleB, _, _, [[RuleB], _, _]]) :-\n expanded_conflict(NegRuleB, [RuleB]).\nfindPossibleAttackers([_, _, Head, _, _], Conf) :-\n parser::classic_conflict(Conf, Head, Guard).\nfindPossibleAttackers([_, _, Head, _, _], Conf) :-\n parser::classic_conflict(Conf, Head).\nfindPossibleAttackers([_, _, _, Prem, _], [Conf]) :-\n member(~(Conf), Prem).\nfindPossibleAttackers([_, RuleID, _, _, _], [undercut(RuleID)]).\nfindPossibleAttackers([_, RuleID, _, _, _], Conf) :-\n parser::classic_conflict(Conf, [RuleID], Guard).\nfindPossibleAttackers([_, RuleID, _, _, _], Conf) :-\n parser::classic_conflict(Conf, [RuleID]).';
4480
4460
  }
4481
4461
  var AttackRelation_instance;
4482
4462
  function AttackRelation_getInstance() {
4483
4463
  return AttackRelation_instance;
4484
4464
  }
4485
4465
  function AttackRestriction() {
4486
- this.d3l_1 = 'modifyArgumentationGraph :-\n findall(_, (\n context_check(attack(T, A, B, C)),\n checkRebutRestriction(T, A, B, C)\n ), _).\ncheckRebutRestriction(T, A, B, C) :-\n \\+ rebutRestriction(T, A, B, C),\n standard_af::removeAttack(T, A, B, C).\nrebutRestriction(rebut, _, _, C) :- restrict(C).\nrebutRestriction(undermine, _, _, C).\nrebutRestriction(contrary_rebut, _, _, _).\nrebutRestriction(contrary_undermine, _, _, _).\nrebutRestriction(undercut, _, _, _).\nrestrict([_, TopRule, _, _, [[TopRule], _, _]]) :- TopRule \\== none.';
4466
+ this.c3l_1 = 'modifyArgumentationGraph :-\n findall(_, (\n context_check(attack(T, A, B, C)),\n checkRebutRestriction(T, A, B, C)\n ), _).\ncheckRebutRestriction(T, A, B, C) :-\n \\+ rebutRestriction(T, A, B, C),\n standard_af::removeAttack(T, A, B, C).\nrebutRestriction(rebut, _, _, C) :- restrict(C).\nrebutRestriction(undermine, _, _, C).\nrebutRestriction(contrary_rebut, _, _, _).\nrebutRestriction(contrary_undermine, _, _, _).\nrebutRestriction(undercut, _, _, _).\nrestrict([_, TopRule, _, _, [[TopRule], _, _]]) :- TopRule \\== none.';
4487
4467
  }
4488
4468
  var AttackRestriction_instance;
4489
4469
  function AttackRestriction_getInstance() {
4490
4470
  return AttackRestriction_instance;
4491
4471
  }
4492
4472
  function Bp() {
4493
- this.h3l_1 = '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).\ncheckBpArguments([]).\ncheckBpArguments(TemplateBpPairs) :-\n createBpArguments(TemplateBpPairs, BpPairs),\n createBpAttacks(BpPairs).\ncreateBpArguments([], []).\ncreateBpArguments([(Original, [Z, P, Y, B, I])|Others], [(Conflict, [Z, P, Y, B, I])|BpPairs]) :-\n Conflict = [[artificial|Z], artificial, [-burdmet(Y)], [], [[artificial], [artificial], []]],\n standard_af::saveArgument(a, [-burdmet(Y)], Conflict),\n standard_af::saveSupport(Original, Conflict),\n liftBpAttacks(Original, Conflict),\n createBpArguments(Others, BpPairs).\nliftBpAttacks(Template, BpArg) :-\n findall(_, (\n context_check(attack(T, A, Template, O)),\n standard_af::saveAttack(T, A, BpArg, O)\n ), _).\ncreateBpAttacks(BpPairs) :-\n generateBpsEvaluationChain(BpPairs, OrderedBpPairs),\n evaluateBurdenedArgs(OrderedBpPairs).\ngenerateBpsEvaluationChain([], []).\ngenerateBpsEvaluationChain([BpPair|BpPairs], OrderedBpPairs) :-\n generateBpsEvaluationChain(BpPairs, TempOrderedBpPairs),\n insertBpPair(BpPair, TempOrderedBpPairs, OrderedBpPairs).\ninsertBpPair(BpPair, [], [BpPair]).\ninsertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(BpL, BurdenedL)|Return]) :-\n bp_grounded::argumentChain(BurdenedL, Burdened),\n insertBpPair((Bp, Burdened), Others, Return), !.\ninsertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(Bp, Burdened)|[(BpL, BurdenedL)|Others]]).\nevaluateBurdenedArgs([]).\nevaluateBurdenedArgs([(Bp, Burdened)|Others]) :-\n context_active(X),\n grounded:::argumentLabelling,\n statusToAttack((Bp, Burdened), attack(T, A, B, C)),\n context_checkout(X),\n standard_af::saveAttack(T, A, B, C),\n evaluateBurdenedArgs(Others).\nstatusToAttack((Bp, Burdened), attack(bprebut, Burdened, Bp, Bp)) :-\n context_check(in(Burdened)).\nstatusToAttack((Bp, Burdened), attack(bprebut, Bp, Burdened, Burdened)) :-\n \\+ context_check(in(Burdened)).';
4473
+ this.g3l_1 = '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).\ncheckBpArguments([]).\ncheckBpArguments(TemplateBpPairs) :-\n createBpArguments(TemplateBpPairs, BpPairs),\n createBpAttacks(BpPairs).\ncreateBpArguments([], []).\ncreateBpArguments([(Original, [Z, P, Y, B, I])|Others], [(Conflict, [Z, P, Y, B, I])|BpPairs]) :-\n Conflict = [[artificial|Z], artificial, [-burdmet(Y)], [], [[artificial], [artificial], []]],\n standard_af::saveArgument(a, [-burdmet(Y)], Conflict),\n standard_af::saveSupport(Original, Conflict),\n liftBpAttacks(Original, Conflict),\n createBpArguments(Others, BpPairs).\nliftBpAttacks(Template, BpArg) :-\n findall(_, (\n context_check(attack(T, A, Template, O)),\n standard_af::saveAttack(T, A, BpArg, O)\n ), _).\ncreateBpAttacks(BpPairs) :-\n generateBpsEvaluationChain(BpPairs, OrderedBpPairs),\n evaluateBurdenedArgs(OrderedBpPairs).\ngenerateBpsEvaluationChain([], []).\ngenerateBpsEvaluationChain([BpPair|BpPairs], OrderedBpPairs) :-\n generateBpsEvaluationChain(BpPairs, TempOrderedBpPairs),\n insertBpPair(BpPair, TempOrderedBpPairs, OrderedBpPairs).\ninsertBpPair(BpPair, [], [BpPair]).\ninsertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(BpL, BurdenedL)|Return]) :-\n bp_grounded::argumentChain(BurdenedL, Burdened),\n insertBpPair((Bp, Burdened), Others, Return), !.\ninsertBpPair((Bp, Burdened), [(BpL, BurdenedL)|Others], [(Bp, Burdened)|[(BpL, BurdenedL)|Others]]).\nevaluateBurdenedArgs([]).\nevaluateBurdenedArgs([(Bp, Burdened)|Others]) :-\n context_active(X),\n grounded:::argumentLabelling,\n statusToAttack((Bp, Burdened), attack(T, A, B, C)),\n context_checkout(X),\n standard_af::saveAttack(T, A, B, C),\n evaluateBurdenedArgs(Others).\nstatusToAttack((Bp, Burdened), attack(bprebut, Burdened, Bp, Bp)) :-\n context_check(in(Burdened)).\nstatusToAttack((Bp, Burdened), attack(bprebut, Bp, Burdened, Burdened)) :-\n \\+ context_check(in(Burdened)).';
4494
4474
  }
4495
4475
  var Bp_instance;
4496
4476
  function Bp_getInstance() {
4497
4477
  return Bp_instance;
4498
4478
  }
4499
4479
  function BpGrounded() {
4500
- this.b3m_1 = 'argumentLabelling :-\n reifyBurdenOfProofs,\n filterBpDefeats,\n findall(X, context_check(argument(X)), Arguments),\n bpLabelling(Arguments).\nbpLabelling(Arguments) :-\n member(A, Arguments),\n grounded::allAttacksOUT(A), !,\n context_assert(in(A)),\n utils::subtract(Arguments, [A], NewArguments),\n bpLabelling(NewArguments).\nbpLabelling(Arguments) :-\n member(A, Arguments),\n \\+ isArgumentInBurdenOfProof(A),\n grounded::oneAttackIN(A), !,\n context_assert(out(A)),\n utils::subtract(Arguments, [A], NewArguments),\n bpLabelling(NewArguments).\nbpLabelling(Arguments) :-\n context_active(Branch),\n mostGroundedBpUnd(Arguments, A),\n context_branch(Branch, _),\n context_assert(out(A)),\n utils::subtract(Arguments, [A], NewArguments),\n bpLabelling(NewArguments).\nbpLabelling(Args) :-\n notLabelled(Args),\n findall(_, (member(A, Args), context_assert(und(A))), _).\nnotLabelled(Args) :-\n \\+ (\n member(A, Args),\n (\n context_check(in(A));\n context_check(out(A));\n context_check(und(A))\n )\n ).\nisInBurdenOfProof(Conclusion) :-\n context_check(reifiedBp(Literals)),\n member(Conclusion, Literals), !.\nisArgumentInBurdenOfProof([_, _, Conclusion, _, _]) :-\n isInBurdenOfProof(Conclusion).\nfilterBpDefeats :-\n findall(_, (\n context_check(attack(T, A, B, C)),\n filterBpDefeat(T, A, B, C)\n ), _).\nfilterBpDefeat(T, B, A, C) :-\n (T = rebut; T = undermine),\n isArgumentInBurdenOfProof(B),\n \\+ superiority::superiorArgument(B, C),\n context_retract(attack(T, B, A, C)).\nmostGroundedBpUnd(Arguments, Arg) :-\n member(Arg, Arguments),\n isArgumentInBurdenOfProof(Arg),\n \\+ (\n member(A, Arguments), Arg \\= A,\n isArgumentInBurdenOfProof(A),\n argumentChain(A, Arg)\n ).\nargumentChain(A, A) :- !.\nargumentChain(A, B) :-\n A \\== B,\n context_check(attack(_, A, C, _)),\n argumentChain(C, B).\nreifyBurdenOfProofs :-\n findall(_, (\n context_check(abstractBp(AbstractBp)),\n fillTemplate(AbstractBp, R),\n \\+ context_check(reifiedBp(R)),\n context_assert(reifiedBp(R))\n ), _).\n/*\n Fill the template (first parameter) using arguments conclusions\n*/\nfillTemplate([], []).\nfillTemplate([H|T], [[H]|R]) :-\n context_check(argument([_ , _, [P], _, _])),\n fillTemplate(T, R).';
4480
+ this.a3m_1 = 'argumentLabelling :-\n reifyBurdenOfProofs,\n filterBpDefeats,\n findall(X, context_check(argument(X)), Arguments),\n bpLabelling(Arguments).\nbpLabelling(Arguments) :-\n member(A, Arguments),\n grounded::allAttacksOUT(A), !,\n context_assert(in(A)),\n utils::subtract(Arguments, [A], NewArguments),\n bpLabelling(NewArguments).\nbpLabelling(Arguments) :-\n member(A, Arguments),\n \\+ isArgumentInBurdenOfProof(A),\n grounded::oneAttackIN(A), !,\n context_assert(out(A)),\n utils::subtract(Arguments, [A], NewArguments),\n bpLabelling(NewArguments).\nbpLabelling(Arguments) :-\n context_active(Branch),\n mostGroundedBpUnd(Arguments, A),\n context_branch(Branch, _),\n context_assert(out(A)),\n utils::subtract(Arguments, [A], NewArguments),\n bpLabelling(NewArguments).\nbpLabelling(Args) :-\n notLabelled(Args),\n findall(_, (member(A, Args), context_assert(und(A))), _).\nnotLabelled(Args) :-\n \\+ (\n member(A, Args),\n (\n context_check(in(A));\n context_check(out(A));\n context_check(und(A))\n )\n ).\nisInBurdenOfProof(Conclusion) :-\n context_check(reifiedBp(Literals)),\n member(Conclusion, Literals), !.\nisArgumentInBurdenOfProof([_, _, Conclusion, _, _]) :-\n isInBurdenOfProof(Conclusion).\nfilterBpDefeats :-\n findall(_, (\n context_check(attack(T, A, B, C)),\n filterBpDefeat(T, A, B, C)\n ), _).\nfilterBpDefeat(T, B, A, C) :-\n (T = rebut; T = undermine),\n isArgumentInBurdenOfProof(B),\n \\+ superiority::superiorArgument(B, C),\n context_retract(attack(T, B, A, C)).\nmostGroundedBpUnd(Arguments, Arg) :-\n member(Arg, Arguments),\n isArgumentInBurdenOfProof(Arg),\n \\+ (\n member(A, Arguments), Arg \\= A,\n isArgumentInBurdenOfProof(A),\n argumentChain(A, Arg)\n ).\nargumentChain(A, A) :- !.\nargumentChain(A, B) :-\n A \\== B,\n context_check(attack(_, A, C, _)),\n argumentChain(C, B).\nreifyBurdenOfProofs :-\n findall(_, (\n context_check(abstractBp(AbstractBp)),\n fillTemplate(AbstractBp, R),\n \\+ context_check(reifiedBp(R)),\n context_assert(reifiedBp(R))\n ), _).\n/*\n Fill the template (first parameter) using arguments conclusions\n*/\nfillTemplate([], []).\nfillTemplate([H|T], [[H]|R]) :-\n context_check(argument([_ , _, [P], _, _])),\n fillTemplate(T, R).';
4501
4481
  }
4502
4482
  var BpGrounded_instance;
4503
4483
  function BpGrounded_getInstance() {
4504
4484
  return BpGrounded_instance;
4505
4485
  }
4506
4486
  function BpGroundedComplete() {
4507
- this.x3l_1 = 'argumentLabelling :-\n bp_grounded::reifyBurdenOfProofs,\n findall(X, context_check(argument(X)), Arguments),\n completeBpLabelling(go, Arguments).\ncompleteBpLabelling(stop, _).\ncompleteBpLabelling(go, Arguments) :-\n bp_grounded_partial::partialBpLabelling(Arguments), !,\n findall(X, (context_check(und(X)), context_retract(und(X))), NewArgs),\n grounded::groundedLabelling(NewArgs),\n findall(X, context_check(und(X)), LeftArguments),\n stopCondition(Stop, Arguments, LeftArguments),\n completeBpLabelling(Stop, LeftArguments).\nstopCondition(stop, Args, NewArgs) :-\n utils::sort(Args, SortedArgs),\n utils::sort(NewArgs, SortedArgs), !.\nstopCondition(go, _, _) :- context_retract(und(_)).';
4487
+ this.w3l_1 = 'argumentLabelling :-\n bp_grounded::reifyBurdenOfProofs,\n findall(X, context_check(argument(X)), Arguments),\n completeBpLabelling(go, Arguments).\ncompleteBpLabelling(stop, _).\ncompleteBpLabelling(go, Arguments) :-\n bp_grounded_partial::partialBpLabelling(Arguments), !,\n findall(X, (context_check(und(X)), context_retract(und(X))), NewArgs),\n grounded::groundedLabelling(NewArgs),\n findall(X, context_check(und(X)), LeftArguments),\n stopCondition(Stop, Arguments, LeftArguments),\n completeBpLabelling(Stop, LeftArguments).\nstopCondition(stop, Args, NewArgs) :-\n utils::sort(Args, SortedArgs),\n utils::sort(NewArgs, SortedArgs), !.\nstopCondition(go, _, _) :- context_retract(und(_)).';
4508
4488
  }
4509
4489
  var BpGroundedComplete_instance;
4510
4490
  function BpGroundedComplete_getInstance() {
4511
4491
  return BpGroundedComplete_instance;
4512
4492
  }
4513
4493
  function BpGroundedPartial() {
4514
- this.f3m_1 = "argumentLabelling :-\n bp_grounded::reifyBurdenOfProofs,\n findall(X, context_check(argument(X)), Arguments),\n partialBpLabelling(Arguments), !.\npartialBpLabelling([]).\npartialBpLabelling(Arguments) :-\n mostGroundedArgument(Arguments, A),\n debug::writeDebug(['Evaluating ', A]),\n demonstration(Arguments, A, [A], Evaluated),\n utils::subtract(Arguments, [Evaluated], NewArgs),\n partialBpLabelling(NewArgs).\n/*\n (a.i) BP(neg(\u03C6)), and no argument B for neg(\u03C6) such that A < B is IN*, and no A1,...An is OUT*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tisComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n\t superiorComplementArgument(A, B),\n\t context_check(in(B))\n\t),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\t\\+ (\n\t context_check(support(X, A)),\n\t context_check(out(X))\n\t),\n\tdebug::writeDebug(['Adding argument: ', A, ' to IN* (2.a.i)']),\n context_assert(in(A)).\n/*\n (a.ii) not BP(neg(\u03C6)) and every argument B for neg(\u03C6) such that B(not <)A is OUT*, and every A1,...An is IN*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\t\\+ isComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n superiorOrEqualComplementArgument(A, B),\n \\+ context_check(out(B))\n ),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\t\\+ (\n context_check(support(X, A)),\n \\+ context_check(in(X))\n ),\n\tdebug::writeDebug(['Adding argument: ', A, ' to IN* (2.a.ii)']),\n context_assert(in(A)).\n/*\n (b.i.1) BP(\u03C6) and exists an argument B for neg(\u03C6) such that B(not <)A is not OUT*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, _),\n\tsuperiorOrEqualComplementArgument(A, B),\n\t\\+ context_check(out(B)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.i.1)']),\n context_assert(out(A)).\n/*\n (b.i.2) BP(\u03C6) and exist one of A1,...An is not IN*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\tcontext_check(support(X, A)),\n \\+ context_check(in(X)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.i.2)']),\n context_assert(out(A)).\n/*\n (b.ii.1) not BP(\u03C6) and an argument B for neg(\u03C6) such A < B is IN*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, _),\n\tsuperiorComplementArgument(A, B),\n\tcontext_check(in(B)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.ii.1)']),\n context_assert(out(A)).\n/*\n (b.ii.2) not BP(\u03C6) and one of A1,...An is OUT*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\tcontext_check(support(X, A)),\n context_check(out(X)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.ii.2)']),\n context_assert(out(A)).\n/*\n If above definitions do not apply try to decide on the arguments on which they depend\n*/\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n isComplementInBurdenOfProof(A),\n\tnotEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\tisComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n superiorComplementArgument(A, X),\n context_check(in(X))\n ),\n notEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n \\+ isComplementInBurdenOfProof(A),\n\tnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\t\\+ isComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n superiorOrEqualComplementArgument(A, X),\n \\+ context_check(out(X))\n ),\n notEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\n/*\n (c) A is labelled UND* otherwise.\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tdebug::writeDebug(['Adding argument: ', A, ' to UND* (2.c)']),\n context_assert(und(A)).\nisComplementInBurdenOfProof(A) :-\n complement(A, Complement),\n bp_grounded::isInBurdenOfProof(Complement), !.\nmostGroundedArgument([], []).\nmostGroundedArgument([X], X).\nmostGroundedArgument([[L, _, _, _, _]|T], [L2, Q2, W2, B2, I2]) :-\n mostGroundedArgument(T, [L2, Q2, W2, B2, I2]),\n length(L, LN1),\n length(L2, LN2),\n LN1 > LN2, !.\nmostGroundedArgument([A|_], A).\n/*\n Get a conclusion complement\n*/\ncomplement([_, _, Conclusion, _, _], A) :-\n attack::expanded_conflict(Conclusion, A).\nnotEvaluatedSubArgument(Arguments, A, Resolving, B) :-\n context_check(support(B, A)),\n member(B, Arguments),\n \\+ member(B, Resolving).\nnotEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, B) :-\n superiorComplementArgument(A, B),\n member(B, Arguments),\n \\+ member(B, Resolving).\nnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B) :-\n superiorOrEqualComplementArgument(A, B),\n member(B, Arguments),\n \\+ member(B, Resolving).\nsuperiorComplementArgument(A, [A, B, CA, BB, I]) :-\n complement(A, CA),\n context_check(argument([R, B, CA, BB, I])),\n superiority::superiorArgument([R, B, CA, BB, I], A).\nsuperiorOrEqualComplementArgument(A, [R, B, CA, BB, I]) :-\n complement(A, CA),\n context_check(argument([R, B, CA, BB, I])),\n \\+ superiority::superiorArgument(A, [R, B, CA, BB, I]).";
4494
+ this.e3m_1 = "argumentLabelling :-\n bp_grounded::reifyBurdenOfProofs,\n findall(X, context_check(argument(X)), Arguments),\n partialBpLabelling(Arguments), !.\npartialBpLabelling([]).\npartialBpLabelling(Arguments) :-\n mostGroundedArgument(Arguments, A),\n debug::writeDebug(['Evaluating ', A]),\n demonstration(Arguments, A, [A], Evaluated),\n utils::subtract(Arguments, [Evaluated], NewArgs),\n partialBpLabelling(NewArgs).\n/*\n (a.i) BP(neg(\u03C6)), and no argument B for neg(\u03C6) such that A < B is IN*, and no A1,...An is OUT*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tisComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n\t superiorComplementArgument(A, B),\n\t context_check(in(B))\n\t),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\t\\+ (\n\t context_check(support(X, A)),\n\t context_check(out(X))\n\t),\n\tdebug::writeDebug(['Adding argument: ', A, ' to IN* (2.a.i)']),\n context_assert(in(A)).\n/*\n (a.ii) not BP(neg(\u03C6)) and every argument B for neg(\u03C6) such that B(not <)A is OUT*, and every A1,...An is IN*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\t\\+ isComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n superiorOrEqualComplementArgument(A, B),\n \\+ context_check(out(B))\n ),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\t\\+ (\n context_check(support(X, A)),\n \\+ context_check(in(X))\n ),\n\tdebug::writeDebug(['Adding argument: ', A, ' to IN* (2.a.ii)']),\n context_assert(in(A)).\n/*\n (b.i.1) BP(\u03C6) and exists an argument B for neg(\u03C6) such that B(not <)A is not OUT*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, _),\n\tsuperiorOrEqualComplementArgument(A, B),\n\t\\+ context_check(out(B)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.i.1)']),\n context_assert(out(A)).\n/*\n (b.i.2) BP(\u03C6) and exist one of A1,...An is not IN*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\tcontext_check(support(X, A)),\n \\+ context_check(in(X)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.i.2)']),\n context_assert(out(A)).\n/*\n (b.ii.1) not BP(\u03C6) and an argument B for neg(\u03C6) such A < B is IN*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, _),\n\tsuperiorComplementArgument(A, B),\n\tcontext_check(in(B)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.ii.1)']),\n context_assert(out(A)).\n/*\n (b.ii.2) not BP(\u03C6) and one of A1,...An is OUT*\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\t\\+ notEvaluatedSubArgument(Arguments, A, Resolving, _),\n\tcontext_check(support(X, A)),\n context_check(out(X)),\n debug::writeDebug(['Adding argument: ', A, ' to OUT* (2.b.ii.2)']),\n context_assert(out(A)).\n/*\n If above definitions do not apply try to decide on the arguments on which they depend\n*/\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n isComplementInBurdenOfProof(A),\n\tnotEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\tisComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n superiorComplementArgument(A, X),\n context_check(in(X))\n ),\n notEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n \\+ isComplementInBurdenOfProof(A),\n\tnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\t\\+ isComplementInBurdenOfProof(A),\n\t\\+ notEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, _),\n\t\\+ (\n superiorOrEqualComplementArgument(A, X),\n \\+ context_check(out(X))\n ),\n notEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\tbp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\ndemonstration(Arguments, A, Resolving, Evaluated) :-\n\t\\+ bp_grounded::isArgumentInBurdenOfProof(A),\n\tnotEvaluatedSubArgument(Arguments, A, Resolving, B),\n demonstration(Arguments, B, [B|Resolving], Evaluated).\n/*\n (c) A is labelled UND* otherwise.\n*/\ndemonstration(Arguments, A, Resolving, A) :-\n\tdebug::writeDebug(['Adding argument: ', A, ' to UND* (2.c)']),\n context_assert(und(A)).\nisComplementInBurdenOfProof(A) :-\n complement(A, Complement),\n bp_grounded::isInBurdenOfProof(Complement), !.\nmostGroundedArgument([], []).\nmostGroundedArgument([X], X).\nmostGroundedArgument([[L, _, _, _, _]|T], [L2, Q2, W2, B2, I2]) :-\n mostGroundedArgument(T, [L2, Q2, W2, B2, I2]),\n length(L, LN1),\n length(L2, LN2),\n LN1 > LN2, !.\nmostGroundedArgument([A|_], A).\n/*\n Get a conclusion complement\n*/\ncomplement([_, _, Conclusion, _, _], A) :-\n attack::expanded_conflict(Conclusion, A).\nnotEvaluatedSubArgument(Arguments, A, Resolving, B) :-\n context_check(support(B, A)),\n member(B, Arguments),\n \\+ member(B, Resolving).\nnotEvaluatedSuperiorComplementArgument(Arguments, A, Resolving, B) :-\n superiorComplementArgument(A, B),\n member(B, Arguments),\n \\+ member(B, Resolving).\nnotEvaluatedSuperiorOrEqualComplementArgument(Arguments, A, Resolving, B) :-\n superiorOrEqualComplementArgument(A, B),\n member(B, Arguments),\n \\+ member(B, Resolving).\nsuperiorComplementArgument(A, [A, B, CA, BB, I]) :-\n complement(A, CA),\n context_check(argument([R, B, CA, BB, I])),\n superiority::superiorArgument([R, B, CA, BB, I], A).\nsuperiorOrEqualComplementArgument(A, [R, B, CA, BB, I]) :-\n complement(A, CA),\n context_check(argument([R, B, CA, BB, I])),\n \\+ superiority::superiorArgument(A, [R, B, CA, BB, I]).";
4515
4495
  }
4516
4496
  var BpGroundedPartial_instance;
4517
4497
  function BpGroundedPartial_getInstance() {
4518
4498
  return BpGroundedPartial_instance;
4519
4499
  }
4520
4500
  function Complete() {
4521
- this.j3m_1 = 'argumentLabelling :-\n cache_retract(complete(_,_,_)),\n grounded:::argumentLabelling,\n context_active(Branch),\n completeLabelling(Branch).\ncompleteLabelling(_) :-\n admissibleSet,\n utils::recoverArgumentLabelling(In, Out, Und),\n \\+ cache_check(complete(In, Out, Und)),\n cache_assert(complete(In, Out, Und)).\ncompleteLabelling(Branch) :-\n context_check(und(X)),\n context_branch(Branch, NewBranch),\n findall(Y, (context_check(und(Y)), Y \\= X), Arguments),\n context_retract(und(_)),\n context_assert(in(X)),\n grounded::groundedLabelling(Arguments),\n completeLabelling(NewBranch).\nadmissibleSet :-\n \\+ (context_check(in(H)), \\+ admissible(H)).\nadmissible(H) :-\n \\+ (\n context_check(attack(_, Attacker, H, _)),\n \\+ (\n context_check(attack(_, Defendant, Attacker, _)),\n context_check(in(Defendant))\n )\n ).';
4501
+ this.i3m_1 = 'argumentLabelling :-\n cache_retract(complete(_,_,_)),\n grounded:::argumentLabelling,\n context_active(Branch),\n completeLabelling(Branch).\ncompleteLabelling(_) :-\n admissibleSet,\n utils::recoverArgumentLabelling(In, Out, Und),\n \\+ cache_check(complete(In, Out, Und)),\n cache_assert(complete(In, Out, Und)).\ncompleteLabelling(Branch) :-\n context_check(und(X)),\n context_branch(Branch, NewBranch),\n findall(Y, (context_check(und(Y)), Y \\= X), Arguments),\n context_retract(und(_)),\n context_assert(in(X)),\n grounded::groundedLabelling(Arguments),\n completeLabelling(NewBranch).\nadmissibleSet :-\n \\+ (context_check(in(H)), \\+ admissible(H)).\nadmissible(H) :-\n \\+ (\n context_check(attack(_, Attacker, H, _)),\n \\+ (\n context_check(attack(_, Defendant, Attacker, _)),\n context_check(in(Defendant))\n )\n ).';
4522
4502
  }
4523
4503
  var Complete_instance;
4524
4504
  function Complete_getInstance() {
4525
4505
  return Complete_instance;
4526
4506
  }
4527
4507
  function Debug() {
4528
- this.b3n_1 = "printTheory(Rules) :-\n write('HERE THE THEORY:'),nl,\n findall(rule([Id, Body, Head]), member(rule([Id, Body, Head]), Rules), ListRules),\n utils::writeListNl(ListRules),\n findall(premise([A, B]), member(premise([A, B]), Rules), ListPremises),\n utils::writeListNl(ListPremises),\n findall(sup(A, B), member(sup(A, B), Rules), ListSups),\n utils::writeListNl(ListSups).\nprintArgumentationGraph(Arguments, Attacks, Supports) :-\n\tfindall(\n\t [IDPremises, '\\n', ' TOPRULE ', TopRule, '\\n', ' CONCLUSION ', RuleHead, '\\n', ' BODY ', Body, '\\n', ' INFO ', Info, '\\n'],\n\t member([IDPremises, TopRule, RuleHead, Body, Info], Arguments),\n ArgumentsToPrint\n ),\n findall((A1, ' SUPPORTS ', A2), member((A1, A2), Supports), SupportsToPrint),\n\tfindall((A1, ' ', T, ' ', A2, ' ON ', A3), member((T, A1, A2, A3), Attacks), AttacksToPrint),\n write('HERE THE GROUNDED SEMI-ABSTRACT ARGUMENTATION GRAPH'),nl,\n\tutils::writeListNl(ArgumentsToPrint),\n\tutils::writeListNl(SupportsToPrint),\n\tutils::writeListNl(AttacksToPrint).\nprintArgumentLabelling([IN, OUT, UND]) :-\n write('HERE THE ARGUMENTS LABELLED IN: '),nl,\n utils::writeListNl(IN),\n write('HERE THE ARGUMENTS LABELLED OUT: '),nl,\n utils::writeListNl(OUT),\n write('HERE THE ARGUMENTS LABELLED UND: '),nl,\n utils::writeListNl(UND).\nprintStatementLabelling([In, Ni, Und]) :-\n write('HERE THE STATEMENTS LABELLED IN: '),nl,\n utils::writeListNl(In),\n write('HERE THE STATEMENTS LABELLED NI: '),nl,\n utils::writeListNl(Ni),\n write('HERE THE STATEMENTS LABELLED UND: '),nl,\n utils::writeListNl(Und).\ndebug.\nwriteDebug(List) :-\n debug,\n utils::writeList(List).\nwriteDebug(_) :- \\+ debug.";
4508
+ this.a3n_1 = "printTheory(Rules) :-\n write('HERE THE THEORY:'),nl,\n findall(rule([Id, Body, Head]), member(rule([Id, Body, Head]), Rules), ListRules),\n utils::writeListNl(ListRules),\n findall(premise([A, B]), member(premise([A, B]), Rules), ListPremises),\n utils::writeListNl(ListPremises),\n findall(sup(A, B), member(sup(A, B), Rules), ListSups),\n utils::writeListNl(ListSups).\nprintArgumentationGraph(Arguments, Attacks, Supports) :-\n\tfindall(\n\t [IDPremises, '\\n', ' TOPRULE ', TopRule, '\\n', ' CONCLUSION ', RuleHead, '\\n', ' BODY ', Body, '\\n', ' INFO ', Info, '\\n'],\n\t member([IDPremises, TopRule, RuleHead, Body, Info], Arguments),\n ArgumentsToPrint\n ),\n findall((A1, ' SUPPORTS ', A2), member((A1, A2), Supports), SupportsToPrint),\n\tfindall((A1, ' ', T, ' ', A2, ' ON ', A3), member((T, A1, A2, A3), Attacks), AttacksToPrint),\n write('HERE THE GROUNDED SEMI-ABSTRACT ARGUMENTATION GRAPH'),nl,\n\tutils::writeListNl(ArgumentsToPrint),\n\tutils::writeListNl(SupportsToPrint),\n\tutils::writeListNl(AttacksToPrint).\nprintArgumentLabelling([IN, OUT, UND]) :-\n write('HERE THE ARGUMENTS LABELLED IN: '),nl,\n utils::writeListNl(IN),\n write('HERE THE ARGUMENTS LABELLED OUT: '),nl,\n utils::writeListNl(OUT),\n write('HERE THE ARGUMENTS LABELLED UND: '),nl,\n utils::writeListNl(UND).\nprintStatementLabelling([In, Ni, Und]) :-\n write('HERE THE STATEMENTS LABELLED IN: '),nl,\n utils::writeListNl(In),\n write('HERE THE STATEMENTS LABELLED NI: '),nl,\n utils::writeListNl(Ni),\n write('HERE THE STATEMENTS LABELLED UND: '),nl,\n utils::writeListNl(Und).\ndebug.\nwriteDebug(List) :-\n debug,\n utils::writeList(List).\nwriteDebug(_) :- \\+ debug.";
4529
4509
  }
4530
4510
  var Debug_instance;
4531
4511
  function Debug_getInstance() {
4532
4512
  return Debug_instance;
4533
4513
  }
4534
4514
  function DefPreferences() {
4535
- this.l3l_1 = 'modifyArgumentationGraph :-\n assertAllSup,\n findall((T, A, B, C), context_check(attack(T, A, B, C)), Attacks),\n filterSupRelatedAttacks(Attacks, InvalidAttacks),\n convertAttacks(InvalidAttacks),\n buildPrefAttacks.\nassertAllSup :-\n context_retract(sup(_, _)),\n findall(_,\n (\n context_check(argument([_, _, [sup(RuleOne, RuleTwo)], _, _])),\n \\+ context_check(sup(RuleOne, RuleTwo)),\n context_assert(sup(RuleOne, RuleTwo))\n ),\n _).\nfilterSupRelatedAttacks([], []).\nfilterSupRelatedAttacks([(T, A, B, C)|Attacks], [(T, A, B, C)|Invalid]) :-\n invalid(T, A, B, C, _),\n filterSupRelatedAttacks(Attacks, Invalid), !.\nfilterSupRelatedAttacks([_|Attacks], Invalid) :-\n filterSupRelatedAttacks(Attacks, Invalid).\ninvalid(rebut, A, B, C, SupSet) :- superiority::superiorArgument(C, A, SupSet), !.\ninvalid(undermine, A, B, C, SupSet) :- superiority::superiorArgument(C, A, SupSet), !.\n/*\n* Translates the attack relations identified during the building phase.\n* Attack from A to B -> Argument [[], attack, Attack]\n* support(A, Argument)\n* attack(Argument, B)\n* If an Argument A built in this way attacks the argument B, and this one also attacks a third argument C\n* through the argument B1 we have to consider an attack from A to B1 (transitive attack)\n*/\nconvertAttacks(Attacks) :-\n conversion(Attacks),\n standard_af::buildTransitiveAttacks.\nconversion(List) :-\n member((T, A, B, B), List),\n generateDirectAttackArgument(T, A, B, B),\n fail.\nconversion(List) :-\n member((T, A, B, C), List),\n C \\= B,\n generateTransitiveAttackArgument(T, A, B, C),\n fail.\nconversion(_).\ngenerateTransitiveAttackArgument(T, A, B, C) :-\n context_check(argument([Id, attack, [attack(T, A, C, C)], G, I])),\n standard_af::saveAttack(T, [Id, attack, [attack(T, A, C, C)], G, I], B, C),\n standard_af::removeAttack(T, A, B, C).\ngenerateDirectAttackArgument(T, A, B, B) :-\n RArgument = [[attack], attack, [attack(T, A, B, B)], [], [[attack], [attack], []]],\n standard_af::saveArgument(a, [attack(T, A, B, B)], RArgument),\n standard_af::saveSupport(A, RArgument),\n standard_af::saveAttack(T, RArgument, B, B),\n standard_af::removeAttack(T, A, B, B).\n/*\n* Computes the pref attack. If an Argument A has a conclusion in the form sup(a, b), we verify if\n* the attacks involving arguments built on the rules a or b are compatible with this preference.\n* If there are some contradictions we add an attack from the argument A towards the incompatible attack\n*/\nbuildPrefAttacks :-\n context_check(argument([IdB, attack, [attack(T, A, B, C)], G, I])),\n invalid(T, A, B, C, SupSet),\n member(X, SupSet),\n context_check(argument([IdA, TRA, [X], GG, II])),\n standard_af::saveAttack(pref, [IdA, TRA, [X], GG, II], [IdB, attack, [attack(T, A, B, C)], G, I], [IdB, attack, [attack(T, A, B, C)], G, I]),\n fail.\nbuildPrefAttacks.';
4515
+ this.k3l_1 = 'modifyArgumentationGraph :-\n assertAllSup,\n findall((T, A, B, C), context_check(attack(T, A, B, C)), Attacks),\n filterSupRelatedAttacks(Attacks, InvalidAttacks),\n convertAttacks(InvalidAttacks),\n buildPrefAttacks.\nassertAllSup :-\n context_retract(sup(_, _)),\n findall(_,\n (\n context_check(argument([_, _, [sup(RuleOne, RuleTwo)], _, _])),\n \\+ context_check(sup(RuleOne, RuleTwo)),\n context_assert(sup(RuleOne, RuleTwo))\n ),\n _).\nfilterSupRelatedAttacks([], []).\nfilterSupRelatedAttacks([(T, A, B, C)|Attacks], [(T, A, B, C)|Invalid]) :-\n invalid(T, A, B, C, _),\n filterSupRelatedAttacks(Attacks, Invalid), !.\nfilterSupRelatedAttacks([_|Attacks], Invalid) :-\n filterSupRelatedAttacks(Attacks, Invalid).\ninvalid(rebut, A, B, C, SupSet) :- superiority::superiorArgument(C, A, SupSet), !.\ninvalid(undermine, A, B, C, SupSet) :- superiority::superiorArgument(C, A, SupSet), !.\n/*\n* Translates the attack relations identified during the building phase.\n* Attack from A to B -> Argument [[], attack, Attack]\n* support(A, Argument)\n* attack(Argument, B)\n* If an Argument A built in this way attacks the argument B, and this one also attacks a third argument C\n* through the argument B1 we have to consider an attack from A to B1 (transitive attack)\n*/\nconvertAttacks(Attacks) :-\n conversion(Attacks),\n standard_af::buildTransitiveAttacks.\nconversion(List) :-\n member((T, A, B, B), List),\n generateDirectAttackArgument(T, A, B, B),\n fail.\nconversion(List) :-\n member((T, A, B, C), List),\n C \\= B,\n generateTransitiveAttackArgument(T, A, B, C),\n fail.\nconversion(_).\ngenerateTransitiveAttackArgument(T, A, B, C) :-\n context_check(argument([Id, attack, [attack(T, A, C, C)], G, I])),\n standard_af::saveAttack(T, [Id, attack, [attack(T, A, C, C)], G, I], B, C),\n standard_af::removeAttack(T, A, B, C).\ngenerateDirectAttackArgument(T, A, B, B) :-\n RArgument = [[attack], attack, [attack(T, A, B, B)], [], [[attack], [attack], []]],\n standard_af::saveArgument(a, [attack(T, A, B, B)], RArgument),\n standard_af::saveSupport(A, RArgument),\n standard_af::saveAttack(T, RArgument, B, B),\n standard_af::removeAttack(T, A, B, B).\n/*\n* Computes the pref attack. If an Argument A has a conclusion in the form sup(a, b), we verify if\n* the attacks involving arguments built on the rules a or b are compatible with this preference.\n* If there are some contradictions we add an attack from the argument A towards the incompatible attack\n*/\nbuildPrefAttacks :-\n context_check(argument([IdB, attack, [attack(T, A, B, C)], G, I])),\n invalid(T, A, B, C, SupSet),\n member(X, SupSet),\n context_check(argument([IdA, TRA, [X], GG, II])),\n standard_af::saveAttack(pref, [IdA, TRA, [X], GG, II], [IdB, attack, [attack(T, A, B, C)], G, I], [IdB, attack, [attack(T, A, B, C)], G, I]),\n fail.\nbuildPrefAttacks.';
4536
4516
  }
4537
4517
  var DefPreferences_instance;
4538
4518
  function DefPreferences_getInstance() {
4539
4519
  return DefPreferences_instance;
4540
4520
  }
4541
4521
  function GenericDefPreferences() {
4542
- this.p3l_1 = 'modifyArgumentationGraph :-\n defeasiblePref::assertAllSup,\n findall((T, A, B, C), context_check(attack(T, A, B, C)), Attacks),\n defeasiblePref::filterSupRelatedAttacks(Attacks, InvalidAttacks),\n defeasiblePref::convertAttacks(InvalidAttacks),\n buildPrefAttacks,\n standard_af::buildTransitiveAttacks.\nbuildPrefAttacks :-\n context_check(argument([IdB, attack, [attack(T, A, B, C)], G, I])),\n defeasiblePref::invalid(T, A, B, C, SupSet),\n createSuperiorityArgument(SupSet, Arg),\n standard_af::saveAttack(pref, Arg, [IdB, attack, [attack(T, A, B, C)], G, I], [IdB, attack, [attack(T, A, B, C)], G, I]),\n fail.\nbuildPrefAttacks.\ncreateSuperiorityArgument(SupSet, Argument) :-\n findall([Id, TR, [X], G, I], (\n member(X, SupSet),\n context_check(argument([Id, TR, [X], G, I]))\n ), SupportArguments),\n mergeIds(SupportArguments, MergedId),\n Argument = [MergedId, pref, [preference(SupSet)], [], [[pref], MergedId, []]],\n standard_af::saveArgument(a, [preference(SupSet)], Argument),\n findall(_, (\n member(A, SupportArguments),\n standard_af::saveSupport(A, Argument)\n ), _).\nmergeIds([], [pref]).\nmergeIds(Arguments, [pref|MergedId]) :-\n findall(Id, member([Id, _, _, _, _], Arguments), Res),\n utils::appendLists(Res, MergedId).';
4522
+ this.o3l_1 = 'modifyArgumentationGraph :-\n defeasiblePref::assertAllSup,\n findall((T, A, B, C), context_check(attack(T, A, B, C)), Attacks),\n defeasiblePref::filterSupRelatedAttacks(Attacks, InvalidAttacks),\n defeasiblePref::convertAttacks(InvalidAttacks),\n buildPrefAttacks,\n standard_af::buildTransitiveAttacks.\nbuildPrefAttacks :-\n context_check(argument([IdB, attack, [attack(T, A, B, C)], G, I])),\n defeasiblePref::invalid(T, A, B, C, SupSet),\n createSuperiorityArgument(SupSet, Arg),\n standard_af::saveAttack(pref, Arg, [IdB, attack, [attack(T, A, B, C)], G, I], [IdB, attack, [attack(T, A, B, C)], G, I]),\n fail.\nbuildPrefAttacks.\ncreateSuperiorityArgument(SupSet, Argument) :-\n findall([Id, TR, [X], G, I], (\n member(X, SupSet),\n context_check(argument([Id, TR, [X], G, I]))\n ), SupportArguments),\n mergeIds(SupportArguments, MergedId),\n Argument = [MergedId, pref, [preference(SupSet)], [], [[pref], MergedId, []]],\n standard_af::saveArgument(a, [preference(SupSet)], Argument),\n findall(_, (\n member(A, SupportArguments),\n standard_af::saveSupport(A, Argument)\n ), _).\nmergeIds([], [pref]).\nmergeIds(Arguments, [pref|MergedId]) :-\n findall(Id, member([Id, _, _, _, _], Arguments), Res),\n utils::appendLists(Res, MergedId).';
4543
4523
  }
4544
4524
  var GenericDefPreferences_instance;
4545
4525
  function GenericDefPreferences_getInstance() {
4546
4526
  return GenericDefPreferences_instance;
4547
4527
  }
4548
4528
  function Grounded() {
4549
- this.n3m_1 = 'argumentLabelling :-\n findall(X, context_check(argument(X)), Arguments),\n groundedLabelling(Arguments).\ngroundedLabelling(UND) :-\n member(A, UND),\n allAttacksOUT(A), !,\n utils::subtract(UND, [A], NewUND),\n context_assert(in(A)),\n groundedLabelling(NewUND).\ngroundedLabelling(UND) :-\n member(A, UND),\n oneAttackIN(A), !,\n utils::subtract(UND, [A], NewUND),\n context_assert(out(A)),\n groundedLabelling(NewUND).\ngroundedLabelling(Args) :- findall(_, (member(A, Args), context_assert(und(A))), _).\nallAttacksOUT(A) :-\n \\+ ( context_check(attack(_, B, A, _)), \\+ (context_check(out(B)))).\noneAttackIN(A) :-\n context_check(attack(_, B, A, _)),\n context_check(in(B)), !.\noneAttackIN(A) :-\n context_check(attack(_, A, B, _)),\n context_check(in(B)), !.';
4529
+ this.m3m_1 = 'argumentLabelling :-\n findall(X, context_check(argument(X)), Arguments),\n groundedLabelling(Arguments).\ngroundedLabelling(UND) :-\n member(A, UND),\n allAttacksOUT(A), !,\n utils::subtract(UND, [A], NewUND),\n context_assert(in(A)),\n groundedLabelling(NewUND).\ngroundedLabelling(UND) :-\n member(A, UND),\n oneAttackIN(A), !,\n utils::subtract(UND, [A], NewUND),\n context_assert(out(A)),\n groundedLabelling(NewUND).\ngroundedLabelling(Args) :- findall(_, (member(A, Args), context_assert(und(A))), _).\nallAttacksOUT(A) :-\n \\+ ( context_check(attack(_, B, A, _)), \\+ (context_check(out(B)))).\noneAttackIN(A) :-\n context_check(attack(_, B, A, _)),\n context_check(in(B)), !.\noneAttackIN(A) :-\n context_check(attack(_, A, B, _)),\n context_check(in(B)), !.';
4550
4530
  }
4551
4531
  var Grounded_instance;
4552
4532
  function Grounded_getInstance() {
4553
4533
  return Grounded_instance;
4554
4534
  }
4555
4535
  function GroundedOptimized() {
4556
- this.r3m_1 = 'argumentLabelling :-\n groundedLabelling.\ngroundedLabelling :-\n findall(t, evaluateIn, I),\n findall(t, evaluateOut, O),\n finalize(I, O).\nevaluateIn :-\n argument_to_evaluate(A, IdA),\n allAttacksOUT(IdA),\n context_assert(in(A)),\n context_assert(inId(IdA)).\nevaluateOut :-\n argument_to_evaluate(A, IdA),\n oneAttackIN(IdA),\n context_assert(out(A)),\n context_assert(outId(IdA)).\nfinalize(I, O) :- I \\= [], !, groundedLabelling.\nfinalize(I, O) :- O \\= [], !, groundedLabelling.\nfinalize([], []) :-\n argument_to_evaluate(A, _),\n context_assert(und(A)),\n fail.\nfinalize(_, _).\nargument_to_evaluate(X, IdX) :-\n context_check(clause(arg(IdX), argument(X))),\n \\+ context_check(outId(IdX)),\n \\+ context_check(inId(IdX)).\nallAttacksOUT(A) :-\n \\+ ( context_check(clause(att(B, A), _)), \\+ (context_check(outId(B)))).\noneAttackIN(A) :-\n context_check(clause(att(B, A), _)),\n context_check(inId(B)), !.\noneAttackIN(A) :-\n context_check(clause(att(A, B), _)),\n context_check(inId(B)), !.';
4536
+ this.q3m_1 = 'argumentLabelling :-\n groundedLabelling.\ngroundedLabelling :-\n findall(t, evaluateIn, I),\n findall(t, evaluateOut, O),\n finalize(I, O).\nevaluateIn :-\n argument_to_evaluate(A, IdA),\n allAttacksOUT(IdA),\n context_assert(in(A)),\n context_assert(inId(IdA)).\nevaluateOut :-\n argument_to_evaluate(A, IdA),\n oneAttackIN(IdA),\n context_assert(out(A)),\n context_assert(outId(IdA)).\nfinalize(I, O) :- I \\= [], !, groundedLabelling.\nfinalize(I, O) :- O \\= [], !, groundedLabelling.\nfinalize([], []) :-\n argument_to_evaluate(A, _),\n context_assert(und(A)),\n fail.\nfinalize(_, _).\nargument_to_evaluate(X, IdX) :-\n context_check(clause(arg(IdX), argument(X))),\n \\+ context_check(outId(IdX)),\n \\+ context_check(inId(IdX)).\nallAttacksOUT(A) :-\n \\+ ( context_check(clause(att(B, A), _)), \\+ (context_check(outId(B)))).\noneAttackIN(A) :-\n context_check(clause(att(B, A), _)),\n context_check(inId(B)), !.\noneAttackIN(A) :-\n context_check(clause(att(A, B), _)),\n context_check(inId(B)), !.';
4557
4537
  }
4558
4538
  var GroundedOptimized_instance;
4559
4539
  function GroundedOptimized_getInstance() {
4560
4540
  return GroundedOptimized_instance;
4561
4541
  }
4562
4542
  function Preferences() {
4563
- this.t3l_1 = 'modifyArgumentationGraph :-\n findall(_, (\n context_check(attack(T, A, B, C)),\n checkStandardPreference(T, A, B, C)\n ), _).\ncheckStandardPreference(T, A, B, C) :-\n \\+ standardPreferences(T, A, B, C),\n standard_af::removeAttack(T, A, B, C).\nstandardPreferences(rebut, A, _, C) :- \\+ superiority::superiorArgument(C, A).\nstandardPreferences(undermine, A, _, C) :- \\+ superiority::superiorArgument(C, A).\nstandardPreferences(contrary_rebut, _, _, _).\nstandardPreferences(contrary_undermine, _, _, _).\nstandardPreferences(undercut, _, _, _).';
4543
+ this.s3l_1 = 'modifyArgumentationGraph :-\n findall(_, (\n context_check(attack(T, A, B, C)),\n checkStandardPreference(T, A, B, C)\n ), _).\ncheckStandardPreference(T, A, B, C) :-\n \\+ standardPreferences(T, A, B, C),\n standard_af::removeAttack(T, A, B, C).\nstandardPreferences(rebut, A, _, C) :- \\+ superiority::superiorArgument(C, A).\nstandardPreferences(undermine, A, _, C) :- \\+ superiority::superiorArgument(C, A).\nstandardPreferences(contrary_rebut, _, _, _).\nstandardPreferences(contrary_undermine, _, _, _).\nstandardPreferences(undercut, _, _, _).';
4564
4544
  }
4565
4545
  var Preferences_instance;
4566
4546
  function Preferences_getInstance() {
4567
4547
  return Preferences_instance;
4568
4548
  }
4569
4549
  function QueryMode_0() {
4570
- this.c3n_1 = 'computeStatementAcceptance(Goal, YesResult, NoResult, UndResult) :-\n \\+ queryMode,\n abstract:::computeGlobalAcceptance,\n mineResults(Goal, YesResult, NoResult, UndResult).\ncomputeStatementAcceptance(Goal, YesResult, NoResult, UndResult) :-\n queryMode,\n argumentLabellingMode(grounded),\n findall(_, query(Goal, _), _),\n (ambiguityBlocking ->\n statement_binary:::statementLabelling;\n statementLabellingMode(Y),\n Y:::statementLabelling\n ),\n mineResults(Goal, YesResult, NoResult, UndResult).\nmineResults(Goal, YesResult, NoResult, UndResult) :-\n findall(Goal, context_check(statIn([Goal])), In),\n findall(Goal, context_check(statOut([Goal])), Out),\n findall(Goal, context_check(statUnd([Goal])), Und),\n utils::sort(In, YesResult),\n utils::sort(Out, NoResult),\n utils::sort(Und, UndResult).\nquery(Query, Res) :-\n buildArgument(Query, Argument),\n once(defend(Argument, [], Res)).\nquery(Query, und) :- \\+ buildArgument(Query, _).\ndefend(Argument, _, no) :- context_check(out(Argument)).\ndefend(Argument, _, und) :- context_check(und(Argument)).\ndefend(Argument, _, yes) :- context_check(in(Argument)).\ndefend(Argument, QueryChain, no) :-\n findAttacker(Argument, QueryChain, Attacker, yes),\n once(defend(Attacker, [Argument|QueryChain], X)),\n X == yes,\n bufferResult(Argument, no), !.\ndefend(Argument, QueryChain, Res) :-\n findAttacker(Argument, QueryChain, Attacker, yes),\n once(defend(Attacker, [Argument|QueryChain], X)),\n X == und,\n ambiguityCheck(Argument, Attacker, Res),\n bufferResult(Argument, Res), !.\ncomplementary([_, _, ConclusionA, _, _], [_, _, ConclusionB, _, _]) :-\n attack::expanded_conflict(ConclusionA, ConclusionB).\nambiguityCheck(A, B, no) :- ambiguityBlocking,\n \\+ complementary(A, B),\n context_check(attack(direct, B, A, _)), !.\nambiguityCheck(_, _, und).\ndefend(Argument, QueryChain, und) :-\n findAttacker(Argument, QueryChain, Attacker, no),\n bufferResult(Argument, und), !.\ndefend(Argument, QueryChain, yes) :- bufferResult(Argument, yes).\nbufferResult(Argument, no) :- \\+ context_check(out(Argument)), context_assert(out(Argument)), !.\nbufferResult(Argument, yes) :- \\+ context_check(in(Argument)), context_assert(in(Argument)), !.\nbufferResult(Argument, und) :- \\+ context_check(und(Argument)), context_assert(und(Argument)), !.\nbufferResult(_, _).\nfindAttacker(Target, QueryChain, Attacker, IsValid) :-\n attacker(Target, Attacker, Type),\n bufferAttacker(Attacker, Target, Type),\n detectCycle(Attacker, QueryChain, IsValid).\nbufferAttacker(Attacker, Target, Type) :-\n \\+ context_check(attack(Type, Attacker, Target, none)),\n context_assert(attack(Type, Attacker, Target, none)), !.\nbufferAttacker(_, _, _).\ndetectCycle(Attacker, QueryChain, yes) :- \\+ member(Attacker, QueryChain).\ndetectCycle(Attacker, QueryChain, no) :- member(Attacker, QueryChain).\nattacker([Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type) :-\n member(X, Rules),\n \\+ parser::strict(X),\n attackerOnRule(X, [Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type).\nattacker([Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type) :-\n member(X, Groundings),\n attackerOnTerm(X, [Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type).\nattackerOnRule(Rule, _, Argument, undercut) :-\n parser::undercut(Undercut, Rule),\n buildArgument(Undercut, Argument).\nattackerOnTerm(Term, [TargetRules, TopRule, Conclusion, Groundings, ArgInfo], Attacker, direct) :-\n \\+ parser::contrary(Term, _),\n \\+ strict([TargetRules, TopRule, Conclusion, Groundings, ArgInfo]),\n (graphExtension(rebutRestriction) ->\n (\n getSubArgument(Term, TargetRules, SubArgument),\n rebutRestriction(SubArgument)\n );\n true\n ),\n attack::expanded_conflict(Term, [X]),\n buildArgument(X, Attacker),\n (graphExtension(standardPref) ->\n (\n once(getSubArgument(Term, TargetRules, SubArgument)),\n \\+ superiorArgument(SubArgument, Attacker)\n );\n true\n ).\nattackerOnTerm(Unless, _, Attacker, contrary) :-\n parser::contrary(Unless, X),\n buildArgument(X, Attacker).\nstrict([_, _, _, _, [_, [], []]]).\nrebutRestriction([TargetRules, none, Conclusion, Groundings, ArgInfo]) :-\n graphExtension(rebutRestriction).\nrebutRestriction([TargetRules, TopRule, Conclusion, Groundings, ArgInfo]) :-\n graphExtension(rebutRestriction),\n TopRule \\= none,\n rebutRestriction::restrict([TargetRules, TopRule, Conclusion, Groundings, ArgInfo]).\nrebutRestriction(_) :- \\+ graphExtension(rebutRestriction).\nsuperiorArgument(SubArgument, Attacker) :-\n superiority::superiorArgument(SubArgument, Attacker).\ngetSubArgument(Term, Rules, [SubRules, SubTopRule, SubConclusion, SubGrounds, Info]) :-\n context_check(clause(support(Term), argument([SubRules, SubTopRule, SubConclusion, SubGrounds, Info]))),\n contained(SubRules, Rules).\ncontained([], _).\ncontained([H|T], Target) :- member(H, Target), contained(T, Target).\nbuildArgument(Query, Argument) :-\n \\+ context_check(explored(Query)),\n findall(_, (\n buildSingleArgument([Query], Argument),\n context_assert(argument(Argument))\n ), _),\n context_assert(explored(Query)),\n fail.\nbuildArgument(Query, [R, T, [Query], B, I]) :- context_check(argument([R, T, [Query], B, I])).\nbuildSingleArgument(Query, Argument) :-\n build(Query, [], Groundings, [AllRules, TopRule, LastDefRules, DefRules, DefPremises]),\n utils::deduplicate(DefRules, CDefRules),\n utils::deduplicate(DefPremises, CDefPremises),\n utils::deduplicate(Groundings, CGroundings),\n Argument = [AllRules, TopRule, Query, CGroundings, [LastDefRules, CDefRules, CDefPremises]].\nbuild(Check, _, [], []) :- parser::prolog(Check, Term), (callable(Term) -> call(Term); Term), !.\nbuild(Unless, _, [Unless], []) :- parser::contrary(Unless, _), !.\nbuild(Conclusion, _, [Conclusion], [AllRules, TopRule, LastDefRules, DefRules, DefPremises]) :-\n parser::premise(Id, Conclusion),\n premiseRules(Id, [AllRules, TopRule, LastDefRules, DefRules, DefPremises]),\n context_assert(support(Conclusion) :- argument([AllRules, TopRule, Conclusion, [Conclusion], [LastDefRules, DefRules, DefPremises]])).\nbuild(Conclusion, Ids, [Conclusion|Conclusions], [AllRules, TopRule, LastDefRules, DefRules, DefPremises]) :-\n parser::rule(Id, Premises, Conclusion),\n \\+ member(Id, Ids),\n buildPremises(Premises, [Id|Ids], Conclusions, ResRules),\n ruleRules(Id, ResRules, [AllRules, TopRule, LastDefRules, DefRules, DefPremises]),\n context_assert(support(Conclusion) :- argument([AllRules, TopRule, Conclusion, [Conclusion|Conclusions], [LastDefRules, DefRules, DefPremises]])).\nbuildPremises([], _, [], [[], [], [], []]).\nbuildPremises([H|T], Ids, Conclusions, Rules) :-\n build([H], Ids, HConclusions, HRules),\n buildPremises(T, Ids, TConclusions, TRules),\n utils::appendLists([HConclusions, TConclusions], Conclusions),\n mergeRules(HRules, TRules, Rules).\npremiseRules(Id, [[Id], none, [], [], [Id]]) :- \\+ parser::check_strict(Id), !.\npremiseRules(Id, [[Id], none, [], [], []]) :- parser::check_strict(Id).\nruleRules(Id, [AllRules, _, DefRules, DefPremises],\n [[Id|AllRules], Id, [Id], [Id|DefRules], DefPremises]) :- \\+ parser::check_strict(Id), !.\nruleRules(Id, [AllRules, LastDefRules, DefRules, DefPremises],\n [[Id|AllRules], Id, LastDefRules, DefRules, DefPremises]) :- parser::check_strict(Id).\nmergeRules([], [AllRules, LastDefRules, DefRules, DefPremises], [AllRules, LastDefRules, DefRules, DefPremises]) :- !.\nmergeRules([HAR, _, HLDR, HDR, HDP], [TAR, TLDR, TDR, TDP], [AR, LDR, DR, DP]) :-\n utils::appendLists([HAR, TAR], AR),\n utils::appendLists([HLDR, TLDR], LDR),\n utils::appendLists([HDR, TDR], DR),\n utils::appendLists([HDP, TDP], DP).';
4550
+ this.b3n_1 = 'computeStatementAcceptance(Goal, YesResult, NoResult, UndResult) :-\n \\+ queryMode,\n abstract:::computeGlobalAcceptance,\n mineResults(Goal, YesResult, NoResult, UndResult).\ncomputeStatementAcceptance(Goal, YesResult, NoResult, UndResult) :-\n queryMode,\n argumentLabellingMode(grounded),\n findall(_, query(Goal, _), _),\n (ambiguityBlocking ->\n statement_binary:::statementLabelling;\n statementLabellingMode(Y),\n Y:::statementLabelling\n ),\n mineResults(Goal, YesResult, NoResult, UndResult).\nmineResults(Goal, YesResult, NoResult, UndResult) :-\n findall(Goal, context_check(statIn([Goal])), In),\n findall(Goal, context_check(statOut([Goal])), Out),\n findall(Goal, context_check(statUnd([Goal])), Und),\n utils::sort(In, YesResult),\n utils::sort(Out, NoResult),\n utils::sort(Und, UndResult).\nquery(Query, Res) :-\n buildArgument(Query, Argument),\n once(defend(Argument, [], Res)).\nquery(Query, und) :- \\+ buildArgument(Query, _).\ndefend(Argument, _, no) :- context_check(out(Argument)).\ndefend(Argument, _, und) :- context_check(und(Argument)).\ndefend(Argument, _, yes) :- context_check(in(Argument)).\ndefend(Argument, QueryChain, no) :-\n findAttacker(Argument, QueryChain, Attacker, yes),\n once(defend(Attacker, [Argument|QueryChain], X)),\n X == yes,\n bufferResult(Argument, no), !.\ndefend(Argument, QueryChain, Res) :-\n findAttacker(Argument, QueryChain, Attacker, yes),\n once(defend(Attacker, [Argument|QueryChain], X)),\n X == und,\n ambiguityCheck(Argument, Attacker, Res),\n bufferResult(Argument, Res), !.\ncomplementary([_, _, ConclusionA, _, _], [_, _, ConclusionB, _, _]) :-\n attack::expanded_conflict(ConclusionA, ConclusionB).\nambiguityCheck(A, B, no) :- ambiguityBlocking,\n \\+ complementary(A, B),\n context_check(attack(direct, B, A, _)), !.\nambiguityCheck(_, _, und).\ndefend(Argument, QueryChain, und) :-\n findAttacker(Argument, QueryChain, Attacker, no),\n bufferResult(Argument, und), !.\ndefend(Argument, QueryChain, yes) :- bufferResult(Argument, yes).\nbufferResult(Argument, no) :- \\+ context_check(out(Argument)), context_assert(out(Argument)), !.\nbufferResult(Argument, yes) :- \\+ context_check(in(Argument)), context_assert(in(Argument)), !.\nbufferResult(Argument, und) :- \\+ context_check(und(Argument)), context_assert(und(Argument)), !.\nbufferResult(_, _).\nfindAttacker(Target, QueryChain, Attacker, IsValid) :-\n attacker(Target, Attacker, Type),\n bufferAttacker(Attacker, Target, Type),\n detectCycle(Attacker, QueryChain, IsValid).\nbufferAttacker(Attacker, Target, Type) :-\n \\+ context_check(attack(Type, Attacker, Target, none)),\n context_assert(attack(Type, Attacker, Target, none)), !.\nbufferAttacker(_, _, _).\ndetectCycle(Attacker, QueryChain, yes) :- \\+ member(Attacker, QueryChain).\ndetectCycle(Attacker, QueryChain, no) :- member(Attacker, QueryChain).\nattacker([Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type) :-\n member(X, Rules),\n \\+ parser::strict(X),\n attackerOnRule(X, [Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type).\nattacker([Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type) :-\n member(X, Groundings),\n attackerOnTerm(X, [Rules, TopRule, Conclusion, Groundings, ArgInfo], Argument, Type).\nattackerOnRule(Rule, _, Argument, undercut) :-\n parser::undercut(Undercut, Rule),\n buildArgument(Undercut, Argument).\nattackerOnTerm(Term, [TargetRules, TopRule, Conclusion, Groundings, ArgInfo], Attacker, direct) :-\n \\+ parser::contrary(Term, _),\n \\+ strict([TargetRules, TopRule, Conclusion, Groundings, ArgInfo]),\n (graphExtension(rebutRestriction) ->\n (\n getSubArgument(Term, TargetRules, SubArgument),\n rebutRestriction(SubArgument)\n );\n true\n ),\n attack::expanded_conflict(Term, [X]),\n buildArgument(X, Attacker),\n (graphExtension(standardPref) ->\n (\n once(getSubArgument(Term, TargetRules, SubArgument)),\n \\+ superiorArgument(SubArgument, Attacker)\n );\n true\n ).\nattackerOnTerm(Unless, _, Attacker, contrary) :-\n parser::contrary(Unless, X),\n buildArgument(X, Attacker).\nstrict([_, _, _, _, [_, [], []]]).\nrebutRestriction([TargetRules, none, Conclusion, Groundings, ArgInfo]) :-\n graphExtension(rebutRestriction).\nrebutRestriction([TargetRules, TopRule, Conclusion, Groundings, ArgInfo]) :-\n graphExtension(rebutRestriction),\n TopRule \\= none,\n rebutRestriction::restrict([TargetRules, TopRule, Conclusion, Groundings, ArgInfo]).\nrebutRestriction(_) :- \\+ graphExtension(rebutRestriction).\nsuperiorArgument(SubArgument, Attacker) :-\n superiority::superiorArgument(SubArgument, Attacker).\ngetSubArgument(Term, Rules, [SubRules, SubTopRule, SubConclusion, SubGrounds, Info]) :-\n context_check(clause(support(Term), argument([SubRules, SubTopRule, SubConclusion, SubGrounds, Info]))),\n contained(SubRules, Rules).\ncontained([], _).\ncontained([H|T], Target) :- member(H, Target), contained(T, Target).\nbuildArgument(Query, Argument) :-\n \\+ context_check(explored(Query)),\n findall(_, (\n buildSingleArgument([Query], Argument),\n context_assert(argument(Argument))\n ), _),\n context_assert(explored(Query)),\n fail.\nbuildArgument(Query, [R, T, [Query], B, I]) :- context_check(argument([R, T, [Query], B, I])).\nbuildSingleArgument(Query, Argument) :-\n build(Query, [], Groundings, [AllRules, TopRule, LastDefRules, DefRules, DefPremises]),\n utils::deduplicate(DefRules, CDefRules),\n utils::deduplicate(DefPremises, CDefPremises),\n utils::deduplicate(Groundings, CGroundings),\n Argument = [AllRules, TopRule, Query, CGroundings, [LastDefRules, CDefRules, CDefPremises]].\nbuild(Check, _, [], []) :- parser::prolog(Check, Term), (callable(Term) -> call(Term); Term), !.\nbuild(Unless, _, [Unless], []) :- parser::contrary(Unless, _), !.\nbuild(Conclusion, _, [Conclusion], [AllRules, TopRule, LastDefRules, DefRules, DefPremises]) :-\n parser::premise(Id, Conclusion),\n premiseRules(Id, [AllRules, TopRule, LastDefRules, DefRules, DefPremises]),\n context_assert(support(Conclusion) :- argument([AllRules, TopRule, Conclusion, [Conclusion], [LastDefRules, DefRules, DefPremises]])).\nbuild(Conclusion, Ids, [Conclusion|Conclusions], [AllRules, TopRule, LastDefRules, DefRules, DefPremises]) :-\n parser::rule(Id, Premises, Conclusion),\n \\+ member(Id, Ids),\n buildPremises(Premises, [Id|Ids], Conclusions, ResRules),\n ruleRules(Id, ResRules, [AllRules, TopRule, LastDefRules, DefRules, DefPremises]),\n context_assert(support(Conclusion) :- argument([AllRules, TopRule, Conclusion, [Conclusion|Conclusions], [LastDefRules, DefRules, DefPremises]])).\nbuildPremises([], _, [], [[], [], [], []]).\nbuildPremises([H|T], Ids, Conclusions, Rules) :-\n build([H], Ids, HConclusions, HRules),\n buildPremises(T, Ids, TConclusions, TRules),\n utils::appendLists([HConclusions, TConclusions], Conclusions),\n mergeRules(HRules, TRules, Rules).\npremiseRules(Id, [[Id], none, [], [], [Id]]) :- \\+ parser::check_strict(Id), !.\npremiseRules(Id, [[Id], none, [], [], []]) :- parser::check_strict(Id).\nruleRules(Id, [AllRules, _, DefRules, DefPremises],\n [[Id|AllRules], Id, [Id], [Id|DefRules], DefPremises]) :- \\+ parser::check_strict(Id), !.\nruleRules(Id, [AllRules, LastDefRules, DefRules, DefPremises],\n [[Id|AllRules], Id, LastDefRules, DefRules, DefPremises]) :- parser::check_strict(Id).\nmergeRules([], [AllRules, LastDefRules, DefRules, DefPremises], [AllRules, LastDefRules, DefRules, DefPremises]) :- !.\nmergeRules([HAR, _, HLDR, HDR, HDP], [TAR, TLDR, TDR, TDP], [AR, LDR, DR, DP]) :-\n utils::appendLists([HAR, TAR], AR),\n utils::appendLists([HLDR, TLDR], LDR),\n utils::appendLists([HDR, TDR], DR),\n utils::appendLists([HDP, TDP], DP).';
4571
4551
  }
4572
4552
  var QueryMode_instance_0;
4573
4553
  function QueryMode_getInstance_0() {
4574
4554
  return QueryMode_instance_0;
4575
4555
  }
4576
4556
  function RuleTranslator() {
4577
- this.z3m_1 = "/*\n * Main directive. Find all the rules in the theory in the format (Name : Preconditions => Conclusion)\n * or (Name : Effects) and then if:\n * - It is a standard rule, translate it in the standard format (rule([Name, Preconditions, Conclusions]));\n * - It is a bp rule, translate it to (abstractBp([Effects]))\n * During the process, clean them from the unallowed symbols (-, o, p).\n */\nconvertAllRules(ArgRules) :-\n defeasibleRules(DefeasibleRules),\n strictRules(StrictRules, RulesIds),\n ordinaryPremises(Premises),\n axiomPremises(Axioms, AxiomsIds),\n specialRules(SpecialRules),\n utils::appendLists([DefeasibleRules, StrictRules, Premises, Axioms], Rules),\n rule_to_clause(Rules, Clauses),\n findall(sup(X, Y), sup(X, Y), Sup),\n utils::appendLists([Clauses, AxiomsIds, RulesIds, Sup, SpecialRules], ArgRules),\n utils::assert_all(ArgRules), !.\ndefeasibleRules(DefeasibleRules) :-\n findall([RuleName, Preconditions, Effect], (RuleName : Preconditions => Effect), DefeasibleRulesOld),\n prologDefeasibleRules(DefeasibleRulesNew),\n utils::append_fast(DefeasibleRulesOld, DefeasibleRulesNew, DefeasibleRules).\nstrictRules(CtrRules, Ids) :-\n findall([RuleName, Preconditions, Effect], (RuleName : Preconditions -> Effect), StrictRulesOld),\n prologStrictRules(StrictRulesNew),\n utils::append_fast(StrictRulesOld, StrictRulesNew, StrictRules),\n transpose(StrictRules, StrictRules, CtrRules),\n extract_id(CtrRules, Ids).\nordinaryPremises(Premises) :-\n findall([RuleName, Effect], ((RuleName :=> Effect), atom(RuleName)), PremisesOld),\n prologPremises(PremisesNew),\n utils::append_fast(PremisesOld, PremisesNew, Premises).\naxiomPremises(Axioms, Ids) :-\n findall([RuleName, Effect], ((RuleName :-> Effect), atom(RuleName)), AxiomsOld),\n prologAxioms(AxiomsNew),\n utils::append_fast(AxiomsOld, AxiomsNew, Axioms),\n extract_id(Axioms, Ids).\nspecialRules(SpecialRules) :-\n bpsNew(SpecialRules).\ntranspose(_, CtrRules, CtrRules) :- \\+ autoTransposition, !.\ntranspose([], CtrRules, CtrRules).\ntranspose([H|T], TempCtrRules, CtrRules) :-\n transpose(T, TempCtrRules, CR),\n findall(TrH, transposition(H, TrH), Tran),\n mergeCtrRules(CR, Tran, CtrRules).\nmergeCtrRules(All, ToMerge, X) :-\n utils::append_fast(All, ToMerge, XT),\n deduplicate(XT, X).\ndeduplicate([], []).\ndeduplicate([[RN,A,B]|T], X) :- deduplicate(T, TT), (member([RN,_,_], TT) -> X = TT; X = [[RN,A,B]|TT]). \ntransposition([Id, Prec, Effect], [Id, Prec, Effect]).\ntransposition([Id, Prec, Effect], [NewId, NewPrec ,XNegated]) :-\n compound(Prec),\n tuple_to_list(Prec, LPrec),!,\n transposition_sequential(LPrec, LPrec, Effect, Id, [], NewPrec, XNegated, NewId).\ntransposition([Id, Prec, Effect], [NewId, EffectNegated ,XNegated]) :-\n \\+ compound(Prec),\n Prec \\== [],\n prologEscape(Prec),\n negate(Prec, XNegated),\n negate(Effect, EffectNegated),\n atom_concat(Id, '_i', NewId).\ntransposition_sequential(LPrec, [H|T], Effect, Id, Skipped, NewPrec, XNegated, NewId) :-\n transposition_sequential(LPrec, T, Effect, Id, [H|Skipped], NewPrec, XNegated, NewId).\ntransposition_sequential(LPrec, [X|T], Effect, Id, Skipped, NewPrec, XNegated, NewId) :-\n prologEscape(X),\n utils::append_fast(Skipped, T, CleanedPrec),\n negate(X, XNegated),\n negate(Effect, EffectNegated),\n list_to_tuple([EffectNegated|CleanedPrec], NewPrec),\n newIdentifier(Skipped, Id, NewId).\nnewIdentifier(List, OldId, NewId) :-\n modifier(List, Mod),\n atom_concat(OldId, Mod, NewId).\nmodifier([], '_i').\nmodifier([_|Tail], Index):-\n modifier(Tail, Index1),\n atom_concat(Index1, 'i', Index).\nnegate(X, Arg) :-\n functor(X, '-', _) -> (\n arg(1, X, Arg));\n functor(X, 'p', _) -> (\n arg(1, X, PX),\n (functor(PX, '-', _) -> (\n arg(1, PX, PNX),\n Arg = o(PNX)\n );\n Arg = o(-(PX))));\n Arg = -(X).\nprologEscape(X) :- \\+ functor(X, 'prolog', _), \\+ functor(X, '~', _).\n/*\n * Standard rules (RuleName : Preconditions => Effects)\n * Special rules (RuleName : Effects)\n */\nconvertAllRules([], []).\nconvertAllRules([[H,P,E]|T], [R|Rules]) :- convertRule(H, P, E, R), convertAllRules(T, Rules).\nconvertAllRules([[H,E]|T], [R|Rules]) :- convertRule(H, E, R), convertAllRules(T, Rules).\n/*\n * Convert the given rule to the standard format\n * Example:\n * r2: followedGuidelines(X), doctor(X) => -liable(X)\n * rule([r2,[[followedGuidelines(X_e4149)],[doctor(X_e4149)]],[neg,liable(X_e4149)]]).\n */\nconvertRule(RuleName, Preconditions, Effects, rule(List)) :-\n tuple_to_list(Preconditions, Lprecond),\n tuple_to_list(Effects, Leffects),\n check_modifiers_in_list(preconditions, Lprecond, LprecondChecked),\n check_modifiers_in_list(effects, Leffects, LeffectsChecked),\n flatten_first_level(LeffectsChecked, LeffectsCheckedFlattened),\n List = [RuleName, LprecondChecked, LeffectsCheckedFlattened], !.\n/*\n * Convert the given special rule\n * Example:\n * bp(-liable(X)).\n * abastractBp([[neg, liable(X_e4149)]]).\n */\nconvertRule(bps, Effects, abstractBp(Checked)) :-\n functor(Effects, 'bp', _),\n Effects =.. L,\n removehead(L, LC),\n check_modifiers_in_list(effects, LC, Checked), !.\nconvertRule(Name, Effects, premise([Name, LeffectsCheckedFlattened])) :-\n tuple_to_list(Effects, Leffects),\n check_modifiers_in_list(effects, Leffects, LeffectsChecked),\n flatten_first_level(LeffectsChecked, LeffectsCheckedFlattened).\n/*\n * Find negations(-), obligations(o), permissions(p) on a list of preconditions/effects and\n * raplace them with the assigned literal (neg, obl, perm)\n */\ncheck_modifiers_in_list(MODE, [], []) :- !.\ncheck_modifiers_in_list(MODE, [H|T], L) :- H == [], L = [], !.\ncheck_modifiers_in_list(MODE, [H|T], R) :- H \\== [],\n check_modifiers_once(H, LH),\n check_modifiers_in_list(MODE, T, LT),\n utils::append_fast([LH], LT, L),\n R = L.\ncheck_modifiers_once(H, List) :- once(check_modifiers(H, List)).\ncheck_modifiers([], []).\ncheck_modifiers(H, List) :-\n functor(H, '-', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lobl),\n utils::append_fast([neg], Lobl, Lf),\n List = Lf);\n functor(H, 'o', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lobl),\n List = [obl|[Lobl]]);\n functor(H, 'p', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lper),\n List = [perm|[Lper]]);\n functor(H, '~', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lper),\n List = [unless|[Lper]]);\n functor(H, 'bp', _) -> (\n H =.. [_|Arg],\n check_modifiers_in_list(effects, Arg, Lper),\n List = [bp|[Lper]]);\n List = [H].\nlist_to_tuple([H], (H)) :- !.\nlist_to_tuple([H|T], (H,TT)) :- list_to_tuple(T,TT).\n/*\n * Replace all the occurences of a given element with the given argument\n */\nreplace(_, _, [],[]) :- !.\nreplace(O, R, [O|T], [R|T2]) :- replace(O, R, T, T2), !.\nreplace(O, R, [H|T], [H|T2]) :- H \\= O, replace(O, R, T, T2).\nflatten_first_level([X], X) :- !.\nflatten_first_level.\nremovehead([_|Tail], Tail).\nin(A, A) :- nonvar(A), A \\= (_ , _), !.\nin(A, (A, _)) :- !.\nin(A, (_ , Cs)) :- in(A, Cs).\ncheck_admissibility(preconditions, H, LH) :-\n \\+ defeasible_admissible(LH),\n throw(['Premise ', H, ' is not a well formed member of the argumentation language.']).\ncheck_admissibility(effects, H, LH) :-\n \\+ admissible(LH),\n throw(['Conclusion ', H, ' is not a well formed member of the argumentation language.']).\ncheck_admissibility(_, _, _).\ndefeasible_admissible([unless, Term]) :- admissible(Term).\ndefeasible_admissible(Term) :- admissible(Term).\nadmissible([neg, bp, Term]) :- admissible_terms_complete(Term).\nadmissible([bp, Term]) :- admissible_terms_complete(Term).\nadmissible([neg, Term]) :- admissible_term(Term).\nadmissible([obl, [Term]]) :- admissible_term(Term).\nadmissible([obl, [neg, Term]]) :- admissible_term(Term).\nadmissible([neg, obl, [Term]]) :- admissible_term(Term).\nadmissible([neg, obl, [neg, Term]]) :- admissible_term(Term).\nadmissible([perm, [Term]]) :- admissible_term(Term).\nadmissible([perm, [neg, Term]]) :- admissible_term(Term).\nadmissible([Term]) :- admissible_term(Term).\nadmissible_term(Term) :-\n atomic(Term),\n Term \\== neg,\n Term \\== obl,\n Term \\== perm,\n Term \\== unless,\n Term \\== bp.\nadmissible_term(Term) :- var(Term).\nadmissible_term(Term) :-\n compound(Term),\n \\+ functor(Term, 'o', _),\n \\+ functor(Term, 'p', _),\n \\+ functor(Term, '-', _),\n \\+ functor(Term, '~', _),\n \\+ functor(Term, 'bp', _),\n Term =.. [_|Args],\n admissible_terms(Args).\nadmissible_terms([]).\nadmissible_terms([H|T]) :-\n admissible_term(H),\n admissible_terms(T).\nadmissible_terms_complete([]).\nadmissible_terms_complete([H|T]) :-\n admissible(H),\n admissible_terms_complete(T).\nrule(Id, PP, [Conclusion]) :- context_check(clause(rl(Conclusion), [Id, Premises, Conclusion])), tuple_to_list(Premises, P), ff(P, PP).\npremise(Id, [Conclusion]) :- context_check(clause(rl(Conclusion), [Id, Conclusion])).\ncheck_strict(Id) :- context_check(strict(Id)).\nprolog([prolog(Term)], Term).\ncontrary([~(Term)], Term).\nundercut(undercut(Rule), Rule).\nsuperiority(sup(Id1, Id2), Id1, Id2).\n/*\n * Convert the given tuple to list\n */\ntuple_to_list(A,[A]) :- nonvar(A), A \\= (_ , _), !.\ntuple_to_list((A,B),L) :-\n tuple_to_list(A, La),\n tuple_to_list(B, Lb),\n utils::append_fast(La, Lb,L).\nff([[]], []) :- !.\nff([[X]], [X]) :- !.\nff(X, X).\nclassic_rule(X, [applicable(X)|Y], Z) :- metaRules, !, rule(X, Y, Z).\nclassic_rule(X, Y, Z) :- rule(X, Y, Z).\nclassic_rule(X, Y) :- premise(X, Y).\nclassic_conflict([A], [B], C) :- metaConflicts,\n context_check(clause(conc([conflict(A, B, C)]), _)).\nclassic_conflict([A], [B]) :- metaConflicts,\n context_check(clause(conc([conflict(A, B)]), _)).\nclassic_conflict(A, B, C) :-\n \\+ metaConflicts,\n member(conflict(A, B, C), [\n conflict([Atom], [-Atom], (Atom \\= -_)),\n conflict([-Atom], [Atom], true),\n conflict([o(Atom)], [o(-Atom)], (Atom \\= -_)), % O(x) <-> O(-x)\n conflict([o(-Atom)], [o(Atom)], true),\n conflict([p(Atom)], [o(-Atom)], (Atom \\= -_)), % P(x) <-> O(-x)\n conflict([o(-Atom)], [p(Atom)], true),\n conflict([o(Atom)], [p(-Atom)], (Atom \\= -_)), % O(x) <-> P(-x)\n conflict([p(-Atom)], [o(Atom)], true),\n conflict([o(Atom)], [-p(Atom)], true), % O(x) <-> O(-x) (-P(x))\n conflict([-p(Atom)], [o(Atom)], true),\n conflict([sup(X, Y)], [sup(Y, X)], true)\n ]).\nclassic_conflict(A, B, C) :-\n \\+ metaConflicts,\n conflict(A, B, C).\nclassic_conflict(A, B) :-\n \\+ metaConflicts,\n conflict(A, B).";
4557
+ this.y3m_1 = "/*\n * Main directive. Find all the rules in the theory in the format (Name : Preconditions => Conclusion)\n * or (Name : Effects) and then if:\n * - It is a standard rule, translate it in the standard format (rule([Name, Preconditions, Conclusions]));\n * - It is a bp rule, translate it to (abstractBp([Effects]))\n * During the process, clean them from the unallowed symbols (-, o, p).\n */\nconvertAllRules(ArgRules) :-\n defeasibleRules(DefeasibleRules),\n strictRules(StrictRules, RulesIds),\n ordinaryPremises(Premises),\n axiomPremises(Axioms, AxiomsIds),\n specialRules(SpecialRules),\n utils::appendLists([DefeasibleRules, StrictRules, Premises, Axioms], Rules),\n rule_to_clause(Rules, Clauses),\n findall(sup(X, Y), sup(X, Y), Sup),\n utils::appendLists([Clauses, AxiomsIds, RulesIds, Sup, SpecialRules], ArgRules),\n utils::assert_all(ArgRules), !.\ndefeasibleRules(DefeasibleRules) :-\n findall([RuleName, Preconditions, Effect], (RuleName : Preconditions => Effect), DefeasibleRulesOld),\n prologDefeasibleRules(DefeasibleRulesNew),\n utils::append_fast(DefeasibleRulesOld, DefeasibleRulesNew, DefeasibleRules).\nstrictRules(CtrRules, Ids) :-\n findall([RuleName, Preconditions, Effect], (RuleName : Preconditions -> Effect), StrictRulesOld),\n prologStrictRules(StrictRulesNew),\n utils::append_fast(StrictRulesOld, StrictRulesNew, StrictRules),\n transpose(StrictRules, StrictRules, CtrRules),\n extract_id(CtrRules, Ids).\nordinaryPremises(Premises) :-\n findall([RuleName, Effect], ((RuleName :=> Effect), atom(RuleName)), PremisesOld),\n prologPremises(PremisesNew),\n utils::append_fast(PremisesOld, PremisesNew, Premises).\naxiomPremises(Axioms, Ids) :-\n findall([RuleName, Effect], ((RuleName :-> Effect), atom(RuleName)), AxiomsOld),\n prologAxioms(AxiomsNew),\n utils::append_fast(AxiomsOld, AxiomsNew, Axioms),\n extract_id(Axioms, Ids).\nspecialRules(SpecialRules) :-\n bpsNew(SpecialRules).\ntranspose(_, CtrRules, CtrRules) :- \\+ autoTransposition, !.\ntranspose([], CtrRules, CtrRules).\ntranspose([H|T], TempCtrRules, CtrRules) :-\n transpose(T, TempCtrRules, CR),\n findall(TrH, transposition(H, TrH), Tran),\n mergeCtrRules(CR, Tran, CtrRules).\nmergeCtrRules(All, ToMerge, X) :-\n utils::append_fast(All, ToMerge, XT),\n deduplicate(XT, X).\ndeduplicate([], []).\ndeduplicate([[RN,A,B]|T], X) :- deduplicate(T, TT), (member([RN,_,_], TT) -> X = TT; X = [[RN,A,B]|TT]). \ntransposition([Id, Prec, Effect], [Id, Prec, Effect]).\ntransposition([Id, Prec, Effect], [NewId, NewPrec ,XNegated]) :-\n compound(Prec),\n tuple_to_list(Prec, LPrec),!,\n transposition_sequential(LPrec, LPrec, Effect, Id, [], NewPrec, XNegated, NewId).\ntransposition([Id, Prec, Effect], [NewId, EffectNegated ,XNegated]) :-\n \\+ compound(Prec),\n Prec \\== [],\n prologEscape(Prec),\n negate(Prec, XNegated),\n negate(Effect, EffectNegated),\n atom_concat(Id, '_i', NewId).\ntransposition_sequential(LPrec, [H|T], Effect, Id, Skipped, NewPrec, XNegated, NewId) :-\n transposition_sequential(LPrec, T, Effect, Id, [H|Skipped], NewPrec, XNegated, NewId).\ntransposition_sequential(LPrec, [X|T], Effect, Id, Skipped, NewPrec, XNegated, NewId) :-\n prologEscape(X),\n utils::append_fast(Skipped, T, CleanedPrec),\n negate(X, XNegated),\n negate(Effect, EffectNegated),\n list_to_tuple([EffectNegated|CleanedPrec], NewPrec),\n newIdentifier(Skipped, Id, NewId).\nnewIdentifier(List, OldId, NewId) :-\n modifier(List, Mod),\n atom_concat(OldId, Mod, NewId).\nmodifier([], '_i').\nmodifier([_|Tail], Index):-\n modifier(Tail, Index1),\n atom_concat(Index1, 'i', Index).\nnegate(X, Arg) :-\n functor(X, '-', _) -> (\n arg(1, X, Arg));\n functor(X, 'p', _) -> (\n arg(1, X, PX),\n (functor(PX, '-', _) -> (\n arg(1, PX, PNX),\n Arg = o(PNX)\n );\n Arg = o(-(PX))));\n Arg = -(X).\nprologEscape(X) :- \\+ functor(X, 'prolog', _), \\+ functor(X, '~', _).\n/*\n * Standard rules (RuleName : Preconditions => Effects)\n * Special rules (RuleName : Effects)\n */\nconvertAllRules([], []).\nconvertAllRules([[H,P,E]|T], [R|Rules]) :- convertRule(H, P, E, R), convertAllRules(T, Rules).\nconvertAllRules([[H,E]|T], [R|Rules]) :- convertRule(H, E, R), convertAllRules(T, Rules).\n/*\n * Convert the given rule to the standard format\n * Example:\n * r2: followedGuidelines(X), doctor(X) => -liable(X)\n * rule([r2,[[followedGuidelines(X_e4149)],[doctor(X_e4149)]],[neg,liable(X_e4149)]]).\n */\nconvertRule(RuleName, Preconditions, Effects, rule(List)) :-\n tuple_to_list(Preconditions, Lprecond),\n tuple_to_list(Effects, Leffects),\n check_modifiers_in_list(preconditions, Lprecond, LprecondChecked),\n check_modifiers_in_list(effects, Leffects, LeffectsChecked),\n flatten_first_level(LeffectsChecked, LeffectsCheckedFlattened),\n List = [RuleName, LprecondChecked, LeffectsCheckedFlattened], !.\n/*\n * Convert the given special rule\n * Example:\n * bp(-liable(X)).\n * abastractBp([[neg, liable(X_e4149)]]).\n */\nconvertRule(bps, Effects, abstractBp(Checked)) :-\n functor(Effects, 'bp', _),\n Effects =.. L,\n removehead(L, LC),\n check_modifiers_in_list(effects, LC, Checked), !.\nconvertRule(Name, Effects, premise([Name, LeffectsCheckedFlattened])) :-\n tuple_to_list(Effects, Leffects),\n check_modifiers_in_list(effects, Leffects, LeffectsChecked),\n flatten_first_level(LeffectsChecked, LeffectsCheckedFlattened).\n/*\n * Find negations(-), obligations(o), permissions(p) on a list of preconditions/effects and\n * raplace them with the assigned literal (neg, obl, perm)\n */\ncheck_modifiers_in_list(MODE, [], []) :- !.\ncheck_modifiers_in_list(MODE, [H|T], L) :- H == [], L = [], !.\ncheck_modifiers_in_list(MODE, [H|T], R) :- H \\== [],\n check_modifiers_once(H, LH),\n check_modifiers_in_list(MODE, T, LT),\n utils::append_fast([LH], LT, L),\n R = L.\ncheck_modifiers_once(H, List) :- once(check_modifiers(H, List)).\ncheck_modifiers([], []).\ncheck_modifiers(H, List) :-\n functor(H, '-', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lobl),\n utils::append_fast([neg], Lobl, Lf),\n List = Lf);\n functor(H, 'o', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lobl),\n List = [obl|[Lobl]]);\n functor(H, 'p', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lper),\n List = [perm|[Lper]]);\n functor(H, '~', _) -> (\n arg(1, H, Arg),\n check_modifiers_once(Arg, Lper),\n List = [unless|[Lper]]);\n functor(H, 'bp', _) -> (\n H =.. [_|Arg],\n check_modifiers_in_list(effects, Arg, Lper),\n List = [bp|[Lper]]);\n List = [H].\nlist_to_tuple([H], (H)) :- !.\nlist_to_tuple([H|T], (H,TT)) :- list_to_tuple(T,TT).\n/*\n * Replace all the occurences of a given element with the given argument\n */\nreplace(_, _, [],[]) :- !.\nreplace(O, R, [O|T], [R|T2]) :- replace(O, R, T, T2), !.\nreplace(O, R, [H|T], [H|T2]) :- H \\= O, replace(O, R, T, T2).\nflatten_first_level([X], X) :- !.\nflatten_first_level.\nremovehead([_|Tail], Tail).\nin(A, A) :- nonvar(A), A \\= (_ , _), !.\nin(A, (A, _)) :- !.\nin(A, (_ , Cs)) :- in(A, Cs).\ncheck_admissibility(preconditions, H, LH) :-\n \\+ defeasible_admissible(LH),\n throw(['Premise ', H, ' is not a well formed member of the argumentation language.']).\ncheck_admissibility(effects, H, LH) :-\n \\+ admissible(LH),\n throw(['Conclusion ', H, ' is not a well formed member of the argumentation language.']).\ncheck_admissibility(_, _, _).\ndefeasible_admissible([unless, Term]) :- admissible(Term).\ndefeasible_admissible(Term) :- admissible(Term).\nadmissible([neg, bp, Term]) :- admissible_terms_complete(Term).\nadmissible([bp, Term]) :- admissible_terms_complete(Term).\nadmissible([neg, Term]) :- admissible_term(Term).\nadmissible([obl, [Term]]) :- admissible_term(Term).\nadmissible([obl, [neg, Term]]) :- admissible_term(Term).\nadmissible([neg, obl, [Term]]) :- admissible_term(Term).\nadmissible([neg, obl, [neg, Term]]) :- admissible_term(Term).\nadmissible([perm, [Term]]) :- admissible_term(Term).\nadmissible([perm, [neg, Term]]) :- admissible_term(Term).\nadmissible([Term]) :- admissible_term(Term).\nadmissible_term(Term) :-\n atomic(Term),\n Term \\== neg,\n Term \\== obl,\n Term \\== perm,\n Term \\== unless,\n Term \\== bp.\nadmissible_term(Term) :- var(Term).\nadmissible_term(Term) :-\n compound(Term),\n \\+ functor(Term, 'o', _),\n \\+ functor(Term, 'p', _),\n \\+ functor(Term, '-', _),\n \\+ functor(Term, '~', _),\n \\+ functor(Term, 'bp', _),\n Term =.. [_|Args],\n admissible_terms(Args).\nadmissible_terms([]).\nadmissible_terms([H|T]) :-\n admissible_term(H),\n admissible_terms(T).\nadmissible_terms_complete([]).\nadmissible_terms_complete([H|T]) :-\n admissible(H),\n admissible_terms_complete(T).\nrule(Id, PP, [Conclusion]) :- context_check(clause(rl(Conclusion), [Id, Premises, Conclusion])), tuple_to_list(Premises, P), ff(P, PP).\npremise(Id, [Conclusion]) :- context_check(clause(rl(Conclusion), [Id, Conclusion])).\ncheck_strict(Id) :- context_check(strict(Id)).\nprolog([prolog(Term)], Term).\ncontrary([~(Term)], Term).\nundercut(undercut(Rule), Rule).\nsuperiority(sup(Id1, Id2), Id1, Id2).\n/*\n * Convert the given tuple to list\n */\ntuple_to_list(A,[A]) :- nonvar(A), A \\= (_ , _), !.\ntuple_to_list((A,B),L) :-\n tuple_to_list(A, La),\n tuple_to_list(B, Lb),\n utils::append_fast(La, Lb,L).\nff([[]], []) :- !.\nff([[X]], [X]) :- !.\nff(X, X).\nclassic_rule(X, [applicable(X)|Y], Z) :- metaRules, !, rule(X, Y, Z).\nclassic_rule(X, Y, Z) :- rule(X, Y, Z).\nclassic_rule(X, Y) :- premise(X, Y).\nclassic_conflict([A], [B], C) :- metaConflicts,\n context_check(clause(conc([conflict(A, B, C)]), _)).\nclassic_conflict([A], [B]) :- metaConflicts,\n context_check(clause(conc([conflict(A, B)]), _)).\nclassic_conflict(A, B, C) :-\n \\+ metaConflicts,\n member(conflict(A, B, C), [\n conflict([Atom], [-Atom], (Atom \\= -_)),\n conflict([-Atom], [Atom], true),\n conflict([o(Atom)], [o(-Atom)], (Atom \\= -_)), % O(x) <-> O(-x)\n conflict([o(-Atom)], [o(Atom)], true),\n conflict([p(Atom)], [o(-Atom)], (Atom \\= -_)), % P(x) <-> O(-x)\n conflict([o(-Atom)], [p(Atom)], true),\n conflict([o(Atom)], [p(-Atom)], (Atom \\= -_)), % O(x) <-> P(-x)\n conflict([p(-Atom)], [o(Atom)], true),\n conflict([o(Atom)], [-p(Atom)], true), % O(x) <-> O(-x) (-P(x))\n conflict([-p(Atom)], [o(Atom)], true),\n conflict([sup(X, Y)], [sup(Y, X)], true)\n ]).\nclassic_conflict(A, B, C) :-\n \\+ metaConflicts,\n conflict(A, B, C).\nclassic_conflict(A, B) :-\n \\+ metaConflicts,\n conflict(A, B).";
4578
4558
  }
4579
4559
  var RuleTranslator_instance;
4580
4560
  function RuleTranslator_getInstance() {
4581
4561
  return RuleTranslator_instance;
4582
4562
  }
4583
4563
  function StatementLabelling() {
4584
- this.v3m_1 = 'statementLabelling :-\n findall(_, (\n context_check(in([_, _, Conc, _, _])),\n \\+ context_check(statIn(Conc)),\n context_assert(statIn(Conc))\n ), _),\n findall(_, (\n context_check(out([_, _, Conc, _, _])),\n \\+ context_check(statIn(Conc)),\n \\+ context_check(statOut(Conc)),\n context_assert(statOut(Conc))\n ), _),\n findall(_, (\n context_check(und([_, _, Conc, _, _])),\n \\+ context_check(statIn(Conc)),\n \\+ context_check(statOut(Conc)),\n \\+ context_check(statUnd(Conc)),\n context_assert(statUnd(Conc))\n ), _).';
4564
+ this.u3m_1 = 'statementLabelling :-\n findall(_, (\n context_check(in([_, _, Conc, _, _])),\n \\+ context_check(statIn(Conc)),\n context_assert(statIn(Conc))\n ), _),\n findall(_, (\n context_check(out([_, _, Conc, _, _])),\n \\+ context_check(statIn(Conc)),\n \\+ context_check(statOut(Conc)),\n context_assert(statOut(Conc))\n ), _),\n findall(_, (\n context_check(und([_, _, Conc, _, _])),\n \\+ context_check(statIn(Conc)),\n \\+ context_check(statOut(Conc)),\n \\+ context_check(statUnd(Conc)),\n context_assert(statUnd(Conc))\n ), _).';
4585
4565
  }
4586
4566
  var StatementLabelling_instance;
4587
4567
  function StatementLabelling_getInstance() {
4588
4568
  return StatementLabelling_instance;
4589
4569
  }
4590
4570
  function SuperiorityRelation() {
4591
- this.d3n_1 = 'superiorArgument(A, B) :- superiorArgumentSupportBuffered(A, B, _).\nsuperiorArgument(A, B, SupSet) :- superiorArgumentSupportBuffered(A, B, SupSet).\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n context_check(superior(A, B, SupSet, true)), !.\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n context_check(superior(A, B, SupSet, false)),\n fail, !.\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n \\+ context_check(superior(A, B, _, _)),\n superiorArgumentSupport(A, B, SupSet),\n context_assert(superior(A, B, SupSet, true)), !.\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n \\+ cache_check(superior(A, B, _, _)),\n context_assert(superior(A, B, [], false)),\n fail, !.\nsuperiorArgumentSupport([_, _, _, _, [LastDefRulesA, DefRulesA, DefPremisesA]], [_, _, _, _, [LastDefRulesB, DefRulesB, DefPremisesB]], SupSet) :-\n\tsuperiorArgumentSupport(LastDefRulesA, DefRulesA, DefPremisesA, LastDefRulesB, DefRulesB, DefPremisesB, SupSet).\nsuperiorArgumentSupport(LastDefRulesA, _, DefPremisesA, LastDefRulesB, _, DefPremisesB, SupSet) :-\n orderingPrinciple(last),\n\tsuperior(LastDefRulesA, DefPremisesA, LastDefRulesB, DefPremisesB, SupSet).\nsuperiorArgumentSupport(_, DefRulesA, DefPremisesA, _, DefRulesB, DefPremisesB, SupSet) :-\n orderingPrinciple(weakest),\n\tsuperior(DefRulesA, DefPremisesA, DefRulesB, DefPremisesB, SupSet).\nsuperior([], PremisesA, [], PremisesB, SupSet) :-\n\tweaker(PremisesB, PremisesA, SupSet).\nsuperior(DefRulesA, _, DefRulesB, _, SupSet) :-\n\torderingPrinciple(last),\n\t(DefRulesA \\== []; DefRulesB \\== []),\n\tweaker(DefRulesB, DefRulesA, SupSet).\nsuperior(DefRulesA, [], DefRulesB, [], SupSet) :-\n\torderingPrinciple(weakest),\n\tweaker(DefRulesB, DefRulesA, SupSet).\nsuperior(DefRulesA, PremisesA, DefRulesB, PremisesB, SupSet) :-\n\torderingPrinciple(weakest),\n\t(DefRulesA \\== []; DefRulesB \\== []),\n\t(PremisesA \\== []; PremisesB \\== []),\n\tweaker(DefRulesB, DefRulesA, SupSetA),\n\tweaker(PremisesB, PremisesA, SupSetB),\n\tutils::appendLists([SupSetA, SupSetB], SupSet).\nweaker(RulesA, [], []) :-\n\tRulesA \\== [].\nweaker(RulesA, RulesB, SupSet) :-\n\tRulesA \\== [],\n\tRulesB \\== [],\n\torderingComparator(elitist),\n\tmember(Rule, RulesA),\n\tallStronger(Rule, RulesB, SupSet), !.\nweaker(RulesA, RulesB, SupSet) :-\n\tRulesA \\== [],\n\tRulesB \\== [],\n\torderingComparator(democrat),\n\tweakerDemo(RulesA, RulesB, SupSet).\nweaker(RulesA, RulesB, [sup(X, W)]) :-\n\tRulesA \\== [],\n\tRulesB \\== [],\n\torderingComparator(normal),\n\tmember(W, RulesA),\n\tmember(X, RulesB),\n\tcontext_check(sup(X, W)), !.\nweakerDemo([], _, []).\nweakerDemo([H|T], Rules, [Sup|SupSet]) :-\n\tsingleStronger(H, Rules, Sup),\n\tweakerDemo(T, Rules, SupSet).\nsingleStronger(Target, Rules, sup(Rule, Target)) :-\n\tmember(Rule, Rules),\n\tcontext_check(sup(Rule, Target)), !.\nallStronger(_, [], []).\nallStronger(Target, [Rule|Rules], [sup(Rule, Target)|SupSet]) :-\n\tcontext_check(sup(Rule, Target)),\n\tallStronger(Target, Rules, SupSet).';
4571
+ this.c3n_1 = 'superiorArgument(A, B) :- superiorArgumentSupportBuffered(A, B, _).\nsuperiorArgument(A, B, SupSet) :- superiorArgumentSupportBuffered(A, B, SupSet).\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n context_check(superior(A, B, SupSet, true)), !.\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n context_check(superior(A, B, SupSet, false)),\n fail, !.\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n \\+ context_check(superior(A, B, _, _)),\n superiorArgumentSupport(A, B, SupSet),\n context_assert(superior(A, B, SupSet, true)), !.\nsuperiorArgumentSupportBuffered(A, B, SupSet) :-\n \\+ cache_check(superior(A, B, _, _)),\n context_assert(superior(A, B, [], false)),\n fail, !.\nsuperiorArgumentSupport([_, _, _, _, [LastDefRulesA, DefRulesA, DefPremisesA]], [_, _, _, _, [LastDefRulesB, DefRulesB, DefPremisesB]], SupSet) :-\n\tsuperiorArgumentSupport(LastDefRulesA, DefRulesA, DefPremisesA, LastDefRulesB, DefRulesB, DefPremisesB, SupSet).\nsuperiorArgumentSupport(LastDefRulesA, _, DefPremisesA, LastDefRulesB, _, DefPremisesB, SupSet) :-\n orderingPrinciple(last),\n\tsuperior(LastDefRulesA, DefPremisesA, LastDefRulesB, DefPremisesB, SupSet).\nsuperiorArgumentSupport(_, DefRulesA, DefPremisesA, _, DefRulesB, DefPremisesB, SupSet) :-\n orderingPrinciple(weakest),\n\tsuperior(DefRulesA, DefPremisesA, DefRulesB, DefPremisesB, SupSet).\nsuperior([], PremisesA, [], PremisesB, SupSet) :-\n\tweaker(PremisesB, PremisesA, SupSet).\nsuperior(DefRulesA, _, DefRulesB, _, SupSet) :-\n\torderingPrinciple(last),\n\t(DefRulesA \\== []; DefRulesB \\== []),\n\tweaker(DefRulesB, DefRulesA, SupSet).\nsuperior(DefRulesA, [], DefRulesB, [], SupSet) :-\n\torderingPrinciple(weakest),\n\tweaker(DefRulesB, DefRulesA, SupSet).\nsuperior(DefRulesA, PremisesA, DefRulesB, PremisesB, SupSet) :-\n\torderingPrinciple(weakest),\n\t(DefRulesA \\== []; DefRulesB \\== []),\n\t(PremisesA \\== []; PremisesB \\== []),\n\tweaker(DefRulesB, DefRulesA, SupSetA),\n\tweaker(PremisesB, PremisesA, SupSetB),\n\tutils::appendLists([SupSetA, SupSetB], SupSet).\nweaker(RulesA, [], []) :-\n\tRulesA \\== [].\nweaker(RulesA, RulesB, SupSet) :-\n\tRulesA \\== [],\n\tRulesB \\== [],\n\torderingComparator(elitist),\n\tmember(Rule, RulesA),\n\tallStronger(Rule, RulesB, SupSet), !.\nweaker(RulesA, RulesB, SupSet) :-\n\tRulesA \\== [],\n\tRulesB \\== [],\n\torderingComparator(democrat),\n\tweakerDemo(RulesA, RulesB, SupSet).\nweaker(RulesA, RulesB, [sup(X, W)]) :-\n\tRulesA \\== [],\n\tRulesB \\== [],\n\torderingComparator(normal),\n\tmember(W, RulesA),\n\tmember(X, RulesB),\n\tcontext_check(sup(X, W)), !.\nweakerDemo([], _, []).\nweakerDemo([H|T], Rules, [Sup|SupSet]) :-\n\tsingleStronger(H, Rules, Sup),\n\tweakerDemo(T, Rules, SupSet).\nsingleStronger(Target, Rules, sup(Rule, Target)) :-\n\tmember(Rule, Rules),\n\tcontext_check(sup(Rule, Target)), !.\nallStronger(_, [], []).\nallStronger(Target, [Rule|Rules], [sup(Rule, Target)|SupSet]) :-\n\tcontext_check(sup(Rule, Target)),\n\tallStronger(Target, Rules, SupSet).';
4592
4572
  }
4593
4573
  var SuperiorityRelation_instance;
4594
4574
  function SuperiorityRelation_getInstance() {
4595
4575
  return SuperiorityRelation_instance;
4596
4576
  }
4597
4577
  function Utils() {
4598
- this.e3n_1 = 'writeList([]) :- nl.\nwriteList([X|Others]) :-\n\twrite(X),\n\twriteList(Others).\nwriteListNl([]).\nwriteListNl([X|Others]) :-\n\twrite(X),nl,\n\twriteListNl(Others).\nsortDistinct(List, Sorted) :-\n deduplicate(List, Deduplicated),\n sort(Deduplicated, Sorted).\ndeduplicate([], []).\ndeduplicate(List, Output) :-\n List \\== [],\n setof(X, member(X, List), Output).\nsort(List,Sorted) :- q_sort(List, [], Sorted).\nq_sort([], Acc, Acc).\nq_sort([H|T], Acc, Sorted) :-\n\tpivoting(H, T, L1, L2),\n\tq_sort(L1, Acc, Sorted1),\n\tq_sort(L2, [H|Sorted1], Sorted).\npivoting(H,[],[],[]).\npivoting(H, [X|T], [X|L], G) :-\n H @>= X,\n pivoting(H, T, L, G).\npivoting(H, [X|T], L, [X|G]) :-\n X @> H,\n pivoting(H, T, L, G).\nsubtract([], _, []).\nsubtract([Head|Tail], L2, L3) :-\n member(Head, L2), !,\n subtract(Tail, L2, L3).\nsubtract([Head|Tail1], L2, [Head|Tail3]) :-\n subtract(Tail1, L2, Tail3).\nisEmptyList([]).\nappendLists([], []).\nappendLists([H|T], R) :-\n appendLists(T, AT),\n append_fast(H, AT, R).\nsearch(F, L, S) :-\n between(1, L, N),\n functor(S, F, N),\n call(S).\nbetween(N, M, K) :- N < M, K = N.\nbetween(N, M, K) :- N == M, !, K = N.\nbetween(N, M, K) :- N < M, N1 is N+1, between(N1, M, K).\nrecoverGraph(Args, Attacks, Supports) :-\n findall(X, context_check(argument(X)), TempArgs),\n findall((T, A, B, C), context_check(attack(T, A, B, C)), TempAttacks),\n findall((A, B), context_check(support(A, B)), TempSupports),\n utils::sort(TempArgs, Args),\n utils::sort(TempAttacks, Attacks),\n utils::sort(TempSupports, Supports).\nrecoverArgumentLabelling(ArgsIn, ArgsOut, ArgsUnd) :-\n findall(X, context_check(in(X)), TempArgsIn),\n findall(X, context_check(out(X)), TempArgsOut),\n findall(X, context_check(und(X)), TempArgsUnd),\n utils::sort(TempArgsIn, ArgsIn),\n utils::sort(TempArgsOut, ArgsOut),\n utils::sort(TempArgsUnd, ArgsUnd).\nrecoverStatementLabelling(In, Out, Und) :-\n findall(X, context_check(statIn(X)), TempIn),\n findall(X, context_check(statOut(X)), TempOut),\n findall(X, context_check(statUnd(X)), TempUnd),\n utils::sort(TempIn, In),\n utils::sort(TempOut, Out),\n utils::sort(TempUnd, Und).';
4578
+ this.d3n_1 = 'writeList([]) :- nl.\nwriteList([X|Others]) :-\n\twrite(X),\n\twriteList(Others).\nwriteListNl([]).\nwriteListNl([X|Others]) :-\n\twrite(X),nl,\n\twriteListNl(Others).\nsortDistinct(List, Sorted) :-\n deduplicate(List, Deduplicated),\n sort(Deduplicated, Sorted).\ndeduplicate([], []).\ndeduplicate(List, Output) :-\n List \\== [],\n setof(X, member(X, List), Output).\nsort(List,Sorted) :- q_sort(List, [], Sorted).\nq_sort([], Acc, Acc).\nq_sort([H|T], Acc, Sorted) :-\n\tpivoting(H, T, L1, L2),\n\tq_sort(L1, Acc, Sorted1),\n\tq_sort(L2, [H|Sorted1], Sorted).\npivoting(H,[],[],[]).\npivoting(H, [X|T], [X|L], G) :-\n H @>= X,\n pivoting(H, T, L, G).\npivoting(H, [X|T], L, [X|G]) :-\n X @> H,\n pivoting(H, T, L, G).\nsubtract([], _, []).\nsubtract([Head|Tail], L2, L3) :-\n member(Head, L2), !,\n subtract(Tail, L2, L3).\nsubtract([Head|Tail1], L2, [Head|Tail3]) :-\n subtract(Tail1, L2, Tail3).\nisEmptyList([]).\nappendLists([], []).\nappendLists([H|T], R) :-\n appendLists(T, AT),\n append_fast(H, AT, R).\nsearch(F, L, S) :-\n between(1, L, N),\n functor(S, F, N),\n call(S).\nbetween(N, M, K) :- N < M, K = N.\nbetween(N, M, K) :- N == M, !, K = N.\nbetween(N, M, K) :- N < M, N1 is N+1, between(N1, M, K).\nrecoverGraph(Args, Attacks, Supports) :-\n findall(X, context_check(argument(X)), TempArgs),\n findall((T, A, B, C), context_check(attack(T, A, B, C)), TempAttacks),\n findall((A, B), context_check(support(A, B)), TempSupports),\n utils::sort(TempArgs, Args),\n utils::sort(TempAttacks, Attacks),\n utils::sort(TempSupports, Supports).\nrecoverArgumentLabelling(ArgsIn, ArgsOut, ArgsUnd) :-\n findall(X, context_check(in(X)), TempArgsIn),\n findall(X, context_check(out(X)), TempArgsOut),\n findall(X, context_check(und(X)), TempArgsUnd),\n utils::sort(TempArgsIn, ArgsIn),\n utils::sort(TempArgsOut, ArgsOut),\n utils::sort(TempArgsUnd, ArgsUnd).\nrecoverStatementLabelling(In, Out, Und) :-\n findall(X, context_check(statIn(X)), TempIn),\n findall(X, context_check(statOut(X)), TempOut),\n findall(X, context_check(statUnd(X)), TempUnd),\n utils::sort(TempIn, In),\n utils::sort(TempOut, Out),\n utils::sort(TempUnd, Und).';
4599
4579
  }
4600
4580
  var Utils_instance;
4601
4581
  function Utils_getInstance() {
@@ -4605,8 +4585,8 @@
4605
4585
  StructuredMode_instance = this;
4606
4586
  StructuredModeBase.call(this);
4607
4587
  }
4608
- protoOf(StructuredMode).c3a = function () {
4609
- return QueryMode_instance_0.c3n_1;
4588
+ protoOf(StructuredMode).b3a = function () {
4589
+ return QueryMode_instance_0.b3n_1;
4610
4590
  };
4611
4591
  var StructuredMode_instance;
4612
4592
  function StructuredMode_getInstance() {
@@ -4618,8 +4598,8 @@
4618
4598
  AttackRelation_instance_0 = this;
4619
4599
  AttackRelationBase.call(this);
4620
4600
  }
4621
- protoOf(AttackRelation_0).c3a = function () {
4622
- return AttackRelation_instance.a3n_1;
4601
+ protoOf(AttackRelation_0).b3a = function () {
4602
+ return AttackRelation_instance.z3m_1;
4623
4603
  };
4624
4604
  var AttackRelation_instance_0;
4625
4605
  function AttackRelation_getInstance_0() {
@@ -4631,8 +4611,8 @@
4631
4611
  Debug_instance_0 = this;
4632
4612
  DebugBase.call(this);
4633
4613
  }
4634
- protoOf(Debug_0).c3a = function () {
4635
- return Debug_instance.b3n_1;
4614
+ protoOf(Debug_0).b3a = function () {
4615
+ return Debug_instance.a3n_1;
4636
4616
  };
4637
4617
  var Debug_instance_0;
4638
4618
  function Debug_getInstance_0() {
@@ -4644,8 +4624,8 @@
4644
4624
  SuperiorityRelation_instance_0 = this;
4645
4625
  SuperiorityRelationBase.call(this);
4646
4626
  }
4647
- protoOf(SuperiorityRelation_0).c3a = function () {
4648
- return SuperiorityRelation_instance.d3n_1;
4627
+ protoOf(SuperiorityRelation_0).b3a = function () {
4628
+ return SuperiorityRelation_instance.c3n_1;
4649
4629
  };
4650
4630
  var SuperiorityRelation_instance_0;
4651
4631
  function SuperiorityRelation_getInstance_0() {
@@ -4657,8 +4637,8 @@
4657
4637
  Utils_instance_0 = this;
4658
4638
  UtilsBase.call(this);
4659
4639
  }
4660
- protoOf(Utils_0).c3a = function () {
4661
- return Utils_instance.e3n_1;
4640
+ protoOf(Utils_0).b3a = function () {
4641
+ return Utils_instance.d3n_1;
4662
4642
  };
4663
4643
  var Utils_instance_0;
4664
4644
  function Utils_getInstance_0() {
@@ -4750,7 +4730,8 @@
4750
4730
  _.$_$.h = ArgLibrary;
4751
4731
  _.$_$.i = Loadable;
4752
4732
  _.$_$.j = mineGraph;
4753
- _.$_$.k = Graph;
4733
+ _.$_$.k = mineActiveGraph;
4734
+ _.$_$.l = Graph;
4754
4735
  //endregion
4755
4736
  return _;
4756
4737
  }));