@tuprolog/arg2p 0.16.7 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +2734 -2734
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +461 -461
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +245 -245
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +155 -155
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +15 -15
- package/2p-dsl-unify.js.map +1 -1
- package/2p-io-lib.js +910 -910
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +127 -127
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1572 -1572
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +91 -91
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-prolog.js +972 -972
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +4409 -4409
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1693 -1693
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +363 -363
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +448 -448
- package/2p-utils.js.map +1 -1
- package/arg2p-causality-solver.js +267 -267
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +3177 -2107
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +218 -184
- package/arg2p.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2682 -2647
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1544 -1544
- package/kt-math.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +51 -51
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +693 -693
- package/okio-parent-okio.js.map +1 -1
- package/package.json +1 -1
package/2p-solve-prolog.js
CHANGED
|
@@ -38,34 +38,34 @@
|
|
|
38
38
|
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
39
39
|
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
40
40
|
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
41
|
-
var toString = kotlin_kotlin.$_$.
|
|
42
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
41
|
+
var toString = kotlin_kotlin.$_$.y7;
|
|
42
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
43
43
|
var Unit_instance = kotlin_kotlin.$_$.q;
|
|
44
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
44
|
+
var constructCallableReference = kotlin_kotlin.$_$.z6;
|
|
45
45
|
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.m2;
|
|
46
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
47
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
48
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
46
|
+
var protoOf = kotlin_kotlin.$_$.v7;
|
|
47
|
+
var THROW_CCE = kotlin_kotlin.$_$.kc;
|
|
48
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.y5;
|
|
49
49
|
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.o4;
|
|
50
50
|
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.q4;
|
|
51
51
|
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.m4;
|
|
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.$_$.v8;
|
|
53
|
+
var initMetadataForClass = kotlin_kotlin.$_$.i7;
|
|
54
|
+
var ensureNotNull = kotlin_kotlin.$_$.qc;
|
|
55
|
+
var fromInt = kotlin_kotlin.$_$.g6;
|
|
56
|
+
var add = kotlin_kotlin.$_$.b6;
|
|
57
|
+
var hashCode = kotlin_kotlin.$_$.h7;
|
|
58
|
+
var equals = kotlin_kotlin.$_$.b7;
|
|
59
|
+
var CoroutineImpl = kotlin_kotlin.$_$.w5;
|
|
60
|
+
var SequenceScope = kotlin_kotlin.$_$.r8;
|
|
61
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v5;
|
|
62
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.l7;
|
|
63
|
+
var sequence = kotlin_kotlin.$_$.y9;
|
|
64
|
+
var toString_0 = kotlin_kotlin.$_$.xc;
|
|
65
|
+
var objectCreate = kotlin_kotlin.$_$.u7;
|
|
66
|
+
var listOf = kotlin_kotlin.$_$.y3;
|
|
67
67
|
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.p4;
|
|
68
|
-
var to = kotlin_kotlin.$_$.
|
|
68
|
+
var to = kotlin_kotlin.$_$.yc;
|
|
69
69
|
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.s3;
|
|
70
70
|
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.t3;
|
|
71
71
|
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.u3;
|
|
@@ -73,32 +73,32 @@
|
|
|
73
73
|
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.p3;
|
|
74
74
|
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.q3;
|
|
75
75
|
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.v3;
|
|
76
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
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 asSequence_0 = kotlin_kotlin.$_$.p2;
|
|
77
|
+
var emptySequence = kotlin_kotlin.$_$.a9;
|
|
78
|
+
var plus = kotlin_kotlin.$_$.u9;
|
|
79
|
+
var KProperty1 = kotlin_kotlin.$_$.q8;
|
|
80
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.f7;
|
|
81
|
+
var flatMap = kotlin_kotlin.$_$.g9;
|
|
82
|
+
var distinct = kotlin_kotlin.$_$.y8;
|
|
83
83
|
var cached = kotlin_it_unibo_tuprolog_utils.$_$.v;
|
|
84
84
|
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
85
|
-
var filter = kotlin_kotlin.$_$.
|
|
86
|
-
var map = kotlin_kotlin.$_$.
|
|
87
|
-
var toList = kotlin_kotlin.$_$.
|
|
85
|
+
var filter = kotlin_kotlin.$_$.d9;
|
|
86
|
+
var map = kotlin_kotlin.$_$.q9;
|
|
87
|
+
var toList = kotlin_kotlin.$_$.fa;
|
|
88
88
|
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
89
89
|
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
90
90
|
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
91
91
|
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.$_$.
|
|
92
|
+
var emptySet = kotlin_kotlin.$_$.i3;
|
|
93
|
+
var lazy = kotlin_kotlin.$_$.tc;
|
|
94
|
+
var contains = kotlin_kotlin.$_$.w8;
|
|
95
95
|
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.s1;
|
|
96
96
|
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
97
97
|
var update = kotlin_it_unibo_tuprolog_solve.$_$.t1;
|
|
98
98
|
var apply = kotlin_it_unibo_tuprolog_solve.$_$.g3;
|
|
99
99
|
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.f3;
|
|
100
100
|
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.h3;
|
|
101
|
-
var getBigIntHashCode = kotlin_kotlin.$_$.
|
|
101
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.d7;
|
|
102
102
|
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.j3;
|
|
103
103
|
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.k3;
|
|
104
104
|
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.i3;
|
|
@@ -126,29 +126,29 @@
|
|
|
126
126
|
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.i4;
|
|
127
127
|
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.x1;
|
|
128
128
|
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.l4;
|
|
129
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
130
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
131
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
132
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
133
|
-
var subtract = kotlin_kotlin.$_$.
|
|
129
|
+
var initMetadataForObject = kotlin_kotlin.$_$.m7;
|
|
130
|
+
var defineProp = kotlin_kotlin.$_$.a7;
|
|
131
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.j7;
|
|
132
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
133
|
+
var subtract = kotlin_kotlin.$_$.o6;
|
|
134
134
|
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.d2;
|
|
135
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
136
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
137
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
138
|
-
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.
|
|
135
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.s1;
|
|
136
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.k7;
|
|
137
|
+
var getKClass = kotlin_kotlin.$_$.o8;
|
|
138
|
+
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
139
139
|
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
|
|
140
140
|
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
141
141
|
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
142
142
|
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.l1;
|
|
143
143
|
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
144
|
-
var toSet = kotlin_kotlin.$_$.
|
|
145
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
144
|
+
var toSet = kotlin_kotlin.$_$.ha;
|
|
145
|
+
var plus_1 = kotlin_kotlin.$_$.p4;
|
|
146
146
|
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
147
|
-
var drop = kotlin_kotlin.$_$.
|
|
148
|
-
var first = kotlin_kotlin.$_$.
|
|
147
|
+
var drop = kotlin_kotlin.$_$.z8;
|
|
148
|
+
var first = kotlin_kotlin.$_$.f9;
|
|
149
149
|
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.c2;
|
|
150
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
151
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
150
|
+
var isInterface = kotlin_kotlin.$_$.p7;
|
|
151
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
152
152
|
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.l2;
|
|
153
153
|
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
154
154
|
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.n4;
|
|
@@ -157,23 +157,23 @@
|
|
|
157
157
|
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.x;
|
|
158
158
|
var Companion_instance_11 = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
159
159
|
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.f3;
|
|
160
|
-
var setOf = kotlin_kotlin.$_$.
|
|
160
|
+
var setOf = kotlin_kotlin.$_$.y4;
|
|
161
161
|
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h1;
|
|
162
162
|
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
163
163
|
var Companion_instance_12 = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
164
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
165
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
166
|
-
var any = kotlin_kotlin.$_$.
|
|
164
|
+
var contains_0 = kotlin_kotlin.$_$.t2;
|
|
165
|
+
var firstOrNull = kotlin_kotlin.$_$.e9;
|
|
166
|
+
var any = kotlin_kotlin.$_$.t8;
|
|
167
167
|
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
168
168
|
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.u;
|
|
169
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
169
|
+
var sequenceOf = kotlin_kotlin.$_$.w9;
|
|
170
170
|
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
171
|
-
var sequenceOf_0 = kotlin_kotlin.$_$.
|
|
171
|
+
var sequenceOf_0 = kotlin_kotlin.$_$.x9;
|
|
172
172
|
var Request = kotlin_it_unibo_tuprolog_solve.$_$.u2;
|
|
173
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
173
|
+
var get_ONE = kotlin_kotlin.$_$.a6;
|
|
174
174
|
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
175
175
|
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
176
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
176
|
+
var listOf_0 = kotlin_kotlin.$_$.z3;
|
|
177
177
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
178
178
|
var Companion_instance_13 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
179
179
|
var Companion_instance_14 = kotlin_it_unibo_tuprolog_solve.$_$.d1;
|
|
@@ -206,20 +206,20 @@
|
|
|
206
206
|
var tmp0_elvis_lhs = this.asEndState();
|
|
207
207
|
var tmp;
|
|
208
208
|
if (tmp0_elvis_lhs == null) {
|
|
209
|
-
throw ClassCastException_init_$Create$('Cannot cast ' + toString(this) + ' to ' + getKClass(EndState).
|
|
209
|
+
throw ClassCastException_init_$Create$('Cannot cast ' + toString(this) + ' to ' + getKClass(EndState).l9());
|
|
210
210
|
} else {
|
|
211
211
|
tmp = tmp0_elvis_lhs;
|
|
212
212
|
}
|
|
213
213
|
return tmp;
|
|
214
214
|
}
|
|
215
215
|
function clone(context, $super) {
|
|
216
|
-
context = context === VOID ? this.
|
|
217
|
-
return $super === VOID ? this.
|
|
216
|
+
context = context === VOID ? this.r8() : context;
|
|
217
|
+
return $super === VOID ? this.a3i(context) : $super.a3i.call(this, context);
|
|
218
218
|
}
|
|
219
219
|
initMetadataForInterface(State, 'State');
|
|
220
220
|
initMetadataForClass(AbstractState, 'AbstractState', VOID, VOID, [State]);
|
|
221
221
|
function get_hasOpenAlternatives() {
|
|
222
|
-
return this.
|
|
222
|
+
return this.i2n().e1z() && this.r8().v3e();
|
|
223
223
|
}
|
|
224
224
|
function get_isEndState_0() {
|
|
225
225
|
return true;
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
return this;
|
|
229
229
|
}
|
|
230
230
|
function asEndState_1() {
|
|
231
|
-
return this.
|
|
231
|
+
return this.z3h();
|
|
232
232
|
}
|
|
233
233
|
initMetadataForInterface(EndState, 'EndState', VOID, VOID, [State]);
|
|
234
234
|
initMetadataForClass(AbstractEndState, 'AbstractEndState', VOID, AbstractState, [EndState]);
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
initMetadataForCompanion(Companion_1);
|
|
261
261
|
//endregion
|
|
262
262
|
function AbstractPrologSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
263
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
263
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
264
264
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
265
265
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
266
266
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -270,17 +270,17 @@
|
|
|
270
270
|
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
271
271
|
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
272
272
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
273
|
-
AbstractPrologSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
273
|
+
AbstractPrologSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.r21(stdIn), Companion_instance_5.u21(stdOut, stdErr, warnings), trustKb);
|
|
274
274
|
return $this;
|
|
275
275
|
}
|
|
276
276
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
277
277
|
// Inline function 'kotlin.require' call
|
|
278
278
|
// Inline function 'kotlin.require' call
|
|
279
|
-
if (!(destination.
|
|
279
|
+
if (!(destination.r8().r3d_1 === index)) {
|
|
280
280
|
var message = 'Failed requirement.';
|
|
281
281
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
282
282
|
}
|
|
283
|
-
$this.
|
|
283
|
+
$this.y3d(destination.r8());
|
|
284
284
|
}
|
|
285
285
|
function AbstractPrologSolver$updateCurrentContextAfterStateTransition$ref(p0) {
|
|
286
286
|
return constructCallableReference(function (p0_0, p1, p2) {
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
}, 3, 0, 105, 'updateCurrentContextAfterStateTransition', [p0]);
|
|
291
291
|
}
|
|
292
292
|
function AbstractPrologSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
293
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
293
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
294
294
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
295
295
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
296
296
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -300,101 +300,101 @@
|
|
|
300
300
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
301
301
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
302
302
|
}
|
|
303
|
-
protoOf(AbstractPrologSolver).
|
|
304
|
-
this.
|
|
303
|
+
protoOf(AbstractPrologSolver).y3d = function (_set____db54di) {
|
|
304
|
+
this.x3d_1 = _set____db54di;
|
|
305
305
|
};
|
|
306
|
-
protoOf(AbstractPrologSolver).
|
|
307
|
-
return this.
|
|
306
|
+
protoOf(AbstractPrologSolver).x2f = function (_set____db54di) {
|
|
307
|
+
return this.y3d(_set____db54di instanceof PrologExecutionContext ? _set____db54di : THROW_CCE());
|
|
308
308
|
};
|
|
309
|
-
protoOf(AbstractPrologSolver).
|
|
310
|
-
var tmp = this.
|
|
309
|
+
protoOf(AbstractPrologSolver).v2f = function () {
|
|
310
|
+
var tmp = this.x3d_1;
|
|
311
311
|
if (!(tmp == null))
|
|
312
312
|
return tmp;
|
|
313
313
|
else {
|
|
314
314
|
throwUninitializedPropertyAccessException('currentContext');
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
|
-
protoOf(AbstractPrologSolver).
|
|
317
|
+
protoOf(AbstractPrologSolver).w2f = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
318
318
|
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
319
|
};
|
|
320
|
-
protoOf(AbstractPrologSolver).
|
|
321
|
-
var tmp0_unificator = this.
|
|
322
|
-
var tmp1_libraries = this.
|
|
323
|
-
var tmp2_flags = this.
|
|
324
|
-
var tmp3_staticKb = this.
|
|
325
|
-
var tmp4_dynamicKb = this.
|
|
326
|
-
var tmp5_operators = this.
|
|
327
|
-
var tmp6_inputChannels = this.
|
|
328
|
-
var tmp7_outputChannels = this.
|
|
329
|
-
var tmp8_customData = this.
|
|
320
|
+
protoOf(AbstractPrologSolver).d2g = function (goal, options) {
|
|
321
|
+
var tmp0_unificator = this.z1n();
|
|
322
|
+
var tmp1_libraries = this.y1x();
|
|
323
|
+
var tmp2_flags = this.z1x();
|
|
324
|
+
var tmp3_staticKb = this.a1y().toImmutableTheory();
|
|
325
|
+
var tmp4_dynamicKb = this.b1y().toMutableTheory();
|
|
326
|
+
var tmp5_operators = this.h1y();
|
|
327
|
+
var tmp6_inputChannels = this.c1y();
|
|
328
|
+
var tmp7_outputChannels = this.d1y();
|
|
329
|
+
var tmp8_customData = this.v2f().g3d_1;
|
|
330
330
|
var tmp9_startTime = currentTimeInstant();
|
|
331
|
-
var tmp10_maxDuration = options.
|
|
332
|
-
this.
|
|
333
|
-
var tmp = new StateInit(this.
|
|
334
|
-
return asSequence(this.
|
|
331
|
+
var tmp10_maxDuration = options.t20();
|
|
332
|
+
this.y3d(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));
|
|
333
|
+
var tmp = new StateInit(this.v2f());
|
|
334
|
+
return asSequence(this.z3d(tmp, AbstractPrologSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
335
335
|
};
|
|
336
336
|
protoOf(AbstractPrologSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
337
337
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof AbstractPrologSolver) ? $super : THROW_CCE());
|
|
338
338
|
};
|
|
339
339
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
340
340
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
341
|
+
this.e3e_1 = alternatives;
|
|
342
|
+
this.f3e_1 = executionContext;
|
|
343
|
+
this.g3e_1 = parent;
|
|
344
|
+
this.h3e_1 = depth;
|
|
345
345
|
}
|
|
346
|
-
protoOf(Primitives).
|
|
347
|
-
return this.
|
|
346
|
+
protoOf(Primitives).i3e = function () {
|
|
347
|
+
return this.e3e_1;
|
|
348
348
|
};
|
|
349
|
-
protoOf(Primitives).
|
|
350
|
-
return this.
|
|
349
|
+
protoOf(Primitives).j3e = function () {
|
|
350
|
+
return this.f3e_1;
|
|
351
351
|
};
|
|
352
|
-
protoOf(Primitives).
|
|
353
|
-
return this.
|
|
352
|
+
protoOf(Primitives).k3e = function () {
|
|
353
|
+
return this.g3e_1;
|
|
354
354
|
};
|
|
355
|
-
protoOf(Primitives).
|
|
356
|
-
return this.
|
|
355
|
+
protoOf(Primitives).l3e = function () {
|
|
356
|
+
return this.h3e_1;
|
|
357
357
|
};
|
|
358
358
|
protoOf(Primitives).toString = function () {
|
|
359
359
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
360
360
|
};
|
|
361
|
-
protoOf(Primitives).
|
|
361
|
+
protoOf(Primitives).m3e = function () {
|
|
362
362
|
return 'Primitives';
|
|
363
363
|
};
|
|
364
|
-
protoOf(Primitives).
|
|
365
|
-
var tmp0_$this = ensureNotNull(this.
|
|
366
|
-
var tmp1_primitives = this.
|
|
364
|
+
protoOf(Primitives).n3e = function (context) {
|
|
365
|
+
var tmp0_$this = ensureNotNull(this.f3e_1);
|
|
366
|
+
var tmp1_primitives = this.e3e_1;
|
|
367
367
|
// Inline function 'kotlin.Long.plus' call
|
|
368
|
-
var this_0 = context.
|
|
368
|
+
var this_0 = context.r3d_1;
|
|
369
369
|
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).
|
|
370
|
+
var tmp3_startTime = context.m3d_1;
|
|
371
|
+
var tmp4_flags = context.a3d_1;
|
|
372
|
+
var tmp5_dynamicKb = context.c3d_1;
|
|
373
|
+
var tmp6_staticKb = context.b3d_1;
|
|
374
|
+
var tmp7_operators = context.d3d_1;
|
|
375
|
+
var tmp8_inputChannels = context.e3d_1;
|
|
376
|
+
var tmp9_outputChannels = context.f3d_1;
|
|
377
|
+
var tmp10_libraries = context.z3c_1;
|
|
378
|
+
var tmp11_customData = context.g3d_1.discardEphemeral();
|
|
379
|
+
var tempContext = tmp0_$this.o3e(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);
|
|
380
|
+
var nextChoicePointContext = this.p3e(this.e3e_1.nr(), tempContext);
|
|
381
|
+
return tempContext.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
382
|
+
};
|
|
383
|
+
protoOf(Primitives).q3e = function (alternatives, executionContext, parent, depth) {
|
|
384
384
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
385
385
|
};
|
|
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.
|
|
386
|
+
protoOf(Primitives).p3e = function (alternatives, executionContext, parent, depth, $super) {
|
|
387
|
+
alternatives = alternatives === VOID ? this.e3e_1 : alternatives;
|
|
388
|
+
executionContext = executionContext === VOID ? this.f3e_1 : executionContext;
|
|
389
|
+
parent = parent === VOID ? this.g3e_1 : parent;
|
|
390
|
+
depth = depth === VOID ? this.h3e_1 : depth;
|
|
391
|
+
return $super === VOID ? this.q3e(alternatives, executionContext, parent, depth) : $super.q3e.call(this, alternatives, executionContext, parent, depth);
|
|
392
392
|
};
|
|
393
393
|
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.
|
|
394
|
+
var result = hashCode(this.e3e_1);
|
|
395
|
+
result = imul(result, 31) + (this.f3e_1 == null ? 0 : this.f3e_1.hashCode()) | 0;
|
|
396
|
+
result = imul(result, 31) + (this.g3e_1 == null ? 0 : hashCode(this.g3e_1)) | 0;
|
|
397
|
+
result = imul(result, 31) + this.h3e_1 | 0;
|
|
398
398
|
return result;
|
|
399
399
|
};
|
|
400
400
|
protoOf(Primitives).equals = function (other) {
|
|
@@ -402,75 +402,75 @@
|
|
|
402
402
|
return true;
|
|
403
403
|
if (!(other instanceof Primitives))
|
|
404
404
|
return false;
|
|
405
|
-
if (!equals(this.
|
|
405
|
+
if (!equals(this.e3e_1, other.e3e_1))
|
|
406
406
|
return false;
|
|
407
|
-
if (!equals(this.
|
|
407
|
+
if (!equals(this.f3e_1, other.f3e_1))
|
|
408
408
|
return false;
|
|
409
|
-
if (!equals(this.
|
|
409
|
+
if (!equals(this.g3e_1, other.g3e_1))
|
|
410
410
|
return false;
|
|
411
|
-
if (!(this.
|
|
411
|
+
if (!(this.h3e_1 === other.h3e_1))
|
|
412
412
|
return false;
|
|
413
413
|
return true;
|
|
414
414
|
};
|
|
415
415
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
416
416
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
417
|
+
this.d3f_1 = alternatives;
|
|
418
|
+
this.e3f_1 = executionContext;
|
|
419
|
+
this.f3f_1 = parent;
|
|
420
|
+
this.g3f_1 = depth;
|
|
421
421
|
}
|
|
422
|
-
protoOf(Rules).
|
|
423
|
-
return this.
|
|
422
|
+
protoOf(Rules).i3e = function () {
|
|
423
|
+
return this.d3f_1;
|
|
424
424
|
};
|
|
425
|
-
protoOf(Rules).
|
|
426
|
-
return this.
|
|
425
|
+
protoOf(Rules).j3e = function () {
|
|
426
|
+
return this.e3f_1;
|
|
427
427
|
};
|
|
428
|
-
protoOf(Rules).
|
|
429
|
-
return this.
|
|
428
|
+
protoOf(Rules).k3e = function () {
|
|
429
|
+
return this.f3f_1;
|
|
430
430
|
};
|
|
431
|
-
protoOf(Rules).
|
|
432
|
-
return this.
|
|
431
|
+
protoOf(Rules).l3e = function () {
|
|
432
|
+
return this.g3f_1;
|
|
433
433
|
};
|
|
434
434
|
protoOf(Rules).toString = function () {
|
|
435
435
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
436
436
|
};
|
|
437
|
-
protoOf(Rules).
|
|
437
|
+
protoOf(Rules).m3e = function () {
|
|
438
438
|
return 'Rules';
|
|
439
439
|
};
|
|
440
|
-
protoOf(Rules).
|
|
441
|
-
var tmp0_$this = ensureNotNull(this.
|
|
442
|
-
var tmp1_rules = this.
|
|
440
|
+
protoOf(Rules).n3e = function (context) {
|
|
441
|
+
var tmp0_$this = ensureNotNull(this.e3f_1);
|
|
442
|
+
var tmp1_rules = this.d3f_1;
|
|
443
443
|
// Inline function 'kotlin.Long.plus' call
|
|
444
|
-
var this_0 = context.
|
|
444
|
+
var this_0 = context.r3d_1;
|
|
445
445
|
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).
|
|
446
|
+
var tmp3_startTime = context.m3d_1;
|
|
447
|
+
var tmp4_flags = context.a3d_1;
|
|
448
|
+
var tmp5_dynamicKb = context.c3d_1;
|
|
449
|
+
var tmp6_staticKb = context.b3d_1;
|
|
450
|
+
var tmp7_operators = context.d3d_1;
|
|
451
|
+
var tmp8_inputChannels = context.e3d_1;
|
|
452
|
+
var tmp9_outputChannels = context.f3d_1;
|
|
453
|
+
var tmp10_libraries = context.z3c_1;
|
|
454
|
+
var tmp11_customData = context.g3d_1.discardEphemeral();
|
|
455
|
+
var tempContext = tmp0_$this.o3e(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);
|
|
456
|
+
var nextChoicePointContext = this.h3f(this.d3f_1.nr(), tempContext);
|
|
457
|
+
return tempContext.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
458
|
+
};
|
|
459
|
+
protoOf(Rules).i3f = function (alternatives, executionContext, parent, depth) {
|
|
460
460
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
461
461
|
};
|
|
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.
|
|
462
|
+
protoOf(Rules).h3f = function (alternatives, executionContext, parent, depth, $super) {
|
|
463
|
+
alternatives = alternatives === VOID ? this.d3f_1 : alternatives;
|
|
464
|
+
executionContext = executionContext === VOID ? this.e3f_1 : executionContext;
|
|
465
|
+
parent = parent === VOID ? this.f3f_1 : parent;
|
|
466
|
+
depth = depth === VOID ? this.g3f_1 : depth;
|
|
467
|
+
return $super === VOID ? this.i3f(alternatives, executionContext, parent, depth) : $super.i3f.call(this, alternatives, executionContext, parent, depth);
|
|
468
468
|
};
|
|
469
469
|
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.
|
|
470
|
+
var result = hashCode(this.d3f_1);
|
|
471
|
+
result = imul(result, 31) + (this.e3f_1 == null ? 0 : this.e3f_1.hashCode()) | 0;
|
|
472
|
+
result = imul(result, 31) + (this.f3f_1 == null ? 0 : hashCode(this.f3f_1)) | 0;
|
|
473
|
+
result = imul(result, 31) + this.g3f_1 | 0;
|
|
474
474
|
return result;
|
|
475
475
|
};
|
|
476
476
|
protoOf(Rules).equals = function (other) {
|
|
@@ -478,112 +478,112 @@
|
|
|
478
478
|
return true;
|
|
479
479
|
if (!(other instanceof Rules))
|
|
480
480
|
return false;
|
|
481
|
-
if (!equals(this.
|
|
481
|
+
if (!equals(this.d3f_1, other.d3f_1))
|
|
482
482
|
return false;
|
|
483
|
-
if (!equals(this.
|
|
483
|
+
if (!equals(this.e3f_1, other.e3f_1))
|
|
484
484
|
return false;
|
|
485
|
-
if (!equals(this.
|
|
485
|
+
if (!equals(this.f3f_1, other.f3f_1))
|
|
486
486
|
return false;
|
|
487
|
-
if (!(this.
|
|
487
|
+
if (!(this.g3f_1 === other.g3f_1))
|
|
488
488
|
return false;
|
|
489
489
|
return true;
|
|
490
490
|
};
|
|
491
491
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
492
|
-
this.
|
|
492
|
+
this.r3f_1 = this$0;
|
|
493
493
|
CoroutineImpl.call(this, resultContinuation);
|
|
494
494
|
}
|
|
495
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
496
|
-
var tmp = this.
|
|
497
|
-
tmp.
|
|
498
|
-
tmp.
|
|
499
|
-
return tmp.
|
|
495
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).u3f = function ($this$sequence, $completion) {
|
|
496
|
+
var tmp = this.v3f($this$sequence, $completion);
|
|
497
|
+
tmp.n8_1 = Unit_instance;
|
|
498
|
+
tmp.o8_1 = null;
|
|
499
|
+
return tmp.t8();
|
|
500
500
|
};
|
|
501
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
502
|
-
return this.
|
|
501
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).k9 = function (p1, $completion) {
|
|
502
|
+
return this.u3f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
503
503
|
};
|
|
504
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
505
|
-
var suspendResult = this.
|
|
504
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).t8 = function () {
|
|
505
|
+
var suspendResult = this.n8_1;
|
|
506
506
|
$sm: do
|
|
507
507
|
try {
|
|
508
|
-
var tmp = this.
|
|
508
|
+
var tmp = this.l8_1;
|
|
509
509
|
switch (tmp) {
|
|
510
510
|
case 0:
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
511
|
+
this.m8_1 = 4;
|
|
512
|
+
this.t3f_1 = this.r3f_1;
|
|
513
|
+
this.l8_1 = 1;
|
|
514
514
|
continue $sm;
|
|
515
515
|
case 1:
|
|
516
|
-
if (!!(this.
|
|
517
|
-
this.
|
|
516
|
+
if (!!(this.t3f_1 == null)) {
|
|
517
|
+
this.l8_1 = 3;
|
|
518
518
|
continue $sm;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
this.
|
|
522
|
-
suspendResult = this
|
|
521
|
+
this.l8_1 = 2;
|
|
522
|
+
suspendResult = this.s3f_1.ne(ensureNotNull(this.t3f_1), this);
|
|
523
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
524
524
|
return suspendResult;
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
continue $sm;
|
|
528
528
|
case 2:
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
529
|
+
this.t3f_1 = this.t3f_1.k3e();
|
|
530
|
+
this.l8_1 = 1;
|
|
531
531
|
continue $sm;
|
|
532
532
|
case 3:
|
|
533
533
|
return Unit_instance;
|
|
534
534
|
case 4:
|
|
535
|
-
throw this.
|
|
535
|
+
throw this.o8_1;
|
|
536
536
|
}
|
|
537
537
|
} catch ($p) {
|
|
538
538
|
var e = $p;
|
|
539
|
-
if (this.
|
|
539
|
+
if (this.m8_1 === 4) {
|
|
540
540
|
throw e;
|
|
541
541
|
} else {
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
542
|
+
this.l8_1 = this.m8_1;
|
|
543
|
+
this.o8_1 = e;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
while (true);
|
|
547
547
|
};
|
|
548
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
549
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
550
|
-
i
|
|
548
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).v3f = function ($this$sequence, completion) {
|
|
549
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.r3f_1, completion);
|
|
550
|
+
i.s3f_1 = $this$sequence;
|
|
551
551
|
return i;
|
|
552
552
|
};
|
|
553
553
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
554
554
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
555
555
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
556
|
-
return i.
|
|
556
|
+
return i.u3f($this$sequence, $completion);
|
|
557
557
|
}, 1);
|
|
558
558
|
}
|
|
559
559
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
560
560
|
depth = depth === VOID ? 0 : depth;
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
561
|
+
this.r3e_1 = alternatives;
|
|
562
|
+
this.s3e_1 = executionContext;
|
|
563
|
+
this.t3e_1 = parent;
|
|
564
|
+
this.u3e_1 = depth;
|
|
565
565
|
}
|
|
566
|
-
protoOf(ChoicePointContext).
|
|
567
|
-
return this.
|
|
566
|
+
protoOf(ChoicePointContext).i3e = function () {
|
|
567
|
+
return this.r3e_1;
|
|
568
568
|
};
|
|
569
|
-
protoOf(ChoicePointContext).
|
|
570
|
-
return this.
|
|
569
|
+
protoOf(ChoicePointContext).j3e = function () {
|
|
570
|
+
return this.s3e_1;
|
|
571
571
|
};
|
|
572
|
-
protoOf(ChoicePointContext).
|
|
573
|
-
return this.
|
|
572
|
+
protoOf(ChoicePointContext).k3e = function () {
|
|
573
|
+
return this.t3e_1;
|
|
574
574
|
};
|
|
575
|
-
protoOf(ChoicePointContext).
|
|
576
|
-
return this.
|
|
575
|
+
protoOf(ChoicePointContext).l3e = function () {
|
|
576
|
+
return this.u3e_1;
|
|
577
577
|
};
|
|
578
|
-
protoOf(ChoicePointContext).
|
|
579
|
-
var tmp0 = this.
|
|
578
|
+
protoOf(ChoicePointContext).v3e = function () {
|
|
579
|
+
var tmp0 = this.w3e();
|
|
580
580
|
var tmp$ret$0;
|
|
581
581
|
$l$block: {
|
|
582
582
|
// Inline function 'kotlin.sequences.any' call
|
|
583
|
-
var _iterator__ex2g4s = tmp0.
|
|
584
|
-
while (_iterator__ex2g4s.
|
|
585
|
-
var element = _iterator__ex2g4s.
|
|
586
|
-
if (element.
|
|
583
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
584
|
+
while (_iterator__ex2g4s.q()) {
|
|
585
|
+
var element = _iterator__ex2g4s.r();
|
|
586
|
+
if (element.i3e().qr()) {
|
|
587
587
|
tmp$ret$0 = true;
|
|
588
588
|
break $l$block;
|
|
589
589
|
}
|
|
@@ -592,41 +592,41 @@
|
|
|
592
592
|
}
|
|
593
593
|
return tmp$ret$0;
|
|
594
594
|
};
|
|
595
|
-
protoOf(ChoicePointContext).
|
|
595
|
+
protoOf(ChoicePointContext).w3e = function () {
|
|
596
596
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
597
597
|
};
|
|
598
|
-
protoOf(ChoicePointContext).
|
|
599
|
-
var tmp0_safe_receiver = this.
|
|
600
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
598
|
+
protoOf(ChoicePointContext).x3e = function () {
|
|
599
|
+
var tmp0_safe_receiver = this.j3e();
|
|
600
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q3d_1;
|
|
601
601
|
};
|
|
602
|
-
protoOf(ChoicePointContext).
|
|
603
|
-
var tmp0_safe_receiver = this.
|
|
604
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
602
|
+
protoOf(ChoicePointContext).y3e = function () {
|
|
603
|
+
var tmp0_safe_receiver = this.j3e();
|
|
604
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x3c_1;
|
|
605
605
|
};
|
|
606
606
|
protoOf(ChoicePointContext).toString = function () {
|
|
607
|
-
var tmp = this.
|
|
607
|
+
var tmp = this.m3e() + '(' + ('alternatives=' + toString(this.i3e()) + ', ');
|
|
608
608
|
var tmp_0;
|
|
609
|
-
if (this.
|
|
610
|
-
tmp_0 = 'executionContext=' + toString_0(this.
|
|
609
|
+
if (this.j3e() === null) {
|
|
610
|
+
tmp_0 = 'executionContext=' + toString_0(this.j3e()) + ', ';
|
|
611
611
|
} else {
|
|
612
|
-
'executionContextDepth=' + this.
|
|
613
|
-
tmp_0 = 'executionContextProcedure=' + toString_0(this.
|
|
612
|
+
'executionContextDepth=' + this.x3e() + ', ';
|
|
613
|
+
tmp_0 = 'executionContextProcedure=' + toString_0(this.y3e()) + ', ';
|
|
614
614
|
}
|
|
615
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
615
|
+
return tmp + tmp_0 + ('depth=' + this.l3e()) + ')';
|
|
616
616
|
};
|
|
617
617
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
618
618
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
619
619
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
620
620
|
}
|
|
621
621
|
function nextDepth(_this__u8e3s4) {
|
|
622
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
622
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.l3e() + 1 | 0;
|
|
623
623
|
}
|
|
624
624
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
625
625
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
626
626
|
return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
627
627
|
}
|
|
628
628
|
function MutablePrologSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
629
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
629
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
630
630
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
631
631
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
632
632
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -642,7 +642,7 @@
|
|
|
642
642
|
return MutablePrologSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutablePrologSolver)));
|
|
643
643
|
}
|
|
644
644
|
function MutablePrologSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
645
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
645
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
646
646
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
647
647
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
648
648
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -661,364 +661,364 @@
|
|
|
661
661
|
}
|
|
662
662
|
function MutablePrologSolver$loadLibrary$lambda($library) {
|
|
663
663
|
return function ($this$updateContext) {
|
|
664
|
-
var newRuntime = $this$updateContext.
|
|
665
|
-
return $this$updateContext.
|
|
664
|
+
var newRuntime = $this$updateContext.z3c_1.plusLibrary($library);
|
|
665
|
+
return $this$updateContext.o3e(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.d3d_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
668
|
function MutablePrologSolver$unloadLibrary$lambda($library) {
|
|
669
669
|
return function ($this$updateContext) {
|
|
670
|
-
var newRuntime = $this$updateContext.
|
|
671
|
-
return $this$updateContext.
|
|
670
|
+
var newRuntime = $this$updateContext.z3c_1.plusLibrary($library);
|
|
671
|
+
return $this$updateContext.o3e(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.b3d_1, $this$updateContext.c3d_1])));
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
function MutablePrologSolver$setRuntime$lambda($libraries) {
|
|
675
675
|
return function ($this$updateContext) {
|
|
676
|
-
return $this$updateContext.
|
|
676
|
+
return $this$updateContext.o3e(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.b3d_1, $this$updateContext.c3d_1])));
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
679
|
function MutablePrologSolver$resetStaticKb$lambda($this$updateContext) {
|
|
680
|
-
return $this$updateContext.
|
|
680
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, Companion_instance_0.empty($this$updateContext.y3c_1), VOID, toOperatorSet(getAllOperators($this$updateContext.z3c_1, [$this$updateContext.c3d_1])));
|
|
681
681
|
}
|
|
682
682
|
function MutablePrologSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
683
|
-
return $this$updateContext.
|
|
683
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, Companion_instance_1.empty($this$updateContext.y3c_1), toOperatorSet(getAllOperators($this$updateContext.z3c_1, [$this$updateContext.b3d_1])));
|
|
684
684
|
}
|
|
685
685
|
function MutablePrologSolver$assertA$lambda($clause) {
|
|
686
686
|
return function ($this$updateContext) {
|
|
687
|
-
return $this$updateContext.
|
|
687
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $this$updateContext.c3d_1.e1v($clause), $this$updateContext.d3d_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
690
|
function MutablePrologSolver$assertA$lambda_0($fact) {
|
|
691
691
|
return function ($this$updateContext) {
|
|
692
|
-
return $this$updateContext.
|
|
692
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $this$updateContext.c3d_1.e1w($fact));
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
function MutablePrologSolver$assertZ$lambda($clause) {
|
|
696
696
|
return function ($this$updateContext) {
|
|
697
|
-
return $this$updateContext.
|
|
697
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $this$updateContext.c3d_1.i1v($clause), $this$updateContext.d3d_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
700
|
function MutablePrologSolver$assertZ$lambda_0($fact) {
|
|
701
701
|
return function ($this$updateContext) {
|
|
702
|
-
return $this$updateContext.
|
|
702
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $this$updateContext.c3d_1.f1w($fact));
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
705
|
function MutablePrologSolver$retract$lambda($result, $clause) {
|
|
706
706
|
return function ($this$updateContext) {
|
|
707
|
-
return $this$updateContext.
|
|
707
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $result.w1u().toMutableTheory(), $this$updateContext.d3d_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
710
|
function MutablePrologSolver$retract$lambda_0($result) {
|
|
711
711
|
return function ($this$updateContext) {
|
|
712
|
-
return $this$updateContext.
|
|
712
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $result.w1u().toMutableTheory());
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
715
|
function MutablePrologSolver$retractAll$lambda($result) {
|
|
716
716
|
return function ($this$updateContext) {
|
|
717
|
-
return $this$updateContext.
|
|
717
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $result.w1u().toMutableTheory(), $this$updateContext.d3d_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.w1u()))));
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
720
|
function MutablePrologSolver$retractAll$lambda_0($result) {
|
|
721
721
|
return function ($this$updateContext) {
|
|
722
|
-
return $this$updateContext.
|
|
722
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, $result.w1u().toMutableTheory());
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
function MutablePrologSolver$setFlag$lambda($name, $value) {
|
|
726
726
|
return function ($this$updateContext) {
|
|
727
|
-
return $this$updateContext.
|
|
727
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, $this$updateContext.a3d_1.set($name, $value));
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
function MutablePrologSolver$setFlag$lambda_0($flag) {
|
|
731
731
|
return function ($this$updateContext) {
|
|
732
|
-
return $this$updateContext.
|
|
732
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, $this$updateContext.a3d_1.plusPair($flag));
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
735
|
function MutablePrologSolver$setFlag$lambda_1($flag) {
|
|
736
736
|
return function ($this$updateContext) {
|
|
737
|
-
return $this$updateContext.
|
|
737
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, $this$updateContext.a3d_1.plusNotable($flag));
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
function MutablePrologSolver$setStandardInput$lambda($stdIn) {
|
|
741
741
|
return function ($this$updateContext) {
|
|
742
|
-
return $this$updateContext.
|
|
742
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.e3d_1.plus(to('stdin', $stdIn)));
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
function MutablePrologSolver$setStandardError$lambda($stdErr) {
|
|
746
746
|
return function ($this$updateContext) {
|
|
747
|
-
return $this$updateContext.
|
|
747
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.f3d_1.plus(to('stderr', $stdErr)));
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
750
|
function MutablePrologSolver$setStandardOutput$lambda($stdOut) {
|
|
751
751
|
return function ($this$updateContext) {
|
|
752
|
-
return $this$updateContext.
|
|
752
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.f3d_1.plus(to('stdout', $stdOut)));
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
755
|
function MutablePrologSolver$setWarnings$lambda($warnings) {
|
|
756
756
|
return function ($this$updateContext) {
|
|
757
|
-
return $this$updateContext.
|
|
757
|
+
return $this$updateContext.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_5.n22($this$updateContext.f3d_1, $warnings));
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
protoOf(MutablePrologSolver).
|
|
761
|
-
this.
|
|
760
|
+
protoOf(MutablePrologSolver).x3f = function (library) {
|
|
761
|
+
this.u2f(MutablePrologSolver$loadLibrary$lambda(library));
|
|
762
762
|
};
|
|
763
763
|
protoOf(MutablePrologSolver).loadLibrary = function (library) {
|
|
764
|
-
return this.
|
|
764
|
+
return this.x3f(library);
|
|
765
765
|
};
|
|
766
|
-
protoOf(MutablePrologSolver).
|
|
767
|
-
this.
|
|
766
|
+
protoOf(MutablePrologSolver).y3f = function (library) {
|
|
767
|
+
this.u2f(MutablePrologSolver$unloadLibrary$lambda(library));
|
|
768
768
|
};
|
|
769
769
|
protoOf(MutablePrologSolver).unloadLibrary = function (library) {
|
|
770
|
-
return this.
|
|
770
|
+
return this.y3f(library);
|
|
771
771
|
};
|
|
772
|
-
protoOf(MutablePrologSolver).
|
|
773
|
-
this.
|
|
772
|
+
protoOf(MutablePrologSolver).z3f = function (libraries) {
|
|
773
|
+
this.u2f(MutablePrologSolver$setRuntime$lambda(libraries));
|
|
774
774
|
};
|
|
775
775
|
protoOf(MutablePrologSolver).setLibraries = function (libraries) {
|
|
776
|
-
return this.
|
|
776
|
+
return this.z3f(libraries);
|
|
777
777
|
};
|
|
778
|
-
protoOf(MutablePrologSolver).
|
|
779
|
-
this.
|
|
778
|
+
protoOf(MutablePrologSolver).a3g = function (theory) {
|
|
779
|
+
this.y2f(theory, VOID, false);
|
|
780
780
|
};
|
|
781
781
|
protoOf(MutablePrologSolver).loadStaticKb = function (theory) {
|
|
782
|
-
return this.
|
|
782
|
+
return this.a3g(theory);
|
|
783
783
|
};
|
|
784
|
-
protoOf(MutablePrologSolver).
|
|
785
|
-
this.
|
|
784
|
+
protoOf(MutablePrologSolver).b3g = function (theory) {
|
|
785
|
+
this.y2f(theory);
|
|
786
786
|
};
|
|
787
787
|
protoOf(MutablePrologSolver).appendStaticKb = function (theory) {
|
|
788
|
-
return this.
|
|
788
|
+
return this.b3g(theory);
|
|
789
789
|
};
|
|
790
|
-
protoOf(MutablePrologSolver).
|
|
791
|
-
this.
|
|
790
|
+
protoOf(MutablePrologSolver).c3g = function () {
|
|
791
|
+
this.u2f(MutablePrologSolver$resetStaticKb$lambda);
|
|
792
792
|
};
|
|
793
793
|
protoOf(MutablePrologSolver).resetStaticKb = function () {
|
|
794
|
-
return this.
|
|
794
|
+
return this.c3g();
|
|
795
795
|
};
|
|
796
|
-
protoOf(MutablePrologSolver).
|
|
797
|
-
this.
|
|
796
|
+
protoOf(MutablePrologSolver).d3g = function (theory) {
|
|
797
|
+
this.y2f(VOID, theory, VOID, false);
|
|
798
798
|
};
|
|
799
799
|
protoOf(MutablePrologSolver).loadDynamicKb = function (theory) {
|
|
800
|
-
return this.
|
|
800
|
+
return this.d3g(theory);
|
|
801
801
|
};
|
|
802
|
-
protoOf(MutablePrologSolver).
|
|
803
|
-
this.
|
|
802
|
+
protoOf(MutablePrologSolver).e3g = function (theory) {
|
|
803
|
+
this.y2f(VOID, theory);
|
|
804
804
|
};
|
|
805
805
|
protoOf(MutablePrologSolver).appendDynamicKb = function (theory) {
|
|
806
|
-
return this.
|
|
806
|
+
return this.e3g(theory);
|
|
807
807
|
};
|
|
808
|
-
protoOf(MutablePrologSolver).
|
|
809
|
-
this.
|
|
808
|
+
protoOf(MutablePrologSolver).f3g = function () {
|
|
809
|
+
this.u2f(MutablePrologSolver$resetDynamicKb$lambda);
|
|
810
810
|
};
|
|
811
811
|
protoOf(MutablePrologSolver).resetDynamicKb = function () {
|
|
812
|
-
return this.
|
|
812
|
+
return this.f3g();
|
|
813
813
|
};
|
|
814
|
-
protoOf(MutablePrologSolver).
|
|
815
|
-
this.
|
|
814
|
+
protoOf(MutablePrologSolver).l1p = function (clause) {
|
|
815
|
+
this.u2f(MutablePrologSolver$assertA$lambda(clause));
|
|
816
816
|
};
|
|
817
817
|
protoOf(MutablePrologSolver).assertA = function (clause) {
|
|
818
|
-
return this.
|
|
818
|
+
return this.l1p(clause);
|
|
819
819
|
};
|
|
820
|
-
protoOf(MutablePrologSolver).
|
|
821
|
-
this.
|
|
820
|
+
protoOf(MutablePrologSolver).g3g = function (fact) {
|
|
821
|
+
this.u2f(MutablePrologSolver$assertA$lambda_0(fact));
|
|
822
822
|
};
|
|
823
823
|
protoOf(MutablePrologSolver).assertAFact = function (fact) {
|
|
824
|
-
return this.
|
|
824
|
+
return this.g3g(fact);
|
|
825
825
|
};
|
|
826
|
-
protoOf(MutablePrologSolver).
|
|
827
|
-
this.
|
|
826
|
+
protoOf(MutablePrologSolver).m1o = function (clause) {
|
|
827
|
+
this.u2f(MutablePrologSolver$assertZ$lambda(clause));
|
|
828
828
|
};
|
|
829
829
|
protoOf(MutablePrologSolver).assertZ = function (clause) {
|
|
830
|
-
return this.
|
|
830
|
+
return this.m1o(clause);
|
|
831
831
|
};
|
|
832
|
-
protoOf(MutablePrologSolver).
|
|
833
|
-
this.
|
|
832
|
+
protoOf(MutablePrologSolver).h3g = function (fact) {
|
|
833
|
+
this.u2f(MutablePrologSolver$assertZ$lambda_0(fact));
|
|
834
834
|
};
|
|
835
835
|
protoOf(MutablePrologSolver).assertZFact = function (fact) {
|
|
836
|
-
return this.
|
|
836
|
+
return this.h3g(fact);
|
|
837
837
|
};
|
|
838
|
-
protoOf(MutablePrologSolver).
|
|
839
|
-
var result = this.
|
|
840
|
-
this.
|
|
838
|
+
protoOf(MutablePrologSolver).g1w = function (clause) {
|
|
839
|
+
var result = this.b1y().retract(clause);
|
|
840
|
+
this.u2f(MutablePrologSolver$retract$lambda(result, clause));
|
|
841
841
|
return result;
|
|
842
842
|
};
|
|
843
843
|
protoOf(MutablePrologSolver).retract = function (clause) {
|
|
844
|
-
return this.
|
|
844
|
+
return this.g1w(clause);
|
|
845
845
|
};
|
|
846
|
-
protoOf(MutablePrologSolver).
|
|
847
|
-
var result = this.
|
|
848
|
-
this.
|
|
846
|
+
protoOf(MutablePrologSolver).h1w = function (fact) {
|
|
847
|
+
var result = this.b1y().retractByHead(fact);
|
|
848
|
+
this.u2f(MutablePrologSolver$retract$lambda_0(result));
|
|
849
849
|
return result;
|
|
850
850
|
};
|
|
851
851
|
protoOf(MutablePrologSolver).retractByHead = function (fact) {
|
|
852
|
-
return this.
|
|
852
|
+
return this.h1w(fact);
|
|
853
853
|
};
|
|
854
|
-
protoOf(MutablePrologSolver).
|
|
855
|
-
var result = this.
|
|
856
|
-
this.
|
|
854
|
+
protoOf(MutablePrologSolver).r1o = function (clause) {
|
|
855
|
+
var result = this.b1y().retractAll(clause);
|
|
856
|
+
this.u2f(MutablePrologSolver$retractAll$lambda(result));
|
|
857
857
|
return result;
|
|
858
858
|
};
|
|
859
859
|
protoOf(MutablePrologSolver).retractAll = function (clause) {
|
|
860
|
-
return this.
|
|
860
|
+
return this.r1o(clause);
|
|
861
861
|
};
|
|
862
|
-
protoOf(MutablePrologSolver).
|
|
863
|
-
var result = this.
|
|
864
|
-
this.
|
|
862
|
+
protoOf(MutablePrologSolver).i3g = function (fact) {
|
|
863
|
+
var result = this.b1y().retractAllByHead(fact);
|
|
864
|
+
this.u2f(MutablePrologSolver$retractAll$lambda_0(result));
|
|
865
865
|
return result;
|
|
866
866
|
};
|
|
867
867
|
protoOf(MutablePrologSolver).retractAllBeHead = function (fact) {
|
|
868
|
-
return this.
|
|
868
|
+
return this.i3g(fact);
|
|
869
869
|
};
|
|
870
|
-
protoOf(MutablePrologSolver).
|
|
871
|
-
this.
|
|
870
|
+
protoOf(MutablePrologSolver).j3g = function (name, value) {
|
|
871
|
+
this.u2f(MutablePrologSolver$setFlag$lambda(name, value));
|
|
872
872
|
};
|
|
873
873
|
protoOf(MutablePrologSolver).setFlag = function (name, value) {
|
|
874
|
-
return this.
|
|
874
|
+
return this.j3g(name, value);
|
|
875
875
|
};
|
|
876
|
-
protoOf(MutablePrologSolver).
|
|
877
|
-
this.
|
|
876
|
+
protoOf(MutablePrologSolver).k3g = function (flag) {
|
|
877
|
+
this.u2f(MutablePrologSolver$setFlag$lambda_0(flag));
|
|
878
878
|
};
|
|
879
879
|
protoOf(MutablePrologSolver).setFlagPair = function (flag) {
|
|
880
|
-
return this.
|
|
880
|
+
return this.k3g(flag);
|
|
881
881
|
};
|
|
882
|
-
protoOf(MutablePrologSolver).
|
|
883
|
-
this.
|
|
882
|
+
protoOf(MutablePrologSolver).l3g = function (flag) {
|
|
883
|
+
this.u2f(MutablePrologSolver$setFlag$lambda_1(flag));
|
|
884
884
|
};
|
|
885
885
|
protoOf(MutablePrologSolver).setFlagNotable = function (flag) {
|
|
886
|
-
return this.
|
|
886
|
+
return this.l3g(flag);
|
|
887
887
|
};
|
|
888
|
-
protoOf(MutablePrologSolver).
|
|
889
|
-
this.
|
|
888
|
+
protoOf(MutablePrologSolver).m3g = function (stdIn) {
|
|
889
|
+
this.u2f(MutablePrologSolver$setStandardInput$lambda(stdIn));
|
|
890
890
|
};
|
|
891
891
|
protoOf(MutablePrologSolver).setStandardInput = function (stdIn) {
|
|
892
|
-
return this.
|
|
892
|
+
return this.m3g(stdIn);
|
|
893
893
|
};
|
|
894
|
-
protoOf(MutablePrologSolver).
|
|
895
|
-
this.
|
|
894
|
+
protoOf(MutablePrologSolver).n3g = function (stdErr) {
|
|
895
|
+
this.u2f(MutablePrologSolver$setStandardError$lambda(stdErr));
|
|
896
896
|
};
|
|
897
897
|
protoOf(MutablePrologSolver).setStandardError = function (stdErr) {
|
|
898
|
-
return this.
|
|
898
|
+
return this.n3g(stdErr);
|
|
899
899
|
};
|
|
900
|
-
protoOf(MutablePrologSolver).
|
|
901
|
-
this.
|
|
900
|
+
protoOf(MutablePrologSolver).o3g = function (stdOut) {
|
|
901
|
+
this.u2f(MutablePrologSolver$setStandardOutput$lambda(stdOut));
|
|
902
902
|
};
|
|
903
903
|
protoOf(MutablePrologSolver).setStandardOutput = function (stdOut) {
|
|
904
|
-
return this.
|
|
904
|
+
return this.o3g(stdOut);
|
|
905
905
|
};
|
|
906
|
-
protoOf(MutablePrologSolver).
|
|
907
|
-
this.
|
|
906
|
+
protoOf(MutablePrologSolver).p3g = function (warnings) {
|
|
907
|
+
this.u2f(MutablePrologSolver$setWarnings$lambda(warnings));
|
|
908
908
|
};
|
|
909
909
|
protoOf(MutablePrologSolver).setWarnings = function (warnings) {
|
|
910
|
-
return this.
|
|
910
|
+
return this.p3g(warnings);
|
|
911
911
|
};
|
|
912
|
-
protoOf(MutablePrologSolver).
|
|
912
|
+
protoOf(MutablePrologSolver).f1z = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
913
913
|
return MutablePrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
914
914
|
};
|
|
915
915
|
protoOf(MutablePrologSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
916
916
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof MutablePrologSolver) ? $super : THROW_CCE());
|
|
917
917
|
};
|
|
918
|
-
protoOf(MutablePrologSolver).
|
|
918
|
+
protoOf(MutablePrologSolver).o1v = function () {
|
|
919
919
|
return this.copy();
|
|
920
920
|
};
|
|
921
921
|
protoOf(MutablePrologSolver).clone = function () {
|
|
922
|
-
return this.
|
|
922
|
+
return this.o1v();
|
|
923
923
|
};
|
|
924
924
|
function MutablePrologSolver() {
|
|
925
925
|
}
|
|
926
926
|
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.
|
|
927
|
+
var tmp = asSequence_0($this.s3d_1);
|
|
928
|
+
var tmp0_safe_receiver = $this.j3d_1.pr();
|
|
929
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zw();
|
|
930
930
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
931
931
|
}
|
|
932
932
|
function _get_interestingVariables__k6uw5o($this) {
|
|
933
|
-
var tmp0 = $this.
|
|
933
|
+
var tmp0 = $this.v3d_1;
|
|
934
934
|
var tmp = KProperty1;
|
|
935
935
|
// Inline function 'kotlin.getValue' call
|
|
936
936
|
/* dead property reference removed */
|
|
937
|
-
return tmp0.
|
|
937
|
+
return tmp0.i2();
|
|
938
938
|
}
|
|
939
939
|
function PrologExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
940
|
-
this.
|
|
940
|
+
this.z3g_1 = this$0;
|
|
941
941
|
CoroutineImpl.call(this, resultContinuation);
|
|
942
942
|
}
|
|
943
|
-
protoOf(PrologExecutionContext$pathToRoot$slambda).
|
|
944
|
-
var tmp = this.
|
|
945
|
-
tmp.
|
|
946
|
-
tmp.
|
|
947
|
-
return tmp.
|
|
943
|
+
protoOf(PrologExecutionContext$pathToRoot$slambda).c3h = function ($this$sequence, $completion) {
|
|
944
|
+
var tmp = this.d3h($this$sequence, $completion);
|
|
945
|
+
tmp.n8_1 = Unit_instance;
|
|
946
|
+
tmp.o8_1 = null;
|
|
947
|
+
return tmp.t8();
|
|
948
948
|
};
|
|
949
|
-
protoOf(PrologExecutionContext$pathToRoot$slambda).
|
|
950
|
-
return this.
|
|
949
|
+
protoOf(PrologExecutionContext$pathToRoot$slambda).k9 = function (p1, $completion) {
|
|
950
|
+
return this.c3h(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
951
951
|
};
|
|
952
|
-
protoOf(PrologExecutionContext$pathToRoot$slambda).
|
|
953
|
-
var suspendResult = this.
|
|
952
|
+
protoOf(PrologExecutionContext$pathToRoot$slambda).t8 = function () {
|
|
953
|
+
var suspendResult = this.n8_1;
|
|
954
954
|
$sm: do
|
|
955
955
|
try {
|
|
956
|
-
var tmp = this.
|
|
956
|
+
var tmp = this.l8_1;
|
|
957
957
|
switch (tmp) {
|
|
958
958
|
case 0:
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
959
|
+
this.m8_1 = 4;
|
|
960
|
+
this.b3h_1 = this.z3g_1;
|
|
961
|
+
this.l8_1 = 1;
|
|
962
962
|
continue $sm;
|
|
963
963
|
case 1:
|
|
964
|
-
if (!!(this.
|
|
965
|
-
this.
|
|
964
|
+
if (!!(this.b3h_1 == null)) {
|
|
965
|
+
this.l8_1 = 3;
|
|
966
966
|
continue $sm;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
|
-
this.
|
|
970
|
-
suspendResult = this
|
|
969
|
+
this.l8_1 = 2;
|
|
970
|
+
suspendResult = this.a3h_1.ne(this.b3h_1, this);
|
|
971
971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
972
972
|
return suspendResult;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
continue $sm;
|
|
976
976
|
case 2:
|
|
977
|
-
this.
|
|
978
|
-
this.
|
|
977
|
+
this.b3h_1 = this.b3h_1.p3d_1;
|
|
978
|
+
this.l8_1 = 1;
|
|
979
979
|
continue $sm;
|
|
980
980
|
case 3:
|
|
981
981
|
return Unit_instance;
|
|
982
982
|
case 4:
|
|
983
|
-
throw this.
|
|
983
|
+
throw this.o8_1;
|
|
984
984
|
}
|
|
985
985
|
} catch ($p) {
|
|
986
986
|
var e = $p;
|
|
987
|
-
if (this.
|
|
987
|
+
if (this.m8_1 === 4) {
|
|
988
988
|
throw e;
|
|
989
989
|
} else {
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
990
|
+
this.l8_1 = this.m8_1;
|
|
991
|
+
this.o8_1 = e;
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
while (true);
|
|
995
995
|
};
|
|
996
|
-
protoOf(PrologExecutionContext$pathToRoot$slambda).
|
|
997
|
-
var i = new PrologExecutionContext$pathToRoot$slambda(this.
|
|
998
|
-
i
|
|
996
|
+
protoOf(PrologExecutionContext$pathToRoot$slambda).d3h = function ($this$sequence, completion) {
|
|
997
|
+
var i = new PrologExecutionContext$pathToRoot$slambda(this.z3g_1, completion);
|
|
998
|
+
i.a3h_1 = $this$sequence;
|
|
999
999
|
return i;
|
|
1000
1000
|
};
|
|
1001
1001
|
function PrologExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
1002
1002
|
var i = new PrologExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
1003
1003
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
1004
|
-
return i.
|
|
1004
|
+
return i.c3h($this$sequence, $completion);
|
|
1005
1005
|
}, 1);
|
|
1006
1006
|
}
|
|
1007
1007
|
function PrologExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
1008
1008
|
return function () {
|
|
1009
1009
|
var tmp;
|
|
1010
|
-
if (this$0.
|
|
1010
|
+
if (this$0.j3d_1.rr()) {
|
|
1011
1011
|
tmp = null;
|
|
1012
1012
|
} else {
|
|
1013
|
-
var tmp0_safe_receiver = this$0.
|
|
1014
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
1013
|
+
var tmp0_safe_receiver = this$0.j3d_1.pr();
|
|
1014
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.h3d_1);
|
|
1015
1015
|
}
|
|
1016
1016
|
return tmp;
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
1019
|
function PrologExecutionContext$_get_currentGoal_$ref_g1xdum() {
|
|
1020
1020
|
return constructCallableReference(function (p0) {
|
|
1021
|
-
return p0.
|
|
1021
|
+
return p0.e3h();
|
|
1022
1022
|
}, 1, 0, 106);
|
|
1023
1023
|
}
|
|
1024
1024
|
function PrologExecutionContext$interestingVariables$delegate$lambda$lambda(it) {
|
|
@@ -1026,8 +1026,8 @@
|
|
|
1026
1026
|
}
|
|
1027
1027
|
function PrologExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
1028
1028
|
return function () {
|
|
1029
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
1030
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
1029
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.i3d_1.zw());
|
|
1030
|
+
return cached(distinct(plus(tmp, flatMap(this$0.t3d_1, PrologExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
1033
|
function PrologExecutionContext$_get_interestingVariables_$ref_ycsjv3() {
|
|
@@ -1036,28 +1036,28 @@
|
|
|
1036
1036
|
}, 1, 0, 107);
|
|
1037
1037
|
}
|
|
1038
1038
|
function PrologExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
1039
|
-
return it.
|
|
1039
|
+
return it.f3h();
|
|
1040
1040
|
}
|
|
1041
1041
|
function PrologExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
1042
1042
|
return function (it) {
|
|
1043
|
-
var tmp0_elvis_lhs = it.
|
|
1044
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.
|
|
1043
|
+
var tmp0_elvis_lhs = it.x3c_1;
|
|
1044
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.i3d_1]) : tmp0_elvis_lhs;
|
|
1045
1045
|
};
|
|
1046
1046
|
}
|
|
1047
1047
|
function PrologExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
1048
1048
|
return function () {
|
|
1049
|
-
var tmp = filter(this$0.
|
|
1049
|
+
var tmp = filter(this$0.t3d_1, PrologExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
1050
1050
|
return toList(map(tmp, PrologExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
1053
|
function PrologExecutionContext$_get_logicStackTrace_$ref_jddlfz() {
|
|
1054
1054
|
return constructCallableReference(function (p0) {
|
|
1055
|
-
return p0.
|
|
1055
|
+
return p0.v1x();
|
|
1056
1056
|
}, 1, 0, 108);
|
|
1057
1057
|
}
|
|
1058
1058
|
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
1059
|
procedure = procedure === VOID ? null : procedure;
|
|
1060
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1060
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
1061
1061
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1062
1062
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1063
1063
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
1068
1068
|
customData = customData === VOID ? Companion_instance_6.empty() : customData;
|
|
1069
1069
|
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
1070
|
-
query = query === VOID ? Companion_getInstance_3().
|
|
1070
|
+
query = query === VOID ? Companion_getInstance_3().ow_1 : query;
|
|
1071
1071
|
goals = goals === VOID ? Companion_instance_7.empty() : goals;
|
|
1072
1072
|
rules = rules === VOID ? Companion_instance_7.empty() : rules;
|
|
1073
1073
|
primitives = primitives === VOID ? Companion_instance_7.empty() : primitives;
|
|
@@ -1077,215 +1077,215 @@
|
|
|
1077
1077
|
depth = depth === VOID ? 0 : depth;
|
|
1078
1078
|
step = step === VOID ? 0n : step;
|
|
1079
1079
|
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.
|
|
1080
|
+
this.x3c_1 = procedure;
|
|
1081
|
+
this.y3c_1 = unificator;
|
|
1082
|
+
this.z3c_1 = libraries;
|
|
1083
|
+
this.a3d_1 = flags;
|
|
1084
|
+
this.b3d_1 = staticKb;
|
|
1085
|
+
this.c3d_1 = dynamicKb;
|
|
1086
|
+
this.d3d_1 = operators;
|
|
1087
|
+
this.e3d_1 = inputChannels;
|
|
1088
|
+
this.f3d_1 = outputChannels;
|
|
1089
|
+
this.g3d_1 = customData;
|
|
1090
|
+
this.h3d_1 = substitution;
|
|
1091
|
+
this.i3d_1 = query;
|
|
1092
|
+
this.j3d_1 = goals;
|
|
1093
|
+
this.k3d_1 = rules;
|
|
1094
|
+
this.l3d_1 = primitives;
|
|
1095
|
+
this.m3d_1 = startTime;
|
|
1096
|
+
this.n3d_1 = maxDuration;
|
|
1097
|
+
this.o3d_1 = choicePoints;
|
|
1098
|
+
this.p3d_1 = parent;
|
|
1099
|
+
this.q3d_1 = depth;
|
|
1100
|
+
this.r3d_1 = step;
|
|
1101
|
+
this.s3d_1 = relevantVariables;
|
|
1102
1102
|
// Inline function 'kotlin.require' call
|
|
1103
1103
|
// Inline function 'kotlin.require' call
|
|
1104
|
-
if (!(this.
|
|
1104
|
+
if (!(this.q3d_1 === 0 && this.p3d_1 == null || (this.q3d_1 > 0 && !(this.p3d_1 == null)))) {
|
|
1105
1105
|
var message = 'Failed requirement.';
|
|
1106
1106
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1107
1107
|
}
|
|
1108
1108
|
// Inline function 'kotlin.require' call
|
|
1109
1109
|
// Inline function 'kotlin.require' call
|
|
1110
|
-
if (!(this.
|
|
1110
|
+
if (!(this.m3d_1 >= 0n)) {
|
|
1111
1111
|
var message_0 = 'Failed requirement.';
|
|
1112
1112
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1113
1113
|
}
|
|
1114
1114
|
// Inline function 'kotlin.require' call
|
|
1115
1115
|
// Inline function 'kotlin.require' call
|
|
1116
|
-
if (!(this.
|
|
1116
|
+
if (!(this.n3d_1 >= 0n)) {
|
|
1117
1117
|
var message_1 = 'Failed requirement.';
|
|
1118
1118
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1119
1119
|
}
|
|
1120
1120
|
var tmp = this;
|
|
1121
|
-
tmp.
|
|
1121
|
+
tmp.t3d_1 = sequence(PrologExecutionContext$pathToRoot$slambda_0(this, null));
|
|
1122
1122
|
var tmp_0 = this;
|
|
1123
|
-
tmp_0.
|
|
1123
|
+
tmp_0.u3d_1 = lazy(PrologExecutionContext$currentGoal$delegate$lambda(this));
|
|
1124
1124
|
var tmp_1 = this;
|
|
1125
|
-
tmp_1.
|
|
1125
|
+
tmp_1.v3d_1 = lazy(PrologExecutionContext$interestingVariables$delegate$lambda(this));
|
|
1126
1126
|
var tmp_2 = this;
|
|
1127
|
-
tmp_2.
|
|
1127
|
+
tmp_2.w3d_1 = lazy(PrologExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
1128
1128
|
}
|
|
1129
|
-
protoOf(PrologExecutionContext).
|
|
1130
|
-
return this.
|
|
1129
|
+
protoOf(PrologExecutionContext).t1x = function () {
|
|
1130
|
+
return this.x3c_1;
|
|
1131
1131
|
};
|
|
1132
|
-
protoOf(PrologExecutionContext).
|
|
1133
|
-
return this.
|
|
1132
|
+
protoOf(PrologExecutionContext).z1n = function () {
|
|
1133
|
+
return this.y3c_1;
|
|
1134
1134
|
};
|
|
1135
|
-
protoOf(PrologExecutionContext).
|
|
1136
|
-
return this.
|
|
1135
|
+
protoOf(PrologExecutionContext).y1x = function () {
|
|
1136
|
+
return this.z3c_1;
|
|
1137
1137
|
};
|
|
1138
|
-
protoOf(PrologExecutionContext).
|
|
1139
|
-
return this.
|
|
1138
|
+
protoOf(PrologExecutionContext).z1x = function () {
|
|
1139
|
+
return this.a3d_1;
|
|
1140
1140
|
};
|
|
1141
|
-
protoOf(PrologExecutionContext).
|
|
1142
|
-
return this.
|
|
1141
|
+
protoOf(PrologExecutionContext).a1y = function () {
|
|
1142
|
+
return this.b3d_1;
|
|
1143
1143
|
};
|
|
1144
|
-
protoOf(PrologExecutionContext).
|
|
1145
|
-
return this.
|
|
1144
|
+
protoOf(PrologExecutionContext).b1y = function () {
|
|
1145
|
+
return this.c3d_1;
|
|
1146
1146
|
};
|
|
1147
|
-
protoOf(PrologExecutionContext).
|
|
1148
|
-
return this.
|
|
1147
|
+
protoOf(PrologExecutionContext).h1y = function () {
|
|
1148
|
+
return this.d3d_1;
|
|
1149
1149
|
};
|
|
1150
|
-
protoOf(PrologExecutionContext).
|
|
1151
|
-
return this.
|
|
1150
|
+
protoOf(PrologExecutionContext).c1y = function () {
|
|
1151
|
+
return this.e3d_1;
|
|
1152
1152
|
};
|
|
1153
|
-
protoOf(PrologExecutionContext).
|
|
1154
|
-
return this.
|
|
1153
|
+
protoOf(PrologExecutionContext).d1y = function () {
|
|
1154
|
+
return this.f3d_1;
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(PrologExecutionContext).
|
|
1157
|
-
return this.
|
|
1156
|
+
protoOf(PrologExecutionContext).w1x = function () {
|
|
1157
|
+
return this.g3d_1;
|
|
1158
1158
|
};
|
|
1159
|
-
protoOf(PrologExecutionContext).
|
|
1160
|
-
return this.
|
|
1159
|
+
protoOf(PrologExecutionContext).u1x = function () {
|
|
1160
|
+
return this.h3d_1;
|
|
1161
1161
|
};
|
|
1162
|
-
protoOf(PrologExecutionContext).
|
|
1163
|
-
return this.
|
|
1162
|
+
protoOf(PrologExecutionContext).o1x = function () {
|
|
1163
|
+
return this.m3d_1;
|
|
1164
1164
|
};
|
|
1165
|
-
protoOf(PrologExecutionContext).
|
|
1166
|
-
return this.
|
|
1165
|
+
protoOf(PrologExecutionContext).q1x = function () {
|
|
1166
|
+
return this.n3d_1;
|
|
1167
1167
|
};
|
|
1168
|
-
protoOf(PrologExecutionContext).
|
|
1169
|
-
return this.
|
|
1168
|
+
protoOf(PrologExecutionContext).g3h = function () {
|
|
1169
|
+
return this.q3d_1 === 0;
|
|
1170
1170
|
};
|
|
1171
|
-
protoOf(PrologExecutionContext).
|
|
1172
|
-
var tmp0_safe_receiver = this.
|
|
1173
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1171
|
+
protoOf(PrologExecutionContext).v3e = function () {
|
|
1172
|
+
var tmp0_safe_receiver = this.o3d_1;
|
|
1173
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v3e();
|
|
1174
1174
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
1175
1175
|
};
|
|
1176
|
-
protoOf(PrologExecutionContext).
|
|
1177
|
-
return this.
|
|
1176
|
+
protoOf(PrologExecutionContext).f3h = function () {
|
|
1177
|
+
return this.p3d_1 == null || (this.q3d_1 - this.p3d_1.q3d_1 | 0) >= 1;
|
|
1178
1178
|
};
|
|
1179
|
-
protoOf(PrologExecutionContext).
|
|
1180
|
-
var tmp0 = this.
|
|
1179
|
+
protoOf(PrologExecutionContext).e3h = function () {
|
|
1180
|
+
var tmp0 = this.u3d_1;
|
|
1181
1181
|
var tmp = KProperty1;
|
|
1182
1182
|
// Inline function 'kotlin.getValue' call
|
|
1183
1183
|
/* dead property reference removed */
|
|
1184
|
-
return tmp0.
|
|
1184
|
+
return tmp0.i2();
|
|
1185
1185
|
};
|
|
1186
|
-
protoOf(PrologExecutionContext).
|
|
1186
|
+
protoOf(PrologExecutionContext).h3h = function (variable) {
|
|
1187
1187
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
1188
1188
|
};
|
|
1189
|
-
protoOf(PrologExecutionContext).
|
|
1190
|
-
var tmp0 = this.
|
|
1189
|
+
protoOf(PrologExecutionContext).v1x = function () {
|
|
1190
|
+
var tmp0 = this.w3d_1;
|
|
1191
1191
|
var tmp = KProperty1;
|
|
1192
1192
|
// Inline function 'kotlin.getValue' call
|
|
1193
1193
|
/* dead property reference removed */
|
|
1194
|
-
return tmp0.
|
|
1194
|
+
return tmp0.i2();
|
|
1195
1195
|
};
|
|
1196
|
-
protoOf(PrologExecutionContext).
|
|
1196
|
+
protoOf(PrologExecutionContext).x1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
1197
1197
|
return PrologSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
1198
1198
|
};
|
|
1199
1199
|
protoOf(PrologExecutionContext).createSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
1200
1200
|
return this.createSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof PrologExecutionContext) ? $super : THROW_CCE());
|
|
1201
1201
|
};
|
|
1202
|
-
protoOf(PrologExecutionContext).
|
|
1202
|
+
protoOf(PrologExecutionContext).e1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
1203
1203
|
return MutablePrologSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
1204
1204
|
};
|
|
1205
1205
|
protoOf(PrologExecutionContext).createMutableSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
1206
1206
|
return this.createMutableSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof PrologExecutionContext) ? $super : THROW_CCE());
|
|
1207
1207
|
};
|
|
1208
|
-
protoOf(PrologExecutionContext).
|
|
1209
|
-
return this.
|
|
1208
|
+
protoOf(PrologExecutionContext).g1y = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
1209
|
+
return this.o3e(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
1210
1210
|
};
|
|
1211
1211
|
protoOf(PrologExecutionContext).update = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, $super) {
|
|
1212
1212
|
return this.update(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, ($super == null ? true : $super instanceof PrologExecutionContext) ? $super : THROW_CCE());
|
|
1213
1213
|
};
|
|
1214
|
-
protoOf(PrologExecutionContext).
|
|
1214
|
+
protoOf(PrologExecutionContext).i3h = function (sideEffect) {
|
|
1215
1215
|
var tmp = apply.call(this, sideEffect);
|
|
1216
1216
|
return tmp instanceof PrologExecutionContext ? tmp : THROW_CCE();
|
|
1217
1217
|
};
|
|
1218
1218
|
protoOf(PrologExecutionContext).apply = function (sideEffect) {
|
|
1219
|
-
return this.
|
|
1219
|
+
return this.i3h(sideEffect);
|
|
1220
1220
|
};
|
|
1221
|
-
protoOf(PrologExecutionContext).
|
|
1221
|
+
protoOf(PrologExecutionContext).j3h = function (sideEffects) {
|
|
1222
1222
|
var tmp = applyIterable.call(this, sideEffects);
|
|
1223
1223
|
return tmp instanceof PrologExecutionContext ? tmp : THROW_CCE();
|
|
1224
1224
|
};
|
|
1225
1225
|
protoOf(PrologExecutionContext).applyIterable = function (sideEffects) {
|
|
1226
|
-
return this.
|
|
1226
|
+
return this.j3h(sideEffects);
|
|
1227
1227
|
};
|
|
1228
|
-
protoOf(PrologExecutionContext).
|
|
1228
|
+
protoOf(PrologExecutionContext).k3h = function (sideEffects) {
|
|
1229
1229
|
var tmp = applySequence.call(this, sideEffects);
|
|
1230
1230
|
return tmp instanceof PrologExecutionContext ? tmp : THROW_CCE();
|
|
1231
1231
|
};
|
|
1232
1232
|
protoOf(PrologExecutionContext).applySequence = function (sideEffects) {
|
|
1233
|
-
return this.
|
|
1233
|
+
return this.k3h(sideEffects);
|
|
1234
1234
|
};
|
|
1235
1235
|
protoOf(PrologExecutionContext).toString = function () {
|
|
1236
|
-
return 'PrologExecutionContext(' + ('step=' + this.
|
|
1236
|
+
return 'PrologExecutionContext(' + ('step=' + this.r3d_1.toString() + ', ') + ('depth=' + this.q3d_1 + ', ') + ('substitution=' + toString(this.h3d_1) + ', ') + ('logicStackTrace=' + toString(this.v1x()) + ', ') + ('goals=' + toString(this.j3d_1) + ', ') + ('rules=' + toString(this.k3d_1) + ', ') + ('primitives=' + toString(this.l3d_1) + ', ') + ('startTime=' + this.m3d_1.toString() + ', ') + ('endTime=' + this.p1x().toString() + ', ') + ('maxDuration=' + this.n3d_1.toString() + ', ') + ('unificator=' + toString(this.y3c_1) + ', ') + ('choicePoints=' + toString_0(this.o3d_1)) + ')';
|
|
1237
1237
|
};
|
|
1238
|
-
protoOf(PrologExecutionContext).
|
|
1238
|
+
protoOf(PrologExecutionContext).l3h = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
1239
1239
|
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
1240
|
};
|
|
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.
|
|
1241
|
+
protoOf(PrologExecutionContext).o3e = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
1242
|
+
procedure = procedure === VOID ? this.x3c_1 : procedure;
|
|
1243
|
+
unificator = unificator === VOID ? this.y3c_1 : unificator;
|
|
1244
|
+
libraries = libraries === VOID ? this.z3c_1 : libraries;
|
|
1245
|
+
flags = flags === VOID ? this.a3d_1 : flags;
|
|
1246
|
+
staticKb = staticKb === VOID ? this.b3d_1 : staticKb;
|
|
1247
|
+
dynamicKb = dynamicKb === VOID ? this.c3d_1 : dynamicKb;
|
|
1248
|
+
operators = operators === VOID ? this.d3d_1 : operators;
|
|
1249
|
+
inputChannels = inputChannels === VOID ? this.e3d_1 : inputChannels;
|
|
1250
|
+
outputChannels = outputChannels === VOID ? this.f3d_1 : outputChannels;
|
|
1251
|
+
customData = customData === VOID ? this.g3d_1 : customData;
|
|
1252
|
+
substitution = substitution === VOID ? this.h3d_1 : substitution;
|
|
1253
|
+
query = query === VOID ? this.i3d_1 : query;
|
|
1254
|
+
goals = goals === VOID ? this.j3d_1 : goals;
|
|
1255
|
+
rules = rules === VOID ? this.k3d_1 : rules;
|
|
1256
|
+
primitives = primitives === VOID ? this.l3d_1 : primitives;
|
|
1257
|
+
startTime = startTime === VOID ? this.m3d_1 : startTime;
|
|
1258
|
+
maxDuration = maxDuration === VOID ? this.n3d_1 : maxDuration;
|
|
1259
|
+
choicePoints = choicePoints === VOID ? this.o3d_1 : choicePoints;
|
|
1260
|
+
parent = parent === VOID ? this.p3d_1 : parent;
|
|
1261
|
+
depth = depth === VOID ? this.q3d_1 : depth;
|
|
1262
|
+
step = step === VOID ? this.r3d_1 : step;
|
|
1263
|
+
relevantVariables = relevantVariables === VOID ? this.s3d_1 : relevantVariables;
|
|
1264
|
+
return $super === VOID ? this.l3h(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.l3h.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
1265
|
};
|
|
1266
1266
|
protoOf(PrologExecutionContext).hashCode = function () {
|
|
1267
|
-
var result = this.
|
|
1268
|
-
result = imul(result, 31) + hashCode(this.
|
|
1269
|
-
result = imul(result, 31) + hashCode(this.
|
|
1270
|
-
result = imul(result, 31) + this.
|
|
1271
|
-
result = imul(result, 31) + hashCode(this.
|
|
1272
|
-
result = imul(result, 31) + hashCode(this.
|
|
1273
|
-
result = imul(result, 31) + this.
|
|
1274
|
-
result = imul(result, 31) + hashCode(this.
|
|
1275
|
-
result = imul(result, 31) + hashCode(this.
|
|
1276
|
-
result = imul(result, 31) + this.
|
|
1277
|
-
result = imul(result, 31) + hashCode(this.
|
|
1278
|
-
result = imul(result, 31) + this.
|
|
1279
|
-
result = imul(result, 31) + hashCode(this.
|
|
1280
|
-
result = imul(result, 31) + hashCode(this.
|
|
1281
|
-
result = imul(result, 31) + hashCode(this.
|
|
1282
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
1283
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
1284
|
-
result = imul(result, 31) + (this.
|
|
1285
|
-
result = imul(result, 31) + (this.
|
|
1286
|
-
result = imul(result, 31) + this.
|
|
1287
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
1288
|
-
result = imul(result, 31) + hashCode(this.
|
|
1267
|
+
var result = this.x3c_1 == null ? 0 : this.x3c_1.hashCode();
|
|
1268
|
+
result = imul(result, 31) + hashCode(this.y3c_1) | 0;
|
|
1269
|
+
result = imul(result, 31) + hashCode(this.z3c_1) | 0;
|
|
1270
|
+
result = imul(result, 31) + this.a3d_1.hashCode() | 0;
|
|
1271
|
+
result = imul(result, 31) + hashCode(this.b3d_1) | 0;
|
|
1272
|
+
result = imul(result, 31) + hashCode(this.c3d_1) | 0;
|
|
1273
|
+
result = imul(result, 31) + this.d3d_1.hashCode() | 0;
|
|
1274
|
+
result = imul(result, 31) + hashCode(this.e3d_1) | 0;
|
|
1275
|
+
result = imul(result, 31) + hashCode(this.f3d_1) | 0;
|
|
1276
|
+
result = imul(result, 31) + this.g3d_1.hashCode() | 0;
|
|
1277
|
+
result = imul(result, 31) + hashCode(this.h3d_1) | 0;
|
|
1278
|
+
result = imul(result, 31) + this.i3d_1.hashCode() | 0;
|
|
1279
|
+
result = imul(result, 31) + hashCode(this.j3d_1) | 0;
|
|
1280
|
+
result = imul(result, 31) + hashCode(this.k3d_1) | 0;
|
|
1281
|
+
result = imul(result, 31) + hashCode(this.l3d_1) | 0;
|
|
1282
|
+
result = imul(result, 31) + getBigIntHashCode(this.m3d_1) | 0;
|
|
1283
|
+
result = imul(result, 31) + getBigIntHashCode(this.n3d_1) | 0;
|
|
1284
|
+
result = imul(result, 31) + (this.o3d_1 == null ? 0 : hashCode(this.o3d_1)) | 0;
|
|
1285
|
+
result = imul(result, 31) + (this.p3d_1 == null ? 0 : this.p3d_1.hashCode()) | 0;
|
|
1286
|
+
result = imul(result, 31) + this.q3d_1 | 0;
|
|
1287
|
+
result = imul(result, 31) + getBigIntHashCode(this.r3d_1) | 0;
|
|
1288
|
+
result = imul(result, 31) + hashCode(this.s3d_1) | 0;
|
|
1289
1289
|
return result;
|
|
1290
1290
|
};
|
|
1291
1291
|
protoOf(PrologExecutionContext).equals = function (other) {
|
|
@@ -1293,54 +1293,54 @@
|
|
|
1293
1293
|
return true;
|
|
1294
1294
|
if (!(other instanceof PrologExecutionContext))
|
|
1295
1295
|
return false;
|
|
1296
|
-
if (!equals(this.
|
|
1296
|
+
if (!equals(this.x3c_1, other.x3c_1))
|
|
1297
1297
|
return false;
|
|
1298
|
-
if (!equals(this.
|
|
1298
|
+
if (!equals(this.y3c_1, other.y3c_1))
|
|
1299
1299
|
return false;
|
|
1300
|
-
if (!equals(this.
|
|
1300
|
+
if (!equals(this.z3c_1, other.z3c_1))
|
|
1301
1301
|
return false;
|
|
1302
|
-
if (!this.
|
|
1302
|
+
if (!this.a3d_1.equals(other.a3d_1))
|
|
1303
1303
|
return false;
|
|
1304
|
-
if (!equals(this.
|
|
1304
|
+
if (!equals(this.b3d_1, other.b3d_1))
|
|
1305
1305
|
return false;
|
|
1306
|
-
if (!equals(this.
|
|
1306
|
+
if (!equals(this.c3d_1, other.c3d_1))
|
|
1307
1307
|
return false;
|
|
1308
|
-
if (!this.
|
|
1308
|
+
if (!this.d3d_1.equals(other.d3d_1))
|
|
1309
1309
|
return false;
|
|
1310
|
-
if (!equals(this.
|
|
1310
|
+
if (!equals(this.e3d_1, other.e3d_1))
|
|
1311
1311
|
return false;
|
|
1312
|
-
if (!equals(this.
|
|
1312
|
+
if (!equals(this.f3d_1, other.f3d_1))
|
|
1313
1313
|
return false;
|
|
1314
|
-
if (!this.
|
|
1314
|
+
if (!this.g3d_1.equals(other.g3d_1))
|
|
1315
1315
|
return false;
|
|
1316
|
-
if (!equals(this.
|
|
1316
|
+
if (!equals(this.h3d_1, other.h3d_1))
|
|
1317
1317
|
return false;
|
|
1318
|
-
if (!this.
|
|
1318
|
+
if (!this.i3d_1.equals(other.i3d_1))
|
|
1319
1319
|
return false;
|
|
1320
|
-
if (!equals(this.
|
|
1320
|
+
if (!equals(this.j3d_1, other.j3d_1))
|
|
1321
1321
|
return false;
|
|
1322
|
-
if (!equals(this.
|
|
1322
|
+
if (!equals(this.k3d_1, other.k3d_1))
|
|
1323
1323
|
return false;
|
|
1324
|
-
if (!equals(this.
|
|
1324
|
+
if (!equals(this.l3d_1, other.l3d_1))
|
|
1325
1325
|
return false;
|
|
1326
|
-
if (!(this.
|
|
1326
|
+
if (!(this.m3d_1 === other.m3d_1))
|
|
1327
1327
|
return false;
|
|
1328
|
-
if (!(this.
|
|
1328
|
+
if (!(this.n3d_1 === other.n3d_1))
|
|
1329
1329
|
return false;
|
|
1330
|
-
if (!equals(this.
|
|
1330
|
+
if (!equals(this.o3d_1, other.o3d_1))
|
|
1331
1331
|
return false;
|
|
1332
|
-
if (!equals(this.
|
|
1332
|
+
if (!equals(this.p3d_1, other.p3d_1))
|
|
1333
1333
|
return false;
|
|
1334
|
-
if (!(this.
|
|
1334
|
+
if (!(this.q3d_1 === other.q3d_1))
|
|
1335
1335
|
return false;
|
|
1336
|
-
if (!(this.
|
|
1336
|
+
if (!(this.r3d_1 === other.r3d_1))
|
|
1337
1337
|
return false;
|
|
1338
|
-
if (!equals(this.
|
|
1338
|
+
if (!equals(this.s3d_1, other.s3d_1))
|
|
1339
1339
|
return false;
|
|
1340
1340
|
return true;
|
|
1341
1341
|
};
|
|
1342
1342
|
function PrologSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1343
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1343
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
1344
1344
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1345
1345
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1346
1346
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
return PrologSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(PrologSolver)));
|
|
1357
1357
|
}
|
|
1358
1358
|
function PrologSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1359
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1359
|
+
unificator = unificator === VOID ? Companion_getInstance().s1n() : unificator;
|
|
1360
1360
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1361
1361
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1362
1362
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1373,47 +1373,47 @@
|
|
|
1373
1373
|
function PrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1374
1374
|
return PrologSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(PrologSolver)));
|
|
1375
1375
|
}
|
|
1376
|
-
protoOf(PrologSolver).
|
|
1377
|
-
return Companion_instance_15.
|
|
1376
|
+
protoOf(PrologSolver).z3d = function (initialState, onStateTransition) {
|
|
1377
|
+
return Companion_instance_15.m3h(initialState, onStateTransition);
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(PrologSolver).
|
|
1379
|
+
protoOf(PrologSolver).f1z = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1380
1380
|
return PrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(PrologSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1383
1383
|
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologSolver) ? $super : THROW_CCE());
|
|
1384
1384
|
};
|
|
1385
|
-
protoOf(PrologSolver).
|
|
1385
|
+
protoOf(PrologSolver).o1v = function () {
|
|
1386
1386
|
return this.copy();
|
|
1387
1387
|
};
|
|
1388
1388
|
protoOf(PrologSolver).clone = function () {
|
|
1389
|
-
return this.
|
|
1389
|
+
return this.o1v();
|
|
1390
1390
|
};
|
|
1391
1391
|
function PrologSolver() {
|
|
1392
1392
|
}
|
|
1393
1393
|
function PrologSolverFactory() {
|
|
1394
1394
|
}
|
|
1395
|
-
protoOf(PrologSolverFactory).
|
|
1395
|
+
protoOf(PrologSolverFactory).e21 = function () {
|
|
1396
1396
|
return DefaultBuiltins_getInstance();
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(PrologSolverFactory).
|
|
1398
|
+
protoOf(PrologSolverFactory).p21 = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1399
1399
|
return PrologSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1400
1400
|
};
|
|
1401
1401
|
protoOf(PrologSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
1402
1402
|
return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof PrologSolverFactory) ? $super : THROW_CCE());
|
|
1403
1403
|
};
|
|
1404
|
-
protoOf(PrologSolverFactory).
|
|
1404
|
+
protoOf(PrologSolverFactory).v21 = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1405
1405
|
return PrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1406
1406
|
};
|
|
1407
1407
|
protoOf(PrologSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1408
1408
|
return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologSolverFactory) ? $super : THROW_CCE());
|
|
1409
1409
|
};
|
|
1410
|
-
protoOf(PrologSolverFactory).
|
|
1410
|
+
protoOf(PrologSolverFactory).x21 = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1411
1411
|
return MutablePrologSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1412
1412
|
};
|
|
1413
1413
|
protoOf(PrologSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1414
1414
|
return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof PrologSolverFactory) ? $super : THROW_CCE());
|
|
1415
1415
|
};
|
|
1416
|
-
protoOf(PrologSolverFactory).
|
|
1416
|
+
protoOf(PrologSolverFactory).z21 = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1417
1417
|
return MutablePrologSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1418
1418
|
};
|
|
1419
1419
|
protoOf(PrologSolverFactory).rawMutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
@@ -1428,7 +1428,7 @@
|
|
|
1428
1428
|
}
|
|
1429
1429
|
function Companion() {
|
|
1430
1430
|
}
|
|
1431
|
-
protoOf(Companion).
|
|
1431
|
+
protoOf(Companion).m3h = function (initialState, onStateTransition) {
|
|
1432
1432
|
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1433
1433
|
};
|
|
1434
1434
|
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
@@ -1439,7 +1439,7 @@
|
|
|
1439
1439
|
tmp = onStateTransition;
|
|
1440
1440
|
}
|
|
1441
1441
|
onStateTransition = tmp;
|
|
1442
|
-
return $super === VOID ? this.
|
|
1442
|
+
return $super === VOID ? this.m3h(initialState, onStateTransition) : $super.m3h.call(this, initialState, onStateTransition);
|
|
1443
1443
|
};
|
|
1444
1444
|
var Companion_instance_15;
|
|
1445
1445
|
function Companion_getInstance_5() {
|
|
@@ -1447,81 +1447,81 @@
|
|
|
1447
1447
|
}
|
|
1448
1448
|
function AbstractEndState(solution, context) {
|
|
1449
1449
|
AbstractState.call(this, context);
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1450
|
+
this.p3h_1 = solution;
|
|
1451
|
+
this.q3h_1 = context;
|
|
1452
1452
|
}
|
|
1453
|
-
protoOf(AbstractEndState).
|
|
1454
|
-
return this.
|
|
1453
|
+
protoOf(AbstractEndState).i2n = function () {
|
|
1454
|
+
return this.p3h_1;
|
|
1455
1455
|
};
|
|
1456
|
-
protoOf(AbstractEndState).
|
|
1457
|
-
return this.
|
|
1456
|
+
protoOf(AbstractEndState).r8 = function () {
|
|
1457
|
+
return this.q3h_1;
|
|
1458
1458
|
};
|
|
1459
|
-
protoOf(AbstractEndState).
|
|
1459
|
+
protoOf(AbstractEndState).r3h = function () {
|
|
1460
1460
|
throw NoSuchElementException_init_$Create$();
|
|
1461
1461
|
};
|
|
1462
1462
|
protoOf(AbstractEndState).asEndState = function () {
|
|
1463
|
-
return this.
|
|
1463
|
+
return this.z3h();
|
|
1464
1464
|
};
|
|
1465
1465
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1466
1466
|
return function () {
|
|
1467
|
-
return this$0.
|
|
1467
|
+
return this$0.w3h();
|
|
1468
1468
|
};
|
|
1469
1469
|
}
|
|
1470
1470
|
function AbstractState$_get_executionTime_$ref_gwd5wm() {
|
|
1471
1471
|
return constructCallableReference(function (p0) {
|
|
1472
|
-
return p0.
|
|
1472
|
+
return p0.u3h();
|
|
1473
1473
|
}, 1, 0, 109);
|
|
1474
1474
|
}
|
|
1475
1475
|
function AbstractState(context) {
|
|
1476
|
-
this.
|
|
1476
|
+
this.s3h_1 = context;
|
|
1477
1477
|
var tmp = this;
|
|
1478
|
-
tmp.
|
|
1478
|
+
tmp.t3h_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1479
1479
|
}
|
|
1480
|
-
protoOf(AbstractState).
|
|
1481
|
-
return this.
|
|
1480
|
+
protoOf(AbstractState).r8 = function () {
|
|
1481
|
+
return this.s3h_1;
|
|
1482
1482
|
};
|
|
1483
|
-
protoOf(AbstractState).
|
|
1484
|
-
var tmp0 = this.
|
|
1483
|
+
protoOf(AbstractState).u3h = function () {
|
|
1484
|
+
var tmp0 = this.t3h_1;
|
|
1485
1485
|
var tmp = KProperty1;
|
|
1486
1486
|
// Inline function 'kotlin.getValue' call
|
|
1487
1487
|
/* dead property reference removed */
|
|
1488
|
-
return tmp0.
|
|
1488
|
+
return tmp0.i2();
|
|
1489
1489
|
};
|
|
1490
|
-
protoOf(AbstractState).
|
|
1491
|
-
return subtract(this.
|
|
1490
|
+
protoOf(AbstractState).v3h = function () {
|
|
1491
|
+
return subtract(this.u3h(), this.r8().m3d_1) > this.r8().n3d_1;
|
|
1492
1492
|
};
|
|
1493
|
-
protoOf(AbstractState).
|
|
1493
|
+
protoOf(AbstractState).r = function () {
|
|
1494
1494
|
var tmp;
|
|
1495
|
-
if (this.
|
|
1496
|
-
var tmp0_exceededDuration = this.
|
|
1497
|
-
var tmp1_context = this.
|
|
1498
|
-
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.
|
|
1495
|
+
if (this.v3h()) {
|
|
1496
|
+
var tmp0_exceededDuration = this.r8().n3d_1;
|
|
1497
|
+
var tmp1_context = this.r8();
|
|
1498
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.r8().o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h()));
|
|
1499
1499
|
} else {
|
|
1500
|
-
tmp = this.
|
|
1500
|
+
tmp = this.r3h();
|
|
1501
1501
|
}
|
|
1502
1502
|
return tmp;
|
|
1503
1503
|
};
|
|
1504
1504
|
protoOf(AbstractState).next = function () {
|
|
1505
|
-
return this.
|
|
1505
|
+
return this.r();
|
|
1506
1506
|
};
|
|
1507
|
-
protoOf(AbstractState).
|
|
1507
|
+
protoOf(AbstractState).w3h = function () {
|
|
1508
1508
|
return currentTimeInstant();
|
|
1509
1509
|
};
|
|
1510
|
-
protoOf(AbstractState).
|
|
1510
|
+
protoOf(AbstractState).x3h = function () {
|
|
1511
1511
|
// Inline function 'kotlin.Long.plus' call
|
|
1512
|
-
var this_0 = this.
|
|
1512
|
+
var this_0 = this.r8().r3d_1;
|
|
1513
1513
|
return add(this_0, fromInt(1));
|
|
1514
1514
|
};
|
|
1515
|
-
protoOf(AbstractState).
|
|
1516
|
-
var tmp0 = _this__u8e3s4.
|
|
1515
|
+
protoOf(AbstractState).b3i = function (_this__u8e3s4) {
|
|
1516
|
+
var tmp0 = _this__u8e3s4.t3d_1;
|
|
1517
1517
|
var tmp$ret$0;
|
|
1518
1518
|
$l$block: {
|
|
1519
1519
|
// Inline function 'kotlin.sequences.first' call
|
|
1520
|
-
var _iterator__ex2g4s = tmp0.
|
|
1521
|
-
while (_iterator__ex2g4s.
|
|
1522
|
-
var element = _iterator__ex2g4s.
|
|
1523
|
-
var tmp0_safe_receiver = element.
|
|
1524
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1520
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1521
|
+
while (_iterator__ex2g4s.q()) {
|
|
1522
|
+
var element = _iterator__ex2g4s.r();
|
|
1523
|
+
var tmp0_safe_receiver = element.x3c_1;
|
|
1524
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.xw();
|
|
1525
1525
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1526
1526
|
if (!(tmp === Throw_getInstance().signature.name)) {
|
|
1527
1527
|
tmp$ret$0 = element;
|
|
@@ -1538,26 +1538,26 @@
|
|
|
1538
1538
|
}
|
|
1539
1539
|
function StateBacktracking(context) {
|
|
1540
1540
|
AbstractState.call(this, context);
|
|
1541
|
-
this.
|
|
1541
|
+
this.e3i_1 = context;
|
|
1542
1542
|
}
|
|
1543
|
-
protoOf(StateBacktracking).
|
|
1544
|
-
return this.
|
|
1543
|
+
protoOf(StateBacktracking).r8 = function () {
|
|
1544
|
+
return this.e3i_1;
|
|
1545
1545
|
};
|
|
1546
|
-
protoOf(StateBacktracking).
|
|
1547
|
-
var choicePoints = this.
|
|
1546
|
+
protoOf(StateBacktracking).r3h = function () {
|
|
1547
|
+
var choicePoints = this.e3i_1.o3d_1;
|
|
1548
1548
|
var tmp;
|
|
1549
1549
|
// Inline function 'kotlin.let' call
|
|
1550
|
-
if (choicePoints === null || !choicePoints.
|
|
1551
|
-
tmp = new StateEnd(Companion_instance_8.no(this.
|
|
1550
|
+
if (choicePoints === null || !choicePoints.v3e()) {
|
|
1551
|
+
tmp = new StateEnd(Companion_instance_8.no(this.e3i_1.i3d_1), this.e3i_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h()));
|
|
1552
1552
|
} else {
|
|
1553
|
-
var tmp0 = ensureNotNull(choicePoints).
|
|
1553
|
+
var tmp0 = ensureNotNull(choicePoints).w3e();
|
|
1554
1554
|
var tmp$ret$2;
|
|
1555
1555
|
$l$block: {
|
|
1556
1556
|
// Inline function 'kotlin.sequences.first' call
|
|
1557
|
-
var _iterator__ex2g4s = tmp0.
|
|
1558
|
-
while (_iterator__ex2g4s.
|
|
1559
|
-
var element = _iterator__ex2g4s.
|
|
1560
|
-
if (element.
|
|
1557
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
1558
|
+
while (_iterator__ex2g4s.q()) {
|
|
1559
|
+
var element = _iterator__ex2g4s.r();
|
|
1560
|
+
if (element.i3e().qr()) {
|
|
1561
1561
|
tmp$ret$2 = element;
|
|
1562
1562
|
break $l$block;
|
|
1563
1563
|
}
|
|
@@ -1565,9 +1565,9 @@
|
|
|
1565
1565
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1566
1566
|
}
|
|
1567
1567
|
var choicePointContext = tmp$ret$2;
|
|
1568
|
-
var nextContext = choicePointContext.
|
|
1568
|
+
var nextContext = choicePointContext.n3e(this.e3i_1);
|
|
1569
1569
|
var tmp_0;
|
|
1570
|
-
if (nextContext.
|
|
1570
|
+
if (nextContext.l3d_1.qr()) {
|
|
1571
1571
|
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1572
1572
|
} else {
|
|
1573
1573
|
tmp_0 = new StateRuleExecution(nextContext);
|
|
@@ -1576,71 +1576,71 @@
|
|
|
1576
1576
|
}
|
|
1577
1577
|
return tmp;
|
|
1578
1578
|
};
|
|
1579
|
-
protoOf(StateBacktracking).
|
|
1580
|
-
return this.
|
|
1579
|
+
protoOf(StateBacktracking).a3i = function (context) {
|
|
1580
|
+
return this.f3i(context);
|
|
1581
1581
|
};
|
|
1582
1582
|
protoOf(StateBacktracking).clone = function (context, $super) {
|
|
1583
1583
|
return this.clone(context, ($super == null ? true : $super instanceof StateBacktracking) ? $super : THROW_CCE());
|
|
1584
1584
|
};
|
|
1585
|
-
protoOf(StateBacktracking).
|
|
1585
|
+
protoOf(StateBacktracking).f3i = function (context) {
|
|
1586
1586
|
return new StateBacktracking(context);
|
|
1587
1587
|
};
|
|
1588
1588
|
protoOf(StateBacktracking).toString = function () {
|
|
1589
|
-
return 'StateBacktracking(context=' + this.
|
|
1589
|
+
return 'StateBacktracking(context=' + this.e3i_1.toString() + ')';
|
|
1590
1590
|
};
|
|
1591
1591
|
protoOf(StateBacktracking).hashCode = function () {
|
|
1592
|
-
return this.
|
|
1592
|
+
return this.e3i_1.hashCode();
|
|
1593
1593
|
};
|
|
1594
1594
|
protoOf(StateBacktracking).equals = function (other) {
|
|
1595
1595
|
if (this === other)
|
|
1596
1596
|
return true;
|
|
1597
1597
|
if (!(other instanceof StateBacktracking))
|
|
1598
1598
|
return false;
|
|
1599
|
-
if (!this.
|
|
1599
|
+
if (!this.e3i_1.equals(other.e3i_1))
|
|
1600
1600
|
return false;
|
|
1601
1601
|
return true;
|
|
1602
1602
|
};
|
|
1603
1603
|
function StateEnd(solution, context) {
|
|
1604
1604
|
AbstractEndState.call(this, solution, context);
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1605
|
+
this.k3i_1 = solution;
|
|
1606
|
+
this.l3i_1 = context;
|
|
1607
1607
|
}
|
|
1608
|
-
protoOf(StateEnd).
|
|
1609
|
-
return this.
|
|
1608
|
+
protoOf(StateEnd).i2n = function () {
|
|
1609
|
+
return this.k3i_1;
|
|
1610
1610
|
};
|
|
1611
|
-
protoOf(StateEnd).
|
|
1612
|
-
return this.
|
|
1611
|
+
protoOf(StateEnd).r8 = function () {
|
|
1612
|
+
return this.l3i_1;
|
|
1613
1613
|
};
|
|
1614
|
-
protoOf(StateEnd).
|
|
1614
|
+
protoOf(StateEnd).v3h = function () {
|
|
1615
1615
|
return false;
|
|
1616
1616
|
};
|
|
1617
|
-
protoOf(StateEnd).
|
|
1617
|
+
protoOf(StateEnd).r3h = function () {
|
|
1618
1618
|
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.
|
|
1619
|
+
if (this.l3i_1.v3e()) {
|
|
1620
|
+
var tmp0_$this = this.l3i_1;
|
|
1621
|
+
var tmp1_step = this.x3h();
|
|
1622
|
+
var tmp2_startTime = this.w3h();
|
|
1623
|
+
tmp = new StateBacktracking(tmp0_$this.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1624
1624
|
} else {
|
|
1625
|
-
tmp = protoOf(AbstractEndState).
|
|
1625
|
+
tmp = protoOf(AbstractEndState).r3h.call(this);
|
|
1626
1626
|
}
|
|
1627
1627
|
return tmp;
|
|
1628
1628
|
};
|
|
1629
|
-
protoOf(StateEnd).
|
|
1630
|
-
return this.
|
|
1629
|
+
protoOf(StateEnd).a3i = function (context) {
|
|
1630
|
+
return this.m3i(this.k3i_1, context);
|
|
1631
1631
|
};
|
|
1632
1632
|
protoOf(StateEnd).clone = function (context, $super) {
|
|
1633
1633
|
return this.clone(context, ($super == null ? true : $super instanceof StateEnd) ? $super : THROW_CCE());
|
|
1634
1634
|
};
|
|
1635
|
-
protoOf(StateEnd).
|
|
1635
|
+
protoOf(StateEnd).m3i = function (solution, context) {
|
|
1636
1636
|
return new StateEnd(solution, context);
|
|
1637
1637
|
};
|
|
1638
1638
|
protoOf(StateEnd).toString = function () {
|
|
1639
|
-
return 'StateEnd(solution=' + toString(this.
|
|
1639
|
+
return 'StateEnd(solution=' + toString(this.k3i_1) + ', context=' + this.l3i_1.toString() + ')';
|
|
1640
1640
|
};
|
|
1641
1641
|
protoOf(StateEnd).hashCode = function () {
|
|
1642
|
-
var result = hashCode(this.
|
|
1643
|
-
result = imul(result, 31) + this.
|
|
1642
|
+
var result = hashCode(this.k3i_1);
|
|
1643
|
+
result = imul(result, 31) + this.l3i_1.hashCode() | 0;
|
|
1644
1644
|
return result;
|
|
1645
1645
|
};
|
|
1646
1646
|
protoOf(StateEnd).equals = function (other) {
|
|
@@ -1648,19 +1648,19 @@
|
|
|
1648
1648
|
return true;
|
|
1649
1649
|
if (!(other instanceof StateEnd))
|
|
1650
1650
|
return false;
|
|
1651
|
-
if (!equals(this.
|
|
1651
|
+
if (!equals(this.k3i_1, other.k3i_1))
|
|
1652
1652
|
return false;
|
|
1653
|
-
if (!this.
|
|
1653
|
+
if (!this.l3i_1.equals(other.l3i_1))
|
|
1654
1654
|
return false;
|
|
1655
1655
|
return true;
|
|
1656
1656
|
};
|
|
1657
1657
|
protoOf(StateEnd).asEndState = function () {
|
|
1658
|
-
return this.
|
|
1658
|
+
return this.z3h();
|
|
1659
1659
|
};
|
|
1660
1660
|
function isCatch($this, $receiver) {
|
|
1661
1661
|
var tmp;
|
|
1662
|
-
if ($receiver.
|
|
1663
|
-
var tmp_0 = $receiver.
|
|
1662
|
+
if ($receiver.rw() === 3) {
|
|
1663
|
+
var tmp_0 = $receiver.xw();
|
|
1664
1664
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1665
1665
|
tmp = tmp_0 === Catch_getInstance().signature.name;
|
|
1666
1666
|
} else {
|
|
@@ -1671,9 +1671,9 @@
|
|
|
1671
1671
|
function getExceptionContent($this, $receiver) {
|
|
1672
1672
|
var tmp;
|
|
1673
1673
|
if ($receiver instanceof MessageError) {
|
|
1674
|
-
tmp = $receiver.
|
|
1674
|
+
tmp = $receiver.a2a();
|
|
1675
1675
|
} else {
|
|
1676
|
-
tmp = $receiver.
|
|
1676
|
+
tmp = $receiver.c28();
|
|
1677
1677
|
}
|
|
1678
1678
|
return tmp;
|
|
1679
1679
|
}
|
|
@@ -1687,17 +1687,17 @@
|
|
|
1687
1687
|
return tmp;
|
|
1688
1688
|
}
|
|
1689
1689
|
function _get_finalState__3aigq8($this) {
|
|
1690
|
-
return new StateHalt(toPublicException($this, $this.
|
|
1690
|
+
return new StateHalt(toPublicException($this, $this.p3i_1), $this.q3i_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
1691
1691
|
}
|
|
1692
1692
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1693
|
-
return new StateException($this.
|
|
1693
|
+
return new StateException($this.p3i_1, ensureNotNull($this.q3i_1.p3d_1).o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
1694
1694
|
}
|
|
1695
1695
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1696
1696
|
var tmp;
|
|
1697
1697
|
if (isCatch($this, catchGoal)) {
|
|
1698
1698
|
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent($this, error));
|
|
1699
1699
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1700
|
-
} else if ($this.
|
|
1700
|
+
} else if ($this.q3i_1.g3h()) {
|
|
1701
1701
|
tmp = _get_finalState__3aigq8($this);
|
|
1702
1702
|
} else {
|
|
1703
1703
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1706,18 +1706,18 @@
|
|
|
1706
1706
|
}
|
|
1707
1707
|
function handleCatch($this, catchGoal, catcher) {
|
|
1708
1708
|
var tmp;
|
|
1709
|
-
if (catcher.
|
|
1710
|
-
var tmp_0 = $this.
|
|
1709
|
+
if (catcher.b13()) {
|
|
1710
|
+
var tmp_0 = $this.q3i_1.h3d_1.plus(catcher);
|
|
1711
1711
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1712
1712
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1713
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1714
|
-
var tmp0_$this = $this.
|
|
1713
|
+
var newGoals = plus_0(toGoals(subGoals), $this.q3i_1.j3d_1.nr());
|
|
1714
|
+
var tmp0_$this = $this.q3i_1;
|
|
1715
1715
|
var tmp1_rules = Companion_instance_7.empty();
|
|
1716
1716
|
var tmp2_primitives = Companion_instance_7.empty();
|
|
1717
1717
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1718
|
-
var tmp4_step = $this.
|
|
1719
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
1720
|
-
} else if ($this.
|
|
1718
|
+
var tmp4_step = $this.x3h();
|
|
1719
|
+
tmp = new StateGoalSelection(tmp0_$this.o3e(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));
|
|
1720
|
+
} else if ($this.q3i_1.g3h()) {
|
|
1721
1721
|
tmp = _get_finalState__3aigq8($this);
|
|
1722
1722
|
} else {
|
|
1723
1723
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1727,43 +1727,43 @@
|
|
|
1727
1727
|
function StateException$handleCatch$lambda(this$0) {
|
|
1728
1728
|
return function (_destruct__k2r9zo) {
|
|
1729
1729
|
// Inline function 'kotlin.collections.component1' call
|
|
1730
|
-
var it = _destruct__k2r9zo.
|
|
1731
|
-
return this$0.
|
|
1730
|
+
var it = _destruct__k2r9zo.h2();
|
|
1731
|
+
return this$0.q3i_1.h3h(it);
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
1734
|
function StateException(exception, context) {
|
|
1735
1735
|
AbstractState.call(this, context);
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1736
|
+
this.p3i_1 = exception;
|
|
1737
|
+
this.q3i_1 = context;
|
|
1738
1738
|
}
|
|
1739
|
-
protoOf(StateException).
|
|
1740
|
-
return this.
|
|
1739
|
+
protoOf(StateException).r8 = function () {
|
|
1740
|
+
return this.q3i_1;
|
|
1741
1741
|
};
|
|
1742
|
-
protoOf(StateException).
|
|
1742
|
+
protoOf(StateException).r3h = function () {
|
|
1743
1743
|
var tmp;
|
|
1744
|
-
if (this.
|
|
1745
|
-
var catchGoal = ensureNotNull(this.
|
|
1746
|
-
tmp = catchGoal.
|
|
1744
|
+
if (this.p3i_1 instanceof LogicError) {
|
|
1745
|
+
var catchGoal = ensureNotNull(this.q3i_1.e3h());
|
|
1746
|
+
tmp = catchGoal.dx() ? handleStruct(this, this.q3i_1.y3c_1, catchGoal.castToStruct(), this.p3i_1) : this.q3i_1.g3h() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1747
1747
|
} else {
|
|
1748
1748
|
tmp = _get_finalState__3aigq8(this);
|
|
1749
1749
|
}
|
|
1750
1750
|
return tmp;
|
|
1751
1751
|
};
|
|
1752
|
-
protoOf(StateException).
|
|
1753
|
-
return this.
|
|
1752
|
+
protoOf(StateException).a3i = function (context) {
|
|
1753
|
+
return this.r3i(this.p3i_1, context);
|
|
1754
1754
|
};
|
|
1755
1755
|
protoOf(StateException).clone = function (context, $super) {
|
|
1756
1756
|
return this.clone(context, ($super == null ? true : $super instanceof StateException) ? $super : THROW_CCE());
|
|
1757
1757
|
};
|
|
1758
|
-
protoOf(StateException).
|
|
1758
|
+
protoOf(StateException).r3i = function (exception, context) {
|
|
1759
1759
|
return new StateException(exception, context);
|
|
1760
1760
|
};
|
|
1761
1761
|
protoOf(StateException).toString = function () {
|
|
1762
|
-
return 'StateException(exception=' + this.
|
|
1762
|
+
return 'StateException(exception=' + this.p3i_1.toString() + ', context=' + this.q3i_1.toString() + ')';
|
|
1763
1763
|
};
|
|
1764
1764
|
protoOf(StateException).hashCode = function () {
|
|
1765
|
-
var result = hashCode(this.
|
|
1766
|
-
result = imul(result, 31) + this.
|
|
1765
|
+
var result = hashCode(this.p3i_1);
|
|
1766
|
+
result = imul(result, 31) + this.q3i_1.hashCode() | 0;
|
|
1767
1767
|
return result;
|
|
1768
1768
|
};
|
|
1769
1769
|
protoOf(StateException).equals = function (other) {
|
|
@@ -1771,107 +1771,107 @@
|
|
|
1771
1771
|
return true;
|
|
1772
1772
|
if (!(other instanceof StateException))
|
|
1773
1773
|
return false;
|
|
1774
|
-
if (!equals(this.
|
|
1774
|
+
if (!equals(this.p3i_1, other.p3i_1))
|
|
1775
1775
|
return false;
|
|
1776
|
-
if (!this.
|
|
1776
|
+
if (!this.q3i_1.equals(other.q3i_1))
|
|
1777
1777
|
return false;
|
|
1778
1778
|
return true;
|
|
1779
1779
|
};
|
|
1780
1780
|
function StateGoalSelection$computeNext$lambda(this$0) {
|
|
1781
1781
|
return function (_destruct__k2r9zo) {
|
|
1782
1782
|
// Inline function 'kotlin.collections.component1' call
|
|
1783
|
-
var it = _destruct__k2r9zo.
|
|
1784
|
-
return this$0.
|
|
1783
|
+
var it = _destruct__k2r9zo.h2();
|
|
1784
|
+
return this$0.u3i_1.h3h(it);
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
1787
|
function StateGoalSelection(context) {
|
|
1788
1788
|
AbstractState.call(this, context);
|
|
1789
|
-
this.
|
|
1789
|
+
this.u3i_1 = context;
|
|
1790
1790
|
}
|
|
1791
|
-
protoOf(StateGoalSelection).
|
|
1792
|
-
return this.
|
|
1791
|
+
protoOf(StateGoalSelection).r8 = function () {
|
|
1792
|
+
return this.u3i_1;
|
|
1793
1793
|
};
|
|
1794
|
-
protoOf(StateGoalSelection).
|
|
1794
|
+
protoOf(StateGoalSelection).r3h = function () {
|
|
1795
1795
|
var tmp;
|
|
1796
|
-
if (this.
|
|
1796
|
+
if (this.u3i_1.j3d_1.rr()) {
|
|
1797
1797
|
var tmp_0;
|
|
1798
|
-
if (this.
|
|
1799
|
-
tmp_0 = new StateEnd(Companion_instance_8.
|
|
1798
|
+
if (this.u3i_1.g3h()) {
|
|
1799
|
+
tmp_0 = new StateEnd(Companion_instance_8.y1z(this.u3i_1.i3d_1, this.u3i_1.h3d_1), this.u3i_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h()));
|
|
1800
1800
|
} else {
|
|
1801
1801
|
// 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.
|
|
1802
|
+
var it = ensureNotNull(this.u3i_1.p3d_1);
|
|
1803
|
+
var tmp0_choicePoints = this.u3i_1.o3d_1;
|
|
1804
|
+
var tmp1_flags = this.u3i_1.a3d_1;
|
|
1805
|
+
var tmp2_dynamicKb = this.u3i_1.c3d_1;
|
|
1806
|
+
var tmp3_staticKb = this.u3i_1.b3d_1;
|
|
1807
|
+
var tmp4_substitution = this.u3i_1.h3d_1.v12(StateGoalSelection$computeNext$lambda(this));
|
|
1808
|
+
var tmp5_goals = it.j3d_1.nr();
|
|
1809
|
+
var tmp6_procedure = it.x3c_1;
|
|
1810
|
+
var tmp7_step = this.x3h();
|
|
1811
|
+
var tmp8_startTime = this.u3i_1.m3d_1;
|
|
1812
|
+
var tmp9_operators = this.u3i_1.d3d_1;
|
|
1813
|
+
var tmp10_inputChannels = this.u3i_1.e3d_1;
|
|
1814
|
+
var tmp11_outputChannels = this.u3i_1.f3d_1;
|
|
1815
|
+
var tmp12_libraries = this.u3i_1.z3c_1;
|
|
1816
|
+
var tmp13_customData = this.u3i_1.g3d_1;
|
|
1817
|
+
var tmp$ret$0 = it.o3e(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
1818
|
tmp_0 = new StateGoalSelection(tmp$ret$0);
|
|
1819
1819
|
}
|
|
1820
1820
|
tmp = tmp_0;
|
|
1821
|
-
} else if (equals(this.
|
|
1822
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1821
|
+
} else if (equals(this.u3i_1.a3d_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().l2d_1)) {
|
|
1822
|
+
tmp = new StatePrimitiveSelection(this.u3i_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h(), plus_1(this.u3i_1.s3d_1, toSet(ensureNotNull(this.u3i_1.j3d_1.pr()).zw()))));
|
|
1823
1823
|
} else {
|
|
1824
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1824
|
+
tmp = new StatePrimitiveSelection(this.u3i_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h()));
|
|
1825
1825
|
}
|
|
1826
1826
|
return tmp;
|
|
1827
1827
|
};
|
|
1828
|
-
protoOf(StateGoalSelection).
|
|
1829
|
-
return this.
|
|
1828
|
+
protoOf(StateGoalSelection).a3i = function (context) {
|
|
1829
|
+
return this.f3i(context);
|
|
1830
1830
|
};
|
|
1831
1831
|
protoOf(StateGoalSelection).clone = function (context, $super) {
|
|
1832
1832
|
return this.clone(context, ($super == null ? true : $super instanceof StateGoalSelection) ? $super : THROW_CCE());
|
|
1833
1833
|
};
|
|
1834
|
-
protoOf(StateGoalSelection).
|
|
1834
|
+
protoOf(StateGoalSelection).f3i = function (context) {
|
|
1835
1835
|
return new StateGoalSelection(context);
|
|
1836
1836
|
};
|
|
1837
1837
|
protoOf(StateGoalSelection).toString = function () {
|
|
1838
|
-
return 'StateGoalSelection(context=' + this.
|
|
1838
|
+
return 'StateGoalSelection(context=' + this.u3i_1.toString() + ')';
|
|
1839
1839
|
};
|
|
1840
1840
|
protoOf(StateGoalSelection).hashCode = function () {
|
|
1841
|
-
return this.
|
|
1841
|
+
return this.u3i_1.hashCode();
|
|
1842
1842
|
};
|
|
1843
1843
|
protoOf(StateGoalSelection).equals = function (other) {
|
|
1844
1844
|
if (this === other)
|
|
1845
1845
|
return true;
|
|
1846
1846
|
if (!(other instanceof StateGoalSelection))
|
|
1847
1847
|
return false;
|
|
1848
|
-
if (!this.
|
|
1848
|
+
if (!this.u3i_1.equals(other.u3i_1))
|
|
1849
1849
|
return false;
|
|
1850
1850
|
return true;
|
|
1851
1851
|
};
|
|
1852
1852
|
function StateHalt(exception, context) {
|
|
1853
|
-
AbstractEndState.call(this, Companion_instance_8.halt(context.
|
|
1854
|
-
this.
|
|
1855
|
-
this.
|
|
1853
|
+
AbstractEndState.call(this, Companion_instance_8.halt(context.i3d_1, exception), context);
|
|
1854
|
+
this.z3i_1 = exception;
|
|
1855
|
+
this.a3j_1 = context;
|
|
1856
1856
|
}
|
|
1857
|
-
protoOf(StateHalt).
|
|
1858
|
-
return this.
|
|
1857
|
+
protoOf(StateHalt).r8 = function () {
|
|
1858
|
+
return this.a3j_1;
|
|
1859
1859
|
};
|
|
1860
|
-
protoOf(StateHalt).
|
|
1861
|
-
return this.
|
|
1860
|
+
protoOf(StateHalt).a3i = function (context) {
|
|
1861
|
+
return this.r3i(this.z3i_1, context);
|
|
1862
1862
|
};
|
|
1863
1863
|
protoOf(StateHalt).clone = function (context, $super) {
|
|
1864
1864
|
return this.clone(context, ($super == null ? true : $super instanceof StateHalt) ? $super : THROW_CCE());
|
|
1865
1865
|
};
|
|
1866
|
-
protoOf(StateHalt).
|
|
1866
|
+
protoOf(StateHalt).r3i = function (exception, context) {
|
|
1867
1867
|
return new StateHalt(exception, context);
|
|
1868
1868
|
};
|
|
1869
1869
|
protoOf(StateHalt).toString = function () {
|
|
1870
|
-
return 'StateHalt(exception=' + this.
|
|
1870
|
+
return 'StateHalt(exception=' + this.z3i_1.toString() + ', context=' + this.a3j_1.toString() + ')';
|
|
1871
1871
|
};
|
|
1872
1872
|
protoOf(StateHalt).hashCode = function () {
|
|
1873
|
-
var result = hashCode(this.
|
|
1874
|
-
result = imul(result, 31) + this.
|
|
1873
|
+
var result = hashCode(this.z3i_1);
|
|
1874
|
+
result = imul(result, 31) + this.a3j_1.hashCode() | 0;
|
|
1875
1875
|
return result;
|
|
1876
1876
|
};
|
|
1877
1877
|
protoOf(StateHalt).equals = function (other) {
|
|
@@ -1879,53 +1879,53 @@
|
|
|
1879
1879
|
return true;
|
|
1880
1880
|
if (!(other instanceof StateHalt))
|
|
1881
1881
|
return false;
|
|
1882
|
-
if (!equals(this.
|
|
1882
|
+
if (!equals(this.z3i_1, other.z3i_1))
|
|
1883
1883
|
return false;
|
|
1884
|
-
if (!this.
|
|
1884
|
+
if (!this.a3j_1.equals(other.a3j_1))
|
|
1885
1885
|
return false;
|
|
1886
1886
|
return true;
|
|
1887
1887
|
};
|
|
1888
1888
|
protoOf(StateHalt).asEndState = function () {
|
|
1889
|
-
return this.
|
|
1889
|
+
return this.z3h();
|
|
1890
1890
|
};
|
|
1891
1891
|
function StateInit(context) {
|
|
1892
1892
|
AbstractState.call(this, context);
|
|
1893
|
-
this.
|
|
1893
|
+
this.d3j_1 = context;
|
|
1894
1894
|
}
|
|
1895
|
-
protoOf(StateInit).
|
|
1896
|
-
return this.
|
|
1895
|
+
protoOf(StateInit).r8 = function () {
|
|
1896
|
+
return this.d3j_1;
|
|
1897
1897
|
};
|
|
1898
|
-
protoOf(StateInit).
|
|
1899
|
-
var tmp0_$this = this.
|
|
1900
|
-
var tmp1_goals = toGoals(this.
|
|
1898
|
+
protoOf(StateInit).r3h = function () {
|
|
1899
|
+
var tmp0_$this = this.d3j_1;
|
|
1900
|
+
var tmp1_goals = toGoals(this.d3j_1.i3d_1);
|
|
1901
1901
|
var tmp2_rules = Companion_instance_7.empty();
|
|
1902
1902
|
var tmp3_primitives = Companion_instance_7.empty();
|
|
1903
1903
|
var tmp4_substitution = Companion_getInstance_2().empty();
|
|
1904
|
-
var tmp5_customData = this.
|
|
1904
|
+
var tmp5_customData = this.d3j_1.g3d_1.preservePersistent();
|
|
1905
1905
|
var tmp6_relevantVariables = emptySet();
|
|
1906
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.
|
|
1906
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.o3e(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
1907
|
};
|
|
1908
|
-
protoOf(StateInit).
|
|
1909
|
-
return this.
|
|
1908
|
+
protoOf(StateInit).a3i = function (context) {
|
|
1909
|
+
return this.f3i(context);
|
|
1910
1910
|
};
|
|
1911
1911
|
protoOf(StateInit).clone = function (context, $super) {
|
|
1912
1912
|
return this.clone(context, ($super == null ? true : $super instanceof StateInit) ? $super : THROW_CCE());
|
|
1913
1913
|
};
|
|
1914
|
-
protoOf(StateInit).
|
|
1914
|
+
protoOf(StateInit).f3i = function (context) {
|
|
1915
1915
|
return new StateInit(context);
|
|
1916
1916
|
};
|
|
1917
1917
|
protoOf(StateInit).toString = function () {
|
|
1918
|
-
return 'StateInit(context=' + this.
|
|
1918
|
+
return 'StateInit(context=' + this.d3j_1.toString() + ')';
|
|
1919
1919
|
};
|
|
1920
1920
|
protoOf(StateInit).hashCode = function () {
|
|
1921
|
-
return this.
|
|
1921
|
+
return this.d3j_1.hashCode();
|
|
1922
1922
|
};
|
|
1923
1923
|
protoOf(StateInit).equals = function (other) {
|
|
1924
1924
|
if (this === other)
|
|
1925
1925
|
return true;
|
|
1926
1926
|
if (!(other instanceof StateInit))
|
|
1927
1927
|
return false;
|
|
1928
|
-
if (!this.
|
|
1928
|
+
if (!this.d3j_1.equals(other.d3j_1))
|
|
1929
1929
|
return false;
|
|
1930
1930
|
return true;
|
|
1931
1931
|
};
|
|
@@ -1933,41 +1933,41 @@
|
|
|
1933
1933
|
goals = goals === VOID ? null : goals;
|
|
1934
1934
|
procedureFromAncestor = procedureFromAncestor === VOID ? 0 : procedureFromAncestor;
|
|
1935
1935
|
substitution = substitution === VOID ? null : substitution;
|
|
1936
|
-
var tmp0_safe_receiver = $receiver.
|
|
1936
|
+
var tmp0_safe_receiver = $receiver.l3d_1.pr();
|
|
1937
1937
|
var tmp;
|
|
1938
1938
|
if (tmp0_safe_receiver == null) {
|
|
1939
1939
|
tmp = null;
|
|
1940
1940
|
} else {
|
|
1941
1941
|
// Inline function 'kotlin.let' call
|
|
1942
|
-
tmp = $receiver.
|
|
1942
|
+
tmp = $receiver.j3h(tmp0_safe_receiver.sideEffects);
|
|
1943
1943
|
}
|
|
1944
1944
|
var tmp1_elvis_lhs = tmp;
|
|
1945
1945
|
var ctx = tmp1_elvis_lhs == null ? $receiver : tmp1_elvis_lhs;
|
|
1946
|
-
var tmp4_goals = goals == null ? $receiver.
|
|
1947
|
-
var tmp_0 = drop($receiver.
|
|
1946
|
+
var tmp4_goals = goals == null ? $receiver.j3d_1 : goals;
|
|
1947
|
+
var tmp_0 = drop($receiver.t3d_1, procedureFromAncestor);
|
|
1948
1948
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
1949
1949
|
var tmp6_primitives = Companion_instance_7.empty();
|
|
1950
|
-
var tmp_1 = substitution == null ? $receiver.
|
|
1950
|
+
var tmp_1 = substitution == null ? $receiver.h3d_1 : substitution;
|
|
1951
1951
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
1952
|
-
var tmp8_step = $this.
|
|
1953
|
-
return ctx.
|
|
1952
|
+
var tmp8_step = $this.x3h();
|
|
1953
|
+
return ctx.o3e(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
1954
|
}
|
|
1955
1955
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
1956
|
-
return it.
|
|
1956
|
+
return it.x3c_1;
|
|
1957
1957
|
}
|
|
1958
1958
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
1959
1959
|
return function (it) {
|
|
1960
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.
|
|
1960
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.g3j_1, this$0.g3j_1.j3d_1.nr(), 1, this$0.g3j_1.y3c_1.mergeWithOccurCheck(this$0.g3j_1.h3d_1, it.u1x(), false)));
|
|
1961
1961
|
};
|
|
1962
1962
|
}
|
|
1963
1963
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
1964
1964
|
return function (it) {
|
|
1965
|
-
return new StateBacktracking(copyFromCurrentPrimitive(this$0, ensureNotNull(this$0.
|
|
1965
|
+
return new StateBacktracking(copyFromCurrentPrimitive(this$0, ensureNotNull(this$0.g3j_1.p3d_1)));
|
|
1966
1966
|
};
|
|
1967
1967
|
}
|
|
1968
1968
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
1969
1969
|
return function (it) {
|
|
1970
|
-
return new StateException(it.
|
|
1970
|
+
return new StateException(it.q1z().updateLastContext(this$0.b3i(this$0.g3j_1)), copyFromCurrentPrimitive(this$0, this$0.g3j_1));
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
1973
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -1975,15 +1975,15 @@
|
|
|
1975
1975
|
}
|
|
1976
1976
|
function StatePrimitiveExecution(context) {
|
|
1977
1977
|
AbstractState.call(this, context);
|
|
1978
|
-
this.
|
|
1978
|
+
this.g3j_1 = context;
|
|
1979
1979
|
}
|
|
1980
|
-
protoOf(StatePrimitiveExecution).
|
|
1981
|
-
return this.
|
|
1980
|
+
protoOf(StatePrimitiveExecution).r8 = function () {
|
|
1981
|
+
return this.g3j_1;
|
|
1982
1982
|
};
|
|
1983
|
-
protoOf(StatePrimitiveExecution).
|
|
1983
|
+
protoOf(StatePrimitiveExecution).r3h = function () {
|
|
1984
1984
|
var tmp;
|
|
1985
1985
|
try {
|
|
1986
|
-
var tmp0_safe_receiver = this.
|
|
1986
|
+
var tmp0_safe_receiver = this.g3j_1.l3d_1.pr();
|
|
1987
1987
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
1988
1988
|
var tmp_0;
|
|
1989
1989
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1992,15 +1992,15 @@
|
|
|
1992
1992
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
1993
1993
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
1994
1994
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
1995
|
-
tmp_0 = tmp1_safe_receiver.
|
|
1995
|
+
tmp_0 = tmp1_safe_receiver.t1z(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
1996
1996
|
}
|
|
1997
1997
|
var tmp2_elvis_lhs = tmp_0;
|
|
1998
|
-
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive(this, this.
|
|
1998
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive(this, this.g3j_1)) : tmp2_elvis_lhs;
|
|
1999
1999
|
} catch ($p) {
|
|
2000
2000
|
var tmp_4;
|
|
2001
2001
|
if ($p instanceof ResolutionException) {
|
|
2002
2002
|
var exception = $p;
|
|
2003
|
-
tmp_4 = new StateException(exception.updateLastContext(this.
|
|
2003
|
+
tmp_4 = new StateException(exception.updateLastContext(this.b3i(this.g3j_1)), this.g3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h()));
|
|
2004
2004
|
} else {
|
|
2005
2005
|
throw $p;
|
|
2006
2006
|
}
|
|
@@ -2008,57 +2008,57 @@
|
|
|
2008
2008
|
}
|
|
2009
2009
|
return tmp;
|
|
2010
2010
|
};
|
|
2011
|
-
protoOf(StatePrimitiveExecution).
|
|
2012
|
-
return this.
|
|
2011
|
+
protoOf(StatePrimitiveExecution).a3i = function (context) {
|
|
2012
|
+
return this.f3i(context);
|
|
2013
2013
|
};
|
|
2014
2014
|
protoOf(StatePrimitiveExecution).clone = function (context, $super) {
|
|
2015
2015
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveExecution) ? $super : THROW_CCE());
|
|
2016
2016
|
};
|
|
2017
|
-
protoOf(StatePrimitiveExecution).
|
|
2017
|
+
protoOf(StatePrimitiveExecution).f3i = function (context) {
|
|
2018
2018
|
return new StatePrimitiveExecution(context);
|
|
2019
2019
|
};
|
|
2020
2020
|
protoOf(StatePrimitiveExecution).toString = function () {
|
|
2021
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
2021
|
+
return 'StatePrimitiveExecution(context=' + this.g3j_1.toString() + ')';
|
|
2022
2022
|
};
|
|
2023
2023
|
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2024
|
-
return this.
|
|
2024
|
+
return this.g3j_1.hashCode();
|
|
2025
2025
|
};
|
|
2026
2026
|
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2027
2027
|
if (this === other)
|
|
2028
2028
|
return true;
|
|
2029
2029
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2030
2030
|
return false;
|
|
2031
|
-
if (!this.
|
|
2031
|
+
if (!this.g3j_1.equals(other.g3j_1))
|
|
2032
2032
|
return false;
|
|
2033
2033
|
return true;
|
|
2034
2034
|
};
|
|
2035
2035
|
function exceptionalState($this, exception) {
|
|
2036
|
-
return new StateException(exception, $this.
|
|
2036
|
+
return new StateException(exception, $this.j3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
2037
2037
|
}
|
|
2038
2038
|
function StatePrimitiveSelection(context) {
|
|
2039
2039
|
AbstractState.call(this, context);
|
|
2040
|
-
this.
|
|
2040
|
+
this.j3j_1 = context;
|
|
2041
2041
|
}
|
|
2042
|
-
protoOf(StatePrimitiveSelection).
|
|
2043
|
-
return this.
|
|
2042
|
+
protoOf(StatePrimitiveSelection).r8 = function () {
|
|
2043
|
+
return this.j3j_1;
|
|
2044
2044
|
};
|
|
2045
|
-
protoOf(StatePrimitiveSelection).
|
|
2045
|
+
protoOf(StatePrimitiveSelection).r3h = function () {
|
|
2046
2046
|
// Inline function 'kotlin.with' call
|
|
2047
|
-
var $this$with = this.
|
|
2048
|
-
var goal = ensureNotNull($this$with.
|
|
2047
|
+
var $this$with = this.j3j_1;
|
|
2048
|
+
var goal = ensureNotNull($this$with.e3h());
|
|
2049
2049
|
var tmp;
|
|
2050
|
-
if (goal.
|
|
2051
|
-
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.
|
|
2052
|
-
} else if (goal.
|
|
2050
|
+
if (goal.tx()) {
|
|
2051
|
+
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.j3j_1, extractSignature(ensureNotNull(this.j3j_1.x3c_1)), goal.castToVar()));
|
|
2052
|
+
} else if (goal.dx()) {
|
|
2053
2053
|
var goalStruct = goal.castToStruct();
|
|
2054
2054
|
var signature = extractSignature(goalStruct);
|
|
2055
2055
|
var tmp_0;
|
|
2056
|
-
if ($this$with.
|
|
2056
|
+
if ($this$with.z3c_1.hasPrimitive(signature)) {
|
|
2057
2057
|
var childContext = createChild($this$with);
|
|
2058
2058
|
var tmp_1;
|
|
2059
2059
|
try {
|
|
2060
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2061
|
-
var tmp0_elvis_lhs = $this$with.
|
|
2060
|
+
var request = toRequest(childContext, goalStruct, signature, this.u3h());
|
|
2061
|
+
var tmp0_elvis_lhs = $this$with.z3c_1.r2i().l2(signature);
|
|
2062
2062
|
var tmp_2;
|
|
2063
2063
|
if (tmp0_elvis_lhs == null) {
|
|
2064
2064
|
// Inline function 'kotlin.error' call
|
|
@@ -2074,7 +2074,7 @@
|
|
|
2074
2074
|
var tmp_3;
|
|
2075
2075
|
if ($p instanceof ResolutionException) {
|
|
2076
2076
|
var exception = $p;
|
|
2077
|
-
tmp_3 = exceptionalState(this, exception.updateLastContext(this.
|
|
2077
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.b3i(childContext)));
|
|
2078
2078
|
} else {
|
|
2079
2079
|
throw $p;
|
|
2080
2080
|
}
|
|
@@ -2082,106 +2082,106 @@
|
|
|
2082
2082
|
}
|
|
2083
2083
|
tmp_0 = tmp_1;
|
|
2084
2084
|
} else {
|
|
2085
|
-
tmp_0 = new StateRuleSelection(this.
|
|
2085
|
+
tmp_0 = new StateRuleSelection(this.j3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x3h()));
|
|
2086
2086
|
}
|
|
2087
2087
|
tmp = tmp_0;
|
|
2088
2088
|
} else {
|
|
2089
2089
|
var tmp_4 = Companion_instance_10;
|
|
2090
|
-
var tmp1_safe_receiver = this.
|
|
2090
|
+
var tmp1_safe_receiver = this.j3j_1.x3c_1;
|
|
2091
2091
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2092
|
-
tmp = exceptionalState(this, tmp_4.forGoal(this.
|
|
2092
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.j3j_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2093
2093
|
}
|
|
2094
2094
|
return tmp;
|
|
2095
2095
|
};
|
|
2096
|
-
protoOf(StatePrimitiveSelection).
|
|
2097
|
-
return this.
|
|
2096
|
+
protoOf(StatePrimitiveSelection).a3i = function (context) {
|
|
2097
|
+
return this.f3i(context);
|
|
2098
2098
|
};
|
|
2099
2099
|
protoOf(StatePrimitiveSelection).clone = function (context, $super) {
|
|
2100
2100
|
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveSelection) ? $super : THROW_CCE());
|
|
2101
2101
|
};
|
|
2102
|
-
protoOf(StatePrimitiveSelection).
|
|
2102
|
+
protoOf(StatePrimitiveSelection).f3i = function (context) {
|
|
2103
2103
|
return new StatePrimitiveSelection(context);
|
|
2104
2104
|
};
|
|
2105
2105
|
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2106
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2106
|
+
return 'StatePrimitiveSelection(context=' + this.j3j_1.toString() + ')';
|
|
2107
2107
|
};
|
|
2108
2108
|
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2109
|
-
return this.
|
|
2109
|
+
return this.j3j_1.hashCode();
|
|
2110
2110
|
};
|
|
2111
2111
|
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2112
2112
|
if (this === other)
|
|
2113
2113
|
return true;
|
|
2114
2114
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2115
2115
|
return false;
|
|
2116
|
-
if (!this.
|
|
2116
|
+
if (!this.j3j_1.equals(other.j3j_1))
|
|
2117
2117
|
return false;
|
|
2118
2118
|
return true;
|
|
2119
2119
|
};
|
|
2120
2120
|
function _get_failureState__yid9tw($this) {
|
|
2121
|
-
return new StateBacktracking($this.
|
|
2121
|
+
return new StateBacktracking($this.m3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_7.empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
2122
2122
|
}
|
|
2123
2123
|
function StateRuleExecution(context) {
|
|
2124
2124
|
AbstractState.call(this, context);
|
|
2125
|
-
this.
|
|
2125
|
+
this.m3j_1 = context;
|
|
2126
2126
|
}
|
|
2127
|
-
protoOf(StateRuleExecution).
|
|
2128
|
-
return this.
|
|
2127
|
+
protoOf(StateRuleExecution).r8 = function () {
|
|
2128
|
+
return this.m3j_1;
|
|
2129
2129
|
};
|
|
2130
|
-
protoOf(StateRuleExecution).
|
|
2130
|
+
protoOf(StateRuleExecution).r3h = function () {
|
|
2131
2131
|
// Inline function 'kotlin.with' call
|
|
2132
|
-
var $this$with = this.
|
|
2133
|
-
var substitution = $this$with.
|
|
2132
|
+
var $this$with = this.m3j_1;
|
|
2133
|
+
var substitution = $this$with.y3c_1.mgu(ensureNotNull($this$with.e3h()), ensureNotNull($this$with.k3d_1.pr()).dz());
|
|
2134
2134
|
var tmp;
|
|
2135
|
-
if (substitution.
|
|
2136
|
-
var newSubstitution = this.
|
|
2137
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2138
|
-
var tmp0_$this = this.
|
|
2135
|
+
if (substitution.b13()) {
|
|
2136
|
+
var newSubstitution = this.m3j_1.h3d_1.plus(substitution).castToUnifier();
|
|
2137
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.m3j_1.k3d_1.pr()), newSubstitution).ez().getSubstituted(newSubstitution, []);
|
|
2138
|
+
var tmp0_$this = this.m3j_1;
|
|
2139
2139
|
var tmp1_goals = toGoals(subGoals);
|
|
2140
2140
|
var tmp2_rules = Companion_instance_7.empty();
|
|
2141
|
-
var tmp3_step = this.
|
|
2142
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
2141
|
+
var tmp3_step = this.x3h();
|
|
2142
|
+
tmp = new StateGoalSelection(tmp0_$this.o3e(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
2143
|
} else {
|
|
2144
2144
|
tmp = _get_failureState__yid9tw(this);
|
|
2145
2145
|
}
|
|
2146
2146
|
return tmp;
|
|
2147
2147
|
};
|
|
2148
|
-
protoOf(StateRuleExecution).
|
|
2149
|
-
return this.
|
|
2148
|
+
protoOf(StateRuleExecution).a3i = function (context) {
|
|
2149
|
+
return this.f3i(context);
|
|
2150
2150
|
};
|
|
2151
2151
|
protoOf(StateRuleExecution).clone = function (context, $super) {
|
|
2152
2152
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleExecution) ? $super : THROW_CCE());
|
|
2153
2153
|
};
|
|
2154
|
-
protoOf(StateRuleExecution).
|
|
2154
|
+
protoOf(StateRuleExecution).f3i = function (context) {
|
|
2155
2155
|
return new StateRuleExecution(context);
|
|
2156
2156
|
};
|
|
2157
2157
|
protoOf(StateRuleExecution).toString = function () {
|
|
2158
|
-
return 'StateRuleExecution(context=' + this.
|
|
2158
|
+
return 'StateRuleExecution(context=' + this.m3j_1.toString() + ')';
|
|
2159
2159
|
};
|
|
2160
2160
|
protoOf(StateRuleExecution).hashCode = function () {
|
|
2161
|
-
return this.
|
|
2161
|
+
return this.m3j_1.hashCode();
|
|
2162
2162
|
};
|
|
2163
2163
|
protoOf(StateRuleExecution).equals = function (other) {
|
|
2164
2164
|
if (this === other)
|
|
2165
2165
|
return true;
|
|
2166
2166
|
if (!(other instanceof StateRuleExecution))
|
|
2167
2167
|
return false;
|
|
2168
|
-
if (!this.
|
|
2168
|
+
if (!this.m3j_1.equals(other.m3j_1))
|
|
2169
2169
|
return false;
|
|
2170
2170
|
return true;
|
|
2171
2171
|
};
|
|
2172
2172
|
function None() {
|
|
2173
2173
|
None_instance = this;
|
|
2174
2174
|
CutLimit.call(this);
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2175
|
+
this.n3j_1 = -1;
|
|
2176
|
+
this.o3j_1 = null;
|
|
2177
2177
|
}
|
|
2178
|
-
protoOf(None).
|
|
2179
|
-
return this.
|
|
2178
|
+
protoOf(None).p3j = function () {
|
|
2179
|
+
return this.n3j_1;
|
|
2180
2180
|
};
|
|
2181
|
-
protoOf(None).
|
|
2182
|
-
return this.
|
|
2181
|
+
protoOf(None).t1x = function () {
|
|
2182
|
+
return this.o3j_1;
|
|
2183
2183
|
};
|
|
2184
|
-
protoOf(None).
|
|
2184
|
+
protoOf(None).q3j = function () {
|
|
2185
2185
|
return true;
|
|
2186
2186
|
};
|
|
2187
2187
|
var None_instance;
|
|
@@ -2192,24 +2192,24 @@
|
|
|
2192
2192
|
}
|
|
2193
2193
|
function Actual(depthToCut, procedure) {
|
|
2194
2194
|
CutLimit.call(this);
|
|
2195
|
-
this.
|
|
2196
|
-
this.
|
|
2195
|
+
this.r3j_1 = depthToCut;
|
|
2196
|
+
this.s3j_1 = procedure;
|
|
2197
2197
|
}
|
|
2198
|
-
protoOf(Actual).
|
|
2199
|
-
return this.
|
|
2198
|
+
protoOf(Actual).p3j = function () {
|
|
2199
|
+
return this.r3j_1;
|
|
2200
2200
|
};
|
|
2201
|
-
protoOf(Actual).
|
|
2202
|
-
return this.
|
|
2201
|
+
protoOf(Actual).t1x = function () {
|
|
2202
|
+
return this.s3j_1;
|
|
2203
2203
|
};
|
|
2204
2204
|
function CutLimit() {
|
|
2205
2205
|
}
|
|
2206
|
-
protoOf(CutLimit).
|
|
2206
|
+
protoOf(CutLimit).q3j = function () {
|
|
2207
2207
|
return false;
|
|
2208
2208
|
};
|
|
2209
2209
|
function Companion_0() {
|
|
2210
2210
|
Companion_instance_16 = this;
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2211
|
+
this.t3j_1 = Catch_getInstance().signature;
|
|
2212
|
+
this.u3j_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2213
2213
|
}
|
|
2214
2214
|
var Companion_instance_16;
|
|
2215
2215
|
function Companion_getInstance_6() {
|
|
@@ -2218,24 +2218,24 @@
|
|
|
2218
2218
|
return Companion_instance_16;
|
|
2219
2219
|
}
|
|
2220
2220
|
function _get_failureState__yid9tw_0($this) {
|
|
2221
|
-
return new StateBacktracking($this.
|
|
2221
|
+
return new StateBacktracking($this.x3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
2222
2222
|
}
|
|
2223
2223
|
function exceptionalState_0($this, exception) {
|
|
2224
|
-
return new StateException(exception, $this.
|
|
2224
|
+
return new StateException(exception, $this.x3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
2225
2225
|
}
|
|
2226
2226
|
function missingProcedure($this, ruleSources, missing) {
|
|
2227
|
-
var unknown = $this.
|
|
2227
|
+
var unknown = $this.x3j_1.a3d_1.get(Unknown_getInstance());
|
|
2228
2228
|
var tmp;
|
|
2229
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2229
|
+
if (equals(unknown, Unknown_getInstance().x2d_1)) {
|
|
2230
2230
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2231
2231
|
} else {
|
|
2232
2232
|
var tmp_0;
|
|
2233
2233
|
var tmp$ret$0;
|
|
2234
2234
|
$l$block: {
|
|
2235
2235
|
// Inline function 'kotlin.sequences.none' call
|
|
2236
|
-
var _iterator__ex2g4s = ruleSources.
|
|
2237
|
-
while (_iterator__ex2g4s.
|
|
2238
|
-
var element = _iterator__ex2g4s.
|
|
2236
|
+
var _iterator__ex2g4s = ruleSources.n();
|
|
2237
|
+
while (_iterator__ex2g4s.q()) {
|
|
2238
|
+
var element = _iterator__ex2g4s.r();
|
|
2239
2239
|
if (element.containsIndicator(missing.toIndicator())) {
|
|
2240
2240
|
tmp$ret$0 = false;
|
|
2241
2241
|
break $l$block;
|
|
@@ -2245,12 +2245,12 @@
|
|
|
2245
2245
|
}
|
|
2246
2246
|
if (tmp$ret$0) {
|
|
2247
2247
|
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().
|
|
2248
|
+
if (equals(unknown, Unknown_getInstance().v2d_1)) {
|
|
2249
|
+
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.x3j_1, missing));
|
|
2250
|
+
} else if (equals(unknown, Unknown_getInstance().w2d_1)) {
|
|
2251
2251
|
// Inline function 'kotlin.also' call
|
|
2252
2252
|
var this_0 = _get_failureState__yid9tw_0($this);
|
|
2253
|
-
$this.
|
|
2253
|
+
$this.x3j_1.l1y().write(MissingPredicate_init_$Create$($this.x3j_1, missing));
|
|
2254
2254
|
tmp_1 = this_0;
|
|
2255
2255
|
} else {
|
|
2256
2256
|
tmp_1 = _get_failureState__yid9tw_0($this);
|
|
@@ -2264,26 +2264,26 @@
|
|
|
2264
2264
|
return tmp;
|
|
2265
2265
|
}
|
|
2266
2266
|
function _get_ignoreState__t4wl8y($this) {
|
|
2267
|
-
return new StateGoalSelection($this.
|
|
2267
|
+
return new StateGoalSelection($this.x3j_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3j_1.j3d_1.nr(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.x3h()));
|
|
2268
2268
|
}
|
|
2269
2269
|
function isCut($this, $receiver) {
|
|
2270
|
-
return $receiver.
|
|
2270
|
+
return $receiver.sw() && $receiver.castToAtom().i2() === '!';
|
|
2271
2271
|
}
|
|
2272
2272
|
function computeCutLimit($this, $receiver, magicCut) {
|
|
2273
2273
|
magicCut = magicCut === VOID ? false : magicCut;
|
|
2274
2274
|
var tmp;
|
|
2275
2275
|
if (magicCut) {
|
|
2276
|
-
tmp = firstOrNull($receiver.
|
|
2276
|
+
tmp = firstOrNull($receiver.t3d_1);
|
|
2277
2277
|
} else {
|
|
2278
|
-
var tmp0 = $receiver.
|
|
2278
|
+
var tmp0 = $receiver.t3d_1;
|
|
2279
2279
|
var tmp$ret$0;
|
|
2280
2280
|
$l$block: {
|
|
2281
2281
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2282
|
-
var _iterator__ex2g4s = tmp0.
|
|
2283
|
-
while (_iterator__ex2g4s.
|
|
2284
|
-
var element = _iterator__ex2g4s.
|
|
2285
|
-
var tmp_0 = Companion_getInstance_6().
|
|
2286
|
-
var tmp0_safe_receiver = element.
|
|
2282
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
2283
|
+
while (_iterator__ex2g4s.q()) {
|
|
2284
|
+
var element = _iterator__ex2g4s.r();
|
|
2285
|
+
var tmp_0 = Companion_getInstance_6().u3j_1;
|
|
2286
|
+
var tmp0_safe_receiver = element.x3c_1;
|
|
2287
2287
|
if (!contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver))) {
|
|
2288
2288
|
tmp$ret$0 = element;
|
|
2289
2289
|
break $l$block;
|
|
@@ -2298,31 +2298,31 @@
|
|
|
2298
2298
|
if (cutLimit == null) {
|
|
2299
2299
|
tmp_1 = None_getInstance();
|
|
2300
2300
|
} else {
|
|
2301
|
-
tmp_1 = new Actual(cutLimit.
|
|
2301
|
+
tmp_1 = new Actual(cutLimit.q3d_1, cutLimit.x3c_1);
|
|
2302
2302
|
}
|
|
2303
2303
|
return tmp_1;
|
|
2304
2304
|
}
|
|
2305
2305
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2306
|
-
return cutLimit.
|
|
2306
|
+
return cutLimit.q3j() || cutLimit.p3j() > executionContext.q3d_1 || (cutLimit.p3j() === executionContext.q3d_1 && !equals(cutLimit.t1x(), executionContext.x3c_1));
|
|
2307
2307
|
}
|
|
2308
2308
|
function performCut($this, $receiver, cutLimit) {
|
|
2309
2309
|
var tmp;
|
|
2310
2310
|
if ($receiver === null) {
|
|
2311
2311
|
tmp = null;
|
|
2312
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull($receiver.
|
|
2312
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull($receiver.j3e()))) {
|
|
2313
2313
|
tmp = $receiver;
|
|
2314
2314
|
} else {
|
|
2315
|
-
var tmp_0 = $receiver.
|
|
2315
|
+
var tmp_0 = $receiver.w3e();
|
|
2316
2316
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2317
2317
|
var tmp_1;
|
|
2318
2318
|
if (any(cutCandidates)) {
|
|
2319
2319
|
var tmp$ret$0;
|
|
2320
2320
|
$l$block: {
|
|
2321
2321
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2322
|
-
var _iterator__ex2g4s = cutCandidates.
|
|
2323
|
-
while (_iterator__ex2g4s.
|
|
2324
|
-
var element = _iterator__ex2g4s.
|
|
2325
|
-
if (ensureNotNull(element.
|
|
2322
|
+
var _iterator__ex2g4s = cutCandidates.n();
|
|
2323
|
+
while (_iterator__ex2g4s.q()) {
|
|
2324
|
+
var element = _iterator__ex2g4s.r();
|
|
2325
|
+
if (ensureNotNull(element.j3e()).q3d_1 <= cutLimit.p3j()) {
|
|
2326
2326
|
tmp$ret$0 = element;
|
|
2327
2327
|
break $l$block;
|
|
2328
2328
|
}
|
|
@@ -2330,7 +2330,7 @@
|
|
|
2330
2330
|
tmp$ret$0 = null;
|
|
2331
2331
|
}
|
|
2332
2332
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
2333
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2333
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k3e();
|
|
2334
2334
|
} else {
|
|
2335
2335
|
tmp_1 = $receiver;
|
|
2336
2336
|
}
|
|
@@ -2340,9 +2340,9 @@
|
|
|
2340
2340
|
}
|
|
2341
2341
|
function _get_isTailRecursive__h5eso7($this, $receiver) {
|
|
2342
2342
|
var tmp;
|
|
2343
|
-
if ($receiver.
|
|
2343
|
+
if ($receiver.j3d_1.nr().rr() && equals($receiver.a3d_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().v2c_1)) {
|
|
2344
2344
|
// Inline function 'kotlin.let' call
|
|
2345
|
-
var tmp0_safe_receiver = ensureNotNull($receiver.
|
|
2345
|
+
var tmp0_safe_receiver = ensureNotNull($receiver.e3h()).asStruct();
|
|
2346
2346
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver);
|
|
2347
2347
|
var tmp_0;
|
|
2348
2348
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2350,9 +2350,9 @@
|
|
|
2350
2350
|
} else {
|
|
2351
2351
|
// Inline function 'kotlin.let' call
|
|
2352
2352
|
var tmp_1;
|
|
2353
|
-
var tmp0_safe_receiver_0 = $receiver.
|
|
2353
|
+
var tmp0_safe_receiver_0 = $receiver.x3c_1;
|
|
2354
2354
|
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().
|
|
2355
|
+
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().t3j_1);
|
|
2356
2356
|
} else {
|
|
2357
2357
|
tmp_1 = false;
|
|
2358
2358
|
}
|
|
@@ -2370,7 +2370,7 @@
|
|
|
2370
2370
|
// Inline function 'kotlin.let' call
|
|
2371
2371
|
var it = ensureRules(map(tmp, StateRuleSelection$selectClauses$lambda));
|
|
2372
2372
|
var tmp_0;
|
|
2373
|
-
if ($receiver.
|
|
2373
|
+
if ($receiver.p1v()) {
|
|
2374
2374
|
tmp_0 = buffered(it);
|
|
2375
2375
|
} else {
|
|
2376
2376
|
tmp_0 = it;
|
|
@@ -2379,7 +2379,7 @@
|
|
|
2379
2379
|
}
|
|
2380
2380
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2381
2381
|
return function (it) {
|
|
2382
|
-
return equals(ensureNotNull(it.
|
|
2382
|
+
return equals(ensureNotNull(it.j3e()).x3c_1, $cutLimit.t1x());
|
|
2383
2383
|
};
|
|
2384
2384
|
}
|
|
2385
2385
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
@@ -2388,30 +2388,30 @@
|
|
|
2388
2388
|
};
|
|
2389
2389
|
}
|
|
2390
2390
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2391
|
-
return it.
|
|
2391
|
+
return it.ax();
|
|
2392
2392
|
}
|
|
2393
2393
|
function StateRuleSelection(context) {
|
|
2394
2394
|
Companion_getInstance_6();
|
|
2395
2395
|
AbstractState.call(this, context);
|
|
2396
|
-
this.
|
|
2396
|
+
this.x3j_1 = context;
|
|
2397
2397
|
}
|
|
2398
|
-
protoOf(StateRuleSelection).
|
|
2399
|
-
return this.
|
|
2398
|
+
protoOf(StateRuleSelection).r8 = function () {
|
|
2399
|
+
return this.x3j_1;
|
|
2400
2400
|
};
|
|
2401
|
-
protoOf(StateRuleSelection).
|
|
2402
|
-
var currentGoal = ensureNotNull(this.
|
|
2401
|
+
protoOf(StateRuleSelection).r3h = function () {
|
|
2402
|
+
var currentGoal = ensureNotNull(this.x3j_1.e3h());
|
|
2403
2403
|
var tmp;
|
|
2404
|
-
if (currentGoal.
|
|
2405
|
-
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.
|
|
2406
|
-
} else if (currentGoal.
|
|
2404
|
+
if (currentGoal.tx()) {
|
|
2405
|
+
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.x3j_1, extractSignature(ensureNotNull(this.x3j_1.x3c_1)), currentGoal.castToVar()));
|
|
2406
|
+
} else if (currentGoal.dx()) {
|
|
2407
2407
|
// Inline function 'kotlin.with' call
|
|
2408
|
-
var $this$with = this.
|
|
2408
|
+
var $this$with = this.x3j_1;
|
|
2409
2409
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2410
|
-
var ruleSources = sequenceOf([$this$with.
|
|
2410
|
+
var ruleSources = sequenceOf([$this$with.z3c_1.asTheory($this$with.y3c_1), $this$with.b3d_1, $this$with.c3d_1]);
|
|
2411
2411
|
var tmp_0;
|
|
2412
|
-
if (currentGoalStruct.
|
|
2412
|
+
if (currentGoalStruct.ux()) {
|
|
2413
2413
|
var tmp_1;
|
|
2414
|
-
if (currentGoalStruct.
|
|
2414
|
+
if (currentGoalStruct.vw()) {
|
|
2415
2415
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2416
2416
|
} else {
|
|
2417
2417
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
@@ -2422,14 +2422,14 @@
|
|
|
2422
2422
|
var cutLimit = computeCutLimit(this, $this$with, currentGoalStruct instanceof MagicCut);
|
|
2423
2423
|
// Inline function 'kotlin.let' call
|
|
2424
2424
|
var it = _get_ignoreState__t4wl8y(this);
|
|
2425
|
-
tmp_0 = it.
|
|
2425
|
+
tmp_0 = it.f3i(it.u3i_1.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(this, it.u3i_1.o3d_1, cutLimit)));
|
|
2426
2426
|
} else {
|
|
2427
2427
|
var tmp$ret$4;
|
|
2428
2428
|
$l$block: {
|
|
2429
2429
|
// Inline function 'kotlin.sequences.any' call
|
|
2430
|
-
var _iterator__ex2g4s = ruleSources.
|
|
2431
|
-
while (_iterator__ex2g4s.
|
|
2432
|
-
var element = _iterator__ex2g4s.
|
|
2430
|
+
var _iterator__ex2g4s = ruleSources.n();
|
|
2431
|
+
while (_iterator__ex2g4s.q()) {
|
|
2432
|
+
var element = _iterator__ex2g4s.r();
|
|
2433
2433
|
if (element.containsHead(currentGoalStruct)) {
|
|
2434
2434
|
tmp$ret$4 = true;
|
|
2435
2435
|
break $l$block;
|
|
@@ -2440,10 +2440,10 @@
|
|
|
2440
2440
|
if (tmp$ret$4) {
|
|
2441
2441
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2442
2442
|
var tmp_2;
|
|
2443
|
-
if (_get_isTailRecursive__h5eso7(this, this.
|
|
2444
|
-
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.
|
|
2443
|
+
if (_get_isTailRecursive__h5eso7(this, this.x3j_1)) {
|
|
2444
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.x3j_1, rules));
|
|
2445
2445
|
} else {
|
|
2446
|
-
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.
|
|
2446
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.x3j_1, rules));
|
|
2447
2447
|
}
|
|
2448
2448
|
tmp_0 = tmp_2;
|
|
2449
2449
|
} else {
|
|
@@ -2453,43 +2453,43 @@
|
|
|
2453
2453
|
}
|
|
2454
2454
|
tmp = tmp_0;
|
|
2455
2455
|
} else {
|
|
2456
|
-
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.
|
|
2456
|
+
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.x3j_1, extractSignature(ensureNotNull(this.x3j_1.x3c_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2457
2457
|
}
|
|
2458
2458
|
return tmp;
|
|
2459
2459
|
};
|
|
2460
|
-
protoOf(StateRuleSelection).
|
|
2461
|
-
return this.
|
|
2460
|
+
protoOf(StateRuleSelection).a3i = function (context) {
|
|
2461
|
+
return this.f3i(context);
|
|
2462
2462
|
};
|
|
2463
2463
|
protoOf(StateRuleSelection).clone = function (context, $super) {
|
|
2464
2464
|
return this.clone(context, ($super == null ? true : $super instanceof StateRuleSelection) ? $super : THROW_CCE());
|
|
2465
2465
|
};
|
|
2466
|
-
protoOf(StateRuleSelection).
|
|
2466
|
+
protoOf(StateRuleSelection).f3i = function (context) {
|
|
2467
2467
|
return new StateRuleSelection(context);
|
|
2468
2468
|
};
|
|
2469
2469
|
protoOf(StateRuleSelection).toString = function () {
|
|
2470
|
-
return 'StateRuleSelection(context=' + this.
|
|
2470
|
+
return 'StateRuleSelection(context=' + this.x3j_1.toString() + ')';
|
|
2471
2471
|
};
|
|
2472
2472
|
protoOf(StateRuleSelection).hashCode = function () {
|
|
2473
|
-
return this.
|
|
2473
|
+
return this.x3j_1.hashCode();
|
|
2474
2474
|
};
|
|
2475
2475
|
protoOf(StateRuleSelection).equals = function (other) {
|
|
2476
2476
|
if (this === other)
|
|
2477
2477
|
return true;
|
|
2478
2478
|
if (!(other instanceof StateRuleSelection))
|
|
2479
2479
|
return false;
|
|
2480
|
-
if (!this.
|
|
2480
|
+
if (!this.x3j_1.equals(other.x3j_1))
|
|
2481
2481
|
return false;
|
|
2482
2482
|
return true;
|
|
2483
2483
|
};
|
|
2484
2484
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2485
2485
|
var tmp;
|
|
2486
|
-
if (rules.
|
|
2487
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2486
|
+
if (rules.qr()) {
|
|
2487
|
+
tmp = appendRules(_this__u8e3s4.o3d_1, rules.nr(), _this__u8e3s4);
|
|
2488
2488
|
} else {
|
|
2489
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2489
|
+
tmp = appendRules(_this__u8e3s4.o3d_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2490
2490
|
}
|
|
2491
2491
|
var newChoicePointContext = tmp;
|
|
2492
|
-
return _this__u8e3s4.
|
|
2492
|
+
return _this__u8e3s4.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2493
2493
|
}
|
|
2494
2494
|
function toGoals(_this__u8e3s4) {
|
|
2495
2495
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2497,8 +2497,8 @@
|
|
|
2497
2497
|
}
|
|
2498
2498
|
function unfoldGoals(_this__u8e3s4) {
|
|
2499
2499
|
var tmp;
|
|
2500
|
-
if (_this__u8e3s4.
|
|
2501
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2500
|
+
if (_this__u8e3s4.ix()) {
|
|
2501
|
+
var tmp_0 = _this__u8e3s4.castToTuple().bv();
|
|
2502
2502
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2503
2503
|
} else {
|
|
2504
2504
|
tmp = sequenceOf_0(_this__u8e3s4);
|
|
@@ -2507,28 +2507,28 @@
|
|
|
2507
2507
|
}
|
|
2508
2508
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2509
2509
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2510
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2510
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.e3h()).castToStruct();
|
|
2511
2511
|
var tmp0_goals = toGoals(currentGoal);
|
|
2512
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2513
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2512
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.x3c_1;
|
|
2513
|
+
var tmp2_depth = _this__u8e3s4.q3d_1 + 1 | 0;
|
|
2514
2514
|
// Inline function 'kotlin.Long.plus' call
|
|
2515
|
-
var this_0 = _this__u8e3s4.
|
|
2515
|
+
var this_0 = _this__u8e3s4.r3d_1;
|
|
2516
2516
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2517
2517
|
var tmp4_relevantVariables = emptySet();
|
|
2518
|
-
return _this__u8e3s4.
|
|
2518
|
+
return _this__u8e3s4.o3e(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
2519
|
}
|
|
2520
2520
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2521
|
-
return new Request(signature, goal.
|
|
2521
|
+
return new Request(signature, goal.yw(), _this__u8e3s4, startTime);
|
|
2522
2522
|
}
|
|
2523
2523
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2524
2524
|
var tmp;
|
|
2525
|
-
if (primitiveExecutions.
|
|
2526
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2525
|
+
if (primitiveExecutions.qr()) {
|
|
2526
|
+
tmp = appendPrimitives(_this__u8e3s4.o3d_1, primitiveExecutions.nr(), _this__u8e3s4);
|
|
2527
2527
|
} else {
|
|
2528
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2528
|
+
tmp = appendPrimitives(_this__u8e3s4.o3d_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2529
2529
|
}
|
|
2530
2530
|
var newChoicePointContext = tmp;
|
|
2531
|
-
return _this__u8e3s4.
|
|
2531
|
+
return _this__u8e3s4.o3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2532
2532
|
}
|
|
2533
2533
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2534
2534
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
@@ -2545,17 +2545,17 @@
|
|
|
2545
2545
|
}
|
|
2546
2546
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2547
2547
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2548
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2548
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.e3h()).castToStruct();
|
|
2549
2549
|
var tmp0_goals = toGoals(currentGoal);
|
|
2550
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2551
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2550
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.x3c_1;
|
|
2551
|
+
var tmp2_depth = _this__u8e3s4.q3d_1 + 1 | 0;
|
|
2552
2552
|
// Inline function 'kotlin.Long.plus' call
|
|
2553
|
-
var this_0 = _this__u8e3s4.
|
|
2553
|
+
var this_0 = _this__u8e3s4.r3d_1;
|
|
2554
2554
|
var tmp3_step = add(this_0, fromInt(1));
|
|
2555
|
-
return _this__u8e3s4.
|
|
2555
|
+
return _this__u8e3s4.o3e(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
2556
|
}
|
|
2557
2557
|
function toGoals$lambda(it) {
|
|
2558
|
-
return it.
|
|
2558
|
+
return it.tx() ? Companion_getInstance_1().of('call', [it]) : it;
|
|
2559
2559
|
}
|
|
2560
2560
|
function unfoldGoals$lambda(it) {
|
|
2561
2561
|
return unfoldGoals(it);
|
|
@@ -2563,54 +2563,54 @@
|
|
|
2563
2563
|
function ensureRules$lambda(it) {
|
|
2564
2564
|
// Inline function 'kotlin.require' call
|
|
2565
2565
|
// Inline function 'kotlin.require' call
|
|
2566
|
-
if (!it.
|
|
2566
|
+
if (!it.fx()) {
|
|
2567
2567
|
var message = 'Failed requirement.';
|
|
2568
2568
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2569
2569
|
}
|
|
2570
2570
|
return it.castToRule();
|
|
2571
2571
|
}
|
|
2572
2572
|
function AbstractSolutionIterator(state) {
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2573
|
+
this.y3j_1 = state;
|
|
2574
|
+
this.z3j_1 = 0n;
|
|
2575
2575
|
}
|
|
2576
|
-
protoOf(AbstractSolutionIterator).
|
|
2576
|
+
protoOf(AbstractSolutionIterator).q = function () {
|
|
2577
2577
|
// Inline function 'kotlin.let' call
|
|
2578
|
-
var it = this.
|
|
2579
|
-
return !it.
|
|
2578
|
+
var it = this.y3j_1;
|
|
2579
|
+
return !it.y3h() || it.castToEndState().v3e();
|
|
2580
2580
|
};
|
|
2581
|
-
protoOf(AbstractSolutionIterator).
|
|
2581
|
+
protoOf(AbstractSolutionIterator).r = function () {
|
|
2582
2582
|
do {
|
|
2583
|
-
var previousState = this.
|
|
2583
|
+
var previousState = this.y3j_1;
|
|
2584
2584
|
var tmp = this;
|
|
2585
|
-
var tmp_0 = this.
|
|
2586
|
-
this.
|
|
2587
|
-
tmp.
|
|
2588
|
-
this.onStateTransition(previousState, this.
|
|
2585
|
+
var tmp_0 = this.y3j_1;
|
|
2586
|
+
this.z3j_1 = add(this.z3j_1, get_ONE());
|
|
2587
|
+
tmp.y3j_1 = this.a3k(tmp_0, this.z3j_1);
|
|
2588
|
+
this.onStateTransition(previousState, this.y3j_1, this.z3j_1);
|
|
2589
2589
|
}
|
|
2590
|
-
while (!this.
|
|
2591
|
-
return this.
|
|
2590
|
+
while (!this.y3j_1.y3h());
|
|
2591
|
+
return this.y3j_1.castToEndState().i2n();
|
|
2592
2592
|
};
|
|
2593
2593
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2594
2594
|
AbstractSolutionIterator.call(this, state);
|
|
2595
|
-
this.
|
|
2595
|
+
this.d3k_1 = onStateTransitionCallback;
|
|
2596
2596
|
}
|
|
2597
|
-
protoOf(SimpleSolutionIterator).
|
|
2597
|
+
protoOf(SimpleSolutionIterator).a3k = function (state, step) {
|
|
2598
2598
|
return state.next();
|
|
2599
2599
|
};
|
|
2600
|
-
protoOf(SimpleSolutionIterator).
|
|
2601
|
-
return this.
|
|
2600
|
+
protoOf(SimpleSolutionIterator).e3k = function (source, destination, index) {
|
|
2601
|
+
return this.d3k_1(source, destination, index);
|
|
2602
2602
|
};
|
|
2603
2603
|
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2604
|
-
return this.
|
|
2604
|
+
return this.e3k(source, destination, index);
|
|
2605
2605
|
};
|
|
2606
2606
|
function DefaultBuiltins() {
|
|
2607
2607
|
DefaultBuiltins_instance = this;
|
|
2608
2608
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2609
2609
|
}
|
|
2610
|
-
protoOf(DefaultBuiltins).
|
|
2610
|
+
protoOf(DefaultBuiltins).j2j = function () {
|
|
2611
2611
|
return listOf(Throw_getInstance());
|
|
2612
2612
|
};
|
|
2613
|
-
protoOf(DefaultBuiltins).
|
|
2613
|
+
protoOf(DefaultBuiltins).i2j = function () {
|
|
2614
2614
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
2615
2615
|
};
|
|
2616
2616
|
var DefaultBuiltins_instance;
|
|
@@ -2624,12 +2624,12 @@
|
|
|
2624
2624
|
var tmp_0;
|
|
2625
2625
|
var tmp_1;
|
|
2626
2626
|
if (isInterface(error, Struct)) {
|
|
2627
|
-
tmp_1 = error.
|
|
2627
|
+
tmp_1 = error.xw() === 'error';
|
|
2628
2628
|
} else {
|
|
2629
2629
|
tmp_1 = false;
|
|
2630
2630
|
}
|
|
2631
2631
|
if (tmp_1) {
|
|
2632
|
-
var containsArg = error.
|
|
2632
|
+
var containsArg = error.rw();
|
|
2633
2633
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
2634
2634
|
} else {
|
|
2635
2635
|
tmp_0 = false;
|
|
@@ -2637,25 +2637,25 @@
|
|
|
2637
2637
|
if (tmp_0) {
|
|
2638
2638
|
var tmp_2 = Companion_instance_14;
|
|
2639
2639
|
var tmp_3 = error.get(0);
|
|
2640
|
-
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.
|
|
2640
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.rw() > 1 ? error.get(1) : null);
|
|
2641
2641
|
} else {
|
|
2642
|
-
tmp = Companion_instance_13.
|
|
2642
|
+
tmp = Companion_instance_13.v29(error, context);
|
|
2643
2643
|
}
|
|
2644
2644
|
return tmp;
|
|
2645
2645
|
}
|
|
2646
2646
|
function Throw() {
|
|
2647
2647
|
Throw_instance = this;
|
|
2648
2648
|
UnaryPredicate.call(this, 'throw');
|
|
2649
|
-
this.
|
|
2649
|
+
this.m3k_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
2650
|
}
|
|
2651
|
-
protoOf(Throw).
|
|
2652
|
-
return this.
|
|
2651
|
+
protoOf(Throw).n1x = function () {
|
|
2652
|
+
return this.m3k_1;
|
|
2653
2653
|
};
|
|
2654
|
-
protoOf(Throw).
|
|
2655
|
-
return sequenceOf_0(Companion_getInstance_4().
|
|
2654
|
+
protoOf(Throw).a2z = function (_this__u8e3s4, first) {
|
|
2655
|
+
return sequenceOf_0(Companion_getInstance_4().m2k(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.u(0)), VOID, []));
|
|
2656
2656
|
};
|
|
2657
|
-
protoOf(Throw).
|
|
2658
|
-
return this.
|
|
2657
|
+
protoOf(Throw).z2n = function (_this__u8e3s4, first) {
|
|
2658
|
+
return this.a2z(_this__u8e3s4, first);
|
|
2659
2659
|
};
|
|
2660
2660
|
var Throw_instance;
|
|
2661
2661
|
function Throw_getInstance() {
|
|
@@ -2666,15 +2666,15 @@
|
|
|
2666
2666
|
function Call() {
|
|
2667
2667
|
Call_instance = this;
|
|
2668
2668
|
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
2669
|
-
this.
|
|
2669
|
+
this.q3k_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
2670
|
}
|
|
2671
|
-
protoOf(Call).
|
|
2672
|
-
return this.
|
|
2671
|
+
protoOf(Call).n1x = function () {
|
|
2672
|
+
return this.q3k_1;
|
|
2673
2673
|
};
|
|
2674
|
-
protoOf(Call).
|
|
2674
|
+
protoOf(Call).f2o = function (_this__u8e3s4) {
|
|
2675
2675
|
return listOf(_this__u8e3s4.varOf('G'));
|
|
2676
2676
|
};
|
|
2677
|
-
protoOf(Call).
|
|
2677
|
+
protoOf(Call).g2o = function (_this__u8e3s4) {
|
|
2678
2678
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2679
2679
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2680
2680
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('G')]), _this__u8e3s4.varOf('G')]);
|
|
@@ -2688,15 +2688,15 @@
|
|
|
2688
2688
|
function Catch() {
|
|
2689
2689
|
Catch_instance = this;
|
|
2690
2690
|
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2691
|
-
this.
|
|
2691
|
+
this.u3k_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
2692
|
}
|
|
2693
|
-
protoOf(Catch).
|
|
2694
|
-
return this.
|
|
2693
|
+
protoOf(Catch).n1x = function () {
|
|
2694
|
+
return this.u3k_1;
|
|
2695
2695
|
};
|
|
2696
|
-
protoOf(Catch).
|
|
2696
|
+
protoOf(Catch).f2o = function (_this__u8e3s4) {
|
|
2697
2697
|
return listOf_0([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
2698
2698
|
};
|
|
2699
|
-
protoOf(Catch).
|
|
2699
|
+
protoOf(Catch).g2o = function (_this__u8e3s4) {
|
|
2700
2700
|
return _this__u8e3s4.varOf('G');
|
|
2701
2701
|
};
|
|
2702
2702
|
var Catch_instance;
|
|
@@ -2708,15 +2708,15 @@
|
|
|
2708
2708
|
function Comma() {
|
|
2709
2709
|
Comma_instance = this;
|
|
2710
2710
|
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
2711
|
-
this.
|
|
2711
|
+
this.y3k_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
2712
|
}
|
|
2713
|
-
protoOf(Comma).
|
|
2714
|
-
return this.
|
|
2713
|
+
protoOf(Comma).n1x = function () {
|
|
2714
|
+
return this.y3k_1;
|
|
2715
2715
|
};
|
|
2716
|
-
protoOf(Comma).
|
|
2716
|
+
protoOf(Comma).f2o = function (_this__u8e3s4) {
|
|
2717
2717
|
return listOf_0([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2718
2718
|
};
|
|
2719
|
-
protoOf(Comma).
|
|
2719
|
+
protoOf(Comma).g2o = function (_this__u8e3s4) {
|
|
2720
2720
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2721
2721
|
};
|
|
2722
2722
|
var Comma_instance;
|
|
@@ -2728,10 +2728,10 @@
|
|
|
2728
2728
|
function Cut() {
|
|
2729
2729
|
Cut_instance = this;
|
|
2730
2730
|
RuleWrapper_init_$Init$('!', 0, VOID, this);
|
|
2731
|
-
this.
|
|
2731
|
+
this.c3l_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
2732
|
}
|
|
2733
|
-
protoOf(Cut).
|
|
2734
|
-
return this.
|
|
2733
|
+
protoOf(Cut).n1x = function () {
|
|
2734
|
+
return this.c3l_1;
|
|
2735
2735
|
};
|
|
2736
2736
|
var Cut_instance;
|
|
2737
2737
|
function Cut_getInstance() {
|
|
@@ -2743,7 +2743,7 @@
|
|
|
2743
2743
|
Fail_instance = this;
|
|
2744
2744
|
NegationAsFailure.call(this);
|
|
2745
2745
|
}
|
|
2746
|
-
protoOf(Fail).
|
|
2746
|
+
protoOf(Fail).g2o = function (_this__u8e3s4) {
|
|
2747
2747
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2748
2748
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2749
2749
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('X')]);
|
|
@@ -2761,7 +2761,7 @@
|
|
|
2761
2761
|
Success_instance = this;
|
|
2762
2762
|
NegationAsFailure.call(this);
|
|
2763
2763
|
}
|
|
2764
|
-
protoOf(Success).
|
|
2764
|
+
protoOf(Success).g2o = function (_this__u8e3s4) {
|
|
2765
2765
|
return _this__u8e3s4.truthOf(true);
|
|
2766
2766
|
};
|
|
2767
2767
|
var Success_instance;
|
|
@@ -2771,8 +2771,8 @@
|
|
|
2771
2771
|
return Success_instance;
|
|
2772
2772
|
}
|
|
2773
2773
|
function Companion_1() {
|
|
2774
|
-
this.
|
|
2775
|
-
this.
|
|
2774
|
+
this.p3l_1 = '\\+';
|
|
2775
|
+
this.q3l_1 = 1;
|
|
2776
2776
|
}
|
|
2777
2777
|
var Companion_instance_17;
|
|
2778
2778
|
function Companion_getInstance_7() {
|
|
@@ -2780,12 +2780,12 @@
|
|
|
2780
2780
|
}
|
|
2781
2781
|
function NegationAsFailure() {
|
|
2782
2782
|
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2783
|
-
this.
|
|
2783
|
+
this.k3l_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
2784
|
}
|
|
2785
|
-
protoOf(NegationAsFailure).
|
|
2786
|
-
return this.
|
|
2785
|
+
protoOf(NegationAsFailure).n1x = function () {
|
|
2786
|
+
return this.k3l_1;
|
|
2787
2787
|
};
|
|
2788
|
-
protoOf(NegationAsFailure).
|
|
2788
|
+
protoOf(NegationAsFailure).f2o = function (_this__u8e3s4) {
|
|
2789
2789
|
return listOf(_this__u8e3s4.varOf('X'));
|
|
2790
2790
|
};
|
|
2791
2791
|
//region block: post-declaration
|
|
@@ -2798,38 +2798,38 @@
|
|
|
2798
2798
|
protoOf(PrologExecutionContext).createSolver = createSolver;
|
|
2799
2799
|
protoOf(PrologExecutionContext).createMutableSolver = createMutableSolver;
|
|
2800
2800
|
protoOf(PrologExecutionContext).update = update;
|
|
2801
|
-
protoOf(PrologExecutionContext).
|
|
2802
|
-
protoOf(PrologExecutionContext).
|
|
2803
|
-
protoOf(PrologExecutionContext).
|
|
2804
|
-
protoOf(PrologExecutionContext).
|
|
2805
|
-
protoOf(PrologExecutionContext).
|
|
2806
|
-
protoOf(PrologExecutionContext).
|
|
2807
|
-
protoOf(PrologExecutionContext).
|
|
2801
|
+
protoOf(PrologExecutionContext).i1y = get_standardInput;
|
|
2802
|
+
protoOf(PrologExecutionContext).j1y = get_standardOutput;
|
|
2803
|
+
protoOf(PrologExecutionContext).k1y = get_standardError;
|
|
2804
|
+
protoOf(PrologExecutionContext).l1y = get_warnings;
|
|
2805
|
+
protoOf(PrologExecutionContext).p1x = get_endTime;
|
|
2806
|
+
protoOf(PrologExecutionContext).r1x = get_remainingTime;
|
|
2807
|
+
protoOf(PrologExecutionContext).s1x = get_elapsedTime;
|
|
2808
2808
|
protoOf(PrologSolverFactory).rawSolverOf = rawSolverOf;
|
|
2809
2809
|
protoOf(PrologSolverFactory).solverOf = solverOf;
|
|
2810
2810
|
protoOf(PrologSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2811
2811
|
protoOf(PrologSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2812
2812
|
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).
|
|
2813
|
+
protoOf(PrologSolverFactory).d21 = get_defaultRuntime;
|
|
2814
|
+
protoOf(PrologSolverFactory).f21 = get_defaultUnificator;
|
|
2815
|
+
protoOf(PrologSolverFactory).g21 = get_defaultFlags;
|
|
2816
|
+
protoOf(PrologSolverFactory).j21 = get_defaultStaticKb;
|
|
2817
|
+
protoOf(PrologSolverFactory).k21 = get_defaultDynamicKb;
|
|
2818
|
+
protoOf(PrologSolverFactory).l21 = get_defaultInputChannel;
|
|
2819
|
+
protoOf(PrologSolverFactory).m21 = get_defaultOutputChannel;
|
|
2820
|
+
protoOf(PrologSolverFactory).n21 = get_defaultErrorChannel;
|
|
2821
|
+
protoOf(PrologSolverFactory).o21 = get_defaultWarningsChannel;
|
|
2822
|
+
protoOf(PrologSolverFactory).w21 = solverWithDefaultBuiltins;
|
|
2823
2823
|
protoOf(PrologSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2824
|
-
protoOf(PrologSolverFactory).
|
|
2824
|
+
protoOf(PrologSolverFactory).y21 = mutableSolverWithDefaultBuiltins;
|
|
2825
2825
|
protoOf(PrologSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2826
|
-
protoOf(AbstractState).
|
|
2826
|
+
protoOf(AbstractState).y3h = get_isEndState;
|
|
2827
2827
|
protoOf(AbstractState).asEndState = asEndState;
|
|
2828
2828
|
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2829
2829
|
protoOf(AbstractState).clone = clone;
|
|
2830
|
-
protoOf(AbstractEndState).
|
|
2831
|
-
protoOf(AbstractEndState).
|
|
2832
|
-
protoOf(AbstractEndState).
|
|
2830
|
+
protoOf(AbstractEndState).y3h = get_isEndState_0;
|
|
2831
|
+
protoOf(AbstractEndState).z3h = asEndState_0;
|
|
2832
|
+
protoOf(AbstractEndState).v3e = get_hasOpenAlternatives;
|
|
2833
2833
|
//endregion
|
|
2834
2834
|
//region block: init
|
|
2835
2835
|
PrologSolverFactory_instance = new PrologSolverFactory();
|