@tuprolog/arg2p-core 0.7.2 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +3416 -5191
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +1620 -5
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +949 -5
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +796 -5
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +69 -5
- package/2p-dsl-unify.js.map +1 -1
- package/2p-parser-core.js +686 -429
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +7 -8
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +45 -45
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1180 -1403
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +4840 -5992
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +2135 -2269
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +300 -333
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +597 -580
- package/2p-utils.js.map +1 -1
- package/arg2p-core.js +4305 -392
- package/arg2p-core.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +8604 -8580
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kt-math.js +2933 -4250
- package/kt-math.js.map +1 -1
- package/package.json +4 -3
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
package/2p-solve-classic.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './2p-unify.js', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', './2p-unify.js', './kotlin-kotlin-stdlib.js', './2p-solve.js', './2p-theory.js', './2p-utils.js', './2p-core.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./2p-unify.js'), require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('./2p-unify.js'), require('./kotlin-kotlin-stdlib.js'), require('./2p-solve.js'), require('./2p-theory.js'), require('./2p-utils.js'), require('./2p-core.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['2p-unify'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-solve-classic'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
11
|
-
throw new Error("Error loading module '2p-solve-classic'. Its dependency 'kotlin-kotlin-stdlib
|
|
10
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module '2p-solve-classic'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-solve-classic'.");
|
|
12
12
|
}
|
|
13
13
|
if (typeof this['2p-solve'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to '2p-solve-classic'.");
|
|
@@ -22,182 +22,169 @@
|
|
|
22
22
|
if (typeof this['2p-core'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-solve-classic'.");
|
|
24
24
|
}
|
|
25
|
-
root['2p-solve-classic'] = factory(typeof this['2p-solve-classic'] === 'undefined' ? {} : this['2p-solve-classic'], this['2p-unify'], this['kotlin-kotlin-stdlib
|
|
25
|
+
root['2p-solve-classic'] = factory(typeof this['2p-solve-classic'] === 'undefined' ? {} : this['2p-solve-classic'], this['2p-unify'], this['kotlin-kotlin-stdlib'], this['2p-solve'], this['2p-theory'], this['2p-utils'], this['2p-core']);
|
|
26
26
|
}
|
|
27
27
|
}(this, function (_, kotlin_it_unibo_tuprolog_unify, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_core) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
30
|
var imul = Math.imul;
|
|
31
|
-
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.
|
|
32
|
-
var VOID = kotlin_kotlin.$_$.
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
45
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
48
|
-
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
49
|
-
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
50
|
-
var Long = kotlin_kotlin.$_$.
|
|
51
|
-
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
52
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
var
|
|
108
|
-
var
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
var
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
var
|
|
124
|
-
var
|
|
125
|
-
var
|
|
126
|
-
var
|
|
127
|
-
var
|
|
128
|
-
var
|
|
129
|
-
var
|
|
130
|
-
var
|
|
131
|
-
var
|
|
132
|
-
var
|
|
133
|
-
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
134
|
-
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
135
|
-
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.p2;
|
|
136
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
137
|
-
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
138
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
139
|
-
var interfaceMeta = kotlin_kotlin.$_$.c5;
|
|
31
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.b;
|
|
32
|
+
var VOID = kotlin_kotlin.$_$.d;
|
|
33
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
34
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.d1;
|
|
35
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
36
|
+
var Companion_instance_1 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
37
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
38
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
39
|
+
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
40
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
41
|
+
var toString = kotlin_kotlin.$_$.f6;
|
|
42
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
43
|
+
var Unit_instance = kotlin_kotlin.$_$.s1;
|
|
44
|
+
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.t1;
|
|
45
|
+
var protoOf = kotlin_kotlin.$_$.a6;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.v9;
|
|
47
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.ea;
|
|
48
|
+
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.k3;
|
|
49
|
+
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
50
|
+
var Long = kotlin_kotlin.$_$.p9;
|
|
51
|
+
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.i3;
|
|
52
|
+
var asSequence = kotlin_kotlin.$_$.z6;
|
|
53
|
+
var classMeta = kotlin_kotlin.$_$.e5;
|
|
54
|
+
var setMetadataFor = kotlin_kotlin.$_$.b6;
|
|
55
|
+
var ensureNotNull = kotlin_kotlin.$_$.y9;
|
|
56
|
+
var toLong = kotlin_kotlin.$_$.d6;
|
|
57
|
+
var hashCode = kotlin_kotlin.$_$.m5;
|
|
58
|
+
var equals = kotlin_kotlin.$_$.h5;
|
|
59
|
+
var CoroutineImpl = kotlin_kotlin.$_$.w4;
|
|
60
|
+
var SequenceScope = kotlin_kotlin.$_$.v6;
|
|
61
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v4;
|
|
62
|
+
var sequence = kotlin_kotlin.$_$.z7;
|
|
63
|
+
var asSequence_0 = kotlin_kotlin.$_$.h2;
|
|
64
|
+
var emptySequence = kotlin_kotlin.$_$.e7;
|
|
65
|
+
var plus = kotlin_kotlin.$_$.w7;
|
|
66
|
+
var flatMap = kotlin_kotlin.$_$.k7;
|
|
67
|
+
var distinct = kotlin_kotlin.$_$.c7;
|
|
68
|
+
var cached = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
69
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
70
|
+
var filter = kotlin_kotlin.$_$.h7;
|
|
71
|
+
var map = kotlin_kotlin.$_$.s7;
|
|
72
|
+
var toList = kotlin_kotlin.$_$.g8;
|
|
73
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
74
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
75
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
76
|
+
var Companion_instance_7 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
77
|
+
var Companion_getInstance_4 = kotlin_kotlin.$_$.r1;
|
|
78
|
+
var emptySet = kotlin_kotlin.$_$.v2;
|
|
79
|
+
var lazy = kotlin_kotlin.$_$.aa;
|
|
80
|
+
var contains = kotlin_kotlin.$_$.a7;
|
|
81
|
+
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
82
|
+
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
83
|
+
var update = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
84
|
+
var apply = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
85
|
+
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
86
|
+
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
87
|
+
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.i2;
|
|
88
|
+
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
89
|
+
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
90
|
+
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
91
|
+
var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
92
|
+
var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.d2;
|
|
93
|
+
var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.b2;
|
|
94
|
+
var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.l2;
|
|
95
|
+
var KProperty1 = kotlin_kotlin.$_$.u6;
|
|
96
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.k5;
|
|
97
|
+
var objectCreate = kotlin_kotlin.$_$.y5;
|
|
98
|
+
var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
99
|
+
var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
100
|
+
var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
101
|
+
var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.i;
|
|
102
|
+
var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.f3;
|
|
103
|
+
var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.a3;
|
|
104
|
+
var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.c3;
|
|
105
|
+
var get_defaultFlags = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
106
|
+
var get_defaultStaticKb = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
107
|
+
var get_defaultDynamicKb = kotlin_it_unibo_tuprolog_solve.$_$.v2;
|
|
108
|
+
var get_defaultInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.y2;
|
|
109
|
+
var get_defaultOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
110
|
+
var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
111
|
+
var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.d3;
|
|
112
|
+
var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.g3;
|
|
113
|
+
var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.m;
|
|
114
|
+
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.e3;
|
|
115
|
+
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
116
|
+
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.h3;
|
|
117
|
+
var objectMeta = kotlin_kotlin.$_$.z5;
|
|
118
|
+
var defineProp = kotlin_kotlin.$_$.g5;
|
|
119
|
+
var listOf = kotlin_kotlin.$_$.j3;
|
|
120
|
+
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.l3;
|
|
121
|
+
var to = kotlin_kotlin.$_$.ha;
|
|
122
|
+
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.p2;
|
|
123
|
+
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
124
|
+
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.r2;
|
|
125
|
+
var loadDynamicClauses = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
126
|
+
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.m2;
|
|
127
|
+
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.n2;
|
|
128
|
+
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
129
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
130
|
+
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
131
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
132
|
+
var interfaceMeta = kotlin_kotlin.$_$.n5;
|
|
140
133
|
var getKClass = kotlin_kotlin.$_$.c;
|
|
141
|
-
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.
|
|
142
|
-
var
|
|
143
|
-
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
144
|
-
var
|
|
145
|
-
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
146
|
-
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
147
|
-
var toSet = kotlin_kotlin.$_$.
|
|
148
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
149
|
-
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
150
|
-
var drop = kotlin_kotlin.$_$.
|
|
151
|
-
var first = kotlin_kotlin.$_$.
|
|
152
|
-
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.
|
|
153
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
154
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
155
|
-
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
156
|
-
var
|
|
157
|
-
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
158
|
-
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
134
|
+
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
135
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
136
|
+
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.q1;
|
|
137
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
138
|
+
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.j1;
|
|
139
|
+
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
140
|
+
var toSet = kotlin_kotlin.$_$.i8;
|
|
141
|
+
var plus_1 = kotlin_kotlin.$_$.z3;
|
|
142
|
+
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
143
|
+
var drop = kotlin_kotlin.$_$.d7;
|
|
144
|
+
var first = kotlin_kotlin.$_$.j7;
|
|
145
|
+
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.s1;
|
|
146
|
+
var isInterface = kotlin_kotlin.$_$.q5;
|
|
147
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
148
|
+
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.s1;
|
|
149
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
150
|
+
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.j3;
|
|
151
|
+
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
159
152
|
var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a;
|
|
160
|
-
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
161
|
-
var
|
|
162
|
-
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.
|
|
163
|
-
var setOf = kotlin_kotlin.$_$.
|
|
164
|
-
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
165
|
-
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
166
|
-
var
|
|
167
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
168
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
169
|
-
var any = kotlin_kotlin.$_$.
|
|
170
|
-
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
171
|
-
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
172
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
173
|
-
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
174
|
-
var Request = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
175
|
-
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
176
|
-
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
177
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
178
|
-
var
|
|
179
|
-
var
|
|
180
|
-
var
|
|
181
|
-
var
|
|
182
|
-
var
|
|
183
|
-
var
|
|
184
|
-
var
|
|
185
|
-
var
|
|
186
|
-
var
|
|
187
|
-
var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.v1;
|
|
188
|
-
var Companion_getInstance_21 = kotlin_it_unibo_tuprolog_solve.$_$.d1;
|
|
189
|
-
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
190
|
-
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.m;
|
|
191
|
-
var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
192
|
-
var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
153
|
+
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.v;
|
|
154
|
+
var Companion_instance_11 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
155
|
+
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.u2;
|
|
156
|
+
var setOf = kotlin_kotlin.$_$.g4;
|
|
157
|
+
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
158
|
+
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.n;
|
|
159
|
+
var Companion_instance_12 = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
160
|
+
var contains_0 = kotlin_kotlin.$_$.k2;
|
|
161
|
+
var firstOrNull = kotlin_kotlin.$_$.i7;
|
|
162
|
+
var any = kotlin_kotlin.$_$.x6;
|
|
163
|
+
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
164
|
+
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.s;
|
|
165
|
+
var sequenceOf = kotlin_kotlin.$_$.y7;
|
|
166
|
+
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.a2;
|
|
167
|
+
var Request = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
168
|
+
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.u1;
|
|
169
|
+
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m1;
|
|
170
|
+
var listOf_0 = kotlin_kotlin.$_$.k3;
|
|
171
|
+
var Struct = kotlin_it_unibo_tuprolog_core.$_$.r1;
|
|
172
|
+
var Companion_instance_13 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
173
|
+
var Companion_instance_14 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
174
|
+
var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.y1;
|
|
175
|
+
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
176
|
+
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.z1;
|
|
177
|
+
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.p;
|
|
178
|
+
var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
179
|
+
var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
193
180
|
//endregion
|
|
194
181
|
//region block: pre-declaration
|
|
195
182
|
setMetadataFor(AbstractClassicSolver, 'AbstractClassicSolver', classMeta, AbstractSolver);
|
|
196
183
|
setMetadataFor(ChoicePointContext, 'ChoicePointContext', classMeta);
|
|
197
184
|
setMetadataFor(Primitives, 'Primitives', classMeta, ChoicePointContext);
|
|
198
185
|
setMetadataFor(Rules, 'Rules', classMeta, ChoicePointContext);
|
|
199
|
-
setMetadataFor(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn, 'ChoicePointContext$<get-pathToRoot>$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
200
|
-
setMetadataFor(ClassicExecutionContext$pathToRoot$slambda, 'ClassicExecutionContext$pathToRoot$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
186
|
+
setMetadataFor(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn, 'ChoicePointContext$<get-pathToRoot>$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
187
|
+
setMetadataFor(ClassicExecutionContext$pathToRoot$slambda, 'ClassicExecutionContext$pathToRoot$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
201
188
|
setMetadataFor(ClassicExecutionContext, 'ClassicExecutionContext', classMeta, VOID, [ExecutionContext]);
|
|
202
189
|
setMetadataFor(ClassicSolver, 'ClassicSolver', classMeta, AbstractClassicSolver);
|
|
203
190
|
setMetadataFor(ClassicSolverFactory, 'ClassicSolverFactory', objectMeta, VOID, [SolverFactory]);
|
|
@@ -213,19 +200,19 @@
|
|
|
213
200
|
var tmp0_elvis_lhs = this.asEndState();
|
|
214
201
|
var tmp;
|
|
215
202
|
if (tmp0_elvis_lhs == null) {
|
|
216
|
-
throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).
|
|
203
|
+
throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).o6());
|
|
217
204
|
} else {
|
|
218
205
|
tmp = tmp0_elvis_lhs;
|
|
219
206
|
}
|
|
220
207
|
return tmp;
|
|
221
208
|
}
|
|
222
209
|
function clone(context, $super) {
|
|
223
|
-
context = context === VOID ? this.
|
|
224
|
-
return $super === VOID ? this.
|
|
210
|
+
context = context === VOID ? this.mb() : context;
|
|
211
|
+
return $super === VOID ? this.a35(context) : $super.a35.call(this, context);
|
|
225
212
|
}
|
|
226
213
|
setMetadataFor(State, 'State', interfaceMeta);
|
|
227
214
|
function get_hasOpenAlternatives() {
|
|
228
|
-
return this.
|
|
215
|
+
return this.q2i().o1w() ? this.mb().z31() : false;
|
|
229
216
|
}
|
|
230
217
|
function get_isEndState_0() {
|
|
231
218
|
return true;
|
|
@@ -233,6 +220,9 @@
|
|
|
233
220
|
function asEndState_0() {
|
|
234
221
|
return this;
|
|
235
222
|
}
|
|
223
|
+
function asEndState_1() {
|
|
224
|
+
return this.x34();
|
|
225
|
+
}
|
|
236
226
|
setMetadataFor(EndState, 'EndState', interfaceMeta, VOID, [State]);
|
|
237
227
|
setMetadataFor(AbstractState, 'AbstractState', classMeta, VOID, [State]);
|
|
238
228
|
setMetadataFor(AbstractEndState, 'AbstractEndState', classMeta, AbstractState, [EndState, AbstractState]);
|
|
@@ -264,147 +254,141 @@
|
|
|
264
254
|
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
265
255
|
//endregion
|
|
266
256
|
function AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
267
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
268
|
-
libraries = libraries === VOID ?
|
|
269
|
-
flags = flags === VOID ?
|
|
270
|
-
staticKb = staticKb === VOID ?
|
|
271
|
-
dynamicKb = dynamicKb === VOID ?
|
|
272
|
-
stdIn = stdIn === VOID ?
|
|
273
|
-
stdOut = stdOut === VOID ?
|
|
274
|
-
stdErr = stdErr === VOID ?
|
|
275
|
-
warnings = warnings === VOID ?
|
|
257
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
258
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
259
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
260
|
+
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
261
|
+
dynamicKb = dynamicKb === VOID ? Companion_instance_1.empty(unificator) : dynamicKb;
|
|
262
|
+
stdIn = stdIn === VOID ? Companion_instance_2.stdIn() : stdIn;
|
|
263
|
+
stdOut = stdOut === VOID ? Companion_instance_3.stdOut() : stdOut;
|
|
264
|
+
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
265
|
+
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
276
266
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
277
|
-
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb,
|
|
267
|
+
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.x1y(stdIn), Companion_instance_5.a1z(stdOut, stdErr, warnings), trustKb);
|
|
278
268
|
return $this;
|
|
279
269
|
}
|
|
280
270
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
281
271
|
// Inline function 'kotlin.require' call
|
|
282
|
-
var tmp0_require = destination.j5().w2v_1.equals(index);
|
|
283
272
|
// Inline function 'kotlin.contracts.contract' call
|
|
284
273
|
// Inline function 'kotlin.require' call
|
|
285
274
|
// Inline function 'kotlin.contracts.contract' call
|
|
286
|
-
if (!
|
|
287
|
-
var tmp$ret$0;
|
|
275
|
+
if (!destination.mb().v30_1.equals(index)) {
|
|
288
276
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
289
|
-
|
|
290
|
-
var message = tmp$ret$0;
|
|
277
|
+
var message = 'Failed requirement.';
|
|
291
278
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
292
279
|
}
|
|
293
|
-
$this.
|
|
280
|
+
$this.c31(destination.mb());
|
|
294
281
|
}
|
|
295
282
|
function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref($boundThis) {
|
|
296
283
|
var l = function (p0, p1, p2) {
|
|
297
284
|
updateCurrentContextAfterStateTransition($boundThis, p0, p1, p2);
|
|
298
|
-
return
|
|
285
|
+
return Unit_instance;
|
|
299
286
|
};
|
|
300
287
|
l.callableName = 'updateCurrentContextAfterStateTransition';
|
|
301
288
|
return l;
|
|
302
289
|
}
|
|
303
290
|
function AbstractClassicSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
304
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
305
|
-
libraries = libraries === VOID ?
|
|
306
|
-
flags = flags === VOID ?
|
|
307
|
-
initialStaticKb = initialStaticKb === VOID ?
|
|
308
|
-
initialDynamicKb = initialDynamicKb === VOID ?
|
|
309
|
-
inputChannels = inputChannels === VOID ?
|
|
310
|
-
outputChannels = outputChannels === VOID ?
|
|
291
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
292
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
293
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
294
|
+
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
295
|
+
initialDynamicKb = initialDynamicKb === VOID ? Companion_instance_1.empty(unificator) : initialDynamicKb;
|
|
296
|
+
inputChannels = inputChannels === VOID ? Companion_instance_4.fromStandard() : inputChannels;
|
|
297
|
+
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
311
298
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
312
299
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
313
300
|
}
|
|
314
|
-
protoOf(AbstractClassicSolver).
|
|
315
|
-
this.
|
|
301
|
+
protoOf(AbstractClassicSolver).c31 = function (_set____db54di) {
|
|
302
|
+
this.b31_1 = _set____db54di;
|
|
316
303
|
};
|
|
317
|
-
protoOf(AbstractClassicSolver).
|
|
318
|
-
return this.
|
|
304
|
+
protoOf(AbstractClassicSolver).s2b = function (_set____db54di) {
|
|
305
|
+
return this.c31(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
|
|
319
306
|
};
|
|
320
|
-
protoOf(AbstractClassicSolver).
|
|
321
|
-
var tmp = this.
|
|
307
|
+
protoOf(AbstractClassicSolver).q2b = function () {
|
|
308
|
+
var tmp = this.b31_1;
|
|
322
309
|
if (!(tmp == null))
|
|
323
310
|
return tmp;
|
|
324
311
|
else {
|
|
325
312
|
throwUninitializedPropertyAccessException('currentContext');
|
|
326
313
|
}
|
|
327
314
|
};
|
|
328
|
-
protoOf(AbstractClassicSolver).
|
|
329
|
-
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() :
|
|
330
|
-
};
|
|
331
|
-
protoOf(AbstractClassicSolver).
|
|
332
|
-
var tmp0_unificator = this.
|
|
333
|
-
var tmp1_libraries = this.
|
|
334
|
-
var tmp2_flags = this.
|
|
335
|
-
var tmp3_staticKb = this.
|
|
336
|
-
var tmp4_dynamicKb = this.
|
|
337
|
-
var tmp5_operators = this.
|
|
338
|
-
var tmp6_inputChannels = this.
|
|
339
|
-
var tmp7_outputChannels = this.
|
|
340
|
-
var tmp8_customData = this.
|
|
315
|
+
protoOf(AbstractClassicSolver).r2b = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
316
|
+
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_instance_0.empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_instance_1.empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID, new Long(0, 0));
|
|
317
|
+
};
|
|
318
|
+
protoOf(AbstractClassicSolver).y2b = function (goal, options) {
|
|
319
|
+
var tmp0_unificator = this.e1l();
|
|
320
|
+
var tmp1_libraries = this.k1v();
|
|
321
|
+
var tmp2_flags = this.l1v();
|
|
322
|
+
var tmp3_staticKb = this.m1v().toImmutableTheory();
|
|
323
|
+
var tmp4_dynamicKb = this.n1v().toMutableTheory();
|
|
324
|
+
var tmp5_operators = this.t1v();
|
|
325
|
+
var tmp6_inputChannels = this.o1v();
|
|
326
|
+
var tmp7_outputChannels = this.p1v();
|
|
327
|
+
var tmp8_customData = this.q2b().k30_1;
|
|
341
328
|
var tmp9_startTime = currentTimeInstant();
|
|
342
|
-
var tmp10_maxDuration = options.
|
|
343
|
-
this.
|
|
344
|
-
var tmp = new StateInit(this.
|
|
345
|
-
return asSequence(this.
|
|
329
|
+
var tmp10_maxDuration = options.r1x();
|
|
330
|
+
this.c31(new ClassicExecutionContext(VOID, tmp0_unificator, tmp1_libraries, tmp2_flags, tmp3_staticKb, tmp4_dynamicKb, tmp5_operators, tmp6_inputChannels, tmp7_outputChannels, tmp8_customData, VOID, goal, VOID, VOID, VOID, tmp9_startTime, tmp10_maxDuration));
|
|
331
|
+
var tmp = new StateInit(this.q2b());
|
|
332
|
+
return asSequence(this.d31(tmp, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
346
333
|
};
|
|
347
334
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
348
335
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
336
|
+
this.i31_1 = alternatives;
|
|
337
|
+
this.j31_1 = executionContext;
|
|
338
|
+
this.k31_1 = parent;
|
|
339
|
+
this.l31_1 = depth;
|
|
353
340
|
}
|
|
354
|
-
protoOf(Primitives).
|
|
355
|
-
return this.
|
|
341
|
+
protoOf(Primitives).m31 = function () {
|
|
342
|
+
return this.i31_1;
|
|
356
343
|
};
|
|
357
|
-
protoOf(Primitives).
|
|
358
|
-
return this.
|
|
344
|
+
protoOf(Primitives).n31 = function () {
|
|
345
|
+
return this.j31_1;
|
|
359
346
|
};
|
|
360
|
-
protoOf(Primitives).
|
|
361
|
-
return this.
|
|
347
|
+
protoOf(Primitives).o31 = function () {
|
|
348
|
+
return this.k31_1;
|
|
362
349
|
};
|
|
363
|
-
protoOf(Primitives).
|
|
364
|
-
return this.
|
|
350
|
+
protoOf(Primitives).p31 = function () {
|
|
351
|
+
return this.l31_1;
|
|
365
352
|
};
|
|
366
353
|
protoOf(Primitives).toString = function () {
|
|
367
354
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
368
355
|
};
|
|
369
|
-
protoOf(Primitives).
|
|
356
|
+
protoOf(Primitives).q31 = function () {
|
|
370
357
|
return 'Primitives';
|
|
371
358
|
};
|
|
372
|
-
protoOf(Primitives).
|
|
373
|
-
var tmp0_$this = ensureNotNull(this.
|
|
374
|
-
var tmp1_primitives = this.
|
|
375
|
-
var tmp$ret$0;
|
|
359
|
+
protoOf(Primitives).r31 = function (context) {
|
|
360
|
+
var tmp0_$this = ensureNotNull(this.j31_1);
|
|
361
|
+
var tmp1_primitives = this.i31_1;
|
|
376
362
|
// Inline function 'kotlin.Long.plus' call
|
|
377
|
-
var
|
|
378
|
-
|
|
379
|
-
var
|
|
380
|
-
var
|
|
381
|
-
var
|
|
382
|
-
var
|
|
383
|
-
var
|
|
384
|
-
var
|
|
385
|
-
var
|
|
386
|
-
var
|
|
387
|
-
var
|
|
388
|
-
var
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
};
|
|
393
|
-
protoOf(Primitives).v2w = function (alternatives, executionContext, parent, depth) {
|
|
363
|
+
var tmp2_step = context.v30_1.la(toLong(1));
|
|
364
|
+
var tmp3_startTime = context.q30_1;
|
|
365
|
+
var tmp4_flags = context.e30_1;
|
|
366
|
+
var tmp5_dynamicKb = context.g30_1;
|
|
367
|
+
var tmp6_staticKb = context.f30_1;
|
|
368
|
+
var tmp7_operators = context.h30_1;
|
|
369
|
+
var tmp8_inputChannels = context.i30_1;
|
|
370
|
+
var tmp9_outputChannels = context.j30_1;
|
|
371
|
+
var tmp10_libraries = context.d30_1;
|
|
372
|
+
var tmp11_customData = context.k30_1.discardEphemeral();
|
|
373
|
+
var tempContext = tmp0_$this.s31(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);
|
|
374
|
+
var nextChoicePointContext = this.t31(this.i31_1.wp(), tempContext);
|
|
375
|
+
return tempContext.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
376
|
+
};
|
|
377
|
+
protoOf(Primitives).u31 = function (alternatives, executionContext, parent, depth) {
|
|
394
378
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
395
379
|
};
|
|
396
|
-
protoOf(Primitives).
|
|
397
|
-
alternatives = alternatives === VOID ? this.
|
|
398
|
-
executionContext = executionContext === VOID ? this.
|
|
399
|
-
parent = parent === VOID ? this.
|
|
400
|
-
depth = depth === VOID ? this.
|
|
401
|
-
return $super === VOID ? this.
|
|
380
|
+
protoOf(Primitives).t31 = function (alternatives, executionContext, parent, depth, $super) {
|
|
381
|
+
alternatives = alternatives === VOID ? this.i31_1 : alternatives;
|
|
382
|
+
executionContext = executionContext === VOID ? this.j31_1 : executionContext;
|
|
383
|
+
parent = parent === VOID ? this.k31_1 : parent;
|
|
384
|
+
depth = depth === VOID ? this.l31_1 : depth;
|
|
385
|
+
return $super === VOID ? this.u31(alternatives, executionContext, parent, depth) : $super.u31.call(this, alternatives, executionContext, parent, depth);
|
|
402
386
|
};
|
|
403
387
|
protoOf(Primitives).hashCode = function () {
|
|
404
|
-
var result = hashCode(this.
|
|
405
|
-
result = imul(result, 31) + (this.
|
|
406
|
-
result = imul(result, 31) + (this.
|
|
407
|
-
result = imul(result, 31) + this.
|
|
388
|
+
var result = hashCode(this.i31_1);
|
|
389
|
+
result = imul(result, 31) + (this.j31_1 == null ? 0 : this.j31_1.hashCode()) | 0;
|
|
390
|
+
result = imul(result, 31) + (this.k31_1 == null ? 0 : hashCode(this.k31_1)) | 0;
|
|
391
|
+
result = imul(result, 31) + this.l31_1 | 0;
|
|
408
392
|
return result;
|
|
409
393
|
};
|
|
410
394
|
protoOf(Primitives).equals = function (other) {
|
|
@@ -413,77 +397,74 @@
|
|
|
413
397
|
if (!(other instanceof Primitives))
|
|
414
398
|
return false;
|
|
415
399
|
var tmp0_other_with_cast = other instanceof Primitives ? other : THROW_CCE();
|
|
416
|
-
if (!equals(this.
|
|
400
|
+
if (!equals(this.i31_1, tmp0_other_with_cast.i31_1))
|
|
417
401
|
return false;
|
|
418
|
-
if (!equals(this.
|
|
402
|
+
if (!equals(this.j31_1, tmp0_other_with_cast.j31_1))
|
|
419
403
|
return false;
|
|
420
|
-
if (!equals(this.
|
|
404
|
+
if (!equals(this.k31_1, tmp0_other_with_cast.k31_1))
|
|
421
405
|
return false;
|
|
422
|
-
if (!(this.
|
|
406
|
+
if (!(this.l31_1 === tmp0_other_with_cast.l31_1))
|
|
423
407
|
return false;
|
|
424
408
|
return true;
|
|
425
409
|
};
|
|
426
410
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
427
411
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
412
|
+
this.h32_1 = alternatives;
|
|
413
|
+
this.i32_1 = executionContext;
|
|
414
|
+
this.j32_1 = parent;
|
|
415
|
+
this.k32_1 = depth;
|
|
432
416
|
}
|
|
433
|
-
protoOf(Rules).
|
|
434
|
-
return this.
|
|
417
|
+
protoOf(Rules).m31 = function () {
|
|
418
|
+
return this.h32_1;
|
|
435
419
|
};
|
|
436
|
-
protoOf(Rules).
|
|
437
|
-
return this.
|
|
420
|
+
protoOf(Rules).n31 = function () {
|
|
421
|
+
return this.i32_1;
|
|
438
422
|
};
|
|
439
|
-
protoOf(Rules).
|
|
440
|
-
return this.
|
|
423
|
+
protoOf(Rules).o31 = function () {
|
|
424
|
+
return this.j32_1;
|
|
441
425
|
};
|
|
442
|
-
protoOf(Rules).
|
|
443
|
-
return this.
|
|
426
|
+
protoOf(Rules).p31 = function () {
|
|
427
|
+
return this.k32_1;
|
|
444
428
|
};
|
|
445
429
|
protoOf(Rules).toString = function () {
|
|
446
430
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
447
431
|
};
|
|
448
|
-
protoOf(Rules).
|
|
432
|
+
protoOf(Rules).q31 = function () {
|
|
449
433
|
return 'Rules';
|
|
450
434
|
};
|
|
451
|
-
protoOf(Rules).
|
|
452
|
-
var tmp0_$this = ensureNotNull(this.
|
|
453
|
-
var tmp1_rules = this.
|
|
454
|
-
var tmp$ret$0;
|
|
435
|
+
protoOf(Rules).r31 = function (context) {
|
|
436
|
+
var tmp0_$this = ensureNotNull(this.i32_1);
|
|
437
|
+
var tmp1_rules = this.h32_1;
|
|
455
438
|
// Inline function 'kotlin.Long.plus' call
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
var
|
|
459
|
-
var
|
|
460
|
-
var
|
|
461
|
-
var
|
|
462
|
-
var
|
|
463
|
-
var
|
|
464
|
-
var
|
|
465
|
-
var
|
|
466
|
-
var
|
|
467
|
-
var
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
};
|
|
472
|
-
protoOf(Rules).n2x = function (alternatives, executionContext, parent, depth) {
|
|
439
|
+
var tmp2_step = context.v30_1.la(toLong(1));
|
|
440
|
+
var tmp3_startTime = context.q30_1;
|
|
441
|
+
var tmp4_flags = context.e30_1;
|
|
442
|
+
var tmp5_dynamicKb = context.g30_1;
|
|
443
|
+
var tmp6_staticKb = context.f30_1;
|
|
444
|
+
var tmp7_operators = context.h30_1;
|
|
445
|
+
var tmp8_inputChannels = context.i30_1;
|
|
446
|
+
var tmp9_outputChannels = context.j30_1;
|
|
447
|
+
var tmp10_libraries = context.d30_1;
|
|
448
|
+
var tmp11_customData = context.k30_1.discardEphemeral();
|
|
449
|
+
var tempContext = tmp0_$this.s31(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);
|
|
450
|
+
var nextChoicePointContext = this.l32(this.h32_1.wp(), tempContext);
|
|
451
|
+
return tempContext.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
452
|
+
};
|
|
453
|
+
protoOf(Rules).m32 = function (alternatives, executionContext, parent, depth) {
|
|
473
454
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
474
455
|
};
|
|
475
|
-
protoOf(Rules).
|
|
476
|
-
alternatives = alternatives === VOID ? this.
|
|
477
|
-
executionContext = executionContext === VOID ? this.
|
|
478
|
-
parent = parent === VOID ? this.
|
|
479
|
-
depth = depth === VOID ? this.
|
|
480
|
-
return $super === VOID ? this.
|
|
456
|
+
protoOf(Rules).l32 = function (alternatives, executionContext, parent, depth, $super) {
|
|
457
|
+
alternatives = alternatives === VOID ? this.h32_1 : alternatives;
|
|
458
|
+
executionContext = executionContext === VOID ? this.i32_1 : executionContext;
|
|
459
|
+
parent = parent === VOID ? this.j32_1 : parent;
|
|
460
|
+
depth = depth === VOID ? this.k32_1 : depth;
|
|
461
|
+
return $super === VOID ? this.m32(alternatives, executionContext, parent, depth) : $super.m32.call(this, alternatives, executionContext, parent, depth);
|
|
481
462
|
};
|
|
482
463
|
protoOf(Rules).hashCode = function () {
|
|
483
|
-
var result = hashCode(this.
|
|
484
|
-
result = imul(result, 31) + (this.
|
|
485
|
-
result = imul(result, 31) + (this.
|
|
486
|
-
result = imul(result, 31) + this.
|
|
464
|
+
var result = hashCode(this.h32_1);
|
|
465
|
+
result = imul(result, 31) + (this.i32_1 == null ? 0 : this.i32_1.hashCode()) | 0;
|
|
466
|
+
result = imul(result, 31) + (this.j32_1 == null ? 0 : hashCode(this.j32_1)) | 0;
|
|
467
|
+
result = imul(result, 31) + this.k32_1 | 0;
|
|
487
468
|
return result;
|
|
488
469
|
};
|
|
489
470
|
protoOf(Rules).equals = function (other) {
|
|
@@ -492,117 +473,114 @@
|
|
|
492
473
|
if (!(other instanceof Rules))
|
|
493
474
|
return false;
|
|
494
475
|
var tmp0_other_with_cast = other instanceof Rules ? other : THROW_CCE();
|
|
495
|
-
if (!equals(this.
|
|
476
|
+
if (!equals(this.h32_1, tmp0_other_with_cast.h32_1))
|
|
496
477
|
return false;
|
|
497
|
-
if (!equals(this.
|
|
478
|
+
if (!equals(this.i32_1, tmp0_other_with_cast.i32_1))
|
|
498
479
|
return false;
|
|
499
|
-
if (!equals(this.
|
|
480
|
+
if (!equals(this.j32_1, tmp0_other_with_cast.j32_1))
|
|
500
481
|
return false;
|
|
501
|
-
if (!(this.
|
|
482
|
+
if (!(this.k32_1 === tmp0_other_with_cast.k32_1))
|
|
502
483
|
return false;
|
|
503
484
|
return true;
|
|
504
485
|
};
|
|
505
486
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
506
|
-
this.
|
|
487
|
+
this.v32_1 = this$0;
|
|
507
488
|
CoroutineImpl.call(this, resultContinuation);
|
|
508
489
|
}
|
|
509
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
510
|
-
var tmp = this.
|
|
511
|
-
tmp.
|
|
512
|
-
tmp.
|
|
513
|
-
return tmp.
|
|
490
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).y32 = function ($this$sequence, $completion) {
|
|
491
|
+
var tmp = this.z32($this$sequence, $completion);
|
|
492
|
+
tmp.hb_1 = Unit_instance;
|
|
493
|
+
tmp.ib_1 = null;
|
|
494
|
+
return tmp.qb();
|
|
514
495
|
};
|
|
515
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
516
|
-
return this.
|
|
496
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).dc = function (p1, $completion) {
|
|
497
|
+
return this.y32(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
517
498
|
};
|
|
518
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
519
|
-
var suspendResult = this.
|
|
499
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).qb = function () {
|
|
500
|
+
var suspendResult = this.hb_1;
|
|
520
501
|
$sm: do
|
|
521
502
|
try {
|
|
522
|
-
var tmp = this.
|
|
503
|
+
var tmp = this.fb_1;
|
|
523
504
|
switch (tmp) {
|
|
524
505
|
case 0:
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
506
|
+
this.gb_1 = 4;
|
|
507
|
+
this.x32_1 = this.v32_1;
|
|
508
|
+
this.fb_1 = 1;
|
|
528
509
|
continue $sm;
|
|
529
510
|
case 1:
|
|
530
|
-
if (!!(this.
|
|
531
|
-
this.
|
|
511
|
+
if (!!(this.x32_1 == null)) {
|
|
512
|
+
this.fb_1 = 3;
|
|
532
513
|
continue $sm;
|
|
533
514
|
}
|
|
534
515
|
|
|
535
|
-
this.
|
|
536
|
-
suspendResult = this.
|
|
516
|
+
this.fb_1 = 2;
|
|
517
|
+
suspendResult = this.w32_1.wd(ensureNotNull(this.x32_1), this);
|
|
537
518
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
538
519
|
return suspendResult;
|
|
539
520
|
}
|
|
540
521
|
|
|
541
522
|
continue $sm;
|
|
542
523
|
case 2:
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
524
|
+
this.x32_1 = this.x32_1.o31();
|
|
525
|
+
this.fb_1 = 1;
|
|
545
526
|
continue $sm;
|
|
546
527
|
case 3:
|
|
547
|
-
return
|
|
528
|
+
return Unit_instance;
|
|
548
529
|
case 4:
|
|
549
|
-
throw this.
|
|
530
|
+
throw this.ib_1;
|
|
550
531
|
}
|
|
551
532
|
} catch ($p) {
|
|
552
533
|
var e = $p;
|
|
553
|
-
if (this.
|
|
534
|
+
if (this.gb_1 === 4) {
|
|
554
535
|
throw e;
|
|
555
536
|
} else {
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
537
|
+
this.fb_1 = this.gb_1;
|
|
538
|
+
this.ib_1 = e;
|
|
558
539
|
}
|
|
559
540
|
}
|
|
560
541
|
while (true);
|
|
561
542
|
};
|
|
562
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
563
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
564
|
-
i.
|
|
543
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).z32 = function ($this$sequence, completion) {
|
|
544
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.v32_1, completion);
|
|
545
|
+
i.w32_1 = $this$sequence;
|
|
565
546
|
return i;
|
|
566
547
|
};
|
|
567
548
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
568
549
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
569
550
|
var l = function ($this$sequence, $completion) {
|
|
570
|
-
return i.
|
|
551
|
+
return i.y32($this$sequence, $completion);
|
|
571
552
|
};
|
|
572
553
|
l.$arity = 1;
|
|
573
554
|
return l;
|
|
574
555
|
}
|
|
575
556
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
576
557
|
depth = depth === VOID ? 0 : depth;
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
558
|
+
this.v31_1 = alternatives;
|
|
559
|
+
this.w31_1 = executionContext;
|
|
560
|
+
this.x31_1 = parent;
|
|
561
|
+
this.y31_1 = depth;
|
|
581
562
|
}
|
|
582
|
-
protoOf(ChoicePointContext).
|
|
583
|
-
return this.
|
|
563
|
+
protoOf(ChoicePointContext).m31 = function () {
|
|
564
|
+
return this.v31_1;
|
|
584
565
|
};
|
|
585
|
-
protoOf(ChoicePointContext).
|
|
586
|
-
return this.
|
|
566
|
+
protoOf(ChoicePointContext).n31 = function () {
|
|
567
|
+
return this.w31_1;
|
|
587
568
|
};
|
|
588
|
-
protoOf(ChoicePointContext).
|
|
589
|
-
return this.
|
|
569
|
+
protoOf(ChoicePointContext).o31 = function () {
|
|
570
|
+
return this.x31_1;
|
|
590
571
|
};
|
|
591
|
-
protoOf(ChoicePointContext).
|
|
592
|
-
return this.
|
|
572
|
+
protoOf(ChoicePointContext).p31 = function () {
|
|
573
|
+
return this.y31_1;
|
|
593
574
|
};
|
|
594
|
-
protoOf(ChoicePointContext).
|
|
575
|
+
protoOf(ChoicePointContext).z31 = function () {
|
|
595
576
|
var tmp$ret$1;
|
|
596
577
|
$l$block: {
|
|
597
578
|
// Inline function 'kotlin.sequences.any' call
|
|
598
|
-
var
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
var element = tmp0_iterator.n();
|
|
602
|
-
var tmp$ret$0;
|
|
579
|
+
var tmp0_iterator = this.a32().r();
|
|
580
|
+
while (tmp0_iterator.s()) {
|
|
581
|
+
var element = tmp0_iterator.u();
|
|
603
582
|
// Inline function 'it.unibo.tuprolog.solve.classic.ChoicePointContext.<get-hasOpenAlternatives>.<anonymous>' call
|
|
604
|
-
|
|
605
|
-
if (tmp$ret$0) {
|
|
583
|
+
if (element.m31().yp()) {
|
|
606
584
|
tmp$ret$1 = true;
|
|
607
585
|
break $l$block;
|
|
608
586
|
}
|
|
@@ -611,118 +589,117 @@
|
|
|
611
589
|
}
|
|
612
590
|
return tmp$ret$1;
|
|
613
591
|
};
|
|
614
|
-
protoOf(ChoicePointContext).
|
|
592
|
+
protoOf(ChoicePointContext).a32 = function () {
|
|
615
593
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
616
594
|
};
|
|
617
|
-
protoOf(ChoicePointContext).
|
|
618
|
-
var tmp0_safe_receiver = this.
|
|
619
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
595
|
+
protoOf(ChoicePointContext).b32 = function () {
|
|
596
|
+
var tmp0_safe_receiver = this.n31();
|
|
597
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u30_1;
|
|
620
598
|
};
|
|
621
|
-
protoOf(ChoicePointContext).
|
|
622
|
-
var tmp0_safe_receiver = this.
|
|
623
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
599
|
+
protoOf(ChoicePointContext).c32 = function () {
|
|
600
|
+
var tmp0_safe_receiver = this.n31();
|
|
601
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b30_1;
|
|
624
602
|
};
|
|
625
603
|
protoOf(ChoicePointContext).toString = function () {
|
|
626
|
-
var tmp = this.
|
|
604
|
+
var tmp = this.q31() + '(' + ('alternatives=' + this.m31() + ', ');
|
|
627
605
|
var tmp_0;
|
|
628
|
-
if (this.
|
|
629
|
-
tmp_0 = 'executionContext=' + this.
|
|
606
|
+
if (this.n31() === null) {
|
|
607
|
+
tmp_0 = 'executionContext=' + this.n31() + ', ';
|
|
630
608
|
} else {
|
|
631
|
-
'executionContextDepth=' + this.
|
|
632
|
-
tmp_0 = 'executionContextProcedure=' + this.
|
|
609
|
+
'executionContextDepth=' + this.b32() + ', ';
|
|
610
|
+
tmp_0 = 'executionContextProcedure=' + this.c32() + ', ';
|
|
633
611
|
}
|
|
634
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
612
|
+
return tmp + tmp_0 + ('depth=' + this.p31()) + ')';
|
|
635
613
|
};
|
|
636
614
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
637
615
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
638
616
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
639
617
|
}
|
|
640
618
|
function nextDepth(_this__u8e3s4) {
|
|
641
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
619
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.p31() + 1 | 0;
|
|
642
620
|
}
|
|
643
621
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
644
622
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
645
623
|
return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
646
624
|
}
|
|
647
625
|
function _get_locallyInterestingVariables__39cqti($this) {
|
|
648
|
-
var tmp = asSequence_0($this.
|
|
649
|
-
var tmp0_safe_receiver = $this.
|
|
650
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
626
|
+
var tmp = asSequence_0($this.w30_1);
|
|
627
|
+
var tmp0_safe_receiver = $this.n30_1.xp();
|
|
628
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bv();
|
|
651
629
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
652
630
|
}
|
|
653
631
|
function _get_interestingVariables__k6uw5o($this) {
|
|
654
|
-
var tmp$ret$0;
|
|
655
632
|
// Inline function 'kotlin.getValue' call
|
|
656
|
-
var
|
|
657
|
-
|
|
658
|
-
return
|
|
633
|
+
var this_0 = $this.z30_1;
|
|
634
|
+
interestingVariables$factory();
|
|
635
|
+
return this_0.r2();
|
|
659
636
|
}
|
|
660
637
|
function ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
661
|
-
this.
|
|
638
|
+
this.i33_1 = this$0;
|
|
662
639
|
CoroutineImpl.call(this, resultContinuation);
|
|
663
640
|
}
|
|
664
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
665
|
-
var tmp = this.
|
|
666
|
-
tmp.
|
|
667
|
-
tmp.
|
|
668
|
-
return tmp.
|
|
641
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).l33 = function ($this$sequence, $completion) {
|
|
642
|
+
var tmp = this.m33($this$sequence, $completion);
|
|
643
|
+
tmp.hb_1 = Unit_instance;
|
|
644
|
+
tmp.ib_1 = null;
|
|
645
|
+
return tmp.qb();
|
|
669
646
|
};
|
|
670
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
671
|
-
return this.
|
|
647
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).dc = function (p1, $completion) {
|
|
648
|
+
return this.l33(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
672
649
|
};
|
|
673
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
674
|
-
var suspendResult = this.
|
|
650
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).qb = function () {
|
|
651
|
+
var suspendResult = this.hb_1;
|
|
675
652
|
$sm: do
|
|
676
653
|
try {
|
|
677
|
-
var tmp = this.
|
|
654
|
+
var tmp = this.fb_1;
|
|
678
655
|
switch (tmp) {
|
|
679
656
|
case 0:
|
|
680
|
-
this.
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
657
|
+
this.gb_1 = 4;
|
|
658
|
+
this.k33_1 = this.i33_1;
|
|
659
|
+
this.fb_1 = 1;
|
|
683
660
|
continue $sm;
|
|
684
661
|
case 1:
|
|
685
|
-
if (!!(this.
|
|
686
|
-
this.
|
|
662
|
+
if (!!(this.k33_1 == null)) {
|
|
663
|
+
this.fb_1 = 3;
|
|
687
664
|
continue $sm;
|
|
688
665
|
}
|
|
689
666
|
|
|
690
|
-
this.
|
|
691
|
-
suspendResult = this.
|
|
667
|
+
this.fb_1 = 2;
|
|
668
|
+
suspendResult = this.j33_1.wd(this.k33_1, this);
|
|
692
669
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
693
670
|
return suspendResult;
|
|
694
671
|
}
|
|
695
672
|
|
|
696
673
|
continue $sm;
|
|
697
674
|
case 2:
|
|
698
|
-
this.
|
|
699
|
-
this.
|
|
675
|
+
this.k33_1 = this.k33_1.t30_1;
|
|
676
|
+
this.fb_1 = 1;
|
|
700
677
|
continue $sm;
|
|
701
678
|
case 3:
|
|
702
|
-
return
|
|
679
|
+
return Unit_instance;
|
|
703
680
|
case 4:
|
|
704
|
-
throw this.
|
|
681
|
+
throw this.ib_1;
|
|
705
682
|
}
|
|
706
683
|
} catch ($p) {
|
|
707
684
|
var e = $p;
|
|
708
|
-
if (this.
|
|
685
|
+
if (this.gb_1 === 4) {
|
|
709
686
|
throw e;
|
|
710
687
|
} else {
|
|
711
|
-
this.
|
|
712
|
-
this.
|
|
688
|
+
this.fb_1 = this.gb_1;
|
|
689
|
+
this.ib_1 = e;
|
|
713
690
|
}
|
|
714
691
|
}
|
|
715
692
|
while (true);
|
|
716
693
|
};
|
|
717
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
718
|
-
var i = new ClassicExecutionContext$pathToRoot$slambda(this.
|
|
719
|
-
i.
|
|
694
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).m33 = function ($this$sequence, completion) {
|
|
695
|
+
var i = new ClassicExecutionContext$pathToRoot$slambda(this.i33_1, completion);
|
|
696
|
+
i.j33_1 = $this$sequence;
|
|
720
697
|
return i;
|
|
721
698
|
};
|
|
722
699
|
function ClassicExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
723
700
|
var i = new ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
724
701
|
var l = function ($this$sequence, $completion) {
|
|
725
|
-
return i.
|
|
702
|
+
return i.l33($this$sequence, $completion);
|
|
726
703
|
};
|
|
727
704
|
l.$arity = 1;
|
|
728
705
|
return l;
|
|
@@ -730,11 +707,11 @@
|
|
|
730
707
|
function ClassicExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
731
708
|
return function () {
|
|
732
709
|
var tmp;
|
|
733
|
-
if (this$0.
|
|
710
|
+
if (this$0.n30_1.zp()) {
|
|
734
711
|
tmp = null;
|
|
735
712
|
} else {
|
|
736
|
-
var tmp0_safe_receiver = this$0.
|
|
737
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
713
|
+
var tmp0_safe_receiver = this$0.n30_1.xp();
|
|
714
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.l30_1);
|
|
738
715
|
}
|
|
739
716
|
return tmp;
|
|
740
717
|
};
|
|
@@ -744,44 +721,44 @@
|
|
|
744
721
|
}
|
|
745
722
|
function ClassicExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
746
723
|
return function () {
|
|
747
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
748
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
724
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.m30_1.bv());
|
|
725
|
+
return cached(distinct(plus(tmp, flatMap(this$0.x30_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
749
726
|
};
|
|
750
727
|
}
|
|
751
728
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
752
|
-
return it.
|
|
729
|
+
return it.n33();
|
|
753
730
|
}
|
|
754
731
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
755
732
|
return function (it) {
|
|
756
|
-
var tmp0_elvis_lhs = it.
|
|
757
|
-
return tmp0_elvis_lhs == null ?
|
|
733
|
+
var tmp0_elvis_lhs = it.b30_1;
|
|
734
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.m30_1]) : tmp0_elvis_lhs;
|
|
758
735
|
};
|
|
759
736
|
}
|
|
760
737
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
761
738
|
return function () {
|
|
762
|
-
var tmp = filter(this$0.
|
|
739
|
+
var tmp = filter(this$0.x30_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
763
740
|
return toList(map(tmp, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
764
741
|
};
|
|
765
742
|
}
|
|
766
743
|
function ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
767
744
|
procedure = procedure === VOID ? null : procedure;
|
|
768
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
769
|
-
libraries = libraries === VOID ?
|
|
770
|
-
flags = flags === VOID ?
|
|
771
|
-
staticKb = staticKb === VOID ?
|
|
772
|
-
dynamicKb = dynamicKb === VOID ?
|
|
745
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
746
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
747
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
748
|
+
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
749
|
+
dynamicKb = dynamicKb === VOID ? Companion_instance_1.empty(unificator) : dynamicKb;
|
|
773
750
|
operators = operators === VOID ? toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])) : operators;
|
|
774
|
-
inputChannels = inputChannels === VOID ?
|
|
775
|
-
outputChannels = outputChannels === VOID ?
|
|
776
|
-
customData = customData === VOID ?
|
|
777
|
-
substitution = substitution === VOID ?
|
|
778
|
-
query = query === VOID ?
|
|
779
|
-
goals = goals === VOID ?
|
|
780
|
-
rules = rules === VOID ?
|
|
781
|
-
primitives = primitives === VOID ?
|
|
751
|
+
inputChannels = inputChannels === VOID ? Companion_instance_4.fromStandard() : inputChannels;
|
|
752
|
+
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
753
|
+
customData = customData === VOID ? Companion_instance_6.empty() : customData;
|
|
754
|
+
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
755
|
+
query = query === VOID ? Companion_getInstance_3().qu_1 : query;
|
|
756
|
+
goals = goals === VOID ? Companion_instance_7.empty() : goals;
|
|
757
|
+
rules = rules === VOID ? Companion_instance_7.empty() : rules;
|
|
758
|
+
primitives = primitives === VOID ? Companion_instance_7.empty() : primitives;
|
|
782
759
|
var tmp;
|
|
783
760
|
if (maxDuration === VOID) {
|
|
784
|
-
|
|
761
|
+
Companion_getInstance_4();
|
|
785
762
|
tmp = new Long(-1, 2147483647);
|
|
786
763
|
} else {
|
|
787
764
|
tmp = maxDuration;
|
|
@@ -792,221 +769,213 @@
|
|
|
792
769
|
depth = depth === VOID ? 0 : depth;
|
|
793
770
|
step = step === VOID ? new Long(0, 0) : step;
|
|
794
771
|
relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
772
|
+
this.b30_1 = procedure;
|
|
773
|
+
this.c30_1 = unificator;
|
|
774
|
+
this.d30_1 = libraries;
|
|
775
|
+
this.e30_1 = flags;
|
|
776
|
+
this.f30_1 = staticKb;
|
|
777
|
+
this.g30_1 = dynamicKb;
|
|
778
|
+
this.h30_1 = operators;
|
|
779
|
+
this.i30_1 = inputChannels;
|
|
780
|
+
this.j30_1 = outputChannels;
|
|
781
|
+
this.k30_1 = customData;
|
|
782
|
+
this.l30_1 = substitution;
|
|
783
|
+
this.m30_1 = query;
|
|
784
|
+
this.n30_1 = goals;
|
|
785
|
+
this.o30_1 = rules;
|
|
786
|
+
this.p30_1 = primitives;
|
|
787
|
+
this.q30_1 = startTime;
|
|
788
|
+
this.r30_1 = maxDuration;
|
|
789
|
+
this.s30_1 = choicePoints;
|
|
790
|
+
this.t30_1 = parent;
|
|
791
|
+
this.u30_1 = depth;
|
|
792
|
+
this.v30_1 = step;
|
|
793
|
+
this.w30_1 = relevantVariables;
|
|
817
794
|
// Inline function 'kotlin.require' call
|
|
818
|
-
var tmp0_require = (this.v2v_1 === 0 ? this.u2v_1 == null : false) ? true : this.v2v_1 > 0 ? !(this.u2v_1 == null) : false;
|
|
819
795
|
// Inline function 'kotlin.contracts.contract' call
|
|
820
796
|
// Inline function 'kotlin.require' call
|
|
821
797
|
// Inline function 'kotlin.contracts.contract' call
|
|
822
|
-
if (!
|
|
823
|
-
var tmp$ret$0;
|
|
798
|
+
if (!((this.u30_1 === 0 ? this.t30_1 == null : false) ? true : this.u30_1 > 0 ? !(this.t30_1 == null) : false)) {
|
|
824
799
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
825
|
-
|
|
826
|
-
var message = tmp$ret$0;
|
|
800
|
+
var message = 'Failed requirement.';
|
|
827
801
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
828
802
|
}
|
|
829
803
|
// Inline function 'kotlin.require' call
|
|
830
|
-
var tmp1_require = this.r2v_1.f1(new Long(0, 0)) >= 0;
|
|
831
804
|
// Inline function 'kotlin.contracts.contract' call
|
|
832
805
|
// Inline function 'kotlin.require' call
|
|
833
806
|
// Inline function 'kotlin.contracts.contract' call
|
|
834
|
-
if (!
|
|
835
|
-
var tmp$ret$1;
|
|
807
|
+
if (!(this.q30_1.m6(new Long(0, 0)) >= 0)) {
|
|
836
808
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
837
|
-
|
|
838
|
-
var message_0 = tmp$ret$1;
|
|
809
|
+
var message_0 = 'Failed requirement.';
|
|
839
810
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
840
811
|
}
|
|
841
812
|
// Inline function 'kotlin.require' call
|
|
842
|
-
var tmp2_require = this.s2v_1.f1(new Long(0, 0)) >= 0;
|
|
843
813
|
// Inline function 'kotlin.contracts.contract' call
|
|
844
814
|
// Inline function 'kotlin.require' call
|
|
845
815
|
// Inline function 'kotlin.contracts.contract' call
|
|
846
|
-
if (!
|
|
847
|
-
var tmp$ret$2;
|
|
816
|
+
if (!(this.r30_1.m6(new Long(0, 0)) >= 0)) {
|
|
848
817
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
849
|
-
|
|
850
|
-
var message_1 = tmp$ret$2;
|
|
818
|
+
var message_1 = 'Failed requirement.';
|
|
851
819
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
852
820
|
}
|
|
853
821
|
var tmp_0 = this;
|
|
854
|
-
tmp_0.
|
|
822
|
+
tmp_0.x30_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
|
|
855
823
|
var tmp_1 = this;
|
|
856
|
-
tmp_1.
|
|
824
|
+
tmp_1.y30_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
|
|
857
825
|
var tmp_2 = this;
|
|
858
|
-
tmp_2.
|
|
826
|
+
tmp_2.z30_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
|
|
859
827
|
var tmp_3 = this;
|
|
860
|
-
tmp_3.
|
|
828
|
+
tmp_3.a31_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
861
829
|
}
|
|
862
|
-
protoOf(ClassicExecutionContext).
|
|
863
|
-
return this.
|
|
830
|
+
protoOf(ClassicExecutionContext).f1v = function () {
|
|
831
|
+
return this.b30_1;
|
|
864
832
|
};
|
|
865
|
-
protoOf(ClassicExecutionContext).
|
|
866
|
-
return this.
|
|
833
|
+
protoOf(ClassicExecutionContext).e1l = function () {
|
|
834
|
+
return this.c30_1;
|
|
867
835
|
};
|
|
868
|
-
protoOf(ClassicExecutionContext).
|
|
869
|
-
return this.
|
|
836
|
+
protoOf(ClassicExecutionContext).k1v = function () {
|
|
837
|
+
return this.d30_1;
|
|
870
838
|
};
|
|
871
|
-
protoOf(ClassicExecutionContext).
|
|
872
|
-
return this.
|
|
839
|
+
protoOf(ClassicExecutionContext).l1v = function () {
|
|
840
|
+
return this.e30_1;
|
|
873
841
|
};
|
|
874
|
-
protoOf(ClassicExecutionContext).
|
|
875
|
-
return this.
|
|
842
|
+
protoOf(ClassicExecutionContext).m1v = function () {
|
|
843
|
+
return this.f30_1;
|
|
876
844
|
};
|
|
877
|
-
protoOf(ClassicExecutionContext).
|
|
878
|
-
return this.
|
|
845
|
+
protoOf(ClassicExecutionContext).n1v = function () {
|
|
846
|
+
return this.g30_1;
|
|
879
847
|
};
|
|
880
|
-
protoOf(ClassicExecutionContext).
|
|
881
|
-
return this.
|
|
848
|
+
protoOf(ClassicExecutionContext).t1v = function () {
|
|
849
|
+
return this.h30_1;
|
|
882
850
|
};
|
|
883
|
-
protoOf(ClassicExecutionContext).
|
|
884
|
-
return this.
|
|
851
|
+
protoOf(ClassicExecutionContext).o1v = function () {
|
|
852
|
+
return this.i30_1;
|
|
885
853
|
};
|
|
886
|
-
protoOf(ClassicExecutionContext).
|
|
887
|
-
return this.
|
|
854
|
+
protoOf(ClassicExecutionContext).p1v = function () {
|
|
855
|
+
return this.j30_1;
|
|
888
856
|
};
|
|
889
|
-
protoOf(ClassicExecutionContext).
|
|
890
|
-
return this.
|
|
857
|
+
protoOf(ClassicExecutionContext).i1v = function () {
|
|
858
|
+
return this.k30_1;
|
|
891
859
|
};
|
|
892
|
-
protoOf(ClassicExecutionContext).
|
|
893
|
-
return this.
|
|
860
|
+
protoOf(ClassicExecutionContext).g1v = function () {
|
|
861
|
+
return this.l30_1;
|
|
894
862
|
};
|
|
895
|
-
protoOf(ClassicExecutionContext).
|
|
896
|
-
return this.
|
|
863
|
+
protoOf(ClassicExecutionContext).a1v = function () {
|
|
864
|
+
return this.q30_1;
|
|
897
865
|
};
|
|
898
|
-
protoOf(ClassicExecutionContext).
|
|
899
|
-
return this.
|
|
866
|
+
protoOf(ClassicExecutionContext).c1v = function () {
|
|
867
|
+
return this.r30_1;
|
|
900
868
|
};
|
|
901
|
-
protoOf(ClassicExecutionContext).
|
|
902
|
-
return this.
|
|
869
|
+
protoOf(ClassicExecutionContext).o33 = function () {
|
|
870
|
+
return this.u30_1 === 0;
|
|
903
871
|
};
|
|
904
|
-
protoOf(ClassicExecutionContext).
|
|
905
|
-
var tmp0_safe_receiver = this.
|
|
906
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
872
|
+
protoOf(ClassicExecutionContext).z31 = function () {
|
|
873
|
+
var tmp0_safe_receiver = this.s30_1;
|
|
874
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z31();
|
|
907
875
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
908
876
|
};
|
|
909
|
-
protoOf(ClassicExecutionContext).
|
|
910
|
-
return this.
|
|
877
|
+
protoOf(ClassicExecutionContext).n33 = function () {
|
|
878
|
+
return this.t30_1 == null ? true : (this.u30_1 - this.t30_1.u30_1 | 0) >= 1;
|
|
911
879
|
};
|
|
912
|
-
protoOf(ClassicExecutionContext).
|
|
913
|
-
var tmp$ret$0;
|
|
880
|
+
protoOf(ClassicExecutionContext).p33 = function () {
|
|
914
881
|
// Inline function 'kotlin.getValue' call
|
|
915
|
-
var
|
|
916
|
-
|
|
917
|
-
return
|
|
882
|
+
var this_0 = this.y30_1;
|
|
883
|
+
currentGoal$factory();
|
|
884
|
+
return this_0.r2();
|
|
918
885
|
};
|
|
919
|
-
protoOf(ClassicExecutionContext).
|
|
886
|
+
protoOf(ClassicExecutionContext).q33 = function (variable) {
|
|
920
887
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
921
888
|
};
|
|
922
|
-
protoOf(ClassicExecutionContext).
|
|
923
|
-
var tmp$ret$0;
|
|
889
|
+
protoOf(ClassicExecutionContext).h1v = function () {
|
|
924
890
|
// Inline function 'kotlin.getValue' call
|
|
925
|
-
var
|
|
926
|
-
|
|
927
|
-
return
|
|
891
|
+
var this_0 = this.a31_1;
|
|
892
|
+
logicStackTrace$factory();
|
|
893
|
+
return this_0.r2();
|
|
928
894
|
};
|
|
929
|
-
protoOf(ClassicExecutionContext).
|
|
895
|
+
protoOf(ClassicExecutionContext).j1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
930
896
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
931
897
|
};
|
|
932
|
-
protoOf(ClassicExecutionContext).
|
|
933
|
-
return
|
|
898
|
+
protoOf(ClassicExecutionContext).q1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
899
|
+
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
900
|
+
};
|
|
901
|
+
protoOf(ClassicExecutionContext).s1v = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
902
|
+
return this.s31(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
934
903
|
};
|
|
935
|
-
protoOf(ClassicExecutionContext).
|
|
904
|
+
protoOf(ClassicExecutionContext).r33 = function (sideEffect) {
|
|
936
905
|
var tmp = apply.call(this, sideEffect);
|
|
937
906
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
938
907
|
};
|
|
939
908
|
protoOf(ClassicExecutionContext).apply = function (sideEffect) {
|
|
940
|
-
return this.
|
|
909
|
+
return this.r33(sideEffect);
|
|
941
910
|
};
|
|
942
|
-
protoOf(ClassicExecutionContext).
|
|
911
|
+
protoOf(ClassicExecutionContext).s33 = function (sideEffects) {
|
|
943
912
|
var tmp = applyIterable.call(this, sideEffects);
|
|
944
913
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
945
914
|
};
|
|
946
915
|
protoOf(ClassicExecutionContext).applyIterable = function (sideEffects) {
|
|
947
|
-
return this.
|
|
916
|
+
return this.s33(sideEffects);
|
|
948
917
|
};
|
|
949
|
-
protoOf(ClassicExecutionContext).
|
|
918
|
+
protoOf(ClassicExecutionContext).t33 = function (sideEffects) {
|
|
950
919
|
var tmp = applySequence.call(this, sideEffects);
|
|
951
920
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
952
921
|
};
|
|
953
922
|
protoOf(ClassicExecutionContext).applySequence = function (sideEffects) {
|
|
954
|
-
return this.
|
|
923
|
+
return this.t33(sideEffects);
|
|
955
924
|
};
|
|
956
925
|
protoOf(ClassicExecutionContext).toString = function () {
|
|
957
|
-
return 'ClassicExecutionContext(' + ('step=' + toString(
|
|
926
|
+
return 'ClassicExecutionContext(' + ('step=' + this.v30_1.toString() + ', ') + ('depth=' + this.u30_1 + ', ') + ('substitution=' + this.l30_1 + ', ') + ('logicStackTrace=' + this.h1v() + ', ') + ('goals=' + this.n30_1 + ', ') + ('rules=' + this.o30_1 + ', ') + ('primitives=' + this.p30_1 + ', ') + ('startTime=' + this.q30_1.toString() + ', ') + ('endTime=' + this.b1v().toString() + ', ') + ('maxDuration=' + this.r30_1.toString() + ', ') + ('unificator=' + this.c30_1 + ', ') + ('choicePoints=' + this.s30_1) + ')';
|
|
958
927
|
};
|
|
959
|
-
protoOf(ClassicExecutionContext).
|
|
928
|
+
protoOf(ClassicExecutionContext).u33 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
960
929
|
return new ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
961
930
|
};
|
|
962
|
-
protoOf(ClassicExecutionContext).
|
|
963
|
-
procedure = procedure === VOID ? this.
|
|
964
|
-
unificator = unificator === VOID ? this.
|
|
965
|
-
libraries = libraries === VOID ? this.
|
|
966
|
-
flags = flags === VOID ? this.
|
|
967
|
-
staticKb = staticKb === VOID ? this.
|
|
968
|
-
dynamicKb = dynamicKb === VOID ? this.
|
|
969
|
-
operators = operators === VOID ? this.
|
|
970
|
-
inputChannels = inputChannels === VOID ? this.
|
|
971
|
-
outputChannels = outputChannels === VOID ? this.
|
|
972
|
-
customData = customData === VOID ? this.
|
|
973
|
-
substitution = substitution === VOID ? this.
|
|
974
|
-
query = query === VOID ? this.
|
|
975
|
-
goals = goals === VOID ? this.
|
|
976
|
-
rules = rules === VOID ? this.
|
|
977
|
-
primitives = primitives === VOID ? this.
|
|
978
|
-
startTime = startTime === VOID ? this.
|
|
979
|
-
maxDuration = maxDuration === VOID ? this.
|
|
980
|
-
choicePoints = choicePoints === VOID ? this.
|
|
981
|
-
parent = parent === VOID ? this.
|
|
982
|
-
depth = depth === VOID ? this.
|
|
983
|
-
step = step === VOID ? this.
|
|
984
|
-
relevantVariables = relevantVariables === VOID ? this.
|
|
985
|
-
return $super === VOID ? this.
|
|
931
|
+
protoOf(ClassicExecutionContext).s31 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
932
|
+
procedure = procedure === VOID ? this.b30_1 : procedure;
|
|
933
|
+
unificator = unificator === VOID ? this.c30_1 : unificator;
|
|
934
|
+
libraries = libraries === VOID ? this.d30_1 : libraries;
|
|
935
|
+
flags = flags === VOID ? this.e30_1 : flags;
|
|
936
|
+
staticKb = staticKb === VOID ? this.f30_1 : staticKb;
|
|
937
|
+
dynamicKb = dynamicKb === VOID ? this.g30_1 : dynamicKb;
|
|
938
|
+
operators = operators === VOID ? this.h30_1 : operators;
|
|
939
|
+
inputChannels = inputChannels === VOID ? this.i30_1 : inputChannels;
|
|
940
|
+
outputChannels = outputChannels === VOID ? this.j30_1 : outputChannels;
|
|
941
|
+
customData = customData === VOID ? this.k30_1 : customData;
|
|
942
|
+
substitution = substitution === VOID ? this.l30_1 : substitution;
|
|
943
|
+
query = query === VOID ? this.m30_1 : query;
|
|
944
|
+
goals = goals === VOID ? this.n30_1 : goals;
|
|
945
|
+
rules = rules === VOID ? this.o30_1 : rules;
|
|
946
|
+
primitives = primitives === VOID ? this.p30_1 : primitives;
|
|
947
|
+
startTime = startTime === VOID ? this.q30_1 : startTime;
|
|
948
|
+
maxDuration = maxDuration === VOID ? this.r30_1 : maxDuration;
|
|
949
|
+
choicePoints = choicePoints === VOID ? this.s30_1 : choicePoints;
|
|
950
|
+
parent = parent === VOID ? this.t30_1 : parent;
|
|
951
|
+
depth = depth === VOID ? this.u30_1 : depth;
|
|
952
|
+
step = step === VOID ? this.v30_1 : step;
|
|
953
|
+
relevantVariables = relevantVariables === VOID ? this.w30_1 : relevantVariables;
|
|
954
|
+
return $super === VOID ? this.u33(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.u33.call(this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
986
955
|
};
|
|
987
956
|
protoOf(ClassicExecutionContext).hashCode = function () {
|
|
988
|
-
var result = this.
|
|
989
|
-
result = imul(result, 31) + hashCode(this.
|
|
990
|
-
result = imul(result, 31) + hashCode(this.
|
|
991
|
-
result = imul(result, 31) + this.
|
|
992
|
-
result = imul(result, 31) + hashCode(this.
|
|
993
|
-
result = imul(result, 31) + hashCode(this.
|
|
994
|
-
result = imul(result, 31) + this.
|
|
995
|
-
result = imul(result, 31) + hashCode(this.
|
|
996
|
-
result = imul(result, 31) + hashCode(this.
|
|
997
|
-
result = imul(result, 31) + this.
|
|
998
|
-
result = imul(result, 31) + hashCode(this.
|
|
999
|
-
result = imul(result, 31) + this.
|
|
1000
|
-
result = imul(result, 31) + hashCode(this.
|
|
1001
|
-
result = imul(result, 31) + hashCode(this.
|
|
1002
|
-
result = imul(result, 31) + hashCode(this.
|
|
1003
|
-
result = imul(result, 31) + this.
|
|
1004
|
-
result = imul(result, 31) + this.
|
|
1005
|
-
result = imul(result, 31) + (this.
|
|
1006
|
-
result = imul(result, 31) + (this.
|
|
1007
|
-
result = imul(result, 31) + this.
|
|
1008
|
-
result = imul(result, 31) + this.
|
|
1009
|
-
result = imul(result, 31) + hashCode(this.
|
|
957
|
+
var result = this.b30_1 == null ? 0 : this.b30_1.hashCode();
|
|
958
|
+
result = imul(result, 31) + hashCode(this.c30_1) | 0;
|
|
959
|
+
result = imul(result, 31) + hashCode(this.d30_1) | 0;
|
|
960
|
+
result = imul(result, 31) + this.e30_1.hashCode() | 0;
|
|
961
|
+
result = imul(result, 31) + hashCode(this.f30_1) | 0;
|
|
962
|
+
result = imul(result, 31) + hashCode(this.g30_1) | 0;
|
|
963
|
+
result = imul(result, 31) + this.h30_1.hashCode() | 0;
|
|
964
|
+
result = imul(result, 31) + hashCode(this.i30_1) | 0;
|
|
965
|
+
result = imul(result, 31) + hashCode(this.j30_1) | 0;
|
|
966
|
+
result = imul(result, 31) + this.k30_1.hashCode() | 0;
|
|
967
|
+
result = imul(result, 31) + hashCode(this.l30_1) | 0;
|
|
968
|
+
result = imul(result, 31) + this.m30_1.hashCode() | 0;
|
|
969
|
+
result = imul(result, 31) + hashCode(this.n30_1) | 0;
|
|
970
|
+
result = imul(result, 31) + hashCode(this.o30_1) | 0;
|
|
971
|
+
result = imul(result, 31) + hashCode(this.p30_1) | 0;
|
|
972
|
+
result = imul(result, 31) + this.q30_1.hashCode() | 0;
|
|
973
|
+
result = imul(result, 31) + this.r30_1.hashCode() | 0;
|
|
974
|
+
result = imul(result, 31) + (this.s30_1 == null ? 0 : hashCode(this.s30_1)) | 0;
|
|
975
|
+
result = imul(result, 31) + (this.t30_1 == null ? 0 : this.t30_1.hashCode()) | 0;
|
|
976
|
+
result = imul(result, 31) + this.u30_1 | 0;
|
|
977
|
+
result = imul(result, 31) + this.v30_1.hashCode() | 0;
|
|
978
|
+
result = imul(result, 31) + hashCode(this.w30_1) | 0;
|
|
1010
979
|
return result;
|
|
1011
980
|
};
|
|
1012
981
|
protoOf(ClassicExecutionContext).equals = function (other) {
|
|
@@ -1015,55 +984,55 @@
|
|
|
1015
984
|
if (!(other instanceof ClassicExecutionContext))
|
|
1016
985
|
return false;
|
|
1017
986
|
var tmp0_other_with_cast = other instanceof ClassicExecutionContext ? other : THROW_CCE();
|
|
1018
|
-
if (!equals(this.
|
|
987
|
+
if (!equals(this.b30_1, tmp0_other_with_cast.b30_1))
|
|
1019
988
|
return false;
|
|
1020
|
-
if (!equals(this.
|
|
989
|
+
if (!equals(this.c30_1, tmp0_other_with_cast.c30_1))
|
|
1021
990
|
return false;
|
|
1022
|
-
if (!equals(this.
|
|
991
|
+
if (!equals(this.d30_1, tmp0_other_with_cast.d30_1))
|
|
1023
992
|
return false;
|
|
1024
|
-
if (!this.
|
|
993
|
+
if (!this.e30_1.equals(tmp0_other_with_cast.e30_1))
|
|
1025
994
|
return false;
|
|
1026
|
-
if (!equals(this.
|
|
995
|
+
if (!equals(this.f30_1, tmp0_other_with_cast.f30_1))
|
|
1027
996
|
return false;
|
|
1028
|
-
if (!equals(this.
|
|
997
|
+
if (!equals(this.g30_1, tmp0_other_with_cast.g30_1))
|
|
1029
998
|
return false;
|
|
1030
|
-
if (!this.
|
|
999
|
+
if (!this.h30_1.equals(tmp0_other_with_cast.h30_1))
|
|
1031
1000
|
return false;
|
|
1032
|
-
if (!equals(this.
|
|
1001
|
+
if (!equals(this.i30_1, tmp0_other_with_cast.i30_1))
|
|
1033
1002
|
return false;
|
|
1034
|
-
if (!equals(this.
|
|
1003
|
+
if (!equals(this.j30_1, tmp0_other_with_cast.j30_1))
|
|
1035
1004
|
return false;
|
|
1036
|
-
if (!this.
|
|
1005
|
+
if (!this.k30_1.equals(tmp0_other_with_cast.k30_1))
|
|
1037
1006
|
return false;
|
|
1038
|
-
if (!equals(this.
|
|
1007
|
+
if (!equals(this.l30_1, tmp0_other_with_cast.l30_1))
|
|
1039
1008
|
return false;
|
|
1040
|
-
if (!this.
|
|
1009
|
+
if (!this.m30_1.equals(tmp0_other_with_cast.m30_1))
|
|
1041
1010
|
return false;
|
|
1042
|
-
if (!equals(this.
|
|
1011
|
+
if (!equals(this.n30_1, tmp0_other_with_cast.n30_1))
|
|
1043
1012
|
return false;
|
|
1044
|
-
if (!equals(this.
|
|
1013
|
+
if (!equals(this.o30_1, tmp0_other_with_cast.o30_1))
|
|
1045
1014
|
return false;
|
|
1046
|
-
if (!equals(this.
|
|
1015
|
+
if (!equals(this.p30_1, tmp0_other_with_cast.p30_1))
|
|
1047
1016
|
return false;
|
|
1048
|
-
if (!this.
|
|
1017
|
+
if (!this.q30_1.equals(tmp0_other_with_cast.q30_1))
|
|
1049
1018
|
return false;
|
|
1050
|
-
if (!this.
|
|
1019
|
+
if (!this.r30_1.equals(tmp0_other_with_cast.r30_1))
|
|
1051
1020
|
return false;
|
|
1052
|
-
if (!equals(this.
|
|
1021
|
+
if (!equals(this.s30_1, tmp0_other_with_cast.s30_1))
|
|
1053
1022
|
return false;
|
|
1054
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.t30_1, tmp0_other_with_cast.t30_1))
|
|
1055
1024
|
return false;
|
|
1056
|
-
if (!(this.
|
|
1025
|
+
if (!(this.u30_1 === tmp0_other_with_cast.u30_1))
|
|
1057
1026
|
return false;
|
|
1058
|
-
if (!this.
|
|
1027
|
+
if (!this.v30_1.equals(tmp0_other_with_cast.v30_1))
|
|
1059
1028
|
return false;
|
|
1060
|
-
if (!equals(this.
|
|
1029
|
+
if (!equals(this.w30_1, tmp0_other_with_cast.w30_1))
|
|
1061
1030
|
return false;
|
|
1062
1031
|
return true;
|
|
1063
1032
|
};
|
|
1064
1033
|
function currentGoal$factory() {
|
|
1065
1034
|
return getPropertyCallableRef('currentGoal', 1, KProperty1, function (receiver) {
|
|
1066
|
-
return receiver.
|
|
1035
|
+
return receiver.p33();
|
|
1067
1036
|
}, null);
|
|
1068
1037
|
}
|
|
1069
1038
|
function interestingVariables$factory() {
|
|
@@ -1073,17 +1042,17 @@
|
|
|
1073
1042
|
}
|
|
1074
1043
|
function logicStackTrace$factory() {
|
|
1075
1044
|
return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
|
|
1076
|
-
return receiver.
|
|
1045
|
+
return receiver.h1v();
|
|
1077
1046
|
}, null);
|
|
1078
1047
|
}
|
|
1079
1048
|
function ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1080
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1081
|
-
libraries = libraries === VOID ?
|
|
1082
|
-
flags = flags === VOID ?
|
|
1083
|
-
initialStaticKb = initialStaticKb === VOID ?
|
|
1084
|
-
initialDynamicKb = initialDynamicKb === VOID ?
|
|
1085
|
-
inputChannels = inputChannels === VOID ?
|
|
1086
|
-
outputChannels = outputChannels === VOID ?
|
|
1049
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
1050
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1051
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1052
|
+
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
1053
|
+
initialDynamicKb = initialDynamicKb === VOID ? Companion_instance_1.empty(unificator) : initialDynamicKb;
|
|
1054
|
+
inputChannels = inputChannels === VOID ? Companion_instance_4.fromStandard() : inputChannels;
|
|
1055
|
+
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
1087
1056
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
1088
1057
|
AbstractClassicSolver.call($this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
1089
1058
|
ClassicSolver.call($this);
|
|
@@ -1093,15 +1062,15 @@
|
|
|
1093
1062
|
return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1094
1063
|
}
|
|
1095
1064
|
function ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1096
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1097
|
-
libraries = libraries === VOID ?
|
|
1098
|
-
flags = flags === VOID ?
|
|
1099
|
-
staticKb = staticKb === VOID ?
|
|
1100
|
-
dynamicKb = dynamicKb === VOID ?
|
|
1101
|
-
stdIn = stdIn === VOID ?
|
|
1102
|
-
stdOut = stdOut === VOID ?
|
|
1103
|
-
stdErr = stdErr === VOID ?
|
|
1104
|
-
warnings = warnings === VOID ?
|
|
1065
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
1066
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1067
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1068
|
+
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
1069
|
+
dynamicKb = dynamicKb === VOID ? Companion_instance_1.empty(unificator) : dynamicKb;
|
|
1070
|
+
stdIn = stdIn === VOID ? Companion_instance_2.stdIn() : stdIn;
|
|
1071
|
+
stdOut = stdOut === VOID ? Companion_instance_3.stdOut() : stdOut;
|
|
1072
|
+
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
1073
|
+
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
1105
1074
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
1106
1075
|
AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1107
1076
|
ClassicSolver.call($this);
|
|
@@ -1110,52 +1079,49 @@
|
|
|
1110
1079
|
function ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1111
1080
|
return ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1112
1081
|
}
|
|
1113
|
-
protoOf(ClassicSolver).
|
|
1114
|
-
return
|
|
1082
|
+
protoOf(ClassicSolver).d31 = function (initialState, onStateTransition) {
|
|
1083
|
+
return Companion_instance_15.w33(initialState, onStateTransition);
|
|
1115
1084
|
};
|
|
1116
|
-
protoOf(ClassicSolver).
|
|
1085
|
+
protoOf(ClassicSolver).b1w = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1117
1086
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1118
1087
|
};
|
|
1119
|
-
protoOf(ClassicSolver).
|
|
1088
|
+
protoOf(ClassicSolver).u1s = function () {
|
|
1120
1089
|
return this.copy();
|
|
1121
1090
|
};
|
|
1122
1091
|
protoOf(ClassicSolver).clone = function () {
|
|
1123
|
-
return this.
|
|
1092
|
+
return this.u1s();
|
|
1124
1093
|
};
|
|
1125
1094
|
function ClassicSolver() {
|
|
1126
1095
|
}
|
|
1127
1096
|
function ClassicSolverFactory() {
|
|
1128
|
-
ClassicSolverFactory_instance = this;
|
|
1129
1097
|
}
|
|
1130
|
-
protoOf(ClassicSolverFactory).
|
|
1098
|
+
protoOf(ClassicSolverFactory).k1y = function () {
|
|
1131
1099
|
return DefaultBuiltins_getInstance();
|
|
1132
1100
|
};
|
|
1133
|
-
protoOf(ClassicSolverFactory).
|
|
1101
|
+
protoOf(ClassicSolverFactory).v1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1134
1102
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1135
1103
|
};
|
|
1136
|
-
protoOf(ClassicSolverFactory).
|
|
1104
|
+
protoOf(ClassicSolverFactory).b1z = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1137
1105
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1138
1106
|
};
|
|
1139
|
-
protoOf(ClassicSolverFactory).
|
|
1107
|
+
protoOf(ClassicSolverFactory).d1z = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1140
1108
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1141
1109
|
};
|
|
1142
|
-
protoOf(ClassicSolverFactory).
|
|
1110
|
+
protoOf(ClassicSolverFactory).f1z = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1143
1111
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1144
1112
|
};
|
|
1145
1113
|
var ClassicSolverFactory_instance;
|
|
1146
1114
|
function ClassicSolverFactory_getInstance() {
|
|
1147
|
-
if (ClassicSolverFactory_instance == null)
|
|
1148
|
-
new ClassicSolverFactory();
|
|
1149
1115
|
return ClassicSolverFactory_instance;
|
|
1150
1116
|
}
|
|
1151
1117
|
function MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1152
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1153
|
-
libraries = libraries === VOID ?
|
|
1154
|
-
flags = flags === VOID ?
|
|
1155
|
-
staticKb = staticKb === VOID ?
|
|
1156
|
-
dynamicKb = dynamicKb === VOID ?
|
|
1157
|
-
inputChannels = inputChannels === VOID ?
|
|
1158
|
-
outputChannels = outputChannels === VOID ?
|
|
1118
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
1119
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1120
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1121
|
+
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
1122
|
+
dynamicKb = dynamicKb === VOID ? Companion_instance_1.empty(unificator) : dynamicKb;
|
|
1123
|
+
inputChannels = inputChannels === VOID ? Companion_instance_4.fromStandard() : inputChannels;
|
|
1124
|
+
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
1159
1125
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
1160
1126
|
ClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this);
|
|
1161
1127
|
MutableClassicSolver.call($this);
|
|
@@ -1165,15 +1131,15 @@
|
|
|
1165
1131
|
return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutableClassicSolver)));
|
|
1166
1132
|
}
|
|
1167
1133
|
function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1168
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1169
|
-
libraries = libraries === VOID ?
|
|
1170
|
-
flags = flags === VOID ?
|
|
1171
|
-
staticKb = staticKb === VOID ?
|
|
1172
|
-
dynamicKb = dynamicKb === VOID ?
|
|
1173
|
-
stdIn = stdIn === VOID ?
|
|
1174
|
-
stdOut = stdOut === VOID ?
|
|
1175
|
-
stdErr = stdErr === VOID ?
|
|
1176
|
-
warnings = warnings === VOID ?
|
|
1134
|
+
unificator = unificator === VOID ? Companion_getInstance().y1k() : unificator;
|
|
1135
|
+
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1136
|
+
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1137
|
+
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
1138
|
+
dynamicKb = dynamicKb === VOID ? Companion_instance_1.empty(unificator) : dynamicKb;
|
|
1139
|
+
stdIn = stdIn === VOID ? Companion_instance_2.stdIn() : stdIn;
|
|
1140
|
+
stdOut = stdOut === VOID ? Companion_instance_3.stdOut() : stdOut;
|
|
1141
|
+
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
1142
|
+
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
1177
1143
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
1178
1144
|
ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1179
1145
|
MutableClassicSolver.call($this);
|
|
@@ -1184,275 +1150,271 @@
|
|
|
1184
1150
|
}
|
|
1185
1151
|
function MutableClassicSolver$loadLibrary$lambda($library) {
|
|
1186
1152
|
return function ($this$updateContext) {
|
|
1187
|
-
var newRuntime = $this$updateContext.
|
|
1188
|
-
return $this$updateContext.
|
|
1153
|
+
var newRuntime = $this$updateContext.d30_1.plusLibrary($library);
|
|
1154
|
+
return $this$updateContext.s31(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.h30_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
1189
1155
|
};
|
|
1190
1156
|
}
|
|
1191
1157
|
function MutableClassicSolver$unloadLibrary$lambda($library) {
|
|
1192
1158
|
return function ($this$updateContext) {
|
|
1193
|
-
var newRuntime = $this$updateContext.
|
|
1194
|
-
return $this$updateContext.
|
|
1159
|
+
var newRuntime = $this$updateContext.d30_1.plusLibrary($library);
|
|
1160
|
+
return $this$updateContext.s31(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.f30_1, $this$updateContext.g30_1])));
|
|
1195
1161
|
};
|
|
1196
1162
|
}
|
|
1197
1163
|
function MutableClassicSolver$setRuntime$lambda($libraries) {
|
|
1198
1164
|
return function ($this$updateContext) {
|
|
1199
|
-
return $this$updateContext.
|
|
1165
|
+
return $this$updateContext.s31(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.f30_1, $this$updateContext.g30_1])));
|
|
1200
1166
|
};
|
|
1201
1167
|
}
|
|
1202
1168
|
function MutableClassicSolver$resetStaticKb$lambda($this$updateContext) {
|
|
1203
|
-
return $this$updateContext.
|
|
1169
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, Companion_instance_0.empty($this$updateContext.c30_1), VOID, toOperatorSet(getAllOperators($this$updateContext.d30_1, [$this$updateContext.g30_1])));
|
|
1204
1170
|
}
|
|
1205
1171
|
function MutableClassicSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
1206
|
-
return $this$updateContext.
|
|
1172
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, Companion_instance_1.empty($this$updateContext.c30_1), toOperatorSet(getAllOperators($this$updateContext.d30_1, [$this$updateContext.f30_1])));
|
|
1207
1173
|
}
|
|
1208
1174
|
function MutableClassicSolver$assertA$lambda($clause) {
|
|
1209
1175
|
return function ($this$updateContext) {
|
|
1210
|
-
return $this$updateContext.
|
|
1176
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g30_1.k1s($clause), $this$updateContext.h30_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1211
1177
|
};
|
|
1212
1178
|
}
|
|
1213
1179
|
function MutableClassicSolver$assertA$lambda_0($fact) {
|
|
1214
1180
|
return function ($this$updateContext) {
|
|
1215
|
-
return $this$updateContext.
|
|
1181
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g30_1.j1t($fact));
|
|
1216
1182
|
};
|
|
1217
1183
|
}
|
|
1218
1184
|
function MutableClassicSolver$assertZ$lambda($clause) {
|
|
1219
1185
|
return function ($this$updateContext) {
|
|
1220
|
-
return $this$updateContext.
|
|
1186
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g30_1.o1s($clause), $this$updateContext.h30_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1221
1187
|
};
|
|
1222
1188
|
}
|
|
1223
1189
|
function MutableClassicSolver$assertZ$lambda_0($fact) {
|
|
1224
1190
|
return function ($this$updateContext) {
|
|
1225
|
-
return $this$updateContext.
|
|
1191
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g30_1.k1t($fact));
|
|
1226
1192
|
};
|
|
1227
1193
|
}
|
|
1228
1194
|
function MutableClassicSolver$retract$lambda($result, $clause) {
|
|
1229
1195
|
return function ($this$updateContext) {
|
|
1230
|
-
return $this$updateContext.
|
|
1196
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $result.c1s().toMutableTheory(), $this$updateContext.h30_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1231
1197
|
};
|
|
1232
1198
|
}
|
|
1233
1199
|
function MutableClassicSolver$retract$lambda_0($result) {
|
|
1234
1200
|
return function ($this$updateContext) {
|
|
1235
|
-
return $this$updateContext.
|
|
1201
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $result.c1s().toMutableTheory());
|
|
1236
1202
|
};
|
|
1237
1203
|
}
|
|
1238
1204
|
function MutableClassicSolver$retractAll$lambda($result) {
|
|
1239
1205
|
return function ($this$updateContext) {
|
|
1240
|
-
return $this$updateContext.
|
|
1206
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $result.c1s().toMutableTheory(), $this$updateContext.h30_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.c1s()))));
|
|
1241
1207
|
};
|
|
1242
1208
|
}
|
|
1243
1209
|
function MutableClassicSolver$retractAll$lambda_0($result) {
|
|
1244
1210
|
return function ($this$updateContext) {
|
|
1245
|
-
return $this$updateContext.
|
|
1211
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, $result.c1s().toMutableTheory());
|
|
1246
1212
|
};
|
|
1247
1213
|
}
|
|
1248
1214
|
function MutableClassicSolver$setFlag$lambda($name, $value) {
|
|
1249
1215
|
return function ($this$updateContext) {
|
|
1250
|
-
return $this$updateContext.
|
|
1216
|
+
return $this$updateContext.s31(VOID, VOID, VOID, $this$updateContext.e30_1.set($name, $value));
|
|
1251
1217
|
};
|
|
1252
1218
|
}
|
|
1253
1219
|
function MutableClassicSolver$setFlag$lambda_0($flag) {
|
|
1254
1220
|
return function ($this$updateContext) {
|
|
1255
|
-
return $this$updateContext.
|
|
1221
|
+
return $this$updateContext.s31(VOID, VOID, VOID, $this$updateContext.e30_1.plusPair($flag));
|
|
1256
1222
|
};
|
|
1257
1223
|
}
|
|
1258
1224
|
function MutableClassicSolver$setFlag$lambda_1($flag) {
|
|
1259
1225
|
return function ($this$updateContext) {
|
|
1260
|
-
return $this$updateContext.
|
|
1226
|
+
return $this$updateContext.s31(VOID, VOID, VOID, $this$updateContext.e30_1.plusNotable($flag));
|
|
1261
1227
|
};
|
|
1262
1228
|
}
|
|
1263
1229
|
function MutableClassicSolver$setStandardInput$lambda($stdIn) {
|
|
1264
1230
|
return function ($this$updateContext) {
|
|
1265
|
-
|
|
1266
|
-
return $this$updateContext.t2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.j2v_1.plus(to('stdin', $stdIn)));
|
|
1231
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.i30_1.plus(to('stdin', $stdIn)));
|
|
1267
1232
|
};
|
|
1268
1233
|
}
|
|
1269
1234
|
function MutableClassicSolver$setStandardError$lambda($stdErr) {
|
|
1270
1235
|
return function ($this$updateContext) {
|
|
1271
|
-
|
|
1272
|
-
return $this$updateContext.t2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.k2v_1.plus(to('stderr', $stdErr)));
|
|
1236
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.j30_1.plus(to('stderr', $stdErr)));
|
|
1273
1237
|
};
|
|
1274
1238
|
}
|
|
1275
1239
|
function MutableClassicSolver$setStandardOutput$lambda($stdOut) {
|
|
1276
1240
|
return function ($this$updateContext) {
|
|
1277
|
-
|
|
1278
|
-
return $this$updateContext.t2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.k2v_1.plus(to('stdout', $stdOut)));
|
|
1241
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.j30_1.plus(to('stdout', $stdOut)));
|
|
1279
1242
|
};
|
|
1280
1243
|
}
|
|
1281
1244
|
function MutableClassicSolver$setWarnings$lambda($warnings) {
|
|
1282
1245
|
return function ($this$updateContext) {
|
|
1283
|
-
return $this$updateContext.
|
|
1246
|
+
return $this$updateContext.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_5.u1z($this$updateContext.j30_1, $warnings));
|
|
1284
1247
|
};
|
|
1285
1248
|
}
|
|
1286
|
-
protoOf(MutableClassicSolver).
|
|
1287
|
-
this.
|
|
1249
|
+
protoOf(MutableClassicSolver).y33 = function (library) {
|
|
1250
|
+
this.p2b(MutableClassicSolver$loadLibrary$lambda(library));
|
|
1288
1251
|
};
|
|
1289
1252
|
protoOf(MutableClassicSolver).loadLibrary = function (library) {
|
|
1290
|
-
return this.
|
|
1253
|
+
return this.y33(library);
|
|
1291
1254
|
};
|
|
1292
|
-
protoOf(MutableClassicSolver).
|
|
1293
|
-
this.
|
|
1255
|
+
protoOf(MutableClassicSolver).z33 = function (library) {
|
|
1256
|
+
this.p2b(MutableClassicSolver$unloadLibrary$lambda(library));
|
|
1294
1257
|
};
|
|
1295
1258
|
protoOf(MutableClassicSolver).unloadLibrary = function (library) {
|
|
1296
|
-
return this.
|
|
1259
|
+
return this.z33(library);
|
|
1297
1260
|
};
|
|
1298
|
-
protoOf(MutableClassicSolver).
|
|
1299
|
-
this.
|
|
1261
|
+
protoOf(MutableClassicSolver).a34 = function (libraries) {
|
|
1262
|
+
this.p2b(MutableClassicSolver$setRuntime$lambda(libraries));
|
|
1300
1263
|
};
|
|
1301
1264
|
protoOf(MutableClassicSolver).setLibraries = function (libraries) {
|
|
1302
|
-
return this.
|
|
1265
|
+
return this.a34(libraries);
|
|
1303
1266
|
};
|
|
1304
|
-
protoOf(MutableClassicSolver).
|
|
1305
|
-
this.
|
|
1267
|
+
protoOf(MutableClassicSolver).b34 = function (theory) {
|
|
1268
|
+
this.t2b(theory, VOID, false);
|
|
1306
1269
|
};
|
|
1307
1270
|
protoOf(MutableClassicSolver).loadStaticKb = function (theory) {
|
|
1308
|
-
return this.
|
|
1271
|
+
return this.b34(theory);
|
|
1309
1272
|
};
|
|
1310
|
-
protoOf(MutableClassicSolver).
|
|
1311
|
-
this.
|
|
1273
|
+
protoOf(MutableClassicSolver).c34 = function (theory) {
|
|
1274
|
+
this.t2b(theory);
|
|
1312
1275
|
};
|
|
1313
1276
|
protoOf(MutableClassicSolver).appendStaticKb = function (theory) {
|
|
1314
|
-
return this.
|
|
1277
|
+
return this.c34(theory);
|
|
1315
1278
|
};
|
|
1316
|
-
protoOf(MutableClassicSolver).
|
|
1317
|
-
this.
|
|
1279
|
+
protoOf(MutableClassicSolver).d34 = function () {
|
|
1280
|
+
this.p2b(MutableClassicSolver$resetStaticKb$lambda);
|
|
1318
1281
|
};
|
|
1319
1282
|
protoOf(MutableClassicSolver).resetStaticKb = function () {
|
|
1320
|
-
return this.
|
|
1283
|
+
return this.d34();
|
|
1321
1284
|
};
|
|
1322
|
-
protoOf(MutableClassicSolver).
|
|
1323
|
-
this.
|
|
1285
|
+
protoOf(MutableClassicSolver).e34 = function (theory) {
|
|
1286
|
+
this.t2b(VOID, theory, VOID, false);
|
|
1324
1287
|
};
|
|
1325
1288
|
protoOf(MutableClassicSolver).loadDynamicKb = function (theory) {
|
|
1326
|
-
return this.
|
|
1289
|
+
return this.e34(theory);
|
|
1327
1290
|
};
|
|
1328
|
-
protoOf(MutableClassicSolver).
|
|
1329
|
-
this.
|
|
1291
|
+
protoOf(MutableClassicSolver).f34 = function (theory) {
|
|
1292
|
+
this.t2b(VOID, theory);
|
|
1330
1293
|
};
|
|
1331
1294
|
protoOf(MutableClassicSolver).appendDynamicKb = function (theory) {
|
|
1332
|
-
return this.
|
|
1295
|
+
return this.f34(theory);
|
|
1333
1296
|
};
|
|
1334
|
-
protoOf(MutableClassicSolver).
|
|
1335
|
-
this.
|
|
1297
|
+
protoOf(MutableClassicSolver).g34 = function () {
|
|
1298
|
+
this.p2b(MutableClassicSolver$resetDynamicKb$lambda);
|
|
1336
1299
|
};
|
|
1337
1300
|
protoOf(MutableClassicSolver).resetDynamicKb = function () {
|
|
1338
|
-
return this.
|
|
1301
|
+
return this.g34();
|
|
1339
1302
|
};
|
|
1340
|
-
protoOf(MutableClassicSolver).
|
|
1341
|
-
this.
|
|
1303
|
+
protoOf(MutableClassicSolver).r1m = function (clause) {
|
|
1304
|
+
this.p2b(MutableClassicSolver$assertA$lambda(clause));
|
|
1342
1305
|
};
|
|
1343
1306
|
protoOf(MutableClassicSolver).assertA = function (clause) {
|
|
1344
|
-
return this.
|
|
1307
|
+
return this.r1m(clause);
|
|
1345
1308
|
};
|
|
1346
|
-
protoOf(MutableClassicSolver).
|
|
1347
|
-
this.
|
|
1309
|
+
protoOf(MutableClassicSolver).h34 = function (fact) {
|
|
1310
|
+
this.p2b(MutableClassicSolver$assertA$lambda_0(fact));
|
|
1348
1311
|
};
|
|
1349
1312
|
protoOf(MutableClassicSolver).assertAFact = function (fact) {
|
|
1350
|
-
return this.
|
|
1313
|
+
return this.h34(fact);
|
|
1351
1314
|
};
|
|
1352
|
-
protoOf(MutableClassicSolver).
|
|
1353
|
-
this.
|
|
1315
|
+
protoOf(MutableClassicSolver).s1l = function (clause) {
|
|
1316
|
+
this.p2b(MutableClassicSolver$assertZ$lambda(clause));
|
|
1354
1317
|
};
|
|
1355
1318
|
protoOf(MutableClassicSolver).assertZ = function (clause) {
|
|
1356
|
-
return this.
|
|
1319
|
+
return this.s1l(clause);
|
|
1357
1320
|
};
|
|
1358
|
-
protoOf(MutableClassicSolver).
|
|
1359
|
-
this.
|
|
1321
|
+
protoOf(MutableClassicSolver).i34 = function (fact) {
|
|
1322
|
+
this.p2b(MutableClassicSolver$assertZ$lambda_0(fact));
|
|
1360
1323
|
};
|
|
1361
1324
|
protoOf(MutableClassicSolver).assertZFact = function (fact) {
|
|
1362
|
-
return this.
|
|
1325
|
+
return this.i34(fact);
|
|
1363
1326
|
};
|
|
1364
|
-
protoOf(MutableClassicSolver).
|
|
1365
|
-
var result = this.
|
|
1366
|
-
this.
|
|
1327
|
+
protoOf(MutableClassicSolver).l1t = function (clause) {
|
|
1328
|
+
var result = this.n1v().retract(clause);
|
|
1329
|
+
this.p2b(MutableClassicSolver$retract$lambda(result, clause));
|
|
1367
1330
|
return result;
|
|
1368
1331
|
};
|
|
1369
1332
|
protoOf(MutableClassicSolver).retract = function (clause) {
|
|
1370
|
-
return this.
|
|
1333
|
+
return this.l1t(clause);
|
|
1371
1334
|
};
|
|
1372
|
-
protoOf(MutableClassicSolver).
|
|
1373
|
-
var result = this.
|
|
1374
|
-
this.
|
|
1335
|
+
protoOf(MutableClassicSolver).m1t = function (fact) {
|
|
1336
|
+
var result = this.n1v().retractByHead(fact);
|
|
1337
|
+
this.p2b(MutableClassicSolver$retract$lambda_0(result));
|
|
1375
1338
|
return result;
|
|
1376
1339
|
};
|
|
1377
1340
|
protoOf(MutableClassicSolver).retractByHead = function (fact) {
|
|
1378
|
-
return this.
|
|
1341
|
+
return this.m1t(fact);
|
|
1379
1342
|
};
|
|
1380
|
-
protoOf(MutableClassicSolver).
|
|
1381
|
-
var result = this.
|
|
1382
|
-
this.
|
|
1343
|
+
protoOf(MutableClassicSolver).x1l = function (clause) {
|
|
1344
|
+
var result = this.n1v().retractAll(clause);
|
|
1345
|
+
this.p2b(MutableClassicSolver$retractAll$lambda(result));
|
|
1383
1346
|
return result;
|
|
1384
1347
|
};
|
|
1385
1348
|
protoOf(MutableClassicSolver).retractAll = function (clause) {
|
|
1386
|
-
return this.
|
|
1349
|
+
return this.x1l(clause);
|
|
1387
1350
|
};
|
|
1388
|
-
protoOf(MutableClassicSolver).
|
|
1389
|
-
var result = this.
|
|
1390
|
-
this.
|
|
1351
|
+
protoOf(MutableClassicSolver).j34 = function (fact) {
|
|
1352
|
+
var result = this.n1v().retractAllByHead(fact);
|
|
1353
|
+
this.p2b(MutableClassicSolver$retractAll$lambda_0(result));
|
|
1391
1354
|
return result;
|
|
1392
1355
|
};
|
|
1393
1356
|
protoOf(MutableClassicSolver).retractAllBeHead = function (fact) {
|
|
1394
|
-
return this.
|
|
1357
|
+
return this.j34(fact);
|
|
1395
1358
|
};
|
|
1396
|
-
protoOf(MutableClassicSolver).
|
|
1397
|
-
this.
|
|
1359
|
+
protoOf(MutableClassicSolver).k34 = function (name, value) {
|
|
1360
|
+
this.p2b(MutableClassicSolver$setFlag$lambda(name, value));
|
|
1398
1361
|
};
|
|
1399
1362
|
protoOf(MutableClassicSolver).setFlag = function (name, value) {
|
|
1400
|
-
return this.
|
|
1363
|
+
return this.k34(name, value);
|
|
1401
1364
|
};
|
|
1402
|
-
protoOf(MutableClassicSolver).
|
|
1403
|
-
this.
|
|
1365
|
+
protoOf(MutableClassicSolver).l34 = function (flag) {
|
|
1366
|
+
this.p2b(MutableClassicSolver$setFlag$lambda_0(flag));
|
|
1404
1367
|
};
|
|
1405
1368
|
protoOf(MutableClassicSolver).setFlagPair = function (flag) {
|
|
1406
|
-
return this.
|
|
1369
|
+
return this.l34(flag);
|
|
1407
1370
|
};
|
|
1408
|
-
protoOf(MutableClassicSolver).
|
|
1409
|
-
this.
|
|
1371
|
+
protoOf(MutableClassicSolver).m34 = function (flag) {
|
|
1372
|
+
this.p2b(MutableClassicSolver$setFlag$lambda_1(flag));
|
|
1410
1373
|
};
|
|
1411
1374
|
protoOf(MutableClassicSolver).setFlagNotable = function (flag) {
|
|
1412
|
-
return this.
|
|
1375
|
+
return this.m34(flag);
|
|
1413
1376
|
};
|
|
1414
|
-
protoOf(MutableClassicSolver).
|
|
1415
|
-
this.
|
|
1377
|
+
protoOf(MutableClassicSolver).n34 = function (stdIn) {
|
|
1378
|
+
this.p2b(MutableClassicSolver$setStandardInput$lambda(stdIn));
|
|
1416
1379
|
};
|
|
1417
1380
|
protoOf(MutableClassicSolver).setStandardInput = function (stdIn) {
|
|
1418
|
-
return this.
|
|
1381
|
+
return this.n34(stdIn);
|
|
1419
1382
|
};
|
|
1420
|
-
protoOf(MutableClassicSolver).
|
|
1421
|
-
this.
|
|
1383
|
+
protoOf(MutableClassicSolver).o34 = function (stdErr) {
|
|
1384
|
+
this.p2b(MutableClassicSolver$setStandardError$lambda(stdErr));
|
|
1422
1385
|
};
|
|
1423
1386
|
protoOf(MutableClassicSolver).setStandardError = function (stdErr) {
|
|
1424
|
-
return this.
|
|
1387
|
+
return this.o34(stdErr);
|
|
1425
1388
|
};
|
|
1426
|
-
protoOf(MutableClassicSolver).
|
|
1427
|
-
this.
|
|
1389
|
+
protoOf(MutableClassicSolver).p34 = function (stdOut) {
|
|
1390
|
+
this.p2b(MutableClassicSolver$setStandardOutput$lambda(stdOut));
|
|
1428
1391
|
};
|
|
1429
1392
|
protoOf(MutableClassicSolver).setStandardOutput = function (stdOut) {
|
|
1430
|
-
return this.
|
|
1393
|
+
return this.p34(stdOut);
|
|
1431
1394
|
};
|
|
1432
|
-
protoOf(MutableClassicSolver).
|
|
1433
|
-
this.
|
|
1395
|
+
protoOf(MutableClassicSolver).q34 = function (warnings) {
|
|
1396
|
+
this.p2b(MutableClassicSolver$setWarnings$lambda(warnings));
|
|
1434
1397
|
};
|
|
1435
1398
|
protoOf(MutableClassicSolver).setWarnings = function (warnings) {
|
|
1436
|
-
return this.
|
|
1399
|
+
return this.q34(warnings);
|
|
1437
1400
|
};
|
|
1438
|
-
protoOf(MutableClassicSolver).
|
|
1401
|
+
protoOf(MutableClassicSolver).b1w = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1439
1402
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1440
1403
|
};
|
|
1441
|
-
protoOf(MutableClassicSolver).
|
|
1404
|
+
protoOf(MutableClassicSolver).u1s = function () {
|
|
1442
1405
|
return this.copy();
|
|
1443
1406
|
};
|
|
1444
1407
|
protoOf(MutableClassicSolver).clone = function () {
|
|
1445
|
-
return this.
|
|
1408
|
+
return this.u1s();
|
|
1446
1409
|
};
|
|
1447
1410
|
function MutableClassicSolver() {
|
|
1448
1411
|
}
|
|
1449
1412
|
function SolutionIterator$Companion$of$lambda(_anonymous_parameter_0__qggqh8, _anonymous_parameter_1__qggqgd, _anonymous_parameter_2__qggqfi) {
|
|
1450
|
-
return
|
|
1413
|
+
return Unit_instance;
|
|
1451
1414
|
}
|
|
1452
1415
|
function Companion() {
|
|
1453
|
-
Companion_instance = this;
|
|
1454
1416
|
}
|
|
1455
|
-
protoOf(Companion).
|
|
1417
|
+
protoOf(Companion).w33 = function (initialState, onStateTransition) {
|
|
1456
1418
|
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1457
1419
|
};
|
|
1458
1420
|
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
@@ -1463,96 +1425,84 @@
|
|
|
1463
1425
|
tmp = onStateTransition;
|
|
1464
1426
|
}
|
|
1465
1427
|
onStateTransition = tmp;
|
|
1466
|
-
return $super === VOID ? this.
|
|
1428
|
+
return $super === VOID ? this.w33(initialState, onStateTransition) : $super.w33.call(this, initialState, onStateTransition);
|
|
1467
1429
|
};
|
|
1468
|
-
var
|
|
1469
|
-
function
|
|
1470
|
-
|
|
1471
|
-
new Companion();
|
|
1472
|
-
return Companion_instance;
|
|
1430
|
+
var Companion_instance_15;
|
|
1431
|
+
function Companion_getInstance_6() {
|
|
1432
|
+
return Companion_instance_15;
|
|
1473
1433
|
}
|
|
1474
1434
|
function AbstractEndState(solution, context) {
|
|
1475
1435
|
AbstractState.call(this, context);
|
|
1476
|
-
this.
|
|
1477
|
-
this.
|
|
1436
|
+
this.t34_1 = solution;
|
|
1437
|
+
this.u34_1 = context;
|
|
1478
1438
|
}
|
|
1479
|
-
protoOf(AbstractEndState).
|
|
1480
|
-
return this.
|
|
1439
|
+
protoOf(AbstractEndState).q2i = function () {
|
|
1440
|
+
return this.t34_1;
|
|
1481
1441
|
};
|
|
1482
|
-
protoOf(AbstractEndState).
|
|
1483
|
-
return this.
|
|
1442
|
+
protoOf(AbstractEndState).mb = function () {
|
|
1443
|
+
return this.u34_1;
|
|
1484
1444
|
};
|
|
1485
|
-
protoOf(AbstractEndState).
|
|
1445
|
+
protoOf(AbstractEndState).v34 = function () {
|
|
1486
1446
|
throw NoSuchElementException_init_$Create$();
|
|
1487
1447
|
};
|
|
1488
1448
|
protoOf(AbstractEndState).asEndState = function () {
|
|
1489
|
-
return this.
|
|
1449
|
+
return this.x34();
|
|
1490
1450
|
};
|
|
1491
1451
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1492
1452
|
return function () {
|
|
1493
|
-
return this$0.
|
|
1453
|
+
return this$0.d35();
|
|
1494
1454
|
};
|
|
1495
1455
|
}
|
|
1496
1456
|
function AbstractState(context) {
|
|
1497
|
-
this.
|
|
1457
|
+
this.y34_1 = context;
|
|
1498
1458
|
var tmp = this;
|
|
1499
|
-
tmp.
|
|
1459
|
+
tmp.z34_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1500
1460
|
}
|
|
1501
|
-
protoOf(AbstractState).
|
|
1502
|
-
return this.
|
|
1461
|
+
protoOf(AbstractState).mb = function () {
|
|
1462
|
+
return this.y34_1;
|
|
1503
1463
|
};
|
|
1504
|
-
protoOf(AbstractState).
|
|
1505
|
-
var tmp$ret$0;
|
|
1464
|
+
protoOf(AbstractState).b35 = function () {
|
|
1506
1465
|
// Inline function 'kotlin.getValue' call
|
|
1507
|
-
var
|
|
1508
|
-
|
|
1509
|
-
return
|
|
1466
|
+
var this_0 = this.z34_1;
|
|
1467
|
+
executionTime$factory();
|
|
1468
|
+
return this_0.r2();
|
|
1510
1469
|
};
|
|
1511
|
-
protoOf(AbstractState).
|
|
1512
|
-
return this.
|
|
1470
|
+
protoOf(AbstractState).c35 = function () {
|
|
1471
|
+
return this.b35().ma(this.mb().q30_1).m6(this.mb().r30_1) > 0;
|
|
1513
1472
|
};
|
|
1514
|
-
protoOf(AbstractState).
|
|
1473
|
+
protoOf(AbstractState).u = function () {
|
|
1515
1474
|
var tmp;
|
|
1516
|
-
if (this.
|
|
1517
|
-
var tmp0_exceededDuration = this.
|
|
1518
|
-
var tmp1_context = this.
|
|
1519
|
-
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.
|
|
1475
|
+
if (this.c35()) {
|
|
1476
|
+
var tmp0_exceededDuration = this.mb().r30_1;
|
|
1477
|
+
var tmp1_context = this.mb();
|
|
1478
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.mb().s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35()));
|
|
1520
1479
|
} else {
|
|
1521
|
-
tmp = this.
|
|
1480
|
+
tmp = this.v34();
|
|
1522
1481
|
}
|
|
1523
1482
|
return tmp;
|
|
1524
1483
|
};
|
|
1525
1484
|
protoOf(AbstractState).next = function () {
|
|
1526
|
-
return this.
|
|
1485
|
+
return this.u();
|
|
1527
1486
|
};
|
|
1528
|
-
protoOf(AbstractState).
|
|
1487
|
+
protoOf(AbstractState).d35 = function () {
|
|
1529
1488
|
return currentTimeInstant();
|
|
1530
1489
|
};
|
|
1531
|
-
protoOf(AbstractState).
|
|
1532
|
-
var tmp$ret$0;
|
|
1490
|
+
protoOf(AbstractState).e35 = function () {
|
|
1533
1491
|
// Inline function 'kotlin.Long.plus' call
|
|
1534
|
-
|
|
1535
|
-
tmp$ret$0 = tmp0_plus.sf(new Long(1, 0));
|
|
1536
|
-
return tmp$ret$0;
|
|
1492
|
+
return this.mb().v30_1.la(toLong(1));
|
|
1537
1493
|
};
|
|
1538
|
-
protoOf(AbstractState).
|
|
1494
|
+
protoOf(AbstractState).f35 = function (_this__u8e3s4) {
|
|
1539
1495
|
var tmp$ret$2;
|
|
1540
1496
|
$l$block: {
|
|
1541
1497
|
// Inline function 'kotlin.sequences.first' call
|
|
1542
|
-
var
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
var element = tmp0_iterator.n();
|
|
1546
|
-
var tmp$ret$1;
|
|
1498
|
+
var tmp0_iterator = _this__u8e3s4.x30_1.r();
|
|
1499
|
+
while (tmp0_iterator.s()) {
|
|
1500
|
+
var element = tmp0_iterator.u();
|
|
1547
1501
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.AbstractState.skipThrow.<anonymous>' call
|
|
1548
|
-
var tmp0_safe_receiver = element.
|
|
1549
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1550
|
-
var tmp$ret$0;
|
|
1502
|
+
var tmp0_safe_receiver = element.b30_1;
|
|
1503
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zu();
|
|
1551
1504
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1552
|
-
|
|
1553
|
-
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
1554
|
-
tmp$ret$1 = !(tmp === tmp$ret$0);
|
|
1555
|
-
if (tmp$ret$1) {
|
|
1505
|
+
if (!(tmp === Throw_getInstance().signature.name)) {
|
|
1556
1506
|
tmp$ret$2 = element;
|
|
1557
1507
|
break $l$block;
|
|
1558
1508
|
}
|
|
@@ -1563,7 +1513,7 @@
|
|
|
1563
1513
|
};
|
|
1564
1514
|
function executionTime$factory() {
|
|
1565
1515
|
return getPropertyCallableRef('executionTime', 1, KProperty1, function (receiver) {
|
|
1566
|
-
return receiver.
|
|
1516
|
+
return receiver.b35();
|
|
1567
1517
|
}, null);
|
|
1568
1518
|
}
|
|
1569
1519
|
function EndState() {
|
|
@@ -1572,35 +1522,28 @@
|
|
|
1572
1522
|
}
|
|
1573
1523
|
function StateBacktracking(context) {
|
|
1574
1524
|
AbstractState.call(this, context);
|
|
1575
|
-
this.
|
|
1525
|
+
this.i35_1 = context;
|
|
1576
1526
|
}
|
|
1577
|
-
protoOf(StateBacktracking).
|
|
1578
|
-
return this.
|
|
1527
|
+
protoOf(StateBacktracking).mb = function () {
|
|
1528
|
+
return this.i35_1;
|
|
1579
1529
|
};
|
|
1580
|
-
protoOf(StateBacktracking).
|
|
1581
|
-
var choicePoints = this.
|
|
1530
|
+
protoOf(StateBacktracking).v34 = function () {
|
|
1531
|
+
var choicePoints = this.i35_1.s30_1;
|
|
1582
1532
|
var tmp;
|
|
1583
|
-
var tmp$ret$1;
|
|
1584
1533
|
// Inline function 'kotlin.let' call
|
|
1585
1534
|
// Inline function 'kotlin.contracts.contract' call
|
|
1586
|
-
var tmp$ret$0;
|
|
1587
1535
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateBacktracking.computeNext.<anonymous>' call
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
if (tmp$ret$1) {
|
|
1591
|
-
tmp = new StateEnd(Companion_getInstance_14().no(this.j30_1.n2v_1), this.j30_1.t2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.f30()));
|
|
1536
|
+
if (choicePoints === null ? true : !choicePoints.z31()) {
|
|
1537
|
+
tmp = new StateEnd(Companion_instance_8.no(this.i35_1.m30_1), this.i35_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35()));
|
|
1592
1538
|
} else {
|
|
1593
1539
|
var tmp$ret$3;
|
|
1594
1540
|
$l$block: {
|
|
1595
1541
|
// Inline function 'kotlin.sequences.first' call
|
|
1596
|
-
var
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
var element = tmp0_iterator.n();
|
|
1600
|
-
var tmp$ret$2;
|
|
1542
|
+
var tmp0_iterator = ensureNotNull(choicePoints).a32().r();
|
|
1543
|
+
while (tmp0_iterator.s()) {
|
|
1544
|
+
var element = tmp0_iterator.u();
|
|
1601
1545
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateBacktracking.computeNext.<anonymous>' call
|
|
1602
|
-
|
|
1603
|
-
if (tmp$ret$2) {
|
|
1546
|
+
if (element.m31().yp()) {
|
|
1604
1547
|
tmp$ret$3 = element;
|
|
1605
1548
|
break $l$block;
|
|
1606
1549
|
}
|
|
@@ -1608,9 +1551,9 @@
|
|
|
1608
1551
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1609
1552
|
}
|
|
1610
1553
|
var choicePointContext = tmp$ret$3;
|
|
1611
|
-
var nextContext = choicePointContext.
|
|
1554
|
+
var nextContext = choicePointContext.r31(this.i35_1);
|
|
1612
1555
|
var tmp_0;
|
|
1613
|
-
if (nextContext.
|
|
1556
|
+
if (nextContext.p30_1.yp()) {
|
|
1614
1557
|
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1615
1558
|
} else {
|
|
1616
1559
|
tmp_0 = new StateRuleExecution(nextContext);
|
|
@@ -1619,17 +1562,17 @@
|
|
|
1619
1562
|
}
|
|
1620
1563
|
return tmp;
|
|
1621
1564
|
};
|
|
1622
|
-
protoOf(StateBacktracking).
|
|
1623
|
-
return this.
|
|
1565
|
+
protoOf(StateBacktracking).a35 = function (context) {
|
|
1566
|
+
return this.j35(context);
|
|
1624
1567
|
};
|
|
1625
|
-
protoOf(StateBacktracking).
|
|
1568
|
+
protoOf(StateBacktracking).j35 = function (context) {
|
|
1626
1569
|
return new StateBacktracking(context);
|
|
1627
1570
|
};
|
|
1628
1571
|
protoOf(StateBacktracking).toString = function () {
|
|
1629
|
-
return 'StateBacktracking(context=' + this.
|
|
1572
|
+
return 'StateBacktracking(context=' + this.i35_1 + ')';
|
|
1630
1573
|
};
|
|
1631
1574
|
protoOf(StateBacktracking).hashCode = function () {
|
|
1632
|
-
return this.
|
|
1575
|
+
return this.i35_1.hashCode();
|
|
1633
1576
|
};
|
|
1634
1577
|
protoOf(StateBacktracking).equals = function (other) {
|
|
1635
1578
|
if (this === other)
|
|
@@ -1637,48 +1580,48 @@
|
|
|
1637
1580
|
if (!(other instanceof StateBacktracking))
|
|
1638
1581
|
return false;
|
|
1639
1582
|
var tmp0_other_with_cast = other instanceof StateBacktracking ? other : THROW_CCE();
|
|
1640
|
-
if (!this.
|
|
1583
|
+
if (!this.i35_1.equals(tmp0_other_with_cast.i35_1))
|
|
1641
1584
|
return false;
|
|
1642
1585
|
return true;
|
|
1643
1586
|
};
|
|
1644
1587
|
function StateEnd(solution, context) {
|
|
1645
1588
|
AbstractEndState.call(this, solution, context);
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1589
|
+
this.o35_1 = solution;
|
|
1590
|
+
this.p35_1 = context;
|
|
1648
1591
|
}
|
|
1649
|
-
protoOf(StateEnd).
|
|
1650
|
-
return this.
|
|
1592
|
+
protoOf(StateEnd).q2i = function () {
|
|
1593
|
+
return this.o35_1;
|
|
1651
1594
|
};
|
|
1652
|
-
protoOf(StateEnd).
|
|
1653
|
-
return this.
|
|
1595
|
+
protoOf(StateEnd).mb = function () {
|
|
1596
|
+
return this.p35_1;
|
|
1654
1597
|
};
|
|
1655
|
-
protoOf(StateEnd).
|
|
1598
|
+
protoOf(StateEnd).c35 = function () {
|
|
1656
1599
|
return false;
|
|
1657
1600
|
};
|
|
1658
|
-
protoOf(StateEnd).
|
|
1601
|
+
protoOf(StateEnd).v34 = function () {
|
|
1659
1602
|
var tmp;
|
|
1660
|
-
if (this.
|
|
1661
|
-
var tmp0_$this = this.
|
|
1662
|
-
var tmp1_step = this.
|
|
1663
|
-
var tmp2_startTime = this.
|
|
1664
|
-
tmp = new StateBacktracking(tmp0_$this.
|
|
1603
|
+
if (this.p35_1.z31()) {
|
|
1604
|
+
var tmp0_$this = this.p35_1;
|
|
1605
|
+
var tmp1_step = this.e35();
|
|
1606
|
+
var tmp2_startTime = this.d35();
|
|
1607
|
+
tmp = new StateBacktracking(tmp0_$this.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1665
1608
|
} else {
|
|
1666
|
-
tmp = protoOf(AbstractEndState).
|
|
1609
|
+
tmp = protoOf(AbstractEndState).v34.call(this);
|
|
1667
1610
|
}
|
|
1668
1611
|
return tmp;
|
|
1669
1612
|
};
|
|
1670
|
-
protoOf(StateEnd).
|
|
1671
|
-
return this.
|
|
1613
|
+
protoOf(StateEnd).a35 = function (context) {
|
|
1614
|
+
return this.q35(this.o35_1, context);
|
|
1672
1615
|
};
|
|
1673
|
-
protoOf(StateEnd).
|
|
1616
|
+
protoOf(StateEnd).q35 = function (solution, context) {
|
|
1674
1617
|
return new StateEnd(solution, context);
|
|
1675
1618
|
};
|
|
1676
1619
|
protoOf(StateEnd).toString = function () {
|
|
1677
|
-
return 'StateEnd(solution=' + this.
|
|
1620
|
+
return 'StateEnd(solution=' + this.o35_1 + ', context=' + this.p35_1 + ')';
|
|
1678
1621
|
};
|
|
1679
1622
|
protoOf(StateEnd).hashCode = function () {
|
|
1680
|
-
var result = hashCode(this.
|
|
1681
|
-
result = imul(result, 31) + this.
|
|
1623
|
+
var result = hashCode(this.o35_1);
|
|
1624
|
+
result = imul(result, 31) + this.p35_1.hashCode() | 0;
|
|
1682
1625
|
return result;
|
|
1683
1626
|
};
|
|
1684
1627
|
protoOf(StateEnd).equals = function (other) {
|
|
@@ -1687,61 +1630,56 @@
|
|
|
1687
1630
|
if (!(other instanceof StateEnd))
|
|
1688
1631
|
return false;
|
|
1689
1632
|
var tmp0_other_with_cast = other instanceof StateEnd ? other : THROW_CCE();
|
|
1690
|
-
if (!equals(this.
|
|
1633
|
+
if (!equals(this.o35_1, tmp0_other_with_cast.o35_1))
|
|
1691
1634
|
return false;
|
|
1692
|
-
if (!this.
|
|
1635
|
+
if (!this.p35_1.equals(tmp0_other_with_cast.p35_1))
|
|
1693
1636
|
return false;
|
|
1694
1637
|
return true;
|
|
1695
1638
|
};
|
|
1696
1639
|
protoOf(StateEnd).asEndState = function () {
|
|
1697
|
-
return this.
|
|
1640
|
+
return this.x34();
|
|
1698
1641
|
};
|
|
1699
1642
|
function isCatch(_this__u8e3s4, $this) {
|
|
1700
1643
|
var tmp;
|
|
1701
|
-
if (_this__u8e3s4.
|
|
1702
|
-
var tmp_0 = _this__u8e3s4.
|
|
1703
|
-
var tmp$ret$0;
|
|
1644
|
+
if (_this__u8e3s4.tu() === 3) {
|
|
1645
|
+
var tmp_0 = _this__u8e3s4.zu();
|
|
1704
1646
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1705
|
-
|
|
1706
|
-
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
1707
|
-
tmp = tmp_0 === tmp$ret$0;
|
|
1647
|
+
tmp = tmp_0 === Catch_getInstance().signature.name;
|
|
1708
1648
|
} else {
|
|
1709
1649
|
tmp = false;
|
|
1710
1650
|
}
|
|
1711
1651
|
return tmp;
|
|
1712
1652
|
}
|
|
1713
1653
|
function getExceptionContent(_this__u8e3s4, $this) {
|
|
1714
|
-
var tmp0_subject = _this__u8e3s4;
|
|
1715
1654
|
var tmp;
|
|
1716
|
-
if (
|
|
1717
|
-
tmp = _this__u8e3s4.
|
|
1655
|
+
if (_this__u8e3s4 instanceof MessageError) {
|
|
1656
|
+
tmp = _this__u8e3s4.i27();
|
|
1718
1657
|
} else {
|
|
1719
|
-
tmp = _this__u8e3s4.
|
|
1658
|
+
tmp = _this__u8e3s4.k25();
|
|
1720
1659
|
}
|
|
1721
1660
|
return tmp;
|
|
1722
1661
|
}
|
|
1723
1662
|
function toPublicException(_this__u8e3s4, $this) {
|
|
1724
|
-
var tmp0_subject = _this__u8e3s4;
|
|
1725
1663
|
var tmp;
|
|
1726
|
-
if (
|
|
1727
|
-
tmp =
|
|
1664
|
+
if (_this__u8e3s4 instanceof MessageError) {
|
|
1665
|
+
tmp = Companion_instance_9.forUncaughtError(_this__u8e3s4);
|
|
1728
1666
|
} else {
|
|
1729
1667
|
tmp = _this__u8e3s4;
|
|
1730
1668
|
}
|
|
1731
1669
|
return tmp;
|
|
1732
1670
|
}
|
|
1733
1671
|
function _get_finalState__3aigq8($this) {
|
|
1734
|
-
return new StateHalt(toPublicException($this.
|
|
1672
|
+
return new StateHalt(toPublicException($this.t35_1, $this), $this.u35_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
1735
1673
|
}
|
|
1736
1674
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1737
|
-
return new StateException($this.
|
|
1675
|
+
return new StateException($this.t35_1, ensureNotNull($this.u35_1.t30_1).s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
1738
1676
|
}
|
|
1739
1677
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1740
1678
|
var tmp;
|
|
1741
1679
|
if (isCatch(catchGoal, $this)) {
|
|
1742
1680
|
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent(error, $this));
|
|
1743
1681
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1744
|
-
} else if ($this.
|
|
1682
|
+
} else if ($this.u35_1.o33()) {
|
|
1745
1683
|
tmp = _get_finalState__3aigq8($this);
|
|
1746
1684
|
} else {
|
|
1747
1685
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1750,18 +1688,18 @@
|
|
|
1750
1688
|
}
|
|
1751
1689
|
function handleCatch($this, catchGoal, catcher) {
|
|
1752
1690
|
var tmp;
|
|
1753
|
-
if (catcher.
|
|
1754
|
-
var tmp_0 = $this.
|
|
1691
|
+
if (catcher.d11()) {
|
|
1692
|
+
var tmp_0 = $this.u35_1.l30_1.plus(catcher);
|
|
1755
1693
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1756
1694
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1757
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1758
|
-
var tmp0_$this = $this.
|
|
1759
|
-
var tmp1_rules =
|
|
1760
|
-
var tmp2_primitives =
|
|
1695
|
+
var newGoals = plus_0(toGoals(subGoals), $this.u35_1.n30_1.wp());
|
|
1696
|
+
var tmp0_$this = $this.u35_1;
|
|
1697
|
+
var tmp1_rules = Companion_instance_7.empty();
|
|
1698
|
+
var tmp2_primitives = Companion_instance_7.empty();
|
|
1761
1699
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1762
|
-
var tmp4_step = $this.
|
|
1763
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
1764
|
-
} else if ($this.
|
|
1700
|
+
var tmp4_step = $this.e35();
|
|
1701
|
+
tmp = new StateGoalSelection(tmp0_$this.s31(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));
|
|
1702
|
+
} else if ($this.u35_1.o33()) {
|
|
1765
1703
|
tmp = _get_finalState__3aigq8($this);
|
|
1766
1704
|
} else {
|
|
1767
1705
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1770,44 +1708,41 @@
|
|
|
1770
1708
|
}
|
|
1771
1709
|
function StateException$handleCatch$lambda(this$0) {
|
|
1772
1710
|
return function (_name_for_destructuring_parameter_0__wldtmu) {
|
|
1773
|
-
var tmp$ret$0;
|
|
1774
1711
|
// Inline function 'kotlin.collections.component1' call
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
return this$0.v30_1.r2y(it);
|
|
1712
|
+
var it = _name_for_destructuring_parameter_0__wldtmu.q2();
|
|
1713
|
+
return this$0.u35_1.q33(it);
|
|
1778
1714
|
};
|
|
1779
1715
|
}
|
|
1780
1716
|
function StateException(exception, context) {
|
|
1781
1717
|
AbstractState.call(this, context);
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1718
|
+
this.t35_1 = exception;
|
|
1719
|
+
this.u35_1 = context;
|
|
1784
1720
|
}
|
|
1785
|
-
protoOf(StateException).
|
|
1786
|
-
return this.
|
|
1721
|
+
protoOf(StateException).mb = function () {
|
|
1722
|
+
return this.u35_1;
|
|
1787
1723
|
};
|
|
1788
|
-
protoOf(StateException).
|
|
1789
|
-
var tmp0_subject = this.u30_1;
|
|
1724
|
+
protoOf(StateException).v34 = function () {
|
|
1790
1725
|
var tmp;
|
|
1791
|
-
if (
|
|
1792
|
-
var catchGoal = ensureNotNull(this.
|
|
1793
|
-
tmp = catchGoal.
|
|
1726
|
+
if (this.t35_1 instanceof LogicError) {
|
|
1727
|
+
var catchGoal = ensureNotNull(this.u35_1.p33());
|
|
1728
|
+
tmp = catchGoal.fv() ? handleStruct(this, this.u35_1.c30_1, catchGoal.castToStruct(), this.t35_1) : this.u35_1.o33() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1794
1729
|
} else {
|
|
1795
1730
|
tmp = _get_finalState__3aigq8(this);
|
|
1796
1731
|
}
|
|
1797
1732
|
return tmp;
|
|
1798
1733
|
};
|
|
1799
|
-
protoOf(StateException).
|
|
1800
|
-
return this.
|
|
1734
|
+
protoOf(StateException).a35 = function (context) {
|
|
1735
|
+
return this.v35(this.t35_1, context);
|
|
1801
1736
|
};
|
|
1802
|
-
protoOf(StateException).
|
|
1737
|
+
protoOf(StateException).v35 = function (exception, context) {
|
|
1803
1738
|
return new StateException(exception, context);
|
|
1804
1739
|
};
|
|
1805
1740
|
protoOf(StateException).toString = function () {
|
|
1806
|
-
return 'StateException(exception=' + this.
|
|
1741
|
+
return 'StateException(exception=' + this.t35_1 + ', context=' + this.u35_1 + ')';
|
|
1807
1742
|
};
|
|
1808
1743
|
protoOf(StateException).hashCode = function () {
|
|
1809
|
-
var result = hashCode(this.
|
|
1810
|
-
result = imul(result, 31) + this.
|
|
1744
|
+
var result = hashCode(this.t35_1);
|
|
1745
|
+
result = imul(result, 31) + this.u35_1.hashCode() | 0;
|
|
1811
1746
|
return result;
|
|
1812
1747
|
};
|
|
1813
1748
|
protoOf(StateException).equals = function (other) {
|
|
@@ -1816,78 +1751,73 @@
|
|
|
1816
1751
|
if (!(other instanceof StateException))
|
|
1817
1752
|
return false;
|
|
1818
1753
|
var tmp0_other_with_cast = other instanceof StateException ? other : THROW_CCE();
|
|
1819
|
-
if (!equals(this.
|
|
1754
|
+
if (!equals(this.t35_1, tmp0_other_with_cast.t35_1))
|
|
1820
1755
|
return false;
|
|
1821
|
-
if (!this.
|
|
1756
|
+
if (!this.u35_1.equals(tmp0_other_with_cast.u35_1))
|
|
1822
1757
|
return false;
|
|
1823
1758
|
return true;
|
|
1824
1759
|
};
|
|
1825
1760
|
function StateGoalSelection$computeNext$lambda(this$0) {
|
|
1826
1761
|
return function (_name_for_destructuring_parameter_0__wldtmu) {
|
|
1827
|
-
var tmp$ret$0;
|
|
1828
1762
|
// Inline function 'kotlin.collections.component1' call
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
return this$0.z30_1.r2y(it);
|
|
1763
|
+
var it = _name_for_destructuring_parameter_0__wldtmu.q2();
|
|
1764
|
+
return this$0.y35_1.q33(it);
|
|
1832
1765
|
};
|
|
1833
1766
|
}
|
|
1834
1767
|
function StateGoalSelection(context) {
|
|
1835
1768
|
AbstractState.call(this, context);
|
|
1836
|
-
this.
|
|
1769
|
+
this.y35_1 = context;
|
|
1837
1770
|
}
|
|
1838
|
-
protoOf(StateGoalSelection).
|
|
1839
|
-
return this.
|
|
1771
|
+
protoOf(StateGoalSelection).mb = function () {
|
|
1772
|
+
return this.y35_1;
|
|
1840
1773
|
};
|
|
1841
|
-
protoOf(StateGoalSelection).
|
|
1774
|
+
protoOf(StateGoalSelection).v34 = function () {
|
|
1842
1775
|
var tmp;
|
|
1843
|
-
if (this.
|
|
1776
|
+
if (this.y35_1.n30_1.zp()) {
|
|
1844
1777
|
var tmp_0;
|
|
1845
|
-
if (this.
|
|
1846
|
-
tmp_0 = new StateEnd(
|
|
1778
|
+
if (this.y35_1.o33()) {
|
|
1779
|
+
tmp_0 = new StateEnd(Companion_instance_8.w1w(this.y35_1.m30_1, this.y35_1.l30_1), this.y35_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35()));
|
|
1847
1780
|
} else {
|
|
1848
|
-
var tmp$ret$1;
|
|
1849
1781
|
// Inline function 'kotlin.let' call
|
|
1850
|
-
var tmp0_let = ensureNotNull(this.z30_1.u2v_1);
|
|
1851
1782
|
// Inline function 'kotlin.contracts.contract' call
|
|
1852
|
-
var tmp$ret$0;
|
|
1853
1783
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateGoalSelection.computeNext.<anonymous>' call
|
|
1854
|
-
var
|
|
1855
|
-
var
|
|
1856
|
-
var
|
|
1857
|
-
var
|
|
1858
|
-
var
|
|
1859
|
-
var
|
|
1860
|
-
var
|
|
1861
|
-
var
|
|
1862
|
-
var
|
|
1863
|
-
var
|
|
1864
|
-
var
|
|
1865
|
-
var
|
|
1866
|
-
var
|
|
1867
|
-
var
|
|
1868
|
-
|
|
1869
|
-
tmp$ret$1 =
|
|
1784
|
+
var it = ensureNotNull(this.y35_1.t30_1);
|
|
1785
|
+
var tmp0_choicePoints = this.y35_1.s30_1;
|
|
1786
|
+
var tmp1_flags = this.y35_1.e30_1;
|
|
1787
|
+
var tmp2_dynamicKb = this.y35_1.g30_1;
|
|
1788
|
+
var tmp3_staticKb = this.y35_1.f30_1;
|
|
1789
|
+
var tmp4_substitution = this.y35_1.l30_1.x10(StateGoalSelection$computeNext$lambda(this));
|
|
1790
|
+
var tmp5_goals = it.n30_1.wp();
|
|
1791
|
+
var tmp6_procedure = it.b30_1;
|
|
1792
|
+
var tmp7_step = this.e35();
|
|
1793
|
+
var tmp8_startTime = this.y35_1.q30_1;
|
|
1794
|
+
var tmp9_operators = this.y35_1.h30_1;
|
|
1795
|
+
var tmp10_inputChannels = this.y35_1.i30_1;
|
|
1796
|
+
var tmp11_outputChannels = this.y35_1.j30_1;
|
|
1797
|
+
var tmp12_libraries = this.y35_1.d30_1;
|
|
1798
|
+
var tmp13_customData = this.y35_1.k30_1;
|
|
1799
|
+
var tmp$ret$1 = it.s31(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);
|
|
1870
1800
|
tmp_0 = new StateGoalSelection(tmp$ret$1);
|
|
1871
1801
|
}
|
|
1872
1802
|
tmp = tmp_0;
|
|
1873
|
-
} else if (equals(this.
|
|
1874
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1803
|
+
} else if (equals(this.y35_1.e30_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().p29_1)) {
|
|
1804
|
+
tmp = new StatePrimitiveSelection(this.y35_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35(), plus_1(this.y35_1.w30_1, toSet(ensureNotNull(this.y35_1.n30_1.xp()).bv()))));
|
|
1875
1805
|
} else {
|
|
1876
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1806
|
+
tmp = new StatePrimitiveSelection(this.y35_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35()));
|
|
1877
1807
|
}
|
|
1878
1808
|
return tmp;
|
|
1879
1809
|
};
|
|
1880
|
-
protoOf(StateGoalSelection).
|
|
1881
|
-
return this.
|
|
1810
|
+
protoOf(StateGoalSelection).a35 = function (context) {
|
|
1811
|
+
return this.j35(context);
|
|
1882
1812
|
};
|
|
1883
|
-
protoOf(StateGoalSelection).
|
|
1813
|
+
protoOf(StateGoalSelection).j35 = function (context) {
|
|
1884
1814
|
return new StateGoalSelection(context);
|
|
1885
1815
|
};
|
|
1886
1816
|
protoOf(StateGoalSelection).toString = function () {
|
|
1887
|
-
return 'StateGoalSelection(context=' + this.
|
|
1817
|
+
return 'StateGoalSelection(context=' + this.y35_1 + ')';
|
|
1888
1818
|
};
|
|
1889
1819
|
protoOf(StateGoalSelection).hashCode = function () {
|
|
1890
|
-
return this.
|
|
1820
|
+
return this.y35_1.hashCode();
|
|
1891
1821
|
};
|
|
1892
1822
|
protoOf(StateGoalSelection).equals = function (other) {
|
|
1893
1823
|
if (this === other)
|
|
@@ -1895,30 +1825,30 @@
|
|
|
1895
1825
|
if (!(other instanceof StateGoalSelection))
|
|
1896
1826
|
return false;
|
|
1897
1827
|
var tmp0_other_with_cast = other instanceof StateGoalSelection ? other : THROW_CCE();
|
|
1898
|
-
if (!this.
|
|
1828
|
+
if (!this.y35_1.equals(tmp0_other_with_cast.y35_1))
|
|
1899
1829
|
return false;
|
|
1900
1830
|
return true;
|
|
1901
1831
|
};
|
|
1902
1832
|
function StateHalt(exception, context) {
|
|
1903
|
-
AbstractEndState.call(this,
|
|
1904
|
-
this.
|
|
1905
|
-
this.
|
|
1833
|
+
AbstractEndState.call(this, Companion_instance_8.halt(context.m30_1, exception), context);
|
|
1834
|
+
this.d36_1 = exception;
|
|
1835
|
+
this.e36_1 = context;
|
|
1906
1836
|
}
|
|
1907
|
-
protoOf(StateHalt).
|
|
1908
|
-
return this.
|
|
1837
|
+
protoOf(StateHalt).mb = function () {
|
|
1838
|
+
return this.e36_1;
|
|
1909
1839
|
};
|
|
1910
|
-
protoOf(StateHalt).
|
|
1911
|
-
return this.
|
|
1840
|
+
protoOf(StateHalt).a35 = function (context) {
|
|
1841
|
+
return this.v35(this.d36_1, context);
|
|
1912
1842
|
};
|
|
1913
|
-
protoOf(StateHalt).
|
|
1843
|
+
protoOf(StateHalt).v35 = function (exception, context) {
|
|
1914
1844
|
return new StateHalt(exception, context);
|
|
1915
1845
|
};
|
|
1916
1846
|
protoOf(StateHalt).toString = function () {
|
|
1917
|
-
return 'StateHalt(exception=' + this.
|
|
1847
|
+
return 'StateHalt(exception=' + this.d36_1 + ', context=' + this.e36_1 + ')';
|
|
1918
1848
|
};
|
|
1919
1849
|
protoOf(StateHalt).hashCode = function () {
|
|
1920
|
-
var result = hashCode(this.
|
|
1921
|
-
result = imul(result, 31) + this.
|
|
1850
|
+
var result = hashCode(this.d36_1);
|
|
1851
|
+
result = imul(result, 31) + this.e36_1.hashCode() | 0;
|
|
1922
1852
|
return result;
|
|
1923
1853
|
};
|
|
1924
1854
|
protoOf(StateHalt).equals = function (other) {
|
|
@@ -1927,43 +1857,43 @@
|
|
|
1927
1857
|
if (!(other instanceof StateHalt))
|
|
1928
1858
|
return false;
|
|
1929
1859
|
var tmp0_other_with_cast = other instanceof StateHalt ? other : THROW_CCE();
|
|
1930
|
-
if (!equals(this.
|
|
1860
|
+
if (!equals(this.d36_1, tmp0_other_with_cast.d36_1))
|
|
1931
1861
|
return false;
|
|
1932
|
-
if (!this.
|
|
1862
|
+
if (!this.e36_1.equals(tmp0_other_with_cast.e36_1))
|
|
1933
1863
|
return false;
|
|
1934
1864
|
return true;
|
|
1935
1865
|
};
|
|
1936
1866
|
protoOf(StateHalt).asEndState = function () {
|
|
1937
|
-
return this.
|
|
1867
|
+
return this.x34();
|
|
1938
1868
|
};
|
|
1939
1869
|
function StateInit(context) {
|
|
1940
1870
|
AbstractState.call(this, context);
|
|
1941
|
-
this.
|
|
1942
|
-
}
|
|
1943
|
-
protoOf(StateInit).
|
|
1944
|
-
return this.
|
|
1945
|
-
};
|
|
1946
|
-
protoOf(StateInit).
|
|
1947
|
-
var tmp0_$this = this.
|
|
1948
|
-
var tmp1_goals = toGoals(this.
|
|
1949
|
-
var tmp2_rules =
|
|
1950
|
-
var tmp3_primitives =
|
|
1951
|
-
var tmp4_substitution =
|
|
1952
|
-
var tmp5_customData = this.
|
|
1871
|
+
this.h36_1 = context;
|
|
1872
|
+
}
|
|
1873
|
+
protoOf(StateInit).mb = function () {
|
|
1874
|
+
return this.h36_1;
|
|
1875
|
+
};
|
|
1876
|
+
protoOf(StateInit).v34 = function () {
|
|
1877
|
+
var tmp0_$this = this.h36_1;
|
|
1878
|
+
var tmp1_goals = toGoals(this.h36_1.m30_1);
|
|
1879
|
+
var tmp2_rules = Companion_instance_7.empty();
|
|
1880
|
+
var tmp3_primitives = Companion_instance_7.empty();
|
|
1881
|
+
var tmp4_substitution = Companion_getInstance_2().empty();
|
|
1882
|
+
var tmp5_customData = this.h36_1.k30_1.preservePersistent();
|
|
1953
1883
|
var tmp6_relevantVariables = emptySet();
|
|
1954
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.
|
|
1884
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.s31(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, new Long(1, 0), tmp6_relevantVariables), Companion_instance_7.empty()));
|
|
1955
1885
|
};
|
|
1956
|
-
protoOf(StateInit).
|
|
1957
|
-
return this.
|
|
1886
|
+
protoOf(StateInit).a35 = function (context) {
|
|
1887
|
+
return this.j35(context);
|
|
1958
1888
|
};
|
|
1959
|
-
protoOf(StateInit).
|
|
1889
|
+
protoOf(StateInit).j35 = function (context) {
|
|
1960
1890
|
return new StateInit(context);
|
|
1961
1891
|
};
|
|
1962
1892
|
protoOf(StateInit).toString = function () {
|
|
1963
|
-
return 'StateInit(context=' + this.
|
|
1893
|
+
return 'StateInit(context=' + this.h36_1 + ')';
|
|
1964
1894
|
};
|
|
1965
1895
|
protoOf(StateInit).hashCode = function () {
|
|
1966
|
-
return this.
|
|
1896
|
+
return this.h36_1.hashCode();
|
|
1967
1897
|
};
|
|
1968
1898
|
protoOf(StateInit).equals = function (other) {
|
|
1969
1899
|
if (this === other)
|
|
@@ -1971,37 +1901,31 @@
|
|
|
1971
1901
|
if (!(other instanceof StateInit))
|
|
1972
1902
|
return false;
|
|
1973
1903
|
var tmp0_other_with_cast = other instanceof StateInit ? other : THROW_CCE();
|
|
1974
|
-
if (!this.
|
|
1904
|
+
if (!this.h36_1.equals(tmp0_other_with_cast.h36_1))
|
|
1975
1905
|
return false;
|
|
1976
1906
|
return true;
|
|
1977
1907
|
};
|
|
1978
1908
|
function copyFromCurrentPrimitive(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution) {
|
|
1979
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1909
|
+
var tmp0_safe_receiver = _this__u8e3s4.p30_1.xp();
|
|
1980
1910
|
var tmp;
|
|
1981
1911
|
if (tmp0_safe_receiver == null) {
|
|
1982
1912
|
tmp = null;
|
|
1983
1913
|
} else {
|
|
1984
|
-
var tmp$ret$1;
|
|
1985
1914
|
// Inline function 'kotlin.let' call
|
|
1986
1915
|
// Inline function 'kotlin.contracts.contract' call
|
|
1987
|
-
var tmp$ret$0;
|
|
1988
1916
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveExecution.copyFromCurrentPrimitive.<anonymous>' call
|
|
1989
|
-
tmp
|
|
1990
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1991
|
-
tmp = tmp$ret$1;
|
|
1917
|
+
tmp = _this__u8e3s4.s33(tmp0_safe_receiver.sideEffects);
|
|
1992
1918
|
}
|
|
1993
1919
|
var tmp1_elvis_lhs = tmp;
|
|
1994
1920
|
var ctx = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
1995
|
-
var
|
|
1996
|
-
var
|
|
1997
|
-
var tmp_0 = drop(_this__u8e3s4.y2v_1, procedureFromAncestor);
|
|
1921
|
+
var tmp4_goals = goals == null ? _this__u8e3s4.n30_1 : goals;
|
|
1922
|
+
var tmp_0 = drop(_this__u8e3s4.x30_1, procedureFromAncestor);
|
|
1998
1923
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
1999
|
-
var tmp6_primitives =
|
|
2000
|
-
var
|
|
2001
|
-
var tmp_1 = tmp2_elvis_lhs == null ? _this__u8e3s4.m2v_1 : tmp2_elvis_lhs;
|
|
1924
|
+
var tmp6_primitives = Companion_instance_7.empty();
|
|
1925
|
+
var tmp_1 = substitution == null ? _this__u8e3s4.l30_1 : substitution;
|
|
2002
1926
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
2003
|
-
var tmp8_step = $this.
|
|
2004
|
-
return ctx.
|
|
1927
|
+
var tmp8_step = $this.e35();
|
|
1928
|
+
return ctx.s31(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);
|
|
2005
1929
|
}
|
|
2006
1930
|
function copyFromCurrentPrimitive$default(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution, $super) {
|
|
2007
1931
|
goals = goals === VOID ? null : goals;
|
|
@@ -2010,21 +1934,21 @@
|
|
|
2010
1934
|
return copyFromCurrentPrimitive(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution);
|
|
2011
1935
|
}
|
|
2012
1936
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
2013
|
-
return it.
|
|
1937
|
+
return it.b30_1;
|
|
2014
1938
|
}
|
|
2015
1939
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
2016
1940
|
return function (it) {
|
|
2017
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0.
|
|
1941
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0.k36_1, this$0, this$0.k36_1.n30_1.wp(), 1, this$0.k36_1.c30_1.mergeWithOccurCheck(this$0.k36_1.l30_1, it.g1v(), false)));
|
|
2018
1942
|
};
|
|
2019
1943
|
}
|
|
2020
1944
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
2021
1945
|
return function (it) {
|
|
2022
|
-
return new StateBacktracking(copyFromCurrentPrimitive$default(ensureNotNull(this$0.
|
|
1946
|
+
return new StateBacktracking(copyFromCurrentPrimitive$default(ensureNotNull(this$0.k36_1.t30_1), this$0));
|
|
2023
1947
|
};
|
|
2024
1948
|
}
|
|
2025
1949
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
2026
1950
|
return function (it) {
|
|
2027
|
-
return new StateException(it.
|
|
1951
|
+
return new StateException(it.n1w().updateLastContext(this$0.f35(this$0.k36_1)), copyFromCurrentPrimitive$default(this$0.k36_1, this$0));
|
|
2028
1952
|
};
|
|
2029
1953
|
}
|
|
2030
1954
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -2032,15 +1956,15 @@
|
|
|
2032
1956
|
}
|
|
2033
1957
|
function StatePrimitiveExecution(context) {
|
|
2034
1958
|
AbstractState.call(this, context);
|
|
2035
|
-
this.
|
|
1959
|
+
this.k36_1 = context;
|
|
2036
1960
|
}
|
|
2037
|
-
protoOf(StatePrimitiveExecution).
|
|
2038
|
-
return this.
|
|
1961
|
+
protoOf(StatePrimitiveExecution).mb = function () {
|
|
1962
|
+
return this.k36_1;
|
|
2039
1963
|
};
|
|
2040
|
-
protoOf(StatePrimitiveExecution).
|
|
1964
|
+
protoOf(StatePrimitiveExecution).v34 = function () {
|
|
2041
1965
|
var tmp;
|
|
2042
1966
|
try {
|
|
2043
|
-
var tmp0_safe_receiver = this.
|
|
1967
|
+
var tmp0_safe_receiver = this.k36_1.p30_1.xp();
|
|
2044
1968
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
2045
1969
|
var tmp_0;
|
|
2046
1970
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2049,15 +1973,15 @@
|
|
|
2049
1973
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
2050
1974
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
2051
1975
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
2052
|
-
tmp_0 = tmp1_safe_receiver.
|
|
1976
|
+
tmp_0 = tmp1_safe_receiver.r1w(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
2053
1977
|
}
|
|
2054
1978
|
var tmp2_elvis_lhs = tmp_0;
|
|
2055
|
-
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this.
|
|
1979
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this.k36_1, this)) : tmp2_elvis_lhs;
|
|
2056
1980
|
} catch ($p) {
|
|
2057
1981
|
var tmp_4;
|
|
2058
1982
|
if ($p instanceof ResolutionException) {
|
|
2059
1983
|
var exception = $p;
|
|
2060
|
-
tmp_4 = new StateException(exception.updateLastContext(this.
|
|
1984
|
+
tmp_4 = new StateException(exception.updateLastContext(this.f35(this.k36_1)), this.k36_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35()));
|
|
2061
1985
|
} else {
|
|
2062
1986
|
throw $p;
|
|
2063
1987
|
}
|
|
@@ -2065,17 +1989,17 @@
|
|
|
2065
1989
|
}
|
|
2066
1990
|
return tmp;
|
|
2067
1991
|
};
|
|
2068
|
-
protoOf(StatePrimitiveExecution).
|
|
2069
|
-
return this.
|
|
1992
|
+
protoOf(StatePrimitiveExecution).a35 = function (context) {
|
|
1993
|
+
return this.j35(context);
|
|
2070
1994
|
};
|
|
2071
|
-
protoOf(StatePrimitiveExecution).
|
|
1995
|
+
protoOf(StatePrimitiveExecution).j35 = function (context) {
|
|
2072
1996
|
return new StatePrimitiveExecution(context);
|
|
2073
1997
|
};
|
|
2074
1998
|
protoOf(StatePrimitiveExecution).toString = function () {
|
|
2075
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
1999
|
+
return 'StatePrimitiveExecution(context=' + this.k36_1 + ')';
|
|
2076
2000
|
};
|
|
2077
2001
|
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2078
|
-
return this.
|
|
2002
|
+
return this.k36_1.hashCode();
|
|
2079
2003
|
};
|
|
2080
2004
|
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2081
2005
|
if (this === other)
|
|
@@ -2083,44 +2007,43 @@
|
|
|
2083
2007
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2084
2008
|
return false;
|
|
2085
2009
|
var tmp0_other_with_cast = other instanceof StatePrimitiveExecution ? other : THROW_CCE();
|
|
2086
|
-
if (!this.
|
|
2010
|
+
if (!this.k36_1.equals(tmp0_other_with_cast.k36_1))
|
|
2087
2011
|
return false;
|
|
2088
2012
|
return true;
|
|
2089
2013
|
};
|
|
2090
2014
|
function exceptionalState($this, exception) {
|
|
2091
|
-
return new StateException(exception, $this.
|
|
2015
|
+
return new StateException(exception, $this.n36_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
2092
2016
|
}
|
|
2093
2017
|
function StatePrimitiveSelection(context) {
|
|
2094
2018
|
AbstractState.call(this, context);
|
|
2095
|
-
this.
|
|
2019
|
+
this.n36_1 = context;
|
|
2096
2020
|
}
|
|
2097
|
-
protoOf(StatePrimitiveSelection).
|
|
2098
|
-
return this.
|
|
2021
|
+
protoOf(StatePrimitiveSelection).mb = function () {
|
|
2022
|
+
return this.n36_1;
|
|
2099
2023
|
};
|
|
2100
|
-
protoOf(StatePrimitiveSelection).
|
|
2101
|
-
var tmp$ret$1;
|
|
2024
|
+
protoOf(StatePrimitiveSelection).v34 = function () {
|
|
2102
2025
|
// Inline function 'kotlin.with' call
|
|
2103
|
-
var tmp0_with = this.o31_1;
|
|
2104
2026
|
// Inline function 'kotlin.contracts.contract' call
|
|
2105
|
-
var tmp$ret$0;
|
|
2106
2027
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveSelection.computeNext.<anonymous>' call
|
|
2107
|
-
var
|
|
2028
|
+
var $this$with = this.n36_1;
|
|
2029
|
+
var goal = ensureNotNull($this$with.p33());
|
|
2108
2030
|
var tmp;
|
|
2109
|
-
if (goal.
|
|
2110
|
-
tmp = exceptionalState(this,
|
|
2111
|
-
} else if (goal.
|
|
2031
|
+
if (goal.vv()) {
|
|
2032
|
+
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.n36_1, extractSignature(ensureNotNull(this.n36_1.b30_1)), goal.castToVar()));
|
|
2033
|
+
} else if (goal.fv()) {
|
|
2112
2034
|
var goalStruct = goal.castToStruct();
|
|
2113
2035
|
var signature = extractSignature(goalStruct);
|
|
2114
2036
|
var tmp_0;
|
|
2115
|
-
if (
|
|
2116
|
-
var childContext = createChild(
|
|
2037
|
+
if ($this$with.d30_1.hasPrimitive(signature)) {
|
|
2038
|
+
var childContext = createChild($this$with);
|
|
2117
2039
|
var tmp_1;
|
|
2118
2040
|
try {
|
|
2119
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2120
|
-
var tmp0_elvis_lhs =
|
|
2041
|
+
var request = toRequest(childContext, goalStruct, signature, this.b35());
|
|
2042
|
+
var tmp0_elvis_lhs = $this$with.d30_1.m2e().x2(signature);
|
|
2121
2043
|
var tmp_2;
|
|
2122
2044
|
if (tmp0_elvis_lhs == null) {
|
|
2123
|
-
|
|
2045
|
+
var message = 'Inconsistent behaviour of Library.contains and Library.get';
|
|
2046
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
2124
2047
|
} else {
|
|
2125
2048
|
tmp_2 = tmp0_elvis_lhs;
|
|
2126
2049
|
}
|
|
@@ -2131,7 +2054,7 @@
|
|
|
2131
2054
|
var tmp_3;
|
|
2132
2055
|
if ($p instanceof ResolutionException) {
|
|
2133
2056
|
var exception = $p;
|
|
2134
|
-
tmp_3 = exceptionalState(this, exception.updateLastContext(this.
|
|
2057
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.f35(childContext)));
|
|
2135
2058
|
} else {
|
|
2136
2059
|
throw $p;
|
|
2137
2060
|
}
|
|
@@ -2139,30 +2062,28 @@
|
|
|
2139
2062
|
}
|
|
2140
2063
|
tmp_0 = tmp_1;
|
|
2141
2064
|
} else {
|
|
2142
|
-
tmp_0 = new StateRuleSelection(this.
|
|
2065
|
+
tmp_0 = new StateRuleSelection(this.n36_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e35()));
|
|
2143
2066
|
}
|
|
2144
2067
|
tmp = tmp_0;
|
|
2145
2068
|
} else {
|
|
2146
|
-
var tmp_4 =
|
|
2147
|
-
var tmp1_safe_receiver = this.
|
|
2069
|
+
var tmp_4 = Companion_instance_10;
|
|
2070
|
+
var tmp1_safe_receiver = this.n36_1.b30_1;
|
|
2148
2071
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2149
|
-
tmp = exceptionalState(this, tmp_4.forGoal(this.
|
|
2072
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.n36_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2150
2073
|
}
|
|
2151
|
-
|
|
2152
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2153
|
-
return tmp$ret$1;
|
|
2074
|
+
return tmp;
|
|
2154
2075
|
};
|
|
2155
|
-
protoOf(StatePrimitiveSelection).
|
|
2156
|
-
return this.
|
|
2076
|
+
protoOf(StatePrimitiveSelection).a35 = function (context) {
|
|
2077
|
+
return this.j35(context);
|
|
2157
2078
|
};
|
|
2158
|
-
protoOf(StatePrimitiveSelection).
|
|
2079
|
+
protoOf(StatePrimitiveSelection).j35 = function (context) {
|
|
2159
2080
|
return new StatePrimitiveSelection(context);
|
|
2160
2081
|
};
|
|
2161
2082
|
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2162
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2083
|
+
return 'StatePrimitiveSelection(context=' + this.n36_1 + ')';
|
|
2163
2084
|
};
|
|
2164
2085
|
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2165
|
-
return this.
|
|
2086
|
+
return this.n36_1.hashCode();
|
|
2166
2087
|
};
|
|
2167
2088
|
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2168
2089
|
if (this === other)
|
|
@@ -2170,55 +2091,51 @@
|
|
|
2170
2091
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2171
2092
|
return false;
|
|
2172
2093
|
var tmp0_other_with_cast = other instanceof StatePrimitiveSelection ? other : THROW_CCE();
|
|
2173
|
-
if (!this.
|
|
2094
|
+
if (!this.n36_1.equals(tmp0_other_with_cast.n36_1))
|
|
2174
2095
|
return false;
|
|
2175
2096
|
return true;
|
|
2176
2097
|
};
|
|
2177
2098
|
function _get_failureState__yid9tw($this) {
|
|
2178
|
-
return new StateBacktracking($this.
|
|
2099
|
+
return new StateBacktracking($this.q36_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_7.empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
2179
2100
|
}
|
|
2180
2101
|
function StateRuleExecution(context) {
|
|
2181
2102
|
AbstractState.call(this, context);
|
|
2182
|
-
this.
|
|
2103
|
+
this.q36_1 = context;
|
|
2183
2104
|
}
|
|
2184
|
-
protoOf(StateRuleExecution).
|
|
2185
|
-
return this.
|
|
2105
|
+
protoOf(StateRuleExecution).mb = function () {
|
|
2106
|
+
return this.q36_1;
|
|
2186
2107
|
};
|
|
2187
|
-
protoOf(StateRuleExecution).
|
|
2188
|
-
var tmp$ret$1;
|
|
2108
|
+
protoOf(StateRuleExecution).v34 = function () {
|
|
2189
2109
|
// Inline function 'kotlin.with' call
|
|
2190
|
-
var tmp0_with = this.r31_1;
|
|
2191
2110
|
// Inline function 'kotlin.contracts.contract' call
|
|
2192
|
-
var tmp$ret$0;
|
|
2193
2111
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleExecution.computeNext.<anonymous>' call
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
var substitution = tmp$ret$1;
|
|
2112
|
+
var $this$with = this.q36_1;
|
|
2113
|
+
var substitution = $this$with.c30_1.mgu(ensureNotNull($this$with.p33()), ensureNotNull($this$with.o30_1.xp()).fx());
|
|
2197
2114
|
var tmp;
|
|
2198
|
-
if (substitution.
|
|
2199
|
-
var newSubstitution = this.
|
|
2200
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2201
|
-
var tmp0_$this = this.
|
|
2115
|
+
if (substitution.d11()) {
|
|
2116
|
+
var newSubstitution = this.q36_1.l30_1.plus(substitution).castToUnifier();
|
|
2117
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.q36_1.o30_1.xp()), newSubstitution).gx().getSubstituted(newSubstitution, []);
|
|
2118
|
+
var tmp0_$this = this.q36_1;
|
|
2202
2119
|
var tmp1_goals = toGoals(subGoals);
|
|
2203
|
-
var tmp2_rules =
|
|
2204
|
-
var tmp3_step = this.
|
|
2205
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
2120
|
+
var tmp2_rules = Companion_instance_7.empty();
|
|
2121
|
+
var tmp3_step = this.e35();
|
|
2122
|
+
tmp = new StateGoalSelection(tmp0_$this.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
|
|
2206
2123
|
} else {
|
|
2207
2124
|
tmp = _get_failureState__yid9tw(this);
|
|
2208
2125
|
}
|
|
2209
2126
|
return tmp;
|
|
2210
2127
|
};
|
|
2211
|
-
protoOf(StateRuleExecution).
|
|
2212
|
-
return this.
|
|
2128
|
+
protoOf(StateRuleExecution).a35 = function (context) {
|
|
2129
|
+
return this.j35(context);
|
|
2213
2130
|
};
|
|
2214
|
-
protoOf(StateRuleExecution).
|
|
2131
|
+
protoOf(StateRuleExecution).j35 = function (context) {
|
|
2215
2132
|
return new StateRuleExecution(context);
|
|
2216
2133
|
};
|
|
2217
2134
|
protoOf(StateRuleExecution).toString = function () {
|
|
2218
|
-
return 'StateRuleExecution(context=' + this.
|
|
2135
|
+
return 'StateRuleExecution(context=' + this.q36_1 + ')';
|
|
2219
2136
|
};
|
|
2220
2137
|
protoOf(StateRuleExecution).hashCode = function () {
|
|
2221
|
-
return this.
|
|
2138
|
+
return this.q36_1.hashCode();
|
|
2222
2139
|
};
|
|
2223
2140
|
protoOf(StateRuleExecution).equals = function (other) {
|
|
2224
2141
|
if (this === other)
|
|
@@ -2226,23 +2143,23 @@
|
|
|
2226
2143
|
if (!(other instanceof StateRuleExecution))
|
|
2227
2144
|
return false;
|
|
2228
2145
|
var tmp0_other_with_cast = other instanceof StateRuleExecution ? other : THROW_CCE();
|
|
2229
|
-
if (!this.
|
|
2146
|
+
if (!this.q36_1.equals(tmp0_other_with_cast.q36_1))
|
|
2230
2147
|
return false;
|
|
2231
2148
|
return true;
|
|
2232
2149
|
};
|
|
2233
2150
|
function None() {
|
|
2234
2151
|
None_instance = this;
|
|
2235
2152
|
CutLimit.call(this);
|
|
2236
|
-
this.
|
|
2237
|
-
this.
|
|
2153
|
+
this.r36_1 = -1;
|
|
2154
|
+
this.s36_1 = null;
|
|
2238
2155
|
}
|
|
2239
|
-
protoOf(None).
|
|
2240
|
-
return this.
|
|
2156
|
+
protoOf(None).t36 = function () {
|
|
2157
|
+
return this.r36_1;
|
|
2241
2158
|
};
|
|
2242
|
-
protoOf(None).
|
|
2243
|
-
return this.
|
|
2159
|
+
protoOf(None).f1v = function () {
|
|
2160
|
+
return this.s36_1;
|
|
2244
2161
|
};
|
|
2245
|
-
protoOf(None).
|
|
2162
|
+
protoOf(None).u36 = function () {
|
|
2246
2163
|
return true;
|
|
2247
2164
|
};
|
|
2248
2165
|
var None_instance;
|
|
@@ -2253,54 +2170,52 @@
|
|
|
2253
2170
|
}
|
|
2254
2171
|
function Actual(depthToCut, procedure) {
|
|
2255
2172
|
CutLimit.call(this);
|
|
2256
|
-
this.
|
|
2257
|
-
this.
|
|
2173
|
+
this.v36_1 = depthToCut;
|
|
2174
|
+
this.w36_1 = procedure;
|
|
2258
2175
|
}
|
|
2259
|
-
protoOf(Actual).
|
|
2260
|
-
return this.
|
|
2176
|
+
protoOf(Actual).t36 = function () {
|
|
2177
|
+
return this.v36_1;
|
|
2261
2178
|
};
|
|
2262
|
-
protoOf(Actual).
|
|
2263
|
-
return this.
|
|
2179
|
+
protoOf(Actual).f1v = function () {
|
|
2180
|
+
return this.w36_1;
|
|
2264
2181
|
};
|
|
2265
2182
|
function CutLimit() {
|
|
2266
2183
|
}
|
|
2267
|
-
protoOf(CutLimit).
|
|
2184
|
+
protoOf(CutLimit).u36 = function () {
|
|
2268
2185
|
return false;
|
|
2269
2186
|
};
|
|
2270
2187
|
function Companion_0() {
|
|
2271
|
-
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2188
|
+
Companion_instance_16 = this;
|
|
2189
|
+
this.x36_1 = Catch_getInstance().signature;
|
|
2190
|
+
this.y36_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2274
2191
|
}
|
|
2275
|
-
var
|
|
2276
|
-
function
|
|
2277
|
-
if (
|
|
2192
|
+
var Companion_instance_16;
|
|
2193
|
+
function Companion_getInstance_7() {
|
|
2194
|
+
if (Companion_instance_16 == null)
|
|
2278
2195
|
new Companion_0();
|
|
2279
|
-
return
|
|
2196
|
+
return Companion_instance_16;
|
|
2280
2197
|
}
|
|
2281
2198
|
function _get_failureState__yid9tw_0($this) {
|
|
2282
|
-
return new StateBacktracking($this.
|
|
2199
|
+
return new StateBacktracking($this.b37_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
2283
2200
|
}
|
|
2284
2201
|
function exceptionalState_0($this, exception) {
|
|
2285
|
-
return new StateException(exception, $this.
|
|
2202
|
+
return new StateException(exception, $this.b37_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
2286
2203
|
}
|
|
2287
2204
|
function missingProcedure($this, ruleSources, missing) {
|
|
2288
|
-
var unknown = $this.
|
|
2205
|
+
var unknown = $this.b37_1.e30_1.get(Unknown_getInstance());
|
|
2289
2206
|
var tmp;
|
|
2290
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2207
|
+
if (equals(unknown, Unknown_getInstance().v29_1)) {
|
|
2291
2208
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2292
2209
|
} else {
|
|
2293
2210
|
var tmp_0;
|
|
2294
2211
|
var tmp$ret$1;
|
|
2295
2212
|
$l$block: {
|
|
2296
2213
|
// Inline function 'kotlin.sequences.none' call
|
|
2297
|
-
var tmp0_iterator = ruleSources.
|
|
2298
|
-
while (tmp0_iterator.
|
|
2299
|
-
var element = tmp0_iterator.
|
|
2300
|
-
var tmp$ret$0;
|
|
2214
|
+
var tmp0_iterator = ruleSources.r();
|
|
2215
|
+
while (tmp0_iterator.s()) {
|
|
2216
|
+
var element = tmp0_iterator.u();
|
|
2301
2217
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
|
|
2302
|
-
|
|
2303
|
-
if (tmp$ret$0) {
|
|
2218
|
+
if (element.containsIndicator(missing.toIndicator())) {
|
|
2304
2219
|
tmp$ret$1 = false;
|
|
2305
2220
|
break $l$block;
|
|
2306
2221
|
}
|
|
@@ -2308,19 +2223,16 @@
|
|
|
2308
2223
|
tmp$ret$1 = true;
|
|
2309
2224
|
}
|
|
2310
2225
|
if (tmp$ret$1) {
|
|
2311
|
-
var tmp0_subject = unknown;
|
|
2312
2226
|
var tmp_1;
|
|
2313
|
-
if (equals(
|
|
2314
|
-
tmp_1 = exceptionalState_0($this,
|
|
2315
|
-
} else if (equals(
|
|
2316
|
-
var tmp$ret$2;
|
|
2227
|
+
if (equals(unknown, Unknown_getInstance().t29_1)) {
|
|
2228
|
+
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.b37_1, missing));
|
|
2229
|
+
} else if (equals(unknown, Unknown_getInstance().u29_1)) {
|
|
2317
2230
|
// Inline function 'kotlin.also' call
|
|
2318
|
-
var
|
|
2231
|
+
var this_0 = _get_failureState__yid9tw_0($this);
|
|
2319
2232
|
// Inline function 'kotlin.contracts.contract' call
|
|
2320
2233
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
|
|
2321
|
-
$this.
|
|
2322
|
-
|
|
2323
|
-
tmp_1 = tmp$ret$2;
|
|
2234
|
+
$this.b37_1.x1v().write(MissingPredicate_init_$Create$($this.b37_1, missing));
|
|
2235
|
+
tmp_1 = this_0;
|
|
2324
2236
|
} else {
|
|
2325
2237
|
tmp_1 = _get_failureState__yid9tw_0($this);
|
|
2326
2238
|
}
|
|
@@ -2333,29 +2245,26 @@
|
|
|
2333
2245
|
return tmp;
|
|
2334
2246
|
}
|
|
2335
2247
|
function _get_ignoreState__t4wl8y($this) {
|
|
2336
|
-
return new StateGoalSelection($this.
|
|
2248
|
+
return new StateGoalSelection($this.b37_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b37_1.n30_1.wp(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e35()));
|
|
2337
2249
|
}
|
|
2338
2250
|
function isCut(_this__u8e3s4, $this) {
|
|
2339
|
-
return _this__u8e3s4.
|
|
2251
|
+
return _this__u8e3s4.uu() ? _this__u8e3s4.castToAtom().r2() === '!' : false;
|
|
2340
2252
|
}
|
|
2341
2253
|
function computeCutLimit(_this__u8e3s4, $this, magicCut) {
|
|
2342
2254
|
var tmp;
|
|
2343
2255
|
if (magicCut) {
|
|
2344
|
-
tmp = firstOrNull(_this__u8e3s4.
|
|
2256
|
+
tmp = firstOrNull(_this__u8e3s4.x30_1);
|
|
2345
2257
|
} else {
|
|
2346
2258
|
var tmp$ret$1;
|
|
2347
2259
|
$l$block: {
|
|
2348
2260
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2349
|
-
var
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
var element = tmp0_iterator.n();
|
|
2353
|
-
var tmp$ret$0;
|
|
2261
|
+
var tmp0_iterator = _this__u8e3s4.x30_1.r();
|
|
2262
|
+
while (tmp0_iterator.s()) {
|
|
2263
|
+
var element = tmp0_iterator.u();
|
|
2354
2264
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeCutLimit.<anonymous>' call
|
|
2355
|
-
var tmp_0 =
|
|
2356
|
-
var tmp0_safe_receiver = element.
|
|
2357
|
-
|
|
2358
|
-
if (tmp$ret$0) {
|
|
2265
|
+
var tmp_0 = Companion_getInstance_7().y36_1;
|
|
2266
|
+
var tmp0_safe_receiver = element.b30_1;
|
|
2267
|
+
if (!contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver))) {
|
|
2359
2268
|
tmp$ret$1 = element;
|
|
2360
2269
|
break $l$block;
|
|
2361
2270
|
}
|
|
@@ -2369,34 +2278,32 @@
|
|
|
2369
2278
|
if (cutLimit == null) {
|
|
2370
2279
|
tmp_1 = None_getInstance();
|
|
2371
2280
|
} else {
|
|
2372
|
-
tmp_1 = new Actual(cutLimit.
|
|
2281
|
+
tmp_1 = new Actual(cutLimit.u30_1, cutLimit.b30_1);
|
|
2373
2282
|
}
|
|
2374
2283
|
return tmp_1;
|
|
2375
2284
|
}
|
|
2376
2285
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2377
|
-
return (cutLimit.
|
|
2286
|
+
return (cutLimit.u36() ? true : cutLimit.t36() > executionContext.u30_1) ? true : cutLimit.t36() === executionContext.u30_1 ? !equals(cutLimit.f1v(), executionContext.b30_1) : false;
|
|
2378
2287
|
}
|
|
2379
2288
|
function performCut(_this__u8e3s4, $this, cutLimit) {
|
|
2380
2289
|
var tmp;
|
|
2381
2290
|
if (_this__u8e3s4 === null) {
|
|
2382
2291
|
tmp = null;
|
|
2383
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.
|
|
2292
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.n31()))) {
|
|
2384
2293
|
tmp = _this__u8e3s4;
|
|
2385
2294
|
} else {
|
|
2386
|
-
var tmp_0 = _this__u8e3s4.
|
|
2295
|
+
var tmp_0 = _this__u8e3s4.a32();
|
|
2387
2296
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2388
2297
|
var tmp_1;
|
|
2389
2298
|
if (any(cutCandidates)) {
|
|
2390
2299
|
var tmp$ret$1;
|
|
2391
2300
|
$l$block: {
|
|
2392
2301
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2393
|
-
var tmp0_iterator = cutCandidates.
|
|
2394
|
-
while (tmp0_iterator.
|
|
2395
|
-
var element = tmp0_iterator.
|
|
2396
|
-
var tmp$ret$0;
|
|
2302
|
+
var tmp0_iterator = cutCandidates.r();
|
|
2303
|
+
while (tmp0_iterator.s()) {
|
|
2304
|
+
var element = tmp0_iterator.u();
|
|
2397
2305
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.performCut.<anonymous>' call
|
|
2398
|
-
|
|
2399
|
-
if (tmp$ret$0) {
|
|
2306
|
+
if (ensureNotNull(element.n31()).u30_1 <= cutLimit.t36()) {
|
|
2400
2307
|
tmp$ret$1 = element;
|
|
2401
2308
|
break $l$block;
|
|
2402
2309
|
}
|
|
@@ -2404,7 +2311,7 @@
|
|
|
2404
2311
|
tmp$ret$1 = null;
|
|
2405
2312
|
}
|
|
2406
2313
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
2407
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2314
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o31();
|
|
2408
2315
|
} else {
|
|
2409
2316
|
tmp_1 = _this__u8e3s4;
|
|
2410
2317
|
}
|
|
@@ -2414,65 +2321,52 @@
|
|
|
2414
2321
|
}
|
|
2415
2322
|
function _get_isTailRecursive__h5eso7(_this__u8e3s4, $this) {
|
|
2416
2323
|
var tmp;
|
|
2417
|
-
if (_this__u8e3s4.
|
|
2418
|
-
var tmp$ret$3;
|
|
2324
|
+
if (_this__u8e3s4.n30_1.wp().zp() ? equals(_this__u8e3s4.e30_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().i29_1) : false) {
|
|
2419
2325
|
// Inline function 'kotlin.let' call
|
|
2420
|
-
var tmp0_let = ensureNotNull(_this__u8e3s4.q2y());
|
|
2421
2326
|
// Inline function 'kotlin.contracts.contract' call
|
|
2422
|
-
var tmp$ret$2;
|
|
2423
2327
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>' call
|
|
2424
|
-
var tmp0_safe_receiver =
|
|
2328
|
+
var tmp0_safe_receiver = ensureNotNull(_this__u8e3s4.p33()).asStruct();
|
|
2425
2329
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver);
|
|
2426
2330
|
var tmp_0;
|
|
2427
2331
|
if (tmp1_safe_receiver == null) {
|
|
2428
2332
|
tmp_0 = null;
|
|
2429
2333
|
} else {
|
|
2430
|
-
var tmp$ret$1;
|
|
2431
2334
|
// Inline function 'kotlin.let' call
|
|
2432
2335
|
// Inline function 'kotlin.contracts.contract' call
|
|
2433
|
-
var tmp$ret$0;
|
|
2434
2336
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>.<anonymous>' call
|
|
2435
2337
|
var tmp_1;
|
|
2436
|
-
var tmp0_safe_receiver_0 = _this__u8e3s4.
|
|
2437
|
-
if (equals(
|
|
2438
|
-
tmp_1 = !equals(
|
|
2338
|
+
var tmp0_safe_receiver_0 = _this__u8e3s4.b30_1;
|
|
2339
|
+
if (tmp1_safe_receiver.equals(tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
|
|
2340
|
+
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_7().x36_1);
|
|
2439
2341
|
} else {
|
|
2440
2342
|
tmp_1 = false;
|
|
2441
2343
|
}
|
|
2442
|
-
|
|
2443
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2444
|
-
tmp_0 = tmp$ret$1;
|
|
2344
|
+
tmp_0 = tmp_1;
|
|
2445
2345
|
}
|
|
2446
2346
|
var tmp2_elvis_lhs = tmp_0;
|
|
2447
|
-
tmp
|
|
2448
|
-
tmp$ret$3 = tmp$ret$2;
|
|
2449
|
-
tmp = tmp$ret$3;
|
|
2347
|
+
tmp = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
2450
2348
|
} else {
|
|
2451
2349
|
tmp = false;
|
|
2452
2350
|
}
|
|
2453
2351
|
return tmp;
|
|
2454
2352
|
}
|
|
2455
2353
|
function selectClauses(_this__u8e3s4, $this, term) {
|
|
2456
|
-
var tmp$ret$1;
|
|
2457
2354
|
// Inline function 'kotlin.let' call
|
|
2458
2355
|
var tmp = _this__u8e3s4.getByHead(term);
|
|
2459
|
-
var tmp0_let = ensureRules(map(tmp, StateRuleSelection$selectClauses$lambda));
|
|
2460
2356
|
// Inline function 'kotlin.contracts.contract' call
|
|
2461
|
-
var tmp$ret$0;
|
|
2462
2357
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.selectClauses.<anonymous>' call
|
|
2358
|
+
var it = ensureRules(map(tmp, StateRuleSelection$selectClauses$lambda));
|
|
2463
2359
|
var tmp_0;
|
|
2464
|
-
if (_this__u8e3s4.
|
|
2465
|
-
tmp_0 = buffered(
|
|
2360
|
+
if (_this__u8e3s4.v1s()) {
|
|
2361
|
+
tmp_0 = buffered(it);
|
|
2466
2362
|
} else {
|
|
2467
|
-
tmp_0 =
|
|
2363
|
+
tmp_0 = it;
|
|
2468
2364
|
}
|
|
2469
|
-
|
|
2470
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2471
|
-
return tmp$ret$1;
|
|
2365
|
+
return tmp_0;
|
|
2472
2366
|
}
|
|
2473
2367
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2474
2368
|
return function (it) {
|
|
2475
|
-
return equals(ensureNotNull(it.
|
|
2369
|
+
return equals(ensureNotNull(it.n31()).b30_1, $cutLimit.f1v());
|
|
2476
2370
|
};
|
|
2477
2371
|
}
|
|
2478
2372
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
@@ -2481,34 +2375,32 @@
|
|
|
2481
2375
|
};
|
|
2482
2376
|
}
|
|
2483
2377
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2484
|
-
return it.
|
|
2378
|
+
return it.cv();
|
|
2485
2379
|
}
|
|
2486
2380
|
function StateRuleSelection(context) {
|
|
2487
|
-
|
|
2381
|
+
Companion_getInstance_7();
|
|
2488
2382
|
AbstractState.call(this, context);
|
|
2489
|
-
this.
|
|
2383
|
+
this.b37_1 = context;
|
|
2490
2384
|
}
|
|
2491
|
-
protoOf(StateRuleSelection).
|
|
2492
|
-
return this.
|
|
2385
|
+
protoOf(StateRuleSelection).mb = function () {
|
|
2386
|
+
return this.b37_1;
|
|
2493
2387
|
};
|
|
2494
|
-
protoOf(StateRuleSelection).
|
|
2495
|
-
var currentGoal = ensureNotNull(this.
|
|
2388
|
+
protoOf(StateRuleSelection).v34 = function () {
|
|
2389
|
+
var currentGoal = ensureNotNull(this.b37_1.p33());
|
|
2496
2390
|
var tmp;
|
|
2497
|
-
if (currentGoal.
|
|
2498
|
-
tmp = exceptionalState_0(this,
|
|
2499
|
-
} else if (currentGoal.
|
|
2500
|
-
var tmp$ret$5;
|
|
2391
|
+
if (currentGoal.vv()) {
|
|
2392
|
+
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.b37_1, extractSignature(ensureNotNull(this.b37_1.b30_1)), currentGoal.castToVar()));
|
|
2393
|
+
} else if (currentGoal.fv()) {
|
|
2501
2394
|
// Inline function 'kotlin.with' call
|
|
2502
|
-
var tmp0_with = this.c32_1;
|
|
2503
2395
|
// Inline function 'kotlin.contracts.contract' call
|
|
2504
|
-
var tmp$ret$4;
|
|
2505
2396
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>' call
|
|
2397
|
+
var $this$with = this.b37_1;
|
|
2506
2398
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2507
|
-
var ruleSources = sequenceOf([
|
|
2399
|
+
var ruleSources = sequenceOf([$this$with.d30_1.asTheory($this$with.c30_1), $this$with.f30_1, $this$with.g30_1]);
|
|
2508
2400
|
var tmp_0;
|
|
2509
|
-
if (currentGoalStruct.
|
|
2401
|
+
if (currentGoalStruct.wv()) {
|
|
2510
2402
|
var tmp_1;
|
|
2511
|
-
if (currentGoalStruct.
|
|
2403
|
+
if (currentGoalStruct.xu()) {
|
|
2512
2404
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2513
2405
|
} else {
|
|
2514
2406
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
@@ -2516,27 +2408,21 @@
|
|
|
2516
2408
|
tmp_0 = tmp_1;
|
|
2517
2409
|
} else {
|
|
2518
2410
|
if (isCut(currentGoalStruct, this)) {
|
|
2519
|
-
var cutLimit = computeCutLimit(
|
|
2520
|
-
var tmp$ret$1;
|
|
2411
|
+
var cutLimit = computeCutLimit($this$with, this, currentGoalStruct instanceof MagicCut);
|
|
2521
2412
|
// Inline function 'kotlin.let' call
|
|
2522
|
-
var tmp0_let = _get_ignoreState__t4wl8y(this);
|
|
2523
2413
|
// Inline function 'kotlin.contracts.contract' call
|
|
2524
|
-
var tmp$ret$0;
|
|
2525
2414
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
tmp_0 = tmp$ret$1;
|
|
2415
|
+
var it = _get_ignoreState__t4wl8y(this);
|
|
2416
|
+
tmp_0 = it.j35(it.y35_1.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(it.y35_1.s30_1, this, cutLimit)));
|
|
2529
2417
|
} else {
|
|
2530
2418
|
var tmp$ret$3;
|
|
2531
2419
|
$l$block: {
|
|
2532
2420
|
// Inline function 'kotlin.sequences.any' call
|
|
2533
|
-
var tmp0_iterator = ruleSources.
|
|
2534
|
-
while (tmp0_iterator.
|
|
2535
|
-
var element = tmp0_iterator.
|
|
2536
|
-
var tmp$ret$2;
|
|
2421
|
+
var tmp0_iterator = ruleSources.r();
|
|
2422
|
+
while (tmp0_iterator.s()) {
|
|
2423
|
+
var element = tmp0_iterator.u();
|
|
2537
2424
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
|
|
2538
|
-
|
|
2539
|
-
if (tmp$ret$2) {
|
|
2425
|
+
if (element.containsHead(currentGoalStruct)) {
|
|
2540
2426
|
tmp$ret$3 = true;
|
|
2541
2427
|
break $l$block;
|
|
2542
2428
|
}
|
|
@@ -2546,10 +2432,10 @@
|
|
|
2546
2432
|
if (tmp$ret$3) {
|
|
2547
2433
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2548
2434
|
var tmp_2;
|
|
2549
|
-
if (_get_isTailRecursive__h5eso7(this.
|
|
2550
|
-
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.
|
|
2435
|
+
if (_get_isTailRecursive__h5eso7(this.b37_1, this)) {
|
|
2436
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.b37_1, rules));
|
|
2551
2437
|
} else {
|
|
2552
|
-
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.
|
|
2438
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.b37_1, rules));
|
|
2553
2439
|
}
|
|
2554
2440
|
tmp_0 = tmp_2;
|
|
2555
2441
|
} else {
|
|
@@ -2557,25 +2443,23 @@
|
|
|
2557
2443
|
}
|
|
2558
2444
|
}
|
|
2559
2445
|
}
|
|
2560
|
-
tmp
|
|
2561
|
-
tmp$ret$5 = tmp$ret$4;
|
|
2562
|
-
tmp = tmp$ret$5;
|
|
2446
|
+
tmp = tmp_0;
|
|
2563
2447
|
} else {
|
|
2564
|
-
tmp = exceptionalState_0(this,
|
|
2448
|
+
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.b37_1, extractSignature(ensureNotNull(this.b37_1.b30_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2565
2449
|
}
|
|
2566
2450
|
return tmp;
|
|
2567
2451
|
};
|
|
2568
|
-
protoOf(StateRuleSelection).
|
|
2569
|
-
return this.
|
|
2452
|
+
protoOf(StateRuleSelection).a35 = function (context) {
|
|
2453
|
+
return this.j35(context);
|
|
2570
2454
|
};
|
|
2571
|
-
protoOf(StateRuleSelection).
|
|
2455
|
+
protoOf(StateRuleSelection).j35 = function (context) {
|
|
2572
2456
|
return new StateRuleSelection(context);
|
|
2573
2457
|
};
|
|
2574
2458
|
protoOf(StateRuleSelection).toString = function () {
|
|
2575
|
-
return 'StateRuleSelection(context=' + this.
|
|
2459
|
+
return 'StateRuleSelection(context=' + this.b37_1 + ')';
|
|
2576
2460
|
};
|
|
2577
2461
|
protoOf(StateRuleSelection).hashCode = function () {
|
|
2578
|
-
return this.
|
|
2462
|
+
return this.b37_1.hashCode();
|
|
2579
2463
|
};
|
|
2580
2464
|
protoOf(StateRuleSelection).equals = function (other) {
|
|
2581
2465
|
if (this === other)
|
|
@@ -2583,19 +2467,19 @@
|
|
|
2583
2467
|
if (!(other instanceof StateRuleSelection))
|
|
2584
2468
|
return false;
|
|
2585
2469
|
var tmp0_other_with_cast = other instanceof StateRuleSelection ? other : THROW_CCE();
|
|
2586
|
-
if (!this.
|
|
2470
|
+
if (!this.b37_1.equals(tmp0_other_with_cast.b37_1))
|
|
2587
2471
|
return false;
|
|
2588
2472
|
return true;
|
|
2589
2473
|
};
|
|
2590
2474
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2591
2475
|
var tmp;
|
|
2592
|
-
if (rules.
|
|
2593
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2476
|
+
if (rules.yp()) {
|
|
2477
|
+
tmp = appendRules(_this__u8e3s4.s30_1, rules.wp(), _this__u8e3s4);
|
|
2594
2478
|
} else {
|
|
2595
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2479
|
+
tmp = appendRules(_this__u8e3s4.s30_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2596
2480
|
}
|
|
2597
2481
|
var newChoicePointContext = tmp;
|
|
2598
|
-
return _this__u8e3s4.
|
|
2482
|
+
return _this__u8e3s4.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2599
2483
|
}
|
|
2600
2484
|
function toGoals(_this__u8e3s4) {
|
|
2601
2485
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2603,8 +2487,8 @@
|
|
|
2603
2487
|
}
|
|
2604
2488
|
function unfoldGoals(_this__u8e3s4) {
|
|
2605
2489
|
var tmp;
|
|
2606
|
-
if (_this__u8e3s4.
|
|
2607
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2490
|
+
if (_this__u8e3s4.kv()) {
|
|
2491
|
+
var tmp_0 = _this__u8e3s4.castToTuple().pt();
|
|
2608
2492
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2609
2493
|
} else {
|
|
2610
2494
|
tmp = sequenceOf([_this__u8e3s4]);
|
|
@@ -2613,30 +2497,27 @@
|
|
|
2613
2497
|
}
|
|
2614
2498
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2615
2499
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2616
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2500
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.p33()).castToStruct();
|
|
2617
2501
|
var tmp0_goals = toGoals(currentGoal);
|
|
2618
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2619
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2620
|
-
var tmp$ret$0;
|
|
2502
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.b30_1;
|
|
2503
|
+
var tmp2_depth = _this__u8e3s4.u30_1 + 1 | 0;
|
|
2621
2504
|
// Inline function 'kotlin.Long.plus' call
|
|
2622
|
-
var
|
|
2623
|
-
tmp$ret$0 = tmp0_plus.sf(new Long(1, 0));
|
|
2624
|
-
var tmp3_step = tmp$ret$0;
|
|
2505
|
+
var tmp3_step = _this__u8e3s4.v30_1.la(toLong(1));
|
|
2625
2506
|
var tmp4_relevantVariables = emptySet();
|
|
2626
|
-
return _this__u8e3s4.
|
|
2507
|
+
return _this__u8e3s4.s31(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);
|
|
2627
2508
|
}
|
|
2628
2509
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2629
|
-
return new Request(signature, goal.
|
|
2510
|
+
return new Request(signature, goal.av(), _this__u8e3s4, startTime);
|
|
2630
2511
|
}
|
|
2631
2512
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2632
2513
|
var tmp;
|
|
2633
|
-
if (primitiveExecutions.
|
|
2634
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2514
|
+
if (primitiveExecutions.yp()) {
|
|
2515
|
+
tmp = appendPrimitives(_this__u8e3s4.s30_1, primitiveExecutions.wp(), _this__u8e3s4);
|
|
2635
2516
|
} else {
|
|
2636
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2517
|
+
tmp = appendPrimitives(_this__u8e3s4.s30_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2637
2518
|
}
|
|
2638
2519
|
var newChoicePointContext = tmp;
|
|
2639
|
-
return _this__u8e3s4.
|
|
2520
|
+
return _this__u8e3s4.s31(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2640
2521
|
}
|
|
2641
2522
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2642
2523
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
@@ -2653,87 +2534,76 @@
|
|
|
2653
2534
|
}
|
|
2654
2535
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2655
2536
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2656
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2537
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.p33()).castToStruct();
|
|
2657
2538
|
var tmp0_goals = toGoals(currentGoal);
|
|
2658
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2659
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2660
|
-
var tmp$ret$0;
|
|
2539
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.b30_1;
|
|
2540
|
+
var tmp2_depth = _this__u8e3s4.u30_1 + 1 | 0;
|
|
2661
2541
|
// Inline function 'kotlin.Long.plus' call
|
|
2662
|
-
var
|
|
2663
|
-
|
|
2664
|
-
var tmp3_step = tmp$ret$0;
|
|
2665
|
-
return _this__u8e3s4.t2w(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);
|
|
2542
|
+
var tmp3_step = _this__u8e3s4.v30_1.la(toLong(1));
|
|
2543
|
+
return _this__u8e3s4.s31(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);
|
|
2666
2544
|
}
|
|
2667
2545
|
function toGoals$lambda(it) {
|
|
2668
|
-
return it.
|
|
2546
|
+
return it.vv() ? Companion_getInstance_1().of('call', [it]) : it;
|
|
2669
2547
|
}
|
|
2670
2548
|
function unfoldGoals$lambda(it) {
|
|
2671
2549
|
return unfoldGoals(it);
|
|
2672
2550
|
}
|
|
2673
2551
|
function ensureRules$lambda(it) {
|
|
2674
2552
|
// Inline function 'kotlin.require' call
|
|
2675
|
-
var tmp0_require = it.wt();
|
|
2676
2553
|
// Inline function 'kotlin.contracts.contract' call
|
|
2677
2554
|
// Inline function 'kotlin.require' call
|
|
2678
2555
|
// Inline function 'kotlin.contracts.contract' call
|
|
2679
|
-
if (!
|
|
2680
|
-
var tmp$ret$0;
|
|
2556
|
+
if (!it.hv()) {
|
|
2681
2557
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
2682
|
-
|
|
2683
|
-
var message = tmp$ret$0;
|
|
2558
|
+
var message = 'Failed requirement.';
|
|
2684
2559
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2685
2560
|
}
|
|
2686
2561
|
return it.castToRule();
|
|
2687
2562
|
}
|
|
2688
2563
|
function AbstractSolutionIterator(state) {
|
|
2689
|
-
this.
|
|
2690
|
-
this.
|
|
2564
|
+
this.c37_1 = state;
|
|
2565
|
+
this.d37_1 = new Long(0, 0);
|
|
2691
2566
|
}
|
|
2692
|
-
protoOf(AbstractSolutionIterator).
|
|
2693
|
-
var tmp$ret$1;
|
|
2567
|
+
protoOf(AbstractSolutionIterator).s = function () {
|
|
2694
2568
|
// Inline function 'kotlin.let' call
|
|
2695
|
-
var tmp0_let = this.d32_1;
|
|
2696
2569
|
// Inline function 'kotlin.contracts.contract' call
|
|
2697
|
-
var tmp$ret$0;
|
|
2698
2570
|
// Inline function 'it.unibo.tuprolog.solve.classic.impl.AbstractSolutionIterator.hasNext.<anonymous>' call
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
return tmp$ret$1;
|
|
2571
|
+
var it = this.c37_1;
|
|
2572
|
+
return !it.w34() ? true : it.castToEndState().z31();
|
|
2702
2573
|
};
|
|
2703
|
-
protoOf(AbstractSolutionIterator).
|
|
2574
|
+
protoOf(AbstractSolutionIterator).u = function () {
|
|
2704
2575
|
do {
|
|
2705
|
-
var previousState = this.
|
|
2576
|
+
var previousState = this.c37_1;
|
|
2706
2577
|
var tmp = this;
|
|
2707
|
-
var tmp_0 = this.
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
this.onStateTransition(previousState, this.d32_1, this.e32_1);
|
|
2578
|
+
var tmp_0 = this.c37_1;
|
|
2579
|
+
this.d37_1 = this.d37_1.qa();
|
|
2580
|
+
tmp.c37_1 = this.e37(tmp_0, this.d37_1);
|
|
2581
|
+
this.onStateTransition(previousState, this.c37_1, this.d37_1);
|
|
2712
2582
|
}
|
|
2713
|
-
while (!this.
|
|
2714
|
-
return this.
|
|
2583
|
+
while (!this.c37_1.w34());
|
|
2584
|
+
return this.c37_1.castToEndState().q2i().cleanUp();
|
|
2715
2585
|
};
|
|
2716
2586
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2717
2587
|
AbstractSolutionIterator.call(this, state);
|
|
2718
|
-
this.
|
|
2588
|
+
this.h37_1 = onStateTransitionCallback;
|
|
2719
2589
|
}
|
|
2720
|
-
protoOf(SimpleSolutionIterator).
|
|
2590
|
+
protoOf(SimpleSolutionIterator).e37 = function (state, step) {
|
|
2721
2591
|
return state.next();
|
|
2722
2592
|
};
|
|
2723
|
-
protoOf(SimpleSolutionIterator).
|
|
2724
|
-
return this.
|
|
2593
|
+
protoOf(SimpleSolutionIterator).i37 = function (source, destination, index) {
|
|
2594
|
+
return this.h37_1(source, destination, index);
|
|
2725
2595
|
};
|
|
2726
2596
|
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2727
|
-
return this.
|
|
2597
|
+
return this.i37(source, destination, index);
|
|
2728
2598
|
};
|
|
2729
2599
|
function DefaultBuiltins() {
|
|
2730
2600
|
DefaultBuiltins_instance = this;
|
|
2731
2601
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2732
2602
|
}
|
|
2733
|
-
protoOf(DefaultBuiltins).
|
|
2603
|
+
protoOf(DefaultBuiltins).a2f = function () {
|
|
2734
2604
|
return listOf(Throw_getInstance());
|
|
2735
2605
|
};
|
|
2736
|
-
protoOf(DefaultBuiltins).
|
|
2606
|
+
protoOf(DefaultBuiltins).z2e = function () {
|
|
2737
2607
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
2738
2608
|
};
|
|
2739
2609
|
var DefaultBuiltins_instance;
|
|
@@ -2747,22 +2617,22 @@
|
|
|
2747
2617
|
var tmp_0;
|
|
2748
2618
|
var tmp_1;
|
|
2749
2619
|
if (isInterface(error, Struct)) {
|
|
2750
|
-
tmp_1 = error.
|
|
2620
|
+
tmp_1 = error.zu() === 'error';
|
|
2751
2621
|
} else {
|
|
2752
2622
|
tmp_1 = false;
|
|
2753
2623
|
}
|
|
2754
2624
|
if (tmp_1) {
|
|
2755
|
-
var containsArg = error.
|
|
2625
|
+
var containsArg = error.tu();
|
|
2756
2626
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
2757
2627
|
} else {
|
|
2758
2628
|
tmp_0 = false;
|
|
2759
2629
|
}
|
|
2760
2630
|
if (tmp_0) {
|
|
2761
|
-
var tmp_2 =
|
|
2631
|
+
var tmp_2 = Companion_instance_14;
|
|
2762
2632
|
var tmp_3 = error.get(0);
|
|
2763
|
-
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.
|
|
2633
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.tu() > 1 ? error.get(1) : null);
|
|
2764
2634
|
} else {
|
|
2765
|
-
tmp =
|
|
2635
|
+
tmp = Companion_instance_13.d27(error, context);
|
|
2766
2636
|
}
|
|
2767
2637
|
return tmp;
|
|
2768
2638
|
}
|
|
@@ -2770,11 +2640,11 @@
|
|
|
2770
2640
|
Throw_instance = this;
|
|
2771
2641
|
UnaryPredicate.call(this, 'throw');
|
|
2772
2642
|
}
|
|
2773
|
-
protoOf(Throw).
|
|
2774
|
-
return sequenceOf([
|
|
2643
|
+
protoOf(Throw).j2p = function (_this__u8e3s4, first) {
|
|
2644
|
+
return sequenceOf([Companion_getInstance_5().b2g(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.d1(0)), VOID, [])]);
|
|
2775
2645
|
};
|
|
2776
|
-
protoOf(Throw).
|
|
2777
|
-
return this.
|
|
2646
|
+
protoOf(Throw).h2j = function (_this__u8e3s4, first) {
|
|
2647
|
+
return this.j2p(_this__u8e3s4, first);
|
|
2778
2648
|
};
|
|
2779
2649
|
var Throw_instance;
|
|
2780
2650
|
function Throw_getInstance() {
|
|
@@ -2786,14 +2656,12 @@
|
|
|
2786
2656
|
Call_instance = this;
|
|
2787
2657
|
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
2788
2658
|
}
|
|
2789
|
-
protoOf(Call).
|
|
2790
|
-
return
|
|
2659
|
+
protoOf(Call).n2j = function (_this__u8e3s4) {
|
|
2660
|
+
return listOf(_this__u8e3s4.varOf('G'));
|
|
2791
2661
|
};
|
|
2792
|
-
protoOf(Call).
|
|
2793
|
-
var tmp$ret$0;
|
|
2662
|
+
protoOf(Call).o2j = function (_this__u8e3s4) {
|
|
2794
2663
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2795
|
-
var
|
|
2796
|
-
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
2664
|
+
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2797
2665
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('G')]), _this__u8e3s4.varOf('G')]);
|
|
2798
2666
|
};
|
|
2799
2667
|
var Call_instance;
|
|
@@ -2806,10 +2674,10 @@
|
|
|
2806
2674
|
Catch_instance = this;
|
|
2807
2675
|
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2808
2676
|
}
|
|
2809
|
-
protoOf(Catch).
|
|
2810
|
-
return
|
|
2677
|
+
protoOf(Catch).n2j = function (_this__u8e3s4) {
|
|
2678
|
+
return listOf_0([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
2811
2679
|
};
|
|
2812
|
-
protoOf(Catch).
|
|
2680
|
+
protoOf(Catch).o2j = function (_this__u8e3s4) {
|
|
2813
2681
|
return _this__u8e3s4.varOf('G');
|
|
2814
2682
|
};
|
|
2815
2683
|
var Catch_instance;
|
|
@@ -2822,10 +2690,10 @@
|
|
|
2822
2690
|
Comma_instance = this;
|
|
2823
2691
|
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
2824
2692
|
}
|
|
2825
|
-
protoOf(Comma).
|
|
2826
|
-
return
|
|
2693
|
+
protoOf(Comma).n2j = function (_this__u8e3s4) {
|
|
2694
|
+
return listOf_0([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2827
2695
|
};
|
|
2828
|
-
protoOf(Comma).
|
|
2696
|
+
protoOf(Comma).o2j = function (_this__u8e3s4) {
|
|
2829
2697
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2830
2698
|
};
|
|
2831
2699
|
var Comma_instance;
|
|
@@ -2848,16 +2716,12 @@
|
|
|
2848
2716
|
Fail_instance = this;
|
|
2849
2717
|
NegationAsFailure.call(this);
|
|
2850
2718
|
}
|
|
2851
|
-
protoOf(Fail).
|
|
2852
|
-
var tmp$ret$0;
|
|
2719
|
+
protoOf(Fail).o2j = function (_this__u8e3s4) {
|
|
2853
2720
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2854
|
-
var
|
|
2855
|
-
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
2721
|
+
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2856
2722
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('X')]);
|
|
2857
|
-
var tmp$ret$1;
|
|
2858
2723
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2859
|
-
var
|
|
2860
|
-
tmp$ret$1 = tmp1__get_functor__4k11yf.signature.name;
|
|
2724
|
+
var tmp$ret$1 = Call_getInstance().signature.name;
|
|
2861
2725
|
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$1, [_this__u8e3s4.varOf('X')]), MagicCut_getInstance(), _this__u8e3s4.truthOf(false)]);
|
|
2862
2726
|
};
|
|
2863
2727
|
var Fail_instance;
|
|
@@ -2870,7 +2734,7 @@
|
|
|
2870
2734
|
Success_instance = this;
|
|
2871
2735
|
NegationAsFailure.call(this);
|
|
2872
2736
|
}
|
|
2873
|
-
protoOf(Success).
|
|
2737
|
+
protoOf(Success).o2j = function (_this__u8e3s4) {
|
|
2874
2738
|
return _this__u8e3s4.truthOf(true);
|
|
2875
2739
|
};
|
|
2876
2740
|
var Success_instance;
|
|
@@ -2880,155 +2744,66 @@
|
|
|
2880
2744
|
return Success_instance;
|
|
2881
2745
|
}
|
|
2882
2746
|
function Companion_1() {
|
|
2883
|
-
|
|
2884
|
-
this.
|
|
2885
|
-
this.k33_1 = 1;
|
|
2747
|
+
this.i38_1 = '\\+';
|
|
2748
|
+
this.j38_1 = 1;
|
|
2886
2749
|
}
|
|
2887
|
-
var
|
|
2888
|
-
function
|
|
2889
|
-
|
|
2890
|
-
new Companion_1();
|
|
2891
|
-
return Companion_instance_1;
|
|
2750
|
+
var Companion_instance_17;
|
|
2751
|
+
function Companion_getInstance_8() {
|
|
2752
|
+
return Companion_instance_17;
|
|
2892
2753
|
}
|
|
2893
2754
|
function NegationAsFailure() {
|
|
2894
|
-
Companion_getInstance_24();
|
|
2895
|
-
Companion_getInstance_24();
|
|
2896
|
-
Companion_getInstance_24();
|
|
2897
2755
|
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2898
2756
|
}
|
|
2899
|
-
protoOf(NegationAsFailure).
|
|
2900
|
-
return
|
|
2757
|
+
protoOf(NegationAsFailure).n2j = function (_this__u8e3s4) {
|
|
2758
|
+
return listOf(_this__u8e3s4.varOf('X'));
|
|
2901
2759
|
};
|
|
2902
2760
|
//region block: post-declaration
|
|
2903
|
-
protoOf(AbstractClassicSolver).copy = copy;
|
|
2904
|
-
protoOf(AbstractClassicSolver).solveWithTimeout = solveWithTimeout;
|
|
2905
|
-
protoOf(AbstractClassicSolver).solve = solve;
|
|
2906
|
-
protoOf(AbstractClassicSolver).solveListWithTimeout = solveListWithTimeout;
|
|
2907
|
-
protoOf(AbstractClassicSolver).solveList = solveList;
|
|
2908
|
-
protoOf(AbstractClassicSolver).solveListWithOptions = solveListWithOptions;
|
|
2909
|
-
protoOf(AbstractClassicSolver).solveOnceWithTimeout = solveOnceWithTimeout;
|
|
2910
|
-
protoOf(AbstractClassicSolver).solveOnce = solveOnce;
|
|
2911
|
-
protoOf(AbstractClassicSolver).solveOnceWithOptions = solveOnceWithOptions;
|
|
2912
|
-
protoOf(AbstractClassicSolver).z1r = get_standardInput;
|
|
2913
|
-
protoOf(AbstractClassicSolver).b1s = get_standardOutput;
|
|
2914
|
-
protoOf(AbstractClassicSolver).d1s = get_standardError;
|
|
2915
|
-
protoOf(AbstractClassicSolver).f1s = get_warnings;
|
|
2916
2761
|
protoOf(ClassicExecutionContext).createSolver = createSolver;
|
|
2762
|
+
protoOf(ClassicExecutionContext).createMutableSolver = createMutableSolver;
|
|
2917
2763
|
protoOf(ClassicExecutionContext).update = update;
|
|
2918
|
-
protoOf(ClassicExecutionContext).
|
|
2919
|
-
protoOf(ClassicExecutionContext).
|
|
2920
|
-
protoOf(ClassicExecutionContext).
|
|
2921
|
-
protoOf(ClassicExecutionContext).
|
|
2922
|
-
protoOf(ClassicExecutionContext).
|
|
2923
|
-
protoOf(ClassicExecutionContext).
|
|
2924
|
-
protoOf(ClassicExecutionContext).
|
|
2925
|
-
protoOf(ClassicSolver).copy = copy;
|
|
2926
|
-
protoOf(ClassicSolver).solveWithTimeout = solveWithTimeout;
|
|
2927
|
-
protoOf(ClassicSolver).solve = solve;
|
|
2928
|
-
protoOf(ClassicSolver).solveListWithTimeout = solveListWithTimeout;
|
|
2929
|
-
protoOf(ClassicSolver).solveList = solveList;
|
|
2930
|
-
protoOf(ClassicSolver).solveListWithOptions = solveListWithOptions;
|
|
2931
|
-
protoOf(ClassicSolver).solveOnceWithTimeout = solveOnceWithTimeout;
|
|
2932
|
-
protoOf(ClassicSolver).solveOnce = solveOnce;
|
|
2933
|
-
protoOf(ClassicSolver).solveOnceWithOptions = solveOnceWithOptions;
|
|
2934
|
-
protoOf(ClassicSolver).z1r = get_standardInput;
|
|
2935
|
-
protoOf(ClassicSolver).b1s = get_standardOutput;
|
|
2936
|
-
protoOf(ClassicSolver).d1s = get_standardError;
|
|
2937
|
-
protoOf(ClassicSolver).f1s = get_warnings;
|
|
2764
|
+
protoOf(ClassicExecutionContext).u1v = get_standardInput;
|
|
2765
|
+
protoOf(ClassicExecutionContext).v1v = get_standardOutput;
|
|
2766
|
+
protoOf(ClassicExecutionContext).w1v = get_standardError;
|
|
2767
|
+
protoOf(ClassicExecutionContext).x1v = get_warnings;
|
|
2768
|
+
protoOf(ClassicExecutionContext).b1v = get_endTime;
|
|
2769
|
+
protoOf(ClassicExecutionContext).d1v = get_remainingTime;
|
|
2770
|
+
protoOf(ClassicExecutionContext).e1v = get_elapsedTime;
|
|
2938
2771
|
protoOf(ClassicSolverFactory).rawSolverOf = rawSolverOf;
|
|
2939
2772
|
protoOf(ClassicSolverFactory).solverOf = solverOf;
|
|
2940
2773
|
protoOf(ClassicSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2941
2774
|
protoOf(ClassicSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2942
2775
|
protoOf(ClassicSolverFactory).newBuilder = newBuilder;
|
|
2943
|
-
protoOf(ClassicSolverFactory).
|
|
2944
|
-
protoOf(ClassicSolverFactory).
|
|
2945
|
-
protoOf(ClassicSolverFactory).
|
|
2946
|
-
protoOf(ClassicSolverFactory).
|
|
2947
|
-
protoOf(ClassicSolverFactory).
|
|
2948
|
-
protoOf(ClassicSolverFactory).
|
|
2949
|
-
protoOf(ClassicSolverFactory).
|
|
2950
|
-
protoOf(ClassicSolverFactory).
|
|
2951
|
-
protoOf(ClassicSolverFactory).
|
|
2952
|
-
protoOf(ClassicSolverFactory).
|
|
2776
|
+
protoOf(ClassicSolverFactory).j1y = get_defaultRuntime;
|
|
2777
|
+
protoOf(ClassicSolverFactory).l1y = get_defaultUnificator;
|
|
2778
|
+
protoOf(ClassicSolverFactory).m1y = get_defaultFlags;
|
|
2779
|
+
protoOf(ClassicSolverFactory).p1y = get_defaultStaticKb;
|
|
2780
|
+
protoOf(ClassicSolverFactory).q1y = get_defaultDynamicKb;
|
|
2781
|
+
protoOf(ClassicSolverFactory).r1y = get_defaultInputChannel;
|
|
2782
|
+
protoOf(ClassicSolverFactory).s1y = get_defaultOutputChannel;
|
|
2783
|
+
protoOf(ClassicSolverFactory).t1y = get_defaultErrorChannel;
|
|
2784
|
+
protoOf(ClassicSolverFactory).u1y = get_defaultWarningsChannel;
|
|
2785
|
+
protoOf(ClassicSolverFactory).c1z = solverWithDefaultBuiltins;
|
|
2953
2786
|
protoOf(ClassicSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2954
|
-
protoOf(ClassicSolverFactory).
|
|
2787
|
+
protoOf(ClassicSolverFactory).e1z = mutableSolverWithDefaultBuiltins;
|
|
2955
2788
|
protoOf(ClassicSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2956
|
-
protoOf(MutableClassicSolver).copy = copy;
|
|
2957
|
-
protoOf(MutableClassicSolver).solveWithTimeout = solveWithTimeout;
|
|
2958
|
-
protoOf(MutableClassicSolver).solve = solve;
|
|
2959
|
-
protoOf(MutableClassicSolver).solveListWithTimeout = solveListWithTimeout;
|
|
2960
|
-
protoOf(MutableClassicSolver).solveList = solveList;
|
|
2961
|
-
protoOf(MutableClassicSolver).solveListWithOptions = solveListWithOptions;
|
|
2962
|
-
protoOf(MutableClassicSolver).solveOnceWithTimeout = solveOnceWithTimeout;
|
|
2963
|
-
protoOf(MutableClassicSolver).solveOnce = solveOnce;
|
|
2964
|
-
protoOf(MutableClassicSolver).solveOnceWithOptions = solveOnceWithOptions;
|
|
2965
|
-
protoOf(MutableClassicSolver).z1r = get_standardInput;
|
|
2966
|
-
protoOf(MutableClassicSolver).b1s = get_standardOutput;
|
|
2967
|
-
protoOf(MutableClassicSolver).d1s = get_standardError;
|
|
2968
|
-
protoOf(MutableClassicSolver).f1s = get_warnings;
|
|
2969
2789
|
protoOf(MutableClassicSolver).loadStaticClauses = loadStaticClauses;
|
|
2970
2790
|
protoOf(MutableClassicSolver).loadStaticClausesIterable = loadStaticClausesIterable;
|
|
2971
2791
|
protoOf(MutableClassicSolver).loadStaticClausesSequence = loadStaticClausesSequence;
|
|
2972
2792
|
protoOf(MutableClassicSolver).loadDynamicClauses = loadDynamicClauses;
|
|
2973
2793
|
protoOf(MutableClassicSolver).loadDynamicClausesIterable = loadDynamicClausesIterable;
|
|
2974
2794
|
protoOf(MutableClassicSolver).loadDynamicClausesSequence = loadDynamicClausesSequence;
|
|
2975
|
-
protoOf(AbstractState).
|
|
2795
|
+
protoOf(AbstractState).w34 = get_isEndState;
|
|
2976
2796
|
protoOf(AbstractState).asEndState = asEndState;
|
|
2977
2797
|
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2978
2798
|
protoOf(AbstractState).clone = clone;
|
|
2979
|
-
protoOf(AbstractEndState).
|
|
2980
|
-
protoOf(AbstractEndState).
|
|
2981
|
-
protoOf(AbstractEndState).
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
protoOf(StateBacktracking).castToEndState = castToEndState;
|
|
2988
|
-
protoOf(StateEnd).clone = clone;
|
|
2989
|
-
protoOf(StateEnd).a2x = get_hasOpenAlternatives;
|
|
2990
|
-
protoOf(StateEnd).x2z = get_isEndState_0;
|
|
2991
|
-
protoOf(StateEnd).y2z = asEndState_0;
|
|
2992
|
-
protoOf(StateEnd).castToEndState = castToEndState;
|
|
2993
|
-
protoOf(StateException).clone = clone;
|
|
2994
|
-
protoOf(StateException).x2z = get_isEndState;
|
|
2995
|
-
protoOf(StateException).asEndState = asEndState;
|
|
2996
|
-
protoOf(StateException).castToEndState = castToEndState;
|
|
2997
|
-
protoOf(StateGoalSelection).clone = clone;
|
|
2998
|
-
protoOf(StateGoalSelection).x2z = get_isEndState;
|
|
2999
|
-
protoOf(StateGoalSelection).asEndState = asEndState;
|
|
3000
|
-
protoOf(StateGoalSelection).castToEndState = castToEndState;
|
|
3001
|
-
protoOf(StateHalt).clone = clone;
|
|
3002
|
-
protoOf(StateHalt).x2z = get_isEndState_0;
|
|
3003
|
-
protoOf(StateHalt).y2z = asEndState_0;
|
|
3004
|
-
protoOf(StateHalt).castToEndState = castToEndState;
|
|
3005
|
-
protoOf(StateHalt).a2x = get_hasOpenAlternatives;
|
|
3006
|
-
protoOf(StateInit).clone = clone;
|
|
3007
|
-
protoOf(StateInit).x2z = get_isEndState;
|
|
3008
|
-
protoOf(StateInit).asEndState = asEndState;
|
|
3009
|
-
protoOf(StateInit).castToEndState = castToEndState;
|
|
3010
|
-
protoOf(StatePrimitiveExecution).clone = clone;
|
|
3011
|
-
protoOf(StatePrimitiveExecution).x2z = get_isEndState;
|
|
3012
|
-
protoOf(StatePrimitiveExecution).asEndState = asEndState;
|
|
3013
|
-
protoOf(StatePrimitiveExecution).castToEndState = castToEndState;
|
|
3014
|
-
protoOf(StatePrimitiveSelection).clone = clone;
|
|
3015
|
-
protoOf(StatePrimitiveSelection).x2z = get_isEndState;
|
|
3016
|
-
protoOf(StatePrimitiveSelection).asEndState = asEndState;
|
|
3017
|
-
protoOf(StatePrimitiveSelection).castToEndState = castToEndState;
|
|
3018
|
-
protoOf(StateRuleExecution).clone = clone;
|
|
3019
|
-
protoOf(StateRuleExecution).x2z = get_isEndState;
|
|
3020
|
-
protoOf(StateRuleExecution).asEndState = asEndState;
|
|
3021
|
-
protoOf(StateRuleExecution).castToEndState = castToEndState;
|
|
3022
|
-
protoOf(StateRuleSelection).clone = clone;
|
|
3023
|
-
protoOf(StateRuleSelection).x2z = get_isEndState;
|
|
3024
|
-
protoOf(StateRuleSelection).asEndState = asEndState;
|
|
3025
|
-
protoOf(StateRuleSelection).castToEndState = castToEndState;
|
|
3026
|
-
protoOf(DefaultBuiltins).containsSignature = containsSignature;
|
|
3027
|
-
protoOf(DefaultBuiltins).containsOperator = containsOperator;
|
|
3028
|
-
protoOf(DefaultBuiltins).hasPrimitive = hasPrimitive;
|
|
3029
|
-
protoOf(DefaultBuiltins).hasFunction = hasFunction;
|
|
3030
|
-
protoOf(DefaultBuiltins).g2a = get_ruleSignatures;
|
|
3031
|
-
protoOf(DefaultBuiltins).hasProtected = hasProtected;
|
|
2799
|
+
protoOf(AbstractEndState).z31 = get_hasOpenAlternatives;
|
|
2800
|
+
protoOf(AbstractEndState).w34 = get_isEndState_0;
|
|
2801
|
+
protoOf(AbstractEndState).x34 = asEndState_0;
|
|
2802
|
+
//endregion
|
|
2803
|
+
//region block: init
|
|
2804
|
+
ClassicSolverFactory_instance = new ClassicSolverFactory();
|
|
2805
|
+
Companion_instance_15 = new Companion();
|
|
2806
|
+
Companion_instance_17 = new Companion_1();
|
|
3032
2807
|
//endregion
|
|
3033
2808
|
//region block: exports
|
|
3034
2809
|
function $jsExportAll$(_) {
|
|
@@ -3041,6 +2816,8 @@
|
|
|
3041
2816
|
}
|
|
3042
2817
|
$jsExportAll$(_);
|
|
3043
2818
|
_.$jsExportAll$ = $jsExportAll$;
|
|
2819
|
+
_.$_$ = _.$_$ || {};
|
|
2820
|
+
_.$_$.a = ClassicSolverFactory_instance;
|
|
3044
2821
|
//endregion
|
|
3045
2822
|
return _;
|
|
3046
2823
|
}));
|