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