@tuprolog/2p-full 1.1.4 → 1.3.1

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.
@@ -37,10 +37,10 @@
37
37
  'use strict';
38
38
  //region block: imports
39
39
  var imul = Math.imul;
40
- var protoOf = kotlin_kotlin.$_$.k6;
41
- var first = kotlin_kotlin.$_$.m2;
42
- var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.m;
43
- var THROW_CCE = kotlin_kotlin.$_$.ea;
40
+ var protoOf = kotlin_kotlin.$_$.p6;
41
+ var first = kotlin_kotlin.$_$.q2;
42
+ var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.g;
43
+ var THROW_CCE = kotlin_kotlin.$_$.na;
44
44
  var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.v2;
45
45
  var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.w2;
46
46
  var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.x2;
@@ -48,39 +48,39 @@
48
48
  var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.s2;
49
49
  var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.t2;
50
50
  var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.y2;
51
- var initMetadataForClass = kotlin_kotlin.$_$.t5;
51
+ var initMetadataForClass = kotlin_kotlin.$_$.a6;
52
52
  var VOID = kotlin_kotlin.$_$.b;
53
- var Specifier_XFY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.a;
53
+ var Specifier_XFY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.v;
54
54
  var Operator = kotlin_it_unibo_tuprolog_core.$_$.d1;
55
- var OperatorSet_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.e;
56
- var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.h;
57
- var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.z;
58
- var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.y;
59
- var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.u;
60
- var map = kotlin_kotlin.$_$.c8;
61
- var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
55
+ var OperatorSet_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.z;
56
+ var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b;
57
+ var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.t;
58
+ var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.s;
59
+ var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.o;
60
+ var map = kotlin_kotlin.$_$.h8;
61
+ var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.v;
62
62
  var Halt = kotlin_it_unibo_tuprolog_solve.$_$.a3;
63
- var isInterface = kotlin_kotlin.$_$.c6;
63
+ var isInterface = kotlin_kotlin.$_$.j6;
64
64
  var Yes = kotlin_it_unibo_tuprolog_solve.$_$.c3;
65
- var Unit_instance = kotlin_kotlin.$_$.k1;
65
+ var Unit_instance = kotlin_kotlin.$_$.m;
66
66
  var setProbability = kotlin_it_unibo_tuprolog_solve_plp.$_$.d;
67
67
  var Numeric = kotlin_it_unibo_tuprolog_core.$_$.m1;
68
68
  var setBinaryDecisionDiagram = kotlin_it_unibo_tuprolog_solve_plp.$_$.b;
69
69
  var get_isProbabilistic = kotlin_it_unibo_tuprolog_solve_plp.$_$.a;
70
- var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
71
- var toList = kotlin_kotlin.$_$.q8;
72
- var first_0 = kotlin_kotlin.$_$.s7;
73
- var copy = kotlin_it_unibo_tuprolog_solve.$_$.e;
70
+ var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_solve.$_$.w;
71
+ var toList = kotlin_kotlin.$_$.v8;
72
+ var first_0 = kotlin_kotlin.$_$.x7;
73
+ var copy = kotlin_it_unibo_tuprolog_solve.$_$.b1;
74
74
  var Solver = kotlin_it_unibo_tuprolog_solve.$_$.z3;
75
- var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
75
+ var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.n;
76
76
  var invoke = kotlin_it_unibo_tuprolog_solve.$_$.t1;
77
- var KtMap = kotlin_kotlin.$_$.n1;
77
+ var KtMap = kotlin_kotlin.$_$.r1;
78
78
  var get_defaultFlags = kotlin_it_unibo_tuprolog_solve.$_$.o3;
79
79
  var ClassicSolverFactory_instance = kotlin_it_unibo_tuprolog_solve_classic.$_$.c;
80
- var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.j;
81
- var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.i;
82
- var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.f;
83
- var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.g;
80
+ var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.g1;
81
+ var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.f1;
82
+ var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.c1;
83
+ var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.d1;
84
84
  var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.w3;
85
85
  var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.r3;
86
86
  var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.t3;
@@ -91,123 +91,124 @@
91
91
  var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.n3;
92
92
  var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.u3;
93
93
  var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.x3;
94
- var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.k;
94
+ var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.h1;
95
95
  var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.v3;
96
- var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.h;
96
+ var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.e1;
97
97
  var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.y3;
98
- var initMetadataForObject = kotlin_kotlin.$_$.y5;
99
- var defineProp = kotlin_kotlin.$_$.l5;
98
+ var initMetadataForObject = kotlin_kotlin.$_$.f6;
99
+ var defineProp = kotlin_kotlin.$_$.s5;
100
100
  var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.v1;
101
101
  var DefaultBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve_classic.$_$.b;
102
- var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l1;
103
- var listOf = kotlin_kotlin.$_$.x2;
102
+ var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.t;
103
+ var listOf = kotlin_kotlin.$_$.b3;
104
104
  var Call_getInstance = kotlin_it_unibo_tuprolog_solve_classic.$_$.a;
105
- var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_solve.$_$.h1;
106
- var listOf_0 = kotlin_kotlin.$_$.y2;
105
+ var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_solve.$_$.p;
106
+ var listOf_0 = kotlin_kotlin.$_$.c3;
107
107
  var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.b1;
108
- var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.b;
109
- var captureStack = kotlin_kotlin.$_$.e5;
110
- var emptyList = kotlin_kotlin.$_$.h2;
111
- var asIterable = kotlin_kotlin.$_$.s1;
112
- var asIterable_0 = kotlin_kotlin.$_$.g7;
113
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.c;
114
- var Companion_instance_2 = kotlin_it_unibo_tuprolog_core.$_$.t;
115
- var initMetadataForCompanion = kotlin_kotlin.$_$.u5;
108
+ var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.w;
109
+ var captureStack = kotlin_kotlin.$_$.k5;
110
+ var emptyList = kotlin_kotlin.$_$.l2;
111
+ var asIterable = kotlin_kotlin.$_$.w1;
112
+ var asIterable_0 = kotlin_kotlin.$_$.l7;
113
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
114
+ var Companion_instance_2 = kotlin_it_unibo_tuprolog_core.$_$.n;
115
+ var initMetadataForCompanion = kotlin_kotlin.$_$.b6;
116
116
  var bddTerminalOf = kotlin_it_unibo_tuprolog_bdd.$_$.d;
117
117
  var bddOf = kotlin_it_unibo_tuprolog_bdd.$_$.c;
118
- var initMetadataForInterface = kotlin_kotlin.$_$.w5;
119
- var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.j;
120
- var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.v;
118
+ var initMetadataForInterface = kotlin_kotlin.$_$.d6;
119
+ var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.d;
120
+ var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.p;
121
121
  var Term = kotlin_it_unibo_tuprolog_core.$_$.o2;
122
122
  var Atom = kotlin_it_unibo_tuprolog_core.$_$.e1;
123
- var KProperty1 = kotlin_kotlin.$_$.c7;
124
- var getPropertyCallableRef = kotlin_kotlin.$_$.q5;
125
- var Collection = kotlin_kotlin.$_$.l1;
126
- var getBigIntHashCode = kotlin_kotlin.$_$.n5;
127
- var getNumberHashCode = kotlin_kotlin.$_$.p5;
128
- var hashCode = kotlin_kotlin.$_$.s5;
129
- var emptySet = kotlin_kotlin.$_$.j2;
130
- var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.q;
131
- var lazy = kotlin_kotlin.$_$.ja;
132
- var collectionSizeOrDefault = kotlin_kotlin.$_$.z1;
133
- var toSet = kotlin_kotlin.$_$.h4;
134
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.d;
123
+ var KProperty1 = kotlin_kotlin.$_$.h7;
124
+ var getPropertyCallableRef = kotlin_kotlin.$_$.x5;
125
+ var Collection = kotlin_kotlin.$_$.p1;
126
+ var constructCallableReference = kotlin_kotlin.$_$.r5;
127
+ var getBigIntHashCode = kotlin_kotlin.$_$.u5;
128
+ var getNumberHashCode = kotlin_kotlin.$_$.w5;
129
+ var hashCode = kotlin_kotlin.$_$.z5;
130
+ var emptySet = kotlin_kotlin.$_$.n2;
131
+ var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.k;
132
+ var lazy = kotlin_kotlin.$_$.ta;
133
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.d2;
134
+ var toSet = kotlin_kotlin.$_$.m4;
135
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
135
136
  var compareTo = kotlin_it_unibo_tuprolog_core.$_$.r1;
136
- var compareTo_0 = kotlin_kotlin.$_$.k5;
137
- var equals = kotlin_kotlin.$_$.m5;
138
- var round = kotlin_kotlin.$_$.r6;
137
+ var compareTo_0 = kotlin_kotlin.$_$.q5;
138
+ var equals = kotlin_kotlin.$_$.t5;
139
+ var round = kotlin_kotlin.$_$.w6;
139
140
  var MutableTheory = kotlin_it_unibo_tuprolog_theory.$_$.c;
140
141
  var Theory = kotlin_it_unibo_tuprolog_theory.$_$.f;
141
142
  var Struct = kotlin_it_unibo_tuprolog_core.$_$.p1;
142
- var TuPrologException_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.c;
143
+ var TuPrologException_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.x;
143
144
  var Rule = kotlin_it_unibo_tuprolog_core.$_$.o1;
144
- var Companion_instance_3 = kotlin_it_unibo_tuprolog_core.$_$.s;
145
- var toList_0 = kotlin_kotlin.$_$.y3;
146
- var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.d1;
145
+ var Companion_instance_3 = kotlin_it_unibo_tuprolog_core.$_$.m;
146
+ var toList_0 = kotlin_kotlin.$_$.d4;
147
+ var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.o1;
147
148
  var notThenExpansion = kotlin_it_unibo_tuprolog_bdd.$_$.g;
148
149
  var expansion = kotlin_it_unibo_tuprolog_bdd.$_$.e;
149
150
  var anyWhere = kotlin_it_unibo_tuprolog_bdd.$_$.b;
150
151
  var andThenExpansion = kotlin_it_unibo_tuprolog_bdd.$_$.a;
151
152
  var orThenExpansion = kotlin_it_unibo_tuprolog_bdd.$_$.h;
152
153
  var map_0 = kotlin_it_unibo_tuprolog_bdd.$_$.f;
153
- var get_ONE = kotlin_kotlin.$_$.m4;
154
- var add = kotlin_kotlin.$_$.n4;
155
- var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.x;
156
- var Companion_instance_4 = kotlin_it_unibo_tuprolog_core.$_$.n;
157
- var plus = kotlin_kotlin.$_$.q3;
154
+ var get_ONE = kotlin_kotlin.$_$.s4;
155
+ var add = kotlin_kotlin.$_$.t4;
156
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.i1;
157
+ var Companion_instance_4 = kotlin_it_unibo_tuprolog_core.$_$.h;
158
+ var plus = kotlin_kotlin.$_$.u3;
158
159
  var setTag = kotlin_it_unibo_tuprolog_utils.$_$.j1;
159
- var Regex_init_$Create$ = kotlin_kotlin.$_$.i;
160
- var toDoubleOrNull = kotlin_kotlin.$_$.l9;
161
- var toSet_0 = kotlin_kotlin.$_$.s8;
162
- var plus_0 = kotlin_kotlin.$_$.n3;
163
- var checkIndexOverflow = kotlin_kotlin.$_$.y1;
164
- var Pair = kotlin_kotlin.$_$.ca;
160
+ var Regex_init_$Create$ = kotlin_kotlin.$_$.t;
161
+ var toDoubleOrNull = kotlin_kotlin.$_$.u9;
162
+ var toSet_0 = kotlin_kotlin.$_$.x8;
163
+ var plus_0 = kotlin_kotlin.$_$.r3;
164
+ var checkIndexOverflow = kotlin_kotlin.$_$.c2;
165
+ var Pair = kotlin_kotlin.$_$.la;
165
166
  var Fact = kotlin_it_unibo_tuprolog_core.$_$.i1;
166
- var subtract = kotlin_kotlin.$_$.x3;
167
- var setOf = kotlin_kotlin.$_$.t3;
167
+ var subtract = kotlin_kotlin.$_$.c4;
168
+ var setOf = kotlin_kotlin.$_$.x3;
168
169
  var Directive = kotlin_it_unibo_tuprolog_core.$_$.h1;
169
170
  var Indicator = kotlin_it_unibo_tuprolog_core.$_$.j1;
170
- var Companion_instance_5 = kotlin_it_unibo_tuprolog_core.$_$.l;
171
+ var Companion_instance_5 = kotlin_it_unibo_tuprolog_core.$_$.f;
171
172
  var Truth = kotlin_it_unibo_tuprolog_core.$_$.p2;
172
- var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_core.$_$.x;
173
+ var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_core.$_$.r;
173
174
  var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_unify.$_$.a;
174
175
  var Companion_instance_6 = kotlin_it_unibo_tuprolog_theory.$_$.a;
175
- var addAll = kotlin_kotlin.$_$.p1;
176
+ var addAll = kotlin_kotlin.$_$.t1;
176
177
  var Companion_instance_7 = kotlin_it_unibo_tuprolog_theory.$_$.b;
177
178
  var Failure = kotlin_it_unibo_tuprolog_theory.$_$.d;
178
179
  var Success = kotlin_it_unibo_tuprolog_theory.$_$.e;
179
180
  var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.b2;
180
- var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
181
+ var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_solve.$_$.r;
181
182
  var Var = kotlin_it_unibo_tuprolog_core.$_$.r2;
182
- var ResolutionException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.n;
183
- var CoroutineImpl = kotlin_kotlin.$_$.k4;
184
- var SequenceScope = kotlin_kotlin.$_$.d7;
185
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.j4;
183
+ var ResolutionException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.k1;
184
+ var CoroutineImpl = kotlin_kotlin.$_$.p4;
185
+ var SequenceScope = kotlin_kotlin.$_$.i7;
186
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o4;
186
187
  var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.b4;
187
- var ensureNotNull = kotlin_kotlin.$_$.ha;
188
+ var ensureNotNull = kotlin_kotlin.$_$.ra;
188
189
  var Clause = kotlin_it_unibo_tuprolog_core.$_$.f1;
189
- var copyToArray = kotlin_kotlin.$_$.e2;
190
- var initMetadataForLambda = kotlin_kotlin.$_$.x5;
190
+ var copyToArray = kotlin_kotlin.$_$.i2;
191
+ var initMetadataForLambda = kotlin_kotlin.$_$.e6;
191
192
  var WithoutSideEffects = kotlin_it_unibo_tuprolog_solve.$_$.c2;
192
- var sequence = kotlin_kotlin.$_$.k8;
193
+ var sequence = kotlin_kotlin.$_$.p8;
193
194
  var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
194
195
  var setProbabilistic = kotlin_it_unibo_tuprolog_solve_plp.$_$.c;
195
- var firstOrNull = kotlin_kotlin.$_$.r7;
196
+ var firstOrNull = kotlin_kotlin.$_$.w7;
196
197
  var WithoutSideEffects_0 = kotlin_it_unibo_tuprolog_solve.$_$.z1;
197
198
  var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.d2;
198
- var SetFlags_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.r;
199
+ var SetFlags_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.o1;
199
200
  var WithoutSideEffects_1 = kotlin_it_unibo_tuprolog_solve.$_$.x1;
200
- var asSequence = kotlin_kotlin.$_$.w1;
201
- var filter = kotlin_kotlin.$_$.q7;
202
- var Sequence = kotlin_kotlin.$_$.e7;
203
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
204
- var sequenceOf = kotlin_kotlin.$_$.j8;
201
+ var asSequence = kotlin_kotlin.$_$.a2;
202
+ var filter = kotlin_kotlin.$_$.v7;
203
+ var Sequence = kotlin_kotlin.$_$.j7;
204
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
205
+ var sequenceOf = kotlin_kotlin.$_$.o8;
205
206
  var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.f2;
206
- var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.q;
207
+ var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.n1;
207
208
  //endregion
208
209
  //region block: pre-declaration
209
210
  initMetadataForClass(ProblogSolver, 'ProblogSolver', VOID, VOID, [Solver]);
210
- initMetadataForClass(MutableProblogSolver, 'MutableProblogSolver', VOID, ProblogSolver, [ProblogSolver, MutableSolver]);
211
+ initMetadataForClass(MutableProblogSolver, 'MutableProblogSolver', VOID, ProblogSolver, [MutableSolver]);
211
212
  initMetadataForObject(ProblogSolverFactory, 'ProblogSolverFactory', VOID, VOID, [SolverFactory]);
212
213
  initMetadataForObject(DefaultBuiltins, 'DefaultBuiltins', VOID, ExtensionLibrary);
213
214
  initMetadataForObject(MinimalBuiltins, 'MinimalBuiltins', VOID, ExtensionLibrary);
@@ -218,7 +219,7 @@
218
219
  function get_probabilityOrNull() {
219
220
  var tmp;
220
221
  try {
221
- tmp = this.c37();
222
+ tmp = this.b37();
222
223
  } catch ($p) {
223
224
  var tmp_0;
224
225
  if ($p instanceof Error) {
@@ -264,163 +265,163 @@
264
265
  //endregion
265
266
  function MutableProblogSolver(solver) {
266
267
  ProblogSolver.call(this, solver);
267
- this.x34_1 = solver;
268
+ this.w34_1 = solver;
268
269
  }
269
- protoOf(MutableProblogSolver).y2y = function (library) {
270
- this.x34_1.loadLibrary(library);
270
+ protoOf(MutableProblogSolver).x2y = function (library) {
271
+ this.w34_1.loadLibrary(library);
271
272
  };
272
273
  protoOf(MutableProblogSolver).loadLibrary = function (library) {
273
- return this.y2y(library);
274
+ return this.x2y(library);
274
275
  };
275
- protoOf(MutableProblogSolver).z2y = function (library) {
276
- this.x34_1.unloadLibrary(library);
276
+ protoOf(MutableProblogSolver).y2y = function (library) {
277
+ this.w34_1.unloadLibrary(library);
277
278
  };
278
279
  protoOf(MutableProblogSolver).unloadLibrary = function (library) {
279
- return this.z2y(library);
280
+ return this.y2y(library);
280
281
  };
281
- protoOf(MutableProblogSolver).a2z = function (libraries) {
282
- this.x34_1.setLibraries(libraries);
282
+ protoOf(MutableProblogSolver).z2y = function (libraries) {
283
+ this.w34_1.setLibraries(libraries);
283
284
  };
284
285
  protoOf(MutableProblogSolver).setLibraries = function (libraries) {
285
- return this.a2z(libraries);
286
+ return this.z2y(libraries);
286
287
  };
287
- protoOf(MutableProblogSolver).b2z = function (theory) {
288
- this.x34_1.loadStaticKb(Companion_instance_10.ofIterable(this.x34_1.n1i(), theory));
288
+ protoOf(MutableProblogSolver).a2z = function (theory) {
289
+ this.w34_1.loadStaticKb(Companion_instance_10.ofIterable(this.w34_1.m1i(), theory));
289
290
  };
290
291
  protoOf(MutableProblogSolver).loadStaticKb = function (theory) {
291
- return this.b2z(theory);
292
+ return this.a2z(theory);
292
293
  };
293
- protoOf(MutableProblogSolver).c2z = function (theory) {
294
- this.x34_1.appendStaticKb(Companion_instance_10.ofIterable(this.x34_1.n1i(), theory));
294
+ protoOf(MutableProblogSolver).b2z = function (theory) {
295
+ this.w34_1.appendStaticKb(Companion_instance_10.ofIterable(this.w34_1.m1i(), theory));
295
296
  };
296
297
  protoOf(MutableProblogSolver).appendStaticKb = function (theory) {
297
- return this.c2z(theory);
298
+ return this.b2z(theory);
298
299
  };
299
- protoOf(MutableProblogSolver).d2z = function () {
300
- this.x34_1.resetStaticKb();
300
+ protoOf(MutableProblogSolver).c2z = function () {
301
+ this.w34_1.resetStaticKb();
301
302
  };
302
303
  protoOf(MutableProblogSolver).resetStaticKb = function () {
303
- return this.d2z();
304
+ return this.c2z();
304
305
  };
305
- protoOf(MutableProblogSolver).e2z = function (theory) {
306
- this.x34_1.loadDynamicKb(Companion_instance_10.ofIterable(this.x34_1.n1i(), theory));
306
+ protoOf(MutableProblogSolver).d2z = function (theory) {
307
+ this.w34_1.loadDynamicKb(Companion_instance_10.ofIterable(this.w34_1.m1i(), theory));
307
308
  };
308
309
  protoOf(MutableProblogSolver).loadDynamicKb = function (theory) {
309
- return this.e2z(theory);
310
+ return this.d2z(theory);
310
311
  };
311
- protoOf(MutableProblogSolver).f2z = function (theory) {
312
- this.x34_1.appendDynamicKb(Companion_instance_10.ofIterable(this.x34_1.n1i(), theory));
312
+ protoOf(MutableProblogSolver).e2z = function (theory) {
313
+ this.w34_1.appendDynamicKb(Companion_instance_10.ofIterable(this.w34_1.m1i(), theory));
313
314
  };
314
315
  protoOf(MutableProblogSolver).appendDynamicKb = function (theory) {
315
- return this.f2z(theory);
316
+ return this.e2z(theory);
316
317
  };
317
- protoOf(MutableProblogSolver).g2z = function () {
318
- this.x34_1.resetDynamicKb();
318
+ protoOf(MutableProblogSolver).f2z = function () {
319
+ this.w34_1.resetDynamicKb();
319
320
  };
320
321
  protoOf(MutableProblogSolver).resetDynamicKb = function () {
321
- return this.g2z();
322
+ return this.f2z();
322
323
  };
323
- protoOf(MutableProblogSolver).z1j = function (clause) {
324
- this.x34_1.assertA(first(Companion_instance_10.of(this.x34_1.n1i(), [clause]).x1i()));
324
+ protoOf(MutableProblogSolver).y1j = function (clause) {
325
+ this.w34_1.assertA(first(Companion_instance_10.of(this.w34_1.m1i(), [clause]).w1i()));
325
326
  };
326
327
  protoOf(MutableProblogSolver).assertA = function (clause) {
327
- return this.z1j(clause);
328
+ return this.y1j(clause);
328
329
  };
329
- protoOf(MutableProblogSolver).h2z = function (fact) {
330
- this.x34_1.assertA(first(Companion_instance_10.of(this.x34_1.n1i(), [Companion_instance.of(fact)]).x1i()));
330
+ protoOf(MutableProblogSolver).g2z = function (fact) {
331
+ this.w34_1.assertA(first(Companion_instance_10.of(this.w34_1.m1i(), [Companion_instance.of(fact)]).w1i()));
331
332
  };
332
333
  protoOf(MutableProblogSolver).assertAFact = function (fact) {
333
- return this.h2z(fact);
334
+ return this.g2z(fact);
334
335
  };
335
- protoOf(MutableProblogSolver).a1j = function (clause) {
336
- this.x34_1.assertZ(first(Companion_instance_10.of(this.x34_1.n1i(), [clause]).x1i()));
336
+ protoOf(MutableProblogSolver).z1i = function (clause) {
337
+ this.w34_1.assertZ(first(Companion_instance_10.of(this.w34_1.m1i(), [clause]).w1i()));
337
338
  };
338
339
  protoOf(MutableProblogSolver).assertZ = function (clause) {
339
- return this.a1j(clause);
340
+ return this.z1i(clause);
340
341
  };
341
- protoOf(MutableProblogSolver).i2z = function (fact) {
342
- this.x34_1.assertA(first(Companion_instance_10.of(this.x34_1.n1i(), [Companion_instance.of(fact)]).x1i()));
342
+ protoOf(MutableProblogSolver).h2z = function (fact) {
343
+ this.w34_1.assertA(first(Companion_instance_10.of(this.w34_1.m1i(), [Companion_instance.of(fact)]).w1i()));
343
344
  };
344
345
  protoOf(MutableProblogSolver).assertZFact = function (fact) {
345
- return this.i2z(fact);
346
+ return this.h2z(fact);
346
347
  };
347
- protoOf(MutableProblogSolver).t1q = function (clause) {
348
- return this.x34_1.retract(first(Companion_instance_10.of(this.x34_1.n1i(), [clause]).x1i()));
348
+ protoOf(MutableProblogSolver).s1q = function (clause) {
349
+ return this.w34_1.retract(first(Companion_instance_10.of(this.w34_1.m1i(), [clause]).w1i()));
349
350
  };
350
351
  protoOf(MutableProblogSolver).retract = function (clause) {
351
- return this.t1q(clause);
352
+ return this.s1q(clause);
352
353
  };
353
- protoOf(MutableProblogSolver).u1q = function (fact) {
354
- return this.x34_1.retract(first(Companion_instance_10.of(this.x34_1.n1i(), [Companion_instance.of(fact)]).x1i()));
354
+ protoOf(MutableProblogSolver).t1q = function (fact) {
355
+ return this.w34_1.retract(first(Companion_instance_10.of(this.w34_1.m1i(), [Companion_instance.of(fact)]).w1i()));
355
356
  };
356
357
  protoOf(MutableProblogSolver).retractByHead = function (fact) {
357
- return this.u1q(fact);
358
+ return this.t1q(fact);
358
359
  };
359
- protoOf(MutableProblogSolver).f1j = function (clause) {
360
- return this.x34_1.retractAll(first(Companion_instance_10.of(this.x34_1.n1i(), [clause]).x1i()));
360
+ protoOf(MutableProblogSolver).e1j = function (clause) {
361
+ return this.w34_1.retractAll(first(Companion_instance_10.of(this.w34_1.m1i(), [clause]).w1i()));
361
362
  };
362
363
  protoOf(MutableProblogSolver).retractAll = function (clause) {
363
- return this.f1j(clause);
364
+ return this.e1j(clause);
364
365
  };
365
- protoOf(MutableProblogSolver).j2z = function (fact) {
366
- return this.x34_1.retractAll(first(Companion_instance_10.of(this.x34_1.n1i(), [Companion_instance.of(fact)]).x1i()));
366
+ protoOf(MutableProblogSolver).i2z = function (fact) {
367
+ return this.w34_1.retractAll(first(Companion_instance_10.of(this.w34_1.m1i(), [Companion_instance.of(fact)]).w1i()));
367
368
  };
368
369
  protoOf(MutableProblogSolver).retractAllBeHead = function (fact) {
369
- return this.j2z(fact);
370
+ return this.i2z(fact);
370
371
  };
371
- protoOf(MutableProblogSolver).k2z = function (name, value) {
372
- this.x34_1.setFlag(name, value);
372
+ protoOf(MutableProblogSolver).j2z = function (name, value) {
373
+ this.w34_1.setFlag(name, value);
373
374
  };
374
375
  protoOf(MutableProblogSolver).setFlag = function (name, value) {
375
- return this.k2z(name, value);
376
+ return this.j2z(name, value);
376
377
  };
377
- protoOf(MutableProblogSolver).l2z = function (flag) {
378
- this.x34_1.setFlagPair(flag);
378
+ protoOf(MutableProblogSolver).k2z = function (flag) {
379
+ this.w34_1.setFlagPair(flag);
379
380
  };
380
381
  protoOf(MutableProblogSolver).setFlagPair = function (flag) {
381
- return this.l2z(flag);
382
+ return this.k2z(flag);
382
383
  };
383
- protoOf(MutableProblogSolver).m2z = function (flag) {
384
- this.x34_1.setFlagNotable(flag);
384
+ protoOf(MutableProblogSolver).l2z = function (flag) {
385
+ this.w34_1.setFlagNotable(flag);
385
386
  };
386
387
  protoOf(MutableProblogSolver).setFlagNotable = function (flag) {
387
- return this.m2z(flag);
388
+ return this.l2z(flag);
388
389
  };
389
- protoOf(MutableProblogSolver).n2z = function (stdIn) {
390
- this.x34_1.setStandardInput(stdIn);
390
+ protoOf(MutableProblogSolver).m2z = function (stdIn) {
391
+ this.w34_1.setStandardInput(stdIn);
391
392
  };
392
393
  protoOf(MutableProblogSolver).setStandardInput = function (stdIn) {
393
- return this.n2z(stdIn);
394
+ return this.m2z(stdIn);
394
395
  };
395
- protoOf(MutableProblogSolver).o2z = function (stdErr) {
396
- this.x34_1.setStandardError(stdErr);
396
+ protoOf(MutableProblogSolver).n2z = function (stdErr) {
397
+ this.w34_1.setStandardError(stdErr);
397
398
  };
398
399
  protoOf(MutableProblogSolver).setStandardError = function (stdErr) {
399
- return this.o2z(stdErr);
400
+ return this.n2z(stdErr);
400
401
  };
401
- protoOf(MutableProblogSolver).p2z = function (stdOut) {
402
- this.x34_1.setStandardOutput(stdOut);
402
+ protoOf(MutableProblogSolver).o2z = function (stdOut) {
403
+ this.w34_1.setStandardOutput(stdOut);
403
404
  };
404
405
  protoOf(MutableProblogSolver).setStandardOutput = function (stdOut) {
405
- return this.p2z(stdOut);
406
+ return this.o2z(stdOut);
406
407
  };
407
- protoOf(MutableProblogSolver).q2z = function (warnings) {
408
- this.x34_1.setWarnings(warnings);
408
+ protoOf(MutableProblogSolver).p2z = function (warnings) {
409
+ this.w34_1.setWarnings(warnings);
409
410
  };
410
411
  protoOf(MutableProblogSolver).setWarnings = function (warnings) {
411
- return this.q2z(warnings);
412
+ return this.p2z(warnings);
412
413
  };
413
- protoOf(MutableProblogSolver).b1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
414
- return new MutableProblogSolver(this.x34_1.b1t(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings));
414
+ protoOf(MutableProblogSolver).a1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
415
+ return new MutableProblogSolver(this.w34_1.a1t(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings));
415
416
  };
416
417
  protoOf(MutableProblogSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
417
418
  return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof MutableProblogSolver) ? $super : THROW_CCE());
418
419
  };
419
- protoOf(MutableProblogSolver).c1q = function () {
420
- return new MutableProblogSolver(this.x34_1.c1q());
420
+ protoOf(MutableProblogSolver).b1q = function () {
421
+ return new MutableProblogSolver(this.w34_1.b1q());
421
422
  };
422
423
  protoOf(MutableProblogSolver).clone = function () {
423
- return this.c1q();
424
+ return this.b1q();
424
425
  };
425
426
  function get_ANNOTATION_OPERATOR() {
426
427
  _init_properties_Operators_kt__ggskrn();
@@ -448,11 +449,11 @@
448
449
  var tmp_0 = Companion_getInstance_1();
449
450
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
450
451
  var tmp$ret$0 = ProbSetConfig_getInstance().signature.name;
451
- var tmp_1 = tmp_0.of(tmp$ret$0, [ProbSetConfig_getInstance().l35(options)]);
452
+ var tmp_1 = tmp_0.of(tmp$ret$0, [ProbSetConfig_getInstance().k35(options)]);
452
453
  var tmp_2 = Companion_getInstance_1();
453
454
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
454
455
  var tmp$ret$1 = Prob_getInstance().signature.name;
455
- var tmp_3 = $this.y34_1.solveWithOptions(tmp.of(tmp_1, tmp_2.of(tmp$ret$1, [anonVar, goal])), options);
456
+ var tmp_3 = $this.x34_1.solveWithOptions(tmp.of(tmp_1, tmp_2.of(tmp$ret$1, [anonVar, goal])), options);
456
457
  return map(tmp_3, ProblogSolver$solveNonProbabilistically$lambda(goal, anonVar));
457
458
  }
458
459
  function solveProbabilistically($this, goal, options) {
@@ -461,7 +462,7 @@
461
462
  var tmp = Companion_getInstance_1();
462
463
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
463
464
  var tmp$ret$0 = ProbQuery_getInstance().signature.name;
464
- var tmp_0 = $this.y34_1.solveWithOptions(tmp.of(tmp$ret$0, [probabilityVar, goal, ProbSetConfig_getInstance().l35(options), bddVar]), options);
465
+ var tmp_0 = $this.x34_1.solveWithOptions(tmp.of(tmp$ret$0, [probabilityVar, goal, ProbSetConfig_getInstance().k35(options), bddVar]), options);
465
466
  return map(tmp_0, ProblogSolver$solveProbabilistically$lambda(probabilityVar, bddVar, goal, options));
466
467
  }
467
468
  function ProblogSolver$solveNonProbabilistically$lambda$lambda($anonVar) {
@@ -474,11 +475,11 @@
474
475
  var tmp;
475
476
  if (isInterface(it, Yes)) {
476
477
  var tmp_0 = Companion_instance_1;
477
- var tmp_1 = it.g1s();
478
- tmp = tmp_0.w1t($goal, tmp_1.a10(ProblogSolver$solveNonProbabilistically$lambda$lambda($anonVar)));
478
+ var tmp_1 = it.f1s();
479
+ tmp = tmp_0.v1t($goal, tmp_1.yz(ProblogSolver$solveNonProbabilistically$lambda$lambda($anonVar)));
479
480
  } else {
480
481
  if (isInterface(it, Halt)) {
481
- tmp = Companion_instance_1.halt($goal, it.m1t());
482
+ tmp = Companion_instance_1.halt($goal, it.l1t());
482
483
  } else {
483
484
  tmp = Companion_instance_1.no($goal);
484
485
  }
@@ -493,16 +494,16 @@
493
494
  }
494
495
  function ProblogSolver$solveProbabilistically$lambda($probabilityVar, $bddVar, $goal, $options) {
495
496
  return function (it) {
496
- var probabilityTerm = it.g1s().h2($probabilityVar);
497
- var bddTerm = it.g1s().h2($bddVar);
497
+ var probabilityTerm = it.f1s().h2($probabilityVar);
498
+ var bddTerm = it.f1s().h2($bddVar);
498
499
  var tmp;
499
500
  if (isInterface(it, Yes)) {
500
501
  var tmp_0 = Companion_instance_1;
501
- var tmp_1 = it.g1s();
502
- tmp = tmp_0.w1t($goal, tmp_1.a10(ProblogSolver$solveProbabilistically$lambda$lambda($probabilityVar, $bddVar)));
502
+ var tmp_1 = it.f1s();
503
+ tmp = tmp_0.v1t($goal, tmp_1.yz(ProblogSolver$solveProbabilistically$lambda$lambda($probabilityVar, $bddVar)));
503
504
  } else {
504
505
  if (isInterface(it, Halt)) {
505
- tmp = Companion_instance_1.halt($goal, it.m1t());
506
+ tmp = Companion_instance_1.halt($goal, it.l1t());
506
507
  } else {
507
508
  tmp = Companion_instance_1.no($goal);
508
509
  }
@@ -514,7 +515,7 @@
514
515
  } else {
515
516
  var tmp_3;
516
517
  if (!(probabilityTerm == null) ? isInterface(probabilityTerm, Numeric) : false) {
517
- tmp_3 = setProbability(newSolution, probabilityTerm.py().toDouble());
518
+ tmp_3 = setProbability(newSolution, probabilityTerm.ny().toDouble());
518
519
  } else {
519
520
  tmp_3 = setProbability(newSolution, NaN);
520
521
  }
@@ -526,9 +527,9 @@
526
527
  tmp_4 = false;
527
528
  }
528
529
  if (tmp_4) {
529
- var explanation = bddTerm.n35_1;
530
+ var explanation = bddTerm.m35_1;
530
531
  if (explanation instanceof BinaryDecisionDiagramExplanation) {
531
- newSolution = setBinaryDecisionDiagram(newSolution, explanation.o35_1);
532
+ newSolution = setBinaryDecisionDiagram(newSolution, explanation.n35_1);
532
533
  }
533
534
  }
534
535
  tmp_2 = newSolution;
@@ -537,9 +538,9 @@
537
538
  };
538
539
  }
539
540
  function ProblogSolver(solver) {
540
- this.y34_1 = solver;
541
+ this.x34_1 = solver;
541
542
  }
542
- protoOf(ProblogSolver).h28 = function (goal, options) {
543
+ protoOf(ProblogSolver).g28 = function (goal, options) {
543
544
  var tmp;
544
545
  if (!get_isProbabilistic(options)) {
545
546
  tmp = solveNonProbabilistically(this, goal, options);
@@ -549,103 +550,103 @@
549
550
  return tmp;
550
551
  };
551
552
  protoOf(ProblogSolver).solveWithOptions = function (goal, options) {
552
- return this.h28(goal, options);
553
+ return this.g28(goal, options);
553
554
  };
554
- protoOf(ProblogSolver).z34 = function (goal, timeout) {
555
- return this.h28(goal, Companion_getInstance_2().allLazilyWithTimeout(timeout));
555
+ protoOf(ProblogSolver).y34 = function (goal, timeout) {
556
+ return this.g28(goal, Companion_getInstance_2().allLazilyWithTimeout(timeout));
556
557
  };
557
558
  protoOf(ProblogSolver).solveWithTimeout = function (goal, timeout) {
558
- return this.z34(goal, timeout);
559
+ return this.y34(goal, timeout);
559
560
  };
560
- protoOf(ProblogSolver).a35 = function (goal) {
561
- return this.h28(goal, Companion_getInstance_2().DEFAULT);
561
+ protoOf(ProblogSolver).z34 = function (goal) {
562
+ return this.g28(goal, Companion_getInstance_2().DEFAULT);
562
563
  };
563
564
  protoOf(ProblogSolver).solve = function (goal) {
564
- return this.a35(goal);
565
+ return this.z34(goal);
565
566
  };
566
- protoOf(ProblogSolver).b35 = function (goal, timeout) {
567
- return toList(this.z34(goal, timeout));
567
+ protoOf(ProblogSolver).a35 = function (goal, timeout) {
568
+ return toList(this.y34(goal, timeout));
568
569
  };
569
570
  protoOf(ProblogSolver).solveListWithTimeout = function (goal, timeout) {
570
- return this.b35(goal, timeout);
571
+ return this.a35(goal, timeout);
571
572
  };
572
- protoOf(ProblogSolver).c35 = function (goal) {
573
- return toList(this.a35(goal));
573
+ protoOf(ProblogSolver).b35 = function (goal) {
574
+ return toList(this.z34(goal));
574
575
  };
575
576
  protoOf(ProblogSolver).solveList = function (goal) {
576
- return this.c35(goal);
577
+ return this.b35(goal);
577
578
  };
578
- protoOf(ProblogSolver).d35 = function (goal, options) {
579
- return toList(this.h28(goal, options));
579
+ protoOf(ProblogSolver).c35 = function (goal, options) {
580
+ return toList(this.g28(goal, options));
580
581
  };
581
582
  protoOf(ProblogSolver).solveListWithOptions = function (goal, options) {
582
- return this.d35(goal, options);
583
+ return this.c35(goal, options);
583
584
  };
584
- protoOf(ProblogSolver).e35 = function (goal, timeout) {
585
- return first_0(this.h28(goal, Companion_getInstance_2().someLazilyWithTimeout(1, timeout)));
585
+ protoOf(ProblogSolver).d35 = function (goal, timeout) {
586
+ return first_0(this.g28(goal, Companion_getInstance_2().someLazilyWithTimeout(1, timeout)));
586
587
  };
587
588
  protoOf(ProblogSolver).solveOnceWithTimeout = function (goal, timeout) {
588
- return this.e35(goal, timeout);
589
+ return this.d35(goal, timeout);
589
590
  };
590
- protoOf(ProblogSolver).f35 = function (goal) {
591
- return first_0(this.h28(goal, Companion_getInstance_2().someLazily(1)));
591
+ protoOf(ProblogSolver).e35 = function (goal) {
592
+ return first_0(this.g28(goal, Companion_getInstance_2().someLazily(1)));
592
593
  };
593
594
  protoOf(ProblogSolver).solveOnce = function (goal) {
594
- return this.f35(goal);
595
+ return this.e35(goal);
595
596
  };
596
- protoOf(ProblogSolver).g35 = function (goal, options) {
597
- return first_0(this.h28(goal, options.setLimit(1)));
597
+ protoOf(ProblogSolver).f35 = function (goal, options) {
598
+ return first_0(this.g28(goal, options.setLimit(1)));
598
599
  };
599
600
  protoOf(ProblogSolver).solveOnceWithOptions = function (goal, options) {
600
- return this.g35(goal, options);
601
+ return this.f35(goal, options);
601
602
  };
602
- protoOf(ProblogSolver).b1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
603
- return new ProblogSolver(this.y34_1.b1t(unificator, libraries, flags, Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
603
+ protoOf(ProblogSolver).a1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
604
+ return new ProblogSolver(this.x34_1.a1t(unificator, libraries, flags, Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
604
605
  };
605
606
  protoOf(ProblogSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
606
607
  return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ProblogSolver) ? $super : THROW_CCE());
607
608
  };
608
- protoOf(ProblogSolver).c1q = function () {
609
- return new ProblogSolver(this.y34_1.clone());
609
+ protoOf(ProblogSolver).b1q = function () {
610
+ return new ProblogSolver(this.x34_1.clone());
610
611
  };
611
612
  protoOf(ProblogSolver).clone = function () {
612
- return this.c1q();
613
+ return this.b1q();
614
+ };
615
+ protoOf(ProblogSolver).j1s = function () {
616
+ return this.x34_1.j1s();
613
617
  };
614
618
  protoOf(ProblogSolver).k1s = function () {
615
- return this.y34_1.k1s();
619
+ return this.x34_1.k1s();
616
620
  };
617
621
  protoOf(ProblogSolver).l1s = function () {
618
- return this.y34_1.l1s();
622
+ return this.x34_1.l1s();
619
623
  };
620
624
  protoOf(ProblogSolver).m1s = function () {
621
- return this.y34_1.m1s();
625
+ return this.x34_1.m1s();
622
626
  };
623
- protoOf(ProblogSolver).n1s = function () {
624
- return this.y34_1.n1s();
627
+ protoOf(ProblogSolver).s1s = function () {
628
+ return this.x34_1.s1s();
625
629
  };
626
- protoOf(ProblogSolver).t1s = function () {
627
- return this.y34_1.t1s();
630
+ protoOf(ProblogSolver).n1s = function () {
631
+ return this.x34_1.n1s();
628
632
  };
629
633
  protoOf(ProblogSolver).o1s = function () {
630
- return this.y34_1.o1s();
634
+ return this.x34_1.o1s();
631
635
  };
632
- protoOf(ProblogSolver).p1s = function () {
633
- return this.y34_1.p1s();
636
+ protoOf(ProblogSolver).t1s = function () {
637
+ return this.x34_1.t1s();
634
638
  };
635
639
  protoOf(ProblogSolver).u1s = function () {
636
- return this.y34_1.u1s();
640
+ return this.x34_1.u1s();
637
641
  };
638
642
  protoOf(ProblogSolver).v1s = function () {
639
- return this.y34_1.v1s();
643
+ return this.x34_1.v1s();
640
644
  };
641
645
  protoOf(ProblogSolver).w1s = function () {
642
- return this.y34_1.w1s();
643
- };
644
- protoOf(ProblogSolver).x1s = function () {
645
- return this.y34_1.x1s();
646
+ return this.x34_1.w1s();
646
647
  };
647
- protoOf(ProblogSolver).n1i = function () {
648
- return this.y34_1.n1i();
648
+ protoOf(ProblogSolver).m1i = function () {
649
+ return this.x34_1.m1i();
649
650
  };
650
651
  function ensureVariablesTracking($this, flags) {
651
652
  var tmp = TrackVariables_getInstance();
@@ -655,7 +656,7 @@
655
656
  var tmp;
656
657
  // Inline function 'kotlin.collections.contains' call
657
658
  // Inline function 'kotlin.collections.containsKey' call
658
- var key = ProblogLib_getInstance().y2a();
659
+ var key = ProblogLib_getInstance().x2a();
659
660
  if (!(isInterface(libraries, KtMap) ? libraries : THROW_CCE()).f2(key)) {
660
661
  tmp = libraries.plusLibrary(MinimalBuiltins_getInstance());
661
662
  } else {
@@ -664,36 +665,36 @@
664
665
  return tmp;
665
666
  }
666
667
  function ProblogSolverFactory$ensureVariablesTracking$lambda($this$TrackVariables) {
667
- return $this$TrackVariables.z25_1;
668
+ return $this$TrackVariables.y25_1;
668
669
  }
669
670
  function ProblogSolverFactory() {
670
671
  }
671
- protoOf(ProblogSolverFactory).w1u = function () {
672
+ protoOf(ProblogSolverFactory).v1u = function () {
672
673
  return DefaultBuiltins_getInstance_0();
673
674
  };
674
- protoOf(ProblogSolverFactory).y1u = function () {
675
+ protoOf(ProblogSolverFactory).x1u = function () {
675
676
  return ensureVariablesTracking(this, get_defaultFlags.call(this));
676
677
  };
677
- protoOf(ProblogSolverFactory).h1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
678
- return new ProblogSolver(ClassicSolverFactory_instance.h1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), inputs, outputs));
678
+ protoOf(ProblogSolverFactory).g1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
679
+ return new ProblogSolver(ClassicSolverFactory_instance.g1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), inputs, outputs));
679
680
  };
680
681
  protoOf(ProblogSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
681
682
  return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof ProblogSolverFactory) ? $super : THROW_CCE());
682
683
  };
683
- protoOf(ProblogSolverFactory).n1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
684
- return new ProblogSolver(ClassicSolverFactory_instance.n1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
684
+ protoOf(ProblogSolverFactory).m1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
685
+ return new ProblogSolver(ClassicSolverFactory_instance.m1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
685
686
  };
686
687
  protoOf(ProblogSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
687
688
  return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ProblogSolverFactory) ? $super : THROW_CCE());
688
689
  };
689
- protoOf(ProblogSolverFactory).p1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
690
- return new MutableProblogSolver(ClassicSolverFactory_instance.p1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
690
+ protoOf(ProblogSolverFactory).o1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
691
+ return new MutableProblogSolver(ClassicSolverFactory_instance.o1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), stdIn, stdOut, stdErr, warnings));
691
692
  };
692
693
  protoOf(ProblogSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
693
694
  return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ProblogSolverFactory) ? $super : THROW_CCE());
694
695
  };
695
- protoOf(ProblogSolverFactory).r1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
696
- return new MutableProblogSolver(ClassicSolverFactory_instance.r1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), inputs, outputs));
696
+ protoOf(ProblogSolverFactory).q1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
697
+ return new MutableProblogSolver(ClassicSolverFactory_instance.q1v(unificator, fixLibraries(this, libraries), ensureVariablesTracking(this, flags), Companion_instance_10.ofIterable(unificator, staticKb), Companion_instance_10.ofIterable(unificator, dynamicKb), inputs, outputs));
697
698
  };
698
699
  protoOf(ProblogSolverFactory).rawMutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
699
700
  return this.rawMutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof ProblogSolverFactory) ? $super : THROW_CCE());
@@ -706,18 +707,18 @@
706
707
  DefaultBuiltins_instance = this;
707
708
  ExtensionLibrary.call(this, DefaultBuiltins_getInstance());
708
709
  }
709
- protoOf(DefaultBuiltins).y2a = function () {
710
- return ProblogLib_getInstance().y2a();
711
- };
712
- protoOf(DefaultBuiltins).j2b = function () {
713
- return ProblogLib_getInstance().j2b();
710
+ protoOf(DefaultBuiltins).x2a = function () {
711
+ return ProblogLib_getInstance().x2a();
714
712
  };
715
- protoOf(DefaultBuiltins).l2b = function () {
716
- return ProblogLib_getInstance().l2b();
713
+ protoOf(DefaultBuiltins).i2b = function () {
714
+ return ProblogLib_getInstance().i2b();
717
715
  };
718
716
  protoOf(DefaultBuiltins).k2b = function () {
719
717
  return ProblogLib_getInstance().k2b();
720
718
  };
719
+ protoOf(DefaultBuiltins).j2b = function () {
720
+ return ProblogLib_getInstance().j2b();
721
+ };
721
722
  var DefaultBuiltins_instance;
722
723
  function DefaultBuiltins_getInstance_0() {
723
724
  if (DefaultBuiltins_instance == null)
@@ -728,10 +729,10 @@
728
729
  MinimalBuiltins_instance = this;
729
730
  ExtensionLibrary.call(this, ProblogLib_getInstance());
730
731
  }
731
- protoOf(MinimalBuiltins).l2b = function () {
732
+ protoOf(MinimalBuiltins).k2b = function () {
732
733
  return listOf(EnsureExecutable_getInstance());
733
734
  };
734
- protoOf(MinimalBuiltins).k2b = function () {
735
+ protoOf(MinimalBuiltins).j2b = function () {
735
736
  return listOf(Call_getInstance());
736
737
  };
737
738
  var MinimalBuiltins_instance;
@@ -743,17 +744,17 @@
743
744
  function ProblogLib() {
744
745
  ProblogLib_instance = this;
745
746
  ExtensionLibrary.call(this, Companion_getInstance_3().of('problog.lang'));
746
- this.f36_1 = 'EXPL';
747
- this.g36_1 = 'evidence';
748
- this.h36_1 = 'prob';
747
+ this.e36_1 = 'EXPL';
748
+ this.f36_1 = 'evidence';
749
+ this.g36_1 = 'prob';
749
750
  }
750
- protoOf(ProblogLib).j2b = function () {
751
+ protoOf(ProblogLib).i2b = function () {
751
752
  return get_PROBLOG_SPECIFIC_OPERATORS();
752
753
  };
753
- protoOf(ProblogLib).k2b = function () {
754
+ protoOf(ProblogLib).j2b = function () {
754
755
  return listOf(Prob_getInstance());
755
756
  };
756
- protoOf(ProblogLib).l2b = function () {
757
+ protoOf(ProblogLib).k2b = function () {
757
758
  return listOf_0([ProbHelper_getInstance(), ProbSolve_getInstance(), ProbExplAnd_getInstance(), ProbQuery_getInstance(), ProbSolveEvidence_getInstance(), ProbSolveWithEvidence_getInstance(), ProbNegationAsFailure_getInstance(), ProbSetConfig_getInstance()]);
758
759
  };
759
760
  var ProblogLib_instance;
@@ -766,11 +767,11 @@
766
767
  cause = cause === VOID ? null : cause;
767
768
  TuPrologException_init_$Init$(cause, this);
768
769
  captureStack(this, ClauseMappingException);
769
- this.o36_1 = message;
770
+ this.n36_1 = message;
770
771
  delete this.message;
771
772
  }
772
- protoOf(ClauseMappingException).e = function () {
773
- return this.o36_1;
773
+ protoOf(ClauseMappingException).o1 = function () {
774
+ return this.n36_1;
774
775
  };
775
776
  function Companion() {
776
777
  }
@@ -792,8 +793,8 @@
792
793
  while (inductionVariable < last) {
793
794
  var item = clauses[inductionVariable];
794
795
  inductionVariable = inductionVariable + 1 | 0;
795
- var tmp$ret$0 = item(Companion_instance_2.empty());
796
- destination.n(tmp$ret$0);
796
+ var tmp$ret$2 = item(Companion_instance_2.empty());
797
+ destination.l(tmp$ret$2);
797
798
  }
798
799
  return this.ofIterable(unificator, destination);
799
800
  };
@@ -806,11 +807,11 @@
806
807
  }
807
808
  function Companion_0() {
808
809
  Companion_instance_9 = this;
809
- this.p36_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(false), Companion_getInstance_13().s36_1);
810
- this.q36_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(true), Companion_getInstance_13().t36_1);
810
+ this.o36_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(false), Companion_getInstance_13().r36_1);
811
+ this.p36_1 = new BinaryDecisionDiagramExplanation(bddTerminalOf(true), Companion_getInstance_13().s36_1);
811
812
  }
812
- protoOf(Companion_0).u36 = function (term) {
813
- return new BinaryDecisionDiagramExplanation(bddOf(term), new ComputedValue(term.x36_1));
813
+ protoOf(Companion_0).t36 = function (term) {
814
+ return new BinaryDecisionDiagramExplanation(bddOf(term), new ComputedValue(term.w36_1));
814
815
  };
815
816
  var Companion_instance_9;
816
817
  function Companion_getInstance_11() {
@@ -821,348 +822,348 @@
821
822
  function ProbExplanation() {
822
823
  }
823
824
  function ProbExplanationTerm$freshCopy$lambda(it) {
824
- return it.cu();
825
+ return it.au();
825
826
  }
826
827
  function ProbExplanationTerm$freshCopy$lambda_0($scope) {
827
828
  return function (it) {
828
- return it.du($scope);
829
+ return it.bu($scope);
829
830
  };
830
831
  }
831
832
  function ProbExplanationTerm$apply$lambda($substitution) {
832
833
  return function (it) {
833
- return it.e14($substitution);
834
+ return it.c14($substitution);
834
835
  };
835
836
  }
836
837
  function ProbExplanationTerm(explanation) {
837
- this.m35_1 = Companion_getInstance_4().of('<expl:' + explanation.toString() + '>');
838
- this.n35_1 = explanation;
838
+ this.l35_1 = Companion_getInstance_4().of('<expl:' + explanation.toString() + '>');
839
+ this.m35_1 = explanation;
839
840
  }
840
- protoOf(ProbExplanationTerm).yu = function () {
841
+ protoOf(ProbExplanationTerm).wu = function () {
841
842
  return false;
842
843
  };
843
- protoOf(ProbExplanationTerm).cv = function () {
844
+ protoOf(ProbExplanationTerm).av = function () {
844
845
  return this;
845
846
  };
846
847
  protoOf(ProbExplanationTerm).asConstant = function () {
847
- return this.cv();
848
+ return this.av();
848
849
  };
849
- protoOf(ProbExplanationTerm).cu = function () {
850
- return new ProbExplanationTerm(this.n35_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda));
850
+ protoOf(ProbExplanationTerm).au = function () {
851
+ return new ProbExplanationTerm(this.m35_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda));
851
852
  };
852
853
  protoOf(ProbExplanationTerm).freshCopy = function () {
853
- return this.cu();
854
+ return this.au();
854
855
  };
855
- protoOf(ProbExplanationTerm).du = function (scope) {
856
- return new ProbExplanationTerm(this.n35_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda_0(scope)));
856
+ protoOf(ProbExplanationTerm).bu = function (scope) {
857
+ return new ProbExplanationTerm(this.m35_1.applyTransformation(ProbExplanationTerm$freshCopy$lambda_0(scope)));
857
858
  };
858
859
  protoOf(ProbExplanationTerm).freshCopyFromScope = function (scope) {
859
- return this.du(scope);
860
+ return this.bu(scope);
860
861
  };
861
- protoOf(ProbExplanationTerm).j2j = function (substitution, substitutions) {
862
- return this.k2j(substitution, substitutions.slice());
862
+ protoOf(ProbExplanationTerm).i2j = function (substitution, substitutions) {
863
+ return this.j2j(substitution, substitutions.slice());
863
864
  };
864
865
  protoOf(ProbExplanationTerm).getSubstituted = function (substitution, substitutions) {
865
- return this.j2j(substitution, substitutions);
866
+ return this.i2j(substitution, substitutions);
866
867
  };
867
- protoOf(ProbExplanationTerm).k2j = function (substitution, substitutions) {
868
- return this.e14(Companion_getInstance_5().ofSubstitution(substitution, substitutions.slice()));
868
+ protoOf(ProbExplanationTerm).j2j = function (substitution, substitutions) {
869
+ return this.c14(Companion_getInstance_5().ofSubstitution(substitution, substitutions.slice()));
869
870
  };
870
871
  protoOf(ProbExplanationTerm).apply = function (substitution, substitutions) {
871
- return this.k2j(substitution, substitutions);
872
+ return this.j2j(substitution, substitutions);
872
873
  };
873
- protoOf(ProbExplanationTerm).e14 = function (substitution) {
874
+ protoOf(ProbExplanationTerm).c14 = function (substitution) {
874
875
  var tmp;
875
- if (substitution.j() || this.dv()) {
876
+ if (substitution.h() || this.bv()) {
876
877
  tmp = this;
877
878
  } else {
878
- tmp = new ProbExplanationTerm(this.n35_1.applyTransformation(ProbExplanationTerm$apply$lambda(substitution)));
879
+ tmp = new ProbExplanationTerm(this.m35_1.applyTransformation(ProbExplanationTerm$apply$lambda(substitution)));
879
880
  }
880
881
  return tmp;
881
882
  };
882
883
  protoOf(ProbExplanationTerm).applySubstitution = function (substitution) {
883
- return this.e14(substitution);
884
+ return this.c14(substitution);
884
885
  };
885
- protoOf(ProbExplanationTerm).dv = function () {
886
- return !this.n35_1.e37();
886
+ protoOf(ProbExplanationTerm).bv = function () {
887
+ return !this.m35_1.d37();
887
888
  };
888
- protoOf(ProbExplanationTerm).eu = function () {
889
- return this.m35_1.eu();
889
+ protoOf(ProbExplanationTerm).cu = function () {
890
+ return this.l35_1.cu();
890
891
  };
891
892
  protoOf(ProbExplanationTerm).asAtom = function () {
892
- return this.eu();
893
+ return this.cu();
894
+ };
895
+ protoOf(ProbExplanationTerm).rt = function () {
896
+ return this.l35_1.rt();
897
+ };
898
+ protoOf(ProbExplanationTerm).st = function () {
899
+ return this.l35_1.st();
893
900
  };
894
901
  protoOf(ProbExplanationTerm).tt = function () {
895
- return this.m35_1.tt();
902
+ return this.l35_1.tt();
896
903
  };
897
904
  protoOf(ProbExplanationTerm).ut = function () {
898
- return this.m35_1.ut();
905
+ return this.l35_1.ut();
899
906
  };
900
907
  protoOf(ProbExplanationTerm).vt = function () {
901
- return this.m35_1.vt();
902
- };
903
- protoOf(ProbExplanationTerm).wt = function () {
904
- return this.m35_1.wt();
905
- };
906
- protoOf(ProbExplanationTerm).xt = function () {
907
- return this.m35_1.xt();
908
+ return this.l35_1.vt();
908
909
  };
909
910
  protoOf(ProbExplanationTerm).e2 = function () {
910
- return this.m35_1.e2();
911
+ return this.l35_1.e2();
911
912
  };
912
- protoOf(ProbExplanationTerm).au = function () {
913
- return this.m35_1.au();
913
+ protoOf(ProbExplanationTerm).yt = function () {
914
+ return this.l35_1.yt();
914
915
  };
915
- protoOf(ProbExplanationTerm).bu = function () {
916
- return this.m35_1.bu();
916
+ protoOf(ProbExplanationTerm).zt = function () {
917
+ return this.l35_1.zt();
917
918
  };
918
- protoOf(ProbExplanationTerm).pu = function () {
919
- return this.m35_1.pu();
919
+ protoOf(ProbExplanationTerm).nu = function () {
920
+ return this.l35_1.nu();
920
921
  };
921
922
  protoOf(ProbExplanationTerm).asStruct = function () {
922
- return this.pu();
923
+ return this.nu();
923
924
  };
924
925
  protoOf(ProbExplanationTerm).append = function (argument) {
925
- return this.m35_1.append(argument);
926
+ return this.l35_1.append(argument);
926
927
  };
927
928
  protoOf(ProbExplanationTerm).addLast = function (argument) {
928
- return this.m35_1.addLast(argument);
929
+ return this.l35_1.addLast(argument);
929
930
  };
930
931
  protoOf(ProbExplanationTerm).addFirst = function (argument) {
931
- return this.m35_1.addFirst(argument);
932
+ return this.l35_1.addFirst(argument);
932
933
  };
933
934
  protoOf(ProbExplanationTerm).insertAt = function (index, argument) {
934
- return this.m35_1.insertAt(index, argument);
935
+ return this.l35_1.insertAt(index, argument);
935
936
  };
936
937
  protoOf(ProbExplanationTerm).setFunctor = function (functor) {
937
- return this.m35_1.setFunctor(functor);
938
+ return this.l35_1.setFunctor(functor);
938
939
  };
939
940
  protoOf(ProbExplanationTerm).getArgAt = function (index) {
940
- return this.m35_1.getArgAt(index);
941
+ return this.l35_1.getArgAt(index);
941
942
  };
942
943
  protoOf(ProbExplanationTerm).setArgs = function (args) {
943
- return this.m35_1.setArgs(args);
944
+ return this.l35_1.setArgs(args);
944
945
  };
945
946
  protoOf(ProbExplanationTerm).setArgsIterable = function (args) {
946
- return this.m35_1.setArgsIterable(args);
947
+ return this.l35_1.setArgsIterable(args);
947
948
  };
948
949
  protoOf(ProbExplanationTerm).setArgsSequence = function (args) {
949
- return this.m35_1.setArgsSequence(args);
950
+ return this.l35_1.setArgsSequence(args);
950
951
  };
951
952
  protoOf(ProbExplanationTerm).get = function (index) {
952
- return this.m35_1.get(index);
953
+ return this.l35_1.get(index);
954
+ };
955
+ protoOf(ProbExplanationTerm).du = function () {
956
+ return this.l35_1.du();
957
+ };
958
+ protoOf(ProbExplanationTerm).eu = function () {
959
+ return this.l35_1.eu();
953
960
  };
954
961
  protoOf(ProbExplanationTerm).fu = function () {
955
- return this.m35_1.fu();
962
+ return this.l35_1.fu();
956
963
  };
957
- protoOf(ProbExplanationTerm).gu = function () {
958
- return this.m35_1.gu();
964
+ protoOf(ProbExplanationTerm).iu = function () {
965
+ return this.l35_1.iu();
959
966
  };
960
- protoOf(ProbExplanationTerm).hu = function () {
961
- return this.m35_1.hu();
967
+ protoOf(ProbExplanationTerm).ju = function () {
968
+ return this.l35_1.ju();
962
969
  };
963
970
  protoOf(ProbExplanationTerm).ku = function () {
964
- return this.m35_1.ku();
965
- };
966
- protoOf(ProbExplanationTerm).lu = function () {
967
- return this.m35_1.lu();
971
+ return this.l35_1.ku();
968
972
  };
969
973
  protoOf(ProbExplanationTerm).mu = function () {
970
- return this.m35_1.mu();
974
+ return this.l35_1.mu();
975
+ };
976
+ protoOf(ProbExplanationTerm).xt = function () {
977
+ return this.l35_1.xt();
971
978
  };
972
979
  protoOf(ProbExplanationTerm).ou = function () {
973
- return this.m35_1.ou();
980
+ return this.l35_1.ou();
974
981
  };
975
- protoOf(ProbExplanationTerm).zt = function () {
976
- return this.m35_1.zt();
982
+ protoOf(ProbExplanationTerm).pu = function () {
983
+ return this.l35_1.pu();
977
984
  };
978
985
  protoOf(ProbExplanationTerm).qu = function () {
979
- return this.m35_1.qu();
986
+ return this.l35_1.qu();
980
987
  };
981
988
  protoOf(ProbExplanationTerm).ru = function () {
982
- return this.m35_1.ru();
983
- };
984
- protoOf(ProbExplanationTerm).su = function () {
985
- return this.m35_1.su();
989
+ return this.l35_1.ru();
986
990
  };
987
- protoOf(ProbExplanationTerm).tu = function () {
988
- return this.m35_1.tu();
989
- };
990
- protoOf(ProbExplanationTerm).gp = function () {
991
- return this.tu();
991
+ protoOf(ProbExplanationTerm).ep = function () {
992
+ return this.ru();
992
993
  };
993
- protoOf(ProbExplanationTerm).uu = function (other) {
994
- return this.m35_1.uu(other);
994
+ protoOf(ProbExplanationTerm).su = function (other) {
995
+ return this.l35_1.su(other);
995
996
  };
996
997
  protoOf(ProbExplanationTerm).d = function (other) {
997
- return this.uu((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
998
+ return this.su((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
998
999
  };
999
1000
  protoOf(ProbExplanationTerm).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
1000
- return this.m35_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1001
+ return this.l35_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1001
1002
  };
1002
1003
  protoOf(ProbExplanationTerm).equals = function (other) {
1003
- return this.m35_1.equals(other);
1004
+ return this.l35_1.equals(other);
1004
1005
  };
1005
1006
  protoOf(ProbExplanationTerm).structurallyEquals = function (other) {
1006
- return this.m35_1.structurallyEquals(other);
1007
+ return this.l35_1.structurallyEquals(other);
1007
1008
  };
1008
1009
  protoOf(ProbExplanationTerm).accept = function (visitor) {
1009
- return this.m35_1.accept(visitor);
1010
+ return this.l35_1.accept(visitor);
1010
1011
  };
1011
1012
  protoOf(ProbExplanationTerm).castToAtom = function () {
1012
- return this.m35_1.castToAtom();
1013
+ return this.l35_1.castToAtom();
1013
1014
  };
1014
1015
  protoOf(ProbExplanationTerm).castToClause = function () {
1015
- return this.m35_1.castToClause();
1016
+ return this.l35_1.castToClause();
1016
1017
  };
1017
1018
  protoOf(ProbExplanationTerm).castToCons = function () {
1018
- return this.m35_1.castToCons();
1019
+ return this.l35_1.castToCons();
1019
1020
  };
1020
1021
  protoOf(ProbExplanationTerm).castToConstant = function () {
1021
- return this.m35_1.castToConstant();
1022
+ return this.l35_1.castToConstant();
1022
1023
  };
1023
1024
  protoOf(ProbExplanationTerm).castToDirective = function () {
1024
- return this.m35_1.castToDirective();
1025
+ return this.l35_1.castToDirective();
1025
1026
  };
1026
1027
  protoOf(ProbExplanationTerm).castToEmptyList = function () {
1027
- return this.m35_1.castToEmptyList();
1028
+ return this.l35_1.castToEmptyList();
1028
1029
  };
1029
1030
  protoOf(ProbExplanationTerm).castToEmptyBlock = function () {
1030
- return this.m35_1.castToEmptyBlock();
1031
+ return this.l35_1.castToEmptyBlock();
1031
1032
  };
1032
1033
  protoOf(ProbExplanationTerm).castToFact = function () {
1033
- return this.m35_1.castToFact();
1034
+ return this.l35_1.castToFact();
1034
1035
  };
1035
1036
  protoOf(ProbExplanationTerm).castToIndicator = function () {
1036
- return this.m35_1.castToIndicator();
1037
+ return this.l35_1.castToIndicator();
1037
1038
  };
1038
1039
  protoOf(ProbExplanationTerm).castToInteger = function () {
1039
- return this.m35_1.castToInteger();
1040
+ return this.l35_1.castToInteger();
1040
1041
  };
1041
1042
  protoOf(ProbExplanationTerm).castToList = function () {
1042
- return this.m35_1.castToList();
1043
+ return this.l35_1.castToList();
1043
1044
  };
1044
1045
  protoOf(ProbExplanationTerm).castToNumeric = function () {
1045
- return this.m35_1.castToNumeric();
1046
+ return this.l35_1.castToNumeric();
1046
1047
  };
1047
1048
  protoOf(ProbExplanationTerm).castToReal = function () {
1048
- return this.m35_1.castToReal();
1049
+ return this.l35_1.castToReal();
1049
1050
  };
1050
1051
  protoOf(ProbExplanationTerm).castToRule = function () {
1051
- return this.m35_1.castToRule();
1052
+ return this.l35_1.castToRule();
1052
1053
  };
1053
1054
  protoOf(ProbExplanationTerm).castToBlock = function () {
1054
- return this.m35_1.castToBlock();
1055
+ return this.l35_1.castToBlock();
1055
1056
  };
1056
1057
  protoOf(ProbExplanationTerm).castToStruct = function () {
1057
- return this.m35_1.castToStruct();
1058
+ return this.l35_1.castToStruct();
1058
1059
  };
1059
1060
  protoOf(ProbExplanationTerm).castToRecursive = function () {
1060
- return this.m35_1.castToRecursive();
1061
+ return this.l35_1.castToRecursive();
1061
1062
  };
1062
1063
  protoOf(ProbExplanationTerm).castToTerm = function () {
1063
- return this.m35_1.castToTerm();
1064
+ return this.l35_1.castToTerm();
1064
1065
  };
1065
1066
  protoOf(ProbExplanationTerm).castToTruth = function () {
1066
- return this.m35_1.castToTruth();
1067
+ return this.l35_1.castToTruth();
1067
1068
  };
1068
1069
  protoOf(ProbExplanationTerm).castToTuple = function () {
1069
- return this.m35_1.castToTuple();
1070
+ return this.l35_1.castToTuple();
1070
1071
  };
1071
1072
  protoOf(ProbExplanationTerm).castToVar = function () {
1072
- return this.m35_1.castToVar();
1073
+ return this.l35_1.castToVar();
1073
1074
  };
1074
1075
  protoOf(ProbExplanationTerm).asClause = function () {
1075
- return this.m35_1.asClause();
1076
+ return this.l35_1.asClause();
1076
1077
  };
1077
1078
  protoOf(ProbExplanationTerm).asCons = function () {
1078
- return this.m35_1.asCons();
1079
+ return this.l35_1.asCons();
1079
1080
  };
1080
1081
  protoOf(ProbExplanationTerm).asDirective = function () {
1081
- return this.m35_1.asDirective();
1082
+ return this.l35_1.asDirective();
1082
1083
  };
1083
1084
  protoOf(ProbExplanationTerm).asEmptyList = function () {
1084
- return this.m35_1.asEmptyList();
1085
+ return this.l35_1.asEmptyList();
1085
1086
  };
1086
1087
  protoOf(ProbExplanationTerm).asEmptyBlock = function () {
1087
- return this.m35_1.asEmptyBlock();
1088
+ return this.l35_1.asEmptyBlock();
1088
1089
  };
1089
1090
  protoOf(ProbExplanationTerm).asFact = function () {
1090
- return this.m35_1.asFact();
1091
+ return this.l35_1.asFact();
1091
1092
  };
1092
1093
  protoOf(ProbExplanationTerm).asIndicator = function () {
1093
- return this.m35_1.asIndicator();
1094
+ return this.l35_1.asIndicator();
1094
1095
  };
1095
1096
  protoOf(ProbExplanationTerm).asInteger = function () {
1096
- return this.m35_1.asInteger();
1097
+ return this.l35_1.asInteger();
1097
1098
  };
1098
1099
  protoOf(ProbExplanationTerm).asList = function () {
1099
- return this.m35_1.asList();
1100
+ return this.l35_1.asList();
1100
1101
  };
1101
1102
  protoOf(ProbExplanationTerm).asNumeric = function () {
1102
- return this.m35_1.asNumeric();
1103
+ return this.l35_1.asNumeric();
1103
1104
  };
1104
1105
  protoOf(ProbExplanationTerm).asReal = function () {
1105
- return this.m35_1.asReal();
1106
+ return this.l35_1.asReal();
1106
1107
  };
1107
1108
  protoOf(ProbExplanationTerm).asRule = function () {
1108
- return this.m35_1.asRule();
1109
+ return this.l35_1.asRule();
1109
1110
  };
1110
1111
  protoOf(ProbExplanationTerm).asBlock = function () {
1111
- return this.m35_1.asBlock();
1112
+ return this.l35_1.asBlock();
1112
1113
  };
1113
1114
  protoOf(ProbExplanationTerm).asRecursive = function () {
1114
- return this.m35_1.asRecursive();
1115
+ return this.l35_1.asRecursive();
1115
1116
  };
1116
1117
  protoOf(ProbExplanationTerm).asTerm = function () {
1117
- return this.m35_1.asTerm();
1118
+ return this.l35_1.asTerm();
1118
1119
  };
1119
1120
  protoOf(ProbExplanationTerm).asTruth = function () {
1120
- return this.m35_1.asTruth();
1121
+ return this.l35_1.asTruth();
1121
1122
  };
1122
1123
  protoOf(ProbExplanationTerm).asTuple = function () {
1123
- return this.m35_1.asTuple();
1124
+ return this.l35_1.asTuple();
1124
1125
  };
1125
1126
  protoOf(ProbExplanationTerm).asVar = function () {
1126
- return this.m35_1.asVar();
1127
+ return this.l35_1.asVar();
1127
1128
  };
1128
1129
  protoOf(ProbExplanationTerm).hashCode = function () {
1129
- return this.m35_1.hashCode();
1130
+ return this.l35_1.hashCode();
1130
1131
  };
1131
1132
  protoOf(ProbExplanationTerm).toString = function () {
1132
- return this.m35_1.toString();
1133
+ return this.l35_1.toString();
1133
1134
  };
1134
- protoOf(ProbExplanationTerm).vu = function () {
1135
- return this.m35_1.vu();
1135
+ protoOf(ProbExplanationTerm).tu = function () {
1136
+ return this.l35_1.tu();
1136
1137
  };
1137
- protoOf(ProbExplanationTerm).wu = function () {
1138
- return this.m35_1.wu();
1138
+ protoOf(ProbExplanationTerm).uu = function () {
1139
+ return this.l35_1.uu();
1139
1140
  };
1140
- protoOf(ProbExplanationTerm).xu = function () {
1141
- return this.m35_1.xu();
1141
+ protoOf(ProbExplanationTerm).vu = function () {
1142
+ return this.l35_1.vu();
1142
1143
  };
1143
- protoOf(ProbExplanationTerm).zu = function () {
1144
- return this.m35_1.zu();
1144
+ protoOf(ProbExplanationTerm).xu = function () {
1145
+ return this.l35_1.xu();
1145
1146
  };
1146
- protoOf(ProbExplanationTerm).av = function () {
1147
- return this.m35_1.av();
1147
+ protoOf(ProbExplanationTerm).yu = function () {
1148
+ return this.l35_1.yu();
1148
1149
  };
1149
- protoOf(ProbExplanationTerm).bv = function () {
1150
- return this.m35_1.bv();
1150
+ protoOf(ProbExplanationTerm).zu = function () {
1151
+ return this.l35_1.zu();
1151
1152
  };
1152
1153
  protoOf(ProbExplanationTerm).getTag = function (name) {
1153
- return this.m35_1.getTag(name);
1154
+ return this.l35_1.getTag(name);
1154
1155
  };
1155
1156
  protoOf(ProbExplanationTerm).resetTags = function (tags) {
1156
- return this.m35_1.resetTags(tags);
1157
+ return this.l35_1.resetTags(tags);
1157
1158
  };
1158
1159
  protoOf(ProbExplanationTerm).containsTag = function (name) {
1159
- return this.m35_1.containsTag(name);
1160
+ return this.l35_1.containsTag(name);
1160
1161
  };
1161
- protoOf(ProbExplanationTerm).nr = function () {
1162
- return this.m35_1.nr();
1162
+ protoOf(ProbExplanationTerm).lr = function () {
1163
+ return this.l35_1.lr();
1163
1164
  };
1164
1165
  function _get_cachedHashCode__d7x0zy($this) {
1165
- var tmp0 = $this.b37_1;
1166
+ var tmp0 = $this.a37_1;
1166
1167
  var tmp = KProperty1;
1167
1168
  // Inline function 'kotlin.getValue' call
1168
1169
  getPropertyCallableRef('cachedHashCode', 1, tmp, ProbTerm$_get_cachedHashCode_$ref_1qdqtc(), null);
@@ -1171,14 +1172,14 @@
1171
1172
  function ProbTerm$isGround$delegate$lambda(this$0) {
1172
1173
  return function () {
1173
1174
  var tmp;
1174
- if (this$0.y36_1.dv()) {
1175
- var tmp0 = this$0.z36_1;
1175
+ if (this$0.x36_1.bv()) {
1176
+ var tmp0 = this$0.y36_1;
1176
1177
  var tmp$ret$0;
1177
1178
  $l$block_0: {
1178
1179
  // Inline function 'kotlin.collections.any' call
1179
1180
  var tmp_0;
1180
1181
  if (isInterface(tmp0, Collection)) {
1181
- tmp_0 = tmp0.j();
1182
+ tmp_0 = tmp0.h();
1182
1183
  } else {
1183
1184
  tmp_0 = false;
1184
1185
  }
@@ -1186,10 +1187,10 @@
1186
1187
  tmp$ret$0 = false;
1187
1188
  break $l$block_0;
1188
1189
  }
1189
- var _iterator__ex2g4s = tmp0.p();
1190
- while (_iterator__ex2g4s.s()) {
1191
- var element = _iterator__ex2g4s.t();
1192
- if (element.vu()) {
1190
+ var _iterator__ex2g4s = tmp0.n();
1191
+ while (_iterator__ex2g4s.q()) {
1192
+ var element = _iterator__ex2g4s.r();
1193
+ if (element.tu()) {
1193
1194
  tmp$ret$0 = true;
1194
1195
  break $l$block_0;
1195
1196
  }
@@ -1204,95 +1205,95 @@
1204
1205
  };
1205
1206
  }
1206
1207
  function ProbTerm$_get_isGround_$ref_ue0rck() {
1207
- return function (p0) {
1208
- return p0.dv();
1209
- };
1208
+ return constructCallableReference(function (p0) {
1209
+ return p0.bv();
1210
+ }, 1, 0, 89);
1210
1211
  }
1211
1212
  function ProbTerm$cachedHashCode$delegate$lambda(this$0) {
1212
1213
  return function () {
1213
- var result = getBigIntHashCode(this$0.w36_1);
1214
- result = imul(31, result) + getNumberHashCode(this$0.x36_1) | 0;
1215
- result = imul(31, result) + this$0.y36_1.hashCode() | 0;
1216
- result = imul(31, result) + hashCode(this$0.z36_1) | 0;
1214
+ var result = getBigIntHashCode(this$0.v36_1);
1215
+ result = imul(31, result) + getNumberHashCode(this$0.w36_1) | 0;
1216
+ result = imul(31, result) + this$0.x36_1.hashCode() | 0;
1217
+ result = imul(31, result) + hashCode(this$0.y36_1) | 0;
1217
1218
  return result;
1218
1219
  };
1219
1220
  }
1220
1221
  function ProbTerm$_get_cachedHashCode_$ref_1qdqtc() {
1221
- return function (p0) {
1222
+ return constructCallableReference(function (p0) {
1222
1223
  return _get_cachedHashCode__d7x0zy(p0);
1223
- };
1224
+ }, 1, 0, 90);
1224
1225
  }
1225
1226
  function ProbTerm(id, probability, term, extraVariables) {
1226
1227
  extraVariables = extraVariables === VOID ? emptySet() : extraVariables;
1227
- this.v36_1 = Companion_getInstance_1().of('::', [Companion_getInstance_6().ofDouble(probability), term]);
1228
- this.w36_1 = id;
1229
- this.x36_1 = probability;
1230
- this.y36_1 = term;
1231
- this.z36_1 = extraVariables;
1228
+ this.u36_1 = Companion_getInstance_1().of('::', [Companion_getInstance_6().ofDouble(probability), term]);
1229
+ this.v36_1 = id;
1230
+ this.w36_1 = probability;
1231
+ this.x36_1 = term;
1232
+ this.y36_1 = extraVariables;
1232
1233
  var tmp = this;
1233
- tmp.a37_1 = lazy(ProbTerm$isGround$delegate$lambda(this));
1234
+ tmp.z36_1 = lazy(ProbTerm$isGround$delegate$lambda(this));
1234
1235
  var tmp_0 = this;
1235
- tmp_0.b37_1 = lazy(ProbTerm$cachedHashCode$delegate$lambda(this));
1236
+ tmp_0.a37_1 = lazy(ProbTerm$cachedHashCode$delegate$lambda(this));
1236
1237
  }
1237
- protoOf(ProbTerm).cu = function () {
1238
- var termCopy = this.y36_1.freshCopy();
1238
+ protoOf(ProbTerm).au = function () {
1239
+ var termCopy = this.x36_1.freshCopy();
1239
1240
  // Inline function 'kotlin.collections.map' call
1240
- var this_0 = this.z36_1;
1241
+ var this_0 = this.y36_1;
1241
1242
  // Inline function 'kotlin.collections.mapTo' call
1242
1243
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1243
- var _iterator__ex2g4s = this_0.p();
1244
- while (_iterator__ex2g4s.s()) {
1245
- var item = _iterator__ex2g4s.t();
1246
- var tmp$ret$0 = item.freshCopy();
1247
- destination.n(tmp$ret$0);
1244
+ var _iterator__ex2g4s = this_0.n();
1245
+ while (_iterator__ex2g4s.q()) {
1246
+ var item = _iterator__ex2g4s.r();
1247
+ var tmp$ret$2 = item.freshCopy();
1248
+ destination.l(tmp$ret$2);
1248
1249
  }
1249
- return new ProbTerm(this.w36_1, this.x36_1, termCopy, toSet(destination));
1250
+ return new ProbTerm(this.v36_1, this.w36_1, termCopy, toSet(destination));
1250
1251
  };
1251
1252
  protoOf(ProbTerm).freshCopy = function () {
1252
- return this.cu();
1253
+ return this.au();
1253
1254
  };
1254
- protoOf(ProbTerm).du = function (scope) {
1255
- var termCopy = this.y36_1.freshCopyFromScope(scope);
1255
+ protoOf(ProbTerm).bu = function (scope) {
1256
+ var termCopy = this.x36_1.freshCopyFromScope(scope);
1256
1257
  // Inline function 'kotlin.collections.map' call
1257
- var this_0 = this.z36_1;
1258
+ var this_0 = this.y36_1;
1258
1259
  // Inline function 'kotlin.collections.mapTo' call
1259
1260
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1260
- var _iterator__ex2g4s = this_0.p();
1261
- while (_iterator__ex2g4s.s()) {
1262
- var item = _iterator__ex2g4s.t();
1263
- var tmp$ret$0 = item.freshCopyFromScope(scope);
1264
- destination.n(tmp$ret$0);
1261
+ var _iterator__ex2g4s = this_0.n();
1262
+ while (_iterator__ex2g4s.q()) {
1263
+ var item = _iterator__ex2g4s.r();
1264
+ var tmp$ret$2 = item.freshCopyFromScope(scope);
1265
+ destination.l(tmp$ret$2);
1265
1266
  }
1266
- return new ProbTerm(this.w36_1, this.x36_1, termCopy, toSet(destination));
1267
+ return new ProbTerm(this.v36_1, this.w36_1, termCopy, toSet(destination));
1267
1268
  };
1268
1269
  protoOf(ProbTerm).freshCopyFromScope = function (scope) {
1269
- return this.du(scope);
1270
+ return this.bu(scope);
1270
1271
  };
1271
- protoOf(ProbTerm).j2j = function (substitution, substitutions) {
1272
- return this.k2j(substitution, substitutions.slice());
1272
+ protoOf(ProbTerm).i2j = function (substitution, substitutions) {
1273
+ return this.j2j(substitution, substitutions.slice());
1273
1274
  };
1274
1275
  protoOf(ProbTerm).getSubstituted = function (substitution, substitutions) {
1275
- return this.j2j(substitution, substitutions);
1276
+ return this.i2j(substitution, substitutions);
1276
1277
  };
1277
- protoOf(ProbTerm).k2j = function (substitution, substitutions) {
1278
- return this.e14(Companion_getInstance_5().ofSubstitution(substitution, substitutions.slice()));
1278
+ protoOf(ProbTerm).j2j = function (substitution, substitutions) {
1279
+ return this.c14(Companion_getInstance_5().ofSubstitution(substitution, substitutions.slice()));
1279
1280
  };
1280
1281
  protoOf(ProbTerm).apply = function (substitution, substitutions) {
1281
- return this.k2j(substitution, substitutions);
1282
+ return this.j2j(substitution, substitutions);
1282
1283
  };
1283
- protoOf(ProbTerm).e14 = function (substitution) {
1284
+ protoOf(ProbTerm).c14 = function (substitution) {
1284
1285
  var tmp;
1285
- if (substitution.j() || this.dv()) {
1286
+ if (substitution.h() || this.bv()) {
1286
1287
  tmp = this;
1287
1288
  } else {
1288
1289
  var tmp_0;
1289
- var tmp0 = this.z36_1;
1290
+ var tmp0 = this.y36_1;
1290
1291
  var tmp$ret$0;
1291
1292
  $l$block_0: {
1292
1293
  // Inline function 'kotlin.collections.any' call
1293
1294
  var tmp_1;
1294
1295
  if (isInterface(tmp0, Collection)) {
1295
- tmp_1 = tmp0.j();
1296
+ tmp_1 = tmp0.h();
1296
1297
  } else {
1297
1298
  tmp_1 = false;
1298
1299
  }
@@ -1300,10 +1301,10 @@
1300
1301
  tmp$ret$0 = false;
1301
1302
  break $l$block_0;
1302
1303
  }
1303
- var _iterator__ex2g4s = tmp0.p();
1304
- while (_iterator__ex2g4s.s()) {
1305
- var element = _iterator__ex2g4s.t();
1306
- if (element.vu()) {
1304
+ var _iterator__ex2g4s = tmp0.n();
1305
+ while (_iterator__ex2g4s.q()) {
1306
+ var element = _iterator__ex2g4s.r();
1307
+ if (element.tu()) {
1307
1308
  tmp$ret$0 = true;
1308
1309
  break $l$block_0;
1309
1310
  }
@@ -1311,64 +1312,64 @@
1311
1312
  tmp$ret$0 = false;
1312
1313
  }
1313
1314
  if (!tmp$ret$0) {
1314
- tmp_0 = this.z36_1;
1315
+ tmp_0 = this.y36_1;
1315
1316
  } else {
1316
1317
  // Inline function 'kotlin.collections.mapNotNull' call
1317
- var tmp0_0 = this.z36_1;
1318
+ var tmp0_0 = this.y36_1;
1318
1319
  // Inline function 'kotlin.collections.mapNotNullTo' call
1319
1320
  var destination = ArrayList_init_$Create$_0();
1320
1321
  // Inline function 'kotlin.collections.forEach' call
1321
- var _iterator__ex2g4s_0 = tmp0_0.p();
1322
- while (_iterator__ex2g4s_0.s()) {
1323
- var element_0 = _iterator__ex2g4s_0.t();
1322
+ var _iterator__ex2g4s_0 = tmp0_0.n();
1323
+ while (_iterator__ex2g4s_0.q()) {
1324
+ var element_0 = _iterator__ex2g4s_0.r();
1324
1325
  var tmp0_safe_receiver = substitution.applyTo(element_0);
1325
1326
  if (tmp0_safe_receiver == null)
1326
1327
  null;
1327
1328
  else {
1328
1329
  // Inline function 'kotlin.let' call
1329
- destination.n(tmp0_safe_receiver);
1330
+ destination.l(tmp0_safe_receiver);
1330
1331
  }
1331
1332
  }
1332
1333
  tmp_0 = toSet(destination);
1333
1334
  }
1334
1335
  var newExtraVars = tmp_0;
1335
- tmp = new ProbTerm(this.w36_1, this.x36_1, this.y36_1.applySubstitution(substitution), newExtraVars);
1336
+ tmp = new ProbTerm(this.v36_1, this.w36_1, this.x36_1.applySubstitution(substitution), newExtraVars);
1336
1337
  }
1337
1338
  return tmp;
1338
1339
  };
1339
1340
  protoOf(ProbTerm).applySubstitution = function (substitution) {
1340
- return this.e14(substitution);
1341
+ return this.c14(substitution);
1341
1342
  };
1342
- protoOf(ProbTerm).dv = function () {
1343
- var tmp0 = this.a37_1;
1343
+ protoOf(ProbTerm).bv = function () {
1344
+ var tmp0 = this.z36_1;
1344
1345
  var tmp = KProperty1;
1345
1346
  // Inline function 'kotlin.getValue' call
1346
1347
  getPropertyCallableRef('isGround', 1, tmp, ProbTerm$_get_isGround_$ref_ue0rck(), null);
1347
1348
  return tmp0.e2();
1348
1349
  };
1349
- protoOf(ProbTerm).uu = function (other) {
1350
+ protoOf(ProbTerm).su = function (other) {
1350
1351
  if (!(other instanceof ProbTerm)) {
1351
1352
  return compareTo.call(this, other);
1352
1353
  }
1353
- var res = compareTo_0(this.w36_1, other.w36_1);
1354
+ var res = compareTo_0(this.v36_1, other.v36_1);
1354
1355
  if (!(res === 0))
1355
1356
  return res;
1356
- res = this.y36_1.uu(other.y36_1);
1357
+ res = this.x36_1.su(other.x36_1);
1357
1358
  if (!(res === 0))
1358
1359
  return res;
1359
- res = equals(this.z36_1, other.z36_1) ? 0 : -1;
1360
+ res = equals(this.y36_1, other.y36_1) ? 0 : -1;
1360
1361
  if (!(res === 0))
1361
1362
  return res;
1362
- res = compareTo_0(this.x36_1, other.x36_1);
1363
+ res = compareTo_0(this.w36_1, other.w36_1);
1363
1364
  return res;
1364
1365
  };
1365
1366
  protoOf(ProbTerm).d = function (other) {
1366
- return this.uu((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
1367
+ return this.su((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
1367
1368
  };
1368
1369
  protoOf(ProbTerm).equals = function (other) {
1369
1370
  var tmp;
1370
1371
  if (other instanceof ProbTerm) {
1371
- tmp = this.uu(other) === 0;
1372
+ tmp = this.su(other) === 0;
1372
1373
  } else {
1373
1374
  tmp = false;
1374
1375
  }
@@ -1378,214 +1379,214 @@
1378
1379
  return _get_cachedHashCode__d7x0zy(this);
1379
1380
  };
1380
1381
  protoOf(ProbTerm).toString = function () {
1381
- return '' + round(this.x36_1 * 100) / 100.0 + '::' + this.y36_1.toString();
1382
+ return '' + round(this.w36_1 * 100) / 100.0 + '::' + this.x36_1.toString();
1382
1383
  };
1383
- protoOf(ProbTerm).tu = function () {
1384
- return this.v36_1.tu();
1384
+ protoOf(ProbTerm).ru = function () {
1385
+ return this.u36_1.ru();
1385
1386
  };
1386
- protoOf(ProbTerm).gp = function () {
1387
- return this.tu();
1387
+ protoOf(ProbTerm).ep = function () {
1388
+ return this.ru();
1388
1389
  };
1389
1390
  protoOf(ProbTerm).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
1390
- return this.v36_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1391
+ return this.u36_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
1391
1392
  };
1392
1393
  protoOf(ProbTerm).structurallyEquals = function (other) {
1393
- return this.v36_1.structurallyEquals(other);
1394
+ return this.u36_1.structurallyEquals(other);
1394
1395
  };
1395
1396
  protoOf(ProbTerm).accept = function (visitor) {
1396
- return this.v36_1.accept(visitor);
1397
+ return this.u36_1.accept(visitor);
1397
1398
  };
1398
1399
  protoOf(ProbTerm).castToAtom = function () {
1399
- return this.v36_1.castToAtom();
1400
+ return this.u36_1.castToAtom();
1400
1401
  };
1401
1402
  protoOf(ProbTerm).castToClause = function () {
1402
- return this.v36_1.castToClause();
1403
+ return this.u36_1.castToClause();
1403
1404
  };
1404
1405
  protoOf(ProbTerm).castToCons = function () {
1405
- return this.v36_1.castToCons();
1406
+ return this.u36_1.castToCons();
1406
1407
  };
1407
1408
  protoOf(ProbTerm).castToConstant = function () {
1408
- return this.v36_1.castToConstant();
1409
+ return this.u36_1.castToConstant();
1409
1410
  };
1410
1411
  protoOf(ProbTerm).castToDirective = function () {
1411
- return this.v36_1.castToDirective();
1412
+ return this.u36_1.castToDirective();
1412
1413
  };
1413
1414
  protoOf(ProbTerm).castToEmptyList = function () {
1414
- return this.v36_1.castToEmptyList();
1415
+ return this.u36_1.castToEmptyList();
1415
1416
  };
1416
1417
  protoOf(ProbTerm).castToEmptyBlock = function () {
1417
- return this.v36_1.castToEmptyBlock();
1418
+ return this.u36_1.castToEmptyBlock();
1418
1419
  };
1419
1420
  protoOf(ProbTerm).castToFact = function () {
1420
- return this.v36_1.castToFact();
1421
+ return this.u36_1.castToFact();
1421
1422
  };
1422
1423
  protoOf(ProbTerm).castToIndicator = function () {
1423
- return this.v36_1.castToIndicator();
1424
+ return this.u36_1.castToIndicator();
1424
1425
  };
1425
1426
  protoOf(ProbTerm).castToInteger = function () {
1426
- return this.v36_1.castToInteger();
1427
+ return this.u36_1.castToInteger();
1427
1428
  };
1428
1429
  protoOf(ProbTerm).castToList = function () {
1429
- return this.v36_1.castToList();
1430
+ return this.u36_1.castToList();
1430
1431
  };
1431
1432
  protoOf(ProbTerm).castToNumeric = function () {
1432
- return this.v36_1.castToNumeric();
1433
+ return this.u36_1.castToNumeric();
1433
1434
  };
1434
1435
  protoOf(ProbTerm).castToReal = function () {
1435
- return this.v36_1.castToReal();
1436
+ return this.u36_1.castToReal();
1436
1437
  };
1437
1438
  protoOf(ProbTerm).castToRule = function () {
1438
- return this.v36_1.castToRule();
1439
+ return this.u36_1.castToRule();
1439
1440
  };
1440
1441
  protoOf(ProbTerm).castToBlock = function () {
1441
- return this.v36_1.castToBlock();
1442
+ return this.u36_1.castToBlock();
1442
1443
  };
1443
1444
  protoOf(ProbTerm).castToStruct = function () {
1444
- return this.v36_1.castToStruct();
1445
+ return this.u36_1.castToStruct();
1445
1446
  };
1446
1447
  protoOf(ProbTerm).castToRecursive = function () {
1447
- return this.v36_1.castToRecursive();
1448
+ return this.u36_1.castToRecursive();
1448
1449
  };
1449
1450
  protoOf(ProbTerm).castToTerm = function () {
1450
- return this.v36_1.castToTerm();
1451
+ return this.u36_1.castToTerm();
1451
1452
  };
1452
1453
  protoOf(ProbTerm).castToTruth = function () {
1453
- return this.v36_1.castToTruth();
1454
+ return this.u36_1.castToTruth();
1454
1455
  };
1455
1456
  protoOf(ProbTerm).castToTuple = function () {
1456
- return this.v36_1.castToTuple();
1457
+ return this.u36_1.castToTuple();
1457
1458
  };
1458
1459
  protoOf(ProbTerm).castToVar = function () {
1459
- return this.v36_1.castToVar();
1460
+ return this.u36_1.castToVar();
1460
1461
  };
1461
1462
  protoOf(ProbTerm).asAtom = function () {
1462
- return this.v36_1.asAtom();
1463
+ return this.u36_1.asAtom();
1463
1464
  };
1464
1465
  protoOf(ProbTerm).asClause = function () {
1465
- return this.v36_1.asClause();
1466
+ return this.u36_1.asClause();
1466
1467
  };
1467
1468
  protoOf(ProbTerm).asCons = function () {
1468
- return this.v36_1.asCons();
1469
+ return this.u36_1.asCons();
1469
1470
  };
1470
1471
  protoOf(ProbTerm).asConstant = function () {
1471
- return this.v36_1.asConstant();
1472
+ return this.u36_1.asConstant();
1472
1473
  };
1473
1474
  protoOf(ProbTerm).asDirective = function () {
1474
- return this.v36_1.asDirective();
1475
+ return this.u36_1.asDirective();
1475
1476
  };
1476
1477
  protoOf(ProbTerm).asEmptyList = function () {
1477
- return this.v36_1.asEmptyList();
1478
+ return this.u36_1.asEmptyList();
1478
1479
  };
1479
1480
  protoOf(ProbTerm).asEmptyBlock = function () {
1480
- return this.v36_1.asEmptyBlock();
1481
+ return this.u36_1.asEmptyBlock();
1481
1482
  };
1482
1483
  protoOf(ProbTerm).asFact = function () {
1483
- return this.v36_1.asFact();
1484
+ return this.u36_1.asFact();
1484
1485
  };
1485
1486
  protoOf(ProbTerm).asIndicator = function () {
1486
- return this.v36_1.asIndicator();
1487
+ return this.u36_1.asIndicator();
1487
1488
  };
1488
1489
  protoOf(ProbTerm).asInteger = function () {
1489
- return this.v36_1.asInteger();
1490
+ return this.u36_1.asInteger();
1490
1491
  };
1491
1492
  protoOf(ProbTerm).asList = function () {
1492
- return this.v36_1.asList();
1493
+ return this.u36_1.asList();
1493
1494
  };
1494
1495
  protoOf(ProbTerm).asNumeric = function () {
1495
- return this.v36_1.asNumeric();
1496
+ return this.u36_1.asNumeric();
1496
1497
  };
1497
1498
  protoOf(ProbTerm).asReal = function () {
1498
- return this.v36_1.asReal();
1499
+ return this.u36_1.asReal();
1499
1500
  };
1500
1501
  protoOf(ProbTerm).asRule = function () {
1501
- return this.v36_1.asRule();
1502
+ return this.u36_1.asRule();
1502
1503
  };
1503
1504
  protoOf(ProbTerm).asBlock = function () {
1504
- return this.v36_1.asBlock();
1505
+ return this.u36_1.asBlock();
1505
1506
  };
1506
1507
  protoOf(ProbTerm).asStruct = function () {
1507
- return this.v36_1.pu();
1508
+ return this.u36_1.nu();
1508
1509
  };
1509
1510
  protoOf(ProbTerm).asRecursive = function () {
1510
- return this.v36_1.asRecursive();
1511
+ return this.u36_1.asRecursive();
1511
1512
  };
1512
1513
  protoOf(ProbTerm).asTerm = function () {
1513
- return this.v36_1.asTerm();
1514
+ return this.u36_1.asTerm();
1514
1515
  };
1515
1516
  protoOf(ProbTerm).asTruth = function () {
1516
- return this.v36_1.asTruth();
1517
+ return this.u36_1.asTruth();
1517
1518
  };
1518
1519
  protoOf(ProbTerm).asTuple = function () {
1519
- return this.v36_1.asTuple();
1520
+ return this.u36_1.asTuple();
1520
1521
  };
1521
1522
  protoOf(ProbTerm).asVar = function () {
1522
- return this.v36_1.asVar();
1523
+ return this.u36_1.asVar();
1524
+ };
1525
+ protoOf(ProbTerm).tu = function () {
1526
+ return this.u36_1.tu();
1527
+ };
1528
+ protoOf(ProbTerm).du = function () {
1529
+ return this.u36_1.du();
1530
+ };
1531
+ protoOf(ProbTerm).uu = function () {
1532
+ return this.u36_1.uu();
1523
1533
  };
1524
1534
  protoOf(ProbTerm).vu = function () {
1525
- return this.v36_1.vu();
1535
+ return this.u36_1.vu();
1526
1536
  };
1527
- protoOf(ProbTerm).fu = function () {
1528
- return this.v36_1.fu();
1537
+ protoOf(ProbTerm).st = function () {
1538
+ return this.u36_1.st();
1529
1539
  };
1530
1540
  protoOf(ProbTerm).wu = function () {
1531
- return this.v36_1.wu();
1541
+ return this.u36_1.wu();
1532
1542
  };
1533
1543
  protoOf(ProbTerm).xu = function () {
1534
- return this.v36_1.xu();
1535
- };
1536
- protoOf(ProbTerm).ut = function () {
1537
- return this.v36_1.ut();
1544
+ return this.u36_1.xu();
1538
1545
  };
1539
1546
  protoOf(ProbTerm).yu = function () {
1540
- return this.v36_1.yu();
1547
+ return this.u36_1.yu();
1541
1548
  };
1542
1549
  protoOf(ProbTerm).zu = function () {
1543
- return this.v36_1.zu();
1550
+ return this.u36_1.zu();
1544
1551
  };
1545
- protoOf(ProbTerm).av = function () {
1546
- return this.v36_1.av();
1552
+ protoOf(ProbTerm).ju = function () {
1553
+ return this.u36_1.ju();
1547
1554
  };
1548
- protoOf(ProbTerm).bv = function () {
1549
- return this.v36_1.bv();
1555
+ protoOf(ProbTerm).iu = function () {
1556
+ return this.u36_1.iu();
1550
1557
  };
1551
- protoOf(ProbTerm).lu = function () {
1552
- return this.v36_1.lu();
1558
+ protoOf(ProbTerm).tt = function () {
1559
+ return this.u36_1.tt();
1560
+ };
1561
+ protoOf(ProbTerm).eu = function () {
1562
+ return this.u36_1.eu();
1553
1563
  };
1554
1564
  protoOf(ProbTerm).ku = function () {
1555
- return this.v36_1.ku();
1565
+ return this.u36_1.ku();
1556
1566
  };
1557
- protoOf(ProbTerm).vt = function () {
1558
- return this.v36_1.vt();
1567
+ protoOf(ProbTerm).ut = function () {
1568
+ return this.u36_1.ut();
1559
1569
  };
1560
- protoOf(ProbTerm).gu = function () {
1561
- return this.v36_1.gu();
1570
+ protoOf(ProbTerm).vt = function () {
1571
+ return this.u36_1.vt();
1562
1572
  };
1563
1573
  protoOf(ProbTerm).mu = function () {
1564
- return this.v36_1.mu();
1565
- };
1566
- protoOf(ProbTerm).wt = function () {
1567
- return this.v36_1.wt();
1568
- };
1569
- protoOf(ProbTerm).xt = function () {
1570
- return this.v36_1.xt();
1571
- };
1572
- protoOf(ProbTerm).ou = function () {
1573
- return this.v36_1.ou();
1574
+ return this.u36_1.mu();
1574
1575
  };
1575
1576
  protoOf(ProbTerm).getTag = function (name) {
1576
- return this.v36_1.getTag(name);
1577
+ return this.u36_1.getTag(name);
1577
1578
  };
1578
1579
  protoOf(ProbTerm).resetTags = function (tags) {
1579
- return this.v36_1.resetTags(tags);
1580
+ return this.u36_1.resetTags(tags);
1580
1581
  };
1581
1582
  protoOf(ProbTerm).containsTag = function (name) {
1582
- return this.v36_1.containsTag(name);
1583
+ return this.u36_1.containsTag(name);
1583
1584
  };
1584
- protoOf(ProbTerm).nr = function () {
1585
- return this.v36_1.nr();
1585
+ protoOf(ProbTerm).lr = function () {
1586
+ return this.u36_1.lr();
1586
1587
  };
1587
- protoOf(ProbTerm).bu = function () {
1588
- return this.v36_1.bu();
1588
+ protoOf(ProbTerm).zt = function () {
1589
+ return this.u36_1.zt();
1589
1590
  };
1590
1591
  function Companion_1() {
1591
1592
  }
@@ -1607,8 +1608,8 @@
1607
1608
  while (inductionVariable < last) {
1608
1609
  var item = clauses[inductionVariable];
1609
1610
  inductionVariable = inductionVariable + 1 | 0;
1610
- var tmp$ret$0 = item(Companion_instance_2.empty());
1611
- destination.n(tmp$ret$0);
1611
+ var tmp$ret$2 = item(Companion_instance_2.empty());
1612
+ destination.l(tmp$ret$2);
1612
1613
  }
1613
1614
  return this.ofIterable(unificator, destination);
1614
1615
  };
@@ -1630,25 +1631,25 @@
1630
1631
  function collectAllHeads($this, head, accumulator) {
1631
1632
  var tmp;
1632
1633
  if (isInterface(head, Struct)) {
1633
- tmp = head.tt() === 2;
1634
+ tmp = head.rt() === 2;
1634
1635
  } else {
1635
1636
  tmp = false;
1636
1637
  }
1637
1638
  if (tmp) {
1638
- if (!(head.zt() === ';') && !(head.zt() === '::')) {
1639
+ if (!(head.xt() === ';') && !(head.xt() === '::')) {
1639
1640
  throw TuPrologException_init_$Create$('Badly formatted disjoint annotation: ' + head.toString());
1640
1641
  }
1641
- if (head.zt() === ';') {
1642
+ if (head.xt() === ';') {
1642
1643
  collectAllHeads($this, head.get(1), accumulator);
1643
1644
  }
1644
1645
  }
1645
1646
  var curHeadProb = 1.0;
1646
1647
  var curHead = head;
1647
1648
  if (isInterface(head, Struct)) {
1648
- curHead = head.zt() === ';' ? head.get(0) : head;
1649
+ curHead = head.xt() === ';' ? head.get(0) : head;
1649
1650
  var tmp_0;
1650
1651
  if (isInterface(curHead, Struct)) {
1651
- tmp_0 = curHead.zt() === '::';
1652
+ tmp_0 = curHead.xt() === '::';
1652
1653
  } else {
1653
1654
  tmp_0 = false;
1654
1655
  }
@@ -1656,7 +1657,7 @@
1656
1657
  var curHeadProbTerm = curHead.get(0);
1657
1658
  var tmp_1;
1658
1659
  if (isInterface(curHeadProbTerm, Numeric)) {
1659
- tmp_1 = curHeadProbTerm.py().toDouble();
1660
+ tmp_1 = curHeadProbTerm.ny().toDouble();
1660
1661
  } else {
1661
1662
  tmp_1 = solveArithmeticExpression(curHeadProbTerm);
1662
1663
  }
@@ -1664,36 +1665,36 @@
1664
1665
  curHead = curHead.get(1);
1665
1666
  }
1666
1667
  }
1667
- accumulator.n(Companion_getInstance_1().of('::', [Companion_getInstance_6().ofDouble(curHeadProb), curHead]));
1668
+ accumulator.l(Companion_getInstance_1().of('::', [Companion_getInstance_6().ofDouble(curHeadProb), curHead]));
1668
1669
  }
1669
1670
  function AnnotatedDisjunctionClauseMapper() {
1670
1671
  }
1671
- protoOf(AnnotatedDisjunctionClauseMapper).f37 = function (clause) {
1672
+ protoOf(AnnotatedDisjunctionClauseMapper).e37 = function (clause) {
1672
1673
  var tmp;
1673
1674
  if (isInterface(clause, Rule)) {
1674
- tmp = clause.fw().zt() === ';';
1675
+ tmp = clause.dw().xt() === ';';
1675
1676
  } else {
1676
1677
  tmp = false;
1677
1678
  }
1678
1679
  return tmp;
1679
1680
  };
1680
- protoOf(AnnotatedDisjunctionClauseMapper).g37 = function (clause) {
1681
+ protoOf(AnnotatedDisjunctionClauseMapper).f37 = function (clause) {
1681
1682
  if (!isInterface(clause, Rule)) {
1682
1683
  throw new ClauseMappingException('Clause is not an instance of Rule: ' + clause.toString());
1683
1684
  }
1684
- var body = clause.gw();
1685
+ var body = clause.ew();
1685
1686
  // Inline function 'kotlin.collections.mutableListOf' call
1686
1687
  var disjointHeads = ArrayList_init_$Create$_0();
1687
- collectAllHeads(this, clause.fw(), disjointHeads);
1688
+ collectAllHeads(this, clause.dw(), disjointHeads);
1688
1689
  var probSum = 0.0;
1689
1690
  // Inline function 'kotlin.collections.map' call
1690
1691
  // Inline function 'kotlin.collections.mapTo' call
1691
1692
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(disjointHeads, 10));
1692
- var _iterator__ex2g4s = disjointHeads.p();
1693
- while (_iterator__ex2g4s.s()) {
1694
- var item = _iterator__ex2g4s.t();
1693
+ var _iterator__ex2g4s = disjointHeads.n();
1694
+ while (_iterator__ex2g4s.q()) {
1695
+ var item = _iterator__ex2g4s.r();
1695
1696
  var tmp = item.get(0);
1696
- var curProb = (isInterface(tmp, Numeric) ? tmp : THROW_CCE()).py().toDouble();
1697
+ var curProb = (isInterface(tmp, Numeric) ? tmp : THROW_CCE()).ny().toDouble();
1697
1698
  var tmp_0;
1698
1699
  var tmp_1 = item.get(1);
1699
1700
  if (isInterface(tmp_1, Struct)) {
@@ -1704,22 +1705,22 @@
1704
1705
  }
1705
1706
  var curRuleHead = tmp_0;
1706
1707
  probSum = probSum + curProb;
1707
- var tmp$ret$1 = ProbabilisticClauseMapper_instance.h37(Companion_instance_3.of(Companion_getInstance_1().of('::', [Companion_getInstance_6().ofDouble(curProb / (1.0 - (probSum - curProb))), curRuleHead]), [body]));
1708
- destination.n(tmp$ret$1);
1708
+ var tmp$ret$3 = ProbabilisticClauseMapper_instance.g37(Companion_instance_3.of(Companion_getInstance_1().of('::', [Companion_getInstance_6().ofDouble(curProb / (1.0 - (probSum - curProb))), curRuleHead]), [body]));
1709
+ destination.l(tmp$ret$3);
1709
1710
  }
1710
1711
  var mappedRules = toList_0(destination);
1711
- var explanation = Companion_getInstance_11().q36_1;
1712
+ var explanation = Companion_getInstance_11().p36_1;
1712
1713
  // Inline function 'kotlin.collections.map' call
1713
1714
  // Inline function 'kotlin.collections.mapTo' call
1714
1715
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(mappedRules, 10));
1715
- var _iterator__ex2g4s_0 = mappedRules.p();
1716
- while (_iterator__ex2g4s_0.s()) {
1717
- var item_0 = _iterator__ex2g4s_0.t();
1718
- var thisExplanation = Companion_getInstance_11().u36(item_0.yc_1);
1716
+ var _iterator__ex2g4s_0 = mappedRules.n();
1717
+ while (_iterator__ex2g4s_0.q()) {
1718
+ var item_0 = _iterator__ex2g4s_0.r();
1719
+ var thisExplanation = Companion_getInstance_11().t36(item_0.second);
1719
1720
  var resultExplanation = thisExplanation.and(explanation);
1720
1721
  explanation = explanation.and(thisExplanation.not());
1721
- var tmp$ret$4 = ProbabilisticClauseMapper_instance.i37(item_0.xc_1, resultExplanation);
1722
- destination_0.n(tmp$ret$4);
1722
+ var tmp$ret$6 = ProbabilisticClauseMapper_instance.h37(item_0.first, resultExplanation);
1723
+ destination_0.l(tmp$ret$6);
1723
1724
  }
1724
1725
  return destination_0;
1725
1726
  };
@@ -1728,28 +1729,28 @@
1728
1729
  return AnnotatedDisjunctionClauseMapper_instance;
1729
1730
  }
1730
1731
  function ComputedValue(probability) {
1731
- this.j37_1 = probability;
1732
+ this.i37_1 = probability;
1732
1733
  }
1733
1734
  protoOf(ComputedValue).toString = function () {
1734
- return 'ComputedValue(probability=' + this.j37_1 + ')';
1735
+ return 'ComputedValue(probability=' + this.i37_1 + ')';
1735
1736
  };
1736
1737
  protoOf(ComputedValue).hashCode = function () {
1737
- return this.j37_1 == null ? 0 : getNumberHashCode(this.j37_1);
1738
+ return this.i37_1 == null ? 0 : getNumberHashCode(this.i37_1);
1738
1739
  };
1739
1740
  protoOf(ComputedValue).equals = function (other) {
1740
1741
  if (this === other)
1741
1742
  return true;
1742
1743
  if (!(other instanceof ComputedValue))
1743
1744
  return false;
1744
- if (!equals(this.j37_1, other.j37_1))
1745
+ if (!equals(this.i37_1, other.i37_1))
1745
1746
  return false;
1746
1747
  return true;
1747
1748
  };
1748
1749
  function Companion_2() {
1749
1750
  Companion_instance_11 = this;
1750
- this.r36_1 = new ComputedValue(null);
1751
- this.s36_1 = new ComputedValue(0.0);
1752
- this.t36_1 = new ComputedValue(1.0);
1751
+ this.q36_1 = new ComputedValue(null);
1752
+ this.r36_1 = new ComputedValue(0.0);
1753
+ this.s36_1 = new ComputedValue(1.0);
1753
1754
  }
1754
1755
  var Companion_instance_11;
1755
1756
  function Companion_getInstance_13() {
@@ -1765,15 +1766,15 @@
1765
1766
  }
1766
1767
  function computeExpansion($this, value, low, high) {
1767
1768
  var tmp;
1768
- if (!(low.j37_1 == null) && !(high.j37_1 == null)) {
1769
- tmp = value.x36_1 * high.j37_1 + (1.0 - value.x36_1) * low.j37_1;
1769
+ if (!(low.i37_1 == null) && !(high.i37_1 == null)) {
1770
+ tmp = value.w36_1 * high.i37_1 + (1.0 - value.w36_1) * low.i37_1;
1770
1771
  } else {
1771
1772
  tmp = null;
1772
1773
  }
1773
1774
  return new ComputedValue(tmp);
1774
1775
  }
1775
1776
  function _get_cachedNot__l38068($this) {
1776
- var tmp0 = $this.q35_1;
1777
+ var tmp0 = $this.p35_1;
1777
1778
  var tmp = KProperty1;
1778
1779
  // Inline function 'kotlin.getValue' call
1779
1780
  getPropertyCallableRef('cachedNot', 1, tmp, BinaryDecisionDiagramExplanation$_get_cachedNot_$ref_q3r5qq(), null);
@@ -1786,16 +1787,16 @@
1786
1787
  }
1787
1788
  function BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda(this$0) {
1788
1789
  return function () {
1789
- var tmp = Companion_getInstance_13().s36_1;
1790
- var tmp_0 = Companion_getInstance_13().t36_1;
1791
- var result = notThenExpansion(this$0.o35_1, tmp, tmp_0, BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda$lambda(this$0));
1792
- return new BinaryDecisionDiagramExplanation(result.xc_1, result.yc_1);
1790
+ var tmp = Companion_getInstance_13().r36_1;
1791
+ var tmp_0 = Companion_getInstance_13().s36_1;
1792
+ var result = notThenExpansion(this$0.n35_1, tmp, tmp_0, BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda$lambda(this$0));
1793
+ return new BinaryDecisionDiagramExplanation(result.first, result.second);
1793
1794
  };
1794
1795
  }
1795
1796
  function BinaryDecisionDiagramExplanation$_get_cachedNot_$ref_q3r5qq() {
1796
- return function (p0) {
1797
+ return constructCallableReference(function (p0) {
1797
1798
  return _get_cachedNot__l38068(p0);
1798
- };
1799
+ }, 1, 0, 91);
1799
1800
  }
1800
1801
  function BinaryDecisionDiagramExplanation$and$lambda(this$0) {
1801
1802
  return function (node, low, high) {
@@ -1808,14 +1809,14 @@
1808
1809
  };
1809
1810
  }
1810
1811
  function BinaryDecisionDiagramExplanation$probability$delegate$lambda$lambda(node, low, high) {
1811
- return node.x36_1 * high + (1.0 - node.x36_1) * low;
1812
+ return node.w36_1 * high + (1.0 - node.w36_1) * low;
1812
1813
  }
1813
1814
  function BinaryDecisionDiagramExplanation$probability$delegate$lambda(this$0) {
1814
1815
  return function () {
1815
- var tmp0_elvis_lhs = this$0.p35_1.j37_1;
1816
+ var tmp0_elvis_lhs = this$0.o35_1.i37_1;
1816
1817
  var tmp;
1817
1818
  if (tmp0_elvis_lhs == null) {
1818
- tmp = expansion(this$0.o35_1, 0.0, 1.0, BinaryDecisionDiagramExplanation$probability$delegate$lambda$lambda);
1819
+ tmp = expansion(this$0.n35_1, 0.0, 1.0, BinaryDecisionDiagramExplanation$probability$delegate$lambda$lambda);
1819
1820
  } else {
1820
1821
  tmp = tmp0_elvis_lhs;
1821
1822
  }
@@ -1823,22 +1824,22 @@
1823
1824
  };
1824
1825
  }
1825
1826
  function BinaryDecisionDiagramExplanation$_get_probability_$ref_gzzr62() {
1826
- return function (p0) {
1827
- return p0.c37();
1828
- };
1827
+ return constructCallableReference(function (p0) {
1828
+ return p0.b37();
1829
+ }, 1, 0, 92);
1829
1830
  }
1830
1831
  function BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda$lambda(it) {
1831
- return !it.dv();
1832
+ return !it.bv();
1832
1833
  }
1833
1834
  function BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda(this$0) {
1834
1835
  return function () {
1835
- return anyWhere(this$0.o35_1, BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda$lambda);
1836
+ return anyWhere(this$0.n35_1, BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda$lambda);
1836
1837
  };
1837
1838
  }
1838
1839
  function BinaryDecisionDiagramExplanation$_get_containsAnyNotGroundTerm_$ref_82xwv2() {
1839
- return function (p0) {
1840
- return p0.e37();
1841
- };
1840
+ return constructCallableReference(function (p0) {
1841
+ return p0.d37();
1842
+ }, 1, 0, 93);
1842
1843
  }
1843
1844
  function BinaryDecisionDiagramExplanation$apply$lambda($transformation) {
1844
1845
  return function (it) {
@@ -1847,64 +1848,64 @@
1847
1848
  }
1848
1849
  function BinaryDecisionDiagramExplanation(diagram, computedValue) {
1849
1850
  Companion_getInstance_13();
1850
- computedValue = computedValue === VOID ? Companion_getInstance_13().r36_1 : computedValue;
1851
- this.o35_1 = diagram;
1852
- this.p35_1 = computedValue;
1851
+ computedValue = computedValue === VOID ? Companion_getInstance_13().q36_1 : computedValue;
1852
+ this.n35_1 = diagram;
1853
+ this.o35_1 = computedValue;
1853
1854
  var tmp = this;
1854
- tmp.q35_1 = lazy(BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda(this));
1855
+ tmp.p35_1 = lazy(BinaryDecisionDiagramExplanation$cachedNot$delegate$lambda(this));
1855
1856
  var tmp_0 = this;
1856
- tmp_0.r35_1 = lazy(BinaryDecisionDiagramExplanation$probability$delegate$lambda(this));
1857
+ tmp_0.q35_1 = lazy(BinaryDecisionDiagramExplanation$probability$delegate$lambda(this));
1857
1858
  var tmp_1 = this;
1858
- tmp_1.s35_1 = lazy(BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda(this));
1859
+ tmp_1.r35_1 = lazy(BinaryDecisionDiagramExplanation$containsAnyNotGroundTerm$delegate$lambda(this));
1859
1860
  }
1860
- protoOf(BinaryDecisionDiagramExplanation).k37 = function () {
1861
+ protoOf(BinaryDecisionDiagramExplanation).j37 = function () {
1861
1862
  return _get_cachedNot__l38068(this);
1862
1863
  };
1863
1864
  protoOf(BinaryDecisionDiagramExplanation).not = function () {
1864
- return this.k37();
1865
+ return this.j37();
1865
1866
  };
1866
- protoOf(BinaryDecisionDiagramExplanation).l37 = function (that) {
1867
- var tmp = getAsInternal(this, that).o35_1;
1868
- var tmp_0 = Companion_getInstance_13().s36_1;
1869
- var tmp_1 = Companion_getInstance_13().t36_1;
1870
- var result = andThenExpansion(this.o35_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$and$lambda(this));
1871
- return new BinaryDecisionDiagramExplanation(result.xc_1, result.yc_1);
1867
+ protoOf(BinaryDecisionDiagramExplanation).k37 = function (that) {
1868
+ var tmp = getAsInternal(this, that).n35_1;
1869
+ var tmp_0 = Companion_getInstance_13().r36_1;
1870
+ var tmp_1 = Companion_getInstance_13().s36_1;
1871
+ var result = andThenExpansion(this.n35_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$and$lambda(this));
1872
+ return new BinaryDecisionDiagramExplanation(result.first, result.second);
1872
1873
  };
1873
1874
  protoOf(BinaryDecisionDiagramExplanation).and = function (that) {
1874
- return this.l37(that);
1875
+ return this.k37(that);
1875
1876
  };
1876
- protoOf(BinaryDecisionDiagramExplanation).m37 = function (that) {
1877
- var tmp = getAsInternal(this, that).o35_1;
1878
- var tmp_0 = Companion_getInstance_13().s36_1;
1879
- var tmp_1 = Companion_getInstance_13().t36_1;
1880
- var result = orThenExpansion(this.o35_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$or$lambda(this));
1881
- return new BinaryDecisionDiagramExplanation(result.xc_1, result.yc_1);
1877
+ protoOf(BinaryDecisionDiagramExplanation).l37 = function (that) {
1878
+ var tmp = getAsInternal(this, that).n35_1;
1879
+ var tmp_0 = Companion_getInstance_13().r36_1;
1880
+ var tmp_1 = Companion_getInstance_13().s36_1;
1881
+ var result = orThenExpansion(this.n35_1, tmp, tmp_0, tmp_1, BinaryDecisionDiagramExplanation$or$lambda(this));
1882
+ return new BinaryDecisionDiagramExplanation(result.first, result.second);
1882
1883
  };
1883
1884
  protoOf(BinaryDecisionDiagramExplanation).or = function (that) {
1884
- return this.m37(that);
1885
+ return this.l37(that);
1885
1886
  };
1886
- protoOf(BinaryDecisionDiagramExplanation).c37 = function () {
1887
- var tmp0 = this.r35_1;
1887
+ protoOf(BinaryDecisionDiagramExplanation).b37 = function () {
1888
+ var tmp0 = this.q35_1;
1888
1889
  var tmp = KProperty1;
1889
1890
  // Inline function 'kotlin.getValue' call
1890
1891
  getPropertyCallableRef('probability', 1, tmp, BinaryDecisionDiagramExplanation$_get_probability_$ref_gzzr62(), null);
1891
1892
  return tmp0.e2();
1892
1893
  };
1893
- protoOf(BinaryDecisionDiagramExplanation).e37 = function () {
1894
- var tmp0 = this.s35_1;
1894
+ protoOf(BinaryDecisionDiagramExplanation).d37 = function () {
1895
+ var tmp0 = this.r35_1;
1895
1896
  var tmp = KProperty1;
1896
1897
  // Inline function 'kotlin.getValue' call
1897
1898
  getPropertyCallableRef('containsAnyNotGroundTerm', 1, tmp, BinaryDecisionDiagramExplanation$_get_containsAnyNotGroundTerm_$ref_82xwv2(), null);
1898
1899
  return tmp0.e2();
1899
1900
  };
1900
1901
  protoOf(BinaryDecisionDiagramExplanation).toString = function () {
1901
- return 'bdd:' + hashCode(this.o35_1);
1902
+ return 'bdd:' + hashCode(this.n35_1);
1902
1903
  };
1903
- protoOf(BinaryDecisionDiagramExplanation).n37 = function (transformation) {
1904
- return new BinaryDecisionDiagramExplanation(map_0(this.o35_1, BinaryDecisionDiagramExplanation$apply$lambda(transformation)));
1904
+ protoOf(BinaryDecisionDiagramExplanation).m37 = function (transformation) {
1905
+ return new BinaryDecisionDiagramExplanation(map_0(this.n35_1, BinaryDecisionDiagramExplanation$apply$lambda(transformation)));
1905
1906
  };
1906
1907
  protoOf(BinaryDecisionDiagramExplanation).applyTransformation = function (transformation) {
1907
- return this.n37(transformation);
1908
+ return this.m37(transformation);
1908
1909
  };
1909
1910
  function get_nonWrappableFunctors() {
1910
1911
  _init_properties_ClauseMappingUtils_kt__go80e();
@@ -1913,54 +1914,54 @@
1913
1914
  var nonWrappableFunctors;
1914
1915
  function ClauseMappingUtils() {
1915
1916
  ClauseMappingUtils_instance = this;
1916
- this.o37_1 = 1n;
1917
- this.p37_1 = listOf_0([DirectiveClauseMapper_instance, AnnotatedDisjunctionClauseMapper_instance, ProbabilisticClauseMapper_instance, EvidenceClauseMapper_instance, PrologClauseMapper_instance, NothingClauseMapper_instance]);
1917
+ this.n37_1 = 1n;
1918
+ this.o37_1 = listOf_0([DirectiveClauseMapper_instance, AnnotatedDisjunctionClauseMapper_instance, ProbabilisticClauseMapper_instance, EvidenceClauseMapper_instance, PrologClauseMapper_instance, NothingClauseMapper_instance]);
1918
1919
  }
1919
- protoOf(ClauseMappingUtils).q37 = function () {
1920
- var _unary__edvuaz = this.o37_1;
1921
- this.o37_1 = add(_unary__edvuaz, get_ONE());
1920
+ protoOf(ClauseMappingUtils).p37 = function () {
1921
+ var _unary__edvuaz = this.n37_1;
1922
+ this.n37_1 = add(_unary__edvuaz, get_ONE());
1922
1923
  return _unary__edvuaz;
1923
1924
  };
1924
- protoOf(ClauseMappingUtils).r37 = function (clause) {
1925
+ protoOf(ClauseMappingUtils).q37 = function (clause) {
1925
1926
  var tmp;
1926
1927
  if (get_isMappedAsProblog(clause)) {
1927
1928
  tmp = listOf(clause);
1928
1929
  } else {
1929
- var tmp0 = this.p37_1;
1930
- var tmp$ret$1;
1930
+ var tmp0 = this.o37_1;
1931
+ var tmp$ret$0;
1931
1932
  $l$block: {
1932
1933
  // Inline function 'kotlin.collections.first' call
1933
- var _iterator__ex2g4s = tmp0.p();
1934
- while (_iterator__ex2g4s.s()) {
1935
- var element = _iterator__ex2g4s.t();
1936
- if (element.f37(clause)) {
1937
- tmp$ret$1 = element;
1934
+ var _iterator__ex2g4s = tmp0.n();
1935
+ while (_iterator__ex2g4s.q()) {
1936
+ var element = _iterator__ex2g4s.r();
1937
+ if (element.e37(clause)) {
1938
+ tmp$ret$0 = element;
1938
1939
  break $l$block;
1939
1940
  }
1940
1941
  }
1941
1942
  throw NoSuchElementException_init_$Create$('Collection contains no element matching the predicate.');
1942
1943
  }
1943
1944
  // Inline function 'kotlin.collections.map' call
1944
- var this_0 = tmp$ret$1.g37(clause);
1945
+ var this_0 = tmp$ret$0.f37(clause);
1945
1946
  // Inline function 'kotlin.collections.mapTo' call
1946
1947
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
1947
- var _iterator__ex2g4s_0 = this_0.p();
1948
- while (_iterator__ex2g4s_0.s()) {
1949
- var item = _iterator__ex2g4s_0.t();
1950
- var tmp$ret$2 = setMappedAsProblog(item, true);
1951
- destination.n(tmp$ret$2);
1948
+ var _iterator__ex2g4s_0 = this_0.n();
1949
+ while (_iterator__ex2g4s_0.q()) {
1950
+ var item = _iterator__ex2g4s_0.r();
1951
+ var tmp$ret$4 = setMappedAsProblog(item, true);
1952
+ destination.l(tmp$ret$4);
1952
1953
  }
1953
1954
  tmp = destination;
1954
1955
  }
1955
1956
  return tmp;
1956
1957
  };
1957
- protoOf(ClauseMappingUtils).s37 = function (indicator) {
1958
- var arityTerm = indicator.gy();
1958
+ protoOf(ClauseMappingUtils).r37 = function (indicator) {
1959
+ var arityTerm = indicator.ey();
1959
1960
  var tmp = Companion_instance_4;
1960
- var tmp_0 = indicator.fy();
1961
+ var tmp_0 = indicator.dy();
1961
1962
  var tmp_1;
1962
1963
  if (isInterface(arityTerm, Numeric)) {
1963
- tmp_1 = Companion_getInstance_6().ofInteger(arityTerm.hy().toInt() + 1 | 0);
1964
+ tmp_1 = Companion_getInstance_6().ofInteger(arityTerm.fy().toInt() + 1 | 0);
1964
1965
  } else {
1965
1966
  tmp_1 = arityTerm;
1966
1967
  }
@@ -2000,7 +2001,7 @@
2000
2001
  } else {
2001
2002
  var tmp_0;
2002
2003
  if (isInterface(_this__u8e3s4, Struct)) {
2003
- tmp_0 = Companion_getInstance_1().ofList(_this__u8e3s4.zt(), plus(_this__u8e3s4.au(), explanation));
2004
+ tmp_0 = Companion_getInstance_1().ofList(_this__u8e3s4.xt(), plus(_this__u8e3s4.yt(), explanation));
2004
2005
  } else {
2005
2006
  tmp_0 = Companion_getInstance_1().of(_this__u8e3s4.toString(), [explanation]);
2006
2007
  }
@@ -2023,7 +2024,7 @@
2023
2024
  var tmp;
2024
2025
  if (isInterface(_this__u8e3s4, Struct)) {
2025
2026
  var tmp_0;
2026
- switch (_this__u8e3s4.zt()) {
2027
+ switch (_this__u8e3s4.xt()) {
2027
2028
  case ',':
2028
2029
  var leftVar = Companion_getInstance_0().of('EXPL_A_' + depth);
2029
2030
  var rightVar = Companion_getInstance_0().of('EXPL_B_' + depth);
@@ -2054,11 +2055,11 @@
2054
2055
  }
2055
2056
  function get_isWrappableWithExplanation(_this__u8e3s4) {
2056
2057
  _init_properties_ClauseMappingUtils_kt__go80e();
2057
- return !get_nonWrappableFunctors().a1(safeToStruct(_this__u8e3s4).zt());
2058
+ return !get_nonWrappableFunctors().y(safeToStruct(_this__u8e3s4).xt());
2058
2059
  }
2059
2060
  function withExplanationNonWrappable(_this__u8e3s4, explanation) {
2060
2061
  _init_properties_ClauseMappingUtils_kt__go80e();
2061
- return Companion_instance_0.of(_this__u8e3s4, Companion_getInstance_1().of('=', [explanation, toTerm(Companion_getInstance_11().q36_1)]));
2062
+ return Companion_instance_0.of(_this__u8e3s4, Companion_getInstance_1().of('=', [explanation, toTerm(Companion_getInstance_11().p36_1)]));
2062
2063
  }
2063
2064
  function wrapInPredicate(_this__u8e3s4, functor, explanation) {
2064
2065
  _init_properties_ClauseMappingUtils_kt__go80e();
@@ -2086,9 +2087,9 @@
2086
2087
  var regexMatch = tmp;
2087
2088
  var _destruct__k2r9zo = regexMatch.rb();
2088
2089
  // Inline function 'kotlin.text.Destructured.component1' call
2089
- var dividendStr = _destruct__k2r9zo.mh_1.qb().z(1);
2090
+ var dividendStr = _destruct__k2r9zo.hh_1.qb().x(1);
2090
2091
  // Inline function 'kotlin.text.Destructured.component3' call
2091
- var divisorStr = _destruct__k2r9zo.mh_1.qb().z(3);
2092
+ var divisorStr = _destruct__k2r9zo.hh_1.qb().x(3);
2092
2093
  var dividend = toDoubleOrNull(dividendStr);
2093
2094
  var divisor = toDoubleOrNull(divisorStr);
2094
2095
  if (dividend == null || divisor == null) {
@@ -2100,44 +2101,44 @@
2100
2101
  _init_properties_ClauseMappingUtils_kt__go80e();
2101
2102
  var tmp = Companion_getInstance_5();
2102
2103
  // Inline function 'kotlin.collections.filter' call
2103
- var tmp0 = plus_0(toSet_0(_this__u8e3s4.fw().bu()), toSet_0(_this__u8e3s4.gw().bu()));
2104
+ var tmp0 = plus_0(toSet_0(_this__u8e3s4.dw().zt()), toSet_0(_this__u8e3s4.ew().zt()));
2104
2105
  // Inline function 'kotlin.collections.filterTo' call
2105
2106
  var destination = ArrayList_init_$Create$_0();
2106
- var _iterator__ex2g4s = tmp0.p();
2107
- while (_iterator__ex2g4s.s()) {
2108
- var element = _iterator__ex2g4s.t();
2109
- if (element.j12()) {
2110
- destination.n(element);
2107
+ var _iterator__ex2g4s = tmp0.n();
2108
+ while (_iterator__ex2g4s.q()) {
2109
+ var element = _iterator__ex2g4s.r();
2110
+ if (element.h12()) {
2111
+ destination.l(element);
2111
2112
  }
2112
2113
  }
2113
2114
  // Inline function 'kotlin.collections.mapIndexed' call
2114
2115
  // Inline function 'kotlin.collections.mapIndexedTo' call
2115
2116
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(destination, 10));
2116
2117
  var index = 0;
2117
- var _iterator__ex2g4s_0 = destination.p();
2118
- while (_iterator__ex2g4s_0.s()) {
2119
- var item = _iterator__ex2g4s_0.t();
2118
+ var _iterator__ex2g4s_0 = destination.n();
2119
+ while (_iterator__ex2g4s_0.q()) {
2120
+ var item = _iterator__ex2g4s_0.r();
2120
2121
  var _unary__edvuaz = index;
2121
2122
  index = _unary__edvuaz + 1 | 0;
2122
2123
  var index_0 = checkIndexOverflow(_unary__edvuaz);
2123
- var tmp$ret$3 = new Pair(item, Companion_getInstance_0().of('ANON_' + index_0));
2124
- destination_0.n(tmp$ret$3);
2124
+ var tmp$ret$5 = new Pair(item, Companion_getInstance_0().of('ANON_' + index_0));
2125
+ destination_0.l(tmp$ret$5);
2125
2126
  }
2126
2127
  var anonVarSubstitution = tmp.ofIterable(destination_0);
2127
2128
  var tmp_0;
2128
2129
  if (isInterface(_this__u8e3s4, Fact)) {
2129
- tmp_0 = Companion_instance.of(safeToStruct(_this__u8e3s4.fw().applySubstitution(anonVarSubstitution)));
2130
+ tmp_0 = Companion_instance.of(safeToStruct(_this__u8e3s4.dw().applySubstitution(anonVarSubstitution)));
2130
2131
  } else {
2131
- tmp_0 = Companion_instance_3.of(safeToStruct(_this__u8e3s4.fw().applySubstitution(anonVarSubstitution)), [safeToStruct(_this__u8e3s4.gw().applySubstitution(anonVarSubstitution))]);
2132
+ tmp_0 = Companion_instance_3.of(safeToStruct(_this__u8e3s4.dw().applySubstitution(anonVarSubstitution)), [safeToStruct(_this__u8e3s4.ew().applySubstitution(anonVarSubstitution))]);
2132
2133
  }
2133
2134
  return tmp_0;
2134
2135
  }
2135
2136
  function get_extraVariables(_this__u8e3s4) {
2136
2137
  _init_properties_ClauseMappingUtils_kt__go80e();
2137
2138
  var tmp;
2138
- if (!_this__u8e3s4.dv()) {
2139
- var headVars = toSet_0(_this__u8e3s4.fw().bu());
2140
- var bodyVars = toSet_0(_this__u8e3s4.gw().bu());
2139
+ if (!_this__u8e3s4.bv()) {
2140
+ var headVars = toSet_0(_this__u8e3s4.dw().zt());
2141
+ var bodyVars = toSet_0(_this__u8e3s4.ew().zt());
2141
2142
  tmp = subtract(bodyVars, headVars);
2142
2143
  } else {
2143
2144
  tmp = emptySet();
@@ -2153,17 +2154,17 @@
2153
2154
  }
2154
2155
  function DirectiveClauseMapper() {
2155
2156
  }
2156
- protoOf(DirectiveClauseMapper).f37 = function (clause) {
2157
- return clause.iu();
2157
+ protoOf(DirectiveClauseMapper).e37 = function (clause) {
2158
+ return clause.gu();
2158
2159
  };
2159
- protoOf(DirectiveClauseMapper).g37 = function (clause) {
2160
- var body = clause.gw();
2160
+ protoOf(DirectiveClauseMapper).f37 = function (clause) {
2161
+ var body = clause.ew();
2161
2162
  if (!isInterface(clause, Directive)) {
2162
2163
  throw new ClauseMappingException('Clause is not an instance of Directive: ' + clause.toString());
2163
2164
  }
2164
2165
  var tmp;
2165
2166
  if (isInterface(body, Struct)) {
2166
- tmp = body.zt() === 'static' || body.zt() === 'dynamic';
2167
+ tmp = body.xt() === 'static' || body.xt() === 'dynamic';
2167
2168
  } else {
2168
2169
  tmp = false;
2169
2170
  }
@@ -2172,21 +2173,21 @@
2172
2173
  if (!isInterface(indicatorTerm, Indicator)) {
2173
2174
  throw new ClauseMappingException('Malformed directive: ' + clause.toString());
2174
2175
  }
2175
- var name = indicatorTerm.fy();
2176
- var arity = indicatorTerm.gy();
2176
+ var name = indicatorTerm.dy();
2177
+ var arity = indicatorTerm.ey();
2177
2178
  if (!isInterface(arity, Numeric)) {
2178
2179
  throw new ClauseMappingException('Malformed directive: ' + clause.toString());
2179
2180
  }
2180
- return listOf(Companion_instance_5.of(Companion_getInstance_1().of(body.zt(), [Companion_instance_4.of(name, Companion_getInstance_6().ofInteger(arity.py().toInt() + 1 | 0))]), []));
2181
+ return listOf(Companion_instance_5.of(Companion_getInstance_1().of(body.xt(), [Companion_instance_4.of(name, Companion_getInstance_6().ofInteger(arity.ny().toInt() + 1 | 0))]), []));
2181
2182
  }
2182
2183
  var tmp_0;
2183
2184
  if (isInterface(body, Struct)) {
2184
- tmp_0 = body.zt() === 'initialization' || body.zt() === 'solve';
2185
+ tmp_0 = body.xt() === 'initialization' || body.xt() === 'solve';
2185
2186
  } else {
2186
2187
  tmp_0 = false;
2187
2188
  }
2188
2189
  if (tmp_0) {
2189
- return listOf(Companion_instance_5.of(Companion_getInstance_1().of(body.zt(), [withBodyExplanation(body.get(0), Companion_getInstance_0().anonymous())]), []));
2190
+ return listOf(Companion_instance_5.of(Companion_getInstance_1().of(body.xt(), [withBodyExplanation(body.get(0), Companion_getInstance_0().anonymous())]), []));
2190
2191
  }
2191
2192
  return listOf(clause);
2192
2193
  };
@@ -2196,42 +2197,42 @@
2196
2197
  }
2197
2198
  function EvidenceClauseMapper() {
2198
2199
  }
2199
- protoOf(EvidenceClauseMapper).f37 = function (clause) {
2200
+ protoOf(EvidenceClauseMapper).e37 = function (clause) {
2200
2201
  var tmp;
2201
2202
  if (isInterface(clause, Rule)) {
2202
- tmp = clause.fw().zt() === 'evidence';
2203
+ tmp = clause.dw().xt() === 'evidence';
2203
2204
  } else {
2204
2205
  tmp = false;
2205
2206
  }
2206
2207
  return tmp;
2207
2208
  };
2208
- protoOf(EvidenceClauseMapper).g37 = function (clause) {
2209
+ protoOf(EvidenceClauseMapper).f37 = function (clause) {
2209
2210
  if (!isInterface(clause, Rule)) {
2210
2211
  throw new ClauseMappingException('Clause is not an instance of Rule: ' + clause.toString());
2211
2212
  }
2212
- if (clause.fw().tt() > 2) {
2213
- throw TuPrologException_init_$Create$('Invalid evidence predicate: ' + clause.fw().toString());
2213
+ if (clause.dw().rt() > 2) {
2214
+ throw TuPrologException_init_$Create$('Invalid evidence predicate: ' + clause.dw().toString());
2214
2215
  } else {
2215
2216
  var tmp;
2216
- if (clause.fw().tt() === 2) {
2217
- var tmp_0 = clause.fw().get(1);
2217
+ if (clause.dw().rt() === 2) {
2218
+ var tmp_0 = clause.dw().get(1);
2218
2219
  tmp = !isInterface(tmp_0, Truth);
2219
2220
  } else {
2220
2221
  tmp = false;
2221
2222
  }
2222
2223
  if (tmp) {
2223
- throw TuPrologException_init_$Create$('Invalid evidence predicate: ' + clause.fw().toString());
2224
+ throw TuPrologException_init_$Create$('Invalid evidence predicate: ' + clause.dw().toString());
2224
2225
  }
2225
2226
  }
2226
- var headTerm = clause.fw();
2227
- if (headTerm.tt() === 1) {
2228
- headTerm = Companion_getInstance_1().of(headTerm.zt(), [headTerm.get(0), Companion_getInstance_7().qt_1]);
2227
+ var headTerm = clause.dw();
2228
+ if (headTerm.rt() === 1) {
2229
+ headTerm = Companion_getInstance_1().of(headTerm.xt(), [headTerm.get(0), Companion_getInstance_7().ot_1]);
2229
2230
  }
2230
2231
  var tmp_1;
2231
2232
  if (isInterface(clause, Fact)) {
2232
2233
  tmp_1 = Companion_instance.of(headTerm);
2233
2234
  } else {
2234
- tmp_1 = Companion_instance_3.of(headTerm, [withBodyExplanation(clause.gw(), Companion_getInstance_0().anonymous())]);
2235
+ tmp_1 = Companion_instance_3.of(headTerm, [withBodyExplanation(clause.ew(), Companion_getInstance_0().anonymous())]);
2235
2236
  }
2236
2237
  return listOf(tmp_1);
2237
2238
  };
@@ -2240,7 +2241,7 @@
2240
2241
  return EvidenceClauseMapper_instance;
2241
2242
  }
2242
2243
  function MappedMutableProblogTheory(clauses, unificator, theory) {
2243
- unificator = unificator === VOID ? Companion_getInstance_8().g1i() : unificator;
2244
+ unificator = unificator === VOID ? Companion_getInstance_8().f1i() : unificator;
2244
2245
  var tmp;
2245
2246
  if (theory === VOID) {
2246
2247
  var tmp_0 = Companion_instance_6;
@@ -2251,10 +2252,10 @@
2251
2252
  // Inline function 'kotlin.collections.flatMap' call
2252
2253
  // Inline function 'kotlin.collections.flatMapTo' call
2253
2254
  var destination = ArrayList_init_$Create$_0();
2254
- var _iterator__ex2g4s = clauses.p();
2255
- while (_iterator__ex2g4s.s()) {
2256
- var element = _iterator__ex2g4s.t();
2257
- var list = ClauseMappingUtils_getInstance().r37(element);
2255
+ var _iterator__ex2g4s = clauses.n();
2256
+ while (_iterator__ex2g4s.q()) {
2257
+ var element = _iterator__ex2g4s.r();
2258
+ var list = ClauseMappingUtils_getInstance().q37(element);
2258
2259
  addAll(destination, list);
2259
2260
  }
2260
2261
  tmp_1 = destination;
@@ -2265,106 +2266,106 @@
2265
2266
  tmp = theory;
2266
2267
  }
2267
2268
  theory = tmp;
2268
- this.t37_1 = theory;
2269
+ this.s37_1 = theory;
2269
2270
  }
2270
- protoOf(MappedMutableProblogTheory).d1q = function () {
2271
+ protoOf(MappedMutableProblogTheory).c1q = function () {
2271
2272
  return false;
2272
2273
  };
2273
- protoOf(MappedMutableProblogTheory).q1q = function () {
2274
- return Companion_instance_8.ofIterable(this.n1i(), this);
2274
+ protoOf(MappedMutableProblogTheory).p1q = function () {
2275
+ return Companion_instance_8.ofIterable(this.m1i(), this);
2275
2276
  };
2276
2277
  protoOf(MappedMutableProblogTheory).toMutableTheory = function () {
2277
- return this.q1q();
2278
+ return this.p1q();
2278
2279
  };
2279
- protoOf(MappedMutableProblogTheory).d1p = function () {
2280
+ protoOf(MappedMutableProblogTheory).c1p = function () {
2280
2281
  return this;
2281
2282
  };
2282
2283
  protoOf(MappedMutableProblogTheory).toImmutableTheory = function () {
2283
- return this.d1p();
2284
+ return this.c1p();
2284
2285
  };
2285
- protoOf(MappedMutableProblogTheory).u37 = function (theory) {
2286
- return new MappedMutableProblogTheory(null, this.n1i(), this.t37_1.q1p(theory));
2286
+ protoOf(MappedMutableProblogTheory).t37 = function (theory) {
2287
+ return new MappedMutableProblogTheory(null, this.m1i(), this.s37_1.p1p(theory));
2287
2288
  };
2288
- protoOf(MappedMutableProblogTheory).q1p = function (theory) {
2289
+ protoOf(MappedMutableProblogTheory).p1p = function (theory) {
2289
2290
  var tmp;
2290
2291
  if (isInterface(theory, ProblogTheory)) {
2291
- tmp = this.u37(theory);
2292
+ tmp = this.t37(theory);
2292
2293
  } else {
2293
- tmp = this.u37(new MappedMutableProblogTheory(theory, this.n1i()));
2294
+ tmp = this.t37(new MappedMutableProblogTheory(theory, this.m1i()));
2294
2295
  }
2295
2296
  return tmp;
2296
2297
  };
2297
2298
  protoOf(MappedMutableProblogTheory).plusTheory = function (theory) {
2298
- return this.q1p(theory);
2299
+ return this.p1p(theory);
2299
2300
  };
2300
- protoOf(MappedMutableProblogTheory).e1p = function (clause) {
2301
- var mapped = ClauseMappingUtils_getInstance().r37(clause);
2302
- return new MappedMutableProblogTheory(null, this.n1i(), this.t37_1.q1p(Companion_instance_7.indexedOfIterable(this.n1i(), mapped)));
2301
+ protoOf(MappedMutableProblogTheory).d1p = function (clause) {
2302
+ var mapped = ClauseMappingUtils_getInstance().q37(clause);
2303
+ return new MappedMutableProblogTheory(null, this.m1i(), this.s37_1.p1p(Companion_instance_7.indexedOfIterable(this.m1i(), mapped)));
2303
2304
  };
2304
2305
  protoOf(MappedMutableProblogTheory).plus = function (clause) {
2305
- return this.e1p(clause);
2306
+ return this.d1p(clause);
2306
2307
  };
2307
- protoOf(MappedMutableProblogTheory).u1p = function (clauses) {
2308
+ protoOf(MappedMutableProblogTheory).t1p = function (clauses) {
2308
2309
  // Inline function 'kotlin.collections.flatMap' call
2309
2310
  // Inline function 'kotlin.collections.flatMapTo' call
2310
2311
  var destination = ArrayList_init_$Create$_0();
2311
- var _iterator__ex2g4s = clauses.p();
2312
- while (_iterator__ex2g4s.s()) {
2313
- var element = _iterator__ex2g4s.t();
2314
- var list = ClauseMappingUtils_getInstance().r37(element);
2312
+ var _iterator__ex2g4s = clauses.n();
2313
+ while (_iterator__ex2g4s.q()) {
2314
+ var element = _iterator__ex2g4s.r();
2315
+ var list = ClauseMappingUtils_getInstance().q37(element);
2315
2316
  addAll(destination, list);
2316
2317
  }
2317
2318
  var mapped = destination;
2318
- return new MappedMutableProblogTheory(null, this.n1i(), this.t37_1.u1p(mapped));
2319
+ return new MappedMutableProblogTheory(null, this.m1i(), this.s37_1.t1p(mapped));
2319
2320
  };
2320
2321
  protoOf(MappedMutableProblogTheory).assertAIterable = function (clauses) {
2321
- return this.u1p(clauses);
2322
+ return this.t1p(clauses);
2322
2323
  };
2323
- protoOf(MappedMutableProblogTheory).x1p = function (clauses) {
2324
+ protoOf(MappedMutableProblogTheory).w1p = function (clauses) {
2324
2325
  // Inline function 'kotlin.collections.flatMap' call
2325
2326
  // Inline function 'kotlin.collections.flatMapTo' call
2326
2327
  var destination = ArrayList_init_$Create$_0();
2327
- var _iterator__ex2g4s = clauses.p();
2328
- while (_iterator__ex2g4s.s()) {
2329
- var element = _iterator__ex2g4s.t();
2330
- var list = ClauseMappingUtils_getInstance().r37(element);
2328
+ var _iterator__ex2g4s = clauses.n();
2329
+ while (_iterator__ex2g4s.q()) {
2330
+ var element = _iterator__ex2g4s.r();
2331
+ var list = ClauseMappingUtils_getInstance().q37(element);
2331
2332
  addAll(destination, list);
2332
2333
  }
2333
2334
  var mapped = destination;
2334
- return new MappedMutableProblogTheory(null, this.n1i(), this.t37_1.x1p(mapped));
2335
+ return new MappedMutableProblogTheory(null, this.m1i(), this.s37_1.w1p(mapped));
2335
2336
  };
2336
2337
  protoOf(MappedMutableProblogTheory).assertZIterable = function (clauses) {
2337
- return this.x1p(clauses);
2338
+ return this.w1p(clauses);
2338
2339
  };
2339
- protoOf(MappedMutableProblogTheory).b1q = function (clauses) {
2340
+ protoOf(MappedMutableProblogTheory).a1q = function (clauses) {
2340
2341
  // Inline function 'kotlin.collections.flatMap' call
2341
2342
  // Inline function 'kotlin.collections.flatMapTo' call
2342
2343
  var destination = ArrayList_init_$Create$_0();
2343
- var _iterator__ex2g4s = clauses.p();
2344
- while (_iterator__ex2g4s.s()) {
2345
- var element = _iterator__ex2g4s.t();
2346
- var list = ClauseMappingUtils_getInstance().r37(element);
2344
+ var _iterator__ex2g4s = clauses.n();
2345
+ while (_iterator__ex2g4s.q()) {
2346
+ var element = _iterator__ex2g4s.r();
2347
+ var list = ClauseMappingUtils_getInstance().q37(element);
2347
2348
  addAll(destination, list);
2348
2349
  }
2349
2350
  var mapped = destination;
2350
- var result = this.t37_1.b1q(mapped);
2351
+ var result = this.s37_1.a1q(mapped);
2351
2352
  var tmp;
2352
2353
  if (result instanceof Success) {
2353
- tmp = new Success(new MappedMutableProblogTheory(null, this.n1i(), result.w1q_1), result.x1q_1);
2354
+ tmp = new Success(new MappedMutableProblogTheory(null, this.m1i(), result.v1q_1), result.w1q_1);
2354
2355
  } else {
2355
- tmp = new Failure(new MappedMutableProblogTheory(null, this.n1i(), result.k1p()));
2356
+ tmp = new Failure(new MappedMutableProblogTheory(null, this.m1i(), result.j1p()));
2356
2357
  }
2357
2358
  return tmp;
2358
2359
  };
2359
2360
  protoOf(MappedMutableProblogTheory).retractIterable = function (clauses) {
2360
- return this.b1q(clauses);
2361
+ return this.a1q(clauses);
2361
2362
  };
2362
- protoOf(MappedMutableProblogTheory).f1j = function (clause) {
2363
- var mappedClauses = ClauseMappingUtils_getInstance().r37(clause);
2363
+ protoOf(MappedMutableProblogTheory).e1j = function (clause) {
2364
+ var mappedClauses = ClauseMappingUtils_getInstance().q37(clause);
2364
2365
  var result = null;
2365
- var _iterator__ex2g4s = mappedClauses.p();
2366
- while (_iterator__ex2g4s.s()) {
2367
- var c = _iterator__ex2g4s.t();
2366
+ var _iterator__ex2g4s = mappedClauses.n();
2367
+ while (_iterator__ex2g4s.q()) {
2368
+ var c = _iterator__ex2g4s.r();
2368
2369
  var tmp;
2369
2370
  if (result == null) {
2370
2371
  tmp = true;
@@ -2372,16 +2373,16 @@
2372
2373
  tmp = !(result instanceof Failure);
2373
2374
  }
2374
2375
  if (tmp) {
2375
- result = this.t37_1.f1j(c);
2376
+ result = this.s37_1.e1j(c);
2376
2377
  }
2377
2378
  }
2378
2379
  var tmp0_subject = result;
2379
2380
  var tmp_0;
2380
2381
  if (tmp0_subject instanceof Success) {
2381
- tmp_0 = new Success(new MappedMutableProblogTheory(null, this.n1i(), result.w1q_1), result.x1q_1);
2382
+ tmp_0 = new Success(new MappedMutableProblogTheory(null, this.m1i(), result.v1q_1), result.w1q_1);
2382
2383
  } else {
2383
2384
  if (tmp0_subject instanceof Failure) {
2384
- tmp_0 = new Failure(new MappedMutableProblogTheory(null, this.n1i(), result.y1q_1));
2385
+ tmp_0 = new Failure(new MappedMutableProblogTheory(null, this.m1i(), result.x1q_1));
2385
2386
  } else {
2386
2387
  tmp_0 = new Failure(this);
2387
2388
  }
@@ -2389,145 +2390,145 @@
2389
2390
  return tmp_0;
2390
2391
  };
2391
2392
  protoOf(MappedMutableProblogTheory).retractAll = function (clause) {
2392
- return this.f1j(clause);
2393
+ return this.e1j(clause);
2393
2394
  };
2394
- protoOf(MappedMutableProblogTheory).j1p = function (indicator) {
2395
- return new MappedMutableProblogTheory(null, this.n1i(), this.t37_1.j1p(ClauseMappingUtils_getInstance().s37(indicator)));
2395
+ protoOf(MappedMutableProblogTheory).i1p = function (indicator) {
2396
+ return new MappedMutableProblogTheory(null, this.m1i(), this.s37_1.i1p(ClauseMappingUtils_getInstance().r37(indicator)));
2396
2397
  };
2397
2398
  protoOf(MappedMutableProblogTheory).abolish = function (indicator) {
2398
- return this.j1p(indicator);
2399
+ return this.i1p(indicator);
2399
2400
  };
2400
- protoOf(MappedMutableProblogTheory).r1q = function (struct) {
2401
- return this.s1p(Companion_instance.of(struct));
2401
+ protoOf(MappedMutableProblogTheory).q1q = function (struct) {
2402
+ return this.r1p(Companion_instance.of(struct));
2402
2403
  };
2403
2404
  protoOf(MappedMutableProblogTheory).assertAFact = function (struct) {
2404
- return this.r1q(struct);
2405
+ return this.q1q(struct);
2405
2406
  };
2406
- protoOf(MappedMutableProblogTheory).s1q = function (struct) {
2407
- return this.w1p(Companion_instance.of(struct));
2407
+ protoOf(MappedMutableProblogTheory).r1q = function (struct) {
2408
+ return this.v1p(Companion_instance.of(struct));
2408
2409
  };
2409
2410
  protoOf(MappedMutableProblogTheory).assertZFact = function (struct) {
2410
- return this.s1q(struct);
2411
+ return this.r1q(struct);
2411
2412
  };
2412
- protoOf(MappedMutableProblogTheory).s1p = function (clause) {
2413
- return this.u1p(listOf(clause));
2413
+ protoOf(MappedMutableProblogTheory).r1p = function (clause) {
2414
+ return this.t1p(listOf(clause));
2414
2415
  };
2415
2416
  protoOf(MappedMutableProblogTheory).assertA = function (clause) {
2416
- return this.s1p(clause);
2417
+ return this.r1p(clause);
2417
2418
  };
2418
- protoOf(MappedMutableProblogTheory).v1p = function (clauses) {
2419
- return this.u1p(asIterable_0(clauses));
2419
+ protoOf(MappedMutableProblogTheory).u1p = function (clauses) {
2420
+ return this.t1p(asIterable_0(clauses));
2420
2421
  };
2421
2422
  protoOf(MappedMutableProblogTheory).assertASequence = function (clauses) {
2422
- return this.v1p(clauses);
2423
+ return this.u1p(clauses);
2423
2424
  };
2424
- protoOf(MappedMutableProblogTheory).w1p = function (clause) {
2425
- return this.x1p(listOf(clause));
2425
+ protoOf(MappedMutableProblogTheory).v1p = function (clause) {
2426
+ return this.w1p(listOf(clause));
2426
2427
  };
2427
2428
  protoOf(MappedMutableProblogTheory).assertZ = function (clause) {
2428
- return this.w1p(clause);
2429
+ return this.v1p(clause);
2429
2430
  };
2430
- protoOf(MappedMutableProblogTheory).y1p = function (clauses) {
2431
- return this.x1p(asIterable_0(clauses));
2431
+ protoOf(MappedMutableProblogTheory).x1p = function (clauses) {
2432
+ return this.w1p(asIterable_0(clauses));
2432
2433
  };
2433
2434
  protoOf(MappedMutableProblogTheory).assertZSequence = function (clauses) {
2434
- return this.y1p(clauses);
2435
+ return this.x1p(clauses);
2435
2436
  };
2436
- protoOf(MappedMutableProblogTheory).u1q = function (head) {
2437
- return this.t1q(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2437
+ protoOf(MappedMutableProblogTheory).t1q = function (head) {
2438
+ return this.s1q(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2438
2439
  };
2439
2440
  protoOf(MappedMutableProblogTheory).retractByHead = function (head) {
2440
- return this.u1q(head);
2441
+ return this.t1q(head);
2441
2442
  };
2442
- protoOf(MappedMutableProblogTheory).t1q = function (clause) {
2443
- return this.b1q(listOf(clause));
2443
+ protoOf(MappedMutableProblogTheory).s1q = function (clause) {
2444
+ return this.a1q(listOf(clause));
2444
2445
  };
2445
2446
  protoOf(MappedMutableProblogTheory).retract = function (clause) {
2446
- return this.t1q(clause);
2447
+ return this.s1q(clause);
2447
2448
  };
2448
- protoOf(MappedMutableProblogTheory).a1q = function (clauses) {
2449
- return this.b1q(asIterable_0(clauses));
2449
+ protoOf(MappedMutableProblogTheory).z1p = function (clauses) {
2450
+ return this.a1q(asIterable_0(clauses));
2450
2451
  };
2451
2452
  protoOf(MappedMutableProblogTheory).retractSequence = function (clauses) {
2452
- return this.a1q(clauses);
2453
+ return this.z1p(clauses);
2453
2454
  };
2454
- protoOf(MappedMutableProblogTheory).v1q = function (head) {
2455
- return this.f1j(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2455
+ protoOf(MappedMutableProblogTheory).u1q = function (head) {
2456
+ return this.e1j(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2456
2457
  };
2457
2458
  protoOf(MappedMutableProblogTheory).retractAllByHead = function (head) {
2458
- return this.v1q(head);
2459
+ return this.u1q(head);
2459
2460
  };
2460
- protoOf(MappedMutableProblogTheory).o1p = function (unificator) {
2461
- return this.t37_1.o1p(unificator);
2461
+ protoOf(MappedMutableProblogTheory).n1p = function (unificator) {
2462
+ return this.s37_1.n1p(unificator);
2462
2463
  };
2463
2464
  protoOf(MappedMutableProblogTheory).setUnificator = function (unificator) {
2464
- return this.o1p(unificator);
2465
+ return this.n1p(unificator);
2465
2466
  };
2466
- protoOf(MappedMutableProblogTheory).d10 = function (tags) {
2467
- return this.t37_1.d10(tags);
2467
+ protoOf(MappedMutableProblogTheory).b10 = function (tags) {
2468
+ return this.s37_1.b10(tags);
2468
2469
  };
2469
2470
  protoOf(MappedMutableProblogTheory).resetTags = function (tags) {
2470
- return this.d10(tags);
2471
+ return this.b10(tags);
2471
2472
  };
2472
- protoOf(MappedMutableProblogTheory).c1q = function () {
2473
- return this.t37_1.c1q();
2473
+ protoOf(MappedMutableProblogTheory).b1q = function () {
2474
+ return this.s37_1.b1q();
2474
2475
  };
2475
2476
  protoOf(MappedMutableProblogTheory).clone = function () {
2476
- return this.c1q();
2477
+ return this.b1q();
2477
2478
  };
2478
2479
  protoOf(MappedMutableProblogTheory).contains = function (clause) {
2479
- return this.t37_1.contains(clause);
2480
+ return this.s37_1.contains(clause);
2480
2481
  };
2481
2482
  protoOf(MappedMutableProblogTheory).containsHead = function (head) {
2482
- return this.t37_1.containsHead(head);
2483
+ return this.s37_1.containsHead(head);
2483
2484
  };
2484
2485
  protoOf(MappedMutableProblogTheory).containsIndicator = function (indicator) {
2485
- return this.t37_1.containsIndicator(indicator);
2486
+ return this.s37_1.containsIndicator(indicator);
2486
2487
  };
2487
2488
  protoOf(MappedMutableProblogTheory).get = function (clause) {
2488
- return this.t37_1.get(clause);
2489
+ return this.s37_1.get(clause);
2489
2490
  };
2490
2491
  protoOf(MappedMutableProblogTheory).getByHead = function (head) {
2491
- return this.t37_1.getByHead(head);
2492
+ return this.s37_1.getByHead(head);
2492
2493
  };
2493
2494
  protoOf(MappedMutableProblogTheory).getByIndicator = function (indicator) {
2494
- return this.t37_1.getByIndicator(indicator);
2495
+ return this.s37_1.getByIndicator(indicator);
2495
2496
  };
2496
2497
  protoOf(MappedMutableProblogTheory).toStringAsProlog = function (asPrologText) {
2497
- return this.t37_1.toStringAsProlog(asPrologText);
2498
+ return this.s37_1.toStringAsProlog(asPrologText);
2498
2499
  };
2499
2500
  protoOf(MappedMutableProblogTheory).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
2500
- return this.t37_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2501
+ return this.s37_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2501
2502
  };
2502
- protoOf(MappedMutableProblogTheory).x1i = function () {
2503
- return this.t37_1.x1i();
2503
+ protoOf(MappedMutableProblogTheory).w1i = function () {
2504
+ return this.s37_1.w1i();
2504
2505
  };
2505
- protoOf(MappedMutableProblogTheory).q1i = function () {
2506
- return this.t37_1.q1i();
2506
+ protoOf(MappedMutableProblogTheory).p1i = function () {
2507
+ return this.s37_1.p1i();
2507
2508
  };
2508
- protoOf(MappedMutableProblogTheory).s1i = function () {
2509
- return this.t37_1.s1i();
2509
+ protoOf(MappedMutableProblogTheory).r1i = function () {
2510
+ return this.s37_1.r1i();
2510
2511
  };
2511
- protoOf(MappedMutableProblogTheory).n1p = function () {
2512
- return this.t37_1.n1p();
2512
+ protoOf(MappedMutableProblogTheory).m1p = function () {
2513
+ return this.s37_1.m1p();
2513
2514
  };
2514
- protoOf(MappedMutableProblogTheory).p = function () {
2515
- return this.t37_1.p();
2515
+ protoOf(MappedMutableProblogTheory).n = function () {
2516
+ return this.s37_1.n();
2516
2517
  };
2517
2518
  protoOf(MappedMutableProblogTheory).getTag = function (name) {
2518
- return this.t37_1.getTag(name);
2519
+ return this.s37_1.getTag(name);
2519
2520
  };
2520
2521
  protoOf(MappedMutableProblogTheory).containsTag = function (name) {
2521
- return this.t37_1.containsTag(name);
2522
+ return this.s37_1.containsTag(name);
2522
2523
  };
2523
- protoOf(MappedMutableProblogTheory).nr = function () {
2524
- return this.t37_1.nr();
2524
+ protoOf(MappedMutableProblogTheory).lr = function () {
2525
+ return this.s37_1.lr();
2525
2526
  };
2526
- protoOf(MappedMutableProblogTheory).n1i = function () {
2527
- return this.t37_1.n1i();
2527
+ protoOf(MappedMutableProblogTheory).m1i = function () {
2528
+ return this.s37_1.m1i();
2528
2529
  };
2529
2530
  function MappedProblogTheory(clauses, unificator, theory) {
2530
- unificator = unificator === VOID ? Companion_getInstance_8().g1i() : unificator;
2531
+ unificator = unificator === VOID ? Companion_getInstance_8().f1i() : unificator;
2531
2532
  var tmp;
2532
2533
  if (theory === VOID) {
2533
2534
  var tmp_0 = Companion_instance_7;
@@ -2538,10 +2539,10 @@
2538
2539
  // Inline function 'kotlin.collections.flatMap' call
2539
2540
  // Inline function 'kotlin.collections.flatMapTo' call
2540
2541
  var destination = ArrayList_init_$Create$_0();
2541
- var _iterator__ex2g4s = clauses.p();
2542
- while (_iterator__ex2g4s.s()) {
2543
- var element = _iterator__ex2g4s.t();
2544
- var list = ClauseMappingUtils_getInstance().r37(element);
2542
+ var _iterator__ex2g4s = clauses.n();
2543
+ while (_iterator__ex2g4s.q()) {
2544
+ var element = _iterator__ex2g4s.r();
2545
+ var list = ClauseMappingUtils_getInstance().q37(element);
2545
2546
  addAll(destination, list);
2546
2547
  }
2547
2548
  tmp_1 = destination;
@@ -2552,106 +2553,106 @@
2552
2553
  tmp = theory;
2553
2554
  }
2554
2555
  theory = tmp;
2555
- this.v37_1 = theory;
2556
+ this.u37_1 = theory;
2556
2557
  }
2557
- protoOf(MappedProblogTheory).d1q = function () {
2558
+ protoOf(MappedProblogTheory).c1q = function () {
2558
2559
  return false;
2559
2560
  };
2560
- protoOf(MappedProblogTheory).q1q = function () {
2561
- return Companion_instance_8.ofIterable(this.n1i(), this);
2561
+ protoOf(MappedProblogTheory).p1q = function () {
2562
+ return Companion_instance_8.ofIterable(this.m1i(), this);
2562
2563
  };
2563
2564
  protoOf(MappedProblogTheory).toMutableTheory = function () {
2564
- return this.q1q();
2565
+ return this.p1q();
2565
2566
  };
2566
- protoOf(MappedProblogTheory).d1p = function () {
2567
+ protoOf(MappedProblogTheory).c1p = function () {
2567
2568
  return this;
2568
2569
  };
2569
2570
  protoOf(MappedProblogTheory).toImmutableTheory = function () {
2570
- return this.d1p();
2571
+ return this.c1p();
2571
2572
  };
2572
- protoOf(MappedProblogTheory).u37 = function (theory) {
2573
- return new MappedProblogTheory(null, this.n1i(), this.v37_1.plusTheory(theory));
2573
+ protoOf(MappedProblogTheory).t37 = function (theory) {
2574
+ return new MappedProblogTheory(null, this.m1i(), this.u37_1.plusTheory(theory));
2574
2575
  };
2575
- protoOf(MappedProblogTheory).q1p = function (theory) {
2576
+ protoOf(MappedProblogTheory).p1p = function (theory) {
2576
2577
  var tmp;
2577
2578
  if (isInterface(theory, ProblogTheory)) {
2578
- tmp = this.u37(theory);
2579
+ tmp = this.t37(theory);
2579
2580
  } else {
2580
- tmp = this.u37(new MappedProblogTheory(theory, this.n1i()));
2581
+ tmp = this.t37(new MappedProblogTheory(theory, this.m1i()));
2581
2582
  }
2582
2583
  return tmp;
2583
2584
  };
2584
2585
  protoOf(MappedProblogTheory).plusTheory = function (theory) {
2585
- return this.q1p(theory);
2586
+ return this.p1p(theory);
2586
2587
  };
2587
- protoOf(MappedProblogTheory).e1p = function (clause) {
2588
- var mapped = ClauseMappingUtils_getInstance().r37(clause);
2589
- return new MappedProblogTheory(null, this.n1i(), this.v37_1.plusTheory(Companion_instance_7.indexedOfIterable(this.n1i(), mapped)));
2588
+ protoOf(MappedProblogTheory).d1p = function (clause) {
2589
+ var mapped = ClauseMappingUtils_getInstance().q37(clause);
2590
+ return new MappedProblogTheory(null, this.m1i(), this.u37_1.plusTheory(Companion_instance_7.indexedOfIterable(this.m1i(), mapped)));
2590
2591
  };
2591
2592
  protoOf(MappedProblogTheory).plus = function (clause) {
2592
- return this.e1p(clause);
2593
+ return this.d1p(clause);
2593
2594
  };
2594
- protoOf(MappedProblogTheory).u1p = function (clauses) {
2595
+ protoOf(MappedProblogTheory).t1p = function (clauses) {
2595
2596
  // Inline function 'kotlin.collections.flatMap' call
2596
2597
  // Inline function 'kotlin.collections.flatMapTo' call
2597
2598
  var destination = ArrayList_init_$Create$_0();
2598
- var _iterator__ex2g4s = clauses.p();
2599
- while (_iterator__ex2g4s.s()) {
2600
- var element = _iterator__ex2g4s.t();
2601
- var list = ClauseMappingUtils_getInstance().r37(element);
2599
+ var _iterator__ex2g4s = clauses.n();
2600
+ while (_iterator__ex2g4s.q()) {
2601
+ var element = _iterator__ex2g4s.r();
2602
+ var list = ClauseMappingUtils_getInstance().q37(element);
2602
2603
  addAll(destination, list);
2603
2604
  }
2604
2605
  var mapped = destination;
2605
- return new MappedProblogTheory(null, this.n1i(), this.v37_1.assertAIterable(mapped));
2606
+ return new MappedProblogTheory(null, this.m1i(), this.u37_1.assertAIterable(mapped));
2606
2607
  };
2607
2608
  protoOf(MappedProblogTheory).assertAIterable = function (clauses) {
2608
- return this.u1p(clauses);
2609
+ return this.t1p(clauses);
2609
2610
  };
2610
- protoOf(MappedProblogTheory).x1p = function (clauses) {
2611
+ protoOf(MappedProblogTheory).w1p = function (clauses) {
2611
2612
  // Inline function 'kotlin.collections.flatMap' call
2612
2613
  // Inline function 'kotlin.collections.flatMapTo' call
2613
2614
  var destination = ArrayList_init_$Create$_0();
2614
- var _iterator__ex2g4s = clauses.p();
2615
- while (_iterator__ex2g4s.s()) {
2616
- var element = _iterator__ex2g4s.t();
2617
- var list = ClauseMappingUtils_getInstance().r37(element);
2615
+ var _iterator__ex2g4s = clauses.n();
2616
+ while (_iterator__ex2g4s.q()) {
2617
+ var element = _iterator__ex2g4s.r();
2618
+ var list = ClauseMappingUtils_getInstance().q37(element);
2618
2619
  addAll(destination, list);
2619
2620
  }
2620
2621
  var mapped = destination;
2621
- return new MappedProblogTheory(null, this.n1i(), this.v37_1.assertZIterable(mapped));
2622
+ return new MappedProblogTheory(null, this.m1i(), this.u37_1.assertZIterable(mapped));
2622
2623
  };
2623
2624
  protoOf(MappedProblogTheory).assertZIterable = function (clauses) {
2624
- return this.x1p(clauses);
2625
+ return this.w1p(clauses);
2625
2626
  };
2626
- protoOf(MappedProblogTheory).b1q = function (clauses) {
2627
+ protoOf(MappedProblogTheory).a1q = function (clauses) {
2627
2628
  // Inline function 'kotlin.collections.flatMap' call
2628
2629
  // Inline function 'kotlin.collections.flatMapTo' call
2629
2630
  var destination = ArrayList_init_$Create$_0();
2630
- var _iterator__ex2g4s = clauses.p();
2631
- while (_iterator__ex2g4s.s()) {
2632
- var element = _iterator__ex2g4s.t();
2633
- var list = ClauseMappingUtils_getInstance().r37(element);
2631
+ var _iterator__ex2g4s = clauses.n();
2632
+ while (_iterator__ex2g4s.q()) {
2633
+ var element = _iterator__ex2g4s.r();
2634
+ var list = ClauseMappingUtils_getInstance().q37(element);
2634
2635
  addAll(destination, list);
2635
2636
  }
2636
2637
  var mapped = destination;
2637
- var result = this.v37_1.retractIterable(mapped);
2638
+ var result = this.u37_1.retractIterable(mapped);
2638
2639
  var tmp;
2639
2640
  if (result instanceof Success) {
2640
- tmp = new Success(new MappedProblogTheory(null, this.n1i(), result.w1q_1), result.x1q_1);
2641
+ tmp = new Success(new MappedProblogTheory(null, this.m1i(), result.v1q_1), result.w1q_1);
2641
2642
  } else {
2642
- tmp = new Failure(new MappedProblogTheory(null, this.n1i(), result.k1p()));
2643
+ tmp = new Failure(new MappedProblogTheory(null, this.m1i(), result.j1p()));
2643
2644
  }
2644
2645
  return tmp;
2645
2646
  };
2646
2647
  protoOf(MappedProblogTheory).retractIterable = function (clauses) {
2647
- return this.b1q(clauses);
2648
+ return this.a1q(clauses);
2648
2649
  };
2649
- protoOf(MappedProblogTheory).f1j = function (clause) {
2650
- var mappedClauses = ClauseMappingUtils_getInstance().r37(clause);
2650
+ protoOf(MappedProblogTheory).e1j = function (clause) {
2651
+ var mappedClauses = ClauseMappingUtils_getInstance().q37(clause);
2651
2652
  var result = null;
2652
- var _iterator__ex2g4s = mappedClauses.p();
2653
- while (_iterator__ex2g4s.s()) {
2654
- var c = _iterator__ex2g4s.t();
2653
+ var _iterator__ex2g4s = mappedClauses.n();
2654
+ while (_iterator__ex2g4s.q()) {
2655
+ var c = _iterator__ex2g4s.r();
2655
2656
  var tmp;
2656
2657
  if (result == null) {
2657
2658
  tmp = true;
@@ -2659,152 +2660,152 @@
2659
2660
  tmp = !(result instanceof Failure);
2660
2661
  }
2661
2662
  if (tmp) {
2662
- result = this.v37_1.retractAll(c);
2663
+ result = this.u37_1.retractAll(c);
2663
2664
  }
2664
2665
  }
2665
2666
  var tmp_0;
2666
2667
  if (result instanceof Success) {
2667
- tmp_0 = new Success(new MappedProblogTheory(null, this.n1i(), result.w1q_1), result.x1q_1);
2668
+ tmp_0 = new Success(new MappedProblogTheory(null, this.m1i(), result.v1q_1), result.w1q_1);
2668
2669
  } else {
2669
2670
  tmp_0 = new Failure(this);
2670
2671
  }
2671
2672
  return tmp_0;
2672
2673
  };
2673
2674
  protoOf(MappedProblogTheory).retractAll = function (clause) {
2674
- return this.f1j(clause);
2675
+ return this.e1j(clause);
2675
2676
  };
2676
- protoOf(MappedProblogTheory).j1p = function (indicator) {
2677
- return new MappedProblogTheory(null, this.n1i(), this.v37_1.abolish(ClauseMappingUtils_getInstance().s37(indicator)));
2677
+ protoOf(MappedProblogTheory).i1p = function (indicator) {
2678
+ return new MappedProblogTheory(null, this.m1i(), this.u37_1.abolish(ClauseMappingUtils_getInstance().r37(indicator)));
2678
2679
  };
2679
2680
  protoOf(MappedProblogTheory).abolish = function (indicator) {
2680
- return this.j1p(indicator);
2681
+ return this.i1p(indicator);
2681
2682
  };
2682
- protoOf(MappedProblogTheory).r1q = function (struct) {
2683
- return this.s1p(Companion_instance.of(struct));
2683
+ protoOf(MappedProblogTheory).q1q = function (struct) {
2684
+ return this.r1p(Companion_instance.of(struct));
2684
2685
  };
2685
2686
  protoOf(MappedProblogTheory).assertAFact = function (struct) {
2686
- return this.r1q(struct);
2687
+ return this.q1q(struct);
2687
2688
  };
2688
- protoOf(MappedProblogTheory).s1q = function (struct) {
2689
- return this.w1p(Companion_instance.of(struct));
2689
+ protoOf(MappedProblogTheory).r1q = function (struct) {
2690
+ return this.v1p(Companion_instance.of(struct));
2690
2691
  };
2691
2692
  protoOf(MappedProblogTheory).assertZFact = function (struct) {
2692
- return this.s1q(struct);
2693
+ return this.r1q(struct);
2693
2694
  };
2694
- protoOf(MappedProblogTheory).s1p = function (clause) {
2695
- return this.u1p(listOf(clause));
2695
+ protoOf(MappedProblogTheory).r1p = function (clause) {
2696
+ return this.t1p(listOf(clause));
2696
2697
  };
2697
2698
  protoOf(MappedProblogTheory).assertA = function (clause) {
2698
- return this.s1p(clause);
2699
+ return this.r1p(clause);
2699
2700
  };
2700
- protoOf(MappedProblogTheory).v1p = function (clauses) {
2701
- return this.u1p(asIterable_0(clauses));
2701
+ protoOf(MappedProblogTheory).u1p = function (clauses) {
2702
+ return this.t1p(asIterable_0(clauses));
2702
2703
  };
2703
2704
  protoOf(MappedProblogTheory).assertASequence = function (clauses) {
2704
- return this.v1p(clauses);
2705
+ return this.u1p(clauses);
2705
2706
  };
2706
- protoOf(MappedProblogTheory).w1p = function (clause) {
2707
- return this.x1p(listOf(clause));
2707
+ protoOf(MappedProblogTheory).v1p = function (clause) {
2708
+ return this.w1p(listOf(clause));
2708
2709
  };
2709
2710
  protoOf(MappedProblogTheory).assertZ = function (clause) {
2710
- return this.w1p(clause);
2711
+ return this.v1p(clause);
2711
2712
  };
2712
- protoOf(MappedProblogTheory).y1p = function (clauses) {
2713
- return this.x1p(asIterable_0(clauses));
2713
+ protoOf(MappedProblogTheory).x1p = function (clauses) {
2714
+ return this.w1p(asIterable_0(clauses));
2714
2715
  };
2715
2716
  protoOf(MappedProblogTheory).assertZSequence = function (clauses) {
2716
- return this.y1p(clauses);
2717
+ return this.x1p(clauses);
2717
2718
  };
2718
- protoOf(MappedProblogTheory).u1q = function (head) {
2719
- return this.t1q(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2719
+ protoOf(MappedProblogTheory).t1q = function (head) {
2720
+ return this.s1q(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2720
2721
  };
2721
2722
  protoOf(MappedProblogTheory).retractByHead = function (head) {
2722
- return this.u1q(head);
2723
+ return this.t1q(head);
2723
2724
  };
2724
- protoOf(MappedProblogTheory).t1q = function (clause) {
2725
- return this.b1q(listOf(clause));
2725
+ protoOf(MappedProblogTheory).s1q = function (clause) {
2726
+ return this.a1q(listOf(clause));
2726
2727
  };
2727
2728
  protoOf(MappedProblogTheory).retract = function (clause) {
2728
- return this.t1q(clause);
2729
+ return this.s1q(clause);
2729
2730
  };
2730
- protoOf(MappedProblogTheory).a1q = function (clauses) {
2731
- return this.b1q(asIterable_0(clauses));
2731
+ protoOf(MappedProblogTheory).z1p = function (clauses) {
2732
+ return this.a1q(asIterable_0(clauses));
2732
2733
  };
2733
2734
  protoOf(MappedProblogTheory).retractSequence = function (clauses) {
2734
- return this.a1q(clauses);
2735
+ return this.z1p(clauses);
2735
2736
  };
2736
- protoOf(MappedProblogTheory).v1q = function (head) {
2737
- return this.f1j(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2737
+ protoOf(MappedProblogTheory).u1q = function (head) {
2738
+ return this.e1j(Companion_instance_3.of(head, [Companion_getInstance_0().anonymous()]));
2738
2739
  };
2739
2740
  protoOf(MappedProblogTheory).retractAllByHead = function (head) {
2740
- return this.v1q(head);
2741
+ return this.u1q(head);
2741
2742
  };
2742
2743
  protoOf(MappedProblogTheory).setUnificator = function (unificator) {
2743
- return this.v37_1.setUnificator(unificator);
2744
+ return this.u37_1.setUnificator(unificator);
2744
2745
  };
2745
2746
  protoOf(MappedProblogTheory).contains = function (clause) {
2746
- return this.v37_1.contains(clause);
2747
+ return this.u37_1.contains(clause);
2747
2748
  };
2748
2749
  protoOf(MappedProblogTheory).containsHead = function (head) {
2749
- return this.v37_1.containsHead(head);
2750
+ return this.u37_1.containsHead(head);
2750
2751
  };
2751
2752
  protoOf(MappedProblogTheory).containsIndicator = function (indicator) {
2752
- return this.v37_1.containsIndicator(indicator);
2753
+ return this.u37_1.containsIndicator(indicator);
2753
2754
  };
2754
2755
  protoOf(MappedProblogTheory).get = function (clause) {
2755
- return this.v37_1.get(clause);
2756
+ return this.u37_1.get(clause);
2756
2757
  };
2757
2758
  protoOf(MappedProblogTheory).getByHead = function (head) {
2758
- return this.v37_1.getByHead(head);
2759
+ return this.u37_1.getByHead(head);
2759
2760
  };
2760
2761
  protoOf(MappedProblogTheory).getByIndicator = function (indicator) {
2761
- return this.v37_1.getByIndicator(indicator);
2762
+ return this.u37_1.getByIndicator(indicator);
2762
2763
  };
2763
2764
  protoOf(MappedProblogTheory).toStringAsProlog = function (asPrologText) {
2764
- return this.v37_1.toStringAsProlog(asPrologText);
2765
+ return this.u37_1.toStringAsProlog(asPrologText);
2765
2766
  };
2766
2767
  protoOf(MappedProblogTheory).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
2767
- return this.v37_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2768
+ return this.u37_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
2768
2769
  };
2769
2770
  protoOf(MappedProblogTheory).clone = function () {
2770
- return this.v37_1.clone();
2771
+ return this.u37_1.clone();
2771
2772
  };
2772
- protoOf(MappedProblogTheory).x1i = function () {
2773
- return this.v37_1.x1i();
2773
+ protoOf(MappedProblogTheory).w1i = function () {
2774
+ return this.u37_1.w1i();
2774
2775
  };
2775
- protoOf(MappedProblogTheory).q1i = function () {
2776
- return this.v37_1.q1i();
2776
+ protoOf(MappedProblogTheory).p1i = function () {
2777
+ return this.u37_1.p1i();
2777
2778
  };
2778
- protoOf(MappedProblogTheory).s1i = function () {
2779
- return this.v37_1.s1i();
2779
+ protoOf(MappedProblogTheory).r1i = function () {
2780
+ return this.u37_1.r1i();
2780
2781
  };
2781
- protoOf(MappedProblogTheory).n1p = function () {
2782
- return this.v37_1.n1p();
2782
+ protoOf(MappedProblogTheory).m1p = function () {
2783
+ return this.u37_1.m1p();
2783
2784
  };
2784
- protoOf(MappedProblogTheory).p = function () {
2785
- return this.v37_1.p();
2785
+ protoOf(MappedProblogTheory).n = function () {
2786
+ return this.u37_1.n();
2786
2787
  };
2787
2788
  protoOf(MappedProblogTheory).getTag = function (name) {
2788
- return this.v37_1.getTag(name);
2789
+ return this.u37_1.getTag(name);
2789
2790
  };
2790
2791
  protoOf(MappedProblogTheory).resetTags = function (tags) {
2791
- return this.v37_1.resetTags(tags);
2792
+ return this.u37_1.resetTags(tags);
2792
2793
  };
2793
2794
  protoOf(MappedProblogTheory).containsTag = function (name) {
2794
- return this.v37_1.containsTag(name);
2795
+ return this.u37_1.containsTag(name);
2795
2796
  };
2796
- protoOf(MappedProblogTheory).nr = function () {
2797
- return this.v37_1.nr();
2797
+ protoOf(MappedProblogTheory).lr = function () {
2798
+ return this.u37_1.lr();
2798
2799
  };
2799
- protoOf(MappedProblogTheory).n1i = function () {
2800
- return this.v37_1.n1i();
2800
+ protoOf(MappedProblogTheory).m1i = function () {
2801
+ return this.u37_1.m1i();
2801
2802
  };
2802
2803
  function NothingClauseMapper() {
2803
2804
  }
2804
- protoOf(NothingClauseMapper).f37 = function (clause) {
2805
+ protoOf(NothingClauseMapper).e37 = function (clause) {
2805
2806
  return true;
2806
2807
  };
2807
- protoOf(NothingClauseMapper).g37 = function (clause) {
2808
+ protoOf(NothingClauseMapper).f37 = function (clause) {
2808
2809
  return listOf(clause);
2809
2810
  };
2810
2811
  var NothingClauseMapper_instance;
@@ -2813,63 +2814,63 @@
2813
2814
  }
2814
2815
  function ProbabilisticClauseMapper() {
2815
2816
  }
2816
- protoOf(ProbabilisticClauseMapper).f37 = function (clause) {
2817
+ protoOf(ProbabilisticClauseMapper).e37 = function (clause) {
2817
2818
  var tmp;
2818
2819
  if (isInterface(clause, Rule)) {
2819
- tmp = clause.fw().zt() === '::';
2820
+ tmp = clause.dw().xt() === '::';
2820
2821
  } else {
2821
2822
  tmp = false;
2822
2823
  }
2823
2824
  return tmp;
2824
2825
  };
2825
- protoOf(ProbabilisticClauseMapper).g37 = function (clause) {
2826
+ protoOf(ProbabilisticClauseMapper).f37 = function (clause) {
2826
2827
  if (!isInterface(clause, Rule)) {
2827
2828
  throw new ClauseMappingException('Clause is not an instance of Rule: ' + clause.toString());
2828
2829
  }
2829
- var mapped = this.h37(clause);
2830
- return listOf(this.i37(mapped.xc_1, Companion_getInstance_11().u36(mapped.yc_1)));
2830
+ var mapped = this.g37(clause);
2831
+ return listOf(this.h37(mapped.first, Companion_getInstance_11().t36(mapped.second)));
2831
2832
  };
2832
- protoOf(ProbabilisticClauseMapper).h37 = function (rule) {
2833
- if (!(rule.fw().tt() === 2)) {
2834
- throw TuPrologException_init_$Create$('Invalid probabilistic rule: ' + rule.fw().toString());
2833
+ protoOf(ProbabilisticClauseMapper).g37 = function (rule) {
2834
+ if (!(rule.dw().rt() === 2)) {
2835
+ throw TuPrologException_init_$Create$('Invalid probabilistic rule: ' + rule.dw().toString());
2835
2836
  }
2836
- var probTerm = rule.fw().get(0);
2837
+ var probTerm = rule.dw().get(0);
2837
2838
  var tmp;
2838
2839
  if (isInterface(probTerm, Numeric)) {
2839
- tmp = probTerm.py().toDouble();
2840
+ tmp = probTerm.ny().toDouble();
2840
2841
  } else {
2841
2842
  tmp = solveArithmeticExpression(probTerm);
2842
2843
  }
2843
2844
  var probability = tmp;
2844
- var headTerm = safeToStruct(rule.fw().get(1));
2845
- if (headTerm.zt() === 'evidence') {
2846
- throw TuPrologException_init_$Create$("Probability notation can't be expressed on evidence: " + rule.fw().toString());
2845
+ var headTerm = safeToStruct(rule.dw().get(1));
2846
+ if (headTerm.xt() === 'evidence') {
2847
+ throw TuPrologException_init_$Create$("Probability notation can't be expressed on evidence: " + rule.dw().toString());
2847
2848
  }
2848
- var bodyTerm = rule.gw();
2849
- var tmp_0 = rule.gw();
2849
+ var bodyTerm = rule.ew();
2850
+ var tmp_0 = rule.ew();
2850
2851
  if (isInterface(tmp_0, Truth)) {
2851
- if (!rule.gw().xt() && probability < 1.0) {
2852
+ if (!rule.ew().vt() && probability < 1.0) {
2852
2853
  probability = 1.0 - probability;
2853
2854
  bodyTerm = Companion_getInstance_7().of(true);
2854
2855
  }
2855
2856
  }
2856
2857
  var anonVariablesFix = withoutAnonymousVars(Companion_instance_3.of(headTerm, [bodyTerm]));
2857
- headTerm = anonVariablesFix.fw();
2858
- bodyTerm = anonVariablesFix.gw();
2858
+ headTerm = anonVariablesFix.dw();
2859
+ bodyTerm = anonVariablesFix.ew();
2859
2860
  var extraVariables = get_extraVariables(Companion_instance_3.of(headTerm, [bodyTerm]));
2860
- var probTerm_0 = new ProbTerm(ClauseMappingUtils_getInstance().q37(), probability, headTerm, extraVariables);
2861
+ var probTerm_0 = new ProbTerm(ClauseMappingUtils_getInstance().p37(), probability, headTerm, extraVariables);
2861
2862
  return new Pair(Companion_instance_3.of(headTerm, [bodyTerm]), probTerm_0);
2862
2863
  };
2863
- protoOf(ProbabilisticClauseMapper).i37 = function (rule, explanation) {
2864
- var tmp = rule.gw();
2864
+ protoOf(ProbabilisticClauseMapper).h37 = function (rule, explanation) {
2865
+ var tmp = rule.ew();
2865
2866
  if (isInterface(tmp, Truth)) {
2866
- return Companion_instance_3.of(withExplanation(rule.fw(), toTerm(explanation)), [rule.gw()]);
2867
+ return Companion_instance_3.of(withExplanation(rule.dw(), toTerm(explanation)), [rule.ew()]);
2867
2868
  }
2868
2869
  var explanationVar = Companion_getInstance_0().of('EXPL_Res');
2869
2870
  var explanationBodyVar = Companion_getInstance_0().of('EXPL_Body');
2870
- var newBody = withBodyExplanation(rule.gw(), explanationBodyVar);
2871
+ var newBody = withBodyExplanation(rule.ew(), explanationBodyVar);
2871
2872
  var tmp_0 = Companion_instance_3;
2872
- var tmp_1 = withExplanation(rule.fw(), explanationVar);
2873
+ var tmp_1 = withExplanation(rule.dw(), explanationVar);
2873
2874
  var tmp_2 = Companion_getInstance_1();
2874
2875
  var tmp_3 = Companion_getInstance_1();
2875
2876
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
@@ -2882,36 +2883,36 @@
2882
2883
  }
2883
2884
  function PrologClauseMapper() {
2884
2885
  }
2885
- protoOf(PrologClauseMapper).f37 = function (clause) {
2886
+ protoOf(PrologClauseMapper).e37 = function (clause) {
2886
2887
  return isInterface(clause, Rule);
2887
2888
  };
2888
- protoOf(PrologClauseMapper).g37 = function (clause) {
2889
+ protoOf(PrologClauseMapper).f37 = function (clause) {
2889
2890
  if (!isInterface(clause, Rule)) {
2890
2891
  throw new ClauseMappingException('Clause is not an instance of Rule: ' + clause.toString());
2891
2892
  }
2892
- var tmp = clause.gw();
2893
+ var tmp = clause.ew();
2893
2894
  if (isInterface(tmp, Truth)) {
2894
- return listOf(Companion_instance_3.of(withExplanation(clause.fw(), toTerm(Companion_getInstance_11().q36_1)), [clause.gw()]));
2895
+ return listOf(Companion_instance_3.of(withExplanation(clause.dw(), toTerm(Companion_getInstance_11().p36_1)), [clause.ew()]));
2895
2896
  }
2896
2897
  var explanationVar = Companion_getInstance_0().of('EXPL_Res');
2897
- return listOf(Companion_instance_3.of(withExplanation(clause.fw(), explanationVar), [withBodyExplanation(clause.gw(), explanationVar)]));
2898
+ return listOf(Companion_instance_3.of(withExplanation(clause.dw(), explanationVar), [withBodyExplanation(clause.ew(), explanationVar)]));
2898
2899
  };
2899
2900
  var PrologClauseMapper_instance;
2900
2901
  function PrologClauseMapper_getInstance() {
2901
2902
  return PrologClauseMapper_instance;
2902
2903
  }
2903
- function _get_prob__dc6m52($this, _this__u8e3s4) {
2904
- return _this__u8e3s4.n35_1.c37();
2904
+ function _get_prob__dc6m52($this, $receiver) {
2905
+ return $receiver.m35_1.b37();
2905
2906
  }
2906
2907
  function ProbExplAnd() {
2907
2908
  ProbExplAnd_instance = this;
2908
2909
  NonBacktrackable.call(this, 'prob_expl_and');
2909
2910
  }
2910
- protoOf(ProbExplAnd).h2m = function (_this__u8e3s4, first, second, third) {
2911
- Companion_getInstance_9().p2d(_this__u8e3s4, 1);
2912
- Companion_getInstance_9().t2d(_this__u8e3s4, 1);
2913
- if (ProbSetConfig_getInstance().x37(_this__u8e3s4.context)) {
2914
- return _this__u8e3s4.replyWith(Companion_getInstance_9().j2d(_this__u8e3s4, first, toTerm(Companion_getInstance_11().q36_1)), VOID, []);
2911
+ protoOf(ProbExplAnd).g2m = function (_this__u8e3s4, first, second, third) {
2912
+ Companion_getInstance_9().o2d(_this__u8e3s4, 1);
2913
+ Companion_getInstance_9().s2d(_this__u8e3s4, 1);
2914
+ if (ProbSetConfig_getInstance().w37(_this__u8e3s4.context)) {
2915
+ return _this__u8e3s4.replyWith(Companion_getInstance_9().i2d(_this__u8e3s4, first, toTerm(Companion_getInstance_11().p36_1)), VOID, []);
2915
2916
  }
2916
2917
  var tmp;
2917
2918
  var tmp_0;
@@ -2927,12 +2928,12 @@
2927
2928
  tmp_0 = false;
2928
2929
  }
2929
2930
  if (tmp_0) {
2930
- var explanation = _get_prob__dc6m52(this, second) === 0.0 || _get_prob__dc6m52(this, third) === 0.0 ? Companion_getInstance_11().p36_1 : _get_prob__dc6m52(this, second) === 1.0 && _get_prob__dc6m52(this, third) === 1.0 ? Companion_getInstance_11().q36_1 : _get_prob__dc6m52(this, second) === 1.0 ? third.n35_1 : _get_prob__dc6m52(this, third) === 1.0 ? second.n35_1 : second.n35_1.and(third.n35_1);
2931
+ var explanation = _get_prob__dc6m52(this, second) === 0.0 || _get_prob__dc6m52(this, third) === 0.0 ? Companion_getInstance_11().o36_1 : _get_prob__dc6m52(this, second) === 1.0 && _get_prob__dc6m52(this, third) === 1.0 ? Companion_getInstance_11().p36_1 : _get_prob__dc6m52(this, second) === 1.0 ? third.m35_1 : _get_prob__dc6m52(this, third) === 1.0 ? second.m35_1 : second.m35_1.and(third.m35_1);
2931
2932
  var tmp_2;
2932
- if (explanation.c37() === 0.0) {
2933
+ if (explanation.b37() === 0.0) {
2933
2934
  tmp_2 = _this__u8e3s4.replyWithCondition(false, VOID, []);
2934
2935
  } else {
2935
- tmp_2 = _this__u8e3s4.replyWith(Companion_getInstance_9().j2d(_this__u8e3s4, first, new ProbExplanationTerm(explanation)), VOID, []);
2936
+ tmp_2 = _this__u8e3s4.replyWith(Companion_getInstance_9().i2d(_this__u8e3s4, first, new ProbExplanationTerm(explanation)), VOID, []);
2936
2937
  }
2937
2938
  tmp = tmp_2;
2938
2939
  } else {
@@ -2942,8 +2943,8 @@
2942
2943
  }
2943
2944
  return tmp;
2944
2945
  };
2945
- protoOf(ProbExplAnd).p2f = function (_this__u8e3s4, first, second, third) {
2946
- return this.h2m(_this__u8e3s4, first, second, third);
2946
+ protoOf(ProbExplAnd).o2f = function (_this__u8e3s4, first, second, third) {
2947
+ return this.g2m(_this__u8e3s4, first, second, third);
2947
2948
  };
2948
2949
  var ProbExplAnd_instance;
2949
2950
  function ProbExplAnd_getInstance() {
@@ -2952,22 +2953,22 @@
2952
2953
  return ProbExplAnd_instance;
2953
2954
  }
2954
2955
  function ProbHelper$computeAllSubstitutions$slambda($goal, $this_computeAllSubstitutions, $third, $first, $second, $goalSignature, resultContinuation) {
2955
- this.g38_1 = $goal;
2956
- this.h38_1 = $this_computeAllSubstitutions;
2957
- this.i38_1 = $third;
2958
- this.j38_1 = $first;
2959
- this.k38_1 = $second;
2960
- this.l38_1 = $goalSignature;
2956
+ this.f38_1 = $goal;
2957
+ this.g38_1 = $this_computeAllSubstitutions;
2958
+ this.h38_1 = $third;
2959
+ this.i38_1 = $first;
2960
+ this.j38_1 = $second;
2961
+ this.k38_1 = $goalSignature;
2961
2962
  CoroutineImpl.call(this, resultContinuation);
2962
2963
  }
2963
- protoOf(ProbHelper$computeAllSubstitutions$slambda).y2n = function ($this$sequence, $completion) {
2964
- var tmp = this.z2n($this$sequence, $completion);
2964
+ protoOf(ProbHelper$computeAllSubstitutions$slambda).x2n = function ($this$sequence, $completion) {
2965
+ var tmp = this.y2n($this$sequence, $completion);
2965
2966
  tmp.d8_1 = Unit_instance;
2966
2967
  tmp.e8_1 = null;
2967
2968
  return tmp.j8();
2968
2969
  };
2969
2970
  protoOf(ProbHelper$computeAllSubstitutions$slambda).a9 = function (p1, $completion) {
2970
- return this.y2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2971
+ return this.x2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2971
2972
  };
2972
2973
  protoOf(ProbHelper$computeAllSubstitutions$slambda).j8 = function () {
2973
2974
  var suspendResult = this.d8_1;
@@ -2977,27 +2978,27 @@
2977
2978
  switch (tmp) {
2978
2979
  case 0:
2979
2980
  this.c8_1 = 18;
2980
- var tmp0_subject = this.g38_1.zt();
2981
+ var tmp0_subject = this.f38_1.xt();
2981
2982
  switch (tmp0_subject) {
2982
2983
  case '\\+':
2983
2984
  case 'not':
2984
2985
  this.b8_1 = 16;
2985
2986
  var tmp_0;
2986
- if (ProbSetConfig_getInstance().x37(this.h38_1.context)) {
2987
+ if (ProbSetConfig_getInstance().w37(this.g38_1.context)) {
2987
2988
  var tmp_1 = Companion_getInstance_9();
2988
2989
  var tmp_2 = Companion_getInstance_1();
2989
- var tmp_3 = this.g38_1.zt();
2990
+ var tmp_3 = this.f38_1.xt();
2990
2991
  var tmp_4 = Companion_getInstance_1();
2991
2992
  var this_0 = Prob_getInstance();
2992
- tmp_0 = tmp_1.j2d(this.h38_1, this.i38_1, tmp_2.of(tmp_3, [tmp_4.of(this_0.signature.name, [Companion_getInstance_0().anonymous(), this.g38_1.get(0)])])).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1)));
2993
+ tmp_0 = tmp_1.i2d(this.g38_1, this.h38_1, tmp_2.of(tmp_3, [tmp_4.of(this_0.signature.name, [Companion_getInstance_0().anonymous(), this.f38_1.get(0)])])).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1)));
2993
2994
  } else {
2994
2995
  var tmp_5 = Companion_getInstance_9();
2995
2996
  var tmp_6 = Companion_getInstance_1();
2996
2997
  var this_1 = ProbNegationAsFailure_getInstance();
2997
- tmp_0 = tmp_5.j2d(this.h38_1, this.i38_1, tmp_6.of(this_1.signature.name, [this.j38_1, this.g38_1.get(0)]));
2998
+ tmp_0 = tmp_5.i2d(this.g38_1, this.h38_1, tmp_6.of(this_1.signature.name, [this.i38_1, this.f38_1.get(0)]));
2998
2999
  }
2999
3000
 
3000
- suspendResult = this.m38_1.gd(tmp_0, this);
3001
+ suspendResult = this.l38_1.bd(tmp_0, this);
3001
3002
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3002
3003
  return suspendResult;
3003
3004
  }
@@ -3010,13 +3011,13 @@
3010
3011
  case '->':
3011
3012
  this.b8_1 = 15;
3012
3013
  var tmp_7;
3013
- if (ProbSetConfig_getInstance().x37(this.h38_1.context)) {
3014
- tmp_7 = Companion_getInstance_9().j2d(this.h38_1, this.i38_1, withBodyExplanation(this.g38_1, Companion_getInstance_0().anonymous())).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1)));
3014
+ if (ProbSetConfig_getInstance().w37(this.g38_1.context)) {
3015
+ tmp_7 = Companion_getInstance_9().i2d(this.g38_1, this.h38_1, withBodyExplanation(this.f38_1, Companion_getInstance_0().anonymous())).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1)));
3015
3016
  } else {
3016
- tmp_7 = Companion_getInstance_9().j2d(this.h38_1, this.i38_1, withBodyExplanation(this.g38_1, this.j38_1));
3017
+ tmp_7 = Companion_getInstance_9().i2d(this.g38_1, this.h38_1, withBodyExplanation(this.f38_1, this.i38_1));
3017
3018
  }
3018
3019
 
3019
- suspendResult = this.m38_1.gd(tmp_7, this);
3020
+ suspendResult = this.l38_1.bd(tmp_7, this);
3020
3021
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3021
3022
  return suspendResult;
3022
3023
  }
@@ -3024,9 +3025,9 @@
3024
3025
  continue $sm;
3025
3026
  default:
3026
3027
  if (tmp0_subject === 'call') {
3027
- var newGoal = this.g38_1.get(0);
3028
+ var newGoal = this.f38_1.get(0);
3028
3029
  this.b8_1 = 14;
3029
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, Companion_instance_0.of(Companion_getInstance_1().of('ensure_executable', [newGoal]), Companion_getInstance_1().of(this.g38_1.zt(), [withBodyExplanation(newGoal, this.j38_1)]))), this);
3030
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, Companion_instance_0.of(Companion_getInstance_1().of('ensure_executable', [newGoal]), Companion_getInstance_1().of(this.f38_1.xt(), [withBodyExplanation(newGoal, this.i38_1)]))), this);
3030
3031
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3031
3032
  return suspendResult;
3032
3033
  }
@@ -3034,18 +3035,18 @@
3034
3035
  } else {
3035
3036
  if (tmp0_subject === 'catch') {
3036
3037
  this.b8_1 = 13;
3037
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, Companion_getInstance_1().of(this.g38_1.zt(), [withBodyExplanation(this.g38_1.get(0), this.j38_1), this.g38_1.get(1), withBodyExplanation(this.g38_1.get(2), this.j38_1)])), this);
3038
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, Companion_getInstance_1().of(this.f38_1.xt(), [withBodyExplanation(this.f38_1.get(0), this.i38_1), this.f38_1.get(1), withBodyExplanation(this.f38_1.get(2), this.i38_1)])), this);
3038
3039
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3039
3040
  return suspendResult;
3040
3041
  }
3041
3042
  continue $sm;
3042
3043
  } else {
3043
3044
  if (tmp0_subject === 'findall') {
3044
- var this_2 = this.g38_1.au();
3045
+ var this_2 = this.f38_1.yt();
3045
3046
  var goalArgs = copyToArray(this_2);
3046
3047
  goalArgs[1] = withBodyExplanation(goalArgs[1], Companion_getInstance_0().anonymous());
3047
3048
  this.b8_1 = 12;
3048
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, Companion_getInstance_1().of(this.g38_1.zt(), goalArgs.slice())).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1))), this);
3049
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, Companion_getInstance_1().of(this.f38_1.xt(), goalArgs.slice())).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1))), this);
3049
3050
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3050
3051
  return suspendResult;
3051
3052
  }
@@ -3055,22 +3056,22 @@
3055
3056
  case 'assert':
3056
3057
  case 'asserta':
3057
3058
  case 'assertz':
3058
- var subGoal = this.g38_1.get(0);
3059
+ var subGoal = this.f38_1.get(0);
3059
3060
  var tmp_8;
3060
3061
  if (isInterface(subGoal, Clause)) {
3061
- tmp_8 = extractSignature(ensureNotNull(subGoal.fw()));
3062
+ tmp_8 = extractSignature(ensureNotNull(subGoal.dw()));
3062
3063
  } else {
3063
3064
  tmp_8 = extractSignature(safeToStruct(subGoal));
3064
3065
  }
3065
3066
 
3066
3067
  var subGoalSignature = tmp_8;
3067
3068
  var tmp_9;
3068
- if (this.h38_1.context.k1s().containsSignature(subGoalSignature)) {
3069
+ if (this.g38_1.context.j1s().containsSignature(subGoalSignature)) {
3069
3070
  tmp_9 = true;
3070
3071
  } else {
3071
3072
  var tmp_10;
3072
3073
  if (isInterface(subGoal, Clause)) {
3073
- tmp_10 = !subGoal.pw();
3074
+ tmp_10 = !subGoal.nw();
3074
3075
  } else {
3075
3076
  tmp_10 = false;
3076
3077
  }
@@ -3079,7 +3080,7 @@
3079
3080
 
3080
3081
  if (tmp_9) {
3081
3082
  this.b8_1 = 10;
3082
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, this.g38_1).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1))), this);
3083
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, this.f38_1).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1))), this);
3083
3084
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3084
3085
  return suspendResult;
3085
3086
  }
@@ -3087,15 +3088,15 @@
3087
3088
  } else {
3088
3089
  var tmp_11;
3089
3090
  if (isInterface(subGoal, Clause)) {
3090
- tmp_11 = ClauseMappingUtils_getInstance().r37(subGoal);
3091
+ tmp_11 = ClauseMappingUtils_getInstance().q37(subGoal);
3091
3092
  } else {
3092
3093
  if (isInterface(subGoal, Struct)) {
3093
- var this_3 = ClauseMappingUtils_getInstance().r37(Companion_instance.of(subGoal));
3094
+ var this_3 = ClauseMappingUtils_getInstance().q37(Companion_instance.of(subGoal));
3094
3095
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
3095
- var _iterator__ex2g4s = this_3.p();
3096
- while (_iterator__ex2g4s.s()) {
3097
- var item = _iterator__ex2g4s.t();
3098
- destination.n(ensureNotNull(item.fw()));
3096
+ var _iterator__ex2g4s = this_3.n();
3097
+ while (_iterator__ex2g4s.q()) {
3098
+ var item = _iterator__ex2g4s.r();
3099
+ destination.l(ensureNotNull(item.dw()));
3099
3100
  }
3100
3101
  tmp_11 = destination;
3101
3102
  } else {
@@ -3105,12 +3106,12 @@
3105
3106
  var newGoals = tmp_11;
3106
3107
  this.b8_1 = 9;
3107
3108
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(newGoals, 10));
3108
- var _iterator__ex2g4s_0 = newGoals.p();
3109
- while (_iterator__ex2g4s_0.s()) {
3110
- var item_0 = _iterator__ex2g4s_0.t();
3111
- destination_0.n(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, Companion_getInstance_1().of(this.g38_1.zt(), [item_0])).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1))));
3109
+ var _iterator__ex2g4s_0 = newGoals.n();
3110
+ while (_iterator__ex2g4s_0.q()) {
3111
+ var item_0 = _iterator__ex2g4s_0.r();
3112
+ destination_0.l(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, Companion_getInstance_1().of(this.f38_1.xt(), [item_0])).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1))));
3112
3113
  }
3113
- suspendResult = this.m38_1.id(destination_0, this);
3114
+ suspendResult = this.l38_1.dd(destination_0, this);
3114
3115
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3115
3116
  return suspendResult;
3116
3117
  }
@@ -3121,20 +3122,20 @@
3121
3122
  switch (tmp0_subject) {
3122
3123
  case 'retract':
3123
3124
  case 'retractall':
3124
- var goalArg = this.g38_1.get(0);
3125
+ var goalArg = this.f38_1.get(0);
3125
3126
  this.b8_1 = 8;
3126
3127
  var tmp_12 = Companion_getInstance_9();
3127
3128
  var tmp_13 = Companion_getInstance_1();
3128
- var tmp_14 = this.g38_1.zt();
3129
+ var tmp_14 = this.f38_1.xt();
3129
3130
  var tmp_15;
3130
3131
  var tmp_16;
3131
3132
  var tmp_17;
3132
- if (goalArg.gu()) {
3133
+ if (goalArg.eu()) {
3133
3134
  tmp_17 = true;
3134
3135
  } else {
3135
3136
  var tmp_18;
3136
3137
  if (isInterface(goalArg, Struct)) {
3137
- tmp_18 = goalArg.zt() === ':-';
3138
+ tmp_18 = goalArg.xt() === ':-';
3138
3139
  } else {
3139
3140
  tmp_18 = false;
3140
3141
  }
@@ -3144,16 +3145,16 @@
3144
3145
  if (tmp_17) {
3145
3146
  tmp_16 = true;
3146
3147
  } else {
3147
- tmp_16 = this.h38_1.context.k1s().containsSignature(extractSignature(safeToStruct(goalArg)));
3148
+ tmp_16 = this.g38_1.context.j1s().containsSignature(extractSignature(safeToStruct(goalArg)));
3148
3149
  }
3149
3150
 
3150
3151
  if (tmp_16) {
3151
3152
  tmp_15 = goalArg;
3152
3153
  } else {
3153
- tmp_15 = withExplanation(goalArg, this.j38_1);
3154
+ tmp_15 = withExplanation(goalArg, this.i38_1);
3154
3155
  }
3155
3156
 
3156
- suspendResult = this.m38_1.gd(tmp_12.j2d(this.h38_1, this.i38_1, tmp_13.of(tmp_14, [tmp_15])), this);
3157
+ suspendResult = this.l38_1.bd(tmp_12.i2d(this.g38_1, this.h38_1, tmp_13.of(tmp_14, [tmp_15])), this);
3157
3158
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3158
3159
  return suspendResult;
3159
3160
  }
@@ -3161,23 +3162,23 @@
3161
3162
  continue $sm;
3162
3163
  default:
3163
3164
  if (tmp0_subject === 'clause') {
3164
- var subGoal_0 = this.g38_1.get(0);
3165
+ var subGoal_0 = this.f38_1.get(0);
3165
3166
  var tmp_19;
3166
3167
  if (!isInterface(subGoal_0, Struct)) {
3167
3168
  tmp_19 = true;
3168
3169
  } else {
3169
- tmp_19 = this.h38_1.context.k1s().hasProtected(extractSignature(subGoal_0));
3170
+ tmp_19 = this.g38_1.context.j1s().hasProtected(extractSignature(subGoal_0));
3170
3171
  }
3171
3172
  if (tmp_19) {
3172
3173
  this.b8_1 = 6;
3173
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, this.g38_1).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1))), this);
3174
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, this.f38_1).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1))), this);
3174
3175
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3175
3176
  return suspendResult;
3176
3177
  }
3177
3178
  continue $sm;
3178
3179
  } else {
3179
3180
  this.b8_1 = 5;
3180
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, Companion_getInstance_1().of(this.g38_1.zt(), [withExplanation(this.g38_1.get(0), this.j38_1), this.g38_1.get(1)])), this);
3181
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, Companion_getInstance_1().of(this.f38_1.xt(), [withExplanation(this.f38_1.get(0), this.i38_1), this.f38_1.get(1)])), this);
3181
3182
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3182
3183
  return suspendResult;
3183
3184
  }
@@ -3186,16 +3187,16 @@
3186
3187
  } else {
3187
3188
  var tmp_20 = this;
3188
3189
  var tmp_21;
3189
- var tmp_22 = this.k38_1;
3190
+ var tmp_22 = this.j38_1;
3190
3191
  if (isInterface(tmp_22, Truth)) {
3191
3192
  tmp_21 = true;
3192
3193
  } else {
3193
- tmp_21 = this.h38_1.context.k1s().containsSignature(this.l38_1);
3194
+ tmp_21 = this.g38_1.context.j1s().containsSignature(this.k38_1);
3194
3195
  }
3195
- tmp_20.n38_1 = tmp_21;
3196
- if (this.n38_1 || this.h38_1.context.m1s().containsIndicator(this.l38_1.toIndicator()) || this.h38_1.context.n1s().containsIndicator(this.l38_1.toIndicator())) {
3196
+ tmp_20.m38_1 = tmp_21;
3197
+ if (this.m38_1 || this.g38_1.context.l1s().containsIndicator(this.k38_1.toIndicator()) || this.g38_1.context.m1s().containsIndicator(this.k38_1.toIndicator())) {
3197
3198
  this.b8_1 = 1;
3198
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, this.g38_1).plus(Companion_getInstance_9().j2d(this.h38_1, this.j38_1, toTerm(Companion_getInstance_11().q36_1))), this);
3199
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, this.f38_1).plus(Companion_getInstance_9().i2d(this.g38_1, this.i38_1, toTerm(Companion_getInstance_11().p36_1))), this);
3199
3200
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3200
3201
  return suspendResult;
3201
3202
  }
@@ -3225,9 +3226,9 @@
3225
3226
  this.b8_1 = 2;
3226
3227
  continue $sm;
3227
3228
  case 2:
3228
- if (!this.n38_1) {
3229
+ if (!this.m38_1) {
3229
3230
  this.b8_1 = 3;
3230
- suspendResult = this.m38_1.gd(Companion_getInstance_9().j2d(this.h38_1, this.i38_1, withExplanation(this.g38_1, this.j38_1)), this);
3231
+ suspendResult = this.l38_1.bd(Companion_getInstance_9().i2d(this.g38_1, this.h38_1, withExplanation(this.f38_1, this.i38_1)), this);
3231
3232
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3232
3233
  return suspendResult;
3233
3234
  }
@@ -3295,32 +3296,30 @@
3295
3296
  }
3296
3297
  while (true);
3297
3298
  };
3298
- protoOf(ProbHelper$computeAllSubstitutions$slambda).z2n = function ($this$sequence, completion) {
3299
- var i = new ProbHelper$computeAllSubstitutions$slambda(this.g38_1, this.h38_1, this.i38_1, this.j38_1, this.k38_1, this.l38_1, completion);
3300
- i.m38_1 = $this$sequence;
3299
+ protoOf(ProbHelper$computeAllSubstitutions$slambda).y2n = function ($this$sequence, completion) {
3300
+ var i = new ProbHelper$computeAllSubstitutions$slambda(this.f38_1, this.g38_1, this.h38_1, this.i38_1, this.j38_1, this.k38_1, completion);
3301
+ i.l38_1 = $this$sequence;
3301
3302
  return i;
3302
3303
  };
3303
3304
  function ProbHelper$computeAllSubstitutions$slambda_0($goal, $this_computeAllSubstitutions, $third, $first, $second, $goalSignature, resultContinuation) {
3304
3305
  var i = new ProbHelper$computeAllSubstitutions$slambda($goal, $this_computeAllSubstitutions, $third, $first, $second, $goalSignature, resultContinuation);
3305
- var l = function ($this$sequence, $completion) {
3306
- return i.y2n($this$sequence, $completion);
3307
- };
3308
- l.$arity = 1;
3309
- return l;
3306
+ return constructCallableReference(function ($this$sequence, $completion) {
3307
+ return i.x2n($this$sequence, $completion);
3308
+ }, 1);
3310
3309
  }
3311
3310
  function ProbHelper() {
3312
3311
  ProbHelper_instance = this;
3313
3312
  WithoutSideEffects.call(this, 'prob_helper');
3314
3313
  }
3315
- protoOf(ProbHelper).z2j = function (_this__u8e3s4, first, second, third) {
3316
- Companion_getInstance_9().p2d(_this__u8e3s4, 1);
3317
- Companion_getInstance_9().t2d(_this__u8e3s4, 1);
3314
+ protoOf(ProbHelper).y2j = function (_this__u8e3s4, first, second, third) {
3315
+ Companion_getInstance_9().o2d(_this__u8e3s4, 1);
3316
+ Companion_getInstance_9().s2d(_this__u8e3s4, 1);
3318
3317
  var goal = safeToStruct(second);
3319
3318
  var goalSignature = extractSignature(goal);
3320
3319
  return sequence(ProbHelper$computeAllSubstitutions$slambda_0(goal, _this__u8e3s4, third, first, second, goalSignature, null));
3321
3320
  };
3322
- protoOf(ProbHelper).l2f = function (_this__u8e3s4, first, second, third) {
3323
- return this.z2j(_this__u8e3s4, first, second, third);
3321
+ protoOf(ProbHelper).k2f = function (_this__u8e3s4, first, second, third) {
3322
+ return this.y2j(_this__u8e3s4, first, second, third);
3324
3323
  };
3325
3324
  var ProbHelper_instance;
3326
3325
  function ProbHelper_getInstance() {
@@ -3332,11 +3331,11 @@
3332
3331
  ProbNegationAsFailure_instance = this;
3333
3332
  NonBacktrackable_0.call(this, 'prob_negation_as_failure');
3334
3333
  }
3335
- protoOf(ProbNegationAsFailure).f2k = function (_this__u8e3s4, first, second) {
3336
- Companion_getInstance_9().p2d(_this__u8e3s4, 1);
3337
- Companion_getInstance_9().t2d(_this__u8e3s4, 1);
3334
+ protoOf(ProbNegationAsFailure).e2k = function (_this__u8e3s4, first, second) {
3335
+ Companion_getInstance_9().o2d(_this__u8e3s4, 1);
3336
+ Companion_getInstance_9().s2d(_this__u8e3s4, 1);
3338
3337
  var tmp;
3339
- if (!second.dv()) {
3338
+ if (!second.bv()) {
3340
3339
  tmp = _this__u8e3s4.replyException(ResolutionException_init_$Create$('Probabilistic negation does not support non-ground goals: ' + second.toString(), VOID, _this__u8e3s4.context, []), VOID, []);
3341
3340
  } else {
3342
3341
  var explanationTermVar = Companion_getInstance_0().of('Explanation');
@@ -3349,7 +3348,7 @@
3349
3348
  if (solution == null) {
3350
3349
  tmp_2 = _this__u8e3s4.replyFail(VOID, []);
3351
3350
  } else {
3352
- var explanationTerm = solution.g1s().h2(explanationTermVar);
3351
+ var explanationTerm = solution.f1s().h2(explanationTermVar);
3353
3352
  var tmp_3;
3354
3353
  var tmp_4;
3355
3354
  if (explanationTerm == null) {
@@ -3360,7 +3359,7 @@
3360
3359
  if (tmp_4) {
3361
3360
  tmp_3 = _this__u8e3s4.replyException(ResolutionException_init_$Create$('No valid explanation has been solved for goal: ' + second.toString(), VOID, _this__u8e3s4.context, []), VOID, []);
3362
3361
  } else {
3363
- tmp_3 = _this__u8e3s4.replyWith(Companion_getInstance_5().ofSubstitution(Companion_getInstance_9().j2d(_this__u8e3s4, first, new ProbExplanationTerm(explanationTerm.n35_1.not())), []), VOID, []);
3362
+ tmp_3 = _this__u8e3s4.replyWith(Companion_getInstance_5().ofSubstitution(Companion_getInstance_9().i2d(_this__u8e3s4, first, new ProbExplanationTerm(explanationTerm.m35_1.not())), []), VOID, []);
3364
3363
  }
3365
3364
  tmp_2 = tmp_3;
3366
3365
  }
@@ -3368,8 +3367,8 @@
3368
3367
  }
3369
3368
  return tmp;
3370
3369
  };
3371
- protoOf(ProbNegationAsFailure).n2c = function (_this__u8e3s4, first, second) {
3372
- return this.f2k(_this__u8e3s4, first, second);
3370
+ protoOf(ProbNegationAsFailure).m2c = function (_this__u8e3s4, first, second) {
3371
+ return this.e2k(_this__u8e3s4, first, second);
3373
3372
  };
3374
3373
  var ProbNegationAsFailure_instance;
3375
3374
  function ProbNegationAsFailure_getInstance() {
@@ -3383,22 +3382,22 @@
3383
3382
  };
3384
3383
  }
3385
3384
  function ProbQuery$computeAllSubstitutions$slambda($solutions, $queryWithEvidenceExplanation, $evidenceExplanation, $this_computeAllSubstitutions, $first, $fourth, resultContinuation) {
3386
- this.y38_1 = $solutions;
3387
- this.z38_1 = $queryWithEvidenceExplanation;
3388
- this.a39_1 = $evidenceExplanation;
3389
- this.b39_1 = $this_computeAllSubstitutions;
3390
- this.c39_1 = $first;
3391
- this.d39_1 = $fourth;
3385
+ this.x38_1 = $solutions;
3386
+ this.y38_1 = $queryWithEvidenceExplanation;
3387
+ this.z38_1 = $evidenceExplanation;
3388
+ this.a39_1 = $this_computeAllSubstitutions;
3389
+ this.b39_1 = $first;
3390
+ this.c39_1 = $fourth;
3392
3391
  CoroutineImpl.call(this, resultContinuation);
3393
3392
  }
3394
- protoOf(ProbQuery$computeAllSubstitutions$slambda).y2n = function ($this$sequence, $completion) {
3395
- var tmp = this.z2n($this$sequence, $completion);
3393
+ protoOf(ProbQuery$computeAllSubstitutions$slambda).x2n = function ($this$sequence, $completion) {
3394
+ var tmp = this.y2n($this$sequence, $completion);
3396
3395
  tmp.d8_1 = Unit_instance;
3397
3396
  tmp.e8_1 = null;
3398
3397
  return tmp.j8();
3399
3398
  };
3400
3399
  protoOf(ProbQuery$computeAllSubstitutions$slambda).a9 = function (p1, $completion) {
3401
- return this.y2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
3400
+ return this.x2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
3402
3401
  };
3403
3402
  protoOf(ProbQuery$computeAllSubstitutions$slambda).j8 = function () {
3404
3403
  var suspendResult = this.d8_1;
@@ -3408,20 +3407,20 @@
3408
3407
  switch (tmp) {
3409
3408
  case 0:
3410
3409
  this.c8_1 = 8;
3411
- this.f39_1 = this.y38_1.p();
3410
+ this.e39_1 = this.x38_1.n();
3412
3411
  this.b8_1 = 1;
3413
3412
  continue $sm;
3414
3413
  case 1:
3415
- if (!this.f39_1.s()) {
3414
+ if (!this.e39_1.q()) {
3416
3415
  this.b8_1 = 7;
3417
3416
  continue $sm;
3418
3417
  }
3419
3418
 
3420
- var solution = this.f39_1.t();
3421
- if (solution.p1t())
3422
- throw ensureNotNull(solution.m1t());
3423
- var queryWithEvidenceExplanationTerm = solution.g1s().h2(this.z38_1);
3424
- var evidenceExplanationTerm = solution.g1s().h2(this.a39_1);
3419
+ var solution = this.e39_1.r();
3420
+ if (solution.o1t())
3421
+ throw ensureNotNull(solution.l1t());
3422
+ var queryWithEvidenceExplanationTerm = solution.f1s().h2(this.y38_1);
3423
+ var evidenceExplanationTerm = solution.f1s().h2(this.z38_1);
3425
3424
  var tmp_0;
3426
3425
  var tmp_1;
3427
3426
  var tmp_2;
@@ -3445,27 +3444,27 @@
3445
3444
 
3446
3445
  if (tmp_0) {
3447
3446
  this.b8_1 = 5;
3448
- suspendResult = this.e39_1.gd(Companion_getInstance_5().failed(), this);
3447
+ suspendResult = this.d39_1.bd(Companion_getInstance_5().failed(), this);
3449
3448
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3450
3449
  return suspendResult;
3451
3450
  }
3452
3451
  continue $sm;
3453
3452
  } else {
3454
- var queryWithEvidenceProbability = queryWithEvidenceExplanationTerm.n35_1.d37();
3455
- var evidenceProbability = evidenceExplanationTerm.n35_1.d37();
3453
+ var queryWithEvidenceProbability = queryWithEvidenceExplanationTerm.m35_1.c37();
3454
+ var evidenceProbability = evidenceExplanationTerm.m35_1.c37();
3456
3455
  if (queryWithEvidenceProbability == null || evidenceProbability == null) {
3457
3456
  this.b8_1 = 3;
3458
- suspendResult = this.e39_1.gd(Companion_getInstance_5().failed(), this);
3457
+ suspendResult = this.d39_1.bd(Companion_getInstance_5().failed(), this);
3459
3458
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3460
3459
  return suspendResult;
3461
3460
  }
3462
3461
  continue $sm;
3463
3462
  } else {
3464
- var tmp_3 = solution.g1s();
3465
- var solutionSubstitution = tmp_3.filter(ProbQuery$computeAllSubstitutions$slambda$lambda(this.a39_1, this.z38_1));
3463
+ var tmp_3 = solution.f1s();
3464
+ var solutionSubstitution = tmp_3.filter(ProbQuery$computeAllSubstitutions$slambda$lambda(this.z38_1, this.y38_1));
3466
3465
  var probabilityTerm = Companion_getInstance_6().ofDouble(queryWithEvidenceProbability / evidenceProbability);
3467
3466
  this.b8_1 = 2;
3468
- suspendResult = this.e39_1.gd(Companion_getInstance_5().ofSubstitution(solutionSubstitution, [Companion_getInstance_9().j2d(this.b39_1, this.c39_1, probabilityTerm), Companion_getInstance_9().j2d(this.b39_1, this.d39_1, queryWithEvidenceExplanationTerm)]), this);
3467
+ suspendResult = this.d39_1.bd(Companion_getInstance_5().ofSubstitution(solutionSubstitution, [Companion_getInstance_9().i2d(this.a39_1, this.b39_1, probabilityTerm), Companion_getInstance_9().i2d(this.a39_1, this.c39_1, queryWithEvidenceExplanationTerm)]), this);
3469
3468
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3470
3469
  return suspendResult;
3471
3470
  }
@@ -3504,28 +3503,26 @@
3504
3503
  }
3505
3504
  while (true);
3506
3505
  };
3507
- protoOf(ProbQuery$computeAllSubstitutions$slambda).z2n = function ($this$sequence, completion) {
3508
- var i = new ProbQuery$computeAllSubstitutions$slambda(this.y38_1, this.z38_1, this.a39_1, this.b39_1, this.c39_1, this.d39_1, completion);
3509
- i.e39_1 = $this$sequence;
3506
+ protoOf(ProbQuery$computeAllSubstitutions$slambda).y2n = function ($this$sequence, completion) {
3507
+ var i = new ProbQuery$computeAllSubstitutions$slambda(this.x38_1, this.y38_1, this.z38_1, this.a39_1, this.b39_1, this.c39_1, completion);
3508
+ i.d39_1 = $this$sequence;
3510
3509
  return i;
3511
3510
  };
3512
3511
  function ProbQuery$computeAllSubstitutions$slambda_0($solutions, $queryWithEvidenceExplanation, $evidenceExplanation, $this_computeAllSubstitutions, $first, $fourth, resultContinuation) {
3513
3512
  var i = new ProbQuery$computeAllSubstitutions$slambda($solutions, $queryWithEvidenceExplanation, $evidenceExplanation, $this_computeAllSubstitutions, $first, $fourth, resultContinuation);
3514
- var l = function ($this$sequence, $completion) {
3515
- return i.y2n($this$sequence, $completion);
3516
- };
3517
- l.$arity = 1;
3518
- return l;
3513
+ return constructCallableReference(function ($this$sequence, $completion) {
3514
+ return i.x2n($this$sequence, $completion);
3515
+ }, 1);
3519
3516
  }
3520
3517
  function ProbQuery() {
3521
3518
  ProbQuery_instance = this;
3522
3519
  WithoutSideEffects_0.call(this, 'prob_query');
3523
3520
  }
3524
- protoOf(ProbQuery).h39 = function (_this__u8e3s4, first, second, third, fourth) {
3525
- Companion_getInstance_9().p2d(_this__u8e3s4, 1);
3526
- Companion_getInstance_9().t2d(_this__u8e3s4, 1);
3527
- Companion_getInstance_9().r2d(_this__u8e3s4, 1);
3528
- Companion_getInstance_9().p2d(_this__u8e3s4, 2);
3521
+ protoOf(ProbQuery).g39 = function (_this__u8e3s4, first, second, third, fourth) {
3522
+ Companion_getInstance_9().o2d(_this__u8e3s4, 1);
3523
+ Companion_getInstance_9().s2d(_this__u8e3s4, 1);
3524
+ Companion_getInstance_9().q2d(_this__u8e3s4, 1);
3525
+ Companion_getInstance_9().o2d(_this__u8e3s4, 2);
3529
3526
  var queryWithEvidenceExplanation = Companion_getInstance_0().of('QueryWithEvidenceExplanation');
3530
3527
  var evidenceExplanation = Companion_getInstance_0().of('EvidenceExplanation');
3531
3528
  var tmp = _this__u8e3s4.subSolver();
@@ -3537,11 +3534,11 @@
3537
3534
  var tmp_3 = Companion_getInstance_1();
3538
3535
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3539
3536
  var tmp$ret$1 = ProbSolveWithEvidence_getInstance().signature.name;
3540
- var solutions = tmp.solveWithOptions(tmp_0.of(tmp_2, tmp_3.of(tmp$ret$1, [queryWithEvidenceExplanation, evidenceExplanation, second])), ProbSetConfig_getInstance().i39(third));
3537
+ var solutions = tmp.solveWithOptions(tmp_0.of(tmp_2, tmp_3.of(tmp$ret$1, [queryWithEvidenceExplanation, evidenceExplanation, second])), ProbSetConfig_getInstance().h39(third));
3541
3538
  return sequence(ProbQuery$computeAllSubstitutions$slambda_0(solutions, queryWithEvidenceExplanation, evidenceExplanation, _this__u8e3s4, first, fourth, null));
3542
3539
  };
3543
- protoOf(ProbQuery).i2e = function (_this__u8e3s4, first, second, third, fourth) {
3544
- return this.h39(_this__u8e3s4, first, second, third, fourth);
3540
+ protoOf(ProbQuery).h2e = function (_this__u8e3s4, first, second, third, fourth) {
3541
+ return this.g39(_this__u8e3s4, first, second, third, fourth);
3545
3542
  };
3546
3543
  var ProbQuery_instance;
3547
3544
  function ProbQuery_getInstance() {
@@ -3554,40 +3551,40 @@
3554
3551
  NonBacktrackable_1.call(this, 'prob_set_config');
3555
3552
  var tmp = this;
3556
3553
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3557
- tmp.i35_1 = this.signature.name + '_flag';
3554
+ tmp.h35_1 = this.signature.name + '_flag';
3558
3555
  var tmp_0 = this;
3559
3556
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3560
- tmp_0.j35_1 = this.signature.name + '_term';
3557
+ tmp_0.i35_1 = this.signature.name + '_term';
3561
3558
  var tmp_1 = this;
3562
3559
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3563
- tmp_1.k35_1 = 'it.unibo.tuprolog.solve.probability' + this.signature.name + '_tag';
3560
+ tmp_1.j35_1 = 'it.unibo.tuprolog.solve.probability' + this.signature.name + '_tag';
3564
3561
  }
3565
- protoOf(ProbSetConfig).o2j = function (_this__u8e3s4, first) {
3566
- Companion_getInstance_9().p2d(_this__u8e3s4, 0);
3567
- Companion_getInstance_9().v2d(_this__u8e3s4, 0);
3562
+ protoOf(ProbSetConfig).n2j = function (_this__u8e3s4, first) {
3563
+ Companion_getInstance_9().o2d(_this__u8e3s4, 0);
3564
+ Companion_getInstance_9().u2d(_this__u8e3s4, 0);
3568
3565
  // Inline function 'kotlin.arrayOf' call
3569
3566
  // Inline function 'kotlin.js.unsafeCast' call
3570
3567
  // Inline function 'kotlin.js.asDynamic' call
3571
- var tmp$ret$2 = [SetFlags_init_$Create$([new Pair(this.i35_1, first)])];
3572
- return _this__u8e3s4.replySuccess(VOID, VOID, tmp$ret$2.slice());
3568
+ var tmp$ret$0 = [SetFlags_init_$Create$([new Pair(this.h35_1, first)])];
3569
+ return _this__u8e3s4.replySuccess(VOID, VOID, tmp$ret$0.slice());
3573
3570
  };
3574
- protoOf(ProbSetConfig).w2f = function (_this__u8e3s4, first) {
3575
- return this.o2j(_this__u8e3s4, first);
3571
+ protoOf(ProbSetConfig).v2f = function (_this__u8e3s4, first) {
3572
+ return this.n2j(_this__u8e3s4, first);
3576
3573
  };
3577
- protoOf(ProbSetConfig).i39 = function (_this__u8e3s4) {
3578
- var tmp0_elvis_lhs = _this__u8e3s4.getTag(this.k35_1);
3574
+ protoOf(ProbSetConfig).h39 = function (_this__u8e3s4) {
3575
+ var tmp0_elvis_lhs = _this__u8e3s4.getTag(this.j35_1);
3579
3576
  return tmp0_elvis_lhs == null ? Companion_getInstance_2().DEFAULT : tmp0_elvis_lhs;
3580
3577
  };
3581
- protoOf(ProbSetConfig).l35 = function (_this__u8e3s4) {
3582
- return setTag(Companion_getInstance_4().of(this.j35_1), this.k35_1, _this__u8e3s4);
3578
+ protoOf(ProbSetConfig).k35 = function (_this__u8e3s4) {
3579
+ return setTag(Companion_getInstance_4().of(this.i35_1), this.j35_1, _this__u8e3s4);
3583
3580
  };
3584
- protoOf(ProbSetConfig).j39 = function (_this__u8e3s4) {
3585
- var tmp0_safe_receiver = _this__u8e3s4.l1s().cb(this.i35_1);
3586
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.i39(tmp0_safe_receiver);
3581
+ protoOf(ProbSetConfig).i39 = function (_this__u8e3s4) {
3582
+ var tmp0_safe_receiver = _this__u8e3s4.k1s().cb(this.h35_1);
3583
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.h39(tmp0_safe_receiver);
3587
3584
  return tmp1_elvis_lhs == null ? Companion_getInstance_2().DEFAULT : tmp1_elvis_lhs;
3588
3585
  };
3589
- protoOf(ProbSetConfig).x37 = function (_this__u8e3s4) {
3590
- return !get_isProbabilistic(this.j39(_this__u8e3s4));
3586
+ protoOf(ProbSetConfig).w37 = function (_this__u8e3s4) {
3587
+ return !get_isProbabilistic(this.i39(_this__u8e3s4));
3591
3588
  };
3592
3589
  var ProbSetConfig_instance;
3593
3590
  function ProbSetConfig_getInstance() {
@@ -3596,9 +3593,9 @@
3596
3593
  return ProbSetConfig_instance;
3597
3594
  }
3598
3595
  function ProbSolve$computeAllSubstitutions$lambda(it) {
3599
- if (it.p1t())
3600
- throw ensureNotNull(it.m1t());
3601
- return it.g1s();
3596
+ if (it.o1t())
3597
+ throw ensureNotNull(it.l1t());
3598
+ return it.f1s();
3602
3599
  }
3603
3600
  function ProbSolve$computeAllSubstitutions$lambda_0(it) {
3604
3601
  return !(it == null) ? isInterface(it, Halt) : false;
@@ -3609,20 +3606,20 @@
3609
3606
  };
3610
3607
  }
3611
3608
  function ProbSolve$computeAllSubstitutions$slambda($solutionGroups, $explanationVar, $this_computeAllSubstitutions, $first, resultContinuation) {
3612
- this.s39_1 = $solutionGroups;
3613
- this.t39_1 = $explanationVar;
3614
- this.u39_1 = $this_computeAllSubstitutions;
3615
- this.v39_1 = $first;
3609
+ this.r39_1 = $solutionGroups;
3610
+ this.s39_1 = $explanationVar;
3611
+ this.t39_1 = $this_computeAllSubstitutions;
3612
+ this.u39_1 = $first;
3616
3613
  CoroutineImpl.call(this, resultContinuation);
3617
3614
  }
3618
- protoOf(ProbSolve$computeAllSubstitutions$slambda).y2n = function ($this$sequence, $completion) {
3619
- var tmp = this.z2n($this$sequence, $completion);
3615
+ protoOf(ProbSolve$computeAllSubstitutions$slambda).x2n = function ($this$sequence, $completion) {
3616
+ var tmp = this.y2n($this$sequence, $completion);
3620
3617
  tmp.d8_1 = Unit_instance;
3621
3618
  tmp.e8_1 = null;
3622
3619
  return tmp.j8();
3623
3620
  };
3624
3621
  protoOf(ProbSolve$computeAllSubstitutions$slambda).a9 = function (p1, $completion) {
3625
- return this.y2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
3622
+ return this.x2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
3626
3623
  };
3627
3624
  protoOf(ProbSolve$computeAllSubstitutions$slambda).j8 = function () {
3628
3625
  var suspendResult = this.d8_1;
@@ -3633,54 +3630,54 @@
3633
3630
  case 0:
3634
3631
  this.c8_1 = 4;
3635
3632
  var tmp_0 = this;
3636
- tmp_0.x39_1 = this.s39_1.f1().p();
3633
+ tmp_0.w39_1 = this.r39_1.d1().n();
3637
3634
  this.b8_1 = 1;
3638
3635
  continue $sm;
3639
3636
  case 1:
3640
- if (!this.x39_1.s()) {
3637
+ if (!this.w39_1.q()) {
3641
3638
  this.b8_1 = 3;
3642
3639
  continue $sm;
3643
3640
  }
3644
3641
 
3645
- var solutionGroup = this.x39_1.t();
3642
+ var solutionGroup = this.w39_1.r();
3646
3643
  var this_0 = solutionGroup.e2();
3647
3644
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
3648
- var _iterator__ex2g4s = this_0.p();
3649
- while (_iterator__ex2g4s.s()) {
3650
- var item = _iterator__ex2g4s.t();
3651
- destination.n(item.g1s().h2(this.t39_1));
3645
+ var _iterator__ex2g4s = this_0.n();
3646
+ while (_iterator__ex2g4s.q()) {
3647
+ var item = _iterator__ex2g4s.r();
3648
+ destination.l(item.f1s().h2(this.s39_1));
3652
3649
  }
3653
3650
 
3654
3651
  var destination_0 = ArrayList_init_$Create$_0();
3655
- var _iterator__ex2g4s_0 = destination.p();
3656
- while (_iterator__ex2g4s_0.s()) {
3657
- var element = _iterator__ex2g4s_0.t();
3652
+ var _iterator__ex2g4s_0 = destination.n();
3653
+ while (_iterator__ex2g4s_0.q()) {
3654
+ var element = _iterator__ex2g4s_0.r();
3658
3655
  if (element instanceof ProbExplanationTerm) {
3659
- destination_0.n(element);
3656
+ destination_0.l(element);
3660
3657
  }
3661
3658
  }
3662
3659
 
3663
3660
  var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(destination_0, 10));
3664
- var _iterator__ex2g4s_1 = destination_0.p();
3665
- while (_iterator__ex2g4s_1.s()) {
3666
- var item_0 = _iterator__ex2g4s_1.t();
3667
- destination_1.n(item_0.n35_1);
3661
+ var _iterator__ex2g4s_1 = destination_0.n();
3662
+ while (_iterator__ex2g4s_1.q()) {
3663
+ var item_0 = _iterator__ex2g4s_1.r();
3664
+ destination_1.l(item_0.m35_1);
3668
3665
  }
3669
3666
 
3670
- var iterator = destination_1.p();
3671
- if (!iterator.s())
3667
+ var iterator = destination_1.n();
3668
+ if (!iterator.q())
3672
3669
  throw UnsupportedOperationException_init_$Create$("Empty collection can't be reduced.");
3673
- var accumulator = iterator.t();
3674
- while (iterator.s()) {
3670
+ var accumulator = iterator.r();
3671
+ while (iterator.q()) {
3675
3672
  var tmp0 = accumulator;
3676
- var expl = iterator.t();
3677
- accumulator = expl.c37() === 1.0 ? tmp0 : tmp0.c37() === 1.0 ? expl : tmp0.or(expl);
3673
+ var expl = iterator.r();
3674
+ accumulator = expl.b37() === 1.0 ? tmp0 : tmp0.b37() === 1.0 ? expl : tmp0.or(expl);
3678
3675
  }
3679
3676
 
3680
3677
  var explanation = accumulator;
3681
- var substitution = Companion_getInstance_5().ofSubstitution(solutionGroup.d2(), [Companion_getInstance_9().j2d(this.u39_1, this.v39_1, new ProbExplanationTerm(explanation))]);
3678
+ var substitution = Companion_getInstance_5().ofSubstitution(solutionGroup.d2(), [Companion_getInstance_9().i2d(this.t39_1, this.u39_1, new ProbExplanationTerm(explanation))]);
3682
3679
  this.b8_1 = 2;
3683
- suspendResult = this.w39_1.gd(substitution, this);
3680
+ suspendResult = this.v39_1.bd(substitution, this);
3684
3681
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3685
3682
  return suspendResult;
3686
3683
  }
@@ -3705,32 +3702,30 @@
3705
3702
  }
3706
3703
  while (true);
3707
3704
  };
3708
- protoOf(ProbSolve$computeAllSubstitutions$slambda).z2n = function ($this$sequence, completion) {
3709
- var i = new ProbSolve$computeAllSubstitutions$slambda(this.s39_1, this.t39_1, this.u39_1, this.v39_1, completion);
3710
- i.w39_1 = $this$sequence;
3705
+ protoOf(ProbSolve$computeAllSubstitutions$slambda).y2n = function ($this$sequence, completion) {
3706
+ var i = new ProbSolve$computeAllSubstitutions$slambda(this.r39_1, this.s39_1, this.t39_1, this.u39_1, completion);
3707
+ i.v39_1 = $this$sequence;
3711
3708
  return i;
3712
3709
  };
3713
3710
  function ProbSolve$computeAllSubstitutions$slambda_0($solutionGroups, $explanationVar, $this_computeAllSubstitutions, $first, resultContinuation) {
3714
3711
  var i = new ProbSolve$computeAllSubstitutions$slambda($solutionGroups, $explanationVar, $this_computeAllSubstitutions, $first, resultContinuation);
3715
- var l = function ($this$sequence, $completion) {
3716
- return i.y2n($this$sequence, $completion);
3717
- };
3718
- l.$arity = 1;
3719
- return l;
3712
+ return constructCallableReference(function ($this$sequence, $completion) {
3713
+ return i.x2n($this$sequence, $completion);
3714
+ }, 1);
3720
3715
  }
3721
3716
  function ProbSolve() {
3722
3717
  ProbSolve_instance = this;
3723
3718
  WithoutSideEffects_1.call(this, 'prob_solve');
3724
3719
  }
3725
- protoOf(ProbSolve).e2l = function (_this__u8e3s4, first, second) {
3726
- Companion_getInstance_9().p2d(_this__u8e3s4, 1);
3727
- Companion_getInstance_9().t2d(_this__u8e3s4, 1);
3728
- if (ProbSetConfig_getInstance().x37(_this__u8e3s4.context)) {
3720
+ protoOf(ProbSolve).d2l = function (_this__u8e3s4, first, second) {
3721
+ Companion_getInstance_9().o2d(_this__u8e3s4, 1);
3722
+ Companion_getInstance_9().s2d(_this__u8e3s4, 1);
3723
+ if (ProbSetConfig_getInstance().w37(_this__u8e3s4.context)) {
3729
3724
  var tmp = _this__u8e3s4.subSolver();
3730
3725
  var tmp_0 = Companion_getInstance_1();
3731
3726
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3732
3727
  var tmp$ret$0 = Prob_getInstance().signature.name;
3733
- var tmp_1 = tmp.solveWithOptions(tmp_0.of(tmp$ret$0, [first, second]), ProbSetConfig_getInstance().j39(_this__u8e3s4.context));
3728
+ var tmp_1 = tmp.solveWithOptions(tmp_0.of(tmp$ret$0, [first, second]), ProbSetConfig_getInstance().i39(_this__u8e3s4.context));
3734
3729
  return map(tmp_1, ProbSolve$computeAllSubstitutions$lambda);
3735
3730
  }
3736
3731
  var explanationVar = Companion_getInstance_0().of('EXPL');
@@ -3738,21 +3733,21 @@
3738
3733
  var tmp_3 = Companion_getInstance_1();
3739
3734
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3740
3735
  var tmp$ret$1 = Prob_getInstance().signature.name;
3741
- var solutions = toList(tmp_2.solveWithOptions(tmp_3.of(tmp$ret$1, [explanationVar, second]), ProbSetConfig_getInstance().j39(_this__u8e3s4.context)));
3736
+ var solutions = toList(tmp_2.solveWithOptions(tmp_3.of(tmp$ret$1, [explanationVar, second]), ProbSetConfig_getInstance().i39(_this__u8e3s4.context)));
3742
3737
  // Inline function 'kotlin.sequences.filterIsInstance' call
3743
3738
  var this_0 = asSequence(solutions);
3744
3739
  var tmp_4 = filter(this_0, ProbSolve$computeAllSubstitutions$lambda_0);
3745
3740
  var tmp$ret$2 = isInterface(tmp_4, Sequence) ? tmp_4 : THROW_CCE();
3746
3741
  var error = firstOrNull(tmp$ret$2);
3747
3742
  if (!(error == null))
3748
- throw error.m1t();
3743
+ throw error.l1t();
3749
3744
  var tmp_5;
3750
3745
  var tmp$ret$3;
3751
3746
  $l$block_0: {
3752
3747
  // Inline function 'kotlin.collections.any' call
3753
3748
  var tmp_6;
3754
3749
  if (isInterface(solutions, Collection)) {
3755
- tmp_6 = solutions.j();
3750
+ tmp_6 = solutions.h();
3756
3751
  } else {
3757
3752
  tmp_6 = false;
3758
3753
  }
@@ -3760,9 +3755,9 @@
3760
3755
  tmp$ret$3 = false;
3761
3756
  break $l$block_0;
3762
3757
  }
3763
- var _iterator__ex2g4s = solutions.p();
3764
- while (_iterator__ex2g4s.s()) {
3765
- var element = _iterator__ex2g4s.t();
3758
+ var _iterator__ex2g4s = solutions.n();
3759
+ while (_iterator__ex2g4s.q()) {
3760
+ var element = _iterator__ex2g4s.r();
3766
3761
  if (isInterface(element, Yes)) {
3767
3762
  tmp$ret$3 = true;
3768
3763
  break $l$block_0;
@@ -3771,26 +3766,26 @@
3771
3766
  tmp$ret$3 = false;
3772
3767
  }
3773
3768
  if (!tmp$ret$3) {
3774
- tmp_5 = sequenceOf(Companion_getInstance_5().ofSubstitution(Companion_getInstance_9().j2d(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_11().p36_1)), []));
3769
+ tmp_5 = sequenceOf(Companion_getInstance_5().ofSubstitution(Companion_getInstance_9().i2d(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_11().o36_1)), []));
3775
3770
  } else {
3776
3771
  // Inline function 'kotlin.collections.filterIsInstance' call
3777
3772
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
3778
3773
  var destination = ArrayList_init_$Create$_0();
3779
- var _iterator__ex2g4s_0 = solutions.p();
3780
- while (_iterator__ex2g4s_0.s()) {
3781
- var element_0 = _iterator__ex2g4s_0.t();
3774
+ var _iterator__ex2g4s_0 = solutions.n();
3775
+ while (_iterator__ex2g4s_0.q()) {
3776
+ var element_0 = _iterator__ex2g4s_0.r();
3782
3777
  if (!(element_0 == null) ? isInterface(element_0, Yes) : false) {
3783
- destination.n(element_0);
3778
+ destination.l(element_0);
3784
3779
  }
3785
3780
  }
3786
3781
  // Inline function 'kotlin.collections.groupBy' call
3787
3782
  // Inline function 'kotlin.collections.groupByTo' call
3788
3783
  var destination_0 = LinkedHashMap_init_$Create$();
3789
- var _iterator__ex2g4s_1 = destination.p();
3790
- while (_iterator__ex2g4s_1.s()) {
3791
- var element_1 = _iterator__ex2g4s_1.t();
3792
- var tmp_7 = element_1.g1s();
3793
- var key = tmp_7.a10(ProbSolve$computeAllSubstitutions$lambda_1(explanationVar));
3784
+ var _iterator__ex2g4s_1 = destination.n();
3785
+ while (_iterator__ex2g4s_1.q()) {
3786
+ var element_1 = _iterator__ex2g4s_1.r();
3787
+ var tmp_7 = element_1.f1s();
3788
+ var key = tmp_7.yz(ProbSolve$computeAllSubstitutions$lambda_1(explanationVar));
3794
3789
  // Inline function 'kotlin.collections.getOrPut' call
3795
3790
  var value = destination_0.h2(key);
3796
3791
  var tmp_8;
@@ -3802,15 +3797,15 @@
3802
3797
  tmp_8 = value;
3803
3798
  }
3804
3799
  var list = tmp_8;
3805
- list.n(element_1);
3800
+ list.l(element_1);
3806
3801
  }
3807
3802
  var solutionGroups = destination_0;
3808
3803
  tmp_5 = sequence(ProbSolve$computeAllSubstitutions$slambda_0(solutionGroups, explanationVar, _this__u8e3s4, first, null));
3809
3804
  }
3810
3805
  return tmp_5;
3811
3806
  };
3812
- protoOf(ProbSolve).u2c = function (_this__u8e3s4, first, second) {
3813
- return this.e2l(_this__u8e3s4, first, second);
3807
+ protoOf(ProbSolve).t2c = function (_this__u8e3s4, first, second) {
3808
+ return this.d2l(_this__u8e3s4, first, second);
3814
3809
  };
3815
3810
  var ProbSolve_instance;
3816
3811
  function ProbSolve_getInstance() {
@@ -3823,28 +3818,28 @@
3823
3818
  }
3824
3819
  function ProbSolveEvidence$computeOne$lambda_0($explanationVar) {
3825
3820
  return function (s) {
3826
- return s.g1s().h2($explanationVar);
3821
+ return s.f1s().h2($explanationVar);
3827
3822
  };
3828
3823
  }
3829
3824
  function ProbSolveEvidence$computeOne$lambda_1(it) {
3830
3825
  return it instanceof ProbExplanationTerm;
3831
3826
  }
3832
3827
  function ProbSolveEvidence$computeOne$lambda_2(t) {
3833
- return t.n35_1;
3828
+ return t.m35_1;
3834
3829
  }
3835
3830
  function ProbSolveEvidence() {
3836
3831
  ProbSolveEvidence_instance = this;
3837
3832
  NonBacktrackable_1.call(this, 'prob_solve_evidence');
3838
3833
  }
3839
- protoOf(ProbSolveEvidence).o2j = function (_this__u8e3s4, first) {
3834
+ protoOf(ProbSolveEvidence).n2j = function (_this__u8e3s4, first) {
3840
3835
  var evidenceIndicator = Companion_instance_4.ofString('evidence', 2);
3841
- if (!_this__u8e3s4.context.m1s().containsIndicator(evidenceIndicator) && !_this__u8e3s4.context.n1s().containsIndicator(evidenceIndicator)) {
3842
- return _this__u8e3s4.replyWith(Companion_getInstance_9().j2d(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_11().q36_1)), VOID, []);
3836
+ if (!_this__u8e3s4.context.l1s().containsIndicator(evidenceIndicator) && !_this__u8e3s4.context.m1s().containsIndicator(evidenceIndicator)) {
3837
+ return _this__u8e3s4.replyWith(Companion_getInstance_9().i2d(_this__u8e3s4, first, new ProbExplanationTerm(Companion_getInstance_11().p36_1)), VOID, []);
3843
3838
  }
3844
3839
  var evidenceTermVar = Companion_getInstance_0().of('TermVar');
3845
3840
  var evidenceTruthVar = Companion_getInstance_0().of('TruthVar');
3846
3841
  var subQuery = Companion_getInstance_1().of('evidence', [evidenceTermVar, evidenceTruthVar]);
3847
- var subOptions = ProbSetConfig_getInstance().j39(_this__u8e3s4.context).setLimit(-1).setLazy(false);
3842
+ var subOptions = ProbSetConfig_getInstance().i39(_this__u8e3s4.context).setLimit(-1).setLazy(false);
3848
3843
  // Inline function 'kotlin.sequences.filterIsInstance' call
3849
3844
  var this_0 = _this__u8e3s4.subSolver().solveWithOptions(subQuery, subOptions);
3850
3845
  var tmp = filter(this_0, ProbSolveEvidence$computeOne$lambda);
@@ -3853,77 +3848,77 @@
3853
3848
  var this_1 = toList(tmp$ret$0);
3854
3849
  // Inline function 'kotlin.collections.mapTo' call
3855
3850
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
3856
- var _iterator__ex2g4s = this_1.p();
3857
- while (_iterator__ex2g4s.s()) {
3858
- var item = _iterator__ex2g4s.t();
3859
- var truth = item.g1s().h2(evidenceTruthVar);
3860
- var term = item.g1s().h2(evidenceTermVar);
3851
+ var _iterator__ex2g4s = this_1.n();
3852
+ while (_iterator__ex2g4s.q()) {
3853
+ var item = _iterator__ex2g4s.r();
3854
+ var truth = item.f1s().h2(evidenceTruthVar);
3855
+ var term = item.f1s().h2(evidenceTermVar);
3861
3856
  var tmp_0;
3862
3857
  var tmp_1;
3863
- if (term == null || term.vu() || truth == null) {
3858
+ if (term == null || term.tu() || truth == null) {
3864
3859
  tmp_1 = true;
3865
3860
  } else {
3866
3861
  tmp_1 = !isInterface(truth, Truth);
3867
3862
  }
3868
3863
  if (tmp_1) {
3869
- tmp_0 = Companion_getInstance_11().p36_1;
3864
+ tmp_0 = Companion_getInstance_11().o36_1;
3870
3865
  } else {
3871
3866
  var explanationVar = Companion_getInstance_0().of('EXPL');
3872
3867
  var tmp_2 = Companion_getInstance_1();
3873
3868
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3874
- var tmp$ret$1 = ProbSolve_getInstance().signature.name;
3875
- var tmp_3 = _this__u8e3s4.solve(tmp_2.of(tmp$ret$1, [explanationVar, term]));
3869
+ var tmp$ret$4 = ProbSolve_getInstance().signature.name;
3870
+ var tmp_3 = _this__u8e3s4.solve(tmp_2.of(tmp$ret$4, [explanationVar, term]));
3876
3871
  // Inline function 'kotlin.sequences.filterIsInstance' call
3877
3872
  var this_2 = map(tmp_3, ProbSolveEvidence$computeOne$lambda_0(explanationVar));
3878
3873
  var tmp_4 = filter(this_2, ProbSolveEvidence$computeOne$lambda_1);
3879
3874
  var tmp_5 = isInterface(tmp_4, Sequence) ? tmp_4 : THROW_CCE();
3880
3875
  // Inline function 'kotlin.sequences.reduce' call
3881
- var iterator = map(tmp_5, ProbSolveEvidence$computeOne$lambda_2).p();
3882
- if (!iterator.s())
3876
+ var iterator = map(tmp_5, ProbSolveEvidence$computeOne$lambda_2).n();
3877
+ if (!iterator.q())
3883
3878
  throw UnsupportedOperationException_init_$Create$("Empty sequence can't be reduced.");
3884
- var accumulator = iterator.t();
3885
- while (iterator.s()) {
3879
+ var accumulator = iterator.r();
3880
+ while (iterator.q()) {
3886
3881
  var tmp0 = accumulator;
3887
- var t = iterator.t();
3888
- accumulator = t.c37() === 1.0 ? tmp0 : tmp0.c37() === 1.0 ? t : t.or(tmp0);
3882
+ var t = iterator.r();
3883
+ accumulator = t.b37() === 1.0 ? tmp0 : tmp0.b37() === 1.0 ? t : t.or(tmp0);
3889
3884
  }
3890
3885
  var totalExplanation = accumulator;
3891
- tmp_0 = truth.xt() ? totalExplanation : totalExplanation.not();
3886
+ tmp_0 = truth.vt() ? totalExplanation : totalExplanation.not();
3892
3887
  }
3893
- var tmp$ret$5 = tmp_0;
3894
- destination.n(tmp$ret$5);
3888
+ var tmp$ret$3 = tmp_0;
3889
+ destination.l(tmp$ret$3);
3895
3890
  }
3896
3891
  // Inline function 'kotlin.collections.filter' call
3897
3892
  // Inline function 'kotlin.collections.filterTo' call
3898
3893
  var destination_0 = ArrayList_init_$Create$_0();
3899
- var _iterator__ex2g4s_0 = destination.p();
3900
- while (_iterator__ex2g4s_0.s()) {
3901
- var element = _iterator__ex2g4s_0.t();
3902
- if (!equals(element, Companion_getInstance_11().p36_1)) {
3903
- destination_0.n(element);
3894
+ var _iterator__ex2g4s_0 = destination.n();
3895
+ while (_iterator__ex2g4s_0.q()) {
3896
+ var element = _iterator__ex2g4s_0.r();
3897
+ if (!equals(element, Companion_getInstance_11().o36_1)) {
3898
+ destination_0.l(element);
3904
3899
  }
3905
3900
  }
3906
3901
  var result = destination_0;
3907
3902
  var tmp_6;
3908
- if (result.j()) {
3909
- tmp_6 = Companion_getInstance_11().q36_1;
3903
+ if (result.h()) {
3904
+ tmp_6 = Companion_getInstance_11().p36_1;
3910
3905
  } else {
3911
3906
  // Inline function 'kotlin.collections.reduce' call
3912
- var iterator_0 = result.p();
3913
- if (!iterator_0.s())
3907
+ var iterator_0 = result.n();
3908
+ if (!iterator_0.q())
3914
3909
  throw UnsupportedOperationException_init_$Create$("Empty collection can't be reduced.");
3915
- var accumulator_0 = iterator_0.t();
3916
- while (iterator_0.s()) {
3910
+ var accumulator_0 = iterator_0.r();
3911
+ while (iterator_0.q()) {
3917
3912
  var tmp0_0 = accumulator_0;
3918
- accumulator_0 = iterator_0.t().and(tmp0_0);
3913
+ accumulator_0 = iterator_0.r().and(tmp0_0);
3919
3914
  }
3920
3915
  tmp_6 = accumulator_0;
3921
3916
  }
3922
3917
  var resultExplanation = tmp_6;
3923
- return _this__u8e3s4.replyWith(Companion_getInstance_9().j2d(_this__u8e3s4, first, new ProbExplanationTerm(resultExplanation)), VOID, []);
3918
+ return _this__u8e3s4.replyWith(Companion_getInstance_9().i2d(_this__u8e3s4, first, new ProbExplanationTerm(resultExplanation)), VOID, []);
3924
3919
  };
3925
- protoOf(ProbSolveEvidence).w2f = function (_this__u8e3s4, first) {
3926
- return this.o2j(_this__u8e3s4, first);
3920
+ protoOf(ProbSolveEvidence).v2f = function (_this__u8e3s4, first) {
3921
+ return this.n2j(_this__u8e3s4, first);
3927
3922
  };
3928
3923
  var ProbSolveEvidence_instance;
3929
3924
  function ProbSolveEvidence_getInstance() {
@@ -3937,22 +3932,22 @@
3937
3932
  };
3938
3933
  }
3939
3934
  function ProbSolveWithEvidence$computeAllSubstitutions$slambda($solutions, $goalExplanationVar, $evidenceExplanationTerm, $this_computeAllSubstitutions, $first, $second, resultContinuation) {
3940
- this.i3a_1 = $solutions;
3941
- this.j3a_1 = $goalExplanationVar;
3942
- this.k3a_1 = $evidenceExplanationTerm;
3943
- this.l3a_1 = $this_computeAllSubstitutions;
3944
- this.m3a_1 = $first;
3945
- this.n3a_1 = $second;
3935
+ this.h3a_1 = $solutions;
3936
+ this.i3a_1 = $goalExplanationVar;
3937
+ this.j3a_1 = $evidenceExplanationTerm;
3938
+ this.k3a_1 = $this_computeAllSubstitutions;
3939
+ this.l3a_1 = $first;
3940
+ this.m3a_1 = $second;
3946
3941
  CoroutineImpl.call(this, resultContinuation);
3947
3942
  }
3948
- protoOf(ProbSolveWithEvidence$computeAllSubstitutions$slambda).y2n = function ($this$sequence, $completion) {
3949
- var tmp = this.z2n($this$sequence, $completion);
3943
+ protoOf(ProbSolveWithEvidence$computeAllSubstitutions$slambda).x2n = function ($this$sequence, $completion) {
3944
+ var tmp = this.y2n($this$sequence, $completion);
3950
3945
  tmp.d8_1 = Unit_instance;
3951
3946
  tmp.e8_1 = null;
3952
3947
  return tmp.j8();
3953
3948
  };
3954
3949
  protoOf(ProbSolveWithEvidence$computeAllSubstitutions$slambda).a9 = function (p1, $completion) {
3955
- return this.y2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
3950
+ return this.x2n(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
3956
3951
  };
3957
3952
  protoOf(ProbSolveWithEvidence$computeAllSubstitutions$slambda).j8 = function () {
3958
3953
  var suspendResult = this.d8_1;
@@ -3962,26 +3957,26 @@
3962
3957
  switch (tmp) {
3963
3958
  case 0:
3964
3959
  this.c8_1 = 6;
3965
- this.p3a_1 = this.i3a_1.p();
3960
+ this.o3a_1 = this.h3a_1.n();
3966
3961
  this.b8_1 = 1;
3967
3962
  continue $sm;
3968
3963
  case 1:
3969
- if (!this.p3a_1.s()) {
3964
+ if (!this.o3a_1.q()) {
3970
3965
  this.b8_1 = 5;
3971
3966
  continue $sm;
3972
3967
  }
3973
3968
 
3974
- var solution = this.p3a_1.t();
3975
- if (solution.p1t())
3976
- throw ensureNotNull(solution.m1t());
3977
- var goalExplanationTerm = solution.g1s().h2(this.j3a_1);
3969
+ var solution = this.o3a_1.r();
3970
+ if (solution.o1t())
3971
+ throw ensureNotNull(solution.l1t());
3972
+ var goalExplanationTerm = solution.f1s().h2(this.i3a_1);
3978
3973
  var tmp_0;
3979
3974
  var tmp_1;
3980
3975
  var tmp_2;
3981
- if (this.k3a_1 == null) {
3976
+ if (this.j3a_1 == null) {
3982
3977
  tmp_2 = true;
3983
3978
  } else {
3984
- var tmp_3 = this.k3a_1;
3979
+ var tmp_3 = this.j3a_1;
3985
3980
  tmp_2 = !(tmp_3 instanceof ProbExplanationTerm);
3986
3981
  }
3987
3982
 
@@ -3999,19 +3994,19 @@
3999
3994
 
4000
3995
  if (tmp_0) {
4001
3996
  this.b8_1 = 3;
4002
- suspendResult = this.o3a_1.gd(Companion_getInstance_5().failed(), this);
3997
+ suspendResult = this.n3a_1.bd(Companion_getInstance_5().failed(), this);
4003
3998
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4004
3999
  return suspendResult;
4005
4000
  }
4006
4001
  continue $sm;
4007
4002
  } else {
4008
- var explanationWithEvidenceTerm = new ProbExplanationTerm(goalExplanationTerm.n35_1.and(this.k3a_1.n35_1));
4003
+ var explanationWithEvidenceTerm = new ProbExplanationTerm(goalExplanationTerm.m35_1.and(this.j3a_1.m35_1));
4009
4004
  this.b8_1 = 2;
4010
4005
  var tmp_4 = Companion_getInstance_5();
4011
- var tmp_5 = Companion_getInstance_9().j2d(this.l3a_1, this.m3a_1, explanationWithEvidenceTerm);
4012
- var tmp_6 = Companion_getInstance_9().j2d(this.l3a_1, this.n3a_1, this.k3a_1);
4013
- var tmp_7 = solution.g1s();
4014
- suspendResult = this.o3a_1.gd(tmp_4.ofSubstitution(tmp_5, [tmp_6, tmp_7.filter(ProbSolveWithEvidence$computeAllSubstitutions$slambda$lambda(this.j3a_1))]), this);
4006
+ var tmp_5 = Companion_getInstance_9().i2d(this.k3a_1, this.l3a_1, explanationWithEvidenceTerm);
4007
+ var tmp_6 = Companion_getInstance_9().i2d(this.k3a_1, this.m3a_1, this.j3a_1);
4008
+ var tmp_7 = solution.f1s();
4009
+ suspendResult = this.n3a_1.bd(tmp_4.ofSubstitution(tmp_5, [tmp_6, tmp_7.filter(ProbSolveWithEvidence$computeAllSubstitutions$slambda$lambda(this.i3a_1))]), this);
4015
4010
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
4016
4011
  return suspendResult;
4017
4012
  }
@@ -4043,37 +4038,35 @@
4043
4038
  }
4044
4039
  while (true);
4045
4040
  };
4046
- protoOf(ProbSolveWithEvidence$computeAllSubstitutions$slambda).z2n = function ($this$sequence, completion) {
4047
- var i = new ProbSolveWithEvidence$computeAllSubstitutions$slambda(this.i3a_1, this.j3a_1, this.k3a_1, this.l3a_1, this.m3a_1, this.n3a_1, completion);
4048
- i.o3a_1 = $this$sequence;
4041
+ protoOf(ProbSolveWithEvidence$computeAllSubstitutions$slambda).y2n = function ($this$sequence, completion) {
4042
+ var i = new ProbSolveWithEvidence$computeAllSubstitutions$slambda(this.h3a_1, this.i3a_1, this.j3a_1, this.k3a_1, this.l3a_1, this.m3a_1, completion);
4043
+ i.n3a_1 = $this$sequence;
4049
4044
  return i;
4050
4045
  };
4051
4046
  function ProbSolveWithEvidence$computeAllSubstitutions$slambda_0($solutions, $goalExplanationVar, $evidenceExplanationTerm, $this_computeAllSubstitutions, $first, $second, resultContinuation) {
4052
4047
  var i = new ProbSolveWithEvidence$computeAllSubstitutions$slambda($solutions, $goalExplanationVar, $evidenceExplanationTerm, $this_computeAllSubstitutions, $first, $second, resultContinuation);
4053
- var l = function ($this$sequence, $completion) {
4054
- return i.y2n($this$sequence, $completion);
4055
- };
4056
- l.$arity = 1;
4057
- return l;
4048
+ return constructCallableReference(function ($this$sequence, $completion) {
4049
+ return i.x2n($this$sequence, $completion);
4050
+ }, 1);
4058
4051
  }
4059
4052
  function ProbSolveWithEvidence() {
4060
4053
  ProbSolveWithEvidence_instance = this;
4061
4054
  WithoutSideEffects.call(this, 'prob_solve_with_evidence');
4062
4055
  }
4063
- protoOf(ProbSolveWithEvidence).z2j = function (_this__u8e3s4, first, second, third) {
4064
- Companion_getInstance_9().p2d(_this__u8e3s4, 2);
4065
- Companion_getInstance_9().t2d(_this__u8e3s4, 2);
4056
+ protoOf(ProbSolveWithEvidence).y2j = function (_this__u8e3s4, first, second, third) {
4057
+ Companion_getInstance_9().o2d(_this__u8e3s4, 2);
4058
+ Companion_getInstance_9().s2d(_this__u8e3s4, 2);
4066
4059
  var evidenceExplanationVar = Companion_getInstance_0().of('EvidenceExplanation');
4067
4060
  var tmp;
4068
- if (ProbSetConfig_getInstance().x37(_this__u8e3s4.context)) {
4069
- tmp = toTerm(Companion_getInstance_11().q36_1);
4061
+ if (ProbSetConfig_getInstance().w37(_this__u8e3s4.context)) {
4062
+ tmp = toTerm(Companion_getInstance_11().p36_1);
4070
4063
  } else {
4071
4064
  var tmp_0 = Companion_getInstance_1();
4072
4065
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
4073
4066
  var tmp$ret$0 = ProbSolveEvidence_getInstance().signature.name;
4074
4067
  var subQuery = tmp_0.of(tmp$ret$0, [evidenceExplanationVar]);
4075
- var solution = _this__u8e3s4.subSolver().solveOnceWithOptions(subQuery, ProbSetConfig_getInstance().j39(_this__u8e3s4.context));
4076
- tmp = solution.g1s().h2(evidenceExplanationVar);
4068
+ var solution = _this__u8e3s4.subSolver().solveOnceWithOptions(subQuery, ProbSetConfig_getInstance().i39(_this__u8e3s4.context));
4069
+ tmp = solution.f1s().h2(evidenceExplanationVar);
4077
4070
  }
4078
4071
  var evidenceExplanationTerm = tmp;
4079
4072
  var goalExplanationVar = Companion_getInstance_0().of('GoalExplanation');
@@ -4081,11 +4074,11 @@
4081
4074
  var tmp_2 = Companion_getInstance_1();
4082
4075
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
4083
4076
  var tmp$ret$1 = ProbSolve_getInstance().signature.name;
4084
- var solutions = tmp_1.solveWithOptions(tmp_2.of(tmp$ret$1, [goalExplanationVar, third]), ProbSetConfig_getInstance().j39(_this__u8e3s4.context));
4077
+ var solutions = tmp_1.solveWithOptions(tmp_2.of(tmp$ret$1, [goalExplanationVar, third]), ProbSetConfig_getInstance().i39(_this__u8e3s4.context));
4085
4078
  return sequence(ProbSolveWithEvidence$computeAllSubstitutions$slambda_0(solutions, goalExplanationVar, evidenceExplanationTerm, _this__u8e3s4, first, second, null));
4086
4079
  };
4087
- protoOf(ProbSolveWithEvidence).l2f = function (_this__u8e3s4, first, second, third) {
4088
- return this.z2j(_this__u8e3s4, first, second, third);
4080
+ protoOf(ProbSolveWithEvidence).k2f = function (_this__u8e3s4, first, second, third) {
4081
+ return this.y2j(_this__u8e3s4, first, second, third);
4089
4082
  };
4090
4083
  var ProbSolveWithEvidence_instance;
4091
4084
  function ProbSolveWithEvidence_getInstance() {
@@ -4097,10 +4090,10 @@
4097
4090
  Prob_instance = this;
4098
4091
  RuleWrapper_init_$Init$('prob', 2, VOID, this);
4099
4092
  }
4100
- protoOf(Prob).c2g = function (_this__u8e3s4) {
4093
+ protoOf(Prob).b2g = function (_this__u8e3s4) {
4101
4094
  return listOf_0([_this__u8e3s4.varOf('EXPL'), _this__u8e3s4.varOf('GOAL')]);
4102
4095
  };
4103
- protoOf(Prob).d2g = function (_this__u8e3s4) {
4096
+ protoOf(Prob).c2g = function (_this__u8e3s4) {
4104
4097
  var expl = _this__u8e3s4.varOf('EXPL');
4105
4098
  var goal = _this__u8e3s4.varOf('GOAL');
4106
4099
  var newGoal = _this__u8e3s4.varOf('NEW_GOAL');
@@ -4129,22 +4122,22 @@
4129
4122
  protoOf(ProblogSolverFactory).mutableSolverOf = mutableSolverOf;
4130
4123
  protoOf(ProblogSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
4131
4124
  protoOf(ProblogSolverFactory).newBuilder = newBuilder;
4132
- protoOf(ProblogSolverFactory).v1u = get_defaultRuntime;
4133
- protoOf(ProblogSolverFactory).x1u = get_defaultUnificator;
4134
- protoOf(ProblogSolverFactory).b1v = get_defaultStaticKb;
4135
- protoOf(ProblogSolverFactory).c1v = get_defaultDynamicKb;
4136
- protoOf(ProblogSolverFactory).d1v = get_defaultInputChannel;
4137
- protoOf(ProblogSolverFactory).e1v = get_defaultOutputChannel;
4138
- protoOf(ProblogSolverFactory).f1v = get_defaultErrorChannel;
4139
- protoOf(ProblogSolverFactory).g1v = get_defaultWarningsChannel;
4140
- protoOf(ProblogSolverFactory).o1v = solverWithDefaultBuiltins;
4125
+ protoOf(ProblogSolverFactory).u1u = get_defaultRuntime;
4126
+ protoOf(ProblogSolverFactory).w1u = get_defaultUnificator;
4127
+ protoOf(ProblogSolverFactory).a1v = get_defaultStaticKb;
4128
+ protoOf(ProblogSolverFactory).b1v = get_defaultDynamicKb;
4129
+ protoOf(ProblogSolverFactory).c1v = get_defaultInputChannel;
4130
+ protoOf(ProblogSolverFactory).d1v = get_defaultOutputChannel;
4131
+ protoOf(ProblogSolverFactory).e1v = get_defaultErrorChannel;
4132
+ protoOf(ProblogSolverFactory).f1v = get_defaultWarningsChannel;
4133
+ protoOf(ProblogSolverFactory).n1v = solverWithDefaultBuiltins;
4141
4134
  protoOf(ProblogSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
4142
- protoOf(ProblogSolverFactory).q1v = mutableSolverWithDefaultBuiltins;
4135
+ protoOf(ProblogSolverFactory).p1v = mutableSolverWithDefaultBuiltins;
4143
4136
  protoOf(ProblogSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
4144
4137
  defineProp(protoOf(ClauseMappingException), 'message', function () {
4145
- return this.e();
4138
+ return this.o1();
4146
4139
  });
4147
- protoOf(BinaryDecisionDiagramExplanation).d37 = get_probabilityOrNull;
4140
+ protoOf(BinaryDecisionDiagramExplanation).c37 = get_probabilityOrNull;
4148
4141
  //endregion
4149
4142
  //region block: init
4150
4143
  ProblogSolverFactory_instance = new ProblogSolverFactory();
@@ -4159,12 +4152,12 @@
4159
4152
  //endregion
4160
4153
  //region block: exports
4161
4154
  function $jsExportAll$(_) {
4162
- var $it = _.it || (_.it = {});
4163
- var $it$unibo = $it.unibo || ($it.unibo = {});
4164
- var $it$unibo$tuprolog = $it$unibo.tuprolog || ($it$unibo.tuprolog = {});
4165
- var $it$unibo$tuprolog$solve = $it$unibo$tuprolog.solve || ($it$unibo$tuprolog.solve = {});
4166
- var $it$unibo$tuprolog$solve$problog = $it$unibo$tuprolog$solve.problog || ($it$unibo$tuprolog$solve.problog = {});
4167
- defineProp($it$unibo$tuprolog$solve$problog, 'ProblogSolverFactory', ProblogSolverFactory_getInstance, VOID, true);
4155
+ var it = _.it || (_.it = {});
4156
+ var unibo = it.unibo || (it.unibo = {});
4157
+ var tuprolog = unibo.tuprolog || (unibo.tuprolog = {});
4158
+ var solve = tuprolog.solve || (tuprolog.solve = {});
4159
+ var problog = solve.problog || (solve.problog = {});
4160
+ defineProp(problog, 'ProblogSolverFactory', ProblogSolverFactory_getInstance, VOID, true);
4168
4161
  }
4169
4162
  $jsExportAll$(_);
4170
4163
  _.$jsExportAll$ = $jsExportAll$;