@tuprolog/2p-full 3.0.6 → 3.0.8
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-bdd.js +159 -159
- package/2p-core.js +2210 -2140
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +765 -766
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +890 -892
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +105 -115
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1421 -1418
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +56 -56
- package/2p-repl.js +149 -142
- package/2p-repl.js.map +1 -1
- package/2p-solve-plp.js +2 -2
- package/2p-solve-problog.js +1024 -964
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-prolog.js +821 -831
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +3931 -3596
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +199 -199
- package/2p-unify.js +75 -75
- package/2p-utils.js +352 -330
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +90 -90
- package/clikt-clikt.js +1524 -1481
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +472 -472
- package/kotlin-kotlin-stdlib.js +1379 -1367
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1485 -1484
- package/kt-math.js.map +1 -1
- package/mordant-mordant.js +1442 -1442
- package/okio-parent-okio-nodefilesystem.js +46 -46
- package/okio-parent-okio.js +647 -647
- package/package.json +1 -1
- package/2p-test-dsl.js +0 -15
- package/2p-test-dsl.js.map +0 -1
- package/kotlin-kotlin-test.js +0 -15
- package/kotlin-kotlin-test.js.map +0 -1
package/2p-solve-prolog.js
CHANGED
|
@@ -38,34 +38,33 @@
|
|
|
38
38
|
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
39
39
|
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
40
40
|
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.v;
|
|
41
|
-
var toString = kotlin_kotlin.$_$.
|
|
41
|
+
var toString = kotlin_kotlin.$_$.x8;
|
|
42
42
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
43
43
|
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
44
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
44
|
+
var constructCallableReference = kotlin_kotlin.$_$.t7;
|
|
45
45
|
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.v2;
|
|
46
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
47
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
48
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
46
|
+
var protoOf = kotlin_kotlin.$_$.u8;
|
|
47
|
+
var THROW_CCE = kotlin_kotlin.$_$.he;
|
|
48
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.n6;
|
|
49
49
|
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.f5;
|
|
50
50
|
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.h5;
|
|
51
51
|
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.d5;
|
|
52
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
53
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
54
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
55
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
56
|
-
var add = kotlin_kotlin.$_$.
|
|
57
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
58
|
-
var equals = kotlin_kotlin.$_$.
|
|
59
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
60
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
61
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
62
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
63
|
-
var sequence = kotlin_kotlin.$_$.
|
|
64
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
65
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
66
|
-
var listOf = kotlin_kotlin.$_$.
|
|
52
|
+
var asSequence = kotlin_kotlin.$_$.aa;
|
|
53
|
+
var initMetadataForClass = kotlin_kotlin.$_$.d8;
|
|
54
|
+
var ensureNotNull = kotlin_kotlin.$_$.ne;
|
|
55
|
+
var fromInt = kotlin_kotlin.$_$.y6;
|
|
56
|
+
var add = kotlin_kotlin.$_$.t6;
|
|
57
|
+
var hashCode = kotlin_kotlin.$_$.c8;
|
|
58
|
+
var equals = kotlin_kotlin.$_$.v7;
|
|
59
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l6;
|
|
60
|
+
var SequenceScope = kotlin_kotlin.$_$.w9;
|
|
61
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.k6;
|
|
62
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.h8;
|
|
63
|
+
var sequence = kotlin_kotlin.$_$.eb;
|
|
64
|
+
var toString_0 = kotlin_kotlin.$_$.xe;
|
|
65
|
+
var objectCreate = kotlin_kotlin.$_$.t8;
|
|
66
|
+
var listOf = kotlin_kotlin.$_$.h4;
|
|
67
67
|
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.g5;
|
|
68
|
-
var to = kotlin_kotlin.$_$.we;
|
|
69
68
|
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.h4;
|
|
70
69
|
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.i4;
|
|
71
70
|
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.j4;
|
|
@@ -74,31 +73,31 @@
|
|
|
74
73
|
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.f4;
|
|
75
74
|
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.k4;
|
|
76
75
|
var asSequence_0 = kotlin_kotlin.$_$.r2;
|
|
77
|
-
var emptySequence = kotlin_kotlin.$_$.
|
|
78
|
-
var plus = kotlin_kotlin.$_$.
|
|
79
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
80
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
81
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
82
|
-
var distinct = kotlin_kotlin.$_$.
|
|
76
|
+
var emptySequence = kotlin_kotlin.$_$.fa;
|
|
77
|
+
var plus = kotlin_kotlin.$_$.bb;
|
|
78
|
+
var KProperty1 = kotlin_kotlin.$_$.v9;
|
|
79
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.a8;
|
|
80
|
+
var flatMap = kotlin_kotlin.$_$.la;
|
|
81
|
+
var distinct = kotlin_kotlin.$_$.da;
|
|
83
82
|
var cached = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
84
83
|
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
85
|
-
var filter = kotlin_kotlin.$_$.
|
|
86
|
-
var map = kotlin_kotlin.$_$.
|
|
87
|
-
var toList = kotlin_kotlin.$_$.
|
|
84
|
+
var filter = kotlin_kotlin.$_$.ia;
|
|
85
|
+
var map = kotlin_kotlin.$_$.wa;
|
|
86
|
+
var toList = kotlin_kotlin.$_$.kb;
|
|
88
87
|
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
89
88
|
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
90
89
|
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
91
90
|
var Companion_instance_7 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
92
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
93
|
-
var lazy = kotlin_kotlin.$_$.
|
|
94
|
-
var contains = kotlin_kotlin.$_$.
|
|
91
|
+
var emptySet = kotlin_kotlin.$_$.n3;
|
|
92
|
+
var lazy = kotlin_kotlin.$_$.re;
|
|
93
|
+
var contains = kotlin_kotlin.$_$.ba;
|
|
95
94
|
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.x1;
|
|
96
95
|
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
97
96
|
var update = kotlin_it_unibo_tuprolog_solve.$_$.y1;
|
|
98
97
|
var apply = kotlin_it_unibo_tuprolog_solve.$_$.x3;
|
|
99
98
|
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.w3;
|
|
100
99
|
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.y3;
|
|
101
|
-
var getBigIntHashCode = kotlin_kotlin.$_$.
|
|
100
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.x7;
|
|
102
101
|
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.a4;
|
|
103
102
|
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.b4;
|
|
104
103
|
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.z3;
|
|
@@ -126,28 +125,28 @@
|
|
|
126
125
|
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.y4;
|
|
127
126
|
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
128
127
|
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.b5;
|
|
129
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
130
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
131
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
128
|
+
var initMetadataForObject = kotlin_kotlin.$_$.i8;
|
|
129
|
+
var defineProp = kotlin_kotlin.$_$.u7;
|
|
130
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.e8;
|
|
132
131
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
133
|
-
var subtract = kotlin_kotlin.$_$.
|
|
132
|
+
var subtract = kotlin_kotlin.$_$.g7;
|
|
134
133
|
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
135
134
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.s1;
|
|
136
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
137
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
135
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.g8;
|
|
136
|
+
var getKClass = kotlin_kotlin.$_$.s9;
|
|
138
137
|
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
139
138
|
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.s1;
|
|
140
139
|
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
141
140
|
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.d1;
|
|
142
141
|
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.j1;
|
|
143
142
|
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
144
|
-
var toSet = kotlin_kotlin.$_$.
|
|
145
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
143
|
+
var toSet = kotlin_kotlin.$_$.mb;
|
|
144
|
+
var plus_1 = kotlin_kotlin.$_$.z4;
|
|
146
145
|
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
147
|
-
var drop = kotlin_kotlin.$_$.
|
|
148
|
-
var first = kotlin_kotlin.$_$.
|
|
146
|
+
var drop = kotlin_kotlin.$_$.ea;
|
|
147
|
+
var first = kotlin_kotlin.$_$.ka;
|
|
149
148
|
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.a2;
|
|
150
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
149
|
+
var isInterface = kotlin_kotlin.$_$.m8;
|
|
151
150
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
152
151
|
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
153
152
|
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
@@ -156,24 +155,24 @@
|
|
|
156
155
|
var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
157
156
|
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.v;
|
|
158
157
|
var Companion_instance_11 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
159
|
-
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.
|
|
160
|
-
var setOf = kotlin_kotlin.$_$.
|
|
158
|
+
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
159
|
+
var setOf = kotlin_kotlin.$_$.h5;
|
|
161
160
|
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
162
161
|
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
163
162
|
var Companion_instance_12 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
164
163
|
var contains_0 = kotlin_kotlin.$_$.x2;
|
|
165
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
166
|
-
var any = kotlin_kotlin.$_$.
|
|
164
|
+
var firstOrNull = kotlin_kotlin.$_$.ja;
|
|
165
|
+
var any = kotlin_kotlin.$_$.y9;
|
|
167
166
|
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
168
167
|
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.s;
|
|
169
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
168
|
+
var sequenceOf = kotlin_kotlin.$_$.cb;
|
|
170
169
|
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.s3;
|
|
171
|
-
var sequenceOf_0 = kotlin_kotlin.$_$.
|
|
170
|
+
var sequenceOf_0 = kotlin_kotlin.$_$.db;
|
|
172
171
|
var Request = kotlin_it_unibo_tuprolog_solve.$_$.h3;
|
|
173
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
172
|
+
var get_ONE = kotlin_kotlin.$_$.s6;
|
|
174
173
|
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
175
174
|
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
176
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
175
|
+
var listOf_0 = kotlin_kotlin.$_$.i4;
|
|
177
176
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
178
177
|
var Companion_instance_13 = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
179
178
|
var Companion_instance_14 = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
@@ -214,12 +213,12 @@
|
|
|
214
213
|
}
|
|
215
214
|
function clone(context, $super) {
|
|
216
215
|
context = context === VOID ? this.v8() : context;
|
|
217
|
-
return $super === VOID ? this.
|
|
216
|
+
return $super === VOID ? this.j3g(context) : $super.j3g.call(this, context);
|
|
218
217
|
}
|
|
219
218
|
initMetadataForInterface(State, 'State');
|
|
220
219
|
initMetadataForClass(AbstractState, 'AbstractState', VOID, VOID, [State]);
|
|
221
220
|
function get_hasOpenAlternatives() {
|
|
222
|
-
return this.
|
|
221
|
+
return this.r2n().z1y() && this.v8().e3d();
|
|
223
222
|
}
|
|
224
223
|
function get_isEndState_0() {
|
|
225
224
|
return true;
|
|
@@ -228,7 +227,7 @@
|
|
|
228
227
|
return this;
|
|
229
228
|
}
|
|
230
229
|
function asEndState_1() {
|
|
231
|
-
return this.
|
|
230
|
+
return this.i3g();
|
|
232
231
|
}
|
|
233
232
|
initMetadataForInterface(EndState, 'EndState', VOID, VOID, [State]);
|
|
234
233
|
initMetadataForClass(AbstractEndState, 'AbstractEndState', VOID, AbstractState, [EndState]);
|
|
@@ -270,24 +269,24 @@
|
|
|
270
269
|
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
271
270
|
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
272
271
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
273
|
-
AbstractPrologSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
272
|
+
AbstractPrologSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.p21(stdIn), Companion_instance_5.s21(stdOut, stdErr, warnings), trustKb);
|
|
274
273
|
return $this;
|
|
275
274
|
}
|
|
276
275
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
277
276
|
// Inline function 'kotlin.require' call
|
|
278
277
|
// Inline function 'kotlin.require' call
|
|
279
|
-
if (!(destination.v8().
|
|
278
|
+
if (!(destination.v8().a3c_1 === index)) {
|
|
280
279
|
var message = 'Failed requirement.';
|
|
281
280
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
282
281
|
}
|
|
283
|
-
$this.
|
|
282
|
+
$this.h3c(destination.v8());
|
|
284
283
|
}
|
|
285
284
|
function AbstractPrologSolver$updateCurrentContextAfterStateTransition$ref(p0) {
|
|
286
285
|
return constructCallableReference(function (p0_0, p1, p2) {
|
|
287
286
|
var tmp0 = p0;
|
|
288
287
|
updateCurrentContextAfterStateTransition(tmp0, p0_0, p1, p2);
|
|
289
288
|
return Unit_instance;
|
|
290
|
-
}, 3, 0,
|
|
289
|
+
}, 3, 0, 87, 'updateCurrentContextAfterStateTransition', [p0]);
|
|
291
290
|
}
|
|
292
291
|
function AbstractPrologSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
293
292
|
unificator = unificator === VOID ? Companion_getInstance().o1n() : unificator;
|
|
@@ -300,24 +299,24 @@
|
|
|
300
299
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
301
300
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
302
301
|
}
|
|
303
|
-
protoOf(AbstractPrologSolver).
|
|
304
|
-
this.
|
|
302
|
+
protoOf(AbstractPrologSolver).h3c = function (_set____db54di) {
|
|
303
|
+
this.g3c_1 = _set____db54di;
|
|
305
304
|
};
|
|
306
|
-
protoOf(AbstractPrologSolver).
|
|
307
|
-
return this.
|
|
305
|
+
protoOf(AbstractPrologSolver).z2f = function (_set____db54di) {
|
|
306
|
+
return this.h3c(_set____db54di instanceof PrologExecutionContext ? _set____db54di : THROW_CCE());
|
|
308
307
|
};
|
|
309
|
-
protoOf(AbstractPrologSolver).
|
|
310
|
-
var tmp = this.
|
|
308
|
+
protoOf(AbstractPrologSolver).x2f = function () {
|
|
309
|
+
var tmp = this.g3c_1;
|
|
311
310
|
if (!(tmp == null))
|
|
312
311
|
return tmp;
|
|
313
312
|
else {
|
|
314
313
|
throwUninitializedPropertyAccessException('currentContext');
|
|
315
314
|
}
|
|
316
315
|
};
|
|
317
|
-
protoOf(AbstractPrologSolver).
|
|
316
|
+
protoOf(AbstractPrologSolver).y2f = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
318
317
|
return new PrologExecutionContext(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);
|
|
319
318
|
};
|
|
320
|
-
protoOf(AbstractPrologSolver).
|
|
319
|
+
protoOf(AbstractPrologSolver).f2g = function (goal, options) {
|
|
321
320
|
var tmp0_unificator = this.v1n();
|
|
322
321
|
var tmp1_libraries = this.t1x();
|
|
323
322
|
var tmp2_flags = this.u1x();
|
|
@@ -326,75 +325,72 @@
|
|
|
326
325
|
var tmp5_operators = this.c1y();
|
|
327
326
|
var tmp6_inputChannels = this.x1x();
|
|
328
327
|
var tmp7_outputChannels = this.y1x();
|
|
329
|
-
var tmp8_customData = this.
|
|
328
|
+
var tmp8_customData = this.x2f().p3b_1;
|
|
330
329
|
var tmp9_startTime = currentTimeInstant();
|
|
331
|
-
var tmp10_maxDuration = options.
|
|
332
|
-
this.
|
|
333
|
-
var tmp = new StateInit(this.
|
|
334
|
-
return asSequence(this.
|
|
335
|
-
};
|
|
336
|
-
protoOf(AbstractPrologSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
337
|
-
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof AbstractPrologSolver) ? $super : THROW_CCE());
|
|
330
|
+
var tmp10_maxDuration = options.r20();
|
|
331
|
+
this.h3c(new PrologExecutionContext(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));
|
|
332
|
+
var tmp = new StateInit(this.x2f());
|
|
333
|
+
return asSequence(this.i3c(tmp, AbstractPrologSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
338
334
|
};
|
|
339
335
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
340
336
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
337
|
+
this.n3c_1 = alternatives;
|
|
338
|
+
this.o3c_1 = executionContext;
|
|
339
|
+
this.p3c_1 = parent;
|
|
340
|
+
this.q3c_1 = depth;
|
|
345
341
|
}
|
|
346
|
-
protoOf(Primitives).
|
|
347
|
-
return this.
|
|
342
|
+
protoOf(Primitives).r3c = function () {
|
|
343
|
+
return this.n3c_1;
|
|
348
344
|
};
|
|
349
|
-
protoOf(Primitives).
|
|
350
|
-
return this.
|
|
345
|
+
protoOf(Primitives).s3c = function () {
|
|
346
|
+
return this.o3c_1;
|
|
351
347
|
};
|
|
352
|
-
protoOf(Primitives).
|
|
353
|
-
return this.
|
|
348
|
+
protoOf(Primitives).t3c = function () {
|
|
349
|
+
return this.p3c_1;
|
|
354
350
|
};
|
|
355
|
-
protoOf(Primitives).
|
|
356
|
-
return this.
|
|
351
|
+
protoOf(Primitives).u3c = function () {
|
|
352
|
+
return this.q3c_1;
|
|
357
353
|
};
|
|
358
354
|
protoOf(Primitives).toString = function () {
|
|
359
355
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
360
356
|
};
|
|
361
|
-
protoOf(Primitives).
|
|
357
|
+
protoOf(Primitives).v3c = function () {
|
|
362
358
|
return 'Primitives';
|
|
363
359
|
};
|
|
364
|
-
protoOf(Primitives).
|
|
365
|
-
var tmp0_$this = ensureNotNull(this.
|
|
366
|
-
var tmp1_primitives = this.
|
|
360
|
+
protoOf(Primitives).w3c = function (context) {
|
|
361
|
+
var tmp0_$this = ensureNotNull(this.o3c_1);
|
|
362
|
+
var tmp1_primitives = this.n3c_1;
|
|
367
363
|
// Inline function 'kotlin.Long.plus' call
|
|
368
|
-
var this_0 = context.
|
|
364
|
+
var this_0 = context.a3c_1;
|
|
369
365
|
var tmp2_step = add(this_0, fromInt(1));
|
|
370
|
-
var tmp3_startTime = context.
|
|
371
|
-
var tmp4_flags = context.
|
|
372
|
-
var tmp5_dynamicKb = context.
|
|
373
|
-
var tmp6_staticKb = context.
|
|
374
|
-
var tmp7_operators = context.
|
|
375
|
-
var tmp8_inputChannels = context.
|
|
376
|
-
var tmp9_outputChannels = context.
|
|
377
|
-
var tmp10_libraries = context.
|
|
378
|
-
var tmp11_customData = context.
|
|
379
|
-
var tempContext = tmp0_$this.
|
|
380
|
-
var nextChoicePointContext = this.
|
|
381
|
-
return tempContext.
|
|
382
|
-
};
|
|
383
|
-
protoOf(Primitives).
|
|
366
|
+
var tmp3_startTime = context.v3b_1;
|
|
367
|
+
var tmp4_flags = context.j3b_1;
|
|
368
|
+
var tmp5_dynamicKb = context.l3b_1;
|
|
369
|
+
var tmp6_staticKb = context.k3b_1;
|
|
370
|
+
var tmp7_operators = context.m3b_1;
|
|
371
|
+
var tmp8_inputChannels = context.n3b_1;
|
|
372
|
+
var tmp9_outputChannels = context.o3b_1;
|
|
373
|
+
var tmp10_libraries = context.i3b_1;
|
|
374
|
+
var tmp11_customData = context.p3b_1.discardEphemeral();
|
|
375
|
+
var tempContext = tmp0_$this.x3c(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);
|
|
376
|
+
var nextChoicePointContext = this.y3c(this.n3c_1.qr(), tempContext);
|
|
377
|
+
return tempContext.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
378
|
+
};
|
|
379
|
+
protoOf(Primitives).z3c = function (alternatives, executionContext, parent, depth) {
|
|
384
380
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
385
381
|
};
|
|
386
|
-
protoOf(Primitives).
|
|
387
|
-
alternatives = alternatives === VOID ? this.
|
|
388
|
-
executionContext = executionContext === VOID ? this.
|
|
389
|
-
parent = parent === VOID ? this.
|
|
390
|
-
depth = depth === VOID ? this.
|
|
391
|
-
return $super === VOID ? this.
|
|
382
|
+
protoOf(Primitives).y3c = function (alternatives, executionContext, parent, depth, $super) {
|
|
383
|
+
alternatives = alternatives === VOID ? this.n3c_1 : alternatives;
|
|
384
|
+
executionContext = executionContext === VOID ? this.o3c_1 : executionContext;
|
|
385
|
+
parent = parent === VOID ? this.p3c_1 : parent;
|
|
386
|
+
depth = depth === VOID ? this.q3c_1 : depth;
|
|
387
|
+
return $super === VOID ? this.z3c(alternatives, executionContext, parent, depth) : $super.z3c.call(this, alternatives, executionContext, parent, depth);
|
|
392
388
|
};
|
|
393
389
|
protoOf(Primitives).hashCode = function () {
|
|
394
|
-
var result = hashCode(this.
|
|
395
|
-
result = imul(result, 31) + (this.
|
|
396
|
-
result = imul(result, 31) + (this.
|
|
397
|
-
result = imul(result, 31) + this.
|
|
390
|
+
var result = hashCode(this.n3c_1);
|
|
391
|
+
result = imul(result, 31) + (this.o3c_1 == null ? 0 : this.o3c_1.hashCode()) | 0;
|
|
392
|
+
result = imul(result, 31) + (this.p3c_1 == null ? 0 : hashCode(this.p3c_1)) | 0;
|
|
393
|
+
result = imul(result, 31) + this.q3c_1 | 0;
|
|
398
394
|
return result;
|
|
399
395
|
};
|
|
400
396
|
protoOf(Primitives).equals = function (other) {
|
|
@@ -402,75 +398,75 @@
|
|
|
402
398
|
return true;
|
|
403
399
|
if (!(other instanceof Primitives))
|
|
404
400
|
return false;
|
|
405
|
-
if (!equals(this.
|
|
401
|
+
if (!equals(this.n3c_1, other.n3c_1))
|
|
406
402
|
return false;
|
|
407
|
-
if (!equals(this.
|
|
403
|
+
if (!equals(this.o3c_1, other.o3c_1))
|
|
408
404
|
return false;
|
|
409
|
-
if (!equals(this.
|
|
405
|
+
if (!equals(this.p3c_1, other.p3c_1))
|
|
410
406
|
return false;
|
|
411
|
-
if (!(this.
|
|
407
|
+
if (!(this.q3c_1 === other.q3c_1))
|
|
412
408
|
return false;
|
|
413
409
|
return true;
|
|
414
410
|
};
|
|
415
411
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
416
412
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
413
|
+
this.m3d_1 = alternatives;
|
|
414
|
+
this.n3d_1 = executionContext;
|
|
415
|
+
this.o3d_1 = parent;
|
|
416
|
+
this.p3d_1 = depth;
|
|
421
417
|
}
|
|
422
|
-
protoOf(Rules).
|
|
423
|
-
return this.
|
|
418
|
+
protoOf(Rules).r3c = function () {
|
|
419
|
+
return this.m3d_1;
|
|
424
420
|
};
|
|
425
|
-
protoOf(Rules).
|
|
426
|
-
return this.
|
|
421
|
+
protoOf(Rules).s3c = function () {
|
|
422
|
+
return this.n3d_1;
|
|
427
423
|
};
|
|
428
|
-
protoOf(Rules).
|
|
429
|
-
return this.
|
|
424
|
+
protoOf(Rules).t3c = function () {
|
|
425
|
+
return this.o3d_1;
|
|
430
426
|
};
|
|
431
|
-
protoOf(Rules).
|
|
432
|
-
return this.
|
|
427
|
+
protoOf(Rules).u3c = function () {
|
|
428
|
+
return this.p3d_1;
|
|
433
429
|
};
|
|
434
430
|
protoOf(Rules).toString = function () {
|
|
435
431
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
436
432
|
};
|
|
437
|
-
protoOf(Rules).
|
|
433
|
+
protoOf(Rules).v3c = function () {
|
|
438
434
|
return 'Rules';
|
|
439
435
|
};
|
|
440
|
-
protoOf(Rules).
|
|
441
|
-
var tmp0_$this = ensureNotNull(this.
|
|
442
|
-
var tmp1_rules = this.
|
|
436
|
+
protoOf(Rules).w3c = function (context) {
|
|
437
|
+
var tmp0_$this = ensureNotNull(this.n3d_1);
|
|
438
|
+
var tmp1_rules = this.m3d_1;
|
|
443
439
|
// Inline function 'kotlin.Long.plus' call
|
|
444
|
-
var this_0 = context.
|
|
440
|
+
var this_0 = context.a3c_1;
|
|
445
441
|
var tmp2_step = add(this_0, fromInt(1));
|
|
446
|
-
var tmp3_startTime = context.
|
|
447
|
-
var tmp4_flags = context.
|
|
448
|
-
var tmp5_dynamicKb = context.
|
|
449
|
-
var tmp6_staticKb = context.
|
|
450
|
-
var tmp7_operators = context.
|
|
451
|
-
var tmp8_inputChannels = context.
|
|
452
|
-
var tmp9_outputChannels = context.
|
|
453
|
-
var tmp10_libraries = context.
|
|
454
|
-
var tmp11_customData = context.
|
|
455
|
-
var tempContext = tmp0_$this.
|
|
456
|
-
var nextChoicePointContext = this.
|
|
457
|
-
return tempContext.
|
|
458
|
-
};
|
|
459
|
-
protoOf(Rules).
|
|
442
|
+
var tmp3_startTime = context.v3b_1;
|
|
443
|
+
var tmp4_flags = context.j3b_1;
|
|
444
|
+
var tmp5_dynamicKb = context.l3b_1;
|
|
445
|
+
var tmp6_staticKb = context.k3b_1;
|
|
446
|
+
var tmp7_operators = context.m3b_1;
|
|
447
|
+
var tmp8_inputChannels = context.n3b_1;
|
|
448
|
+
var tmp9_outputChannels = context.o3b_1;
|
|
449
|
+
var tmp10_libraries = context.i3b_1;
|
|
450
|
+
var tmp11_customData = context.p3b_1.discardEphemeral();
|
|
451
|
+
var tempContext = tmp0_$this.x3c(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);
|
|
452
|
+
var nextChoicePointContext = this.q3d(this.m3d_1.qr(), tempContext);
|
|
453
|
+
return tempContext.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
454
|
+
};
|
|
455
|
+
protoOf(Rules).r3d = function (alternatives, executionContext, parent, depth) {
|
|
460
456
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
461
457
|
};
|
|
462
|
-
protoOf(Rules).
|
|
463
|
-
alternatives = alternatives === VOID ? this.
|
|
464
|
-
executionContext = executionContext === VOID ? this.
|
|
465
|
-
parent = parent === VOID ? this.
|
|
466
|
-
depth = depth === VOID ? this.
|
|
467
|
-
return $super === VOID ? this.
|
|
458
|
+
protoOf(Rules).q3d = function (alternatives, executionContext, parent, depth, $super) {
|
|
459
|
+
alternatives = alternatives === VOID ? this.m3d_1 : alternatives;
|
|
460
|
+
executionContext = executionContext === VOID ? this.n3d_1 : executionContext;
|
|
461
|
+
parent = parent === VOID ? this.o3d_1 : parent;
|
|
462
|
+
depth = depth === VOID ? this.p3d_1 : depth;
|
|
463
|
+
return $super === VOID ? this.r3d(alternatives, executionContext, parent, depth) : $super.r3d.call(this, alternatives, executionContext, parent, depth);
|
|
468
464
|
};
|
|
469
465
|
protoOf(Rules).hashCode = function () {
|
|
470
|
-
var result = hashCode(this.
|
|
471
|
-
result = imul(result, 31) + (this.
|
|
472
|
-
result = imul(result, 31) + (this.
|
|
473
|
-
result = imul(result, 31) + this.
|
|
466
|
+
var result = hashCode(this.m3d_1);
|
|
467
|
+
result = imul(result, 31) + (this.n3d_1 == null ? 0 : this.n3d_1.hashCode()) | 0;
|
|
468
|
+
result = imul(result, 31) + (this.o3d_1 == null ? 0 : hashCode(this.o3d_1)) | 0;
|
|
469
|
+
result = imul(result, 31) + this.p3d_1 | 0;
|
|
474
470
|
return result;
|
|
475
471
|
};
|
|
476
472
|
protoOf(Rules).equals = function (other) {
|
|
@@ -478,28 +474,28 @@
|
|
|
478
474
|
return true;
|
|
479
475
|
if (!(other instanceof Rules))
|
|
480
476
|
return false;
|
|
481
|
-
if (!equals(this.
|
|
477
|
+
if (!equals(this.m3d_1, other.m3d_1))
|
|
482
478
|
return false;
|
|
483
|
-
if (!equals(this.
|
|
479
|
+
if (!equals(this.n3d_1, other.n3d_1))
|
|
484
480
|
return false;
|
|
485
|
-
if (!equals(this.
|
|
481
|
+
if (!equals(this.o3d_1, other.o3d_1))
|
|
486
482
|
return false;
|
|
487
|
-
if (!(this.
|
|
483
|
+
if (!(this.p3d_1 === other.p3d_1))
|
|
488
484
|
return false;
|
|
489
485
|
return true;
|
|
490
486
|
};
|
|
491
487
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
492
|
-
this.
|
|
488
|
+
this.a3e_1 = this$0;
|
|
493
489
|
CoroutineImpl.call(this, resultContinuation);
|
|
494
490
|
}
|
|
495
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
496
|
-
var tmp = this.
|
|
491
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).d3e = function ($this$sequence, $completion) {
|
|
492
|
+
var tmp = this.e3e($this$sequence, $completion);
|
|
497
493
|
tmp.r8_1 = Unit_instance;
|
|
498
494
|
tmp.s8_1 = null;
|
|
499
495
|
return tmp.x8();
|
|
500
496
|
};
|
|
501
497
|
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).o9 = function (p1, $completion) {
|
|
502
|
-
return this.
|
|
498
|
+
return this.d3e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
503
499
|
};
|
|
504
500
|
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).x8 = function () {
|
|
505
501
|
var suspendResult = this.r8_1;
|
|
@@ -509,24 +505,24 @@
|
|
|
509
505
|
switch (tmp) {
|
|
510
506
|
case 0:
|
|
511
507
|
this.q8_1 = 4;
|
|
512
|
-
this.
|
|
508
|
+
this.c3e_1 = this.a3e_1;
|
|
513
509
|
this.p8_1 = 1;
|
|
514
510
|
continue $sm;
|
|
515
511
|
case 1:
|
|
516
|
-
if (!!(this.
|
|
512
|
+
if (!!(this.c3e_1 == null)) {
|
|
517
513
|
this.p8_1 = 3;
|
|
518
514
|
continue $sm;
|
|
519
515
|
}
|
|
520
516
|
|
|
521
517
|
this.p8_1 = 2;
|
|
522
|
-
suspendResult = this.
|
|
518
|
+
suspendResult = this.b3e_1.se(ensureNotNull(this.c3e_1), this);
|
|
523
519
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
524
520
|
return suspendResult;
|
|
525
521
|
}
|
|
526
522
|
|
|
527
523
|
continue $sm;
|
|
528
524
|
case 2:
|
|
529
|
-
this.
|
|
525
|
+
this.c3e_1 = this.c3e_1.t3c();
|
|
530
526
|
this.p8_1 = 1;
|
|
531
527
|
continue $sm;
|
|
532
528
|
case 3:
|
|
@@ -545,45 +541,45 @@
|
|
|
545
541
|
}
|
|
546
542
|
while (true);
|
|
547
543
|
};
|
|
548
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
549
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
550
|
-
i.
|
|
544
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).e3e = function ($this$sequence, completion) {
|
|
545
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.a3e_1, completion);
|
|
546
|
+
i.b3e_1 = $this$sequence;
|
|
551
547
|
return i;
|
|
552
548
|
};
|
|
553
549
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
554
550
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
555
551
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
556
|
-
return i.
|
|
552
|
+
return i.d3e($this$sequence, $completion);
|
|
557
553
|
}, 1);
|
|
558
554
|
}
|
|
559
555
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
560
556
|
depth = depth === VOID ? 0 : depth;
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
557
|
+
this.a3d_1 = alternatives;
|
|
558
|
+
this.b3d_1 = executionContext;
|
|
559
|
+
this.c3d_1 = parent;
|
|
560
|
+
this.d3d_1 = depth;
|
|
565
561
|
}
|
|
566
|
-
protoOf(ChoicePointContext).
|
|
567
|
-
return this.
|
|
562
|
+
protoOf(ChoicePointContext).r3c = function () {
|
|
563
|
+
return this.a3d_1;
|
|
568
564
|
};
|
|
569
|
-
protoOf(ChoicePointContext).
|
|
570
|
-
return this.
|
|
565
|
+
protoOf(ChoicePointContext).s3c = function () {
|
|
566
|
+
return this.b3d_1;
|
|
571
567
|
};
|
|
572
|
-
protoOf(ChoicePointContext).
|
|
573
|
-
return this.
|
|
568
|
+
protoOf(ChoicePointContext).t3c = function () {
|
|
569
|
+
return this.c3d_1;
|
|
574
570
|
};
|
|
575
|
-
protoOf(ChoicePointContext).
|
|
576
|
-
return this.
|
|
571
|
+
protoOf(ChoicePointContext).u3c = function () {
|
|
572
|
+
return this.d3d_1;
|
|
577
573
|
};
|
|
578
|
-
protoOf(ChoicePointContext).
|
|
579
|
-
var tmp0 = this.
|
|
574
|
+
protoOf(ChoicePointContext).e3d = function () {
|
|
575
|
+
var tmp0 = this.f3d();
|
|
580
576
|
var tmp$ret$0;
|
|
581
577
|
$l$block: {
|
|
582
578
|
// Inline function 'kotlin.sequences.any' call
|
|
583
579
|
var _iterator__ex2g4s = tmp0.n();
|
|
584
580
|
while (_iterator__ex2g4s.q()) {
|
|
585
581
|
var element = _iterator__ex2g4s.r();
|
|
586
|
-
if (element.
|
|
582
|
+
if (element.r3c().sr()) {
|
|
587
583
|
tmp$ret$0 = true;
|
|
588
584
|
break $l$block;
|
|
589
585
|
}
|
|
@@ -592,34 +588,34 @@
|
|
|
592
588
|
}
|
|
593
589
|
return tmp$ret$0;
|
|
594
590
|
};
|
|
595
|
-
protoOf(ChoicePointContext).
|
|
591
|
+
protoOf(ChoicePointContext).f3d = function () {
|
|
596
592
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
597
593
|
};
|
|
598
|
-
protoOf(ChoicePointContext).
|
|
599
|
-
var tmp0_safe_receiver = this.
|
|
600
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
594
|
+
protoOf(ChoicePointContext).g3d = function () {
|
|
595
|
+
var tmp0_safe_receiver = this.s3c();
|
|
596
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z3b_1;
|
|
601
597
|
};
|
|
602
|
-
protoOf(ChoicePointContext).
|
|
603
|
-
var tmp0_safe_receiver = this.
|
|
604
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
598
|
+
protoOf(ChoicePointContext).h3d = function () {
|
|
599
|
+
var tmp0_safe_receiver = this.s3c();
|
|
600
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g3b_1;
|
|
605
601
|
};
|
|
606
602
|
protoOf(ChoicePointContext).toString = function () {
|
|
607
|
-
var tmp = this.
|
|
603
|
+
var tmp = this.v3c() + '(' + ('alternatives=' + toString(this.r3c()) + ', ');
|
|
608
604
|
var tmp_0;
|
|
609
|
-
if (this.
|
|
610
|
-
tmp_0 = 'executionContext=' + toString_0(this.
|
|
605
|
+
if (this.s3c() === null) {
|
|
606
|
+
tmp_0 = 'executionContext=' + toString_0(this.s3c()) + ', ';
|
|
611
607
|
} else {
|
|
612
|
-
'executionContextDepth=' + this.
|
|
613
|
-
tmp_0 = 'executionContextProcedure=' + toString_0(this.
|
|
608
|
+
'executionContextDepth=' + this.g3d() + ', ';
|
|
609
|
+
tmp_0 = 'executionContextProcedure=' + toString_0(this.h3d()) + ', ';
|
|
614
610
|
}
|
|
615
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
611
|
+
return tmp + tmp_0 + ('depth=' + this.u3c()) + ')';
|
|
616
612
|
};
|
|
617
613
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
618
614
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
619
615
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
620
616
|
}
|
|
621
617
|
function nextDepth(_this__u8e3s4) {
|
|
622
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
618
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.u3c() + 1 | 0;
|
|
623
619
|
}
|
|
624
620
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
625
621
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
@@ -661,183 +657,183 @@
|
|
|
661
657
|
}
|
|
662
658
|
function MutablePrologSolver$loadLibrary$lambda($library) {
|
|
663
659
|
return function ($this$updateContext) {
|
|
664
|
-
var newRuntime = $this$updateContext.
|
|
665
|
-
return $this$updateContext.
|
|
660
|
+
var newRuntime = $this$updateContext.i3b_1.plusLibrary($library);
|
|
661
|
+
return $this$updateContext.x3c(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.m3b_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
666
662
|
};
|
|
667
663
|
}
|
|
668
664
|
function MutablePrologSolver$unloadLibrary$lambda($library) {
|
|
669
665
|
return function ($this$updateContext) {
|
|
670
|
-
var newRuntime = $this$updateContext.
|
|
671
|
-
return $this$updateContext.
|
|
666
|
+
var newRuntime = $this$updateContext.i3b_1.minus($library);
|
|
667
|
+
return $this$updateContext.x3c(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.k3b_1, $this$updateContext.l3b_1])));
|
|
672
668
|
};
|
|
673
669
|
}
|
|
674
670
|
function MutablePrologSolver$setRuntime$lambda($libraries) {
|
|
675
671
|
return function ($this$updateContext) {
|
|
676
|
-
return $this$updateContext.
|
|
672
|
+
return $this$updateContext.x3c(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.k3b_1, $this$updateContext.l3b_1])));
|
|
677
673
|
};
|
|
678
674
|
}
|
|
679
675
|
function MutablePrologSolver$resetStaticKb$lambda($this$updateContext) {
|
|
680
|
-
return $this$updateContext.
|
|
676
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, Companion_instance_0.empty($this$updateContext.h3b_1), VOID, toOperatorSet(getAllOperators($this$updateContext.i3b_1, [$this$updateContext.l3b_1])));
|
|
681
677
|
}
|
|
682
678
|
function MutablePrologSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
683
|
-
return $this$updateContext.
|
|
679
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, Companion_instance_1.empty($this$updateContext.h3b_1), toOperatorSet(getAllOperators($this$updateContext.i3b_1, [$this$updateContext.k3b_1])));
|
|
684
680
|
}
|
|
685
681
|
function MutablePrologSolver$assertA$lambda($clause) {
|
|
686
682
|
return function ($this$updateContext) {
|
|
687
|
-
return $this$updateContext.
|
|
683
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $this$updateContext.l3b_1.a1v($clause), $this$updateContext.m3b_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
688
684
|
};
|
|
689
685
|
}
|
|
690
686
|
function MutablePrologSolver$assertA$lambda_0($fact) {
|
|
691
687
|
return function ($this$updateContext) {
|
|
692
|
-
return $this$updateContext.
|
|
688
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $this$updateContext.l3b_1.z1v($fact));
|
|
693
689
|
};
|
|
694
690
|
}
|
|
695
691
|
function MutablePrologSolver$assertZ$lambda($clause) {
|
|
696
692
|
return function ($this$updateContext) {
|
|
697
|
-
return $this$updateContext.
|
|
693
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $this$updateContext.l3b_1.e1v($clause), $this$updateContext.m3b_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
698
694
|
};
|
|
699
695
|
}
|
|
700
696
|
function MutablePrologSolver$assertZ$lambda_0($fact) {
|
|
701
697
|
return function ($this$updateContext) {
|
|
702
|
-
return $this$updateContext.
|
|
698
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $this$updateContext.l3b_1.a1w($fact));
|
|
703
699
|
};
|
|
704
700
|
}
|
|
705
701
|
function MutablePrologSolver$retract$lambda($result, $clause) {
|
|
706
702
|
return function ($this$updateContext) {
|
|
707
|
-
return $this$updateContext.
|
|
703
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $result.s1u().toMutableTheory(), $this$updateContext.m3b_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
708
704
|
};
|
|
709
705
|
}
|
|
710
706
|
function MutablePrologSolver$retract$lambda_0($result) {
|
|
711
707
|
return function ($this$updateContext) {
|
|
712
|
-
return $this$updateContext.
|
|
708
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $result.s1u().toMutableTheory());
|
|
713
709
|
};
|
|
714
710
|
}
|
|
715
711
|
function MutablePrologSolver$retractAll$lambda($result) {
|
|
716
712
|
return function ($this$updateContext) {
|
|
717
|
-
return $this$updateContext.
|
|
713
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $result.s1u().toMutableTheory(), $this$updateContext.m3b_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.s1u()))));
|
|
718
714
|
};
|
|
719
715
|
}
|
|
720
716
|
function MutablePrologSolver$retractAll$lambda_0($result) {
|
|
721
717
|
return function ($this$updateContext) {
|
|
722
|
-
return $this$updateContext.
|
|
718
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, $result.s1u().toMutableTheory());
|
|
723
719
|
};
|
|
724
720
|
}
|
|
725
721
|
function MutablePrologSolver$setFlag$lambda($name, $value) {
|
|
726
722
|
return function ($this$updateContext) {
|
|
727
|
-
return $this$updateContext.
|
|
723
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, $this$updateContext.j3b_1.set($name, $value));
|
|
728
724
|
};
|
|
729
725
|
}
|
|
730
726
|
function MutablePrologSolver$setFlag$lambda_0($flag) {
|
|
731
727
|
return function ($this$updateContext) {
|
|
732
|
-
return $this$updateContext.
|
|
728
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, $this$updateContext.j3b_1.plusPair($flag));
|
|
733
729
|
};
|
|
734
730
|
}
|
|
735
731
|
function MutablePrologSolver$setFlag$lambda_1($flag) {
|
|
736
732
|
return function ($this$updateContext) {
|
|
737
|
-
return $this$updateContext.
|
|
733
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, $this$updateContext.j3b_1.plusNotable($flag));
|
|
738
734
|
};
|
|
739
735
|
}
|
|
740
736
|
function MutablePrologSolver$setStandardInput$lambda($stdIn) {
|
|
741
737
|
return function ($this$updateContext) {
|
|
742
|
-
return $this$updateContext.
|
|
738
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.n3b_1.setStdIn($stdIn));
|
|
743
739
|
};
|
|
744
740
|
}
|
|
745
741
|
function MutablePrologSolver$setStandardError$lambda($stdErr) {
|
|
746
742
|
return function ($this$updateContext) {
|
|
747
|
-
return $this$updateContext.
|
|
743
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.o3b_1.setStdErr($stdErr));
|
|
748
744
|
};
|
|
749
745
|
}
|
|
750
746
|
function MutablePrologSolver$setStandardOutput$lambda($stdOut) {
|
|
751
747
|
return function ($this$updateContext) {
|
|
752
|
-
return $this$updateContext.
|
|
748
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.o3b_1.setStdOut($stdOut));
|
|
753
749
|
};
|
|
754
750
|
}
|
|
755
751
|
function MutablePrologSolver$setWarnings$lambda($warnings) {
|
|
756
752
|
return function ($this$updateContext) {
|
|
757
|
-
return $this$updateContext.
|
|
753
|
+
return $this$updateContext.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.o3b_1.setWarnings($warnings));
|
|
758
754
|
};
|
|
759
755
|
}
|
|
760
|
-
protoOf(MutablePrologSolver).
|
|
761
|
-
this.
|
|
756
|
+
protoOf(MutablePrologSolver).g3e = function (library) {
|
|
757
|
+
this.w2f(MutablePrologSolver$loadLibrary$lambda(library));
|
|
762
758
|
};
|
|
763
759
|
protoOf(MutablePrologSolver).loadLibrary = function (library) {
|
|
764
|
-
return this.
|
|
760
|
+
return this.g3e(library);
|
|
765
761
|
};
|
|
766
|
-
protoOf(MutablePrologSolver).
|
|
767
|
-
this.
|
|
762
|
+
protoOf(MutablePrologSolver).h3e = function (library) {
|
|
763
|
+
this.w2f(MutablePrologSolver$unloadLibrary$lambda(library));
|
|
768
764
|
};
|
|
769
765
|
protoOf(MutablePrologSolver).unloadLibrary = function (library) {
|
|
770
|
-
return this.
|
|
766
|
+
return this.h3e(library);
|
|
771
767
|
};
|
|
772
|
-
protoOf(MutablePrologSolver).
|
|
773
|
-
this.
|
|
768
|
+
protoOf(MutablePrologSolver).i3e = function (libraries) {
|
|
769
|
+
this.w2f(MutablePrologSolver$setRuntime$lambda(libraries));
|
|
774
770
|
};
|
|
775
771
|
protoOf(MutablePrologSolver).setLibraries = function (libraries) {
|
|
776
|
-
return this.
|
|
772
|
+
return this.i3e(libraries);
|
|
777
773
|
};
|
|
778
|
-
protoOf(MutablePrologSolver).
|
|
779
|
-
this.
|
|
774
|
+
protoOf(MutablePrologSolver).j3e = function (theory) {
|
|
775
|
+
this.a2g(theory, VOID, false);
|
|
780
776
|
};
|
|
781
777
|
protoOf(MutablePrologSolver).loadStaticKb = function (theory) {
|
|
782
|
-
return this.
|
|
778
|
+
return this.j3e(theory);
|
|
783
779
|
};
|
|
784
|
-
protoOf(MutablePrologSolver).
|
|
785
|
-
this.
|
|
780
|
+
protoOf(MutablePrologSolver).k3e = function (theory) {
|
|
781
|
+
this.a2g(theory);
|
|
786
782
|
};
|
|
787
783
|
protoOf(MutablePrologSolver).appendStaticKb = function (theory) {
|
|
788
|
-
return this.
|
|
784
|
+
return this.k3e(theory);
|
|
789
785
|
};
|
|
790
|
-
protoOf(MutablePrologSolver).
|
|
791
|
-
this.
|
|
786
|
+
protoOf(MutablePrologSolver).l3e = function () {
|
|
787
|
+
this.w2f(MutablePrologSolver$resetStaticKb$lambda);
|
|
792
788
|
};
|
|
793
789
|
protoOf(MutablePrologSolver).resetStaticKb = function () {
|
|
794
|
-
return this.
|
|
790
|
+
return this.l3e();
|
|
795
791
|
};
|
|
796
|
-
protoOf(MutablePrologSolver).
|
|
797
|
-
this.
|
|
792
|
+
protoOf(MutablePrologSolver).m3e = function (theory) {
|
|
793
|
+
this.a2g(VOID, theory, VOID, false);
|
|
798
794
|
};
|
|
799
795
|
protoOf(MutablePrologSolver).loadDynamicKb = function (theory) {
|
|
800
|
-
return this.
|
|
796
|
+
return this.m3e(theory);
|
|
801
797
|
};
|
|
802
|
-
protoOf(MutablePrologSolver).
|
|
803
|
-
this.
|
|
798
|
+
protoOf(MutablePrologSolver).n3e = function (theory) {
|
|
799
|
+
this.a2g(VOID, theory);
|
|
804
800
|
};
|
|
805
801
|
protoOf(MutablePrologSolver).appendDynamicKb = function (theory) {
|
|
806
|
-
return this.
|
|
802
|
+
return this.n3e(theory);
|
|
807
803
|
};
|
|
808
|
-
protoOf(MutablePrologSolver).
|
|
809
|
-
this.
|
|
804
|
+
protoOf(MutablePrologSolver).o3e = function () {
|
|
805
|
+
this.w2f(MutablePrologSolver$resetDynamicKb$lambda);
|
|
810
806
|
};
|
|
811
807
|
protoOf(MutablePrologSolver).resetDynamicKb = function () {
|
|
812
|
-
return this.
|
|
808
|
+
return this.o3e();
|
|
813
809
|
};
|
|
814
810
|
protoOf(MutablePrologSolver).h1p = function (clause) {
|
|
815
|
-
this.
|
|
811
|
+
this.w2f(MutablePrologSolver$assertA$lambda(clause));
|
|
816
812
|
};
|
|
817
813
|
protoOf(MutablePrologSolver).assertA = function (clause) {
|
|
818
814
|
return this.h1p(clause);
|
|
819
815
|
};
|
|
820
|
-
protoOf(MutablePrologSolver).
|
|
821
|
-
this.
|
|
816
|
+
protoOf(MutablePrologSolver).p3e = function (fact) {
|
|
817
|
+
this.w2f(MutablePrologSolver$assertA$lambda_0(fact));
|
|
822
818
|
};
|
|
823
819
|
protoOf(MutablePrologSolver).assertAFact = function (fact) {
|
|
824
|
-
return this.
|
|
820
|
+
return this.p3e(fact);
|
|
825
821
|
};
|
|
826
822
|
protoOf(MutablePrologSolver).i1o = function (clause) {
|
|
827
|
-
this.
|
|
823
|
+
this.w2f(MutablePrologSolver$assertZ$lambda(clause));
|
|
828
824
|
};
|
|
829
825
|
protoOf(MutablePrologSolver).assertZ = function (clause) {
|
|
830
826
|
return this.i1o(clause);
|
|
831
827
|
};
|
|
832
|
-
protoOf(MutablePrologSolver).
|
|
833
|
-
this.
|
|
828
|
+
protoOf(MutablePrologSolver).q3e = function (fact) {
|
|
829
|
+
this.w2f(MutablePrologSolver$assertZ$lambda_0(fact));
|
|
834
830
|
};
|
|
835
831
|
protoOf(MutablePrologSolver).assertZFact = function (fact) {
|
|
836
|
-
return this.
|
|
832
|
+
return this.q3e(fact);
|
|
837
833
|
};
|
|
838
834
|
protoOf(MutablePrologSolver).b1w = function (clause) {
|
|
839
835
|
var result = this.w1x().retract(clause);
|
|
840
|
-
this.
|
|
836
|
+
this.w2f(MutablePrologSolver$retract$lambda(result, clause));
|
|
841
837
|
return result;
|
|
842
838
|
};
|
|
843
839
|
protoOf(MutablePrologSolver).retract = function (clause) {
|
|
@@ -845,7 +841,7 @@
|
|
|
845
841
|
};
|
|
846
842
|
protoOf(MutablePrologSolver).c1w = function (fact) {
|
|
847
843
|
var result = this.w1x().retractByHead(fact);
|
|
848
|
-
this.
|
|
844
|
+
this.w2f(MutablePrologSolver$retract$lambda_0(result));
|
|
849
845
|
return result;
|
|
850
846
|
};
|
|
851
847
|
protoOf(MutablePrologSolver).retractByHead = function (fact) {
|
|
@@ -853,70 +849,67 @@
|
|
|
853
849
|
};
|
|
854
850
|
protoOf(MutablePrologSolver).n1o = function (clause) {
|
|
855
851
|
var result = this.w1x().retractAll(clause);
|
|
856
|
-
this.
|
|
852
|
+
this.w2f(MutablePrologSolver$retractAll$lambda(result));
|
|
857
853
|
return result;
|
|
858
854
|
};
|
|
859
855
|
protoOf(MutablePrologSolver).retractAll = function (clause) {
|
|
860
856
|
return this.n1o(clause);
|
|
861
857
|
};
|
|
862
|
-
protoOf(MutablePrologSolver).
|
|
858
|
+
protoOf(MutablePrologSolver).r3e = function (fact) {
|
|
863
859
|
var result = this.w1x().retractAllByHead(fact);
|
|
864
|
-
this.
|
|
860
|
+
this.w2f(MutablePrologSolver$retractAll$lambda_0(result));
|
|
865
861
|
return result;
|
|
866
862
|
};
|
|
867
863
|
protoOf(MutablePrologSolver).retractAllBeHead = function (fact) {
|
|
868
|
-
return this.
|
|
864
|
+
return this.r3e(fact);
|
|
869
865
|
};
|
|
870
|
-
protoOf(MutablePrologSolver).
|
|
871
|
-
this.
|
|
866
|
+
protoOf(MutablePrologSolver).s3e = function (name, value) {
|
|
867
|
+
this.w2f(MutablePrologSolver$setFlag$lambda(name, value));
|
|
872
868
|
};
|
|
873
869
|
protoOf(MutablePrologSolver).setFlag = function (name, value) {
|
|
874
|
-
return this.
|
|
870
|
+
return this.s3e(name, value);
|
|
875
871
|
};
|
|
876
|
-
protoOf(MutablePrologSolver).
|
|
877
|
-
this.
|
|
872
|
+
protoOf(MutablePrologSolver).t3e = function (flag) {
|
|
873
|
+
this.w2f(MutablePrologSolver$setFlag$lambda_0(flag));
|
|
878
874
|
};
|
|
879
875
|
protoOf(MutablePrologSolver).setFlagPair = function (flag) {
|
|
880
|
-
return this.
|
|
876
|
+
return this.t3e(flag);
|
|
881
877
|
};
|
|
882
|
-
protoOf(MutablePrologSolver).
|
|
883
|
-
this.
|
|
878
|
+
protoOf(MutablePrologSolver).u3e = function (flag) {
|
|
879
|
+
this.w2f(MutablePrologSolver$setFlag$lambda_1(flag));
|
|
884
880
|
};
|
|
885
881
|
protoOf(MutablePrologSolver).setFlagNotable = function (flag) {
|
|
886
|
-
return this.
|
|
882
|
+
return this.u3e(flag);
|
|
887
883
|
};
|
|
888
|
-
protoOf(MutablePrologSolver).
|
|
889
|
-
this.
|
|
884
|
+
protoOf(MutablePrologSolver).v3e = function (stdIn) {
|
|
885
|
+
this.w2f(MutablePrologSolver$setStandardInput$lambda(stdIn));
|
|
890
886
|
};
|
|
891
887
|
protoOf(MutablePrologSolver).setStandardInput = function (stdIn) {
|
|
892
|
-
return this.
|
|
888
|
+
return this.v3e(stdIn);
|
|
893
889
|
};
|
|
894
|
-
protoOf(MutablePrologSolver).
|
|
895
|
-
this.
|
|
890
|
+
protoOf(MutablePrologSolver).w3e = function (stdErr) {
|
|
891
|
+
this.w2f(MutablePrologSolver$setStandardError$lambda(stdErr));
|
|
896
892
|
};
|
|
897
893
|
protoOf(MutablePrologSolver).setStandardError = function (stdErr) {
|
|
898
|
-
return this.
|
|
894
|
+
return this.w3e(stdErr);
|
|
899
895
|
};
|
|
900
|
-
protoOf(MutablePrologSolver).
|
|
901
|
-
this.
|
|
896
|
+
protoOf(MutablePrologSolver).x3e = function (stdOut) {
|
|
897
|
+
this.w2f(MutablePrologSolver$setStandardOutput$lambda(stdOut));
|
|
902
898
|
};
|
|
903
899
|
protoOf(MutablePrologSolver).setStandardOutput = function (stdOut) {
|
|
904
|
-
return this.
|
|
900
|
+
return this.x3e(stdOut);
|
|
905
901
|
};
|
|
906
|
-
protoOf(MutablePrologSolver).
|
|
907
|
-
this.
|
|
902
|
+
protoOf(MutablePrologSolver).y3e = function (warnings) {
|
|
903
|
+
this.w2f(MutablePrologSolver$setWarnings$lambda(warnings));
|
|
908
904
|
};
|
|
909
905
|
protoOf(MutablePrologSolver).setWarnings = function (warnings) {
|
|
910
|
-
return this.
|
|
906
|
+
return this.y3e(warnings);
|
|
911
907
|
};
|
|
912
908
|
protoOf(MutablePrologSolver).a1z = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
913
909
|
return MutablePrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
914
910
|
};
|
|
915
|
-
protoOf(MutablePrologSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
916
|
-
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof MutablePrologSolver) ? $super : THROW_CCE());
|
|
917
|
-
};
|
|
918
911
|
protoOf(MutablePrologSolver).k1v = function () {
|
|
919
|
-
return this.
|
|
912
|
+
return this.b1z();
|
|
920
913
|
};
|
|
921
914
|
protoOf(MutablePrologSolver).clone = function () {
|
|
922
915
|
return this.k1v();
|
|
@@ -924,30 +917,30 @@
|
|
|
924
917
|
function MutablePrologSolver() {
|
|
925
918
|
}
|
|
926
919
|
function _get_locallyInterestingVariables__39cqti($this) {
|
|
927
|
-
var tmp = asSequence_0($this.
|
|
928
|
-
var tmp0_safe_receiver = $this.
|
|
929
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
920
|
+
var tmp = asSequence_0($this.b3c_1);
|
|
921
|
+
var tmp0_safe_receiver = $this.s3b_1.rr();
|
|
922
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zw();
|
|
930
923
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
931
924
|
}
|
|
932
925
|
function _get_interestingVariables__k6uw5o($this) {
|
|
933
|
-
var tmp0 = $this.
|
|
926
|
+
var tmp0 = $this.e3c_1;
|
|
934
927
|
var tmp = KProperty1;
|
|
935
928
|
// Inline function 'kotlin.getValue' call
|
|
936
929
|
getPropertyCallableRef('interestingVariables', 1, tmp, PrologExecutionContext$_get_interestingVariables_$ref_ycsjv3(), null);
|
|
937
930
|
return tmp0.f1();
|
|
938
931
|
}
|
|
939
932
|
function PrologExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
940
|
-
this.
|
|
933
|
+
this.i3f_1 = this$0;
|
|
941
934
|
CoroutineImpl.call(this, resultContinuation);
|
|
942
935
|
}
|
|
943
|
-
protoOf(PrologExecutionContext$pathToRoot$slambda).
|
|
944
|
-
var tmp = this.
|
|
936
|
+
protoOf(PrologExecutionContext$pathToRoot$slambda).l3f = function ($this$sequence, $completion) {
|
|
937
|
+
var tmp = this.m3f($this$sequence, $completion);
|
|
945
938
|
tmp.r8_1 = Unit_instance;
|
|
946
939
|
tmp.s8_1 = null;
|
|
947
940
|
return tmp.x8();
|
|
948
941
|
};
|
|
949
942
|
protoOf(PrologExecutionContext$pathToRoot$slambda).o9 = function (p1, $completion) {
|
|
950
|
-
return this.
|
|
943
|
+
return this.l3f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
951
944
|
};
|
|
952
945
|
protoOf(PrologExecutionContext$pathToRoot$slambda).x8 = function () {
|
|
953
946
|
var suspendResult = this.r8_1;
|
|
@@ -957,24 +950,24 @@
|
|
|
957
950
|
switch (tmp) {
|
|
958
951
|
case 0:
|
|
959
952
|
this.q8_1 = 4;
|
|
960
|
-
this.
|
|
953
|
+
this.k3f_1 = this.i3f_1;
|
|
961
954
|
this.p8_1 = 1;
|
|
962
955
|
continue $sm;
|
|
963
956
|
case 1:
|
|
964
|
-
if (!!(this.
|
|
957
|
+
if (!!(this.k3f_1 == null)) {
|
|
965
958
|
this.p8_1 = 3;
|
|
966
959
|
continue $sm;
|
|
967
960
|
}
|
|
968
961
|
|
|
969
962
|
this.p8_1 = 2;
|
|
970
|
-
suspendResult = this.
|
|
963
|
+
suspendResult = this.j3f_1.se(this.k3f_1, this);
|
|
971
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
972
965
|
return suspendResult;
|
|
973
966
|
}
|
|
974
967
|
|
|
975
968
|
continue $sm;
|
|
976
969
|
case 2:
|
|
977
|
-
this.
|
|
970
|
+
this.k3f_1 = this.k3f_1.y3b_1;
|
|
978
971
|
this.p8_1 = 1;
|
|
979
972
|
continue $sm;
|
|
980
973
|
case 3:
|
|
@@ -993,67 +986,67 @@
|
|
|
993
986
|
}
|
|
994
987
|
while (true);
|
|
995
988
|
};
|
|
996
|
-
protoOf(PrologExecutionContext$pathToRoot$slambda).
|
|
997
|
-
var i = new PrologExecutionContext$pathToRoot$slambda(this.
|
|
998
|
-
i.
|
|
989
|
+
protoOf(PrologExecutionContext$pathToRoot$slambda).m3f = function ($this$sequence, completion) {
|
|
990
|
+
var i = new PrologExecutionContext$pathToRoot$slambda(this.i3f_1, completion);
|
|
991
|
+
i.j3f_1 = $this$sequence;
|
|
999
992
|
return i;
|
|
1000
993
|
};
|
|
1001
994
|
function PrologExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
1002
995
|
var i = new PrologExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
1003
996
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
1004
|
-
return i.
|
|
997
|
+
return i.l3f($this$sequence, $completion);
|
|
1005
998
|
}, 1);
|
|
1006
999
|
}
|
|
1007
1000
|
function PrologExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
1008
1001
|
return function () {
|
|
1009
1002
|
var tmp;
|
|
1010
|
-
if (this$0.
|
|
1003
|
+
if (this$0.s3b_1.tr()) {
|
|
1011
1004
|
tmp = null;
|
|
1012
1005
|
} else {
|
|
1013
|
-
var tmp0_safe_receiver = this$0.
|
|
1014
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
1006
|
+
var tmp0_safe_receiver = this$0.s3b_1.rr();
|
|
1007
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.q3b_1);
|
|
1015
1008
|
}
|
|
1016
1009
|
return tmp;
|
|
1017
1010
|
};
|
|
1018
1011
|
}
|
|
1019
1012
|
function PrologExecutionContext$_get_currentGoal_$ref_g1xdum() {
|
|
1020
1013
|
return constructCallableReference(function (p0) {
|
|
1021
|
-
return p0.
|
|
1022
|
-
}, 1, 0,
|
|
1014
|
+
return p0.n3f();
|
|
1015
|
+
}, 1, 0, 88);
|
|
1023
1016
|
}
|
|
1024
1017
|
function PrologExecutionContext$interestingVariables$delegate$lambda$lambda(it) {
|
|
1025
1018
|
return _get_locallyInterestingVariables__39cqti(it);
|
|
1026
1019
|
}
|
|
1027
1020
|
function PrologExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
1028
1021
|
return function () {
|
|
1029
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
1030
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
1022
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.r3b_1.zw());
|
|
1023
|
+
return cached(distinct(plus(tmp, flatMap(this$0.c3c_1, PrologExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
1031
1024
|
};
|
|
1032
1025
|
}
|
|
1033
1026
|
function PrologExecutionContext$_get_interestingVariables_$ref_ycsjv3() {
|
|
1034
1027
|
return constructCallableReference(function (p0) {
|
|
1035
1028
|
return _get_interestingVariables__k6uw5o(p0);
|
|
1036
|
-
}, 1, 0,
|
|
1029
|
+
}, 1, 0, 89);
|
|
1037
1030
|
}
|
|
1038
1031
|
function PrologExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
1039
|
-
return it.
|
|
1032
|
+
return it.o3f();
|
|
1040
1033
|
}
|
|
1041
1034
|
function PrologExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
1042
1035
|
return function (it) {
|
|
1043
|
-
var tmp0_elvis_lhs = it.
|
|
1044
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.
|
|
1036
|
+
var tmp0_elvis_lhs = it.g3b_1;
|
|
1037
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.r3b_1]) : tmp0_elvis_lhs;
|
|
1045
1038
|
};
|
|
1046
1039
|
}
|
|
1047
1040
|
function PrologExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
1048
1041
|
return function () {
|
|
1049
|
-
var tmp = filter(this$0.
|
|
1042
|
+
var tmp = filter(this$0.c3c_1, PrologExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
1050
1043
|
return toList(map(tmp, PrologExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
1051
1044
|
};
|
|
1052
1045
|
}
|
|
1053
1046
|
function PrologExecutionContext$_get_logicStackTrace_$ref_jddlfz() {
|
|
1054
1047
|
return constructCallableReference(function (p0) {
|
|
1055
1048
|
return p0.q1x();
|
|
1056
|
-
}, 1, 0,
|
|
1049
|
+
}, 1, 0, 90);
|
|
1057
1050
|
}
|
|
1058
1051
|
function PrologExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
1059
1052
|
procedure = procedure === VOID ? null : procedure;
|
|
@@ -1067,7 +1060,7 @@
|
|
|
1067
1060
|
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
1068
1061
|
customData = customData === VOID ? Companion_instance_6.empty() : customData;
|
|
1069
1062
|
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
1070
|
-
query = query === VOID ? Companion_getInstance_3().
|
|
1063
|
+
query = query === VOID ? Companion_getInstance_3().ow_1 : query;
|
|
1071
1064
|
goals = goals === VOID ? Companion_instance_7.empty() : goals;
|
|
1072
1065
|
rules = rules === VOID ? Companion_instance_7.empty() : rules;
|
|
1073
1066
|
primitives = primitives === VOID ? Companion_instance_7.empty() : primitives;
|
|
@@ -1077,117 +1070,117 @@
|
|
|
1077
1070
|
depth = depth === VOID ? 0 : depth;
|
|
1078
1071
|
step = step === VOID ? 0n : step;
|
|
1079
1072
|
relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1084
|
-
this.
|
|
1085
|
-
this.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1090
|
-
this.
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1093
|
-
this.
|
|
1094
|
-
this.
|
|
1095
|
-
this.
|
|
1096
|
-
this.
|
|
1097
|
-
this.
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1100
|
-
this.
|
|
1101
|
-
this.
|
|
1073
|
+
this.g3b_1 = procedure;
|
|
1074
|
+
this.h3b_1 = unificator;
|
|
1075
|
+
this.i3b_1 = libraries;
|
|
1076
|
+
this.j3b_1 = flags;
|
|
1077
|
+
this.k3b_1 = staticKb;
|
|
1078
|
+
this.l3b_1 = dynamicKb;
|
|
1079
|
+
this.m3b_1 = operators;
|
|
1080
|
+
this.n3b_1 = inputChannels;
|
|
1081
|
+
this.o3b_1 = outputChannels;
|
|
1082
|
+
this.p3b_1 = customData;
|
|
1083
|
+
this.q3b_1 = substitution;
|
|
1084
|
+
this.r3b_1 = query;
|
|
1085
|
+
this.s3b_1 = goals;
|
|
1086
|
+
this.t3b_1 = rules;
|
|
1087
|
+
this.u3b_1 = primitives;
|
|
1088
|
+
this.v3b_1 = startTime;
|
|
1089
|
+
this.w3b_1 = maxDuration;
|
|
1090
|
+
this.x3b_1 = choicePoints;
|
|
1091
|
+
this.y3b_1 = parent;
|
|
1092
|
+
this.z3b_1 = depth;
|
|
1093
|
+
this.a3c_1 = step;
|
|
1094
|
+
this.b3c_1 = relevantVariables;
|
|
1102
1095
|
// Inline function 'kotlin.require' call
|
|
1103
1096
|
// Inline function 'kotlin.require' call
|
|
1104
|
-
if (!(this.
|
|
1097
|
+
if (!(this.z3b_1 === 0 && this.y3b_1 == null || (this.z3b_1 > 0 && !(this.y3b_1 == null)))) {
|
|
1105
1098
|
var message = 'Failed requirement.';
|
|
1106
1099
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1107
1100
|
}
|
|
1108
1101
|
// Inline function 'kotlin.require' call
|
|
1109
1102
|
// Inline function 'kotlin.require' call
|
|
1110
|
-
if (!(this.
|
|
1103
|
+
if (!(this.v3b_1 >= 0n)) {
|
|
1111
1104
|
var message_0 = 'Failed requirement.';
|
|
1112
1105
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1113
1106
|
}
|
|
1114
1107
|
// Inline function 'kotlin.require' call
|
|
1115
1108
|
// Inline function 'kotlin.require' call
|
|
1116
|
-
if (!(this.
|
|
1109
|
+
if (!(this.w3b_1 >= 0n)) {
|
|
1117
1110
|
var message_1 = 'Failed requirement.';
|
|
1118
1111
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1119
1112
|
}
|
|
1120
1113
|
var tmp = this;
|
|
1121
|
-
tmp.
|
|
1114
|
+
tmp.c3c_1 = sequence(PrologExecutionContext$pathToRoot$slambda_0(this, null));
|
|
1122
1115
|
var tmp_0 = this;
|
|
1123
|
-
tmp_0.
|
|
1116
|
+
tmp_0.d3c_1 = lazy(PrologExecutionContext$currentGoal$delegate$lambda(this));
|
|
1124
1117
|
var tmp_1 = this;
|
|
1125
|
-
tmp_1.
|
|
1118
|
+
tmp_1.e3c_1 = lazy(PrologExecutionContext$interestingVariables$delegate$lambda(this));
|
|
1126
1119
|
var tmp_2 = this;
|
|
1127
|
-
tmp_2.
|
|
1120
|
+
tmp_2.f3c_1 = lazy(PrologExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
1128
1121
|
}
|
|
1129
1122
|
protoOf(PrologExecutionContext).o1x = function () {
|
|
1130
|
-
return this.
|
|
1123
|
+
return this.g3b_1;
|
|
1131
1124
|
};
|
|
1132
1125
|
protoOf(PrologExecutionContext).v1n = function () {
|
|
1133
|
-
return this.
|
|
1126
|
+
return this.h3b_1;
|
|
1134
1127
|
};
|
|
1135
1128
|
protoOf(PrologExecutionContext).t1x = function () {
|
|
1136
|
-
return this.
|
|
1129
|
+
return this.i3b_1;
|
|
1137
1130
|
};
|
|
1138
1131
|
protoOf(PrologExecutionContext).u1x = function () {
|
|
1139
|
-
return this.
|
|
1132
|
+
return this.j3b_1;
|
|
1140
1133
|
};
|
|
1141
1134
|
protoOf(PrologExecutionContext).v1x = function () {
|
|
1142
|
-
return this.
|
|
1135
|
+
return this.k3b_1;
|
|
1143
1136
|
};
|
|
1144
1137
|
protoOf(PrologExecutionContext).w1x = function () {
|
|
1145
|
-
return this.
|
|
1138
|
+
return this.l3b_1;
|
|
1146
1139
|
};
|
|
1147
1140
|
protoOf(PrologExecutionContext).c1y = function () {
|
|
1148
|
-
return this.
|
|
1141
|
+
return this.m3b_1;
|
|
1149
1142
|
};
|
|
1150
1143
|
protoOf(PrologExecutionContext).x1x = function () {
|
|
1151
|
-
return this.
|
|
1144
|
+
return this.n3b_1;
|
|
1152
1145
|
};
|
|
1153
1146
|
protoOf(PrologExecutionContext).y1x = function () {
|
|
1154
|
-
return this.
|
|
1147
|
+
return this.o3b_1;
|
|
1155
1148
|
};
|
|
1156
1149
|
protoOf(PrologExecutionContext).r1x = function () {
|
|
1157
|
-
return this.
|
|
1150
|
+
return this.p3b_1;
|
|
1158
1151
|
};
|
|
1159
1152
|
protoOf(PrologExecutionContext).p1x = function () {
|
|
1160
|
-
return this.
|
|
1153
|
+
return this.q3b_1;
|
|
1161
1154
|
};
|
|
1162
1155
|
protoOf(PrologExecutionContext).j1x = function () {
|
|
1163
|
-
return this.
|
|
1156
|
+
return this.v3b_1;
|
|
1164
1157
|
};
|
|
1165
1158
|
protoOf(PrologExecutionContext).l1x = function () {
|
|
1166
|
-
return this.
|
|
1159
|
+
return this.w3b_1;
|
|
1167
1160
|
};
|
|
1168
|
-
protoOf(PrologExecutionContext).
|
|
1169
|
-
return this.
|
|
1161
|
+
protoOf(PrologExecutionContext).p3f = function () {
|
|
1162
|
+
return this.z3b_1 === 0;
|
|
1170
1163
|
};
|
|
1171
|
-
protoOf(PrologExecutionContext).
|
|
1172
|
-
var tmp0_safe_receiver = this.
|
|
1173
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1164
|
+
protoOf(PrologExecutionContext).e3d = function () {
|
|
1165
|
+
var tmp0_safe_receiver = this.x3b_1;
|
|
1166
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e3d();
|
|
1174
1167
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
1175
1168
|
};
|
|
1176
|
-
protoOf(PrologExecutionContext).
|
|
1177
|
-
return this.
|
|
1169
|
+
protoOf(PrologExecutionContext).o3f = function () {
|
|
1170
|
+
return this.y3b_1 == null || (this.z3b_1 - this.y3b_1.z3b_1 | 0) >= 1;
|
|
1178
1171
|
};
|
|
1179
|
-
protoOf(PrologExecutionContext).
|
|
1180
|
-
var tmp0 = this.
|
|
1172
|
+
protoOf(PrologExecutionContext).n3f = function () {
|
|
1173
|
+
var tmp0 = this.d3c_1;
|
|
1181
1174
|
var tmp = KProperty1;
|
|
1182
1175
|
// Inline function 'kotlin.getValue' call
|
|
1183
1176
|
getPropertyCallableRef('currentGoal', 1, tmp, PrologExecutionContext$_get_currentGoal_$ref_g1xdum(), null);
|
|
1184
1177
|
return tmp0.f1();
|
|
1185
1178
|
};
|
|
1186
|
-
protoOf(PrologExecutionContext).
|
|
1179
|
+
protoOf(PrologExecutionContext).q3f = function (variable) {
|
|
1187
1180
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
1188
1181
|
};
|
|
1189
1182
|
protoOf(PrologExecutionContext).q1x = function () {
|
|
1190
|
-
var tmp0 = this.
|
|
1183
|
+
var tmp0 = this.f3c_1;
|
|
1191
1184
|
var tmp = KProperty1;
|
|
1192
1185
|
// Inline function 'kotlin.getValue' call
|
|
1193
1186
|
getPropertyCallableRef('logicStackTrace', 1, tmp, PrologExecutionContext$_get_logicStackTrace_$ref_jddlfz(), null);
|
|
@@ -1206,86 +1199,86 @@
|
|
|
1206
1199
|
return this.createMutableSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof PrologExecutionContext) ? $super : THROW_CCE());
|
|
1207
1200
|
};
|
|
1208
1201
|
protoOf(PrologExecutionContext).b1y = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
1209
|
-
return this.
|
|
1202
|
+
return this.x3c(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
1210
1203
|
};
|
|
1211
1204
|
protoOf(PrologExecutionContext).update = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, $super) {
|
|
1212
1205
|
return this.update(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, ($super == null ? true : $super instanceof PrologExecutionContext) ? $super : THROW_CCE());
|
|
1213
1206
|
};
|
|
1214
|
-
protoOf(PrologExecutionContext).
|
|
1207
|
+
protoOf(PrologExecutionContext).r3f = function (sideEffect) {
|
|
1215
1208
|
var tmp = apply.call(this, sideEffect);
|
|
1216
1209
|
return tmp instanceof PrologExecutionContext ? tmp : THROW_CCE();
|
|
1217
1210
|
};
|
|
1218
1211
|
protoOf(PrologExecutionContext).apply = function (sideEffect) {
|
|
1219
|
-
return this.
|
|
1212
|
+
return this.r3f(sideEffect);
|
|
1220
1213
|
};
|
|
1221
|
-
protoOf(PrologExecutionContext).
|
|
1214
|
+
protoOf(PrologExecutionContext).s3f = function (sideEffects) {
|
|
1222
1215
|
var tmp = applyIterable.call(this, sideEffects);
|
|
1223
1216
|
return tmp instanceof PrologExecutionContext ? tmp : THROW_CCE();
|
|
1224
1217
|
};
|
|
1225
1218
|
protoOf(PrologExecutionContext).applyIterable = function (sideEffects) {
|
|
1226
|
-
return this.
|
|
1219
|
+
return this.s3f(sideEffects);
|
|
1227
1220
|
};
|
|
1228
|
-
protoOf(PrologExecutionContext).
|
|
1221
|
+
protoOf(PrologExecutionContext).t3f = function (sideEffects) {
|
|
1229
1222
|
var tmp = applySequence.call(this, sideEffects);
|
|
1230
1223
|
return tmp instanceof PrologExecutionContext ? tmp : THROW_CCE();
|
|
1231
1224
|
};
|
|
1232
1225
|
protoOf(PrologExecutionContext).applySequence = function (sideEffects) {
|
|
1233
|
-
return this.
|
|
1226
|
+
return this.t3f(sideEffects);
|
|
1234
1227
|
};
|
|
1235
1228
|
protoOf(PrologExecutionContext).toString = function () {
|
|
1236
|
-
return 'PrologExecutionContext(' + ('step=' + this.
|
|
1229
|
+
return 'PrologExecutionContext(' + ('step=' + this.a3c_1.toString() + ', ') + ('depth=' + this.z3b_1 + ', ') + ('substitution=' + toString(this.q3b_1) + ', ') + ('logicStackTrace=' + toString(this.q1x()) + ', ') + ('goals=' + toString(this.s3b_1) + ', ') + ('rules=' + toString(this.t3b_1) + ', ') + ('primitives=' + toString(this.u3b_1) + ', ') + ('startTime=' + this.v3b_1.toString() + ', ') + ('endTime=' + this.k1x().toString() + ', ') + ('maxDuration=' + this.w3b_1.toString() + ', ') + ('unificator=' + toString(this.h3b_1) + ', ') + ('choicePoints=' + toString_0(this.x3b_1)) + ')';
|
|
1237
1230
|
};
|
|
1238
|
-
protoOf(PrologExecutionContext).
|
|
1231
|
+
protoOf(PrologExecutionContext).u3f = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
1239
1232
|
return new PrologExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
1240
1233
|
};
|
|
1241
|
-
protoOf(PrologExecutionContext).
|
|
1242
|
-
procedure = procedure === VOID ? this.
|
|
1243
|
-
unificator = unificator === VOID ? this.
|
|
1244
|
-
libraries = libraries === VOID ? this.
|
|
1245
|
-
flags = flags === VOID ? this.
|
|
1246
|
-
staticKb = staticKb === VOID ? this.
|
|
1247
|
-
dynamicKb = dynamicKb === VOID ? this.
|
|
1248
|
-
operators = operators === VOID ? this.
|
|
1249
|
-
inputChannels = inputChannels === VOID ? this.
|
|
1250
|
-
outputChannels = outputChannels === VOID ? this.
|
|
1251
|
-
customData = customData === VOID ? this.
|
|
1252
|
-
substitution = substitution === VOID ? this.
|
|
1253
|
-
query = query === VOID ? this.
|
|
1254
|
-
goals = goals === VOID ? this.
|
|
1255
|
-
rules = rules === VOID ? this.
|
|
1256
|
-
primitives = primitives === VOID ? this.
|
|
1257
|
-
startTime = startTime === VOID ? this.
|
|
1258
|
-
maxDuration = maxDuration === VOID ? this.
|
|
1259
|
-
choicePoints = choicePoints === VOID ? this.
|
|
1260
|
-
parent = parent === VOID ? this.
|
|
1261
|
-
depth = depth === VOID ? this.
|
|
1262
|
-
step = step === VOID ? this.
|
|
1263
|
-
relevantVariables = relevantVariables === VOID ? this.
|
|
1264
|
-
return $super === VOID ? this.
|
|
1234
|
+
protoOf(PrologExecutionContext).x3c = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
1235
|
+
procedure = procedure === VOID ? this.g3b_1 : procedure;
|
|
1236
|
+
unificator = unificator === VOID ? this.h3b_1 : unificator;
|
|
1237
|
+
libraries = libraries === VOID ? this.i3b_1 : libraries;
|
|
1238
|
+
flags = flags === VOID ? this.j3b_1 : flags;
|
|
1239
|
+
staticKb = staticKb === VOID ? this.k3b_1 : staticKb;
|
|
1240
|
+
dynamicKb = dynamicKb === VOID ? this.l3b_1 : dynamicKb;
|
|
1241
|
+
operators = operators === VOID ? this.m3b_1 : operators;
|
|
1242
|
+
inputChannels = inputChannels === VOID ? this.n3b_1 : inputChannels;
|
|
1243
|
+
outputChannels = outputChannels === VOID ? this.o3b_1 : outputChannels;
|
|
1244
|
+
customData = customData === VOID ? this.p3b_1 : customData;
|
|
1245
|
+
substitution = substitution === VOID ? this.q3b_1 : substitution;
|
|
1246
|
+
query = query === VOID ? this.r3b_1 : query;
|
|
1247
|
+
goals = goals === VOID ? this.s3b_1 : goals;
|
|
1248
|
+
rules = rules === VOID ? this.t3b_1 : rules;
|
|
1249
|
+
primitives = primitives === VOID ? this.u3b_1 : primitives;
|
|
1250
|
+
startTime = startTime === VOID ? this.v3b_1 : startTime;
|
|
1251
|
+
maxDuration = maxDuration === VOID ? this.w3b_1 : maxDuration;
|
|
1252
|
+
choicePoints = choicePoints === VOID ? this.x3b_1 : choicePoints;
|
|
1253
|
+
parent = parent === VOID ? this.y3b_1 : parent;
|
|
1254
|
+
depth = depth === VOID ? this.z3b_1 : depth;
|
|
1255
|
+
step = step === VOID ? this.a3c_1 : step;
|
|
1256
|
+
relevantVariables = relevantVariables === VOID ? this.b3c_1 : relevantVariables;
|
|
1257
|
+
return $super === VOID ? this.u3f(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.u3f.call(this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
1265
1258
|
};
|
|
1266
1259
|
protoOf(PrologExecutionContext).hashCode = function () {
|
|
1267
|
-
var result = this.
|
|
1268
|
-
result = imul(result, 31) + hashCode(this.a3b_1) | 0;
|
|
1269
|
-
result = imul(result, 31) + hashCode(this.b3b_1) | 0;
|
|
1270
|
-
result = imul(result, 31) + this.c3b_1.hashCode() | 0;
|
|
1271
|
-
result = imul(result, 31) + hashCode(this.d3b_1) | 0;
|
|
1272
|
-
result = imul(result, 31) + hashCode(this.e3b_1) | 0;
|
|
1273
|
-
result = imul(result, 31) + this.f3b_1.hashCode() | 0;
|
|
1274
|
-
result = imul(result, 31) + hashCode(this.g3b_1) | 0;
|
|
1260
|
+
var result = this.g3b_1 == null ? 0 : this.g3b_1.hashCode();
|
|
1275
1261
|
result = imul(result, 31) + hashCode(this.h3b_1) | 0;
|
|
1276
|
-
result = imul(result, 31) + this.i3b_1
|
|
1277
|
-
result = imul(result, 31) +
|
|
1278
|
-
result = imul(result, 31) + this.k3b_1
|
|
1262
|
+
result = imul(result, 31) + hashCode(this.i3b_1) | 0;
|
|
1263
|
+
result = imul(result, 31) + this.j3b_1.hashCode() | 0;
|
|
1264
|
+
result = imul(result, 31) + hashCode(this.k3b_1) | 0;
|
|
1279
1265
|
result = imul(result, 31) + hashCode(this.l3b_1) | 0;
|
|
1280
|
-
result = imul(result, 31) +
|
|
1266
|
+
result = imul(result, 31) + this.m3b_1.hashCode() | 0;
|
|
1281
1267
|
result = imul(result, 31) + hashCode(this.n3b_1) | 0;
|
|
1282
|
-
result = imul(result, 31) +
|
|
1283
|
-
result = imul(result, 31) +
|
|
1284
|
-
result = imul(result, 31) +
|
|
1285
|
-
result = imul(result, 31) +
|
|
1286
|
-
result = imul(result, 31) + this.s3b_1 | 0;
|
|
1287
|
-
result = imul(result, 31) +
|
|
1268
|
+
result = imul(result, 31) + hashCode(this.o3b_1) | 0;
|
|
1269
|
+
result = imul(result, 31) + this.p3b_1.hashCode() | 0;
|
|
1270
|
+
result = imul(result, 31) + hashCode(this.q3b_1) | 0;
|
|
1271
|
+
result = imul(result, 31) + this.r3b_1.hashCode() | 0;
|
|
1272
|
+
result = imul(result, 31) + hashCode(this.s3b_1) | 0;
|
|
1273
|
+
result = imul(result, 31) + hashCode(this.t3b_1) | 0;
|
|
1288
1274
|
result = imul(result, 31) + hashCode(this.u3b_1) | 0;
|
|
1275
|
+
result = imul(result, 31) + getBigIntHashCode(this.v3b_1) | 0;
|
|
1276
|
+
result = imul(result, 31) + getBigIntHashCode(this.w3b_1) | 0;
|
|
1277
|
+
result = imul(result, 31) + (this.x3b_1 == null ? 0 : hashCode(this.x3b_1)) | 0;
|
|
1278
|
+
result = imul(result, 31) + (this.y3b_1 == null ? 0 : this.y3b_1.hashCode()) | 0;
|
|
1279
|
+
result = imul(result, 31) + this.z3b_1 | 0;
|
|
1280
|
+
result = imul(result, 31) + getBigIntHashCode(this.a3c_1) | 0;
|
|
1281
|
+
result = imul(result, 31) + hashCode(this.b3c_1) | 0;
|
|
1289
1282
|
return result;
|
|
1290
1283
|
};
|
|
1291
1284
|
protoOf(PrologExecutionContext).equals = function (other) {
|
|
@@ -1293,49 +1286,49 @@
|
|
|
1293
1286
|
return true;
|
|
1294
1287
|
if (!(other instanceof PrologExecutionContext))
|
|
1295
1288
|
return false;
|
|
1296
|
-
if (!equals(this.
|
|
1289
|
+
if (!equals(this.g3b_1, other.g3b_1))
|
|
1297
1290
|
return false;
|
|
1298
|
-
if (!equals(this.
|
|
1291
|
+
if (!equals(this.h3b_1, other.h3b_1))
|
|
1299
1292
|
return false;
|
|
1300
|
-
if (!equals(this.
|
|
1293
|
+
if (!equals(this.i3b_1, other.i3b_1))
|
|
1301
1294
|
return false;
|
|
1302
|
-
if (!this.
|
|
1295
|
+
if (!this.j3b_1.equals(other.j3b_1))
|
|
1303
1296
|
return false;
|
|
1304
|
-
if (!equals(this.
|
|
1297
|
+
if (!equals(this.k3b_1, other.k3b_1))
|
|
1305
1298
|
return false;
|
|
1306
|
-
if (!equals(this.
|
|
1299
|
+
if (!equals(this.l3b_1, other.l3b_1))
|
|
1307
1300
|
return false;
|
|
1308
|
-
if (!this.
|
|
1301
|
+
if (!this.m3b_1.equals(other.m3b_1))
|
|
1309
1302
|
return false;
|
|
1310
|
-
if (!equals(this.
|
|
1303
|
+
if (!equals(this.n3b_1, other.n3b_1))
|
|
1311
1304
|
return false;
|
|
1312
|
-
if (!equals(this.
|
|
1305
|
+
if (!equals(this.o3b_1, other.o3b_1))
|
|
1313
1306
|
return false;
|
|
1314
|
-
if (!this.
|
|
1307
|
+
if (!this.p3b_1.equals(other.p3b_1))
|
|
1315
1308
|
return false;
|
|
1316
|
-
if (!equals(this.
|
|
1309
|
+
if (!equals(this.q3b_1, other.q3b_1))
|
|
1317
1310
|
return false;
|
|
1318
|
-
if (!this.
|
|
1311
|
+
if (!this.r3b_1.equals(other.r3b_1))
|
|
1319
1312
|
return false;
|
|
1320
|
-
if (!equals(this.
|
|
1313
|
+
if (!equals(this.s3b_1, other.s3b_1))
|
|
1321
1314
|
return false;
|
|
1322
|
-
if (!equals(this.
|
|
1315
|
+
if (!equals(this.t3b_1, other.t3b_1))
|
|
1323
1316
|
return false;
|
|
1324
|
-
if (!equals(this.
|
|
1317
|
+
if (!equals(this.u3b_1, other.u3b_1))
|
|
1325
1318
|
return false;
|
|
1326
|
-
if (!(this.
|
|
1319
|
+
if (!(this.v3b_1 === other.v3b_1))
|
|
1327
1320
|
return false;
|
|
1328
|
-
if (!(this.
|
|
1321
|
+
if (!(this.w3b_1 === other.w3b_1))
|
|
1329
1322
|
return false;
|
|
1330
|
-
if (!equals(this.
|
|
1323
|
+
if (!equals(this.x3b_1, other.x3b_1))
|
|
1331
1324
|
return false;
|
|
1332
|
-
if (!equals(this.
|
|
1325
|
+
if (!equals(this.y3b_1, other.y3b_1))
|
|
1333
1326
|
return false;
|
|
1334
|
-
if (!(this.
|
|
1327
|
+
if (!(this.z3b_1 === other.z3b_1))
|
|
1335
1328
|
return false;
|
|
1336
|
-
if (!(this.
|
|
1329
|
+
if (!(this.a3c_1 === other.a3c_1))
|
|
1337
1330
|
return false;
|
|
1338
|
-
if (!equals(this.
|
|
1331
|
+
if (!equals(this.b3c_1, other.b3c_1))
|
|
1339
1332
|
return false;
|
|
1340
1333
|
return true;
|
|
1341
1334
|
};
|
|
@@ -1373,17 +1366,14 @@
|
|
|
1373
1366
|
function PrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1374
1367
|
return PrologSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(PrologSolver)));
|
|
1375
1368
|
}
|
|
1376
|
-
protoOf(PrologSolver).
|
|
1377
|
-
return Companion_instance_15.
|
|
1369
|
+
protoOf(PrologSolver).i3c = function (initialState, onStateTransition) {
|
|
1370
|
+
return Companion_instance_15.v3f(initialState, onStateTransition);
|
|
1378
1371
|
};
|
|
1379
1372
|
protoOf(PrologSolver).a1z = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1380
1373
|
return PrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1381
1374
|
};
|
|
1382
|
-
protoOf(PrologSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1383
|
-
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologSolver) ? $super : THROW_CCE());
|
|
1384
|
-
};
|
|
1385
1375
|
protoOf(PrologSolver).k1v = function () {
|
|
1386
|
-
return this.
|
|
1376
|
+
return this.b1z();
|
|
1387
1377
|
};
|
|
1388
1378
|
protoOf(PrologSolver).clone = function () {
|
|
1389
1379
|
return this.k1v();
|
|
@@ -1392,28 +1382,28 @@
|
|
|
1392
1382
|
}
|
|
1393
1383
|
function PrologSolverFactory() {
|
|
1394
1384
|
}
|
|
1395
|
-
protoOf(PrologSolverFactory).
|
|
1385
|
+
protoOf(PrologSolverFactory).c21 = function () {
|
|
1396
1386
|
return DefaultBuiltins_getInstance();
|
|
1397
1387
|
};
|
|
1398
|
-
protoOf(PrologSolverFactory).
|
|
1388
|
+
protoOf(PrologSolverFactory).n21 = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1399
1389
|
return PrologSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1400
1390
|
};
|
|
1401
1391
|
protoOf(PrologSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
1402
1392
|
return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof PrologSolverFactory) ? $super : THROW_CCE());
|
|
1403
1393
|
};
|
|
1404
|
-
protoOf(PrologSolverFactory).
|
|
1394
|
+
protoOf(PrologSolverFactory).t21 = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1405
1395
|
return PrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1406
1396
|
};
|
|
1407
1397
|
protoOf(PrologSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1408
1398
|
return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologSolverFactory) ? $super : THROW_CCE());
|
|
1409
1399
|
};
|
|
1410
|
-
protoOf(PrologSolverFactory).
|
|
1400
|
+
protoOf(PrologSolverFactory).v21 = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1411
1401
|
return MutablePrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1412
1402
|
};
|
|
1413
1403
|
protoOf(PrologSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1414
1404
|
return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologSolverFactory) ? $super : THROW_CCE());
|
|
1415
1405
|
};
|
|
1416
|
-
protoOf(PrologSolverFactory).
|
|
1406
|
+
protoOf(PrologSolverFactory).x21 = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1417
1407
|
return MutablePrologSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1418
1408
|
};
|
|
1419
1409
|
protoOf(PrologSolverFactory).rawMutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
@@ -1428,7 +1418,7 @@
|
|
|
1428
1418
|
}
|
|
1429
1419
|
function Companion() {
|
|
1430
1420
|
}
|
|
1431
|
-
protoOf(Companion).
|
|
1421
|
+
protoOf(Companion).v3f = function (initialState, onStateTransition) {
|
|
1432
1422
|
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1433
1423
|
};
|
|
1434
1424
|
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
@@ -1439,7 +1429,7 @@
|
|
|
1439
1429
|
tmp = onStateTransition;
|
|
1440
1430
|
}
|
|
1441
1431
|
onStateTransition = tmp;
|
|
1442
|
-
return $super === VOID ? this.
|
|
1432
|
+
return $super === VOID ? this.v3f(initialState, onStateTransition) : $super.v3f.call(this, initialState, onStateTransition);
|
|
1443
1433
|
};
|
|
1444
1434
|
var Companion_instance_15;
|
|
1445
1435
|
function Companion_getInstance_5() {
|
|
@@ -1447,81 +1437,81 @@
|
|
|
1447
1437
|
}
|
|
1448
1438
|
function AbstractEndState(solution, context) {
|
|
1449
1439
|
AbstractState.call(this, context);
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1440
|
+
this.y3f_1 = solution;
|
|
1441
|
+
this.z3f_1 = context;
|
|
1452
1442
|
}
|
|
1453
|
-
protoOf(AbstractEndState).
|
|
1454
|
-
return this.
|
|
1443
|
+
protoOf(AbstractEndState).r2n = function () {
|
|
1444
|
+
return this.y3f_1;
|
|
1455
1445
|
};
|
|
1456
1446
|
protoOf(AbstractEndState).v8 = function () {
|
|
1457
|
-
return this.
|
|
1447
|
+
return this.z3f_1;
|
|
1458
1448
|
};
|
|
1459
|
-
protoOf(AbstractEndState).
|
|
1449
|
+
protoOf(AbstractEndState).a3g = function () {
|
|
1460
1450
|
throw NoSuchElementException_init_$Create$();
|
|
1461
1451
|
};
|
|
1462
1452
|
protoOf(AbstractEndState).asEndState = function () {
|
|
1463
|
-
return this.
|
|
1453
|
+
return this.i3g();
|
|
1464
1454
|
};
|
|
1465
1455
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1466
1456
|
return function () {
|
|
1467
|
-
return this$0.
|
|
1457
|
+
return this$0.f3g();
|
|
1468
1458
|
};
|
|
1469
1459
|
}
|
|
1470
1460
|
function AbstractState$_get_executionTime_$ref_gwd5wm() {
|
|
1471
1461
|
return constructCallableReference(function (p0) {
|
|
1472
|
-
return p0.
|
|
1473
|
-
}, 1, 0,
|
|
1462
|
+
return p0.d3g();
|
|
1463
|
+
}, 1, 0, 91);
|
|
1474
1464
|
}
|
|
1475
1465
|
function AbstractState(context) {
|
|
1476
|
-
this.
|
|
1466
|
+
this.b3g_1 = context;
|
|
1477
1467
|
var tmp = this;
|
|
1478
|
-
tmp.
|
|
1468
|
+
tmp.c3g_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1479
1469
|
}
|
|
1480
1470
|
protoOf(AbstractState).v8 = function () {
|
|
1481
|
-
return this.
|
|
1471
|
+
return this.b3g_1;
|
|
1482
1472
|
};
|
|
1483
|
-
protoOf(AbstractState).
|
|
1484
|
-
var tmp0 = this.
|
|
1473
|
+
protoOf(AbstractState).d3g = function () {
|
|
1474
|
+
var tmp0 = this.c3g_1;
|
|
1485
1475
|
var tmp = KProperty1;
|
|
1486
1476
|
// Inline function 'kotlin.getValue' call
|
|
1487
1477
|
getPropertyCallableRef('executionTime', 1, tmp, AbstractState$_get_executionTime_$ref_gwd5wm(), null);
|
|
1488
1478
|
return tmp0.f1();
|
|
1489
1479
|
};
|
|
1490
|
-
protoOf(AbstractState).
|
|
1491
|
-
return subtract(this.
|
|
1480
|
+
protoOf(AbstractState).e3g = function () {
|
|
1481
|
+
return subtract(this.d3g(), this.v8().v3b_1) > this.v8().w3b_1;
|
|
1492
1482
|
};
|
|
1493
1483
|
protoOf(AbstractState).r = function () {
|
|
1494
1484
|
var tmp;
|
|
1495
|
-
if (this.
|
|
1496
|
-
var tmp0_exceededDuration = this.v8().
|
|
1485
|
+
if (this.e3g()) {
|
|
1486
|
+
var tmp0_exceededDuration = this.v8().w3b_1;
|
|
1497
1487
|
var tmp1_context = this.v8();
|
|
1498
|
-
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.v8().
|
|
1488
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.v8().x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g()));
|
|
1499
1489
|
} else {
|
|
1500
|
-
tmp = this.
|
|
1490
|
+
tmp = this.a3g();
|
|
1501
1491
|
}
|
|
1502
1492
|
return tmp;
|
|
1503
1493
|
};
|
|
1504
1494
|
protoOf(AbstractState).next = function () {
|
|
1505
1495
|
return this.r();
|
|
1506
1496
|
};
|
|
1507
|
-
protoOf(AbstractState).
|
|
1497
|
+
protoOf(AbstractState).f3g = function () {
|
|
1508
1498
|
return currentTimeInstant();
|
|
1509
1499
|
};
|
|
1510
|
-
protoOf(AbstractState).
|
|
1500
|
+
protoOf(AbstractState).g3g = function () {
|
|
1511
1501
|
// Inline function 'kotlin.Long.plus' call
|
|
1512
|
-
var this_0 = this.v8().
|
|
1502
|
+
var this_0 = this.v8().a3c_1;
|
|
1513
1503
|
return add(this_0, fromInt(1));
|
|
1514
1504
|
};
|
|
1515
|
-
protoOf(AbstractState).
|
|
1516
|
-
var tmp0 = _this__u8e3s4.
|
|
1505
|
+
protoOf(AbstractState).k3g = function (_this__u8e3s4) {
|
|
1506
|
+
var tmp0 = _this__u8e3s4.c3c_1;
|
|
1517
1507
|
var tmp$ret$0;
|
|
1518
1508
|
$l$block: {
|
|
1519
1509
|
// Inline function 'kotlin.sequences.first' call
|
|
1520
1510
|
var _iterator__ex2g4s = tmp0.n();
|
|
1521
1511
|
while (_iterator__ex2g4s.q()) {
|
|
1522
1512
|
var element = _iterator__ex2g4s.r();
|
|
1523
|
-
var tmp0_safe_receiver = element.
|
|
1524
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1513
|
+
var tmp0_safe_receiver = element.g3b_1;
|
|
1514
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xw();
|
|
1525
1515
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1526
1516
|
if (!(tmp === Throw_getInstance().signature.name)) {
|
|
1527
1517
|
tmp$ret$0 = element;
|
|
@@ -1538,26 +1528,26 @@
|
|
|
1538
1528
|
}
|
|
1539
1529
|
function StateBacktracking(context) {
|
|
1540
1530
|
AbstractState.call(this, context);
|
|
1541
|
-
this.
|
|
1531
|
+
this.n3g_1 = context;
|
|
1542
1532
|
}
|
|
1543
1533
|
protoOf(StateBacktracking).v8 = function () {
|
|
1544
|
-
return this.
|
|
1534
|
+
return this.n3g_1;
|
|
1545
1535
|
};
|
|
1546
|
-
protoOf(StateBacktracking).
|
|
1547
|
-
var choicePoints = this.
|
|
1536
|
+
protoOf(StateBacktracking).a3g = function () {
|
|
1537
|
+
var choicePoints = this.n3g_1.x3b_1;
|
|
1548
1538
|
var tmp;
|
|
1549
1539
|
// Inline function 'kotlin.let' call
|
|
1550
|
-
if (choicePoints === null || !choicePoints.
|
|
1551
|
-
tmp = new StateEnd(Companion_instance_8.no(this.
|
|
1540
|
+
if (choicePoints === null || !choicePoints.e3d()) {
|
|
1541
|
+
tmp = new StateEnd(Companion_instance_8.no(this.n3g_1.r3b_1), this.n3g_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g()));
|
|
1552
1542
|
} else {
|
|
1553
|
-
var tmp0 = ensureNotNull(choicePoints).
|
|
1543
|
+
var tmp0 = ensureNotNull(choicePoints).f3d();
|
|
1554
1544
|
var tmp$ret$2;
|
|
1555
1545
|
$l$block: {
|
|
1556
1546
|
// Inline function 'kotlin.sequences.first' call
|
|
1557
1547
|
var _iterator__ex2g4s = tmp0.n();
|
|
1558
1548
|
while (_iterator__ex2g4s.q()) {
|
|
1559
1549
|
var element = _iterator__ex2g4s.r();
|
|
1560
|
-
if (element.
|
|
1550
|
+
if (element.r3c().sr()) {
|
|
1561
1551
|
tmp$ret$2 = element;
|
|
1562
1552
|
break $l$block;
|
|
1563
1553
|
}
|
|
@@ -1565,9 +1555,9 @@
|
|
|
1565
1555
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1566
1556
|
}
|
|
1567
1557
|
var choicePointContext = tmp$ret$2;
|
|
1568
|
-
var nextContext = choicePointContext.
|
|
1558
|
+
var nextContext = choicePointContext.w3c(this.n3g_1);
|
|
1569
1559
|
var tmp_0;
|
|
1570
|
-
if (nextContext.
|
|
1560
|
+
if (nextContext.u3b_1.sr()) {
|
|
1571
1561
|
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1572
1562
|
} else {
|
|
1573
1563
|
tmp_0 = new StateRuleExecution(nextContext);
|
|
@@ -1576,71 +1566,71 @@
|
|
|
1576
1566
|
}
|
|
1577
1567
|
return tmp;
|
|
1578
1568
|
};
|
|
1579
|
-
protoOf(StateBacktracking).
|
|
1580
|
-
return this.
|
|
1569
|
+
protoOf(StateBacktracking).j3g = function (context) {
|
|
1570
|
+
return this.o3g(context);
|
|
1581
1571
|
};
|
|
1582
1572
|
protoOf(StateBacktracking).clone = function (context, $super) {
|
|
1583
1573
|
return this.clone(context, ($super == null ? true : $super instanceof StateBacktracking) ? $super : THROW_CCE());
|
|
1584
1574
|
};
|
|
1585
|
-
protoOf(StateBacktracking).
|
|
1575
|
+
protoOf(StateBacktracking).o3g = function (context) {
|
|
1586
1576
|
return new StateBacktracking(context);
|
|
1587
1577
|
};
|
|
1588
1578
|
protoOf(StateBacktracking).toString = function () {
|
|
1589
|
-
return 'StateBacktracking(context=' + this.
|
|
1579
|
+
return 'StateBacktracking(context=' + this.n3g_1.toString() + ')';
|
|
1590
1580
|
};
|
|
1591
1581
|
protoOf(StateBacktracking).hashCode = function () {
|
|
1592
|
-
return this.
|
|
1582
|
+
return this.n3g_1.hashCode();
|
|
1593
1583
|
};
|
|
1594
1584
|
protoOf(StateBacktracking).equals = function (other) {
|
|
1595
1585
|
if (this === other)
|
|
1596
1586
|
return true;
|
|
1597
1587
|
if (!(other instanceof StateBacktracking))
|
|
1598
1588
|
return false;
|
|
1599
|
-
if (!this.
|
|
1589
|
+
if (!this.n3g_1.equals(other.n3g_1))
|
|
1600
1590
|
return false;
|
|
1601
1591
|
return true;
|
|
1602
1592
|
};
|
|
1603
1593
|
function StateEnd(solution, context) {
|
|
1604
1594
|
AbstractEndState.call(this, solution, context);
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1595
|
+
this.t3g_1 = solution;
|
|
1596
|
+
this.u3g_1 = context;
|
|
1607
1597
|
}
|
|
1608
|
-
protoOf(StateEnd).
|
|
1609
|
-
return this.
|
|
1598
|
+
protoOf(StateEnd).r2n = function () {
|
|
1599
|
+
return this.t3g_1;
|
|
1610
1600
|
};
|
|
1611
1601
|
protoOf(StateEnd).v8 = function () {
|
|
1612
|
-
return this.
|
|
1602
|
+
return this.u3g_1;
|
|
1613
1603
|
};
|
|
1614
|
-
protoOf(StateEnd).
|
|
1604
|
+
protoOf(StateEnd).e3g = function () {
|
|
1615
1605
|
return false;
|
|
1616
1606
|
};
|
|
1617
|
-
protoOf(StateEnd).
|
|
1607
|
+
protoOf(StateEnd).a3g = function () {
|
|
1618
1608
|
var tmp;
|
|
1619
|
-
if (this.
|
|
1620
|
-
var tmp0_$this = this.
|
|
1621
|
-
var tmp1_step = this.
|
|
1622
|
-
var tmp2_startTime = this.
|
|
1623
|
-
tmp = new StateBacktracking(tmp0_$this.
|
|
1609
|
+
if (this.u3g_1.e3d()) {
|
|
1610
|
+
var tmp0_$this = this.u3g_1;
|
|
1611
|
+
var tmp1_step = this.g3g();
|
|
1612
|
+
var tmp2_startTime = this.f3g();
|
|
1613
|
+
tmp = new StateBacktracking(tmp0_$this.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1624
1614
|
} else {
|
|
1625
|
-
tmp = protoOf(AbstractEndState).
|
|
1615
|
+
tmp = protoOf(AbstractEndState).a3g.call(this);
|
|
1626
1616
|
}
|
|
1627
1617
|
return tmp;
|
|
1628
1618
|
};
|
|
1629
|
-
protoOf(StateEnd).
|
|
1630
|
-
return this.
|
|
1619
|
+
protoOf(StateEnd).j3g = function (context) {
|
|
1620
|
+
return this.v3g(this.t3g_1, context);
|
|
1631
1621
|
};
|
|
1632
1622
|
protoOf(StateEnd).clone = function (context, $super) {
|
|
1633
1623
|
return this.clone(context, ($super == null ? true : $super instanceof StateEnd) ? $super : THROW_CCE());
|
|
1634
1624
|
};
|
|
1635
|
-
protoOf(StateEnd).
|
|
1625
|
+
protoOf(StateEnd).v3g = function (solution, context) {
|
|
1636
1626
|
return new StateEnd(solution, context);
|
|
1637
1627
|
};
|
|
1638
1628
|
protoOf(StateEnd).toString = function () {
|
|
1639
|
-
return 'StateEnd(solution=' + toString(this.
|
|
1629
|
+
return 'StateEnd(solution=' + toString(this.t3g_1) + ', context=' + this.u3g_1.toString() + ')';
|
|
1640
1630
|
};
|
|
1641
1631
|
protoOf(StateEnd).hashCode = function () {
|
|
1642
|
-
var result = hashCode(this.
|
|
1643
|
-
result = imul(result, 31) + this.
|
|
1632
|
+
var result = hashCode(this.t3g_1);
|
|
1633
|
+
result = imul(result, 31) + this.u3g_1.hashCode() | 0;
|
|
1644
1634
|
return result;
|
|
1645
1635
|
};
|
|
1646
1636
|
protoOf(StateEnd).equals = function (other) {
|
|
@@ -1648,19 +1638,19 @@
|
|
|
1648
1638
|
return true;
|
|
1649
1639
|
if (!(other instanceof StateEnd))
|
|
1650
1640
|
return false;
|
|
1651
|
-
if (!equals(this.
|
|
1641
|
+
if (!equals(this.t3g_1, other.t3g_1))
|
|
1652
1642
|
return false;
|
|
1653
|
-
if (!this.
|
|
1643
|
+
if (!this.u3g_1.equals(other.u3g_1))
|
|
1654
1644
|
return false;
|
|
1655
1645
|
return true;
|
|
1656
1646
|
};
|
|
1657
1647
|
protoOf(StateEnd).asEndState = function () {
|
|
1658
|
-
return this.
|
|
1648
|
+
return this.i3g();
|
|
1659
1649
|
};
|
|
1660
1650
|
function isCatch($this, $receiver) {
|
|
1661
1651
|
var tmp;
|
|
1662
|
-
if ($receiver.
|
|
1663
|
-
var tmp_0 = $receiver.
|
|
1652
|
+
if ($receiver.rw() === 3) {
|
|
1653
|
+
var tmp_0 = $receiver.xw();
|
|
1664
1654
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1665
1655
|
tmp = tmp_0 === Catch_getInstance().signature.name;
|
|
1666
1656
|
} else {
|
|
@@ -1671,9 +1661,9 @@
|
|
|
1671
1661
|
function getExceptionContent($this, $receiver) {
|
|
1672
1662
|
var tmp;
|
|
1673
1663
|
if ($receiver instanceof MessageError) {
|
|
1674
|
-
tmp = $receiver.
|
|
1664
|
+
tmp = $receiver.x29();
|
|
1675
1665
|
} else {
|
|
1676
|
-
tmp = $receiver.
|
|
1666
|
+
tmp = $receiver.z27();
|
|
1677
1667
|
}
|
|
1678
1668
|
return tmp;
|
|
1679
1669
|
}
|
|
@@ -1687,17 +1677,17 @@
|
|
|
1687
1677
|
return tmp;
|
|
1688
1678
|
}
|
|
1689
1679
|
function _get_finalState__3aigq8($this) {
|
|
1690
|
-
return new StateHalt(toPublicException($this, $this.
|
|
1680
|
+
return new StateHalt(toPublicException($this, $this.y3g_1), $this.z3g_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
1691
1681
|
}
|
|
1692
1682
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1693
|
-
return new StateException($this.
|
|
1683
|
+
return new StateException($this.y3g_1, ensureNotNull($this.z3g_1.y3b_1).x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
1694
1684
|
}
|
|
1695
1685
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1696
1686
|
var tmp;
|
|
1697
1687
|
if (isCatch($this, catchGoal)) {
|
|
1698
1688
|
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent($this, error));
|
|
1699
1689
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1700
|
-
} else if ($this.
|
|
1690
|
+
} else if ($this.z3g_1.p3f()) {
|
|
1701
1691
|
tmp = _get_finalState__3aigq8($this);
|
|
1702
1692
|
} else {
|
|
1703
1693
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1706,18 +1696,18 @@
|
|
|
1706
1696
|
}
|
|
1707
1697
|
function handleCatch($this, catchGoal, catcher) {
|
|
1708
1698
|
var tmp;
|
|
1709
|
-
if (catcher.
|
|
1710
|
-
var tmp_0 = $this.
|
|
1699
|
+
if (catcher.b13()) {
|
|
1700
|
+
var tmp_0 = $this.z3g_1.q3b_1.plus(catcher);
|
|
1711
1701
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1712
1702
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1713
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1714
|
-
var tmp0_$this = $this.
|
|
1703
|
+
var newGoals = plus_0(toGoals(subGoals), $this.z3g_1.s3b_1.qr());
|
|
1704
|
+
var tmp0_$this = $this.z3g_1;
|
|
1715
1705
|
var tmp1_rules = Companion_instance_7.empty();
|
|
1716
1706
|
var tmp2_primitives = Companion_instance_7.empty();
|
|
1717
1707
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1718
|
-
var tmp4_step = $this.
|
|
1719
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
1720
|
-
} else if ($this.
|
|
1708
|
+
var tmp4_step = $this.g3g();
|
|
1709
|
+
tmp = new StateGoalSelection(tmp0_$this.x3c(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));
|
|
1710
|
+
} else if ($this.z3g_1.p3f()) {
|
|
1721
1711
|
tmp = _get_finalState__3aigq8($this);
|
|
1722
1712
|
} else {
|
|
1723
1713
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1728,42 +1718,42 @@
|
|
|
1728
1718
|
return function (_destruct__k2r9zo) {
|
|
1729
1719
|
// Inline function 'kotlin.collections.component1' call
|
|
1730
1720
|
var it = _destruct__k2r9zo.e1();
|
|
1731
|
-
return this$0.
|
|
1721
|
+
return this$0.z3g_1.q3f(it);
|
|
1732
1722
|
};
|
|
1733
1723
|
}
|
|
1734
1724
|
function StateException(exception, context) {
|
|
1735
1725
|
AbstractState.call(this, context);
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1726
|
+
this.y3g_1 = exception;
|
|
1727
|
+
this.z3g_1 = context;
|
|
1738
1728
|
}
|
|
1739
1729
|
protoOf(StateException).v8 = function () {
|
|
1740
|
-
return this.
|
|
1730
|
+
return this.z3g_1;
|
|
1741
1731
|
};
|
|
1742
|
-
protoOf(StateException).
|
|
1732
|
+
protoOf(StateException).a3g = function () {
|
|
1743
1733
|
var tmp;
|
|
1744
|
-
if (this.
|
|
1745
|
-
var catchGoal = ensureNotNull(this.
|
|
1746
|
-
tmp = catchGoal.
|
|
1734
|
+
if (this.y3g_1 instanceof LogicError) {
|
|
1735
|
+
var catchGoal = ensureNotNull(this.z3g_1.n3f());
|
|
1736
|
+
tmp = catchGoal.dx() ? handleStruct(this, this.z3g_1.h3b_1, catchGoal.castToStruct(), this.y3g_1) : this.z3g_1.p3f() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1747
1737
|
} else {
|
|
1748
1738
|
tmp = _get_finalState__3aigq8(this);
|
|
1749
1739
|
}
|
|
1750
1740
|
return tmp;
|
|
1751
1741
|
};
|
|
1752
|
-
protoOf(StateException).
|
|
1753
|
-
return this.
|
|
1742
|
+
protoOf(StateException).j3g = function (context) {
|
|
1743
|
+
return this.a3h(this.y3g_1, context);
|
|
1754
1744
|
};
|
|
1755
1745
|
protoOf(StateException).clone = function (context, $super) {
|
|
1756
1746
|
return this.clone(context, ($super == null ? true : $super instanceof StateException) ? $super : THROW_CCE());
|
|
1757
1747
|
};
|
|
1758
|
-
protoOf(StateException).
|
|
1748
|
+
protoOf(StateException).a3h = function (exception, context) {
|
|
1759
1749
|
return new StateException(exception, context);
|
|
1760
1750
|
};
|
|
1761
1751
|
protoOf(StateException).toString = function () {
|
|
1762
|
-
return 'StateException(exception=' + this.
|
|
1752
|
+
return 'StateException(exception=' + this.y3g_1.toString() + ', context=' + this.z3g_1.toString() + ')';
|
|
1763
1753
|
};
|
|
1764
1754
|
protoOf(StateException).hashCode = function () {
|
|
1765
|
-
var result = hashCode(this.
|
|
1766
|
-
result = imul(result, 31) + this.
|
|
1755
|
+
var result = hashCode(this.y3g_1);
|
|
1756
|
+
result = imul(result, 31) + this.z3g_1.hashCode() | 0;
|
|
1767
1757
|
return result;
|
|
1768
1758
|
};
|
|
1769
1759
|
protoOf(StateException).equals = function (other) {
|
|
@@ -1771,9 +1761,9 @@
|
|
|
1771
1761
|
return true;
|
|
1772
1762
|
if (!(other instanceof StateException))
|
|
1773
1763
|
return false;
|
|
1774
|
-
if (!equals(this.
|
|
1764
|
+
if (!equals(this.y3g_1, other.y3g_1))
|
|
1775
1765
|
return false;
|
|
1776
|
-
if (!this.
|
|
1766
|
+
if (!this.z3g_1.equals(other.z3g_1))
|
|
1777
1767
|
return false;
|
|
1778
1768
|
return true;
|
|
1779
1769
|
};
|
|
@@ -1781,97 +1771,97 @@
|
|
|
1781
1771
|
return function (_destruct__k2r9zo) {
|
|
1782
1772
|
// Inline function 'kotlin.collections.component1' call
|
|
1783
1773
|
var it = _destruct__k2r9zo.e1();
|
|
1784
|
-
return this$0.
|
|
1774
|
+
return this$0.d3h_1.q3f(it);
|
|
1785
1775
|
};
|
|
1786
1776
|
}
|
|
1787
1777
|
function StateGoalSelection(context) {
|
|
1788
1778
|
AbstractState.call(this, context);
|
|
1789
|
-
this.
|
|
1779
|
+
this.d3h_1 = context;
|
|
1790
1780
|
}
|
|
1791
1781
|
protoOf(StateGoalSelection).v8 = function () {
|
|
1792
|
-
return this.
|
|
1782
|
+
return this.d3h_1;
|
|
1793
1783
|
};
|
|
1794
|
-
protoOf(StateGoalSelection).
|
|
1784
|
+
protoOf(StateGoalSelection).a3g = function () {
|
|
1795
1785
|
var tmp;
|
|
1796
|
-
if (this.
|
|
1786
|
+
if (this.d3h_1.s3b_1.tr()) {
|
|
1797
1787
|
var tmp_0;
|
|
1798
|
-
if (this.
|
|
1799
|
-
tmp_0 = new StateEnd(Companion_instance_8.
|
|
1788
|
+
if (this.d3h_1.p3f()) {
|
|
1789
|
+
tmp_0 = new StateEnd(Companion_instance_8.u1z(this.d3h_1.r3b_1, this.d3h_1.q3b_1), this.d3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g()));
|
|
1800
1790
|
} else {
|
|
1801
1791
|
// Inline function 'kotlin.let' call
|
|
1802
|
-
var it = ensureNotNull(this.
|
|
1803
|
-
var tmp0_choicePoints = this.
|
|
1804
|
-
var tmp1_flags = this.
|
|
1805
|
-
var tmp2_dynamicKb = this.
|
|
1806
|
-
var tmp3_staticKb = this.
|
|
1807
|
-
var tmp4_substitution = this.
|
|
1808
|
-
var tmp5_goals = it.
|
|
1809
|
-
var tmp6_procedure = it.
|
|
1810
|
-
var tmp7_step = this.
|
|
1811
|
-
var tmp8_startTime = this.
|
|
1812
|
-
var tmp9_operators = this.
|
|
1813
|
-
var tmp10_inputChannels = this.
|
|
1814
|
-
var tmp11_outputChannels = this.
|
|
1815
|
-
var tmp12_libraries = this.
|
|
1816
|
-
var tmp13_customData = this.
|
|
1817
|
-
var tmp$ret$0 = it.
|
|
1792
|
+
var it = ensureNotNull(this.d3h_1.y3b_1);
|
|
1793
|
+
var tmp0_choicePoints = this.d3h_1.x3b_1;
|
|
1794
|
+
var tmp1_flags = this.d3h_1.j3b_1;
|
|
1795
|
+
var tmp2_dynamicKb = this.d3h_1.l3b_1;
|
|
1796
|
+
var tmp3_staticKb = this.d3h_1.k3b_1;
|
|
1797
|
+
var tmp4_substitution = this.d3h_1.q3b_1.v12(StateGoalSelection$computeNext$lambda(this));
|
|
1798
|
+
var tmp5_goals = it.s3b_1.qr();
|
|
1799
|
+
var tmp6_procedure = it.g3b_1;
|
|
1800
|
+
var tmp7_step = this.g3g();
|
|
1801
|
+
var tmp8_startTime = this.d3h_1.v3b_1;
|
|
1802
|
+
var tmp9_operators = this.d3h_1.m3b_1;
|
|
1803
|
+
var tmp10_inputChannels = this.d3h_1.n3b_1;
|
|
1804
|
+
var tmp11_outputChannels = this.d3h_1.o3b_1;
|
|
1805
|
+
var tmp12_libraries = this.d3h_1.i3b_1;
|
|
1806
|
+
var tmp13_customData = this.d3h_1.p3b_1;
|
|
1807
|
+
var tmp$ret$0 = it.x3c(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);
|
|
1818
1808
|
tmp_0 = new StateGoalSelection(tmp$ret$0);
|
|
1819
1809
|
}
|
|
1820
1810
|
tmp = tmp_0;
|
|
1821
|
-
} else if (equals(this.
|
|
1822
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1811
|
+
} else if (equals(this.d3h_1.j3b_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().n2d_1)) {
|
|
1812
|
+
tmp = new StatePrimitiveSelection(this.d3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g(), plus_1(this.d3h_1.b3c_1, toSet(ensureNotNull(this.d3h_1.s3b_1.rr()).zw()))));
|
|
1823
1813
|
} else {
|
|
1824
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1814
|
+
tmp = new StatePrimitiveSelection(this.d3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g()));
|
|
1825
1815
|
}
|
|
1826
1816
|
return tmp;
|
|
1827
1817
|
};
|
|
1828
|
-
protoOf(StateGoalSelection).
|
|
1829
|
-
return this.
|
|
1818
|
+
protoOf(StateGoalSelection).j3g = function (context) {
|
|
1819
|
+
return this.o3g(context);
|
|
1830
1820
|
};
|
|
1831
1821
|
protoOf(StateGoalSelection).clone = function (context, $super) {
|
|
1832
1822
|
return this.clone(context, ($super == null ? true : $super instanceof StateGoalSelection) ? $super : THROW_CCE());
|
|
1833
1823
|
};
|
|
1834
|
-
protoOf(StateGoalSelection).
|
|
1824
|
+
protoOf(StateGoalSelection).o3g = function (context) {
|
|
1835
1825
|
return new StateGoalSelection(context);
|
|
1836
1826
|
};
|
|
1837
1827
|
protoOf(StateGoalSelection).toString = function () {
|
|
1838
|
-
return 'StateGoalSelection(context=' + this.
|
|
1828
|
+
return 'StateGoalSelection(context=' + this.d3h_1.toString() + ')';
|
|
1839
1829
|
};
|
|
1840
1830
|
protoOf(StateGoalSelection).hashCode = function () {
|
|
1841
|
-
return this.
|
|
1831
|
+
return this.d3h_1.hashCode();
|
|
1842
1832
|
};
|
|
1843
1833
|
protoOf(StateGoalSelection).equals = function (other) {
|
|
1844
1834
|
if (this === other)
|
|
1845
1835
|
return true;
|
|
1846
1836
|
if (!(other instanceof StateGoalSelection))
|
|
1847
1837
|
return false;
|
|
1848
|
-
if (!this.
|
|
1838
|
+
if (!this.d3h_1.equals(other.d3h_1))
|
|
1849
1839
|
return false;
|
|
1850
1840
|
return true;
|
|
1851
1841
|
};
|
|
1852
1842
|
function StateHalt(exception, context) {
|
|
1853
|
-
AbstractEndState.call(this, Companion_instance_8.halt(context.
|
|
1854
|
-
this.
|
|
1855
|
-
this.
|
|
1843
|
+
AbstractEndState.call(this, Companion_instance_8.halt(context.r3b_1, exception), context);
|
|
1844
|
+
this.i3h_1 = exception;
|
|
1845
|
+
this.j3h_1 = context;
|
|
1856
1846
|
}
|
|
1857
1847
|
protoOf(StateHalt).v8 = function () {
|
|
1858
|
-
return this.
|
|
1848
|
+
return this.j3h_1;
|
|
1859
1849
|
};
|
|
1860
|
-
protoOf(StateHalt).
|
|
1861
|
-
return this.
|
|
1850
|
+
protoOf(StateHalt).j3g = function (context) {
|
|
1851
|
+
return this.a3h(this.i3h_1, context);
|
|
1862
1852
|
};
|
|
1863
1853
|
protoOf(StateHalt).clone = function (context, $super) {
|
|
1864
1854
|
return this.clone(context, ($super == null ? true : $super instanceof StateHalt) ? $super : THROW_CCE());
|
|
1865
1855
|
};
|
|
1866
|
-
protoOf(StateHalt).
|
|
1856
|
+
protoOf(StateHalt).a3h = function (exception, context) {
|
|
1867
1857
|
return new StateHalt(exception, context);
|
|
1868
1858
|
};
|
|
1869
1859
|
protoOf(StateHalt).toString = function () {
|
|
1870
|
-
return 'StateHalt(exception=' + this.
|
|
1860
|
+
return 'StateHalt(exception=' + this.i3h_1.toString() + ', context=' + this.j3h_1.toString() + ')';
|
|
1871
1861
|
};
|
|
1872
1862
|
protoOf(StateHalt).hashCode = function () {
|
|
1873
|
-
var result = hashCode(this.
|
|
1874
|
-
result = imul(result, 31) + this.
|
|
1863
|
+
var result = hashCode(this.i3h_1);
|
|
1864
|
+
result = imul(result, 31) + this.j3h_1.hashCode() | 0;
|
|
1875
1865
|
return result;
|
|
1876
1866
|
};
|
|
1877
1867
|
protoOf(StateHalt).equals = function (other) {
|
|
@@ -1879,53 +1869,53 @@
|
|
|
1879
1869
|
return true;
|
|
1880
1870
|
if (!(other instanceof StateHalt))
|
|
1881
1871
|
return false;
|
|
1882
|
-
if (!equals(this.
|
|
1872
|
+
if (!equals(this.i3h_1, other.i3h_1))
|
|
1883
1873
|
return false;
|
|
1884
|
-
if (!this.
|
|
1874
|
+
if (!this.j3h_1.equals(other.j3h_1))
|
|
1885
1875
|
return false;
|
|
1886
1876
|
return true;
|
|
1887
1877
|
};
|
|
1888
1878
|
protoOf(StateHalt).asEndState = function () {
|
|
1889
|
-
return this.
|
|
1879
|
+
return this.i3g();
|
|
1890
1880
|
};
|
|
1891
1881
|
function StateInit(context) {
|
|
1892
1882
|
AbstractState.call(this, context);
|
|
1893
|
-
this.
|
|
1883
|
+
this.m3h_1 = context;
|
|
1894
1884
|
}
|
|
1895
1885
|
protoOf(StateInit).v8 = function () {
|
|
1896
|
-
return this.
|
|
1886
|
+
return this.m3h_1;
|
|
1897
1887
|
};
|
|
1898
|
-
protoOf(StateInit).
|
|
1899
|
-
var tmp0_$this = this.
|
|
1900
|
-
var tmp1_goals = toGoals(this.
|
|
1888
|
+
protoOf(StateInit).a3g = function () {
|
|
1889
|
+
var tmp0_$this = this.m3h_1;
|
|
1890
|
+
var tmp1_goals = toGoals(this.m3h_1.r3b_1);
|
|
1901
1891
|
var tmp2_rules = Companion_instance_7.empty();
|
|
1902
1892
|
var tmp3_primitives = Companion_instance_7.empty();
|
|
1903
1893
|
var tmp4_substitution = Companion_getInstance_2().empty();
|
|
1904
|
-
var tmp5_customData = this.
|
|
1894
|
+
var tmp5_customData = this.m3h_1.p3b_1.preservePersistent();
|
|
1905
1895
|
var tmp6_relevantVariables = emptySet();
|
|
1906
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.
|
|
1896
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.x3c(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()));
|
|
1907
1897
|
};
|
|
1908
|
-
protoOf(StateInit).
|
|
1909
|
-
return this.
|
|
1898
|
+
protoOf(StateInit).j3g = function (context) {
|
|
1899
|
+
return this.o3g(context);
|
|
1910
1900
|
};
|
|
1911
1901
|
protoOf(StateInit).clone = function (context, $super) {
|
|
1912
1902
|
return this.clone(context, ($super == null ? true : $super instanceof StateInit) ? $super : THROW_CCE());
|
|
1913
1903
|
};
|
|
1914
|
-
protoOf(StateInit).
|
|
1904
|
+
protoOf(StateInit).o3g = function (context) {
|
|
1915
1905
|
return new StateInit(context);
|
|
1916
1906
|
};
|
|
1917
1907
|
protoOf(StateInit).toString = function () {
|
|
1918
|
-
return 'StateInit(context=' + this.
|
|
1908
|
+
return 'StateInit(context=' + this.m3h_1.toString() + ')';
|
|
1919
1909
|
};
|
|
1920
1910
|
protoOf(StateInit).hashCode = function () {
|
|
1921
|
-
return this.
|
|
1911
|
+
return this.m3h_1.hashCode();
|
|
1922
1912
|
};
|
|
1923
1913
|
protoOf(StateInit).equals = function (other) {
|
|
1924
1914
|
if (this === other)
|
|
1925
1915
|
return true;
|
|
1926
1916
|
if (!(other instanceof StateInit))
|
|
1927
1917
|
return false;
|
|
1928
|
-
if (!this.
|
|
1918
|
+
if (!this.m3h_1.equals(other.m3h_1))
|
|
1929
1919
|
return false;
|
|
1930
1920
|
return true;
|
|
1931
1921
|
};
|
|
@@ -1933,41 +1923,41 @@
|
|
|
1933
1923
|
goals = goals === VOID ? null : goals;
|
|
1934
1924
|
procedureFromAncestor = procedureFromAncestor === VOID ? 0 : procedureFromAncestor;
|
|
1935
1925
|
substitution = substitution === VOID ? null : substitution;
|
|
1936
|
-
var tmp0_safe_receiver = $receiver.
|
|
1926
|
+
var tmp0_safe_receiver = $receiver.u3b_1.rr();
|
|
1937
1927
|
var tmp;
|
|
1938
1928
|
if (tmp0_safe_receiver == null) {
|
|
1939
1929
|
tmp = null;
|
|
1940
1930
|
} else {
|
|
1941
1931
|
// Inline function 'kotlin.let' call
|
|
1942
|
-
tmp = $receiver.
|
|
1932
|
+
tmp = $receiver.s3f(tmp0_safe_receiver.sideEffects);
|
|
1943
1933
|
}
|
|
1944
1934
|
var tmp1_elvis_lhs = tmp;
|
|
1945
1935
|
var ctx = tmp1_elvis_lhs == null ? $receiver : tmp1_elvis_lhs;
|
|
1946
|
-
var tmp4_goals = goals == null ? $receiver.
|
|
1947
|
-
var tmp_0 = drop($receiver.
|
|
1936
|
+
var tmp4_goals = goals == null ? $receiver.s3b_1 : goals;
|
|
1937
|
+
var tmp_0 = drop($receiver.c3c_1, procedureFromAncestor);
|
|
1948
1938
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
1949
1939
|
var tmp6_primitives = Companion_instance_7.empty();
|
|
1950
|
-
var tmp_1 = substitution == null ? $receiver.
|
|
1940
|
+
var tmp_1 = substitution == null ? $receiver.q3b_1 : substitution;
|
|
1951
1941
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
1952
|
-
var tmp8_step = $this.
|
|
1953
|
-
return ctx.
|
|
1942
|
+
var tmp8_step = $this.g3g();
|
|
1943
|
+
return ctx.x3c(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);
|
|
1954
1944
|
}
|
|
1955
1945
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
1956
|
-
return it.
|
|
1946
|
+
return it.g3b_1;
|
|
1957
1947
|
}
|
|
1958
1948
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
1959
1949
|
return function (it) {
|
|
1960
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.
|
|
1950
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.p3h_1, this$0.p3h_1.s3b_1.qr(), 1, this$0.p3h_1.h3b_1.mergeWithOccurCheck(this$0.p3h_1.q3b_1, it.p1x(), false)));
|
|
1961
1951
|
};
|
|
1962
1952
|
}
|
|
1963
1953
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
1964
1954
|
return function (it) {
|
|
1965
|
-
return new StateBacktracking(copyFromCurrentPrimitive(this$0, ensureNotNull(this$0.
|
|
1955
|
+
return new StateBacktracking(copyFromCurrentPrimitive(this$0, ensureNotNull(this$0.p3h_1.y3b_1)));
|
|
1966
1956
|
};
|
|
1967
1957
|
}
|
|
1968
1958
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
1969
1959
|
return function (it) {
|
|
1970
|
-
return new StateException(it.
|
|
1960
|
+
return new StateException(it.m1z().updateLastContext(this$0.k3g(this$0.p3h_1)), copyFromCurrentPrimitive(this$0, this$0.p3h_1));
|
|
1971
1961
|
};
|
|
1972
1962
|
}
|
|
1973
1963
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -1975,15 +1965,15 @@
|
|
|
1975
1965
|
}
|
|
1976
1966
|
function StatePrimitiveExecution(context) {
|
|
1977
1967
|
AbstractState.call(this, context);
|
|
1978
|
-
this.
|
|
1968
|
+
this.p3h_1 = context;
|
|
1979
1969
|
}
|
|
1980
1970
|
protoOf(StatePrimitiveExecution).v8 = function () {
|
|
1981
|
-
return this.
|
|
1971
|
+
return this.p3h_1;
|
|
1982
1972
|
};
|
|
1983
|
-
protoOf(StatePrimitiveExecution).
|
|
1973
|
+
protoOf(StatePrimitiveExecution).a3g = function () {
|
|
1984
1974
|
var tmp;
|
|
1985
1975
|
try {
|
|
1986
|
-
var tmp0_safe_receiver = this.
|
|
1976
|
+
var tmp0_safe_receiver = this.p3h_1.u3b_1.rr();
|
|
1987
1977
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
1988
1978
|
var tmp_0;
|
|
1989
1979
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1992,15 +1982,15 @@
|
|
|
1992
1982
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
1993
1983
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
1994
1984
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
1995
|
-
tmp_0 = tmp1_safe_receiver.
|
|
1985
|
+
tmp_0 = tmp1_safe_receiver.p1z(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
1996
1986
|
}
|
|
1997
1987
|
var tmp2_elvis_lhs = tmp_0;
|
|
1998
|
-
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive(this, this.
|
|
1988
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive(this, this.p3h_1)) : tmp2_elvis_lhs;
|
|
1999
1989
|
} catch ($p) {
|
|
2000
1990
|
var tmp_4;
|
|
2001
1991
|
if ($p instanceof ResolutionException) {
|
|
2002
1992
|
var exception = $p;
|
|
2003
|
-
tmp_4 = new StateException(exception.updateLastContext(this.
|
|
1993
|
+
tmp_4 = new StateException(exception.updateLastContext(this.k3g(this.p3h_1)), this.p3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g()));
|
|
2004
1994
|
} else {
|
|
2005
1995
|
throw $p;
|
|
2006
1996
|
}
|
|
@@ -2008,57 +1998,57 @@
|
|
|
2008
1998
|
}
|
|
2009
1999
|
return tmp;
|
|
2010
2000
|
};
|
|
2011
|
-
protoOf(StatePrimitiveExecution).
|
|
2012
|
-
return this.
|
|
2001
|
+
protoOf(StatePrimitiveExecution).j3g = function (context) {
|
|
2002
|
+
return this.o3g(context);
|
|
2013
2003
|
};
|
|
2014
2004
|
protoOf(StatePrimitiveExecution).clone = function (context, $super) {
|
|
2015
2005
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveExecution) ? $super : THROW_CCE());
|
|
2016
2006
|
};
|
|
2017
|
-
protoOf(StatePrimitiveExecution).
|
|
2007
|
+
protoOf(StatePrimitiveExecution).o3g = function (context) {
|
|
2018
2008
|
return new StatePrimitiveExecution(context);
|
|
2019
2009
|
};
|
|
2020
2010
|
protoOf(StatePrimitiveExecution).toString = function () {
|
|
2021
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
2011
|
+
return 'StatePrimitiveExecution(context=' + this.p3h_1.toString() + ')';
|
|
2022
2012
|
};
|
|
2023
2013
|
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2024
|
-
return this.
|
|
2014
|
+
return this.p3h_1.hashCode();
|
|
2025
2015
|
};
|
|
2026
2016
|
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2027
2017
|
if (this === other)
|
|
2028
2018
|
return true;
|
|
2029
2019
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2030
2020
|
return false;
|
|
2031
|
-
if (!this.
|
|
2021
|
+
if (!this.p3h_1.equals(other.p3h_1))
|
|
2032
2022
|
return false;
|
|
2033
2023
|
return true;
|
|
2034
2024
|
};
|
|
2035
2025
|
function exceptionalState($this, exception) {
|
|
2036
|
-
return new StateException(exception, $this.
|
|
2026
|
+
return new StateException(exception, $this.s3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
2037
2027
|
}
|
|
2038
2028
|
function StatePrimitiveSelection(context) {
|
|
2039
2029
|
AbstractState.call(this, context);
|
|
2040
|
-
this.
|
|
2030
|
+
this.s3h_1 = context;
|
|
2041
2031
|
}
|
|
2042
2032
|
protoOf(StatePrimitiveSelection).v8 = function () {
|
|
2043
|
-
return this.
|
|
2033
|
+
return this.s3h_1;
|
|
2044
2034
|
};
|
|
2045
|
-
protoOf(StatePrimitiveSelection).
|
|
2035
|
+
protoOf(StatePrimitiveSelection).a3g = function () {
|
|
2046
2036
|
// Inline function 'kotlin.with' call
|
|
2047
|
-
var $this$with = this.
|
|
2048
|
-
var goal = ensureNotNull($this$with.
|
|
2037
|
+
var $this$with = this.s3h_1;
|
|
2038
|
+
var goal = ensureNotNull($this$with.n3f());
|
|
2049
2039
|
var tmp;
|
|
2050
|
-
if (goal.
|
|
2051
|
-
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.
|
|
2052
|
-
} else if (goal.
|
|
2040
|
+
if (goal.tx()) {
|
|
2041
|
+
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.s3h_1, extractSignature(ensureNotNull(this.s3h_1.g3b_1)), goal.castToVar()));
|
|
2042
|
+
} else if (goal.dx()) {
|
|
2053
2043
|
var goalStruct = goal.castToStruct();
|
|
2054
2044
|
var signature = extractSignature(goalStruct);
|
|
2055
2045
|
var tmp_0;
|
|
2056
|
-
if ($this$with.
|
|
2046
|
+
if ($this$with.i3b_1.hasPrimitive(signature)) {
|
|
2057
2047
|
var childContext = createChild($this$with);
|
|
2058
2048
|
var tmp_1;
|
|
2059
2049
|
try {
|
|
2060
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2061
|
-
var tmp0_elvis_lhs = $this$with.
|
|
2050
|
+
var request = toRequest(childContext, goalStruct, signature, this.d3g());
|
|
2051
|
+
var tmp0_elvis_lhs = $this$with.i3b_1.z2i().j2(signature);
|
|
2062
2052
|
var tmp_2;
|
|
2063
2053
|
if (tmp0_elvis_lhs == null) {
|
|
2064
2054
|
// Inline function 'kotlin.error' call
|
|
@@ -2074,7 +2064,7 @@
|
|
|
2074
2064
|
var tmp_3;
|
|
2075
2065
|
if ($p instanceof ResolutionException) {
|
|
2076
2066
|
var exception = $p;
|
|
2077
|
-
tmp_3 = exceptionalState(this, exception.updateLastContext(this.
|
|
2067
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.k3g(childContext)));
|
|
2078
2068
|
} else {
|
|
2079
2069
|
throw $p;
|
|
2080
2070
|
}
|
|
@@ -2082,106 +2072,106 @@
|
|
|
2082
2072
|
}
|
|
2083
2073
|
tmp_0 = tmp_1;
|
|
2084
2074
|
} else {
|
|
2085
|
-
tmp_0 = new StateRuleSelection(this.
|
|
2075
|
+
tmp_0 = new StateRuleSelection(this.s3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.g3g()));
|
|
2086
2076
|
}
|
|
2087
2077
|
tmp = tmp_0;
|
|
2088
2078
|
} else {
|
|
2089
2079
|
var tmp_4 = Companion_instance_10;
|
|
2090
|
-
var tmp1_safe_receiver = this.
|
|
2080
|
+
var tmp1_safe_receiver = this.s3h_1.g3b_1;
|
|
2091
2081
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2092
|
-
tmp = exceptionalState(this, tmp_4.forGoal(this.
|
|
2082
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.s3h_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2093
2083
|
}
|
|
2094
2084
|
return tmp;
|
|
2095
2085
|
};
|
|
2096
|
-
protoOf(StatePrimitiveSelection).
|
|
2097
|
-
return this.
|
|
2086
|
+
protoOf(StatePrimitiveSelection).j3g = function (context) {
|
|
2087
|
+
return this.o3g(context);
|
|
2098
2088
|
};
|
|
2099
2089
|
protoOf(StatePrimitiveSelection).clone = function (context, $super) {
|
|
2100
2090
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveSelection) ? $super : THROW_CCE());
|
|
2101
2091
|
};
|
|
2102
|
-
protoOf(StatePrimitiveSelection).
|
|
2092
|
+
protoOf(StatePrimitiveSelection).o3g = function (context) {
|
|
2103
2093
|
return new StatePrimitiveSelection(context);
|
|
2104
2094
|
};
|
|
2105
2095
|
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2106
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2096
|
+
return 'StatePrimitiveSelection(context=' + this.s3h_1.toString() + ')';
|
|
2107
2097
|
};
|
|
2108
2098
|
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2109
|
-
return this.
|
|
2099
|
+
return this.s3h_1.hashCode();
|
|
2110
2100
|
};
|
|
2111
2101
|
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2112
2102
|
if (this === other)
|
|
2113
2103
|
return true;
|
|
2114
2104
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2115
2105
|
return false;
|
|
2116
|
-
if (!this.
|
|
2106
|
+
if (!this.s3h_1.equals(other.s3h_1))
|
|
2117
2107
|
return false;
|
|
2118
2108
|
return true;
|
|
2119
2109
|
};
|
|
2120
2110
|
function _get_failureState__yid9tw($this) {
|
|
2121
|
-
return new StateBacktracking($this.
|
|
2111
|
+
return new StateBacktracking($this.v3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_7.empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
2122
2112
|
}
|
|
2123
2113
|
function StateRuleExecution(context) {
|
|
2124
2114
|
AbstractState.call(this, context);
|
|
2125
|
-
this.
|
|
2115
|
+
this.v3h_1 = context;
|
|
2126
2116
|
}
|
|
2127
2117
|
protoOf(StateRuleExecution).v8 = function () {
|
|
2128
|
-
return this.
|
|
2118
|
+
return this.v3h_1;
|
|
2129
2119
|
};
|
|
2130
|
-
protoOf(StateRuleExecution).
|
|
2120
|
+
protoOf(StateRuleExecution).a3g = function () {
|
|
2131
2121
|
// Inline function 'kotlin.with' call
|
|
2132
|
-
var $this$with = this.
|
|
2133
|
-
var substitution = $this$with.
|
|
2122
|
+
var $this$with = this.v3h_1;
|
|
2123
|
+
var substitution = $this$with.h3b_1.mgu(ensureNotNull($this$with.n3f()), ensureNotNull($this$with.t3b_1.rr()).dz());
|
|
2134
2124
|
var tmp;
|
|
2135
|
-
if (substitution.
|
|
2136
|
-
var newSubstitution = this.
|
|
2137
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2138
|
-
var tmp0_$this = this.
|
|
2125
|
+
if (substitution.b13()) {
|
|
2126
|
+
var newSubstitution = this.v3h_1.q3b_1.plus(substitution).castToUnifier();
|
|
2127
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.v3h_1.t3b_1.rr()), newSubstitution).ez().getSubstituted(newSubstitution, []);
|
|
2128
|
+
var tmp0_$this = this.v3h_1;
|
|
2139
2129
|
var tmp1_goals = toGoals(subGoals);
|
|
2140
2130
|
var tmp2_rules = Companion_instance_7.empty();
|
|
2141
|
-
var tmp3_step = this.
|
|
2142
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
2131
|
+
var tmp3_step = this.g3g();
|
|
2132
|
+
tmp = new StateGoalSelection(tmp0_$this.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
|
|
2143
2133
|
} else {
|
|
2144
2134
|
tmp = _get_failureState__yid9tw(this);
|
|
2145
2135
|
}
|
|
2146
2136
|
return tmp;
|
|
2147
2137
|
};
|
|
2148
|
-
protoOf(StateRuleExecution).
|
|
2149
|
-
return this.
|
|
2138
|
+
protoOf(StateRuleExecution).j3g = function (context) {
|
|
2139
|
+
return this.o3g(context);
|
|
2150
2140
|
};
|
|
2151
2141
|
protoOf(StateRuleExecution).clone = function (context, $super) {
|
|
2152
2142
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleExecution) ? $super : THROW_CCE());
|
|
2153
2143
|
};
|
|
2154
|
-
protoOf(StateRuleExecution).
|
|
2144
|
+
protoOf(StateRuleExecution).o3g = function (context) {
|
|
2155
2145
|
return new StateRuleExecution(context);
|
|
2156
2146
|
};
|
|
2157
2147
|
protoOf(StateRuleExecution).toString = function () {
|
|
2158
|
-
return 'StateRuleExecution(context=' + this.
|
|
2148
|
+
return 'StateRuleExecution(context=' + this.v3h_1.toString() + ')';
|
|
2159
2149
|
};
|
|
2160
2150
|
protoOf(StateRuleExecution).hashCode = function () {
|
|
2161
|
-
return this.
|
|
2151
|
+
return this.v3h_1.hashCode();
|
|
2162
2152
|
};
|
|
2163
2153
|
protoOf(StateRuleExecution).equals = function (other) {
|
|
2164
2154
|
if (this === other)
|
|
2165
2155
|
return true;
|
|
2166
2156
|
if (!(other instanceof StateRuleExecution))
|
|
2167
2157
|
return false;
|
|
2168
|
-
if (!this.
|
|
2158
|
+
if (!this.v3h_1.equals(other.v3h_1))
|
|
2169
2159
|
return false;
|
|
2170
2160
|
return true;
|
|
2171
2161
|
};
|
|
2172
2162
|
function None() {
|
|
2173
2163
|
None_instance = this;
|
|
2174
2164
|
CutLimit.call(this);
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2165
|
+
this.w3h_1 = -1;
|
|
2166
|
+
this.x3h_1 = null;
|
|
2177
2167
|
}
|
|
2178
|
-
protoOf(None).
|
|
2179
|
-
return this.
|
|
2168
|
+
protoOf(None).y3h = function () {
|
|
2169
|
+
return this.w3h_1;
|
|
2180
2170
|
};
|
|
2181
2171
|
protoOf(None).o1x = function () {
|
|
2182
|
-
return this.
|
|
2172
|
+
return this.x3h_1;
|
|
2183
2173
|
};
|
|
2184
|
-
protoOf(None).
|
|
2174
|
+
protoOf(None).z3h = function () {
|
|
2185
2175
|
return true;
|
|
2186
2176
|
};
|
|
2187
2177
|
var None_instance;
|
|
@@ -2192,24 +2182,24 @@
|
|
|
2192
2182
|
}
|
|
2193
2183
|
function Actual(depthToCut, procedure) {
|
|
2194
2184
|
CutLimit.call(this);
|
|
2195
|
-
this.
|
|
2196
|
-
this.
|
|
2185
|
+
this.a3i_1 = depthToCut;
|
|
2186
|
+
this.b3i_1 = procedure;
|
|
2197
2187
|
}
|
|
2198
|
-
protoOf(Actual).
|
|
2199
|
-
return this.
|
|
2188
|
+
protoOf(Actual).y3h = function () {
|
|
2189
|
+
return this.a3i_1;
|
|
2200
2190
|
};
|
|
2201
2191
|
protoOf(Actual).o1x = function () {
|
|
2202
|
-
return this.
|
|
2192
|
+
return this.b3i_1;
|
|
2203
2193
|
};
|
|
2204
2194
|
function CutLimit() {
|
|
2205
2195
|
}
|
|
2206
|
-
protoOf(CutLimit).
|
|
2196
|
+
protoOf(CutLimit).z3h = function () {
|
|
2207
2197
|
return false;
|
|
2208
2198
|
};
|
|
2209
2199
|
function Companion_0() {
|
|
2210
2200
|
Companion_instance_16 = this;
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2201
|
+
this.c3i_1 = Catch_getInstance().signature;
|
|
2202
|
+
this.d3i_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2213
2203
|
}
|
|
2214
2204
|
var Companion_instance_16;
|
|
2215
2205
|
function Companion_getInstance_6() {
|
|
@@ -2218,15 +2208,15 @@
|
|
|
2218
2208
|
return Companion_instance_16;
|
|
2219
2209
|
}
|
|
2220
2210
|
function _get_failureState__yid9tw_0($this) {
|
|
2221
|
-
return new StateBacktracking($this.
|
|
2211
|
+
return new StateBacktracking($this.g3i_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
2222
2212
|
}
|
|
2223
2213
|
function exceptionalState_0($this, exception) {
|
|
2224
|
-
return new StateException(exception, $this.
|
|
2214
|
+
return new StateException(exception, $this.g3i_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
2225
2215
|
}
|
|
2226
2216
|
function missingProcedure($this, ruleSources, missing) {
|
|
2227
|
-
var unknown = $this.
|
|
2217
|
+
var unknown = $this.g3i_1.j3b_1.get(Unknown_getInstance());
|
|
2228
2218
|
var tmp;
|
|
2229
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2219
|
+
if (equals(unknown, Unknown_getInstance().z2d_1)) {
|
|
2230
2220
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2231
2221
|
} else {
|
|
2232
2222
|
var tmp_0;
|
|
@@ -2245,12 +2235,12 @@
|
|
|
2245
2235
|
}
|
|
2246
2236
|
if (tmp$ret$0) {
|
|
2247
2237
|
var tmp_1;
|
|
2248
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2249
|
-
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.
|
|
2250
|
-
} else if (equals(unknown, Unknown_getInstance().
|
|
2238
|
+
if (equals(unknown, Unknown_getInstance().x2d_1)) {
|
|
2239
|
+
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.g3i_1, missing));
|
|
2240
|
+
} else if (equals(unknown, Unknown_getInstance().y2d_1)) {
|
|
2251
2241
|
// Inline function 'kotlin.also' call
|
|
2252
2242
|
var this_0 = _get_failureState__yid9tw_0($this);
|
|
2253
|
-
$this.
|
|
2243
|
+
$this.g3i_1.g1y().write(MissingPredicate_init_$Create$($this.g3i_1, missing));
|
|
2254
2244
|
tmp_1 = this_0;
|
|
2255
2245
|
} else {
|
|
2256
2246
|
tmp_1 = _get_failureState__yid9tw_0($this);
|
|
@@ -2264,26 +2254,26 @@
|
|
|
2264
2254
|
return tmp;
|
|
2265
2255
|
}
|
|
2266
2256
|
function _get_ignoreState__t4wl8y($this) {
|
|
2267
|
-
return new StateGoalSelection($this.
|
|
2257
|
+
return new StateGoalSelection($this.g3i_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3i_1.s3b_1.qr(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.g3g()));
|
|
2268
2258
|
}
|
|
2269
2259
|
function isCut($this, $receiver) {
|
|
2270
|
-
return $receiver.
|
|
2260
|
+
return $receiver.sw() && $receiver.castToAtom().f1() === '!';
|
|
2271
2261
|
}
|
|
2272
2262
|
function computeCutLimit($this, $receiver, magicCut) {
|
|
2273
2263
|
magicCut = magicCut === VOID ? false : magicCut;
|
|
2274
2264
|
var tmp;
|
|
2275
2265
|
if (magicCut) {
|
|
2276
|
-
tmp = firstOrNull($receiver.
|
|
2266
|
+
tmp = firstOrNull($receiver.c3c_1);
|
|
2277
2267
|
} else {
|
|
2278
|
-
var tmp0 = $receiver.
|
|
2268
|
+
var tmp0 = $receiver.c3c_1;
|
|
2279
2269
|
var tmp$ret$0;
|
|
2280
2270
|
$l$block: {
|
|
2281
2271
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2282
2272
|
var _iterator__ex2g4s = tmp0.n();
|
|
2283
2273
|
while (_iterator__ex2g4s.q()) {
|
|
2284
2274
|
var element = _iterator__ex2g4s.r();
|
|
2285
|
-
var tmp_0 = Companion_getInstance_6().
|
|
2286
|
-
var tmp0_safe_receiver = element.
|
|
2275
|
+
var tmp_0 = Companion_getInstance_6().d3i_1;
|
|
2276
|
+
var tmp0_safe_receiver = element.g3b_1;
|
|
2287
2277
|
if (!contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver))) {
|
|
2288
2278
|
tmp$ret$0 = element;
|
|
2289
2279
|
break $l$block;
|
|
@@ -2298,21 +2288,21 @@
|
|
|
2298
2288
|
if (cutLimit == null) {
|
|
2299
2289
|
tmp_1 = None_getInstance();
|
|
2300
2290
|
} else {
|
|
2301
|
-
tmp_1 = new Actual(cutLimit.
|
|
2291
|
+
tmp_1 = new Actual(cutLimit.z3b_1, cutLimit.g3b_1);
|
|
2302
2292
|
}
|
|
2303
2293
|
return tmp_1;
|
|
2304
2294
|
}
|
|
2305
2295
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2306
|
-
return cutLimit.
|
|
2296
|
+
return cutLimit.z3h() || cutLimit.y3h() > executionContext.z3b_1 || (cutLimit.y3h() === executionContext.z3b_1 && !equals(cutLimit.o1x(), executionContext.g3b_1));
|
|
2307
2297
|
}
|
|
2308
2298
|
function performCut($this, $receiver, cutLimit) {
|
|
2309
2299
|
var tmp;
|
|
2310
2300
|
if ($receiver === null) {
|
|
2311
2301
|
tmp = null;
|
|
2312
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull($receiver.
|
|
2302
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull($receiver.s3c()))) {
|
|
2313
2303
|
tmp = $receiver;
|
|
2314
2304
|
} else {
|
|
2315
|
-
var tmp_0 = $receiver.
|
|
2305
|
+
var tmp_0 = $receiver.f3d();
|
|
2316
2306
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2317
2307
|
var tmp_1;
|
|
2318
2308
|
if (any(cutCandidates)) {
|
|
@@ -2322,7 +2312,7 @@
|
|
|
2322
2312
|
var _iterator__ex2g4s = cutCandidates.n();
|
|
2323
2313
|
while (_iterator__ex2g4s.q()) {
|
|
2324
2314
|
var element = _iterator__ex2g4s.r();
|
|
2325
|
-
if (ensureNotNull(element.
|
|
2315
|
+
if (ensureNotNull(element.s3c()).z3b_1 <= cutLimit.y3h()) {
|
|
2326
2316
|
tmp$ret$0 = element;
|
|
2327
2317
|
break $l$block;
|
|
2328
2318
|
}
|
|
@@ -2330,7 +2320,7 @@
|
|
|
2330
2320
|
tmp$ret$0 = null;
|
|
2331
2321
|
}
|
|
2332
2322
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2333
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2323
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t3c();
|
|
2334
2324
|
} else {
|
|
2335
2325
|
tmp_1 = $receiver;
|
|
2336
2326
|
}
|
|
@@ -2340,9 +2330,9 @@
|
|
|
2340
2330
|
}
|
|
2341
2331
|
function _get_isTailRecursive__h5eso7($this, $receiver) {
|
|
2342
2332
|
var tmp;
|
|
2343
|
-
if ($receiver.
|
|
2333
|
+
if ($receiver.s3b_1.qr().tr() && equals($receiver.j3b_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().x2c_1)) {
|
|
2344
2334
|
// Inline function 'kotlin.let' call
|
|
2345
|
-
var tmp0_safe_receiver = ensureNotNull($receiver.
|
|
2335
|
+
var tmp0_safe_receiver = ensureNotNull($receiver.n3f()).asStruct();
|
|
2346
2336
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver);
|
|
2347
2337
|
var tmp_0;
|
|
2348
2338
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2350,9 +2340,9 @@
|
|
|
2350
2340
|
} else {
|
|
2351
2341
|
// Inline function 'kotlin.let' call
|
|
2352
2342
|
var tmp_1;
|
|
2353
|
-
var tmp0_safe_receiver_0 = $receiver.
|
|
2343
|
+
var tmp0_safe_receiver_0 = $receiver.g3b_1;
|
|
2354
2344
|
if (tmp1_safe_receiver.equals(tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
|
|
2355
|
-
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().
|
|
2345
|
+
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().c3i_1);
|
|
2356
2346
|
} else {
|
|
2357
2347
|
tmp_1 = false;
|
|
2358
2348
|
}
|
|
@@ -2379,7 +2369,7 @@
|
|
|
2379
2369
|
}
|
|
2380
2370
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2381
2371
|
return function (it) {
|
|
2382
|
-
return equals(ensureNotNull(it.
|
|
2372
|
+
return equals(ensureNotNull(it.s3c()).g3b_1, $cutLimit.o1x());
|
|
2383
2373
|
};
|
|
2384
2374
|
}
|
|
2385
2375
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
@@ -2388,30 +2378,30 @@
|
|
|
2388
2378
|
};
|
|
2389
2379
|
}
|
|
2390
2380
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2391
|
-
return it.
|
|
2381
|
+
return it.ax();
|
|
2392
2382
|
}
|
|
2393
2383
|
function StateRuleSelection(context) {
|
|
2394
2384
|
Companion_getInstance_6();
|
|
2395
2385
|
AbstractState.call(this, context);
|
|
2396
|
-
this.
|
|
2386
|
+
this.g3i_1 = context;
|
|
2397
2387
|
}
|
|
2398
2388
|
protoOf(StateRuleSelection).v8 = function () {
|
|
2399
|
-
return this.
|
|
2389
|
+
return this.g3i_1;
|
|
2400
2390
|
};
|
|
2401
|
-
protoOf(StateRuleSelection).
|
|
2402
|
-
var currentGoal = ensureNotNull(this.
|
|
2391
|
+
protoOf(StateRuleSelection).a3g = function () {
|
|
2392
|
+
var currentGoal = ensureNotNull(this.g3i_1.n3f());
|
|
2403
2393
|
var tmp;
|
|
2404
|
-
if (currentGoal.
|
|
2405
|
-
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.
|
|
2406
|
-
} else if (currentGoal.
|
|
2394
|
+
if (currentGoal.tx()) {
|
|
2395
|
+
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.g3i_1, extractSignature(ensureNotNull(this.g3i_1.g3b_1)), currentGoal.castToVar()));
|
|
2396
|
+
} else if (currentGoal.dx()) {
|
|
2407
2397
|
// Inline function 'kotlin.with' call
|
|
2408
|
-
var $this$with = this.
|
|
2398
|
+
var $this$with = this.g3i_1;
|
|
2409
2399
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2410
|
-
var ruleSources = sequenceOf([$this$with.
|
|
2400
|
+
var ruleSources = sequenceOf([$this$with.i3b_1.asTheory($this$with.h3b_1), $this$with.k3b_1, $this$with.l3b_1]);
|
|
2411
2401
|
var tmp_0;
|
|
2412
|
-
if (currentGoalStruct.
|
|
2402
|
+
if (currentGoalStruct.ux()) {
|
|
2413
2403
|
var tmp_1;
|
|
2414
|
-
if (currentGoalStruct.
|
|
2404
|
+
if (currentGoalStruct.vw()) {
|
|
2415
2405
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2416
2406
|
} else {
|
|
2417
2407
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
@@ -2422,7 +2412,7 @@
|
|
|
2422
2412
|
var cutLimit = computeCutLimit(this, $this$with, currentGoalStruct instanceof MagicCut);
|
|
2423
2413
|
// Inline function 'kotlin.let' call
|
|
2424
2414
|
var it = _get_ignoreState__t4wl8y(this);
|
|
2425
|
-
tmp_0 = it.
|
|
2415
|
+
tmp_0 = it.o3g(it.d3h_1.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(this, it.d3h_1.x3b_1, cutLimit)));
|
|
2426
2416
|
} else {
|
|
2427
2417
|
var tmp$ret$4;
|
|
2428
2418
|
$l$block: {
|
|
@@ -2440,10 +2430,10 @@
|
|
|
2440
2430
|
if (tmp$ret$4) {
|
|
2441
2431
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2442
2432
|
var tmp_2;
|
|
2443
|
-
if (_get_isTailRecursive__h5eso7(this, this.
|
|
2444
|
-
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.
|
|
2433
|
+
if (_get_isTailRecursive__h5eso7(this, this.g3i_1)) {
|
|
2434
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.g3i_1, rules));
|
|
2445
2435
|
} else {
|
|
2446
|
-
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.
|
|
2436
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.g3i_1, rules));
|
|
2447
2437
|
}
|
|
2448
2438
|
tmp_0 = tmp_2;
|
|
2449
2439
|
} else {
|
|
@@ -2453,43 +2443,43 @@
|
|
|
2453
2443
|
}
|
|
2454
2444
|
tmp = tmp_0;
|
|
2455
2445
|
} else {
|
|
2456
|
-
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.
|
|
2446
|
+
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.g3i_1, extractSignature(ensureNotNull(this.g3i_1.g3b_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2457
2447
|
}
|
|
2458
2448
|
return tmp;
|
|
2459
2449
|
};
|
|
2460
|
-
protoOf(StateRuleSelection).
|
|
2461
|
-
return this.
|
|
2450
|
+
protoOf(StateRuleSelection).j3g = function (context) {
|
|
2451
|
+
return this.o3g(context);
|
|
2462
2452
|
};
|
|
2463
2453
|
protoOf(StateRuleSelection).clone = function (context, $super) {
|
|
2464
2454
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleSelection) ? $super : THROW_CCE());
|
|
2465
2455
|
};
|
|
2466
|
-
protoOf(StateRuleSelection).
|
|
2456
|
+
protoOf(StateRuleSelection).o3g = function (context) {
|
|
2467
2457
|
return new StateRuleSelection(context);
|
|
2468
2458
|
};
|
|
2469
2459
|
protoOf(StateRuleSelection).toString = function () {
|
|
2470
|
-
return 'StateRuleSelection(context=' + this.
|
|
2460
|
+
return 'StateRuleSelection(context=' + this.g3i_1.toString() + ')';
|
|
2471
2461
|
};
|
|
2472
2462
|
protoOf(StateRuleSelection).hashCode = function () {
|
|
2473
|
-
return this.
|
|
2463
|
+
return this.g3i_1.hashCode();
|
|
2474
2464
|
};
|
|
2475
2465
|
protoOf(StateRuleSelection).equals = function (other) {
|
|
2476
2466
|
if (this === other)
|
|
2477
2467
|
return true;
|
|
2478
2468
|
if (!(other instanceof StateRuleSelection))
|
|
2479
2469
|
return false;
|
|
2480
|
-
if (!this.
|
|
2470
|
+
if (!this.g3i_1.equals(other.g3i_1))
|
|
2481
2471
|
return false;
|
|
2482
2472
|
return true;
|
|
2483
2473
|
};
|
|
2484
2474
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2485
2475
|
var tmp;
|
|
2486
|
-
if (rules.
|
|
2487
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2476
|
+
if (rules.sr()) {
|
|
2477
|
+
tmp = appendRules(_this__u8e3s4.x3b_1, rules.qr(), _this__u8e3s4);
|
|
2488
2478
|
} else {
|
|
2489
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2479
|
+
tmp = appendRules(_this__u8e3s4.x3b_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2490
2480
|
}
|
|
2491
2481
|
var newChoicePointContext = tmp;
|
|
2492
|
-
return _this__u8e3s4.
|
|
2482
|
+
return _this__u8e3s4.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2493
2483
|
}
|
|
2494
2484
|
function toGoals(_this__u8e3s4) {
|
|
2495
2485
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2497,8 +2487,8 @@
|
|
|
2497
2487
|
}
|
|
2498
2488
|
function unfoldGoals(_this__u8e3s4) {
|
|
2499
2489
|
var tmp;
|
|
2500
|
-
if (_this__u8e3s4.
|
|
2501
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2490
|
+
if (_this__u8e3s4.ix()) {
|
|
2491
|
+
var tmp_0 = _this__u8e3s4.castToTuple().bv();
|
|
2502
2492
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2503
2493
|
} else {
|
|
2504
2494
|
tmp = sequenceOf_0(_this__u8e3s4);
|
|
@@ -2507,28 +2497,28 @@
|
|
|
2507
2497
|
}
|
|
2508
2498
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2509
2499
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2510
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2500
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.n3f()).castToStruct();
|
|
2511
2501
|
var tmp0_goals = toGoals(currentGoal);
|
|
2512
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2513
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2502
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.g3b_1;
|
|
2503
|
+
var tmp2_depth = _this__u8e3s4.z3b_1 + 1 | 0;
|
|
2514
2504
|
// Inline function 'kotlin.Long.plus' call
|
|
2515
|
-
var this_0 = _this__u8e3s4.
|
|
2505
|
+
var this_0 = _this__u8e3s4.a3c_1;
|
|
2516
2506
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2517
2507
|
var tmp4_relevantVariables = emptySet();
|
|
2518
|
-
return _this__u8e3s4.
|
|
2508
|
+
return _this__u8e3s4.x3c(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);
|
|
2519
2509
|
}
|
|
2520
2510
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2521
|
-
return new Request(signature, goal.
|
|
2511
|
+
return new Request(signature, goal.yw(), _this__u8e3s4, startTime);
|
|
2522
2512
|
}
|
|
2523
2513
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2524
2514
|
var tmp;
|
|
2525
|
-
if (primitiveExecutions.
|
|
2526
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2515
|
+
if (primitiveExecutions.sr()) {
|
|
2516
|
+
tmp = appendPrimitives(_this__u8e3s4.x3b_1, primitiveExecutions.qr(), _this__u8e3s4);
|
|
2527
2517
|
} else {
|
|
2528
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2518
|
+
tmp = appendPrimitives(_this__u8e3s4.x3b_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2529
2519
|
}
|
|
2530
2520
|
var newChoicePointContext = tmp;
|
|
2531
|
-
return _this__u8e3s4.
|
|
2521
|
+
return _this__u8e3s4.x3c(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2532
2522
|
}
|
|
2533
2523
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2534
2524
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
@@ -2545,17 +2535,17 @@
|
|
|
2545
2535
|
}
|
|
2546
2536
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2547
2537
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2548
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2538
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.n3f()).castToStruct();
|
|
2549
2539
|
var tmp0_goals = toGoals(currentGoal);
|
|
2550
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2551
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2540
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.g3b_1;
|
|
2541
|
+
var tmp2_depth = _this__u8e3s4.z3b_1 + 1 | 0;
|
|
2552
2542
|
// Inline function 'kotlin.Long.plus' call
|
|
2553
|
-
var this_0 = _this__u8e3s4.
|
|
2543
|
+
var this_0 = _this__u8e3s4.a3c_1;
|
|
2554
2544
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2555
|
-
return _this__u8e3s4.
|
|
2545
|
+
return _this__u8e3s4.x3c(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);
|
|
2556
2546
|
}
|
|
2557
2547
|
function toGoals$lambda(it) {
|
|
2558
|
-
return it.
|
|
2548
|
+
return it.tx() ? Companion_getInstance_1().of('call', [it]) : it;
|
|
2559
2549
|
}
|
|
2560
2550
|
function unfoldGoals$lambda(it) {
|
|
2561
2551
|
return unfoldGoals(it);
|
|
@@ -2563,54 +2553,54 @@
|
|
|
2563
2553
|
function ensureRules$lambda(it) {
|
|
2564
2554
|
// Inline function 'kotlin.require' call
|
|
2565
2555
|
// Inline function 'kotlin.require' call
|
|
2566
|
-
if (!it.
|
|
2556
|
+
if (!it.fx()) {
|
|
2567
2557
|
var message = 'Failed requirement.';
|
|
2568
2558
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2569
2559
|
}
|
|
2570
2560
|
return it.castToRule();
|
|
2571
2561
|
}
|
|
2572
2562
|
function AbstractSolutionIterator(state) {
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2563
|
+
this.h3i_1 = state;
|
|
2564
|
+
this.i3i_1 = 0n;
|
|
2575
2565
|
}
|
|
2576
2566
|
protoOf(AbstractSolutionIterator).q = function () {
|
|
2577
2567
|
// Inline function 'kotlin.let' call
|
|
2578
|
-
var it = this.
|
|
2579
|
-
return !it.
|
|
2568
|
+
var it = this.h3i_1;
|
|
2569
|
+
return !it.h3g() || it.castToEndState().e3d();
|
|
2580
2570
|
};
|
|
2581
2571
|
protoOf(AbstractSolutionIterator).r = function () {
|
|
2582
2572
|
do {
|
|
2583
|
-
var previousState = this.
|
|
2573
|
+
var previousState = this.h3i_1;
|
|
2584
2574
|
var tmp = this;
|
|
2585
|
-
var tmp_0 = this.
|
|
2586
|
-
this.
|
|
2587
|
-
tmp.
|
|
2588
|
-
this.onStateTransition(previousState, this.
|
|
2575
|
+
var tmp_0 = this.h3i_1;
|
|
2576
|
+
this.i3i_1 = add(this.i3i_1, get_ONE());
|
|
2577
|
+
tmp.h3i_1 = this.j3i(tmp_0, this.i3i_1);
|
|
2578
|
+
this.onStateTransition(previousState, this.h3i_1, this.i3i_1);
|
|
2589
2579
|
}
|
|
2590
|
-
while (!this.
|
|
2591
|
-
return this.
|
|
2580
|
+
while (!this.h3i_1.h3g());
|
|
2581
|
+
return this.h3i_1.castToEndState().r2n();
|
|
2592
2582
|
};
|
|
2593
2583
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2594
2584
|
AbstractSolutionIterator.call(this, state);
|
|
2595
|
-
this.
|
|
2585
|
+
this.m3i_1 = onStateTransitionCallback;
|
|
2596
2586
|
}
|
|
2597
|
-
protoOf(SimpleSolutionIterator).
|
|
2587
|
+
protoOf(SimpleSolutionIterator).j3i = function (state, step) {
|
|
2598
2588
|
return state.next();
|
|
2599
2589
|
};
|
|
2600
|
-
protoOf(SimpleSolutionIterator).
|
|
2601
|
-
return this.
|
|
2590
|
+
protoOf(SimpleSolutionIterator).n3i = function (source, destination, index) {
|
|
2591
|
+
return this.m3i_1(source, destination, index);
|
|
2602
2592
|
};
|
|
2603
2593
|
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2604
|
-
return this.
|
|
2594
|
+
return this.n3i(source, destination, index);
|
|
2605
2595
|
};
|
|
2606
2596
|
function DefaultBuiltins() {
|
|
2607
2597
|
DefaultBuiltins_instance = this;
|
|
2608
2598
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2609
2599
|
}
|
|
2610
|
-
protoOf(DefaultBuiltins).
|
|
2600
|
+
protoOf(DefaultBuiltins).r2j = function () {
|
|
2611
2601
|
return listOf(Throw_getInstance());
|
|
2612
2602
|
};
|
|
2613
|
-
protoOf(DefaultBuiltins).
|
|
2603
|
+
protoOf(DefaultBuiltins).q2j = function () {
|
|
2614
2604
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
2615
2605
|
};
|
|
2616
2606
|
var DefaultBuiltins_instance;
|
|
@@ -2624,12 +2614,12 @@
|
|
|
2624
2614
|
var tmp_0;
|
|
2625
2615
|
var tmp_1;
|
|
2626
2616
|
if (isInterface(error, Struct)) {
|
|
2627
|
-
tmp_1 = error.
|
|
2617
|
+
tmp_1 = error.xw() === 'error';
|
|
2628
2618
|
} else {
|
|
2629
2619
|
tmp_1 = false;
|
|
2630
2620
|
}
|
|
2631
2621
|
if (tmp_1) {
|
|
2632
|
-
var containsArg = error.
|
|
2622
|
+
var containsArg = error.rw();
|
|
2633
2623
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
2634
2624
|
} else {
|
|
2635
2625
|
tmp_0 = false;
|
|
@@ -2637,25 +2627,25 @@
|
|
|
2637
2627
|
if (tmp_0) {
|
|
2638
2628
|
var tmp_2 = Companion_instance_14;
|
|
2639
2629
|
var tmp_3 = error.get(0);
|
|
2640
|
-
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.
|
|
2630
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.rw() > 1 ? error.get(1) : null);
|
|
2641
2631
|
} else {
|
|
2642
|
-
tmp = Companion_instance_13.
|
|
2632
|
+
tmp = Companion_instance_13.s29(error, context);
|
|
2643
2633
|
}
|
|
2644
2634
|
return tmp;
|
|
2645
2635
|
}
|
|
2646
2636
|
function Throw() {
|
|
2647
2637
|
Throw_instance = this;
|
|
2648
2638
|
UnaryPredicate.call(this, 'throw');
|
|
2649
|
-
this.
|
|
2639
|
+
this.v3i_1 = '`throw(+Ball)`\n\nRaises `Ball` as an exception: resolution unwinds to the innermost enclosing `catch/3` whose catcher unifies with `Ball`, or halts the query if none does. A ball shaped like `error(Type, Context)` (or `error(Type)`) is raised as the standard error of that `Type`, any other term as a user-defined exception carrying it. `Ball` must be instantiated, otherwise an instantiation error is raised instead.\n\n**Examples**\n\n```prolog\n?- catch(throw(my_error), E, true).\nE = my_error.\n\n?- throw(error(type_error(integer, a), my_context)).\nthrows error(type_error(integer, a), _).\n\n?- throw(_).\nthrows error(instantiation_error, _).\n```';
|
|
2650
2640
|
}
|
|
2651
2641
|
protoOf(Throw).i1x = function () {
|
|
2652
|
-
return this.
|
|
2642
|
+
return this.v3i_1;
|
|
2653
2643
|
};
|
|
2654
|
-
protoOf(Throw).
|
|
2655
|
-
return sequenceOf_0(Companion_getInstance_4().
|
|
2644
|
+
protoOf(Throw).m2z = function (_this__u8e3s4, first) {
|
|
2645
|
+
return sequenceOf_0(Companion_getInstance_4().t2k(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.t(0)), VOID, []));
|
|
2656
2646
|
};
|
|
2657
|
-
protoOf(Throw).
|
|
2658
|
-
return this.
|
|
2647
|
+
protoOf(Throw).k2o = function (_this__u8e3s4, first) {
|
|
2648
|
+
return this.m2z(_this__u8e3s4, first);
|
|
2659
2649
|
};
|
|
2660
2650
|
var Throw_instance;
|
|
2661
2651
|
function Throw_getInstance() {
|
|
@@ -2666,15 +2656,15 @@
|
|
|
2666
2656
|
function Call() {
|
|
2667
2657
|
Call_instance = this;
|
|
2668
2658
|
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
2669
|
-
this.
|
|
2659
|
+
this.z3i_1 = '`call(+Goal)`\n\nCalls `Goal`, which allows executing terms built or bound at runtime. `Goal` must be callable: a variable raises an instantiation error, a number or other non-callable term a type error (`callable`). `call/1` is opaque to cut: a `!` inside `Goal` only prunes the choice points created by `Goal` itself.\n\n**Examples**\n\n```prolog\n?- G = member(X, [a, b]), call(G).\nX = a ; X = b.\n\n?- findall(X, (member(X, [1, 2, 3]), call(!)), L).\nL = [1, 2, 3].\n\n?- call(1).\nthrows error(type_error(callable, 1), _).\n```';
|
|
2670
2660
|
}
|
|
2671
2661
|
protoOf(Call).i1x = function () {
|
|
2672
|
-
return this.
|
|
2662
|
+
return this.z3i_1;
|
|
2673
2663
|
};
|
|
2674
|
-
protoOf(Call).
|
|
2664
|
+
protoOf(Call).o2o = function (_this__u8e3s4) {
|
|
2675
2665
|
return listOf(_this__u8e3s4.varOf('G'));
|
|
2676
2666
|
};
|
|
2677
|
-
protoOf(Call).
|
|
2667
|
+
protoOf(Call).p2o = function (_this__u8e3s4) {
|
|
2678
2668
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2679
2669
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2680
2670
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('G')]), _this__u8e3s4.varOf('G')]);
|
|
@@ -2688,15 +2678,15 @@
|
|
|
2688
2678
|
function Catch() {
|
|
2689
2679
|
Catch_instance = this;
|
|
2690
2680
|
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2691
|
-
this.
|
|
2681
|
+
this.d3j_1 = '`catch(+Goal, ?Catcher, +Recovery)`\n\nCalls `Goal`, behaving exactly like `call/1` (including backtracking into `Goal`) as long as no exception is raised. If proving `Goal` raises an exception, via `throw/1` or a built-in error, whose ball unifies with `Catcher`, the bindings and choice points created by `Goal` are discarded and `Recovery` is called instead; otherwise the exception propagates to the outer `catch/3` calls.\n\n**Examples**\n\n```prolog\n?- catch(X is 1 / 0, error(E, _), true).\nE = evaluation_error(zero_divisor).\n\n?- catch(throw(oops), oops, X = recovered).\nX = recovered.\n\n?- catch(member(X, [1, 2]), _, true).\nX = 1 ; X = 2.\n\n?- catch(catch(throw(oops), other, true), E, true).\nE = oops.\n```';
|
|
2692
2682
|
}
|
|
2693
2683
|
protoOf(Catch).i1x = function () {
|
|
2694
|
-
return this.
|
|
2684
|
+
return this.d3j_1;
|
|
2695
2685
|
};
|
|
2696
|
-
protoOf(Catch).
|
|
2686
|
+
protoOf(Catch).o2o = function (_this__u8e3s4) {
|
|
2697
2687
|
return listOf_0([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
2698
2688
|
};
|
|
2699
|
-
protoOf(Catch).
|
|
2689
|
+
protoOf(Catch).p2o = function (_this__u8e3s4) {
|
|
2700
2690
|
return _this__u8e3s4.varOf('G');
|
|
2701
2691
|
};
|
|
2702
2692
|
var Catch_instance;
|
|
@@ -2708,15 +2698,15 @@
|
|
|
2708
2698
|
function Comma() {
|
|
2709
2699
|
Comma_instance = this;
|
|
2710
2700
|
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
2711
|
-
this.
|
|
2701
|
+
this.h3j_1 = '`(+First, +Second)`\n\nConjunction: proves `First` and then `Second`, backtracking into `First` for further solutions whenever `Second` fails. Conjunction is transparent to cut: a `!` occurring in either conjunct cuts the clause in which the conjunction appears.\n\n**Examples**\n\n```prolog\n?- X = 1, Y is X + 1.\nX = 1, Y = 2.\n\n?- member(X, [1, 2, 3]), X > 1.\nX = 2 ; X = 3.\n\n?- X = 1, X = 2.\nno.\n```';
|
|
2712
2702
|
}
|
|
2713
2703
|
protoOf(Comma).i1x = function () {
|
|
2714
|
-
return this.
|
|
2704
|
+
return this.h3j_1;
|
|
2715
2705
|
};
|
|
2716
|
-
protoOf(Comma).
|
|
2706
|
+
protoOf(Comma).o2o = function (_this__u8e3s4) {
|
|
2717
2707
|
return listOf_0([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2718
2708
|
};
|
|
2719
|
-
protoOf(Comma).
|
|
2709
|
+
protoOf(Comma).p2o = function (_this__u8e3s4) {
|
|
2720
2710
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2721
2711
|
};
|
|
2722
2712
|
var Comma_instance;
|
|
@@ -2728,10 +2718,10 @@
|
|
|
2728
2718
|
function Cut() {
|
|
2729
2719
|
Cut_instance = this;
|
|
2730
2720
|
RuleWrapper_init_$Init$('!', 0, VOID, this);
|
|
2731
|
-
this.
|
|
2721
|
+
this.l3j_1 = '`!`\n\nCut: always succeeds, committing to the choices made since the current clause was selected. The remaining alternative clauses of the predicate being proved, and the remaining alternatives of the goals at the left of `!` in the clause body, are discarded. Within `call/1`, `\\+/1`, `findall/3` and similar meta-calls, cut is local to the called goal.\n\n**Examples**\n\n```prolog\n?- assertz((first(X) :- member(X, [a, b, c]), !)), findall(X, first(X), L).\nL = [a].\n\n?- findall(X, (member(X, [a, b, c]), !), L).\nL = [a].\n\n?- findall(X, (member(X, [a, b, c]), call(!)), L).\nL = [a, b, c].\n```';
|
|
2732
2722
|
}
|
|
2733
2723
|
protoOf(Cut).i1x = function () {
|
|
2734
|
-
return this.
|
|
2724
|
+
return this.l3j_1;
|
|
2735
2725
|
};
|
|
2736
2726
|
var Cut_instance;
|
|
2737
2727
|
function Cut_getInstance() {
|
|
@@ -2743,7 +2733,7 @@
|
|
|
2743
2733
|
Fail_instance = this;
|
|
2744
2734
|
NegationAsFailure.call(this);
|
|
2745
2735
|
}
|
|
2746
|
-
protoOf(Fail).
|
|
2736
|
+
protoOf(Fail).p2o = function (_this__u8e3s4) {
|
|
2747
2737
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2748
2738
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2749
2739
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('X')]);
|
|
@@ -2761,7 +2751,7 @@
|
|
|
2761
2751
|
Success_instance = this;
|
|
2762
2752
|
NegationAsFailure.call(this);
|
|
2763
2753
|
}
|
|
2764
|
-
protoOf(Success).
|
|
2754
|
+
protoOf(Success).p2o = function (_this__u8e3s4) {
|
|
2765
2755
|
return _this__u8e3s4.truthOf(true);
|
|
2766
2756
|
};
|
|
2767
2757
|
var Success_instance;
|
|
@@ -2771,8 +2761,8 @@
|
|
|
2771
2761
|
return Success_instance;
|
|
2772
2762
|
}
|
|
2773
2763
|
function Companion_1() {
|
|
2774
|
-
this.
|
|
2775
|
-
this.
|
|
2764
|
+
this.y3j_1 = '\\+';
|
|
2765
|
+
this.z3j_1 = 1;
|
|
2776
2766
|
}
|
|
2777
2767
|
var Companion_instance_17;
|
|
2778
2768
|
function Companion_getInstance_7() {
|
|
@@ -2780,12 +2770,12 @@
|
|
|
2780
2770
|
}
|
|
2781
2771
|
function NegationAsFailure() {
|
|
2782
2772
|
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2783
|
-
this.
|
|
2773
|
+
this.t3j_1 = '`\\+ +Goal`\n\nNegation as failure: succeeds if `Goal` has no solution, and fails as soon as `Goal` has one. It never binds the variables of `Goal`, and is equivalent to `not/1`. `Goal` must be callable, otherwise an instantiation or type error is raised.\n\n**Examples**\n\n```prolog\n?- \\+ member(d, [a, b, c]).\nyes.\n\n?- \\+ X = 1.\nno.\n\n?- \\+ (X = 1, X = 2), var(X).\nyes.\n\n?- \\+ 3.\nthrows error(type_error(callable, 3), _).\n```';
|
|
2784
2774
|
}
|
|
2785
2775
|
protoOf(NegationAsFailure).i1x = function () {
|
|
2786
|
-
return this.
|
|
2776
|
+
return this.t3j_1;
|
|
2787
2777
|
};
|
|
2788
|
-
protoOf(NegationAsFailure).
|
|
2778
|
+
protoOf(NegationAsFailure).o2o = function (_this__u8e3s4) {
|
|
2789
2779
|
return listOf(_this__u8e3s4.varOf('X'));
|
|
2790
2780
|
};
|
|
2791
2781
|
//region block: post-declaration
|
|
@@ -2810,26 +2800,26 @@
|
|
|
2810
2800
|
protoOf(PrologSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2811
2801
|
protoOf(PrologSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2812
2802
|
protoOf(PrologSolverFactory).newBuilder = newBuilder;
|
|
2813
|
-
protoOf(PrologSolverFactory).
|
|
2814
|
-
protoOf(PrologSolverFactory).
|
|
2815
|
-
protoOf(PrologSolverFactory).
|
|
2816
|
-
protoOf(PrologSolverFactory).
|
|
2817
|
-
protoOf(PrologSolverFactory).
|
|
2818
|
-
protoOf(PrologSolverFactory).
|
|
2819
|
-
protoOf(PrologSolverFactory).
|
|
2820
|
-
protoOf(PrologSolverFactory).
|
|
2821
|
-
protoOf(PrologSolverFactory).
|
|
2822
|
-
protoOf(PrologSolverFactory).
|
|
2803
|
+
protoOf(PrologSolverFactory).b21 = get_defaultRuntime;
|
|
2804
|
+
protoOf(PrologSolverFactory).d21 = get_defaultUnificator;
|
|
2805
|
+
protoOf(PrologSolverFactory).e21 = get_defaultFlags;
|
|
2806
|
+
protoOf(PrologSolverFactory).h21 = get_defaultStaticKb;
|
|
2807
|
+
protoOf(PrologSolverFactory).i21 = get_defaultDynamicKb;
|
|
2808
|
+
protoOf(PrologSolverFactory).j21 = get_defaultInputChannel;
|
|
2809
|
+
protoOf(PrologSolverFactory).k21 = get_defaultOutputChannel;
|
|
2810
|
+
protoOf(PrologSolverFactory).l21 = get_defaultErrorChannel;
|
|
2811
|
+
protoOf(PrologSolverFactory).m21 = get_defaultWarningsChannel;
|
|
2812
|
+
protoOf(PrologSolverFactory).u21 = solverWithDefaultBuiltins;
|
|
2823
2813
|
protoOf(PrologSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2824
|
-
protoOf(PrologSolverFactory).
|
|
2814
|
+
protoOf(PrologSolverFactory).w21 = mutableSolverWithDefaultBuiltins;
|
|
2825
2815
|
protoOf(PrologSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2826
|
-
protoOf(AbstractState).
|
|
2816
|
+
protoOf(AbstractState).h3g = get_isEndState;
|
|
2827
2817
|
protoOf(AbstractState).asEndState = asEndState;
|
|
2828
2818
|
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2829
2819
|
protoOf(AbstractState).clone = clone;
|
|
2830
|
-
protoOf(AbstractEndState).
|
|
2831
|
-
protoOf(AbstractEndState).
|
|
2832
|
-
protoOf(AbstractEndState).
|
|
2820
|
+
protoOf(AbstractEndState).h3g = get_isEndState_0;
|
|
2821
|
+
protoOf(AbstractEndState).i3g = asEndState_0;
|
|
2822
|
+
protoOf(AbstractEndState).e3d = get_hasOpenAlternatives;
|
|
2833
2823
|
//endregion
|
|
2834
2824
|
//region block: init
|
|
2835
2825
|
PrologSolverFactory_instance = new PrologSolverFactory();
|