@tuprolog/arg2p 0.13.2 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +2267 -2267
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +442 -442
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +246 -246
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +152 -152
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +15 -15
- package/2p-parser-core.js +160 -160
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +1 -1
- package/2p-parser-theory.js +17 -17
- package/2p-solve-classic.js +869 -869
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +3095 -3095
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1351 -1351
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +227 -227
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +323 -323
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +90 -90
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +1707 -1488
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +89 -88
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +1784 -1225
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1514 -1512
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
package/2p-solve-classic.js
CHANGED
|
@@ -38,55 +38,55 @@
|
|
|
38
38
|
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
39
39
|
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
40
40
|
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
41
|
-
var toString = kotlin_kotlin.$_$.
|
|
41
|
+
var toString = kotlin_kotlin.$_$.q6;
|
|
42
42
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
43
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
43
|
+
var Unit_instance = kotlin_kotlin.$_$.l1;
|
|
44
44
|
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.t1;
|
|
45
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
45
|
+
var protoOf = kotlin_kotlin.$_$.n6;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.qa;
|
|
47
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.s4;
|
|
48
48
|
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.l3;
|
|
49
49
|
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
50
50
|
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.j3;
|
|
51
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
52
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
53
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
54
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
55
|
-
var add = kotlin_kotlin.$_$.
|
|
56
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
57
|
-
var equals = kotlin_kotlin.$_$.
|
|
58
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
59
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
60
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
61
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
62
|
-
var sequence = kotlin_kotlin.$_$.
|
|
51
|
+
var asSequence = kotlin_kotlin.$_$.m7;
|
|
52
|
+
var initMetadataForClass = kotlin_kotlin.$_$.a6;
|
|
53
|
+
var ensureNotNull = kotlin_kotlin.$_$.ua;
|
|
54
|
+
var fromInt = kotlin_kotlin.$_$.a5;
|
|
55
|
+
var add = kotlin_kotlin.$_$.v4;
|
|
56
|
+
var hashCode = kotlin_kotlin.$_$.z5;
|
|
57
|
+
var equals = kotlin_kotlin.$_$.u5;
|
|
58
|
+
var CoroutineImpl = kotlin_kotlin.$_$.r4;
|
|
59
|
+
var SequenceScope = kotlin_kotlin.$_$.i7;
|
|
60
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q4;
|
|
61
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.d6;
|
|
62
|
+
var sequence = kotlin_kotlin.$_$.o8;
|
|
63
63
|
var toString_0 = kotlin_kotlin.$_$.bb;
|
|
64
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
65
|
-
var emptySequence = kotlin_kotlin.$_$.
|
|
66
|
-
var plus = kotlin_kotlin.$_$.
|
|
67
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
68
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
69
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
70
|
-
var distinct = kotlin_kotlin.$_$.
|
|
64
|
+
var asSequence_0 = kotlin_kotlin.$_$.a2;
|
|
65
|
+
var emptySequence = kotlin_kotlin.$_$.r7;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.k8;
|
|
67
|
+
var KProperty1 = kotlin_kotlin.$_$.h7;
|
|
68
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.x5;
|
|
69
|
+
var flatMap = kotlin_kotlin.$_$.x7;
|
|
70
|
+
var distinct = kotlin_kotlin.$_$.p7;
|
|
71
71
|
var cached = kotlin_it_unibo_tuprolog_utils.$_$.v;
|
|
72
72
|
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
73
|
-
var filter = kotlin_kotlin.$_$.
|
|
74
|
-
var map = kotlin_kotlin.$_$.
|
|
75
|
-
var toList = kotlin_kotlin.$_$.
|
|
73
|
+
var filter = kotlin_kotlin.$_$.u7;
|
|
74
|
+
var map = kotlin_kotlin.$_$.g8;
|
|
75
|
+
var toList = kotlin_kotlin.$_$.v8;
|
|
76
76
|
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
77
77
|
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
78
78
|
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
79
79
|
var Companion_instance_7 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
80
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
81
|
-
var lazy = kotlin_kotlin.$_$.
|
|
82
|
-
var contains = kotlin_kotlin.$_$.
|
|
80
|
+
var emptySet = kotlin_kotlin.$_$.p2;
|
|
81
|
+
var lazy = kotlin_kotlin.$_$.wa;
|
|
82
|
+
var contains = kotlin_kotlin.$_$.n7;
|
|
83
83
|
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
84
84
|
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
85
85
|
var update = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
86
86
|
var apply = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
87
87
|
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
88
88
|
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
89
|
-
var getBigIntHashCode = kotlin_kotlin.$_$.
|
|
89
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.v5;
|
|
90
90
|
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
91
91
|
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
92
92
|
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.i2;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
96
96
|
var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
97
97
|
var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.m2;
|
|
98
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
98
|
+
var objectCreate = kotlin_kotlin.$_$.m6;
|
|
99
99
|
var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
100
100
|
var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
101
101
|
var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.f3;
|
|
116
116
|
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
117
117
|
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.i3;
|
|
118
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
119
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
120
|
-
var listOf = kotlin_kotlin.$_$.
|
|
118
|
+
var initMetadataForObject = kotlin_kotlin.$_$.e6;
|
|
119
|
+
var defineProp = kotlin_kotlin.$_$.t5;
|
|
120
|
+
var listOf = kotlin_kotlin.$_$.d3;
|
|
121
121
|
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
122
122
|
var to = kotlin_kotlin.$_$.cb;
|
|
123
123
|
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
@@ -127,26 +127,26 @@
|
|
|
127
127
|
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.n2;
|
|
128
128
|
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
129
129
|
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
130
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
130
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.b6;
|
|
131
131
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
132
|
-
var subtract = kotlin_kotlin.$_$.
|
|
132
|
+
var subtract = kotlin_kotlin.$_$.i5;
|
|
133
133
|
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
134
134
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
135
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
136
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
135
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.c6;
|
|
136
|
+
var getKClass = kotlin_kotlin.$_$.f7;
|
|
137
137
|
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
138
138
|
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
139
139
|
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.q1;
|
|
140
140
|
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
141
141
|
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.l1;
|
|
142
142
|
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
143
|
-
var toSet = kotlin_kotlin.$_$.
|
|
144
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
143
|
+
var toSet = kotlin_kotlin.$_$.x8;
|
|
144
|
+
var plus_1 = kotlin_kotlin.$_$.t3;
|
|
145
145
|
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
146
|
-
var drop = kotlin_kotlin.$_$.
|
|
147
|
-
var first = kotlin_kotlin.$_$.
|
|
146
|
+
var drop = kotlin_kotlin.$_$.q7;
|
|
147
|
+
var first = kotlin_kotlin.$_$.w7;
|
|
148
148
|
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.t1;
|
|
149
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
149
|
+
var isInterface = kotlin_kotlin.$_$.h6;
|
|
150
150
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
151
151
|
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.s1;
|
|
152
152
|
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
@@ -156,23 +156,23 @@
|
|
|
156
156
|
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.x;
|
|
157
157
|
var Companion_instance_11 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
158
158
|
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.v2;
|
|
159
|
-
var setOf = kotlin_kotlin.$_$.
|
|
159
|
+
var setOf = kotlin_kotlin.$_$.b4;
|
|
160
160
|
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
161
161
|
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.n;
|
|
162
162
|
var Companion_instance_12 = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
163
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
164
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
165
|
-
var any = kotlin_kotlin.$_$.
|
|
163
|
+
var contains_0 = kotlin_kotlin.$_$.d2;
|
|
164
|
+
var firstOrNull = kotlin_kotlin.$_$.v7;
|
|
165
|
+
var any = kotlin_kotlin.$_$.k7;
|
|
166
166
|
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
167
167
|
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.u;
|
|
168
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
168
|
+
var sequenceOf = kotlin_kotlin.$_$.m8;
|
|
169
169
|
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.b2;
|
|
170
|
-
var sequenceOf_0 = kotlin_kotlin.$_$.
|
|
170
|
+
var sequenceOf_0 = kotlin_kotlin.$_$.n8;
|
|
171
171
|
var Request = kotlin_it_unibo_tuprolog_solve.$_$.x1;
|
|
172
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
172
|
+
var get_ONE = kotlin_kotlin.$_$.u4;
|
|
173
173
|
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.u1;
|
|
174
174
|
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m1;
|
|
175
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
175
|
+
var listOf_0 = kotlin_kotlin.$_$.e3;
|
|
176
176
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.s1;
|
|
177
177
|
var Companion_instance_13 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
178
178
|
var Companion_instance_14 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
@@ -213,12 +213,12 @@
|
|
|
213
213
|
}
|
|
214
214
|
function clone(context, $super) {
|
|
215
215
|
context = context === VOID ? this.h8() : context;
|
|
216
|
-
return $super === VOID ? this.
|
|
216
|
+
return $super === VOID ? this.t34(context) : $super.t34.call(this, context);
|
|
217
217
|
}
|
|
218
218
|
initMetadataForInterface(State, 'State');
|
|
219
219
|
initMetadataForClass(AbstractState, 'AbstractState', VOID, VOID, [State]);
|
|
220
220
|
function get_hasOpenAlternatives() {
|
|
221
|
-
return this.
|
|
221
|
+
return this.y2g().a1v() && this.h8().o31();
|
|
222
222
|
}
|
|
223
223
|
function get_isEndState_0() {
|
|
224
224
|
return true;
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
return this;
|
|
228
228
|
}
|
|
229
229
|
function asEndState_1() {
|
|
230
|
-
return this.
|
|
230
|
+
return this.s34();
|
|
231
231
|
}
|
|
232
232
|
initMetadataForInterface(EndState, 'EndState', VOID, VOID, [State]);
|
|
233
233
|
initMetadataForClass(AbstractEndState, 'AbstractEndState', VOID, AbstractState, [AbstractState, EndState]);
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
initMetadataForCompanion(Companion_1);
|
|
260
260
|
//endregion
|
|
261
261
|
function AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
262
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
262
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
263
263
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
264
264
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
265
265
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -269,17 +269,17 @@
|
|
|
269
269
|
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
270
270
|
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
271
271
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
272
|
-
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
272
|
+
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.f1x(stdIn), Companion_instance_5.i1x(stdOut, stdErr, warnings), trustKb);
|
|
273
273
|
return $this;
|
|
274
274
|
}
|
|
275
275
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
276
276
|
// Inline function 'kotlin.require' call
|
|
277
277
|
// Inline function 'kotlin.require' call
|
|
278
|
-
if (!(destination.h8().
|
|
278
|
+
if (!(destination.h8().k30_1 === index)) {
|
|
279
279
|
var message = 'Failed requirement.';
|
|
280
280
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
281
281
|
}
|
|
282
|
-
$this.
|
|
282
|
+
$this.r30(destination.h8());
|
|
283
283
|
}
|
|
284
284
|
function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(p0) {
|
|
285
285
|
var l = function (_this__u8e3s4, p0_0, p1) {
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
return l;
|
|
292
292
|
}
|
|
293
293
|
function AbstractClassicSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
294
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
294
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
295
295
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
296
296
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
297
297
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -301,101 +301,101 @@
|
|
|
301
301
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
302
302
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
303
303
|
}
|
|
304
|
-
protoOf(AbstractClassicSolver).
|
|
305
|
-
this.
|
|
304
|
+
protoOf(AbstractClassicSolver).r30 = function (_set____db54di) {
|
|
305
|
+
this.q30_1 = _set____db54di;
|
|
306
306
|
};
|
|
307
|
-
protoOf(AbstractClassicSolver).
|
|
308
|
-
return this.
|
|
307
|
+
protoOf(AbstractClassicSolver).z29 = function (_set____db54di) {
|
|
308
|
+
return this.r30(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
|
|
309
309
|
};
|
|
310
|
-
protoOf(AbstractClassicSolver).
|
|
311
|
-
var tmp = this.
|
|
310
|
+
protoOf(AbstractClassicSolver).x29 = function () {
|
|
311
|
+
var tmp = this.q30_1;
|
|
312
312
|
if (!(tmp == null))
|
|
313
313
|
return tmp;
|
|
314
314
|
else {
|
|
315
315
|
throwUninitializedPropertyAccessException('currentContext');
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
protoOf(AbstractClassicSolver).
|
|
318
|
+
protoOf(AbstractClassicSolver).y29 = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
319
319
|
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_instance_0.empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_instance_1.empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID, 0n);
|
|
320
320
|
};
|
|
321
|
-
protoOf(AbstractClassicSolver).
|
|
322
|
-
var tmp0_unificator = this.
|
|
323
|
-
var tmp1_libraries = this.
|
|
324
|
-
var tmp2_flags = this.
|
|
325
|
-
var tmp3_staticKb = this.
|
|
326
|
-
var tmp4_dynamicKb = this.
|
|
327
|
-
var tmp5_operators = this.
|
|
328
|
-
var tmp6_inputChannels = this.
|
|
329
|
-
var tmp7_outputChannels = this.
|
|
330
|
-
var tmp8_customData = this.
|
|
321
|
+
protoOf(AbstractClassicSolver).f2a = function (goal, options) {
|
|
322
|
+
var tmp0_unificator = this.y1j();
|
|
323
|
+
var tmp1_libraries = this.w1t();
|
|
324
|
+
var tmp2_flags = this.x1t();
|
|
325
|
+
var tmp3_staticKb = this.y1t().toImmutableTheory();
|
|
326
|
+
var tmp4_dynamicKb = this.z1t().toMutableTheory();
|
|
327
|
+
var tmp5_operators = this.f1u();
|
|
328
|
+
var tmp6_inputChannels = this.a1u();
|
|
329
|
+
var tmp7_outputChannels = this.b1u();
|
|
330
|
+
var tmp8_customData = this.x29().z2z_1;
|
|
331
331
|
var tmp9_startTime = currentTimeInstant();
|
|
332
|
-
var tmp10_maxDuration = options.
|
|
333
|
-
this.
|
|
334
|
-
var tmp = new StateInit(this.
|
|
335
|
-
return asSequence(this.
|
|
332
|
+
var tmp10_maxDuration = options.d1w();
|
|
333
|
+
this.r30(new ClassicExecutionContext(VOID, tmp0_unificator, tmp1_libraries, tmp2_flags, tmp3_staticKb, tmp4_dynamicKb, tmp5_operators, tmp6_inputChannels, tmp7_outputChannels, tmp8_customData, VOID, goal, VOID, VOID, VOID, tmp9_startTime, tmp10_maxDuration));
|
|
334
|
+
var tmp = new StateInit(this.x29());
|
|
335
|
+
return asSequence(this.s30(tmp, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
336
336
|
};
|
|
337
337
|
protoOf(AbstractClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
338
338
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof AbstractClassicSolver) ? $super : THROW_CCE());
|
|
339
339
|
};
|
|
340
340
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
341
341
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
342
|
+
this.x30_1 = alternatives;
|
|
343
|
+
this.y30_1 = executionContext;
|
|
344
|
+
this.z30_1 = parent;
|
|
345
|
+
this.a31_1 = depth;
|
|
346
346
|
}
|
|
347
|
-
protoOf(Primitives).
|
|
348
|
-
return this.
|
|
347
|
+
protoOf(Primitives).b31 = function () {
|
|
348
|
+
return this.x30_1;
|
|
349
349
|
};
|
|
350
|
-
protoOf(Primitives).
|
|
351
|
-
return this.
|
|
350
|
+
protoOf(Primitives).c31 = function () {
|
|
351
|
+
return this.y30_1;
|
|
352
352
|
};
|
|
353
|
-
protoOf(Primitives).
|
|
354
|
-
return this.
|
|
353
|
+
protoOf(Primitives).d31 = function () {
|
|
354
|
+
return this.z30_1;
|
|
355
355
|
};
|
|
356
|
-
protoOf(Primitives).
|
|
357
|
-
return this.
|
|
356
|
+
protoOf(Primitives).e31 = function () {
|
|
357
|
+
return this.a31_1;
|
|
358
358
|
};
|
|
359
359
|
protoOf(Primitives).toString = function () {
|
|
360
360
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
361
361
|
};
|
|
362
|
-
protoOf(Primitives).
|
|
362
|
+
protoOf(Primitives).f31 = function () {
|
|
363
363
|
return 'Primitives';
|
|
364
364
|
};
|
|
365
|
-
protoOf(Primitives).
|
|
366
|
-
var tmp0_$this = ensureNotNull(this.
|
|
367
|
-
var tmp1_primitives = this.
|
|
365
|
+
protoOf(Primitives).g31 = function (context) {
|
|
366
|
+
var tmp0_$this = ensureNotNull(this.y30_1);
|
|
367
|
+
var tmp1_primitives = this.x30_1;
|
|
368
368
|
// Inline function 'kotlin.Long.plus' call
|
|
369
|
-
var this_0 = context.
|
|
369
|
+
var this_0 = context.k30_1;
|
|
370
370
|
var tmp2_step = add(this_0, fromInt(1));
|
|
371
|
-
var tmp3_startTime = context.
|
|
372
|
-
var tmp4_flags = context.
|
|
373
|
-
var tmp5_dynamicKb = context.
|
|
374
|
-
var tmp6_staticKb = context.
|
|
375
|
-
var tmp7_operators = context.
|
|
376
|
-
var tmp8_inputChannels = context.
|
|
377
|
-
var tmp9_outputChannels = context.
|
|
378
|
-
var tmp10_libraries = context.
|
|
379
|
-
var tmp11_customData = context.
|
|
380
|
-
var tempContext = tmp0_$this.
|
|
381
|
-
var nextChoicePointContext = this.
|
|
382
|
-
return tempContext.
|
|
383
|
-
};
|
|
384
|
-
protoOf(Primitives).
|
|
371
|
+
var tmp3_startTime = context.f30_1;
|
|
372
|
+
var tmp4_flags = context.t2z_1;
|
|
373
|
+
var tmp5_dynamicKb = context.v2z_1;
|
|
374
|
+
var tmp6_staticKb = context.u2z_1;
|
|
375
|
+
var tmp7_operators = context.w2z_1;
|
|
376
|
+
var tmp8_inputChannels = context.x2z_1;
|
|
377
|
+
var tmp9_outputChannels = context.y2z_1;
|
|
378
|
+
var tmp10_libraries = context.s2z_1;
|
|
379
|
+
var tmp11_customData = context.z2z_1.discardEphemeral();
|
|
380
|
+
var tempContext = tmp0_$this.h31(VOID, VOID, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, VOID, VOID, VOID, VOID, tmp1_primitives, tmp3_startTime, VOID, VOID, VOID, VOID, tmp2_step);
|
|
381
|
+
var nextChoicePointContext = this.i31(this.x30_1.hq(), tempContext);
|
|
382
|
+
return tempContext.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
383
|
+
};
|
|
384
|
+
protoOf(Primitives).j31 = function (alternatives, executionContext, parent, depth) {
|
|
385
385
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
386
386
|
};
|
|
387
|
-
protoOf(Primitives).
|
|
388
|
-
alternatives = alternatives === VOID ? this.
|
|
389
|
-
executionContext = executionContext === VOID ? this.
|
|
390
|
-
parent = parent === VOID ? this.
|
|
391
|
-
depth = depth === VOID ? this.
|
|
392
|
-
return $super === VOID ? this.
|
|
387
|
+
protoOf(Primitives).i31 = function (alternatives, executionContext, parent, depth, $super) {
|
|
388
|
+
alternatives = alternatives === VOID ? this.x30_1 : alternatives;
|
|
389
|
+
executionContext = executionContext === VOID ? this.y30_1 : executionContext;
|
|
390
|
+
parent = parent === VOID ? this.z30_1 : parent;
|
|
391
|
+
depth = depth === VOID ? this.a31_1 : depth;
|
|
392
|
+
return $super === VOID ? this.j31(alternatives, executionContext, parent, depth) : $super.j31.call(this, alternatives, executionContext, parent, depth);
|
|
393
393
|
};
|
|
394
394
|
protoOf(Primitives).hashCode = function () {
|
|
395
|
-
var result = hashCode(this.
|
|
396
|
-
result = imul(result, 31) + (this.
|
|
397
|
-
result = imul(result, 31) + (this.
|
|
398
|
-
result = imul(result, 31) + this.
|
|
395
|
+
var result = hashCode(this.x30_1);
|
|
396
|
+
result = imul(result, 31) + (this.y30_1 == null ? 0 : this.y30_1.hashCode()) | 0;
|
|
397
|
+
result = imul(result, 31) + (this.z30_1 == null ? 0 : hashCode(this.z30_1)) | 0;
|
|
398
|
+
result = imul(result, 31) + this.a31_1 | 0;
|
|
399
399
|
return result;
|
|
400
400
|
};
|
|
401
401
|
protoOf(Primitives).equals = function (other) {
|
|
@@ -403,75 +403,75 @@
|
|
|
403
403
|
return true;
|
|
404
404
|
if (!(other instanceof Primitives))
|
|
405
405
|
return false;
|
|
406
|
-
if (!equals(this.
|
|
406
|
+
if (!equals(this.x30_1, other.x30_1))
|
|
407
407
|
return false;
|
|
408
|
-
if (!equals(this.
|
|
408
|
+
if (!equals(this.y30_1, other.y30_1))
|
|
409
409
|
return false;
|
|
410
|
-
if (!equals(this.
|
|
410
|
+
if (!equals(this.z30_1, other.z30_1))
|
|
411
411
|
return false;
|
|
412
|
-
if (!(this.
|
|
412
|
+
if (!(this.a31_1 === other.a31_1))
|
|
413
413
|
return false;
|
|
414
414
|
return true;
|
|
415
415
|
};
|
|
416
416
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
417
417
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
418
|
+
this.w31_1 = alternatives;
|
|
419
|
+
this.x31_1 = executionContext;
|
|
420
|
+
this.y31_1 = parent;
|
|
421
|
+
this.z31_1 = depth;
|
|
422
422
|
}
|
|
423
|
-
protoOf(Rules).
|
|
424
|
-
return this.
|
|
423
|
+
protoOf(Rules).b31 = function () {
|
|
424
|
+
return this.w31_1;
|
|
425
425
|
};
|
|
426
|
-
protoOf(Rules).
|
|
427
|
-
return this.
|
|
426
|
+
protoOf(Rules).c31 = function () {
|
|
427
|
+
return this.x31_1;
|
|
428
428
|
};
|
|
429
|
-
protoOf(Rules).
|
|
430
|
-
return this.
|
|
429
|
+
protoOf(Rules).d31 = function () {
|
|
430
|
+
return this.y31_1;
|
|
431
431
|
};
|
|
432
|
-
protoOf(Rules).
|
|
433
|
-
return this.
|
|
432
|
+
protoOf(Rules).e31 = function () {
|
|
433
|
+
return this.z31_1;
|
|
434
434
|
};
|
|
435
435
|
protoOf(Rules).toString = function () {
|
|
436
436
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
437
437
|
};
|
|
438
|
-
protoOf(Rules).
|
|
438
|
+
protoOf(Rules).f31 = function () {
|
|
439
439
|
return 'Rules';
|
|
440
440
|
};
|
|
441
|
-
protoOf(Rules).
|
|
442
|
-
var tmp0_$this = ensureNotNull(this.
|
|
443
|
-
var tmp1_rules = this.
|
|
441
|
+
protoOf(Rules).g31 = function (context) {
|
|
442
|
+
var tmp0_$this = ensureNotNull(this.x31_1);
|
|
443
|
+
var tmp1_rules = this.w31_1;
|
|
444
444
|
// Inline function 'kotlin.Long.plus' call
|
|
445
|
-
var this_0 = context.
|
|
445
|
+
var this_0 = context.k30_1;
|
|
446
446
|
var tmp2_step = add(this_0, fromInt(1));
|
|
447
|
-
var tmp3_startTime = context.
|
|
448
|
-
var tmp4_flags = context.
|
|
449
|
-
var tmp5_dynamicKb = context.
|
|
450
|
-
var tmp6_staticKb = context.
|
|
451
|
-
var tmp7_operators = context.
|
|
452
|
-
var tmp8_inputChannels = context.
|
|
453
|
-
var tmp9_outputChannels = context.
|
|
454
|
-
var tmp10_libraries = context.
|
|
455
|
-
var tmp11_customData = context.
|
|
456
|
-
var tempContext = tmp0_$this.
|
|
457
|
-
var nextChoicePointContext = this.
|
|
458
|
-
return tempContext.
|
|
459
|
-
};
|
|
460
|
-
protoOf(Rules).
|
|
447
|
+
var tmp3_startTime = context.f30_1;
|
|
448
|
+
var tmp4_flags = context.t2z_1;
|
|
449
|
+
var tmp5_dynamicKb = context.v2z_1;
|
|
450
|
+
var tmp6_staticKb = context.u2z_1;
|
|
451
|
+
var tmp7_operators = context.w2z_1;
|
|
452
|
+
var tmp8_inputChannels = context.x2z_1;
|
|
453
|
+
var tmp9_outputChannels = context.y2z_1;
|
|
454
|
+
var tmp10_libraries = context.s2z_1;
|
|
455
|
+
var tmp11_customData = context.z2z_1.discardEphemeral();
|
|
456
|
+
var tempContext = tmp0_$this.h31(VOID, VOID, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, VOID, VOID, VOID, tmp1_rules, VOID, tmp3_startTime, VOID, VOID, VOID, VOID, tmp2_step);
|
|
457
|
+
var nextChoicePointContext = this.a32(this.w31_1.hq(), tempContext);
|
|
458
|
+
return tempContext.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
459
|
+
};
|
|
460
|
+
protoOf(Rules).b32 = function (alternatives, executionContext, parent, depth) {
|
|
461
461
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
462
462
|
};
|
|
463
|
-
protoOf(Rules).
|
|
464
|
-
alternatives = alternatives === VOID ? this.
|
|
465
|
-
executionContext = executionContext === VOID ? this.
|
|
466
|
-
parent = parent === VOID ? this.
|
|
467
|
-
depth = depth === VOID ? this.
|
|
468
|
-
return $super === VOID ? this.
|
|
463
|
+
protoOf(Rules).a32 = function (alternatives, executionContext, parent, depth, $super) {
|
|
464
|
+
alternatives = alternatives === VOID ? this.w31_1 : alternatives;
|
|
465
|
+
executionContext = executionContext === VOID ? this.x31_1 : executionContext;
|
|
466
|
+
parent = parent === VOID ? this.y31_1 : parent;
|
|
467
|
+
depth = depth === VOID ? this.z31_1 : depth;
|
|
468
|
+
return $super === VOID ? this.b32(alternatives, executionContext, parent, depth) : $super.b32.call(this, alternatives, executionContext, parent, depth);
|
|
469
469
|
};
|
|
470
470
|
protoOf(Rules).hashCode = function () {
|
|
471
|
-
var result = hashCode(this.
|
|
472
|
-
result = imul(result, 31) + (this.
|
|
473
|
-
result = imul(result, 31) + (this.
|
|
474
|
-
result = imul(result, 31) + this.
|
|
471
|
+
var result = hashCode(this.w31_1);
|
|
472
|
+
result = imul(result, 31) + (this.x31_1 == null ? 0 : this.x31_1.hashCode()) | 0;
|
|
473
|
+
result = imul(result, 31) + (this.y31_1 == null ? 0 : hashCode(this.y31_1)) | 0;
|
|
474
|
+
result = imul(result, 31) + this.z31_1 | 0;
|
|
475
475
|
return result;
|
|
476
476
|
};
|
|
477
477
|
protoOf(Rules).equals = function (other) {
|
|
@@ -479,28 +479,28 @@
|
|
|
479
479
|
return true;
|
|
480
480
|
if (!(other instanceof Rules))
|
|
481
481
|
return false;
|
|
482
|
-
if (!equals(this.
|
|
482
|
+
if (!equals(this.w31_1, other.w31_1))
|
|
483
483
|
return false;
|
|
484
|
-
if (!equals(this.
|
|
484
|
+
if (!equals(this.x31_1, other.x31_1))
|
|
485
485
|
return false;
|
|
486
|
-
if (!equals(this.
|
|
486
|
+
if (!equals(this.y31_1, other.y31_1))
|
|
487
487
|
return false;
|
|
488
|
-
if (!(this.
|
|
488
|
+
if (!(this.z31_1 === other.z31_1))
|
|
489
489
|
return false;
|
|
490
490
|
return true;
|
|
491
491
|
};
|
|
492
492
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
493
|
-
this.
|
|
493
|
+
this.k32_1 = this$0;
|
|
494
494
|
CoroutineImpl.call(this, resultContinuation);
|
|
495
495
|
}
|
|
496
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
497
|
-
var tmp = this.
|
|
496
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).n32 = function ($this$sequence, $completion) {
|
|
497
|
+
var tmp = this.o32($this$sequence, $completion);
|
|
498
498
|
tmp.d8_1 = Unit_instance;
|
|
499
499
|
tmp.e8_1 = null;
|
|
500
500
|
return tmp.j8();
|
|
501
501
|
};
|
|
502
502
|
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).a9 = function (p1, $completion) {
|
|
503
|
-
return this.
|
|
503
|
+
return this.n32(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
504
504
|
};
|
|
505
505
|
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).j8 = function () {
|
|
506
506
|
var suspendResult = this.d8_1;
|
|
@@ -510,24 +510,24 @@
|
|
|
510
510
|
switch (tmp) {
|
|
511
511
|
case 0:
|
|
512
512
|
this.c8_1 = 4;
|
|
513
|
-
this.
|
|
513
|
+
this.m32_1 = this.k32_1;
|
|
514
514
|
this.b8_1 = 1;
|
|
515
515
|
continue $sm;
|
|
516
516
|
case 1:
|
|
517
|
-
if (!!(this.
|
|
517
|
+
if (!!(this.m32_1 == null)) {
|
|
518
518
|
this.b8_1 = 3;
|
|
519
519
|
continue $sm;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
this.b8_1 = 2;
|
|
523
|
-
suspendResult = this.
|
|
523
|
+
suspendResult = this.l32_1.nd(ensureNotNull(this.m32_1), this);
|
|
524
524
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
525
525
|
return suspendResult;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
continue $sm;
|
|
529
529
|
case 2:
|
|
530
|
-
this.
|
|
530
|
+
this.m32_1 = this.m32_1.d31();
|
|
531
531
|
this.b8_1 = 1;
|
|
532
532
|
continue $sm;
|
|
533
533
|
case 3:
|
|
@@ -546,47 +546,47 @@
|
|
|
546
546
|
}
|
|
547
547
|
while (true);
|
|
548
548
|
};
|
|
549
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
550
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
551
|
-
i.
|
|
549
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).o32 = function ($this$sequence, completion) {
|
|
550
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.k32_1, completion);
|
|
551
|
+
i.l32_1 = $this$sequence;
|
|
552
552
|
return i;
|
|
553
553
|
};
|
|
554
554
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
555
555
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
556
556
|
var l = function ($this$sequence, $completion) {
|
|
557
|
-
return i.
|
|
557
|
+
return i.n32($this$sequence, $completion);
|
|
558
558
|
};
|
|
559
559
|
l.$arity = 1;
|
|
560
560
|
return l;
|
|
561
561
|
}
|
|
562
562
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
563
563
|
depth = depth === VOID ? 0 : depth;
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
566
|
-
this.
|
|
567
|
-
this.
|
|
564
|
+
this.k31_1 = alternatives;
|
|
565
|
+
this.l31_1 = executionContext;
|
|
566
|
+
this.m31_1 = parent;
|
|
567
|
+
this.n31_1 = depth;
|
|
568
568
|
}
|
|
569
|
-
protoOf(ChoicePointContext).
|
|
570
|
-
return this.
|
|
569
|
+
protoOf(ChoicePointContext).b31 = function () {
|
|
570
|
+
return this.k31_1;
|
|
571
571
|
};
|
|
572
|
-
protoOf(ChoicePointContext).
|
|
573
|
-
return this.
|
|
572
|
+
protoOf(ChoicePointContext).c31 = function () {
|
|
573
|
+
return this.l31_1;
|
|
574
574
|
};
|
|
575
|
-
protoOf(ChoicePointContext).
|
|
576
|
-
return this.
|
|
575
|
+
protoOf(ChoicePointContext).d31 = function () {
|
|
576
|
+
return this.m31_1;
|
|
577
577
|
};
|
|
578
|
-
protoOf(ChoicePointContext).
|
|
579
|
-
return this.
|
|
578
|
+
protoOf(ChoicePointContext).e31 = function () {
|
|
579
|
+
return this.n31_1;
|
|
580
580
|
};
|
|
581
|
-
protoOf(ChoicePointContext).
|
|
582
|
-
var tmp0 = this.
|
|
581
|
+
protoOf(ChoicePointContext).o31 = function () {
|
|
582
|
+
var tmp0 = this.p31();
|
|
583
583
|
var tmp$ret$1;
|
|
584
584
|
$l$block: {
|
|
585
585
|
// Inline function 'kotlin.sequences.any' call
|
|
586
586
|
var _iterator__ex2g4s = tmp0.p();
|
|
587
587
|
while (_iterator__ex2g4s.s()) {
|
|
588
588
|
var element = _iterator__ex2g4s.t();
|
|
589
|
-
if (element.
|
|
589
|
+
if (element.b31().jq()) {
|
|
590
590
|
tmp$ret$1 = true;
|
|
591
591
|
break $l$block;
|
|
592
592
|
}
|
|
@@ -595,64 +595,64 @@
|
|
|
595
595
|
}
|
|
596
596
|
return tmp$ret$1;
|
|
597
597
|
};
|
|
598
|
-
protoOf(ChoicePointContext).
|
|
598
|
+
protoOf(ChoicePointContext).p31 = function () {
|
|
599
599
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
600
600
|
};
|
|
601
|
-
protoOf(ChoicePointContext).
|
|
602
|
-
var tmp0_safe_receiver = this.
|
|
603
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
601
|
+
protoOf(ChoicePointContext).q31 = function () {
|
|
602
|
+
var tmp0_safe_receiver = this.c31();
|
|
603
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j30_1;
|
|
604
604
|
};
|
|
605
|
-
protoOf(ChoicePointContext).
|
|
606
|
-
var tmp0_safe_receiver = this.
|
|
607
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
605
|
+
protoOf(ChoicePointContext).r31 = function () {
|
|
606
|
+
var tmp0_safe_receiver = this.c31();
|
|
607
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q2z_1;
|
|
608
608
|
};
|
|
609
609
|
protoOf(ChoicePointContext).toString = function () {
|
|
610
|
-
var tmp = this.
|
|
610
|
+
var tmp = this.f31() + '(' + ('alternatives=' + toString(this.b31()) + ', ');
|
|
611
611
|
var tmp_0;
|
|
612
|
-
if (this.
|
|
613
|
-
tmp_0 = 'executionContext=' + toString_0(this.
|
|
612
|
+
if (this.c31() === null) {
|
|
613
|
+
tmp_0 = 'executionContext=' + toString_0(this.c31()) + ', ';
|
|
614
614
|
} else {
|
|
615
|
-
'executionContextDepth=' + this.
|
|
616
|
-
tmp_0 = 'executionContextProcedure=' + toString_0(this.
|
|
615
|
+
'executionContextDepth=' + this.q31() + ', ';
|
|
616
|
+
tmp_0 = 'executionContextProcedure=' + toString_0(this.r31()) + ', ';
|
|
617
617
|
}
|
|
618
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
618
|
+
return tmp + tmp_0 + ('depth=' + this.e31()) + ')';
|
|
619
619
|
};
|
|
620
620
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
621
621
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
622
622
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
623
623
|
}
|
|
624
624
|
function nextDepth(_this__u8e3s4) {
|
|
625
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
625
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.e31() + 1 | 0;
|
|
626
626
|
}
|
|
627
627
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
628
628
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
629
629
|
return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
630
630
|
}
|
|
631
631
|
function _get_locallyInterestingVariables__39cqti($this) {
|
|
632
|
-
var tmp = asSequence_0($this.
|
|
633
|
-
var tmp0_safe_receiver = $this.
|
|
634
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
632
|
+
var tmp = asSequence_0($this.l30_1);
|
|
633
|
+
var tmp0_safe_receiver = $this.c30_1.iq();
|
|
634
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hv();
|
|
635
635
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
636
636
|
}
|
|
637
637
|
function _get_interestingVariables__k6uw5o($this) {
|
|
638
|
-
var tmp0 = $this.
|
|
638
|
+
var tmp0 = $this.o30_1;
|
|
639
639
|
var tmp = KProperty1;
|
|
640
640
|
// Inline function 'kotlin.getValue' call
|
|
641
641
|
getPropertyCallableRef('interestingVariables', 1, tmp, ClassicExecutionContext$_get_interestingVariables_$ref_xwa4zu(), null);
|
|
642
642
|
return tmp0.e2();
|
|
643
643
|
}
|
|
644
644
|
function ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
645
|
-
this.
|
|
645
|
+
this.x32_1 = this$0;
|
|
646
646
|
CoroutineImpl.call(this, resultContinuation);
|
|
647
647
|
}
|
|
648
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
649
|
-
var tmp = this.
|
|
648
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).a33 = function ($this$sequence, $completion) {
|
|
649
|
+
var tmp = this.b33($this$sequence, $completion);
|
|
650
650
|
tmp.d8_1 = Unit_instance;
|
|
651
651
|
tmp.e8_1 = null;
|
|
652
652
|
return tmp.j8();
|
|
653
653
|
};
|
|
654
654
|
protoOf(ClassicExecutionContext$pathToRoot$slambda).a9 = function (p1, $completion) {
|
|
655
|
-
return this.
|
|
655
|
+
return this.a33(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
656
656
|
};
|
|
657
657
|
protoOf(ClassicExecutionContext$pathToRoot$slambda).j8 = function () {
|
|
658
658
|
var suspendResult = this.d8_1;
|
|
@@ -662,24 +662,24 @@
|
|
|
662
662
|
switch (tmp) {
|
|
663
663
|
case 0:
|
|
664
664
|
this.c8_1 = 4;
|
|
665
|
-
this.
|
|
665
|
+
this.z32_1 = this.x32_1;
|
|
666
666
|
this.b8_1 = 1;
|
|
667
667
|
continue $sm;
|
|
668
668
|
case 1:
|
|
669
|
-
if (!!(this.
|
|
669
|
+
if (!!(this.z32_1 == null)) {
|
|
670
670
|
this.b8_1 = 3;
|
|
671
671
|
continue $sm;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
this.b8_1 = 2;
|
|
675
|
-
suspendResult = this.
|
|
675
|
+
suspendResult = this.y32_1.nd(this.z32_1, this);
|
|
676
676
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
677
677
|
return suspendResult;
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
continue $sm;
|
|
681
681
|
case 2:
|
|
682
|
-
this.
|
|
682
|
+
this.z32_1 = this.z32_1.i30_1;
|
|
683
683
|
this.b8_1 = 1;
|
|
684
684
|
continue $sm;
|
|
685
685
|
case 3:
|
|
@@ -698,15 +698,15 @@
|
|
|
698
698
|
}
|
|
699
699
|
while (true);
|
|
700
700
|
};
|
|
701
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
702
|
-
var i = new ClassicExecutionContext$pathToRoot$slambda(this.
|
|
703
|
-
i.
|
|
701
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).b33 = function ($this$sequence, completion) {
|
|
702
|
+
var i = new ClassicExecutionContext$pathToRoot$slambda(this.x32_1, completion);
|
|
703
|
+
i.y32_1 = $this$sequence;
|
|
704
704
|
return i;
|
|
705
705
|
};
|
|
706
706
|
function ClassicExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
707
707
|
var i = new ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
708
708
|
var l = function ($this$sequence, $completion) {
|
|
709
|
-
return i.
|
|
709
|
+
return i.a33($this$sequence, $completion);
|
|
710
710
|
};
|
|
711
711
|
l.$arity = 1;
|
|
712
712
|
return l;
|
|
@@ -714,18 +714,18 @@
|
|
|
714
714
|
function ClassicExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
715
715
|
return function () {
|
|
716
716
|
var tmp;
|
|
717
|
-
if (this$0.
|
|
717
|
+
if (this$0.c30_1.kq()) {
|
|
718
718
|
tmp = null;
|
|
719
719
|
} else {
|
|
720
|
-
var tmp0_safe_receiver = this$0.
|
|
721
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
720
|
+
var tmp0_safe_receiver = this$0.c30_1.iq();
|
|
721
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.a30_1);
|
|
722
722
|
}
|
|
723
723
|
return tmp;
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
726
|
function ClassicExecutionContext$_get_currentGoal_$ref_ulveh3() {
|
|
727
727
|
return function (p0) {
|
|
728
|
-
return p0.
|
|
728
|
+
return p0.c33();
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
731
|
function ClassicExecutionContext$interestingVariables$delegate$lambda$lambda(it) {
|
|
@@ -733,8 +733,8 @@
|
|
|
733
733
|
}
|
|
734
734
|
function ClassicExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
735
735
|
return function () {
|
|
736
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
737
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
736
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.b30_1.hv());
|
|
737
|
+
return cached(distinct(plus(tmp, flatMap(this$0.m30_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
function ClassicExecutionContext$_get_interestingVariables_$ref_xwa4zu() {
|
|
@@ -743,28 +743,28 @@
|
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
746
|
-
return it.
|
|
746
|
+
return it.d33();
|
|
747
747
|
}
|
|
748
748
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
749
749
|
return function (it) {
|
|
750
|
-
var tmp0_elvis_lhs = it.
|
|
751
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.
|
|
750
|
+
var tmp0_elvis_lhs = it.q2z_1;
|
|
751
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.b30_1]) : tmp0_elvis_lhs;
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
754
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
755
755
|
return function () {
|
|
756
|
-
var tmp = filter(this$0.
|
|
756
|
+
var tmp = filter(this$0.m30_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
757
757
|
return toList(map(tmp, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
function ClassicExecutionContext$_get_logicStackTrace_$ref_p35zx2() {
|
|
761
761
|
return function (p0) {
|
|
762
|
-
return p0.
|
|
762
|
+
return p0.t1t();
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
765
|
function ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
766
766
|
procedure = procedure === VOID ? null : procedure;
|
|
767
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
767
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
768
768
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
769
769
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
770
770
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
775
775
|
customData = customData === VOID ? Companion_instance_6.empty() : customData;
|
|
776
776
|
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
777
|
-
query = query === VOID ? Companion_getInstance_3().
|
|
777
|
+
query = query === VOID ? Companion_getInstance_3().wu_1 : query;
|
|
778
778
|
goals = goals === VOID ? Companion_instance_7.empty() : goals;
|
|
779
779
|
rules = rules === VOID ? Companion_instance_7.empty() : rules;
|
|
780
780
|
primitives = primitives === VOID ? Companion_instance_7.empty() : primitives;
|
|
@@ -784,215 +784,215 @@
|
|
|
784
784
|
depth = depth === VOID ? 0 : depth;
|
|
785
785
|
step = step === VOID ? 0n : step;
|
|
786
786
|
relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
787
|
+
this.q2z_1 = procedure;
|
|
788
|
+
this.r2z_1 = unificator;
|
|
789
|
+
this.s2z_1 = libraries;
|
|
790
|
+
this.t2z_1 = flags;
|
|
791
|
+
this.u2z_1 = staticKb;
|
|
792
|
+
this.v2z_1 = dynamicKb;
|
|
793
|
+
this.w2z_1 = operators;
|
|
794
|
+
this.x2z_1 = inputChannels;
|
|
795
|
+
this.y2z_1 = outputChannels;
|
|
796
|
+
this.z2z_1 = customData;
|
|
797
|
+
this.a30_1 = substitution;
|
|
798
|
+
this.b30_1 = query;
|
|
799
|
+
this.c30_1 = goals;
|
|
800
|
+
this.d30_1 = rules;
|
|
801
|
+
this.e30_1 = primitives;
|
|
802
|
+
this.f30_1 = startTime;
|
|
803
|
+
this.g30_1 = maxDuration;
|
|
804
|
+
this.h30_1 = choicePoints;
|
|
805
|
+
this.i30_1 = parent;
|
|
806
|
+
this.j30_1 = depth;
|
|
807
|
+
this.k30_1 = step;
|
|
808
|
+
this.l30_1 = relevantVariables;
|
|
809
809
|
// Inline function 'kotlin.require' call
|
|
810
810
|
// Inline function 'kotlin.require' call
|
|
811
|
-
if (!(this.
|
|
811
|
+
if (!(this.j30_1 === 0 && this.i30_1 == null || (this.j30_1 > 0 && !(this.i30_1 == null)))) {
|
|
812
812
|
var message = 'Failed requirement.';
|
|
813
813
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
814
814
|
}
|
|
815
815
|
// Inline function 'kotlin.require' call
|
|
816
816
|
// Inline function 'kotlin.require' call
|
|
817
|
-
if (!(this.
|
|
817
|
+
if (!(this.f30_1 >= 0n)) {
|
|
818
818
|
var message_0 = 'Failed requirement.';
|
|
819
819
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
820
820
|
}
|
|
821
821
|
// Inline function 'kotlin.require' call
|
|
822
822
|
// Inline function 'kotlin.require' call
|
|
823
|
-
if (!(this.
|
|
823
|
+
if (!(this.g30_1 >= 0n)) {
|
|
824
824
|
var message_1 = 'Failed requirement.';
|
|
825
825
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
826
826
|
}
|
|
827
827
|
var tmp = this;
|
|
828
|
-
tmp.
|
|
828
|
+
tmp.m30_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
|
|
829
829
|
var tmp_0 = this;
|
|
830
|
-
tmp_0.
|
|
830
|
+
tmp_0.n30_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
|
|
831
831
|
var tmp_1 = this;
|
|
832
|
-
tmp_1.
|
|
832
|
+
tmp_1.o30_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
|
|
833
833
|
var tmp_2 = this;
|
|
834
|
-
tmp_2.
|
|
834
|
+
tmp_2.p30_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
835
835
|
}
|
|
836
|
-
protoOf(ClassicExecutionContext).
|
|
837
|
-
return this.
|
|
836
|
+
protoOf(ClassicExecutionContext).r1t = function () {
|
|
837
|
+
return this.q2z_1;
|
|
838
838
|
};
|
|
839
|
-
protoOf(ClassicExecutionContext).
|
|
840
|
-
return this.
|
|
839
|
+
protoOf(ClassicExecutionContext).y1j = function () {
|
|
840
|
+
return this.r2z_1;
|
|
841
841
|
};
|
|
842
|
-
protoOf(ClassicExecutionContext).
|
|
843
|
-
return this.
|
|
842
|
+
protoOf(ClassicExecutionContext).w1t = function () {
|
|
843
|
+
return this.s2z_1;
|
|
844
844
|
};
|
|
845
|
-
protoOf(ClassicExecutionContext).
|
|
846
|
-
return this.
|
|
845
|
+
protoOf(ClassicExecutionContext).x1t = function () {
|
|
846
|
+
return this.t2z_1;
|
|
847
847
|
};
|
|
848
|
-
protoOf(ClassicExecutionContext).
|
|
849
|
-
return this.
|
|
848
|
+
protoOf(ClassicExecutionContext).y1t = function () {
|
|
849
|
+
return this.u2z_1;
|
|
850
850
|
};
|
|
851
|
-
protoOf(ClassicExecutionContext).
|
|
852
|
-
return this.
|
|
851
|
+
protoOf(ClassicExecutionContext).z1t = function () {
|
|
852
|
+
return this.v2z_1;
|
|
853
853
|
};
|
|
854
|
-
protoOf(ClassicExecutionContext).
|
|
855
|
-
return this.
|
|
854
|
+
protoOf(ClassicExecutionContext).f1u = function () {
|
|
855
|
+
return this.w2z_1;
|
|
856
856
|
};
|
|
857
|
-
protoOf(ClassicExecutionContext).
|
|
858
|
-
return this.
|
|
857
|
+
protoOf(ClassicExecutionContext).a1u = function () {
|
|
858
|
+
return this.x2z_1;
|
|
859
859
|
};
|
|
860
|
-
protoOf(ClassicExecutionContext).
|
|
861
|
-
return this.
|
|
860
|
+
protoOf(ClassicExecutionContext).b1u = function () {
|
|
861
|
+
return this.y2z_1;
|
|
862
862
|
};
|
|
863
|
-
protoOf(ClassicExecutionContext).
|
|
864
|
-
return this.
|
|
863
|
+
protoOf(ClassicExecutionContext).u1t = function () {
|
|
864
|
+
return this.z2z_1;
|
|
865
865
|
};
|
|
866
|
-
protoOf(ClassicExecutionContext).
|
|
867
|
-
return this.
|
|
866
|
+
protoOf(ClassicExecutionContext).s1t = function () {
|
|
867
|
+
return this.a30_1;
|
|
868
868
|
};
|
|
869
|
-
protoOf(ClassicExecutionContext).
|
|
870
|
-
return this.
|
|
869
|
+
protoOf(ClassicExecutionContext).m1t = function () {
|
|
870
|
+
return this.f30_1;
|
|
871
871
|
};
|
|
872
|
-
protoOf(ClassicExecutionContext).
|
|
873
|
-
return this.
|
|
872
|
+
protoOf(ClassicExecutionContext).o1t = function () {
|
|
873
|
+
return this.g30_1;
|
|
874
874
|
};
|
|
875
|
-
protoOf(ClassicExecutionContext).
|
|
876
|
-
return this.
|
|
875
|
+
protoOf(ClassicExecutionContext).e33 = function () {
|
|
876
|
+
return this.j30_1 === 0;
|
|
877
877
|
};
|
|
878
|
-
protoOf(ClassicExecutionContext).
|
|
879
|
-
var tmp0_safe_receiver = this.
|
|
880
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
878
|
+
protoOf(ClassicExecutionContext).o31 = function () {
|
|
879
|
+
var tmp0_safe_receiver = this.h30_1;
|
|
880
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o31();
|
|
881
881
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
882
882
|
};
|
|
883
|
-
protoOf(ClassicExecutionContext).
|
|
884
|
-
return this.
|
|
883
|
+
protoOf(ClassicExecutionContext).d33 = function () {
|
|
884
|
+
return this.i30_1 == null || (this.j30_1 - this.i30_1.j30_1 | 0) >= 1;
|
|
885
885
|
};
|
|
886
|
-
protoOf(ClassicExecutionContext).
|
|
887
|
-
var tmp0 = this.
|
|
886
|
+
protoOf(ClassicExecutionContext).c33 = function () {
|
|
887
|
+
var tmp0 = this.n30_1;
|
|
888
888
|
var tmp = KProperty1;
|
|
889
889
|
// Inline function 'kotlin.getValue' call
|
|
890
890
|
getPropertyCallableRef('currentGoal', 1, tmp, ClassicExecutionContext$_get_currentGoal_$ref_ulveh3(), null);
|
|
891
891
|
return tmp0.e2();
|
|
892
892
|
};
|
|
893
|
-
protoOf(ClassicExecutionContext).
|
|
893
|
+
protoOf(ClassicExecutionContext).f33 = function (variable) {
|
|
894
894
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
895
895
|
};
|
|
896
|
-
protoOf(ClassicExecutionContext).
|
|
897
|
-
var tmp0 = this.
|
|
896
|
+
protoOf(ClassicExecutionContext).t1t = function () {
|
|
897
|
+
var tmp0 = this.p30_1;
|
|
898
898
|
var tmp = KProperty1;
|
|
899
899
|
// Inline function 'kotlin.getValue' call
|
|
900
900
|
getPropertyCallableRef('logicStackTrace', 1, tmp, ClassicExecutionContext$_get_logicStackTrace_$ref_p35zx2(), null);
|
|
901
901
|
return tmp0.e2();
|
|
902
902
|
};
|
|
903
|
-
protoOf(ClassicExecutionContext).
|
|
903
|
+
protoOf(ClassicExecutionContext).v1t = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
904
904
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
905
905
|
};
|
|
906
906
|
protoOf(ClassicExecutionContext).createSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
907
907
|
return this.createSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
908
908
|
};
|
|
909
|
-
protoOf(ClassicExecutionContext).
|
|
909
|
+
protoOf(ClassicExecutionContext).c1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
910
910
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
911
911
|
};
|
|
912
912
|
protoOf(ClassicExecutionContext).createMutableSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
913
913
|
return this.createMutableSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
914
914
|
};
|
|
915
|
-
protoOf(ClassicExecutionContext).
|
|
916
|
-
return this.
|
|
915
|
+
protoOf(ClassicExecutionContext).e1u = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
916
|
+
return this.h31(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
917
917
|
};
|
|
918
918
|
protoOf(ClassicExecutionContext).update = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, $super) {
|
|
919
919
|
return this.update(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
920
920
|
};
|
|
921
|
-
protoOf(ClassicExecutionContext).
|
|
921
|
+
protoOf(ClassicExecutionContext).g33 = function (sideEffect) {
|
|
922
922
|
var tmp = apply.call(this, sideEffect);
|
|
923
923
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
924
924
|
};
|
|
925
925
|
protoOf(ClassicExecutionContext).apply = function (sideEffect) {
|
|
926
|
-
return this.
|
|
926
|
+
return this.g33(sideEffect);
|
|
927
927
|
};
|
|
928
|
-
protoOf(ClassicExecutionContext).
|
|
928
|
+
protoOf(ClassicExecutionContext).h33 = function (sideEffects) {
|
|
929
929
|
var tmp = applyIterable.call(this, sideEffects);
|
|
930
930
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
931
931
|
};
|
|
932
932
|
protoOf(ClassicExecutionContext).applyIterable = function (sideEffects) {
|
|
933
|
-
return this.
|
|
933
|
+
return this.h33(sideEffects);
|
|
934
934
|
};
|
|
935
|
-
protoOf(ClassicExecutionContext).
|
|
935
|
+
protoOf(ClassicExecutionContext).i33 = function (sideEffects) {
|
|
936
936
|
var tmp = applySequence.call(this, sideEffects);
|
|
937
937
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
938
938
|
};
|
|
939
939
|
protoOf(ClassicExecutionContext).applySequence = function (sideEffects) {
|
|
940
|
-
return this.
|
|
940
|
+
return this.i33(sideEffects);
|
|
941
941
|
};
|
|
942
942
|
protoOf(ClassicExecutionContext).toString = function () {
|
|
943
|
-
return 'ClassicExecutionContext(' + ('step=' + this.
|
|
943
|
+
return 'ClassicExecutionContext(' + ('step=' + this.k30_1.toString() + ', ') + ('depth=' + this.j30_1 + ', ') + ('substitution=' + toString(this.a30_1) + ', ') + ('logicStackTrace=' + toString(this.t1t()) + ', ') + ('goals=' + toString(this.c30_1) + ', ') + ('rules=' + toString(this.d30_1) + ', ') + ('primitives=' + toString(this.e30_1) + ', ') + ('startTime=' + this.f30_1.toString() + ', ') + ('endTime=' + this.n1t().toString() + ', ') + ('maxDuration=' + this.g30_1.toString() + ', ') + ('unificator=' + toString(this.r2z_1) + ', ') + ('choicePoints=' + toString_0(this.h30_1)) + ')';
|
|
944
944
|
};
|
|
945
|
-
protoOf(ClassicExecutionContext).
|
|
945
|
+
protoOf(ClassicExecutionContext).j33 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
946
946
|
return new ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
947
947
|
};
|
|
948
|
-
protoOf(ClassicExecutionContext).
|
|
949
|
-
procedure = procedure === VOID ? this.
|
|
950
|
-
unificator = unificator === VOID ? this.
|
|
951
|
-
libraries = libraries === VOID ? this.
|
|
952
|
-
flags = flags === VOID ? this.
|
|
953
|
-
staticKb = staticKb === VOID ? this.
|
|
954
|
-
dynamicKb = dynamicKb === VOID ? this.
|
|
955
|
-
operators = operators === VOID ? this.
|
|
956
|
-
inputChannels = inputChannels === VOID ? this.
|
|
957
|
-
outputChannels = outputChannels === VOID ? this.
|
|
958
|
-
customData = customData === VOID ? this.
|
|
959
|
-
substitution = substitution === VOID ? this.
|
|
960
|
-
query = query === VOID ? this.
|
|
961
|
-
goals = goals === VOID ? this.
|
|
962
|
-
rules = rules === VOID ? this.
|
|
963
|
-
primitives = primitives === VOID ? this.
|
|
964
|
-
startTime = startTime === VOID ? this.
|
|
965
|
-
maxDuration = maxDuration === VOID ? this.
|
|
966
|
-
choicePoints = choicePoints === VOID ? this.
|
|
967
|
-
parent = parent === VOID ? this.
|
|
968
|
-
depth = depth === VOID ? this.
|
|
969
|
-
step = step === VOID ? this.
|
|
970
|
-
relevantVariables = relevantVariables === VOID ? this.
|
|
971
|
-
return $super === VOID ? this.
|
|
948
|
+
protoOf(ClassicExecutionContext).h31 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
949
|
+
procedure = procedure === VOID ? this.q2z_1 : procedure;
|
|
950
|
+
unificator = unificator === VOID ? this.r2z_1 : unificator;
|
|
951
|
+
libraries = libraries === VOID ? this.s2z_1 : libraries;
|
|
952
|
+
flags = flags === VOID ? this.t2z_1 : flags;
|
|
953
|
+
staticKb = staticKb === VOID ? this.u2z_1 : staticKb;
|
|
954
|
+
dynamicKb = dynamicKb === VOID ? this.v2z_1 : dynamicKb;
|
|
955
|
+
operators = operators === VOID ? this.w2z_1 : operators;
|
|
956
|
+
inputChannels = inputChannels === VOID ? this.x2z_1 : inputChannels;
|
|
957
|
+
outputChannels = outputChannels === VOID ? this.y2z_1 : outputChannels;
|
|
958
|
+
customData = customData === VOID ? this.z2z_1 : customData;
|
|
959
|
+
substitution = substitution === VOID ? this.a30_1 : substitution;
|
|
960
|
+
query = query === VOID ? this.b30_1 : query;
|
|
961
|
+
goals = goals === VOID ? this.c30_1 : goals;
|
|
962
|
+
rules = rules === VOID ? this.d30_1 : rules;
|
|
963
|
+
primitives = primitives === VOID ? this.e30_1 : primitives;
|
|
964
|
+
startTime = startTime === VOID ? this.f30_1 : startTime;
|
|
965
|
+
maxDuration = maxDuration === VOID ? this.g30_1 : maxDuration;
|
|
966
|
+
choicePoints = choicePoints === VOID ? this.h30_1 : choicePoints;
|
|
967
|
+
parent = parent === VOID ? this.i30_1 : parent;
|
|
968
|
+
depth = depth === VOID ? this.j30_1 : depth;
|
|
969
|
+
step = step === VOID ? this.k30_1 : step;
|
|
970
|
+
relevantVariables = relevantVariables === VOID ? this.l30_1 : relevantVariables;
|
|
971
|
+
return $super === VOID ? this.j33(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.j33.call(this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
972
972
|
};
|
|
973
973
|
protoOf(ClassicExecutionContext).hashCode = function () {
|
|
974
|
-
var result = this.
|
|
975
|
-
result = imul(result, 31) + hashCode(this.
|
|
976
|
-
result = imul(result, 31) + hashCode(this.
|
|
977
|
-
result = imul(result, 31) + this.
|
|
978
|
-
result = imul(result, 31) + hashCode(this.
|
|
979
|
-
result = imul(result, 31) + hashCode(this.
|
|
980
|
-
result = imul(result, 31) + this.
|
|
981
|
-
result = imul(result, 31) + hashCode(this.
|
|
982
|
-
result = imul(result, 31) + hashCode(this.
|
|
983
|
-
result = imul(result, 31) + this.
|
|
984
|
-
result = imul(result, 31) + hashCode(this.
|
|
985
|
-
result = imul(result, 31) + this.
|
|
986
|
-
result = imul(result, 31) + hashCode(this.
|
|
987
|
-
result = imul(result, 31) + hashCode(this.
|
|
988
|
-
result = imul(result, 31) + hashCode(this.
|
|
989
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
990
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
991
|
-
result = imul(result, 31) + (this.
|
|
992
|
-
result = imul(result, 31) + (this.
|
|
993
|
-
result = imul(result, 31) + this.
|
|
994
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
995
|
-
result = imul(result, 31) + hashCode(this.
|
|
974
|
+
var result = this.q2z_1 == null ? 0 : this.q2z_1.hashCode();
|
|
975
|
+
result = imul(result, 31) + hashCode(this.r2z_1) | 0;
|
|
976
|
+
result = imul(result, 31) + hashCode(this.s2z_1) | 0;
|
|
977
|
+
result = imul(result, 31) + this.t2z_1.hashCode() | 0;
|
|
978
|
+
result = imul(result, 31) + hashCode(this.u2z_1) | 0;
|
|
979
|
+
result = imul(result, 31) + hashCode(this.v2z_1) | 0;
|
|
980
|
+
result = imul(result, 31) + this.w2z_1.hashCode() | 0;
|
|
981
|
+
result = imul(result, 31) + hashCode(this.x2z_1) | 0;
|
|
982
|
+
result = imul(result, 31) + hashCode(this.y2z_1) | 0;
|
|
983
|
+
result = imul(result, 31) + this.z2z_1.hashCode() | 0;
|
|
984
|
+
result = imul(result, 31) + hashCode(this.a30_1) | 0;
|
|
985
|
+
result = imul(result, 31) + this.b30_1.hashCode() | 0;
|
|
986
|
+
result = imul(result, 31) + hashCode(this.c30_1) | 0;
|
|
987
|
+
result = imul(result, 31) + hashCode(this.d30_1) | 0;
|
|
988
|
+
result = imul(result, 31) + hashCode(this.e30_1) | 0;
|
|
989
|
+
result = imul(result, 31) + getBigIntHashCode(this.f30_1) | 0;
|
|
990
|
+
result = imul(result, 31) + getBigIntHashCode(this.g30_1) | 0;
|
|
991
|
+
result = imul(result, 31) + (this.h30_1 == null ? 0 : hashCode(this.h30_1)) | 0;
|
|
992
|
+
result = imul(result, 31) + (this.i30_1 == null ? 0 : this.i30_1.hashCode()) | 0;
|
|
993
|
+
result = imul(result, 31) + this.j30_1 | 0;
|
|
994
|
+
result = imul(result, 31) + getBigIntHashCode(this.k30_1) | 0;
|
|
995
|
+
result = imul(result, 31) + hashCode(this.l30_1) | 0;
|
|
996
996
|
return result;
|
|
997
997
|
};
|
|
998
998
|
protoOf(ClassicExecutionContext).equals = function (other) {
|
|
@@ -1000,54 +1000,54 @@
|
|
|
1000
1000
|
return true;
|
|
1001
1001
|
if (!(other instanceof ClassicExecutionContext))
|
|
1002
1002
|
return false;
|
|
1003
|
-
if (!equals(this.
|
|
1003
|
+
if (!equals(this.q2z_1, other.q2z_1))
|
|
1004
1004
|
return false;
|
|
1005
|
-
if (!equals(this.
|
|
1005
|
+
if (!equals(this.r2z_1, other.r2z_1))
|
|
1006
1006
|
return false;
|
|
1007
|
-
if (!equals(this.
|
|
1007
|
+
if (!equals(this.s2z_1, other.s2z_1))
|
|
1008
1008
|
return false;
|
|
1009
|
-
if (!this.
|
|
1009
|
+
if (!this.t2z_1.equals(other.t2z_1))
|
|
1010
1010
|
return false;
|
|
1011
|
-
if (!equals(this.
|
|
1011
|
+
if (!equals(this.u2z_1, other.u2z_1))
|
|
1012
1012
|
return false;
|
|
1013
|
-
if (!equals(this.
|
|
1013
|
+
if (!equals(this.v2z_1, other.v2z_1))
|
|
1014
1014
|
return false;
|
|
1015
|
-
if (!this.
|
|
1015
|
+
if (!this.w2z_1.equals(other.w2z_1))
|
|
1016
1016
|
return false;
|
|
1017
|
-
if (!equals(this.
|
|
1017
|
+
if (!equals(this.x2z_1, other.x2z_1))
|
|
1018
1018
|
return false;
|
|
1019
|
-
if (!equals(this.
|
|
1019
|
+
if (!equals(this.y2z_1, other.y2z_1))
|
|
1020
1020
|
return false;
|
|
1021
|
-
if (!this.
|
|
1021
|
+
if (!this.z2z_1.equals(other.z2z_1))
|
|
1022
1022
|
return false;
|
|
1023
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.a30_1, other.a30_1))
|
|
1024
1024
|
return false;
|
|
1025
|
-
if (!this.
|
|
1025
|
+
if (!this.b30_1.equals(other.b30_1))
|
|
1026
1026
|
return false;
|
|
1027
|
-
if (!equals(this.
|
|
1027
|
+
if (!equals(this.c30_1, other.c30_1))
|
|
1028
1028
|
return false;
|
|
1029
|
-
if (!equals(this.
|
|
1029
|
+
if (!equals(this.d30_1, other.d30_1))
|
|
1030
1030
|
return false;
|
|
1031
|
-
if (!equals(this.
|
|
1031
|
+
if (!equals(this.e30_1, other.e30_1))
|
|
1032
1032
|
return false;
|
|
1033
|
-
if (!(this.
|
|
1033
|
+
if (!(this.f30_1 === other.f30_1))
|
|
1034
1034
|
return false;
|
|
1035
|
-
if (!(this.
|
|
1035
|
+
if (!(this.g30_1 === other.g30_1))
|
|
1036
1036
|
return false;
|
|
1037
|
-
if (!equals(this.
|
|
1037
|
+
if (!equals(this.h30_1, other.h30_1))
|
|
1038
1038
|
return false;
|
|
1039
|
-
if (!equals(this.
|
|
1039
|
+
if (!equals(this.i30_1, other.i30_1))
|
|
1040
1040
|
return false;
|
|
1041
|
-
if (!(this.
|
|
1041
|
+
if (!(this.j30_1 === other.j30_1))
|
|
1042
1042
|
return false;
|
|
1043
|
-
if (!(this.
|
|
1043
|
+
if (!(this.k30_1 === other.k30_1))
|
|
1044
1044
|
return false;
|
|
1045
|
-
if (!equals(this.
|
|
1045
|
+
if (!equals(this.l30_1, other.l30_1))
|
|
1046
1046
|
return false;
|
|
1047
1047
|
return true;
|
|
1048
1048
|
};
|
|
1049
1049
|
function ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1050
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1050
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
1051
1051
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1052
1052
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1053
1053
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1064
1064
|
}
|
|
1065
1065
|
function ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1066
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1066
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
1067
1067
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1068
1068
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1069
1069
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1080,47 +1080,47 @@
|
|
|
1080
1080
|
function ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1081
1081
|
return ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1082
1082
|
}
|
|
1083
|
-
protoOf(ClassicSolver).
|
|
1084
|
-
return Companion_instance_15.
|
|
1083
|
+
protoOf(ClassicSolver).s30 = function (initialState, onStateTransition) {
|
|
1084
|
+
return Companion_instance_15.l33(initialState, onStateTransition);
|
|
1085
1085
|
};
|
|
1086
|
-
protoOf(ClassicSolver).
|
|
1086
|
+
protoOf(ClassicSolver).n1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1087
1087
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1088
1088
|
};
|
|
1089
1089
|
protoOf(ClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1090
1090
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolver) ? $super : THROW_CCE());
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(ClassicSolver).
|
|
1092
|
+
protoOf(ClassicSolver).n1r = function () {
|
|
1093
1093
|
return this.copy();
|
|
1094
1094
|
};
|
|
1095
1095
|
protoOf(ClassicSolver).clone = function () {
|
|
1096
|
-
return this.
|
|
1096
|
+
return this.n1r();
|
|
1097
1097
|
};
|
|
1098
1098
|
function ClassicSolver() {
|
|
1099
1099
|
}
|
|
1100
1100
|
function ClassicSolverFactory() {
|
|
1101
1101
|
}
|
|
1102
|
-
protoOf(ClassicSolverFactory).
|
|
1102
|
+
protoOf(ClassicSolverFactory).s1w = function () {
|
|
1103
1103
|
return DefaultBuiltins_getInstance();
|
|
1104
1104
|
};
|
|
1105
|
-
protoOf(ClassicSolverFactory).
|
|
1105
|
+
protoOf(ClassicSolverFactory).d1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1106
1106
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1107
1107
|
};
|
|
1108
1108
|
protoOf(ClassicSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
1109
1109
|
return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1110
1110
|
};
|
|
1111
|
-
protoOf(ClassicSolverFactory).
|
|
1111
|
+
protoOf(ClassicSolverFactory).j1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1112
1112
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1113
1113
|
};
|
|
1114
1114
|
protoOf(ClassicSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1115
1115
|
return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1116
1116
|
};
|
|
1117
|
-
protoOf(ClassicSolverFactory).
|
|
1117
|
+
protoOf(ClassicSolverFactory).l1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1118
1118
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1119
1119
|
};
|
|
1120
1120
|
protoOf(ClassicSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1121
1121
|
return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1122
1122
|
};
|
|
1123
|
-
protoOf(ClassicSolverFactory).
|
|
1123
|
+
protoOf(ClassicSolverFactory).n1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1124
1124
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1125
1125
|
};
|
|
1126
1126
|
protoOf(ClassicSolverFactory).rawMutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
return ClassicSolverFactory_instance;
|
|
1132
1132
|
}
|
|
1133
1133
|
function MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1134
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1134
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
1135
1135
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1136
1136
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1137
1137
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1147,7 +1147,7 @@
|
|
|
1147
1147
|
return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutableClassicSolver)));
|
|
1148
1148
|
}
|
|
1149
1149
|
function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1150
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1150
|
+
unificator = unificator === VOID ? Companion_getInstance().r1j() : unificator;
|
|
1151
1151
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1152
1152
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1153
1153
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1166,265 +1166,265 @@
|
|
|
1166
1166
|
}
|
|
1167
1167
|
function MutableClassicSolver$loadLibrary$lambda($library) {
|
|
1168
1168
|
return function ($this$updateContext) {
|
|
1169
|
-
var newRuntime = $this$updateContext.
|
|
1170
|
-
return $this$updateContext.
|
|
1169
|
+
var newRuntime = $this$updateContext.s2z_1.plusLibrary($library);
|
|
1170
|
+
return $this$updateContext.h31(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.w2z_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
1173
|
function MutableClassicSolver$unloadLibrary$lambda($library) {
|
|
1174
1174
|
return function ($this$updateContext) {
|
|
1175
|
-
var newRuntime = $this$updateContext.
|
|
1176
|
-
return $this$updateContext.
|
|
1175
|
+
var newRuntime = $this$updateContext.s2z_1.plusLibrary($library);
|
|
1176
|
+
return $this$updateContext.h31(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.u2z_1, $this$updateContext.v2z_1])));
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
1179
|
function MutableClassicSolver$setRuntime$lambda($libraries) {
|
|
1180
1180
|
return function ($this$updateContext) {
|
|
1181
|
-
return $this$updateContext.
|
|
1181
|
+
return $this$updateContext.h31(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.u2z_1, $this$updateContext.v2z_1])));
|
|
1182
1182
|
};
|
|
1183
1183
|
}
|
|
1184
1184
|
function MutableClassicSolver$resetStaticKb$lambda($this$updateContext) {
|
|
1185
|
-
return $this$updateContext.
|
|
1185
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, Companion_instance_0.empty($this$updateContext.r2z_1), VOID, toOperatorSet(getAllOperators($this$updateContext.s2z_1, [$this$updateContext.v2z_1])));
|
|
1186
1186
|
}
|
|
1187
1187
|
function MutableClassicSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
1188
|
-
return $this$updateContext.
|
|
1188
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, Companion_instance_1.empty($this$updateContext.r2z_1), toOperatorSet(getAllOperators($this$updateContext.s2z_1, [$this$updateContext.u2z_1])));
|
|
1189
1189
|
}
|
|
1190
1190
|
function MutableClassicSolver$assertA$lambda($clause) {
|
|
1191
1191
|
return function ($this$updateContext) {
|
|
1192
|
-
return $this$updateContext.
|
|
1192
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.v2z_1.d1r($clause), $this$updateContext.w2z_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1193
1193
|
};
|
|
1194
1194
|
}
|
|
1195
1195
|
function MutableClassicSolver$assertA$lambda_0($fact) {
|
|
1196
1196
|
return function ($this$updateContext) {
|
|
1197
|
-
return $this$updateContext.
|
|
1197
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.v2z_1.d1s($fact));
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
1200
|
function MutableClassicSolver$assertZ$lambda($clause) {
|
|
1201
1201
|
return function ($this$updateContext) {
|
|
1202
|
-
return $this$updateContext.
|
|
1202
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.v2z_1.h1r($clause), $this$updateContext.w2z_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
1205
|
function MutableClassicSolver$assertZ$lambda_0($fact) {
|
|
1206
1206
|
return function ($this$updateContext) {
|
|
1207
|
-
return $this$updateContext.
|
|
1207
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.v2z_1.e1s($fact));
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
1210
|
function MutableClassicSolver$retract$lambda($result, $clause) {
|
|
1211
1211
|
return function ($this$updateContext) {
|
|
1212
|
-
return $this$updateContext.
|
|
1212
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $result.v1q().toMutableTheory(), $this$updateContext.w2z_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1213
1213
|
};
|
|
1214
1214
|
}
|
|
1215
1215
|
function MutableClassicSolver$retract$lambda_0($result) {
|
|
1216
1216
|
return function ($this$updateContext) {
|
|
1217
|
-
return $this$updateContext.
|
|
1217
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $result.v1q().toMutableTheory());
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
1220
|
function MutableClassicSolver$retractAll$lambda($result) {
|
|
1221
1221
|
return function ($this$updateContext) {
|
|
1222
|
-
return $this$updateContext.
|
|
1222
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $result.v1q().toMutableTheory(), $this$updateContext.w2z_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.v1q()))));
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
1225
|
function MutableClassicSolver$retractAll$lambda_0($result) {
|
|
1226
1226
|
return function ($this$updateContext) {
|
|
1227
|
-
return $this$updateContext.
|
|
1227
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, $result.v1q().toMutableTheory());
|
|
1228
1228
|
};
|
|
1229
1229
|
}
|
|
1230
1230
|
function MutableClassicSolver$setFlag$lambda($name, $value) {
|
|
1231
1231
|
return function ($this$updateContext) {
|
|
1232
|
-
return $this$updateContext.
|
|
1232
|
+
return $this$updateContext.h31(VOID, VOID, VOID, $this$updateContext.t2z_1.set($name, $value));
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
function MutableClassicSolver$setFlag$lambda_0($flag) {
|
|
1236
1236
|
return function ($this$updateContext) {
|
|
1237
|
-
return $this$updateContext.
|
|
1237
|
+
return $this$updateContext.h31(VOID, VOID, VOID, $this$updateContext.t2z_1.plusPair($flag));
|
|
1238
1238
|
};
|
|
1239
1239
|
}
|
|
1240
1240
|
function MutableClassicSolver$setFlag$lambda_1($flag) {
|
|
1241
1241
|
return function ($this$updateContext) {
|
|
1242
|
-
return $this$updateContext.
|
|
1242
|
+
return $this$updateContext.h31(VOID, VOID, VOID, $this$updateContext.t2z_1.plusNotable($flag));
|
|
1243
1243
|
};
|
|
1244
1244
|
}
|
|
1245
1245
|
function MutableClassicSolver$setStandardInput$lambda($stdIn) {
|
|
1246
1246
|
return function ($this$updateContext) {
|
|
1247
|
-
return $this$updateContext.
|
|
1247
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.x2z_1.plus(to('stdin', $stdIn)));
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
1250
|
function MutableClassicSolver$setStandardError$lambda($stdErr) {
|
|
1251
1251
|
return function ($this$updateContext) {
|
|
1252
|
-
return $this$updateContext.
|
|
1252
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.y2z_1.plus(to('stderr', $stdErr)));
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
1255
|
function MutableClassicSolver$setStandardOutput$lambda($stdOut) {
|
|
1256
1256
|
return function ($this$updateContext) {
|
|
1257
|
-
return $this$updateContext.
|
|
1257
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.y2z_1.plus(to('stdout', $stdOut)));
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
1260
1260
|
function MutableClassicSolver$setWarnings$lambda($warnings) {
|
|
1261
1261
|
return function ($this$updateContext) {
|
|
1262
|
-
return $this$updateContext.
|
|
1262
|
+
return $this$updateContext.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_5.b1y($this$updateContext.y2z_1, $warnings));
|
|
1263
1263
|
};
|
|
1264
1264
|
}
|
|
1265
|
-
protoOf(MutableClassicSolver).
|
|
1266
|
-
this.
|
|
1265
|
+
protoOf(MutableClassicSolver).n33 = function (library) {
|
|
1266
|
+
this.w29(MutableClassicSolver$loadLibrary$lambda(library));
|
|
1267
1267
|
};
|
|
1268
1268
|
protoOf(MutableClassicSolver).loadLibrary = function (library) {
|
|
1269
|
-
return this.
|
|
1269
|
+
return this.n33(library);
|
|
1270
1270
|
};
|
|
1271
|
-
protoOf(MutableClassicSolver).
|
|
1272
|
-
this.
|
|
1271
|
+
protoOf(MutableClassicSolver).o33 = function (library) {
|
|
1272
|
+
this.w29(MutableClassicSolver$unloadLibrary$lambda(library));
|
|
1273
1273
|
};
|
|
1274
1274
|
protoOf(MutableClassicSolver).unloadLibrary = function (library) {
|
|
1275
|
-
return this.
|
|
1275
|
+
return this.o33(library);
|
|
1276
1276
|
};
|
|
1277
|
-
protoOf(MutableClassicSolver).
|
|
1278
|
-
this.
|
|
1277
|
+
protoOf(MutableClassicSolver).p33 = function (libraries) {
|
|
1278
|
+
this.w29(MutableClassicSolver$setRuntime$lambda(libraries));
|
|
1279
1279
|
};
|
|
1280
1280
|
protoOf(MutableClassicSolver).setLibraries = function (libraries) {
|
|
1281
|
-
return this.
|
|
1281
|
+
return this.p33(libraries);
|
|
1282
1282
|
};
|
|
1283
|
-
protoOf(MutableClassicSolver).
|
|
1284
|
-
this.
|
|
1283
|
+
protoOf(MutableClassicSolver).q33 = function (theory) {
|
|
1284
|
+
this.a2a(theory, VOID, false);
|
|
1285
1285
|
};
|
|
1286
1286
|
protoOf(MutableClassicSolver).loadStaticKb = function (theory) {
|
|
1287
|
-
return this.
|
|
1287
|
+
return this.q33(theory);
|
|
1288
1288
|
};
|
|
1289
|
-
protoOf(MutableClassicSolver).
|
|
1290
|
-
this.
|
|
1289
|
+
protoOf(MutableClassicSolver).r33 = function (theory) {
|
|
1290
|
+
this.a2a(theory);
|
|
1291
1291
|
};
|
|
1292
1292
|
protoOf(MutableClassicSolver).appendStaticKb = function (theory) {
|
|
1293
|
-
return this.
|
|
1293
|
+
return this.r33(theory);
|
|
1294
1294
|
};
|
|
1295
|
-
protoOf(MutableClassicSolver).
|
|
1296
|
-
this.
|
|
1295
|
+
protoOf(MutableClassicSolver).s33 = function () {
|
|
1296
|
+
this.w29(MutableClassicSolver$resetStaticKb$lambda);
|
|
1297
1297
|
};
|
|
1298
1298
|
protoOf(MutableClassicSolver).resetStaticKb = function () {
|
|
1299
|
-
return this.
|
|
1299
|
+
return this.s33();
|
|
1300
1300
|
};
|
|
1301
|
-
protoOf(MutableClassicSolver).
|
|
1302
|
-
this.
|
|
1301
|
+
protoOf(MutableClassicSolver).t33 = function (theory) {
|
|
1302
|
+
this.a2a(VOID, theory, VOID, false);
|
|
1303
1303
|
};
|
|
1304
1304
|
protoOf(MutableClassicSolver).loadDynamicKb = function (theory) {
|
|
1305
|
-
return this.
|
|
1305
|
+
return this.t33(theory);
|
|
1306
1306
|
};
|
|
1307
|
-
protoOf(MutableClassicSolver).
|
|
1308
|
-
this.
|
|
1307
|
+
protoOf(MutableClassicSolver).u33 = function (theory) {
|
|
1308
|
+
this.a2a(VOID, theory);
|
|
1309
1309
|
};
|
|
1310
1310
|
protoOf(MutableClassicSolver).appendDynamicKb = function (theory) {
|
|
1311
|
-
return this.
|
|
1311
|
+
return this.u33(theory);
|
|
1312
1312
|
};
|
|
1313
|
-
protoOf(MutableClassicSolver).
|
|
1314
|
-
this.
|
|
1313
|
+
protoOf(MutableClassicSolver).v33 = function () {
|
|
1314
|
+
this.w29(MutableClassicSolver$resetDynamicKb$lambda);
|
|
1315
1315
|
};
|
|
1316
1316
|
protoOf(MutableClassicSolver).resetDynamicKb = function () {
|
|
1317
|
-
return this.
|
|
1317
|
+
return this.v33();
|
|
1318
1318
|
};
|
|
1319
|
-
protoOf(MutableClassicSolver).
|
|
1320
|
-
this.
|
|
1319
|
+
protoOf(MutableClassicSolver).k1l = function (clause) {
|
|
1320
|
+
this.w29(MutableClassicSolver$assertA$lambda(clause));
|
|
1321
1321
|
};
|
|
1322
1322
|
protoOf(MutableClassicSolver).assertA = function (clause) {
|
|
1323
|
-
return this.
|
|
1323
|
+
return this.k1l(clause);
|
|
1324
1324
|
};
|
|
1325
|
-
protoOf(MutableClassicSolver).
|
|
1326
|
-
this.
|
|
1325
|
+
protoOf(MutableClassicSolver).w33 = function (fact) {
|
|
1326
|
+
this.w29(MutableClassicSolver$assertA$lambda_0(fact));
|
|
1327
1327
|
};
|
|
1328
1328
|
protoOf(MutableClassicSolver).assertAFact = function (fact) {
|
|
1329
|
-
return this.
|
|
1329
|
+
return this.w33(fact);
|
|
1330
1330
|
};
|
|
1331
|
-
protoOf(MutableClassicSolver).
|
|
1332
|
-
this.
|
|
1331
|
+
protoOf(MutableClassicSolver).l1k = function (clause) {
|
|
1332
|
+
this.w29(MutableClassicSolver$assertZ$lambda(clause));
|
|
1333
1333
|
};
|
|
1334
1334
|
protoOf(MutableClassicSolver).assertZ = function (clause) {
|
|
1335
|
-
return this.
|
|
1335
|
+
return this.l1k(clause);
|
|
1336
1336
|
};
|
|
1337
|
-
protoOf(MutableClassicSolver).
|
|
1338
|
-
this.
|
|
1337
|
+
protoOf(MutableClassicSolver).x33 = function (fact) {
|
|
1338
|
+
this.w29(MutableClassicSolver$assertZ$lambda_0(fact));
|
|
1339
1339
|
};
|
|
1340
1340
|
protoOf(MutableClassicSolver).assertZFact = function (fact) {
|
|
1341
|
-
return this.
|
|
1341
|
+
return this.x33(fact);
|
|
1342
1342
|
};
|
|
1343
|
-
protoOf(MutableClassicSolver).
|
|
1344
|
-
var result = this.
|
|
1345
|
-
this.
|
|
1343
|
+
protoOf(MutableClassicSolver).f1s = function (clause) {
|
|
1344
|
+
var result = this.z1t().retract(clause);
|
|
1345
|
+
this.w29(MutableClassicSolver$retract$lambda(result, clause));
|
|
1346
1346
|
return result;
|
|
1347
1347
|
};
|
|
1348
1348
|
protoOf(MutableClassicSolver).retract = function (clause) {
|
|
1349
|
-
return this.
|
|
1349
|
+
return this.f1s(clause);
|
|
1350
1350
|
};
|
|
1351
|
-
protoOf(MutableClassicSolver).
|
|
1352
|
-
var result = this.
|
|
1353
|
-
this.
|
|
1351
|
+
protoOf(MutableClassicSolver).g1s = function (fact) {
|
|
1352
|
+
var result = this.z1t().retractByHead(fact);
|
|
1353
|
+
this.w29(MutableClassicSolver$retract$lambda_0(result));
|
|
1354
1354
|
return result;
|
|
1355
1355
|
};
|
|
1356
1356
|
protoOf(MutableClassicSolver).retractByHead = function (fact) {
|
|
1357
|
-
return this.
|
|
1357
|
+
return this.g1s(fact);
|
|
1358
1358
|
};
|
|
1359
|
-
protoOf(MutableClassicSolver).
|
|
1360
|
-
var result = this.
|
|
1361
|
-
this.
|
|
1359
|
+
protoOf(MutableClassicSolver).q1k = function (clause) {
|
|
1360
|
+
var result = this.z1t().retractAll(clause);
|
|
1361
|
+
this.w29(MutableClassicSolver$retractAll$lambda(result));
|
|
1362
1362
|
return result;
|
|
1363
1363
|
};
|
|
1364
1364
|
protoOf(MutableClassicSolver).retractAll = function (clause) {
|
|
1365
|
-
return this.
|
|
1365
|
+
return this.q1k(clause);
|
|
1366
1366
|
};
|
|
1367
|
-
protoOf(MutableClassicSolver).
|
|
1368
|
-
var result = this.
|
|
1369
|
-
this.
|
|
1367
|
+
protoOf(MutableClassicSolver).y33 = function (fact) {
|
|
1368
|
+
var result = this.z1t().retractAllByHead(fact);
|
|
1369
|
+
this.w29(MutableClassicSolver$retractAll$lambda_0(result));
|
|
1370
1370
|
return result;
|
|
1371
1371
|
};
|
|
1372
1372
|
protoOf(MutableClassicSolver).retractAllBeHead = function (fact) {
|
|
1373
|
-
return this.
|
|
1373
|
+
return this.y33(fact);
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(MutableClassicSolver).
|
|
1376
|
-
this.
|
|
1375
|
+
protoOf(MutableClassicSolver).z33 = function (name, value) {
|
|
1376
|
+
this.w29(MutableClassicSolver$setFlag$lambda(name, value));
|
|
1377
1377
|
};
|
|
1378
1378
|
protoOf(MutableClassicSolver).setFlag = function (name, value) {
|
|
1379
|
-
return this.
|
|
1379
|
+
return this.z33(name, value);
|
|
1380
1380
|
};
|
|
1381
|
-
protoOf(MutableClassicSolver).
|
|
1382
|
-
this.
|
|
1381
|
+
protoOf(MutableClassicSolver).a34 = function (flag) {
|
|
1382
|
+
this.w29(MutableClassicSolver$setFlag$lambda_0(flag));
|
|
1383
1383
|
};
|
|
1384
1384
|
protoOf(MutableClassicSolver).setFlagPair = function (flag) {
|
|
1385
|
-
return this.
|
|
1385
|
+
return this.a34(flag);
|
|
1386
1386
|
};
|
|
1387
|
-
protoOf(MutableClassicSolver).
|
|
1388
|
-
this.
|
|
1387
|
+
protoOf(MutableClassicSolver).b34 = function (flag) {
|
|
1388
|
+
this.w29(MutableClassicSolver$setFlag$lambda_1(flag));
|
|
1389
1389
|
};
|
|
1390
1390
|
protoOf(MutableClassicSolver).setFlagNotable = function (flag) {
|
|
1391
|
-
return this.
|
|
1391
|
+
return this.b34(flag);
|
|
1392
1392
|
};
|
|
1393
|
-
protoOf(MutableClassicSolver).
|
|
1394
|
-
this.
|
|
1393
|
+
protoOf(MutableClassicSolver).c34 = function (stdIn) {
|
|
1394
|
+
this.w29(MutableClassicSolver$setStandardInput$lambda(stdIn));
|
|
1395
1395
|
};
|
|
1396
1396
|
protoOf(MutableClassicSolver).setStandardInput = function (stdIn) {
|
|
1397
|
-
return this.
|
|
1397
|
+
return this.c34(stdIn);
|
|
1398
1398
|
};
|
|
1399
|
-
protoOf(MutableClassicSolver).
|
|
1400
|
-
this.
|
|
1399
|
+
protoOf(MutableClassicSolver).d34 = function (stdErr) {
|
|
1400
|
+
this.w29(MutableClassicSolver$setStandardError$lambda(stdErr));
|
|
1401
1401
|
};
|
|
1402
1402
|
protoOf(MutableClassicSolver).setStandardError = function (stdErr) {
|
|
1403
|
-
return this.
|
|
1403
|
+
return this.d34(stdErr);
|
|
1404
1404
|
};
|
|
1405
|
-
protoOf(MutableClassicSolver).
|
|
1406
|
-
this.
|
|
1405
|
+
protoOf(MutableClassicSolver).e34 = function (stdOut) {
|
|
1406
|
+
this.w29(MutableClassicSolver$setStandardOutput$lambda(stdOut));
|
|
1407
1407
|
};
|
|
1408
1408
|
protoOf(MutableClassicSolver).setStandardOutput = function (stdOut) {
|
|
1409
|
-
return this.
|
|
1409
|
+
return this.e34(stdOut);
|
|
1410
1410
|
};
|
|
1411
|
-
protoOf(MutableClassicSolver).
|
|
1412
|
-
this.
|
|
1411
|
+
protoOf(MutableClassicSolver).f34 = function (warnings) {
|
|
1412
|
+
this.w29(MutableClassicSolver$setWarnings$lambda(warnings));
|
|
1413
1413
|
};
|
|
1414
1414
|
protoOf(MutableClassicSolver).setWarnings = function (warnings) {
|
|
1415
|
-
return this.
|
|
1415
|
+
return this.f34(warnings);
|
|
1416
1416
|
};
|
|
1417
|
-
protoOf(MutableClassicSolver).
|
|
1417
|
+
protoOf(MutableClassicSolver).n1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1418
1418
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1419
1419
|
};
|
|
1420
1420
|
protoOf(MutableClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1421
1421
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof MutableClassicSolver) ? $super : THROW_CCE());
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf(MutableClassicSolver).
|
|
1423
|
+
protoOf(MutableClassicSolver).n1r = function () {
|
|
1424
1424
|
return this.copy();
|
|
1425
1425
|
};
|
|
1426
1426
|
protoOf(MutableClassicSolver).clone = function () {
|
|
1427
|
-
return this.
|
|
1427
|
+
return this.n1r();
|
|
1428
1428
|
};
|
|
1429
1429
|
function MutableClassicSolver() {
|
|
1430
1430
|
}
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
}
|
|
1434
1434
|
function Companion() {
|
|
1435
1435
|
}
|
|
1436
|
-
protoOf(Companion).
|
|
1436
|
+
protoOf(Companion).l33 = function (initialState, onStateTransition) {
|
|
1437
1437
|
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1438
1438
|
};
|
|
1439
1439
|
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
@@ -1444,7 +1444,7 @@
|
|
|
1444
1444
|
tmp = onStateTransition;
|
|
1445
1445
|
}
|
|
1446
1446
|
onStateTransition = tmp;
|
|
1447
|
-
return $super === VOID ? this.
|
|
1447
|
+
return $super === VOID ? this.l33(initialState, onStateTransition) : $super.l33.call(this, initialState, onStateTransition);
|
|
1448
1448
|
};
|
|
1449
1449
|
var Companion_instance_15;
|
|
1450
1450
|
function Companion_getInstance_5() {
|
|
@@ -1452,81 +1452,81 @@
|
|
|
1452
1452
|
}
|
|
1453
1453
|
function AbstractEndState(solution, context) {
|
|
1454
1454
|
AbstractState.call(this, context);
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1455
|
+
this.i34_1 = solution;
|
|
1456
|
+
this.j34_1 = context;
|
|
1457
1457
|
}
|
|
1458
|
-
protoOf(AbstractEndState).
|
|
1459
|
-
return this.
|
|
1458
|
+
protoOf(AbstractEndState).y2g = function () {
|
|
1459
|
+
return this.i34_1;
|
|
1460
1460
|
};
|
|
1461
1461
|
protoOf(AbstractEndState).h8 = function () {
|
|
1462
|
-
return this.
|
|
1462
|
+
return this.j34_1;
|
|
1463
1463
|
};
|
|
1464
|
-
protoOf(AbstractEndState).
|
|
1464
|
+
protoOf(AbstractEndState).k34 = function () {
|
|
1465
1465
|
throw NoSuchElementException_init_$Create$();
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(AbstractEndState).asEndState = function () {
|
|
1468
|
-
return this.
|
|
1468
|
+
return this.s34();
|
|
1469
1469
|
};
|
|
1470
1470
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1471
1471
|
return function () {
|
|
1472
|
-
return this$0.
|
|
1472
|
+
return this$0.p34();
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
1475
|
function AbstractState$_get_executionTime_$ref_gwd5wm() {
|
|
1476
1476
|
return function (p0) {
|
|
1477
|
-
return p0.
|
|
1477
|
+
return p0.n34();
|
|
1478
1478
|
};
|
|
1479
1479
|
}
|
|
1480
1480
|
function AbstractState(context) {
|
|
1481
|
-
this.
|
|
1481
|
+
this.l34_1 = context;
|
|
1482
1482
|
var tmp = this;
|
|
1483
|
-
tmp.
|
|
1483
|
+
tmp.m34_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1484
1484
|
}
|
|
1485
1485
|
protoOf(AbstractState).h8 = function () {
|
|
1486
|
-
return this.
|
|
1486
|
+
return this.l34_1;
|
|
1487
1487
|
};
|
|
1488
|
-
protoOf(AbstractState).
|
|
1489
|
-
var tmp0 = this.
|
|
1488
|
+
protoOf(AbstractState).n34 = function () {
|
|
1489
|
+
var tmp0 = this.m34_1;
|
|
1490
1490
|
var tmp = KProperty1;
|
|
1491
1491
|
// Inline function 'kotlin.getValue' call
|
|
1492
1492
|
getPropertyCallableRef('executionTime', 1, tmp, AbstractState$_get_executionTime_$ref_gwd5wm(), null);
|
|
1493
1493
|
return tmp0.e2();
|
|
1494
1494
|
};
|
|
1495
|
-
protoOf(AbstractState).
|
|
1496
|
-
return subtract(this.
|
|
1495
|
+
protoOf(AbstractState).o34 = function () {
|
|
1496
|
+
return subtract(this.n34(), this.h8().f30_1) > this.h8().g30_1;
|
|
1497
1497
|
};
|
|
1498
1498
|
protoOf(AbstractState).t = function () {
|
|
1499
1499
|
var tmp;
|
|
1500
|
-
if (this.
|
|
1501
|
-
var tmp0_exceededDuration = this.h8().
|
|
1500
|
+
if (this.o34()) {
|
|
1501
|
+
var tmp0_exceededDuration = this.h8().g30_1;
|
|
1502
1502
|
var tmp1_context = this.h8();
|
|
1503
|
-
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.h8().
|
|
1503
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.h8().h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34()));
|
|
1504
1504
|
} else {
|
|
1505
|
-
tmp = this.
|
|
1505
|
+
tmp = this.k34();
|
|
1506
1506
|
}
|
|
1507
1507
|
return tmp;
|
|
1508
1508
|
};
|
|
1509
1509
|
protoOf(AbstractState).next = function () {
|
|
1510
1510
|
return this.t();
|
|
1511
1511
|
};
|
|
1512
|
-
protoOf(AbstractState).
|
|
1512
|
+
protoOf(AbstractState).p34 = function () {
|
|
1513
1513
|
return currentTimeInstant();
|
|
1514
1514
|
};
|
|
1515
|
-
protoOf(AbstractState).
|
|
1515
|
+
protoOf(AbstractState).q34 = function () {
|
|
1516
1516
|
// Inline function 'kotlin.Long.plus' call
|
|
1517
|
-
var this_0 = this.h8().
|
|
1517
|
+
var this_0 = this.h8().k30_1;
|
|
1518
1518
|
return add(this_0, fromInt(1));
|
|
1519
1519
|
};
|
|
1520
|
-
protoOf(AbstractState).
|
|
1521
|
-
var tmp0 = _this__u8e3s4.
|
|
1520
|
+
protoOf(AbstractState).u34 = function (_this__u8e3s4) {
|
|
1521
|
+
var tmp0 = _this__u8e3s4.m30_1;
|
|
1522
1522
|
var tmp$ret$2;
|
|
1523
1523
|
$l$block: {
|
|
1524
1524
|
// Inline function 'kotlin.sequences.first' call
|
|
1525
1525
|
var _iterator__ex2g4s = tmp0.p();
|
|
1526
1526
|
while (_iterator__ex2g4s.s()) {
|
|
1527
1527
|
var element = _iterator__ex2g4s.t();
|
|
1528
|
-
var tmp0_safe_receiver = element.
|
|
1529
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1528
|
+
var tmp0_safe_receiver = element.q2z_1;
|
|
1529
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fv();
|
|
1530
1530
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1531
1531
|
if (!(tmp === Throw_getInstance().signature.name)) {
|
|
1532
1532
|
tmp$ret$2 = element;
|
|
@@ -1543,26 +1543,26 @@
|
|
|
1543
1543
|
}
|
|
1544
1544
|
function StateBacktracking(context) {
|
|
1545
1545
|
AbstractState.call(this, context);
|
|
1546
|
-
this.
|
|
1546
|
+
this.x34_1 = context;
|
|
1547
1547
|
}
|
|
1548
1548
|
protoOf(StateBacktracking).h8 = function () {
|
|
1549
|
-
return this.
|
|
1549
|
+
return this.x34_1;
|
|
1550
1550
|
};
|
|
1551
|
-
protoOf(StateBacktracking).
|
|
1552
|
-
var choicePoints = this.
|
|
1551
|
+
protoOf(StateBacktracking).k34 = function () {
|
|
1552
|
+
var choicePoints = this.x34_1.h30_1;
|
|
1553
1553
|
var tmp;
|
|
1554
1554
|
// Inline function 'kotlin.let' call
|
|
1555
|
-
if (choicePoints === null || !choicePoints.
|
|
1556
|
-
tmp = new StateEnd(Companion_instance_8.no(this.
|
|
1555
|
+
if (choicePoints === null || !choicePoints.o31()) {
|
|
1556
|
+
tmp = new StateEnd(Companion_instance_8.no(this.x34_1.b30_1), this.x34_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34()));
|
|
1557
1557
|
} else {
|
|
1558
|
-
var tmp0 = ensureNotNull(choicePoints).
|
|
1558
|
+
var tmp0 = ensureNotNull(choicePoints).p31();
|
|
1559
1559
|
var tmp$ret$3;
|
|
1560
1560
|
$l$block: {
|
|
1561
1561
|
// Inline function 'kotlin.sequences.first' call
|
|
1562
1562
|
var _iterator__ex2g4s = tmp0.p();
|
|
1563
1563
|
while (_iterator__ex2g4s.s()) {
|
|
1564
1564
|
var element = _iterator__ex2g4s.t();
|
|
1565
|
-
if (element.
|
|
1565
|
+
if (element.b31().jq()) {
|
|
1566
1566
|
tmp$ret$3 = element;
|
|
1567
1567
|
break $l$block;
|
|
1568
1568
|
}
|
|
@@ -1570,9 +1570,9 @@
|
|
|
1570
1570
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1571
1571
|
}
|
|
1572
1572
|
var choicePointContext = tmp$ret$3;
|
|
1573
|
-
var nextContext = choicePointContext.
|
|
1573
|
+
var nextContext = choicePointContext.g31(this.x34_1);
|
|
1574
1574
|
var tmp_0;
|
|
1575
|
-
if (nextContext.
|
|
1575
|
+
if (nextContext.e30_1.jq()) {
|
|
1576
1576
|
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1577
1577
|
} else {
|
|
1578
1578
|
tmp_0 = new StateRuleExecution(nextContext);
|
|
@@ -1581,71 +1581,71 @@
|
|
|
1581
1581
|
}
|
|
1582
1582
|
return tmp;
|
|
1583
1583
|
};
|
|
1584
|
-
protoOf(StateBacktracking).
|
|
1585
|
-
return this.
|
|
1584
|
+
protoOf(StateBacktracking).t34 = function (context) {
|
|
1585
|
+
return this.y34(context);
|
|
1586
1586
|
};
|
|
1587
1587
|
protoOf(StateBacktracking).clone = function (context, $super) {
|
|
1588
1588
|
return this.clone(context, ($super == null ? true : $super instanceof StateBacktracking) ? $super : THROW_CCE());
|
|
1589
1589
|
};
|
|
1590
|
-
protoOf(StateBacktracking).
|
|
1590
|
+
protoOf(StateBacktracking).y34 = function (context) {
|
|
1591
1591
|
return new StateBacktracking(context);
|
|
1592
1592
|
};
|
|
1593
1593
|
protoOf(StateBacktracking).toString = function () {
|
|
1594
|
-
return 'StateBacktracking(context=' + this.
|
|
1594
|
+
return 'StateBacktracking(context=' + this.x34_1.toString() + ')';
|
|
1595
1595
|
};
|
|
1596
1596
|
protoOf(StateBacktracking).hashCode = function () {
|
|
1597
|
-
return this.
|
|
1597
|
+
return this.x34_1.hashCode();
|
|
1598
1598
|
};
|
|
1599
1599
|
protoOf(StateBacktracking).equals = function (other) {
|
|
1600
1600
|
if (this === other)
|
|
1601
1601
|
return true;
|
|
1602
1602
|
if (!(other instanceof StateBacktracking))
|
|
1603
1603
|
return false;
|
|
1604
|
-
if (!this.
|
|
1604
|
+
if (!this.x34_1.equals(other.x34_1))
|
|
1605
1605
|
return false;
|
|
1606
1606
|
return true;
|
|
1607
1607
|
};
|
|
1608
1608
|
function StateEnd(solution, context) {
|
|
1609
1609
|
AbstractEndState.call(this, solution, context);
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1610
|
+
this.d35_1 = solution;
|
|
1611
|
+
this.e35_1 = context;
|
|
1612
1612
|
}
|
|
1613
|
-
protoOf(StateEnd).
|
|
1614
|
-
return this.
|
|
1613
|
+
protoOf(StateEnd).y2g = function () {
|
|
1614
|
+
return this.d35_1;
|
|
1615
1615
|
};
|
|
1616
1616
|
protoOf(StateEnd).h8 = function () {
|
|
1617
|
-
return this.
|
|
1617
|
+
return this.e35_1;
|
|
1618
1618
|
};
|
|
1619
|
-
protoOf(StateEnd).
|
|
1619
|
+
protoOf(StateEnd).o34 = function () {
|
|
1620
1620
|
return false;
|
|
1621
1621
|
};
|
|
1622
|
-
protoOf(StateEnd).
|
|
1622
|
+
protoOf(StateEnd).k34 = function () {
|
|
1623
1623
|
var tmp;
|
|
1624
|
-
if (this.
|
|
1625
|
-
var tmp0_$this = this.
|
|
1626
|
-
var tmp1_step = this.
|
|
1627
|
-
var tmp2_startTime = this.
|
|
1628
|
-
tmp = new StateBacktracking(tmp0_$this.
|
|
1624
|
+
if (this.e35_1.o31()) {
|
|
1625
|
+
var tmp0_$this = this.e35_1;
|
|
1626
|
+
var tmp1_step = this.q34();
|
|
1627
|
+
var tmp2_startTime = this.p34();
|
|
1628
|
+
tmp = new StateBacktracking(tmp0_$this.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1629
1629
|
} else {
|
|
1630
|
-
tmp = protoOf(AbstractEndState).
|
|
1630
|
+
tmp = protoOf(AbstractEndState).k34.call(this);
|
|
1631
1631
|
}
|
|
1632
1632
|
return tmp;
|
|
1633
1633
|
};
|
|
1634
|
-
protoOf(StateEnd).
|
|
1635
|
-
return this.
|
|
1634
|
+
protoOf(StateEnd).t34 = function (context) {
|
|
1635
|
+
return this.f35(this.d35_1, context);
|
|
1636
1636
|
};
|
|
1637
1637
|
protoOf(StateEnd).clone = function (context, $super) {
|
|
1638
1638
|
return this.clone(context, ($super == null ? true : $super instanceof StateEnd) ? $super : THROW_CCE());
|
|
1639
1639
|
};
|
|
1640
|
-
protoOf(StateEnd).
|
|
1640
|
+
protoOf(StateEnd).f35 = function (solution, context) {
|
|
1641
1641
|
return new StateEnd(solution, context);
|
|
1642
1642
|
};
|
|
1643
1643
|
protoOf(StateEnd).toString = function () {
|
|
1644
|
-
return 'StateEnd(solution=' + toString(this.
|
|
1644
|
+
return 'StateEnd(solution=' + toString(this.d35_1) + ', context=' + this.e35_1.toString() + ')';
|
|
1645
1645
|
};
|
|
1646
1646
|
protoOf(StateEnd).hashCode = function () {
|
|
1647
|
-
var result = hashCode(this.
|
|
1648
|
-
result = imul(result, 31) + this.
|
|
1647
|
+
var result = hashCode(this.d35_1);
|
|
1648
|
+
result = imul(result, 31) + this.e35_1.hashCode() | 0;
|
|
1649
1649
|
return result;
|
|
1650
1650
|
};
|
|
1651
1651
|
protoOf(StateEnd).equals = function (other) {
|
|
@@ -1653,19 +1653,19 @@
|
|
|
1653
1653
|
return true;
|
|
1654
1654
|
if (!(other instanceof StateEnd))
|
|
1655
1655
|
return false;
|
|
1656
|
-
if (!equals(this.
|
|
1656
|
+
if (!equals(this.d35_1, other.d35_1))
|
|
1657
1657
|
return false;
|
|
1658
|
-
if (!this.
|
|
1658
|
+
if (!this.e35_1.equals(other.e35_1))
|
|
1659
1659
|
return false;
|
|
1660
1660
|
return true;
|
|
1661
1661
|
};
|
|
1662
1662
|
protoOf(StateEnd).asEndState = function () {
|
|
1663
|
-
return this.
|
|
1663
|
+
return this.s34();
|
|
1664
1664
|
};
|
|
1665
1665
|
function isCatch($this, _this__u8e3s4) {
|
|
1666
1666
|
var tmp;
|
|
1667
|
-
if (_this__u8e3s4.
|
|
1668
|
-
var tmp_0 = _this__u8e3s4.
|
|
1667
|
+
if (_this__u8e3s4.zu() === 3) {
|
|
1668
|
+
var tmp_0 = _this__u8e3s4.fv();
|
|
1669
1669
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1670
1670
|
tmp = tmp_0 === Catch_getInstance().signature.name;
|
|
1671
1671
|
} else {
|
|
@@ -1676,9 +1676,9 @@
|
|
|
1676
1676
|
function getExceptionContent($this, _this__u8e3s4) {
|
|
1677
1677
|
var tmp;
|
|
1678
1678
|
if (_this__u8e3s4 instanceof MessageError) {
|
|
1679
|
-
tmp = _this__u8e3s4.
|
|
1679
|
+
tmp = _this__u8e3s4.p25();
|
|
1680
1680
|
} else {
|
|
1681
|
-
tmp = _this__u8e3s4.
|
|
1681
|
+
tmp = _this__u8e3s4.r23();
|
|
1682
1682
|
}
|
|
1683
1683
|
return tmp;
|
|
1684
1684
|
}
|
|
@@ -1692,17 +1692,17 @@
|
|
|
1692
1692
|
return tmp;
|
|
1693
1693
|
}
|
|
1694
1694
|
function _get_finalState__3aigq8($this) {
|
|
1695
|
-
return new StateHalt(toPublicException($this, $this.
|
|
1695
|
+
return new StateHalt(toPublicException($this, $this.i35_1), $this.j35_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
1696
1696
|
}
|
|
1697
1697
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1698
|
-
return new StateException($this.
|
|
1698
|
+
return new StateException($this.i35_1, ensureNotNull($this.j35_1.i30_1).h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
1699
1699
|
}
|
|
1700
1700
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1701
1701
|
var tmp;
|
|
1702
1702
|
if (isCatch($this, catchGoal)) {
|
|
1703
1703
|
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent($this, error));
|
|
1704
1704
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1705
|
-
} else if ($this.
|
|
1705
|
+
} else if ($this.j35_1.e33()) {
|
|
1706
1706
|
tmp = _get_finalState__3aigq8($this);
|
|
1707
1707
|
} else {
|
|
1708
1708
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1711,18 +1711,18 @@
|
|
|
1711
1711
|
}
|
|
1712
1712
|
function handleCatch($this, catchGoal, catcher) {
|
|
1713
1713
|
var tmp;
|
|
1714
|
-
if (catcher.
|
|
1715
|
-
var tmp_0 = $this.
|
|
1714
|
+
if (catcher.j11()) {
|
|
1715
|
+
var tmp_0 = $this.j35_1.a30_1.plus(catcher);
|
|
1716
1716
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1717
1717
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1718
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1719
|
-
var tmp0_$this = $this.
|
|
1718
|
+
var newGoals = plus_0(toGoals(subGoals), $this.j35_1.c30_1.hq());
|
|
1719
|
+
var tmp0_$this = $this.j35_1;
|
|
1720
1720
|
var tmp1_rules = Companion_instance_7.empty();
|
|
1721
1721
|
var tmp2_primitives = Companion_instance_7.empty();
|
|
1722
1722
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1723
|
-
var tmp4_step = $this.
|
|
1724
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
1725
|
-
} else if ($this.
|
|
1723
|
+
var tmp4_step = $this.q34();
|
|
1724
|
+
tmp = new StateGoalSelection(tmp0_$this.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_substitution, VOID, newGoals, tmp1_rules, tmp2_primitives, VOID, VOID, VOID, VOID, VOID, tmp4_step));
|
|
1725
|
+
} else if ($this.j35_1.e33()) {
|
|
1726
1726
|
tmp = _get_finalState__3aigq8($this);
|
|
1727
1727
|
} else {
|
|
1728
1728
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1733,42 +1733,42 @@
|
|
|
1733
1733
|
return function (_destruct__k2r9zo) {
|
|
1734
1734
|
// Inline function 'kotlin.collections.component1' call
|
|
1735
1735
|
var it = _destruct__k2r9zo.d2();
|
|
1736
|
-
return this$0.
|
|
1736
|
+
return this$0.j35_1.f33(it);
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
1739
1739
|
function StateException(exception, context) {
|
|
1740
1740
|
AbstractState.call(this, context);
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1741
|
+
this.i35_1 = exception;
|
|
1742
|
+
this.j35_1 = context;
|
|
1743
1743
|
}
|
|
1744
1744
|
protoOf(StateException).h8 = function () {
|
|
1745
|
-
return this.
|
|
1745
|
+
return this.j35_1;
|
|
1746
1746
|
};
|
|
1747
|
-
protoOf(StateException).
|
|
1747
|
+
protoOf(StateException).k34 = function () {
|
|
1748
1748
|
var tmp;
|
|
1749
|
-
if (this.
|
|
1750
|
-
var catchGoal = ensureNotNull(this.
|
|
1751
|
-
tmp = catchGoal.
|
|
1749
|
+
if (this.i35_1 instanceof LogicError) {
|
|
1750
|
+
var catchGoal = ensureNotNull(this.j35_1.c33());
|
|
1751
|
+
tmp = catchGoal.lv() ? handleStruct(this, this.j35_1.r2z_1, catchGoal.castToStruct(), this.i35_1) : this.j35_1.e33() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1752
1752
|
} else {
|
|
1753
1753
|
tmp = _get_finalState__3aigq8(this);
|
|
1754
1754
|
}
|
|
1755
1755
|
return tmp;
|
|
1756
1756
|
};
|
|
1757
|
-
protoOf(StateException).
|
|
1758
|
-
return this.
|
|
1757
|
+
protoOf(StateException).t34 = function (context) {
|
|
1758
|
+
return this.k35(this.i35_1, context);
|
|
1759
1759
|
};
|
|
1760
1760
|
protoOf(StateException).clone = function (context, $super) {
|
|
1761
1761
|
return this.clone(context, ($super == null ? true : $super instanceof StateException) ? $super : THROW_CCE());
|
|
1762
1762
|
};
|
|
1763
|
-
protoOf(StateException).
|
|
1763
|
+
protoOf(StateException).k35 = function (exception, context) {
|
|
1764
1764
|
return new StateException(exception, context);
|
|
1765
1765
|
};
|
|
1766
1766
|
protoOf(StateException).toString = function () {
|
|
1767
|
-
return 'StateException(exception=' + this.
|
|
1767
|
+
return 'StateException(exception=' + this.i35_1.toString() + ', context=' + this.j35_1.toString() + ')';
|
|
1768
1768
|
};
|
|
1769
1769
|
protoOf(StateException).hashCode = function () {
|
|
1770
|
-
var result = hashCode(this.
|
|
1771
|
-
result = imul(result, 31) + this.
|
|
1770
|
+
var result = hashCode(this.i35_1);
|
|
1771
|
+
result = imul(result, 31) + this.j35_1.hashCode() | 0;
|
|
1772
1772
|
return result;
|
|
1773
1773
|
};
|
|
1774
1774
|
protoOf(StateException).equals = function (other) {
|
|
@@ -1776,9 +1776,9 @@
|
|
|
1776
1776
|
return true;
|
|
1777
1777
|
if (!(other instanceof StateException))
|
|
1778
1778
|
return false;
|
|
1779
|
-
if (!equals(this.
|
|
1779
|
+
if (!equals(this.i35_1, other.i35_1))
|
|
1780
1780
|
return false;
|
|
1781
|
-
if (!this.
|
|
1781
|
+
if (!this.j35_1.equals(other.j35_1))
|
|
1782
1782
|
return false;
|
|
1783
1783
|
return true;
|
|
1784
1784
|
};
|
|
@@ -1786,97 +1786,97 @@
|
|
|
1786
1786
|
return function (_destruct__k2r9zo) {
|
|
1787
1787
|
// Inline function 'kotlin.collections.component1' call
|
|
1788
1788
|
var it = _destruct__k2r9zo.d2();
|
|
1789
|
-
return this$0.
|
|
1789
|
+
return this$0.n35_1.f33(it);
|
|
1790
1790
|
};
|
|
1791
1791
|
}
|
|
1792
1792
|
function StateGoalSelection(context) {
|
|
1793
1793
|
AbstractState.call(this, context);
|
|
1794
|
-
this.
|
|
1794
|
+
this.n35_1 = context;
|
|
1795
1795
|
}
|
|
1796
1796
|
protoOf(StateGoalSelection).h8 = function () {
|
|
1797
|
-
return this.
|
|
1797
|
+
return this.n35_1;
|
|
1798
1798
|
};
|
|
1799
|
-
protoOf(StateGoalSelection).
|
|
1799
|
+
protoOf(StateGoalSelection).k34 = function () {
|
|
1800
1800
|
var tmp;
|
|
1801
|
-
if (this.
|
|
1801
|
+
if (this.n35_1.c30_1.kq()) {
|
|
1802
1802
|
var tmp_0;
|
|
1803
|
-
if (this.
|
|
1804
|
-
tmp_0 = new StateEnd(Companion_instance_8.
|
|
1803
|
+
if (this.n35_1.e33()) {
|
|
1804
|
+
tmp_0 = new StateEnd(Companion_instance_8.i1v(this.n35_1.b30_1, this.n35_1.a30_1), this.n35_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34()));
|
|
1805
1805
|
} else {
|
|
1806
1806
|
// Inline function 'kotlin.let' call
|
|
1807
|
-
var it = ensureNotNull(this.
|
|
1808
|
-
var tmp0_choicePoints = this.
|
|
1809
|
-
var tmp1_flags = this.
|
|
1810
|
-
var tmp2_dynamicKb = this.
|
|
1811
|
-
var tmp3_staticKb = this.
|
|
1812
|
-
var tmp4_substitution = this.
|
|
1813
|
-
var tmp5_goals = it.
|
|
1814
|
-
var tmp6_procedure = it.
|
|
1815
|
-
var tmp7_step = this.
|
|
1816
|
-
var tmp8_startTime = this.
|
|
1817
|
-
var tmp9_operators = this.
|
|
1818
|
-
var tmp10_inputChannels = this.
|
|
1819
|
-
var tmp11_outputChannels = this.
|
|
1820
|
-
var tmp12_libraries = this.
|
|
1821
|
-
var tmp13_customData = this.
|
|
1822
|
-
var tmp$ret$1 = it.
|
|
1807
|
+
var it = ensureNotNull(this.n35_1.i30_1);
|
|
1808
|
+
var tmp0_choicePoints = this.n35_1.h30_1;
|
|
1809
|
+
var tmp1_flags = this.n35_1.t2z_1;
|
|
1810
|
+
var tmp2_dynamicKb = this.n35_1.v2z_1;
|
|
1811
|
+
var tmp3_staticKb = this.n35_1.u2z_1;
|
|
1812
|
+
var tmp4_substitution = this.n35_1.a30_1.d11(StateGoalSelection$computeNext$lambda(this));
|
|
1813
|
+
var tmp5_goals = it.c30_1.hq();
|
|
1814
|
+
var tmp6_procedure = it.q2z_1;
|
|
1815
|
+
var tmp7_step = this.q34();
|
|
1816
|
+
var tmp8_startTime = this.n35_1.f30_1;
|
|
1817
|
+
var tmp9_operators = this.n35_1.w2z_1;
|
|
1818
|
+
var tmp10_inputChannels = this.n35_1.x2z_1;
|
|
1819
|
+
var tmp11_outputChannels = this.n35_1.y2z_1;
|
|
1820
|
+
var tmp12_libraries = this.n35_1.s2z_1;
|
|
1821
|
+
var tmp13_customData = this.n35_1.z2z_1;
|
|
1822
|
+
var tmp$ret$1 = it.h31(tmp6_procedure, VOID, tmp12_libraries, tmp1_flags, tmp3_staticKb, tmp2_dynamicKb, tmp9_operators, tmp10_inputChannels, tmp11_outputChannels, tmp13_customData, tmp4_substitution, VOID, tmp5_goals, VOID, VOID, tmp8_startTime, VOID, tmp0_choicePoints, VOID, VOID, tmp7_step);
|
|
1823
1823
|
tmp_0 = new StateGoalSelection(tmp$ret$1);
|
|
1824
1824
|
}
|
|
1825
1825
|
tmp = tmp_0;
|
|
1826
|
-
} else if (equals(this.
|
|
1827
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1826
|
+
} else if (equals(this.n35_1.t2z_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().w27_1)) {
|
|
1827
|
+
tmp = new StatePrimitiveSelection(this.n35_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34(), plus_1(this.n35_1.l30_1, toSet(ensureNotNull(this.n35_1.c30_1.iq()).hv()))));
|
|
1828
1828
|
} else {
|
|
1829
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1829
|
+
tmp = new StatePrimitiveSelection(this.n35_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34()));
|
|
1830
1830
|
}
|
|
1831
1831
|
return tmp;
|
|
1832
1832
|
};
|
|
1833
|
-
protoOf(StateGoalSelection).
|
|
1834
|
-
return this.
|
|
1833
|
+
protoOf(StateGoalSelection).t34 = function (context) {
|
|
1834
|
+
return this.y34(context);
|
|
1835
1835
|
};
|
|
1836
1836
|
protoOf(StateGoalSelection).clone = function (context, $super) {
|
|
1837
1837
|
return this.clone(context, ($super == null ? true : $super instanceof StateGoalSelection) ? $super : THROW_CCE());
|
|
1838
1838
|
};
|
|
1839
|
-
protoOf(StateGoalSelection).
|
|
1839
|
+
protoOf(StateGoalSelection).y34 = function (context) {
|
|
1840
1840
|
return new StateGoalSelection(context);
|
|
1841
1841
|
};
|
|
1842
1842
|
protoOf(StateGoalSelection).toString = function () {
|
|
1843
|
-
return 'StateGoalSelection(context=' + this.
|
|
1843
|
+
return 'StateGoalSelection(context=' + this.n35_1.toString() + ')';
|
|
1844
1844
|
};
|
|
1845
1845
|
protoOf(StateGoalSelection).hashCode = function () {
|
|
1846
|
-
return this.
|
|
1846
|
+
return this.n35_1.hashCode();
|
|
1847
1847
|
};
|
|
1848
1848
|
protoOf(StateGoalSelection).equals = function (other) {
|
|
1849
1849
|
if (this === other)
|
|
1850
1850
|
return true;
|
|
1851
1851
|
if (!(other instanceof StateGoalSelection))
|
|
1852
1852
|
return false;
|
|
1853
|
-
if (!this.
|
|
1853
|
+
if (!this.n35_1.equals(other.n35_1))
|
|
1854
1854
|
return false;
|
|
1855
1855
|
return true;
|
|
1856
1856
|
};
|
|
1857
1857
|
function StateHalt(exception, context) {
|
|
1858
|
-
AbstractEndState.call(this, Companion_instance_8.halt(context.
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1858
|
+
AbstractEndState.call(this, Companion_instance_8.halt(context.b30_1, exception), context);
|
|
1859
|
+
this.s35_1 = exception;
|
|
1860
|
+
this.t35_1 = context;
|
|
1861
1861
|
}
|
|
1862
1862
|
protoOf(StateHalt).h8 = function () {
|
|
1863
|
-
return this.
|
|
1863
|
+
return this.t35_1;
|
|
1864
1864
|
};
|
|
1865
|
-
protoOf(StateHalt).
|
|
1866
|
-
return this.
|
|
1865
|
+
protoOf(StateHalt).t34 = function (context) {
|
|
1866
|
+
return this.k35(this.s35_1, context);
|
|
1867
1867
|
};
|
|
1868
1868
|
protoOf(StateHalt).clone = function (context, $super) {
|
|
1869
1869
|
return this.clone(context, ($super == null ? true : $super instanceof StateHalt) ? $super : THROW_CCE());
|
|
1870
1870
|
};
|
|
1871
|
-
protoOf(StateHalt).
|
|
1871
|
+
protoOf(StateHalt).k35 = function (exception, context) {
|
|
1872
1872
|
return new StateHalt(exception, context);
|
|
1873
1873
|
};
|
|
1874
1874
|
protoOf(StateHalt).toString = function () {
|
|
1875
|
-
return 'StateHalt(exception=' + this.
|
|
1875
|
+
return 'StateHalt(exception=' + this.s35_1.toString() + ', context=' + this.t35_1.toString() + ')';
|
|
1876
1876
|
};
|
|
1877
1877
|
protoOf(StateHalt).hashCode = function () {
|
|
1878
|
-
var result = hashCode(this.
|
|
1879
|
-
result = imul(result, 31) + this.
|
|
1878
|
+
var result = hashCode(this.s35_1);
|
|
1879
|
+
result = imul(result, 31) + this.t35_1.hashCode() | 0;
|
|
1880
1880
|
return result;
|
|
1881
1881
|
};
|
|
1882
1882
|
protoOf(StateHalt).equals = function (other) {
|
|
@@ -1884,75 +1884,75 @@
|
|
|
1884
1884
|
return true;
|
|
1885
1885
|
if (!(other instanceof StateHalt))
|
|
1886
1886
|
return false;
|
|
1887
|
-
if (!equals(this.
|
|
1887
|
+
if (!equals(this.s35_1, other.s35_1))
|
|
1888
1888
|
return false;
|
|
1889
|
-
if (!this.
|
|
1889
|
+
if (!this.t35_1.equals(other.t35_1))
|
|
1890
1890
|
return false;
|
|
1891
1891
|
return true;
|
|
1892
1892
|
};
|
|
1893
1893
|
protoOf(StateHalt).asEndState = function () {
|
|
1894
|
-
return this.
|
|
1894
|
+
return this.s34();
|
|
1895
1895
|
};
|
|
1896
1896
|
function StateInit(context) {
|
|
1897
1897
|
AbstractState.call(this, context);
|
|
1898
|
-
this.
|
|
1898
|
+
this.w35_1 = context;
|
|
1899
1899
|
}
|
|
1900
1900
|
protoOf(StateInit).h8 = function () {
|
|
1901
|
-
return this.
|
|
1901
|
+
return this.w35_1;
|
|
1902
1902
|
};
|
|
1903
|
-
protoOf(StateInit).
|
|
1904
|
-
var tmp0_$this = this.
|
|
1905
|
-
var tmp1_goals = toGoals(this.
|
|
1903
|
+
protoOf(StateInit).k34 = function () {
|
|
1904
|
+
var tmp0_$this = this.w35_1;
|
|
1905
|
+
var tmp1_goals = toGoals(this.w35_1.b30_1);
|
|
1906
1906
|
var tmp2_rules = Companion_instance_7.empty();
|
|
1907
1907
|
var tmp3_primitives = Companion_instance_7.empty();
|
|
1908
1908
|
var tmp4_substitution = Companion_getInstance_2().empty();
|
|
1909
|
-
var tmp5_customData = this.
|
|
1909
|
+
var tmp5_customData = this.w35_1.z2z_1.preservePersistent();
|
|
1910
1910
|
var tmp6_relevantVariables = emptySet();
|
|
1911
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.
|
|
1911
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_customData, tmp4_substitution, VOID, tmp1_goals, tmp2_rules, tmp3_primitives, VOID, VOID, null, null, 0, 1n, tmp6_relevantVariables), Companion_instance_7.empty()));
|
|
1912
1912
|
};
|
|
1913
|
-
protoOf(StateInit).
|
|
1914
|
-
return this.
|
|
1913
|
+
protoOf(StateInit).t34 = function (context) {
|
|
1914
|
+
return this.y34(context);
|
|
1915
1915
|
};
|
|
1916
1916
|
protoOf(StateInit).clone = function (context, $super) {
|
|
1917
1917
|
return this.clone(context, ($super == null ? true : $super instanceof StateInit) ? $super : THROW_CCE());
|
|
1918
1918
|
};
|
|
1919
|
-
protoOf(StateInit).
|
|
1919
|
+
protoOf(StateInit).y34 = function (context) {
|
|
1920
1920
|
return new StateInit(context);
|
|
1921
1921
|
};
|
|
1922
1922
|
protoOf(StateInit).toString = function () {
|
|
1923
|
-
return 'StateInit(context=' + this.
|
|
1923
|
+
return 'StateInit(context=' + this.w35_1.toString() + ')';
|
|
1924
1924
|
};
|
|
1925
1925
|
protoOf(StateInit).hashCode = function () {
|
|
1926
|
-
return this.
|
|
1926
|
+
return this.w35_1.hashCode();
|
|
1927
1927
|
};
|
|
1928
1928
|
protoOf(StateInit).equals = function (other) {
|
|
1929
1929
|
if (this === other)
|
|
1930
1930
|
return true;
|
|
1931
1931
|
if (!(other instanceof StateInit))
|
|
1932
1932
|
return false;
|
|
1933
|
-
if (!this.
|
|
1933
|
+
if (!this.w35_1.equals(other.w35_1))
|
|
1934
1934
|
return false;
|
|
1935
1935
|
return true;
|
|
1936
1936
|
};
|
|
1937
1937
|
function copyFromCurrentPrimitive($this, _this__u8e3s4, goals, procedureFromAncestor, substitution) {
|
|
1938
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1938
|
+
var tmp0_safe_receiver = _this__u8e3s4.e30_1.iq();
|
|
1939
1939
|
var tmp;
|
|
1940
1940
|
if (tmp0_safe_receiver == null) {
|
|
1941
1941
|
tmp = null;
|
|
1942
1942
|
} else {
|
|
1943
1943
|
// Inline function 'kotlin.let' call
|
|
1944
|
-
tmp = _this__u8e3s4.
|
|
1944
|
+
tmp = _this__u8e3s4.h33(tmp0_safe_receiver.sideEffects);
|
|
1945
1945
|
}
|
|
1946
1946
|
var tmp1_elvis_lhs = tmp;
|
|
1947
1947
|
var ctx = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
1948
|
-
var tmp4_goals = goals == null ? _this__u8e3s4.
|
|
1949
|
-
var tmp_0 = drop(_this__u8e3s4.
|
|
1948
|
+
var tmp4_goals = goals == null ? _this__u8e3s4.c30_1 : goals;
|
|
1949
|
+
var tmp_0 = drop(_this__u8e3s4.m30_1, procedureFromAncestor);
|
|
1950
1950
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
1951
1951
|
var tmp6_primitives = Companion_instance_7.empty();
|
|
1952
|
-
var tmp_1 = substitution == null ? _this__u8e3s4.
|
|
1952
|
+
var tmp_1 = substitution == null ? _this__u8e3s4.a30_1 : substitution;
|
|
1953
1953
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
1954
|
-
var tmp8_step = $this.
|
|
1955
|
-
return ctx.
|
|
1954
|
+
var tmp8_step = $this.q34();
|
|
1955
|
+
return ctx.h31(tmp5_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp7_substitution, VOID, tmp4_goals, VOID, tmp6_primitives, VOID, VOID, VOID, VOID, VOID, tmp8_step);
|
|
1956
1956
|
}
|
|
1957
1957
|
function copyFromCurrentPrimitive$default($this, _this__u8e3s4, goals, procedureFromAncestor, substitution, $super) {
|
|
1958
1958
|
goals = goals === VOID ? null : goals;
|
|
@@ -1961,21 +1961,21 @@
|
|
|
1961
1961
|
return copyFromCurrentPrimitive($this, _this__u8e3s4, goals, procedureFromAncestor, substitution);
|
|
1962
1962
|
}
|
|
1963
1963
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
1964
|
-
return it.
|
|
1964
|
+
return it.q2z_1;
|
|
1965
1965
|
}
|
|
1966
1966
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
1967
1967
|
return function (it) {
|
|
1968
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.
|
|
1968
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.z35_1, this$0.z35_1.c30_1.hq(), 1, this$0.z35_1.r2z_1.mergeWithOccurCheck(this$0.z35_1.a30_1, it.s1t(), false)));
|
|
1969
1969
|
};
|
|
1970
1970
|
}
|
|
1971
1971
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
1972
1972
|
return function (it) {
|
|
1973
|
-
return new StateBacktracking(copyFromCurrentPrimitive$default(this$0, ensureNotNull(this$0.
|
|
1973
|
+
return new StateBacktracking(copyFromCurrentPrimitive$default(this$0, ensureNotNull(this$0.z35_1.i30_1)));
|
|
1974
1974
|
};
|
|
1975
1975
|
}
|
|
1976
1976
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
1977
1977
|
return function (it) {
|
|
1978
|
-
return new StateException(it.
|
|
1978
|
+
return new StateException(it.z1u().updateLastContext(this$0.u34(this$0.z35_1)), copyFromCurrentPrimitive$default(this$0, this$0.z35_1));
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
1981
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -1983,15 +1983,15 @@
|
|
|
1983
1983
|
}
|
|
1984
1984
|
function StatePrimitiveExecution(context) {
|
|
1985
1985
|
AbstractState.call(this, context);
|
|
1986
|
-
this.
|
|
1986
|
+
this.z35_1 = context;
|
|
1987
1987
|
}
|
|
1988
1988
|
protoOf(StatePrimitiveExecution).h8 = function () {
|
|
1989
|
-
return this.
|
|
1989
|
+
return this.z35_1;
|
|
1990
1990
|
};
|
|
1991
|
-
protoOf(StatePrimitiveExecution).
|
|
1991
|
+
protoOf(StatePrimitiveExecution).k34 = function () {
|
|
1992
1992
|
var tmp;
|
|
1993
1993
|
try {
|
|
1994
|
-
var tmp0_safe_receiver = this.
|
|
1994
|
+
var tmp0_safe_receiver = this.z35_1.e30_1.iq();
|
|
1995
1995
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
1996
1996
|
var tmp_0;
|
|
1997
1997
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2000,15 +2000,15 @@
|
|
|
2000
2000
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
2001
2001
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
2002
2002
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
2003
|
-
tmp_0 = tmp1_safe_receiver.
|
|
2003
|
+
tmp_0 = tmp1_safe_receiver.d1v(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
2004
2004
|
}
|
|
2005
2005
|
var tmp2_elvis_lhs = tmp_0;
|
|
2006
|
-
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this, this.
|
|
2006
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this, this.z35_1)) : tmp2_elvis_lhs;
|
|
2007
2007
|
} catch ($p) {
|
|
2008
2008
|
var tmp_4;
|
|
2009
2009
|
if ($p instanceof ResolutionException) {
|
|
2010
2010
|
var exception = $p;
|
|
2011
|
-
tmp_4 = new StateException(exception.updateLastContext(this.
|
|
2011
|
+
tmp_4 = new StateException(exception.updateLastContext(this.u34(this.z35_1)), this.z35_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34()));
|
|
2012
2012
|
} else {
|
|
2013
2013
|
throw $p;
|
|
2014
2014
|
}
|
|
@@ -2016,57 +2016,57 @@
|
|
|
2016
2016
|
}
|
|
2017
2017
|
return tmp;
|
|
2018
2018
|
};
|
|
2019
|
-
protoOf(StatePrimitiveExecution).
|
|
2020
|
-
return this.
|
|
2019
|
+
protoOf(StatePrimitiveExecution).t34 = function (context) {
|
|
2020
|
+
return this.y34(context);
|
|
2021
2021
|
};
|
|
2022
2022
|
protoOf(StatePrimitiveExecution).clone = function (context, $super) {
|
|
2023
2023
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveExecution) ? $super : THROW_CCE());
|
|
2024
2024
|
};
|
|
2025
|
-
protoOf(StatePrimitiveExecution).
|
|
2025
|
+
protoOf(StatePrimitiveExecution).y34 = function (context) {
|
|
2026
2026
|
return new StatePrimitiveExecution(context);
|
|
2027
2027
|
};
|
|
2028
2028
|
protoOf(StatePrimitiveExecution).toString = function () {
|
|
2029
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
2029
|
+
return 'StatePrimitiveExecution(context=' + this.z35_1.toString() + ')';
|
|
2030
2030
|
};
|
|
2031
2031
|
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2032
|
-
return this.
|
|
2032
|
+
return this.z35_1.hashCode();
|
|
2033
2033
|
};
|
|
2034
2034
|
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2035
2035
|
if (this === other)
|
|
2036
2036
|
return true;
|
|
2037
2037
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2038
2038
|
return false;
|
|
2039
|
-
if (!this.
|
|
2039
|
+
if (!this.z35_1.equals(other.z35_1))
|
|
2040
2040
|
return false;
|
|
2041
2041
|
return true;
|
|
2042
2042
|
};
|
|
2043
2043
|
function exceptionalState($this, exception) {
|
|
2044
|
-
return new StateException(exception, $this.
|
|
2044
|
+
return new StateException(exception, $this.c36_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
2045
2045
|
}
|
|
2046
2046
|
function StatePrimitiveSelection(context) {
|
|
2047
2047
|
AbstractState.call(this, context);
|
|
2048
|
-
this.
|
|
2048
|
+
this.c36_1 = context;
|
|
2049
2049
|
}
|
|
2050
2050
|
protoOf(StatePrimitiveSelection).h8 = function () {
|
|
2051
|
-
return this.
|
|
2051
|
+
return this.c36_1;
|
|
2052
2052
|
};
|
|
2053
|
-
protoOf(StatePrimitiveSelection).
|
|
2053
|
+
protoOf(StatePrimitiveSelection).k34 = function () {
|
|
2054
2054
|
// Inline function 'kotlin.with' call
|
|
2055
|
-
var $this$with = this.
|
|
2056
|
-
var goal = ensureNotNull($this$with.
|
|
2055
|
+
var $this$with = this.c36_1;
|
|
2056
|
+
var goal = ensureNotNull($this$with.c33());
|
|
2057
2057
|
var tmp;
|
|
2058
|
-
if (goal.
|
|
2059
|
-
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.
|
|
2060
|
-
} else if (goal.
|
|
2058
|
+
if (goal.bw()) {
|
|
2059
|
+
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.c36_1, extractSignature(ensureNotNull(this.c36_1.q2z_1)), goal.castToVar()));
|
|
2060
|
+
} else if (goal.lv()) {
|
|
2061
2061
|
var goalStruct = goal.castToStruct();
|
|
2062
2062
|
var signature = extractSignature(goalStruct);
|
|
2063
2063
|
var tmp_0;
|
|
2064
|
-
if ($this$with.
|
|
2064
|
+
if ($this$with.s2z_1.hasPrimitive(signature)) {
|
|
2065
2065
|
var childContext = createChild($this$with);
|
|
2066
2066
|
var tmp_1;
|
|
2067
2067
|
try {
|
|
2068
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2069
|
-
var tmp0_elvis_lhs = $this$with.
|
|
2068
|
+
var request = toRequest(childContext, goalStruct, signature, this.n34());
|
|
2069
|
+
var tmp0_elvis_lhs = $this$with.s2z_1.u2c().h2(signature);
|
|
2070
2070
|
var tmp_2;
|
|
2071
2071
|
if (tmp0_elvis_lhs == null) {
|
|
2072
2072
|
var message = 'Inconsistent behaviour of Library.contains and Library.get';
|
|
@@ -2081,7 +2081,7 @@
|
|
|
2081
2081
|
var tmp_3;
|
|
2082
2082
|
if ($p instanceof ResolutionException) {
|
|
2083
2083
|
var exception = $p;
|
|
2084
|
-
tmp_3 = exceptionalState(this, exception.updateLastContext(this.
|
|
2084
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.u34(childContext)));
|
|
2085
2085
|
} else {
|
|
2086
2086
|
throw $p;
|
|
2087
2087
|
}
|
|
@@ -2089,106 +2089,106 @@
|
|
|
2089
2089
|
}
|
|
2090
2090
|
tmp_0 = tmp_1;
|
|
2091
2091
|
} else {
|
|
2092
|
-
tmp_0 = new StateRuleSelection(this.
|
|
2092
|
+
tmp_0 = new StateRuleSelection(this.c36_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.q34()));
|
|
2093
2093
|
}
|
|
2094
2094
|
tmp = tmp_0;
|
|
2095
2095
|
} else {
|
|
2096
2096
|
var tmp_4 = Companion_instance_10;
|
|
2097
|
-
var tmp1_safe_receiver = this.
|
|
2097
|
+
var tmp1_safe_receiver = this.c36_1.q2z_1;
|
|
2098
2098
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2099
|
-
tmp = exceptionalState(this, tmp_4.forGoal(this.
|
|
2099
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.c36_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2100
2100
|
}
|
|
2101
2101
|
return tmp;
|
|
2102
2102
|
};
|
|
2103
|
-
protoOf(StatePrimitiveSelection).
|
|
2104
|
-
return this.
|
|
2103
|
+
protoOf(StatePrimitiveSelection).t34 = function (context) {
|
|
2104
|
+
return this.y34(context);
|
|
2105
2105
|
};
|
|
2106
2106
|
protoOf(StatePrimitiveSelection).clone = function (context, $super) {
|
|
2107
2107
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveSelection) ? $super : THROW_CCE());
|
|
2108
2108
|
};
|
|
2109
|
-
protoOf(StatePrimitiveSelection).
|
|
2109
|
+
protoOf(StatePrimitiveSelection).y34 = function (context) {
|
|
2110
2110
|
return new StatePrimitiveSelection(context);
|
|
2111
2111
|
};
|
|
2112
2112
|
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2113
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2113
|
+
return 'StatePrimitiveSelection(context=' + this.c36_1.toString() + ')';
|
|
2114
2114
|
};
|
|
2115
2115
|
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2116
|
-
return this.
|
|
2116
|
+
return this.c36_1.hashCode();
|
|
2117
2117
|
};
|
|
2118
2118
|
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2119
2119
|
if (this === other)
|
|
2120
2120
|
return true;
|
|
2121
2121
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2122
2122
|
return false;
|
|
2123
|
-
if (!this.
|
|
2123
|
+
if (!this.c36_1.equals(other.c36_1))
|
|
2124
2124
|
return false;
|
|
2125
2125
|
return true;
|
|
2126
2126
|
};
|
|
2127
2127
|
function _get_failureState__yid9tw($this) {
|
|
2128
|
-
return new StateBacktracking($this.
|
|
2128
|
+
return new StateBacktracking($this.f36_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_7.empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
2129
2129
|
}
|
|
2130
2130
|
function StateRuleExecution(context) {
|
|
2131
2131
|
AbstractState.call(this, context);
|
|
2132
|
-
this.
|
|
2132
|
+
this.f36_1 = context;
|
|
2133
2133
|
}
|
|
2134
2134
|
protoOf(StateRuleExecution).h8 = function () {
|
|
2135
|
-
return this.
|
|
2135
|
+
return this.f36_1;
|
|
2136
2136
|
};
|
|
2137
|
-
protoOf(StateRuleExecution).
|
|
2137
|
+
protoOf(StateRuleExecution).k34 = function () {
|
|
2138
2138
|
// Inline function 'kotlin.with' call
|
|
2139
|
-
var $this$with = this.
|
|
2140
|
-
var substitution = $this$with.
|
|
2139
|
+
var $this$with = this.f36_1;
|
|
2140
|
+
var substitution = $this$with.r2z_1.mgu(ensureNotNull($this$with.c33()), ensureNotNull($this$with.d30_1.iq()).lx());
|
|
2141
2141
|
var tmp;
|
|
2142
|
-
if (substitution.
|
|
2143
|
-
var newSubstitution = this.
|
|
2144
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2145
|
-
var tmp0_$this = this.
|
|
2142
|
+
if (substitution.j11()) {
|
|
2143
|
+
var newSubstitution = this.f36_1.a30_1.plus(substitution).castToUnifier();
|
|
2144
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.f36_1.d30_1.iq()), newSubstitution).mx().getSubstituted(newSubstitution, []);
|
|
2145
|
+
var tmp0_$this = this.f36_1;
|
|
2146
2146
|
var tmp1_goals = toGoals(subGoals);
|
|
2147
2147
|
var tmp2_rules = Companion_instance_7.empty();
|
|
2148
|
-
var tmp3_step = this.
|
|
2149
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
2148
|
+
var tmp3_step = this.q34();
|
|
2149
|
+
tmp = new StateGoalSelection(tmp0_$this.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
|
|
2150
2150
|
} else {
|
|
2151
2151
|
tmp = _get_failureState__yid9tw(this);
|
|
2152
2152
|
}
|
|
2153
2153
|
return tmp;
|
|
2154
2154
|
};
|
|
2155
|
-
protoOf(StateRuleExecution).
|
|
2156
|
-
return this.
|
|
2155
|
+
protoOf(StateRuleExecution).t34 = function (context) {
|
|
2156
|
+
return this.y34(context);
|
|
2157
2157
|
};
|
|
2158
2158
|
protoOf(StateRuleExecution).clone = function (context, $super) {
|
|
2159
2159
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleExecution) ? $super : THROW_CCE());
|
|
2160
2160
|
};
|
|
2161
|
-
protoOf(StateRuleExecution).
|
|
2161
|
+
protoOf(StateRuleExecution).y34 = function (context) {
|
|
2162
2162
|
return new StateRuleExecution(context);
|
|
2163
2163
|
};
|
|
2164
2164
|
protoOf(StateRuleExecution).toString = function () {
|
|
2165
|
-
return 'StateRuleExecution(context=' + this.
|
|
2165
|
+
return 'StateRuleExecution(context=' + this.f36_1.toString() + ')';
|
|
2166
2166
|
};
|
|
2167
2167
|
protoOf(StateRuleExecution).hashCode = function () {
|
|
2168
|
-
return this.
|
|
2168
|
+
return this.f36_1.hashCode();
|
|
2169
2169
|
};
|
|
2170
2170
|
protoOf(StateRuleExecution).equals = function (other) {
|
|
2171
2171
|
if (this === other)
|
|
2172
2172
|
return true;
|
|
2173
2173
|
if (!(other instanceof StateRuleExecution))
|
|
2174
2174
|
return false;
|
|
2175
|
-
if (!this.
|
|
2175
|
+
if (!this.f36_1.equals(other.f36_1))
|
|
2176
2176
|
return false;
|
|
2177
2177
|
return true;
|
|
2178
2178
|
};
|
|
2179
2179
|
function None() {
|
|
2180
2180
|
None_instance = this;
|
|
2181
2181
|
CutLimit.call(this);
|
|
2182
|
-
this.
|
|
2183
|
-
this.
|
|
2182
|
+
this.g36_1 = -1;
|
|
2183
|
+
this.h36_1 = null;
|
|
2184
2184
|
}
|
|
2185
|
-
protoOf(None).
|
|
2186
|
-
return this.
|
|
2185
|
+
protoOf(None).i36 = function () {
|
|
2186
|
+
return this.g36_1;
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(None).
|
|
2189
|
-
return this.
|
|
2188
|
+
protoOf(None).r1t = function () {
|
|
2189
|
+
return this.h36_1;
|
|
2190
2190
|
};
|
|
2191
|
-
protoOf(None).
|
|
2191
|
+
protoOf(None).j36 = function () {
|
|
2192
2192
|
return true;
|
|
2193
2193
|
};
|
|
2194
2194
|
var None_instance;
|
|
@@ -2199,24 +2199,24 @@
|
|
|
2199
2199
|
}
|
|
2200
2200
|
function Actual(depthToCut, procedure) {
|
|
2201
2201
|
CutLimit.call(this);
|
|
2202
|
-
this.
|
|
2203
|
-
this.
|
|
2202
|
+
this.k36_1 = depthToCut;
|
|
2203
|
+
this.l36_1 = procedure;
|
|
2204
2204
|
}
|
|
2205
|
-
protoOf(Actual).
|
|
2206
|
-
return this.
|
|
2205
|
+
protoOf(Actual).i36 = function () {
|
|
2206
|
+
return this.k36_1;
|
|
2207
2207
|
};
|
|
2208
|
-
protoOf(Actual).
|
|
2209
|
-
return this.
|
|
2208
|
+
protoOf(Actual).r1t = function () {
|
|
2209
|
+
return this.l36_1;
|
|
2210
2210
|
};
|
|
2211
2211
|
function CutLimit() {
|
|
2212
2212
|
}
|
|
2213
|
-
protoOf(CutLimit).
|
|
2213
|
+
protoOf(CutLimit).j36 = function () {
|
|
2214
2214
|
return false;
|
|
2215
2215
|
};
|
|
2216
2216
|
function Companion_0() {
|
|
2217
2217
|
Companion_instance_16 = this;
|
|
2218
|
-
this.
|
|
2219
|
-
this.
|
|
2218
|
+
this.m36_1 = Catch_getInstance().signature;
|
|
2219
|
+
this.n36_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2220
2220
|
}
|
|
2221
2221
|
var Companion_instance_16;
|
|
2222
2222
|
function Companion_getInstance_6() {
|
|
@@ -2225,15 +2225,15 @@
|
|
|
2225
2225
|
return Companion_instance_16;
|
|
2226
2226
|
}
|
|
2227
2227
|
function _get_failureState__yid9tw_0($this) {
|
|
2228
|
-
return new StateBacktracking($this.
|
|
2228
|
+
return new StateBacktracking($this.q36_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
2229
2229
|
}
|
|
2230
2230
|
function exceptionalState_0($this, exception) {
|
|
2231
|
-
return new StateException(exception, $this.
|
|
2231
|
+
return new StateException(exception, $this.q36_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
2232
2232
|
}
|
|
2233
2233
|
function missingProcedure($this, ruleSources, missing) {
|
|
2234
|
-
var unknown = $this.
|
|
2234
|
+
var unknown = $this.q36_1.t2z_1.get(Unknown_getInstance());
|
|
2235
2235
|
var tmp;
|
|
2236
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2236
|
+
if (equals(unknown, Unknown_getInstance().c28_1)) {
|
|
2237
2237
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2238
2238
|
} else {
|
|
2239
2239
|
var tmp_0;
|
|
@@ -2252,12 +2252,12 @@
|
|
|
2252
2252
|
}
|
|
2253
2253
|
if (tmp$ret$1) {
|
|
2254
2254
|
var tmp_1;
|
|
2255
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2256
|
-
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.
|
|
2257
|
-
} else if (equals(unknown, Unknown_getInstance().
|
|
2255
|
+
if (equals(unknown, Unknown_getInstance().a28_1)) {
|
|
2256
|
+
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.q36_1, missing));
|
|
2257
|
+
} else if (equals(unknown, Unknown_getInstance().b28_1)) {
|
|
2258
2258
|
// Inline function 'kotlin.also' call
|
|
2259
2259
|
var this_0 = _get_failureState__yid9tw_0($this);
|
|
2260
|
-
$this.
|
|
2260
|
+
$this.q36_1.j1u().write(MissingPredicate_init_$Create$($this.q36_1, missing));
|
|
2261
2261
|
tmp_1 = this_0;
|
|
2262
2262
|
} else {
|
|
2263
2263
|
tmp_1 = _get_failureState__yid9tw_0($this);
|
|
@@ -2271,25 +2271,25 @@
|
|
|
2271
2271
|
return tmp;
|
|
2272
2272
|
}
|
|
2273
2273
|
function _get_ignoreState__t4wl8y($this) {
|
|
2274
|
-
return new StateGoalSelection($this.
|
|
2274
|
+
return new StateGoalSelection($this.q36_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q36_1.c30_1.hq(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.q34()));
|
|
2275
2275
|
}
|
|
2276
2276
|
function isCut($this, _this__u8e3s4) {
|
|
2277
|
-
return _this__u8e3s4.
|
|
2277
|
+
return _this__u8e3s4.av() && _this__u8e3s4.castToAtom().e2() === '!';
|
|
2278
2278
|
}
|
|
2279
2279
|
function computeCutLimit($this, _this__u8e3s4, magicCut) {
|
|
2280
2280
|
var tmp;
|
|
2281
2281
|
if (magicCut) {
|
|
2282
|
-
tmp = firstOrNull(_this__u8e3s4.
|
|
2282
|
+
tmp = firstOrNull(_this__u8e3s4.m30_1);
|
|
2283
2283
|
} else {
|
|
2284
|
-
var tmp0 = _this__u8e3s4.
|
|
2284
|
+
var tmp0 = _this__u8e3s4.m30_1;
|
|
2285
2285
|
var tmp$ret$1;
|
|
2286
2286
|
$l$block: {
|
|
2287
2287
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2288
2288
|
var _iterator__ex2g4s = tmp0.p();
|
|
2289
2289
|
while (_iterator__ex2g4s.s()) {
|
|
2290
2290
|
var element = _iterator__ex2g4s.t();
|
|
2291
|
-
var tmp_0 = Companion_getInstance_6().
|
|
2292
|
-
var tmp0_safe_receiver = element.
|
|
2291
|
+
var tmp_0 = Companion_getInstance_6().n36_1;
|
|
2292
|
+
var tmp0_safe_receiver = element.q2z_1;
|
|
2293
2293
|
if (!contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver))) {
|
|
2294
2294
|
tmp$ret$1 = element;
|
|
2295
2295
|
break $l$block;
|
|
@@ -2304,21 +2304,21 @@
|
|
|
2304
2304
|
if (cutLimit == null) {
|
|
2305
2305
|
tmp_1 = None_getInstance();
|
|
2306
2306
|
} else {
|
|
2307
|
-
tmp_1 = new Actual(cutLimit.
|
|
2307
|
+
tmp_1 = new Actual(cutLimit.j30_1, cutLimit.q2z_1);
|
|
2308
2308
|
}
|
|
2309
2309
|
return tmp_1;
|
|
2310
2310
|
}
|
|
2311
2311
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2312
|
-
return cutLimit.
|
|
2312
|
+
return cutLimit.j36() || cutLimit.i36() > executionContext.j30_1 || (cutLimit.i36() === executionContext.j30_1 && !equals(cutLimit.r1t(), executionContext.q2z_1));
|
|
2313
2313
|
}
|
|
2314
2314
|
function performCut($this, _this__u8e3s4, cutLimit) {
|
|
2315
2315
|
var tmp;
|
|
2316
2316
|
if (_this__u8e3s4 === null) {
|
|
2317
2317
|
tmp = null;
|
|
2318
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.
|
|
2318
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.c31()))) {
|
|
2319
2319
|
tmp = _this__u8e3s4;
|
|
2320
2320
|
} else {
|
|
2321
|
-
var tmp_0 = _this__u8e3s4.
|
|
2321
|
+
var tmp_0 = _this__u8e3s4.p31();
|
|
2322
2322
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2323
2323
|
var tmp_1;
|
|
2324
2324
|
if (any(cutCandidates)) {
|
|
@@ -2328,7 +2328,7 @@
|
|
|
2328
2328
|
var _iterator__ex2g4s = cutCandidates.p();
|
|
2329
2329
|
while (_iterator__ex2g4s.s()) {
|
|
2330
2330
|
var element = _iterator__ex2g4s.t();
|
|
2331
|
-
if (ensureNotNull(element.
|
|
2331
|
+
if (ensureNotNull(element.c31()).j30_1 <= cutLimit.i36()) {
|
|
2332
2332
|
tmp$ret$1 = element;
|
|
2333
2333
|
break $l$block;
|
|
2334
2334
|
}
|
|
@@ -2336,7 +2336,7 @@
|
|
|
2336
2336
|
tmp$ret$1 = null;
|
|
2337
2337
|
}
|
|
2338
2338
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
2339
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2339
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d31();
|
|
2340
2340
|
} else {
|
|
2341
2341
|
tmp_1 = _this__u8e3s4;
|
|
2342
2342
|
}
|
|
@@ -2346,9 +2346,9 @@
|
|
|
2346
2346
|
}
|
|
2347
2347
|
function _get_isTailRecursive__h5eso7($this, _this__u8e3s4) {
|
|
2348
2348
|
var tmp;
|
|
2349
|
-
if (_this__u8e3s4.
|
|
2349
|
+
if (_this__u8e3s4.c30_1.hq().kq() && equals(_this__u8e3s4.t2z_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().p27_1)) {
|
|
2350
2350
|
// Inline function 'kotlin.let' call
|
|
2351
|
-
var tmp0_safe_receiver = ensureNotNull(_this__u8e3s4.
|
|
2351
|
+
var tmp0_safe_receiver = ensureNotNull(_this__u8e3s4.c33()).asStruct();
|
|
2352
2352
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver);
|
|
2353
2353
|
var tmp_0;
|
|
2354
2354
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2356,9 +2356,9 @@
|
|
|
2356
2356
|
} else {
|
|
2357
2357
|
// Inline function 'kotlin.let' call
|
|
2358
2358
|
var tmp_1;
|
|
2359
|
-
var tmp0_safe_receiver_0 = _this__u8e3s4.
|
|
2359
|
+
var tmp0_safe_receiver_0 = _this__u8e3s4.q2z_1;
|
|
2360
2360
|
if (tmp1_safe_receiver.equals(tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
|
|
2361
|
-
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().
|
|
2361
|
+
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().m36_1);
|
|
2362
2362
|
} else {
|
|
2363
2363
|
tmp_1 = false;
|
|
2364
2364
|
}
|
|
@@ -2376,7 +2376,7 @@
|
|
|
2376
2376
|
// Inline function 'kotlin.let' call
|
|
2377
2377
|
var it = ensureRules(map(tmp, StateRuleSelection$selectClauses$lambda));
|
|
2378
2378
|
var tmp_0;
|
|
2379
|
-
if (_this__u8e3s4.
|
|
2379
|
+
if (_this__u8e3s4.o1r()) {
|
|
2380
2380
|
tmp_0 = buffered(it);
|
|
2381
2381
|
} else {
|
|
2382
2382
|
tmp_0 = it;
|
|
@@ -2385,7 +2385,7 @@
|
|
|
2385
2385
|
}
|
|
2386
2386
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2387
2387
|
return function (it) {
|
|
2388
|
-
return equals(ensureNotNull(it.
|
|
2388
|
+
return equals(ensureNotNull(it.c31()).q2z_1, $cutLimit.r1t());
|
|
2389
2389
|
};
|
|
2390
2390
|
}
|
|
2391
2391
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
@@ -2394,30 +2394,30 @@
|
|
|
2394
2394
|
};
|
|
2395
2395
|
}
|
|
2396
2396
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2397
|
-
return it.
|
|
2397
|
+
return it.iv();
|
|
2398
2398
|
}
|
|
2399
2399
|
function StateRuleSelection(context) {
|
|
2400
2400
|
Companion_getInstance_6();
|
|
2401
2401
|
AbstractState.call(this, context);
|
|
2402
|
-
this.
|
|
2402
|
+
this.q36_1 = context;
|
|
2403
2403
|
}
|
|
2404
2404
|
protoOf(StateRuleSelection).h8 = function () {
|
|
2405
|
-
return this.
|
|
2405
|
+
return this.q36_1;
|
|
2406
2406
|
};
|
|
2407
|
-
protoOf(StateRuleSelection).
|
|
2408
|
-
var currentGoal = ensureNotNull(this.
|
|
2407
|
+
protoOf(StateRuleSelection).k34 = function () {
|
|
2408
|
+
var currentGoal = ensureNotNull(this.q36_1.c33());
|
|
2409
2409
|
var tmp;
|
|
2410
|
-
if (currentGoal.
|
|
2411
|
-
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.
|
|
2412
|
-
} else if (currentGoal.
|
|
2410
|
+
if (currentGoal.bw()) {
|
|
2411
|
+
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.q36_1, extractSignature(ensureNotNull(this.q36_1.q2z_1)), currentGoal.castToVar()));
|
|
2412
|
+
} else if (currentGoal.lv()) {
|
|
2413
2413
|
// Inline function 'kotlin.with' call
|
|
2414
|
-
var $this$with = this.
|
|
2414
|
+
var $this$with = this.q36_1;
|
|
2415
2415
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2416
|
-
var ruleSources = sequenceOf([$this$with.
|
|
2416
|
+
var ruleSources = sequenceOf([$this$with.s2z_1.asTheory($this$with.r2z_1), $this$with.u2z_1, $this$with.v2z_1]);
|
|
2417
2417
|
var tmp_0;
|
|
2418
|
-
if (currentGoalStruct.
|
|
2418
|
+
if (currentGoalStruct.cw()) {
|
|
2419
2419
|
var tmp_1;
|
|
2420
|
-
if (currentGoalStruct.
|
|
2420
|
+
if (currentGoalStruct.dv()) {
|
|
2421
2421
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2422
2422
|
} else {
|
|
2423
2423
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
@@ -2428,7 +2428,7 @@
|
|
|
2428
2428
|
var cutLimit = computeCutLimit(this, $this$with, currentGoalStruct instanceof MagicCut);
|
|
2429
2429
|
// Inline function 'kotlin.let' call
|
|
2430
2430
|
var it = _get_ignoreState__t4wl8y(this);
|
|
2431
|
-
tmp_0 = it.
|
|
2431
|
+
tmp_0 = it.y34(it.n35_1.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(this, it.n35_1.h30_1, cutLimit)));
|
|
2432
2432
|
} else {
|
|
2433
2433
|
var tmp$ret$3;
|
|
2434
2434
|
$l$block: {
|
|
@@ -2446,10 +2446,10 @@
|
|
|
2446
2446
|
if (tmp$ret$3) {
|
|
2447
2447
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2448
2448
|
var tmp_2;
|
|
2449
|
-
if (_get_isTailRecursive__h5eso7(this, this.
|
|
2450
|
-
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.
|
|
2449
|
+
if (_get_isTailRecursive__h5eso7(this, this.q36_1)) {
|
|
2450
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.q36_1, rules));
|
|
2451
2451
|
} else {
|
|
2452
|
-
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.
|
|
2452
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.q36_1, rules));
|
|
2453
2453
|
}
|
|
2454
2454
|
tmp_0 = tmp_2;
|
|
2455
2455
|
} else {
|
|
@@ -2459,43 +2459,43 @@
|
|
|
2459
2459
|
}
|
|
2460
2460
|
tmp = tmp_0;
|
|
2461
2461
|
} else {
|
|
2462
|
-
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.
|
|
2462
|
+
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.q36_1, extractSignature(ensureNotNull(this.q36_1.q2z_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2463
2463
|
}
|
|
2464
2464
|
return tmp;
|
|
2465
2465
|
};
|
|
2466
|
-
protoOf(StateRuleSelection).
|
|
2467
|
-
return this.
|
|
2466
|
+
protoOf(StateRuleSelection).t34 = function (context) {
|
|
2467
|
+
return this.y34(context);
|
|
2468
2468
|
};
|
|
2469
2469
|
protoOf(StateRuleSelection).clone = function (context, $super) {
|
|
2470
2470
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleSelection) ? $super : THROW_CCE());
|
|
2471
2471
|
};
|
|
2472
|
-
protoOf(StateRuleSelection).
|
|
2472
|
+
protoOf(StateRuleSelection).y34 = function (context) {
|
|
2473
2473
|
return new StateRuleSelection(context);
|
|
2474
2474
|
};
|
|
2475
2475
|
protoOf(StateRuleSelection).toString = function () {
|
|
2476
|
-
return 'StateRuleSelection(context=' + this.
|
|
2476
|
+
return 'StateRuleSelection(context=' + this.q36_1.toString() + ')';
|
|
2477
2477
|
};
|
|
2478
2478
|
protoOf(StateRuleSelection).hashCode = function () {
|
|
2479
|
-
return this.
|
|
2479
|
+
return this.q36_1.hashCode();
|
|
2480
2480
|
};
|
|
2481
2481
|
protoOf(StateRuleSelection).equals = function (other) {
|
|
2482
2482
|
if (this === other)
|
|
2483
2483
|
return true;
|
|
2484
2484
|
if (!(other instanceof StateRuleSelection))
|
|
2485
2485
|
return false;
|
|
2486
|
-
if (!this.
|
|
2486
|
+
if (!this.q36_1.equals(other.q36_1))
|
|
2487
2487
|
return false;
|
|
2488
2488
|
return true;
|
|
2489
2489
|
};
|
|
2490
2490
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2491
2491
|
var tmp;
|
|
2492
|
-
if (rules.
|
|
2493
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2492
|
+
if (rules.jq()) {
|
|
2493
|
+
tmp = appendRules(_this__u8e3s4.h30_1, rules.hq(), _this__u8e3s4);
|
|
2494
2494
|
} else {
|
|
2495
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2495
|
+
tmp = appendRules(_this__u8e3s4.h30_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2496
2496
|
}
|
|
2497
2497
|
var newChoicePointContext = tmp;
|
|
2498
|
-
return _this__u8e3s4.
|
|
2498
|
+
return _this__u8e3s4.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2499
2499
|
}
|
|
2500
2500
|
function toGoals(_this__u8e3s4) {
|
|
2501
2501
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2503,8 +2503,8 @@
|
|
|
2503
2503
|
}
|
|
2504
2504
|
function unfoldGoals(_this__u8e3s4) {
|
|
2505
2505
|
var tmp;
|
|
2506
|
-
if (_this__u8e3s4.
|
|
2507
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2506
|
+
if (_this__u8e3s4.qv()) {
|
|
2507
|
+
var tmp_0 = _this__u8e3s4.castToTuple().vt();
|
|
2508
2508
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2509
2509
|
} else {
|
|
2510
2510
|
tmp = sequenceOf_0(_this__u8e3s4);
|
|
@@ -2513,28 +2513,28 @@
|
|
|
2513
2513
|
}
|
|
2514
2514
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2515
2515
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2516
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2516
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.c33()).castToStruct();
|
|
2517
2517
|
var tmp0_goals = toGoals(currentGoal);
|
|
2518
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2519
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2518
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.q2z_1;
|
|
2519
|
+
var tmp2_depth = _this__u8e3s4.j30_1 + 1 | 0;
|
|
2520
2520
|
// Inline function 'kotlin.Long.plus' call
|
|
2521
|
-
var this_0 = _this__u8e3s4.
|
|
2521
|
+
var this_0 = _this__u8e3s4.k30_1;
|
|
2522
2522
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2523
2523
|
var tmp4_relevantVariables = emptySet();
|
|
2524
|
-
return _this__u8e3s4.
|
|
2524
|
+
return _this__u8e3s4.h31(tmp1_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_goals, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4, tmp2_depth, tmp3_step, tmp4_relevantVariables);
|
|
2525
2525
|
}
|
|
2526
2526
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2527
|
-
return new Request(signature, goal.
|
|
2527
|
+
return new Request(signature, goal.gv(), _this__u8e3s4, startTime);
|
|
2528
2528
|
}
|
|
2529
2529
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2530
2530
|
var tmp;
|
|
2531
|
-
if (primitiveExecutions.
|
|
2532
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2531
|
+
if (primitiveExecutions.jq()) {
|
|
2532
|
+
tmp = appendPrimitives(_this__u8e3s4.h30_1, primitiveExecutions.hq(), _this__u8e3s4);
|
|
2533
2533
|
} else {
|
|
2534
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2534
|
+
tmp = appendPrimitives(_this__u8e3s4.h30_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2535
2535
|
}
|
|
2536
2536
|
var newChoicePointContext = tmp;
|
|
2537
|
-
return _this__u8e3s4.
|
|
2537
|
+
return _this__u8e3s4.h31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2538
2538
|
}
|
|
2539
2539
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2540
2540
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
@@ -2551,17 +2551,17 @@
|
|
|
2551
2551
|
}
|
|
2552
2552
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2553
2553
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2554
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2554
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.c33()).castToStruct();
|
|
2555
2555
|
var tmp0_goals = toGoals(currentGoal);
|
|
2556
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2557
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2556
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.q2z_1;
|
|
2557
|
+
var tmp2_depth = _this__u8e3s4.j30_1 + 1 | 0;
|
|
2558
2558
|
// Inline function 'kotlin.Long.plus' call
|
|
2559
|
-
var this_0 = _this__u8e3s4.
|
|
2559
|
+
var this_0 = _this__u8e3s4.k30_1;
|
|
2560
2560
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2561
|
-
return _this__u8e3s4.
|
|
2561
|
+
return _this__u8e3s4.h31(tmp1_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_goals, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_depth, tmp3_step);
|
|
2562
2562
|
}
|
|
2563
2563
|
function toGoals$lambda(it) {
|
|
2564
|
-
return it.
|
|
2564
|
+
return it.bw() ? Companion_getInstance_1().of('call', [it]) : it;
|
|
2565
2565
|
}
|
|
2566
2566
|
function unfoldGoals$lambda(it) {
|
|
2567
2567
|
return unfoldGoals(it);
|
|
@@ -2569,54 +2569,54 @@
|
|
|
2569
2569
|
function ensureRules$lambda(it) {
|
|
2570
2570
|
// Inline function 'kotlin.require' call
|
|
2571
2571
|
// Inline function 'kotlin.require' call
|
|
2572
|
-
if (!it.
|
|
2572
|
+
if (!it.nv()) {
|
|
2573
2573
|
var message = 'Failed requirement.';
|
|
2574
2574
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2575
2575
|
}
|
|
2576
2576
|
return it.castToRule();
|
|
2577
2577
|
}
|
|
2578
2578
|
function AbstractSolutionIterator(state) {
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2579
|
+
this.r36_1 = state;
|
|
2580
|
+
this.s36_1 = 0n;
|
|
2581
2581
|
}
|
|
2582
2582
|
protoOf(AbstractSolutionIterator).s = function () {
|
|
2583
2583
|
// Inline function 'kotlin.let' call
|
|
2584
|
-
var it = this.
|
|
2585
|
-
return !it.
|
|
2584
|
+
var it = this.r36_1;
|
|
2585
|
+
return !it.r34() || it.castToEndState().o31();
|
|
2586
2586
|
};
|
|
2587
2587
|
protoOf(AbstractSolutionIterator).t = function () {
|
|
2588
2588
|
do {
|
|
2589
|
-
var previousState = this.
|
|
2589
|
+
var previousState = this.r36_1;
|
|
2590
2590
|
var tmp = this;
|
|
2591
|
-
var tmp_0 = this.
|
|
2592
|
-
this.
|
|
2593
|
-
tmp.
|
|
2594
|
-
this.onStateTransition(previousState, this.
|
|
2591
|
+
var tmp_0 = this.r36_1;
|
|
2592
|
+
this.s36_1 = add(this.s36_1, get_ONE());
|
|
2593
|
+
tmp.r36_1 = this.t36(tmp_0, this.s36_1);
|
|
2594
|
+
this.onStateTransition(previousState, this.r36_1, this.s36_1);
|
|
2595
2595
|
}
|
|
2596
|
-
while (!this.
|
|
2597
|
-
return this.
|
|
2596
|
+
while (!this.r36_1.r34());
|
|
2597
|
+
return this.r36_1.castToEndState().y2g().cleanUp();
|
|
2598
2598
|
};
|
|
2599
2599
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2600
2600
|
AbstractSolutionIterator.call(this, state);
|
|
2601
|
-
this.
|
|
2601
|
+
this.w36_1 = onStateTransitionCallback;
|
|
2602
2602
|
}
|
|
2603
|
-
protoOf(SimpleSolutionIterator).
|
|
2603
|
+
protoOf(SimpleSolutionIterator).t36 = function (state, step) {
|
|
2604
2604
|
return state.next();
|
|
2605
2605
|
};
|
|
2606
|
-
protoOf(SimpleSolutionIterator).
|
|
2607
|
-
return this.
|
|
2606
|
+
protoOf(SimpleSolutionIterator).x36 = function (source, destination, index) {
|
|
2607
|
+
return this.w36_1(source, destination, index);
|
|
2608
2608
|
};
|
|
2609
2609
|
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2610
|
-
return this.
|
|
2610
|
+
return this.x36(source, destination, index);
|
|
2611
2611
|
};
|
|
2612
2612
|
function DefaultBuiltins() {
|
|
2613
2613
|
DefaultBuiltins_instance = this;
|
|
2614
2614
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2615
2615
|
}
|
|
2616
|
-
protoOf(DefaultBuiltins).
|
|
2616
|
+
protoOf(DefaultBuiltins).i2d = function () {
|
|
2617
2617
|
return listOf(Throw_getInstance());
|
|
2618
2618
|
};
|
|
2619
|
-
protoOf(DefaultBuiltins).
|
|
2619
|
+
protoOf(DefaultBuiltins).h2d = function () {
|
|
2620
2620
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
2621
2621
|
};
|
|
2622
2622
|
var DefaultBuiltins_instance;
|
|
@@ -2630,12 +2630,12 @@
|
|
|
2630
2630
|
var tmp_0;
|
|
2631
2631
|
var tmp_1;
|
|
2632
2632
|
if (isInterface(error, Struct)) {
|
|
2633
|
-
tmp_1 = error.
|
|
2633
|
+
tmp_1 = error.fv() === 'error';
|
|
2634
2634
|
} else {
|
|
2635
2635
|
tmp_1 = false;
|
|
2636
2636
|
}
|
|
2637
2637
|
if (tmp_1) {
|
|
2638
|
-
var containsArg = error.
|
|
2638
|
+
var containsArg = error.zu();
|
|
2639
2639
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
2640
2640
|
} else {
|
|
2641
2641
|
tmp_0 = false;
|
|
@@ -2643,9 +2643,9 @@
|
|
|
2643
2643
|
if (tmp_0) {
|
|
2644
2644
|
var tmp_2 = Companion_instance_14;
|
|
2645
2645
|
var tmp_3 = error.get(0);
|
|
2646
|
-
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.
|
|
2646
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.zu() > 1 ? error.get(1) : null);
|
|
2647
2647
|
} else {
|
|
2648
|
-
tmp = Companion_instance_13.
|
|
2648
|
+
tmp = Companion_instance_13.k25(error, context);
|
|
2649
2649
|
}
|
|
2650
2650
|
return tmp;
|
|
2651
2651
|
}
|
|
@@ -2653,11 +2653,11 @@
|
|
|
2653
2653
|
Throw_instance = this;
|
|
2654
2654
|
UnaryPredicate.call(this, 'throw');
|
|
2655
2655
|
}
|
|
2656
|
-
protoOf(Throw).
|
|
2657
|
-
return sequenceOf_0(Companion_getInstance_4().
|
|
2656
|
+
protoOf(Throw).r2n = function (_this__u8e3s4, first) {
|
|
2657
|
+
return sequenceOf_0(Companion_getInstance_4().j2e(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.w(0)), VOID, []));
|
|
2658
2658
|
};
|
|
2659
|
-
protoOf(Throw).
|
|
2660
|
-
return this.
|
|
2659
|
+
protoOf(Throw).p2h = function (_this__u8e3s4, first) {
|
|
2660
|
+
return this.r2n(_this__u8e3s4, first);
|
|
2661
2661
|
};
|
|
2662
2662
|
var Throw_instance;
|
|
2663
2663
|
function Throw_getInstance() {
|
|
@@ -2669,10 +2669,10 @@
|
|
|
2669
2669
|
Call_instance = this;
|
|
2670
2670
|
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
2671
2671
|
}
|
|
2672
|
-
protoOf(Call).
|
|
2672
|
+
protoOf(Call).v2h = function (_this__u8e3s4) {
|
|
2673
2673
|
return listOf(_this__u8e3s4.varOf('G'));
|
|
2674
2674
|
};
|
|
2675
|
-
protoOf(Call).
|
|
2675
|
+
protoOf(Call).w2h = function (_this__u8e3s4) {
|
|
2676
2676
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2677
2677
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2678
2678
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('G')]), _this__u8e3s4.varOf('G')]);
|
|
@@ -2687,10 +2687,10 @@
|
|
|
2687
2687
|
Catch_instance = this;
|
|
2688
2688
|
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2689
2689
|
}
|
|
2690
|
-
protoOf(Catch).
|
|
2690
|
+
protoOf(Catch).v2h = function (_this__u8e3s4) {
|
|
2691
2691
|
return listOf_0([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
2692
2692
|
};
|
|
2693
|
-
protoOf(Catch).
|
|
2693
|
+
protoOf(Catch).w2h = function (_this__u8e3s4) {
|
|
2694
2694
|
return _this__u8e3s4.varOf('G');
|
|
2695
2695
|
};
|
|
2696
2696
|
var Catch_instance;
|
|
@@ -2703,10 +2703,10 @@
|
|
|
2703
2703
|
Comma_instance = this;
|
|
2704
2704
|
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
2705
2705
|
}
|
|
2706
|
-
protoOf(Comma).
|
|
2706
|
+
protoOf(Comma).v2h = function (_this__u8e3s4) {
|
|
2707
2707
|
return listOf_0([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2708
2708
|
};
|
|
2709
|
-
protoOf(Comma).
|
|
2709
|
+
protoOf(Comma).w2h = function (_this__u8e3s4) {
|
|
2710
2710
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2711
2711
|
};
|
|
2712
2712
|
var Comma_instance;
|
|
@@ -2729,7 +2729,7 @@
|
|
|
2729
2729
|
Fail_instance = this;
|
|
2730
2730
|
NegationAsFailure.call(this);
|
|
2731
2731
|
}
|
|
2732
|
-
protoOf(Fail).
|
|
2732
|
+
protoOf(Fail).w2h = function (_this__u8e3s4) {
|
|
2733
2733
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2734
2734
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2735
2735
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('X')]);
|
|
@@ -2747,7 +2747,7 @@
|
|
|
2747
2747
|
Success_instance = this;
|
|
2748
2748
|
NegationAsFailure.call(this);
|
|
2749
2749
|
}
|
|
2750
|
-
protoOf(Success).
|
|
2750
|
+
protoOf(Success).w2h = function (_this__u8e3s4) {
|
|
2751
2751
|
return _this__u8e3s4.truthOf(true);
|
|
2752
2752
|
};
|
|
2753
2753
|
var Success_instance;
|
|
@@ -2757,8 +2757,8 @@
|
|
|
2757
2757
|
return Success_instance;
|
|
2758
2758
|
}
|
|
2759
2759
|
function Companion_1() {
|
|
2760
|
-
this.
|
|
2761
|
-
this.
|
|
2760
|
+
this.x37_1 = '\\+';
|
|
2761
|
+
this.y37_1 = 1;
|
|
2762
2762
|
}
|
|
2763
2763
|
var Companion_instance_17;
|
|
2764
2764
|
function Companion_getInstance_7() {
|
|
@@ -2767,37 +2767,37 @@
|
|
|
2767
2767
|
function NegationAsFailure() {
|
|
2768
2768
|
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2769
2769
|
}
|
|
2770
|
-
protoOf(NegationAsFailure).
|
|
2770
|
+
protoOf(NegationAsFailure).v2h = function (_this__u8e3s4) {
|
|
2771
2771
|
return listOf(_this__u8e3s4.varOf('X'));
|
|
2772
2772
|
};
|
|
2773
2773
|
//region block: post-declaration
|
|
2774
2774
|
protoOf(ClassicExecutionContext).createSolver = createSolver;
|
|
2775
2775
|
protoOf(ClassicExecutionContext).createMutableSolver = createMutableSolver;
|
|
2776
2776
|
protoOf(ClassicExecutionContext).update = update;
|
|
2777
|
-
protoOf(ClassicExecutionContext).
|
|
2778
|
-
protoOf(ClassicExecutionContext).
|
|
2779
|
-
protoOf(ClassicExecutionContext).
|
|
2780
|
-
protoOf(ClassicExecutionContext).
|
|
2781
|
-
protoOf(ClassicExecutionContext).
|
|
2782
|
-
protoOf(ClassicExecutionContext).
|
|
2783
|
-
protoOf(ClassicExecutionContext).
|
|
2777
|
+
protoOf(ClassicExecutionContext).g1u = get_standardInput;
|
|
2778
|
+
protoOf(ClassicExecutionContext).h1u = get_standardOutput;
|
|
2779
|
+
protoOf(ClassicExecutionContext).i1u = get_standardError;
|
|
2780
|
+
protoOf(ClassicExecutionContext).j1u = get_warnings;
|
|
2781
|
+
protoOf(ClassicExecutionContext).n1t = get_endTime;
|
|
2782
|
+
protoOf(ClassicExecutionContext).p1t = get_remainingTime;
|
|
2783
|
+
protoOf(ClassicExecutionContext).q1t = get_elapsedTime;
|
|
2784
2784
|
protoOf(ClassicSolverFactory).rawSolverOf = rawSolverOf;
|
|
2785
2785
|
protoOf(ClassicSolverFactory).solverOf = solverOf;
|
|
2786
2786
|
protoOf(ClassicSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2787
2787
|
protoOf(ClassicSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2788
2788
|
protoOf(ClassicSolverFactory).newBuilder = newBuilder;
|
|
2789
|
-
protoOf(ClassicSolverFactory).
|
|
2790
|
-
protoOf(ClassicSolverFactory).
|
|
2791
|
-
protoOf(ClassicSolverFactory).
|
|
2792
|
-
protoOf(ClassicSolverFactory).
|
|
2793
|
-
protoOf(ClassicSolverFactory).
|
|
2794
|
-
protoOf(ClassicSolverFactory).
|
|
2795
|
-
protoOf(ClassicSolverFactory).
|
|
2796
|
-
protoOf(ClassicSolverFactory).
|
|
2797
|
-
protoOf(ClassicSolverFactory).
|
|
2798
|
-
protoOf(ClassicSolverFactory).
|
|
2789
|
+
protoOf(ClassicSolverFactory).r1w = get_defaultRuntime;
|
|
2790
|
+
protoOf(ClassicSolverFactory).t1w = get_defaultUnificator;
|
|
2791
|
+
protoOf(ClassicSolverFactory).u1w = get_defaultFlags;
|
|
2792
|
+
protoOf(ClassicSolverFactory).x1w = get_defaultStaticKb;
|
|
2793
|
+
protoOf(ClassicSolverFactory).y1w = get_defaultDynamicKb;
|
|
2794
|
+
protoOf(ClassicSolverFactory).z1w = get_defaultInputChannel;
|
|
2795
|
+
protoOf(ClassicSolverFactory).a1x = get_defaultOutputChannel;
|
|
2796
|
+
protoOf(ClassicSolverFactory).b1x = get_defaultErrorChannel;
|
|
2797
|
+
protoOf(ClassicSolverFactory).c1x = get_defaultWarningsChannel;
|
|
2798
|
+
protoOf(ClassicSolverFactory).k1x = solverWithDefaultBuiltins;
|
|
2799
2799
|
protoOf(ClassicSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2800
|
-
protoOf(ClassicSolverFactory).
|
|
2800
|
+
protoOf(ClassicSolverFactory).m1x = mutableSolverWithDefaultBuiltins;
|
|
2801
2801
|
protoOf(ClassicSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2802
2802
|
protoOf(MutableClassicSolver).loadStaticClauses = loadStaticClauses;
|
|
2803
2803
|
protoOf(MutableClassicSolver).loadStaticClausesIterable = loadStaticClausesIterable;
|
|
@@ -2805,13 +2805,13 @@
|
|
|
2805
2805
|
protoOf(MutableClassicSolver).loadDynamicClauses = loadDynamicClauses;
|
|
2806
2806
|
protoOf(MutableClassicSolver).loadDynamicClausesIterable = loadDynamicClausesIterable;
|
|
2807
2807
|
protoOf(MutableClassicSolver).loadDynamicClausesSequence = loadDynamicClausesSequence;
|
|
2808
|
-
protoOf(AbstractState).
|
|
2808
|
+
protoOf(AbstractState).r34 = get_isEndState;
|
|
2809
2809
|
protoOf(AbstractState).asEndState = asEndState;
|
|
2810
2810
|
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2811
2811
|
protoOf(AbstractState).clone = clone;
|
|
2812
|
-
protoOf(AbstractEndState).
|
|
2813
|
-
protoOf(AbstractEndState).
|
|
2814
|
-
protoOf(AbstractEndState).
|
|
2812
|
+
protoOf(AbstractEndState).r34 = get_isEndState_0;
|
|
2813
|
+
protoOf(AbstractEndState).s34 = asEndState_0;
|
|
2814
|
+
protoOf(AbstractEndState).o31 = get_hasOpenAlternatives;
|
|
2815
2815
|
//endregion
|
|
2816
2816
|
//region block: init
|
|
2817
2817
|
ClassicSolverFactory_instance = new ClassicSolverFactory();
|