@tuprolog/2p-full 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +204 -201
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +3668 -4128
- package/2p-core.js.map +1 -1
- package/2p-datalog.js +3 -3
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js +3 -3
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +3 -3
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +3 -3
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +3 -3
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +9 -19
- package/2p-full.js.map +1 -1
- package/2p-io-lib.js +6 -3321
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +6 -3435
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +6 -1266
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +6 -30
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +6 -126
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +6 -499
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js +3 -3
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js +3 -3
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1216 -1203
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js +3 -3
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +8 -8
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +2095 -2140
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1244 -1333
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5185 -6393
- package/2p-solve.js.map +1 -1
- package/2p-test-dsl.js +3 -3
- package/2p-test-dsl.js.map +1 -1
- package/2p-theory.js +2091 -1992
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +315 -300
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +625 -635
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +15 -0
- package/clikt-clikt-mordant.js.map +1 -0
- package/clikt-clikt.js +15 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +15 -0
- package/colormath-root-colormath.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +6829 -8585
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js +15 -0
- package/kotlin-kotlin-test.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +15 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +15 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kt-math.js +3143 -3508
- package/kt-math.js.map +1 -1
- package/mordant-mordant-omnibus.js +15 -0
- package/mordant-mordant-omnibus.js.map +1 -0
- package/mordant-mordant.js +19 -0
- package/mordant-mordant.js.map +1 -0
- package/package.json +2 -3
- package/88b0986a7186d029-atomicfu-js-ir.js +0 -15
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/clikt-clikt-js-ir.js +0 -6006
- package/clikt-clikt-js-ir.js.map +0 -1
- package/kotlin-kotlin-test-kotlin-test-js-ir.js +0 -15
- package/kotlin-kotlin-test-kotlin-test-js-ir.js.map +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +0 -15
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
package/2p-solve-classic.js
CHANGED
|
@@ -1,195 +1,200 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './2p-unify.js', './kotlin-kotlin-stdlib.js', './2p-solve.js', './2p-theory.js', './2p-utils.js', './2p-core.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./2p-unify.js'), require('./kotlin-kotlin-stdlib.js'), require('./2p-solve.js'), require('./2p-theory.js'), require('./2p-utils.js'), require('./2p-core.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['2p-unify'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-solve-classic'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof
|
|
10
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-solve-classic'.");
|
|
12
12
|
}
|
|
13
|
-
if (typeof
|
|
13
|
+
if (typeof globalThis['2p-solve'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to '2p-solve-classic'.");
|
|
15
15
|
}
|
|
16
|
-
if (typeof
|
|
16
|
+
if (typeof globalThis['2p-theory'] === 'undefined') {
|
|
17
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
18
|
}
|
|
19
|
-
if (typeof
|
|
19
|
+
if (typeof globalThis['2p-utils'] === 'undefined') {
|
|
20
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
21
|
}
|
|
22
|
-
if (typeof
|
|
22
|
+
if (typeof globalThis['2p-core'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-solve-classic'.");
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
globalThis['2p-solve-classic'] = factory(typeof globalThis['2p-solve-classic'] === 'undefined' ? {} : globalThis['2p-solve-classic'], globalThis['2p-unify'], globalThis['kotlin-kotlin-stdlib'], globalThis['2p-solve'], globalThis['2p-theory'], globalThis['2p-utils'], globalThis['2p-core']);
|
|
26
26
|
}
|
|
27
|
-
}(
|
|
27
|
+
}(function (_, kotlin_it_unibo_tuprolog_unify, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_core) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
30
|
var imul = Math.imul;
|
|
31
31
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
|
|
32
|
-
var VOID = kotlin_kotlin.$_$.
|
|
33
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
34
|
-
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
32
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
33
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
34
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.d1;
|
|
35
35
|
var Companion_instance_0 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
36
36
|
var Companion_instance_1 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
37
|
-
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
38
|
-
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
39
|
-
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
40
|
-
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
41
|
-
var toString = kotlin_kotlin.$_$.
|
|
42
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
43
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
44
|
-
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
45
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
-
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.
|
|
48
|
-
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
49
|
-
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var sequence = kotlin_kotlin.$_$.
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
37
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
38
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
39
|
+
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
40
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.v;
|
|
41
|
+
var toString = kotlin_kotlin.$_$.n6;
|
|
42
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
43
|
+
var Unit_instance = kotlin_kotlin.$_$.k1;
|
|
44
|
+
var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.u1;
|
|
45
|
+
var protoOf = kotlin_kotlin.$_$.k6;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.ea;
|
|
47
|
+
var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.ma;
|
|
48
|
+
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.c4;
|
|
49
|
+
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.e4;
|
|
50
|
+
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.a4;
|
|
51
|
+
var asSequence = kotlin_kotlin.$_$.h7;
|
|
52
|
+
var initMetadataForClass = kotlin_kotlin.$_$.t5;
|
|
53
|
+
var ensureNotNull = kotlin_kotlin.$_$.ha;
|
|
54
|
+
var fromInt = kotlin_kotlin.$_$.s4;
|
|
55
|
+
var add = kotlin_kotlin.$_$.n4;
|
|
56
|
+
var hashCode = kotlin_kotlin.$_$.s5;
|
|
57
|
+
var equals = kotlin_kotlin.$_$.m5;
|
|
58
|
+
var CoroutineImpl = kotlin_kotlin.$_$.k4;
|
|
59
|
+
var SequenceScope = kotlin_kotlin.$_$.d7;
|
|
60
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.j4;
|
|
61
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.x5;
|
|
62
|
+
var sequence = kotlin_kotlin.$_$.k8;
|
|
63
|
+
var toString_0 = kotlin_kotlin.$_$.oa;
|
|
64
|
+
var asSequence_0 = kotlin_kotlin.$_$.w1;
|
|
65
|
+
var emptySequence = kotlin_kotlin.$_$.m7;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.g8;
|
|
67
|
+
var KProperty1 = kotlin_kotlin.$_$.c7;
|
|
68
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.q5;
|
|
69
|
+
var flatMap = kotlin_kotlin.$_$.t7;
|
|
70
|
+
var distinct = kotlin_kotlin.$_$.k7;
|
|
68
71
|
var cached = kotlin_it_unibo_tuprolog_utils.$_$.r;
|
|
69
|
-
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
70
|
-
var filter = kotlin_kotlin.$_$.
|
|
71
|
-
var map = kotlin_kotlin.$_$.
|
|
72
|
-
var toList = kotlin_kotlin.$_$.
|
|
73
|
-
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
74
|
-
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
75
|
-
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
72
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
73
|
+
var filter = kotlin_kotlin.$_$.q7;
|
|
74
|
+
var map = kotlin_kotlin.$_$.c8;
|
|
75
|
+
var toList = kotlin_kotlin.$_$.q8;
|
|
76
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
77
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
78
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
76
79
|
var Companion_instance_7 = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
88
|
-
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
89
|
-
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
90
|
-
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
91
|
-
var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
92
|
-
var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
93
|
-
var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
94
|
-
var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
95
|
-
var
|
|
96
|
-
var
|
|
97
|
-
var
|
|
98
|
-
var
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
var
|
|
105
|
-
var
|
|
106
|
-
var
|
|
107
|
-
var
|
|
108
|
-
var
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
var
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
var
|
|
124
|
-
var
|
|
125
|
-
var
|
|
126
|
-
var
|
|
127
|
-
var
|
|
128
|
-
var
|
|
129
|
-
var
|
|
130
|
-
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
131
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
132
|
-
var
|
|
133
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
134
|
-
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.
|
|
135
|
-
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
136
|
-
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
137
|
-
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
80
|
+
var emptySet = kotlin_kotlin.$_$.j2;
|
|
81
|
+
var lazy = kotlin_kotlin.$_$.ja;
|
|
82
|
+
var contains = kotlin_kotlin.$_$.i7;
|
|
83
|
+
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.c;
|
|
84
|
+
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.b;
|
|
85
|
+
var update = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
86
|
+
var apply = kotlin_it_unibo_tuprolog_solve.$_$.l2;
|
|
87
|
+
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
88
|
+
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.m2;
|
|
89
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.n5;
|
|
90
|
+
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
91
|
+
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.p2;
|
|
92
|
+
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.n2;
|
|
93
|
+
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.q2;
|
|
94
|
+
var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.i2;
|
|
95
|
+
var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
96
|
+
var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
97
|
+
var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.r2;
|
|
98
|
+
var objectCreate = kotlin_kotlin.$_$.j6;
|
|
99
|
+
var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
100
|
+
var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.i;
|
|
101
|
+
var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
102
|
+
var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.g;
|
|
103
|
+
var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.w3;
|
|
104
|
+
var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.r3;
|
|
105
|
+
var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.t3;
|
|
106
|
+
var get_defaultFlags = kotlin_it_unibo_tuprolog_solve.$_$.o3;
|
|
107
|
+
var get_defaultStaticKb = kotlin_it_unibo_tuprolog_solve.$_$.s3;
|
|
108
|
+
var get_defaultDynamicKb = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
109
|
+
var get_defaultInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.p3;
|
|
110
|
+
var get_defaultOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.q3;
|
|
111
|
+
var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
112
|
+
var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.u3;
|
|
113
|
+
var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.x3;
|
|
114
|
+
var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
115
|
+
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.v3;
|
|
116
|
+
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
117
|
+
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.y3;
|
|
118
|
+
var initMetadataForObject = kotlin_kotlin.$_$.y5;
|
|
119
|
+
var defineProp = kotlin_kotlin.$_$.l5;
|
|
120
|
+
var listOf = kotlin_kotlin.$_$.x2;
|
|
121
|
+
var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.d4;
|
|
122
|
+
var to = kotlin_kotlin.$_$.pa;
|
|
123
|
+
var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.v2;
|
|
124
|
+
var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
125
|
+
var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
126
|
+
var loadDynamicClauses = kotlin_it_unibo_tuprolog_solve.$_$.u2;
|
|
127
|
+
var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
128
|
+
var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
129
|
+
var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.y2;
|
|
130
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.u5;
|
|
131
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
132
|
+
var subtract = kotlin_kotlin.$_$.a5;
|
|
133
|
+
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
134
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
135
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.w5;
|
|
136
|
+
var getKClass = kotlin_kotlin.$_$.b7;
|
|
137
|
+
var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
138
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
139
|
+
var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.p1;
|
|
140
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
138
141
|
var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.h1;
|
|
139
|
-
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
140
|
-
var toSet = kotlin_kotlin.$_$.
|
|
141
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
142
|
-
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
143
|
-
var drop = kotlin_kotlin.$_$.
|
|
144
|
-
var first = kotlin_kotlin.$_$.
|
|
145
|
-
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.
|
|
146
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
147
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
148
|
-
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
149
|
-
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
150
|
-
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
151
|
-
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
152
|
-
var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
142
|
+
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
143
|
+
var toSet = kotlin_kotlin.$_$.s8;
|
|
144
|
+
var plus_1 = kotlin_kotlin.$_$.n3;
|
|
145
|
+
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
146
|
+
var drop = kotlin_kotlin.$_$.l7;
|
|
147
|
+
var first = kotlin_kotlin.$_$.s7;
|
|
148
|
+
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.q1;
|
|
149
|
+
var isInterface = kotlin_kotlin.$_$.c6;
|
|
150
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
151
|
+
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.s1;
|
|
152
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
153
|
+
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.b4;
|
|
154
|
+
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
155
|
+
var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a;
|
|
153
156
|
var cursor = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
154
|
-
var Companion_instance_11 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
155
|
-
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.
|
|
156
|
-
var setOf = kotlin_kotlin.$_$.
|
|
157
|
-
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
158
|
-
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
159
|
-
var Companion_instance_12 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
160
|
-
var contains_0 = kotlin_kotlin.$_$.
|
|
161
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
162
|
-
var any = kotlin_kotlin.$_$.
|
|
163
|
-
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
157
|
+
var Companion_instance_11 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
158
|
+
var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.t2;
|
|
159
|
+
var setOf = kotlin_kotlin.$_$.t3;
|
|
160
|
+
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
161
|
+
var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.m;
|
|
162
|
+
var Companion_instance_12 = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
163
|
+
var contains_0 = kotlin_kotlin.$_$.a2;
|
|
164
|
+
var firstOrNull = kotlin_kotlin.$_$.r7;
|
|
165
|
+
var any = kotlin_kotlin.$_$.f7;
|
|
166
|
+
var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
164
167
|
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.q;
|
|
165
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
166
|
-
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
var
|
|
170
|
-
var
|
|
171
|
-
var
|
|
172
|
-
var
|
|
173
|
-
var
|
|
174
|
-
var
|
|
175
|
-
var
|
|
176
|
-
var
|
|
177
|
-
var
|
|
178
|
-
var
|
|
179
|
-
var
|
|
168
|
+
var sequenceOf = kotlin_kotlin.$_$.i8;
|
|
169
|
+
var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.g2;
|
|
170
|
+
var sequenceOf_0 = kotlin_kotlin.$_$.j8;
|
|
171
|
+
var Request = kotlin_it_unibo_tuprolog_solve.$_$.a2;
|
|
172
|
+
var get_ONE = kotlin_kotlin.$_$.m4;
|
|
173
|
+
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.v1;
|
|
174
|
+
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m1;
|
|
175
|
+
var listOf_0 = kotlin_kotlin.$_$.y2;
|
|
176
|
+
var Struct = kotlin_it_unibo_tuprolog_core.$_$.p1;
|
|
177
|
+
var Companion_instance_13 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
178
|
+
var Companion_instance_14 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
|
|
179
|
+
var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
180
|
+
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
181
|
+
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.f2;
|
|
182
|
+
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
183
|
+
var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
184
|
+
var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
180
185
|
//endregion
|
|
181
186
|
//region block: pre-declaration
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
187
|
+
initMetadataForClass(AbstractClassicSolver, 'AbstractClassicSolver', VOID, AbstractSolver);
|
|
188
|
+
initMetadataForClass(ChoicePointContext, 'ChoicePointContext');
|
|
189
|
+
initMetadataForClass(Primitives, 'Primitives', VOID, ChoicePointContext);
|
|
190
|
+
initMetadataForClass(Rules, 'Rules', VOID, ChoicePointContext);
|
|
191
|
+
initMetadataForLambda(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn, CoroutineImpl, VOID, [1]);
|
|
192
|
+
initMetadataForLambda(ClassicExecutionContext$pathToRoot$slambda, CoroutineImpl, VOID, [1]);
|
|
193
|
+
initMetadataForClass(ClassicExecutionContext, 'ClassicExecutionContext', VOID, VOID, [ExecutionContext]);
|
|
194
|
+
initMetadataForClass(ClassicSolver, 'ClassicSolver', VOID, AbstractClassicSolver);
|
|
195
|
+
initMetadataForObject(ClassicSolverFactory, 'ClassicSolverFactory', VOID, VOID, [SolverFactory]);
|
|
196
|
+
initMetadataForClass(MutableClassicSolver, 'MutableClassicSolver', VOID, ClassicSolver, [ClassicSolver, MutableSolver]);
|
|
197
|
+
initMetadataForCompanion(Companion);
|
|
193
198
|
function get_isEndState() {
|
|
194
199
|
return false;
|
|
195
200
|
}
|
|
@@ -200,19 +205,20 @@
|
|
|
200
205
|
var tmp0_elvis_lhs = this.asEndState();
|
|
201
206
|
var tmp;
|
|
202
207
|
if (tmp0_elvis_lhs == null) {
|
|
203
|
-
throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).
|
|
208
|
+
throw ClassCastException_init_$Create$('Cannot cast ' + toString(this) + ' to ' + getKClass(EndState).b9());
|
|
204
209
|
} else {
|
|
205
210
|
tmp = tmp0_elvis_lhs;
|
|
206
211
|
}
|
|
207
212
|
return tmp;
|
|
208
213
|
}
|
|
209
214
|
function clone(context, $super) {
|
|
210
|
-
context = context === VOID ? this.
|
|
211
|
-
return $super === VOID ? this.
|
|
215
|
+
context = context === VOID ? this.h8() : context;
|
|
216
|
+
return $super === VOID ? this.e30(context) : $super.e30.call(this, context);
|
|
212
217
|
}
|
|
213
|
-
|
|
218
|
+
initMetadataForInterface(State, 'State');
|
|
219
|
+
initMetadataForClass(AbstractState, 'AbstractState', VOID, VOID, [State]);
|
|
214
220
|
function get_hasOpenAlternatives() {
|
|
215
|
-
return this.
|
|
221
|
+
return this.f2f().n1t() && this.h8().z2w();
|
|
216
222
|
}
|
|
217
223
|
function get_isEndState_0() {
|
|
218
224
|
return true;
|
|
@@ -221,40 +227,39 @@
|
|
|
221
227
|
return this;
|
|
222
228
|
}
|
|
223
229
|
function asEndState_1() {
|
|
224
|
-
return this.
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
230
|
+
return this.d30();
|
|
231
|
+
}
|
|
232
|
+
initMetadataForInterface(EndState, 'EndState', VOID, VOID, [State]);
|
|
233
|
+
initMetadataForClass(AbstractEndState, 'AbstractEndState', VOID, AbstractState, [AbstractState, EndState]);
|
|
234
|
+
initMetadataForClass(StateBacktracking, 'StateBacktracking', VOID, AbstractState);
|
|
235
|
+
initMetadataForClass(StateEnd, 'StateEnd', VOID, AbstractEndState);
|
|
236
|
+
initMetadataForClass(StateException, 'StateException', VOID, AbstractState, [AbstractState, State]);
|
|
237
|
+
initMetadataForClass(StateGoalSelection, 'StateGoalSelection', VOID, AbstractState);
|
|
238
|
+
initMetadataForClass(StateHalt, 'StateHalt', VOID, AbstractEndState, [AbstractEndState, State]);
|
|
239
|
+
initMetadataForClass(StateInit, 'StateInit', VOID, AbstractState);
|
|
240
|
+
initMetadataForClass(StatePrimitiveExecution, 'StatePrimitiveExecution', VOID, AbstractState);
|
|
241
|
+
initMetadataForClass(StatePrimitiveSelection, 'StatePrimitiveSelection', VOID, AbstractState);
|
|
242
|
+
initMetadataForClass(StateRuleExecution, 'StateRuleExecution', VOID, AbstractState);
|
|
243
|
+
initMetadataForClass(CutLimit, 'CutLimit');
|
|
244
|
+
initMetadataForObject(None, 'None', VOID, CutLimit);
|
|
245
|
+
initMetadataForClass(Actual, 'Actual', VOID, CutLimit);
|
|
246
|
+
initMetadataForCompanion(Companion_0);
|
|
247
|
+
initMetadataForClass(StateRuleSelection, 'StateRuleSelection', VOID, AbstractState);
|
|
248
|
+
initMetadataForClass(AbstractSolutionIterator, 'AbstractSolutionIterator');
|
|
249
|
+
initMetadataForClass(SimpleSolutionIterator, 'SimpleSolutionIterator', VOID, AbstractSolutionIterator);
|
|
250
|
+
initMetadataForObject(DefaultBuiltins, 'DefaultBuiltins', VOID, ExtensionLibrary);
|
|
251
|
+
initMetadataForObject(Throw, 'Throw', VOID, UnaryPredicate);
|
|
252
|
+
initMetadataForObject(Call, 'Call', VOID, RuleWrapper);
|
|
253
|
+
initMetadataForObject(Catch, 'Catch', VOID, RuleWrapper);
|
|
254
|
+
initMetadataForObject(Comma, 'Comma', VOID, RuleWrapper);
|
|
255
|
+
initMetadataForObject(Cut, 'Cut', VOID, RuleWrapper);
|
|
256
|
+
initMetadataForClass(NegationAsFailure, 'NegationAsFailure', VOID, RuleWrapper);
|
|
257
|
+
initMetadataForObject(Fail, 'Fail', VOID, NegationAsFailure);
|
|
258
|
+
initMetadataForObject(Success, 'Success', VOID, NegationAsFailure);
|
|
259
|
+
initMetadataForCompanion(Companion_1);
|
|
255
260
|
//endregion
|
|
256
261
|
function AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
257
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
262
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
258
263
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
259
264
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
260
265
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -264,31 +269,29 @@
|
|
|
264
269
|
stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
|
|
265
270
|
warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
|
|
266
271
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
267
|
-
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.
|
|
272
|
+
AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.j1v(stdIn), Companion_instance_5.m1v(stdOut, stdErr, warnings), trustKb);
|
|
268
273
|
return $this;
|
|
269
274
|
}
|
|
270
275
|
function updateCurrentContextAfterStateTransition($this, source, destination, index) {
|
|
271
276
|
// Inline function 'kotlin.require' call
|
|
272
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
273
277
|
// Inline function 'kotlin.require' call
|
|
274
|
-
|
|
275
|
-
if (!destination.uc().s33_1.equals(index)) {
|
|
276
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
278
|
+
if (!(destination.h8().v2v_1 === index)) {
|
|
277
279
|
var message = 'Failed requirement.';
|
|
278
280
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
279
281
|
}
|
|
280
|
-
$this.
|
|
282
|
+
$this.c2w(destination.h8());
|
|
281
283
|
}
|
|
282
|
-
function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(
|
|
283
|
-
var l = function (
|
|
284
|
-
|
|
284
|
+
function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(p0) {
|
|
285
|
+
var l = function (_this__u8e3s4, p0_0, p1) {
|
|
286
|
+
var tmp0 = p0;
|
|
287
|
+
updateCurrentContextAfterStateTransition(tmp0, _this__u8e3s4, p0_0, p1);
|
|
285
288
|
return Unit_instance;
|
|
286
289
|
};
|
|
287
290
|
l.callableName = 'updateCurrentContextAfterStateTransition';
|
|
288
291
|
return l;
|
|
289
292
|
}
|
|
290
293
|
function AbstractClassicSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
|
|
291
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
294
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
292
295
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
293
296
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
294
297
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -298,97 +301,101 @@
|
|
|
298
301
|
trustKb = trustKb === VOID ? false : trustKb;
|
|
299
302
|
AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
|
|
300
303
|
}
|
|
301
|
-
protoOf(AbstractClassicSolver).
|
|
302
|
-
this.
|
|
304
|
+
protoOf(AbstractClassicSolver).c2w = function (_set____db54di) {
|
|
305
|
+
this.b2w_1 = _set____db54di;
|
|
303
306
|
};
|
|
304
|
-
protoOf(AbstractClassicSolver).
|
|
305
|
-
return this.
|
|
307
|
+
protoOf(AbstractClassicSolver).c28 = function (_set____db54di) {
|
|
308
|
+
return this.c2w(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
|
|
306
309
|
};
|
|
307
|
-
protoOf(AbstractClassicSolver).
|
|
308
|
-
var tmp = this.
|
|
310
|
+
protoOf(AbstractClassicSolver).a28 = function () {
|
|
311
|
+
var tmp = this.b2w_1;
|
|
309
312
|
if (!(tmp == null))
|
|
310
313
|
return tmp;
|
|
311
314
|
else {
|
|
312
315
|
throwUninitializedPropertyAccessException('currentContext');
|
|
313
316
|
}
|
|
314
317
|
};
|
|
315
|
-
protoOf(AbstractClassicSolver).
|
|
316
|
-
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_instance_0.empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_instance_1.empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID,
|
|
317
|
-
};
|
|
318
|
-
protoOf(AbstractClassicSolver).
|
|
319
|
-
var tmp0_unificator = this.
|
|
320
|
-
var tmp1_libraries = this.
|
|
321
|
-
var tmp2_flags = this.
|
|
322
|
-
var tmp3_staticKb = this.
|
|
323
|
-
var tmp4_dynamicKb = this.
|
|
324
|
-
var tmp5_operators = this.
|
|
325
|
-
var tmp6_inputChannels = this.
|
|
326
|
-
var tmp7_outputChannels = this.
|
|
327
|
-
var tmp8_customData = this.
|
|
318
|
+
protoOf(AbstractClassicSolver).b28 = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
|
|
319
|
+
return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_instance_0.empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_instance_1.empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID, 0n);
|
|
320
|
+
};
|
|
321
|
+
protoOf(AbstractClassicSolver).i28 = function (goal, options) {
|
|
322
|
+
var tmp0_unificator = this.n1i();
|
|
323
|
+
var tmp1_libraries = this.k1s();
|
|
324
|
+
var tmp2_flags = this.l1s();
|
|
325
|
+
var tmp3_staticKb = this.m1s().toImmutableTheory();
|
|
326
|
+
var tmp4_dynamicKb = this.n1s().toMutableTheory();
|
|
327
|
+
var tmp5_operators = this.t1s();
|
|
328
|
+
var tmp6_inputChannels = this.o1s();
|
|
329
|
+
var tmp7_outputChannels = this.p1s();
|
|
330
|
+
var tmp8_customData = this.a28().k2v_1;
|
|
328
331
|
var tmp9_startTime = currentTimeInstant();
|
|
329
|
-
var tmp10_maxDuration = options.
|
|
330
|
-
this.
|
|
331
|
-
var tmp = new StateInit(this.
|
|
332
|
-
return asSequence(this.
|
|
332
|
+
var tmp10_maxDuration = options.r1u();
|
|
333
|
+
this.c2w(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));
|
|
334
|
+
var tmp = new StateInit(this.a28());
|
|
335
|
+
return asSequence(this.d2w(tmp, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
|
|
336
|
+
};
|
|
337
|
+
protoOf(AbstractClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
338
|
+
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof AbstractClassicSolver) ? $super : THROW_CCE());
|
|
333
339
|
};
|
|
334
340
|
function Primitives(alternatives, executionContext, parent, depth) {
|
|
335
341
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
342
|
+
this.i2w_1 = alternatives;
|
|
343
|
+
this.j2w_1 = executionContext;
|
|
344
|
+
this.k2w_1 = parent;
|
|
345
|
+
this.l2w_1 = depth;
|
|
340
346
|
}
|
|
341
|
-
protoOf(Primitives).
|
|
342
|
-
return this.
|
|
347
|
+
protoOf(Primitives).m2w = function () {
|
|
348
|
+
return this.i2w_1;
|
|
343
349
|
};
|
|
344
|
-
protoOf(Primitives).
|
|
345
|
-
return this.
|
|
350
|
+
protoOf(Primitives).n2w = function () {
|
|
351
|
+
return this.j2w_1;
|
|
346
352
|
};
|
|
347
|
-
protoOf(Primitives).
|
|
348
|
-
return this.
|
|
353
|
+
protoOf(Primitives).o2w = function () {
|
|
354
|
+
return this.k2w_1;
|
|
349
355
|
};
|
|
350
|
-
protoOf(Primitives).
|
|
351
|
-
return this.
|
|
356
|
+
protoOf(Primitives).p2w = function () {
|
|
357
|
+
return this.l2w_1;
|
|
352
358
|
};
|
|
353
359
|
protoOf(Primitives).toString = function () {
|
|
354
360
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
355
361
|
};
|
|
356
|
-
protoOf(Primitives).
|
|
362
|
+
protoOf(Primitives).q2w = function () {
|
|
357
363
|
return 'Primitives';
|
|
358
364
|
};
|
|
359
|
-
protoOf(Primitives).
|
|
360
|
-
var tmp0_$this = ensureNotNull(this.
|
|
361
|
-
var tmp1_primitives = this.
|
|
365
|
+
protoOf(Primitives).r2w = function (context) {
|
|
366
|
+
var tmp0_$this = ensureNotNull(this.j2w_1);
|
|
367
|
+
var tmp1_primitives = this.i2w_1;
|
|
362
368
|
// Inline function 'kotlin.Long.plus' call
|
|
363
|
-
var
|
|
364
|
-
var
|
|
365
|
-
var
|
|
366
|
-
var
|
|
367
|
-
var
|
|
368
|
-
var
|
|
369
|
-
var
|
|
370
|
-
var
|
|
371
|
-
var
|
|
372
|
-
var
|
|
373
|
-
var
|
|
374
|
-
var
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
369
|
+
var this_0 = context.v2v_1;
|
|
370
|
+
var tmp2_step = add(this_0, fromInt(1));
|
|
371
|
+
var tmp3_startTime = context.q2v_1;
|
|
372
|
+
var tmp4_flags = context.e2v_1;
|
|
373
|
+
var tmp5_dynamicKb = context.g2v_1;
|
|
374
|
+
var tmp6_staticKb = context.f2v_1;
|
|
375
|
+
var tmp7_operators = context.h2v_1;
|
|
376
|
+
var tmp8_inputChannels = context.i2v_1;
|
|
377
|
+
var tmp9_outputChannels = context.j2v_1;
|
|
378
|
+
var tmp10_libraries = context.d2v_1;
|
|
379
|
+
var tmp11_customData = context.k2v_1.discardEphemeral();
|
|
380
|
+
var tempContext = tmp0_$this.s2w(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);
|
|
381
|
+
var nextChoicePointContext = this.t2w(this.i2w_1.jp(), tempContext);
|
|
382
|
+
return tempContext.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
383
|
+
};
|
|
384
|
+
protoOf(Primitives).u2w = function (alternatives, executionContext, parent, depth) {
|
|
378
385
|
return new Primitives(alternatives, executionContext, parent, depth);
|
|
379
386
|
};
|
|
380
|
-
protoOf(Primitives).
|
|
381
|
-
alternatives = alternatives === VOID ? this.
|
|
382
|
-
executionContext = executionContext === VOID ? this.
|
|
383
|
-
parent = parent === VOID ? this.
|
|
384
|
-
depth = depth === VOID ? this.
|
|
385
|
-
return $super === VOID ? this.
|
|
387
|
+
protoOf(Primitives).t2w = function (alternatives, executionContext, parent, depth, $super) {
|
|
388
|
+
alternatives = alternatives === VOID ? this.i2w_1 : alternatives;
|
|
389
|
+
executionContext = executionContext === VOID ? this.j2w_1 : executionContext;
|
|
390
|
+
parent = parent === VOID ? this.k2w_1 : parent;
|
|
391
|
+
depth = depth === VOID ? this.l2w_1 : depth;
|
|
392
|
+
return $super === VOID ? this.u2w(alternatives, executionContext, parent, depth) : $super.u2w.call(this, alternatives, executionContext, parent, depth);
|
|
386
393
|
};
|
|
387
394
|
protoOf(Primitives).hashCode = function () {
|
|
388
|
-
var result = hashCode(this.
|
|
389
|
-
result = imul(result, 31) + (this.
|
|
390
|
-
result = imul(result, 31) + (this.
|
|
391
|
-
result = imul(result, 31) + this.
|
|
395
|
+
var result = hashCode(this.i2w_1);
|
|
396
|
+
result = imul(result, 31) + (this.j2w_1 == null ? 0 : this.j2w_1.hashCode()) | 0;
|
|
397
|
+
result = imul(result, 31) + (this.k2w_1 == null ? 0 : hashCode(this.k2w_1)) | 0;
|
|
398
|
+
result = imul(result, 31) + this.l2w_1 | 0;
|
|
392
399
|
return result;
|
|
393
400
|
};
|
|
394
401
|
protoOf(Primitives).equals = function (other) {
|
|
@@ -396,75 +403,75 @@
|
|
|
396
403
|
return true;
|
|
397
404
|
if (!(other instanceof Primitives))
|
|
398
405
|
return false;
|
|
399
|
-
|
|
400
|
-
if (!equals(this.f34_1, tmp0_other_with_cast.f34_1))
|
|
406
|
+
if (!equals(this.i2w_1, other.i2w_1))
|
|
401
407
|
return false;
|
|
402
|
-
if (!equals(this.
|
|
408
|
+
if (!equals(this.j2w_1, other.j2w_1))
|
|
403
409
|
return false;
|
|
404
|
-
if (!equals(this.
|
|
410
|
+
if (!equals(this.k2w_1, other.k2w_1))
|
|
405
411
|
return false;
|
|
406
|
-
if (!(this.
|
|
412
|
+
if (!(this.l2w_1 === other.l2w_1))
|
|
407
413
|
return false;
|
|
408
414
|
return true;
|
|
409
415
|
};
|
|
410
416
|
function Rules(alternatives, executionContext, parent, depth) {
|
|
411
417
|
ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
418
|
+
this.h2x_1 = alternatives;
|
|
419
|
+
this.i2x_1 = executionContext;
|
|
420
|
+
this.j2x_1 = parent;
|
|
421
|
+
this.k2x_1 = depth;
|
|
416
422
|
}
|
|
417
|
-
protoOf(Rules).
|
|
418
|
-
return this.
|
|
423
|
+
protoOf(Rules).m2w = function () {
|
|
424
|
+
return this.h2x_1;
|
|
419
425
|
};
|
|
420
|
-
protoOf(Rules).
|
|
421
|
-
return this.
|
|
426
|
+
protoOf(Rules).n2w = function () {
|
|
427
|
+
return this.i2x_1;
|
|
422
428
|
};
|
|
423
|
-
protoOf(Rules).
|
|
424
|
-
return this.
|
|
429
|
+
protoOf(Rules).o2w = function () {
|
|
430
|
+
return this.j2x_1;
|
|
425
431
|
};
|
|
426
|
-
protoOf(Rules).
|
|
427
|
-
return this.
|
|
432
|
+
protoOf(Rules).p2w = function () {
|
|
433
|
+
return this.k2x_1;
|
|
428
434
|
};
|
|
429
435
|
protoOf(Rules).toString = function () {
|
|
430
436
|
return protoOf(ChoicePointContext).toString.call(this);
|
|
431
437
|
};
|
|
432
|
-
protoOf(Rules).
|
|
438
|
+
protoOf(Rules).q2w = function () {
|
|
433
439
|
return 'Rules';
|
|
434
440
|
};
|
|
435
|
-
protoOf(Rules).
|
|
436
|
-
var tmp0_$this = ensureNotNull(this.
|
|
437
|
-
var tmp1_rules = this.
|
|
441
|
+
protoOf(Rules).r2w = function (context) {
|
|
442
|
+
var tmp0_$this = ensureNotNull(this.i2x_1);
|
|
443
|
+
var tmp1_rules = this.h2x_1;
|
|
438
444
|
// Inline function 'kotlin.Long.plus' call
|
|
439
|
-
var
|
|
440
|
-
var
|
|
441
|
-
var
|
|
442
|
-
var
|
|
443
|
-
var
|
|
444
|
-
var
|
|
445
|
-
var
|
|
446
|
-
var
|
|
447
|
-
var
|
|
448
|
-
var
|
|
449
|
-
var
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
445
|
+
var this_0 = context.v2v_1;
|
|
446
|
+
var tmp2_step = add(this_0, fromInt(1));
|
|
447
|
+
var tmp3_startTime = context.q2v_1;
|
|
448
|
+
var tmp4_flags = context.e2v_1;
|
|
449
|
+
var tmp5_dynamicKb = context.g2v_1;
|
|
450
|
+
var tmp6_staticKb = context.f2v_1;
|
|
451
|
+
var tmp7_operators = context.h2v_1;
|
|
452
|
+
var tmp8_inputChannels = context.i2v_1;
|
|
453
|
+
var tmp9_outputChannels = context.j2v_1;
|
|
454
|
+
var tmp10_libraries = context.d2v_1;
|
|
455
|
+
var tmp11_customData = context.k2v_1.discardEphemeral();
|
|
456
|
+
var tempContext = tmp0_$this.s2w(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);
|
|
457
|
+
var nextChoicePointContext = this.l2x(this.h2x_1.jp(), tempContext);
|
|
458
|
+
return tempContext.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
|
|
459
|
+
};
|
|
460
|
+
protoOf(Rules).m2x = function (alternatives, executionContext, parent, depth) {
|
|
454
461
|
return new Rules(alternatives, executionContext, parent, depth);
|
|
455
462
|
};
|
|
456
|
-
protoOf(Rules).
|
|
457
|
-
alternatives = alternatives === VOID ? this.
|
|
458
|
-
executionContext = executionContext === VOID ? this.
|
|
459
|
-
parent = parent === VOID ? this.
|
|
460
|
-
depth = depth === VOID ? this.
|
|
461
|
-
return $super === VOID ? this.
|
|
463
|
+
protoOf(Rules).l2x = function (alternatives, executionContext, parent, depth, $super) {
|
|
464
|
+
alternatives = alternatives === VOID ? this.h2x_1 : alternatives;
|
|
465
|
+
executionContext = executionContext === VOID ? this.i2x_1 : executionContext;
|
|
466
|
+
parent = parent === VOID ? this.j2x_1 : parent;
|
|
467
|
+
depth = depth === VOID ? this.k2x_1 : depth;
|
|
468
|
+
return $super === VOID ? this.m2x(alternatives, executionContext, parent, depth) : $super.m2x.call(this, alternatives, executionContext, parent, depth);
|
|
462
469
|
};
|
|
463
470
|
protoOf(Rules).hashCode = function () {
|
|
464
|
-
var result = hashCode(this.
|
|
465
|
-
result = imul(result, 31) + (this.
|
|
466
|
-
result = imul(result, 31) + (this.
|
|
467
|
-
result = imul(result, 31) + this.
|
|
471
|
+
var result = hashCode(this.h2x_1);
|
|
472
|
+
result = imul(result, 31) + (this.i2x_1 == null ? 0 : this.i2x_1.hashCode()) | 0;
|
|
473
|
+
result = imul(result, 31) + (this.j2x_1 == null ? 0 : hashCode(this.j2x_1)) | 0;
|
|
474
|
+
result = imul(result, 31) + this.k2x_1 | 0;
|
|
468
475
|
return result;
|
|
469
476
|
};
|
|
470
477
|
protoOf(Rules).equals = function (other) {
|
|
@@ -472,115 +479,114 @@
|
|
|
472
479
|
return true;
|
|
473
480
|
if (!(other instanceof Rules))
|
|
474
481
|
return false;
|
|
475
|
-
|
|
476
|
-
if (!equals(this.e35_1, tmp0_other_with_cast.e35_1))
|
|
482
|
+
if (!equals(this.h2x_1, other.h2x_1))
|
|
477
483
|
return false;
|
|
478
|
-
if (!equals(this.
|
|
484
|
+
if (!equals(this.i2x_1, other.i2x_1))
|
|
479
485
|
return false;
|
|
480
|
-
if (!equals(this.
|
|
486
|
+
if (!equals(this.j2x_1, other.j2x_1))
|
|
481
487
|
return false;
|
|
482
|
-
if (!(this.
|
|
488
|
+
if (!(this.k2x_1 === other.k2x_1))
|
|
483
489
|
return false;
|
|
484
490
|
return true;
|
|
485
491
|
};
|
|
486
492
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
|
|
487
|
-
this.
|
|
493
|
+
this.v2x_1 = this$0;
|
|
488
494
|
CoroutineImpl.call(this, resultContinuation);
|
|
489
495
|
}
|
|
490
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
491
|
-
var tmp = this.
|
|
492
|
-
tmp.
|
|
493
|
-
tmp.
|
|
494
|
-
return tmp.
|
|
496
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).y2x = function ($this$sequence, $completion) {
|
|
497
|
+
var tmp = this.z2x($this$sequence, $completion);
|
|
498
|
+
tmp.d8_1 = Unit_instance;
|
|
499
|
+
tmp.e8_1 = null;
|
|
500
|
+
return tmp.j8();
|
|
495
501
|
};
|
|
496
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
497
|
-
return this.
|
|
502
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).a9 = function (p1, $completion) {
|
|
503
|
+
return this.y2x(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
498
504
|
};
|
|
499
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
500
|
-
var suspendResult = this.
|
|
505
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).j8 = function () {
|
|
506
|
+
var suspendResult = this.d8_1;
|
|
501
507
|
$sm: do
|
|
502
508
|
try {
|
|
503
|
-
var tmp = this.
|
|
509
|
+
var tmp = this.b8_1;
|
|
504
510
|
switch (tmp) {
|
|
505
511
|
case 0:
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
512
|
+
this.c8_1 = 4;
|
|
513
|
+
this.x2x_1 = this.v2x_1;
|
|
514
|
+
this.b8_1 = 1;
|
|
509
515
|
continue $sm;
|
|
510
516
|
case 1:
|
|
511
|
-
if (!!(this.
|
|
512
|
-
this.
|
|
517
|
+
if (!!(this.x2x_1 == null)) {
|
|
518
|
+
this.b8_1 = 3;
|
|
513
519
|
continue $sm;
|
|
514
520
|
}
|
|
515
521
|
|
|
516
|
-
this.
|
|
517
|
-
suspendResult = this.
|
|
522
|
+
this.b8_1 = 2;
|
|
523
|
+
suspendResult = this.w2x_1.gd(ensureNotNull(this.x2x_1), this);
|
|
518
524
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
519
525
|
return suspendResult;
|
|
520
526
|
}
|
|
521
527
|
|
|
522
528
|
continue $sm;
|
|
523
529
|
case 2:
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
530
|
+
this.x2x_1 = this.x2x_1.o2w();
|
|
531
|
+
this.b8_1 = 1;
|
|
526
532
|
continue $sm;
|
|
527
533
|
case 3:
|
|
528
534
|
return Unit_instance;
|
|
529
535
|
case 4:
|
|
530
|
-
throw this.
|
|
536
|
+
throw this.e8_1;
|
|
531
537
|
}
|
|
532
538
|
} catch ($p) {
|
|
533
539
|
var e = $p;
|
|
534
|
-
if (this.
|
|
540
|
+
if (this.c8_1 === 4) {
|
|
535
541
|
throw e;
|
|
536
542
|
} else {
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
543
|
+
this.b8_1 = this.c8_1;
|
|
544
|
+
this.e8_1 = e;
|
|
539
545
|
}
|
|
540
546
|
}
|
|
541
547
|
while (true);
|
|
542
548
|
};
|
|
543
|
-
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).
|
|
544
|
-
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.
|
|
545
|
-
i.
|
|
549
|
+
protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).z2x = function ($this$sequence, completion) {
|
|
550
|
+
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.v2x_1, completion);
|
|
551
|
+
i.w2x_1 = $this$sequence;
|
|
546
552
|
return i;
|
|
547
553
|
};
|
|
548
554
|
function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
|
|
549
555
|
var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
|
|
550
556
|
var l = function ($this$sequence, $completion) {
|
|
551
|
-
return i.
|
|
557
|
+
return i.y2x($this$sequence, $completion);
|
|
552
558
|
};
|
|
553
559
|
l.$arity = 1;
|
|
554
560
|
return l;
|
|
555
561
|
}
|
|
556
562
|
function ChoicePointContext(alternatives, executionContext, parent, depth) {
|
|
557
563
|
depth = depth === VOID ? 0 : depth;
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
564
|
+
this.v2w_1 = alternatives;
|
|
565
|
+
this.w2w_1 = executionContext;
|
|
566
|
+
this.x2w_1 = parent;
|
|
567
|
+
this.y2w_1 = depth;
|
|
562
568
|
}
|
|
563
|
-
protoOf(ChoicePointContext).
|
|
564
|
-
return this.
|
|
569
|
+
protoOf(ChoicePointContext).m2w = function () {
|
|
570
|
+
return this.v2w_1;
|
|
565
571
|
};
|
|
566
|
-
protoOf(ChoicePointContext).
|
|
567
|
-
return this.
|
|
572
|
+
protoOf(ChoicePointContext).n2w = function () {
|
|
573
|
+
return this.w2w_1;
|
|
568
574
|
};
|
|
569
|
-
protoOf(ChoicePointContext).
|
|
570
|
-
return this.
|
|
575
|
+
protoOf(ChoicePointContext).o2w = function () {
|
|
576
|
+
return this.x2w_1;
|
|
571
577
|
};
|
|
572
|
-
protoOf(ChoicePointContext).
|
|
573
|
-
return this.
|
|
578
|
+
protoOf(ChoicePointContext).p2w = function () {
|
|
579
|
+
return this.y2w_1;
|
|
574
580
|
};
|
|
575
|
-
protoOf(ChoicePointContext).
|
|
581
|
+
protoOf(ChoicePointContext).z2w = function () {
|
|
582
|
+
var tmp0 = this.a2x();
|
|
576
583
|
var tmp$ret$1;
|
|
577
584
|
$l$block: {
|
|
578
585
|
// Inline function 'kotlin.sequences.any' call
|
|
579
|
-
var
|
|
580
|
-
while (
|
|
581
|
-
var element =
|
|
582
|
-
|
|
583
|
-
if (element.j34().gr()) {
|
|
586
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
587
|
+
while (_iterator__ex2g4s.s()) {
|
|
588
|
+
var element = _iterator__ex2g4s.t();
|
|
589
|
+
if (element.m2w().lp()) {
|
|
584
590
|
tmp$ret$1 = true;
|
|
585
591
|
break $l$block;
|
|
586
592
|
}
|
|
@@ -589,117 +595,118 @@
|
|
|
589
595
|
}
|
|
590
596
|
return tmp$ret$1;
|
|
591
597
|
};
|
|
592
|
-
protoOf(ChoicePointContext).
|
|
598
|
+
protoOf(ChoicePointContext).a2x = function () {
|
|
593
599
|
return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
|
|
594
600
|
};
|
|
595
|
-
protoOf(ChoicePointContext).
|
|
596
|
-
var tmp0_safe_receiver = this.
|
|
597
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
601
|
+
protoOf(ChoicePointContext).b2x = function () {
|
|
602
|
+
var tmp0_safe_receiver = this.n2w();
|
|
603
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2v_1;
|
|
598
604
|
};
|
|
599
|
-
protoOf(ChoicePointContext).
|
|
600
|
-
var tmp0_safe_receiver = this.
|
|
601
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
605
|
+
protoOf(ChoicePointContext).c2x = function () {
|
|
606
|
+
var tmp0_safe_receiver = this.n2w();
|
|
607
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2v_1;
|
|
602
608
|
};
|
|
603
609
|
protoOf(ChoicePointContext).toString = function () {
|
|
604
|
-
var tmp = this.
|
|
610
|
+
var tmp = this.q2w() + '(' + ('alternatives=' + toString(this.m2w()) + ', ');
|
|
605
611
|
var tmp_0;
|
|
606
|
-
if (this.
|
|
607
|
-
tmp_0 = 'executionContext=' + this.
|
|
612
|
+
if (this.n2w() === null) {
|
|
613
|
+
tmp_0 = 'executionContext=' + toString_0(this.n2w()) + ', ';
|
|
608
614
|
} else {
|
|
609
|
-
'executionContextDepth=' + this.
|
|
610
|
-
tmp_0 = 'executionContextProcedure=' + this.
|
|
615
|
+
'executionContextDepth=' + this.b2x() + ', ';
|
|
616
|
+
tmp_0 = 'executionContextProcedure=' + toString_0(this.c2x()) + ', ';
|
|
611
617
|
}
|
|
612
|
-
return tmp + tmp_0 + ('depth=' + this.
|
|
618
|
+
return tmp + tmp_0 + ('depth=' + this.p2w()) + ')';
|
|
613
619
|
};
|
|
614
620
|
function appendRules(_this__u8e3s4, alternatives, executionContext) {
|
|
615
621
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
616
622
|
return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
617
623
|
}
|
|
618
624
|
function nextDepth(_this__u8e3s4) {
|
|
619
|
-
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.
|
|
625
|
+
return _this__u8e3s4 == null ? 0 : _this__u8e3s4.p2w() + 1 | 0;
|
|
620
626
|
}
|
|
621
627
|
function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
|
|
622
628
|
executionContext = executionContext === VOID ? null : executionContext;
|
|
623
629
|
return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
|
|
624
630
|
}
|
|
625
631
|
function _get_locallyInterestingVariables__39cqti($this) {
|
|
626
|
-
var tmp = asSequence_0($this.
|
|
627
|
-
var tmp0_safe_receiver = $this.
|
|
628
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
632
|
+
var tmp = asSequence_0($this.w2v_1);
|
|
633
|
+
var tmp0_safe_receiver = $this.n2v_1.kp();
|
|
634
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bu();
|
|
629
635
|
return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
|
|
630
636
|
}
|
|
631
637
|
function _get_interestingVariables__k6uw5o($this) {
|
|
638
|
+
var tmp0 = $this.z2v_1;
|
|
639
|
+
var tmp = KProperty1;
|
|
632
640
|
// Inline function 'kotlin.getValue' call
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
return this_0.r2();
|
|
641
|
+
getPropertyCallableRef('interestingVariables', 1, tmp, ClassicExecutionContext$_get_interestingVariables_$ref_xwa4zu(), null);
|
|
642
|
+
return tmp0.e2();
|
|
636
643
|
}
|
|
637
644
|
function ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
|
|
638
|
-
this.
|
|
645
|
+
this.i2y_1 = this$0;
|
|
639
646
|
CoroutineImpl.call(this, resultContinuation);
|
|
640
647
|
}
|
|
641
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
642
|
-
var tmp = this.
|
|
643
|
-
tmp.
|
|
644
|
-
tmp.
|
|
645
|
-
return tmp.
|
|
648
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).l2y = function ($this$sequence, $completion) {
|
|
649
|
+
var tmp = this.m2y($this$sequence, $completion);
|
|
650
|
+
tmp.d8_1 = Unit_instance;
|
|
651
|
+
tmp.e8_1 = null;
|
|
652
|
+
return tmp.j8();
|
|
646
653
|
};
|
|
647
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
648
|
-
return this.
|
|
654
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).a9 = function (p1, $completion) {
|
|
655
|
+
return this.l2y(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
649
656
|
};
|
|
650
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
651
|
-
var suspendResult = this.
|
|
657
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).j8 = function () {
|
|
658
|
+
var suspendResult = this.d8_1;
|
|
652
659
|
$sm: do
|
|
653
660
|
try {
|
|
654
|
-
var tmp = this.
|
|
661
|
+
var tmp = this.b8_1;
|
|
655
662
|
switch (tmp) {
|
|
656
663
|
case 0:
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
664
|
+
this.c8_1 = 4;
|
|
665
|
+
this.k2y_1 = this.i2y_1;
|
|
666
|
+
this.b8_1 = 1;
|
|
660
667
|
continue $sm;
|
|
661
668
|
case 1:
|
|
662
|
-
if (!!(this.
|
|
663
|
-
this.
|
|
669
|
+
if (!!(this.k2y_1 == null)) {
|
|
670
|
+
this.b8_1 = 3;
|
|
664
671
|
continue $sm;
|
|
665
672
|
}
|
|
666
673
|
|
|
667
|
-
this.
|
|
668
|
-
suspendResult = this.
|
|
674
|
+
this.b8_1 = 2;
|
|
675
|
+
suspendResult = this.j2y_1.gd(this.k2y_1, this);
|
|
669
676
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
670
677
|
return suspendResult;
|
|
671
678
|
}
|
|
672
679
|
|
|
673
680
|
continue $sm;
|
|
674
681
|
case 2:
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
682
|
+
this.k2y_1 = this.k2y_1.t2v_1;
|
|
683
|
+
this.b8_1 = 1;
|
|
677
684
|
continue $sm;
|
|
678
685
|
case 3:
|
|
679
686
|
return Unit_instance;
|
|
680
687
|
case 4:
|
|
681
|
-
throw this.
|
|
688
|
+
throw this.e8_1;
|
|
682
689
|
}
|
|
683
690
|
} catch ($p) {
|
|
684
691
|
var e = $p;
|
|
685
|
-
if (this.
|
|
692
|
+
if (this.c8_1 === 4) {
|
|
686
693
|
throw e;
|
|
687
694
|
} else {
|
|
688
|
-
this.
|
|
689
|
-
this.
|
|
695
|
+
this.b8_1 = this.c8_1;
|
|
696
|
+
this.e8_1 = e;
|
|
690
697
|
}
|
|
691
698
|
}
|
|
692
699
|
while (true);
|
|
693
700
|
};
|
|
694
|
-
protoOf(ClassicExecutionContext$pathToRoot$slambda).
|
|
695
|
-
var i = new ClassicExecutionContext$pathToRoot$slambda(this.
|
|
696
|
-
i.
|
|
701
|
+
protoOf(ClassicExecutionContext$pathToRoot$slambda).m2y = function ($this$sequence, completion) {
|
|
702
|
+
var i = new ClassicExecutionContext$pathToRoot$slambda(this.i2y_1, completion);
|
|
703
|
+
i.j2y_1 = $this$sequence;
|
|
697
704
|
return i;
|
|
698
705
|
};
|
|
699
706
|
function ClassicExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
|
|
700
707
|
var i = new ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
|
|
701
708
|
var l = function ($this$sequence, $completion) {
|
|
702
|
-
return i.
|
|
709
|
+
return i.l2y($this$sequence, $completion);
|
|
703
710
|
};
|
|
704
711
|
l.$arity = 1;
|
|
705
712
|
return l;
|
|
@@ -707,42 +714,57 @@
|
|
|
707
714
|
function ClassicExecutionContext$currentGoal$delegate$lambda(this$0) {
|
|
708
715
|
return function () {
|
|
709
716
|
var tmp;
|
|
710
|
-
if (this$0.
|
|
717
|
+
if (this$0.n2v_1.mp()) {
|
|
711
718
|
tmp = null;
|
|
712
719
|
} else {
|
|
713
|
-
var tmp0_safe_receiver = this$0.
|
|
714
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.
|
|
720
|
+
var tmp0_safe_receiver = this$0.n2v_1.kp();
|
|
721
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.l2v_1);
|
|
715
722
|
}
|
|
716
723
|
return tmp;
|
|
717
724
|
};
|
|
718
725
|
}
|
|
726
|
+
function ClassicExecutionContext$_get_currentGoal_$ref_ulveh3() {
|
|
727
|
+
return function (p0) {
|
|
728
|
+
return p0.n2y();
|
|
729
|
+
};
|
|
730
|
+
}
|
|
719
731
|
function ClassicExecutionContext$interestingVariables$delegate$lambda$lambda(it) {
|
|
720
732
|
return _get_locallyInterestingVariables__39cqti(it);
|
|
721
733
|
}
|
|
722
734
|
function ClassicExecutionContext$interestingVariables$delegate$lambda(this$0) {
|
|
723
735
|
return function () {
|
|
724
|
-
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.
|
|
725
|
-
return cached(distinct(plus(tmp, flatMap(this$0.
|
|
736
|
+
var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.m2v_1.bu());
|
|
737
|
+
return cached(distinct(plus(tmp, flatMap(this$0.x2v_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
function ClassicExecutionContext$_get_interestingVariables_$ref_xwa4zu() {
|
|
741
|
+
return function (p0) {
|
|
742
|
+
return _get_interestingVariables__k6uw5o(p0);
|
|
726
743
|
};
|
|
727
744
|
}
|
|
728
745
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
729
|
-
return it.
|
|
746
|
+
return it.o2y();
|
|
730
747
|
}
|
|
731
748
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
|
|
732
749
|
return function (it) {
|
|
733
|
-
var tmp0_elvis_lhs = it.
|
|
734
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.
|
|
750
|
+
var tmp0_elvis_lhs = it.b2v_1;
|
|
751
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_1().of('?-', [this$0.m2v_1]) : tmp0_elvis_lhs;
|
|
735
752
|
};
|
|
736
753
|
}
|
|
737
754
|
function ClassicExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
738
755
|
return function () {
|
|
739
|
-
var tmp = filter(this$0.
|
|
756
|
+
var tmp = filter(this$0.x2v_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
|
|
740
757
|
return toList(map(tmp, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
|
|
741
758
|
};
|
|
742
759
|
}
|
|
760
|
+
function ClassicExecutionContext$_get_logicStackTrace_$ref_p35zx2() {
|
|
761
|
+
return function (p0) {
|
|
762
|
+
return p0.h1s();
|
|
763
|
+
};
|
|
764
|
+
}
|
|
743
765
|
function ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
744
766
|
procedure = procedure === VOID ? null : procedure;
|
|
745
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
767
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
746
768
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
747
769
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
748
770
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -752,230 +774,225 @@
|
|
|
752
774
|
outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
|
|
753
775
|
customData = customData === VOID ? Companion_instance_6.empty() : customData;
|
|
754
776
|
substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
|
|
755
|
-
query = query === VOID ? Companion_getInstance_3().
|
|
777
|
+
query = query === VOID ? Companion_getInstance_3().qt_1 : query;
|
|
756
778
|
goals = goals === VOID ? Companion_instance_7.empty() : goals;
|
|
757
779
|
rules = rules === VOID ? Companion_instance_7.empty() : rules;
|
|
758
780
|
primitives = primitives === VOID ? Companion_instance_7.empty() : primitives;
|
|
759
|
-
|
|
760
|
-
if (maxDuration === VOID) {
|
|
761
|
-
Companion_getInstance_4();
|
|
762
|
-
tmp = new Long(-1, 2147483647);
|
|
763
|
-
} else {
|
|
764
|
-
tmp = maxDuration;
|
|
765
|
-
}
|
|
766
|
-
maxDuration = tmp;
|
|
781
|
+
maxDuration = maxDuration === VOID ? 9223372036854775807n : maxDuration;
|
|
767
782
|
choicePoints = choicePoints === VOID ? null : choicePoints;
|
|
768
783
|
parent = parent === VOID ? null : parent;
|
|
769
784
|
depth = depth === VOID ? 0 : depth;
|
|
770
|
-
step = step === VOID ?
|
|
785
|
+
step = step === VOID ? 0n : step;
|
|
771
786
|
relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
774
|
-
this.
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
787
|
+
this.b2v_1 = procedure;
|
|
788
|
+
this.c2v_1 = unificator;
|
|
789
|
+
this.d2v_1 = libraries;
|
|
790
|
+
this.e2v_1 = flags;
|
|
791
|
+
this.f2v_1 = staticKb;
|
|
792
|
+
this.g2v_1 = dynamicKb;
|
|
793
|
+
this.h2v_1 = operators;
|
|
794
|
+
this.i2v_1 = inputChannels;
|
|
795
|
+
this.j2v_1 = outputChannels;
|
|
796
|
+
this.k2v_1 = customData;
|
|
797
|
+
this.l2v_1 = substitution;
|
|
798
|
+
this.m2v_1 = query;
|
|
799
|
+
this.n2v_1 = goals;
|
|
800
|
+
this.o2v_1 = rules;
|
|
801
|
+
this.p2v_1 = primitives;
|
|
802
|
+
this.q2v_1 = startTime;
|
|
803
|
+
this.r2v_1 = maxDuration;
|
|
804
|
+
this.s2v_1 = choicePoints;
|
|
805
|
+
this.t2v_1 = parent;
|
|
806
|
+
this.u2v_1 = depth;
|
|
807
|
+
this.v2v_1 = step;
|
|
808
|
+
this.w2v_1 = relevantVariables;
|
|
794
809
|
// Inline function 'kotlin.require' call
|
|
795
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
796
810
|
// Inline function 'kotlin.require' call
|
|
797
|
-
|
|
798
|
-
if (!((this.r33_1 === 0 ? this.q33_1 == null : false) ? true : this.r33_1 > 0 ? !(this.q33_1 == null) : false)) {
|
|
799
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
811
|
+
if (!(this.u2v_1 === 0 && this.t2v_1 == null || (this.u2v_1 > 0 && !(this.t2v_1 == null)))) {
|
|
800
812
|
var message = 'Failed requirement.';
|
|
801
813
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
802
814
|
}
|
|
803
815
|
// Inline function 'kotlin.require' call
|
|
804
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
805
816
|
// Inline function 'kotlin.require' call
|
|
806
|
-
|
|
807
|
-
if (!(this.n33_1.q6(new Long(0, 0)) >= 0)) {
|
|
808
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
817
|
+
if (!(this.q2v_1 >= 0n)) {
|
|
809
818
|
var message_0 = 'Failed requirement.';
|
|
810
819
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
811
820
|
}
|
|
812
821
|
// Inline function 'kotlin.require' call
|
|
813
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
814
822
|
// Inline function 'kotlin.require' call
|
|
815
|
-
|
|
816
|
-
if (!(this.o33_1.q6(new Long(0, 0)) >= 0)) {
|
|
817
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
823
|
+
if (!(this.r2v_1 >= 0n)) {
|
|
818
824
|
var message_1 = 'Failed requirement.';
|
|
819
825
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
820
826
|
}
|
|
827
|
+
var tmp = this;
|
|
828
|
+
tmp.x2v_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
|
|
821
829
|
var tmp_0 = this;
|
|
822
|
-
tmp_0.
|
|
830
|
+
tmp_0.y2v_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
|
|
823
831
|
var tmp_1 = this;
|
|
824
|
-
tmp_1.
|
|
832
|
+
tmp_1.z2v_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
|
|
825
833
|
var tmp_2 = this;
|
|
826
|
-
tmp_2.
|
|
827
|
-
var tmp_3 = this;
|
|
828
|
-
tmp_3.x33_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
834
|
+
tmp_2.a2w_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
829
835
|
}
|
|
830
|
-
protoOf(ClassicExecutionContext).
|
|
831
|
-
return this.
|
|
836
|
+
protoOf(ClassicExecutionContext).f1s = function () {
|
|
837
|
+
return this.b2v_1;
|
|
832
838
|
};
|
|
833
|
-
protoOf(ClassicExecutionContext).
|
|
834
|
-
return this.
|
|
839
|
+
protoOf(ClassicExecutionContext).n1i = function () {
|
|
840
|
+
return this.c2v_1;
|
|
835
841
|
};
|
|
836
|
-
protoOf(ClassicExecutionContext).
|
|
837
|
-
return this.
|
|
842
|
+
protoOf(ClassicExecutionContext).k1s = function () {
|
|
843
|
+
return this.d2v_1;
|
|
838
844
|
};
|
|
839
|
-
protoOf(ClassicExecutionContext).
|
|
840
|
-
return this.
|
|
845
|
+
protoOf(ClassicExecutionContext).l1s = function () {
|
|
846
|
+
return this.e2v_1;
|
|
841
847
|
};
|
|
842
|
-
protoOf(ClassicExecutionContext).
|
|
843
|
-
return this.
|
|
848
|
+
protoOf(ClassicExecutionContext).m1s = function () {
|
|
849
|
+
return this.f2v_1;
|
|
844
850
|
};
|
|
845
|
-
protoOf(ClassicExecutionContext).
|
|
846
|
-
return this.
|
|
851
|
+
protoOf(ClassicExecutionContext).n1s = function () {
|
|
852
|
+
return this.g2v_1;
|
|
847
853
|
};
|
|
848
|
-
protoOf(ClassicExecutionContext).
|
|
849
|
-
return this.
|
|
854
|
+
protoOf(ClassicExecutionContext).t1s = function () {
|
|
855
|
+
return this.h2v_1;
|
|
850
856
|
};
|
|
851
|
-
protoOf(ClassicExecutionContext).
|
|
852
|
-
return this.
|
|
857
|
+
protoOf(ClassicExecutionContext).o1s = function () {
|
|
858
|
+
return this.i2v_1;
|
|
853
859
|
};
|
|
854
|
-
protoOf(ClassicExecutionContext).
|
|
855
|
-
return this.
|
|
860
|
+
protoOf(ClassicExecutionContext).p1s = function () {
|
|
861
|
+
return this.j2v_1;
|
|
856
862
|
};
|
|
857
|
-
protoOf(ClassicExecutionContext).
|
|
858
|
-
return this.
|
|
863
|
+
protoOf(ClassicExecutionContext).i1s = function () {
|
|
864
|
+
return this.k2v_1;
|
|
859
865
|
};
|
|
860
|
-
protoOf(ClassicExecutionContext).
|
|
861
|
-
return this.
|
|
866
|
+
protoOf(ClassicExecutionContext).g1s = function () {
|
|
867
|
+
return this.l2v_1;
|
|
862
868
|
};
|
|
863
|
-
protoOf(ClassicExecutionContext).
|
|
864
|
-
return this.
|
|
869
|
+
protoOf(ClassicExecutionContext).a1s = function () {
|
|
870
|
+
return this.q2v_1;
|
|
865
871
|
};
|
|
866
|
-
protoOf(ClassicExecutionContext).
|
|
867
|
-
return this.
|
|
872
|
+
protoOf(ClassicExecutionContext).c1s = function () {
|
|
873
|
+
return this.r2v_1;
|
|
868
874
|
};
|
|
869
|
-
protoOf(ClassicExecutionContext).
|
|
870
|
-
return this.
|
|
875
|
+
protoOf(ClassicExecutionContext).p2y = function () {
|
|
876
|
+
return this.u2v_1 === 0;
|
|
871
877
|
};
|
|
872
|
-
protoOf(ClassicExecutionContext).
|
|
873
|
-
var tmp0_safe_receiver = this.
|
|
874
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
878
|
+
protoOf(ClassicExecutionContext).z2w = function () {
|
|
879
|
+
var tmp0_safe_receiver = this.s2v_1;
|
|
880
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z2w();
|
|
875
881
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
876
882
|
};
|
|
877
|
-
protoOf(ClassicExecutionContext).
|
|
878
|
-
return this.
|
|
883
|
+
protoOf(ClassicExecutionContext).o2y = function () {
|
|
884
|
+
return this.t2v_1 == null || (this.u2v_1 - this.t2v_1.u2v_1 | 0) >= 1;
|
|
879
885
|
};
|
|
880
|
-
protoOf(ClassicExecutionContext).
|
|
886
|
+
protoOf(ClassicExecutionContext).n2y = function () {
|
|
887
|
+
var tmp0 = this.y2v_1;
|
|
888
|
+
var tmp = KProperty1;
|
|
881
889
|
// Inline function 'kotlin.getValue' call
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
return this_0.r2();
|
|
890
|
+
getPropertyCallableRef('currentGoal', 1, tmp, ClassicExecutionContext$_get_currentGoal_$ref_ulveh3(), null);
|
|
891
|
+
return tmp0.e2();
|
|
885
892
|
};
|
|
886
|
-
protoOf(ClassicExecutionContext).
|
|
893
|
+
protoOf(ClassicExecutionContext).q2y = function (variable) {
|
|
887
894
|
return contains(_get_interestingVariables__k6uw5o(this), variable);
|
|
888
895
|
};
|
|
889
|
-
protoOf(ClassicExecutionContext).
|
|
896
|
+
protoOf(ClassicExecutionContext).h1s = function () {
|
|
897
|
+
var tmp0 = this.a2w_1;
|
|
898
|
+
var tmp = KProperty1;
|
|
890
899
|
// Inline function 'kotlin.getValue' call
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
return this_0.r2();
|
|
900
|
+
getPropertyCallableRef('logicStackTrace', 1, tmp, ClassicExecutionContext$_get_logicStackTrace_$ref_p35zx2(), null);
|
|
901
|
+
return tmp0.e2();
|
|
894
902
|
};
|
|
895
|
-
protoOf(ClassicExecutionContext).
|
|
903
|
+
protoOf(ClassicExecutionContext).j1s = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
896
904
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
897
905
|
};
|
|
898
|
-
protoOf(ClassicExecutionContext).
|
|
906
|
+
protoOf(ClassicExecutionContext).createSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
907
|
+
return this.createSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
908
|
+
};
|
|
909
|
+
protoOf(ClassicExecutionContext).q1s = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
899
910
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
|
|
900
911
|
};
|
|
901
|
-
protoOf(ClassicExecutionContext).
|
|
902
|
-
return this.
|
|
912
|
+
protoOf(ClassicExecutionContext).createMutableSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
|
|
913
|
+
return this.createMutableSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
914
|
+
};
|
|
915
|
+
protoOf(ClassicExecutionContext).s1s = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
916
|
+
return this.s2w(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
|
|
917
|
+
};
|
|
918
|
+
protoOf(ClassicExecutionContext).update = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, $super) {
|
|
919
|
+
return this.update(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, ($super == null ? true : $super instanceof ClassicExecutionContext) ? $super : THROW_CCE());
|
|
903
920
|
};
|
|
904
|
-
protoOf(ClassicExecutionContext).
|
|
921
|
+
protoOf(ClassicExecutionContext).r2y = function (sideEffect) {
|
|
905
922
|
var tmp = apply.call(this, sideEffect);
|
|
906
923
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
907
924
|
};
|
|
908
925
|
protoOf(ClassicExecutionContext).apply = function (sideEffect) {
|
|
909
|
-
return this.
|
|
926
|
+
return this.r2y(sideEffect);
|
|
910
927
|
};
|
|
911
|
-
protoOf(ClassicExecutionContext).
|
|
928
|
+
protoOf(ClassicExecutionContext).s2y = function (sideEffects) {
|
|
912
929
|
var tmp = applyIterable.call(this, sideEffects);
|
|
913
930
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
914
931
|
};
|
|
915
932
|
protoOf(ClassicExecutionContext).applyIterable = function (sideEffects) {
|
|
916
|
-
return this.
|
|
933
|
+
return this.s2y(sideEffects);
|
|
917
934
|
};
|
|
918
|
-
protoOf(ClassicExecutionContext).
|
|
935
|
+
protoOf(ClassicExecutionContext).t2y = function (sideEffects) {
|
|
919
936
|
var tmp = applySequence.call(this, sideEffects);
|
|
920
937
|
return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
|
|
921
938
|
};
|
|
922
939
|
protoOf(ClassicExecutionContext).applySequence = function (sideEffects) {
|
|
923
|
-
return this.
|
|
940
|
+
return this.t2y(sideEffects);
|
|
924
941
|
};
|
|
925
942
|
protoOf(ClassicExecutionContext).toString = function () {
|
|
926
|
-
return 'ClassicExecutionContext(' + ('step=' + this.
|
|
943
|
+
return 'ClassicExecutionContext(' + ('step=' + this.v2v_1.toString() + ', ') + ('depth=' + this.u2v_1 + ', ') + ('substitution=' + toString(this.l2v_1) + ', ') + ('logicStackTrace=' + toString(this.h1s()) + ', ') + ('goals=' + toString(this.n2v_1) + ', ') + ('rules=' + toString(this.o2v_1) + ', ') + ('primitives=' + toString(this.p2v_1) + ', ') + ('startTime=' + this.q2v_1.toString() + ', ') + ('endTime=' + this.b1s().toString() + ', ') + ('maxDuration=' + this.r2v_1.toString() + ', ') + ('unificator=' + toString(this.c2v_1) + ', ') + ('choicePoints=' + toString_0(this.s2v_1)) + ')';
|
|
927
944
|
};
|
|
928
|
-
protoOf(ClassicExecutionContext).
|
|
945
|
+
protoOf(ClassicExecutionContext).u2y = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
|
|
929
946
|
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);
|
|
930
947
|
};
|
|
931
|
-
protoOf(ClassicExecutionContext).
|
|
932
|
-
procedure = procedure === VOID ? this.
|
|
933
|
-
unificator = unificator === VOID ? this.
|
|
934
|
-
libraries = libraries === VOID ? this.
|
|
935
|
-
flags = flags === VOID ? this.
|
|
936
|
-
staticKb = staticKb === VOID ? this.
|
|
937
|
-
dynamicKb = dynamicKb === VOID ? this.
|
|
938
|
-
operators = operators === VOID ? this.
|
|
939
|
-
inputChannels = inputChannels === VOID ? this.
|
|
940
|
-
outputChannels = outputChannels === VOID ? this.
|
|
941
|
-
customData = customData === VOID ? this.
|
|
942
|
-
substitution = substitution === VOID ? this.
|
|
943
|
-
query = query === VOID ? this.
|
|
944
|
-
goals = goals === VOID ? this.
|
|
945
|
-
rules = rules === VOID ? this.
|
|
946
|
-
primitives = primitives === VOID ? this.
|
|
947
|
-
startTime = startTime === VOID ? this.
|
|
948
|
-
maxDuration = maxDuration === VOID ? this.
|
|
949
|
-
choicePoints = choicePoints === VOID ? this.
|
|
950
|
-
parent = parent === VOID ? this.
|
|
951
|
-
depth = depth === VOID ? this.
|
|
952
|
-
step = step === VOID ? this.
|
|
953
|
-
relevantVariables = relevantVariables === VOID ? this.
|
|
954
|
-
return $super === VOID ? this.
|
|
948
|
+
protoOf(ClassicExecutionContext).s2w = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
|
|
949
|
+
procedure = procedure === VOID ? this.b2v_1 : procedure;
|
|
950
|
+
unificator = unificator === VOID ? this.c2v_1 : unificator;
|
|
951
|
+
libraries = libraries === VOID ? this.d2v_1 : libraries;
|
|
952
|
+
flags = flags === VOID ? this.e2v_1 : flags;
|
|
953
|
+
staticKb = staticKb === VOID ? this.f2v_1 : staticKb;
|
|
954
|
+
dynamicKb = dynamicKb === VOID ? this.g2v_1 : dynamicKb;
|
|
955
|
+
operators = operators === VOID ? this.h2v_1 : operators;
|
|
956
|
+
inputChannels = inputChannels === VOID ? this.i2v_1 : inputChannels;
|
|
957
|
+
outputChannels = outputChannels === VOID ? this.j2v_1 : outputChannels;
|
|
958
|
+
customData = customData === VOID ? this.k2v_1 : customData;
|
|
959
|
+
substitution = substitution === VOID ? this.l2v_1 : substitution;
|
|
960
|
+
query = query === VOID ? this.m2v_1 : query;
|
|
961
|
+
goals = goals === VOID ? this.n2v_1 : goals;
|
|
962
|
+
rules = rules === VOID ? this.o2v_1 : rules;
|
|
963
|
+
primitives = primitives === VOID ? this.p2v_1 : primitives;
|
|
964
|
+
startTime = startTime === VOID ? this.q2v_1 : startTime;
|
|
965
|
+
maxDuration = maxDuration === VOID ? this.r2v_1 : maxDuration;
|
|
966
|
+
choicePoints = choicePoints === VOID ? this.s2v_1 : choicePoints;
|
|
967
|
+
parent = parent === VOID ? this.t2v_1 : parent;
|
|
968
|
+
depth = depth === VOID ? this.u2v_1 : depth;
|
|
969
|
+
step = step === VOID ? this.v2v_1 : step;
|
|
970
|
+
relevantVariables = relevantVariables === VOID ? this.w2v_1 : relevantVariables;
|
|
971
|
+
return $super === VOID ? this.u2y(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.u2y.call(this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
|
|
955
972
|
};
|
|
956
973
|
protoOf(ClassicExecutionContext).hashCode = function () {
|
|
957
|
-
var result = this.
|
|
958
|
-
result = imul(result, 31) + hashCode(this.
|
|
959
|
-
result = imul(result, 31) + hashCode(this.
|
|
960
|
-
result = imul(result, 31) + this.
|
|
961
|
-
result = imul(result, 31) + hashCode(this.
|
|
962
|
-
result = imul(result, 31) + hashCode(this.
|
|
963
|
-
result = imul(result, 31) + this.
|
|
964
|
-
result = imul(result, 31) + hashCode(this.
|
|
965
|
-
result = imul(result, 31) + hashCode(this.
|
|
966
|
-
result = imul(result, 31) + this.
|
|
967
|
-
result = imul(result, 31) + hashCode(this.
|
|
968
|
-
result = imul(result, 31) + this.
|
|
969
|
-
result = imul(result, 31) + hashCode(this.
|
|
970
|
-
result = imul(result, 31) + hashCode(this.
|
|
971
|
-
result = imul(result, 31) + hashCode(this.
|
|
972
|
-
result = imul(result, 31) + this.
|
|
973
|
-
result = imul(result, 31) + this.
|
|
974
|
-
result = imul(result, 31) + (this.
|
|
975
|
-
result = imul(result, 31) + (this.
|
|
976
|
-
result = imul(result, 31) + this.
|
|
977
|
-
result = imul(result, 31) + this.
|
|
978
|
-
result = imul(result, 31) + hashCode(this.
|
|
974
|
+
var result = this.b2v_1 == null ? 0 : this.b2v_1.hashCode();
|
|
975
|
+
result = imul(result, 31) + hashCode(this.c2v_1) | 0;
|
|
976
|
+
result = imul(result, 31) + hashCode(this.d2v_1) | 0;
|
|
977
|
+
result = imul(result, 31) + this.e2v_1.hashCode() | 0;
|
|
978
|
+
result = imul(result, 31) + hashCode(this.f2v_1) | 0;
|
|
979
|
+
result = imul(result, 31) + hashCode(this.g2v_1) | 0;
|
|
980
|
+
result = imul(result, 31) + this.h2v_1.hashCode() | 0;
|
|
981
|
+
result = imul(result, 31) + hashCode(this.i2v_1) | 0;
|
|
982
|
+
result = imul(result, 31) + hashCode(this.j2v_1) | 0;
|
|
983
|
+
result = imul(result, 31) + this.k2v_1.hashCode() | 0;
|
|
984
|
+
result = imul(result, 31) + hashCode(this.l2v_1) | 0;
|
|
985
|
+
result = imul(result, 31) + this.m2v_1.hashCode() | 0;
|
|
986
|
+
result = imul(result, 31) + hashCode(this.n2v_1) | 0;
|
|
987
|
+
result = imul(result, 31) + hashCode(this.o2v_1) | 0;
|
|
988
|
+
result = imul(result, 31) + hashCode(this.p2v_1) | 0;
|
|
989
|
+
result = imul(result, 31) + getBigIntHashCode(this.q2v_1) | 0;
|
|
990
|
+
result = imul(result, 31) + getBigIntHashCode(this.r2v_1) | 0;
|
|
991
|
+
result = imul(result, 31) + (this.s2v_1 == null ? 0 : hashCode(this.s2v_1)) | 0;
|
|
992
|
+
result = imul(result, 31) + (this.t2v_1 == null ? 0 : this.t2v_1.hashCode()) | 0;
|
|
993
|
+
result = imul(result, 31) + this.u2v_1 | 0;
|
|
994
|
+
result = imul(result, 31) + getBigIntHashCode(this.v2v_1) | 0;
|
|
995
|
+
result = imul(result, 31) + hashCode(this.w2v_1) | 0;
|
|
979
996
|
return result;
|
|
980
997
|
};
|
|
981
998
|
protoOf(ClassicExecutionContext).equals = function (other) {
|
|
@@ -983,70 +1000,54 @@
|
|
|
983
1000
|
return true;
|
|
984
1001
|
if (!(other instanceof ClassicExecutionContext))
|
|
985
1002
|
return false;
|
|
986
|
-
|
|
987
|
-
if (!equals(this.y32_1, tmp0_other_with_cast.y32_1))
|
|
1003
|
+
if (!equals(this.b2v_1, other.b2v_1))
|
|
988
1004
|
return false;
|
|
989
|
-
if (!equals(this.
|
|
1005
|
+
if (!equals(this.c2v_1, other.c2v_1))
|
|
990
1006
|
return false;
|
|
991
|
-
if (!equals(this.
|
|
1007
|
+
if (!equals(this.d2v_1, other.d2v_1))
|
|
992
1008
|
return false;
|
|
993
|
-
if (!this.
|
|
1009
|
+
if (!this.e2v_1.equals(other.e2v_1))
|
|
994
1010
|
return false;
|
|
995
|
-
if (!equals(this.
|
|
1011
|
+
if (!equals(this.f2v_1, other.f2v_1))
|
|
996
1012
|
return false;
|
|
997
|
-
if (!equals(this.
|
|
1013
|
+
if (!equals(this.g2v_1, other.g2v_1))
|
|
998
1014
|
return false;
|
|
999
|
-
if (!this.
|
|
1015
|
+
if (!this.h2v_1.equals(other.h2v_1))
|
|
1000
1016
|
return false;
|
|
1001
|
-
if (!equals(this.
|
|
1017
|
+
if (!equals(this.i2v_1, other.i2v_1))
|
|
1002
1018
|
return false;
|
|
1003
|
-
if (!equals(this.
|
|
1019
|
+
if (!equals(this.j2v_1, other.j2v_1))
|
|
1004
1020
|
return false;
|
|
1005
|
-
if (!this.
|
|
1021
|
+
if (!this.k2v_1.equals(other.k2v_1))
|
|
1006
1022
|
return false;
|
|
1007
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.l2v_1, other.l2v_1))
|
|
1008
1024
|
return false;
|
|
1009
|
-
if (!this.
|
|
1025
|
+
if (!this.m2v_1.equals(other.m2v_1))
|
|
1010
1026
|
return false;
|
|
1011
|
-
if (!equals(this.
|
|
1027
|
+
if (!equals(this.n2v_1, other.n2v_1))
|
|
1012
1028
|
return false;
|
|
1013
|
-
if (!equals(this.
|
|
1029
|
+
if (!equals(this.o2v_1, other.o2v_1))
|
|
1014
1030
|
return false;
|
|
1015
|
-
if (!equals(this.
|
|
1031
|
+
if (!equals(this.p2v_1, other.p2v_1))
|
|
1016
1032
|
return false;
|
|
1017
|
-
if (!this.
|
|
1033
|
+
if (!(this.q2v_1 === other.q2v_1))
|
|
1018
1034
|
return false;
|
|
1019
|
-
if (!this.
|
|
1035
|
+
if (!(this.r2v_1 === other.r2v_1))
|
|
1020
1036
|
return false;
|
|
1021
|
-
if (!equals(this.
|
|
1037
|
+
if (!equals(this.s2v_1, other.s2v_1))
|
|
1022
1038
|
return false;
|
|
1023
|
-
if (!equals(this.
|
|
1039
|
+
if (!equals(this.t2v_1, other.t2v_1))
|
|
1024
1040
|
return false;
|
|
1025
|
-
if (!(this.
|
|
1041
|
+
if (!(this.u2v_1 === other.u2v_1))
|
|
1026
1042
|
return false;
|
|
1027
|
-
if (!this.
|
|
1043
|
+
if (!(this.v2v_1 === other.v2v_1))
|
|
1028
1044
|
return false;
|
|
1029
|
-
if (!equals(this.
|
|
1045
|
+
if (!equals(this.w2v_1, other.w2v_1))
|
|
1030
1046
|
return false;
|
|
1031
1047
|
return true;
|
|
1032
1048
|
};
|
|
1033
|
-
function currentGoal$factory() {
|
|
1034
|
-
return getPropertyCallableRef('currentGoal', 1, KProperty1, function (receiver) {
|
|
1035
|
-
return receiver.m36();
|
|
1036
|
-
}, null);
|
|
1037
|
-
}
|
|
1038
|
-
function interestingVariables$factory() {
|
|
1039
|
-
return getPropertyCallableRef('interestingVariables', 1, KProperty1, function (receiver) {
|
|
1040
|
-
return _get_interestingVariables__k6uw5o(receiver);
|
|
1041
|
-
}, null);
|
|
1042
|
-
}
|
|
1043
|
-
function logicStackTrace$factory() {
|
|
1044
|
-
return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
|
|
1045
|
-
return receiver.z1u();
|
|
1046
|
-
}, null);
|
|
1047
|
-
}
|
|
1048
1049
|
function ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1049
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1050
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
1050
1051
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1051
1052
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1052
1053
|
initialStaticKb = initialStaticKb === VOID ? Companion_instance_0.empty(unificator) : initialStaticKb;
|
|
@@ -1062,7 +1063,7 @@
|
|
|
1062
1063
|
return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1063
1064
|
}
|
|
1064
1065
|
function ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1065
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1066
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
1066
1067
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1067
1068
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1068
1069
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1079,43 +1080,58 @@
|
|
|
1079
1080
|
function ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
|
|
1080
1081
|
return ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(ClassicSolver)));
|
|
1081
1082
|
}
|
|
1082
|
-
protoOf(ClassicSolver).
|
|
1083
|
-
return Companion_instance_15.
|
|
1083
|
+
protoOf(ClassicSolver).d2w = function (initialState, onStateTransition) {
|
|
1084
|
+
return Companion_instance_15.w2y(initialState, onStateTransition);
|
|
1084
1085
|
};
|
|
1085
|
-
protoOf(ClassicSolver).
|
|
1086
|
+
protoOf(ClassicSolver).b1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1086
1087
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1087
1088
|
};
|
|
1088
|
-
protoOf(ClassicSolver).
|
|
1089
|
+
protoOf(ClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1090
|
+
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolver) ? $super : THROW_CCE());
|
|
1091
|
+
};
|
|
1092
|
+
protoOf(ClassicSolver).c1q = function () {
|
|
1089
1093
|
return this.copy();
|
|
1090
1094
|
};
|
|
1091
1095
|
protoOf(ClassicSolver).clone = function () {
|
|
1092
|
-
return this.
|
|
1096
|
+
return this.c1q();
|
|
1093
1097
|
};
|
|
1094
1098
|
function ClassicSolver() {
|
|
1095
1099
|
}
|
|
1096
1100
|
function ClassicSolverFactory() {
|
|
1097
1101
|
}
|
|
1098
|
-
protoOf(ClassicSolverFactory).
|
|
1102
|
+
protoOf(ClassicSolverFactory).w1u = function () {
|
|
1099
1103
|
return DefaultBuiltins_getInstance();
|
|
1100
1104
|
};
|
|
1101
|
-
protoOf(ClassicSolverFactory).
|
|
1105
|
+
protoOf(ClassicSolverFactory).h1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1102
1106
|
return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1103
1107
|
};
|
|
1104
|
-
protoOf(ClassicSolverFactory).
|
|
1108
|
+
protoOf(ClassicSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
1109
|
+
return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1110
|
+
};
|
|
1111
|
+
protoOf(ClassicSolverFactory).n1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1105
1112
|
return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1106
1113
|
};
|
|
1107
|
-
protoOf(ClassicSolverFactory).
|
|
1114
|
+
protoOf(ClassicSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1115
|
+
return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1116
|
+
};
|
|
1117
|
+
protoOf(ClassicSolverFactory).p1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1108
1118
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1109
1119
|
};
|
|
1110
|
-
protoOf(ClassicSolverFactory).
|
|
1120
|
+
protoOf(ClassicSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1121
|
+
return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1122
|
+
};
|
|
1123
|
+
protoOf(ClassicSolverFactory).r1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
1111
1124
|
return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
1112
1125
|
};
|
|
1126
|
+
protoOf(ClassicSolverFactory).rawMutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
|
|
1127
|
+
return this.rawMutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof ClassicSolverFactory) ? $super : THROW_CCE());
|
|
1128
|
+
};
|
|
1113
1129
|
var ClassicSolverFactory_instance;
|
|
1114
1130
|
function ClassicSolverFactory_getInstance() {
|
|
1115
1131
|
return ClassicSolverFactory_instance;
|
|
1116
1132
|
}
|
|
1117
1133
|
function MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
|
|
1118
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1134
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
1119
1135
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1120
1136
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1121
1137
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1131,7 +1147,7 @@
|
|
|
1131
1147
|
return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutableClassicSolver)));
|
|
1132
1148
|
}
|
|
1133
1149
|
function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
|
|
1134
|
-
unificator = unificator === VOID ? Companion_getInstance().
|
|
1150
|
+
unificator = unificator === VOID ? Companion_getInstance().g1i() : unificator;
|
|
1135
1151
|
libraries = libraries === VOID ? Companion_instance.empty() : libraries;
|
|
1136
1152
|
flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
|
|
1137
1153
|
staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
|
|
@@ -1150,271 +1166,274 @@
|
|
|
1150
1166
|
}
|
|
1151
1167
|
function MutableClassicSolver$loadLibrary$lambda($library) {
|
|
1152
1168
|
return function ($this$updateContext) {
|
|
1153
|
-
var newRuntime = $this$updateContext.
|
|
1154
|
-
return $this$updateContext.
|
|
1169
|
+
var newRuntime = $this$updateContext.d2v_1.plusLibrary($library);
|
|
1170
|
+
return $this$updateContext.s2w(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.h2v_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
|
|
1155
1171
|
};
|
|
1156
1172
|
}
|
|
1157
1173
|
function MutableClassicSolver$unloadLibrary$lambda($library) {
|
|
1158
1174
|
return function ($this$updateContext) {
|
|
1159
|
-
var newRuntime = $this$updateContext.
|
|
1160
|
-
return $this$updateContext.
|
|
1175
|
+
var newRuntime = $this$updateContext.d2v_1.plusLibrary($library);
|
|
1176
|
+
return $this$updateContext.s2w(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.f2v_1, $this$updateContext.g2v_1])));
|
|
1161
1177
|
};
|
|
1162
1178
|
}
|
|
1163
1179
|
function MutableClassicSolver$setRuntime$lambda($libraries) {
|
|
1164
1180
|
return function ($this$updateContext) {
|
|
1165
|
-
return $this$updateContext.
|
|
1181
|
+
return $this$updateContext.s2w(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.f2v_1, $this$updateContext.g2v_1])));
|
|
1166
1182
|
};
|
|
1167
1183
|
}
|
|
1168
1184
|
function MutableClassicSolver$resetStaticKb$lambda($this$updateContext) {
|
|
1169
|
-
return $this$updateContext.
|
|
1185
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, Companion_instance_0.empty($this$updateContext.c2v_1), VOID, toOperatorSet(getAllOperators($this$updateContext.d2v_1, [$this$updateContext.g2v_1])));
|
|
1170
1186
|
}
|
|
1171
1187
|
function MutableClassicSolver$resetDynamicKb$lambda($this$updateContext) {
|
|
1172
|
-
return $this$updateContext.
|
|
1188
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, Companion_instance_1.empty($this$updateContext.c2v_1), toOperatorSet(getAllOperators($this$updateContext.d2v_1, [$this$updateContext.f2v_1])));
|
|
1173
1189
|
}
|
|
1174
1190
|
function MutableClassicSolver$assertA$lambda($clause) {
|
|
1175
1191
|
return function ($this$updateContext) {
|
|
1176
|
-
return $this$updateContext.
|
|
1192
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g2v_1.s1p($clause), $this$updateContext.h2v_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1177
1193
|
};
|
|
1178
1194
|
}
|
|
1179
1195
|
function MutableClassicSolver$assertA$lambda_0($fact) {
|
|
1180
1196
|
return function ($this$updateContext) {
|
|
1181
|
-
return $this$updateContext.
|
|
1197
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g2v_1.r1q($fact));
|
|
1182
1198
|
};
|
|
1183
1199
|
}
|
|
1184
1200
|
function MutableClassicSolver$assertZ$lambda($clause) {
|
|
1185
1201
|
return function ($this$updateContext) {
|
|
1186
|
-
return $this$updateContext.
|
|
1202
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g2v_1.w1p($clause), $this$updateContext.h2v_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1187
1203
|
};
|
|
1188
1204
|
}
|
|
1189
1205
|
function MutableClassicSolver$assertZ$lambda_0($fact) {
|
|
1190
1206
|
return function ($this$updateContext) {
|
|
1191
|
-
return $this$updateContext.
|
|
1207
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $this$updateContext.g2v_1.s1q($fact));
|
|
1192
1208
|
};
|
|
1193
1209
|
}
|
|
1194
1210
|
function MutableClassicSolver$retract$lambda($result, $clause) {
|
|
1195
1211
|
return function ($this$updateContext) {
|
|
1196
|
-
return $this$updateContext.
|
|
1212
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $result.k1p().toMutableTheory(), $this$updateContext.h2v_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
|
|
1197
1213
|
};
|
|
1198
1214
|
}
|
|
1199
1215
|
function MutableClassicSolver$retract$lambda_0($result) {
|
|
1200
1216
|
return function ($this$updateContext) {
|
|
1201
|
-
return $this$updateContext.
|
|
1217
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $result.k1p().toMutableTheory());
|
|
1202
1218
|
};
|
|
1203
1219
|
}
|
|
1204
1220
|
function MutableClassicSolver$retractAll$lambda($result) {
|
|
1205
1221
|
return function ($this$updateContext) {
|
|
1206
|
-
return $this$updateContext.
|
|
1222
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $result.k1p().toMutableTheory(), $this$updateContext.h2v_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.k1p()))));
|
|
1207
1223
|
};
|
|
1208
1224
|
}
|
|
1209
1225
|
function MutableClassicSolver$retractAll$lambda_0($result) {
|
|
1210
1226
|
return function ($this$updateContext) {
|
|
1211
|
-
return $this$updateContext.
|
|
1227
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, $result.k1p().toMutableTheory());
|
|
1212
1228
|
};
|
|
1213
1229
|
}
|
|
1214
1230
|
function MutableClassicSolver$setFlag$lambda($name, $value) {
|
|
1215
1231
|
return function ($this$updateContext) {
|
|
1216
|
-
return $this$updateContext.
|
|
1232
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, $this$updateContext.e2v_1.set($name, $value));
|
|
1217
1233
|
};
|
|
1218
1234
|
}
|
|
1219
1235
|
function MutableClassicSolver$setFlag$lambda_0($flag) {
|
|
1220
1236
|
return function ($this$updateContext) {
|
|
1221
|
-
return $this$updateContext.
|
|
1237
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, $this$updateContext.e2v_1.plusPair($flag));
|
|
1222
1238
|
};
|
|
1223
1239
|
}
|
|
1224
1240
|
function MutableClassicSolver$setFlag$lambda_1($flag) {
|
|
1225
1241
|
return function ($this$updateContext) {
|
|
1226
|
-
return $this$updateContext.
|
|
1242
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, $this$updateContext.e2v_1.plusNotable($flag));
|
|
1227
1243
|
};
|
|
1228
1244
|
}
|
|
1229
1245
|
function MutableClassicSolver$setStandardInput$lambda($stdIn) {
|
|
1230
1246
|
return function ($this$updateContext) {
|
|
1231
|
-
return $this$updateContext.
|
|
1247
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.i2v_1.plus(to('stdin', $stdIn)));
|
|
1232
1248
|
};
|
|
1233
1249
|
}
|
|
1234
1250
|
function MutableClassicSolver$setStandardError$lambda($stdErr) {
|
|
1235
1251
|
return function ($this$updateContext) {
|
|
1236
|
-
return $this$updateContext.
|
|
1252
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.j2v_1.plus(to('stderr', $stdErr)));
|
|
1237
1253
|
};
|
|
1238
1254
|
}
|
|
1239
1255
|
function MutableClassicSolver$setStandardOutput$lambda($stdOut) {
|
|
1240
1256
|
return function ($this$updateContext) {
|
|
1241
|
-
return $this$updateContext.
|
|
1257
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.j2v_1.plus(to('stdout', $stdOut)));
|
|
1242
1258
|
};
|
|
1243
1259
|
}
|
|
1244
1260
|
function MutableClassicSolver$setWarnings$lambda($warnings) {
|
|
1245
1261
|
return function ($this$updateContext) {
|
|
1246
|
-
return $this$updateContext.
|
|
1262
|
+
return $this$updateContext.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_5.f1w($this$updateContext.j2v_1, $warnings));
|
|
1247
1263
|
};
|
|
1248
1264
|
}
|
|
1249
|
-
protoOf(MutableClassicSolver).
|
|
1250
|
-
this.
|
|
1265
|
+
protoOf(MutableClassicSolver).y2y = function (library) {
|
|
1266
|
+
this.z27(MutableClassicSolver$loadLibrary$lambda(library));
|
|
1251
1267
|
};
|
|
1252
1268
|
protoOf(MutableClassicSolver).loadLibrary = function (library) {
|
|
1253
|
-
return this.
|
|
1269
|
+
return this.y2y(library);
|
|
1254
1270
|
};
|
|
1255
|
-
protoOf(MutableClassicSolver).
|
|
1256
|
-
this.
|
|
1271
|
+
protoOf(MutableClassicSolver).z2y = function (library) {
|
|
1272
|
+
this.z27(MutableClassicSolver$unloadLibrary$lambda(library));
|
|
1257
1273
|
};
|
|
1258
1274
|
protoOf(MutableClassicSolver).unloadLibrary = function (library) {
|
|
1259
|
-
return this.
|
|
1275
|
+
return this.z2y(library);
|
|
1260
1276
|
};
|
|
1261
|
-
protoOf(MutableClassicSolver).
|
|
1262
|
-
this.
|
|
1277
|
+
protoOf(MutableClassicSolver).a2z = function (libraries) {
|
|
1278
|
+
this.z27(MutableClassicSolver$setRuntime$lambda(libraries));
|
|
1263
1279
|
};
|
|
1264
1280
|
protoOf(MutableClassicSolver).setLibraries = function (libraries) {
|
|
1265
|
-
return this.
|
|
1281
|
+
return this.a2z(libraries);
|
|
1266
1282
|
};
|
|
1267
|
-
protoOf(MutableClassicSolver).
|
|
1268
|
-
this.
|
|
1283
|
+
protoOf(MutableClassicSolver).b2z = function (theory) {
|
|
1284
|
+
this.d28(theory, VOID, false);
|
|
1269
1285
|
};
|
|
1270
1286
|
protoOf(MutableClassicSolver).loadStaticKb = function (theory) {
|
|
1271
|
-
return this.
|
|
1287
|
+
return this.b2z(theory);
|
|
1272
1288
|
};
|
|
1273
|
-
protoOf(MutableClassicSolver).
|
|
1274
|
-
this.
|
|
1289
|
+
protoOf(MutableClassicSolver).c2z = function (theory) {
|
|
1290
|
+
this.d28(theory);
|
|
1275
1291
|
};
|
|
1276
1292
|
protoOf(MutableClassicSolver).appendStaticKb = function (theory) {
|
|
1277
|
-
return this.
|
|
1293
|
+
return this.c2z(theory);
|
|
1278
1294
|
};
|
|
1279
|
-
protoOf(MutableClassicSolver).
|
|
1280
|
-
this.
|
|
1295
|
+
protoOf(MutableClassicSolver).d2z = function () {
|
|
1296
|
+
this.z27(MutableClassicSolver$resetStaticKb$lambda);
|
|
1281
1297
|
};
|
|
1282
1298
|
protoOf(MutableClassicSolver).resetStaticKb = function () {
|
|
1283
|
-
return this.
|
|
1299
|
+
return this.d2z();
|
|
1284
1300
|
};
|
|
1285
|
-
protoOf(MutableClassicSolver).
|
|
1286
|
-
this.
|
|
1301
|
+
protoOf(MutableClassicSolver).e2z = function (theory) {
|
|
1302
|
+
this.d28(VOID, theory, VOID, false);
|
|
1287
1303
|
};
|
|
1288
1304
|
protoOf(MutableClassicSolver).loadDynamicKb = function (theory) {
|
|
1289
|
-
return this.
|
|
1305
|
+
return this.e2z(theory);
|
|
1290
1306
|
};
|
|
1291
|
-
protoOf(MutableClassicSolver).
|
|
1292
|
-
this.
|
|
1307
|
+
protoOf(MutableClassicSolver).f2z = function (theory) {
|
|
1308
|
+
this.d28(VOID, theory);
|
|
1293
1309
|
};
|
|
1294
1310
|
protoOf(MutableClassicSolver).appendDynamicKb = function (theory) {
|
|
1295
|
-
return this.
|
|
1311
|
+
return this.f2z(theory);
|
|
1296
1312
|
};
|
|
1297
|
-
protoOf(MutableClassicSolver).
|
|
1298
|
-
this.
|
|
1313
|
+
protoOf(MutableClassicSolver).g2z = function () {
|
|
1314
|
+
this.z27(MutableClassicSolver$resetDynamicKb$lambda);
|
|
1299
1315
|
};
|
|
1300
1316
|
protoOf(MutableClassicSolver).resetDynamicKb = function () {
|
|
1301
|
-
return this.
|
|
1317
|
+
return this.g2z();
|
|
1302
1318
|
};
|
|
1303
|
-
protoOf(MutableClassicSolver).
|
|
1304
|
-
this.
|
|
1319
|
+
protoOf(MutableClassicSolver).z1j = function (clause) {
|
|
1320
|
+
this.z27(MutableClassicSolver$assertA$lambda(clause));
|
|
1305
1321
|
};
|
|
1306
1322
|
protoOf(MutableClassicSolver).assertA = function (clause) {
|
|
1307
|
-
return this.
|
|
1323
|
+
return this.z1j(clause);
|
|
1308
1324
|
};
|
|
1309
|
-
protoOf(MutableClassicSolver).
|
|
1310
|
-
this.
|
|
1325
|
+
protoOf(MutableClassicSolver).h2z = function (fact) {
|
|
1326
|
+
this.z27(MutableClassicSolver$assertA$lambda_0(fact));
|
|
1311
1327
|
};
|
|
1312
1328
|
protoOf(MutableClassicSolver).assertAFact = function (fact) {
|
|
1313
|
-
return this.
|
|
1329
|
+
return this.h2z(fact);
|
|
1314
1330
|
};
|
|
1315
|
-
protoOf(MutableClassicSolver).
|
|
1316
|
-
this.
|
|
1331
|
+
protoOf(MutableClassicSolver).a1j = function (clause) {
|
|
1332
|
+
this.z27(MutableClassicSolver$assertZ$lambda(clause));
|
|
1317
1333
|
};
|
|
1318
1334
|
protoOf(MutableClassicSolver).assertZ = function (clause) {
|
|
1319
|
-
return this.
|
|
1335
|
+
return this.a1j(clause);
|
|
1320
1336
|
};
|
|
1321
|
-
protoOf(MutableClassicSolver).
|
|
1322
|
-
this.
|
|
1337
|
+
protoOf(MutableClassicSolver).i2z = function (fact) {
|
|
1338
|
+
this.z27(MutableClassicSolver$assertZ$lambda_0(fact));
|
|
1323
1339
|
};
|
|
1324
1340
|
protoOf(MutableClassicSolver).assertZFact = function (fact) {
|
|
1325
|
-
return this.
|
|
1341
|
+
return this.i2z(fact);
|
|
1326
1342
|
};
|
|
1327
|
-
protoOf(MutableClassicSolver).
|
|
1328
|
-
var result = this.
|
|
1329
|
-
this.
|
|
1343
|
+
protoOf(MutableClassicSolver).t1q = function (clause) {
|
|
1344
|
+
var result = this.n1s().retract(clause);
|
|
1345
|
+
this.z27(MutableClassicSolver$retract$lambda(result, clause));
|
|
1330
1346
|
return result;
|
|
1331
1347
|
};
|
|
1332
1348
|
protoOf(MutableClassicSolver).retract = function (clause) {
|
|
1333
|
-
return this.
|
|
1349
|
+
return this.t1q(clause);
|
|
1334
1350
|
};
|
|
1335
|
-
protoOf(MutableClassicSolver).
|
|
1336
|
-
var result = this.
|
|
1337
|
-
this.
|
|
1351
|
+
protoOf(MutableClassicSolver).u1q = function (fact) {
|
|
1352
|
+
var result = this.n1s().retractByHead(fact);
|
|
1353
|
+
this.z27(MutableClassicSolver$retract$lambda_0(result));
|
|
1338
1354
|
return result;
|
|
1339
1355
|
};
|
|
1340
1356
|
protoOf(MutableClassicSolver).retractByHead = function (fact) {
|
|
1341
|
-
return this.
|
|
1357
|
+
return this.u1q(fact);
|
|
1342
1358
|
};
|
|
1343
|
-
protoOf(MutableClassicSolver).
|
|
1344
|
-
var result = this.
|
|
1345
|
-
this.
|
|
1359
|
+
protoOf(MutableClassicSolver).f1j = function (clause) {
|
|
1360
|
+
var result = this.n1s().retractAll(clause);
|
|
1361
|
+
this.z27(MutableClassicSolver$retractAll$lambda(result));
|
|
1346
1362
|
return result;
|
|
1347
1363
|
};
|
|
1348
1364
|
protoOf(MutableClassicSolver).retractAll = function (clause) {
|
|
1349
|
-
return this.
|
|
1365
|
+
return this.f1j(clause);
|
|
1350
1366
|
};
|
|
1351
|
-
protoOf(MutableClassicSolver).
|
|
1352
|
-
var result = this.
|
|
1353
|
-
this.
|
|
1367
|
+
protoOf(MutableClassicSolver).j2z = function (fact) {
|
|
1368
|
+
var result = this.n1s().retractAllByHead(fact);
|
|
1369
|
+
this.z27(MutableClassicSolver$retractAll$lambda_0(result));
|
|
1354
1370
|
return result;
|
|
1355
1371
|
};
|
|
1356
1372
|
protoOf(MutableClassicSolver).retractAllBeHead = function (fact) {
|
|
1357
|
-
return this.
|
|
1373
|
+
return this.j2z(fact);
|
|
1358
1374
|
};
|
|
1359
|
-
protoOf(MutableClassicSolver).
|
|
1360
|
-
this.
|
|
1375
|
+
protoOf(MutableClassicSolver).k2z = function (name, value) {
|
|
1376
|
+
this.z27(MutableClassicSolver$setFlag$lambda(name, value));
|
|
1361
1377
|
};
|
|
1362
1378
|
protoOf(MutableClassicSolver).setFlag = function (name, value) {
|
|
1363
|
-
return this.
|
|
1379
|
+
return this.k2z(name, value);
|
|
1364
1380
|
};
|
|
1365
|
-
protoOf(MutableClassicSolver).
|
|
1366
|
-
this.
|
|
1381
|
+
protoOf(MutableClassicSolver).l2z = function (flag) {
|
|
1382
|
+
this.z27(MutableClassicSolver$setFlag$lambda_0(flag));
|
|
1367
1383
|
};
|
|
1368
1384
|
protoOf(MutableClassicSolver).setFlagPair = function (flag) {
|
|
1369
|
-
return this.
|
|
1385
|
+
return this.l2z(flag);
|
|
1370
1386
|
};
|
|
1371
|
-
protoOf(MutableClassicSolver).
|
|
1372
|
-
this.
|
|
1387
|
+
protoOf(MutableClassicSolver).m2z = function (flag) {
|
|
1388
|
+
this.z27(MutableClassicSolver$setFlag$lambda_1(flag));
|
|
1373
1389
|
};
|
|
1374
1390
|
protoOf(MutableClassicSolver).setFlagNotable = function (flag) {
|
|
1375
|
-
return this.
|
|
1391
|
+
return this.m2z(flag);
|
|
1376
1392
|
};
|
|
1377
|
-
protoOf(MutableClassicSolver).
|
|
1378
|
-
this.
|
|
1393
|
+
protoOf(MutableClassicSolver).n2z = function (stdIn) {
|
|
1394
|
+
this.z27(MutableClassicSolver$setStandardInput$lambda(stdIn));
|
|
1379
1395
|
};
|
|
1380
1396
|
protoOf(MutableClassicSolver).setStandardInput = function (stdIn) {
|
|
1381
|
-
return this.
|
|
1397
|
+
return this.n2z(stdIn);
|
|
1382
1398
|
};
|
|
1383
|
-
protoOf(MutableClassicSolver).
|
|
1384
|
-
this.
|
|
1399
|
+
protoOf(MutableClassicSolver).o2z = function (stdErr) {
|
|
1400
|
+
this.z27(MutableClassicSolver$setStandardError$lambda(stdErr));
|
|
1385
1401
|
};
|
|
1386
1402
|
protoOf(MutableClassicSolver).setStandardError = function (stdErr) {
|
|
1387
|
-
return this.
|
|
1403
|
+
return this.o2z(stdErr);
|
|
1388
1404
|
};
|
|
1389
|
-
protoOf(MutableClassicSolver).
|
|
1390
|
-
this.
|
|
1405
|
+
protoOf(MutableClassicSolver).p2z = function (stdOut) {
|
|
1406
|
+
this.z27(MutableClassicSolver$setStandardOutput$lambda(stdOut));
|
|
1391
1407
|
};
|
|
1392
1408
|
protoOf(MutableClassicSolver).setStandardOutput = function (stdOut) {
|
|
1393
|
-
return this.
|
|
1409
|
+
return this.p2z(stdOut);
|
|
1394
1410
|
};
|
|
1395
|
-
protoOf(MutableClassicSolver).
|
|
1396
|
-
this.
|
|
1411
|
+
protoOf(MutableClassicSolver).q2z = function (warnings) {
|
|
1412
|
+
this.z27(MutableClassicSolver$setWarnings$lambda(warnings));
|
|
1397
1413
|
};
|
|
1398
1414
|
protoOf(MutableClassicSolver).setWarnings = function (warnings) {
|
|
1399
|
-
return this.
|
|
1415
|
+
return this.q2z(warnings);
|
|
1400
1416
|
};
|
|
1401
|
-
protoOf(MutableClassicSolver).
|
|
1417
|
+
protoOf(MutableClassicSolver).b1t = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
1402
1418
|
return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
1403
1419
|
};
|
|
1404
|
-
protoOf(MutableClassicSolver).
|
|
1420
|
+
protoOf(MutableClassicSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
|
|
1421
|
+
return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof MutableClassicSolver) ? $super : THROW_CCE());
|
|
1422
|
+
};
|
|
1423
|
+
protoOf(MutableClassicSolver).c1q = function () {
|
|
1405
1424
|
return this.copy();
|
|
1406
1425
|
};
|
|
1407
1426
|
protoOf(MutableClassicSolver).clone = function () {
|
|
1408
|
-
return this.
|
|
1427
|
+
return this.c1q();
|
|
1409
1428
|
};
|
|
1410
1429
|
function MutableClassicSolver() {
|
|
1411
1430
|
}
|
|
1412
|
-
function SolutionIterator$Companion$of$lambda(
|
|
1431
|
+
function SolutionIterator$Companion$of$lambda(_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
1413
1432
|
return Unit_instance;
|
|
1414
1433
|
}
|
|
1415
1434
|
function Companion() {
|
|
1416
1435
|
}
|
|
1417
|
-
protoOf(Companion).
|
|
1436
|
+
protoOf(Companion).w2y = function (initialState, onStateTransition) {
|
|
1418
1437
|
return new SimpleSolutionIterator(initialState, onStateTransition);
|
|
1419
1438
|
};
|
|
1420
1439
|
protoOf(Companion).of = function (initialState, onStateTransition, $super) {
|
|
@@ -1425,82 +1444,89 @@
|
|
|
1425
1444
|
tmp = onStateTransition;
|
|
1426
1445
|
}
|
|
1427
1446
|
onStateTransition = tmp;
|
|
1428
|
-
return $super === VOID ? this.
|
|
1447
|
+
return $super === VOID ? this.w2y(initialState, onStateTransition) : $super.w2y.call(this, initialState, onStateTransition);
|
|
1429
1448
|
};
|
|
1430
1449
|
var Companion_instance_15;
|
|
1431
|
-
function
|
|
1450
|
+
function Companion_getInstance_5() {
|
|
1432
1451
|
return Companion_instance_15;
|
|
1433
1452
|
}
|
|
1434
1453
|
function AbstractEndState(solution, context) {
|
|
1435
1454
|
AbstractState.call(this, context);
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1455
|
+
this.t2z_1 = solution;
|
|
1456
|
+
this.u2z_1 = context;
|
|
1438
1457
|
}
|
|
1439
|
-
protoOf(AbstractEndState).
|
|
1440
|
-
return this.
|
|
1458
|
+
protoOf(AbstractEndState).f2f = function () {
|
|
1459
|
+
return this.t2z_1;
|
|
1441
1460
|
};
|
|
1442
|
-
protoOf(AbstractEndState).
|
|
1443
|
-
return this.
|
|
1461
|
+
protoOf(AbstractEndState).h8 = function () {
|
|
1462
|
+
return this.u2z_1;
|
|
1444
1463
|
};
|
|
1445
|
-
protoOf(AbstractEndState).
|
|
1464
|
+
protoOf(AbstractEndState).v2z = function () {
|
|
1446
1465
|
throw NoSuchElementException_init_$Create$();
|
|
1447
1466
|
};
|
|
1448
1467
|
protoOf(AbstractEndState).asEndState = function () {
|
|
1449
|
-
return this.
|
|
1468
|
+
return this.d30();
|
|
1450
1469
|
};
|
|
1451
1470
|
function AbstractState$executionTime$delegate$lambda(this$0) {
|
|
1452
1471
|
return function () {
|
|
1453
|
-
return this$0.
|
|
1472
|
+
return this$0.a30();
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
function AbstractState$_get_executionTime_$ref_gwd5wm() {
|
|
1476
|
+
return function (p0) {
|
|
1477
|
+
return p0.y2z();
|
|
1454
1478
|
};
|
|
1455
1479
|
}
|
|
1456
1480
|
function AbstractState(context) {
|
|
1457
|
-
this.
|
|
1481
|
+
this.w2z_1 = context;
|
|
1458
1482
|
var tmp = this;
|
|
1459
|
-
tmp.
|
|
1483
|
+
tmp.x2z_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
|
|
1460
1484
|
}
|
|
1461
|
-
protoOf(AbstractState).
|
|
1462
|
-
return this.
|
|
1485
|
+
protoOf(AbstractState).h8 = function () {
|
|
1486
|
+
return this.w2z_1;
|
|
1463
1487
|
};
|
|
1464
|
-
protoOf(AbstractState).
|
|
1488
|
+
protoOf(AbstractState).y2z = function () {
|
|
1489
|
+
var tmp0 = this.x2z_1;
|
|
1490
|
+
var tmp = KProperty1;
|
|
1465
1491
|
// Inline function 'kotlin.getValue' call
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
return this_0.r2();
|
|
1492
|
+
getPropertyCallableRef('executionTime', 1, tmp, AbstractState$_get_executionTime_$ref_gwd5wm(), null);
|
|
1493
|
+
return tmp0.e2();
|
|
1469
1494
|
};
|
|
1470
|
-
protoOf(AbstractState).
|
|
1471
|
-
return this.
|
|
1495
|
+
protoOf(AbstractState).z2z = function () {
|
|
1496
|
+
return subtract(this.y2z(), this.h8().q2v_1) > this.h8().r2v_1;
|
|
1472
1497
|
};
|
|
1473
|
-
protoOf(AbstractState).
|
|
1498
|
+
protoOf(AbstractState).t = function () {
|
|
1474
1499
|
var tmp;
|
|
1475
|
-
if (this.
|
|
1476
|
-
var tmp0_exceededDuration = this.
|
|
1477
|
-
var tmp1_context = this.
|
|
1478
|
-
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.
|
|
1500
|
+
if (this.z2z()) {
|
|
1501
|
+
var tmp0_exceededDuration = this.h8().r2v_1;
|
|
1502
|
+
var tmp1_context = this.h8();
|
|
1503
|
+
tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.h8().s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30()));
|
|
1479
1504
|
} else {
|
|
1480
|
-
tmp = this.
|
|
1505
|
+
tmp = this.v2z();
|
|
1481
1506
|
}
|
|
1482
1507
|
return tmp;
|
|
1483
1508
|
};
|
|
1484
1509
|
protoOf(AbstractState).next = function () {
|
|
1485
|
-
return this.
|
|
1510
|
+
return this.t();
|
|
1486
1511
|
};
|
|
1487
|
-
protoOf(AbstractState).
|
|
1512
|
+
protoOf(AbstractState).a30 = function () {
|
|
1488
1513
|
return currentTimeInstant();
|
|
1489
1514
|
};
|
|
1490
|
-
protoOf(AbstractState).
|
|
1515
|
+
protoOf(AbstractState).b30 = function () {
|
|
1491
1516
|
// Inline function 'kotlin.Long.plus' call
|
|
1492
|
-
|
|
1517
|
+
var this_0 = this.h8().v2v_1;
|
|
1518
|
+
return add(this_0, fromInt(1));
|
|
1493
1519
|
};
|
|
1494
|
-
protoOf(AbstractState).
|
|
1520
|
+
protoOf(AbstractState).f30 = function (_this__u8e3s4) {
|
|
1521
|
+
var tmp0 = _this__u8e3s4.x2v_1;
|
|
1495
1522
|
var tmp$ret$2;
|
|
1496
1523
|
$l$block: {
|
|
1497
1524
|
// Inline function 'kotlin.sequences.first' call
|
|
1498
|
-
var
|
|
1499
|
-
while (
|
|
1500
|
-
var element =
|
|
1501
|
-
|
|
1502
|
-
var
|
|
1503
|
-
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qw();
|
|
1525
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
1526
|
+
while (_iterator__ex2g4s.s()) {
|
|
1527
|
+
var element = _iterator__ex2g4s.t();
|
|
1528
|
+
var tmp0_safe_receiver = element.b2v_1;
|
|
1529
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zt();
|
|
1504
1530
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1505
1531
|
if (!(tmp === Throw_getInstance().signature.name)) {
|
|
1506
1532
|
tmp$ret$2 = element;
|
|
@@ -1511,39 +1537,32 @@
|
|
|
1511
1537
|
}
|
|
1512
1538
|
return tmp$ret$2;
|
|
1513
1539
|
};
|
|
1514
|
-
function executionTime$factory() {
|
|
1515
|
-
return getPropertyCallableRef('executionTime', 1, KProperty1, function (receiver) {
|
|
1516
|
-
return receiver.y37();
|
|
1517
|
-
}, null);
|
|
1518
|
-
}
|
|
1519
1540
|
function EndState() {
|
|
1520
1541
|
}
|
|
1521
1542
|
function State() {
|
|
1522
1543
|
}
|
|
1523
1544
|
function StateBacktracking(context) {
|
|
1524
1545
|
AbstractState.call(this, context);
|
|
1525
|
-
this.
|
|
1546
|
+
this.i30_1 = context;
|
|
1526
1547
|
}
|
|
1527
|
-
protoOf(StateBacktracking).
|
|
1528
|
-
return this.
|
|
1548
|
+
protoOf(StateBacktracking).h8 = function () {
|
|
1549
|
+
return this.i30_1;
|
|
1529
1550
|
};
|
|
1530
|
-
protoOf(StateBacktracking).
|
|
1531
|
-
var choicePoints = this.
|
|
1551
|
+
protoOf(StateBacktracking).v2z = function () {
|
|
1552
|
+
var choicePoints = this.i30_1.s2v_1;
|
|
1532
1553
|
var tmp;
|
|
1533
1554
|
// Inline function 'kotlin.let' call
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
if (choicePoints === null ? true : !choicePoints.w34()) {
|
|
1537
|
-
tmp = new StateEnd(Companion_instance_8.no(this.f38_1.j33_1), this.f38_1.p34(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b38()));
|
|
1555
|
+
if (choicePoints === null || !choicePoints.z2w()) {
|
|
1556
|
+
tmp = new StateEnd(Companion_instance_8.no(this.i30_1.m2v_1), this.i30_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30()));
|
|
1538
1557
|
} else {
|
|
1558
|
+
var tmp0 = ensureNotNull(choicePoints).a2x();
|
|
1539
1559
|
var tmp$ret$3;
|
|
1540
1560
|
$l$block: {
|
|
1541
1561
|
// Inline function 'kotlin.sequences.first' call
|
|
1542
|
-
var
|
|
1543
|
-
while (
|
|
1544
|
-
var element =
|
|
1545
|
-
|
|
1546
|
-
if (element.j34().gr()) {
|
|
1562
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
1563
|
+
while (_iterator__ex2g4s.s()) {
|
|
1564
|
+
var element = _iterator__ex2g4s.t();
|
|
1565
|
+
if (element.m2w().lp()) {
|
|
1547
1566
|
tmp$ret$3 = element;
|
|
1548
1567
|
break $l$block;
|
|
1549
1568
|
}
|
|
@@ -1551,9 +1570,9 @@
|
|
|
1551
1570
|
throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
|
|
1552
1571
|
}
|
|
1553
1572
|
var choicePointContext = tmp$ret$3;
|
|
1554
|
-
var nextContext = choicePointContext.
|
|
1573
|
+
var nextContext = choicePointContext.r2w(this.i30_1);
|
|
1555
1574
|
var tmp_0;
|
|
1556
|
-
if (nextContext.
|
|
1575
|
+
if (nextContext.p2v_1.lp()) {
|
|
1557
1576
|
tmp_0 = new StatePrimitiveExecution(nextContext);
|
|
1558
1577
|
} else {
|
|
1559
1578
|
tmp_0 = new StateRuleExecution(nextContext);
|
|
@@ -1562,66 +1581,71 @@
|
|
|
1562
1581
|
}
|
|
1563
1582
|
return tmp;
|
|
1564
1583
|
};
|
|
1565
|
-
protoOf(StateBacktracking).
|
|
1566
|
-
return this.
|
|
1584
|
+
protoOf(StateBacktracking).e30 = function (context) {
|
|
1585
|
+
return this.j30(context);
|
|
1567
1586
|
};
|
|
1568
|
-
protoOf(StateBacktracking).
|
|
1587
|
+
protoOf(StateBacktracking).clone = function (context, $super) {
|
|
1588
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateBacktracking) ? $super : THROW_CCE());
|
|
1589
|
+
};
|
|
1590
|
+
protoOf(StateBacktracking).j30 = function (context) {
|
|
1569
1591
|
return new StateBacktracking(context);
|
|
1570
1592
|
};
|
|
1571
1593
|
protoOf(StateBacktracking).toString = function () {
|
|
1572
|
-
return 'StateBacktracking(context=' + this.
|
|
1594
|
+
return 'StateBacktracking(context=' + this.i30_1.toString() + ')';
|
|
1573
1595
|
};
|
|
1574
1596
|
protoOf(StateBacktracking).hashCode = function () {
|
|
1575
|
-
return this.
|
|
1597
|
+
return this.i30_1.hashCode();
|
|
1576
1598
|
};
|
|
1577
1599
|
protoOf(StateBacktracking).equals = function (other) {
|
|
1578
1600
|
if (this === other)
|
|
1579
1601
|
return true;
|
|
1580
1602
|
if (!(other instanceof StateBacktracking))
|
|
1581
1603
|
return false;
|
|
1582
|
-
|
|
1583
|
-
if (!this.f38_1.equals(tmp0_other_with_cast.f38_1))
|
|
1604
|
+
if (!this.i30_1.equals(other.i30_1))
|
|
1584
1605
|
return false;
|
|
1585
1606
|
return true;
|
|
1586
1607
|
};
|
|
1587
1608
|
function StateEnd(solution, context) {
|
|
1588
1609
|
AbstractEndState.call(this, solution, context);
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1610
|
+
this.o30_1 = solution;
|
|
1611
|
+
this.p30_1 = context;
|
|
1591
1612
|
}
|
|
1592
|
-
protoOf(StateEnd).
|
|
1593
|
-
return this.
|
|
1613
|
+
protoOf(StateEnd).f2f = function () {
|
|
1614
|
+
return this.o30_1;
|
|
1594
1615
|
};
|
|
1595
|
-
protoOf(StateEnd).
|
|
1596
|
-
return this.
|
|
1616
|
+
protoOf(StateEnd).h8 = function () {
|
|
1617
|
+
return this.p30_1;
|
|
1597
1618
|
};
|
|
1598
|
-
protoOf(StateEnd).
|
|
1619
|
+
protoOf(StateEnd).z2z = function () {
|
|
1599
1620
|
return false;
|
|
1600
1621
|
};
|
|
1601
|
-
protoOf(StateEnd).
|
|
1622
|
+
protoOf(StateEnd).v2z = function () {
|
|
1602
1623
|
var tmp;
|
|
1603
|
-
if (this.
|
|
1604
|
-
var tmp0_$this = this.
|
|
1605
|
-
var tmp1_step = this.
|
|
1606
|
-
var tmp2_startTime = this.
|
|
1607
|
-
tmp = new StateBacktracking(tmp0_$this.
|
|
1624
|
+
if (this.p30_1.z2w()) {
|
|
1625
|
+
var tmp0_$this = this.p30_1;
|
|
1626
|
+
var tmp1_step = this.b30();
|
|
1627
|
+
var tmp2_startTime = this.a30();
|
|
1628
|
+
tmp = new StateBacktracking(tmp0_$this.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
|
|
1608
1629
|
} else {
|
|
1609
|
-
tmp = protoOf(AbstractEndState).
|
|
1630
|
+
tmp = protoOf(AbstractEndState).v2z.call(this);
|
|
1610
1631
|
}
|
|
1611
1632
|
return tmp;
|
|
1612
1633
|
};
|
|
1613
|
-
protoOf(StateEnd).
|
|
1614
|
-
return this.
|
|
1634
|
+
protoOf(StateEnd).e30 = function (context) {
|
|
1635
|
+
return this.q30(this.o30_1, context);
|
|
1636
|
+
};
|
|
1637
|
+
protoOf(StateEnd).clone = function (context, $super) {
|
|
1638
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateEnd) ? $super : THROW_CCE());
|
|
1615
1639
|
};
|
|
1616
|
-
protoOf(StateEnd).
|
|
1640
|
+
protoOf(StateEnd).q30 = function (solution, context) {
|
|
1617
1641
|
return new StateEnd(solution, context);
|
|
1618
1642
|
};
|
|
1619
1643
|
protoOf(StateEnd).toString = function () {
|
|
1620
|
-
return 'StateEnd(solution=' + this.
|
|
1644
|
+
return 'StateEnd(solution=' + toString(this.o30_1) + ', context=' + this.p30_1.toString() + ')';
|
|
1621
1645
|
};
|
|
1622
1646
|
protoOf(StateEnd).hashCode = function () {
|
|
1623
|
-
var result = hashCode(this.
|
|
1624
|
-
result = imul(result, 31) + this.
|
|
1647
|
+
var result = hashCode(this.o30_1);
|
|
1648
|
+
result = imul(result, 31) + this.p30_1.hashCode() | 0;
|
|
1625
1649
|
return result;
|
|
1626
1650
|
};
|
|
1627
1651
|
protoOf(StateEnd).equals = function (other) {
|
|
@@ -1629,20 +1653,19 @@
|
|
|
1629
1653
|
return true;
|
|
1630
1654
|
if (!(other instanceof StateEnd))
|
|
1631
1655
|
return false;
|
|
1632
|
-
|
|
1633
|
-
if (!equals(this.l38_1, tmp0_other_with_cast.l38_1))
|
|
1656
|
+
if (!equals(this.o30_1, other.o30_1))
|
|
1634
1657
|
return false;
|
|
1635
|
-
if (!this.
|
|
1658
|
+
if (!this.p30_1.equals(other.p30_1))
|
|
1636
1659
|
return false;
|
|
1637
1660
|
return true;
|
|
1638
1661
|
};
|
|
1639
1662
|
protoOf(StateEnd).asEndState = function () {
|
|
1640
|
-
return this.
|
|
1663
|
+
return this.d30();
|
|
1641
1664
|
};
|
|
1642
|
-
function isCatch(
|
|
1665
|
+
function isCatch($this, _this__u8e3s4) {
|
|
1643
1666
|
var tmp;
|
|
1644
|
-
if (_this__u8e3s4.
|
|
1645
|
-
var tmp_0 = _this__u8e3s4.
|
|
1667
|
+
if (_this__u8e3s4.tt() === 3) {
|
|
1668
|
+
var tmp_0 = _this__u8e3s4.zt();
|
|
1646
1669
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1647
1670
|
tmp = tmp_0 === Catch_getInstance().signature.name;
|
|
1648
1671
|
} else {
|
|
@@ -1650,16 +1673,16 @@
|
|
|
1650
1673
|
}
|
|
1651
1674
|
return tmp;
|
|
1652
1675
|
}
|
|
1653
|
-
function getExceptionContent(
|
|
1676
|
+
function getExceptionContent($this, _this__u8e3s4) {
|
|
1654
1677
|
var tmp;
|
|
1655
1678
|
if (_this__u8e3s4 instanceof MessageError) {
|
|
1656
|
-
tmp = _this__u8e3s4.
|
|
1679
|
+
tmp = _this__u8e3s4.s23();
|
|
1657
1680
|
} else {
|
|
1658
|
-
tmp = _this__u8e3s4.
|
|
1681
|
+
tmp = _this__u8e3s4.u21();
|
|
1659
1682
|
}
|
|
1660
1683
|
return tmp;
|
|
1661
1684
|
}
|
|
1662
|
-
function toPublicException(
|
|
1685
|
+
function toPublicException($this, _this__u8e3s4) {
|
|
1663
1686
|
var tmp;
|
|
1664
1687
|
if (_this__u8e3s4 instanceof MessageError) {
|
|
1665
1688
|
tmp = Companion_instance_9.forUncaughtError(_this__u8e3s4);
|
|
@@ -1669,17 +1692,17 @@
|
|
|
1669
1692
|
return tmp;
|
|
1670
1693
|
}
|
|
1671
1694
|
function _get_finalState__3aigq8($this) {
|
|
1672
|
-
return new StateHalt(toPublicException($this
|
|
1695
|
+
return new StateHalt(toPublicException($this, $this.t30_1), $this.u30_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
1673
1696
|
}
|
|
1674
1697
|
function _get_handleExceptionInParentContext__yj3v4e($this) {
|
|
1675
|
-
return new StateException($this.
|
|
1698
|
+
return new StateException($this.t30_1, ensureNotNull($this.u30_1.t2v_1).s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
1676
1699
|
}
|
|
1677
1700
|
function handleStruct($this, unificator, catchGoal, error) {
|
|
1678
1701
|
var tmp;
|
|
1679
|
-
if (isCatch(
|
|
1680
|
-
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent(
|
|
1702
|
+
if (isCatch($this, catchGoal)) {
|
|
1703
|
+
var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent($this, error));
|
|
1681
1704
|
tmp = handleCatch($this, catchGoal, catcher);
|
|
1682
|
-
} else if ($this.
|
|
1705
|
+
} else if ($this.u30_1.p2y()) {
|
|
1683
1706
|
tmp = _get_finalState__3aigq8($this);
|
|
1684
1707
|
} else {
|
|
1685
1708
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1688,18 +1711,18 @@
|
|
|
1688
1711
|
}
|
|
1689
1712
|
function handleCatch($this, catchGoal, catcher) {
|
|
1690
1713
|
var tmp;
|
|
1691
|
-
if (catcher.
|
|
1692
|
-
var tmp_0 = $this.
|
|
1714
|
+
if (catcher.f10()) {
|
|
1715
|
+
var tmp_0 = $this.u30_1.l2v_1.plus(catcher);
|
|
1693
1716
|
var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
|
|
1694
1717
|
var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
|
|
1695
|
-
var newGoals = plus_0(toGoals(subGoals), $this.
|
|
1696
|
-
var tmp0_$this = $this.
|
|
1718
|
+
var newGoals = plus_0(toGoals(subGoals), $this.u30_1.n2v_1.jp());
|
|
1719
|
+
var tmp0_$this = $this.u30_1;
|
|
1697
1720
|
var tmp1_rules = Companion_instance_7.empty();
|
|
1698
1721
|
var tmp2_primitives = Companion_instance_7.empty();
|
|
1699
1722
|
var tmp3_substitution = newSubstitution.castToUnifier();
|
|
1700
|
-
var tmp4_step = $this.
|
|
1701
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
1702
|
-
} else if ($this.
|
|
1723
|
+
var tmp4_step = $this.b30();
|
|
1724
|
+
tmp = new StateGoalSelection(tmp0_$this.s2w(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));
|
|
1725
|
+
} else if ($this.u30_1.p2y()) {
|
|
1703
1726
|
tmp = _get_finalState__3aigq8($this);
|
|
1704
1727
|
} else {
|
|
1705
1728
|
tmp = _get_handleExceptionInParentContext__yj3v4e($this);
|
|
@@ -1707,42 +1730,45 @@
|
|
|
1707
1730
|
return tmp;
|
|
1708
1731
|
}
|
|
1709
1732
|
function StateException$handleCatch$lambda(this$0) {
|
|
1710
|
-
return function (
|
|
1733
|
+
return function (_destruct__k2r9zo) {
|
|
1711
1734
|
// Inline function 'kotlin.collections.component1' call
|
|
1712
|
-
var it =
|
|
1713
|
-
return this$0.
|
|
1735
|
+
var it = _destruct__k2r9zo.d2();
|
|
1736
|
+
return this$0.u30_1.q2y(it);
|
|
1714
1737
|
};
|
|
1715
1738
|
}
|
|
1716
1739
|
function StateException(exception, context) {
|
|
1717
1740
|
AbstractState.call(this, context);
|
|
1718
|
-
this.
|
|
1719
|
-
this.
|
|
1741
|
+
this.t30_1 = exception;
|
|
1742
|
+
this.u30_1 = context;
|
|
1720
1743
|
}
|
|
1721
|
-
protoOf(StateException).
|
|
1722
|
-
return this.
|
|
1744
|
+
protoOf(StateException).h8 = function () {
|
|
1745
|
+
return this.u30_1;
|
|
1723
1746
|
};
|
|
1724
|
-
protoOf(StateException).
|
|
1747
|
+
protoOf(StateException).v2z = function () {
|
|
1725
1748
|
var tmp;
|
|
1726
|
-
if (this.
|
|
1727
|
-
var catchGoal = ensureNotNull(this.
|
|
1728
|
-
tmp = catchGoal.
|
|
1749
|
+
if (this.t30_1 instanceof LogicError) {
|
|
1750
|
+
var catchGoal = ensureNotNull(this.u30_1.n2y());
|
|
1751
|
+
tmp = catchGoal.fu() ? handleStruct(this, this.u30_1.c2v_1, catchGoal.castToStruct(), this.t30_1) : this.u30_1.p2y() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
|
|
1729
1752
|
} else {
|
|
1730
1753
|
tmp = _get_finalState__3aigq8(this);
|
|
1731
1754
|
}
|
|
1732
1755
|
return tmp;
|
|
1733
1756
|
};
|
|
1734
|
-
protoOf(StateException).
|
|
1735
|
-
return this.
|
|
1757
|
+
protoOf(StateException).e30 = function (context) {
|
|
1758
|
+
return this.v30(this.t30_1, context);
|
|
1759
|
+
};
|
|
1760
|
+
protoOf(StateException).clone = function (context, $super) {
|
|
1761
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateException) ? $super : THROW_CCE());
|
|
1736
1762
|
};
|
|
1737
|
-
protoOf(StateException).
|
|
1763
|
+
protoOf(StateException).v30 = function (exception, context) {
|
|
1738
1764
|
return new StateException(exception, context);
|
|
1739
1765
|
};
|
|
1740
1766
|
protoOf(StateException).toString = function () {
|
|
1741
|
-
return 'StateException(exception=' + this.
|
|
1767
|
+
return 'StateException(exception=' + this.t30_1.toString() + ', context=' + this.u30_1.toString() + ')';
|
|
1742
1768
|
};
|
|
1743
1769
|
protoOf(StateException).hashCode = function () {
|
|
1744
|
-
var result = hashCode(this.
|
|
1745
|
-
result = imul(result, 31) + this.
|
|
1770
|
+
var result = hashCode(this.t30_1);
|
|
1771
|
+
result = imul(result, 31) + this.u30_1.hashCode() | 0;
|
|
1746
1772
|
return result;
|
|
1747
1773
|
};
|
|
1748
1774
|
protoOf(StateException).equals = function (other) {
|
|
@@ -1750,105 +1776,107 @@
|
|
|
1750
1776
|
return true;
|
|
1751
1777
|
if (!(other instanceof StateException))
|
|
1752
1778
|
return false;
|
|
1753
|
-
|
|
1754
|
-
if (!equals(this.q38_1, tmp0_other_with_cast.q38_1))
|
|
1779
|
+
if (!equals(this.t30_1, other.t30_1))
|
|
1755
1780
|
return false;
|
|
1756
|
-
if (!this.
|
|
1781
|
+
if (!this.u30_1.equals(other.u30_1))
|
|
1757
1782
|
return false;
|
|
1758
1783
|
return true;
|
|
1759
1784
|
};
|
|
1760
1785
|
function StateGoalSelection$computeNext$lambda(this$0) {
|
|
1761
|
-
return function (
|
|
1786
|
+
return function (_destruct__k2r9zo) {
|
|
1762
1787
|
// Inline function 'kotlin.collections.component1' call
|
|
1763
|
-
var it =
|
|
1764
|
-
return this$0.
|
|
1788
|
+
var it = _destruct__k2r9zo.d2();
|
|
1789
|
+
return this$0.y30_1.q2y(it);
|
|
1765
1790
|
};
|
|
1766
1791
|
}
|
|
1767
1792
|
function StateGoalSelection(context) {
|
|
1768
1793
|
AbstractState.call(this, context);
|
|
1769
|
-
this.
|
|
1794
|
+
this.y30_1 = context;
|
|
1770
1795
|
}
|
|
1771
|
-
protoOf(StateGoalSelection).
|
|
1772
|
-
return this.
|
|
1796
|
+
protoOf(StateGoalSelection).h8 = function () {
|
|
1797
|
+
return this.y30_1;
|
|
1773
1798
|
};
|
|
1774
|
-
protoOf(StateGoalSelection).
|
|
1799
|
+
protoOf(StateGoalSelection).v2z = function () {
|
|
1775
1800
|
var tmp;
|
|
1776
|
-
if (this.
|
|
1801
|
+
if (this.y30_1.n2v_1.mp()) {
|
|
1777
1802
|
var tmp_0;
|
|
1778
|
-
if (this.
|
|
1779
|
-
tmp_0 = new StateEnd(Companion_instance_8.
|
|
1803
|
+
if (this.y30_1.p2y()) {
|
|
1804
|
+
tmp_0 = new StateEnd(Companion_instance_8.w1t(this.y30_1.m2v_1, this.y30_1.l2v_1), this.y30_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30()));
|
|
1780
1805
|
} else {
|
|
1781
1806
|
// Inline function 'kotlin.let' call
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
var
|
|
1785
|
-
var
|
|
1786
|
-
var
|
|
1787
|
-
var
|
|
1788
|
-
var
|
|
1789
|
-
var
|
|
1790
|
-
var
|
|
1791
|
-
var
|
|
1792
|
-
var
|
|
1793
|
-
var
|
|
1794
|
-
var
|
|
1795
|
-
var
|
|
1796
|
-
var
|
|
1797
|
-
var
|
|
1798
|
-
var tmp13_customData = this.v38_1.h33_1;
|
|
1799
|
-
var tmp$ret$1 = it.p34(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);
|
|
1807
|
+
var it = ensureNotNull(this.y30_1.t2v_1);
|
|
1808
|
+
var tmp0_choicePoints = this.y30_1.s2v_1;
|
|
1809
|
+
var tmp1_flags = this.y30_1.e2v_1;
|
|
1810
|
+
var tmp2_dynamicKb = this.y30_1.g2v_1;
|
|
1811
|
+
var tmp3_staticKb = this.y30_1.f2v_1;
|
|
1812
|
+
var tmp4_substitution = this.y30_1.l2v_1.zz(StateGoalSelection$computeNext$lambda(this));
|
|
1813
|
+
var tmp5_goals = it.n2v_1.jp();
|
|
1814
|
+
var tmp6_procedure = it.b2v_1;
|
|
1815
|
+
var tmp7_step = this.b30();
|
|
1816
|
+
var tmp8_startTime = this.y30_1.q2v_1;
|
|
1817
|
+
var tmp9_operators = this.y30_1.h2v_1;
|
|
1818
|
+
var tmp10_inputChannels = this.y30_1.i2v_1;
|
|
1819
|
+
var tmp11_outputChannels = this.y30_1.j2v_1;
|
|
1820
|
+
var tmp12_libraries = this.y30_1.d2v_1;
|
|
1821
|
+
var tmp13_customData = this.y30_1.k2v_1;
|
|
1822
|
+
var tmp$ret$1 = it.s2w(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);
|
|
1800
1823
|
tmp_0 = new StateGoalSelection(tmp$ret$1);
|
|
1801
1824
|
}
|
|
1802
1825
|
tmp = tmp_0;
|
|
1803
|
-
} else if (equals(this.
|
|
1804
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1826
|
+
} else if (equals(this.y30_1.e2v_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().z25_1)) {
|
|
1827
|
+
tmp = new StatePrimitiveSelection(this.y30_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30(), plus_1(this.y30_1.w2v_1, toSet(ensureNotNull(this.y30_1.n2v_1.kp()).bu()))));
|
|
1805
1828
|
} else {
|
|
1806
|
-
tmp = new StatePrimitiveSelection(this.
|
|
1829
|
+
tmp = new StatePrimitiveSelection(this.y30_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30()));
|
|
1807
1830
|
}
|
|
1808
1831
|
return tmp;
|
|
1809
1832
|
};
|
|
1810
|
-
protoOf(StateGoalSelection).
|
|
1811
|
-
return this.
|
|
1833
|
+
protoOf(StateGoalSelection).e30 = function (context) {
|
|
1834
|
+
return this.j30(context);
|
|
1812
1835
|
};
|
|
1813
|
-
protoOf(StateGoalSelection).
|
|
1836
|
+
protoOf(StateGoalSelection).clone = function (context, $super) {
|
|
1837
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateGoalSelection) ? $super : THROW_CCE());
|
|
1838
|
+
};
|
|
1839
|
+
protoOf(StateGoalSelection).j30 = function (context) {
|
|
1814
1840
|
return new StateGoalSelection(context);
|
|
1815
1841
|
};
|
|
1816
1842
|
protoOf(StateGoalSelection).toString = function () {
|
|
1817
|
-
return 'StateGoalSelection(context=' + this.
|
|
1843
|
+
return 'StateGoalSelection(context=' + this.y30_1.toString() + ')';
|
|
1818
1844
|
};
|
|
1819
1845
|
protoOf(StateGoalSelection).hashCode = function () {
|
|
1820
|
-
return this.
|
|
1846
|
+
return this.y30_1.hashCode();
|
|
1821
1847
|
};
|
|
1822
1848
|
protoOf(StateGoalSelection).equals = function (other) {
|
|
1823
1849
|
if (this === other)
|
|
1824
1850
|
return true;
|
|
1825
1851
|
if (!(other instanceof StateGoalSelection))
|
|
1826
1852
|
return false;
|
|
1827
|
-
|
|
1828
|
-
if (!this.v38_1.equals(tmp0_other_with_cast.v38_1))
|
|
1853
|
+
if (!this.y30_1.equals(other.y30_1))
|
|
1829
1854
|
return false;
|
|
1830
1855
|
return true;
|
|
1831
1856
|
};
|
|
1832
1857
|
function StateHalt(exception, context) {
|
|
1833
|
-
AbstractEndState.call(this, Companion_instance_8.halt(context.
|
|
1834
|
-
this.
|
|
1835
|
-
this.
|
|
1858
|
+
AbstractEndState.call(this, Companion_instance_8.halt(context.m2v_1, exception), context);
|
|
1859
|
+
this.d31_1 = exception;
|
|
1860
|
+
this.e31_1 = context;
|
|
1836
1861
|
}
|
|
1837
|
-
protoOf(StateHalt).
|
|
1838
|
-
return this.
|
|
1862
|
+
protoOf(StateHalt).h8 = function () {
|
|
1863
|
+
return this.e31_1;
|
|
1864
|
+
};
|
|
1865
|
+
protoOf(StateHalt).e30 = function (context) {
|
|
1866
|
+
return this.v30(this.d31_1, context);
|
|
1839
1867
|
};
|
|
1840
|
-
protoOf(StateHalt).
|
|
1841
|
-
return this.
|
|
1868
|
+
protoOf(StateHalt).clone = function (context, $super) {
|
|
1869
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateHalt) ? $super : THROW_CCE());
|
|
1842
1870
|
};
|
|
1843
|
-
protoOf(StateHalt).
|
|
1871
|
+
protoOf(StateHalt).v30 = function (exception, context) {
|
|
1844
1872
|
return new StateHalt(exception, context);
|
|
1845
1873
|
};
|
|
1846
1874
|
protoOf(StateHalt).toString = function () {
|
|
1847
|
-
return 'StateHalt(exception=' + this.
|
|
1875
|
+
return 'StateHalt(exception=' + this.d31_1.toString() + ', context=' + this.e31_1.toString() + ')';
|
|
1848
1876
|
};
|
|
1849
1877
|
protoOf(StateHalt).hashCode = function () {
|
|
1850
|
-
var result = hashCode(this.
|
|
1851
|
-
result = imul(result, 31) + this.
|
|
1878
|
+
var result = hashCode(this.d31_1);
|
|
1879
|
+
result = imul(result, 31) + this.e31_1.hashCode() | 0;
|
|
1852
1880
|
return result;
|
|
1853
1881
|
};
|
|
1854
1882
|
protoOf(StateHalt).equals = function (other) {
|
|
@@ -1856,99 +1884,98 @@
|
|
|
1856
1884
|
return true;
|
|
1857
1885
|
if (!(other instanceof StateHalt))
|
|
1858
1886
|
return false;
|
|
1859
|
-
|
|
1860
|
-
if (!equals(this.a39_1, tmp0_other_with_cast.a39_1))
|
|
1887
|
+
if (!equals(this.d31_1, other.d31_1))
|
|
1861
1888
|
return false;
|
|
1862
|
-
if (!this.
|
|
1889
|
+
if (!this.e31_1.equals(other.e31_1))
|
|
1863
1890
|
return false;
|
|
1864
1891
|
return true;
|
|
1865
1892
|
};
|
|
1866
1893
|
protoOf(StateHalt).asEndState = function () {
|
|
1867
|
-
return this.
|
|
1894
|
+
return this.d30();
|
|
1868
1895
|
};
|
|
1869
1896
|
function StateInit(context) {
|
|
1870
1897
|
AbstractState.call(this, context);
|
|
1871
|
-
this.
|
|
1898
|
+
this.h31_1 = context;
|
|
1872
1899
|
}
|
|
1873
|
-
protoOf(StateInit).
|
|
1874
|
-
return this.
|
|
1900
|
+
protoOf(StateInit).h8 = function () {
|
|
1901
|
+
return this.h31_1;
|
|
1875
1902
|
};
|
|
1876
|
-
protoOf(StateInit).
|
|
1877
|
-
var tmp0_$this = this.
|
|
1878
|
-
var tmp1_goals = toGoals(this.
|
|
1903
|
+
protoOf(StateInit).v2z = function () {
|
|
1904
|
+
var tmp0_$this = this.h31_1;
|
|
1905
|
+
var tmp1_goals = toGoals(this.h31_1.m2v_1);
|
|
1879
1906
|
var tmp2_rules = Companion_instance_7.empty();
|
|
1880
1907
|
var tmp3_primitives = Companion_instance_7.empty();
|
|
1881
1908
|
var tmp4_substitution = Companion_getInstance_2().empty();
|
|
1882
|
-
var tmp5_customData = this.
|
|
1909
|
+
var tmp5_customData = this.h31_1.k2v_1.preservePersistent();
|
|
1883
1910
|
var tmp6_relevantVariables = emptySet();
|
|
1884
|
-
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.
|
|
1911
|
+
return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_customData, tmp4_substitution, VOID, tmp1_goals, tmp2_rules, tmp3_primitives, VOID, VOID, null, null, 0, 1n, tmp6_relevantVariables), Companion_instance_7.empty()));
|
|
1885
1912
|
};
|
|
1886
|
-
protoOf(StateInit).
|
|
1887
|
-
return this.
|
|
1913
|
+
protoOf(StateInit).e30 = function (context) {
|
|
1914
|
+
return this.j30(context);
|
|
1888
1915
|
};
|
|
1889
|
-
protoOf(StateInit).
|
|
1916
|
+
protoOf(StateInit).clone = function (context, $super) {
|
|
1917
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateInit) ? $super : THROW_CCE());
|
|
1918
|
+
};
|
|
1919
|
+
protoOf(StateInit).j30 = function (context) {
|
|
1890
1920
|
return new StateInit(context);
|
|
1891
1921
|
};
|
|
1892
1922
|
protoOf(StateInit).toString = function () {
|
|
1893
|
-
return 'StateInit(context=' + this.
|
|
1923
|
+
return 'StateInit(context=' + this.h31_1.toString() + ')';
|
|
1894
1924
|
};
|
|
1895
1925
|
protoOf(StateInit).hashCode = function () {
|
|
1896
|
-
return this.
|
|
1926
|
+
return this.h31_1.hashCode();
|
|
1897
1927
|
};
|
|
1898
1928
|
protoOf(StateInit).equals = function (other) {
|
|
1899
1929
|
if (this === other)
|
|
1900
1930
|
return true;
|
|
1901
1931
|
if (!(other instanceof StateInit))
|
|
1902
1932
|
return false;
|
|
1903
|
-
|
|
1904
|
-
if (!this.e39_1.equals(tmp0_other_with_cast.e39_1))
|
|
1933
|
+
if (!this.h31_1.equals(other.h31_1))
|
|
1905
1934
|
return false;
|
|
1906
1935
|
return true;
|
|
1907
1936
|
};
|
|
1908
|
-
function copyFromCurrentPrimitive(
|
|
1909
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1937
|
+
function copyFromCurrentPrimitive($this, _this__u8e3s4, goals, procedureFromAncestor, substitution) {
|
|
1938
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2v_1.kp();
|
|
1910
1939
|
var tmp;
|
|
1911
1940
|
if (tmp0_safe_receiver == null) {
|
|
1912
1941
|
tmp = null;
|
|
1913
1942
|
} else {
|
|
1914
1943
|
// Inline function 'kotlin.let' call
|
|
1915
|
-
|
|
1916
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveExecution.copyFromCurrentPrimitive.<anonymous>' call
|
|
1917
|
-
tmp = _this__u8e3s4.p36(tmp0_safe_receiver.sideEffects);
|
|
1944
|
+
tmp = _this__u8e3s4.s2y(tmp0_safe_receiver.sideEffects);
|
|
1918
1945
|
}
|
|
1919
1946
|
var tmp1_elvis_lhs = tmp;
|
|
1920
1947
|
var ctx = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
1921
|
-
var tmp4_goals = goals == null ? _this__u8e3s4.
|
|
1922
|
-
var tmp_0 = drop(_this__u8e3s4.
|
|
1948
|
+
var tmp4_goals = goals == null ? _this__u8e3s4.n2v_1 : goals;
|
|
1949
|
+
var tmp_0 = drop(_this__u8e3s4.x2v_1, procedureFromAncestor);
|
|
1923
1950
|
var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
|
|
1924
1951
|
var tmp6_primitives = Companion_instance_7.empty();
|
|
1925
|
-
var tmp_1 = substitution == null ? _this__u8e3s4.
|
|
1952
|
+
var tmp_1 = substitution == null ? _this__u8e3s4.l2v_1 : substitution;
|
|
1926
1953
|
var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
|
|
1927
|
-
var tmp8_step = $this.
|
|
1928
|
-
return ctx.
|
|
1954
|
+
var tmp8_step = $this.b30();
|
|
1955
|
+
return ctx.s2w(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);
|
|
1929
1956
|
}
|
|
1930
|
-
function copyFromCurrentPrimitive$default(
|
|
1957
|
+
function copyFromCurrentPrimitive$default($this, _this__u8e3s4, goals, procedureFromAncestor, substitution, $super) {
|
|
1931
1958
|
goals = goals === VOID ? null : goals;
|
|
1932
1959
|
procedureFromAncestor = procedureFromAncestor === VOID ? 0 : procedureFromAncestor;
|
|
1933
1960
|
substitution = substitution === VOID ? null : substitution;
|
|
1934
|
-
return copyFromCurrentPrimitive(
|
|
1961
|
+
return copyFromCurrentPrimitive($this, _this__u8e3s4, goals, procedureFromAncestor, substitution);
|
|
1935
1962
|
}
|
|
1936
1963
|
function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
|
|
1937
|
-
return it.
|
|
1964
|
+
return it.b2v_1;
|
|
1938
1965
|
}
|
|
1939
1966
|
function StatePrimitiveExecution$computeNext$lambda(this$0) {
|
|
1940
1967
|
return function (it) {
|
|
1941
|
-
return new StateGoalSelection(copyFromCurrentPrimitive(this$0
|
|
1968
|
+
return new StateGoalSelection(copyFromCurrentPrimitive(this$0, this$0.k31_1, this$0.k31_1.n2v_1.jp(), 1, this$0.k31_1.c2v_1.mergeWithOccurCheck(this$0.k31_1.l2v_1, it.g1s(), false)));
|
|
1942
1969
|
};
|
|
1943
1970
|
}
|
|
1944
1971
|
function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
|
|
1945
1972
|
return function (it) {
|
|
1946
|
-
return new StateBacktracking(copyFromCurrentPrimitive$default(
|
|
1973
|
+
return new StateBacktracking(copyFromCurrentPrimitive$default(this$0, ensureNotNull(this$0.k31_1.t2v_1)));
|
|
1947
1974
|
};
|
|
1948
1975
|
}
|
|
1949
1976
|
function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
|
|
1950
1977
|
return function (it) {
|
|
1951
|
-
return new StateException(it.
|
|
1978
|
+
return new StateException(it.m1t().updateLastContext(this$0.f30(this$0.k31_1)), copyFromCurrentPrimitive$default(this$0, this$0.k31_1));
|
|
1952
1979
|
};
|
|
1953
1980
|
}
|
|
1954
1981
|
function StatePrimitiveExecution$computeNext$lambda_2(it) {
|
|
@@ -1956,15 +1983,15 @@
|
|
|
1956
1983
|
}
|
|
1957
1984
|
function StatePrimitiveExecution(context) {
|
|
1958
1985
|
AbstractState.call(this, context);
|
|
1959
|
-
this.
|
|
1986
|
+
this.k31_1 = context;
|
|
1960
1987
|
}
|
|
1961
|
-
protoOf(StatePrimitiveExecution).
|
|
1962
|
-
return this.
|
|
1988
|
+
protoOf(StatePrimitiveExecution).h8 = function () {
|
|
1989
|
+
return this.k31_1;
|
|
1963
1990
|
};
|
|
1964
|
-
protoOf(StatePrimitiveExecution).
|
|
1991
|
+
protoOf(StatePrimitiveExecution).v2z = function () {
|
|
1965
1992
|
var tmp;
|
|
1966
1993
|
try {
|
|
1967
|
-
var tmp0_safe_receiver = this.
|
|
1994
|
+
var tmp0_safe_receiver = this.k31_1.p2v_1.kp();
|
|
1968
1995
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
|
|
1969
1996
|
var tmp_0;
|
|
1970
1997
|
if (tmp1_safe_receiver == null) {
|
|
@@ -1973,15 +2000,15 @@
|
|
|
1973
2000
|
var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
|
|
1974
2001
|
var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
|
|
1975
2002
|
var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
|
|
1976
|
-
tmp_0 = tmp1_safe_receiver.
|
|
2003
|
+
tmp_0 = tmp1_safe_receiver.q1t(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
|
|
1977
2004
|
}
|
|
1978
2005
|
var tmp2_elvis_lhs = tmp_0;
|
|
1979
|
-
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this
|
|
2006
|
+
tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this, this.k31_1)) : tmp2_elvis_lhs;
|
|
1980
2007
|
} catch ($p) {
|
|
1981
2008
|
var tmp_4;
|
|
1982
2009
|
if ($p instanceof ResolutionException) {
|
|
1983
2010
|
var exception = $p;
|
|
1984
|
-
tmp_4 = new StateException(exception.updateLastContext(this.
|
|
2011
|
+
tmp_4 = new StateException(exception.updateLastContext(this.f30(this.k31_1)), this.k31_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30()));
|
|
1985
2012
|
} else {
|
|
1986
2013
|
throw $p;
|
|
1987
2014
|
}
|
|
@@ -1989,57 +2016,57 @@
|
|
|
1989
2016
|
}
|
|
1990
2017
|
return tmp;
|
|
1991
2018
|
};
|
|
1992
|
-
protoOf(StatePrimitiveExecution).
|
|
1993
|
-
return this.
|
|
2019
|
+
protoOf(StatePrimitiveExecution).e30 = function (context) {
|
|
2020
|
+
return this.j30(context);
|
|
2021
|
+
};
|
|
2022
|
+
protoOf(StatePrimitiveExecution).clone = function (context, $super) {
|
|
2023
|
+
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveExecution) ? $super : THROW_CCE());
|
|
1994
2024
|
};
|
|
1995
|
-
protoOf(StatePrimitiveExecution).
|
|
2025
|
+
protoOf(StatePrimitiveExecution).j30 = function (context) {
|
|
1996
2026
|
return new StatePrimitiveExecution(context);
|
|
1997
2027
|
};
|
|
1998
2028
|
protoOf(StatePrimitiveExecution).toString = function () {
|
|
1999
|
-
return 'StatePrimitiveExecution(context=' + this.
|
|
2029
|
+
return 'StatePrimitiveExecution(context=' + this.k31_1.toString() + ')';
|
|
2000
2030
|
};
|
|
2001
2031
|
protoOf(StatePrimitiveExecution).hashCode = function () {
|
|
2002
|
-
return this.
|
|
2032
|
+
return this.k31_1.hashCode();
|
|
2003
2033
|
};
|
|
2004
2034
|
protoOf(StatePrimitiveExecution).equals = function (other) {
|
|
2005
2035
|
if (this === other)
|
|
2006
2036
|
return true;
|
|
2007
2037
|
if (!(other instanceof StatePrimitiveExecution))
|
|
2008
2038
|
return false;
|
|
2009
|
-
|
|
2010
|
-
if (!this.h39_1.equals(tmp0_other_with_cast.h39_1))
|
|
2039
|
+
if (!this.k31_1.equals(other.k31_1))
|
|
2011
2040
|
return false;
|
|
2012
2041
|
return true;
|
|
2013
2042
|
};
|
|
2014
2043
|
function exceptionalState($this, exception) {
|
|
2015
|
-
return new StateException(exception, $this.
|
|
2044
|
+
return new StateException(exception, $this.n31_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
2016
2045
|
}
|
|
2017
2046
|
function StatePrimitiveSelection(context) {
|
|
2018
2047
|
AbstractState.call(this, context);
|
|
2019
|
-
this.
|
|
2048
|
+
this.n31_1 = context;
|
|
2020
2049
|
}
|
|
2021
|
-
protoOf(StatePrimitiveSelection).
|
|
2022
|
-
return this.
|
|
2050
|
+
protoOf(StatePrimitiveSelection).h8 = function () {
|
|
2051
|
+
return this.n31_1;
|
|
2023
2052
|
};
|
|
2024
|
-
protoOf(StatePrimitiveSelection).
|
|
2053
|
+
protoOf(StatePrimitiveSelection).v2z = function () {
|
|
2025
2054
|
// Inline function 'kotlin.with' call
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
var $this$with = this.k39_1;
|
|
2029
|
-
var goal = ensureNotNull($this$with.m36());
|
|
2055
|
+
var $this$with = this.n31_1;
|
|
2056
|
+
var goal = ensureNotNull($this$with.n2y());
|
|
2030
2057
|
var tmp;
|
|
2031
|
-
if (goal.
|
|
2032
|
-
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.
|
|
2033
|
-
} else if (goal.
|
|
2058
|
+
if (goal.vu()) {
|
|
2059
|
+
tmp = exceptionalState(this, Companion_instance_11.forGoal(this.n31_1, extractSignature(ensureNotNull(this.n31_1.b2v_1)), goal.castToVar()));
|
|
2060
|
+
} else if (goal.fu()) {
|
|
2034
2061
|
var goalStruct = goal.castToStruct();
|
|
2035
2062
|
var signature = extractSignature(goalStruct);
|
|
2036
2063
|
var tmp_0;
|
|
2037
|
-
if ($this$with.
|
|
2064
|
+
if ($this$with.d2v_1.hasPrimitive(signature)) {
|
|
2038
2065
|
var childContext = createChild($this$with);
|
|
2039
2066
|
var tmp_1;
|
|
2040
2067
|
try {
|
|
2041
|
-
var request = toRequest(childContext, goalStruct, signature, this.
|
|
2042
|
-
var tmp0_elvis_lhs = $this$with.
|
|
2068
|
+
var request = toRequest(childContext, goalStruct, signature, this.y2z());
|
|
2069
|
+
var tmp0_elvis_lhs = $this$with.d2v_1.x2a().h2(signature);
|
|
2043
2070
|
var tmp_2;
|
|
2044
2071
|
if (tmp0_elvis_lhs == null) {
|
|
2045
2072
|
var message = 'Inconsistent behaviour of Library.contains and Library.get';
|
|
@@ -2054,7 +2081,7 @@
|
|
|
2054
2081
|
var tmp_3;
|
|
2055
2082
|
if ($p instanceof ResolutionException) {
|
|
2056
2083
|
var exception = $p;
|
|
2057
|
-
tmp_3 = exceptionalState(this, exception.updateLastContext(this.
|
|
2084
|
+
tmp_3 = exceptionalState(this, exception.updateLastContext(this.f30(childContext)));
|
|
2058
2085
|
} else {
|
|
2059
2086
|
throw $p;
|
|
2060
2087
|
}
|
|
@@ -2062,104 +2089,106 @@
|
|
|
2062
2089
|
}
|
|
2063
2090
|
tmp_0 = tmp_1;
|
|
2064
2091
|
} else {
|
|
2065
|
-
tmp_0 = new StateRuleSelection(this.
|
|
2092
|
+
tmp_0 = new StateRuleSelection(this.n31_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b30()));
|
|
2066
2093
|
}
|
|
2067
2094
|
tmp = tmp_0;
|
|
2068
2095
|
} else {
|
|
2069
2096
|
var tmp_4 = Companion_instance_10;
|
|
2070
|
-
var tmp1_safe_receiver = this.
|
|
2097
|
+
var tmp1_safe_receiver = this.n31_1.b2v_1;
|
|
2071
2098
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
|
|
2072
|
-
tmp = exceptionalState(this, tmp_4.forGoal(this.
|
|
2099
|
+
tmp = exceptionalState(this, tmp_4.forGoal(this.n31_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
|
|
2073
2100
|
}
|
|
2074
2101
|
return tmp;
|
|
2075
2102
|
};
|
|
2076
|
-
protoOf(StatePrimitiveSelection).
|
|
2077
|
-
return this.
|
|
2103
|
+
protoOf(StatePrimitiveSelection).e30 = function (context) {
|
|
2104
|
+
return this.j30(context);
|
|
2105
|
+
};
|
|
2106
|
+
protoOf(StatePrimitiveSelection).clone = function (context, $super) {
|
|
2107
|
+
return this.clone(context, ($super == null ? true : $super instanceof StatePrimitiveSelection) ? $super : THROW_CCE());
|
|
2078
2108
|
};
|
|
2079
|
-
protoOf(StatePrimitiveSelection).
|
|
2109
|
+
protoOf(StatePrimitiveSelection).j30 = function (context) {
|
|
2080
2110
|
return new StatePrimitiveSelection(context);
|
|
2081
2111
|
};
|
|
2082
2112
|
protoOf(StatePrimitiveSelection).toString = function () {
|
|
2083
|
-
return 'StatePrimitiveSelection(context=' + this.
|
|
2113
|
+
return 'StatePrimitiveSelection(context=' + this.n31_1.toString() + ')';
|
|
2084
2114
|
};
|
|
2085
2115
|
protoOf(StatePrimitiveSelection).hashCode = function () {
|
|
2086
|
-
return this.
|
|
2116
|
+
return this.n31_1.hashCode();
|
|
2087
2117
|
};
|
|
2088
2118
|
protoOf(StatePrimitiveSelection).equals = function (other) {
|
|
2089
2119
|
if (this === other)
|
|
2090
2120
|
return true;
|
|
2091
2121
|
if (!(other instanceof StatePrimitiveSelection))
|
|
2092
2122
|
return false;
|
|
2093
|
-
|
|
2094
|
-
if (!this.k39_1.equals(tmp0_other_with_cast.k39_1))
|
|
2123
|
+
if (!this.n31_1.equals(other.n31_1))
|
|
2095
2124
|
return false;
|
|
2096
2125
|
return true;
|
|
2097
2126
|
};
|
|
2098
2127
|
function _get_failureState__yid9tw($this) {
|
|
2099
|
-
return new StateBacktracking($this.
|
|
2128
|
+
return new StateBacktracking($this.q31_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_instance_7.empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
2100
2129
|
}
|
|
2101
2130
|
function StateRuleExecution(context) {
|
|
2102
2131
|
AbstractState.call(this, context);
|
|
2103
|
-
this.
|
|
2132
|
+
this.q31_1 = context;
|
|
2104
2133
|
}
|
|
2105
|
-
protoOf(StateRuleExecution).
|
|
2106
|
-
return this.
|
|
2134
|
+
protoOf(StateRuleExecution).h8 = function () {
|
|
2135
|
+
return this.q31_1;
|
|
2107
2136
|
};
|
|
2108
|
-
protoOf(StateRuleExecution).
|
|
2137
|
+
protoOf(StateRuleExecution).v2z = function () {
|
|
2109
2138
|
// Inline function 'kotlin.with' call
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
var $this$with = this.n39_1;
|
|
2113
|
-
var substitution = $this$with.z32_1.mgu(ensureNotNull($this$with.m36()), ensureNotNull($this$with.l33_1.fr()).wy());
|
|
2139
|
+
var $this$with = this.q31_1;
|
|
2140
|
+
var substitution = $this$with.c2v_1.mgu(ensureNotNull($this$with.n2y()), ensureNotNull($this$with.o2v_1.kp()).fw());
|
|
2114
2141
|
var tmp;
|
|
2115
|
-
if (substitution.
|
|
2116
|
-
var newSubstitution = this.
|
|
2117
|
-
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.
|
|
2118
|
-
var tmp0_$this = this.
|
|
2142
|
+
if (substitution.f10()) {
|
|
2143
|
+
var newSubstitution = this.q31_1.l2v_1.plus(substitution).castToUnifier();
|
|
2144
|
+
var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.q31_1.o2v_1.kp()), newSubstitution).gw().getSubstituted(newSubstitution, []);
|
|
2145
|
+
var tmp0_$this = this.q31_1;
|
|
2119
2146
|
var tmp1_goals = toGoals(subGoals);
|
|
2120
2147
|
var tmp2_rules = Companion_instance_7.empty();
|
|
2121
|
-
var tmp3_step = this.
|
|
2122
|
-
tmp = new StateGoalSelection(tmp0_$this.
|
|
2148
|
+
var tmp3_step = this.b30();
|
|
2149
|
+
tmp = new StateGoalSelection(tmp0_$this.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
|
|
2123
2150
|
} else {
|
|
2124
2151
|
tmp = _get_failureState__yid9tw(this);
|
|
2125
2152
|
}
|
|
2126
2153
|
return tmp;
|
|
2127
2154
|
};
|
|
2128
|
-
protoOf(StateRuleExecution).
|
|
2129
|
-
return this.
|
|
2155
|
+
protoOf(StateRuleExecution).e30 = function (context) {
|
|
2156
|
+
return this.j30(context);
|
|
2130
2157
|
};
|
|
2131
|
-
protoOf(StateRuleExecution).
|
|
2158
|
+
protoOf(StateRuleExecution).clone = function (context, $super) {
|
|
2159
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateRuleExecution) ? $super : THROW_CCE());
|
|
2160
|
+
};
|
|
2161
|
+
protoOf(StateRuleExecution).j30 = function (context) {
|
|
2132
2162
|
return new StateRuleExecution(context);
|
|
2133
2163
|
};
|
|
2134
2164
|
protoOf(StateRuleExecution).toString = function () {
|
|
2135
|
-
return 'StateRuleExecution(context=' + this.
|
|
2165
|
+
return 'StateRuleExecution(context=' + this.q31_1.toString() + ')';
|
|
2136
2166
|
};
|
|
2137
2167
|
protoOf(StateRuleExecution).hashCode = function () {
|
|
2138
|
-
return this.
|
|
2168
|
+
return this.q31_1.hashCode();
|
|
2139
2169
|
};
|
|
2140
2170
|
protoOf(StateRuleExecution).equals = function (other) {
|
|
2141
2171
|
if (this === other)
|
|
2142
2172
|
return true;
|
|
2143
2173
|
if (!(other instanceof StateRuleExecution))
|
|
2144
2174
|
return false;
|
|
2145
|
-
|
|
2146
|
-
if (!this.n39_1.equals(tmp0_other_with_cast.n39_1))
|
|
2175
|
+
if (!this.q31_1.equals(other.q31_1))
|
|
2147
2176
|
return false;
|
|
2148
2177
|
return true;
|
|
2149
2178
|
};
|
|
2150
2179
|
function None() {
|
|
2151
2180
|
None_instance = this;
|
|
2152
2181
|
CutLimit.call(this);
|
|
2153
|
-
this.
|
|
2154
|
-
this.
|
|
2182
|
+
this.r31_1 = -1;
|
|
2183
|
+
this.s31_1 = null;
|
|
2155
2184
|
}
|
|
2156
|
-
protoOf(None).
|
|
2157
|
-
return this.
|
|
2185
|
+
protoOf(None).t31 = function () {
|
|
2186
|
+
return this.r31_1;
|
|
2158
2187
|
};
|
|
2159
|
-
protoOf(None).
|
|
2160
|
-
return this.
|
|
2188
|
+
protoOf(None).f1s = function () {
|
|
2189
|
+
return this.s31_1;
|
|
2161
2190
|
};
|
|
2162
|
-
protoOf(None).
|
|
2191
|
+
protoOf(None).u31 = function () {
|
|
2163
2192
|
return true;
|
|
2164
2193
|
};
|
|
2165
2194
|
var None_instance;
|
|
@@ -2170,51 +2199,50 @@
|
|
|
2170
2199
|
}
|
|
2171
2200
|
function Actual(depthToCut, procedure) {
|
|
2172
2201
|
CutLimit.call(this);
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2202
|
+
this.v31_1 = depthToCut;
|
|
2203
|
+
this.w31_1 = procedure;
|
|
2175
2204
|
}
|
|
2176
|
-
protoOf(Actual).
|
|
2177
|
-
return this.
|
|
2205
|
+
protoOf(Actual).t31 = function () {
|
|
2206
|
+
return this.v31_1;
|
|
2178
2207
|
};
|
|
2179
|
-
protoOf(Actual).
|
|
2180
|
-
return this.
|
|
2208
|
+
protoOf(Actual).f1s = function () {
|
|
2209
|
+
return this.w31_1;
|
|
2181
2210
|
};
|
|
2182
2211
|
function CutLimit() {
|
|
2183
2212
|
}
|
|
2184
|
-
protoOf(CutLimit).
|
|
2213
|
+
protoOf(CutLimit).u31 = function () {
|
|
2185
2214
|
return false;
|
|
2186
2215
|
};
|
|
2187
2216
|
function Companion_0() {
|
|
2188
2217
|
Companion_instance_16 = this;
|
|
2189
|
-
this.
|
|
2190
|
-
this.
|
|
2218
|
+
this.x31_1 = Catch_getInstance().signature;
|
|
2219
|
+
this.y31_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
|
|
2191
2220
|
}
|
|
2192
2221
|
var Companion_instance_16;
|
|
2193
|
-
function
|
|
2222
|
+
function Companion_getInstance_6() {
|
|
2194
2223
|
if (Companion_instance_16 == null)
|
|
2195
2224
|
new Companion_0();
|
|
2196
2225
|
return Companion_instance_16;
|
|
2197
2226
|
}
|
|
2198
2227
|
function _get_failureState__yid9tw_0($this) {
|
|
2199
|
-
return new StateBacktracking($this.
|
|
2228
|
+
return new StateBacktracking($this.b32_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
2200
2229
|
}
|
|
2201
2230
|
function exceptionalState_0($this, exception) {
|
|
2202
|
-
return new StateException(exception, $this.
|
|
2231
|
+
return new StateException(exception, $this.b32_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
2203
2232
|
}
|
|
2204
2233
|
function missingProcedure($this, ruleSources, missing) {
|
|
2205
|
-
var unknown = $this.
|
|
2234
|
+
var unknown = $this.b32_1.e2v_1.get(Unknown_getInstance());
|
|
2206
2235
|
var tmp;
|
|
2207
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2236
|
+
if (equals(unknown, Unknown_getInstance().f26_1)) {
|
|
2208
2237
|
tmp = _get_failureState__yid9tw_0($this);
|
|
2209
2238
|
} else {
|
|
2210
2239
|
var tmp_0;
|
|
2211
2240
|
var tmp$ret$1;
|
|
2212
2241
|
$l$block: {
|
|
2213
2242
|
// Inline function 'kotlin.sequences.none' call
|
|
2214
|
-
var
|
|
2215
|
-
while (
|
|
2216
|
-
var element =
|
|
2217
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
|
|
2243
|
+
var _iterator__ex2g4s = ruleSources.p();
|
|
2244
|
+
while (_iterator__ex2g4s.s()) {
|
|
2245
|
+
var element = _iterator__ex2g4s.t();
|
|
2218
2246
|
if (element.containsIndicator(missing.toIndicator())) {
|
|
2219
2247
|
tmp$ret$1 = false;
|
|
2220
2248
|
break $l$block;
|
|
@@ -2224,14 +2252,12 @@
|
|
|
2224
2252
|
}
|
|
2225
2253
|
if (tmp$ret$1) {
|
|
2226
2254
|
var tmp_1;
|
|
2227
|
-
if (equals(unknown, Unknown_getInstance().
|
|
2228
|
-
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.
|
|
2229
|
-
} else if (equals(unknown, Unknown_getInstance().
|
|
2255
|
+
if (equals(unknown, Unknown_getInstance().d26_1)) {
|
|
2256
|
+
tmp_1 = exceptionalState_0($this, Companion_instance_12.forProcedure($this.b32_1, missing));
|
|
2257
|
+
} else if (equals(unknown, Unknown_getInstance().e26_1)) {
|
|
2230
2258
|
// Inline function 'kotlin.also' call
|
|
2231
2259
|
var this_0 = _get_failureState__yid9tw_0($this);
|
|
2232
|
-
|
|
2233
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
|
|
2234
|
-
$this.y39_1.p1v().write(MissingPredicate_init_$Create$($this.y39_1, missing));
|
|
2260
|
+
$this.b32_1.x1s().write(MissingPredicate_init_$Create$($this.b32_1, missing));
|
|
2235
2261
|
tmp_1 = this_0;
|
|
2236
2262
|
} else {
|
|
2237
2263
|
tmp_1 = _get_failureState__yid9tw_0($this);
|
|
@@ -2245,25 +2271,25 @@
|
|
|
2245
2271
|
return tmp;
|
|
2246
2272
|
}
|
|
2247
2273
|
function _get_ignoreState__t4wl8y($this) {
|
|
2248
|
-
return new StateGoalSelection($this.
|
|
2274
|
+
return new StateGoalSelection($this.b32_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b32_1.n2v_1.jp(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.b30()));
|
|
2249
2275
|
}
|
|
2250
|
-
function isCut(
|
|
2251
|
-
return _this__u8e3s4.
|
|
2276
|
+
function isCut($this, _this__u8e3s4) {
|
|
2277
|
+
return _this__u8e3s4.ut() && _this__u8e3s4.castToAtom().e2() === '!';
|
|
2252
2278
|
}
|
|
2253
|
-
function computeCutLimit(
|
|
2279
|
+
function computeCutLimit($this, _this__u8e3s4, magicCut) {
|
|
2254
2280
|
var tmp;
|
|
2255
2281
|
if (magicCut) {
|
|
2256
|
-
tmp = firstOrNull(_this__u8e3s4.
|
|
2282
|
+
tmp = firstOrNull(_this__u8e3s4.x2v_1);
|
|
2257
2283
|
} else {
|
|
2284
|
+
var tmp0 = _this__u8e3s4.x2v_1;
|
|
2258
2285
|
var tmp$ret$1;
|
|
2259
2286
|
$l$block: {
|
|
2260
2287
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2261
|
-
var
|
|
2262
|
-
while (
|
|
2263
|
-
var element =
|
|
2264
|
-
|
|
2265
|
-
var
|
|
2266
|
-
var tmp0_safe_receiver = element.y32_1;
|
|
2288
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
2289
|
+
while (_iterator__ex2g4s.s()) {
|
|
2290
|
+
var element = _iterator__ex2g4s.t();
|
|
2291
|
+
var tmp_0 = Companion_getInstance_6().y31_1;
|
|
2292
|
+
var tmp0_safe_receiver = element.b2v_1;
|
|
2267
2293
|
if (!contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver))) {
|
|
2268
2294
|
tmp$ret$1 = element;
|
|
2269
2295
|
break $l$block;
|
|
@@ -2278,32 +2304,31 @@
|
|
|
2278
2304
|
if (cutLimit == null) {
|
|
2279
2305
|
tmp_1 = None_getInstance();
|
|
2280
2306
|
} else {
|
|
2281
|
-
tmp_1 = new Actual(cutLimit.
|
|
2307
|
+
tmp_1 = new Actual(cutLimit.u2v_1, cutLimit.b2v_1);
|
|
2282
2308
|
}
|
|
2283
2309
|
return tmp_1;
|
|
2284
2310
|
}
|
|
2285
2311
|
function cutCanBeSkipped($this, cutLimit, executionContext) {
|
|
2286
|
-
return
|
|
2312
|
+
return cutLimit.u31() || cutLimit.t31() > executionContext.u2v_1 || (cutLimit.t31() === executionContext.u2v_1 && !equals(cutLimit.f1s(), executionContext.b2v_1));
|
|
2287
2313
|
}
|
|
2288
|
-
function performCut(
|
|
2314
|
+
function performCut($this, _this__u8e3s4, cutLimit) {
|
|
2289
2315
|
var tmp;
|
|
2290
2316
|
if (_this__u8e3s4 === null) {
|
|
2291
2317
|
tmp = null;
|
|
2292
|
-
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.
|
|
2318
|
+
} else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.n2w()))) {
|
|
2293
2319
|
tmp = _this__u8e3s4;
|
|
2294
2320
|
} else {
|
|
2295
|
-
var tmp_0 = _this__u8e3s4.
|
|
2321
|
+
var tmp_0 = _this__u8e3s4.a2x();
|
|
2296
2322
|
var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
|
|
2297
2323
|
var tmp_1;
|
|
2298
2324
|
if (any(cutCandidates)) {
|
|
2299
2325
|
var tmp$ret$1;
|
|
2300
2326
|
$l$block: {
|
|
2301
2327
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2302
|
-
var
|
|
2303
|
-
while (
|
|
2304
|
-
var element =
|
|
2305
|
-
|
|
2306
|
-
if (ensureNotNull(element.k34()).r33_1 <= cutLimit.q39()) {
|
|
2328
|
+
var _iterator__ex2g4s = cutCandidates.p();
|
|
2329
|
+
while (_iterator__ex2g4s.s()) {
|
|
2330
|
+
var element = _iterator__ex2g4s.t();
|
|
2331
|
+
if (ensureNotNull(element.n2w()).u2v_1 <= cutLimit.t31()) {
|
|
2307
2332
|
tmp$ret$1 = element;
|
|
2308
2333
|
break $l$block;
|
|
2309
2334
|
}
|
|
@@ -2311,7 +2336,7 @@
|
|
|
2311
2336
|
tmp$ret$1 = null;
|
|
2312
2337
|
}
|
|
2313
2338
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
2314
|
-
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2339
|
+
tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o2w();
|
|
2315
2340
|
} else {
|
|
2316
2341
|
tmp_1 = _this__u8e3s4;
|
|
2317
2342
|
}
|
|
@@ -2319,25 +2344,21 @@
|
|
|
2319
2344
|
}
|
|
2320
2345
|
return tmp;
|
|
2321
2346
|
}
|
|
2322
|
-
function _get_isTailRecursive__h5eso7(
|
|
2347
|
+
function _get_isTailRecursive__h5eso7($this, _this__u8e3s4) {
|
|
2323
2348
|
var tmp;
|
|
2324
|
-
if (_this__u8e3s4.
|
|
2349
|
+
if (_this__u8e3s4.n2v_1.jp().mp() && equals(_this__u8e3s4.e2v_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().s25_1)) {
|
|
2325
2350
|
// Inline function 'kotlin.let' call
|
|
2326
|
-
|
|
2327
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>' call
|
|
2328
|
-
var tmp0_safe_receiver = ensureNotNull(_this__u8e3s4.m36()).asStruct();
|
|
2351
|
+
var tmp0_safe_receiver = ensureNotNull(_this__u8e3s4.n2y()).asStruct();
|
|
2329
2352
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver);
|
|
2330
2353
|
var tmp_0;
|
|
2331
2354
|
if (tmp1_safe_receiver == null) {
|
|
2332
2355
|
tmp_0 = null;
|
|
2333
2356
|
} else {
|
|
2334
2357
|
// Inline function 'kotlin.let' call
|
|
2335
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2336
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>.<anonymous>' call
|
|
2337
2358
|
var tmp_1;
|
|
2338
|
-
var tmp0_safe_receiver_0 = _this__u8e3s4.
|
|
2359
|
+
var tmp0_safe_receiver_0 = _this__u8e3s4.b2v_1;
|
|
2339
2360
|
if (tmp1_safe_receiver.equals(tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
|
|
2340
|
-
tmp_1 = !tmp1_safe_receiver.equals(
|
|
2361
|
+
tmp_1 = !tmp1_safe_receiver.equals(Companion_getInstance_6().x31_1);
|
|
2341
2362
|
} else {
|
|
2342
2363
|
tmp_1 = false;
|
|
2343
2364
|
}
|
|
@@ -2350,14 +2371,12 @@
|
|
|
2350
2371
|
}
|
|
2351
2372
|
return tmp;
|
|
2352
2373
|
}
|
|
2353
|
-
function selectClauses(
|
|
2354
|
-
// Inline function 'kotlin.let' call
|
|
2374
|
+
function selectClauses($this, _this__u8e3s4, term) {
|
|
2355
2375
|
var tmp = _this__u8e3s4.getByHead(term);
|
|
2356
|
-
// Inline function 'kotlin.
|
|
2357
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.selectClauses.<anonymous>' call
|
|
2376
|
+
// Inline function 'kotlin.let' call
|
|
2358
2377
|
var it = ensureRules(map(tmp, StateRuleSelection$selectClauses$lambda));
|
|
2359
2378
|
var tmp_0;
|
|
2360
|
-
if (_this__u8e3s4.
|
|
2379
|
+
if (_this__u8e3s4.d1q()) {
|
|
2361
2380
|
tmp_0 = buffered(it);
|
|
2362
2381
|
} else {
|
|
2363
2382
|
tmp_0 = it;
|
|
@@ -2366,62 +2385,57 @@
|
|
|
2366
2385
|
}
|
|
2367
2386
|
function StateRuleSelection$performCut$lambda($cutLimit) {
|
|
2368
2387
|
return function (it) {
|
|
2369
|
-
return equals(ensureNotNull(it.
|
|
2388
|
+
return equals(ensureNotNull(it.n2w()).b2v_1, $cutLimit.f1s());
|
|
2370
2389
|
};
|
|
2371
2390
|
}
|
|
2372
2391
|
function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
|
|
2373
2392
|
return function (it) {
|
|
2374
|
-
return selectClauses(
|
|
2393
|
+
return selectClauses(this$0, it, $currentGoalStruct);
|
|
2375
2394
|
};
|
|
2376
2395
|
}
|
|
2377
2396
|
function StateRuleSelection$selectClauses$lambda(it) {
|
|
2378
|
-
return it.
|
|
2397
|
+
return it.cu();
|
|
2379
2398
|
}
|
|
2380
2399
|
function StateRuleSelection(context) {
|
|
2381
|
-
|
|
2400
|
+
Companion_getInstance_6();
|
|
2382
2401
|
AbstractState.call(this, context);
|
|
2383
|
-
this.
|
|
2402
|
+
this.b32_1 = context;
|
|
2384
2403
|
}
|
|
2385
|
-
protoOf(StateRuleSelection).
|
|
2386
|
-
return this.
|
|
2404
|
+
protoOf(StateRuleSelection).h8 = function () {
|
|
2405
|
+
return this.b32_1;
|
|
2387
2406
|
};
|
|
2388
|
-
protoOf(StateRuleSelection).
|
|
2389
|
-
var currentGoal = ensureNotNull(this.
|
|
2407
|
+
protoOf(StateRuleSelection).v2z = function () {
|
|
2408
|
+
var currentGoal = ensureNotNull(this.b32_1.n2y());
|
|
2390
2409
|
var tmp;
|
|
2391
|
-
if (currentGoal.
|
|
2392
|
-
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.
|
|
2393
|
-
} else if (currentGoal.
|
|
2410
|
+
if (currentGoal.vu()) {
|
|
2411
|
+
tmp = exceptionalState_0(this, Companion_instance_11.forGoal(this.b32_1, extractSignature(ensureNotNull(this.b32_1.b2v_1)), currentGoal.castToVar()));
|
|
2412
|
+
} else if (currentGoal.fu()) {
|
|
2394
2413
|
// Inline function 'kotlin.with' call
|
|
2395
|
-
|
|
2396
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>' call
|
|
2397
|
-
var $this$with = this.y39_1;
|
|
2414
|
+
var $this$with = this.b32_1;
|
|
2398
2415
|
var currentGoalStruct = currentGoal.castToStruct();
|
|
2399
|
-
var ruleSources = sequenceOf([$this$with.
|
|
2416
|
+
var ruleSources = sequenceOf([$this$with.d2v_1.asTheory($this$with.c2v_1), $this$with.f2v_1, $this$with.g2v_1]);
|
|
2400
2417
|
var tmp_0;
|
|
2401
|
-
if (currentGoalStruct.
|
|
2418
|
+
if (currentGoalStruct.wu()) {
|
|
2402
2419
|
var tmp_1;
|
|
2403
|
-
if (currentGoalStruct.
|
|
2420
|
+
if (currentGoalStruct.xt()) {
|
|
2404
2421
|
tmp_1 = _get_ignoreState__t4wl8y(this);
|
|
2405
2422
|
} else {
|
|
2406
2423
|
tmp_1 = _get_failureState__yid9tw_0(this);
|
|
2407
2424
|
}
|
|
2408
2425
|
tmp_0 = tmp_1;
|
|
2409
2426
|
} else {
|
|
2410
|
-
if (isCut(
|
|
2411
|
-
var cutLimit = computeCutLimit($this$with,
|
|
2427
|
+
if (isCut(this, currentGoalStruct)) {
|
|
2428
|
+
var cutLimit = computeCutLimit(this, $this$with, currentGoalStruct instanceof MagicCut);
|
|
2412
2429
|
// Inline function 'kotlin.let' call
|
|
2413
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2414
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
|
|
2415
2430
|
var it = _get_ignoreState__t4wl8y(this);
|
|
2416
|
-
tmp_0 = it.
|
|
2431
|
+
tmp_0 = it.j30(it.y30_1.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(this, it.y30_1.s2v_1, cutLimit)));
|
|
2417
2432
|
} else {
|
|
2418
2433
|
var tmp$ret$3;
|
|
2419
2434
|
$l$block: {
|
|
2420
2435
|
// Inline function 'kotlin.sequences.any' call
|
|
2421
|
-
var
|
|
2422
|
-
while (
|
|
2423
|
-
var element =
|
|
2424
|
-
// Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
|
|
2436
|
+
var _iterator__ex2g4s = ruleSources.p();
|
|
2437
|
+
while (_iterator__ex2g4s.s()) {
|
|
2438
|
+
var element = _iterator__ex2g4s.t();
|
|
2425
2439
|
if (element.containsHead(currentGoalStruct)) {
|
|
2426
2440
|
tmp$ret$3 = true;
|
|
2427
2441
|
break $l$block;
|
|
@@ -2432,10 +2446,10 @@
|
|
|
2432
2446
|
if (tmp$ret$3) {
|
|
2433
2447
|
var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
|
|
2434
2448
|
var tmp_2;
|
|
2435
|
-
if (_get_isTailRecursive__h5eso7(this
|
|
2436
|
-
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.
|
|
2449
|
+
if (_get_isTailRecursive__h5eso7(this, this.b32_1)) {
|
|
2450
|
+
tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.b32_1, rules));
|
|
2437
2451
|
} else {
|
|
2438
|
-
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.
|
|
2452
|
+
tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.b32_1, rules));
|
|
2439
2453
|
}
|
|
2440
2454
|
tmp_0 = tmp_2;
|
|
2441
2455
|
} else {
|
|
@@ -2445,41 +2459,43 @@
|
|
|
2445
2459
|
}
|
|
2446
2460
|
tmp = tmp_0;
|
|
2447
2461
|
} else {
|
|
2448
|
-
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.
|
|
2462
|
+
tmp = exceptionalState_0(this, Companion_instance_10.forGoal(this.b32_1, extractSignature(ensureNotNull(this.b32_1.b2v_1)), Expected_CALLABLE_getInstance(), currentGoal));
|
|
2449
2463
|
}
|
|
2450
2464
|
return tmp;
|
|
2451
2465
|
};
|
|
2452
|
-
protoOf(StateRuleSelection).
|
|
2453
|
-
return this.
|
|
2466
|
+
protoOf(StateRuleSelection).e30 = function (context) {
|
|
2467
|
+
return this.j30(context);
|
|
2454
2468
|
};
|
|
2455
|
-
protoOf(StateRuleSelection).
|
|
2469
|
+
protoOf(StateRuleSelection).clone = function (context, $super) {
|
|
2470
|
+
return this.clone(context, ($super == null ? true : $super instanceof StateRuleSelection) ? $super : THROW_CCE());
|
|
2471
|
+
};
|
|
2472
|
+
protoOf(StateRuleSelection).j30 = function (context) {
|
|
2456
2473
|
return new StateRuleSelection(context);
|
|
2457
2474
|
};
|
|
2458
2475
|
protoOf(StateRuleSelection).toString = function () {
|
|
2459
|
-
return 'StateRuleSelection(context=' + this.
|
|
2476
|
+
return 'StateRuleSelection(context=' + this.b32_1.toString() + ')';
|
|
2460
2477
|
};
|
|
2461
2478
|
protoOf(StateRuleSelection).hashCode = function () {
|
|
2462
|
-
return this.
|
|
2479
|
+
return this.b32_1.hashCode();
|
|
2463
2480
|
};
|
|
2464
2481
|
protoOf(StateRuleSelection).equals = function (other) {
|
|
2465
2482
|
if (this === other)
|
|
2466
2483
|
return true;
|
|
2467
2484
|
if (!(other instanceof StateRuleSelection))
|
|
2468
2485
|
return false;
|
|
2469
|
-
|
|
2470
|
-
if (!this.y39_1.equals(tmp0_other_with_cast.y39_1))
|
|
2486
|
+
if (!this.b32_1.equals(other.b32_1))
|
|
2471
2487
|
return false;
|
|
2472
2488
|
return true;
|
|
2473
2489
|
};
|
|
2474
2490
|
function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
|
|
2475
2491
|
var tmp;
|
|
2476
|
-
if (rules.
|
|
2477
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2492
|
+
if (rules.lp()) {
|
|
2493
|
+
tmp = appendRules(_this__u8e3s4.s2v_1, rules.jp(), _this__u8e3s4);
|
|
2478
2494
|
} else {
|
|
2479
|
-
tmp = appendRules(_this__u8e3s4.
|
|
2495
|
+
tmp = appendRules(_this__u8e3s4.s2v_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2480
2496
|
}
|
|
2481
2497
|
var newChoicePointContext = tmp;
|
|
2482
|
-
return _this__u8e3s4.
|
|
2498
|
+
return _this__u8e3s4.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
|
|
2483
2499
|
}
|
|
2484
2500
|
function toGoals(_this__u8e3s4) {
|
|
2485
2501
|
var tmp = unfoldGoals(_this__u8e3s4);
|
|
@@ -2487,37 +2503,38 @@
|
|
|
2487
2503
|
}
|
|
2488
2504
|
function unfoldGoals(_this__u8e3s4) {
|
|
2489
2505
|
var tmp;
|
|
2490
|
-
if (_this__u8e3s4.
|
|
2491
|
-
var tmp_0 = _this__u8e3s4.castToTuple().
|
|
2506
|
+
if (_this__u8e3s4.ku()) {
|
|
2507
|
+
var tmp_0 = _this__u8e3s4.castToTuple().ps();
|
|
2492
2508
|
tmp = flatMap(tmp_0, unfoldGoals$lambda);
|
|
2493
2509
|
} else {
|
|
2494
|
-
tmp =
|
|
2510
|
+
tmp = sequenceOf_0(_this__u8e3s4);
|
|
2495
2511
|
}
|
|
2496
2512
|
return tmp;
|
|
2497
2513
|
}
|
|
2498
2514
|
function createChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2499
2515
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2500
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2516
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.n2y()).castToStruct();
|
|
2501
2517
|
var tmp0_goals = toGoals(currentGoal);
|
|
2502
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2503
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2518
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.b2v_1;
|
|
2519
|
+
var tmp2_depth = _this__u8e3s4.u2v_1 + 1 | 0;
|
|
2504
2520
|
// Inline function 'kotlin.Long.plus' call
|
|
2505
|
-
var
|
|
2521
|
+
var this_0 = _this__u8e3s4.v2v_1;
|
|
2522
|
+
var tmp3_step = add(this_0, fromInt(1));
|
|
2506
2523
|
var tmp4_relevantVariables = emptySet();
|
|
2507
|
-
return _this__u8e3s4.
|
|
2524
|
+
return _this__u8e3s4.s2w(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);
|
|
2508
2525
|
}
|
|
2509
2526
|
function toRequest(_this__u8e3s4, goal, signature, startTime) {
|
|
2510
|
-
return new Request(signature, goal.
|
|
2527
|
+
return new Request(signature, goal.au(), _this__u8e3s4, startTime);
|
|
2511
2528
|
}
|
|
2512
2529
|
function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
|
|
2513
2530
|
var tmp;
|
|
2514
|
-
if (primitiveExecutions.
|
|
2515
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2531
|
+
if (primitiveExecutions.lp()) {
|
|
2532
|
+
tmp = appendPrimitives(_this__u8e3s4.s2v_1, primitiveExecutions.jp(), _this__u8e3s4);
|
|
2516
2533
|
} else {
|
|
2517
|
-
tmp = appendPrimitives(_this__u8e3s4.
|
|
2534
|
+
tmp = appendPrimitives(_this__u8e3s4.s2v_1, Companion_instance_7.empty(), _this__u8e3s4);
|
|
2518
2535
|
}
|
|
2519
2536
|
var newChoicePointContext = tmp;
|
|
2520
|
-
return _this__u8e3s4.
|
|
2537
|
+
return _this__u8e3s4.s2w(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
|
|
2521
2538
|
}
|
|
2522
2539
|
function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
|
|
2523
2540
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
@@ -2534,76 +2551,72 @@
|
|
|
2534
2551
|
}
|
|
2535
2552
|
function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
|
|
2536
2553
|
inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
|
|
2537
|
-
var currentGoal = ensureNotNull(_this__u8e3s4.
|
|
2554
|
+
var currentGoal = ensureNotNull(_this__u8e3s4.n2y()).castToStruct();
|
|
2538
2555
|
var tmp0_goals = toGoals(currentGoal);
|
|
2539
|
-
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.
|
|
2540
|
-
var tmp2_depth = _this__u8e3s4.
|
|
2556
|
+
var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.b2v_1;
|
|
2557
|
+
var tmp2_depth = _this__u8e3s4.u2v_1 + 1 | 0;
|
|
2541
2558
|
// Inline function 'kotlin.Long.plus' call
|
|
2542
|
-
var
|
|
2543
|
-
|
|
2559
|
+
var this_0 = _this__u8e3s4.v2v_1;
|
|
2560
|
+
var tmp3_step = add(this_0, fromInt(1));
|
|
2561
|
+
return _this__u8e3s4.s2w(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);
|
|
2544
2562
|
}
|
|
2545
2563
|
function toGoals$lambda(it) {
|
|
2546
|
-
return it.
|
|
2564
|
+
return it.vu() ? Companion_getInstance_1().of('call', [it]) : it;
|
|
2547
2565
|
}
|
|
2548
2566
|
function unfoldGoals$lambda(it) {
|
|
2549
2567
|
return unfoldGoals(it);
|
|
2550
2568
|
}
|
|
2551
2569
|
function ensureRules$lambda(it) {
|
|
2552
2570
|
// Inline function 'kotlin.require' call
|
|
2553
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2554
2571
|
// Inline function 'kotlin.require' call
|
|
2555
|
-
|
|
2556
|
-
if (!it.yw()) {
|
|
2557
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
2572
|
+
if (!it.hu()) {
|
|
2558
2573
|
var message = 'Failed requirement.';
|
|
2559
2574
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2560
2575
|
}
|
|
2561
2576
|
return it.castToRule();
|
|
2562
2577
|
}
|
|
2563
2578
|
function AbstractSolutionIterator(state) {
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2579
|
+
this.c32_1 = state;
|
|
2580
|
+
this.d32_1 = 0n;
|
|
2566
2581
|
}
|
|
2567
2582
|
protoOf(AbstractSolutionIterator).s = function () {
|
|
2568
2583
|
// Inline function 'kotlin.let' call
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
var it = this.z39_1;
|
|
2572
|
-
return !it.t37() ? true : it.castToEndState().w34();
|
|
2584
|
+
var it = this.c32_1;
|
|
2585
|
+
return !it.c30() || it.castToEndState().z2w();
|
|
2573
2586
|
};
|
|
2574
|
-
protoOf(AbstractSolutionIterator).
|
|
2587
|
+
protoOf(AbstractSolutionIterator).t = function () {
|
|
2575
2588
|
do {
|
|
2576
|
-
var previousState = this.
|
|
2589
|
+
var previousState = this.c32_1;
|
|
2577
2590
|
var tmp = this;
|
|
2578
|
-
var tmp_0 = this.
|
|
2579
|
-
this.
|
|
2580
|
-
tmp.
|
|
2581
|
-
this.onStateTransition(previousState, this.
|
|
2591
|
+
var tmp_0 = this.c32_1;
|
|
2592
|
+
this.d32_1 = add(this.d32_1, get_ONE());
|
|
2593
|
+
tmp.c32_1 = this.e32(tmp_0, this.d32_1);
|
|
2594
|
+
this.onStateTransition(previousState, this.c32_1, this.d32_1);
|
|
2582
2595
|
}
|
|
2583
|
-
while (!this.
|
|
2584
|
-
return this.
|
|
2596
|
+
while (!this.c32_1.c30());
|
|
2597
|
+
return this.c32_1.castToEndState().f2f().cleanUp();
|
|
2585
2598
|
};
|
|
2586
2599
|
function SimpleSolutionIterator(state, onStateTransitionCallback) {
|
|
2587
2600
|
AbstractSolutionIterator.call(this, state);
|
|
2588
|
-
this.
|
|
2601
|
+
this.h32_1 = onStateTransitionCallback;
|
|
2589
2602
|
}
|
|
2590
|
-
protoOf(SimpleSolutionIterator).
|
|
2603
|
+
protoOf(SimpleSolutionIterator).e32 = function (state, step) {
|
|
2591
2604
|
return state.next();
|
|
2592
2605
|
};
|
|
2593
|
-
protoOf(SimpleSolutionIterator).
|
|
2594
|
-
return this.
|
|
2606
|
+
protoOf(SimpleSolutionIterator).i32 = function (source, destination, index) {
|
|
2607
|
+
return this.h32_1(source, destination, index);
|
|
2595
2608
|
};
|
|
2596
2609
|
protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
|
|
2597
|
-
return this.
|
|
2610
|
+
return this.i32(source, destination, index);
|
|
2598
2611
|
};
|
|
2599
2612
|
function DefaultBuiltins() {
|
|
2600
2613
|
DefaultBuiltins_instance = this;
|
|
2601
2614
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2602
2615
|
}
|
|
2603
|
-
protoOf(DefaultBuiltins).
|
|
2616
|
+
protoOf(DefaultBuiltins).l2b = function () {
|
|
2604
2617
|
return listOf(Throw_getInstance());
|
|
2605
2618
|
};
|
|
2606
|
-
protoOf(DefaultBuiltins).
|
|
2619
|
+
protoOf(DefaultBuiltins).k2b = function () {
|
|
2607
2620
|
return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
|
|
2608
2621
|
};
|
|
2609
2622
|
var DefaultBuiltins_instance;
|
|
@@ -2617,12 +2630,12 @@
|
|
|
2617
2630
|
var tmp_0;
|
|
2618
2631
|
var tmp_1;
|
|
2619
2632
|
if (isInterface(error, Struct)) {
|
|
2620
|
-
tmp_1 = error.
|
|
2633
|
+
tmp_1 = error.zt() === 'error';
|
|
2621
2634
|
} else {
|
|
2622
2635
|
tmp_1 = false;
|
|
2623
2636
|
}
|
|
2624
2637
|
if (tmp_1) {
|
|
2625
|
-
var containsArg = error.
|
|
2638
|
+
var containsArg = error.tt();
|
|
2626
2639
|
tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
|
|
2627
2640
|
} else {
|
|
2628
2641
|
tmp_0 = false;
|
|
@@ -2630,9 +2643,9 @@
|
|
|
2630
2643
|
if (tmp_0) {
|
|
2631
2644
|
var tmp_2 = Companion_instance_14;
|
|
2632
2645
|
var tmp_3 = error.get(0);
|
|
2633
|
-
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.
|
|
2646
|
+
tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.tt() > 1 ? error.get(1) : null);
|
|
2634
2647
|
} else {
|
|
2635
|
-
tmp = Companion_instance_13.
|
|
2648
|
+
tmp = Companion_instance_13.n23(error, context);
|
|
2636
2649
|
}
|
|
2637
2650
|
return tmp;
|
|
2638
2651
|
}
|
|
@@ -2640,11 +2653,11 @@
|
|
|
2640
2653
|
Throw_instance = this;
|
|
2641
2654
|
UnaryPredicate.call(this, 'throw');
|
|
2642
2655
|
}
|
|
2643
|
-
protoOf(Throw).
|
|
2644
|
-
return
|
|
2656
|
+
protoOf(Throw).y2l = function (_this__u8e3s4, first) {
|
|
2657
|
+
return sequenceOf_0(Companion_getInstance_4().l2c(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.z(0)), VOID, []));
|
|
2645
2658
|
};
|
|
2646
|
-
protoOf(Throw).
|
|
2647
|
-
return this.
|
|
2659
|
+
protoOf(Throw).y2f = function (_this__u8e3s4, first) {
|
|
2660
|
+
return this.y2l(_this__u8e3s4, first);
|
|
2648
2661
|
};
|
|
2649
2662
|
var Throw_instance;
|
|
2650
2663
|
function Throw_getInstance() {
|
|
@@ -2656,10 +2669,10 @@
|
|
|
2656
2669
|
Call_instance = this;
|
|
2657
2670
|
RuleWrapper_init_$Init$('call', 1, VOID, this);
|
|
2658
2671
|
}
|
|
2659
|
-
protoOf(Call).
|
|
2672
|
+
protoOf(Call).c2g = function (_this__u8e3s4) {
|
|
2660
2673
|
return listOf(_this__u8e3s4.varOf('G'));
|
|
2661
2674
|
};
|
|
2662
|
-
protoOf(Call).
|
|
2675
|
+
protoOf(Call).d2g = function (_this__u8e3s4) {
|
|
2663
2676
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2664
2677
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2665
2678
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('G')]), _this__u8e3s4.varOf('G')]);
|
|
@@ -2674,10 +2687,10 @@
|
|
|
2674
2687
|
Catch_instance = this;
|
|
2675
2688
|
RuleWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2676
2689
|
}
|
|
2677
|
-
protoOf(Catch).
|
|
2690
|
+
protoOf(Catch).c2g = function (_this__u8e3s4) {
|
|
2678
2691
|
return listOf_0([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
|
|
2679
2692
|
};
|
|
2680
|
-
protoOf(Catch).
|
|
2693
|
+
protoOf(Catch).d2g = function (_this__u8e3s4) {
|
|
2681
2694
|
return _this__u8e3s4.varOf('G');
|
|
2682
2695
|
};
|
|
2683
2696
|
var Catch_instance;
|
|
@@ -2690,10 +2703,10 @@
|
|
|
2690
2703
|
Comma_instance = this;
|
|
2691
2704
|
RuleWrapper_init_$Init$(',', 2, VOID, this);
|
|
2692
2705
|
}
|
|
2693
|
-
protoOf(Comma).
|
|
2706
|
+
protoOf(Comma).c2g = function (_this__u8e3s4) {
|
|
2694
2707
|
return listOf_0([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2695
2708
|
};
|
|
2696
|
-
protoOf(Comma).
|
|
2709
|
+
protoOf(Comma).d2g = function (_this__u8e3s4) {
|
|
2697
2710
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
|
|
2698
2711
|
};
|
|
2699
2712
|
var Comma_instance;
|
|
@@ -2716,7 +2729,7 @@
|
|
|
2716
2729
|
Fail_instance = this;
|
|
2717
2730
|
NegationAsFailure.call(this);
|
|
2718
2731
|
}
|
|
2719
|
-
protoOf(Fail).
|
|
2732
|
+
protoOf(Fail).d2g = function (_this__u8e3s4) {
|
|
2720
2733
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2721
2734
|
var tmp$ret$0 = EnsureExecutable_getInstance().signature.name;
|
|
2722
2735
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_this__u8e3s4.varOf('X')]);
|
|
@@ -2734,7 +2747,7 @@
|
|
|
2734
2747
|
Success_instance = this;
|
|
2735
2748
|
NegationAsFailure.call(this);
|
|
2736
2749
|
}
|
|
2737
|
-
protoOf(Success).
|
|
2750
|
+
protoOf(Success).d2g = function (_this__u8e3s4) {
|
|
2738
2751
|
return _this__u8e3s4.truthOf(true);
|
|
2739
2752
|
};
|
|
2740
2753
|
var Success_instance;
|
|
@@ -2744,47 +2757,47 @@
|
|
|
2744
2757
|
return Success_instance;
|
|
2745
2758
|
}
|
|
2746
2759
|
function Companion_1() {
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2760
|
+
this.i33_1 = '\\+';
|
|
2761
|
+
this.j33_1 = 1;
|
|
2749
2762
|
}
|
|
2750
2763
|
var Companion_instance_17;
|
|
2751
|
-
function
|
|
2764
|
+
function Companion_getInstance_7() {
|
|
2752
2765
|
return Companion_instance_17;
|
|
2753
2766
|
}
|
|
2754
2767
|
function NegationAsFailure() {
|
|
2755
2768
|
RuleWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2756
2769
|
}
|
|
2757
|
-
protoOf(NegationAsFailure).
|
|
2770
|
+
protoOf(NegationAsFailure).c2g = function (_this__u8e3s4) {
|
|
2758
2771
|
return listOf(_this__u8e3s4.varOf('X'));
|
|
2759
2772
|
};
|
|
2760
2773
|
//region block: post-declaration
|
|
2761
2774
|
protoOf(ClassicExecutionContext).createSolver = createSolver;
|
|
2762
2775
|
protoOf(ClassicExecutionContext).createMutableSolver = createMutableSolver;
|
|
2763
2776
|
protoOf(ClassicExecutionContext).update = update;
|
|
2764
|
-
protoOf(ClassicExecutionContext).
|
|
2765
|
-
protoOf(ClassicExecutionContext).
|
|
2766
|
-
protoOf(ClassicExecutionContext).
|
|
2767
|
-
protoOf(ClassicExecutionContext).
|
|
2768
|
-
protoOf(ClassicExecutionContext).
|
|
2769
|
-
protoOf(ClassicExecutionContext).
|
|
2770
|
-
protoOf(ClassicExecutionContext).
|
|
2777
|
+
protoOf(ClassicExecutionContext).u1s = get_standardInput;
|
|
2778
|
+
protoOf(ClassicExecutionContext).v1s = get_standardOutput;
|
|
2779
|
+
protoOf(ClassicExecutionContext).w1s = get_standardError;
|
|
2780
|
+
protoOf(ClassicExecutionContext).x1s = get_warnings;
|
|
2781
|
+
protoOf(ClassicExecutionContext).b1s = get_endTime;
|
|
2782
|
+
protoOf(ClassicExecutionContext).d1s = get_remainingTime;
|
|
2783
|
+
protoOf(ClassicExecutionContext).e1s = get_elapsedTime;
|
|
2771
2784
|
protoOf(ClassicSolverFactory).rawSolverOf = rawSolverOf;
|
|
2772
2785
|
protoOf(ClassicSolverFactory).solverOf = solverOf;
|
|
2773
2786
|
protoOf(ClassicSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2774
2787
|
protoOf(ClassicSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2775
2788
|
protoOf(ClassicSolverFactory).newBuilder = newBuilder;
|
|
2776
|
-
protoOf(ClassicSolverFactory).
|
|
2777
|
-
protoOf(ClassicSolverFactory).
|
|
2778
|
-
protoOf(ClassicSolverFactory).
|
|
2779
|
-
protoOf(ClassicSolverFactory).
|
|
2780
|
-
protoOf(ClassicSolverFactory).
|
|
2781
|
-
protoOf(ClassicSolverFactory).
|
|
2782
|
-
protoOf(ClassicSolverFactory).
|
|
2783
|
-
protoOf(ClassicSolverFactory).
|
|
2784
|
-
protoOf(ClassicSolverFactory).
|
|
2785
|
-
protoOf(ClassicSolverFactory).
|
|
2789
|
+
protoOf(ClassicSolverFactory).v1u = get_defaultRuntime;
|
|
2790
|
+
protoOf(ClassicSolverFactory).x1u = get_defaultUnificator;
|
|
2791
|
+
protoOf(ClassicSolverFactory).y1u = get_defaultFlags;
|
|
2792
|
+
protoOf(ClassicSolverFactory).b1v = get_defaultStaticKb;
|
|
2793
|
+
protoOf(ClassicSolverFactory).c1v = get_defaultDynamicKb;
|
|
2794
|
+
protoOf(ClassicSolverFactory).d1v = get_defaultInputChannel;
|
|
2795
|
+
protoOf(ClassicSolverFactory).e1v = get_defaultOutputChannel;
|
|
2796
|
+
protoOf(ClassicSolverFactory).f1v = get_defaultErrorChannel;
|
|
2797
|
+
protoOf(ClassicSolverFactory).g1v = get_defaultWarningsChannel;
|
|
2798
|
+
protoOf(ClassicSolverFactory).o1v = solverWithDefaultBuiltins;
|
|
2786
2799
|
protoOf(ClassicSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2787
|
-
protoOf(ClassicSolverFactory).
|
|
2800
|
+
protoOf(ClassicSolverFactory).q1v = mutableSolverWithDefaultBuiltins;
|
|
2788
2801
|
protoOf(ClassicSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2789
2802
|
protoOf(MutableClassicSolver).loadStaticClauses = loadStaticClauses;
|
|
2790
2803
|
protoOf(MutableClassicSolver).loadStaticClausesIterable = loadStaticClausesIterable;
|
|
@@ -2792,13 +2805,13 @@
|
|
|
2792
2805
|
protoOf(MutableClassicSolver).loadDynamicClauses = loadDynamicClauses;
|
|
2793
2806
|
protoOf(MutableClassicSolver).loadDynamicClausesIterable = loadDynamicClausesIterable;
|
|
2794
2807
|
protoOf(MutableClassicSolver).loadDynamicClausesSequence = loadDynamicClausesSequence;
|
|
2795
|
-
protoOf(AbstractState).
|
|
2808
|
+
protoOf(AbstractState).c30 = get_isEndState;
|
|
2796
2809
|
protoOf(AbstractState).asEndState = asEndState;
|
|
2797
2810
|
protoOf(AbstractState).castToEndState = castToEndState;
|
|
2798
2811
|
protoOf(AbstractState).clone = clone;
|
|
2799
|
-
protoOf(AbstractEndState).
|
|
2800
|
-
protoOf(AbstractEndState).
|
|
2801
|
-
protoOf(AbstractEndState).
|
|
2812
|
+
protoOf(AbstractEndState).c30 = get_isEndState_0;
|
|
2813
|
+
protoOf(AbstractEndState).d30 = asEndState_0;
|
|
2814
|
+
protoOf(AbstractEndState).z2w = get_hasOpenAlternatives;
|
|
2802
2815
|
//endregion
|
|
2803
2816
|
//region block: init
|
|
2804
2817
|
ClassicSolverFactory_instance = new ClassicSolverFactory();
|
|
@@ -2812,7 +2825,7 @@
|
|
|
2812
2825
|
var $it$unibo$tuprolog = $it$unibo.tuprolog || ($it$unibo.tuprolog = {});
|
|
2813
2826
|
var $it$unibo$tuprolog$solve = $it$unibo$tuprolog.solve || ($it$unibo$tuprolog.solve = {});
|
|
2814
2827
|
var $it$unibo$tuprolog$solve$classic = $it$unibo$tuprolog$solve.classic || ($it$unibo$tuprolog$solve.classic = {});
|
|
2815
|
-
defineProp($it$unibo$tuprolog$solve$classic, 'ClassicSolverFactory', ClassicSolverFactory_getInstance);
|
|
2828
|
+
defineProp($it$unibo$tuprolog$solve$classic, 'ClassicSolverFactory', ClassicSolverFactory_getInstance, VOID, true);
|
|
2816
2829
|
}
|
|
2817
2830
|
$jsExportAll$(_);
|
|
2818
2831
|
_.$jsExportAll$ = $jsExportAll$;
|