@tuprolog/2p-full 0.31.5-dev0c → 0.31.5-dev0n
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 +234 -229
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +5618 -6238
- package/2p-core.js.map +1 -1
- package/2p-datalog.js +9 -2
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js +9 -2
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +9 -2
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +9 -2
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +9 -2
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +26 -3
- package/2p-full.js.map +1 -1
- package/2p-io-lib.js +931 -954
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1308 -1337
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +364 -368
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +14 -3
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +66 -41
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +183 -181
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js +9 -2
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js +9 -2
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1408 -1680
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js +9 -2
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +19 -5
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1880 -1915
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1251 -1343
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5397 -5851
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1800 -1796
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +371 -372
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +555 -517
- package/2p-utils.js.map +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/clikt-clikt-js-ir.js +2208 -2427
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +3030 -3127
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/kt-math.js +3196 -2832
- package/kt-math.js.map +1 -1
- package/package.json +56 -2
- package/2p-full.d.ts +0 -270
package/2p-solve-classic.js
CHANGED
|
@@ -1,23 +1,56 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './2p-unify.js', './kotlin-kotlin-stdlib-js-ir.js', './2p-solve.js', './2p-theory.js', './2p-utils.js', './2p-core.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./2p-unify.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./2p-solve.js'), require('./2p-theory.js'), require('./2p-utils.js'), require('./2p-core.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['2p-unify'] === 'undefined') {
|
|
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
|
+
}
|
|
10
|
+
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module '2p-solve-classic'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '2p-solve-classic'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof this['2p-solve'] === 'undefined') {
|
|
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'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof this['2p-theory'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to '2p-solve-classic'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof this['2p-utils'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-utils' was not found. Please, check whether '2p-utils' is loaded prior to '2p-solve-classic'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof this['2p-core'] === 'undefined') {
|
|
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
|
+
}
|
|
25
|
+
root['2p-solve-classic'] = factory(typeof this['2p-solve-classic'] === 'undefined' ? {} : this['2p-solve-classic'], this['2p-unify'], this['kotlin-kotlin-stdlib-js-ir'], this['2p-solve'], this['2p-theory'], this['2p-utils'], this['2p-core']);
|
|
26
|
+
}
|
|
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) {
|
|
2
28
|
'use strict';
|
|
3
29
|
//region block: imports
|
|
4
30
|
var imul = Math.imul;
|
|
5
|
-
var Companion_getInstance =
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
31
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
|
|
32
|
+
var VOID = kotlin_kotlin.$_$.gc;
|
|
33
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.d2;
|
|
34
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.y1;
|
|
35
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
36
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
37
|
+
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
38
|
+
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
39
|
+
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
40
|
+
var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_solve.$_$.m1;
|
|
41
|
+
var Unit_getInstance = kotlin_kotlin.$_$.v1;
|
|
42
|
+
var toString = kotlin_kotlin.$_$.x6;
|
|
43
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
44
|
+
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.v2;
|
|
45
|
+
var protoOf = kotlin_kotlin.$_$.s6;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.tb;
|
|
47
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.cc;
|
|
15
48
|
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.t5;
|
|
16
49
|
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.v5;
|
|
17
|
-
var Long = kotlin_kotlin.$_$.
|
|
50
|
+
var Long = kotlin_kotlin.$_$.nb;
|
|
18
51
|
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.r5;
|
|
19
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
20
|
-
var copy
|
|
52
|
+
var asSequence = kotlin_kotlin.$_$.t7;
|
|
53
|
+
var copy = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
21
54
|
var solveWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.b5;
|
|
22
55
|
var solve = kotlin_it_unibo_tuprolog_solve.$_$.c5;
|
|
23
56
|
var solveListWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.w4;
|
|
@@ -26,58 +59,54 @@
|
|
|
26
59
|
var solveOnceWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.y4;
|
|
27
60
|
var solveOnce = kotlin_it_unibo_tuprolog_solve.$_$.a5;
|
|
28
61
|
var solveOnceWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.z4;
|
|
29
|
-
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
30
|
-
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
31
|
-
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
32
|
-
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
33
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
34
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
35
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
36
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
37
|
-
var equals = kotlin_kotlin.$_$.
|
|
38
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
39
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
40
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
41
|
-
var sequence = kotlin_kotlin.$_$.
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
48
|
-
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
49
|
-
var Companion_getInstance_10 = kotlin_kotlin.$_$.q2;
|
|
50
|
-
var emptySet = kotlin_kotlin.$_$.u3;
|
|
51
|
-
var asSequence_0 = kotlin_kotlin.$_$.g3;
|
|
52
|
-
var emptySequence = kotlin_kotlin.$_$.n8;
|
|
53
|
-
var plus = kotlin_kotlin.$_$.g9;
|
|
54
|
-
var flatMap = kotlin_kotlin.$_$.u8;
|
|
55
|
-
var distinct = kotlin_kotlin.$_$.l8;
|
|
62
|
+
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.f4;
|
|
63
|
+
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.g4;
|
|
64
|
+
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.e4;
|
|
65
|
+
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.h4;
|
|
66
|
+
var classMeta = kotlin_kotlin.$_$.t5;
|
|
67
|
+
var setMetadataFor = kotlin_kotlin.$_$.t6;
|
|
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;
|
|
56
80
|
var cached = kotlin_it_unibo_tuprolog_utils.$_$.r;
|
|
57
|
-
var
|
|
58
|
-
var filter = kotlin_kotlin.$_$.
|
|
59
|
-
var map = kotlin_kotlin.$_$.
|
|
60
|
-
var toList = kotlin_kotlin.$_$.
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
+
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
82
|
+
var filter = kotlin_kotlin.$_$.c8;
|
|
83
|
+
var map = kotlin_kotlin.$_$.o8;
|
|
84
|
+
var toList = kotlin_kotlin.$_$.b9;
|
|
85
|
+
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
86
|
+
var Companion_getInstance_10 = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
87
|
+
var Companion_getInstance_11 = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
88
|
+
var Companion_getInstance_12 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
89
|
+
var Companion_getInstance_13 = kotlin_kotlin.$_$.u1;
|
|
90
|
+
var emptySet = kotlin_kotlin.$_$.y2;
|
|
91
|
+
var lazy = kotlin_kotlin.$_$.yb;
|
|
92
|
+
var contains = kotlin_kotlin.$_$.u7;
|
|
93
|
+
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
94
|
+
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
95
|
+
var update = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
96
|
+
var apply = kotlin_it_unibo_tuprolog_solve.$_$.c4;
|
|
97
|
+
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.b4;
|
|
98
|
+
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.d4;
|
|
99
|
+
var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.z3;
|
|
100
|
+
var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.a4;
|
|
101
|
+
var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.y3;
|
|
102
|
+
var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.i4;
|
|
103
|
+
var KProperty1 = kotlin_kotlin.$_$.o7;
|
|
104
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.z5;
|
|
105
|
+
var objectCreate = kotlin_kotlin.$_$.q6;
|
|
106
|
+
var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
107
|
+
var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
108
|
+
var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.v;
|
|
109
|
+
var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
81
110
|
var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.n5;
|
|
82
111
|
var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.i5;
|
|
83
112
|
var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.k5;
|
|
@@ -89,91 +118,92 @@
|
|
|
89
118
|
var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.e5;
|
|
90
119
|
var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.l5;
|
|
91
120
|
var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.o5;
|
|
92
|
-
var
|
|
121
|
+
var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
93
122
|
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.m5;
|
|
94
|
-
var
|
|
123
|
+
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
95
124
|
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.p5;
|
|
96
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
97
|
-
var
|
|
125
|
+
var objectMeta = kotlin_kotlin.$_$.r6;
|
|
126
|
+
var defineProp = kotlin_kotlin.$_$.v5;
|
|
127
|
+
var listOf = kotlin_kotlin.$_$.o3;
|
|
98
128
|
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.u5;
|
|
99
|
-
var to = kotlin_kotlin.$_$.
|
|
100
|
-
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
101
|
-
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
102
|
-
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
103
|
-
var loadDynamicClauses = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
104
|
-
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
105
|
-
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
106
|
-
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
107
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
108
|
-
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
109
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
110
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
129
|
+
var to = kotlin_kotlin.$_$.fc;
|
|
130
|
+
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.m4;
|
|
131
|
+
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.n4;
|
|
132
|
+
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.o4;
|
|
133
|
+
var loadDynamicClauses = kotlin_it_unibo_tuprolog_solve.$_$.l4;
|
|
134
|
+
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.j4;
|
|
135
|
+
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.k4;
|
|
136
|
+
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.p4;
|
|
137
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
138
|
+
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
139
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.a1;
|
|
140
|
+
var interfaceMeta = kotlin_kotlin.$_$.c6;
|
|
111
141
|
var getKClass = kotlin_kotlin.$_$.c;
|
|
112
|
-
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.
|
|
113
|
-
var Companion_getInstance_14 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
114
|
-
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
115
|
-
var Companion_getInstance_15 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
142
|
+
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
143
|
+
var Companion_getInstance_14 = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
144
|
+
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
145
|
+
var Companion_getInstance_15 = kotlin_it_unibo_tuprolog_solve.$_$.v1;
|
|
116
146
|
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.h1;
|
|
117
|
-
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
118
|
-
var toSet = kotlin_kotlin.$_$.
|
|
119
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
120
|
-
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
121
|
-
var drop = kotlin_kotlin.$_$.
|
|
122
|
-
var first = kotlin_kotlin.$_$.
|
|
147
|
+
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
148
|
+
var toSet = kotlin_kotlin.$_$.d9;
|
|
149
|
+
var plus_1 = kotlin_kotlin.$_$.f4;
|
|
150
|
+
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a2;
|
|
151
|
+
var drop = kotlin_kotlin.$_$.x7;
|
|
152
|
+
var first = kotlin_kotlin.$_$.e8;
|
|
123
153
|
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.a2;
|
|
124
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
125
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
126
|
-
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
127
|
-
var Companion_getInstance_16 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
154
|
+
var isInterface = kotlin_kotlin.$_$.g6;
|
|
155
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
156
|
+
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
157
|
+
var Companion_getInstance_16 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
128
158
|
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.s5;
|
|
129
|
-
var
|
|
159
|
+
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.q4;
|
|
130
160
|
var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
131
161
|
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
132
|
-
var Companion_getInstance_17 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
162
|
+
var Companion_getInstance_17 = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
133
163
|
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
134
|
-
var setOf = kotlin_kotlin.$_$.
|
|
135
|
-
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
136
|
-
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
137
|
-
var Companion_getInstance_18 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
138
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
139
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
140
|
-
var any = kotlin_kotlin.$_$.
|
|
141
|
-
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
164
|
+
var setOf = kotlin_kotlin.$_$.l4;
|
|
165
|
+
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b2;
|
|
166
|
+
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
167
|
+
var Companion_getInstance_18 = kotlin_it_unibo_tuprolog_solve.$_$.q1;
|
|
168
|
+
var contains_0 = kotlin_kotlin.$_$.o2;
|
|
169
|
+
var firstOrNull = kotlin_kotlin.$_$.d8;
|
|
170
|
+
var any = kotlin_kotlin.$_$.r7;
|
|
171
|
+
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.z1;
|
|
142
172
|
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.q;
|
|
143
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
144
|
-
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
145
|
-
var
|
|
146
|
-
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
147
|
-
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
148
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
149
|
-
var containsSignature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
150
|
-
var containsOperator = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
151
|
-
var hasPrimitive = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
152
|
-
var hasFunction = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
153
|
-
var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
154
|
-
var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
173
|
+
var sequenceOf = kotlin_kotlin.$_$.u8;
|
|
174
|
+
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.x3;
|
|
175
|
+
var Request = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
176
|
+
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
177
|
+
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
178
|
+
var listOf_0 = kotlin_kotlin.$_$.p3;
|
|
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;
|
|
155
185
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
156
|
-
var Companion_getInstance_19 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
157
|
-
var Companion_getInstance_20 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
158
|
-
var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
159
|
-
var Companion_getInstance_21 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
160
|
-
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
186
|
+
var Companion_getInstance_19 = kotlin_it_unibo_tuprolog_solve.$_$.s1;
|
|
187
|
+
var Companion_getInstance_20 = kotlin_it_unibo_tuprolog_solve.$_$.x1;
|
|
188
|
+
var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.v3;
|
|
189
|
+
var Companion_getInstance_21 = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
190
|
+
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.w3;
|
|
161
191
|
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
162
|
-
var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
163
|
-
var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
192
|
+
var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
193
|
+
var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
164
194
|
//endregion
|
|
165
195
|
//region block: pre-declaration
|
|
166
|
-
setMetadataFor(AbstractClassicSolver, 'AbstractClassicSolver', classMeta, AbstractSolver
|
|
167
|
-
setMetadataFor(ChoicePointContext, 'ChoicePointContext', classMeta
|
|
168
|
-
setMetadataFor(Primitives, 'Primitives', classMeta, ChoicePointContext
|
|
169
|
-
setMetadataFor(Rules, 'Rules', classMeta, ChoicePointContext
|
|
170
|
-
setMetadataFor(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn, 'ChoicePointContext$<get-pathToRoot>$slambda', classMeta, CoroutineImpl,
|
|
171
|
-
setMetadataFor(ClassicExecutionContext$pathToRoot$slambda, 'ClassicExecutionContext$pathToRoot$slambda', classMeta, CoroutineImpl,
|
|
172
|
-
setMetadataFor(ClassicExecutionContext, 'ClassicExecutionContext', classMeta,
|
|
173
|
-
setMetadataFor(ClassicSolver, 'ClassicSolver', classMeta, AbstractClassicSolver
|
|
174
|
-
setMetadataFor(ClassicSolverFactory, 'ClassicSolverFactory', objectMeta,
|
|
175
|
-
setMetadataFor(MutableClassicSolver, 'MutableClassicSolver', classMeta, ClassicSolver, [ClassicSolver, MutableSolver]
|
|
176
|
-
setMetadataFor(Companion, 'Companion', objectMeta
|
|
196
|
+
setMetadataFor(AbstractClassicSolver, 'AbstractClassicSolver', classMeta, AbstractSolver);
|
|
197
|
+
setMetadataFor(ChoicePointContext, 'ChoicePointContext', classMeta);
|
|
198
|
+
setMetadataFor(Primitives, 'Primitives', classMeta, ChoicePointContext);
|
|
199
|
+
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]);
|
|
202
|
+
setMetadataFor(ClassicExecutionContext, 'ClassicExecutionContext', classMeta, VOID, [ExecutionContext]);
|
|
203
|
+
setMetadataFor(ClassicSolver, 'ClassicSolver', classMeta, AbstractClassicSolver);
|
|
204
|
+
setMetadataFor(ClassicSolverFactory, 'ClassicSolverFactory', objectMeta, VOID, [SolverFactory]);
|
|
205
|
+
setMetadataFor(MutableClassicSolver, 'MutableClassicSolver', classMeta, ClassicSolver, [ClassicSolver, MutableSolver]);
|
|
206
|
+
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
177
207
|
function get_isEndState() {
|
|
178
208
|
return false;
|
|
179
209
|
}
|
|
@@ -184,15 +214,19 @@
|
|
|
184
214
|
var tmp0_elvis_lhs = this.asEndState();
|
|
185
215
|
var tmp;
|
|
186
216
|
if (tmp0_elvis_lhs == null) {
|
|
187
|
-
throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).
|
|
217
|
+
throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).md());
|
|
188
218
|
} else {
|
|
189
219
|
tmp = tmp0_elvis_lhs;
|
|
190
220
|
}
|
|
191
221
|
return tmp;
|
|
192
222
|
}
|
|
193
|
-
|
|
223
|
+
function clone(context, $super) {
|
|
224
|
+
context = context === VOID ? this.n5() : context;
|
|
225
|
+
return $super === VOID ? this.d36(context) : $super.d36.call(this, context);
|
|
226
|
+
}
|
|
227
|
+
setMetadataFor(State, 'State', interfaceMeta);
|
|
194
228
|
function get_hasOpenAlternatives() {
|
|
195
|
-
return this.
|
|
229
|
+
return this.e2h().c1v() ? this.n5().c33() : false;
|
|
196
230
|
}
|
|
197
231
|
function get_isEndState_0() {
|
|
198
232
|
return true;
|
|
@@ -200,46 +234,53 @@
|
|
|
200
234
|
function asEndState_0() {
|
|
201
235
|
return this;
|
|
202
236
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
setMetadataFor(
|
|
207
|
-
setMetadataFor(
|
|
208
|
-
setMetadataFor(
|
|
209
|
-
setMetadataFor(
|
|
210
|
-
setMetadataFor(
|
|
211
|
-
setMetadataFor(
|
|
212
|
-
setMetadataFor(
|
|
213
|
-
setMetadataFor(
|
|
214
|
-
setMetadataFor(
|
|
215
|
-
setMetadataFor(
|
|
216
|
-
setMetadataFor(
|
|
217
|
-
setMetadataFor(
|
|
218
|
-
setMetadataFor(
|
|
219
|
-
setMetadataFor(
|
|
220
|
-
setMetadataFor(
|
|
221
|
-
setMetadataFor(
|
|
222
|
-
setMetadataFor(
|
|
223
|
-
setMetadataFor(
|
|
224
|
-
setMetadataFor(
|
|
225
|
-
setMetadataFor(
|
|
226
|
-
setMetadataFor(
|
|
227
|
-
setMetadataFor(
|
|
228
|
-
setMetadataFor(
|
|
229
|
-
setMetadataFor(
|
|
230
|
-
setMetadataFor(
|
|
231
|
-
setMetadataFor(
|
|
232
|
-
setMetadataFor(Fail, 'Fail', objectMeta, NegationAsFailure, undefined, undefined, undefined, []);
|
|
233
|
-
setMetadataFor(Success, 'Success', objectMeta, NegationAsFailure, undefined, undefined, undefined, []);
|
|
234
|
-
setMetadataFor(Companion_1, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
237
|
+
setMetadataFor(EndState, 'EndState', interfaceMeta, VOID, [State]);
|
|
238
|
+
setMetadataFor(AbstractState, 'AbstractState', classMeta, VOID, [State]);
|
|
239
|
+
setMetadataFor(AbstractEndState, 'AbstractEndState', classMeta, AbstractState, [EndState, AbstractState]);
|
|
240
|
+
setMetadataFor(StateBacktracking, 'StateBacktracking', classMeta, AbstractState);
|
|
241
|
+
setMetadataFor(StateEnd, 'StateEnd', classMeta, AbstractEndState);
|
|
242
|
+
setMetadataFor(StateException, 'StateException', classMeta, AbstractState, [State, AbstractState]);
|
|
243
|
+
setMetadataFor(StateGoalSelection, 'StateGoalSelection', classMeta, AbstractState);
|
|
244
|
+
setMetadataFor(StateHalt, 'StateHalt', classMeta, AbstractEndState, [State, AbstractEndState]);
|
|
245
|
+
setMetadataFor(StateInit, 'StateInit', classMeta, AbstractState);
|
|
246
|
+
setMetadataFor(StatePrimitiveExecution, 'StatePrimitiveExecution', classMeta, AbstractState);
|
|
247
|
+
setMetadataFor(StatePrimitiveSelection, 'StatePrimitiveSelection', classMeta, AbstractState);
|
|
248
|
+
setMetadataFor(StateRuleExecution, 'StateRuleExecution', classMeta, AbstractState);
|
|
249
|
+
setMetadataFor(CutLimit, 'CutLimit', classMeta);
|
|
250
|
+
setMetadataFor(None, 'None', objectMeta, CutLimit);
|
|
251
|
+
setMetadataFor(Actual, 'Actual', classMeta, CutLimit);
|
|
252
|
+
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
253
|
+
setMetadataFor(StateRuleSelection, 'StateRuleSelection', classMeta, AbstractState);
|
|
254
|
+
setMetadataFor(AbstractSolutionIterator, 'AbstractSolutionIterator', classMeta);
|
|
255
|
+
setMetadataFor(SimpleSolutionIterator, 'SimpleSolutionIterator', classMeta, AbstractSolutionIterator);
|
|
256
|
+
setMetadataFor(DefaultBuiltins, 'DefaultBuiltins', objectMeta, ExtensionLibrary);
|
|
257
|
+
setMetadataFor(Throw, 'Throw', objectMeta, UnaryPredicate);
|
|
258
|
+
setMetadataFor(Call, 'Call', objectMeta, RuleWrapper);
|
|
259
|
+
setMetadataFor(Catch, 'Catch', objectMeta, RuleWrapper);
|
|
260
|
+
setMetadataFor(Comma, 'Comma', objectMeta, RuleWrapper);
|
|
261
|
+
setMetadataFor(Cut, 'Cut', objectMeta, RuleWrapper);
|
|
262
|
+
setMetadataFor(NegationAsFailure, 'NegationAsFailure', classMeta, RuleWrapper);
|
|
263
|
+
setMetadataFor(Fail, 'Fail', objectMeta, NegationAsFailure);
|
|
264
|
+
setMetadataFor(Success, 'Success', objectMeta, NegationAsFailure);
|
|
265
|
+
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
235
266
|
//endregion
|
|
236
267
|
function AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
237
|
-
|
|
268
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
269
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
270
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
271
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
272
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
|
|
273
|
+
stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
|
|
274
|
+
stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
|
|
275
|
+
stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
|
|
276
|
+
warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
|
|
277
|
+
trustKb = trustKb === VOID ? false : trustKb;
|
|
278
|
+
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance_6().h1x(stdIn), Companion_getInstance_7().k1x(stdOut, stdErr, warnings), trustKb);
|
|
238
279
|
return $this;
|
|
239
280
|
}
|
|
240
281
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
241
282
|
// Inline function 'kotlin.require' call
|
|
242
|
-
var tmp0_require = destination.
|
|
283
|
+
var tmp0_require = destination.n5().y31_1.equals(index);
|
|
243
284
|
// Inline function 'kotlin.contracts.contract' call
|
|
244
285
|
// Inline function 'kotlin.require' call
|
|
245
286
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -250,7 +291,7 @@
|
|
|
250
291
|
var message = tmp$ret$0;
|
|
251
292
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
252
293
|
}
|
|
253
|
-
$this.
|
|
294
|
+
$this.f32(destination.n5());
|
|
254
295
|
}
|
|
255
296
|
function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref($boundThis) {
|
|
256
297
|
var l = function (p0, p1, p2) {
|
|
@@ -261,322 +302,307 @@
|
|
|
261
302
|
return l;
|
|
262
303
|
}
|
|
263
304
|
function AbstractClassicSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
305
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
306
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
307
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
308
|
+
initialStaticKb = initialStaticKb === VOID ? Companion_getInstance_2().empty(unificator) : initialStaticKb;
|
|
309
|
+
initialDynamicKb = initialDynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : initialDynamicKb;
|
|
310
|
+
inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
|
|
311
|
+
outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
|
|
312
|
+
trustKb = trustKb === VOID ? false : trustKb;
|
|
264
313
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
265
314
|
}
|
|
266
|
-
AbstractClassicSolver.
|
|
267
|
-
this.
|
|
315
|
+
protoOf(AbstractClassicSolver).f32 = function (_set____db54di) {
|
|
316
|
+
this.e32_1 = _set____db54di;
|
|
268
317
|
};
|
|
269
|
-
AbstractClassicSolver.
|
|
270
|
-
return this.
|
|
318
|
+
protoOf(AbstractClassicSolver).a2a = function (_set____db54di) {
|
|
319
|
+
return this.f32(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
|
|
271
320
|
};
|
|
272
|
-
AbstractClassicSolver.
|
|
273
|
-
var tmp = this.
|
|
321
|
+
protoOf(AbstractClassicSolver).y29 = function () {
|
|
322
|
+
var tmp = this.e32_1;
|
|
274
323
|
if (!(tmp == null))
|
|
275
324
|
return tmp;
|
|
276
325
|
else {
|
|
277
326
|
throwUninitializedPropertyAccessException('currentContext');
|
|
278
327
|
}
|
|
279
328
|
};
|
|
280
|
-
AbstractClassicSolver.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
var
|
|
285
|
-
var
|
|
286
|
-
var
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
-
var
|
|
293
|
-
var tmp3_staticKb = this.y1u().toImmutableTheory();
|
|
294
|
-
var tmp4_dynamicKb = this.z1u().toMutableTheory();
|
|
295
|
-
var tmp5_operators = this.h1v();
|
|
296
|
-
var tmp6_inputChannels = this.a1v();
|
|
297
|
-
var tmp7_outputChannels = this.b1v();
|
|
298
|
-
var tmp8_customData = this.v2b().u33_1;
|
|
329
|
+
protoOf(AbstractClassicSolver).z29 = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
330
|
+
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_getInstance_2().empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_getInstance_3().empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID, new Long(0, 0));
|
|
331
|
+
};
|
|
332
|
+
protoOf(AbstractClassicSolver).g2a = function (goal, options) {
|
|
333
|
+
var tmp0_unificator = this.k1k();
|
|
334
|
+
var tmp1_libraries = this.v1t();
|
|
335
|
+
var tmp2_flags = this.w1t();
|
|
336
|
+
var tmp3_staticKb = this.x1t().toImmutableTheory();
|
|
337
|
+
var tmp4_dynamicKb = this.y1t().toMutableTheory();
|
|
338
|
+
var tmp5_operators = this.e1u();
|
|
339
|
+
var tmp6_inputChannels = this.z1t();
|
|
340
|
+
var tmp7_outputChannels = this.a1u();
|
|
341
|
+
var tmp8_customData = this.y29().n31_1;
|
|
299
342
|
var tmp9_startTime = currentTimeInstant();
|
|
300
|
-
var tmp10_maxDuration = options.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
return asSequence(this.n34(tmp_0, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
343
|
+
var tmp10_maxDuration = options.b1w();
|
|
344
|
+
this.f32(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));
|
|
345
|
+
var tmp = new StateInit(this.y29());
|
|
346
|
+
return asSequence(this.g32(tmp, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
305
347
|
};
|
|
306
348
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
307
349
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
350
|
+
this.l32_1 = alternatives;
|
|
351
|
+
this.m32_1 = executionContext;
|
|
352
|
+
this.n32_1 = parent;
|
|
353
|
+
this.o32_1 = depth;
|
|
312
354
|
}
|
|
313
|
-
Primitives.
|
|
314
|
-
return this.
|
|
355
|
+
protoOf(Primitives).p32 = function () {
|
|
356
|
+
return this.l32_1;
|
|
315
357
|
};
|
|
316
|
-
Primitives.
|
|
317
|
-
return this.
|
|
358
|
+
protoOf(Primitives).q32 = function () {
|
|
359
|
+
return this.m32_1;
|
|
318
360
|
};
|
|
319
|
-
Primitives.
|
|
320
|
-
return this.
|
|
361
|
+
protoOf(Primitives).r32 = function () {
|
|
362
|
+
return this.n32_1;
|
|
321
363
|
};
|
|
322
|
-
Primitives.
|
|
323
|
-
return this.
|
|
364
|
+
protoOf(Primitives).s32 = function () {
|
|
365
|
+
return this.o32_1;
|
|
324
366
|
};
|
|
325
|
-
Primitives.
|
|
326
|
-
return ChoicePointContext.
|
|
367
|
+
protoOf(Primitives).toString = function () {
|
|
368
|
+
return protoOf(ChoicePointContext).toString.call(this);
|
|
327
369
|
};
|
|
328
|
-
Primitives.
|
|
370
|
+
protoOf(Primitives).t32 = function () {
|
|
329
371
|
return 'Primitives';
|
|
330
372
|
};
|
|
331
|
-
Primitives.
|
|
332
|
-
var tmp0_$this = ensureNotNull(this.
|
|
333
|
-
var tmp1_primitives = this.
|
|
373
|
+
protoOf(Primitives).u32 = function (context) {
|
|
374
|
+
var tmp0_$this = ensureNotNull(this.m32_1);
|
|
375
|
+
var tmp1_primitives = this.l32_1;
|
|
334
376
|
var tmp$ret$0;
|
|
335
377
|
// Inline function 'kotlin.Long.plus' call
|
|
336
|
-
var tmp0_plus = context.
|
|
378
|
+
var tmp0_plus = context.y31_1;
|
|
337
379
|
tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
|
|
338
380
|
var tmp2_step = tmp$ret$0;
|
|
339
|
-
var tmp3_startTime = context.
|
|
340
|
-
var tmp4_flags = context.
|
|
341
|
-
var tmp5_dynamicKb = context.
|
|
342
|
-
var tmp6_staticKb = context.
|
|
343
|
-
var tmp7_operators = context.
|
|
344
|
-
var tmp8_inputChannels = context.
|
|
345
|
-
var tmp9_outputChannels = context.
|
|
346
|
-
var tmp10_libraries = context.
|
|
347
|
-
var tmp11_customData = context.
|
|
348
|
-
var
|
|
349
|
-
var
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
var tmp_2 = new Long(0, 0);
|
|
354
|
-
var tmp_3 = new Long(0, 0);
|
|
355
|
-
return tempContext.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_1, tmp_2, nextChoicePointContext, null, 0, tmp_3, null, 4063231, null);
|
|
356
|
-
};
|
|
357
|
-
Primitives.prototype.e35 = function (alternatives, executionContext, parent, depth) {
|
|
381
|
+
var tmp3_startTime = context.t31_1;
|
|
382
|
+
var tmp4_flags = context.h31_1;
|
|
383
|
+
var tmp5_dynamicKb = context.j31_1;
|
|
384
|
+
var tmp6_staticKb = context.i31_1;
|
|
385
|
+
var tmp7_operators = context.k31_1;
|
|
386
|
+
var tmp8_inputChannels = context.l31_1;
|
|
387
|
+
var tmp9_outputChannels = context.m31_1;
|
|
388
|
+
var tmp10_libraries = context.g31_1;
|
|
389
|
+
var tmp11_customData = context.n31_1.discardEphemeral();
|
|
390
|
+
var tempContext = tmp0_$this.v32(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);
|
|
391
|
+
var nextChoicePointContext = this.w32(this.l32_1.kq(), tempContext);
|
|
392
|
+
return tempContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
393
|
+
};
|
|
394
|
+
protoOf(Primitives).x32 = function (alternatives, executionContext, parent, depth) {
|
|
358
395
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
359
396
|
};
|
|
360
|
-
Primitives.
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
var result = hashCode(this.s34_1);
|
|
373
|
-
result = imul(result, 31) + (this.t34_1 == null ? 0 : this.t34_1.hashCode()) | 0;
|
|
374
|
-
result = imul(result, 31) + (this.u34_1 == null ? 0 : hashCode(this.u34_1)) | 0;
|
|
375
|
-
result = imul(result, 31) + this.v34_1 | 0;
|
|
397
|
+
protoOf(Primitives).w32 = function (alternatives, executionContext, parent, depth, $super) {
|
|
398
|
+
alternatives = alternatives === VOID ? this.l32_1 : alternatives;
|
|
399
|
+
executionContext = executionContext === VOID ? this.m32_1 : executionContext;
|
|
400
|
+
parent = parent === VOID ? this.n32_1 : parent;
|
|
401
|
+
depth = depth === VOID ? this.o32_1 : depth;
|
|
402
|
+
return $super === VOID ? this.x32(alternatives, executionContext, parent, depth) : $super.x32.call(this, alternatives, executionContext, parent, depth);
|
|
403
|
+
};
|
|
404
|
+
protoOf(Primitives).hashCode = function () {
|
|
405
|
+
var result = hashCode(this.l32_1);
|
|
406
|
+
result = imul(result, 31) + (this.m32_1 == null ? 0 : this.m32_1.hashCode()) | 0;
|
|
407
|
+
result = imul(result, 31) + (this.n32_1 == null ? 0 : hashCode(this.n32_1)) | 0;
|
|
408
|
+
result = imul(result, 31) + this.o32_1 | 0;
|
|
376
409
|
return result;
|
|
377
410
|
};
|
|
378
|
-
Primitives.
|
|
411
|
+
protoOf(Primitives).equals = function (other) {
|
|
379
412
|
if (this === other)
|
|
380
413
|
return true;
|
|
381
414
|
if (!(other instanceof Primitives))
|
|
382
415
|
return false;
|
|
383
416
|
var tmp0_other_with_cast = other instanceof Primitives ? other : THROW_CCE();
|
|
384
|
-
if (!equals(this.
|
|
417
|
+
if (!equals(this.l32_1, tmp0_other_with_cast.l32_1))
|
|
385
418
|
return false;
|
|
386
|
-
if (!equals(this.
|
|
419
|
+
if (!equals(this.m32_1, tmp0_other_with_cast.m32_1))
|
|
387
420
|
return false;
|
|
388
|
-
if (!equals(this.
|
|
421
|
+
if (!equals(this.n32_1, tmp0_other_with_cast.n32_1))
|
|
389
422
|
return false;
|
|
390
|
-
if (!(this.
|
|
423
|
+
if (!(this.o32_1 === tmp0_other_with_cast.o32_1))
|
|
391
424
|
return false;
|
|
392
425
|
return true;
|
|
393
426
|
};
|
|
394
427
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
395
428
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
429
|
+
this.k33_1 = alternatives;
|
|
430
|
+
this.l33_1 = executionContext;
|
|
431
|
+
this.m33_1 = parent;
|
|
432
|
+
this.n33_1 = depth;
|
|
400
433
|
}
|
|
401
|
-
Rules.
|
|
402
|
-
return this.
|
|
434
|
+
protoOf(Rules).p32 = function () {
|
|
435
|
+
return this.k33_1;
|
|
403
436
|
};
|
|
404
|
-
Rules.
|
|
405
|
-
return this.
|
|
437
|
+
protoOf(Rules).q32 = function () {
|
|
438
|
+
return this.l33_1;
|
|
406
439
|
};
|
|
407
|
-
Rules.
|
|
408
|
-
return this.
|
|
440
|
+
protoOf(Rules).r32 = function () {
|
|
441
|
+
return this.m33_1;
|
|
409
442
|
};
|
|
410
|
-
Rules.
|
|
411
|
-
return this.
|
|
443
|
+
protoOf(Rules).s32 = function () {
|
|
444
|
+
return this.n33_1;
|
|
412
445
|
};
|
|
413
|
-
Rules.
|
|
414
|
-
return ChoicePointContext.
|
|
446
|
+
protoOf(Rules).toString = function () {
|
|
447
|
+
return protoOf(ChoicePointContext).toString.call(this);
|
|
415
448
|
};
|
|
416
|
-
Rules.
|
|
449
|
+
protoOf(Rules).t32 = function () {
|
|
417
450
|
return 'Rules';
|
|
418
451
|
};
|
|
419
|
-
Rules.
|
|
420
|
-
var tmp0_$this = ensureNotNull(this.
|
|
421
|
-
var tmp1_rules = this.
|
|
452
|
+
protoOf(Rules).u32 = function (context) {
|
|
453
|
+
var tmp0_$this = ensureNotNull(this.l33_1);
|
|
454
|
+
var tmp1_rules = this.k33_1;
|
|
422
455
|
var tmp$ret$0;
|
|
423
456
|
// Inline function 'kotlin.Long.plus' call
|
|
424
|
-
var tmp0_plus = context.
|
|
457
|
+
var tmp0_plus = context.y31_1;
|
|
425
458
|
tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
|
|
426
459
|
var tmp2_step = tmp$ret$0;
|
|
427
|
-
var tmp3_startTime = context.
|
|
428
|
-
var tmp4_flags = context.
|
|
429
|
-
var tmp5_dynamicKb = context.
|
|
430
|
-
var tmp6_staticKb = context.
|
|
431
|
-
var tmp7_operators = context.
|
|
432
|
-
var tmp8_inputChannels = context.
|
|
433
|
-
var tmp9_outputChannels = context.
|
|
434
|
-
var tmp10_libraries = context.
|
|
435
|
-
var tmp11_customData = context.
|
|
436
|
-
var
|
|
437
|
-
var
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
var tmp_2 = new Long(0, 0);
|
|
442
|
-
var tmp_3 = new Long(0, 0);
|
|
443
|
-
return tempContext.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_1, tmp_2, nextChoicePointContext, null, 0, tmp_3, null, 4063231, null);
|
|
444
|
-
};
|
|
445
|
-
Rules.prototype.w35 = function (alternatives, executionContext, parent, depth) {
|
|
460
|
+
var tmp3_startTime = context.t31_1;
|
|
461
|
+
var tmp4_flags = context.h31_1;
|
|
462
|
+
var tmp5_dynamicKb = context.j31_1;
|
|
463
|
+
var tmp6_staticKb = context.i31_1;
|
|
464
|
+
var tmp7_operators = context.k31_1;
|
|
465
|
+
var tmp8_inputChannels = context.l31_1;
|
|
466
|
+
var tmp9_outputChannels = context.m31_1;
|
|
467
|
+
var tmp10_libraries = context.g31_1;
|
|
468
|
+
var tmp11_customData = context.n31_1.discardEphemeral();
|
|
469
|
+
var tempContext = tmp0_$this.v32(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);
|
|
470
|
+
var nextChoicePointContext = this.o33(this.k33_1.kq(), tempContext);
|
|
471
|
+
return tempContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
472
|
+
};
|
|
473
|
+
protoOf(Rules).p33 = function (alternatives, executionContext, parent, depth) {
|
|
446
474
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
447
475
|
};
|
|
448
|
-
Rules.
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
var result = hashCode(this.r35_1);
|
|
461
|
-
result = imul(result, 31) + (this.s35_1 == null ? 0 : this.s35_1.hashCode()) | 0;
|
|
462
|
-
result = imul(result, 31) + (this.t35_1 == null ? 0 : hashCode(this.t35_1)) | 0;
|
|
463
|
-
result = imul(result, 31) + this.u35_1 | 0;
|
|
476
|
+
protoOf(Rules).o33 = function (alternatives, executionContext, parent, depth, $super) {
|
|
477
|
+
alternatives = alternatives === VOID ? this.k33_1 : alternatives;
|
|
478
|
+
executionContext = executionContext === VOID ? this.l33_1 : executionContext;
|
|
479
|
+
parent = parent === VOID ? this.m33_1 : parent;
|
|
480
|
+
depth = depth === VOID ? this.n33_1 : depth;
|
|
481
|
+
return $super === VOID ? this.p33(alternatives, executionContext, parent, depth) : $super.p33.call(this, alternatives, executionContext, parent, depth);
|
|
482
|
+
};
|
|
483
|
+
protoOf(Rules).hashCode = function () {
|
|
484
|
+
var result = hashCode(this.k33_1);
|
|
485
|
+
result = imul(result, 31) + (this.l33_1 == null ? 0 : this.l33_1.hashCode()) | 0;
|
|
486
|
+
result = imul(result, 31) + (this.m33_1 == null ? 0 : hashCode(this.m33_1)) | 0;
|
|
487
|
+
result = imul(result, 31) + this.n33_1 | 0;
|
|
464
488
|
return result;
|
|
465
489
|
};
|
|
466
|
-
Rules.
|
|
490
|
+
protoOf(Rules).equals = function (other) {
|
|
467
491
|
if (this === other)
|
|
468
492
|
return true;
|
|
469
493
|
if (!(other instanceof Rules))
|
|
470
494
|
return false;
|
|
471
495
|
var tmp0_other_with_cast = other instanceof Rules ? other : THROW_CCE();
|
|
472
|
-
if (!equals(this.
|
|
496
|
+
if (!equals(this.k33_1, tmp0_other_with_cast.k33_1))
|
|
473
497
|
return false;
|
|
474
|
-
if (!equals(this.
|
|
498
|
+
if (!equals(this.l33_1, tmp0_other_with_cast.l33_1))
|
|
475
499
|
return false;
|
|
476
|
-
if (!equals(this.
|
|
500
|
+
if (!equals(this.m33_1, tmp0_other_with_cast.m33_1))
|
|
477
501
|
return false;
|
|
478
|
-
if (!(this.
|
|
502
|
+
if (!(this.n33_1 === tmp0_other_with_cast.n33_1))
|
|
479
503
|
return false;
|
|
480
504
|
return true;
|
|
481
505
|
};
|
|
482
506
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
483
|
-
this.
|
|
507
|
+
this.y33_1 = this$0;
|
|
484
508
|
CoroutineImpl.call(this, resultContinuation);
|
|
485
509
|
}
|
|
486
|
-
ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.
|
|
487
|
-
var tmp = this.
|
|
488
|
-
tmp.
|
|
489
|
-
tmp.
|
|
490
|
-
return tmp.
|
|
510
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).b34 = function ($this$sequence, $completion) {
|
|
511
|
+
var tmp = this.c34($this$sequence, $completion);
|
|
512
|
+
tmp.ci_1 = Unit_getInstance();
|
|
513
|
+
tmp.di_1 = null;
|
|
514
|
+
return tmp.ii();
|
|
491
515
|
};
|
|
492
|
-
ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.
|
|
493
|
-
return this.
|
|
516
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).ui = function (p1, $completion) {
|
|
517
|
+
return this.b34(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
494
518
|
};
|
|
495
|
-
ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.
|
|
496
|
-
var suspendResult = this.
|
|
519
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).ii = function () {
|
|
520
|
+
var suspendResult = this.ci_1;
|
|
497
521
|
$sm: do
|
|
498
522
|
try {
|
|
499
|
-
var tmp = this.
|
|
523
|
+
var tmp = this.ai_1;
|
|
500
524
|
switch (tmp) {
|
|
501
525
|
case 0:
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
526
|
+
this.bi_1 = 4;
|
|
527
|
+
this.a34_1 = this.y33_1;
|
|
528
|
+
this.ai_1 = 1;
|
|
505
529
|
continue $sm;
|
|
506
530
|
case 1:
|
|
507
|
-
if (!!(this.
|
|
508
|
-
this.
|
|
531
|
+
if (!!(this.a34_1 == null)) {
|
|
532
|
+
this.ai_1 = 3;
|
|
509
533
|
continue $sm;
|
|
510
534
|
}
|
|
511
535
|
|
|
512
|
-
this.
|
|
513
|
-
suspendResult = this.
|
|
536
|
+
this.ai_1 = 2;
|
|
537
|
+
suspendResult = this.z33_1.d5(ensureNotNull(this.a34_1), this);
|
|
514
538
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
515
539
|
return suspendResult;
|
|
516
540
|
}
|
|
517
541
|
|
|
518
542
|
continue $sm;
|
|
519
543
|
case 2:
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
544
|
+
this.a34_1 = this.a34_1.r32();
|
|
545
|
+
this.ai_1 = 1;
|
|
522
546
|
continue $sm;
|
|
523
547
|
case 3:
|
|
524
548
|
return Unit_getInstance();
|
|
525
549
|
case 4:
|
|
526
|
-
throw this.
|
|
550
|
+
throw this.di_1;
|
|
527
551
|
}
|
|
528
552
|
} catch ($p) {
|
|
529
|
-
|
|
530
|
-
|
|
553
|
+
var e = $p;
|
|
554
|
+
if (this.bi_1 === 4) {
|
|
555
|
+
throw e;
|
|
531
556
|
} else {
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
557
|
+
this.ai_1 = this.bi_1;
|
|
558
|
+
this.di_1 = e;
|
|
534
559
|
}
|
|
535
560
|
}
|
|
536
561
|
while (true);
|
|
537
562
|
};
|
|
538
|
-
ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.
|
|
539
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
540
|
-
i.
|
|
563
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).c34 = function ($this$sequence, completion) {
|
|
564
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.y33_1, completion);
|
|
565
|
+
i.z33_1 = $this$sequence;
|
|
541
566
|
return i;
|
|
542
567
|
};
|
|
543
568
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
544
569
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
545
|
-
var l = function ($this$sequence, $
|
|
546
|
-
return i.
|
|
570
|
+
var l = function ($this$sequence, $completion) {
|
|
571
|
+
return i.b34($this$sequence, $completion);
|
|
547
572
|
};
|
|
548
573
|
l.$arity = 1;
|
|
549
574
|
return l;
|
|
550
575
|
}
|
|
551
576
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
552
|
-
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
577
|
+
depth = depth === VOID ? 0 : depth;
|
|
578
|
+
this.y32_1 = alternatives;
|
|
579
|
+
this.z32_1 = executionContext;
|
|
580
|
+
this.a33_1 = parent;
|
|
581
|
+
this.b33_1 = depth;
|
|
556
582
|
}
|
|
557
|
-
ChoicePointContext.
|
|
558
|
-
return this.
|
|
583
|
+
protoOf(ChoicePointContext).p32 = function () {
|
|
584
|
+
return this.y32_1;
|
|
559
585
|
};
|
|
560
|
-
ChoicePointContext.
|
|
561
|
-
return this.
|
|
586
|
+
protoOf(ChoicePointContext).q32 = function () {
|
|
587
|
+
return this.z32_1;
|
|
562
588
|
};
|
|
563
|
-
ChoicePointContext.
|
|
564
|
-
return this.
|
|
589
|
+
protoOf(ChoicePointContext).r32 = function () {
|
|
590
|
+
return this.a33_1;
|
|
565
591
|
};
|
|
566
|
-
ChoicePointContext.
|
|
567
|
-
return this.
|
|
592
|
+
protoOf(ChoicePointContext).s32 = function () {
|
|
593
|
+
return this.b33_1;
|
|
568
594
|
};
|
|
569
|
-
ChoicePointContext.
|
|
595
|
+
protoOf(ChoicePointContext).c33 = function () {
|
|
570
596
|
var tmp$ret$1;
|
|
571
597
|
$l$block: {
|
|
572
598
|
// Inline function 'kotlin.sequences.any' call
|
|
573
|
-
var tmp0_any = this.
|
|
599
|
+
var tmp0_any = this.d33();
|
|
574
600
|
var tmp0_iterator = tmp0_any.j();
|
|
575
601
|
while (tmp0_iterator.m()) {
|
|
576
|
-
var element = tmp0_iterator.
|
|
602
|
+
var element = tmp0_iterator.n();
|
|
577
603
|
var tmp$ret$0;
|
|
578
604
|
// Inline function 'it.unibo.tuprolog.solve.classic.ChoicePointContext.<get-hasOpenAlternatives>.<anonymous>' call
|
|
579
|
-
tmp$ret$0 = element.
|
|
605
|
+
tmp$ret$0 = element.p32().mq();
|
|
580
606
|
if (tmp$ret$0) {
|
|
581
607
|
tmp$ret$1 = true;
|
|
582
608
|
break $l$block;
|
|
@@ -586,170 +612,118 @@
|
|
|
586
612
|
}
|
|
587
613
|
return tmp$ret$1;
|
|
588
614
|
};
|
|
589
|
-
ChoicePointContext.
|
|
615
|
+
protoOf(ChoicePointContext).d33 = function () {
|
|
590
616
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
591
617
|
};
|
|
592
|
-
ChoicePointContext.
|
|
593
|
-
var tmp0_safe_receiver = this.
|
|
594
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
618
|
+
protoOf(ChoicePointContext).e33 = function () {
|
|
619
|
+
var tmp0_safe_receiver = this.q32();
|
|
620
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x31_1;
|
|
595
621
|
};
|
|
596
|
-
ChoicePointContext.
|
|
597
|
-
var tmp0_safe_receiver = this.
|
|
598
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
622
|
+
protoOf(ChoicePointContext).f33 = function () {
|
|
623
|
+
var tmp0_safe_receiver = this.q32();
|
|
624
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e31_1;
|
|
599
625
|
};
|
|
600
|
-
ChoicePointContext.
|
|
601
|
-
var tmp = this.
|
|
626
|
+
protoOf(ChoicePointContext).toString = function () {
|
|
627
|
+
var tmp = this.t32() + '(' + ('alternatives=' + this.p32() + ', ');
|
|
602
628
|
var tmp_0;
|
|
603
|
-
if (this.
|
|
604
|
-
tmp_0 = 'executionContext=' + this.
|
|
629
|
+
if (this.q32() === null) {
|
|
630
|
+
tmp_0 = 'executionContext=' + this.q32() + ', ';
|
|
605
631
|
} else {
|
|
606
|
-
'executionContextDepth=' + this.
|
|
607
|
-
tmp_0 = 'executionContextProcedure=' + this.
|
|
632
|
+
'executionContextDepth=' + this.e33() + ', ';
|
|
633
|
+
tmp_0 = 'executionContextProcedure=' + this.f33() + ', ';
|
|
608
634
|
}
|
|
609
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
635
|
+
return tmp + tmp_0 + ('depth=' + this.s32()) + ')';
|
|
610
636
|
};
|
|
611
637
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
638
|
+
executionContext = executionContext === VOID ? null : executionContext;
|
|
612
639
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
613
640
|
}
|
|
614
641
|
function nextDepth(_this__u8e3s4) {
|
|
615
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
642
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.s32() + 1 | 0;
|
|
616
643
|
}
|
|
617
644
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
645
|
+
executionContext = executionContext === VOID ? null : executionContext;
|
|
618
646
|
return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
619
647
|
}
|
|
620
|
-
function ClassicExecutionContext_init_$Init$(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $marker, $this) {
|
|
621
|
-
if (!(($mask0 & 1) === 0))
|
|
622
|
-
procedure = null;
|
|
623
|
-
if (!(($mask0 & 2) === 0))
|
|
624
|
-
unificator = Companion_getInstance_3().h1l();
|
|
625
|
-
if (!(($mask0 & 4) === 0))
|
|
626
|
-
libraries = Companion_getInstance_4().empty();
|
|
627
|
-
if (!(($mask0 & 8) === 0))
|
|
628
|
-
flags = Companion_getInstance_5().empty();
|
|
629
|
-
if (!(($mask0 & 16) === 0))
|
|
630
|
-
staticKb = Companion_getInstance_1().empty(unificator);
|
|
631
|
-
if (!(($mask0 & 32) === 0))
|
|
632
|
-
dynamicKb = Companion_getInstance_2().empty(unificator);
|
|
633
|
-
if (!(($mask0 & 64) === 0))
|
|
634
|
-
operators = toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb]));
|
|
635
|
-
if (!(($mask0 & 128) === 0)) {
|
|
636
|
-
var tmp = Companion_getInstance();
|
|
637
|
-
inputChannels = tmp.v1z(null, 1, null);
|
|
638
|
-
}
|
|
639
|
-
if (!(($mask0 & 256) === 0)) {
|
|
640
|
-
var tmp_0 = Companion_getInstance_0();
|
|
641
|
-
outputChannels = tmp_0.w1z(null, null, null, 7, null);
|
|
642
|
-
}
|
|
643
|
-
if (!(($mask0 & 512) === 0))
|
|
644
|
-
customData = Companion_getInstance_6().empty();
|
|
645
|
-
if (!(($mask0 & 1024) === 0))
|
|
646
|
-
substitution = Companion_getInstance_7().empty();
|
|
647
|
-
if (!(($mask0 & 2048) === 0))
|
|
648
|
-
query = Companion_getInstance_8().wv_1;
|
|
649
|
-
if (!(($mask0 & 4096) === 0))
|
|
650
|
-
goals = Companion_getInstance_9().empty();
|
|
651
|
-
if (!(($mask0 & 8192) === 0))
|
|
652
|
-
rules = Companion_getInstance_9().empty();
|
|
653
|
-
if (!(($mask0 & 16384) === 0))
|
|
654
|
-
primitives = Companion_getInstance_9().empty();
|
|
655
|
-
if (!(($mask0 & 65536) === 0)) {
|
|
656
|
-
Companion_getInstance_10();
|
|
657
|
-
maxDuration = new Long(-1, 2147483647);
|
|
658
|
-
}
|
|
659
|
-
if (!(($mask0 & 131072) === 0))
|
|
660
|
-
choicePoints = null;
|
|
661
|
-
if (!(($mask0 & 262144) === 0))
|
|
662
|
-
parent = null;
|
|
663
|
-
if (!(($mask0 & 524288) === 0))
|
|
664
|
-
depth = 0;
|
|
665
|
-
if (!(($mask0 & 1048576) === 0))
|
|
666
|
-
step = new Long(0, 0);
|
|
667
|
-
if (!(($mask0 & 2097152) === 0))
|
|
668
|
-
relevantVariables = emptySet();
|
|
669
|
-
ClassicExecutionContext.call($this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
670
|
-
return $this;
|
|
671
|
-
}
|
|
672
|
-
function ClassicExecutionContext_init_$Create$(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $marker) {
|
|
673
|
-
return ClassicExecutionContext_init_$Init$(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $marker, Object.create(ClassicExecutionContext.prototype));
|
|
674
|
-
}
|
|
675
648
|
function _get_locallyInterestingVariables__39cqti($this) {
|
|
676
|
-
var tmp = asSequence_0($this.
|
|
677
|
-
var tmp0_safe_receiver = $this.
|
|
678
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
649
|
+
var tmp = asSequence_0($this.z31_1);
|
|
650
|
+
var tmp0_safe_receiver = $this.q31_1.lq();
|
|
651
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yv();
|
|
679
652
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
680
653
|
}
|
|
681
654
|
function _get_interestingVariables__k6uw5o($this) {
|
|
682
655
|
var tmp$ret$0;
|
|
683
656
|
// Inline function 'kotlin.getValue' call
|
|
684
657
|
var tmp0_getValue = interestingVariables$factory();
|
|
685
|
-
tmp$ret$0 = $this.
|
|
658
|
+
tmp$ret$0 = $this.c32_1.b1();
|
|
686
659
|
return tmp$ret$0;
|
|
687
660
|
}
|
|
688
661
|
function ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
689
|
-
this.
|
|
662
|
+
this.l34_1 = this$0;
|
|
690
663
|
CoroutineImpl.call(this, resultContinuation);
|
|
691
664
|
}
|
|
692
|
-
ClassicExecutionContext$pathToRoot$slambda.
|
|
693
|
-
var tmp = this.
|
|
694
|
-
tmp.
|
|
695
|
-
tmp.
|
|
696
|
-
return tmp.
|
|
665
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).o34 = function ($this$sequence, $completion) {
|
|
666
|
+
var tmp = this.p34($this$sequence, $completion);
|
|
667
|
+
tmp.ci_1 = Unit_getInstance();
|
|
668
|
+
tmp.di_1 = null;
|
|
669
|
+
return tmp.ii();
|
|
697
670
|
};
|
|
698
|
-
ClassicExecutionContext$pathToRoot$slambda.
|
|
699
|
-
return this.
|
|
671
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).ui = function (p1, $completion) {
|
|
672
|
+
return this.o34(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
700
673
|
};
|
|
701
|
-
ClassicExecutionContext$pathToRoot$slambda.
|
|
702
|
-
var suspendResult = this.
|
|
674
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).ii = function () {
|
|
675
|
+
var suspendResult = this.ci_1;
|
|
703
676
|
$sm: do
|
|
704
677
|
try {
|
|
705
|
-
var tmp = this.
|
|
678
|
+
var tmp = this.ai_1;
|
|
706
679
|
switch (tmp) {
|
|
707
680
|
case 0:
|
|
708
|
-
this.
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
681
|
+
this.bi_1 = 4;
|
|
682
|
+
this.n34_1 = this.l34_1;
|
|
683
|
+
this.ai_1 = 1;
|
|
711
684
|
continue $sm;
|
|
712
685
|
case 1:
|
|
713
|
-
if (!!(this.
|
|
714
|
-
this.
|
|
686
|
+
if (!!(this.n34_1 == null)) {
|
|
687
|
+
this.ai_1 = 3;
|
|
715
688
|
continue $sm;
|
|
716
689
|
}
|
|
717
690
|
|
|
718
|
-
this.
|
|
719
|
-
suspendResult = this.
|
|
691
|
+
this.ai_1 = 2;
|
|
692
|
+
suspendResult = this.m34_1.d5(this.n34_1, this);
|
|
720
693
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
721
694
|
return suspendResult;
|
|
722
695
|
}
|
|
723
696
|
|
|
724
697
|
continue $sm;
|
|
725
698
|
case 2:
|
|
726
|
-
this.
|
|
727
|
-
this.
|
|
699
|
+
this.n34_1 = this.n34_1.w31_1;
|
|
700
|
+
this.ai_1 = 1;
|
|
728
701
|
continue $sm;
|
|
729
702
|
case 3:
|
|
730
703
|
return Unit_getInstance();
|
|
731
704
|
case 4:
|
|
732
|
-
throw this.
|
|
705
|
+
throw this.di_1;
|
|
733
706
|
}
|
|
734
707
|
} catch ($p) {
|
|
735
|
-
|
|
736
|
-
|
|
708
|
+
var e = $p;
|
|
709
|
+
if (this.bi_1 === 4) {
|
|
710
|
+
throw e;
|
|
737
711
|
} else {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
712
|
+
this.ai_1 = this.bi_1;
|
|
713
|
+
this.di_1 = e;
|
|
740
714
|
}
|
|
741
715
|
}
|
|
742
716
|
while (true);
|
|
743
717
|
};
|
|
744
|
-
ClassicExecutionContext$pathToRoot$slambda.
|
|
745
|
-
var i = new ClassicExecutionContext$pathToRoot$slambda(this.
|
|
746
|
-
i.
|
|
718
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).p34 = function ($this$sequence, completion) {
|
|
719
|
+
var i = new ClassicExecutionContext$pathToRoot$slambda(this.l34_1, completion);
|
|
720
|
+
i.m34_1 = $this$sequence;
|
|
747
721
|
return i;
|
|
748
722
|
};
|
|
749
723
|
function ClassicExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
750
724
|
var i = new ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
751
|
-
var l = function ($this$sequence, $
|
|
752
|
-
return i.
|
|
725
|
+
var l = function ($this$sequence, $completion) {
|
|
726
|
+
return i.o34($this$sequence, $completion);
|
|
753
727
|
};
|
|
754
728
|
l.$arity = 1;
|
|
755
729
|
return l;
|
|
@@ -757,11 +731,11 @@
|
|
|
757
731
|
function ClassicExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
758
732
|
return function () {
|
|
759
733
|
var tmp;
|
|
760
|
-
if (this$0.
|
|
734
|
+
if (this$0.q31_1.nq()) {
|
|
761
735
|
tmp = null;
|
|
762
736
|
} else {
|
|
763
|
-
var tmp0_safe_receiver = this$0.
|
|
764
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
737
|
+
var tmp0_safe_receiver = this$0.q31_1.lq();
|
|
738
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.o31_1);
|
|
765
739
|
}
|
|
766
740
|
return tmp;
|
|
767
741
|
};
|
|
@@ -771,50 +745,78 @@
|
|
|
771
745
|
}
|
|
772
746
|
function ClassicExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
773
747
|
return function () {
|
|
774
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
775
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
748
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.p31_1.yv());
|
|
749
|
+
return cached(distinct(plus(tmp, flatMap(this$0.a32_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
776
750
|
};
|
|
777
751
|
}
|
|
778
752
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
779
|
-
return it.
|
|
753
|
+
return it.q34();
|
|
780
754
|
}
|
|
781
755
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
782
756
|
return function (it) {
|
|
783
|
-
var tmp0_elvis_lhs = it.
|
|
784
|
-
return tmp0_elvis_lhs == null ?
|
|
757
|
+
var tmp0_elvis_lhs = it.e31_1;
|
|
758
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_8().of('?-', [this$0.p31_1]) : tmp0_elvis_lhs;
|
|
785
759
|
};
|
|
786
760
|
}
|
|
787
761
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
788
762
|
return function () {
|
|
789
|
-
var tmp = filter(this$0.
|
|
763
|
+
var tmp = filter(this$0.a32_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
790
764
|
return toList(map(tmp, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
791
765
|
};
|
|
792
766
|
}
|
|
793
767
|
function ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
768
|
+
procedure = procedure === VOID ? null : procedure;
|
|
769
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
770
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
771
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
772
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
773
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
|
|
774
|
+
operators = operators === VOID ? toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])) : operators;
|
|
775
|
+
inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
|
|
776
|
+
outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
|
|
777
|
+
customData = customData === VOID ? Companion_getInstance_9().empty() : customData;
|
|
778
|
+
substitution = substitution === VOID ? Companion_getInstance_10().empty() : substitution;
|
|
779
|
+
query = query === VOID ? Companion_getInstance_11().nv_1 : query;
|
|
780
|
+
goals = goals === VOID ? Companion_getInstance_12().empty() : goals;
|
|
781
|
+
rules = rules === VOID ? Companion_getInstance_12().empty() : rules;
|
|
782
|
+
primitives = primitives === VOID ? Companion_getInstance_12().empty() : primitives;
|
|
783
|
+
var tmp;
|
|
784
|
+
if (maxDuration === VOID) {
|
|
785
|
+
Companion_getInstance_13();
|
|
786
|
+
tmp = new Long(-1, 2147483647);
|
|
787
|
+
} else {
|
|
788
|
+
tmp = maxDuration;
|
|
789
|
+
}
|
|
790
|
+
maxDuration = tmp;
|
|
791
|
+
choicePoints = choicePoints === VOID ? null : choicePoints;
|
|
792
|
+
parent = parent === VOID ? null : parent;
|
|
793
|
+
depth = depth === VOID ? 0 : depth;
|
|
794
|
+
step = step === VOID ? new Long(0, 0) : step;
|
|
795
|
+
relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
|
|
796
|
+
this.e31_1 = procedure;
|
|
797
|
+
this.f31_1 = unificator;
|
|
798
|
+
this.g31_1 = libraries;
|
|
799
|
+
this.h31_1 = flags;
|
|
800
|
+
this.i31_1 = staticKb;
|
|
801
|
+
this.j31_1 = dynamicKb;
|
|
802
|
+
this.k31_1 = operators;
|
|
803
|
+
this.l31_1 = inputChannels;
|
|
804
|
+
this.m31_1 = outputChannels;
|
|
805
|
+
this.n31_1 = customData;
|
|
806
|
+
this.o31_1 = substitution;
|
|
807
|
+
this.p31_1 = query;
|
|
808
|
+
this.q31_1 = goals;
|
|
809
|
+
this.r31_1 = rules;
|
|
810
|
+
this.s31_1 = primitives;
|
|
811
|
+
this.t31_1 = startTime;
|
|
812
|
+
this.u31_1 = maxDuration;
|
|
813
|
+
this.v31_1 = choicePoints;
|
|
814
|
+
this.w31_1 = parent;
|
|
815
|
+
this.x31_1 = depth;
|
|
816
|
+
this.y31_1 = step;
|
|
817
|
+
this.z31_1 = relevantVariables;
|
|
816
818
|
// Inline function 'kotlin.require' call
|
|
817
|
-
var tmp0_require = (this.
|
|
819
|
+
var tmp0_require = (this.x31_1 === 0 ? this.w31_1 == null : false) ? true : this.x31_1 > 0 ? !(this.w31_1 == null) : false;
|
|
818
820
|
// Inline function 'kotlin.contracts.contract' call
|
|
819
821
|
// Inline function 'kotlin.require' call
|
|
820
822
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -826,7 +828,7 @@
|
|
|
826
828
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
827
829
|
}
|
|
828
830
|
// Inline function 'kotlin.require' call
|
|
829
|
-
var tmp1_require = this.
|
|
831
|
+
var tmp1_require = this.t31_1.i1(new Long(0, 0)) >= 0;
|
|
830
832
|
// Inline function 'kotlin.contracts.contract' call
|
|
831
833
|
// Inline function 'kotlin.require' call
|
|
832
834
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -838,7 +840,7 @@
|
|
|
838
840
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
839
841
|
}
|
|
840
842
|
// Inline function 'kotlin.require' call
|
|
841
|
-
var tmp2_require = this.
|
|
843
|
+
var tmp2_require = this.u31_1.i1(new Long(0, 0)) >= 0;
|
|
842
844
|
// Inline function 'kotlin.contracts.contract' call
|
|
843
845
|
// Inline function 'kotlin.require' call
|
|
844
846
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -849,249 +851,223 @@
|
|
|
849
851
|
var message_1 = tmp$ret$2;
|
|
850
852
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
851
853
|
}
|
|
852
|
-
var tmp = this;
|
|
853
|
-
tmp.h34_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
|
|
854
854
|
var tmp_0 = this;
|
|
855
|
-
tmp_0.
|
|
855
|
+
tmp_0.a32_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
|
|
856
856
|
var tmp_1 = this;
|
|
857
|
-
tmp_1.
|
|
857
|
+
tmp_1.b32_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
|
|
858
858
|
var tmp_2 = this;
|
|
859
|
-
tmp_2.
|
|
859
|
+
tmp_2.c32_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
|
|
860
|
+
var tmp_3 = this;
|
|
861
|
+
tmp_3.d32_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
860
862
|
}
|
|
861
|
-
ClassicExecutionContext.
|
|
862
|
-
return this.
|
|
863
|
+
protoOf(ClassicExecutionContext).q1t = function () {
|
|
864
|
+
return this.e31_1;
|
|
863
865
|
};
|
|
864
|
-
ClassicExecutionContext.
|
|
865
|
-
return this.
|
|
866
|
+
protoOf(ClassicExecutionContext).k1k = function () {
|
|
867
|
+
return this.f31_1;
|
|
866
868
|
};
|
|
867
|
-
ClassicExecutionContext.
|
|
868
|
-
return this.
|
|
869
|
+
protoOf(ClassicExecutionContext).v1t = function () {
|
|
870
|
+
return this.g31_1;
|
|
869
871
|
};
|
|
870
|
-
ClassicExecutionContext.
|
|
871
|
-
return this.
|
|
872
|
+
protoOf(ClassicExecutionContext).w1t = function () {
|
|
873
|
+
return this.h31_1;
|
|
872
874
|
};
|
|
873
|
-
ClassicExecutionContext.
|
|
874
|
-
return this.
|
|
875
|
+
protoOf(ClassicExecutionContext).x1t = function () {
|
|
876
|
+
return this.i31_1;
|
|
875
877
|
};
|
|
876
|
-
ClassicExecutionContext.
|
|
877
|
-
return this.
|
|
878
|
+
protoOf(ClassicExecutionContext).y1t = function () {
|
|
879
|
+
return this.j31_1;
|
|
878
880
|
};
|
|
879
|
-
ClassicExecutionContext.
|
|
880
|
-
return this.
|
|
881
|
+
protoOf(ClassicExecutionContext).e1u = function () {
|
|
882
|
+
return this.k31_1;
|
|
881
883
|
};
|
|
882
|
-
ClassicExecutionContext.
|
|
883
|
-
return this.
|
|
884
|
+
protoOf(ClassicExecutionContext).z1t = function () {
|
|
885
|
+
return this.l31_1;
|
|
884
886
|
};
|
|
885
|
-
ClassicExecutionContext.
|
|
886
|
-
return this.
|
|
887
|
+
protoOf(ClassicExecutionContext).a1u = function () {
|
|
888
|
+
return this.m31_1;
|
|
887
889
|
};
|
|
888
|
-
ClassicExecutionContext.
|
|
889
|
-
return this.
|
|
890
|
+
protoOf(ClassicExecutionContext).t1t = function () {
|
|
891
|
+
return this.n31_1;
|
|
890
892
|
};
|
|
891
|
-
ClassicExecutionContext.
|
|
892
|
-
return this.
|
|
893
|
+
protoOf(ClassicExecutionContext).r1t = function () {
|
|
894
|
+
return this.o31_1;
|
|
893
895
|
};
|
|
894
|
-
ClassicExecutionContext.
|
|
895
|
-
return this.
|
|
896
|
+
protoOf(ClassicExecutionContext).l1t = function () {
|
|
897
|
+
return this.t31_1;
|
|
896
898
|
};
|
|
897
|
-
ClassicExecutionContext.
|
|
898
|
-
return this.
|
|
899
|
+
protoOf(ClassicExecutionContext).n1t = function () {
|
|
900
|
+
return this.u31_1;
|
|
899
901
|
};
|
|
900
|
-
ClassicExecutionContext.
|
|
901
|
-
return this.
|
|
902
|
+
protoOf(ClassicExecutionContext).r34 = function () {
|
|
903
|
+
return this.x31_1 === 0;
|
|
902
904
|
};
|
|
903
|
-
ClassicExecutionContext.
|
|
904
|
-
var tmp0_safe_receiver = this.
|
|
905
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
905
|
+
protoOf(ClassicExecutionContext).c33 = function () {
|
|
906
|
+
var tmp0_safe_receiver = this.v31_1;
|
|
907
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c33();
|
|
906
908
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
907
909
|
};
|
|
908
|
-
ClassicExecutionContext.
|
|
909
|
-
return this.
|
|
910
|
+
protoOf(ClassicExecutionContext).q34 = function () {
|
|
911
|
+
return this.w31_1 == null ? true : (this.x31_1 - this.w31_1.x31_1 | 0) >= 1;
|
|
910
912
|
};
|
|
911
|
-
ClassicExecutionContext.
|
|
913
|
+
protoOf(ClassicExecutionContext).s34 = function () {
|
|
912
914
|
var tmp$ret$0;
|
|
913
915
|
// Inline function 'kotlin.getValue' call
|
|
914
916
|
var tmp0_getValue = currentGoal$factory();
|
|
915
|
-
tmp$ret$0 = this.
|
|
917
|
+
tmp$ret$0 = this.b32_1.b1();
|
|
916
918
|
return tmp$ret$0;
|
|
917
919
|
};
|
|
918
|
-
ClassicExecutionContext.
|
|
920
|
+
protoOf(ClassicExecutionContext).t34 = function (variable) {
|
|
919
921
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
920
922
|
};
|
|
921
|
-
ClassicExecutionContext.
|
|
923
|
+
protoOf(ClassicExecutionContext).s1t = function () {
|
|
922
924
|
var tmp$ret$0;
|
|
923
925
|
// Inline function 'kotlin.getValue' call
|
|
924
926
|
var tmp0_getValue = logicStackTrace$factory();
|
|
925
|
-
tmp$ret$0 = this.
|
|
927
|
+
tmp$ret$0 = this.d32_1.b1();
|
|
926
928
|
return tmp$ret$0;
|
|
927
929
|
};
|
|
928
|
-
ClassicExecutionContext.
|
|
930
|
+
protoOf(ClassicExecutionContext).u1t = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
929
931
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
930
932
|
};
|
|
931
|
-
ClassicExecutionContext.
|
|
933
|
+
protoOf(ClassicExecutionContext).b1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
932
934
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
933
935
|
};
|
|
934
|
-
ClassicExecutionContext.
|
|
935
|
-
|
|
936
|
-
var tmp_0 = new Long(0, 0);
|
|
937
|
-
var tmp_1 = new Long(0, 0);
|
|
938
|
-
var tmp_2 = new Long(0, 0);
|
|
939
|
-
return this.c35(null, unificator, libraries, flags, staticKb, tmp, operators, inputChannels, outputChannels, customData, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4193281, null);
|
|
936
|
+
protoOf(ClassicExecutionContext).d1u = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
937
|
+
return this.v32(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
940
938
|
};
|
|
941
|
-
ClassicExecutionContext.
|
|
939
|
+
protoOf(ClassicExecutionContext).u34 = function (sideEffect) {
|
|
942
940
|
var tmp = apply.call(this, sideEffect);
|
|
943
941
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
944
942
|
};
|
|
945
|
-
ClassicExecutionContext.
|
|
946
|
-
return this.
|
|
943
|
+
protoOf(ClassicExecutionContext).apply = function (sideEffect) {
|
|
944
|
+
return this.u34(sideEffect);
|
|
947
945
|
};
|
|
948
|
-
ClassicExecutionContext.
|
|
946
|
+
protoOf(ClassicExecutionContext).v34 = function (sideEffects) {
|
|
949
947
|
var tmp = applyIterable.call(this, sideEffects);
|
|
950
948
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
951
949
|
};
|
|
952
|
-
ClassicExecutionContext.
|
|
953
|
-
return this.
|
|
950
|
+
protoOf(ClassicExecutionContext).applyIterable = function (sideEffects) {
|
|
951
|
+
return this.v34(sideEffects);
|
|
954
952
|
};
|
|
955
|
-
ClassicExecutionContext.
|
|
953
|
+
protoOf(ClassicExecutionContext).w34 = function (sideEffects) {
|
|
956
954
|
var tmp = applySequence.call(this, sideEffects);
|
|
957
955
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
958
956
|
};
|
|
959
|
-
ClassicExecutionContext.
|
|
960
|
-
return this.
|
|
957
|
+
protoOf(ClassicExecutionContext).applySequence = function (sideEffects) {
|
|
958
|
+
return this.w34(sideEffects);
|
|
961
959
|
};
|
|
962
|
-
ClassicExecutionContext.
|
|
963
|
-
return 'ClassicExecutionContext(' + ('step=' + toString(this.
|
|
960
|
+
protoOf(ClassicExecutionContext).toString = function () {
|
|
961
|
+
return 'ClassicExecutionContext(' + ('step=' + toString(this.y31_1) + ', ') + ('depth=' + this.x31_1 + ', ') + ('substitution=' + this.o31_1 + ', ') + ('logicStackTrace=' + this.s1t() + ', ') + ('goals=' + this.q31_1 + ', ') + ('rules=' + this.r31_1 + ', ') + ('primitives=' + this.s31_1 + ', ') + ('startTime=' + toString(this.t31_1) + ', ') + ('endTime=' + toString(this.m1t()) + ', ') + ('maxDuration=' + toString(this.u31_1) + ', ') + ('unificator=' + this.f31_1 + ', ') + ('choicePoints=' + this.v31_1) + ')';
|
|
964
962
|
};
|
|
965
|
-
ClassicExecutionContext.
|
|
963
|
+
protoOf(ClassicExecutionContext).x34 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
966
964
|
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);
|
|
967
965
|
};
|
|
968
|
-
ClassicExecutionContext.
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
var result = this.l33_1 == null ? 0 : this.l33_1.hashCode();
|
|
1017
|
-
result = imul(result, 31) + hashCode(this.m33_1) | 0;
|
|
1018
|
-
result = imul(result, 31) + hashCode(this.n33_1) | 0;
|
|
1019
|
-
result = imul(result, 31) + this.o33_1.hashCode() | 0;
|
|
1020
|
-
result = imul(result, 31) + hashCode(this.p33_1) | 0;
|
|
1021
|
-
result = imul(result, 31) + hashCode(this.q33_1) | 0;
|
|
1022
|
-
result = imul(result, 31) + this.r33_1.hashCode() | 0;
|
|
1023
|
-
result = imul(result, 31) + hashCode(this.s33_1) | 0;
|
|
1024
|
-
result = imul(result, 31) + hashCode(this.t33_1) | 0;
|
|
1025
|
-
result = imul(result, 31) + this.u33_1.hashCode() | 0;
|
|
1026
|
-
result = imul(result, 31) + hashCode(this.v33_1) | 0;
|
|
1027
|
-
result = imul(result, 31) + this.w33_1.hashCode() | 0;
|
|
1028
|
-
result = imul(result, 31) + hashCode(this.x33_1) | 0;
|
|
1029
|
-
result = imul(result, 31) + hashCode(this.y33_1) | 0;
|
|
1030
|
-
result = imul(result, 31) + hashCode(this.z33_1) | 0;
|
|
1031
|
-
result = imul(result, 31) + this.a34_1.hashCode() | 0;
|
|
1032
|
-
result = imul(result, 31) + this.b34_1.hashCode() | 0;
|
|
1033
|
-
result = imul(result, 31) + (this.c34_1 == null ? 0 : hashCode(this.c34_1)) | 0;
|
|
1034
|
-
result = imul(result, 31) + (this.d34_1 == null ? 0 : this.d34_1.hashCode()) | 0;
|
|
1035
|
-
result = imul(result, 31) + this.e34_1 | 0;
|
|
1036
|
-
result = imul(result, 31) + this.f34_1.hashCode() | 0;
|
|
1037
|
-
result = imul(result, 31) + hashCode(this.g34_1) | 0;
|
|
966
|
+
protoOf(ClassicExecutionContext).v32 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
967
|
+
procedure = procedure === VOID ? this.e31_1 : procedure;
|
|
968
|
+
unificator = unificator === VOID ? this.f31_1 : unificator;
|
|
969
|
+
libraries = libraries === VOID ? this.g31_1 : libraries;
|
|
970
|
+
flags = flags === VOID ? this.h31_1 : flags;
|
|
971
|
+
staticKb = staticKb === VOID ? this.i31_1 : staticKb;
|
|
972
|
+
dynamicKb = dynamicKb === VOID ? this.j31_1 : dynamicKb;
|
|
973
|
+
operators = operators === VOID ? this.k31_1 : operators;
|
|
974
|
+
inputChannels = inputChannels === VOID ? this.l31_1 : inputChannels;
|
|
975
|
+
outputChannels = outputChannels === VOID ? this.m31_1 : outputChannels;
|
|
976
|
+
customData = customData === VOID ? this.n31_1 : customData;
|
|
977
|
+
substitution = substitution === VOID ? this.o31_1 : substitution;
|
|
978
|
+
query = query === VOID ? this.p31_1 : query;
|
|
979
|
+
goals = goals === VOID ? this.q31_1 : goals;
|
|
980
|
+
rules = rules === VOID ? this.r31_1 : rules;
|
|
981
|
+
primitives = primitives === VOID ? this.s31_1 : primitives;
|
|
982
|
+
startTime = startTime === VOID ? this.t31_1 : startTime;
|
|
983
|
+
maxDuration = maxDuration === VOID ? this.u31_1 : maxDuration;
|
|
984
|
+
choicePoints = choicePoints === VOID ? this.v31_1 : choicePoints;
|
|
985
|
+
parent = parent === VOID ? this.w31_1 : parent;
|
|
986
|
+
depth = depth === VOID ? this.x31_1 : depth;
|
|
987
|
+
step = step === VOID ? this.y31_1 : step;
|
|
988
|
+
relevantVariables = relevantVariables === VOID ? this.z31_1 : relevantVariables;
|
|
989
|
+
return $super === VOID ? this.x34(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.x34.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
|
+
};
|
|
991
|
+
protoOf(ClassicExecutionContext).hashCode = function () {
|
|
992
|
+
var result = this.e31_1 == null ? 0 : this.e31_1.hashCode();
|
|
993
|
+
result = imul(result, 31) + hashCode(this.f31_1) | 0;
|
|
994
|
+
result = imul(result, 31) + hashCode(this.g31_1) | 0;
|
|
995
|
+
result = imul(result, 31) + this.h31_1.hashCode() | 0;
|
|
996
|
+
result = imul(result, 31) + hashCode(this.i31_1) | 0;
|
|
997
|
+
result = imul(result, 31) + hashCode(this.j31_1) | 0;
|
|
998
|
+
result = imul(result, 31) + this.k31_1.hashCode() | 0;
|
|
999
|
+
result = imul(result, 31) + hashCode(this.l31_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + hashCode(this.m31_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + this.n31_1.hashCode() | 0;
|
|
1002
|
+
result = imul(result, 31) + hashCode(this.o31_1) | 0;
|
|
1003
|
+
result = imul(result, 31) + this.p31_1.hashCode() | 0;
|
|
1004
|
+
result = imul(result, 31) + hashCode(this.q31_1) | 0;
|
|
1005
|
+
result = imul(result, 31) + hashCode(this.r31_1) | 0;
|
|
1006
|
+
result = imul(result, 31) + hashCode(this.s31_1) | 0;
|
|
1007
|
+
result = imul(result, 31) + this.t31_1.hashCode() | 0;
|
|
1008
|
+
result = imul(result, 31) + this.u31_1.hashCode() | 0;
|
|
1009
|
+
result = imul(result, 31) + (this.v31_1 == null ? 0 : hashCode(this.v31_1)) | 0;
|
|
1010
|
+
result = imul(result, 31) + (this.w31_1 == null ? 0 : this.w31_1.hashCode()) | 0;
|
|
1011
|
+
result = imul(result, 31) + this.x31_1 | 0;
|
|
1012
|
+
result = imul(result, 31) + this.y31_1.hashCode() | 0;
|
|
1013
|
+
result = imul(result, 31) + hashCode(this.z31_1) | 0;
|
|
1038
1014
|
return result;
|
|
1039
1015
|
};
|
|
1040
|
-
ClassicExecutionContext.
|
|
1016
|
+
protoOf(ClassicExecutionContext).equals = function (other) {
|
|
1041
1017
|
if (this === other)
|
|
1042
1018
|
return true;
|
|
1043
1019
|
if (!(other instanceof ClassicExecutionContext))
|
|
1044
1020
|
return false;
|
|
1045
1021
|
var tmp0_other_with_cast = other instanceof ClassicExecutionContext ? other : THROW_CCE();
|
|
1046
|
-
if (!equals(this.
|
|
1022
|
+
if (!equals(this.e31_1, tmp0_other_with_cast.e31_1))
|
|
1047
1023
|
return false;
|
|
1048
|
-
if (!equals(this.
|
|
1024
|
+
if (!equals(this.f31_1, tmp0_other_with_cast.f31_1))
|
|
1049
1025
|
return false;
|
|
1050
|
-
if (!equals(this.
|
|
1026
|
+
if (!equals(this.g31_1, tmp0_other_with_cast.g31_1))
|
|
1051
1027
|
return false;
|
|
1052
|
-
if (!this.
|
|
1028
|
+
if (!this.h31_1.equals(tmp0_other_with_cast.h31_1))
|
|
1053
1029
|
return false;
|
|
1054
|
-
if (!equals(this.
|
|
1030
|
+
if (!equals(this.i31_1, tmp0_other_with_cast.i31_1))
|
|
1055
1031
|
return false;
|
|
1056
|
-
if (!equals(this.
|
|
1032
|
+
if (!equals(this.j31_1, tmp0_other_with_cast.j31_1))
|
|
1057
1033
|
return false;
|
|
1058
|
-
if (!this.
|
|
1034
|
+
if (!this.k31_1.equals(tmp0_other_with_cast.k31_1))
|
|
1059
1035
|
return false;
|
|
1060
|
-
if (!equals(this.
|
|
1036
|
+
if (!equals(this.l31_1, tmp0_other_with_cast.l31_1))
|
|
1061
1037
|
return false;
|
|
1062
|
-
if (!equals(this.
|
|
1038
|
+
if (!equals(this.m31_1, tmp0_other_with_cast.m31_1))
|
|
1063
1039
|
return false;
|
|
1064
|
-
if (!this.
|
|
1040
|
+
if (!this.n31_1.equals(tmp0_other_with_cast.n31_1))
|
|
1065
1041
|
return false;
|
|
1066
|
-
if (!equals(this.
|
|
1042
|
+
if (!equals(this.o31_1, tmp0_other_with_cast.o31_1))
|
|
1067
1043
|
return false;
|
|
1068
|
-
if (!this.
|
|
1044
|
+
if (!this.p31_1.equals(tmp0_other_with_cast.p31_1))
|
|
1069
1045
|
return false;
|
|
1070
|
-
if (!equals(this.
|
|
1046
|
+
if (!equals(this.q31_1, tmp0_other_with_cast.q31_1))
|
|
1071
1047
|
return false;
|
|
1072
|
-
if (!equals(this.
|
|
1048
|
+
if (!equals(this.r31_1, tmp0_other_with_cast.r31_1))
|
|
1073
1049
|
return false;
|
|
1074
|
-
if (!equals(this.
|
|
1050
|
+
if (!equals(this.s31_1, tmp0_other_with_cast.s31_1))
|
|
1075
1051
|
return false;
|
|
1076
|
-
if (!this.
|
|
1052
|
+
if (!this.t31_1.equals(tmp0_other_with_cast.t31_1))
|
|
1077
1053
|
return false;
|
|
1078
|
-
if (!this.
|
|
1054
|
+
if (!this.u31_1.equals(tmp0_other_with_cast.u31_1))
|
|
1079
1055
|
return false;
|
|
1080
|
-
if (!equals(this.
|
|
1056
|
+
if (!equals(this.v31_1, tmp0_other_with_cast.v31_1))
|
|
1081
1057
|
return false;
|
|
1082
|
-
if (!equals(this.
|
|
1058
|
+
if (!equals(this.w31_1, tmp0_other_with_cast.w31_1))
|
|
1083
1059
|
return false;
|
|
1084
|
-
if (!(this.
|
|
1060
|
+
if (!(this.x31_1 === tmp0_other_with_cast.x31_1))
|
|
1085
1061
|
return false;
|
|
1086
|
-
if (!this.
|
|
1062
|
+
if (!this.y31_1.equals(tmp0_other_with_cast.y31_1))
|
|
1087
1063
|
return false;
|
|
1088
|
-
if (!equals(this.
|
|
1064
|
+
if (!equals(this.z31_1, tmp0_other_with_cast.z31_1))
|
|
1089
1065
|
return false;
|
|
1090
1066
|
return true;
|
|
1091
1067
|
};
|
|
1092
1068
|
function currentGoal$factory() {
|
|
1093
1069
|
return getPropertyCallableRef('currentGoal', 1, KProperty1, function (receiver) {
|
|
1094
|
-
return receiver.
|
|
1070
|
+
return receiver.s34();
|
|
1095
1071
|
}, null);
|
|
1096
1072
|
}
|
|
1097
1073
|
function interestingVariables$factory() {
|
|
@@ -1101,107 +1077,74 @@
|
|
|
1101
1077
|
}
|
|
1102
1078
|
function logicStackTrace$factory() {
|
|
1103
1079
|
return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
|
|
1104
|
-
return receiver.
|
|
1080
|
+
return receiver.s1t();
|
|
1105
1081
|
}, null);
|
|
1106
1082
|
}
|
|
1107
1083
|
function ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1084
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
1085
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
1086
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
1087
|
+
initialStaticKb = initialStaticKb === VOID ? Companion_getInstance_2().empty(unificator) : initialStaticKb;
|
|
1088
|
+
initialDynamicKb = initialDynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : initialDynamicKb;
|
|
1089
|
+
inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
|
|
1090
|
+
outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
|
|
1091
|
+
trustKb = trustKb === VOID ? false : trustKb;
|
|
1108
1092
|
AbstractClassicSolver.call($this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
1109
1093
|
ClassicSolver.call($this);
|
|
1110
1094
|
return $this;
|
|
1111
1095
|
}
|
|
1112
1096
|
function ClassicSolver_init_$Create$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
1113
|
-
return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb,
|
|
1114
|
-
}
|
|
1115
|
-
function ClassicSolver_init_$Init$_0(unificator, libraries, flags,
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
if (!(($mask0 & 32) === 0)) {
|
|
1127
|
-
var tmp = Companion_getInstance();
|
|
1128
|
-
inputChannels = tmp.v1z(null, 1, null);
|
|
1129
|
-
}
|
|
1130
|
-
if (!(($mask0 & 64) === 0)) {
|
|
1131
|
-
var tmp_0 = Companion_getInstance_0();
|
|
1132
|
-
outputChannels = tmp_0.w1z(null, null, null, 7, null);
|
|
1133
|
-
}
|
|
1134
|
-
if (!(($mask0 & 128) === 0))
|
|
1135
|
-
trustKb = false;
|
|
1136
|
-
ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this);
|
|
1137
|
-
return $this;
|
|
1138
|
-
}
|
|
1139
|
-
function ClassicSolver_init_$Create$_0(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker) {
|
|
1140
|
-
return ClassicSolver_init_$Init$_0(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker, Object.create(ClassicSolver.prototype));
|
|
1141
|
-
}
|
|
1142
|
-
function ClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1097
|
+
return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1098
|
+
}
|
|
1099
|
+
function ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1100
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
1101
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
1102
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
1103
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
1104
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
|
|
1105
|
+
stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
|
|
1106
|
+
stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
|
|
1107
|
+
stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
|
|
1108
|
+
warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
|
|
1109
|
+
trustKb = trustKb === VOID ? false : trustKb;
|
|
1143
1110
|
AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1144
1111
|
ClassicSolver.call($this);
|
|
1145
1112
|
return $this;
|
|
1146
1113
|
}
|
|
1147
|
-
function ClassicSolver_init_$
|
|
1148
|
-
|
|
1149
|
-
unificator = Companion_getInstance_3().h1l();
|
|
1150
|
-
if (!(($mask0 & 2) === 0))
|
|
1151
|
-
libraries = Companion_getInstance_4().empty();
|
|
1152
|
-
if (!(($mask0 & 4) === 0))
|
|
1153
|
-
flags = Companion_getInstance_5().empty();
|
|
1154
|
-
if (!(($mask0 & 8) === 0))
|
|
1155
|
-
staticKb = Companion_getInstance_1().empty(unificator);
|
|
1156
|
-
if (!(($mask0 & 16) === 0))
|
|
1157
|
-
dynamicKb = Companion_getInstance_2().empty(unificator);
|
|
1158
|
-
if (!(($mask0 & 32) === 0))
|
|
1159
|
-
stdIn = Companion_getInstance_12().stdIn();
|
|
1160
|
-
if (!(($mask0 & 64) === 0))
|
|
1161
|
-
stdOut = Companion_getInstance_13().stdOut();
|
|
1162
|
-
if (!(($mask0 & 128) === 0))
|
|
1163
|
-
stdErr = Companion_getInstance_13().stdErr();
|
|
1164
|
-
if (!(($mask0 & 256) === 0))
|
|
1165
|
-
warnings = Companion_getInstance_13().warning();
|
|
1166
|
-
if (!(($mask0 & 512) === 0))
|
|
1167
|
-
trustKb = false;
|
|
1168
|
-
ClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1169
|
-
return $this;
|
|
1170
|
-
}
|
|
1171
|
-
function ClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker) {
|
|
1172
|
-
return ClassicSolver_init_$Init$_2(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker, Object.create(ClassicSolver.prototype));
|
|
1114
|
+
function ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1115
|
+
return ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1173
1116
|
}
|
|
1174
|
-
ClassicSolver.
|
|
1175
|
-
return Companion_getInstance_22().
|
|
1117
|
+
protoOf(ClassicSolver).g32 = function (initialState, onStateTransition) {
|
|
1118
|
+
return Companion_getInstance_22().z34(initialState, onStateTransition);
|
|
1176
1119
|
};
|
|
1177
|
-
ClassicSolver.
|
|
1178
|
-
return ClassicSolver_init_$Create$
|
|
1120
|
+
protoOf(ClassicSolver).m1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1121
|
+
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1179
1122
|
};
|
|
1180
|
-
ClassicSolver.
|
|
1181
|
-
return this.
|
|
1123
|
+
protoOf(ClassicSolver).z1r = function () {
|
|
1124
|
+
return this.copy();
|
|
1182
1125
|
};
|
|
1183
|
-
ClassicSolver.
|
|
1184
|
-
return this.
|
|
1126
|
+
protoOf(ClassicSolver).clone = function () {
|
|
1127
|
+
return this.z1r();
|
|
1185
1128
|
};
|
|
1186
1129
|
function ClassicSolver() {
|
|
1187
1130
|
}
|
|
1188
1131
|
function ClassicSolverFactory() {
|
|
1189
1132
|
ClassicSolverFactory_instance = this;
|
|
1190
1133
|
}
|
|
1191
|
-
ClassicSolverFactory.
|
|
1134
|
+
protoOf(ClassicSolverFactory).u1w = function () {
|
|
1192
1135
|
return DefaultBuiltins_getInstance();
|
|
1193
1136
|
};
|
|
1194
|
-
ClassicSolverFactory.
|
|
1195
|
-
return ClassicSolver_init_$Create$
|
|
1137
|
+
protoOf(ClassicSolverFactory).f1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1138
|
+
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1196
1139
|
};
|
|
1197
|
-
ClassicSolverFactory.
|
|
1198
|
-
return ClassicSolver_init_$Create$
|
|
1140
|
+
protoOf(ClassicSolverFactory).l1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1141
|
+
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1199
1142
|
};
|
|
1200
|
-
ClassicSolverFactory.
|
|
1201
|
-
return MutableClassicSolver_init_$Create$
|
|
1143
|
+
protoOf(ClassicSolverFactory).n1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1144
|
+
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1202
1145
|
};
|
|
1203
|
-
ClassicSolverFactory.
|
|
1204
|
-
return MutableClassicSolver_init_$Create$
|
|
1146
|
+
protoOf(ClassicSolverFactory).p1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1147
|
+
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1205
1148
|
};
|
|
1206
1149
|
var ClassicSolverFactory_instance;
|
|
1207
1150
|
function ClassicSolverFactory_getInstance() {
|
|
@@ -1210,419 +1153,300 @@
|
|
|
1210
1153
|
return ClassicSolverFactory_instance;
|
|
1211
1154
|
}
|
|
1212
1155
|
function MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1156
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
1157
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
1158
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
1159
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
1160
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
|
|
1161
|
+
inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
|
|
1162
|
+
outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
|
|
1163
|
+
trustKb = trustKb === VOID ? false : trustKb;
|
|
1213
1164
|
ClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this);
|
|
1214
1165
|
MutableClassicSolver.call($this);
|
|
1215
1166
|
return $this;
|
|
1216
1167
|
}
|
|
1217
1168
|
function MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb) {
|
|
1218
|
-
return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb,
|
|
1219
|
-
}
|
|
1220
|
-
function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb,
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
var tmp = Companion_getInstance();
|
|
1233
|
-
inputChannels = tmp.v1z(null, 1, null);
|
|
1234
|
-
}
|
|
1235
|
-
if (!(($mask0 & 64) === 0)) {
|
|
1236
|
-
var tmp_0 = Companion_getInstance_0();
|
|
1237
|
-
outputChannels = tmp_0.w1z(null, null, null, 7, null);
|
|
1238
|
-
}
|
|
1239
|
-
if (!(($mask0 & 128) === 0))
|
|
1240
|
-
trustKb = false;
|
|
1241
|
-
MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this);
|
|
1242
|
-
return $this;
|
|
1243
|
-
}
|
|
1244
|
-
function MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker) {
|
|
1245
|
-
return MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker, Object.create(MutableClassicSolver.prototype));
|
|
1246
|
-
}
|
|
1247
|
-
function MutableClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1248
|
-
ClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1169
|
+
return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutableClassicSolver)));
|
|
1170
|
+
}
|
|
1171
|
+
function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1172
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
1173
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
1174
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
1175
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
1176
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
|
|
1177
|
+
stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
|
|
1178
|
+
stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
|
|
1179
|
+
stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
|
|
1180
|
+
warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
|
|
1181
|
+
trustKb = trustKb === VOID ? false : trustKb;
|
|
1182
|
+
ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1249
1183
|
MutableClassicSolver.call($this);
|
|
1250
1184
|
return $this;
|
|
1251
1185
|
}
|
|
1252
|
-
function MutableClassicSolver_init_$
|
|
1253
|
-
|
|
1254
|
-
unificator = Companion_getInstance_3().h1l();
|
|
1255
|
-
if (!(($mask0 & 2) === 0))
|
|
1256
|
-
libraries = Companion_getInstance_4().empty();
|
|
1257
|
-
if (!(($mask0 & 4) === 0))
|
|
1258
|
-
flags = Companion_getInstance_5().empty();
|
|
1259
|
-
if (!(($mask0 & 8) === 0))
|
|
1260
|
-
staticKb = Companion_getInstance_1().empty(unificator);
|
|
1261
|
-
if (!(($mask0 & 16) === 0))
|
|
1262
|
-
dynamicKb = Companion_getInstance_2().empty(unificator);
|
|
1263
|
-
if (!(($mask0 & 32) === 0))
|
|
1264
|
-
stdIn = Companion_getInstance_12().stdIn();
|
|
1265
|
-
if (!(($mask0 & 64) === 0))
|
|
1266
|
-
stdOut = Companion_getInstance_13().stdOut();
|
|
1267
|
-
if (!(($mask0 & 128) === 0))
|
|
1268
|
-
stdErr = Companion_getInstance_13().stdErr();
|
|
1269
|
-
if (!(($mask0 & 256) === 0))
|
|
1270
|
-
warnings = Companion_getInstance_13().warning();
|
|
1271
|
-
if (!(($mask0 & 512) === 0))
|
|
1272
|
-
trustKb = false;
|
|
1273
|
-
MutableClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
|
|
1274
|
-
return $this;
|
|
1275
|
-
}
|
|
1276
|
-
function MutableClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker) {
|
|
1277
|
-
return MutableClassicSolver_init_$Init$_2(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker, Object.create(MutableClassicSolver.prototype));
|
|
1186
|
+
function MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1187
|
+
return MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(MutableClassicSolver)));
|
|
1278
1188
|
}
|
|
1279
1189
|
function MutableClassicSolver$loadLibrary$lambda($library) {
|
|
1280
1190
|
return function ($this$updateContext) {
|
|
1281
|
-
var newRuntime = $this$updateContext.
|
|
1282
|
-
|
|
1283
|
-
var tmp_0 = new Long(0, 0);
|
|
1284
|
-
var tmp_1 = new Long(0, 0);
|
|
1285
|
-
var tmp_2 = new Long(0, 0);
|
|
1286
|
-
return $this$updateContext.c35(null, null, newRuntime, null, null, null, tmp, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194235, null);
|
|
1191
|
+
var newRuntime = $this$updateContext.g31_1.plusLibrary($library);
|
|
1192
|
+
return $this$updateContext.v32(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.k31_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
1287
1193
|
};
|
|
1288
1194
|
}
|
|
1289
1195
|
function MutableClassicSolver$unloadLibrary$lambda($library) {
|
|
1290
1196
|
return function ($this$updateContext) {
|
|
1291
|
-
var newRuntime = $this$updateContext.
|
|
1292
|
-
|
|
1293
|
-
var tmp_0 = new Long(0, 0);
|
|
1294
|
-
var tmp_1 = new Long(0, 0);
|
|
1295
|
-
var tmp_2 = new Long(0, 0);
|
|
1296
|
-
return $this$updateContext.c35(null, null, newRuntime, null, null, null, tmp, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194235, null);
|
|
1197
|
+
var newRuntime = $this$updateContext.g31_1.plusLibrary($library);
|
|
1198
|
+
return $this$updateContext.v32(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.i31_1, $this$updateContext.j31_1])));
|
|
1297
1199
|
};
|
|
1298
1200
|
}
|
|
1299
1201
|
function MutableClassicSolver$setRuntime$lambda($libraries) {
|
|
1300
1202
|
return function ($this$updateContext) {
|
|
1301
|
-
|
|
1302
|
-
var tmp_0 = new Long(0, 0);
|
|
1303
|
-
var tmp_1 = new Long(0, 0);
|
|
1304
|
-
var tmp_2 = new Long(0, 0);
|
|
1305
|
-
return $this$updateContext.c35(null, null, $libraries, null, null, null, tmp, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194235, null);
|
|
1203
|
+
return $this$updateContext.v32(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.i31_1, $this$updateContext.j31_1])));
|
|
1306
1204
|
};
|
|
1307
1205
|
}
|
|
1308
1206
|
function MutableClassicSolver$resetStaticKb$lambda($this$updateContext) {
|
|
1309
|
-
|
|
1310
|
-
var tmp_0 = toOperatorSet(getAllOperators($this$updateContext.n33_1, [$this$updateContext.q33_1]));
|
|
1311
|
-
var tmp_1 = new Long(0, 0);
|
|
1312
|
-
var tmp_2 = new Long(0, 0);
|
|
1313
|
-
var tmp_3 = new Long(0, 0);
|
|
1314
|
-
return $this$updateContext.c35(null, null, null, null, tmp, null, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194223, null);
|
|
1207
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, Companion_getInstance_2().empty($this$updateContext.f31_1), VOID, toOperatorSet(getAllOperators($this$updateContext.g31_1, [$this$updateContext.j31_1])));
|
|
1315
1208
|
}
|
|
1316
1209
|
function MutableClassicSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
1317
|
-
|
|
1318
|
-
var tmp_0 = toOperatorSet(getAllOperators($this$updateContext.n33_1, [$this$updateContext.p33_1]));
|
|
1319
|
-
var tmp_1 = new Long(0, 0);
|
|
1320
|
-
var tmp_2 = new Long(0, 0);
|
|
1321
|
-
var tmp_3 = new Long(0, 0);
|
|
1322
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
|
|
1210
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, Companion_getInstance_3().empty($this$updateContext.f31_1), toOperatorSet(getAllOperators($this$updateContext.g31_1, [$this$updateContext.i31_1])));
|
|
1323
1211
|
}
|
|
1324
1212
|
function MutableClassicSolver$assertA$lambda($clause) {
|
|
1325
1213
|
return function ($this$updateContext) {
|
|
1326
|
-
|
|
1327
|
-
var tmp_0 = $this$updateContext.r33_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause))));
|
|
1328
|
-
var tmp_1 = new Long(0, 0);
|
|
1329
|
-
var tmp_2 = new Long(0, 0);
|
|
1330
|
-
var tmp_3 = new Long(0, 0);
|
|
1331
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
|
|
1214
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.p1r($clause), $this$updateContext.k31_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1332
1215
|
};
|
|
1333
1216
|
}
|
|
1334
1217
|
function MutableClassicSolver$assertA$lambda_0($fact) {
|
|
1335
1218
|
return function ($this$updateContext) {
|
|
1336
|
-
|
|
1337
|
-
var tmp_0 = new Long(0, 0);
|
|
1338
|
-
var tmp_1 = new Long(0, 0);
|
|
1339
|
-
var tmp_2 = new Long(0, 0);
|
|
1340
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
|
|
1219
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.c1s($fact));
|
|
1341
1220
|
};
|
|
1342
1221
|
}
|
|
1343
1222
|
function MutableClassicSolver$assertZ$lambda($clause) {
|
|
1344
1223
|
return function ($this$updateContext) {
|
|
1345
|
-
|
|
1346
|
-
var tmp_0 = $this$updateContext.r33_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause))));
|
|
1347
|
-
var tmp_1 = new Long(0, 0);
|
|
1348
|
-
var tmp_2 = new Long(0, 0);
|
|
1349
|
-
var tmp_3 = new Long(0, 0);
|
|
1350
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
|
|
1224
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.t1r($clause), $this$updateContext.k31_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1351
1225
|
};
|
|
1352
1226
|
}
|
|
1353
1227
|
function MutableClassicSolver$assertZ$lambda_0($fact) {
|
|
1354
1228
|
return function ($this$updateContext) {
|
|
1355
|
-
|
|
1356
|
-
var tmp_0 = new Long(0, 0);
|
|
1357
|
-
var tmp_1 = new Long(0, 0);
|
|
1358
|
-
var tmp_2 = new Long(0, 0);
|
|
1359
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
|
|
1229
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.d1s($fact));
|
|
1360
1230
|
};
|
|
1361
1231
|
}
|
|
1362
1232
|
function MutableClassicSolver$retract$lambda($result, $clause) {
|
|
1363
1233
|
return function ($this$updateContext) {
|
|
1364
|
-
|
|
1365
|
-
var tmp_0 = $this$updateContext.r33_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause))));
|
|
1366
|
-
var tmp_1 = new Long(0, 0);
|
|
1367
|
-
var tmp_2 = new Long(0, 0);
|
|
1368
|
-
var tmp_3 = new Long(0, 0);
|
|
1369
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
|
|
1234
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory(), $this$updateContext.k31_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1370
1235
|
};
|
|
1371
1236
|
}
|
|
1372
1237
|
function MutableClassicSolver$retract$lambda_0($result) {
|
|
1373
1238
|
return function ($this$updateContext) {
|
|
1374
|
-
|
|
1375
|
-
var tmp_0 = new Long(0, 0);
|
|
1376
|
-
var tmp_1 = new Long(0, 0);
|
|
1377
|
-
var tmp_2 = new Long(0, 0);
|
|
1378
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
|
|
1239
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory());
|
|
1379
1240
|
};
|
|
1380
1241
|
}
|
|
1381
1242
|
function MutableClassicSolver$retractAll$lambda($result) {
|
|
1382
1243
|
return function ($this$updateContext) {
|
|
1383
|
-
|
|
1384
|
-
var tmp_0 = $this$updateContext.r33_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.h1s())));
|
|
1385
|
-
var tmp_1 = new Long(0, 0);
|
|
1386
|
-
var tmp_2 = new Long(0, 0);
|
|
1387
|
-
var tmp_3 = new Long(0, 0);
|
|
1388
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
|
|
1244
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory(), $this$updateContext.k31_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.h1r()))));
|
|
1389
1245
|
};
|
|
1390
1246
|
}
|
|
1391
1247
|
function MutableClassicSolver$retractAll$lambda_0($result) {
|
|
1392
1248
|
return function ($this$updateContext) {
|
|
1393
|
-
|
|
1394
|
-
var tmp_0 = new Long(0, 0);
|
|
1395
|
-
var tmp_1 = new Long(0, 0);
|
|
1396
|
-
var tmp_2 = new Long(0, 0);
|
|
1397
|
-
return $this$updateContext.c35(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
|
|
1249
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory());
|
|
1398
1250
|
};
|
|
1399
1251
|
}
|
|
1400
1252
|
function MutableClassicSolver$setFlag$lambda($name, $value) {
|
|
1401
1253
|
return function ($this$updateContext) {
|
|
1402
|
-
|
|
1403
|
-
var tmp_0 = new Long(0, 0);
|
|
1404
|
-
var tmp_1 = new Long(0, 0);
|
|
1405
|
-
var tmp_2 = new Long(0, 0);
|
|
1406
|
-
return $this$updateContext.c35(null, null, null, tmp, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194295, null);
|
|
1254
|
+
return $this$updateContext.v32(VOID, VOID, VOID, $this$updateContext.h31_1.set($name, $value));
|
|
1407
1255
|
};
|
|
1408
1256
|
}
|
|
1409
1257
|
function MutableClassicSolver$setFlag$lambda_0($flag) {
|
|
1410
1258
|
return function ($this$updateContext) {
|
|
1411
|
-
|
|
1412
|
-
var tmp_0 = new Long(0, 0);
|
|
1413
|
-
var tmp_1 = new Long(0, 0);
|
|
1414
|
-
var tmp_2 = new Long(0, 0);
|
|
1415
|
-
return $this$updateContext.c35(null, null, null, tmp, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194295, null);
|
|
1259
|
+
return $this$updateContext.v32(VOID, VOID, VOID, $this$updateContext.h31_1.plusPair($flag));
|
|
1416
1260
|
};
|
|
1417
1261
|
}
|
|
1418
1262
|
function MutableClassicSolver$setFlag$lambda_1($flag) {
|
|
1419
1263
|
return function ($this$updateContext) {
|
|
1420
|
-
|
|
1421
|
-
var tmp_0 = new Long(0, 0);
|
|
1422
|
-
var tmp_1 = new Long(0, 0);
|
|
1423
|
-
var tmp_2 = new Long(0, 0);
|
|
1424
|
-
return $this$updateContext.c35(null, null, null, tmp, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194295, null);
|
|
1264
|
+
return $this$updateContext.v32(VOID, VOID, VOID, $this$updateContext.h31_1.plusNotable($flag));
|
|
1425
1265
|
};
|
|
1426
1266
|
}
|
|
1427
1267
|
function MutableClassicSolver$setStandardInput$lambda($stdIn) {
|
|
1428
1268
|
return function ($this$updateContext) {
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
var tmp_0 = new Long(0, 0);
|
|
1432
|
-
var tmp_1 = new Long(0, 0);
|
|
1433
|
-
var tmp_2 = new Long(0, 0);
|
|
1434
|
-
return $this$updateContext.c35(null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194175, null);
|
|
1269
|
+
Companion_getInstance_6();
|
|
1270
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.l31_1.plus(to('stdin', $stdIn)));
|
|
1435
1271
|
};
|
|
1436
1272
|
}
|
|
1437
1273
|
function MutableClassicSolver$setStandardError$lambda($stdErr) {
|
|
1438
1274
|
return function ($this$updateContext) {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
var tmp_0 = new Long(0, 0);
|
|
1442
|
-
var tmp_1 = new Long(0, 0);
|
|
1443
|
-
var tmp_2 = new Long(0, 0);
|
|
1444
|
-
return $this$updateContext.c35(null, null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194047, null);
|
|
1275
|
+
Companion_getInstance_7();
|
|
1276
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.m31_1.plus(to('stderr', $stdErr)));
|
|
1445
1277
|
};
|
|
1446
1278
|
}
|
|
1447
1279
|
function MutableClassicSolver$setStandardOutput$lambda($stdOut) {
|
|
1448
1280
|
return function ($this$updateContext) {
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
var tmp_0 = new Long(0, 0);
|
|
1452
|
-
var tmp_1 = new Long(0, 0);
|
|
1453
|
-
var tmp_2 = new Long(0, 0);
|
|
1454
|
-
return $this$updateContext.c35(null, null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194047, null);
|
|
1281
|
+
Companion_getInstance_7();
|
|
1282
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.m31_1.plus(to('stdout', $stdOut)));
|
|
1455
1283
|
};
|
|
1456
1284
|
}
|
|
1457
1285
|
function MutableClassicSolver$setWarnings$lambda($warnings) {
|
|
1458
1286
|
return function ($this$updateContext) {
|
|
1459
|
-
|
|
1460
|
-
var tmp_0 = new Long(0, 0);
|
|
1461
|
-
var tmp_1 = new Long(0, 0);
|
|
1462
|
-
var tmp_2 = new Long(0, 0);
|
|
1463
|
-
return $this$updateContext.c35(null, null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194047, null);
|
|
1287
|
+
return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_7().f1y($this$updateContext.m31_1, $warnings));
|
|
1464
1288
|
};
|
|
1465
1289
|
}
|
|
1466
|
-
MutableClassicSolver.
|
|
1467
|
-
this.
|
|
1290
|
+
protoOf(MutableClassicSolver).b35 = function (library) {
|
|
1291
|
+
this.x29(MutableClassicSolver$loadLibrary$lambda(library));
|
|
1468
1292
|
};
|
|
1469
|
-
MutableClassicSolver.
|
|
1470
|
-
return this.
|
|
1293
|
+
protoOf(MutableClassicSolver).loadLibrary = function (library) {
|
|
1294
|
+
return this.b35(library);
|
|
1471
1295
|
};
|
|
1472
|
-
MutableClassicSolver.
|
|
1473
|
-
this.
|
|
1296
|
+
protoOf(MutableClassicSolver).c35 = function (library) {
|
|
1297
|
+
this.x29(MutableClassicSolver$unloadLibrary$lambda(library));
|
|
1474
1298
|
};
|
|
1475
|
-
MutableClassicSolver.
|
|
1476
|
-
return this.
|
|
1299
|
+
protoOf(MutableClassicSolver).unloadLibrary = function (library) {
|
|
1300
|
+
return this.c35(library);
|
|
1477
1301
|
};
|
|
1478
|
-
MutableClassicSolver.
|
|
1479
|
-
this.
|
|
1302
|
+
protoOf(MutableClassicSolver).d35 = function (libraries) {
|
|
1303
|
+
this.x29(MutableClassicSolver$setRuntime$lambda(libraries));
|
|
1480
1304
|
};
|
|
1481
|
-
MutableClassicSolver.
|
|
1482
|
-
return this.
|
|
1305
|
+
protoOf(MutableClassicSolver).setLibraries = function (libraries) {
|
|
1306
|
+
return this.d35(libraries);
|
|
1483
1307
|
};
|
|
1484
|
-
MutableClassicSolver.
|
|
1485
|
-
this.
|
|
1308
|
+
protoOf(MutableClassicSolver).e35 = function (theory) {
|
|
1309
|
+
this.b2a(theory, VOID, false);
|
|
1486
1310
|
};
|
|
1487
|
-
MutableClassicSolver.
|
|
1488
|
-
return this.
|
|
1311
|
+
protoOf(MutableClassicSolver).loadStaticKb = function (theory) {
|
|
1312
|
+
return this.e35(theory);
|
|
1489
1313
|
};
|
|
1490
|
-
MutableClassicSolver.
|
|
1491
|
-
this.
|
|
1314
|
+
protoOf(MutableClassicSolver).f35 = function (theory) {
|
|
1315
|
+
this.b2a(theory);
|
|
1492
1316
|
};
|
|
1493
|
-
MutableClassicSolver.
|
|
1494
|
-
return this.
|
|
1317
|
+
protoOf(MutableClassicSolver).appendStaticKb = function (theory) {
|
|
1318
|
+
return this.f35(theory);
|
|
1495
1319
|
};
|
|
1496
|
-
MutableClassicSolver.
|
|
1497
|
-
this.
|
|
1320
|
+
protoOf(MutableClassicSolver).g35 = function () {
|
|
1321
|
+
this.x29(MutableClassicSolver$resetStaticKb$lambda);
|
|
1498
1322
|
};
|
|
1499
|
-
MutableClassicSolver.
|
|
1500
|
-
return this.
|
|
1323
|
+
protoOf(MutableClassicSolver).resetStaticKb = function () {
|
|
1324
|
+
return this.g35();
|
|
1501
1325
|
};
|
|
1502
|
-
MutableClassicSolver.
|
|
1503
|
-
this.
|
|
1326
|
+
protoOf(MutableClassicSolver).h35 = function (theory) {
|
|
1327
|
+
this.b2a(VOID, theory, VOID, false);
|
|
1504
1328
|
};
|
|
1505
|
-
MutableClassicSolver.
|
|
1506
|
-
return this.
|
|
1329
|
+
protoOf(MutableClassicSolver).loadDynamicKb = function (theory) {
|
|
1330
|
+
return this.h35(theory);
|
|
1507
1331
|
};
|
|
1508
|
-
MutableClassicSolver.
|
|
1509
|
-
this.
|
|
1332
|
+
protoOf(MutableClassicSolver).i35 = function (theory) {
|
|
1333
|
+
this.b2a(VOID, theory);
|
|
1510
1334
|
};
|
|
1511
|
-
MutableClassicSolver.
|
|
1512
|
-
return this.
|
|
1335
|
+
protoOf(MutableClassicSolver).appendDynamicKb = function (theory) {
|
|
1336
|
+
return this.i35(theory);
|
|
1513
1337
|
};
|
|
1514
|
-
MutableClassicSolver.
|
|
1515
|
-
this.
|
|
1338
|
+
protoOf(MutableClassicSolver).j35 = function () {
|
|
1339
|
+
this.x29(MutableClassicSolver$resetDynamicKb$lambda);
|
|
1516
1340
|
};
|
|
1517
|
-
MutableClassicSolver.
|
|
1518
|
-
return this.
|
|
1341
|
+
protoOf(MutableClassicSolver).resetDynamicKb = function () {
|
|
1342
|
+
return this.j35();
|
|
1519
1343
|
};
|
|
1520
|
-
MutableClassicSolver.
|
|
1521
|
-
this.
|
|
1344
|
+
protoOf(MutableClassicSolver).w1l = function (clause) {
|
|
1345
|
+
this.x29(MutableClassicSolver$assertA$lambda(clause));
|
|
1522
1346
|
};
|
|
1523
|
-
MutableClassicSolver.
|
|
1524
|
-
return this.
|
|
1347
|
+
protoOf(MutableClassicSolver).assertA = function (clause) {
|
|
1348
|
+
return this.w1l(clause);
|
|
1525
1349
|
};
|
|
1526
|
-
MutableClassicSolver.
|
|
1527
|
-
this.
|
|
1350
|
+
protoOf(MutableClassicSolver).k35 = function (fact) {
|
|
1351
|
+
this.x29(MutableClassicSolver$assertA$lambda_0(fact));
|
|
1528
1352
|
};
|
|
1529
|
-
MutableClassicSolver.
|
|
1530
|
-
return this.
|
|
1353
|
+
protoOf(MutableClassicSolver).assertAFact = function (fact) {
|
|
1354
|
+
return this.k35(fact);
|
|
1531
1355
|
};
|
|
1532
|
-
MutableClassicSolver.
|
|
1533
|
-
this.
|
|
1356
|
+
protoOf(MutableClassicSolver).w1k = function (clause) {
|
|
1357
|
+
this.x29(MutableClassicSolver$assertZ$lambda(clause));
|
|
1534
1358
|
};
|
|
1535
|
-
MutableClassicSolver.
|
|
1536
|
-
return this.
|
|
1359
|
+
protoOf(MutableClassicSolver).assertZ = function (clause) {
|
|
1360
|
+
return this.w1k(clause);
|
|
1537
1361
|
};
|
|
1538
|
-
MutableClassicSolver.
|
|
1539
|
-
this.
|
|
1362
|
+
protoOf(MutableClassicSolver).l35 = function (fact) {
|
|
1363
|
+
this.x29(MutableClassicSolver$assertZ$lambda_0(fact));
|
|
1540
1364
|
};
|
|
1541
|
-
MutableClassicSolver.
|
|
1542
|
-
return this.
|
|
1365
|
+
protoOf(MutableClassicSolver).assertZFact = function (fact) {
|
|
1366
|
+
return this.l35(fact);
|
|
1543
1367
|
};
|
|
1544
|
-
MutableClassicSolver.
|
|
1545
|
-
var result = this.
|
|
1546
|
-
this.
|
|
1368
|
+
protoOf(MutableClassicSolver).e1s = function (clause) {
|
|
1369
|
+
var result = this.y1t().retract(clause);
|
|
1370
|
+
this.x29(MutableClassicSolver$retract$lambda(result, clause));
|
|
1547
1371
|
return result;
|
|
1548
1372
|
};
|
|
1549
|
-
MutableClassicSolver.
|
|
1550
|
-
return this.
|
|
1373
|
+
protoOf(MutableClassicSolver).retract = function (clause) {
|
|
1374
|
+
return this.e1s(clause);
|
|
1551
1375
|
};
|
|
1552
|
-
MutableClassicSolver.
|
|
1553
|
-
var result = this.
|
|
1554
|
-
this.
|
|
1376
|
+
protoOf(MutableClassicSolver).f1s = function (fact) {
|
|
1377
|
+
var result = this.y1t().retractByHead(fact);
|
|
1378
|
+
this.x29(MutableClassicSolver$retract$lambda_0(result));
|
|
1555
1379
|
return result;
|
|
1556
1380
|
};
|
|
1557
|
-
MutableClassicSolver.
|
|
1558
|
-
return this.
|
|
1381
|
+
protoOf(MutableClassicSolver).retractByHead = function (fact) {
|
|
1382
|
+
return this.f1s(fact);
|
|
1559
1383
|
};
|
|
1560
|
-
MutableClassicSolver.
|
|
1561
|
-
var result = this.
|
|
1562
|
-
this.
|
|
1384
|
+
protoOf(MutableClassicSolver).c1l = function (clause) {
|
|
1385
|
+
var result = this.y1t().retractAll(clause);
|
|
1386
|
+
this.x29(MutableClassicSolver$retractAll$lambda(result));
|
|
1563
1387
|
return result;
|
|
1564
1388
|
};
|
|
1565
|
-
MutableClassicSolver.
|
|
1566
|
-
return this.
|
|
1389
|
+
protoOf(MutableClassicSolver).retractAll = function (clause) {
|
|
1390
|
+
return this.c1l(clause);
|
|
1567
1391
|
};
|
|
1568
|
-
MutableClassicSolver.
|
|
1569
|
-
var result = this.
|
|
1570
|
-
this.
|
|
1392
|
+
protoOf(MutableClassicSolver).m35 = function (fact) {
|
|
1393
|
+
var result = this.y1t().retractAllByHead(fact);
|
|
1394
|
+
this.x29(MutableClassicSolver$retractAll$lambda_0(result));
|
|
1571
1395
|
return result;
|
|
1572
1396
|
};
|
|
1573
|
-
MutableClassicSolver.
|
|
1574
|
-
return this.
|
|
1397
|
+
protoOf(MutableClassicSolver).retractAllBeHead = function (fact) {
|
|
1398
|
+
return this.m35(fact);
|
|
1575
1399
|
};
|
|
1576
|
-
MutableClassicSolver.
|
|
1577
|
-
this.
|
|
1400
|
+
protoOf(MutableClassicSolver).n35 = function (name, value) {
|
|
1401
|
+
this.x29(MutableClassicSolver$setFlag$lambda(name, value));
|
|
1578
1402
|
};
|
|
1579
|
-
MutableClassicSolver.
|
|
1580
|
-
return this.
|
|
1403
|
+
protoOf(MutableClassicSolver).setFlag = function (name, value) {
|
|
1404
|
+
return this.n35(name, value);
|
|
1581
1405
|
};
|
|
1582
|
-
MutableClassicSolver.
|
|
1583
|
-
this.
|
|
1406
|
+
protoOf(MutableClassicSolver).o35 = function (flag) {
|
|
1407
|
+
this.x29(MutableClassicSolver$setFlag$lambda_0(flag));
|
|
1584
1408
|
};
|
|
1585
|
-
MutableClassicSolver.
|
|
1586
|
-
return this.
|
|
1409
|
+
protoOf(MutableClassicSolver).setFlagPair = function (flag) {
|
|
1410
|
+
return this.o35(flag);
|
|
1587
1411
|
};
|
|
1588
|
-
MutableClassicSolver.
|
|
1589
|
-
this.
|
|
1412
|
+
protoOf(MutableClassicSolver).p35 = function (flag) {
|
|
1413
|
+
this.x29(MutableClassicSolver$setFlag$lambda_1(flag));
|
|
1590
1414
|
};
|
|
1591
|
-
MutableClassicSolver.
|
|
1592
|
-
return this.
|
|
1415
|
+
protoOf(MutableClassicSolver).setFlagNotable = function (flag) {
|
|
1416
|
+
return this.p35(flag);
|
|
1593
1417
|
};
|
|
1594
|
-
MutableClassicSolver.
|
|
1595
|
-
this.
|
|
1418
|
+
protoOf(MutableClassicSolver).q35 = function (stdIn) {
|
|
1419
|
+
this.x29(MutableClassicSolver$setStandardInput$lambda(stdIn));
|
|
1596
1420
|
};
|
|
1597
|
-
MutableClassicSolver.
|
|
1598
|
-
return this.
|
|
1421
|
+
protoOf(MutableClassicSolver).setStandardInput = function (stdIn) {
|
|
1422
|
+
return this.q35(stdIn);
|
|
1599
1423
|
};
|
|
1600
|
-
MutableClassicSolver.
|
|
1601
|
-
this.
|
|
1424
|
+
protoOf(MutableClassicSolver).r35 = function (stdErr) {
|
|
1425
|
+
this.x29(MutableClassicSolver$setStandardError$lambda(stdErr));
|
|
1602
1426
|
};
|
|
1603
|
-
MutableClassicSolver.
|
|
1604
|
-
return this.
|
|
1427
|
+
protoOf(MutableClassicSolver).setStandardError = function (stdErr) {
|
|
1428
|
+
return this.r35(stdErr);
|
|
1605
1429
|
};
|
|
1606
|
-
MutableClassicSolver.
|
|
1607
|
-
this.
|
|
1430
|
+
protoOf(MutableClassicSolver).s35 = function (stdOut) {
|
|
1431
|
+
this.x29(MutableClassicSolver$setStandardOutput$lambda(stdOut));
|
|
1608
1432
|
};
|
|
1609
|
-
MutableClassicSolver.
|
|
1610
|
-
return this.
|
|
1433
|
+
protoOf(MutableClassicSolver).setStandardOutput = function (stdOut) {
|
|
1434
|
+
return this.s35(stdOut);
|
|
1611
1435
|
};
|
|
1612
|
-
MutableClassicSolver.
|
|
1613
|
-
this.
|
|
1436
|
+
protoOf(MutableClassicSolver).t35 = function (warnings) {
|
|
1437
|
+
this.x29(MutableClassicSolver$setWarnings$lambda(warnings));
|
|
1614
1438
|
};
|
|
1615
|
-
MutableClassicSolver.
|
|
1616
|
-
return this.
|
|
1439
|
+
protoOf(MutableClassicSolver).setWarnings = function (warnings) {
|
|
1440
|
+
return this.t35(warnings);
|
|
1617
1441
|
};
|
|
1618
|
-
MutableClassicSolver.
|
|
1619
|
-
return MutableClassicSolver_init_$Create$
|
|
1442
|
+
protoOf(MutableClassicSolver).m1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1443
|
+
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1620
1444
|
};
|
|
1621
|
-
MutableClassicSolver.
|
|
1622
|
-
return this.
|
|
1445
|
+
protoOf(MutableClassicSolver).z1r = function () {
|
|
1446
|
+
return this.copy();
|
|
1623
1447
|
};
|
|
1624
|
-
MutableClassicSolver.
|
|
1625
|
-
return this.
|
|
1448
|
+
protoOf(MutableClassicSolver).clone = function () {
|
|
1449
|
+
return this.z1r();
|
|
1626
1450
|
};
|
|
1627
1451
|
function MutableClassicSolver() {
|
|
1628
1452
|
}
|
|
@@ -1632,17 +1456,18 @@
|
|
|
1632
1456
|
function Companion() {
|
|
1633
1457
|
Companion_instance = this;
|
|
1634
1458
|
}
|
|
1635
|
-
Companion.
|
|
1459
|
+
protoOf(Companion).z34 = function (initialState, onStateTransition) {
|
|
1460
|
+
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1461
|
+
};
|
|
1462
|
+
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
1636
1463
|
var tmp;
|
|
1637
|
-
if (onStateTransition ===
|
|
1464
|
+
if (onStateTransition === VOID) {
|
|
1638
1465
|
tmp = SolutionIterator$Companion$of$lambda;
|
|
1639
1466
|
} else {
|
|
1640
1467
|
tmp = onStateTransition;
|
|
1641
1468
|
}
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
Companion.prototype.g37 = function (initialState, onStateTransition) {
|
|
1645
|
-
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1469
|
+
onStateTransition = tmp;
|
|
1470
|
+
return $super === VOID ? this.z34(initialState, onStateTransition) : $super.z34.call(this, initialState, onStateTransition);
|
|
1646
1471
|
};
|
|
1647
1472
|
var Companion_instance;
|
|
1648
1473
|
function Companion_getInstance_22() {
|
|
@@ -1652,85 +1477,80 @@
|
|
|
1652
1477
|
}
|
|
1653
1478
|
function AbstractEndState(solution, context) {
|
|
1654
1479
|
AbstractState.call(this, context);
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1480
|
+
this.w35_1 = solution;
|
|
1481
|
+
this.x35_1 = context;
|
|
1657
1482
|
}
|
|
1658
|
-
AbstractEndState.
|
|
1659
|
-
return this.
|
|
1483
|
+
protoOf(AbstractEndState).e2h = function () {
|
|
1484
|
+
return this.w35_1;
|
|
1660
1485
|
};
|
|
1661
|
-
AbstractEndState.
|
|
1662
|
-
return this.
|
|
1486
|
+
protoOf(AbstractEndState).n5 = function () {
|
|
1487
|
+
return this.x35_1;
|
|
1663
1488
|
};
|
|
1664
|
-
AbstractEndState.
|
|
1489
|
+
protoOf(AbstractEndState).y35 = function () {
|
|
1665
1490
|
throw NoSuchElementException_init_$Create$();
|
|
1666
1491
|
};
|
|
1667
|
-
AbstractEndState.
|
|
1668
|
-
return this.
|
|
1492
|
+
protoOf(AbstractEndState).asEndState = function () {
|
|
1493
|
+
return this.a36();
|
|
1669
1494
|
};
|
|
1670
1495
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1671
1496
|
return function () {
|
|
1672
|
-
return this$0.
|
|
1497
|
+
return this$0.g36();
|
|
1673
1498
|
};
|
|
1674
1499
|
}
|
|
1675
1500
|
function AbstractState(context) {
|
|
1676
|
-
this.
|
|
1501
|
+
this.b36_1 = context;
|
|
1677
1502
|
var tmp = this;
|
|
1678
|
-
tmp.
|
|
1503
|
+
tmp.c36_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1679
1504
|
}
|
|
1680
|
-
AbstractState.
|
|
1681
|
-
return this.
|
|
1505
|
+
protoOf(AbstractState).n5 = function () {
|
|
1506
|
+
return this.b36_1;
|
|
1682
1507
|
};
|
|
1683
|
-
AbstractState.
|
|
1508
|
+
protoOf(AbstractState).e36 = function () {
|
|
1684
1509
|
var tmp$ret$0;
|
|
1685
1510
|
// Inline function 'kotlin.getValue' call
|
|
1686
1511
|
var tmp0_getValue = executionTime$factory();
|
|
1687
|
-
tmp$ret$0 = this.
|
|
1512
|
+
tmp$ret$0 = this.c36_1.b1();
|
|
1688
1513
|
return tmp$ret$0;
|
|
1689
1514
|
};
|
|
1690
|
-
AbstractState.
|
|
1691
|
-
return this.
|
|
1515
|
+
protoOf(AbstractState).f36 = function () {
|
|
1516
|
+
return this.e36().ch(this.n5().t31_1).i1(this.n5().u31_1) > 0;
|
|
1692
1517
|
};
|
|
1693
|
-
AbstractState.
|
|
1518
|
+
protoOf(AbstractState).n = function () {
|
|
1694
1519
|
var tmp;
|
|
1695
|
-
if (this.
|
|
1696
|
-
var tmp0_exceededDuration = this.
|
|
1697
|
-
var tmp1_context = this.
|
|
1698
|
-
|
|
1699
|
-
var tmp_1 = this.j5();
|
|
1700
|
-
var tmp_2 = new Long(0, 0);
|
|
1701
|
-
var tmp_3 = new Long(0, 0);
|
|
1702
|
-
var tmp_4 = this.o38();
|
|
1703
|
-
tmp = new StateHalt(tmp_0, tmp_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_2, tmp_3, null, null, 0, tmp_4, null, 3145727, null));
|
|
1520
|
+
if (this.f36()) {
|
|
1521
|
+
var tmp0_exceededDuration = this.n5().u31_1;
|
|
1522
|
+
var tmp1_context = this.n5();
|
|
1523
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.n5().v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
|
|
1704
1524
|
} else {
|
|
1705
|
-
tmp = this.
|
|
1525
|
+
tmp = this.y35();
|
|
1706
1526
|
}
|
|
1707
1527
|
return tmp;
|
|
1708
1528
|
};
|
|
1709
|
-
AbstractState.
|
|
1710
|
-
return this.
|
|
1529
|
+
protoOf(AbstractState).next = function () {
|
|
1530
|
+
return this.n();
|
|
1711
1531
|
};
|
|
1712
|
-
AbstractState.
|
|
1532
|
+
protoOf(AbstractState).g36 = function () {
|
|
1713
1533
|
return currentTimeInstant();
|
|
1714
1534
|
};
|
|
1715
|
-
AbstractState.
|
|
1535
|
+
protoOf(AbstractState).h36 = function () {
|
|
1716
1536
|
var tmp$ret$0;
|
|
1717
1537
|
// Inline function 'kotlin.Long.plus' call
|
|
1718
|
-
var tmp0_plus = this.
|
|
1538
|
+
var tmp0_plus = this.n5().y31_1;
|
|
1719
1539
|
tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
|
|
1720
1540
|
return tmp$ret$0;
|
|
1721
1541
|
};
|
|
1722
|
-
AbstractState.
|
|
1542
|
+
protoOf(AbstractState).i36 = function (_this__u8e3s4) {
|
|
1723
1543
|
var tmp$ret$2;
|
|
1724
1544
|
$l$block: {
|
|
1725
1545
|
// Inline function 'kotlin.sequences.first' call
|
|
1726
|
-
var tmp0_first = _this__u8e3s4.
|
|
1546
|
+
var tmp0_first = _this__u8e3s4.a32_1;
|
|
1727
1547
|
var tmp0_iterator = tmp0_first.j();
|
|
1728
1548
|
while (tmp0_iterator.m()) {
|
|
1729
|
-
var element = tmp0_iterator.
|
|
1549
|
+
var element = tmp0_iterator.n();
|
|
1730
1550
|
var tmp$ret$1;
|
|
1731
1551
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.AbstractState.skipThrow.<anonymous>' call
|
|
1732
|
-
var tmp0_safe_receiver = element.
|
|
1733
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1552
|
+
var tmp0_safe_receiver = element.e31_1;
|
|
1553
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wv();
|
|
1734
1554
|
var tmp$ret$0;
|
|
1735
1555
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1736
1556
|
var tmp0__get_functor__thl4dk = Throw_getInstance();
|
|
@@ -1747,7 +1567,7 @@
|
|
|
1747
1567
|
};
|
|
1748
1568
|
function executionTime$factory() {
|
|
1749
1569
|
return getPropertyCallableRef('executionTime', 1, KProperty1, function (receiver) {
|
|
1750
|
-
return receiver.
|
|
1570
|
+
return receiver.e36();
|
|
1751
1571
|
}, null);
|
|
1752
1572
|
}
|
|
1753
1573
|
function EndState() {
|
|
@@ -1756,38 +1576,34 @@
|
|
|
1756
1576
|
}
|
|
1757
1577
|
function StateBacktracking(context) {
|
|
1758
1578
|
AbstractState.call(this, context);
|
|
1759
|
-
this.
|
|
1579
|
+
this.l36_1 = context;
|
|
1760
1580
|
}
|
|
1761
|
-
StateBacktracking.
|
|
1762
|
-
return this.
|
|
1581
|
+
protoOf(StateBacktracking).n5 = function () {
|
|
1582
|
+
return this.l36_1;
|
|
1763
1583
|
};
|
|
1764
|
-
StateBacktracking.
|
|
1765
|
-
var choicePoints = this.
|
|
1584
|
+
protoOf(StateBacktracking).y35 = function () {
|
|
1585
|
+
var choicePoints = this.l36_1.v31_1;
|
|
1766
1586
|
var tmp;
|
|
1767
1587
|
var tmp$ret$1;
|
|
1768
1588
|
// Inline function 'kotlin.let' call
|
|
1769
1589
|
// Inline function 'kotlin.contracts.contract' call
|
|
1770
1590
|
var tmp$ret$0;
|
|
1771
1591
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateBacktracking.computeNext.<anonymous>' call
|
|
1772
|
-
tmp$ret$0 = choicePoints === null ? true : !choicePoints.
|
|
1592
|
+
tmp$ret$0 = choicePoints === null ? true : !choicePoints.c33();
|
|
1773
1593
|
tmp$ret$1 = tmp$ret$0;
|
|
1774
1594
|
if (tmp$ret$1) {
|
|
1775
|
-
|
|
1776
|
-
var tmp_1 = new Long(0, 0);
|
|
1777
|
-
var tmp_2 = new Long(0, 0);
|
|
1778
|
-
var tmp_3 = this.o38();
|
|
1779
|
-
tmp = new StateEnd(tmp_0, this.s38_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 3145727, null));
|
|
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()));
|
|
1780
1596
|
} else {
|
|
1781
1597
|
var tmp$ret$3;
|
|
1782
1598
|
$l$block: {
|
|
1783
1599
|
// Inline function 'kotlin.sequences.first' call
|
|
1784
|
-
var tmp0_first = ensureNotNull(choicePoints).
|
|
1600
|
+
var tmp0_first = ensureNotNull(choicePoints).d33();
|
|
1785
1601
|
var tmp0_iterator = tmp0_first.j();
|
|
1786
1602
|
while (tmp0_iterator.m()) {
|
|
1787
|
-
var element = tmp0_iterator.
|
|
1603
|
+
var element = tmp0_iterator.n();
|
|
1788
1604
|
var tmp$ret$2;
|
|
1789
1605
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateBacktracking.computeNext.<anonymous>' call
|
|
1790
|
-
tmp$ret$2 = element.
|
|
1606
|
+
tmp$ret$2 = element.p32().mq();
|
|
1791
1607
|
if (tmp$ret$2) {
|
|
1792
1608
|
tmp$ret$3 = element;
|
|
1793
1609
|
break $l$block;
|
|
@@ -1796,99 +1612,98 @@
|
|
|
1796
1612
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1797
1613
|
}
|
|
1798
1614
|
var choicePointContext = tmp$ret$3;
|
|
1799
|
-
var nextContext = choicePointContext.
|
|
1800
|
-
var
|
|
1801
|
-
if (nextContext.
|
|
1802
|
-
|
|
1615
|
+
var nextContext = choicePointContext.u32(this.l36_1);
|
|
1616
|
+
var tmp_0;
|
|
1617
|
+
if (nextContext.s31_1.mq()) {
|
|
1618
|
+
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1803
1619
|
} else {
|
|
1804
|
-
|
|
1620
|
+
tmp_0 = new StateRuleExecution(nextContext);
|
|
1805
1621
|
}
|
|
1806
|
-
tmp =
|
|
1622
|
+
tmp = tmp_0;
|
|
1807
1623
|
}
|
|
1808
1624
|
return tmp;
|
|
1809
1625
|
};
|
|
1810
|
-
StateBacktracking.
|
|
1811
|
-
return this.
|
|
1626
|
+
protoOf(StateBacktracking).d36 = function (context) {
|
|
1627
|
+
return this.m36(context);
|
|
1812
1628
|
};
|
|
1813
|
-
StateBacktracking.
|
|
1629
|
+
protoOf(StateBacktracking).m36 = function (context) {
|
|
1814
1630
|
return new StateBacktracking(context);
|
|
1815
1631
|
};
|
|
1816
|
-
StateBacktracking.
|
|
1817
|
-
return 'StateBacktracking(context=' + this.
|
|
1632
|
+
protoOf(StateBacktracking).toString = function () {
|
|
1633
|
+
return 'StateBacktracking(context=' + this.l36_1 + ')';
|
|
1818
1634
|
};
|
|
1819
|
-
StateBacktracking.
|
|
1820
|
-
return this.
|
|
1635
|
+
protoOf(StateBacktracking).hashCode = function () {
|
|
1636
|
+
return this.l36_1.hashCode();
|
|
1821
1637
|
};
|
|
1822
|
-
StateBacktracking.
|
|
1638
|
+
protoOf(StateBacktracking).equals = function (other) {
|
|
1823
1639
|
if (this === other)
|
|
1824
1640
|
return true;
|
|
1825
1641
|
if (!(other instanceof StateBacktracking))
|
|
1826
1642
|
return false;
|
|
1827
1643
|
var tmp0_other_with_cast = other instanceof StateBacktracking ? other : THROW_CCE();
|
|
1828
|
-
if (!this.
|
|
1644
|
+
if (!this.l36_1.equals(tmp0_other_with_cast.l36_1))
|
|
1829
1645
|
return false;
|
|
1830
1646
|
return true;
|
|
1831
1647
|
};
|
|
1832
1648
|
function StateEnd(solution, context) {
|
|
1833
1649
|
AbstractEndState.call(this, solution, context);
|
|
1834
|
-
this.
|
|
1835
|
-
this.
|
|
1650
|
+
this.r36_1 = solution;
|
|
1651
|
+
this.s36_1 = context;
|
|
1836
1652
|
}
|
|
1837
|
-
StateEnd.
|
|
1838
|
-
return this.
|
|
1653
|
+
protoOf(StateEnd).e2h = function () {
|
|
1654
|
+
return this.r36_1;
|
|
1839
1655
|
};
|
|
1840
|
-
StateEnd.
|
|
1841
|
-
return this.
|
|
1656
|
+
protoOf(StateEnd).n5 = function () {
|
|
1657
|
+
return this.s36_1;
|
|
1842
1658
|
};
|
|
1843
|
-
StateEnd.
|
|
1659
|
+
protoOf(StateEnd).f36 = function () {
|
|
1844
1660
|
return false;
|
|
1845
1661
|
};
|
|
1846
|
-
StateEnd.
|
|
1662
|
+
protoOf(StateEnd).y35 = function () {
|
|
1847
1663
|
var tmp;
|
|
1848
|
-
if (this.
|
|
1849
|
-
var tmp0_$this = this.
|
|
1850
|
-
var tmp1_step = this.
|
|
1851
|
-
var tmp2_startTime = this.
|
|
1852
|
-
|
|
1853
|
-
tmp = new StateBacktracking(tmp0_$this.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp2_startTime, tmp_0, null, null, 0, tmp1_step, null, 3112959, null));
|
|
1664
|
+
if (this.s36_1.c33()) {
|
|
1665
|
+
var tmp0_$this = this.s36_1;
|
|
1666
|
+
var tmp1_step = this.h36();
|
|
1667
|
+
var tmp2_startTime = this.g36();
|
|
1668
|
+
tmp = new StateBacktracking(tmp0_$this.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1854
1669
|
} else {
|
|
1855
|
-
tmp = AbstractEndState.
|
|
1670
|
+
tmp = protoOf(AbstractEndState).y35.call(this);
|
|
1856
1671
|
}
|
|
1857
1672
|
return tmp;
|
|
1858
1673
|
};
|
|
1859
|
-
StateEnd.
|
|
1860
|
-
return this.
|
|
1674
|
+
protoOf(StateEnd).d36 = function (context) {
|
|
1675
|
+
return this.t36(this.r36_1, context);
|
|
1861
1676
|
};
|
|
1862
|
-
StateEnd.
|
|
1677
|
+
protoOf(StateEnd).t36 = function (solution, context) {
|
|
1863
1678
|
return new StateEnd(solution, context);
|
|
1864
1679
|
};
|
|
1865
|
-
StateEnd.
|
|
1866
|
-
return 'StateEnd(solution=' + this.
|
|
1680
|
+
protoOf(StateEnd).toString = function () {
|
|
1681
|
+
return 'StateEnd(solution=' + this.r36_1 + ', context=' + this.s36_1 + ')';
|
|
1867
1682
|
};
|
|
1868
|
-
StateEnd.
|
|
1869
|
-
var result = hashCode(this.
|
|
1870
|
-
result = imul(result, 31) + this.
|
|
1683
|
+
protoOf(StateEnd).hashCode = function () {
|
|
1684
|
+
var result = hashCode(this.r36_1);
|
|
1685
|
+
result = imul(result, 31) + this.s36_1.hashCode() | 0;
|
|
1871
1686
|
return result;
|
|
1872
1687
|
};
|
|
1873
|
-
StateEnd.
|
|
1688
|
+
protoOf(StateEnd).equals = function (other) {
|
|
1874
1689
|
if (this === other)
|
|
1875
1690
|
return true;
|
|
1876
1691
|
if (!(other instanceof StateEnd))
|
|
1877
1692
|
return false;
|
|
1878
1693
|
var tmp0_other_with_cast = other instanceof StateEnd ? other : THROW_CCE();
|
|
1879
|
-
if (!equals(this.
|
|
1694
|
+
if (!equals(this.r36_1, tmp0_other_with_cast.r36_1))
|
|
1880
1695
|
return false;
|
|
1881
|
-
if (!this.
|
|
1696
|
+
if (!this.s36_1.equals(tmp0_other_with_cast.s36_1))
|
|
1882
1697
|
return false;
|
|
1883
1698
|
return true;
|
|
1884
1699
|
};
|
|
1885
|
-
StateEnd.
|
|
1886
|
-
return this.
|
|
1700
|
+
protoOf(StateEnd).asEndState = function () {
|
|
1701
|
+
return this.a36();
|
|
1887
1702
|
};
|
|
1888
1703
|
function isCatch(_this__u8e3s4, $this) {
|
|
1889
1704
|
var tmp;
|
|
1890
|
-
if (_this__u8e3s4.
|
|
1891
|
-
var tmp_0 = _this__u8e3s4.
|
|
1705
|
+
if (_this__u8e3s4.qv() === 3) {
|
|
1706
|
+
var tmp_0 = _this__u8e3s4.wv();
|
|
1892
1707
|
var tmp$ret$0;
|
|
1893
1708
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1894
1709
|
var tmp0__get_functor__thl4dk = Catch_getInstance();
|
|
@@ -1903,9 +1718,9 @@
|
|
|
1903
1718
|
var tmp0_subject = _this__u8e3s4;
|
|
1904
1719
|
var tmp;
|
|
1905
1720
|
if (tmp0_subject instanceof MessageError) {
|
|
1906
|
-
tmp = _this__u8e3s4.
|
|
1721
|
+
tmp = _this__u8e3s4.r25();
|
|
1907
1722
|
} else {
|
|
1908
|
-
tmp = _this__u8e3s4.
|
|
1723
|
+
tmp = _this__u8e3s4.t23();
|
|
1909
1724
|
}
|
|
1910
1725
|
return tmp;
|
|
1911
1726
|
}
|
|
@@ -1920,25 +1735,17 @@
|
|
|
1920
1735
|
return tmp;
|
|
1921
1736
|
}
|
|
1922
1737
|
function _get_finalState__3aigq8($this) {
|
|
1923
|
-
|
|
1924
|
-
var tmp_0 = new Long(0, 0);
|
|
1925
|
-
var tmp_1 = new Long(0, 0);
|
|
1926
|
-
var tmp_2 = $this.o38();
|
|
1927
|
-
return new StateHalt(tmp, $this.e39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3145727, null));
|
|
1738
|
+
return new StateHalt(toPublicException($this.w36_1, $this), $this.x36_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
1928
1739
|
}
|
|
1929
1740
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1930
|
-
|
|
1931
|
-
var tmp_0 = new Long(0, 0);
|
|
1932
|
-
var tmp_1 = new Long(0, 0);
|
|
1933
|
-
var tmp_2 = $this.o38();
|
|
1934
|
-
return new StateException($this.d39_1, tmp.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3145727, null));
|
|
1741
|
+
return new StateException($this.w36_1, ensureNotNull($this.x36_1.w31_1).v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
1935
1742
|
}
|
|
1936
1743
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1937
1744
|
var tmp;
|
|
1938
1745
|
if (isCatch(catchGoal, $this)) {
|
|
1939
1746
|
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent(error, $this));
|
|
1940
1747
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1941
|
-
} else if ($this.
|
|
1748
|
+
} else if ($this.x36_1.r34()) {
|
|
1942
1749
|
tmp = _get_finalState__3aigq8($this);
|
|
1943
1750
|
} else {
|
|
1944
1751
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1947,20 +1754,18 @@
|
|
|
1947
1754
|
}
|
|
1948
1755
|
function handleCatch($this, catchGoal, catcher) {
|
|
1949
1756
|
var tmp;
|
|
1950
|
-
if (catcher.
|
|
1951
|
-
var tmp_0 = $this.
|
|
1757
|
+
if (catcher.g11()) {
|
|
1758
|
+
var tmp_0 = $this.x36_1.o31_1.plus(catcher);
|
|
1952
1759
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1953
1760
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1954
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1955
|
-
var tmp0_$this = $this.
|
|
1956
|
-
var tmp1_rules =
|
|
1957
|
-
var tmp2_primitives =
|
|
1761
|
+
var newGoals = plus_0(toGoals(subGoals), $this.x36_1.q31_1.kq());
|
|
1762
|
+
var tmp0_$this = $this.x36_1;
|
|
1763
|
+
var tmp1_rules = Companion_getInstance_12().empty();
|
|
1764
|
+
var tmp2_primitives = Companion_getInstance_12().empty();
|
|
1958
1765
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1959
|
-
var tmp4_step = $this.
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
tmp = new StateGoalSelection(tmp0_$this.c35(null, null, null, null, null, null, null, null, null, null, tmp3_substitution, null, newGoals, tmp1_rules, tmp2_primitives, tmp_1, tmp_2, null, null, 0, tmp4_step, null, 3116031, null));
|
|
1963
|
-
} else if ($this.e39_1.y36()) {
|
|
1766
|
+
var tmp4_step = $this.h36();
|
|
1767
|
+
tmp = new StateGoalSelection(tmp0_$this.v32(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));
|
|
1768
|
+
} else if ($this.x36_1.r34()) {
|
|
1964
1769
|
tmp = _get_finalState__3aigq8($this);
|
|
1965
1770
|
} else {
|
|
1966
1771
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1973,51 +1778,51 @@
|
|
|
1973
1778
|
// Inline function 'kotlin.collections.component1' call
|
|
1974
1779
|
tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.a1();
|
|
1975
1780
|
var it = tmp$ret$0;
|
|
1976
|
-
return this$0.
|
|
1781
|
+
return this$0.x36_1.t34(it);
|
|
1977
1782
|
};
|
|
1978
1783
|
}
|
|
1979
1784
|
function StateException(exception, context) {
|
|
1980
1785
|
AbstractState.call(this, context);
|
|
1981
|
-
this.
|
|
1982
|
-
this.
|
|
1786
|
+
this.w36_1 = exception;
|
|
1787
|
+
this.x36_1 = context;
|
|
1983
1788
|
}
|
|
1984
|
-
StateException.
|
|
1985
|
-
return this.
|
|
1789
|
+
protoOf(StateException).n5 = function () {
|
|
1790
|
+
return this.x36_1;
|
|
1986
1791
|
};
|
|
1987
|
-
StateException.
|
|
1988
|
-
var tmp0_subject = this.
|
|
1792
|
+
protoOf(StateException).y35 = function () {
|
|
1793
|
+
var tmp0_subject = this.w36_1;
|
|
1989
1794
|
var tmp;
|
|
1990
1795
|
if (tmp0_subject instanceof LogicError) {
|
|
1991
|
-
var catchGoal = ensureNotNull(this.
|
|
1992
|
-
tmp = catchGoal.
|
|
1796
|
+
var catchGoal = ensureNotNull(this.x36_1.s34());
|
|
1797
|
+
tmp = catchGoal.aw() ? handleStruct(this, this.x36_1.f31_1, catchGoal.castToStruct(), this.w36_1) : this.x36_1.r34() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1993
1798
|
} else {
|
|
1994
1799
|
tmp = _get_finalState__3aigq8(this);
|
|
1995
1800
|
}
|
|
1996
1801
|
return tmp;
|
|
1997
1802
|
};
|
|
1998
|
-
StateException.
|
|
1999
|
-
return this.
|
|
1803
|
+
protoOf(StateException).d36 = function (context) {
|
|
1804
|
+
return this.y36(this.w36_1, context);
|
|
2000
1805
|
};
|
|
2001
|
-
StateException.
|
|
1806
|
+
protoOf(StateException).y36 = function (exception, context) {
|
|
2002
1807
|
return new StateException(exception, context);
|
|
2003
1808
|
};
|
|
2004
|
-
StateException.
|
|
2005
|
-
return 'StateException(exception=' + this.
|
|
1809
|
+
protoOf(StateException).toString = function () {
|
|
1810
|
+
return 'StateException(exception=' + this.w36_1 + ', context=' + this.x36_1 + ')';
|
|
2006
1811
|
};
|
|
2007
|
-
StateException.
|
|
2008
|
-
var result = hashCode(this.
|
|
2009
|
-
result = imul(result, 31) + this.
|
|
1812
|
+
protoOf(StateException).hashCode = function () {
|
|
1813
|
+
var result = hashCode(this.w36_1);
|
|
1814
|
+
result = imul(result, 31) + this.x36_1.hashCode() | 0;
|
|
2010
1815
|
return result;
|
|
2011
1816
|
};
|
|
2012
|
-
StateException.
|
|
1817
|
+
protoOf(StateException).equals = function (other) {
|
|
2013
1818
|
if (this === other)
|
|
2014
1819
|
return true;
|
|
2015
1820
|
if (!(other instanceof StateException))
|
|
2016
1821
|
return false;
|
|
2017
1822
|
var tmp0_other_with_cast = other instanceof StateException ? other : THROW_CCE();
|
|
2018
|
-
if (!equals(this.
|
|
1823
|
+
if (!equals(this.w36_1, tmp0_other_with_cast.w36_1))
|
|
2019
1824
|
return false;
|
|
2020
|
-
if (!this.
|
|
1825
|
+
if (!this.x36_1.equals(tmp0_other_with_cast.x36_1))
|
|
2021
1826
|
return false;
|
|
2022
1827
|
return true;
|
|
2023
1828
|
};
|
|
@@ -2027,166 +1832,155 @@
|
|
|
2027
1832
|
// Inline function 'kotlin.collections.component1' call
|
|
2028
1833
|
tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.a1();
|
|
2029
1834
|
var it = tmp$ret$0;
|
|
2030
|
-
return this$0.
|
|
1835
|
+
return this$0.b37_1.t34(it);
|
|
2031
1836
|
};
|
|
2032
1837
|
}
|
|
2033
1838
|
function StateGoalSelection(context) {
|
|
2034
1839
|
AbstractState.call(this, context);
|
|
2035
|
-
this.
|
|
1840
|
+
this.b37_1 = context;
|
|
2036
1841
|
}
|
|
2037
|
-
StateGoalSelection.
|
|
2038
|
-
return this.
|
|
1842
|
+
protoOf(StateGoalSelection).n5 = function () {
|
|
1843
|
+
return this.b37_1;
|
|
2039
1844
|
};
|
|
2040
|
-
StateGoalSelection.
|
|
1845
|
+
protoOf(StateGoalSelection).y35 = function () {
|
|
2041
1846
|
var tmp;
|
|
2042
|
-
if (this.
|
|
1847
|
+
if (this.b37_1.q31_1.nq()) {
|
|
2043
1848
|
var tmp_0;
|
|
2044
|
-
if (this.
|
|
2045
|
-
|
|
2046
|
-
var tmp_2 = new Long(0, 0);
|
|
2047
|
-
var tmp_3 = new Long(0, 0);
|
|
2048
|
-
var tmp_4 = this.o38();
|
|
2049
|
-
tmp_0 = new StateEnd(tmp_1, this.i39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_2, tmp_3, null, null, 0, tmp_4, null, 3145727, null));
|
|
1849
|
+
if (this.b37_1.r34()) {
|
|
1850
|
+
tmp_0 = new StateEnd(Companion_getInstance_14().a1v(this.b37_1.p31_1, this.b37_1.o31_1), this.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
|
|
2050
1851
|
} else {
|
|
2051
1852
|
var tmp$ret$1;
|
|
2052
1853
|
// Inline function 'kotlin.let' call
|
|
2053
|
-
var tmp0_let = ensureNotNull(this.
|
|
1854
|
+
var tmp0_let = ensureNotNull(this.b37_1.w31_1);
|
|
2054
1855
|
// Inline function 'kotlin.contracts.contract' call
|
|
2055
1856
|
var tmp$ret$0;
|
|
2056
1857
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateGoalSelection.computeNext.<anonymous>' call
|
|
2057
|
-
var tmp0_choicePoints = this.
|
|
2058
|
-
var tmp1_flags = this.
|
|
2059
|
-
var tmp2_dynamicKb = this.
|
|
2060
|
-
var tmp3_staticKb = this.
|
|
2061
|
-
var tmp4_substitution = this.
|
|
2062
|
-
var tmp5_goals = tmp0_let.
|
|
2063
|
-
var tmp6_procedure = tmp0_let.
|
|
2064
|
-
var tmp7_step = this.
|
|
2065
|
-
var tmp8_startTime = this.
|
|
2066
|
-
var tmp9_operators = this.
|
|
2067
|
-
var tmp10_inputChannels = this.
|
|
2068
|
-
var tmp11_outputChannels = this.
|
|
2069
|
-
var tmp12_libraries = this.
|
|
2070
|
-
var tmp13_customData = this.
|
|
2071
|
-
|
|
2072
|
-
tmp$ret$0 = tmp0_let.c35(tmp6_procedure, null, tmp12_libraries, tmp1_flags, tmp3_staticKb, tmp2_dynamicKb, tmp9_operators, tmp10_inputChannels, tmp11_outputChannels, tmp13_customData, tmp4_substitution, null, tmp5_goals, null, null, tmp8_startTime, tmp_5, tmp0_choicePoints, null, 0, tmp7_step, null, 2975746, null);
|
|
1858
|
+
var tmp0_choicePoints = this.b37_1.v31_1;
|
|
1859
|
+
var tmp1_flags = this.b37_1.h31_1;
|
|
1860
|
+
var tmp2_dynamicKb = this.b37_1.j31_1;
|
|
1861
|
+
var tmp3_staticKb = this.b37_1.i31_1;
|
|
1862
|
+
var tmp4_substitution = this.b37_1.o31_1.w10(StateGoalSelection$computeNext$lambda(this));
|
|
1863
|
+
var tmp5_goals = tmp0_let.q31_1.kq();
|
|
1864
|
+
var tmp6_procedure = tmp0_let.e31_1;
|
|
1865
|
+
var tmp7_step = this.h36();
|
|
1866
|
+
var tmp8_startTime = this.b37_1.t31_1;
|
|
1867
|
+
var tmp9_operators = this.b37_1.k31_1;
|
|
1868
|
+
var tmp10_inputChannels = this.b37_1.l31_1;
|
|
1869
|
+
var tmp11_outputChannels = this.b37_1.m31_1;
|
|
1870
|
+
var tmp12_libraries = this.b37_1.g31_1;
|
|
1871
|
+
var tmp13_customData = this.b37_1.n31_1;
|
|
1872
|
+
tmp$ret$0 = tmp0_let.v32(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);
|
|
2073
1873
|
tmp$ret$1 = tmp$ret$0;
|
|
2074
1874
|
tmp_0 = new StateGoalSelection(tmp$ret$1);
|
|
2075
1875
|
}
|
|
2076
1876
|
tmp = tmp_0;
|
|
2077
|
-
} else if (equals(this.
|
|
2078
|
-
|
|
2079
|
-
var tmp_7 = new Long(0, 0);
|
|
2080
|
-
tmp = new StatePrimitiveSelection(this.i39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_6, tmp_7, null, null, 0, this.o38(), plus_1(this.i39_1.g34_1, toSet(ensureNotNull(this.i39_1.x33_1.uq()).hw())), 1048575, null));
|
|
1877
|
+
} else if (equals(this.b37_1.h31_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().x27_1)) {
|
|
1878
|
+
tmp = new StatePrimitiveSelection(this.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36(), plus_1(this.b37_1.z31_1, toSet(ensureNotNull(this.b37_1.q31_1.lq()).yv()))));
|
|
2081
1879
|
} else {
|
|
2082
|
-
|
|
2083
|
-
var tmp_9 = new Long(0, 0);
|
|
2084
|
-
var tmp_10 = this.o38();
|
|
2085
|
-
tmp = new StatePrimitiveSelection(this.i39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_8, tmp_9, null, null, 0, tmp_10, null, 3145727, null));
|
|
1880
|
+
tmp = new StatePrimitiveSelection(this.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
|
|
2086
1881
|
}
|
|
2087
1882
|
return tmp;
|
|
2088
1883
|
};
|
|
2089
|
-
StateGoalSelection.
|
|
2090
|
-
return this.
|
|
1884
|
+
protoOf(StateGoalSelection).d36 = function (context) {
|
|
1885
|
+
return this.m36(context);
|
|
2091
1886
|
};
|
|
2092
|
-
StateGoalSelection.
|
|
1887
|
+
protoOf(StateGoalSelection).m36 = function (context) {
|
|
2093
1888
|
return new StateGoalSelection(context);
|
|
2094
1889
|
};
|
|
2095
|
-
StateGoalSelection.
|
|
2096
|
-
return 'StateGoalSelection(context=' + this.
|
|
1890
|
+
protoOf(StateGoalSelection).toString = function () {
|
|
1891
|
+
return 'StateGoalSelection(context=' + this.b37_1 + ')';
|
|
2097
1892
|
};
|
|
2098
|
-
StateGoalSelection.
|
|
2099
|
-
return this.
|
|
1893
|
+
protoOf(StateGoalSelection).hashCode = function () {
|
|
1894
|
+
return this.b37_1.hashCode();
|
|
2100
1895
|
};
|
|
2101
|
-
StateGoalSelection.
|
|
1896
|
+
protoOf(StateGoalSelection).equals = function (other) {
|
|
2102
1897
|
if (this === other)
|
|
2103
1898
|
return true;
|
|
2104
1899
|
if (!(other instanceof StateGoalSelection))
|
|
2105
1900
|
return false;
|
|
2106
1901
|
var tmp0_other_with_cast = other instanceof StateGoalSelection ? other : THROW_CCE();
|
|
2107
|
-
if (!this.
|
|
1902
|
+
if (!this.b37_1.equals(tmp0_other_with_cast.b37_1))
|
|
2108
1903
|
return false;
|
|
2109
1904
|
return true;
|
|
2110
1905
|
};
|
|
2111
1906
|
function StateHalt(exception, context) {
|
|
2112
|
-
AbstractEndState.call(this, Companion_getInstance_14().halt(context.
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
1907
|
+
AbstractEndState.call(this, Companion_getInstance_14().halt(context.p31_1, exception), context);
|
|
1908
|
+
this.g37_1 = exception;
|
|
1909
|
+
this.h37_1 = context;
|
|
2115
1910
|
}
|
|
2116
|
-
StateHalt.
|
|
2117
|
-
return this.
|
|
1911
|
+
protoOf(StateHalt).n5 = function () {
|
|
1912
|
+
return this.h37_1;
|
|
2118
1913
|
};
|
|
2119
|
-
StateHalt.
|
|
2120
|
-
return this.
|
|
1914
|
+
protoOf(StateHalt).d36 = function (context) {
|
|
1915
|
+
return this.y36(this.g37_1, context);
|
|
2121
1916
|
};
|
|
2122
|
-
StateHalt.
|
|
1917
|
+
protoOf(StateHalt).y36 = function (exception, context) {
|
|
2123
1918
|
return new StateHalt(exception, context);
|
|
2124
1919
|
};
|
|
2125
|
-
StateHalt.
|
|
2126
|
-
return 'StateHalt(exception=' + this.
|
|
1920
|
+
protoOf(StateHalt).toString = function () {
|
|
1921
|
+
return 'StateHalt(exception=' + this.g37_1 + ', context=' + this.h37_1 + ')';
|
|
2127
1922
|
};
|
|
2128
|
-
StateHalt.
|
|
2129
|
-
var result = hashCode(this.
|
|
2130
|
-
result = imul(result, 31) + this.
|
|
1923
|
+
protoOf(StateHalt).hashCode = function () {
|
|
1924
|
+
var result = hashCode(this.g37_1);
|
|
1925
|
+
result = imul(result, 31) + this.h37_1.hashCode() | 0;
|
|
2131
1926
|
return result;
|
|
2132
1927
|
};
|
|
2133
|
-
StateHalt.
|
|
1928
|
+
protoOf(StateHalt).equals = function (other) {
|
|
2134
1929
|
if (this === other)
|
|
2135
1930
|
return true;
|
|
2136
1931
|
if (!(other instanceof StateHalt))
|
|
2137
1932
|
return false;
|
|
2138
1933
|
var tmp0_other_with_cast = other instanceof StateHalt ? other : THROW_CCE();
|
|
2139
|
-
if (!equals(this.
|
|
1934
|
+
if (!equals(this.g37_1, tmp0_other_with_cast.g37_1))
|
|
2140
1935
|
return false;
|
|
2141
|
-
if (!this.
|
|
1936
|
+
if (!this.h37_1.equals(tmp0_other_with_cast.h37_1))
|
|
2142
1937
|
return false;
|
|
2143
1938
|
return true;
|
|
2144
1939
|
};
|
|
2145
|
-
StateHalt.
|
|
2146
|
-
return this.
|
|
1940
|
+
protoOf(StateHalt).asEndState = function () {
|
|
1941
|
+
return this.a36();
|
|
2147
1942
|
};
|
|
2148
1943
|
function StateInit(context) {
|
|
2149
1944
|
AbstractState.call(this, context);
|
|
2150
|
-
this.
|
|
2151
|
-
}
|
|
2152
|
-
StateInit.
|
|
2153
|
-
return this.
|
|
2154
|
-
};
|
|
2155
|
-
StateInit.
|
|
2156
|
-
var tmp0_$this = this.
|
|
2157
|
-
var tmp1_goals = toGoals(this.
|
|
2158
|
-
var tmp2_rules =
|
|
2159
|
-
var tmp3_primitives =
|
|
2160
|
-
var tmp4_substitution =
|
|
2161
|
-
var tmp5_customData = this.
|
|
1945
|
+
this.k37_1 = context;
|
|
1946
|
+
}
|
|
1947
|
+
protoOf(StateInit).n5 = function () {
|
|
1948
|
+
return this.k37_1;
|
|
1949
|
+
};
|
|
1950
|
+
protoOf(StateInit).y35 = function () {
|
|
1951
|
+
var tmp0_$this = this.k37_1;
|
|
1952
|
+
var tmp1_goals = toGoals(this.k37_1.p31_1);
|
|
1953
|
+
var tmp2_rules = Companion_getInstance_12().empty();
|
|
1954
|
+
var tmp3_primitives = Companion_getInstance_12().empty();
|
|
1955
|
+
var tmp4_substitution = Companion_getInstance_10().empty();
|
|
1956
|
+
var tmp5_customData = this.k37_1.n31_1.preservePersistent();
|
|
2162
1957
|
var tmp6_relevantVariables = emptySet();
|
|
2163
|
-
|
|
2164
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.c35(null, null, null, null, null, null, null, null, null, tmp5_customData, tmp4_substitution, null, tmp1_goals, tmp2_rules, tmp3_primitives, tmp, new Long(0, 0), null, null, 0, new Long(1, 0), tmp6_relevantVariables, 100863, null), Companion_getInstance_9().empty()));
|
|
1958
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.v32(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_getInstance_12().empty()));
|
|
2165
1959
|
};
|
|
2166
|
-
StateInit.
|
|
2167
|
-
return this.
|
|
1960
|
+
protoOf(StateInit).d36 = function (context) {
|
|
1961
|
+
return this.m36(context);
|
|
2168
1962
|
};
|
|
2169
|
-
StateInit.
|
|
1963
|
+
protoOf(StateInit).m36 = function (context) {
|
|
2170
1964
|
return new StateInit(context);
|
|
2171
1965
|
};
|
|
2172
|
-
StateInit.
|
|
2173
|
-
return 'StateInit(context=' + this.
|
|
1966
|
+
protoOf(StateInit).toString = function () {
|
|
1967
|
+
return 'StateInit(context=' + this.k37_1 + ')';
|
|
2174
1968
|
};
|
|
2175
|
-
StateInit.
|
|
2176
|
-
return this.
|
|
1969
|
+
protoOf(StateInit).hashCode = function () {
|
|
1970
|
+
return this.k37_1.hashCode();
|
|
2177
1971
|
};
|
|
2178
|
-
StateInit.
|
|
1972
|
+
protoOf(StateInit).equals = function (other) {
|
|
2179
1973
|
if (this === other)
|
|
2180
1974
|
return true;
|
|
2181
1975
|
if (!(other instanceof StateInit))
|
|
2182
1976
|
return false;
|
|
2183
1977
|
var tmp0_other_with_cast = other instanceof StateInit ? other : THROW_CCE();
|
|
2184
|
-
if (!this.
|
|
1978
|
+
if (!this.k37_1.equals(tmp0_other_with_cast.k37_1))
|
|
2185
1979
|
return false;
|
|
2186
1980
|
return true;
|
|
2187
1981
|
};
|
|
2188
1982
|
function copyFromCurrentPrimitive(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution) {
|
|
2189
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1983
|
+
var tmp0_safe_receiver = _this__u8e3s4.s31_1.lq();
|
|
2190
1984
|
var tmp;
|
|
2191
1985
|
if (tmp0_safe_receiver == null) {
|
|
2192
1986
|
tmp = null;
|
|
@@ -2196,52 +1990,45 @@
|
|
|
2196
1990
|
// Inline function 'kotlin.contracts.contract' call
|
|
2197
1991
|
var tmp$ret$0;
|
|
2198
1992
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveExecution.copyFromCurrentPrimitive.<anonymous>' call
|
|
2199
|
-
tmp$ret$0 = _this__u8e3s4.
|
|
1993
|
+
tmp$ret$0 = _this__u8e3s4.v34(tmp0_safe_receiver.sideEffects);
|
|
2200
1994
|
tmp$ret$1 = tmp$ret$0;
|
|
2201
1995
|
tmp = tmp$ret$1;
|
|
2202
1996
|
}
|
|
2203
1997
|
var tmp1_elvis_lhs = tmp;
|
|
2204
1998
|
var ctx = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
2205
1999
|
var tmp3_elvis_lhs = goals;
|
|
2206
|
-
var tmp4_goals = tmp3_elvis_lhs == null ? _this__u8e3s4.
|
|
2207
|
-
var tmp_0 = drop(_this__u8e3s4.
|
|
2000
|
+
var tmp4_goals = tmp3_elvis_lhs == null ? _this__u8e3s4.q31_1 : tmp3_elvis_lhs;
|
|
2001
|
+
var tmp_0 = drop(_this__u8e3s4.a32_1, procedureFromAncestor);
|
|
2208
2002
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
2209
|
-
var tmp6_primitives =
|
|
2003
|
+
var tmp6_primitives = Companion_getInstance_12().empty();
|
|
2210
2004
|
var tmp2_elvis_lhs = substitution;
|
|
2211
|
-
var tmp_1 = tmp2_elvis_lhs == null ? _this__u8e3s4.
|
|
2005
|
+
var tmp_1 = tmp2_elvis_lhs == null ? _this__u8e3s4.o31_1 : tmp2_elvis_lhs;
|
|
2212
2006
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
2213
|
-
var tmp8_step = $this.
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
goals = null;
|
|
2221
|
-
if (!(($mask0 & 4) === 0))
|
|
2222
|
-
procedureFromAncestor = 0;
|
|
2223
|
-
if (!(($mask0 & 8) === 0))
|
|
2224
|
-
substitution = null;
|
|
2007
|
+
var tmp8_step = $this.h36();
|
|
2008
|
+
return ctx.v32(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
|
+
}
|
|
2010
|
+
function copyFromCurrentPrimitive$default(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution, $super) {
|
|
2011
|
+
goals = goals === VOID ? null : goals;
|
|
2012
|
+
procedureFromAncestor = procedureFromAncestor === VOID ? 0 : procedureFromAncestor;
|
|
2013
|
+
substitution = substitution === VOID ? null : substitution;
|
|
2225
2014
|
return copyFromCurrentPrimitive(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution);
|
|
2226
2015
|
}
|
|
2227
2016
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
2228
|
-
return it.
|
|
2017
|
+
return it.e31_1;
|
|
2229
2018
|
}
|
|
2230
2019
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
2231
2020
|
return function (it) {
|
|
2232
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0.
|
|
2021
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0.n37_1, this$0, this$0.n37_1.q31_1.kq(), 1, this$0.n37_1.f31_1.mergeWithOccurCheck(this$0.n37_1.o31_1, it.r1t(), false)));
|
|
2233
2022
|
};
|
|
2234
2023
|
}
|
|
2235
2024
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
2236
2025
|
return function (it) {
|
|
2237
|
-
|
|
2238
|
-
return new StateBacktracking(copyFromCurrentPrimitive$default(tmp, this$0, null, 0, null, 14, null));
|
|
2026
|
+
return new StateBacktracking(copyFromCurrentPrimitive$default(ensureNotNull(this$0.n37_1.w31_1), this$0));
|
|
2239
2027
|
};
|
|
2240
2028
|
}
|
|
2241
2029
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
2242
2030
|
return function (it) {
|
|
2243
|
-
|
|
2244
|
-
return new StateException(tmp, copyFromCurrentPrimitive$default(this$0.u39_1, this$0, null, 0, null, 14, null));
|
|
2031
|
+
return new StateException(it.y1u().updateLastContext(this$0.i36(this$0.n37_1)), copyFromCurrentPrimitive$default(this$0.n37_1, this$0));
|
|
2245
2032
|
};
|
|
2246
2033
|
}
|
|
2247
2034
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -2249,15 +2036,15 @@
|
|
|
2249
2036
|
}
|
|
2250
2037
|
function StatePrimitiveExecution(context) {
|
|
2251
2038
|
AbstractState.call(this, context);
|
|
2252
|
-
this.
|
|
2039
|
+
this.n37_1 = context;
|
|
2253
2040
|
}
|
|
2254
|
-
StatePrimitiveExecution.
|
|
2255
|
-
return this.
|
|
2041
|
+
protoOf(StatePrimitiveExecution).n5 = function () {
|
|
2042
|
+
return this.n37_1;
|
|
2256
2043
|
};
|
|
2257
|
-
StatePrimitiveExecution.
|
|
2044
|
+
protoOf(StatePrimitiveExecution).y35 = function () {
|
|
2258
2045
|
var tmp;
|
|
2259
2046
|
try {
|
|
2260
|
-
var tmp0_safe_receiver = this.
|
|
2047
|
+
var tmp0_safe_receiver = this.n37_1.s31_1.lq();
|
|
2261
2048
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
2262
2049
|
var tmp_0;
|
|
2263
2050
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2266,87 +2053,75 @@
|
|
|
2266
2053
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
2267
2054
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
2268
2055
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
2269
|
-
tmp_0 = tmp1_safe_receiver.
|
|
2056
|
+
tmp_0 = tmp1_safe_receiver.f1v(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
2270
2057
|
}
|
|
2271
2058
|
var tmp2_elvis_lhs = tmp_0;
|
|
2272
|
-
|
|
2273
|
-
if (tmp2_elvis_lhs == null) {
|
|
2274
|
-
tmp_4 = new StateBacktracking(copyFromCurrentPrimitive$default(this.u39_1, this, null, 0, null, 14, null));
|
|
2275
|
-
} else {
|
|
2276
|
-
tmp_4 = tmp2_elvis_lhs;
|
|
2277
|
-
}
|
|
2278
|
-
tmp = tmp_4;
|
|
2059
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this.n37_1, this)) : tmp2_elvis_lhs;
|
|
2279
2060
|
} catch ($p) {
|
|
2280
|
-
var
|
|
2061
|
+
var tmp_4;
|
|
2281
2062
|
if ($p instanceof ResolutionException) {
|
|
2282
|
-
var
|
|
2283
|
-
|
|
2284
|
-
var tmp_8 = new Long(0, 0);
|
|
2285
|
-
var tmp_9 = this.o38();
|
|
2286
|
-
tmp_5 = new StateException(tmp_6, this.u39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_7, tmp_8, null, null, 0, tmp_9, null, 3145727, null));
|
|
2063
|
+
var exception = $p;
|
|
2064
|
+
tmp_4 = new StateException(exception.updateLastContext(this.i36(this.n37_1)), this.n37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
|
|
2287
2065
|
} else {
|
|
2288
2066
|
throw $p;
|
|
2289
2067
|
}
|
|
2290
|
-
tmp =
|
|
2068
|
+
tmp = tmp_4;
|
|
2291
2069
|
}
|
|
2292
2070
|
return tmp;
|
|
2293
2071
|
};
|
|
2294
|
-
StatePrimitiveExecution.
|
|
2295
|
-
return this.
|
|
2072
|
+
protoOf(StatePrimitiveExecution).d36 = function (context) {
|
|
2073
|
+
return this.m36(context);
|
|
2296
2074
|
};
|
|
2297
|
-
StatePrimitiveExecution.
|
|
2075
|
+
protoOf(StatePrimitiveExecution).m36 = function (context) {
|
|
2298
2076
|
return new StatePrimitiveExecution(context);
|
|
2299
2077
|
};
|
|
2300
|
-
StatePrimitiveExecution.
|
|
2301
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
2078
|
+
protoOf(StatePrimitiveExecution).toString = function () {
|
|
2079
|
+
return 'StatePrimitiveExecution(context=' + this.n37_1 + ')';
|
|
2302
2080
|
};
|
|
2303
|
-
StatePrimitiveExecution.
|
|
2304
|
-
return this.
|
|
2081
|
+
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2082
|
+
return this.n37_1.hashCode();
|
|
2305
2083
|
};
|
|
2306
|
-
StatePrimitiveExecution.
|
|
2084
|
+
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2307
2085
|
if (this === other)
|
|
2308
2086
|
return true;
|
|
2309
2087
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2310
2088
|
return false;
|
|
2311
2089
|
var tmp0_other_with_cast = other instanceof StatePrimitiveExecution ? other : THROW_CCE();
|
|
2312
|
-
if (!this.
|
|
2090
|
+
if (!this.n37_1.equals(tmp0_other_with_cast.n37_1))
|
|
2313
2091
|
return false;
|
|
2314
2092
|
return true;
|
|
2315
2093
|
};
|
|
2316
2094
|
function exceptionalState($this, exception) {
|
|
2317
|
-
|
|
2318
|
-
var tmp_0 = new Long(0, 0);
|
|
2319
|
-
var tmp_1 = $this.o38();
|
|
2320
|
-
return new StateException(exception, $this.x39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, null, 0, tmp_1, null, 3145727, null));
|
|
2095
|
+
return new StateException(exception, $this.q37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
2321
2096
|
}
|
|
2322
2097
|
function StatePrimitiveSelection(context) {
|
|
2323
2098
|
AbstractState.call(this, context);
|
|
2324
|
-
this.
|
|
2099
|
+
this.q37_1 = context;
|
|
2325
2100
|
}
|
|
2326
|
-
StatePrimitiveSelection.
|
|
2327
|
-
return this.
|
|
2101
|
+
protoOf(StatePrimitiveSelection).n5 = function () {
|
|
2102
|
+
return this.q37_1;
|
|
2328
2103
|
};
|
|
2329
|
-
StatePrimitiveSelection.
|
|
2104
|
+
protoOf(StatePrimitiveSelection).y35 = function () {
|
|
2330
2105
|
var tmp$ret$1;
|
|
2331
2106
|
// Inline function 'kotlin.with' call
|
|
2332
|
-
var tmp0_with = this.
|
|
2107
|
+
var tmp0_with = this.q37_1;
|
|
2333
2108
|
// Inline function 'kotlin.contracts.contract' call
|
|
2334
2109
|
var tmp$ret$0;
|
|
2335
2110
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveSelection.computeNext.<anonymous>' call
|
|
2336
|
-
var goal = ensureNotNull(tmp0_with.
|
|
2111
|
+
var goal = ensureNotNull(tmp0_with.s34());
|
|
2337
2112
|
var tmp;
|
|
2338
|
-
if (goal.
|
|
2339
|
-
tmp = exceptionalState(this, Companion_getInstance_17().forGoal(this.
|
|
2340
|
-
} else if (goal.
|
|
2113
|
+
if (goal.mw()) {
|
|
2114
|
+
tmp = exceptionalState(this, Companion_getInstance_17().forGoal(this.q37_1, extractSignature(ensureNotNull(this.q37_1.e31_1)), goal.castToVar()));
|
|
2115
|
+
} else if (goal.aw()) {
|
|
2341
2116
|
var goalStruct = goal.castToStruct();
|
|
2342
2117
|
var signature = extractSignature(goalStruct);
|
|
2343
2118
|
var tmp_0;
|
|
2344
|
-
if (tmp0_with.
|
|
2345
|
-
var childContext = createChild
|
|
2119
|
+
if (tmp0_with.g31_1.hasPrimitive(signature)) {
|
|
2120
|
+
var childContext = createChild(tmp0_with);
|
|
2346
2121
|
var tmp_1;
|
|
2347
2122
|
try {
|
|
2348
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2349
|
-
var tmp0_elvis_lhs = tmp0_with.
|
|
2123
|
+
var request = toRequest(childContext, goalStruct, signature, this.e36());
|
|
2124
|
+
var tmp0_elvis_lhs = tmp0_with.g31_1.p2c().f3(signature);
|
|
2350
2125
|
var tmp_2;
|
|
2351
2126
|
if (tmp0_elvis_lhs == null) {
|
|
2352
2127
|
throw IllegalStateException_init_$Create$('Inconsistent behaviour of Library.contains and Library.get');
|
|
@@ -2359,7 +2134,8 @@
|
|
|
2359
2134
|
} catch ($p) {
|
|
2360
2135
|
var tmp_3;
|
|
2361
2136
|
if ($p instanceof ResolutionException) {
|
|
2362
|
-
|
|
2137
|
+
var exception = $p;
|
|
2138
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.i36(childContext)));
|
|
2363
2139
|
} else {
|
|
2364
2140
|
throw $p;
|
|
2365
2141
|
}
|
|
@@ -2367,125 +2143,110 @@
|
|
|
2367
2143
|
}
|
|
2368
2144
|
tmp_0 = tmp_1;
|
|
2369
2145
|
} else {
|
|
2370
|
-
|
|
2371
|
-
var tmp_5 = new Long(0, 0);
|
|
2372
|
-
var tmp_6 = this.o38();
|
|
2373
|
-
tmp_0 = new StateRuleSelection(this.x39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_4, tmp_5, null, null, 0, tmp_6, null, 3145727, null));
|
|
2146
|
+
tmp_0 = new StateRuleSelection(this.q37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
|
|
2374
2147
|
}
|
|
2375
2148
|
tmp = tmp_0;
|
|
2376
2149
|
} else {
|
|
2377
|
-
var
|
|
2378
|
-
var tmp1_safe_receiver = this.
|
|
2150
|
+
var tmp_4 = Companion_getInstance_16();
|
|
2151
|
+
var tmp1_safe_receiver = this.q37_1.e31_1;
|
|
2379
2152
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2380
|
-
|
|
2381
|
-
if (tmp2_elvis_lhs == null) {
|
|
2382
|
-
tmp_8 = Signature_init_$Create$('?-', 1, false, 4, null);
|
|
2383
|
-
} else {
|
|
2384
|
-
tmp_8 = tmp2_elvis_lhs;
|
|
2385
|
-
}
|
|
2386
|
-
tmp = exceptionalState(this, tmp_7.forGoal(this.x39_1, tmp_8, Expected_CALLABLE_getInstance(), goal));
|
|
2153
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.q37_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2387
2154
|
}
|
|
2388
2155
|
tmp$ret$0 = tmp;
|
|
2389
2156
|
tmp$ret$1 = tmp$ret$0;
|
|
2390
2157
|
return tmp$ret$1;
|
|
2391
2158
|
};
|
|
2392
|
-
StatePrimitiveSelection.
|
|
2393
|
-
return this.
|
|
2159
|
+
protoOf(StatePrimitiveSelection).d36 = function (context) {
|
|
2160
|
+
return this.m36(context);
|
|
2394
2161
|
};
|
|
2395
|
-
StatePrimitiveSelection.
|
|
2162
|
+
protoOf(StatePrimitiveSelection).m36 = function (context) {
|
|
2396
2163
|
return new StatePrimitiveSelection(context);
|
|
2397
2164
|
};
|
|
2398
|
-
StatePrimitiveSelection.
|
|
2399
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2165
|
+
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2166
|
+
return 'StatePrimitiveSelection(context=' + this.q37_1 + ')';
|
|
2400
2167
|
};
|
|
2401
|
-
StatePrimitiveSelection.
|
|
2402
|
-
return this.
|
|
2168
|
+
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2169
|
+
return this.q37_1.hashCode();
|
|
2403
2170
|
};
|
|
2404
|
-
StatePrimitiveSelection.
|
|
2171
|
+
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2405
2172
|
if (this === other)
|
|
2406
2173
|
return true;
|
|
2407
2174
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2408
2175
|
return false;
|
|
2409
2176
|
var tmp0_other_with_cast = other instanceof StatePrimitiveSelection ? other : THROW_CCE();
|
|
2410
|
-
if (!this.
|
|
2177
|
+
if (!this.q37_1.equals(tmp0_other_with_cast.q37_1))
|
|
2411
2178
|
return false;
|
|
2412
2179
|
return true;
|
|
2413
2180
|
};
|
|
2414
2181
|
function _get_failureState__yid9tw($this) {
|
|
2415
|
-
|
|
2416
|
-
var tmp_0 = new Long(0, 0);
|
|
2417
|
-
var tmp_1 = new Long(0, 0);
|
|
2418
|
-
var tmp_2 = $this.o38();
|
|
2419
|
-
return new StateBacktracking($this.a3a_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3137535, null));
|
|
2182
|
+
return new StateBacktracking($this.t37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_12().empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
2420
2183
|
}
|
|
2421
2184
|
function StateRuleExecution(context) {
|
|
2422
2185
|
AbstractState.call(this, context);
|
|
2423
|
-
this.
|
|
2186
|
+
this.t37_1 = context;
|
|
2424
2187
|
}
|
|
2425
|
-
StateRuleExecution.
|
|
2426
|
-
return this.
|
|
2188
|
+
protoOf(StateRuleExecution).n5 = function () {
|
|
2189
|
+
return this.t37_1;
|
|
2427
2190
|
};
|
|
2428
|
-
StateRuleExecution.
|
|
2191
|
+
protoOf(StateRuleExecution).y35 = function () {
|
|
2429
2192
|
var tmp$ret$1;
|
|
2430
2193
|
// Inline function 'kotlin.with' call
|
|
2431
|
-
var tmp0_with = this.
|
|
2194
|
+
var tmp0_with = this.t37_1;
|
|
2432
2195
|
// Inline function 'kotlin.contracts.contract' call
|
|
2433
2196
|
var tmp$ret$0;
|
|
2434
2197
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleExecution.computeNext.<anonymous>' call
|
|
2435
|
-
tmp$ret$0 = tmp0_with.
|
|
2198
|
+
tmp$ret$0 = tmp0_with.f31_1.mgu(ensureNotNull(tmp0_with.s34()), ensureNotNull(tmp0_with.r31_1.lq()).sx());
|
|
2436
2199
|
tmp$ret$1 = tmp$ret$0;
|
|
2437
2200
|
var substitution = tmp$ret$1;
|
|
2438
2201
|
var tmp;
|
|
2439
|
-
if (substitution.
|
|
2440
|
-
var newSubstitution = this.
|
|
2441
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2442
|
-
var tmp0_$this = this.
|
|
2202
|
+
if (substitution.g11()) {
|
|
2203
|
+
var newSubstitution = this.t37_1.o31_1.plus(substitution).castToUnifier();
|
|
2204
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.t37_1.r31_1.lq()), newSubstitution).tx().getSubstituted(newSubstitution, []);
|
|
2205
|
+
var tmp0_$this = this.t37_1;
|
|
2443
2206
|
var tmp1_goals = toGoals(subGoals);
|
|
2444
|
-
var tmp2_rules =
|
|
2445
|
-
var tmp3_step = this.
|
|
2446
|
-
|
|
2447
|
-
var tmp_1 = new Long(0, 0);
|
|
2448
|
-
tmp = new StateGoalSelection(tmp0_$this.c35(null, null, null, null, null, null, null, null, null, null, newSubstitution, null, tmp1_goals, tmp2_rules, null, tmp_0, tmp_1, null, null, 0, tmp3_step, null, 3132415, null));
|
|
2207
|
+
var tmp2_rules = Companion_getInstance_12().empty();
|
|
2208
|
+
var tmp3_step = this.h36();
|
|
2209
|
+
tmp = new StateGoalSelection(tmp0_$this.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
|
|
2449
2210
|
} else {
|
|
2450
2211
|
tmp = _get_failureState__yid9tw(this);
|
|
2451
2212
|
}
|
|
2452
2213
|
return tmp;
|
|
2453
2214
|
};
|
|
2454
|
-
StateRuleExecution.
|
|
2455
|
-
return this.
|
|
2215
|
+
protoOf(StateRuleExecution).d36 = function (context) {
|
|
2216
|
+
return this.m36(context);
|
|
2456
2217
|
};
|
|
2457
|
-
StateRuleExecution.
|
|
2218
|
+
protoOf(StateRuleExecution).m36 = function (context) {
|
|
2458
2219
|
return new StateRuleExecution(context);
|
|
2459
2220
|
};
|
|
2460
|
-
StateRuleExecution.
|
|
2461
|
-
return 'StateRuleExecution(context=' + this.
|
|
2221
|
+
protoOf(StateRuleExecution).toString = function () {
|
|
2222
|
+
return 'StateRuleExecution(context=' + this.t37_1 + ')';
|
|
2462
2223
|
};
|
|
2463
|
-
StateRuleExecution.
|
|
2464
|
-
return this.
|
|
2224
|
+
protoOf(StateRuleExecution).hashCode = function () {
|
|
2225
|
+
return this.t37_1.hashCode();
|
|
2465
2226
|
};
|
|
2466
|
-
StateRuleExecution.
|
|
2227
|
+
protoOf(StateRuleExecution).equals = function (other) {
|
|
2467
2228
|
if (this === other)
|
|
2468
2229
|
return true;
|
|
2469
2230
|
if (!(other instanceof StateRuleExecution))
|
|
2470
2231
|
return false;
|
|
2471
2232
|
var tmp0_other_with_cast = other instanceof StateRuleExecution ? other : THROW_CCE();
|
|
2472
|
-
if (!this.
|
|
2233
|
+
if (!this.t37_1.equals(tmp0_other_with_cast.t37_1))
|
|
2473
2234
|
return false;
|
|
2474
2235
|
return true;
|
|
2475
2236
|
};
|
|
2476
2237
|
function None() {
|
|
2477
2238
|
None_instance = this;
|
|
2478
2239
|
CutLimit.call(this);
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2240
|
+
this.u37_1 = -1;
|
|
2241
|
+
this.v37_1 = null;
|
|
2481
2242
|
}
|
|
2482
|
-
None.
|
|
2483
|
-
return this.
|
|
2243
|
+
protoOf(None).w37 = function () {
|
|
2244
|
+
return this.u37_1;
|
|
2484
2245
|
};
|
|
2485
|
-
None.
|
|
2486
|
-
return this.
|
|
2246
|
+
protoOf(None).q1t = function () {
|
|
2247
|
+
return this.v37_1;
|
|
2487
2248
|
};
|
|
2488
|
-
None.
|
|
2249
|
+
protoOf(None).x37 = function () {
|
|
2489
2250
|
return true;
|
|
2490
2251
|
};
|
|
2491
2252
|
var None_instance;
|
|
@@ -2496,27 +2257,24 @@
|
|
|
2496
2257
|
}
|
|
2497
2258
|
function Actual(depthToCut, procedure) {
|
|
2498
2259
|
CutLimit.call(this);
|
|
2499
|
-
this.
|
|
2500
|
-
this.
|
|
2260
|
+
this.y37_1 = depthToCut;
|
|
2261
|
+
this.z37_1 = procedure;
|
|
2501
2262
|
}
|
|
2502
|
-
Actual.
|
|
2503
|
-
return this.
|
|
2263
|
+
protoOf(Actual).w37 = function () {
|
|
2264
|
+
return this.y37_1;
|
|
2504
2265
|
};
|
|
2505
|
-
Actual.
|
|
2506
|
-
return this.
|
|
2266
|
+
protoOf(Actual).q1t = function () {
|
|
2267
|
+
return this.z37_1;
|
|
2507
2268
|
};
|
|
2508
2269
|
function CutLimit() {
|
|
2509
2270
|
}
|
|
2510
|
-
CutLimit.
|
|
2271
|
+
protoOf(CutLimit).x37 = function () {
|
|
2511
2272
|
return false;
|
|
2512
2273
|
};
|
|
2513
2274
|
function Companion_0() {
|
|
2514
2275
|
Companion_instance_0 = this;
|
|
2515
|
-
this.
|
|
2516
|
-
|
|
2517
|
-
var tmp_0 = Signature_init_$Create$(',', 2, false, 4, null);
|
|
2518
|
-
var tmp_1 = Signature_init_$Create$(';', 2, false, 4, null);
|
|
2519
|
-
tmp.i3a_1 = setOf([tmp_0, tmp_1, Signature_init_$Create$('->', 2, false, 4, null)]);
|
|
2276
|
+
this.a38_1 = Catch_getInstance().signature;
|
|
2277
|
+
this.b38_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2520
2278
|
}
|
|
2521
2279
|
var Companion_instance_0;
|
|
2522
2280
|
function Companion_getInstance_23() {
|
|
@@ -2525,21 +2283,15 @@
|
|
|
2525
2283
|
return Companion_instance_0;
|
|
2526
2284
|
}
|
|
2527
2285
|
function _get_failureState__yid9tw_0($this) {
|
|
2528
|
-
|
|
2529
|
-
var tmp_0 = new Long(0, 0);
|
|
2530
|
-
var tmp_1 = $this.o38();
|
|
2531
|
-
return new StateBacktracking($this.l3a_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, null, 0, tmp_1, null, 3145727, null));
|
|
2286
|
+
return new StateBacktracking($this.e38_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
2532
2287
|
}
|
|
2533
2288
|
function exceptionalState_0($this, exception) {
|
|
2534
|
-
|
|
2535
|
-
var tmp_0 = new Long(0, 0);
|
|
2536
|
-
var tmp_1 = $this.o38();
|
|
2537
|
-
return new StateException(exception, $this.l3a_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, null, 0, tmp_1, null, 3145727, null));
|
|
2289
|
+
return new StateException(exception, $this.e38_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
2538
2290
|
}
|
|
2539
2291
|
function missingProcedure($this, ruleSources, missing) {
|
|
2540
|
-
var unknown = $this.
|
|
2292
|
+
var unknown = $this.e38_1.h31_1.get(Unknown_getInstance());
|
|
2541
2293
|
var tmp;
|
|
2542
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2294
|
+
if (equals(unknown, Unknown_getInstance().d28_1)) {
|
|
2543
2295
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2544
2296
|
} else {
|
|
2545
2297
|
var tmp_0;
|
|
@@ -2548,7 +2300,7 @@
|
|
|
2548
2300
|
// Inline function 'kotlin.sequences.none' call
|
|
2549
2301
|
var tmp0_iterator = ruleSources.j();
|
|
2550
2302
|
while (tmp0_iterator.m()) {
|
|
2551
|
-
var element = tmp0_iterator.
|
|
2303
|
+
var element = tmp0_iterator.n();
|
|
2552
2304
|
var tmp$ret$0;
|
|
2553
2305
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
|
|
2554
2306
|
tmp$ret$0 = element.containsIndicator(missing.toIndicator());
|
|
@@ -2562,15 +2314,15 @@
|
|
|
2562
2314
|
if (tmp$ret$1) {
|
|
2563
2315
|
var tmp0_subject = unknown;
|
|
2564
2316
|
var tmp_1;
|
|
2565
|
-
if (equals(tmp0_subject, Unknown_getInstance().
|
|
2566
|
-
tmp_1 = exceptionalState_0($this, Companion_getInstance_18().forProcedure($this.
|
|
2567
|
-
} else if (equals(tmp0_subject, Unknown_getInstance().
|
|
2317
|
+
if (equals(tmp0_subject, Unknown_getInstance().b28_1)) {
|
|
2318
|
+
tmp_1 = exceptionalState_0($this, Companion_getInstance_18().forProcedure($this.e38_1, missing));
|
|
2319
|
+
} else if (equals(tmp0_subject, Unknown_getInstance().c28_1)) {
|
|
2568
2320
|
var tmp$ret$2;
|
|
2569
2321
|
// Inline function 'kotlin.also' call
|
|
2570
2322
|
var tmp0_also = _get_failureState__yid9tw_0($this);
|
|
2571
2323
|
// Inline function 'kotlin.contracts.contract' call
|
|
2572
2324
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
|
|
2573
|
-
$this.
|
|
2325
|
+
$this.e38_1.l1u().write(MissingPredicate_init_$Create$($this.e38_1, missing));
|
|
2574
2326
|
tmp$ret$2 = tmp0_also;
|
|
2575
2327
|
tmp_1 = tmp$ret$2;
|
|
2576
2328
|
} else {
|
|
@@ -2585,31 +2337,27 @@
|
|
|
2585
2337
|
return tmp;
|
|
2586
2338
|
}
|
|
2587
2339
|
function _get_ignoreState__t4wl8y($this) {
|
|
2588
|
-
|
|
2589
|
-
var tmp_0 = new Long(0, 0);
|
|
2590
|
-
var tmp_1 = new Long(0, 0);
|
|
2591
|
-
var tmp_2 = $this.o38();
|
|
2592
|
-
return new StateGoalSelection($this.l3a_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, tmp, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3141631, null));
|
|
2340
|
+
return new StateGoalSelection($this.e38_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e38_1.q31_1.kq(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
|
|
2593
2341
|
}
|
|
2594
2342
|
function isCut(_this__u8e3s4, $this) {
|
|
2595
|
-
return _this__u8e3s4.
|
|
2343
|
+
return _this__u8e3s4.rv() ? _this__u8e3s4.castToAtom().b1() === '!' : false;
|
|
2596
2344
|
}
|
|
2597
2345
|
function computeCutLimit(_this__u8e3s4, $this, magicCut) {
|
|
2598
2346
|
var tmp;
|
|
2599
2347
|
if (magicCut) {
|
|
2600
|
-
tmp = firstOrNull(_this__u8e3s4.
|
|
2348
|
+
tmp = firstOrNull(_this__u8e3s4.a32_1);
|
|
2601
2349
|
} else {
|
|
2602
2350
|
var tmp$ret$1;
|
|
2603
2351
|
$l$block: {
|
|
2604
2352
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2605
|
-
var tmp0_firstOrNull = _this__u8e3s4.
|
|
2353
|
+
var tmp0_firstOrNull = _this__u8e3s4.a32_1;
|
|
2606
2354
|
var tmp0_iterator = tmp0_firstOrNull.j();
|
|
2607
2355
|
while (tmp0_iterator.m()) {
|
|
2608
|
-
var element = tmp0_iterator.
|
|
2356
|
+
var element = tmp0_iterator.n();
|
|
2609
2357
|
var tmp$ret$0;
|
|
2610
2358
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeCutLimit.<anonymous>' call
|
|
2611
|
-
var tmp_0 = Companion_getInstance_23().
|
|
2612
|
-
var tmp0_safe_receiver = element.
|
|
2359
|
+
var tmp_0 = Companion_getInstance_23().b38_1;
|
|
2360
|
+
var tmp0_safe_receiver = element.e31_1;
|
|
2613
2361
|
tmp$ret$0 = !contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver));
|
|
2614
2362
|
if (tmp$ret$0) {
|
|
2615
2363
|
tmp$ret$1 = element;
|
|
@@ -2625,21 +2373,21 @@
|
|
|
2625
2373
|
if (cutLimit == null) {
|
|
2626
2374
|
tmp_1 = None_getInstance();
|
|
2627
2375
|
} else {
|
|
2628
|
-
tmp_1 = new Actual(cutLimit.
|
|
2376
|
+
tmp_1 = new Actual(cutLimit.x31_1, cutLimit.e31_1);
|
|
2629
2377
|
}
|
|
2630
2378
|
return tmp_1;
|
|
2631
2379
|
}
|
|
2632
2380
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2633
|
-
return (cutLimit.
|
|
2381
|
+
return (cutLimit.x37() ? true : cutLimit.w37() > executionContext.x31_1) ? true : cutLimit.w37() === executionContext.x31_1 ? !equals(cutLimit.q1t(), executionContext.e31_1) : false;
|
|
2634
2382
|
}
|
|
2635
2383
|
function performCut(_this__u8e3s4, $this, cutLimit) {
|
|
2636
2384
|
var tmp;
|
|
2637
2385
|
if (_this__u8e3s4 === null) {
|
|
2638
2386
|
tmp = null;
|
|
2639
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.
|
|
2387
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.q32()))) {
|
|
2640
2388
|
tmp = _this__u8e3s4;
|
|
2641
2389
|
} else {
|
|
2642
|
-
var tmp_0 = _this__u8e3s4.
|
|
2390
|
+
var tmp_0 = _this__u8e3s4.d33();
|
|
2643
2391
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2644
2392
|
var tmp_1;
|
|
2645
2393
|
if (any(cutCandidates)) {
|
|
@@ -2648,10 +2396,10 @@
|
|
|
2648
2396
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2649
2397
|
var tmp0_iterator = cutCandidates.j();
|
|
2650
2398
|
while (tmp0_iterator.m()) {
|
|
2651
|
-
var element = tmp0_iterator.
|
|
2399
|
+
var element = tmp0_iterator.n();
|
|
2652
2400
|
var tmp$ret$0;
|
|
2653
2401
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.performCut.<anonymous>' call
|
|
2654
|
-
tmp$ret$0 = ensureNotNull(element.
|
|
2402
|
+
tmp$ret$0 = ensureNotNull(element.q32()).x31_1 <= cutLimit.w37();
|
|
2655
2403
|
if (tmp$ret$0) {
|
|
2656
2404
|
tmp$ret$1 = element;
|
|
2657
2405
|
break $l$block;
|
|
@@ -2660,7 +2408,7 @@
|
|
|
2660
2408
|
tmp$ret$1 = null;
|
|
2661
2409
|
}
|
|
2662
2410
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
2663
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2411
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r32();
|
|
2664
2412
|
} else {
|
|
2665
2413
|
tmp_1 = _this__u8e3s4;
|
|
2666
2414
|
}
|
|
@@ -2670,10 +2418,10 @@
|
|
|
2670
2418
|
}
|
|
2671
2419
|
function _get_isTailRecursive__h5eso7(_this__u8e3s4, $this) {
|
|
2672
2420
|
var tmp;
|
|
2673
|
-
if (_this__u8e3s4.
|
|
2421
|
+
if (_this__u8e3s4.q31_1.kq().nq() ? equals(_this__u8e3s4.h31_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().q27_1) : false) {
|
|
2674
2422
|
var tmp$ret$3;
|
|
2675
2423
|
// Inline function 'kotlin.let' call
|
|
2676
|
-
var tmp0_let = ensureNotNull(_this__u8e3s4.
|
|
2424
|
+
var tmp0_let = ensureNotNull(_this__u8e3s4.s34());
|
|
2677
2425
|
// Inline function 'kotlin.contracts.contract' call
|
|
2678
2426
|
var tmp$ret$2;
|
|
2679
2427
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>' call
|
|
@@ -2689,9 +2437,9 @@
|
|
|
2689
2437
|
var tmp$ret$0;
|
|
2690
2438
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>.<anonymous>' call
|
|
2691
2439
|
var tmp_1;
|
|
2692
|
-
var tmp0_safe_receiver_0 = _this__u8e3s4.
|
|
2440
|
+
var tmp0_safe_receiver_0 = _this__u8e3s4.e31_1;
|
|
2693
2441
|
if (equals(tmp1_safe_receiver, tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
|
|
2694
|
-
tmp_1 = !equals(tmp1_safe_receiver, Companion_getInstance_23().
|
|
2442
|
+
tmp_1 = !equals(tmp1_safe_receiver, Companion_getInstance_23().a38_1);
|
|
2695
2443
|
} else {
|
|
2696
2444
|
tmp_1 = false;
|
|
2697
2445
|
}
|
|
@@ -2717,7 +2465,7 @@
|
|
|
2717
2465
|
var tmp$ret$0;
|
|
2718
2466
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.selectClauses.<anonymous>' call
|
|
2719
2467
|
var tmp_0;
|
|
2720
|
-
if (_this__u8e3s4.
|
|
2468
|
+
if (_this__u8e3s4.a1s()) {
|
|
2721
2469
|
tmp_0 = buffered(tmp0_let);
|
|
2722
2470
|
} else {
|
|
2723
2471
|
tmp_0 = tmp0_let;
|
|
@@ -2728,7 +2476,7 @@
|
|
|
2728
2476
|
}
|
|
2729
2477
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2730
2478
|
return function (it) {
|
|
2731
|
-
return equals(ensureNotNull(it.
|
|
2479
|
+
return equals(ensureNotNull(it.q32()).e31_1, $cutLimit.q1t());
|
|
2732
2480
|
};
|
|
2733
2481
|
}
|
|
2734
2482
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
@@ -2737,34 +2485,34 @@
|
|
|
2737
2485
|
};
|
|
2738
2486
|
}
|
|
2739
2487
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2740
|
-
return it.
|
|
2488
|
+
return it.fy();
|
|
2741
2489
|
}
|
|
2742
2490
|
function StateRuleSelection(context) {
|
|
2743
2491
|
Companion_getInstance_23();
|
|
2744
2492
|
AbstractState.call(this, context);
|
|
2745
|
-
this.
|
|
2493
|
+
this.e38_1 = context;
|
|
2746
2494
|
}
|
|
2747
|
-
StateRuleSelection.
|
|
2748
|
-
return this.
|
|
2495
|
+
protoOf(StateRuleSelection).n5 = function () {
|
|
2496
|
+
return this.e38_1;
|
|
2749
2497
|
};
|
|
2750
|
-
StateRuleSelection.
|
|
2751
|
-
var currentGoal = ensureNotNull(this.
|
|
2498
|
+
protoOf(StateRuleSelection).y35 = function () {
|
|
2499
|
+
var currentGoal = ensureNotNull(this.e38_1.s34());
|
|
2752
2500
|
var tmp;
|
|
2753
|
-
if (currentGoal.
|
|
2754
|
-
tmp = exceptionalState_0(this, Companion_getInstance_17().forGoal(this.
|
|
2755
|
-
} else if (currentGoal.
|
|
2501
|
+
if (currentGoal.mw()) {
|
|
2502
|
+
tmp = exceptionalState_0(this, Companion_getInstance_17().forGoal(this.e38_1, extractSignature(ensureNotNull(this.e38_1.e31_1)), currentGoal.castToVar()));
|
|
2503
|
+
} else if (currentGoal.aw()) {
|
|
2756
2504
|
var tmp$ret$5;
|
|
2757
2505
|
// Inline function 'kotlin.with' call
|
|
2758
|
-
var tmp0_with = this.
|
|
2506
|
+
var tmp0_with = this.e38_1;
|
|
2759
2507
|
// Inline function 'kotlin.contracts.contract' call
|
|
2760
2508
|
var tmp$ret$4;
|
|
2761
2509
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>' call
|
|
2762
2510
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2763
|
-
var ruleSources = sequenceOf([tmp0_with.
|
|
2511
|
+
var ruleSources = sequenceOf([tmp0_with.g31_1.asTheory(tmp0_with.f31_1), tmp0_with.i31_1, tmp0_with.j31_1]);
|
|
2764
2512
|
var tmp_0;
|
|
2765
|
-
if (currentGoalStruct.
|
|
2513
|
+
if (currentGoalStruct.nw()) {
|
|
2766
2514
|
var tmp_1;
|
|
2767
|
-
if (currentGoalStruct.
|
|
2515
|
+
if (currentGoalStruct.uv()) {
|
|
2768
2516
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2769
2517
|
} else {
|
|
2770
2518
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
@@ -2779,11 +2527,7 @@
|
|
|
2779
2527
|
// Inline function 'kotlin.contracts.contract' call
|
|
2780
2528
|
var tmp$ret$0;
|
|
2781
2529
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
|
|
2782
|
-
|
|
2783
|
-
var tmp_3 = new Long(0, 0);
|
|
2784
|
-
var tmp_4 = performCut(tmp0_let.i39_1.c34_1, this, cutLimit);
|
|
2785
|
-
var tmp_5 = new Long(0, 0);
|
|
2786
|
-
tmp$ret$0 = tmp0_let.t38(tmp0_let.i39_1.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_2, tmp_3, tmp_4, null, 0, tmp_5, null, 4063231, null));
|
|
2530
|
+
tmp$ret$0 = tmp0_let.m36(tmp0_let.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(tmp0_let.b37_1.v31_1, this, cutLimit)));
|
|
2787
2531
|
tmp$ret$1 = tmp$ret$0;
|
|
2788
2532
|
tmp_0 = tmp$ret$1;
|
|
2789
2533
|
} else {
|
|
@@ -2792,7 +2536,7 @@
|
|
|
2792
2536
|
// Inline function 'kotlin.sequences.any' call
|
|
2793
2537
|
var tmp0_iterator = ruleSources.j();
|
|
2794
2538
|
while (tmp0_iterator.m()) {
|
|
2795
|
-
var element = tmp0_iterator.
|
|
2539
|
+
var element = tmp0_iterator.n();
|
|
2796
2540
|
var tmp$ret$2;
|
|
2797
2541
|
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
|
|
2798
2542
|
tmp$ret$2 = element.containsHead(currentGoalStruct);
|
|
@@ -2805,13 +2549,13 @@
|
|
|
2805
2549
|
}
|
|
2806
2550
|
if (tmp$ret$3) {
|
|
2807
2551
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2808
|
-
var
|
|
2809
|
-
if (_get_isTailRecursive__h5eso7(this.
|
|
2810
|
-
|
|
2552
|
+
var tmp_2;
|
|
2553
|
+
if (_get_isTailRecursive__h5eso7(this.e38_1, this)) {
|
|
2554
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.e38_1, rules));
|
|
2811
2555
|
} else {
|
|
2812
|
-
|
|
2556
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.e38_1, rules));
|
|
2813
2557
|
}
|
|
2814
|
-
tmp_0 =
|
|
2558
|
+
tmp_0 = tmp_2;
|
|
2815
2559
|
} else {
|
|
2816
2560
|
tmp_0 = missingProcedure(this, ruleSources, extractSignature(currentGoalStruct));
|
|
2817
2561
|
}
|
|
@@ -2821,44 +2565,41 @@
|
|
|
2821
2565
|
tmp$ret$5 = tmp$ret$4;
|
|
2822
2566
|
tmp = tmp$ret$5;
|
|
2823
2567
|
} else {
|
|
2824
|
-
tmp = exceptionalState_0(this, Companion_getInstance_16().forGoal(this.
|
|
2568
|
+
tmp = exceptionalState_0(this, Companion_getInstance_16().forGoal(this.e38_1, extractSignature(ensureNotNull(this.e38_1.e31_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2825
2569
|
}
|
|
2826
2570
|
return tmp;
|
|
2827
2571
|
};
|
|
2828
|
-
StateRuleSelection.
|
|
2829
|
-
return this.
|
|
2572
|
+
protoOf(StateRuleSelection).d36 = function (context) {
|
|
2573
|
+
return this.m36(context);
|
|
2830
2574
|
};
|
|
2831
|
-
StateRuleSelection.
|
|
2575
|
+
protoOf(StateRuleSelection).m36 = function (context) {
|
|
2832
2576
|
return new StateRuleSelection(context);
|
|
2833
2577
|
};
|
|
2834
|
-
StateRuleSelection.
|
|
2835
|
-
return 'StateRuleSelection(context=' + this.
|
|
2578
|
+
protoOf(StateRuleSelection).toString = function () {
|
|
2579
|
+
return 'StateRuleSelection(context=' + this.e38_1 + ')';
|
|
2836
2580
|
};
|
|
2837
|
-
StateRuleSelection.
|
|
2838
|
-
return this.
|
|
2581
|
+
protoOf(StateRuleSelection).hashCode = function () {
|
|
2582
|
+
return this.e38_1.hashCode();
|
|
2839
2583
|
};
|
|
2840
|
-
StateRuleSelection.
|
|
2584
|
+
protoOf(StateRuleSelection).equals = function (other) {
|
|
2841
2585
|
if (this === other)
|
|
2842
2586
|
return true;
|
|
2843
2587
|
if (!(other instanceof StateRuleSelection))
|
|
2844
2588
|
return false;
|
|
2845
2589
|
var tmp0_other_with_cast = other instanceof StateRuleSelection ? other : THROW_CCE();
|
|
2846
|
-
if (!this.
|
|
2590
|
+
if (!this.e38_1.equals(tmp0_other_with_cast.e38_1))
|
|
2847
2591
|
return false;
|
|
2848
2592
|
return true;
|
|
2849
2593
|
};
|
|
2850
2594
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2851
2595
|
var tmp;
|
|
2852
|
-
if (rules.
|
|
2853
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2596
|
+
if (rules.mq()) {
|
|
2597
|
+
tmp = appendRules(_this__u8e3s4.v31_1, rules.kq(), _this__u8e3s4);
|
|
2854
2598
|
} else {
|
|
2855
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2599
|
+
tmp = appendRules(_this__u8e3s4.v31_1, Companion_getInstance_12().empty(), _this__u8e3s4);
|
|
2856
2600
|
}
|
|
2857
2601
|
var newChoicePointContext = tmp;
|
|
2858
|
-
|
|
2859
|
-
var tmp_1 = new Long(0, 0);
|
|
2860
|
-
var tmp_2 = new Long(0, 0);
|
|
2861
|
-
return _this__u8e3s4.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, rules, null, tmp_0, tmp_1, newChoicePointContext, null, 0, tmp_2, null, 4055039, null);
|
|
2602
|
+
return _this__u8e3s4.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2862
2603
|
}
|
|
2863
2604
|
function toGoals(_this__u8e3s4) {
|
|
2864
2605
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2866,8 +2607,8 @@
|
|
|
2866
2607
|
}
|
|
2867
2608
|
function unfoldGoals(_this__u8e3s4) {
|
|
2868
2609
|
var tmp;
|
|
2869
|
-
if (_this__u8e3s4.
|
|
2870
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2610
|
+
if (_this__u8e3s4.dw()) {
|
|
2611
|
+
var tmp_0 = _this__u8e3s4.castToTuple().au();
|
|
2871
2612
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2872
2613
|
} else {
|
|
2873
2614
|
tmp = sequenceOf([_this__u8e3s4]);
|
|
@@ -2875,86 +2616,67 @@
|
|
|
2875
2616
|
return tmp;
|
|
2876
2617
|
}
|
|
2877
2618
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2878
|
-
|
|
2619
|
+
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2620
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.s34()).castToStruct();
|
|
2879
2621
|
var tmp0_goals = toGoals(currentGoal);
|
|
2880
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2881
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2622
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.e31_1;
|
|
2623
|
+
var tmp2_depth = _this__u8e3s4.x31_1 + 1 | 0;
|
|
2882
2624
|
var tmp$ret$0;
|
|
2883
2625
|
// Inline function 'kotlin.Long.plus' call
|
|
2884
|
-
var tmp0_plus = _this__u8e3s4.
|
|
2626
|
+
var tmp0_plus = _this__u8e3s4.y31_1;
|
|
2885
2627
|
tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
|
|
2886
2628
|
var tmp3_step = tmp$ret$0;
|
|
2887
2629
|
var tmp4_relevantVariables = emptySet();
|
|
2888
|
-
|
|
2889
|
-
var tmp_0 = new Long(0, 0);
|
|
2890
|
-
return _this__u8e3s4.c35(tmp1_procedure, null, null, null, null, null, null, null, null, null, null, null, tmp0_goals, null, null, tmp, tmp_0, null, _this__u8e3s4, tmp2_depth, tmp3_step, tmp4_relevantVariables, 258046, null);
|
|
2891
|
-
}
|
|
2892
|
-
function createChild$default(_this__u8e3s4, inferProcedureFromGoals, $mask0, $handler) {
|
|
2893
|
-
if (!(($mask0 & 1) === 0))
|
|
2894
|
-
inferProcedureFromGoals = true;
|
|
2895
|
-
return createChild(_this__u8e3s4, inferProcedureFromGoals);
|
|
2630
|
+
return _this__u8e3s4.v32(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);
|
|
2896
2631
|
}
|
|
2897
2632
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2898
|
-
|
|
2899
|
-
return Request_init_$Create$(signature, tmp, _this__u8e3s4, startTime, new Long(0, 0), 16, null);
|
|
2633
|
+
return new Request(signature, goal.xv(), _this__u8e3s4, startTime);
|
|
2900
2634
|
}
|
|
2901
2635
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2902
2636
|
var tmp;
|
|
2903
|
-
if (primitiveExecutions.
|
|
2904
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2637
|
+
if (primitiveExecutions.mq()) {
|
|
2638
|
+
tmp = appendPrimitives(_this__u8e3s4.v31_1, primitiveExecutions.kq(), _this__u8e3s4);
|
|
2905
2639
|
} else {
|
|
2906
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2640
|
+
tmp = appendPrimitives(_this__u8e3s4.v31_1, Companion_getInstance_12().empty(), _this__u8e3s4);
|
|
2907
2641
|
}
|
|
2908
2642
|
var newChoicePointContext = tmp;
|
|
2909
|
-
|
|
2910
|
-
var tmp_1 = new Long(0, 0);
|
|
2911
|
-
var tmp_2 = new Long(0, 0);
|
|
2912
|
-
return _this__u8e3s4.c35(null, null, null, null, null, null, null, null, null, null, null, null, null, null, primitiveExecutions, tmp_0, tmp_1, newChoicePointContext, null, 0, tmp_2, null, 4046847, null);
|
|
2643
|
+
return _this__u8e3s4.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2913
2644
|
}
|
|
2914
2645
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2646
|
+
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2915
2647
|
var tempExecutionContext = replaceWithChild(_this__u8e3s4, inferProcedureFromGoals);
|
|
2916
2648
|
return appendRulesAndChoicePoints(tempExecutionContext, rules);
|
|
2917
2649
|
}
|
|
2918
|
-
function replaceWithChildAppendingRulesAndChoicePoints$default(_this__u8e3s4, rules, inferProcedureFromGoals, $mask0, $handler) {
|
|
2919
|
-
if (!(($mask0 & 2) === 0))
|
|
2920
|
-
inferProcedureFromGoals = true;
|
|
2921
|
-
return replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals);
|
|
2922
|
-
}
|
|
2923
2650
|
function createChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2651
|
+
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2924
2652
|
var tempExecutionContext = createChild(_this__u8e3s4, inferProcedureFromGoals);
|
|
2925
2653
|
return appendRulesAndChoicePoints(tempExecutionContext, rules);
|
|
2926
2654
|
}
|
|
2927
|
-
function createChildAppendingRulesAndChoicePoints$default(_this__u8e3s4, rules, inferProcedureFromGoals, $mask0, $handler) {
|
|
2928
|
-
if (!(($mask0 & 2) === 0))
|
|
2929
|
-
inferProcedureFromGoals = true;
|
|
2930
|
-
return createChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals);
|
|
2931
|
-
}
|
|
2932
2655
|
function ensureRules(_this__u8e3s4) {
|
|
2933
2656
|
return map(_this__u8e3s4, ensureRules$lambda);
|
|
2934
2657
|
}
|
|
2935
2658
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2936
|
-
|
|
2659
|
+
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2660
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.s34()).castToStruct();
|
|
2937
2661
|
var tmp0_goals = toGoals(currentGoal);
|
|
2938
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2939
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2662
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.e31_1;
|
|
2663
|
+
var tmp2_depth = _this__u8e3s4.x31_1 + 1 | 0;
|
|
2940
2664
|
var tmp$ret$0;
|
|
2941
2665
|
// Inline function 'kotlin.Long.plus' call
|
|
2942
|
-
var tmp0_plus = _this__u8e3s4.
|
|
2666
|
+
var tmp0_plus = _this__u8e3s4.y31_1;
|
|
2943
2667
|
tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
|
|
2944
2668
|
var tmp3_step = tmp$ret$0;
|
|
2945
|
-
|
|
2946
|
-
var tmp_0 = new Long(0, 0);
|
|
2947
|
-
return _this__u8e3s4.c35(tmp1_procedure, null, null, null, null, null, null, null, null, null, null, null, tmp0_goals, null, null, tmp, tmp_0, null, null, tmp2_depth, tmp3_step, null, 2617342, null);
|
|
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);
|
|
2948
2670
|
}
|
|
2949
2671
|
function toGoals$lambda(it) {
|
|
2950
|
-
return it.
|
|
2672
|
+
return it.mw() ? Companion_getInstance_8().of('call', [it]) : it;
|
|
2951
2673
|
}
|
|
2952
2674
|
function unfoldGoals$lambda(it) {
|
|
2953
2675
|
return unfoldGoals(it);
|
|
2954
2676
|
}
|
|
2955
2677
|
function ensureRules$lambda(it) {
|
|
2956
2678
|
// Inline function 'kotlin.require' call
|
|
2957
|
-
var tmp0_require = it.
|
|
2679
|
+
var tmp0_require = it.cw();
|
|
2958
2680
|
// Inline function 'kotlin.contracts.contract' call
|
|
2959
2681
|
// Inline function 'kotlin.require' call
|
|
2960
2682
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2968,54 +2690,54 @@
|
|
|
2968
2690
|
return it.castToRule();
|
|
2969
2691
|
}
|
|
2970
2692
|
function AbstractSolutionIterator(state) {
|
|
2971
|
-
this.
|
|
2972
|
-
this.
|
|
2693
|
+
this.f38_1 = state;
|
|
2694
|
+
this.g38_1 = new Long(0, 0);
|
|
2973
2695
|
}
|
|
2974
|
-
AbstractSolutionIterator.
|
|
2696
|
+
protoOf(AbstractSolutionIterator).m = function () {
|
|
2975
2697
|
var tmp$ret$1;
|
|
2976
2698
|
// Inline function 'kotlin.let' call
|
|
2977
|
-
var tmp0_let = this.
|
|
2699
|
+
var tmp0_let = this.f38_1;
|
|
2978
2700
|
// Inline function 'kotlin.contracts.contract' call
|
|
2979
2701
|
var tmp$ret$0;
|
|
2980
2702
|
// Inline function 'it.unibo.tuprolog.solve.classic.impl.AbstractSolutionIterator.hasNext.<anonymous>' call
|
|
2981
|
-
tmp$ret$0 = !tmp0_let.
|
|
2703
|
+
tmp$ret$0 = !tmp0_let.z35() ? true : tmp0_let.castToEndState().c33();
|
|
2982
2704
|
tmp$ret$1 = tmp$ret$0;
|
|
2983
2705
|
return tmp$ret$1;
|
|
2984
2706
|
};
|
|
2985
|
-
AbstractSolutionIterator.
|
|
2707
|
+
protoOf(AbstractSolutionIterator).n = function () {
|
|
2986
2708
|
do {
|
|
2987
|
-
var previousState = this.
|
|
2709
|
+
var previousState = this.f38_1;
|
|
2988
2710
|
var tmp = this;
|
|
2989
|
-
var tmp_0 = this.
|
|
2711
|
+
var tmp_0 = this.f38_1;
|
|
2990
2712
|
var tmp0_this = this;
|
|
2991
|
-
tmp0_this.
|
|
2992
|
-
tmp.
|
|
2993
|
-
this.onStateTransition(previousState, this.
|
|
2713
|
+
tmp0_this.g38_1 = tmp0_this.g38_1.gh();
|
|
2714
|
+
tmp.f38_1 = this.h38(tmp_0, tmp0_this.g38_1);
|
|
2715
|
+
this.onStateTransition(previousState, this.f38_1, this.g38_1);
|
|
2994
2716
|
}
|
|
2995
|
-
while (!this.
|
|
2996
|
-
return this.
|
|
2717
|
+
while (!this.f38_1.z35());
|
|
2718
|
+
return this.f38_1.castToEndState().e2h().cleanUp();
|
|
2997
2719
|
};
|
|
2998
2720
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2999
2721
|
AbstractSolutionIterator.call(this, state);
|
|
3000
|
-
this.
|
|
2722
|
+
this.k38_1 = onStateTransitionCallback;
|
|
3001
2723
|
}
|
|
3002
|
-
SimpleSolutionIterator.
|
|
2724
|
+
protoOf(SimpleSolutionIterator).h38 = function (state, step) {
|
|
3003
2725
|
return state.next();
|
|
3004
2726
|
};
|
|
3005
|
-
SimpleSolutionIterator.
|
|
3006
|
-
return this.
|
|
2727
|
+
protoOf(SimpleSolutionIterator).l38 = function (source, destination, index) {
|
|
2728
|
+
return this.k38_1(source, destination, index);
|
|
3007
2729
|
};
|
|
3008
|
-
SimpleSolutionIterator.
|
|
3009
|
-
return this.
|
|
2730
|
+
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2731
|
+
return this.l38(source, destination, index);
|
|
3010
2732
|
};
|
|
3011
2733
|
function DefaultBuiltins() {
|
|
3012
2734
|
DefaultBuiltins_instance = this;
|
|
3013
2735
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
3014
2736
|
}
|
|
3015
|
-
DefaultBuiltins.
|
|
2737
|
+
protoOf(DefaultBuiltins).d2d = function () {
|
|
3016
2738
|
return listOf(Throw_getInstance());
|
|
3017
2739
|
};
|
|
3018
|
-
DefaultBuiltins.
|
|
2740
|
+
protoOf(DefaultBuiltins).c2d = function () {
|
|
3019
2741
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
3020
2742
|
};
|
|
3021
2743
|
var DefaultBuiltins_instance;
|
|
@@ -3029,12 +2751,12 @@
|
|
|
3029
2751
|
var tmp_0;
|
|
3030
2752
|
var tmp_1;
|
|
3031
2753
|
if (isInterface(error, Struct)) {
|
|
3032
|
-
tmp_1 = error.
|
|
2754
|
+
tmp_1 = error.wv() === 'error';
|
|
3033
2755
|
} else {
|
|
3034
2756
|
tmp_1 = false;
|
|
3035
2757
|
}
|
|
3036
2758
|
if (tmp_1) {
|
|
3037
|
-
var containsArg = error.
|
|
2759
|
+
var containsArg = error.qv();
|
|
3038
2760
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
3039
2761
|
} else {
|
|
3040
2762
|
tmp_0 = false;
|
|
@@ -3042,10 +2764,9 @@
|
|
|
3042
2764
|
if (tmp_0) {
|
|
3043
2765
|
var tmp_2 = Companion_getInstance_20();
|
|
3044
2766
|
var tmp_3 = error.get(0);
|
|
3045
|
-
tmp = tmp_2.
|
|
2767
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.qv() > 1 ? error.get(1) : null);
|
|
3046
2768
|
} else {
|
|
3047
|
-
|
|
3048
|
-
tmp = tmp_4.h27(error, context, null, 4, null);
|
|
2769
|
+
tmp = Companion_getInstance_19().m25(error, context);
|
|
3049
2770
|
}
|
|
3050
2771
|
return tmp;
|
|
3051
2772
|
}
|
|
@@ -3053,13 +2774,11 @@
|
|
|
3053
2774
|
Throw_instance = this;
|
|
3054
2775
|
UnaryPredicate.call(this, 'throw');
|
|
3055
2776
|
}
|
|
3056
|
-
Throw.
|
|
3057
|
-
|
|
3058
|
-
var tmp_0 = handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.n(0));
|
|
3059
|
-
return sequenceOf([tmp.f2j(tmp_0, null, [], 6, null)]);
|
|
2777
|
+
protoOf(Throw).n2p = function (_this__u8e3s4, first) {
|
|
2778
|
+
return sequenceOf([Companion_getInstance_21().d2e(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.o(0)), VOID, [])]);
|
|
3060
2779
|
};
|
|
3061
|
-
Throw.
|
|
3062
|
-
return this.
|
|
2780
|
+
protoOf(Throw).z2h = function (_this__u8e3s4, first) {
|
|
2781
|
+
return this.n2p(_this__u8e3s4, first);
|
|
3063
2782
|
};
|
|
3064
2783
|
var Throw_instance;
|
|
3065
2784
|
function Throw_getInstance() {
|
|
@@ -3069,12 +2788,12 @@
|
|
|
3069
2788
|
}
|
|
3070
2789
|
function Call() {
|
|
3071
2790
|
Call_instance = this;
|
|
3072
|
-
RuleWrapper_init_$Init$('call', 1,
|
|
2791
|
+
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
3073
2792
|
}
|
|
3074
|
-
Call.
|
|
2793
|
+
protoOf(Call).d2i = function (_this__u8e3s4) {
|
|
3075
2794
|
return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('G')]);
|
|
3076
2795
|
};
|
|
3077
|
-
Call.
|
|
2796
|
+
protoOf(Call).e2i = function (_this__u8e3s4) {
|
|
3078
2797
|
var tmp$ret$0;
|
|
3079
2798
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3080
2799
|
var tmp0__get_functor__thl4dk = EnsureExecutable_getInstance();
|
|
@@ -3089,12 +2808,12 @@
|
|
|
3089
2808
|
}
|
|
3090
2809
|
function Catch() {
|
|
3091
2810
|
Catch_instance = this;
|
|
3092
|
-
RuleWrapper_init_$Init$('catch', 3,
|
|
2811
|
+
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
3093
2812
|
}
|
|
3094
|
-
Catch.
|
|
2813
|
+
protoOf(Catch).d2i = function (_this__u8e3s4) {
|
|
3095
2814
|
return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
3096
2815
|
};
|
|
3097
|
-
Catch.
|
|
2816
|
+
protoOf(Catch).e2i = function (_this__u8e3s4) {
|
|
3098
2817
|
return _this__u8e3s4.varOf('G');
|
|
3099
2818
|
};
|
|
3100
2819
|
var Catch_instance;
|
|
@@ -3105,12 +2824,12 @@
|
|
|
3105
2824
|
}
|
|
3106
2825
|
function Comma() {
|
|
3107
2826
|
Comma_instance = this;
|
|
3108
|
-
RuleWrapper_init_$Init$(',', 2,
|
|
2827
|
+
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
3109
2828
|
}
|
|
3110
|
-
Comma.
|
|
2829
|
+
protoOf(Comma).d2i = function (_this__u8e3s4) {
|
|
3111
2830
|
return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
3112
2831
|
};
|
|
3113
|
-
Comma.
|
|
2832
|
+
protoOf(Comma).e2i = function (_this__u8e3s4) {
|
|
3114
2833
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
3115
2834
|
};
|
|
3116
2835
|
var Comma_instance;
|
|
@@ -3121,7 +2840,7 @@
|
|
|
3121
2840
|
}
|
|
3122
2841
|
function Cut() {
|
|
3123
2842
|
Cut_instance = this;
|
|
3124
|
-
RuleWrapper_init_$Init$('!', 0,
|
|
2843
|
+
RuleWrapper_init_$Init$('!', 0, VOID, this);
|
|
3125
2844
|
}
|
|
3126
2845
|
var Cut_instance;
|
|
3127
2846
|
function Cut_getInstance() {
|
|
@@ -3133,7 +2852,7 @@
|
|
|
3133
2852
|
Fail_instance = this;
|
|
3134
2853
|
NegationAsFailure.call(this);
|
|
3135
2854
|
}
|
|
3136
|
-
Fail.
|
|
2855
|
+
protoOf(Fail).e2i = function (_this__u8e3s4) {
|
|
3137
2856
|
var tmp$ret$0;
|
|
3138
2857
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3139
2858
|
var tmp0__get_functor__thl4dk = EnsureExecutable_getInstance();
|
|
@@ -3155,7 +2874,7 @@
|
|
|
3155
2874
|
Success_instance = this;
|
|
3156
2875
|
NegationAsFailure.call(this);
|
|
3157
2876
|
}
|
|
3158
|
-
Success.
|
|
2877
|
+
protoOf(Success).e2i = function (_this__u8e3s4) {
|
|
3159
2878
|
return _this__u8e3s4.truthOf(true);
|
|
3160
2879
|
};
|
|
3161
2880
|
var Success_instance;
|
|
@@ -3166,8 +2885,8 @@
|
|
|
3166
2885
|
}
|
|
3167
2886
|
function Companion_1() {
|
|
3168
2887
|
Companion_instance_1 = this;
|
|
3169
|
-
this.
|
|
3170
|
-
this.
|
|
2888
|
+
this.l39_1 = '\\+';
|
|
2889
|
+
this.m39_1 = 1;
|
|
3171
2890
|
}
|
|
3172
2891
|
var Companion_instance_1;
|
|
3173
2892
|
function Companion_getInstance_24() {
|
|
@@ -3179,130 +2898,142 @@
|
|
|
3179
2898
|
Companion_getInstance_24();
|
|
3180
2899
|
Companion_getInstance_24();
|
|
3181
2900
|
Companion_getInstance_24();
|
|
3182
|
-
RuleWrapper_init_$Init$('\\+', 1,
|
|
2901
|
+
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
3183
2902
|
}
|
|
3184
|
-
NegationAsFailure.
|
|
2903
|
+
protoOf(NegationAsFailure).d2i = function (_this__u8e3s4) {
|
|
3185
2904
|
return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('X')]);
|
|
3186
2905
|
};
|
|
3187
2906
|
//region block: post-declaration
|
|
3188
|
-
AbstractClassicSolver.
|
|
3189
|
-
AbstractClassicSolver.
|
|
3190
|
-
AbstractClassicSolver.
|
|
3191
|
-
AbstractClassicSolver.
|
|
3192
|
-
AbstractClassicSolver.
|
|
3193
|
-
AbstractClassicSolver.
|
|
3194
|
-
AbstractClassicSolver.
|
|
3195
|
-
AbstractClassicSolver.
|
|
3196
|
-
AbstractClassicSolver.
|
|
3197
|
-
AbstractClassicSolver.
|
|
3198
|
-
AbstractClassicSolver.
|
|
3199
|
-
AbstractClassicSolver.
|
|
3200
|
-
AbstractClassicSolver.
|
|
3201
|
-
ClassicExecutionContext.
|
|
3202
|
-
ClassicExecutionContext.
|
|
3203
|
-
ClassicExecutionContext.
|
|
3204
|
-
ClassicExecutionContext.
|
|
3205
|
-
ClassicExecutionContext.
|
|
3206
|
-
ClassicExecutionContext.
|
|
3207
|
-
ClassicExecutionContext.
|
|
3208
|
-
ClassicExecutionContext.
|
|
3209
|
-
ClassicExecutionContext.
|
|
3210
|
-
ClassicExecutionContext.
|
|
3211
|
-
ClassicSolver.
|
|
3212
|
-
ClassicSolver.
|
|
3213
|
-
ClassicSolver.
|
|
3214
|
-
ClassicSolver.
|
|
3215
|
-
ClassicSolver.
|
|
3216
|
-
ClassicSolver.
|
|
3217
|
-
ClassicSolver.
|
|
3218
|
-
ClassicSolver.
|
|
3219
|
-
ClassicSolver.
|
|
3220
|
-
ClassicSolver.
|
|
3221
|
-
ClassicSolver.
|
|
3222
|
-
ClassicSolver.
|
|
3223
|
-
ClassicSolver.
|
|
3224
|
-
ClassicSolverFactory.
|
|
3225
|
-
ClassicSolverFactory.
|
|
3226
|
-
ClassicSolverFactory.
|
|
3227
|
-
ClassicSolverFactory.
|
|
3228
|
-
ClassicSolverFactory.
|
|
3229
|
-
ClassicSolverFactory.
|
|
3230
|
-
ClassicSolverFactory.
|
|
3231
|
-
ClassicSolverFactory.
|
|
3232
|
-
ClassicSolverFactory.
|
|
3233
|
-
ClassicSolverFactory.
|
|
3234
|
-
ClassicSolverFactory.
|
|
3235
|
-
ClassicSolverFactory.
|
|
3236
|
-
ClassicSolverFactory.
|
|
3237
|
-
ClassicSolverFactory.
|
|
3238
|
-
ClassicSolverFactory.
|
|
3239
|
-
ClassicSolverFactory.
|
|
3240
|
-
ClassicSolverFactory.
|
|
3241
|
-
ClassicSolverFactory.
|
|
3242
|
-
MutableClassicSolver.
|
|
3243
|
-
MutableClassicSolver.
|
|
3244
|
-
MutableClassicSolver.
|
|
3245
|
-
MutableClassicSolver.
|
|
3246
|
-
MutableClassicSolver.
|
|
3247
|
-
MutableClassicSolver.
|
|
3248
|
-
MutableClassicSolver.
|
|
3249
|
-
MutableClassicSolver.
|
|
3250
|
-
MutableClassicSolver.
|
|
3251
|
-
MutableClassicSolver.
|
|
3252
|
-
MutableClassicSolver.
|
|
3253
|
-
MutableClassicSolver.
|
|
3254
|
-
MutableClassicSolver.
|
|
3255
|
-
MutableClassicSolver.
|
|
3256
|
-
MutableClassicSolver.
|
|
3257
|
-
MutableClassicSolver.
|
|
3258
|
-
MutableClassicSolver.
|
|
3259
|
-
MutableClassicSolver.
|
|
3260
|
-
MutableClassicSolver.
|
|
3261
|
-
AbstractState.
|
|
3262
|
-
AbstractState.
|
|
3263
|
-
AbstractState.
|
|
3264
|
-
|
|
3265
|
-
AbstractEndState.
|
|
3266
|
-
AbstractEndState.
|
|
3267
|
-
AbstractEndState.
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
StateBacktracking.
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
StateEnd.
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
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
|
+
protoOf(ClassicExecutionContext).createSolver = createSolver;
|
|
2921
|
+
protoOf(ClassicExecutionContext).createMutableSolver = createMutableSolver;
|
|
2922
|
+
protoOf(ClassicExecutionContext).update = update;
|
|
2923
|
+
protoOf(ClassicExecutionContext).f1u = get_standardInput;
|
|
2924
|
+
protoOf(ClassicExecutionContext).h1u = get_standardOutput;
|
|
2925
|
+
protoOf(ClassicExecutionContext).j1u = get_standardError;
|
|
2926
|
+
protoOf(ClassicExecutionContext).l1u = get_warnings;
|
|
2927
|
+
protoOf(ClassicExecutionContext).m1t = get_endTime;
|
|
2928
|
+
protoOf(ClassicExecutionContext).o1t = get_remainingTime;
|
|
2929
|
+
protoOf(ClassicExecutionContext).p1t = get_elapsedTime;
|
|
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;
|
|
2943
|
+
protoOf(ClassicSolverFactory).rawSolverOf = rawSolverOf;
|
|
2944
|
+
protoOf(ClassicSolverFactory).solverOf = solverOf;
|
|
2945
|
+
protoOf(ClassicSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2946
|
+
protoOf(ClassicSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2947
|
+
protoOf(ClassicSolverFactory).newBuilder = newBuilder;
|
|
2948
|
+
protoOf(ClassicSolverFactory).t1w = get_defaultRuntime;
|
|
2949
|
+
protoOf(ClassicSolverFactory).v1w = get_defaultUnificator;
|
|
2950
|
+
protoOf(ClassicSolverFactory).w1w = get_defaultFlags;
|
|
2951
|
+
protoOf(ClassicSolverFactory).z1w = get_defaultStaticKb;
|
|
2952
|
+
protoOf(ClassicSolverFactory).a1x = get_defaultDynamicKb;
|
|
2953
|
+
protoOf(ClassicSolverFactory).b1x = get_defaultInputChannel;
|
|
2954
|
+
protoOf(ClassicSolverFactory).c1x = get_defaultOutputChannel;
|
|
2955
|
+
protoOf(ClassicSolverFactory).d1x = get_defaultErrorChannel;
|
|
2956
|
+
protoOf(ClassicSolverFactory).e1x = get_defaultWarningsChannel;
|
|
2957
|
+
protoOf(ClassicSolverFactory).m1x = solverWithDefaultBuiltins;
|
|
2958
|
+
protoOf(ClassicSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2959
|
+
protoOf(ClassicSolverFactory).o1x = mutableSolverWithDefaultBuiltins;
|
|
2960
|
+
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
|
+
protoOf(MutableClassicSolver).loadStaticClauses = loadStaticClauses;
|
|
2975
|
+
protoOf(MutableClassicSolver).loadStaticClausesIterable = loadStaticClausesIterable;
|
|
2976
|
+
protoOf(MutableClassicSolver).loadStaticClausesSequence = loadStaticClausesSequence;
|
|
2977
|
+
protoOf(MutableClassicSolver).loadDynamicClauses = loadDynamicClauses;
|
|
2978
|
+
protoOf(MutableClassicSolver).loadDynamicClausesIterable = loadDynamicClausesIterable;
|
|
2979
|
+
protoOf(MutableClassicSolver).loadDynamicClausesSequence = loadDynamicClausesSequence;
|
|
2980
|
+
protoOf(AbstractState).z35 = get_isEndState;
|
|
2981
|
+
protoOf(AbstractState).asEndState = asEndState;
|
|
2982
|
+
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2983
|
+
protoOf(AbstractState).clone = clone;
|
|
2984
|
+
protoOf(AbstractEndState).c33 = get_hasOpenAlternatives;
|
|
2985
|
+
protoOf(AbstractEndState).z35 = get_isEndState_0;
|
|
2986
|
+
protoOf(AbstractEndState).a36 = asEndState_0;
|
|
2987
|
+
protoOf(AbstractEndState).castToEndState = castToEndState;
|
|
2988
|
+
protoOf(AbstractEndState).clone = clone;
|
|
2989
|
+
protoOf(StateBacktracking).clone = clone;
|
|
2990
|
+
protoOf(StateBacktracking).z35 = get_isEndState;
|
|
2991
|
+
protoOf(StateBacktracking).asEndState = asEndState;
|
|
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;
|
|
3306
3037
|
//endregion
|
|
3307
3038
|
//region block: exports
|
|
3308
3039
|
function $jsExportAll$(_) {
|
|
@@ -3311,10 +3042,7 @@
|
|
|
3311
3042
|
var $it$unibo$tuprolog = $it$unibo.tuprolog || ($it$unibo.tuprolog = {});
|
|
3312
3043
|
var $it$unibo$tuprolog$solve = $it$unibo$tuprolog.solve || ($it$unibo$tuprolog.solve = {});
|
|
3313
3044
|
var $it$unibo$tuprolog$solve$classic = $it$unibo$tuprolog$solve.classic || ($it$unibo$tuprolog$solve.classic = {});
|
|
3314
|
-
|
|
3315
|
-
configurable: true,
|
|
3316
|
-
get: ClassicSolverFactory_getInstance
|
|
3317
|
-
});
|
|
3045
|
+
defineProp($it$unibo$tuprolog$solve$classic, 'ClassicSolverFactory', ClassicSolverFactory_getInstance);
|
|
3318
3046
|
}
|
|
3319
3047
|
$jsExportAll$(_);
|
|
3320
3048
|
_.$jsExportAll$ = $jsExportAll$;
|
|
@@ -3324,6 +3052,6 @@
|
|
|
3324
3052
|
_.$_$.c = ClassicSolverFactory_getInstance;
|
|
3325
3053
|
//endregion
|
|
3326
3054
|
return _;
|
|
3327
|
-
}
|
|
3055
|
+
}));
|
|
3328
3056
|
|
|
3329
3057
|
//# sourceMappingURL=2p-solve-classic.js.map
|