@tuprolog/2p-full 0.31.5-dev0f → 0.31.5-dev0n
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +234 -229
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +5576 -6196
- package/2p-core.js.map +1 -1
- package/2p-datalog.js +9 -2
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js +9 -2
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +9 -2
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +9 -2
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +9 -2
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +26 -3
- package/2p-full.js.map +1 -1
- package/2p-io-lib.js +903 -926
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1298 -1327
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +352 -356
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +14 -3
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +66 -41
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +175 -173
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js +9 -2
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js +9 -2
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1405 -1677
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js +9 -2
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +19 -5
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1845 -1880
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1239 -1331
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5342 -5796
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1734 -1730
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +364 -365
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +548 -510
- package/2p-utils.js.map +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/clikt-clikt-js-ir.js +2078 -2260
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +2566 -2676
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/kt-math.js +3666 -3302
- package/kt-math.js.map +1 -1
- package/package.json +56 -2
- package/2p-full.d.ts +0 -270
package/2p-solve-streams.js
CHANGED
|
@@ -1,27 +1,62 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './2p-unify.js', './2p-solve.js', './2p-theory.js', './2p-utils.js', './2p-core.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./2p-unify.js'), require('./2p-solve.js'), require('./2p-theory.js'), require('./2p-utils.js'), require('./2p-core.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module '2p-solve-streams'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '2p-solve-streams'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof this['2p-unify'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module '2p-solve-streams'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-solve-streams'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof this['2p-solve'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module '2p-solve-streams'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to '2p-solve-streams'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof this['2p-theory'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module '2p-solve-streams'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to '2p-solve-streams'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof this['2p-utils'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module '2p-solve-streams'. Its dependency '2p-utils' was not found. Please, check whether '2p-utils' is loaded prior to '2p-solve-streams'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof this['2p-core'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module '2p-solve-streams'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-solve-streams'.");
|
|
24
|
+
}
|
|
25
|
+
root['2p-solve-streams'] = factory(typeof this['2p-solve-streams'] === 'undefined' ? {} : this['2p-solve-streams'], this['kotlin-kotlin-stdlib-js-ir'], this['2p-unify'], this['2p-solve'], this['2p-theory'], this['2p-utils'], this['2p-core']);
|
|
26
|
+
}
|
|
27
|
+
}(this, function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_core) {
|
|
2
28
|
'use strict';
|
|
3
29
|
//region block: imports
|
|
4
30
|
var imul = Math.imul;
|
|
5
|
-
var first = kotlin_kotlin.$_$.
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
31
|
+
var first = kotlin_kotlin.$_$.e8;
|
|
32
|
+
var protoOf = kotlin_kotlin.$_$.s6;
|
|
33
|
+
var classMeta = kotlin_kotlin.$_$.t5;
|
|
34
|
+
var VOID = kotlin_kotlin.$_$.gc;
|
|
35
|
+
var setMetadataFor = kotlin_kotlin.$_$.t6;
|
|
36
|
+
var objectMeta = kotlin_kotlin.$_$.r6;
|
|
37
|
+
var isInterface = kotlin_kotlin.$_$.g6;
|
|
38
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
|
|
39
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.d2;
|
|
40
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.y1;
|
|
41
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
42
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
43
|
+
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
44
|
+
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
45
|
+
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
46
|
+
var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_solve.$_$.m1;
|
|
47
|
+
var objectCreate = kotlin_kotlin.$_$.q6;
|
|
48
|
+
var filter = kotlin_kotlin.$_$.c8;
|
|
49
|
+
var THROW_CCE = kotlin_kotlin.$_$.tb;
|
|
50
|
+
var Sequence = kotlin_kotlin.$_$.q7;
|
|
51
|
+
var Unit_getInstance = kotlin_kotlin.$_$.v1;
|
|
52
|
+
var map = kotlin_kotlin.$_$.o8;
|
|
17
53
|
var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.t5;
|
|
18
54
|
var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.v5;
|
|
19
|
-
var Long = kotlin_kotlin.$_$.mb;
|
|
20
55
|
var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.s5;
|
|
21
|
-
var
|
|
22
|
-
var take = kotlin_kotlin.$_$.
|
|
56
|
+
var Request = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
57
|
+
var take = kotlin_kotlin.$_$.y8;
|
|
23
58
|
var buffered = kotlin_it_unibo_tuprolog_utils.$_$.q;
|
|
24
|
-
var copy
|
|
59
|
+
var copy = kotlin_it_unibo_tuprolog_solve.$_$.u;
|
|
25
60
|
var solveWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.b5;
|
|
26
61
|
var solve = kotlin_it_unibo_tuprolog_solve.$_$.c5;
|
|
27
62
|
var solveListWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.w4;
|
|
@@ -31,16 +66,16 @@
|
|
|
31
66
|
var solveOnce = kotlin_it_unibo_tuprolog_solve.$_$.a5;
|
|
32
67
|
var solveOnceWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.z4;
|
|
33
68
|
var clone = kotlin_it_unibo_tuprolog_solve.$_$.u4;
|
|
34
|
-
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
35
|
-
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
36
|
-
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
37
|
-
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
69
|
+
var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.f4;
|
|
70
|
+
var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.g4;
|
|
71
|
+
var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.e4;
|
|
72
|
+
var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.h4;
|
|
38
73
|
var Solver = kotlin_it_unibo_tuprolog_solve.$_$.q5;
|
|
39
|
-
var
|
|
40
|
-
var solverOf
|
|
41
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
42
|
-
var mutableSolverOf
|
|
43
|
-
var
|
|
74
|
+
var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
75
|
+
var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
76
|
+
var NotImplementedError = kotlin_kotlin.$_$.ob;
|
|
77
|
+
var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.v;
|
|
78
|
+
var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.w;
|
|
44
79
|
var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.n5;
|
|
45
80
|
var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.i5;
|
|
46
81
|
var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.k5;
|
|
@@ -52,168 +87,166 @@
|
|
|
52
87
|
var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.e5;
|
|
53
88
|
var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.l5;
|
|
54
89
|
var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.o5;
|
|
55
|
-
var
|
|
90
|
+
var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.a1;
|
|
56
91
|
var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.m5;
|
|
57
|
-
var
|
|
92
|
+
var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.x;
|
|
58
93
|
var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.p5;
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var equals = kotlin_kotlin.$_$.
|
|
71
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
72
|
-
var Collection = kotlin_kotlin.$_$.
|
|
73
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
74
|
-
var
|
|
75
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
94
|
+
var defineProp = kotlin_kotlin.$_$.v5;
|
|
95
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
96
|
+
var firstOrNull = kotlin_kotlin.$_$.a3;
|
|
97
|
+
var emptyList = kotlin_kotlin.$_$.w2;
|
|
98
|
+
var emptySequence = kotlin_kotlin.$_$.y7;
|
|
99
|
+
var plus = kotlin_kotlin.$_$.t8;
|
|
100
|
+
var toMutableList = kotlin_kotlin.$_$.a5;
|
|
101
|
+
var first_0 = kotlin_kotlin.$_$.b3;
|
|
102
|
+
var listOf = kotlin_kotlin.$_$.o3;
|
|
103
|
+
var lastOrNull = kotlin_kotlin.$_$.k3;
|
|
104
|
+
var contains = kotlin_kotlin.$_$.u7;
|
|
105
|
+
var equals = kotlin_kotlin.$_$.w5;
|
|
106
|
+
var plus_0 = kotlin_kotlin.$_$.r8;
|
|
107
|
+
var Collection = kotlin_kotlin.$_$.x1;
|
|
108
|
+
var hashCode = kotlin_kotlin.$_$.b6;
|
|
109
|
+
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
110
|
+
var copyToArray = kotlin_kotlin.$_$.t2;
|
|
111
|
+
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
76
112
|
var Unifier = kotlin_it_unibo_tuprolog_core.$_$.a2;
|
|
77
|
-
var
|
|
78
|
-
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
113
|
+
var Companion_getInstance_10 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
79
114
|
var prepareForExecution = kotlin_it_unibo_tuprolog_core.$_$.e3;
|
|
80
|
-
var single = kotlin_kotlin.$_$.
|
|
81
|
-
var any = kotlin_kotlin.$_$.
|
|
82
|
-
var sequence = kotlin_kotlin.$_$.
|
|
83
|
-
var drop = kotlin_kotlin.$_$.
|
|
84
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
85
|
-
var indexOf = kotlin_kotlin.$_$.
|
|
86
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
87
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
88
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
89
|
-
var filterIndexed = kotlin_kotlin.$_$.
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_solve.$_$.p1;
|
|
115
|
+
var single = kotlin_kotlin.$_$.m4;
|
|
116
|
+
var any = kotlin_kotlin.$_$.r7;
|
|
117
|
+
var sequence = kotlin_kotlin.$_$.v8;
|
|
118
|
+
var drop = kotlin_kotlin.$_$.v2;
|
|
119
|
+
var plus_1 = kotlin_kotlin.$_$.h4;
|
|
120
|
+
var indexOf = kotlin_kotlin.$_$.i8;
|
|
121
|
+
var CoroutineImpl = kotlin_kotlin.$_$.j5;
|
|
122
|
+
var SequenceScope = kotlin_kotlin.$_$.p7;
|
|
123
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i5;
|
|
124
|
+
var filterIndexed = kotlin_kotlin.$_$.z7;
|
|
125
|
+
var asSequence = kotlin_kotlin.$_$.k2;
|
|
126
|
+
var toList = kotlin_kotlin.$_$.b9;
|
|
127
|
+
var Companion_getInstance_11 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
94
128
|
var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.r5;
|
|
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 TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.d1;
|
|
129
|
+
var Companion_getInstance_12 = kotlin_kotlin.$_$.u1;
|
|
130
|
+
var Long = kotlin_kotlin.$_$.nb;
|
|
131
|
+
var lazy = kotlin_kotlin.$_$.yb;
|
|
132
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.n2;
|
|
133
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
|
|
134
|
+
var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
135
|
+
var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.r;
|
|
136
|
+
var apply = kotlin_it_unibo_tuprolog_solve.$_$.c4;
|
|
137
|
+
var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.b4;
|
|
138
|
+
var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.d4;
|
|
139
|
+
var update = kotlin_it_unibo_tuprolog_solve.$_$.t;
|
|
140
|
+
var toString = kotlin_kotlin.$_$.x6;
|
|
141
|
+
var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.z3;
|
|
142
|
+
var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.a4;
|
|
143
|
+
var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.y3;
|
|
144
|
+
var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.i4;
|
|
145
|
+
var KProperty1 = kotlin_kotlin.$_$.o7;
|
|
146
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.z5;
|
|
147
|
+
var interfaceMeta = kotlin_kotlin.$_$.c6;
|
|
148
|
+
var sequenceOf = kotlin_kotlin.$_$.u8;
|
|
149
|
+
var drop_0 = kotlin_kotlin.$_$.x7;
|
|
150
|
+
var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
118
151
|
var getKClassFromExpression = kotlin_kotlin.$_$.b;
|
|
119
152
|
var Halt = kotlin_it_unibo_tuprolog_solve.$_$.r4;
|
|
120
153
|
var Yes = kotlin_it_unibo_tuprolog_solve.$_$.t4;
|
|
121
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
154
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
122
155
|
var No = kotlin_it_unibo_tuprolog_solve.$_$.s4;
|
|
123
|
-
var
|
|
124
|
-
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
125
|
-
var HaltException = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
126
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
127
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
156
|
+
var Companion_getInstance_13 = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
157
|
+
var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.s2;
|
|
158
|
+
var HaltException = kotlin_it_unibo_tuprolog_solve.$_$.r2;
|
|
159
|
+
var flatMap = kotlin_kotlin.$_$.f8;
|
|
160
|
+
var asIterable = kotlin_kotlin.$_$.s7;
|
|
128
161
|
var Rule = kotlin_it_unibo_tuprolog_core.$_$.y1;
|
|
129
|
-
var none = kotlin_kotlin.$_$.
|
|
162
|
+
var none = kotlin_kotlin.$_$.q8;
|
|
130
163
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
131
|
-
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
132
|
-
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
133
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
134
|
-
var containsSignature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
135
|
-
var containsOperator = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
136
|
-
var hasPrimitive = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
137
|
-
var hasFunction = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
138
|
-
var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
139
|
-
var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
140
|
-
var PrimitiveWrapper = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
141
|
-
var PrimitiveWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
142
|
-
var
|
|
164
|
+
var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
165
|
+
var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j2;
|
|
166
|
+
var listOf_0 = kotlin_kotlin.$_$.p3;
|
|
167
|
+
var containsSignature = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
168
|
+
var containsOperator = kotlin_it_unibo_tuprolog_solve.$_$.y2;
|
|
169
|
+
var hasPrimitive = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
170
|
+
var hasFunction = kotlin_it_unibo_tuprolog_solve.$_$.a3;
|
|
171
|
+
var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.d3;
|
|
172
|
+
var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.c3;
|
|
173
|
+
var PrimitiveWrapper = kotlin_it_unibo_tuprolog_solve.$_$.j3;
|
|
174
|
+
var PrimitiveWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
175
|
+
var Companion_getInstance_14 = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
143
176
|
var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
144
177
|
var TypeError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
145
|
-
var last = kotlin_kotlin.$_$.
|
|
146
|
-
var first_1 = kotlin_kotlin.$_$.
|
|
147
|
-
var Pair = kotlin_kotlin.$_$.
|
|
148
|
-
var
|
|
149
|
-
var ErrorUtils_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
150
|
-
var
|
|
151
|
-
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
152
|
-
var
|
|
178
|
+
var last = kotlin_kotlin.$_$.l3;
|
|
179
|
+
var first_1 = kotlin_kotlin.$_$.c3;
|
|
180
|
+
var Pair = kotlin_kotlin.$_$.rb;
|
|
181
|
+
var Companion_getInstance_15 = kotlin_it_unibo_tuprolog_core.$_$.h1;
|
|
182
|
+
var ErrorUtils_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.p1;
|
|
183
|
+
var Companion_getInstance_16 = kotlin_it_unibo_tuprolog_solve.$_$.x1;
|
|
184
|
+
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.t3;
|
|
185
|
+
var Companion_getInstance_17 = kotlin_it_unibo_tuprolog_solve.$_$.v1;
|
|
153
186
|
//endregion
|
|
154
187
|
//region block: pre-declaration
|
|
155
|
-
setMetadataFor(SolverStrategies$Companion$prologStandard$1,
|
|
156
|
-
setMetadataFor(Companion, 'Companion', objectMeta
|
|
157
|
-
setMetadataFor(Companion_0, 'Companion', objectMeta
|
|
158
|
-
setMetadataFor(StreamsSolver, 'StreamsSolver', classMeta,
|
|
159
|
-
setMetadataFor(StreamsSolverFactory, 'StreamsSolverFactory', objectMeta,
|
|
160
|
-
setMetadataFor(SideEffectManagerImpl, 'SideEffectManagerImpl', classMeta
|
|
161
|
-
setMetadataFor(orderWithStrategy$slambda, 'orderWithStrategy$slambda', classMeta, CoroutineImpl,
|
|
162
|
-
setMetadataFor(StreamsExecutionContext, 'StreamsExecutionContext', classMeta,
|
|
163
|
-
setMetadataFor(AbstractState, 'AbstractState', classMeta
|
|
164
|
-
setMetadataFor(AlreadyExecutedState, 'AlreadyExecutedState', classMeta
|
|
165
|
-
setMetadataFor(FinalState, 'FinalState', interfaceMeta
|
|
188
|
+
setMetadataFor(SolverStrategies$Companion$prologStandard$1, VOID, classMeta);
|
|
189
|
+
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
190
|
+
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
191
|
+
setMetadataFor(StreamsSolver, 'StreamsSolver', classMeta, VOID, [Solver]);
|
|
192
|
+
setMetadataFor(StreamsSolverFactory, 'StreamsSolverFactory', objectMeta, VOID, [SolverFactory]);
|
|
193
|
+
setMetadataFor(SideEffectManagerImpl, 'SideEffectManagerImpl', classMeta);
|
|
194
|
+
setMetadataFor(orderWithStrategy$slambda, 'orderWithStrategy$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
195
|
+
setMetadataFor(StreamsExecutionContext, 'StreamsExecutionContext', classMeta, VOID, [ExecutionContext]);
|
|
196
|
+
setMetadataFor(AbstractState, 'AbstractState', classMeta);
|
|
197
|
+
setMetadataFor(AlreadyExecutedState, 'AlreadyExecutedState', classMeta);
|
|
198
|
+
setMetadataFor(FinalState, 'FinalState', interfaceMeta);
|
|
166
199
|
function get_context() {
|
|
167
|
-
var tmp = this.
|
|
200
|
+
var tmp = this.c4a().context;
|
|
168
201
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
169
202
|
}
|
|
170
|
-
setMetadataFor(IntermediateState, 'IntermediateState', interfaceMeta
|
|
171
|
-
setMetadataFor(StateMachineExecutor$internalExecute$slambda, 'StateMachineExecutor$internalExecute$slambda', classMeta, CoroutineImpl,
|
|
172
|
-
setMetadataFor(StateMachineExecutor, 'StateMachineExecutor', objectMeta
|
|
173
|
-
setMetadataFor(Companion_1, 'Companion', objectMeta
|
|
174
|
-
setMetadataFor(AbstractTimedState, 'AbstractTimedState', classMeta, AbstractState, [AbstractState, IntermediateState]
|
|
175
|
-
setMetadataFor(StateEnd, 'StateEnd', classMeta, AbstractState, [AbstractState, FinalState]
|
|
176
|
-
setMetadataFor(True, 'True', classMeta, StateEnd, [StateEnd, FinalState]
|
|
177
|
-
setMetadataFor(False, 'False', classMeta, StateEnd, [StateEnd, FinalState]
|
|
178
|
-
setMetadataFor(Halt_0, 'Halt', classMeta, StateEnd, [StateEnd, FinalState]
|
|
179
|
-
setMetadataFor(Companion_2, 'Companion', objectMeta
|
|
180
|
-
setMetadataFor(StateGoalEvaluation$behaveTimed$slambda, 'StateGoalEvaluation$behaveTimed$slambda', classMeta, CoroutineImpl,
|
|
181
|
-
setMetadataFor(StateGoalEvaluation, 'StateGoalEvaluation', classMeta, AbstractTimedState
|
|
182
|
-
setMetadataFor(StateInit$behaveTimed$slambda, 'StateInit$behaveTimed$slambda', classMeta, CoroutineImpl,
|
|
183
|
-
setMetadataFor(StateInit, 'StateInit', classMeta, AbstractTimedState
|
|
184
|
-
setMetadataFor(Companion_3, 'Companion', objectMeta
|
|
185
|
-
setMetadataFor(StateRuleSelection$behaveTimed$slambda, 'StateRuleSelection$behaveTimed$slambda', classMeta, CoroutineImpl,
|
|
186
|
-
setMetadataFor(StateRuleSelection, 'StateRuleSelection', classMeta, AbstractTimedState
|
|
187
|
-
setMetadataFor(DefaultBuiltins, 'DefaultBuiltins', objectMeta, ExtensionLibrary
|
|
188
|
-
setMetadataFor(Call, 'Call', objectMeta, PrimitiveWrapper
|
|
189
|
-
setMetadataFor(Catch$uncheckedImplementation$slambda, 'Catch$uncheckedImplementation$slambda', classMeta, CoroutineImpl,
|
|
190
|
-
setMetadataFor(Catch, 'Catch', objectMeta, PrimitiveWrapper
|
|
191
|
-
setMetadataFor(Conjunction$uncheckedImplementation$slambda, 'Conjunction$uncheckedImplementation$slambda', classMeta, CoroutineImpl,
|
|
192
|
-
setMetadataFor($solveConjunctionGoalsCOROUTINE$0, '$solveConjunctionGoalsCOROUTINE$0', classMeta, CoroutineImpl
|
|
193
|
-
setMetadataFor(Conjunction, 'Conjunction', objectMeta, PrimitiveWrapper,
|
|
194
|
-
setMetadataFor(Cut, 'Cut', objectMeta, PrimitiveWrapper
|
|
195
|
-
setMetadataFor(Not$uncheckedImplementation$slambda, 'Not$uncheckedImplementation$slambda', classMeta, CoroutineImpl,
|
|
196
|
-
setMetadataFor(Not, 'Not', objectMeta, PrimitiveWrapper
|
|
197
|
-
setMetadataFor(Throw, 'Throw', objectMeta, NonBacktrackable
|
|
203
|
+
setMetadataFor(IntermediateState, 'IntermediateState', interfaceMeta);
|
|
204
|
+
setMetadataFor(StateMachineExecutor$internalExecute$slambda, 'StateMachineExecutor$internalExecute$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
205
|
+
setMetadataFor(StateMachineExecutor, 'StateMachineExecutor', objectMeta);
|
|
206
|
+
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
207
|
+
setMetadataFor(AbstractTimedState, 'AbstractTimedState', classMeta, AbstractState, [AbstractState, IntermediateState]);
|
|
208
|
+
setMetadataFor(StateEnd, 'StateEnd', classMeta, AbstractState, [AbstractState, FinalState]);
|
|
209
|
+
setMetadataFor(True, 'True', classMeta, StateEnd, [StateEnd, FinalState]);
|
|
210
|
+
setMetadataFor(False, 'False', classMeta, StateEnd, [StateEnd, FinalState]);
|
|
211
|
+
setMetadataFor(Halt_0, 'Halt', classMeta, StateEnd, [StateEnd, FinalState]);
|
|
212
|
+
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
213
|
+
setMetadataFor(StateGoalEvaluation$behaveTimed$slambda, 'StateGoalEvaluation$behaveTimed$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
214
|
+
setMetadataFor(StateGoalEvaluation, 'StateGoalEvaluation', classMeta, AbstractTimedState);
|
|
215
|
+
setMetadataFor(StateInit$behaveTimed$slambda, 'StateInit$behaveTimed$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
216
|
+
setMetadataFor(StateInit, 'StateInit', classMeta, AbstractTimedState);
|
|
217
|
+
setMetadataFor(Companion_3, 'Companion', objectMeta);
|
|
218
|
+
setMetadataFor(StateRuleSelection$behaveTimed$slambda, 'StateRuleSelection$behaveTimed$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
219
|
+
setMetadataFor(StateRuleSelection, 'StateRuleSelection', classMeta, AbstractTimedState);
|
|
220
|
+
setMetadataFor(DefaultBuiltins, 'DefaultBuiltins', objectMeta, ExtensionLibrary);
|
|
221
|
+
setMetadataFor(Call, 'Call', objectMeta, PrimitiveWrapper);
|
|
222
|
+
setMetadataFor(Catch$uncheckedImplementation$slambda, 'Catch$uncheckedImplementation$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
223
|
+
setMetadataFor(Catch, 'Catch', objectMeta, PrimitiveWrapper);
|
|
224
|
+
setMetadataFor(Conjunction$uncheckedImplementation$slambda, 'Conjunction$uncheckedImplementation$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
225
|
+
setMetadataFor($solveConjunctionGoalsCOROUTINE$0, '$solveConjunctionGoalsCOROUTINE$0', classMeta, CoroutineImpl);
|
|
226
|
+
setMetadataFor(Conjunction, 'Conjunction', objectMeta, PrimitiveWrapper, VOID, VOID, VOID, [7]);
|
|
227
|
+
setMetadataFor(Cut, 'Cut', objectMeta, PrimitiveWrapper);
|
|
228
|
+
setMetadataFor(Not$uncheckedImplementation$slambda, 'Not$uncheckedImplementation$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
229
|
+
setMetadataFor(Not, 'Not', objectMeta, PrimitiveWrapper);
|
|
230
|
+
setMetadataFor(Throw, 'Throw', objectMeta, NonBacktrackable);
|
|
198
231
|
//endregion
|
|
199
232
|
function SolverStrategies$Companion$prologStandard$1() {
|
|
200
233
|
}
|
|
201
|
-
SolverStrategies$Companion$prologStandard$1.
|
|
234
|
+
protoOf(SolverStrategies$Companion$prologStandard$1).y49 = function (predicationSequence, context) {
|
|
202
235
|
return first(predicationSequence);
|
|
203
236
|
};
|
|
204
|
-
SolverStrategies$Companion$prologStandard$1.
|
|
237
|
+
protoOf(SolverStrategies$Companion$prologStandard$1).z49 = function (unifiableClauses, context) {
|
|
205
238
|
return first(unifiableClauses);
|
|
206
239
|
};
|
|
207
|
-
SolverStrategies$Companion$prologStandard$1.
|
|
208
|
-
return term.
|
|
240
|
+
protoOf(SolverStrategies$Companion$prologStandard$1).a4a = function (term, context) {
|
|
241
|
+
return term.uv();
|
|
209
242
|
};
|
|
210
243
|
function Companion() {
|
|
211
244
|
Companion_instance = this;
|
|
212
245
|
var tmp = this;
|
|
213
|
-
tmp.
|
|
246
|
+
tmp.b4a_1 = new SolverStrategies$Companion$prologStandard$1();
|
|
214
247
|
}
|
|
215
248
|
var Companion_instance;
|
|
216
|
-
function
|
|
249
|
+
function Companion_getInstance_18() {
|
|
217
250
|
if (Companion_instance == null)
|
|
218
251
|
new Companion();
|
|
219
252
|
return Companion_instance;
|
|
@@ -223,129 +256,126 @@
|
|
|
223
256
|
}
|
|
224
257
|
function StreamsSolver$Companion$solveToFinalStates$lambda_0($goalRequest) {
|
|
225
258
|
return function (it) {
|
|
226
|
-
return it.
|
|
259
|
+
return it.c4a().solution.v1u().equals($goalRequest.v1u());
|
|
227
260
|
};
|
|
228
261
|
}
|
|
229
262
|
function StreamsSolver$Companion$solveToResponses$lambda(it) {
|
|
230
|
-
return it.
|
|
263
|
+
return it.c4a();
|
|
231
264
|
}
|
|
232
265
|
function StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $this) {
|
|
233
|
-
|
|
266
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
267
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
268
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
269
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
270
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
|
|
271
|
+
stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
|
|
272
|
+
stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
|
|
273
|
+
stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
|
|
274
|
+
warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
|
|
275
|
+
StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance_6().h1x(stdIn), Companion_getInstance_7().k1x(stdOut, stdErr, warnings));
|
|
234
276
|
return $this;
|
|
235
277
|
}
|
|
236
278
|
function StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
237
|
-
return StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings,
|
|
279
|
+
return StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, objectCreate(protoOf(StreamsSolver)));
|
|
238
280
|
}
|
|
239
281
|
function Companion_0() {
|
|
240
282
|
Companion_instance_0 = this;
|
|
241
283
|
}
|
|
242
|
-
Companion_0.
|
|
284
|
+
protoOf(Companion_0).d4a = function (goalRequest) {
|
|
243
285
|
var tmp$ret$0;
|
|
244
286
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
245
|
-
var tmp0_filterIsInstance = StateMachineExecutor_getInstance().
|
|
287
|
+
var tmp0_filterIsInstance = StateMachineExecutor_getInstance().e4a(new StateInit(goalRequest));
|
|
246
288
|
var tmp = filter(tmp0_filterIsInstance, StreamsSolver$Companion$solveToFinalStates$lambda);
|
|
247
289
|
tmp$ret$0 = isInterface(tmp, Sequence) ? tmp : THROW_CCE();
|
|
248
290
|
var tmp_0 = tmp$ret$0;
|
|
249
291
|
return filter(tmp_0, StreamsSolver$Companion$solveToFinalStates$lambda_0(goalRequest));
|
|
250
292
|
};
|
|
251
|
-
Companion_0.
|
|
252
|
-
var tmp = this.
|
|
293
|
+
protoOf(Companion_0).f4a = function (goalRequest) {
|
|
294
|
+
var tmp = this.d4a(goalRequest);
|
|
253
295
|
return map(tmp, StreamsSolver$Companion$solveToResponses$lambda);
|
|
254
296
|
};
|
|
255
297
|
var Companion_instance_0;
|
|
256
|
-
function
|
|
298
|
+
function Companion_getInstance_19() {
|
|
257
299
|
if (Companion_instance_0 == null)
|
|
258
300
|
new Companion_0();
|
|
259
301
|
return Companion_instance_0;
|
|
260
302
|
}
|
|
261
303
|
function StreamsSolver$solve$lambda(this$0) {
|
|
262
304
|
return function (it) {
|
|
263
|
-
this$0.
|
|
264
|
-
return it.
|
|
305
|
+
this$0.g4a_1 = it.n5().v34(it.c4a().sideEffects);
|
|
306
|
+
return it.c4a().solution.cleanUp();
|
|
265
307
|
};
|
|
266
308
|
}
|
|
267
309
|
function StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
var
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
var tmp_7 = new Long(0, 0);
|
|
285
|
-
var tmp_8 = options.g1x();
|
|
286
|
-
tmp.l4c_1 = StreamsExecutionContext_init_$Create$(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, null, tmp_5, tmp_6, null, null, tmp_7, tmp_8, null, null, 14112, null);
|
|
287
|
-
var tmp_9 = Companion_getInstance_16();
|
|
288
|
-
var tmp_10 = extractSignature(goal);
|
|
289
|
-
var tmp_11 = goal.dw();
|
|
290
|
-
var tmp_12 = this.l4c_1;
|
|
291
|
-
var tmp_13 = new Long(0, 0);
|
|
292
|
-
var tmp_14 = tmp_9.i4c(Request_init_$Create$(tmp_10, tmp_11, tmp_12, tmp_13, new Long(0, 0), 24, null));
|
|
293
|
-
var solutionSequence = map(tmp_14, StreamsSolver$solve$lambda(this));
|
|
294
|
-
if (options.h1x() > 0) {
|
|
295
|
-
solutionSequence = take(solutionSequence, options.h1x());
|
|
310
|
+
Companion_getInstance_19();
|
|
311
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
312
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
313
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
314
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
315
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_2().empty(unificator) : dynamicKb;
|
|
316
|
+
inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
|
|
317
|
+
outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
|
|
318
|
+
this.g4a_1 = new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])), inputChannels, outputChannels);
|
|
319
|
+
}
|
|
320
|
+
protoOf(StreamsSolver).f2a = function (goal, options) {
|
|
321
|
+
this.g4a_1 = new StreamsExecutionContext(this.k1k(), this.v1t(), this.w1t(), this.x1t(), this.y1t(), VOID, this.z1t(), this.a1u(), VOID, VOID, VOID, options.b1w());
|
|
322
|
+
var tmp = Companion_getInstance_19().d4a(new Request(extractSignature(goal), goal.xv(), this.g4a_1));
|
|
323
|
+
var solutionSequence = map(tmp, StreamsSolver$solve$lambda(this));
|
|
324
|
+
if (options.c1w() > 0) {
|
|
325
|
+
solutionSequence = take(solutionSequence, options.c1w());
|
|
296
326
|
}
|
|
297
|
-
if (options.
|
|
327
|
+
if (options.a1w()) {
|
|
298
328
|
solutionSequence = buffered(solutionSequence);
|
|
299
329
|
}
|
|
300
330
|
return solutionSequence;
|
|
301
331
|
};
|
|
302
|
-
StreamsSolver.
|
|
303
|
-
return this.
|
|
332
|
+
protoOf(StreamsSolver).solveWithOptions = function (goal, options) {
|
|
333
|
+
return this.f2a(goal, options);
|
|
304
334
|
};
|
|
305
|
-
StreamsSolver.
|
|
335
|
+
protoOf(StreamsSolver).m1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
306
336
|
return StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
|
|
307
337
|
};
|
|
308
|
-
StreamsSolver.
|
|
309
|
-
return this.
|
|
338
|
+
protoOf(StreamsSolver).k1k = function () {
|
|
339
|
+
return this.g4a_1.h4a_1;
|
|
310
340
|
};
|
|
311
|
-
StreamsSolver.
|
|
312
|
-
return this.
|
|
341
|
+
protoOf(StreamsSolver).v1t = function () {
|
|
342
|
+
return this.g4a_1.i4a_1;
|
|
313
343
|
};
|
|
314
|
-
StreamsSolver.
|
|
315
|
-
return this.
|
|
344
|
+
protoOf(StreamsSolver).w1t = function () {
|
|
345
|
+
return this.g4a_1.j4a_1;
|
|
316
346
|
};
|
|
317
|
-
StreamsSolver.
|
|
318
|
-
return this.
|
|
347
|
+
protoOf(StreamsSolver).x1t = function () {
|
|
348
|
+
return this.g4a_1.k4a_1;
|
|
319
349
|
};
|
|
320
|
-
StreamsSolver.
|
|
321
|
-
return this.
|
|
350
|
+
protoOf(StreamsSolver).y1t = function () {
|
|
351
|
+
return this.g4a_1.l4a_1;
|
|
322
352
|
};
|
|
323
|
-
StreamsSolver.
|
|
324
|
-
return this.
|
|
353
|
+
protoOf(StreamsSolver).z1t = function () {
|
|
354
|
+
return this.g4a_1.n4a_1;
|
|
325
355
|
};
|
|
326
|
-
StreamsSolver.
|
|
327
|
-
return this.
|
|
356
|
+
protoOf(StreamsSolver).a1u = function () {
|
|
357
|
+
return this.g4a_1.o4a_1;
|
|
328
358
|
};
|
|
329
|
-
StreamsSolver.
|
|
330
|
-
return this.
|
|
359
|
+
protoOf(StreamsSolver).e1u = function () {
|
|
360
|
+
return this.g4a_1.m4a_1;
|
|
331
361
|
};
|
|
332
362
|
function StreamsSolverFactory() {
|
|
333
363
|
StreamsSolverFactory_instance = this;
|
|
334
364
|
}
|
|
335
|
-
StreamsSolverFactory.
|
|
365
|
+
protoOf(StreamsSolverFactory).u1w = function () {
|
|
336
366
|
return DefaultBuiltins_getInstance();
|
|
337
367
|
};
|
|
338
|
-
StreamsSolverFactory.
|
|
368
|
+
protoOf(StreamsSolverFactory).f1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
339
369
|
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
|
|
340
370
|
};
|
|
341
|
-
StreamsSolverFactory.
|
|
342
|
-
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb,
|
|
371
|
+
protoOf(StreamsSolverFactory).l1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
372
|
+
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance_6().h1x(stdIn), Companion_getInstance_7().k1x(stdOut, stdErr, warnings));
|
|
343
373
|
};
|
|
344
|
-
StreamsSolverFactory.
|
|
374
|
+
protoOf(StreamsSolverFactory).n1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
|
|
345
375
|
// Inline function 'kotlin.TODO' call
|
|
346
376
|
throw new NotImplementedError('An operation is not implemented: Mutable stream solver is not supported yet');
|
|
347
377
|
};
|
|
348
|
-
StreamsSolverFactory.
|
|
378
|
+
protoOf(StreamsSolverFactory).p1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
|
|
349
379
|
// Inline function 'kotlin.TODO' call
|
|
350
380
|
throw new NotImplementedError('An operation is not implemented: Mutable stream solver is not supported yet');
|
|
351
381
|
};
|
|
@@ -355,58 +385,39 @@
|
|
|
355
385
|
new StreamsSolverFactory();
|
|
356
386
|
return StreamsSolverFactory_instance;
|
|
357
387
|
}
|
|
358
|
-
function SideEffectManagerImpl_init_$Init$(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $mask0, $marker, $this) {
|
|
359
|
-
if (!(($mask0 & 1) === 0))
|
|
360
|
-
clauseScopedParents = emptyList();
|
|
361
|
-
if (!(($mask0 & 2) === 0))
|
|
362
|
-
isChoicePointChild = false;
|
|
363
|
-
if (!(($mask0 & 4) === 0))
|
|
364
|
-
toCutContextsParent = emptySequence();
|
|
365
|
-
if (!(($mask0 & 8) === 0))
|
|
366
|
-
logicalParentRequests = emptyList();
|
|
367
|
-
if (!(($mask0 & 16) === 0))
|
|
368
|
-
throwNonSelectableParentContexts = emptySequence();
|
|
369
|
-
if (!(($mask0 & 32) === 0))
|
|
370
|
-
throwRelatedToCutContextsParent = null;
|
|
371
|
-
SideEffectManagerImpl.call($this, clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
372
|
-
return $this;
|
|
373
|
-
}
|
|
374
|
-
function SideEffectManagerImpl_init_$Create$(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $mask0, $marker) {
|
|
375
|
-
return SideEffectManagerImpl_init_$Init$(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $mask0, $marker, Object.create(SideEffectManagerImpl.prototype));
|
|
376
|
-
}
|
|
377
388
|
function getFirstChoicePointContext($this) {
|
|
378
389
|
var tmp$ret$6;
|
|
379
390
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
380
391
|
var tmp$ret$2;
|
|
381
392
|
// Inline function 'kotlin.collections.filter' call
|
|
382
|
-
var
|
|
393
|
+
var tmp1_filter = $this.w4a_1;
|
|
383
394
|
var tmp$ret$1;
|
|
384
395
|
// Inline function 'kotlin.collections.filterTo' call
|
|
385
396
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
386
|
-
var tmp0_iterator =
|
|
397
|
+
var tmp0_iterator = tmp1_filter.j();
|
|
387
398
|
while (tmp0_iterator.m()) {
|
|
388
399
|
var element = tmp0_iterator.n();
|
|
389
400
|
var tmp$ret$0;
|
|
390
401
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.getFirstChoicePointContext.<anonymous>' call
|
|
391
|
-
tmp$ret$0 = element.
|
|
402
|
+
tmp$ret$0 = element.u4a_1.x4a_1;
|
|
392
403
|
if (tmp$ret$0) {
|
|
393
404
|
tmp0_filterTo.g(element);
|
|
394
405
|
}
|
|
395
406
|
}
|
|
396
407
|
tmp$ret$1 = tmp0_filterTo;
|
|
397
408
|
tmp$ret$2 = tmp$ret$1;
|
|
398
|
-
var
|
|
409
|
+
var tmp3_mapNotNull = tmp$ret$2;
|
|
399
410
|
var tmp$ret$5;
|
|
400
411
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
401
|
-
var
|
|
412
|
+
var tmp2_mapNotNullTo = ArrayList_init_$Create$();
|
|
402
413
|
// Inline function 'kotlin.collections.forEach' call
|
|
403
|
-
var tmp0_iterator_0 =
|
|
414
|
+
var tmp0_iterator_0 = tmp3_mapNotNull.j();
|
|
404
415
|
while (tmp0_iterator_0.m()) {
|
|
405
416
|
var element_0 = tmp0_iterator_0.n();
|
|
406
417
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
407
418
|
var tmp$ret$3;
|
|
408
419
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.getFirstChoicePointContext.<anonymous>' call
|
|
409
|
-
tmp$ret$3 = firstOrNull(element_0.
|
|
420
|
+
tmp$ret$3 = firstOrNull(element_0.u4a_1.w4a_1);
|
|
410
421
|
var tmp0_safe_receiver = tmp$ret$3;
|
|
411
422
|
if (tmp0_safe_receiver == null)
|
|
412
423
|
null;
|
|
@@ -414,55 +425,59 @@
|
|
|
414
425
|
var tmp$ret$4;
|
|
415
426
|
// Inline function 'kotlin.let' call
|
|
416
427
|
// Inline function 'kotlin.contracts.contract' call
|
|
417
|
-
|
|
428
|
+
tmp2_mapNotNullTo.g(tmp0_safe_receiver);
|
|
418
429
|
tmp$ret$4 = Unit_getInstance();
|
|
419
430
|
}
|
|
420
431
|
}
|
|
421
|
-
tmp$ret$5 =
|
|
432
|
+
tmp$ret$5 = tmp2_mapNotNullTo;
|
|
422
433
|
tmp$ret$6 = tmp$ret$5;
|
|
423
434
|
return tmp$ret$6;
|
|
424
435
|
}
|
|
425
436
|
function SideEffectManagerImpl(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
437
|
+
clauseScopedParents = clauseScopedParents === VOID ? emptyList() : clauseScopedParents;
|
|
438
|
+
isChoicePointChild = isChoicePointChild === VOID ? false : isChoicePointChild;
|
|
439
|
+
toCutContextsParent = toCutContextsParent === VOID ? emptySequence() : toCutContextsParent;
|
|
440
|
+
logicalParentRequests = logicalParentRequests === VOID ? emptyList() : logicalParentRequests;
|
|
441
|
+
throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? emptySequence() : throwNonSelectableParentContexts;
|
|
442
|
+
throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? null : throwRelatedToCutContextsParent;
|
|
443
|
+
this.w4a_1 = clauseScopedParents;
|
|
444
|
+
this.x4a_1 = isChoicePointChild;
|
|
445
|
+
this.y4a_1 = toCutContextsParent;
|
|
446
|
+
this.z4a_1 = logicalParentRequests;
|
|
447
|
+
this.a4b_1 = throwNonSelectableParentContexts;
|
|
448
|
+
this.b4b_1 = throwRelatedToCutContextsParent;
|
|
449
|
+
}
|
|
450
|
+
protoOf(SideEffectManagerImpl).c4b = function () {
|
|
451
|
+
return this.d4b(VOID, VOID, plus(this.y4a_1, getFirstChoicePointContext(this)));
|
|
452
|
+
};
|
|
453
|
+
protoOf(SideEffectManagerImpl).cut = function () {
|
|
454
|
+
return this.c4b();
|
|
455
|
+
};
|
|
456
|
+
protoOf(SideEffectManagerImpl).e4b = function (currentContext) {
|
|
441
457
|
var tmp$ret$0;
|
|
442
458
|
// Inline function 'kotlin.apply' call
|
|
443
|
-
var tmp0_apply = toMutableList(this.
|
|
459
|
+
var tmp0_apply = toMutableList(this.w4a_1);
|
|
444
460
|
// Inline function 'kotlin.contracts.contract' call
|
|
445
461
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.stateInitInitialize.<anonymous>' call
|
|
446
|
-
tmp0_apply.
|
|
462
|
+
tmp0_apply.za(0, currentContext);
|
|
447
463
|
tmp$ret$0 = tmp0_apply;
|
|
448
|
-
|
|
449
|
-
return this.i4d(tmp, false, null, null, null, null, 60, null);
|
|
464
|
+
return this.d4b(tmp$ret$0, false);
|
|
450
465
|
};
|
|
451
|
-
SideEffectManagerImpl.
|
|
466
|
+
protoOf(SideEffectManagerImpl).f4b = function (currentContext, isChoicePointChild, logicalParentRequest) {
|
|
452
467
|
var tmp$ret$0;
|
|
453
468
|
// Inline function 'kotlin.apply' call
|
|
454
|
-
var tmp0_apply = toMutableList(this.
|
|
469
|
+
var tmp0_apply = toMutableList(this.w4a_1);
|
|
455
470
|
// Inline function 'kotlin.contracts.contract' call
|
|
456
471
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.creatingNewRequest.<anonymous>' call
|
|
457
|
-
tmp0_apply.
|
|
472
|
+
tmp0_apply.za(0, currentContext);
|
|
458
473
|
tmp$ret$0 = tmp0_apply;
|
|
459
474
|
var tmp = tmp$ret$0;
|
|
460
475
|
var tmp0_subject = logicalParentRequest;
|
|
461
476
|
var tmp_0;
|
|
462
|
-
if (this.
|
|
477
|
+
if (this.z4a_1.v(tmp0_subject)) {
|
|
463
478
|
var tmp$ret$2;
|
|
464
479
|
// Inline function 'kotlin.collections.dropWhile' call
|
|
465
|
-
var tmp1_dropWhile = this.
|
|
480
|
+
var tmp1_dropWhile = this.z4a_1;
|
|
466
481
|
var yielding = false;
|
|
467
482
|
var list = ArrayList_init_$Create$();
|
|
468
483
|
var tmp0_iterator = tmp1_dropWhile.j();
|
|
@@ -485,44 +500,41 @@
|
|
|
485
500
|
} else {
|
|
486
501
|
var tmp$ret$3;
|
|
487
502
|
// Inline function 'kotlin.apply' call
|
|
488
|
-
var tmp2_apply = toMutableList(this.
|
|
503
|
+
var tmp2_apply = toMutableList(this.z4a_1);
|
|
489
504
|
// Inline function 'kotlin.contracts.contract' call
|
|
490
505
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.creatingNewRequest.<anonymous>' call
|
|
491
|
-
tmp2_apply.
|
|
506
|
+
tmp2_apply.za(0, logicalParentRequest);
|
|
492
507
|
tmp$ret$3 = tmp2_apply;
|
|
493
508
|
tmp_0 = tmp$ret$3;
|
|
494
509
|
}
|
|
495
|
-
|
|
496
|
-
return this.i4d(tmp, isChoicePointChild, null, tmp_1, null, null, 52, null);
|
|
510
|
+
return this.d4b(tmp, isChoicePointChild, VOID, tmp_0);
|
|
497
511
|
};
|
|
498
|
-
SideEffectManagerImpl.
|
|
499
|
-
|
|
500
|
-
return this.i4d(tmp, false, null, null, null, null, 62, null);
|
|
512
|
+
protoOf(SideEffectManagerImpl).g4b = function () {
|
|
513
|
+
return this.d4b(listOf(first_0(this.w4a_1)));
|
|
501
514
|
};
|
|
502
|
-
SideEffectManagerImpl.
|
|
515
|
+
protoOf(SideEffectManagerImpl).h4b = function (upperScopeSideEffectsManager) {
|
|
503
516
|
var tmp$ret$0;
|
|
504
517
|
// Inline function 'kotlin.apply' call
|
|
505
|
-
var tmp0_apply = toMutableList(this.
|
|
518
|
+
var tmp0_apply = toMutableList(this.w4a_1);
|
|
506
519
|
// Inline function 'kotlin.contracts.contract' call
|
|
507
520
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.extendParentScopeWith.<anonymous>' call
|
|
508
|
-
tmp0_apply.t(upperScopeSideEffectsManager.
|
|
521
|
+
tmp0_apply.t(upperScopeSideEffectsManager.w4a_1);
|
|
509
522
|
tmp$ret$0 = tmp0_apply;
|
|
510
|
-
|
|
511
|
-
return this.i4d(tmp, false, null, null, null, null, 62, null);
|
|
523
|
+
return this.d4b(tmp$ret$0);
|
|
512
524
|
};
|
|
513
|
-
SideEffectManagerImpl.
|
|
514
|
-
return contains(this.
|
|
525
|
+
protoOf(SideEffectManagerImpl).i4b = function () {
|
|
526
|
+
return contains(this.y4a_1, lastOrNull(this.w4a_1)) ? true : this.j4b();
|
|
515
527
|
};
|
|
516
|
-
SideEffectManagerImpl.
|
|
528
|
+
protoOf(SideEffectManagerImpl).k4b = function (toUnifyArgument) {
|
|
517
529
|
var tmp$ret$5;
|
|
518
530
|
// Inline function 'kotlin.collections.filterNot' call
|
|
519
531
|
var tmp$ret$2;
|
|
520
532
|
// Inline function 'kotlin.collections.filter' call
|
|
521
|
-
var
|
|
533
|
+
var tmp1_filter = this.z4a_1;
|
|
522
534
|
var tmp$ret$1;
|
|
523
535
|
// Inline function 'kotlin.collections.filterTo' call
|
|
524
536
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
525
|
-
var tmp0_iterator =
|
|
537
|
+
var tmp0_iterator = tmp1_filter.j();
|
|
526
538
|
while (tmp0_iterator.m()) {
|
|
527
539
|
var element = tmp0_iterator.n();
|
|
528
540
|
var tmp$ret$0;
|
|
@@ -534,21 +546,21 @@
|
|
|
534
546
|
}
|
|
535
547
|
tmp$ret$1 = tmp0_filterTo;
|
|
536
548
|
tmp$ret$2 = tmp$ret$1;
|
|
537
|
-
var
|
|
549
|
+
var tmp3_filterNot = tmp$ret$2;
|
|
538
550
|
var tmp$ret$4;
|
|
539
551
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
540
|
-
var
|
|
541
|
-
var tmp0_iterator_0 =
|
|
552
|
+
var tmp2_filterNotTo = ArrayList_init_$Create$();
|
|
553
|
+
var tmp0_iterator_0 = tmp3_filterNot.j();
|
|
542
554
|
while (tmp0_iterator_0.m()) {
|
|
543
555
|
var element_0 = tmp0_iterator_0.n();
|
|
544
556
|
var tmp$ret$3;
|
|
545
557
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
|
|
546
|
-
tmp$ret$3 = contains(this.
|
|
558
|
+
tmp$ret$3 = contains(this.a4b_1, element_0.context);
|
|
547
559
|
if (!tmp$ret$3) {
|
|
548
|
-
|
|
560
|
+
tmp2_filterNotTo.g(element_0);
|
|
549
561
|
}
|
|
550
562
|
}
|
|
551
|
-
tmp$ret$4 =
|
|
563
|
+
tmp$ret$4 = tmp2_filterNotTo;
|
|
552
564
|
tmp$ret$5 = tmp$ret$4;
|
|
553
565
|
var ancestorCatchesRequests = tmp$ret$5;
|
|
554
566
|
var tmp$ret$8;
|
|
@@ -561,7 +573,7 @@
|
|
|
561
573
|
var element_1 = tmp0_iterator_1.n();
|
|
562
574
|
var tmp$ret$6;
|
|
563
575
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
|
|
564
|
-
tmp$ret$6 =
|
|
576
|
+
tmp$ret$6 = Companion_getInstance().matches(element_1.arguments.o(1), toUnifyArgument);
|
|
565
577
|
if (tmp$ret$6) {
|
|
566
578
|
tmp$ret$7 = element_1;
|
|
567
579
|
break $l$block;
|
|
@@ -572,24 +584,23 @@
|
|
|
572
584
|
tmp$ret$8 = tmp$ret$7;
|
|
573
585
|
return tmp$ret$8;
|
|
574
586
|
};
|
|
575
|
-
SideEffectManagerImpl.
|
|
576
|
-
return this.
|
|
587
|
+
protoOf(SideEffectManagerImpl).l4b = function (ancestorCatchContext) {
|
|
588
|
+
return this.d4b(VOID, VOID, VOID, VOID, VOID, ancestorCatchContext);
|
|
577
589
|
};
|
|
578
|
-
SideEffectManagerImpl.
|
|
579
|
-
return equals(this.
|
|
590
|
+
protoOf(SideEffectManagerImpl).m4b = function (contextImpl) {
|
|
591
|
+
return equals(this.b4b_1, contextImpl);
|
|
580
592
|
};
|
|
581
|
-
SideEffectManagerImpl.
|
|
582
|
-
|
|
583
|
-
return this.i4d(null, false, null, null, tmp, null, 47, null);
|
|
593
|
+
protoOf(SideEffectManagerImpl).n4b = function (contextImpl) {
|
|
594
|
+
return this.d4b(VOID, VOID, VOID, VOID, plus_0(this.a4b_1, contextImpl));
|
|
584
595
|
};
|
|
585
|
-
SideEffectManagerImpl.
|
|
586
|
-
return this.
|
|
596
|
+
protoOf(SideEffectManagerImpl).o4b = function (toRecoverSituation) {
|
|
597
|
+
return this.d4b(VOID, VOID, toRecoverSituation.y4a_1);
|
|
587
598
|
};
|
|
588
|
-
SideEffectManagerImpl.
|
|
599
|
+
protoOf(SideEffectManagerImpl).j4b = function () {
|
|
589
600
|
var tmp$ret$0;
|
|
590
601
|
$l$block_0: {
|
|
591
602
|
// Inline function 'kotlin.collections.any' call
|
|
592
|
-
var tmp0_any = this.
|
|
603
|
+
var tmp0_any = this.z4a_1;
|
|
593
604
|
var tmp;
|
|
594
605
|
if (isInterface(tmp0_any, Collection)) {
|
|
595
606
|
tmp = tmp0_any.d();
|
|
@@ -605,7 +616,7 @@
|
|
|
605
616
|
var element = tmp0_iterator.n();
|
|
606
617
|
var tmp$ret$1;
|
|
607
618
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.shouldExecuteThrowCut.<anonymous>' call
|
|
608
|
-
tmp$ret$1 = element.context.equals(this.
|
|
619
|
+
tmp$ret$1 = element.context.equals(this.b4b_1);
|
|
609
620
|
if (tmp$ret$1) {
|
|
610
621
|
tmp$ret$0 = true;
|
|
611
622
|
break $l$block_0;
|
|
@@ -615,81 +626,75 @@
|
|
|
615
626
|
}
|
|
616
627
|
return tmp$ret$0;
|
|
617
628
|
};
|
|
618
|
-
SideEffectManagerImpl.
|
|
629
|
+
protoOf(SideEffectManagerImpl).p4b = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
|
|
619
630
|
return new SideEffectManagerImpl(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
620
631
|
};
|
|
621
|
-
SideEffectManagerImpl.
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
var result = hashCode(this.b4d_1);
|
|
641
|
-
result = imul(result, 31) + (this.c4d_1 | 0) | 0;
|
|
642
|
-
result = imul(result, 31) + hashCode(this.d4d_1) | 0;
|
|
643
|
-
result = imul(result, 31) + hashCode(this.e4d_1) | 0;
|
|
644
|
-
result = imul(result, 31) + hashCode(this.f4d_1) | 0;
|
|
645
|
-
result = imul(result, 31) + (this.g4d_1 == null ? 0 : this.g4d_1.hashCode()) | 0;
|
|
632
|
+
protoOf(SideEffectManagerImpl).d4b = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $super) {
|
|
633
|
+
clauseScopedParents = clauseScopedParents === VOID ? this.w4a_1 : clauseScopedParents;
|
|
634
|
+
isChoicePointChild = isChoicePointChild === VOID ? this.x4a_1 : isChoicePointChild;
|
|
635
|
+
toCutContextsParent = toCutContextsParent === VOID ? this.y4a_1 : toCutContextsParent;
|
|
636
|
+
logicalParentRequests = logicalParentRequests === VOID ? this.z4a_1 : logicalParentRequests;
|
|
637
|
+
throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? this.a4b_1 : throwNonSelectableParentContexts;
|
|
638
|
+
throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? this.b4b_1 : throwRelatedToCutContextsParent;
|
|
639
|
+
return $super === VOID ? this.p4b(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) : $super.p4b.call(this, clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
|
|
640
|
+
};
|
|
641
|
+
protoOf(SideEffectManagerImpl).toString = function () {
|
|
642
|
+
return 'SideEffectManagerImpl(clauseScopedParents=' + this.w4a_1 + ', isChoicePointChild=' + this.x4a_1 + ', toCutContextsParent=' + this.y4a_1 + ', logicalParentRequests=' + this.z4a_1 + ', throwNonSelectableParentContexts=' + this.a4b_1 + ', throwRelatedToCutContextsParent=' + this.b4b_1 + ')';
|
|
643
|
+
};
|
|
644
|
+
protoOf(SideEffectManagerImpl).hashCode = function () {
|
|
645
|
+
var result = hashCode(this.w4a_1);
|
|
646
|
+
result = imul(result, 31) + (this.x4a_1 | 0) | 0;
|
|
647
|
+
result = imul(result, 31) + hashCode(this.y4a_1) | 0;
|
|
648
|
+
result = imul(result, 31) + hashCode(this.z4a_1) | 0;
|
|
649
|
+
result = imul(result, 31) + hashCode(this.a4b_1) | 0;
|
|
650
|
+
result = imul(result, 31) + (this.b4b_1 == null ? 0 : this.b4b_1.hashCode()) | 0;
|
|
646
651
|
return result;
|
|
647
652
|
};
|
|
648
|
-
SideEffectManagerImpl.
|
|
653
|
+
protoOf(SideEffectManagerImpl).equals = function (other) {
|
|
649
654
|
if (this === other)
|
|
650
655
|
return true;
|
|
651
656
|
if (!(other instanceof SideEffectManagerImpl))
|
|
652
657
|
return false;
|
|
653
658
|
var tmp0_other_with_cast = other instanceof SideEffectManagerImpl ? other : THROW_CCE();
|
|
654
|
-
if (!equals(this.
|
|
659
|
+
if (!equals(this.w4a_1, tmp0_other_with_cast.w4a_1))
|
|
655
660
|
return false;
|
|
656
|
-
if (!(this.
|
|
661
|
+
if (!(this.x4a_1 === tmp0_other_with_cast.x4a_1))
|
|
657
662
|
return false;
|
|
658
|
-
if (!equals(this.
|
|
663
|
+
if (!equals(this.y4a_1, tmp0_other_with_cast.y4a_1))
|
|
659
664
|
return false;
|
|
660
|
-
if (!equals(this.
|
|
665
|
+
if (!equals(this.z4a_1, tmp0_other_with_cast.z4a_1))
|
|
661
666
|
return false;
|
|
662
|
-
if (!equals(this.
|
|
667
|
+
if (!equals(this.a4b_1, tmp0_other_with_cast.a4b_1))
|
|
663
668
|
return false;
|
|
664
|
-
if (!equals(this.
|
|
669
|
+
if (!equals(this.b4b_1, tmp0_other_with_cast.b4b_1))
|
|
665
670
|
return false;
|
|
666
671
|
return true;
|
|
667
672
|
};
|
|
668
673
|
function resetCutWorkChanges(_this__u8e3s4, toRecoverSituation) {
|
|
669
674
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
670
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
675
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o4b(toRecoverSituation);
|
|
671
676
|
}
|
|
672
677
|
function isSelectedThrowCatch(_this__u8e3s4, context) {
|
|
673
678
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
674
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
679
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m4b(context);
|
|
675
680
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
676
681
|
}
|
|
677
682
|
function shouldExecuteThrowCut(_this__u8e3s4) {
|
|
678
683
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
679
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
684
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j4b();
|
|
680
685
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
681
686
|
}
|
|
682
687
|
function shouldCutExecuteInRuleSelection(_this__u8e3s4) {
|
|
683
688
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
684
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
689
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i4b();
|
|
685
690
|
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
686
691
|
}
|
|
687
692
|
function extendParentScopeWith(_this__u8e3s4, upperScopeSideEffectsManager) {
|
|
688
693
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
|
|
689
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
694
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h4b(upperScopeSideEffectsManager);
|
|
690
695
|
}
|
|
691
696
|
function isWellFormed(_this__u8e3s4) {
|
|
692
|
-
return _this__u8e3s4.accept(
|
|
697
|
+
return _this__u8e3s4.accept(Companion_getInstance_8().bodyWellFormedVisitor);
|
|
693
698
|
}
|
|
694
699
|
function replyWith(_this__u8e3s4, otherResponse) {
|
|
695
700
|
var tmp$ret$2;
|
|
@@ -703,41 +708,29 @@
|
|
|
703
708
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
704
709
|
var tmp0_toTypedArray = otherResponse.sideEffects;
|
|
705
710
|
tmp$ret$0 = copyToArray(tmp0_toTypedArray);
|
|
706
|
-
tmp$ret$1 = _this__u8e3s4.
|
|
711
|
+
tmp$ret$1 = _this__u8e3s4.w2g(otherResponse.solution, tmp, tmp$ret$0.slice());
|
|
707
712
|
tmp$ret$2 = tmp$ret$1;
|
|
708
713
|
return tmp$ret$2;
|
|
709
714
|
}
|
|
710
715
|
function newSolveRequest(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild) {
|
|
716
|
+
toAddSubstitutions = toAddSubstitutions === VOID ? Companion_getInstance_9().empty() : toAddSubstitutions;
|
|
717
|
+
toPropagateContextData = toPropagateContextData === VOID ? _this__u8e3s4.context : toPropagateContextData;
|
|
718
|
+
baseSideEffectManager = baseSideEffectManager === VOID ? _this__u8e3s4.context.u4a_1 : baseSideEffectManager;
|
|
719
|
+
requestIssuingInstant = requestIssuingInstant === VOID ? _this__u8e3s4.g28_1 : requestIssuingInstant;
|
|
720
|
+
isChoicePointChild = isChoicePointChild === VOID ? false : isChoicePointChild;
|
|
711
721
|
var tmp = extractSignature(newGoal);
|
|
712
|
-
var tmp_0 = newGoal.
|
|
713
|
-
var tmp_1 = toPropagateContextData.
|
|
714
|
-
var tmp_2 = toPropagateContextData.
|
|
715
|
-
var tmp_3 = toPropagateContextData.
|
|
716
|
-
var tmp_4 = toPropagateContextData.
|
|
717
|
-
var tmp_5 = toPropagateContextData.
|
|
718
|
-
var tmp_6 = toPropagateContextData.
|
|
719
|
-
var tmp_7 = _this__u8e3s4.context.
|
|
720
|
-
|
|
721
|
-
var tmp_9 = new Long(0, 0);
|
|
722
|
-
var tmp_10 = new Long(0, 0);
|
|
723
|
-
var tmp_11 = _this__u8e3s4.context.v4d(null, tmp_1, tmp_2, tmp_3, tmp_4, null, tmp_5, tmp_6, null, tmp_8, tmp_9, tmp_10, null, baseSideEffectManager.k4d(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4), 7457, null);
|
|
724
|
-
return _this__u8e3s4.g2j(tmp, tmp_0, tmp_11, requestIssuingInstant, new Long(0, 0), 16, null);
|
|
725
|
-
}
|
|
726
|
-
function newSolveRequest$default(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild, $mask0, $handler) {
|
|
727
|
-
if (!(($mask0 & 2) === 0))
|
|
728
|
-
toAddSubstitutions = Companion_getInstance_3().empty();
|
|
729
|
-
if (!(($mask0 & 4) === 0))
|
|
730
|
-
toPropagateContextData = _this__u8e3s4.context;
|
|
731
|
-
if (!(($mask0 & 8) === 0))
|
|
732
|
-
baseSideEffectManager = _this__u8e3s4.context.z4c_1;
|
|
733
|
-
if (!(($mask0 & 16) === 0))
|
|
734
|
-
requestIssuingInstant = _this__u8e3s4.a2a_1;
|
|
735
|
-
if (!(($mask0 & 32) === 0))
|
|
736
|
-
isChoicePointChild = false;
|
|
737
|
-
return newSolveRequest(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild);
|
|
722
|
+
var tmp_0 = newGoal.xv();
|
|
723
|
+
var tmp_1 = toPropagateContextData.v1t();
|
|
724
|
+
var tmp_2 = toPropagateContextData.w1t();
|
|
725
|
+
var tmp_3 = toPropagateContextData.x1t();
|
|
726
|
+
var tmp_4 = toPropagateContextData.y1t();
|
|
727
|
+
var tmp_5 = toPropagateContextData.z1t();
|
|
728
|
+
var tmp_6 = toPropagateContextData.a1u();
|
|
729
|
+
var tmp_7 = _this__u8e3s4.context.q4a_1.plus(toAddSubstitutions);
|
|
730
|
+
return _this__u8e3s4.d2h(tmp, tmp_0, _this__u8e3s4.context.q4b(VOID, tmp_1, tmp_2, tmp_3, tmp_4, VOID, tmp_5, tmp_6, VOID, isInterface(tmp_7, Unifier) ? tmp_7 : THROW_CCE(), VOID, VOID, VOID, baseSideEffectManager.f4b(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4)), requestIssuingInstant);
|
|
738
731
|
}
|
|
739
732
|
function prepareForExecutionAsGoal(_this__u8e3s4) {
|
|
740
|
-
return single(prepareForExecution(
|
|
733
|
+
return single(prepareForExecution(Companion_getInstance_10().of(_this__u8e3s4, [])).xv()).kw();
|
|
741
734
|
}
|
|
742
735
|
function orderWithStrategy(_this__u8e3s4, context, selectionStrategy) {
|
|
743
736
|
var tmp0_subject = any(_this__u8e3s4);
|
|
@@ -806,40 +799,40 @@
|
|
|
806
799
|
};
|
|
807
800
|
}
|
|
808
801
|
function orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
802
|
+
this.z4b_1 = $selectionStrategy;
|
|
803
|
+
this.a4c_1 = $this_orderWithStrategy;
|
|
804
|
+
this.b4c_1 = $context;
|
|
812
805
|
CoroutineImpl.call(this, resultContinuation);
|
|
813
806
|
}
|
|
814
|
-
orderWithStrategy$slambda.
|
|
815
|
-
var tmp = this.
|
|
816
|
-
tmp.
|
|
817
|
-
tmp.
|
|
818
|
-
return tmp.
|
|
807
|
+
protoOf(orderWithStrategy$slambda).e4c = function ($this$sequence, $completion) {
|
|
808
|
+
var tmp = this.f4c($this$sequence, $completion);
|
|
809
|
+
tmp.ci_1 = Unit_getInstance();
|
|
810
|
+
tmp.di_1 = null;
|
|
811
|
+
return tmp.ii();
|
|
819
812
|
};
|
|
820
|
-
orderWithStrategy$slambda.
|
|
821
|
-
return this.
|
|
813
|
+
protoOf(orderWithStrategy$slambda).ui = function (p1, $completion) {
|
|
814
|
+
return this.e4c(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
822
815
|
};
|
|
823
|
-
orderWithStrategy$slambda.
|
|
824
|
-
var suspendResult = this.
|
|
816
|
+
protoOf(orderWithStrategy$slambda).ii = function () {
|
|
817
|
+
var suspendResult = this.ci_1;
|
|
825
818
|
$sm: do
|
|
826
819
|
try {
|
|
827
|
-
var tmp = this.
|
|
820
|
+
var tmp = this.ai_1;
|
|
828
821
|
switch (tmp) {
|
|
829
822
|
case 0:
|
|
830
|
-
this.
|
|
823
|
+
this.bi_1 = 3;
|
|
831
824
|
var tmp_0 = this;
|
|
832
|
-
tmp_0.
|
|
833
|
-
this.
|
|
834
|
-
suspendResult = this.
|
|
825
|
+
tmp_0.d4c_1 = this.z4b_1(this.a4c_1, this.b4c_1);
|
|
826
|
+
this.ai_1 = 1;
|
|
827
|
+
suspendResult = this.c4c_1.d5(this.d4c_1, this);
|
|
835
828
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
836
829
|
return suspendResult;
|
|
837
830
|
}
|
|
838
831
|
|
|
839
832
|
continue $sm;
|
|
840
833
|
case 1:
|
|
841
|
-
this.
|
|
842
|
-
suspendResult = this.
|
|
834
|
+
this.ai_1 = 2;
|
|
835
|
+
suspendResult = this.c4c_1.g5(orderWithStrategy(filterIndexed(this.a4c_1, orderWithStrategy$slambda$lambda(this.a4c_1, this.d4c_1)), this.b4c_1, this.z4b_1), this);
|
|
843
836
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
844
837
|
return suspendResult;
|
|
845
838
|
}
|
|
@@ -848,341 +841,297 @@
|
|
|
848
841
|
case 2:
|
|
849
842
|
return Unit_getInstance();
|
|
850
843
|
case 3:
|
|
851
|
-
throw this.
|
|
844
|
+
throw this.di_1;
|
|
852
845
|
}
|
|
853
846
|
} catch ($p) {
|
|
854
|
-
|
|
855
|
-
|
|
847
|
+
var e = $p;
|
|
848
|
+
if (this.bi_1 === 3) {
|
|
849
|
+
throw e;
|
|
856
850
|
} else {
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
851
|
+
this.ai_1 = this.bi_1;
|
|
852
|
+
this.di_1 = e;
|
|
859
853
|
}
|
|
860
854
|
}
|
|
861
855
|
while (true);
|
|
862
856
|
};
|
|
863
|
-
orderWithStrategy$slambda.
|
|
864
|
-
var i = new orderWithStrategy$slambda(this.
|
|
865
|
-
i.
|
|
857
|
+
protoOf(orderWithStrategy$slambda).f4c = function ($this$sequence, completion) {
|
|
858
|
+
var i = new orderWithStrategy$slambda(this.z4b_1, this.a4c_1, this.b4c_1, completion);
|
|
859
|
+
i.c4c_1 = $this$sequence;
|
|
866
860
|
return i;
|
|
867
861
|
};
|
|
868
862
|
function orderWithStrategy$slambda_0($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
|
|
869
863
|
var i = new orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation);
|
|
870
|
-
var l = function ($this$sequence, $
|
|
871
|
-
return i.
|
|
864
|
+
var l = function ($this$sequence, $completion) {
|
|
865
|
+
return i.e4c($this$sequence, $completion);
|
|
872
866
|
};
|
|
873
867
|
l.$arity = 1;
|
|
874
868
|
return l;
|
|
875
869
|
}
|
|
876
|
-
function StreamsExecutionContext_init_$Init$(
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
dynamicKb = Companion_getInstance_7().empty(unificator);
|
|
887
|
-
if (!(($mask0 & 32) === 0))
|
|
888
|
-
operators = toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb]));
|
|
889
|
-
if (!(($mask0 & 64) === 0)) {
|
|
890
|
-
var tmp = Companion_getInstance();
|
|
891
|
-
inputChannels = tmp.s1z(null, 1, null);
|
|
892
|
-
}
|
|
893
|
-
if (!(($mask0 & 128) === 0)) {
|
|
894
|
-
var tmp_0 = Companion_getInstance_0();
|
|
895
|
-
outputChannels = tmp_0.t1z(null, null, null, 7, null);
|
|
896
|
-
}
|
|
897
|
-
if (!(($mask0 & 256) === 0))
|
|
898
|
-
customData = Companion_getInstance_8().empty();
|
|
899
|
-
if (!(($mask0 & 512) === 0))
|
|
900
|
-
substitution = Companion_getInstance_3().empty();
|
|
901
|
-
if (!(($mask0 & 1024) === 0))
|
|
902
|
-
startTime = currentTimeInstant();
|
|
903
|
-
if (!(($mask0 & 2048) === 0)) {
|
|
904
|
-
Companion_getInstance_9();
|
|
905
|
-
maxDuration = new Long(-1, 2147483647);
|
|
906
|
-
}
|
|
907
|
-
if (!(($mask0 & 4096) === 0))
|
|
908
|
-
solverStrategies = Companion_getInstance_15().g4c_1;
|
|
909
|
-
if (!(($mask0 & 8192) === 0)) {
|
|
910
|
-
sideEffectManager = SideEffectManagerImpl_init_$Create$(null, false, null, null, null, null, 63, null);
|
|
911
|
-
}
|
|
912
|
-
StreamsExecutionContext.call($this, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
913
|
-
return $this;
|
|
914
|
-
}
|
|
915
|
-
function StreamsExecutionContext_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $marker) {
|
|
916
|
-
return StreamsExecutionContext_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $marker, Object.create(StreamsExecutionContext.prototype));
|
|
917
|
-
}
|
|
918
|
-
function StreamsExecutionContext_init_$Init$_0(context, newCurrentSubstitution, $this) {
|
|
919
|
-
var tmp = context.h1l();
|
|
920
|
-
var tmp_0 = context.t1u();
|
|
921
|
-
var tmp_1 = context.u1u();
|
|
922
|
-
var tmp_2 = context.v1u();
|
|
923
|
-
var tmp_3 = context.w1u();
|
|
924
|
-
var tmp_4 = context.e1v();
|
|
925
|
-
var tmp_5 = context.x1u();
|
|
926
|
-
var tmp_6 = context.y1u();
|
|
927
|
-
var tmp_7 = context.q1u();
|
|
928
|
-
var tmp_8 = new Long(0, 0);
|
|
929
|
-
var tmp_9 = new Long(0, 0);
|
|
870
|
+
function StreamsExecutionContext_init_$Init$(context, newCurrentSubstitution, $this) {
|
|
871
|
+
var tmp = context.k1k();
|
|
872
|
+
var tmp_0 = context.v1t();
|
|
873
|
+
var tmp_1 = context.w1t();
|
|
874
|
+
var tmp_2 = context.x1t();
|
|
875
|
+
var tmp_3 = context.y1t();
|
|
876
|
+
var tmp_4 = context.e1u();
|
|
877
|
+
var tmp_5 = context.z1t();
|
|
878
|
+
var tmp_6 = context.a1u();
|
|
879
|
+
var tmp_7 = context.t1t();
|
|
930
880
|
var tmp0_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
|
|
931
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
932
|
-
var
|
|
881
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t4a_1;
|
|
882
|
+
var tmp_8 = tmp1_elvis_lhs == null ? Companion_getInstance_18().b4a_1 : tmp1_elvis_lhs;
|
|
933
883
|
var tmp2_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
|
|
934
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
935
|
-
|
|
936
|
-
if (tmp3_elvis_lhs == null) {
|
|
937
|
-
tmp_11 = SideEffectManagerImpl_init_$Create$(null, false, null, null, null, null, 63, null);
|
|
938
|
-
} else {
|
|
939
|
-
tmp_11 = tmp3_elvis_lhs;
|
|
940
|
-
}
|
|
941
|
-
StreamsExecutionContext_init_$Init$(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, newCurrentSubstitution, tmp_8, tmp_9, tmp_10, tmp_11, 3072, null, $this);
|
|
884
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u4a_1;
|
|
885
|
+
StreamsExecutionContext.call($this, tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, newCurrentSubstitution, VOID, VOID, tmp_8, tmp3_elvis_lhs == null ? new SideEffectManagerImpl() : tmp3_elvis_lhs);
|
|
942
886
|
return $this;
|
|
943
887
|
}
|
|
944
|
-
function StreamsExecutionContext_init_$Create$
|
|
945
|
-
return StreamsExecutionContext_init_$Init$
|
|
888
|
+
function StreamsExecutionContext_init_$Create$(context, newCurrentSubstitution) {
|
|
889
|
+
return StreamsExecutionContext_init_$Init$(context, newCurrentSubstitution, objectCreate(protoOf(StreamsExecutionContext)));
|
|
946
890
|
}
|
|
947
891
|
function StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
|
|
948
|
-
return it.
|
|
892
|
+
return it.v1u();
|
|
949
893
|
}
|
|
950
894
|
function StreamsExecutionContext$logicStackTrace$delegate$lambda(this$0) {
|
|
951
895
|
return function () {
|
|
952
|
-
var tmp = asSequence(this$0.
|
|
896
|
+
var tmp = asSequence(this$0.u4a_1.z4a_1);
|
|
953
897
|
return toList(map(tmp, StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda));
|
|
954
898
|
};
|
|
955
899
|
}
|
|
956
900
|
function StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
901
|
+
unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
|
|
902
|
+
libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
|
|
903
|
+
flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
|
|
904
|
+
staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
|
|
905
|
+
dynamicKb = dynamicKb === VOID ? Companion_getInstance_2().empty(unificator) : dynamicKb;
|
|
906
|
+
operators = operators === VOID ? toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])) : operators;
|
|
907
|
+
inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
|
|
908
|
+
outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
|
|
909
|
+
customData = customData === VOID ? Companion_getInstance_11().empty() : customData;
|
|
910
|
+
substitution = substitution === VOID ? Companion_getInstance_9().empty() : substitution;
|
|
911
|
+
startTime = startTime === VOID ? currentTimeInstant() : startTime;
|
|
912
|
+
var tmp;
|
|
913
|
+
if (maxDuration === VOID) {
|
|
914
|
+
Companion_getInstance_12();
|
|
915
|
+
tmp = new Long(-1, 2147483647);
|
|
916
|
+
} else {
|
|
917
|
+
tmp = maxDuration;
|
|
918
|
+
}
|
|
919
|
+
maxDuration = tmp;
|
|
920
|
+
solverStrategies = solverStrategies === VOID ? Companion_getInstance_18().b4a_1 : solverStrategies;
|
|
921
|
+
sideEffectManager = sideEffectManager === VOID ? new SideEffectManagerImpl() : sideEffectManager;
|
|
922
|
+
this.h4a_1 = unificator;
|
|
923
|
+
this.i4a_1 = libraries;
|
|
924
|
+
this.j4a_1 = flags;
|
|
925
|
+
this.k4a_1 = staticKb;
|
|
926
|
+
this.l4a_1 = dynamicKb;
|
|
927
|
+
this.m4a_1 = operators;
|
|
928
|
+
this.n4a_1 = inputChannels;
|
|
929
|
+
this.o4a_1 = outputChannels;
|
|
930
|
+
this.p4a_1 = customData;
|
|
931
|
+
this.q4a_1 = substitution;
|
|
932
|
+
this.r4a_1 = startTime;
|
|
933
|
+
this.s4a_1 = maxDuration;
|
|
934
|
+
this.t4a_1 = solverStrategies;
|
|
935
|
+
this.u4a_1 = sideEffectManager;
|
|
936
|
+
var tmp_0 = this;
|
|
937
|
+
tmp_0.v4a_1 = lazy(StreamsExecutionContext$logicStackTrace$delegate$lambda(this));
|
|
973
938
|
}
|
|
974
|
-
StreamsExecutionContext.
|
|
975
|
-
return this.
|
|
939
|
+
protoOf(StreamsExecutionContext).k1k = function () {
|
|
940
|
+
return this.h4a_1;
|
|
976
941
|
};
|
|
977
|
-
StreamsExecutionContext.
|
|
978
|
-
return this.
|
|
942
|
+
protoOf(StreamsExecutionContext).v1t = function () {
|
|
943
|
+
return this.i4a_1;
|
|
979
944
|
};
|
|
980
|
-
StreamsExecutionContext.
|
|
981
|
-
return this.
|
|
945
|
+
protoOf(StreamsExecutionContext).w1t = function () {
|
|
946
|
+
return this.j4a_1;
|
|
982
947
|
};
|
|
983
|
-
StreamsExecutionContext.
|
|
984
|
-
return this.
|
|
948
|
+
protoOf(StreamsExecutionContext).x1t = function () {
|
|
949
|
+
return this.k4a_1;
|
|
985
950
|
};
|
|
986
|
-
StreamsExecutionContext.
|
|
987
|
-
return this.
|
|
951
|
+
protoOf(StreamsExecutionContext).y1t = function () {
|
|
952
|
+
return this.l4a_1;
|
|
988
953
|
};
|
|
989
|
-
StreamsExecutionContext.
|
|
990
|
-
return this.
|
|
954
|
+
protoOf(StreamsExecutionContext).e1u = function () {
|
|
955
|
+
return this.m4a_1;
|
|
991
956
|
};
|
|
992
|
-
StreamsExecutionContext.
|
|
993
|
-
return this.
|
|
957
|
+
protoOf(StreamsExecutionContext).z1t = function () {
|
|
958
|
+
return this.n4a_1;
|
|
994
959
|
};
|
|
995
|
-
StreamsExecutionContext.
|
|
996
|
-
return this.
|
|
960
|
+
protoOf(StreamsExecutionContext).a1u = function () {
|
|
961
|
+
return this.o4a_1;
|
|
997
962
|
};
|
|
998
|
-
StreamsExecutionContext.
|
|
999
|
-
return this.
|
|
963
|
+
protoOf(StreamsExecutionContext).t1t = function () {
|
|
964
|
+
return this.p4a_1;
|
|
1000
965
|
};
|
|
1001
|
-
StreamsExecutionContext.
|
|
1002
|
-
return this.
|
|
966
|
+
protoOf(StreamsExecutionContext).r1t = function () {
|
|
967
|
+
return this.q4a_1;
|
|
1003
968
|
};
|
|
1004
|
-
StreamsExecutionContext.
|
|
1005
|
-
return this.
|
|
969
|
+
protoOf(StreamsExecutionContext).l1t = function () {
|
|
970
|
+
return this.r4a_1;
|
|
1006
971
|
};
|
|
1007
|
-
StreamsExecutionContext.
|
|
1008
|
-
return this.
|
|
972
|
+
protoOf(StreamsExecutionContext).n1t = function () {
|
|
973
|
+
return this.s4a_1;
|
|
1009
974
|
};
|
|
1010
|
-
StreamsExecutionContext.
|
|
975
|
+
protoOf(StreamsExecutionContext).q1t = function () {
|
|
1011
976
|
var tmp$ret$2;
|
|
1012
977
|
// Inline function 'kotlin.collections.map' call
|
|
1013
|
-
var
|
|
978
|
+
var tmp1_map = this.u4a_1.z4a_1;
|
|
1014
979
|
var tmp$ret$1;
|
|
1015
980
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1016
|
-
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(
|
|
1017
|
-
var tmp0_iterator =
|
|
981
|
+
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
|
|
982
|
+
var tmp0_iterator = tmp1_map.j();
|
|
1018
983
|
while (tmp0_iterator.m()) {
|
|
1019
984
|
var item = tmp0_iterator.n();
|
|
1020
985
|
var tmp$ret$0;
|
|
1021
986
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.StreamsExecutionContext.<get-procedure>.<anonymous>' call
|
|
1022
|
-
tmp$ret$0 = item.
|
|
987
|
+
tmp$ret$0 = item.v1u();
|
|
1023
988
|
tmp0_mapTo.g(tmp$ret$0);
|
|
1024
989
|
}
|
|
1025
990
|
tmp$ret$1 = tmp0_mapTo;
|
|
1026
991
|
tmp$ret$2 = tmp$ret$1;
|
|
1027
992
|
return firstOrNull(tmp$ret$2);
|
|
1028
993
|
};
|
|
1029
|
-
StreamsExecutionContext.
|
|
994
|
+
protoOf(StreamsExecutionContext).s1t = function () {
|
|
1030
995
|
var tmp$ret$0;
|
|
1031
996
|
// Inline function 'kotlin.getValue' call
|
|
1032
997
|
var tmp0_getValue = logicStackTrace$factory();
|
|
1033
|
-
tmp$ret$0 = this.
|
|
998
|
+
tmp$ret$0 = this.v4a_1.b1();
|
|
1034
999
|
return tmp$ret$0;
|
|
1035
1000
|
};
|
|
1036
|
-
StreamsExecutionContext.
|
|
1001
|
+
protoOf(StreamsExecutionContext).u1t = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
1037
1002
|
return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels);
|
|
1038
1003
|
};
|
|
1039
|
-
StreamsExecutionContext.
|
|
1004
|
+
protoOf(StreamsExecutionContext).b1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
|
|
1040
1005
|
throw new NotImplementedError('An operation is not implemented: Not yet implemented');
|
|
1041
1006
|
};
|
|
1042
|
-
StreamsExecutionContext.
|
|
1007
|
+
protoOf(StreamsExecutionContext).u34 = function (sideEffect) {
|
|
1043
1008
|
var tmp = apply.call(this, sideEffect);
|
|
1044
1009
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
1045
1010
|
};
|
|
1046
|
-
StreamsExecutionContext.
|
|
1047
|
-
return this.
|
|
1011
|
+
protoOf(StreamsExecutionContext).apply = function (sideEffect) {
|
|
1012
|
+
return this.u34(sideEffect);
|
|
1048
1013
|
};
|
|
1049
|
-
StreamsExecutionContext.
|
|
1014
|
+
protoOf(StreamsExecutionContext).v34 = function (sideEffects) {
|
|
1050
1015
|
var tmp = applyIterable.call(this, sideEffects);
|
|
1051
1016
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
1052
1017
|
};
|
|
1053
|
-
StreamsExecutionContext.
|
|
1054
|
-
return this.
|
|
1018
|
+
protoOf(StreamsExecutionContext).applyIterable = function (sideEffects) {
|
|
1019
|
+
return this.v34(sideEffects);
|
|
1055
1020
|
};
|
|
1056
|
-
StreamsExecutionContext.
|
|
1021
|
+
protoOf(StreamsExecutionContext).w34 = function (sideEffects) {
|
|
1057
1022
|
var tmp = applySequence.call(this, sideEffects);
|
|
1058
1023
|
return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
|
|
1059
1024
|
};
|
|
1060
|
-
StreamsExecutionContext.
|
|
1061
|
-
return this.
|
|
1025
|
+
protoOf(StreamsExecutionContext).applySequence = function (sideEffects) {
|
|
1026
|
+
return this.w34(sideEffects);
|
|
1062
1027
|
};
|
|
1063
|
-
StreamsExecutionContext.
|
|
1064
|
-
|
|
1065
|
-
var tmp_0 = new Long(0, 0);
|
|
1066
|
-
return this.v4d(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, null, tmp, tmp_0, null, null, 15872, null);
|
|
1028
|
+
protoOf(StreamsExecutionContext).d1u = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
|
|
1029
|
+
return this.q4b(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData);
|
|
1067
1030
|
};
|
|
1068
|
-
StreamsExecutionContext.
|
|
1031
|
+
protoOf(StreamsExecutionContext).g4c = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
|
|
1069
1032
|
return new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
1070
1033
|
};
|
|
1071
|
-
StreamsExecutionContext.
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
var result = hashCode(this.m4c_1);
|
|
1107
|
-
result = imul(result, 31) + hashCode(this.n4c_1) | 0;
|
|
1108
|
-
result = imul(result, 31) + this.o4c_1.hashCode() | 0;
|
|
1109
|
-
result = imul(result, 31) + hashCode(this.p4c_1) | 0;
|
|
1110
|
-
result = imul(result, 31) + hashCode(this.q4c_1) | 0;
|
|
1111
|
-
result = imul(result, 31) + this.r4c_1.hashCode() | 0;
|
|
1112
|
-
result = imul(result, 31) + hashCode(this.s4c_1) | 0;
|
|
1113
|
-
result = imul(result, 31) + hashCode(this.t4c_1) | 0;
|
|
1114
|
-
result = imul(result, 31) + this.u4c_1.hashCode() | 0;
|
|
1115
|
-
result = imul(result, 31) + hashCode(this.v4c_1) | 0;
|
|
1116
|
-
result = imul(result, 31) + this.w4c_1.hashCode() | 0;
|
|
1117
|
-
result = imul(result, 31) + this.x4c_1.hashCode() | 0;
|
|
1118
|
-
result = imul(result, 31) + hashCode(this.y4c_1) | 0;
|
|
1119
|
-
result = imul(result, 31) + this.z4c_1.hashCode() | 0;
|
|
1034
|
+
protoOf(StreamsExecutionContext).q4b = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $super) {
|
|
1035
|
+
unificator = unificator === VOID ? this.h4a_1 : unificator;
|
|
1036
|
+
libraries = libraries === VOID ? this.i4a_1 : libraries;
|
|
1037
|
+
flags = flags === VOID ? this.j4a_1 : flags;
|
|
1038
|
+
staticKb = staticKb === VOID ? this.k4a_1 : staticKb;
|
|
1039
|
+
dynamicKb = dynamicKb === VOID ? this.l4a_1 : dynamicKb;
|
|
1040
|
+
operators = operators === VOID ? this.m4a_1 : operators;
|
|
1041
|
+
inputChannels = inputChannels === VOID ? this.n4a_1 : inputChannels;
|
|
1042
|
+
outputChannels = outputChannels === VOID ? this.o4a_1 : outputChannels;
|
|
1043
|
+
customData = customData === VOID ? this.p4a_1 : customData;
|
|
1044
|
+
substitution = substitution === VOID ? this.q4a_1 : substitution;
|
|
1045
|
+
startTime = startTime === VOID ? this.r4a_1 : startTime;
|
|
1046
|
+
maxDuration = maxDuration === VOID ? this.s4a_1 : maxDuration;
|
|
1047
|
+
solverStrategies = solverStrategies === VOID ? this.t4a_1 : solverStrategies;
|
|
1048
|
+
sideEffectManager = sideEffectManager === VOID ? this.u4a_1 : sideEffectManager;
|
|
1049
|
+
return $super === VOID ? this.g4c(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) : $super.g4c.call(this, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
|
|
1050
|
+
};
|
|
1051
|
+
protoOf(StreamsExecutionContext).toString = function () {
|
|
1052
|
+
return 'StreamsExecutionContext(unificator=' + this.h4a_1 + ', libraries=' + this.i4a_1 + ', flags=' + this.j4a_1 + ', staticKb=' + this.k4a_1 + ', dynamicKb=' + this.l4a_1 + ', operators=' + this.m4a_1 + ', inputChannels=' + this.n4a_1 + ', outputChannels=' + this.o4a_1 + ', customData=' + this.p4a_1 + ', substitution=' + this.q4a_1 + ', startTime=' + toString(this.r4a_1) + ', maxDuration=' + toString(this.s4a_1) + ', solverStrategies=' + this.t4a_1 + ', sideEffectManager=' + this.u4a_1 + ')';
|
|
1053
|
+
};
|
|
1054
|
+
protoOf(StreamsExecutionContext).hashCode = function () {
|
|
1055
|
+
var result = hashCode(this.h4a_1);
|
|
1056
|
+
result = imul(result, 31) + hashCode(this.i4a_1) | 0;
|
|
1057
|
+
result = imul(result, 31) + this.j4a_1.hashCode() | 0;
|
|
1058
|
+
result = imul(result, 31) + hashCode(this.k4a_1) | 0;
|
|
1059
|
+
result = imul(result, 31) + hashCode(this.l4a_1) | 0;
|
|
1060
|
+
result = imul(result, 31) + this.m4a_1.hashCode() | 0;
|
|
1061
|
+
result = imul(result, 31) + hashCode(this.n4a_1) | 0;
|
|
1062
|
+
result = imul(result, 31) + hashCode(this.o4a_1) | 0;
|
|
1063
|
+
result = imul(result, 31) + this.p4a_1.hashCode() | 0;
|
|
1064
|
+
result = imul(result, 31) + hashCode(this.q4a_1) | 0;
|
|
1065
|
+
result = imul(result, 31) + this.r4a_1.hashCode() | 0;
|
|
1066
|
+
result = imul(result, 31) + this.s4a_1.hashCode() | 0;
|
|
1067
|
+
result = imul(result, 31) + hashCode(this.t4a_1) | 0;
|
|
1068
|
+
result = imul(result, 31) + this.u4a_1.hashCode() | 0;
|
|
1120
1069
|
return result;
|
|
1121
1070
|
};
|
|
1122
|
-
StreamsExecutionContext.
|
|
1071
|
+
protoOf(StreamsExecutionContext).equals = function (other) {
|
|
1123
1072
|
if (this === other)
|
|
1124
1073
|
return true;
|
|
1125
1074
|
if (!(other instanceof StreamsExecutionContext))
|
|
1126
1075
|
return false;
|
|
1127
1076
|
var tmp0_other_with_cast = other instanceof StreamsExecutionContext ? other : THROW_CCE();
|
|
1128
|
-
if (!equals(this.
|
|
1077
|
+
if (!equals(this.h4a_1, tmp0_other_with_cast.h4a_1))
|
|
1129
1078
|
return false;
|
|
1130
|
-
if (!equals(this.
|
|
1079
|
+
if (!equals(this.i4a_1, tmp0_other_with_cast.i4a_1))
|
|
1131
1080
|
return false;
|
|
1132
|
-
if (!this.
|
|
1081
|
+
if (!this.j4a_1.equals(tmp0_other_with_cast.j4a_1))
|
|
1133
1082
|
return false;
|
|
1134
|
-
if (!equals(this.
|
|
1083
|
+
if (!equals(this.k4a_1, tmp0_other_with_cast.k4a_1))
|
|
1135
1084
|
return false;
|
|
1136
|
-
if (!equals(this.
|
|
1085
|
+
if (!equals(this.l4a_1, tmp0_other_with_cast.l4a_1))
|
|
1137
1086
|
return false;
|
|
1138
|
-
if (!this.
|
|
1087
|
+
if (!this.m4a_1.equals(tmp0_other_with_cast.m4a_1))
|
|
1139
1088
|
return false;
|
|
1140
|
-
if (!equals(this.
|
|
1089
|
+
if (!equals(this.n4a_1, tmp0_other_with_cast.n4a_1))
|
|
1141
1090
|
return false;
|
|
1142
|
-
if (!equals(this.
|
|
1091
|
+
if (!equals(this.o4a_1, tmp0_other_with_cast.o4a_1))
|
|
1143
1092
|
return false;
|
|
1144
|
-
if (!this.
|
|
1093
|
+
if (!this.p4a_1.equals(tmp0_other_with_cast.p4a_1))
|
|
1145
1094
|
return false;
|
|
1146
|
-
if (!equals(this.
|
|
1095
|
+
if (!equals(this.q4a_1, tmp0_other_with_cast.q4a_1))
|
|
1147
1096
|
return false;
|
|
1148
|
-
if (!this.
|
|
1097
|
+
if (!this.r4a_1.equals(tmp0_other_with_cast.r4a_1))
|
|
1149
1098
|
return false;
|
|
1150
|
-
if (!this.
|
|
1099
|
+
if (!this.s4a_1.equals(tmp0_other_with_cast.s4a_1))
|
|
1151
1100
|
return false;
|
|
1152
|
-
if (!equals(this.
|
|
1101
|
+
if (!equals(this.t4a_1, tmp0_other_with_cast.t4a_1))
|
|
1153
1102
|
return false;
|
|
1154
|
-
if (!this.
|
|
1103
|
+
if (!this.u4a_1.equals(tmp0_other_with_cast.u4a_1))
|
|
1155
1104
|
return false;
|
|
1156
1105
|
return true;
|
|
1157
1106
|
};
|
|
1158
1107
|
function getSideEffectManager(_this__u8e3s4) {
|
|
1159
1108
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof StreamsExecutionContext ? _this__u8e3s4 : null;
|
|
1160
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1109
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u4a_1;
|
|
1161
1110
|
}
|
|
1162
1111
|
function logicStackTrace$factory() {
|
|
1163
1112
|
return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
|
|
1164
|
-
return receiver.
|
|
1113
|
+
return receiver.s1t();
|
|
1165
1114
|
}, null);
|
|
1166
1115
|
}
|
|
1167
1116
|
function AbstractState(solve) {
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1117
|
+
this.h4c_1 = solve;
|
|
1118
|
+
this.i4c_1 = false;
|
|
1170
1119
|
}
|
|
1171
|
-
AbstractState.
|
|
1172
|
-
return this.
|
|
1120
|
+
protoOf(AbstractState).j4c = function () {
|
|
1121
|
+
return this.i4c_1;
|
|
1173
1122
|
};
|
|
1174
1123
|
function AlreadyExecutedState(wrappedState) {
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1124
|
+
this.l4c_1 = wrappedState;
|
|
1125
|
+
this.m4c_1 = true;
|
|
1177
1126
|
}
|
|
1178
|
-
AlreadyExecutedState.
|
|
1179
|
-
return this.
|
|
1127
|
+
protoOf(AlreadyExecutedState).k4c = function () {
|
|
1128
|
+
return this.l4c_1.k4c();
|
|
1180
1129
|
};
|
|
1181
|
-
AlreadyExecutedState.
|
|
1182
|
-
return this.
|
|
1130
|
+
protoOf(AlreadyExecutedState).j4c = function () {
|
|
1131
|
+
return this.m4c_1;
|
|
1183
1132
|
};
|
|
1184
|
-
AlreadyExecutedState.
|
|
1185
|
-
return 'AlreadyExecutedState of: ' + this.
|
|
1133
|
+
protoOf(AlreadyExecutedState).toString = function () {
|
|
1134
|
+
return 'AlreadyExecutedState of: ' + this.l4c_1;
|
|
1186
1135
|
};
|
|
1187
1136
|
function asAlreadyExecuted(_this__u8e3s4) {
|
|
1188
1137
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof AlreadyExecutedState ? _this__u8e3s4 : null;
|
|
@@ -1208,7 +1157,7 @@
|
|
|
1208
1157
|
}
|
|
1209
1158
|
function internalExecute($this, state) {
|
|
1210
1159
|
var tmp;
|
|
1211
|
-
if (state.
|
|
1160
|
+
if (state.j4c()) {
|
|
1212
1161
|
tmp = sequenceOf([state]);
|
|
1213
1162
|
} else {
|
|
1214
1163
|
tmp = sequence(StateMachineExecutor$internalExecute$slambda_0(state, null));
|
|
@@ -1216,34 +1165,34 @@
|
|
|
1216
1165
|
return tmp;
|
|
1217
1166
|
}
|
|
1218
1167
|
function StateMachineExecutor$execute$lambda(it) {
|
|
1219
|
-
return StateMachineExecutor_getInstance().
|
|
1168
|
+
return StateMachineExecutor_getInstance().n4c(it);
|
|
1220
1169
|
}
|
|
1221
1170
|
function StateMachineExecutor$executeWrapping$lambda(it) {
|
|
1222
1171
|
return asAlreadyExecuted(it);
|
|
1223
1172
|
}
|
|
1224
1173
|
function StateMachineExecutor$internalExecute$slambda($state, resultContinuation) {
|
|
1225
|
-
this.
|
|
1174
|
+
this.w4c_1 = $state;
|
|
1226
1175
|
CoroutineImpl.call(this, resultContinuation);
|
|
1227
1176
|
}
|
|
1228
|
-
StateMachineExecutor$internalExecute$slambda.
|
|
1229
|
-
var tmp = this.
|
|
1230
|
-
tmp.
|
|
1231
|
-
tmp.
|
|
1232
|
-
return tmp.
|
|
1177
|
+
protoOf(StateMachineExecutor$internalExecute$slambda).b4d = function ($this$sequence, $completion) {
|
|
1178
|
+
var tmp = this.c4d($this$sequence, $completion);
|
|
1179
|
+
tmp.ci_1 = Unit_getInstance();
|
|
1180
|
+
tmp.di_1 = null;
|
|
1181
|
+
return tmp.ii();
|
|
1233
1182
|
};
|
|
1234
|
-
StateMachineExecutor$internalExecute$slambda.
|
|
1235
|
-
return this.
|
|
1183
|
+
protoOf(StateMachineExecutor$internalExecute$slambda).ui = function (p1, $completion) {
|
|
1184
|
+
return this.b4d(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1236
1185
|
};
|
|
1237
|
-
StateMachineExecutor$internalExecute$slambda.
|
|
1238
|
-
var suspendResult = this.
|
|
1186
|
+
protoOf(StateMachineExecutor$internalExecute$slambda).ii = function () {
|
|
1187
|
+
var suspendResult = this.ci_1;
|
|
1239
1188
|
$sm: do
|
|
1240
1189
|
try {
|
|
1241
|
-
var tmp = this.
|
|
1190
|
+
var tmp = this.ai_1;
|
|
1242
1191
|
switch (tmp) {
|
|
1243
1192
|
case 0:
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1246
|
-
suspendResult = this.
|
|
1193
|
+
this.bi_1 = 5;
|
|
1194
|
+
this.ai_1 = 1;
|
|
1195
|
+
suspendResult = this.x4c_1.d5(this.w4c_1, this);
|
|
1247
1196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1248
1197
|
return suspendResult;
|
|
1249
1198
|
}
|
|
@@ -1251,51 +1200,52 @@
|
|
|
1251
1200
|
continue $sm;
|
|
1252
1201
|
case 1:
|
|
1253
1202
|
var tmp_0 = this;
|
|
1254
|
-
tmp_0.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1203
|
+
tmp_0.y4c_1 = this.w4c_1.k4c();
|
|
1204
|
+
this.z4c_1 = this.y4c_1.j();
|
|
1205
|
+
this.ai_1 = 2;
|
|
1257
1206
|
continue $sm;
|
|
1258
1207
|
case 2:
|
|
1259
|
-
if (!this.
|
|
1260
|
-
this.
|
|
1208
|
+
if (!this.z4c_1.m()) {
|
|
1209
|
+
this.ai_1 = 4;
|
|
1261
1210
|
continue $sm;
|
|
1262
1211
|
}
|
|
1263
1212
|
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1266
|
-
suspendResult = this.
|
|
1213
|
+
this.a4d_1 = this.z4c_1.n();
|
|
1214
|
+
this.ai_1 = 3;
|
|
1215
|
+
suspendResult = this.x4c_1.g5(internalExecute(StateMachineExecutor_getInstance(), this.a4d_1), this);
|
|
1267
1216
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1268
1217
|
return suspendResult;
|
|
1269
1218
|
}
|
|
1270
1219
|
|
|
1271
1220
|
continue $sm;
|
|
1272
1221
|
case 3:
|
|
1273
|
-
this.
|
|
1222
|
+
this.ai_1 = 2;
|
|
1274
1223
|
continue $sm;
|
|
1275
1224
|
case 4:
|
|
1276
1225
|
return Unit_getInstance();
|
|
1277
1226
|
case 5:
|
|
1278
|
-
throw this.
|
|
1227
|
+
throw this.di_1;
|
|
1279
1228
|
}
|
|
1280
1229
|
} catch ($p) {
|
|
1281
|
-
|
|
1282
|
-
|
|
1230
|
+
var e = $p;
|
|
1231
|
+
if (this.bi_1 === 5) {
|
|
1232
|
+
throw e;
|
|
1283
1233
|
} else {
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1234
|
+
this.ai_1 = this.bi_1;
|
|
1235
|
+
this.di_1 = e;
|
|
1286
1236
|
}
|
|
1287
1237
|
}
|
|
1288
1238
|
while (true);
|
|
1289
1239
|
};
|
|
1290
|
-
StateMachineExecutor$internalExecute$slambda.
|
|
1291
|
-
var i = new StateMachineExecutor$internalExecute$slambda(this.
|
|
1292
|
-
i.
|
|
1240
|
+
protoOf(StateMachineExecutor$internalExecute$slambda).c4d = function ($this$sequence, completion) {
|
|
1241
|
+
var i = new StateMachineExecutor$internalExecute$slambda(this.w4c_1, completion);
|
|
1242
|
+
i.x4c_1 = $this$sequence;
|
|
1293
1243
|
return i;
|
|
1294
1244
|
};
|
|
1295
1245
|
function StateMachineExecutor$internalExecute$slambda_0($state, resultContinuation) {
|
|
1296
1246
|
var i = new StateMachineExecutor$internalExecute$slambda($state, resultContinuation);
|
|
1297
|
-
var l = function ($this$sequence, $
|
|
1298
|
-
return i.
|
|
1247
|
+
var l = function ($this$sequence, $completion) {
|
|
1248
|
+
return i.b4d($this$sequence, $completion);
|
|
1299
1249
|
};
|
|
1300
1250
|
l.$arity = 1;
|
|
1301
1251
|
return l;
|
|
@@ -1303,9 +1253,9 @@
|
|
|
1303
1253
|
function StateMachineExecutor() {
|
|
1304
1254
|
StateMachineExecutor_instance = this;
|
|
1305
1255
|
}
|
|
1306
|
-
StateMachineExecutor.
|
|
1256
|
+
protoOf(StateMachineExecutor).e4a = function (state) {
|
|
1307
1257
|
var tmp;
|
|
1308
|
-
if (state.
|
|
1258
|
+
if (state.j4c()) {
|
|
1309
1259
|
tmp = emptySequence();
|
|
1310
1260
|
} else {
|
|
1311
1261
|
var tmp_0 = drop_0(internalExecute(this, state), 1);
|
|
@@ -1313,15 +1263,15 @@
|
|
|
1313
1263
|
}
|
|
1314
1264
|
return tmp;
|
|
1315
1265
|
};
|
|
1316
|
-
StateMachineExecutor.
|
|
1317
|
-
var tmp = this.
|
|
1266
|
+
protoOf(StateMachineExecutor).d4d = function (state) {
|
|
1267
|
+
var tmp = this.e4a(state);
|
|
1318
1268
|
return map(tmp, StateMachineExecutor$executeWrapping$lambda);
|
|
1319
1269
|
};
|
|
1320
|
-
StateMachineExecutor.
|
|
1270
|
+
protoOf(StateMachineExecutor).n4c = function (_this__u8e3s4) {
|
|
1321
1271
|
var tmp0_subject = _this__u8e3s4;
|
|
1322
1272
|
var tmp;
|
|
1323
1273
|
if (tmp0_subject instanceof AlreadyExecutedState) {
|
|
1324
|
-
tmp = _this__u8e3s4.
|
|
1274
|
+
tmp = _this__u8e3s4.l4c_1;
|
|
1325
1275
|
} else {
|
|
1326
1276
|
tmp = _this__u8e3s4;
|
|
1327
1277
|
}
|
|
@@ -1334,25 +1284,23 @@
|
|
|
1334
1284
|
return StateMachineExecutor_instance;
|
|
1335
1285
|
}
|
|
1336
1286
|
function statEndHaltTimeout(_this__u8e3s4, $this) {
|
|
1337
|
-
|
|
1338
|
-
var tmp_0 = TimeOutException_init_$Create$(tmp, null, _this__u8e3s4.h4c().context, _this__u8e3s4.h4c().b2a_1, 2, null);
|
|
1339
|
-
return stateEndHalt$default(_this__u8e3s4, tmp_0, null, [], 6, null);
|
|
1287
|
+
return stateEndHalt(_this__u8e3s4, TimeOutException_init_$Create$('Given time for `' + _this__u8e3s4.c4a().v1u() + '` computation (' + toString(_this__u8e3s4.c4a().h28_1) + ") wasn't enough for completion", VOID, _this__u8e3s4.c4a().context, _this__u8e3s4.c4a().h28_1), VOID, []);
|
|
1340
1288
|
}
|
|
1341
1289
|
function _get_stateCurrentTime__3c8uza($this) {
|
|
1342
1290
|
var tmp$ret$0;
|
|
1343
1291
|
// Inline function 'kotlin.getValue' call
|
|
1344
1292
|
var tmp0_getValue = stateCurrentTime$factory();
|
|
1345
|
-
tmp$ret$0 = $this.
|
|
1293
|
+
tmp$ret$0 = $this.h4d_1.b1();
|
|
1346
1294
|
return tmp$ret$0;
|
|
1347
1295
|
}
|
|
1348
1296
|
function timeIsOver($this, currentDuration, maxDuration) {
|
|
1349
|
-
return currentDuration.
|
|
1297
|
+
return currentDuration.i1(maxDuration) >= 0;
|
|
1350
1298
|
}
|
|
1351
1299
|
function Companion_1() {
|
|
1352
1300
|
Companion_instance_1 = this;
|
|
1353
1301
|
}
|
|
1354
1302
|
var Companion_instance_1;
|
|
1355
|
-
function
|
|
1303
|
+
function Companion_getInstance_20() {
|
|
1356
1304
|
if (Companion_instance_1 == null)
|
|
1357
1305
|
new Companion_1();
|
|
1358
1306
|
return Companion_instance_1;
|
|
@@ -1361,35 +1309,35 @@
|
|
|
1361
1309
|
return currentTimeInstant();
|
|
1362
1310
|
}
|
|
1363
1311
|
function AbstractTimedState(solve) {
|
|
1364
|
-
|
|
1312
|
+
Companion_getInstance_20();
|
|
1365
1313
|
AbstractState.call(this, solve);
|
|
1366
|
-
this.
|
|
1314
|
+
this.g4d_1 = solve;
|
|
1367
1315
|
var tmp = this;
|
|
1368
|
-
tmp.
|
|
1316
|
+
tmp.h4d_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
|
|
1369
1317
|
}
|
|
1370
|
-
AbstractTimedState.
|
|
1371
|
-
return this.
|
|
1318
|
+
protoOf(AbstractTimedState).c4a = function () {
|
|
1319
|
+
return this.g4d_1;
|
|
1372
1320
|
};
|
|
1373
|
-
AbstractTimedState.
|
|
1321
|
+
protoOf(AbstractTimedState).k4c = function () {
|
|
1374
1322
|
var tmp;
|
|
1375
|
-
var tmp_0 = this.
|
|
1376
|
-
|
|
1323
|
+
var tmp_0 = this.c4a().h28_1;
|
|
1324
|
+
Companion_getInstance_12();
|
|
1377
1325
|
if (tmp_0.equals(new Long(-1, 2147483647))) {
|
|
1378
|
-
tmp = this.
|
|
1326
|
+
tmp = this.i4d();
|
|
1379
1327
|
} else {
|
|
1380
|
-
if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).
|
|
1381
|
-
tmp = sequenceOf([statEndHaltTimeout(this,
|
|
1328
|
+
if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).ch(this.c4a().g28_1), this.c4a().h28_1)) {
|
|
1329
|
+
tmp = sequenceOf([statEndHaltTimeout(this, Companion_getInstance_20())]);
|
|
1382
1330
|
} else {
|
|
1383
|
-
tmp = this.
|
|
1331
|
+
tmp = this.i4d();
|
|
1384
1332
|
}
|
|
1385
1333
|
}
|
|
1386
1334
|
return tmp;
|
|
1387
1335
|
};
|
|
1388
|
-
AbstractTimedState.
|
|
1389
|
-
return timeIsOver(this, currentTimeInstant().
|
|
1336
|
+
protoOf(AbstractTimedState).j4d = function (_this__u8e3s4, toYieldState) {
|
|
1337
|
+
return timeIsOver(this, currentTimeInstant().ch(_this__u8e3s4.c4a().g28_1), _this__u8e3s4.c4a().h28_1) ? statEndHaltTimeout(_this__u8e3s4, Companion_getInstance_20()) : toYieldState;
|
|
1390
1338
|
};
|
|
1391
|
-
AbstractTimedState.
|
|
1392
|
-
return '' + getKClassFromExpression(this) + ' with ' + this.
|
|
1339
|
+
protoOf(AbstractTimedState).toString = function () {
|
|
1340
|
+
return '' + getKClassFromExpression(this) + ' with ' + this.c4a();
|
|
1393
1341
|
};
|
|
1394
1342
|
function stateCurrentTime$factory() {
|
|
1395
1343
|
return getPropertyCallableRef('stateCurrentTime', 1, KProperty1, function (receiver) {
|
|
@@ -1398,191 +1346,178 @@
|
|
|
1398
1346
|
}
|
|
1399
1347
|
function StateEnd$Halt$exception$delegate$lambda(this$0) {
|
|
1400
1348
|
return function () {
|
|
1401
|
-
var tmp = this$0.
|
|
1402
|
-
return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).
|
|
1349
|
+
var tmp = this$0.q4d_1.solution;
|
|
1350
|
+
return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).y1u();
|
|
1403
1351
|
};
|
|
1404
1352
|
}
|
|
1405
1353
|
function True(sourceContext, solve) {
|
|
1406
1354
|
StateEnd.call(this, sourceContext, solve);
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1355
|
+
this.x4d_1 = sourceContext;
|
|
1356
|
+
this.y4d_1 = solve;
|
|
1409
1357
|
// Inline function 'kotlin.require' call
|
|
1410
|
-
var tmp = this.
|
|
1358
|
+
var tmp = this.y4d_1.solution;
|
|
1411
1359
|
var tmp0_require = isInterface(tmp, Yes);
|
|
1412
1360
|
// Inline function 'kotlin.contracts.contract' call
|
|
1413
1361
|
if (!tmp0_require) {
|
|
1414
1362
|
var tmp$ret$0;
|
|
1415
1363
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.True.<anonymous>' call
|
|
1416
|
-
tmp$ret$0 = 'True end state can be created only with Solution.Yes. Current: `' + this.
|
|
1364
|
+
tmp$ret$0 = 'True end state can be created only with Solution.Yes. Current: `' + this.y4d_1.solution + '`';
|
|
1417
1365
|
var message = tmp$ret$0;
|
|
1418
1366
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1419
1367
|
}
|
|
1420
1368
|
}
|
|
1421
|
-
True.
|
|
1422
|
-
return this.
|
|
1369
|
+
protoOf(True).c4a = function () {
|
|
1370
|
+
return this.y4d_1;
|
|
1423
1371
|
};
|
|
1424
|
-
True.
|
|
1425
|
-
return 'True(sourceContext=' + this.
|
|
1372
|
+
protoOf(True).toString = function () {
|
|
1373
|
+
return 'True(sourceContext=' + this.x4d_1 + ', solve=' + this.y4d_1 + ')';
|
|
1426
1374
|
};
|
|
1427
|
-
True.
|
|
1428
|
-
var result = hashCode(this.
|
|
1429
|
-
result = imul(result, 31) + this.
|
|
1375
|
+
protoOf(True).hashCode = function () {
|
|
1376
|
+
var result = hashCode(this.x4d_1);
|
|
1377
|
+
result = imul(result, 31) + this.y4d_1.hashCode() | 0;
|
|
1430
1378
|
return result;
|
|
1431
1379
|
};
|
|
1432
|
-
True.
|
|
1380
|
+
protoOf(True).equals = function (other) {
|
|
1433
1381
|
if (this === other)
|
|
1434
1382
|
return true;
|
|
1435
1383
|
if (!(other instanceof True))
|
|
1436
1384
|
return false;
|
|
1437
1385
|
var tmp0_other_with_cast = other instanceof True ? other : THROW_CCE();
|
|
1438
|
-
if (!equals(this.
|
|
1386
|
+
if (!equals(this.x4d_1, tmp0_other_with_cast.x4d_1))
|
|
1439
1387
|
return false;
|
|
1440
|
-
if (!this.
|
|
1388
|
+
if (!this.y4d_1.equals(tmp0_other_with_cast.y4d_1))
|
|
1441
1389
|
return false;
|
|
1442
1390
|
return true;
|
|
1443
1391
|
};
|
|
1444
1392
|
function False(sourceContext, solve) {
|
|
1445
1393
|
StateEnd.call(this, sourceContext, solve);
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1394
|
+
this.j4e_1 = sourceContext;
|
|
1395
|
+
this.k4e_1 = solve;
|
|
1448
1396
|
// Inline function 'kotlin.require' call
|
|
1449
|
-
var tmp = this.
|
|
1397
|
+
var tmp = this.k4e_1.solution;
|
|
1450
1398
|
var tmp0_require = isInterface(tmp, No);
|
|
1451
1399
|
// Inline function 'kotlin.contracts.contract' call
|
|
1452
1400
|
if (!tmp0_require) {
|
|
1453
1401
|
var tmp$ret$0;
|
|
1454
1402
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.False.<anonymous>' call
|
|
1455
|
-
tmp$ret$0 = 'False end state can be created only with Solution.No. Current: `' + this.
|
|
1403
|
+
tmp$ret$0 = 'False end state can be created only with Solution.No. Current: `' + this.k4e_1.solution + '`';
|
|
1456
1404
|
var message = tmp$ret$0;
|
|
1457
1405
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1458
1406
|
}
|
|
1459
1407
|
}
|
|
1460
|
-
False.
|
|
1461
|
-
return this.
|
|
1408
|
+
protoOf(False).c4a = function () {
|
|
1409
|
+
return this.k4e_1;
|
|
1462
1410
|
};
|
|
1463
|
-
False.
|
|
1464
|
-
return 'False(sourceContext=' + this.
|
|
1411
|
+
protoOf(False).toString = function () {
|
|
1412
|
+
return 'False(sourceContext=' + this.j4e_1 + ', solve=' + this.k4e_1 + ')';
|
|
1465
1413
|
};
|
|
1466
|
-
False.
|
|
1467
|
-
var result = hashCode(this.
|
|
1468
|
-
result = imul(result, 31) + this.
|
|
1414
|
+
protoOf(False).hashCode = function () {
|
|
1415
|
+
var result = hashCode(this.j4e_1);
|
|
1416
|
+
result = imul(result, 31) + this.k4e_1.hashCode() | 0;
|
|
1469
1417
|
return result;
|
|
1470
1418
|
};
|
|
1471
|
-
False.
|
|
1419
|
+
protoOf(False).equals = function (other) {
|
|
1472
1420
|
if (this === other)
|
|
1473
1421
|
return true;
|
|
1474
1422
|
if (!(other instanceof False))
|
|
1475
1423
|
return false;
|
|
1476
1424
|
var tmp0_other_with_cast = other instanceof False ? other : THROW_CCE();
|
|
1477
|
-
if (!equals(this.
|
|
1425
|
+
if (!equals(this.j4e_1, tmp0_other_with_cast.j4e_1))
|
|
1478
1426
|
return false;
|
|
1479
|
-
if (!this.
|
|
1427
|
+
if (!this.k4e_1.equals(tmp0_other_with_cast.k4e_1))
|
|
1480
1428
|
return false;
|
|
1481
1429
|
return true;
|
|
1482
1430
|
};
|
|
1483
1431
|
function Halt_0(sourceContext, solve) {
|
|
1484
1432
|
StateEnd.call(this, sourceContext, solve);
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1433
|
+
this.p4d_1 = sourceContext;
|
|
1434
|
+
this.q4d_1 = solve;
|
|
1487
1435
|
// Inline function 'kotlin.require' call
|
|
1488
|
-
var tmp = this.
|
|
1436
|
+
var tmp = this.q4d_1.solution;
|
|
1489
1437
|
var tmp0_require = isInterface(tmp, Halt);
|
|
1490
1438
|
// Inline function 'kotlin.contracts.contract' call
|
|
1491
1439
|
if (!tmp0_require) {
|
|
1492
1440
|
var tmp$ret$0;
|
|
1493
1441
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Halt.<anonymous>' call
|
|
1494
|
-
tmp$ret$0 = 'Halt end state can be created only with Solution.Halt. Current: `' + this.
|
|
1442
|
+
tmp$ret$0 = 'Halt end state can be created only with Solution.Halt. Current: `' + this.q4d_1.solution + '`';
|
|
1495
1443
|
var message = tmp$ret$0;
|
|
1496
1444
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1497
1445
|
}
|
|
1498
1446
|
var tmp_0 = this;
|
|
1499
|
-
tmp_0.
|
|
1447
|
+
tmp_0.r4d_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
|
|
1500
1448
|
}
|
|
1501
|
-
Halt_0.
|
|
1502
|
-
return this.
|
|
1449
|
+
protoOf(Halt_0).c4a = function () {
|
|
1450
|
+
return this.q4d_1;
|
|
1503
1451
|
};
|
|
1504
|
-
Halt_0.
|
|
1505
|
-
return 'Halt(sourceContext=' + this.
|
|
1452
|
+
protoOf(Halt_0).toString = function () {
|
|
1453
|
+
return 'Halt(sourceContext=' + this.p4d_1 + ', solve=' + this.q4d_1 + ')';
|
|
1506
1454
|
};
|
|
1507
|
-
Halt_0.
|
|
1508
|
-
var result = hashCode(this.
|
|
1509
|
-
result = imul(result, 31) + this.
|
|
1455
|
+
protoOf(Halt_0).hashCode = function () {
|
|
1456
|
+
var result = hashCode(this.p4d_1);
|
|
1457
|
+
result = imul(result, 31) + this.q4d_1.hashCode() | 0;
|
|
1510
1458
|
return result;
|
|
1511
1459
|
};
|
|
1512
|
-
Halt_0.
|
|
1460
|
+
protoOf(Halt_0).equals = function (other) {
|
|
1513
1461
|
if (this === other)
|
|
1514
1462
|
return true;
|
|
1515
1463
|
if (!(other instanceof Halt_0))
|
|
1516
1464
|
return false;
|
|
1517
1465
|
var tmp0_other_with_cast = other instanceof Halt_0 ? other : THROW_CCE();
|
|
1518
|
-
if (!equals(this.
|
|
1466
|
+
if (!equals(this.p4d_1, tmp0_other_with_cast.p4d_1))
|
|
1519
1467
|
return false;
|
|
1520
|
-
if (!this.
|
|
1468
|
+
if (!this.q4d_1.equals(tmp0_other_with_cast.q4d_1))
|
|
1521
1469
|
return false;
|
|
1522
1470
|
return true;
|
|
1523
1471
|
};
|
|
1524
1472
|
function StateEnd$context$delegate$lambda(this$0) {
|
|
1525
1473
|
return function () {
|
|
1526
|
-
var tmp = this$0.
|
|
1474
|
+
var tmp = this$0.c4a().solution.r1t();
|
|
1527
1475
|
var tmp0_elvis_lhs = isInterface(tmp, Unifier) ? tmp : null;
|
|
1528
|
-
return StreamsExecutionContext_init_$Create$
|
|
1476
|
+
return StreamsExecutionContext_init_$Create$(this$0.b4e_1, tmp0_elvis_lhs == null ? Companion_getInstance_9().empty() : tmp0_elvis_lhs);
|
|
1529
1477
|
};
|
|
1530
1478
|
}
|
|
1531
1479
|
function StateEnd(sourceContext, solve) {
|
|
1532
1480
|
AbstractState.call(this, solve);
|
|
1533
|
-
this.
|
|
1534
|
-
this.
|
|
1481
|
+
this.b4e_1 = sourceContext;
|
|
1482
|
+
this.c4e_1 = solve;
|
|
1535
1483
|
var tmp = this;
|
|
1536
|
-
tmp.
|
|
1484
|
+
tmp.d4e_1 = lazy(StateEnd$context$delegate$lambda(this));
|
|
1537
1485
|
}
|
|
1538
|
-
StateEnd.
|
|
1539
|
-
return this.
|
|
1486
|
+
protoOf(StateEnd).c4a = function () {
|
|
1487
|
+
return this.c4e_1;
|
|
1540
1488
|
};
|
|
1541
|
-
StateEnd.
|
|
1489
|
+
protoOf(StateEnd).k4c = function () {
|
|
1542
1490
|
return emptySequence();
|
|
1543
1491
|
};
|
|
1544
|
-
StateEnd.
|
|
1492
|
+
protoOf(StateEnd).n5 = function () {
|
|
1545
1493
|
var tmp$ret$0;
|
|
1546
1494
|
// Inline function 'kotlin.getValue' call
|
|
1547
1495
|
var tmp0_getValue = context$factory();
|
|
1548
|
-
tmp$ret$0 = this.
|
|
1496
|
+
tmp$ret$0 = this.d4e_1.b1();
|
|
1549
1497
|
return tmp$ret$0;
|
|
1550
1498
|
};
|
|
1551
1499
|
function stateEndTrue(_this__u8e3s4, substitution, sideEffectManager, sideEffects) {
|
|
1552
|
-
|
|
1553
|
-
|
|
1500
|
+
substitution = substitution === VOID ? Companion_getInstance_9().empty() : substitution;
|
|
1501
|
+
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1502
|
+
var tmp = _this__u8e3s4.n5();
|
|
1503
|
+
var tmp_0 = _this__u8e3s4.c4a();
|
|
1554
1504
|
var tmp0_elvis_lhs = sideEffectManager;
|
|
1555
|
-
return new True(tmp, tmp_0.
|
|
1556
|
-
}
|
|
1557
|
-
function stateEndTrue$default(_this__u8e3s4, substitution, sideEffectManager, sideEffects, $mask0, $handler) {
|
|
1558
|
-
if (!(($mask0 & 1) === 0))
|
|
1559
|
-
substitution = Companion_getInstance_3().empty();
|
|
1560
|
-
if (!(($mask0 & 2) === 0))
|
|
1561
|
-
sideEffectManager = null;
|
|
1562
|
-
return stateEndTrue(_this__u8e3s4, substitution, sideEffectManager, sideEffects);
|
|
1505
|
+
return new True(tmp, tmp_0.o2g(substitution, tmp0_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.c4a().context) : tmp0_elvis_lhs, sideEffects.slice()));
|
|
1563
1506
|
}
|
|
1564
1507
|
function stateEndFalse(_this__u8e3s4, sideEffectManager, sideEffects) {
|
|
1565
|
-
|
|
1566
|
-
var
|
|
1508
|
+
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1509
|
+
var tmp = _this__u8e3s4.n5();
|
|
1510
|
+
var tmp_0 = _this__u8e3s4.c4a();
|
|
1567
1511
|
var tmp0_elvis_lhs = sideEffectManager;
|
|
1568
|
-
return new False(tmp, tmp_0.
|
|
1569
|
-
}
|
|
1570
|
-
function stateEndFalse$default(_this__u8e3s4, sideEffectManager, sideEffects, $mask0, $handler) {
|
|
1571
|
-
if (!(($mask0 & 1) === 0))
|
|
1572
|
-
sideEffectManager = null;
|
|
1573
|
-
return stateEndFalse(_this__u8e3s4, sideEffectManager, sideEffects);
|
|
1512
|
+
return new False(tmp, tmp_0.p2g(tmp0_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.c4a().context) : tmp0_elvis_lhs, sideEffects.slice()));
|
|
1574
1513
|
}
|
|
1575
1514
|
function stateEndHalt(_this__u8e3s4, exception, sideEffectManager, sideEffects) {
|
|
1576
|
-
|
|
1577
|
-
var
|
|
1515
|
+
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1516
|
+
var tmp = _this__u8e3s4.n5();
|
|
1517
|
+
var tmp_0 = _this__u8e3s4.c4a();
|
|
1578
1518
|
var tmp0_elvis_lhs = sideEffectManager;
|
|
1579
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getSideEffectManager(exception.
|
|
1580
|
-
return new Halt_0(tmp, tmp_0.
|
|
1581
|
-
}
|
|
1582
|
-
function stateEndHalt$default(_this__u8e3s4, exception, sideEffectManager, sideEffects, $mask0, $handler) {
|
|
1583
|
-
if (!(($mask0 & 2) === 0))
|
|
1584
|
-
sideEffectManager = null;
|
|
1585
|
-
return stateEndHalt(_this__u8e3s4, exception, sideEffectManager, sideEffects);
|
|
1519
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? getSideEffectManager(exception.n5()) : tmp0_elvis_lhs;
|
|
1520
|
+
return new Halt_0(tmp, tmp_0.q2g(exception, tmp1_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.c4a().context) : tmp1_elvis_lhs, sideEffects.slice()));
|
|
1586
1521
|
}
|
|
1587
1522
|
function stateEnd(_this__u8e3s4, response) {
|
|
1588
1523
|
var tmp$ret$2;
|
|
@@ -1599,16 +1534,16 @@
|
|
|
1599
1534
|
return tmp$ret$2;
|
|
1600
1535
|
}
|
|
1601
1536
|
function stateEnd_0(_this__u8e3s4, solution, sideEffectManager, sideEffects) {
|
|
1537
|
+
sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
|
|
1602
1538
|
var tmp = stateEnd$lambda(_this__u8e3s4, sideEffectManager, sideEffects);
|
|
1603
1539
|
var tmp_0 = stateEnd$lambda_0(_this__u8e3s4, sideEffectManager, sideEffects);
|
|
1604
|
-
|
|
1605
|
-
return solution.e1w(tmp, tmp_0, tmp_1, null, 8, null);
|
|
1540
|
+
return solution.whenIs(tmp, tmp_0, stateEnd$lambda_1(_this__u8e3s4, sideEffectManager, sideEffects));
|
|
1606
1541
|
}
|
|
1607
1542
|
function stateEnd$lambda($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
1608
1543
|
return function (sol) {
|
|
1609
1544
|
var tmp$ret$1;
|
|
1610
1545
|
// Inline function 'kotlin.takeUnless' call
|
|
1611
|
-
var tmp0_takeUnless = sol.
|
|
1546
|
+
var tmp0_takeUnless = sol.r1t();
|
|
1612
1547
|
// Inline function 'kotlin.contracts.contract' call
|
|
1613
1548
|
var tmp;
|
|
1614
1549
|
var tmp$ret$0;
|
|
@@ -1621,7 +1556,7 @@
|
|
|
1621
1556
|
}
|
|
1622
1557
|
tmp$ret$1 = tmp;
|
|
1623
1558
|
var tmp0_elvis_lhs = tmp$ret$1;
|
|
1624
|
-
return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.
|
|
1559
|
+
return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.c4a().context.r1t() : tmp0_elvis_lhs, $sideEffectManager, $sideEffects.slice());
|
|
1625
1560
|
};
|
|
1626
1561
|
}
|
|
1627
1562
|
function stateEnd$lambda_0($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
@@ -1631,158 +1566,156 @@
|
|
|
1631
1566
|
}
|
|
1632
1567
|
function stateEnd$lambda_1($this_stateEnd, $sideEffectManager, $sideEffects) {
|
|
1633
1568
|
return function (it) {
|
|
1634
|
-
return stateEndHalt($this_stateEnd, it.
|
|
1569
|
+
return stateEndHalt($this_stateEnd, it.y1u(), $sideEffectManager, $sideEffects.slice());
|
|
1635
1570
|
};
|
|
1636
1571
|
}
|
|
1637
1572
|
function context$factory() {
|
|
1638
1573
|
return getPropertyCallableRef('context', 1, KProperty1, function (receiver) {
|
|
1639
|
-
return receiver.
|
|
1574
|
+
return receiver.n5();
|
|
1640
1575
|
}, null);
|
|
1641
1576
|
}
|
|
1642
1577
|
function newThrowSolveRequest(_this__u8e3s4, $this, error) {
|
|
1643
|
-
var tmp =
|
|
1578
|
+
var tmp = Companion_getInstance_13();
|
|
1644
1579
|
var tmp$ret$0;
|
|
1645
1580
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
1646
1581
|
var tmp0__get_functor__thl4dk = Throw_getInstance();
|
|
1647
1582
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
1648
|
-
var tmp_0 = tmp.of(tmp$ret$0, [error.
|
|
1649
|
-
var tmp0_elvis_lhs = getSideEffectManager(error.
|
|
1650
|
-
|
|
1651
|
-
var tmp_2 = currentTimeInstant();
|
|
1652
|
-
return newSolveRequest$default(_this__u8e3s4, tmp_0, null, null, tmp_1, tmp_2, false, 38, null);
|
|
1583
|
+
var tmp_0 = tmp.of(tmp$ret$0, [error.t23()]);
|
|
1584
|
+
var tmp0_elvis_lhs = getSideEffectManager(error.n5());
|
|
1585
|
+
return newSolveRequest(_this__u8e3s4, tmp_0, VOID, VOID, tmp0_elvis_lhs == null ? _this__u8e3s4.context.u4a_1 : tmp0_elvis_lhs, currentTimeInstant());
|
|
1653
1586
|
}
|
|
1654
1587
|
function Companion_2() {
|
|
1655
1588
|
Companion_instance_2 = this;
|
|
1656
1589
|
}
|
|
1657
1590
|
var Companion_instance_2;
|
|
1658
|
-
function
|
|
1591
|
+
function Companion_getInstance_21() {
|
|
1659
1592
|
if (Companion_instance_2 == null)
|
|
1660
1593
|
new Companion_2();
|
|
1661
1594
|
return Companion_instance_2;
|
|
1662
1595
|
}
|
|
1663
1596
|
function StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1664
|
-
this.
|
|
1597
|
+
this.t4e_1 = this$0;
|
|
1665
1598
|
CoroutineImpl.call(this, resultContinuation);
|
|
1666
1599
|
}
|
|
1667
|
-
StateGoalEvaluation$behaveTimed$slambda.
|
|
1668
|
-
var tmp = this.
|
|
1669
|
-
tmp.
|
|
1670
|
-
tmp.
|
|
1671
|
-
return tmp.
|
|
1600
|
+
protoOf(StateGoalEvaluation$behaveTimed$slambda).b4d = function ($this$sequence, $completion) {
|
|
1601
|
+
var tmp = this.c4d($this$sequence, $completion);
|
|
1602
|
+
tmp.ci_1 = Unit_getInstance();
|
|
1603
|
+
tmp.di_1 = null;
|
|
1604
|
+
return tmp.ii();
|
|
1672
1605
|
};
|
|
1673
|
-
StateGoalEvaluation$behaveTimed$slambda.
|
|
1674
|
-
return this.
|
|
1606
|
+
protoOf(StateGoalEvaluation$behaveTimed$slambda).ui = function (p1, $completion) {
|
|
1607
|
+
return this.b4d(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1675
1608
|
};
|
|
1676
|
-
StateGoalEvaluation$behaveTimed$slambda.
|
|
1677
|
-
var suspendResult = this.
|
|
1609
|
+
protoOf(StateGoalEvaluation$behaveTimed$slambda).ii = function () {
|
|
1610
|
+
var suspendResult = this.ci_1;
|
|
1678
1611
|
$sm: do
|
|
1679
1612
|
try {
|
|
1680
|
-
var tmp = this.
|
|
1613
|
+
var tmp = this.ai_1;
|
|
1681
1614
|
switch (tmp) {
|
|
1682
1615
|
case 0:
|
|
1683
|
-
this.
|
|
1616
|
+
this.bi_1 = 11;
|
|
1684
1617
|
var tmp_0 = this;
|
|
1685
|
-
var tmp0_with = this.
|
|
1686
|
-
tmp_0.
|
|
1687
|
-
this.
|
|
1688
|
-
if (this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1618
|
+
var tmp0_with = this.t4e_1.m4f_1;
|
|
1619
|
+
tmp_0.v4e_1 = tmp0_with.context.i4a_1.p2c().f3(tmp0_with.signature);
|
|
1620
|
+
this.w4e_1 = this.v4e_1;
|
|
1621
|
+
if (this.w4e_1 == null) {
|
|
1622
|
+
this.x4e_1 = null;
|
|
1623
|
+
this.ai_1 = 8;
|
|
1691
1624
|
continue $sm;
|
|
1692
1625
|
} else {
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1626
|
+
this.y4e_1 = null;
|
|
1627
|
+
this.bi_1 = 1;
|
|
1628
|
+
this.y4e_1 = this.v4e_1.solve(this.t4e_1.m4f_1);
|
|
1629
|
+
this.bi_1 = 11;
|
|
1630
|
+
this.ai_1 = 3;
|
|
1698
1631
|
continue $sm;
|
|
1699
1632
|
}
|
|
1700
1633
|
|
|
1701
1634
|
break;
|
|
1702
1635
|
case 1:
|
|
1703
|
-
this.
|
|
1704
|
-
var tmp_1 = this.
|
|
1636
|
+
this.bi_1 = 11;
|
|
1637
|
+
var tmp_1 = this.di_1;
|
|
1705
1638
|
if (tmp_1 instanceof HaltException) {
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1708
|
-
suspendResult = this.
|
|
1639
|
+
this.z4e_1 = this.di_1;
|
|
1640
|
+
this.ai_1 = 2;
|
|
1641
|
+
suspendResult = this.u4e_1.d5(stateEndHalt(this.t4e_1, this.z4e_1, VOID, []), this);
|
|
1709
1642
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1710
1643
|
return suspendResult;
|
|
1711
1644
|
}
|
|
1712
1645
|
continue $sm;
|
|
1713
1646
|
} else {
|
|
1714
|
-
var tmp_2 = this.
|
|
1647
|
+
var tmp_2 = this.di_1;
|
|
1715
1648
|
if (tmp_2 instanceof LogicError) {
|
|
1716
|
-
this.
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1649
|
+
this.a4f_1 = this.di_1;
|
|
1650
|
+
this.y4e_1 = Companion_getInstance_19().f4a(newThrowSolveRequest(this.t4e_1.m4f_1, Companion_getInstance_21(), this.a4f_1));
|
|
1651
|
+
this.ai_1 = 3;
|
|
1719
1652
|
continue $sm;
|
|
1720
1653
|
} else {
|
|
1721
|
-
throw this.
|
|
1654
|
+
throw this.di_1;
|
|
1722
1655
|
}
|
|
1723
1656
|
}
|
|
1724
1657
|
|
|
1725
1658
|
break;
|
|
1726
1659
|
case 2:
|
|
1727
|
-
this.
|
|
1660
|
+
this.ai_1 = 3;
|
|
1728
1661
|
continue $sm;
|
|
1729
1662
|
case 3:
|
|
1730
|
-
this.
|
|
1731
|
-
this.
|
|
1732
|
-
this.
|
|
1733
|
-
if (this.
|
|
1734
|
-
this.
|
|
1735
|
-
this.
|
|
1663
|
+
this.bi_1 = 11;
|
|
1664
|
+
this.b4f_1 = emptyList();
|
|
1665
|
+
this.c4f_1 = this.y4e_1;
|
|
1666
|
+
if (this.c4f_1 == null) {
|
|
1667
|
+
this.d4f_1 = null;
|
|
1668
|
+
this.ai_1 = 7;
|
|
1736
1669
|
continue $sm;
|
|
1737
1670
|
} else {
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1671
|
+
this.e4f_1 = this.c4f_1.j();
|
|
1672
|
+
this.ai_1 = 4;
|
|
1740
1673
|
continue $sm;
|
|
1741
1674
|
}
|
|
1742
1675
|
|
|
1743
1676
|
break;
|
|
1744
1677
|
case 4:
|
|
1745
|
-
if (!this.
|
|
1746
|
-
this.
|
|
1678
|
+
if (!this.e4f_1.m()) {
|
|
1679
|
+
this.ai_1 = 6;
|
|
1747
1680
|
continue $sm;
|
|
1748
1681
|
}
|
|
1749
1682
|
|
|
1750
|
-
this.
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
suspendResult = this.
|
|
1683
|
+
this.f4f_1 = this.e4f_1.n();
|
|
1684
|
+
this.b4f_1 = addWithNoDuplicates(this.b4f_1, this.f4f_1.sideEffects);
|
|
1685
|
+
this.ai_1 = 5;
|
|
1686
|
+
suspendResult = this.u4e_1.d5(this.t4e_1.j4d(this.t4e_1, stateEnd(this.t4e_1, this.f4f_1.i2h(VOID, VOID, this.b4f_1))), this);
|
|
1754
1687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1755
1688
|
return suspendResult;
|
|
1756
1689
|
}
|
|
1757
1690
|
|
|
1758
1691
|
continue $sm;
|
|
1759
1692
|
case 5:
|
|
1760
|
-
var tmp_3 = this.
|
|
1693
|
+
var tmp_3 = this.f4f_1.solution;
|
|
1761
1694
|
if (isInterface(tmp_3, Halt))
|
|
1762
1695
|
return Unit_getInstance();
|
|
1763
|
-
this.
|
|
1696
|
+
this.ai_1 = 4;
|
|
1764
1697
|
continue $sm;
|
|
1765
1698
|
case 6:
|
|
1766
|
-
this.
|
|
1767
|
-
this.
|
|
1699
|
+
this.d4f_1 = Unit_getInstance();
|
|
1700
|
+
this.ai_1 = 7;
|
|
1768
1701
|
continue $sm;
|
|
1769
1702
|
case 7:
|
|
1770
1703
|
;
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1704
|
+
this.x4e_1 = this.w4e_1;
|
|
1705
|
+
this.ai_1 = 8;
|
|
1773
1706
|
continue $sm;
|
|
1774
1707
|
case 8:
|
|
1775
|
-
this.
|
|
1776
|
-
if (this.
|
|
1777
|
-
this.
|
|
1778
|
-
suspendResult = this.
|
|
1708
|
+
this.g4f_1 = this.x4e_1;
|
|
1709
|
+
if (this.g4f_1 == null) {
|
|
1710
|
+
this.ai_1 = 9;
|
|
1711
|
+
suspendResult = this.u4e_1.d5(new StateRuleSelection(this.t4e_1.m4f_1), this);
|
|
1779
1712
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1780
1713
|
return suspendResult;
|
|
1781
1714
|
}
|
|
1782
1715
|
continue $sm;
|
|
1783
1716
|
} else {
|
|
1784
|
-
this.
|
|
1785
|
-
this.
|
|
1717
|
+
this.h4f_1 = this.g4f_1;
|
|
1718
|
+
this.ai_1 = 10;
|
|
1786
1719
|
continue $sm;
|
|
1787
1720
|
}
|
|
1788
1721
|
|
|
@@ -1790,102 +1723,99 @@
|
|
|
1790
1723
|
break;
|
|
1791
1724
|
case 9:
|
|
1792
1725
|
var tmp_4 = this;
|
|
1793
|
-
tmp_4.
|
|
1794
|
-
this.
|
|
1726
|
+
tmp_4.h4f_1 = Unit_getInstance();
|
|
1727
|
+
this.ai_1 = 10;
|
|
1795
1728
|
continue $sm;
|
|
1796
1729
|
case 10:
|
|
1797
1730
|
;
|
|
1798
1731
|
return Unit_getInstance();
|
|
1799
1732
|
case 11:
|
|
1800
|
-
throw this.
|
|
1733
|
+
throw this.di_1;
|
|
1801
1734
|
}
|
|
1802
1735
|
} catch ($p) {
|
|
1803
|
-
|
|
1804
|
-
|
|
1736
|
+
var e = $p;
|
|
1737
|
+
if (this.bi_1 === 11) {
|
|
1738
|
+
throw e;
|
|
1805
1739
|
} else {
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1740
|
+
this.ai_1 = this.bi_1;
|
|
1741
|
+
this.di_1 = e;
|
|
1808
1742
|
}
|
|
1809
1743
|
}
|
|
1810
1744
|
while (true);
|
|
1811
1745
|
};
|
|
1812
|
-
StateGoalEvaluation$behaveTimed$slambda.
|
|
1813
|
-
var i = new StateGoalEvaluation$behaveTimed$slambda(this.
|
|
1814
|
-
i.
|
|
1746
|
+
protoOf(StateGoalEvaluation$behaveTimed$slambda).c4d = function ($this$sequence, completion) {
|
|
1747
|
+
var i = new StateGoalEvaluation$behaveTimed$slambda(this.t4e_1, completion);
|
|
1748
|
+
i.u4e_1 = $this$sequence;
|
|
1815
1749
|
return i;
|
|
1816
1750
|
};
|
|
1817
1751
|
function StateGoalEvaluation$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
1818
1752
|
var i = new StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation);
|
|
1819
|
-
var l = function ($this$sequence, $
|
|
1820
|
-
return i.
|
|
1753
|
+
var l = function ($this$sequence, $completion) {
|
|
1754
|
+
return i.b4d($this$sequence, $completion);
|
|
1821
1755
|
};
|
|
1822
1756
|
l.$arity = 1;
|
|
1823
1757
|
return l;
|
|
1824
1758
|
}
|
|
1825
1759
|
function StateGoalEvaluation(solve) {
|
|
1826
|
-
|
|
1760
|
+
Companion_getInstance_21();
|
|
1827
1761
|
AbstractTimedState.call(this, solve);
|
|
1828
|
-
this.
|
|
1762
|
+
this.m4f_1 = solve;
|
|
1829
1763
|
}
|
|
1830
|
-
StateGoalEvaluation.
|
|
1831
|
-
return this.
|
|
1764
|
+
protoOf(StateGoalEvaluation).c4a = function () {
|
|
1765
|
+
return this.m4f_1;
|
|
1832
1766
|
};
|
|
1833
|
-
StateGoalEvaluation.
|
|
1767
|
+
protoOf(StateGoalEvaluation).i4d = function () {
|
|
1834
1768
|
return sequence(StateGoalEvaluation$behaveTimed$slambda_0(this, null));
|
|
1835
1769
|
};
|
|
1836
1770
|
function StateInit$behaveTimed$slambda(this$0, resultContinuation) {
|
|
1837
|
-
this.
|
|
1771
|
+
this.v4f_1 = this$0;
|
|
1838
1772
|
CoroutineImpl.call(this, resultContinuation);
|
|
1839
1773
|
}
|
|
1840
|
-
StateInit$behaveTimed$slambda.
|
|
1841
|
-
var tmp = this.
|
|
1842
|
-
tmp.
|
|
1843
|
-
tmp.
|
|
1844
|
-
return tmp.
|
|
1774
|
+
protoOf(StateInit$behaveTimed$slambda).b4d = function ($this$sequence, $completion) {
|
|
1775
|
+
var tmp = this.c4d($this$sequence, $completion);
|
|
1776
|
+
tmp.ci_1 = Unit_getInstance();
|
|
1777
|
+
tmp.di_1 = null;
|
|
1778
|
+
return tmp.ii();
|
|
1845
1779
|
};
|
|
1846
|
-
StateInit$behaveTimed$slambda.
|
|
1847
|
-
return this.
|
|
1780
|
+
protoOf(StateInit$behaveTimed$slambda).ui = function (p1, $completion) {
|
|
1781
|
+
return this.b4d(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1848
1782
|
};
|
|
1849
|
-
StateInit$behaveTimed$slambda.
|
|
1850
|
-
var suspendResult = this.
|
|
1783
|
+
protoOf(StateInit$behaveTimed$slambda).ii = function () {
|
|
1784
|
+
var suspendResult = this.ci_1;
|
|
1851
1785
|
$sm: do
|
|
1852
1786
|
try {
|
|
1853
|
-
var tmp = this.
|
|
1787
|
+
var tmp = this.ai_1;
|
|
1854
1788
|
switch (tmp) {
|
|
1855
1789
|
case 0:
|
|
1856
|
-
this.
|
|
1790
|
+
this.bi_1 = 6;
|
|
1857
1791
|
var tmp_0 = this;
|
|
1858
|
-
var tmp0_with = this.
|
|
1859
|
-
tmp_0.
|
|
1860
|
-
this.
|
|
1861
|
-
var tmp1_with = this.
|
|
1862
|
-
if (tmp1_with.
|
|
1863
|
-
this.
|
|
1864
|
-
suspendResult = this.
|
|
1792
|
+
var tmp0_with = this.v4f_1.e4g_1.context;
|
|
1793
|
+
tmp_0.x4f_1 = tmp0_with.u4a_1.e4b(tmp0_with);
|
|
1794
|
+
this.y4f_1 = this.v4f_1.e4g_1.v1u();
|
|
1795
|
+
var tmp1_with = this.v4f_1.e4g_1.context;
|
|
1796
|
+
if (tmp1_with.t4a_1.a4a(this.y4f_1, tmp1_with)) {
|
|
1797
|
+
this.ai_1 = 4;
|
|
1798
|
+
suspendResult = this.w4f_1.d5(this.v4f_1.j4d(this.v4f_1, stateEndTrue(this.v4f_1, this.v4f_1.e4g_1.context.q4a_1, this.x4f_1, [])), this);
|
|
1865
1799
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1866
1800
|
return suspendResult;
|
|
1867
1801
|
}
|
|
1868
1802
|
continue $sm;
|
|
1869
1803
|
} else {
|
|
1870
|
-
if (isWellFormed(this.
|
|
1804
|
+
if (isWellFormed(this.y4f_1)) {
|
|
1871
1805
|
var tmp_1 = this;
|
|
1872
|
-
tmp_1.
|
|
1873
|
-
this.
|
|
1874
|
-
var tmp_2 = extractSignature(this.
|
|
1875
|
-
var tmp_3 = this.
|
|
1876
|
-
var tmp0_with_0 = this.
|
|
1877
|
-
|
|
1878
|
-
var tmp_5 = new Long(0, 0);
|
|
1879
|
-
var tmp_6 = tmp0_with_0.v4d(null, null, null, null, null, null, null, null, null, null, tmp_4, tmp_5, null, this.c4i_1, 8191, null);
|
|
1880
|
-
var tmp_7 = new Long(0, 0);
|
|
1881
|
-
suspendResult = this.b4i_1.z4(new StateGoalEvaluation(this.a4i_1.j4i_1.g2j(tmp_2, tmp_3, tmp_6, tmp_7, new Long(0, 0), 24, null)), this);
|
|
1806
|
+
tmp_1.z4f_1 = prepareForExecutionAsGoal(this.y4f_1);
|
|
1807
|
+
this.ai_1 = 2;
|
|
1808
|
+
var tmp_2 = extractSignature(this.z4f_1);
|
|
1809
|
+
var tmp_3 = this.z4f_1.xv();
|
|
1810
|
+
var tmp0_with_0 = this.v4f_1.e4g_1.context;
|
|
1811
|
+
suspendResult = this.w4f_1.d5(new StateGoalEvaluation(this.v4f_1.e4g_1.d2h(tmp_2, tmp_3, tmp0_with_0.q4b(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.x4f_1))), this);
|
|
1882
1812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1883
1813
|
return suspendResult;
|
|
1884
1814
|
}
|
|
1885
1815
|
continue $sm;
|
|
1886
1816
|
} else {
|
|
1887
|
-
this.
|
|
1888
|
-
suspendResult = this.
|
|
1817
|
+
this.ai_1 = 1;
|
|
1818
|
+
suspendResult = this.w4f_1.d5(stateEndFalse(this.v4f_1, this.x4f_1, []), this);
|
|
1889
1819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1820
|
return suspendResult;
|
|
1891
1821
|
}
|
|
@@ -1895,66 +1825,67 @@
|
|
|
1895
1825
|
|
|
1896
1826
|
break;
|
|
1897
1827
|
case 1:
|
|
1898
|
-
this.
|
|
1828
|
+
this.ai_1 = 3;
|
|
1899
1829
|
continue $sm;
|
|
1900
1830
|
case 2:
|
|
1901
1831
|
;
|
|
1902
|
-
this.
|
|
1832
|
+
this.ai_1 = 3;
|
|
1903
1833
|
continue $sm;
|
|
1904
1834
|
case 3:
|
|
1905
|
-
this.
|
|
1835
|
+
this.ai_1 = 5;
|
|
1906
1836
|
continue $sm;
|
|
1907
1837
|
case 4:
|
|
1908
|
-
this.
|
|
1838
|
+
this.ai_1 = 5;
|
|
1909
1839
|
continue $sm;
|
|
1910
1840
|
case 5:
|
|
1911
1841
|
return Unit_getInstance();
|
|
1912
1842
|
case 6:
|
|
1913
|
-
throw this.
|
|
1843
|
+
throw this.di_1;
|
|
1914
1844
|
}
|
|
1915
1845
|
} catch ($p) {
|
|
1916
|
-
|
|
1917
|
-
|
|
1846
|
+
var e = $p;
|
|
1847
|
+
if (this.bi_1 === 6) {
|
|
1848
|
+
throw e;
|
|
1918
1849
|
} else {
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1850
|
+
this.ai_1 = this.bi_1;
|
|
1851
|
+
this.di_1 = e;
|
|
1921
1852
|
}
|
|
1922
1853
|
}
|
|
1923
1854
|
while (true);
|
|
1924
1855
|
};
|
|
1925
|
-
StateInit$behaveTimed$slambda.
|
|
1926
|
-
var i = new StateInit$behaveTimed$slambda(this.
|
|
1927
|
-
i.
|
|
1856
|
+
protoOf(StateInit$behaveTimed$slambda).c4d = function ($this$sequence, completion) {
|
|
1857
|
+
var i = new StateInit$behaveTimed$slambda(this.v4f_1, completion);
|
|
1858
|
+
i.w4f_1 = $this$sequence;
|
|
1928
1859
|
return i;
|
|
1929
1860
|
};
|
|
1930
1861
|
function StateInit$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
1931
1862
|
var i = new StateInit$behaveTimed$slambda(this$0, resultContinuation);
|
|
1932
|
-
var l = function ($this$sequence, $
|
|
1933
|
-
return i.
|
|
1863
|
+
var l = function ($this$sequence, $completion) {
|
|
1864
|
+
return i.b4d($this$sequence, $completion);
|
|
1934
1865
|
};
|
|
1935
1866
|
l.$arity = 1;
|
|
1936
1867
|
return l;
|
|
1937
1868
|
}
|
|
1938
1869
|
function StateInit(solve) {
|
|
1939
1870
|
AbstractTimedState.call(this, solve);
|
|
1940
|
-
this.
|
|
1871
|
+
this.e4g_1 = solve;
|
|
1941
1872
|
}
|
|
1942
|
-
StateInit.
|
|
1943
|
-
return this.
|
|
1873
|
+
protoOf(StateInit).c4a = function () {
|
|
1874
|
+
return this.e4g_1;
|
|
1944
1875
|
};
|
|
1945
|
-
StateInit.
|
|
1876
|
+
protoOf(StateInit).i4d = function () {
|
|
1946
1877
|
return sequence(StateInit$behaveTimed$slambda_0(this, null));
|
|
1947
1878
|
};
|
|
1948
1879
|
function retrieveRulesMatching(_this__u8e3s4, $this, currentGoal) {
|
|
1949
1880
|
var tmp$ret$3;
|
|
1950
1881
|
// Inline function 'kotlin.let' call
|
|
1951
|
-
var tmp0_let = currentGoal.
|
|
1882
|
+
var tmp0_let = currentGoal.fy();
|
|
1952
1883
|
// Inline function 'kotlin.contracts.contract' call
|
|
1953
1884
|
var tmp$ret$2;
|
|
1954
1885
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.retrieveRulesMatching.<anonymous>' call
|
|
1955
1886
|
var tmp$ret$1;
|
|
1956
1887
|
// Inline function 'kotlin.takeIf' call
|
|
1957
|
-
var tmp0_takeIf = _this__u8e3s4.
|
|
1888
|
+
var tmp0_takeIf = _this__u8e3s4.v1t().asTheory(_this__u8e3s4.k1k()).getByHead(tmp0_let);
|
|
1958
1889
|
// Inline function 'kotlin.contracts.contract' call
|
|
1959
1890
|
var tmp;
|
|
1960
1891
|
var tmp$ret$0;
|
|
@@ -1969,7 +1900,7 @@
|
|
|
1969
1900
|
var tmp0_elvis_lhs = tmp$ret$1;
|
|
1970
1901
|
var tmp_0;
|
|
1971
1902
|
if (tmp0_elvis_lhs == null) {
|
|
1972
|
-
var tmp_1 = sequenceOf([_this__u8e3s4.
|
|
1903
|
+
var tmp_1 = sequenceOf([_this__u8e3s4.x1t(), _this__u8e3s4.y1t()]);
|
|
1973
1904
|
tmp_0 = flatMap(tmp_1, StateRuleSelection$Companion$retrieveRulesMatching$lambda(tmp0_let));
|
|
1974
1905
|
} else {
|
|
1975
1906
|
tmp_0 = tmp0_elvis_lhs;
|
|
@@ -1985,19 +1916,15 @@
|
|
|
1985
1916
|
// Inline function 'kotlin.contracts.contract' call
|
|
1986
1917
|
var tmp$ret$0;
|
|
1987
1918
|
// Inline function 'it.unibo.tuprolog.solve.streams.solver.fsm.impl.Companion.initializeForSubRuleScope.<anonymous>' call
|
|
1988
|
-
|
|
1989
|
-
var tmp_0 = new Long(0, 0);
|
|
1990
|
-
tmp$ret$0 = tmp0_with.v4d(null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, tmp0_with.z4c_1.l4d(), 8191, null);
|
|
1919
|
+
tmp$ret$0 = tmp0_with.q4b(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_with.u4a_1.g4b());
|
|
1991
1920
|
tmp$ret$1 = tmp$ret$0;
|
|
1992
|
-
|
|
1993
|
-
var tmp_2 = new Long(0, 0);
|
|
1994
|
-
return _this__u8e3s4.g2j(null, null, tmp_1, tmp_2, new Long(0, 0), 27, null);
|
|
1921
|
+
return _this__u8e3s4.d2h(VOID, VOID, tmp$ret$1);
|
|
1995
1922
|
}
|
|
1996
1923
|
function removeSubstitutionFor(_this__u8e3s4, $this, unusedVariables) {
|
|
1997
1924
|
var tmp0_subject = _this__u8e3s4;
|
|
1998
1925
|
var tmp;
|
|
1999
1926
|
if (isInterface(tmp0_subject, Yes)) {
|
|
2000
|
-
tmp = _this__u8e3s4.
|
|
1927
|
+
tmp = _this__u8e3s4.copy(VOID, _this__u8e3s4.r1t().v10(asIterable(unusedVariables)));
|
|
2001
1928
|
} else {
|
|
2002
1929
|
tmp = _this__u8e3s4;
|
|
2003
1930
|
}
|
|
@@ -2010,159 +1937,157 @@
|
|
|
2010
1937
|
}
|
|
2011
1938
|
function SolverStrategies$clauseChoiceStrategy$ref($boundThis) {
|
|
2012
1939
|
var l = function (p0, p1) {
|
|
2013
|
-
return $boundThis.
|
|
1940
|
+
return $boundThis.z49(p0, p1);
|
|
2014
1941
|
};
|
|
2015
1942
|
l.callableName = 'clauseChoiceStrategy';
|
|
2016
1943
|
return l;
|
|
2017
1944
|
}
|
|
2018
1945
|
function StateRuleSelection$behaveTimed$slambda$lambda(it) {
|
|
2019
|
-
var tmp = prepareForExecution(it).
|
|
1946
|
+
var tmp = prepareForExecution(it).fy();
|
|
2020
1947
|
return isInterface(tmp, Rule) ? tmp : THROW_CCE();
|
|
2021
1948
|
}
|
|
2022
1949
|
function Companion_3() {
|
|
2023
1950
|
Companion_instance_3 = this;
|
|
2024
1951
|
}
|
|
2025
1952
|
var Companion_instance_3;
|
|
2026
|
-
function
|
|
1953
|
+
function Companion_getInstance_22() {
|
|
2027
1954
|
if (Companion_instance_3 == null)
|
|
2028
1955
|
new Companion_3();
|
|
2029
1956
|
return Companion_instance_3;
|
|
2030
1957
|
}
|
|
2031
1958
|
function StateMachineExecutor$executeWrapping$ref($boundThis) {
|
|
2032
1959
|
var l = function (p0) {
|
|
2033
|
-
return $boundThis.
|
|
1960
|
+
return $boundThis.d4d(p0);
|
|
2034
1961
|
};
|
|
2035
1962
|
l.callableName = 'executeWrapping';
|
|
2036
1963
|
return l;
|
|
2037
1964
|
}
|
|
2038
1965
|
function StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation) {
|
|
2039
|
-
this.
|
|
1966
|
+
this.n4g_1 = this$0;
|
|
2040
1967
|
CoroutineImpl.call(this, resultContinuation);
|
|
2041
1968
|
}
|
|
2042
|
-
StateRuleSelection$behaveTimed$slambda.
|
|
2043
|
-
var tmp = this.
|
|
2044
|
-
tmp.
|
|
2045
|
-
tmp.
|
|
2046
|
-
return tmp.
|
|
1969
|
+
protoOf(StateRuleSelection$behaveTimed$slambda).b4d = function ($this$sequence, $completion) {
|
|
1970
|
+
var tmp = this.c4d($this$sequence, $completion);
|
|
1971
|
+
tmp.ci_1 = Unit_getInstance();
|
|
1972
|
+
tmp.di_1 = null;
|
|
1973
|
+
return tmp.ii();
|
|
2047
1974
|
};
|
|
2048
|
-
StateRuleSelection$behaveTimed$slambda.
|
|
2049
|
-
return this.
|
|
1975
|
+
protoOf(StateRuleSelection$behaveTimed$slambda).ui = function (p1, $completion) {
|
|
1976
|
+
return this.b4d(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2050
1977
|
};
|
|
2051
|
-
StateRuleSelection$behaveTimed$slambda.
|
|
2052
|
-
var suspendResult = this.
|
|
1978
|
+
protoOf(StateRuleSelection$behaveTimed$slambda).ii = function () {
|
|
1979
|
+
var suspendResult = this.ci_1;
|
|
2053
1980
|
$sm: do
|
|
2054
1981
|
try {
|
|
2055
|
-
var tmp = this.
|
|
1982
|
+
var tmp = this.ai_1;
|
|
2056
1983
|
switch (tmp) {
|
|
2057
1984
|
case 0:
|
|
2058
|
-
this.
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2061
|
-
this.
|
|
2062
|
-
if (none(this.
|
|
2063
|
-
this.
|
|
2064
|
-
suspendResult = this.
|
|
1985
|
+
this.bi_1 = 12;
|
|
1986
|
+
this.p4g_1 = this.n4g_1.l4h_1.v1u();
|
|
1987
|
+
this.q4g_1 = retrieveRulesMatching(this.n4g_1.l4h_1.context, Companion_getInstance_22(), this.p4g_1);
|
|
1988
|
+
this.r4g_1 = moreThanOne(this.q4g_1);
|
|
1989
|
+
if (none(this.q4g_1)) {
|
|
1990
|
+
this.ai_1 = 10;
|
|
1991
|
+
suspendResult = this.o4g_1.d5(stateEndFalse(this.n4g_1, VOID, []), this);
|
|
2065
1992
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2066
1993
|
return suspendResult;
|
|
2067
1994
|
}
|
|
2068
1995
|
continue $sm;
|
|
2069
1996
|
} else {
|
|
2070
1997
|
var tmp_0 = this;
|
|
2071
|
-
var tmp0_with = this.
|
|
2072
|
-
var tmp_1 = orderWithStrategy(this.
|
|
2073
|
-
tmp_0.
|
|
1998
|
+
var tmp0_with = this.n4g_1.l4h_1.context;
|
|
1999
|
+
var tmp_1 = orderWithStrategy(this.q4g_1, tmp0_with, SolverStrategies$clauseChoiceStrategy$ref(tmp0_with.t4a_1));
|
|
2000
|
+
tmp_0.s4g_1 = map(tmp_1, StateRuleSelection$behaveTimed$slambda$lambda);
|
|
2074
2001
|
var tmp_2 = this;
|
|
2075
|
-
tmp_2.
|
|
2076
|
-
this.
|
|
2002
|
+
tmp_2.t4g_1 = this.s4g_1.j();
|
|
2003
|
+
this.ai_1 = 1;
|
|
2077
2004
|
continue $sm;
|
|
2078
2005
|
}
|
|
2079
2006
|
|
|
2080
2007
|
break;
|
|
2081
2008
|
case 1:
|
|
2082
|
-
if (!this.
|
|
2083
|
-
this.
|
|
2009
|
+
if (!this.t4g_1.m()) {
|
|
2010
|
+
this.ai_1 = 9;
|
|
2084
2011
|
continue $sm;
|
|
2085
2012
|
}
|
|
2086
2013
|
|
|
2087
2014
|
var tmp_3 = this;
|
|
2088
|
-
tmp_3.
|
|
2015
|
+
tmp_3.u4g_1 = this.t4g_1.n();
|
|
2089
2016
|
var tmp_4 = this;
|
|
2090
|
-
tmp_4.
|
|
2091
|
-
this.
|
|
2017
|
+
tmp_4.v4g_1 = this.t4g_1.m();
|
|
2018
|
+
this.w4g_1 = this.n4g_1.n5().h4a_1.mgu(this.p4g_1, this.u4g_1.sx());
|
|
2092
2019
|
var tmp_5 = this;
|
|
2093
|
-
var tmp_6 = this.
|
|
2094
|
-
tmp_5.
|
|
2020
|
+
var tmp_6 = this.u4g_1.tx().applySubstitution(this.w4g_1);
|
|
2021
|
+
tmp_5.x4g_1 = isInterface(tmp_6, Struct) ? tmp_6 : THROW_CCE();
|
|
2095
2022
|
var tmp_7 = this;
|
|
2096
|
-
var tmp0_$receiver = this.
|
|
2023
|
+
var tmp0_$receiver = this.n4g_1.l4h_1;
|
|
2097
2024
|
var tmp1_requestIssuingInstant = currentTimeInstant();
|
|
2098
|
-
tmp_7.
|
|
2025
|
+
tmp_7.y4g_1 = newSolveRequest(tmp0_$receiver, this.x4g_1, this.w4g_1, VOID, VOID, tmp1_requestIssuingInstant, this.r4g_1);
|
|
2099
2026
|
var tmp_8 = this;
|
|
2100
|
-
tmp_8.
|
|
2101
|
-
this.
|
|
2102
|
-
suspendResult = this.
|
|
2027
|
+
tmp_8.z4g_1 = new StateInit(initializeForSubRuleScope(this.y4g_1, Companion_getInstance_22()));
|
|
2028
|
+
this.ai_1 = 2;
|
|
2029
|
+
suspendResult = this.o4g_1.d5(asAlreadyExecuted(this.z4g_1), this);
|
|
2103
2030
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2104
2031
|
return suspendResult;
|
|
2105
2032
|
}
|
|
2106
2033
|
|
|
2107
2034
|
continue $sm;
|
|
2108
2035
|
case 2:
|
|
2109
|
-
this.
|
|
2110
|
-
this.
|
|
2036
|
+
this.a4h_1 = this.z4g_1;
|
|
2037
|
+
this.b4h_1 = false;
|
|
2111
2038
|
var tmp_9 = this;
|
|
2112
|
-
tmp_9.
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2039
|
+
tmp_9.c4h_1 = this.n4g_1.m4h_1(this.a4h_1);
|
|
2040
|
+
this.d4h_1 = this.c4h_1.j();
|
|
2041
|
+
this.ai_1 = 3;
|
|
2115
2042
|
continue $sm;
|
|
2116
2043
|
case 3:
|
|
2117
|
-
if (!this.
|
|
2118
|
-
this.
|
|
2044
|
+
if (!this.d4h_1.m()) {
|
|
2045
|
+
this.ai_1 = 8;
|
|
2119
2046
|
continue $sm;
|
|
2120
2047
|
}
|
|
2121
2048
|
|
|
2122
|
-
this.
|
|
2123
|
-
this.
|
|
2049
|
+
this.e4h_1 = this.d4h_1.n();
|
|
2050
|
+
this.f4h_1 = this.e4h_1.l4c_1;
|
|
2124
2051
|
var tmp_10;
|
|
2125
|
-
var tmp_11 = this.
|
|
2052
|
+
var tmp_11 = this.f4h_1;
|
|
2126
2053
|
if (isInterface(tmp_11, FinalState)) {
|
|
2127
|
-
tmp_10 = this.
|
|
2054
|
+
tmp_10 = this.f4h_1.c4a().solution.v1u().equals(this.y4g_1.v1u());
|
|
2128
2055
|
} else {
|
|
2129
2056
|
tmp_10 = false;
|
|
2130
2057
|
}
|
|
2131
2058
|
|
|
2132
2059
|
if (tmp_10) {
|
|
2133
|
-
if (shouldCutExecuteInRuleSelection(this.
|
|
2134
|
-
this.
|
|
2060
|
+
if (shouldCutExecuteInRuleSelection(this.f4h_1.c4a().sideEffectManager)) {
|
|
2061
|
+
this.b4h_1 = true;
|
|
2135
2062
|
}
|
|
2136
2063
|
var tmp_12;
|
|
2137
2064
|
var tmp_13;
|
|
2138
|
-
var tmp_14 = this.
|
|
2065
|
+
var tmp_14 = this.f4h_1;
|
|
2139
2066
|
if (!(tmp_14 instanceof False)) {
|
|
2140
2067
|
tmp_13 = true;
|
|
2141
2068
|
} else {
|
|
2142
|
-
tmp_13 = !this.
|
|
2069
|
+
tmp_13 = !this.v4g_1;
|
|
2143
2070
|
}
|
|
2144
2071
|
if (tmp_13) {
|
|
2145
2072
|
tmp_12 = true;
|
|
2146
2073
|
} else {
|
|
2147
|
-
tmp_12 = this.
|
|
2074
|
+
tmp_12 = this.b4h_1;
|
|
2148
2075
|
}
|
|
2149
2076
|
if (tmp_12) {
|
|
2150
|
-
this.
|
|
2151
|
-
this.
|
|
2152
|
-
|
|
2153
|
-
var tmp_16 = removeSubstitutionFor(this.k4j_1.h4c().solution, Companion_getInstance_19(), this.z4i_1.ew());
|
|
2154
|
-
suspendResult = this.t4i_1.z4(stateEnd(this.s4i_1, tmp_15.l2j(tmp_16, this.l4j_1, null, 4, null)), this);
|
|
2077
|
+
this.g4h_1 = extendParentScopeWith(this.f4h_1.c4a().sideEffectManager, this.n4g_1.l4h_1.context.u4a_1);
|
|
2078
|
+
this.ai_1 = 5;
|
|
2079
|
+
suspendResult = this.o4g_1.d5(stateEnd(this.n4g_1, this.f4h_1.c4a().i2h(removeSubstitutionFor(this.f4h_1.c4a().solution, Companion_getInstance_22(), this.u4g_1.yv()), this.g4h_1)), this);
|
|
2155
2080
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2081
|
return suspendResult;
|
|
2157
2082
|
}
|
|
2158
2083
|
continue $sm;
|
|
2159
2084
|
} else {
|
|
2160
|
-
this.
|
|
2085
|
+
this.ai_1 = 6;
|
|
2161
2086
|
continue $sm;
|
|
2162
2087
|
}
|
|
2163
2088
|
} else {
|
|
2164
|
-
this.
|
|
2165
|
-
suspendResult = this.
|
|
2089
|
+
this.ai_1 = 4;
|
|
2090
|
+
suspendResult = this.o4g_1.d5(this.e4h_1, this);
|
|
2166
2091
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2167
2092
|
return suspendResult;
|
|
2168
2093
|
}
|
|
@@ -2171,77 +2096,78 @@
|
|
|
2171
2096
|
|
|
2172
2097
|
break;
|
|
2173
2098
|
case 4:
|
|
2174
|
-
this.
|
|
2099
|
+
this.ai_1 = 7;
|
|
2175
2100
|
continue $sm;
|
|
2176
2101
|
case 5:
|
|
2177
|
-
this.
|
|
2102
|
+
this.ai_1 = 6;
|
|
2178
2103
|
continue $sm;
|
|
2179
2104
|
case 6:
|
|
2180
|
-
var
|
|
2181
|
-
if (
|
|
2105
|
+
var tmp_15 = this.f4h_1;
|
|
2106
|
+
if (tmp_15 instanceof Halt_0)
|
|
2182
2107
|
return Unit_getInstance();
|
|
2183
|
-
this.
|
|
2108
|
+
this.ai_1 = 7;
|
|
2184
2109
|
continue $sm;
|
|
2185
2110
|
case 7:
|
|
2186
|
-
this.
|
|
2111
|
+
this.ai_1 = 3;
|
|
2187
2112
|
continue $sm;
|
|
2188
2113
|
case 8:
|
|
2189
|
-
if (this.
|
|
2114
|
+
if (this.b4h_1)
|
|
2190
2115
|
return Unit_getInstance();
|
|
2191
|
-
this.
|
|
2116
|
+
this.ai_1 = 1;
|
|
2192
2117
|
continue $sm;
|
|
2193
2118
|
case 9:
|
|
2194
|
-
this.
|
|
2119
|
+
this.ai_1 = 11;
|
|
2195
2120
|
continue $sm;
|
|
2196
2121
|
case 10:
|
|
2197
|
-
this.
|
|
2122
|
+
this.ai_1 = 11;
|
|
2198
2123
|
continue $sm;
|
|
2199
2124
|
case 11:
|
|
2200
2125
|
return Unit_getInstance();
|
|
2201
2126
|
case 12:
|
|
2202
|
-
throw this.
|
|
2127
|
+
throw this.di_1;
|
|
2203
2128
|
}
|
|
2204
2129
|
} catch ($p) {
|
|
2205
|
-
|
|
2206
|
-
|
|
2130
|
+
var e = $p;
|
|
2131
|
+
if (this.bi_1 === 12) {
|
|
2132
|
+
throw e;
|
|
2207
2133
|
} else {
|
|
2208
|
-
this.
|
|
2209
|
-
this.
|
|
2134
|
+
this.ai_1 = this.bi_1;
|
|
2135
|
+
this.di_1 = e;
|
|
2210
2136
|
}
|
|
2211
2137
|
}
|
|
2212
2138
|
while (true);
|
|
2213
2139
|
};
|
|
2214
|
-
StateRuleSelection$behaveTimed$slambda.
|
|
2215
|
-
var i = new StateRuleSelection$behaveTimed$slambda(this.
|
|
2216
|
-
i.
|
|
2140
|
+
protoOf(StateRuleSelection$behaveTimed$slambda).c4d = function ($this$sequence, completion) {
|
|
2141
|
+
var i = new StateRuleSelection$behaveTimed$slambda(this.n4g_1, completion);
|
|
2142
|
+
i.o4g_1 = $this$sequence;
|
|
2217
2143
|
return i;
|
|
2218
2144
|
};
|
|
2219
2145
|
function StateRuleSelection$behaveTimed$slambda_0(this$0, resultContinuation) {
|
|
2220
2146
|
var i = new StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation);
|
|
2221
|
-
var l = function ($this$sequence, $
|
|
2222
|
-
return i.
|
|
2147
|
+
var l = function ($this$sequence, $completion) {
|
|
2148
|
+
return i.b4d($this$sequence, $completion);
|
|
2223
2149
|
};
|
|
2224
2150
|
l.$arity = 1;
|
|
2225
2151
|
return l;
|
|
2226
2152
|
}
|
|
2227
2153
|
function StateRuleSelection(solve) {
|
|
2228
|
-
|
|
2154
|
+
Companion_getInstance_22();
|
|
2229
2155
|
AbstractTimedState.call(this, solve);
|
|
2230
|
-
this.
|
|
2156
|
+
this.l4h_1 = solve;
|
|
2231
2157
|
var tmp = this;
|
|
2232
|
-
tmp.
|
|
2158
|
+
tmp.m4h_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_getInstance());
|
|
2233
2159
|
}
|
|
2234
|
-
StateRuleSelection.
|
|
2235
|
-
return this.
|
|
2160
|
+
protoOf(StateRuleSelection).c4a = function () {
|
|
2161
|
+
return this.l4h_1;
|
|
2236
2162
|
};
|
|
2237
|
-
StateRuleSelection.
|
|
2163
|
+
protoOf(StateRuleSelection).i4d = function () {
|
|
2238
2164
|
return sequence(StateRuleSelection$behaveTimed$slambda_0(this, null));
|
|
2239
2165
|
};
|
|
2240
2166
|
function DefaultBuiltins() {
|
|
2241
2167
|
DefaultBuiltins_instance = this;
|
|
2242
2168
|
ExtensionLibrary.call(this, CommonBuiltins_getInstance());
|
|
2243
2169
|
}
|
|
2244
|
-
DefaultBuiltins.
|
|
2170
|
+
protoOf(DefaultBuiltins).d2d = function () {
|
|
2245
2171
|
return listOf_0([Call_getInstance(), Catch_getInstance(), Conjunction_getInstance(), Cut_getInstance(), Throw_getInstance(), Not_getInstance()]);
|
|
2246
2172
|
};
|
|
2247
2173
|
var DefaultBuiltins_instance;
|
|
@@ -2252,38 +2178,33 @@
|
|
|
2252
2178
|
}
|
|
2253
2179
|
function Call$uncheckedImplementation$lambda($request) {
|
|
2254
2180
|
return function (it) {
|
|
2255
|
-
|
|
2256
|
-
return replyWith($request, it.l2j(null, tmp, null, 5, null));
|
|
2181
|
+
return replyWith($request, it.i2h(VOID, resetCutWorkChanges(it.sideEffectManager, $request.context.u4a_1)));
|
|
2257
2182
|
};
|
|
2258
2183
|
}
|
|
2259
2184
|
function Call() {
|
|
2260
2185
|
Call_instance = this;
|
|
2261
|
-
PrimitiveWrapper_init_$Init$('call', 1,
|
|
2186
|
+
PrimitiveWrapper_init_$Init$('call', 1, VOID, this);
|
|
2262
2187
|
}
|
|
2263
|
-
Call.
|
|
2188
|
+
protoOf(Call).u4h = function (request) {
|
|
2264
2189
|
var tmp$ret$1;
|
|
2265
2190
|
// Inline function 'kotlin.let' call
|
|
2266
|
-
var tmp0_let = single(
|
|
2191
|
+
var tmp0_let = single(Companion_getInstance_14().d2e(request).arguments);
|
|
2267
2192
|
// Inline function 'kotlin.contracts.contract' call
|
|
2268
2193
|
var tmp$ret$0;
|
|
2269
2194
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Call.uncheckedImplementation.<anonymous>' call
|
|
2270
2195
|
var tmp;
|
|
2271
2196
|
if (isWellFormed(tmp0_let)) {
|
|
2272
|
-
var tmp_0 =
|
|
2273
|
-
|
|
2274
|
-
var tmp_2 = new Long(0, 0);
|
|
2275
|
-
var tmp_3 = tmp_0.k4c(newSolveRequest$default(request, tmp_1, null, null, null, tmp_2, false, 62, null));
|
|
2276
|
-
tmp = map(tmp_3, Call$uncheckedImplementation$lambda(request));
|
|
2197
|
+
var tmp_0 = Companion_getInstance_19().f4a(newSolveRequest(request, prepareForExecutionAsGoal(tmp0_let)));
|
|
2198
|
+
tmp = map(tmp_0, Call$uncheckedImplementation$lambda(request));
|
|
2277
2199
|
} else {
|
|
2278
|
-
|
|
2279
|
-
throw TypeError_init_$Create$('call/1 argument is neither a Variable nor a well-formed goal', null, request.context, tmp_4, tmp0_let, null, 34, null);
|
|
2200
|
+
throw TypeError_init_$Create$('call/1 argument is neither a Variable nor a well-formed goal', VOID, request.context, Expected_CALLABLE_getInstance(), tmp0_let);
|
|
2280
2201
|
}
|
|
2281
2202
|
tmp$ret$0 = tmp;
|
|
2282
2203
|
tmp$ret$1 = tmp$ret$0;
|
|
2283
2204
|
return tmp$ret$1;
|
|
2284
2205
|
};
|
|
2285
|
-
Call.
|
|
2286
|
-
return this.
|
|
2206
|
+
protoOf(Call).p2e = function (request) {
|
|
2207
|
+
return this.u4h(request);
|
|
2287
2208
|
};
|
|
2288
2209
|
var Call_instance;
|
|
2289
2210
|
function Call_getInstance() {
|
|
@@ -2297,7 +2218,7 @@
|
|
|
2297
2218
|
};
|
|
2298
2219
|
}
|
|
2299
2220
|
function call($this, goal) {
|
|
2300
|
-
var tmp =
|
|
2221
|
+
var tmp = Companion_getInstance_13();
|
|
2301
2222
|
var tmp$ret$0;
|
|
2302
2223
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2303
2224
|
var tmp0__get_functor__thl4dk = Call_getInstance();
|
|
@@ -2305,66 +2226,55 @@
|
|
|
2305
2226
|
return tmp.of(tmp$ret$0, [goal]);
|
|
2306
2227
|
}
|
|
2307
2228
|
function ensureNoMoreSelectableCatch(_this__u8e3s4, $this, notSelectableContext) {
|
|
2308
|
-
|
|
2309
|
-
var tmp_0 = new Long(0, 0);
|
|
2310
|
-
var tmp_1 = _this__u8e3s4.context.v4d(null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, _this__u8e3s4.context.z4c_1.s4d(notSelectableContext), 8191, null);
|
|
2311
|
-
var tmp_2 = new Long(0, 0);
|
|
2312
|
-
return _this__u8e3s4.g2j(null, null, tmp_1, tmp_2, new Long(0, 0), 27, null);
|
|
2229
|
+
return _this__u8e3s4.d2h(VOID, VOID, _this__u8e3s4.context.q4b(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.context.u4a_1.n4b(notSelectableContext)));
|
|
2313
2230
|
}
|
|
2314
2231
|
function Catch$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2315
|
-
this.
|
|
2232
|
+
this.d4i_1 = $request;
|
|
2316
2233
|
CoroutineImpl.call(this, resultContinuation);
|
|
2317
2234
|
}
|
|
2318
|
-
Catch$uncheckedImplementation$slambda.
|
|
2319
|
-
var tmp = this.
|
|
2320
|
-
tmp.
|
|
2321
|
-
tmp.
|
|
2322
|
-
return tmp.
|
|
2235
|
+
protoOf(Catch$uncheckedImplementation$slambda).y2q = function ($this$sequence, $completion) {
|
|
2236
|
+
var tmp = this.z2q($this$sequence, $completion);
|
|
2237
|
+
tmp.ci_1 = Unit_getInstance();
|
|
2238
|
+
tmp.di_1 = null;
|
|
2239
|
+
return tmp.ii();
|
|
2323
2240
|
};
|
|
2324
|
-
Catch$uncheckedImplementation$slambda.
|
|
2325
|
-
return this.
|
|
2241
|
+
protoOf(Catch$uncheckedImplementation$slambda).ui = function (p1, $completion) {
|
|
2242
|
+
return this.y2q(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2326
2243
|
};
|
|
2327
|
-
Catch$uncheckedImplementation$slambda.
|
|
2328
|
-
var suspendResult = this.
|
|
2244
|
+
protoOf(Catch$uncheckedImplementation$slambda).ii = function () {
|
|
2245
|
+
var suspendResult = this.ci_1;
|
|
2329
2246
|
$sm: do
|
|
2330
2247
|
try {
|
|
2331
|
-
var tmp = this.
|
|
2248
|
+
var tmp = this.ai_1;
|
|
2332
2249
|
switch (tmp) {
|
|
2333
2250
|
case 0:
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2251
|
+
this.bi_1 = 6;
|
|
2252
|
+
this.f4i_1 = first_0(this.d4i_1.arguments);
|
|
2336
2253
|
var tmp_0 = this;
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
tmp_0.l4k_1 = tmp_1.k4c(newSolveRequest$default(this.i4k_1, tmp_2, null, null, null, tmp_3, false, 62, null));
|
|
2341
|
-
this.m4k_1 = this.l4k_1.j();
|
|
2342
|
-
this.zh_1 = 1;
|
|
2254
|
+
tmp_0.g4i_1 = Companion_getInstance_19().f4a(newSolveRequest(this.d4i_1, call(Catch_getInstance(), this.f4i_1)));
|
|
2255
|
+
this.h4i_1 = this.g4i_1.j();
|
|
2256
|
+
this.ai_1 = 1;
|
|
2343
2257
|
continue $sm;
|
|
2344
2258
|
case 1:
|
|
2345
|
-
if (!this.
|
|
2346
|
-
this.
|
|
2259
|
+
if (!this.h4i_1.m()) {
|
|
2260
|
+
this.ai_1 = 5;
|
|
2347
2261
|
continue $sm;
|
|
2348
2262
|
}
|
|
2349
2263
|
|
|
2350
|
-
this.
|
|
2351
|
-
if (isSelectedThrowCatch(this.
|
|
2352
|
-
this.
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
var
|
|
2356
|
-
|
|
2357
|
-
tmp_4.p4k_1 = ensureNoMoreSelectableCatch(newSolveRequest$default(this.i4k_1, tmp_5, tmp_6, null, null, tmp_7, false, 44, null), Catch_getInstance(), this.i4k_1.context);
|
|
2358
|
-
this.zh_1 = 3;
|
|
2359
|
-
var tmp_8 = Companion_getInstance_16().k4c(this.p4k_1);
|
|
2360
|
-
suspendResult = this.j4k_1.c5(map(tmp_8, Catch$uncheckedImplementation$slambda$lambda(this.i4k_1)), this);
|
|
2264
|
+
this.i4i_1 = this.h4i_1.n();
|
|
2265
|
+
if (isSelectedThrowCatch(this.i4i_1.sideEffectManager, this.d4i_1.context)) {
|
|
2266
|
+
this.j4i_1 = last(this.d4i_1.arguments).applySubstitution(this.i4i_1.solution.r1t());
|
|
2267
|
+
this.k4i_1 = ensureNoMoreSelectableCatch(newSolveRequest(this.d4i_1, call(Catch_getInstance(), this.j4i_1), this.i4i_1.solution.r1t().minus(this.d4i_1.context.q4a_1), VOID, VOID, currentTimeInstant()), Catch_getInstance(), this.d4i_1.context);
|
|
2268
|
+
this.ai_1 = 3;
|
|
2269
|
+
var tmp_1 = Companion_getInstance_19().f4a(this.k4i_1);
|
|
2270
|
+
suspendResult = this.e4i_1.g5(map(tmp_1, Catch$uncheckedImplementation$slambda$lambda(this.d4i_1)), this);
|
|
2361
2271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2362
2272
|
return suspendResult;
|
|
2363
2273
|
}
|
|
2364
2274
|
continue $sm;
|
|
2365
2275
|
} else {
|
|
2366
|
-
this.
|
|
2367
|
-
suspendResult = this.
|
|
2276
|
+
this.ai_1 = 2;
|
|
2277
|
+
suspendResult = this.e4i_1.d5(replyWith(this.d4i_1, this.i4i_1), this);
|
|
2368
2278
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2369
2279
|
return suspendResult;
|
|
2370
2280
|
}
|
|
@@ -2373,51 +2283,52 @@
|
|
|
2373
2283
|
|
|
2374
2284
|
break;
|
|
2375
2285
|
case 2:
|
|
2376
|
-
this.
|
|
2286
|
+
this.ai_1 = 4;
|
|
2377
2287
|
continue $sm;
|
|
2378
2288
|
case 3:
|
|
2379
|
-
this.
|
|
2289
|
+
this.ai_1 = 4;
|
|
2380
2290
|
continue $sm;
|
|
2381
2291
|
case 4:
|
|
2382
|
-
this.
|
|
2292
|
+
this.ai_1 = 1;
|
|
2383
2293
|
continue $sm;
|
|
2384
2294
|
case 5:
|
|
2385
2295
|
return Unit_getInstance();
|
|
2386
2296
|
case 6:
|
|
2387
|
-
throw this.
|
|
2297
|
+
throw this.di_1;
|
|
2388
2298
|
}
|
|
2389
2299
|
} catch ($p) {
|
|
2390
|
-
|
|
2391
|
-
|
|
2300
|
+
var e = $p;
|
|
2301
|
+
if (this.bi_1 === 6) {
|
|
2302
|
+
throw e;
|
|
2392
2303
|
} else {
|
|
2393
|
-
this.
|
|
2394
|
-
this.
|
|
2304
|
+
this.ai_1 = this.bi_1;
|
|
2305
|
+
this.di_1 = e;
|
|
2395
2306
|
}
|
|
2396
2307
|
}
|
|
2397
2308
|
while (true);
|
|
2398
2309
|
};
|
|
2399
|
-
Catch$uncheckedImplementation$slambda.
|
|
2400
|
-
var i = new Catch$uncheckedImplementation$slambda(this.
|
|
2401
|
-
i.
|
|
2310
|
+
protoOf(Catch$uncheckedImplementation$slambda).z2q = function ($this$sequence, completion) {
|
|
2311
|
+
var i = new Catch$uncheckedImplementation$slambda(this.d4i_1, completion);
|
|
2312
|
+
i.e4i_1 = $this$sequence;
|
|
2402
2313
|
return i;
|
|
2403
2314
|
};
|
|
2404
2315
|
function Catch$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2405
2316
|
var i = new Catch$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2406
|
-
var l = function ($this$sequence, $
|
|
2407
|
-
return i.
|
|
2317
|
+
var l = function ($this$sequence, $completion) {
|
|
2318
|
+
return i.y2q($this$sequence, $completion);
|
|
2408
2319
|
};
|
|
2409
2320
|
l.$arity = 1;
|
|
2410
2321
|
return l;
|
|
2411
2322
|
}
|
|
2412
2323
|
function Catch() {
|
|
2413
2324
|
Catch_instance = this;
|
|
2414
|
-
PrimitiveWrapper_init_$Init$('catch', 3,
|
|
2325
|
+
PrimitiveWrapper_init_$Init$('catch', 3, VOID, this);
|
|
2415
2326
|
}
|
|
2416
|
-
Catch.
|
|
2327
|
+
protoOf(Catch).u4h = function (request) {
|
|
2417
2328
|
return sequence(Catch$uncheckedImplementation$slambda_0(request, null));
|
|
2418
2329
|
};
|
|
2419
|
-
Catch.
|
|
2420
|
-
return this.
|
|
2330
|
+
protoOf(Catch).p2e = function (request) {
|
|
2331
|
+
return this.u4h(request);
|
|
2421
2332
|
};
|
|
2422
2333
|
var Catch_instance;
|
|
2423
2334
|
function Catch_getInstance() {
|
|
@@ -2427,43 +2338,43 @@
|
|
|
2427
2338
|
}
|
|
2428
2339
|
function SolverStrategies$predicationChoiceStrategy$ref($boundThis) {
|
|
2429
2340
|
var l = function (p0, p1) {
|
|
2430
|
-
return $boundThis.
|
|
2341
|
+
return $boundThis.y49(p0, p1);
|
|
2431
2342
|
};
|
|
2432
2343
|
l.callableName = 'predicationChoiceStrategy';
|
|
2433
2344
|
return l;
|
|
2434
2345
|
}
|
|
2435
|
-
function solveConjunctionGoals(_this__u8e3s4, $this, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $
|
|
2436
|
-
var tmp = new $solveConjunctionGoalsCOROUTINE$0($this, _this__u8e3s4, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $
|
|
2437
|
-
tmp.
|
|
2438
|
-
tmp.
|
|
2439
|
-
return tmp.
|
|
2346
|
+
function solveConjunctionGoals(_this__u8e3s4, $this, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $completion) {
|
|
2347
|
+
var tmp = new $solveConjunctionGoalsCOROUTINE$0($this, _this__u8e3s4, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $completion);
|
|
2348
|
+
tmp.ci_1 = Unit_getInstance();
|
|
2349
|
+
tmp.di_1 = null;
|
|
2350
|
+
return tmp.ii();
|
|
2440
2351
|
}
|
|
2441
2352
|
function Conjunction$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2442
|
-
this.
|
|
2353
|
+
this.u4j_1 = $request;
|
|
2443
2354
|
CoroutineImpl.call(this, resultContinuation);
|
|
2444
2355
|
}
|
|
2445
|
-
Conjunction$uncheckedImplementation$slambda.
|
|
2446
|
-
var tmp = this.
|
|
2447
|
-
tmp.
|
|
2448
|
-
tmp.
|
|
2449
|
-
return tmp.
|
|
2356
|
+
protoOf(Conjunction$uncheckedImplementation$slambda).y2q = function ($this$sequence, $completion) {
|
|
2357
|
+
var tmp = this.z2q($this$sequence, $completion);
|
|
2358
|
+
tmp.ci_1 = Unit_getInstance();
|
|
2359
|
+
tmp.di_1 = null;
|
|
2360
|
+
return tmp.ii();
|
|
2450
2361
|
};
|
|
2451
|
-
Conjunction$uncheckedImplementation$slambda.
|
|
2452
|
-
return this.
|
|
2362
|
+
protoOf(Conjunction$uncheckedImplementation$slambda).ui = function (p1, $completion) {
|
|
2363
|
+
return this.y2q(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2453
2364
|
};
|
|
2454
|
-
Conjunction$uncheckedImplementation$slambda.
|
|
2455
|
-
var suspendResult = this.
|
|
2365
|
+
protoOf(Conjunction$uncheckedImplementation$slambda).ii = function () {
|
|
2366
|
+
var suspendResult = this.ci_1;
|
|
2456
2367
|
$sm: do
|
|
2457
2368
|
try {
|
|
2458
|
-
var tmp = this.
|
|
2369
|
+
var tmp = this.ai_1;
|
|
2459
2370
|
switch (tmp) {
|
|
2460
2371
|
case 0:
|
|
2461
|
-
this.
|
|
2372
|
+
this.bi_1 = 2;
|
|
2462
2373
|
var tmp_0 = this;
|
|
2463
|
-
var tmp_1 = this.
|
|
2464
|
-
tmp_0.
|
|
2465
|
-
this.
|
|
2466
|
-
suspendResult = solveConjunctionGoals(this.
|
|
2374
|
+
var tmp_1 = this.u4j_1.v1u().castToTuple().au();
|
|
2375
|
+
tmp_0.w4j_1 = toList(orderWithStrategy(tmp_1, this.u4j_1.context, SolverStrategies$predicationChoiceStrategy$ref(this.u4j_1.context.t4a_1)));
|
|
2376
|
+
this.ai_1 = 1;
|
|
2377
|
+
suspendResult = solveConjunctionGoals(this.v4j_1, Conjunction_getInstance(), this.u4j_1, this.w4j_1, this.u4j_1.context, Companion_getInstance_9().empty(), emptyList(), this.u4j_1.context.u4a_1, false, this);
|
|
2467
2378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2468
2379
|
return suspendResult;
|
|
2469
2380
|
}
|
|
@@ -2473,202 +2384,202 @@
|
|
|
2473
2384
|
;
|
|
2474
2385
|
return Unit_getInstance();
|
|
2475
2386
|
case 2:
|
|
2476
|
-
throw this.
|
|
2387
|
+
throw this.di_1;
|
|
2477
2388
|
}
|
|
2478
2389
|
} catch ($p) {
|
|
2479
|
-
|
|
2480
|
-
|
|
2390
|
+
var e = $p;
|
|
2391
|
+
if (this.bi_1 === 2) {
|
|
2392
|
+
throw e;
|
|
2481
2393
|
} else {
|
|
2482
|
-
this.
|
|
2483
|
-
this.
|
|
2394
|
+
this.ai_1 = this.bi_1;
|
|
2395
|
+
this.di_1 = e;
|
|
2484
2396
|
}
|
|
2485
2397
|
}
|
|
2486
2398
|
while (true);
|
|
2487
2399
|
};
|
|
2488
|
-
Conjunction$uncheckedImplementation$slambda.
|
|
2489
|
-
var i = new Conjunction$uncheckedImplementation$slambda(this.
|
|
2490
|
-
i.
|
|
2400
|
+
protoOf(Conjunction$uncheckedImplementation$slambda).z2q = function ($this$sequence, completion) {
|
|
2401
|
+
var i = new Conjunction$uncheckedImplementation$slambda(this.u4j_1, completion);
|
|
2402
|
+
i.v4j_1 = $this$sequence;
|
|
2491
2403
|
return i;
|
|
2492
2404
|
};
|
|
2493
2405
|
function Conjunction$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2494
2406
|
var i = new Conjunction$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2495
|
-
var l = function ($this$sequence, $
|
|
2496
|
-
return i.
|
|
2407
|
+
var l = function ($this$sequence, $completion) {
|
|
2408
|
+
return i.y2q($this$sequence, $completion);
|
|
2497
2409
|
};
|
|
2498
2410
|
l.$arity = 1;
|
|
2499
2411
|
return l;
|
|
2500
2412
|
}
|
|
2501
2413
|
function $solveConjunctionGoalsCOROUTINE$0(_this__u8e3s4, _this__u8e3s4_0, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, resultContinuation) {
|
|
2502
2414
|
CoroutineImpl.call(this, resultContinuation);
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2512
|
-
}
|
|
2513
|
-
$solveConjunctionGoalsCOROUTINE$0.
|
|
2514
|
-
var suspendResult = this.
|
|
2415
|
+
this.u4i_1 = _this__u8e3s4;
|
|
2416
|
+
this.v4i_1 = _this__u8e3s4_0;
|
|
2417
|
+
this.w4i_1 = mainRequest;
|
|
2418
|
+
this.x4i_1 = goals;
|
|
2419
|
+
this.y4i_1 = toPropagateContext;
|
|
2420
|
+
this.z4i_1 = accumulatedSubstitutions;
|
|
2421
|
+
this.a4j_1 = accumulatedSideEffects;
|
|
2422
|
+
this.b4j_1 = previousResponseSideEffectManager;
|
|
2423
|
+
this.c4j_1 = previousGoalsHadAlternatives;
|
|
2424
|
+
}
|
|
2425
|
+
protoOf($solveConjunctionGoalsCOROUTINE$0).ii = function () {
|
|
2426
|
+
var suspendResult = this.ci_1;
|
|
2515
2427
|
$sm: do
|
|
2516
2428
|
try {
|
|
2517
|
-
var tmp = this.
|
|
2429
|
+
var tmp = this.ai_1;
|
|
2518
2430
|
switch (tmp) {
|
|
2519
2431
|
case 0:
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2432
|
+
this.bi_1 = 7;
|
|
2433
|
+
this.d4j_1 = prepareForExecutionAsGoal(first_1(this.x4i_1).applySubstitution(this.z4i_1));
|
|
2522
2434
|
var tmp_0 = this;
|
|
2523
|
-
var tmp0_elvis_lhs = this.
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
var
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
tmp_4.n4l_1 = this.m4l_1.j();
|
|
2533
|
-
this.zh_1 = 1;
|
|
2435
|
+
var tmp0_elvis_lhs = this.b4j_1;
|
|
2436
|
+
tmp_0.e4j_1 = newSolveRequest(this.w4i_1, this.d4j_1, this.z4i_1, this.y4i_1, tmp0_elvis_lhs == null ? this.w4i_1.context.u4a_1 : tmp0_elvis_lhs);
|
|
2437
|
+
this.f4j_1 = false;
|
|
2438
|
+
this.g4j_1 = emptyList();
|
|
2439
|
+
var tmp_1 = this;
|
|
2440
|
+
tmp_1.h4j_1 = Companion_getInstance_19().d4a(this.e4j_1);
|
|
2441
|
+
var tmp_2 = this;
|
|
2442
|
+
tmp_2.i4j_1 = this.h4j_1.j();
|
|
2443
|
+
this.ai_1 = 1;
|
|
2534
2444
|
continue $sm;
|
|
2535
2445
|
case 1:
|
|
2536
|
-
if (!this.
|
|
2537
|
-
this.
|
|
2446
|
+
if (!this.i4j_1.m()) {
|
|
2447
|
+
this.ai_1 = 6;
|
|
2538
2448
|
continue $sm;
|
|
2539
2449
|
}
|
|
2540
2450
|
|
|
2541
|
-
var
|
|
2542
|
-
|
|
2543
|
-
var
|
|
2544
|
-
|
|
2545
|
-
this.
|
|
2546
|
-
var
|
|
2451
|
+
var tmp_3 = this;
|
|
2452
|
+
tmp_3.j4j_1 = this.i4j_1.n();
|
|
2453
|
+
var tmp_4 = this;
|
|
2454
|
+
tmp_4.k4j_1 = this.i4j_1.m();
|
|
2455
|
+
this.l4j_1 = this.j4j_1.c4a();
|
|
2456
|
+
var tmp_5;
|
|
2547
2457
|
var tmp0__get_functor__thl4dk = Cut_getInstance();
|
|
2548
|
-
if (tmp0__get_functor__thl4dk.signature.name === this.
|
|
2549
|
-
|
|
2458
|
+
if (tmp0__get_functor__thl4dk.signature.name === this.d4j_1.wv()) {
|
|
2459
|
+
tmp_5 = true;
|
|
2550
2460
|
} else {
|
|
2551
|
-
var tmp0_safe_receiver = this.
|
|
2552
|
-
|
|
2461
|
+
var tmp0_safe_receiver = this.l4j_1.sideEffectManager;
|
|
2462
|
+
tmp_5 = (tmp0_safe_receiver == null ? null : shouldExecuteThrowCut(tmp0_safe_receiver)) === true;
|
|
2553
2463
|
}
|
|
2554
2464
|
|
|
2555
|
-
if (
|
|
2556
|
-
this.
|
|
2465
|
+
if (tmp_5) {
|
|
2466
|
+
this.f4j_1 = true;
|
|
2557
2467
|
}
|
|
2558
2468
|
|
|
2559
|
-
this.
|
|
2560
|
-
var
|
|
2561
|
-
var
|
|
2562
|
-
var tmp1_safe_receiver = this.
|
|
2469
|
+
this.g4j_1 = addWithNoDuplicates(this.g4j_1, this.l4j_1.sideEffects);
|
|
2470
|
+
var tmp_6;
|
|
2471
|
+
var tmp_7;
|
|
2472
|
+
var tmp1_safe_receiver = this.l4j_1.sideEffectManager;
|
|
2563
2473
|
if ((tmp1_safe_receiver == null ? null : shouldExecuteThrowCut(tmp1_safe_receiver)) === false) {
|
|
2564
|
-
var
|
|
2565
|
-
|
|
2474
|
+
var tmp_8 = this.l4j_1.solution;
|
|
2475
|
+
tmp_7 = isInterface(tmp_8, Yes);
|
|
2566
2476
|
} else {
|
|
2567
|
-
|
|
2477
|
+
tmp_7 = false;
|
|
2568
2478
|
}
|
|
2569
2479
|
|
|
2570
|
-
if (
|
|
2571
|
-
|
|
2480
|
+
if (tmp_7) {
|
|
2481
|
+
tmp_6 = moreThanOne(asSequence(this.x4i_1));
|
|
2572
2482
|
} else {
|
|
2573
|
-
|
|
2483
|
+
tmp_6 = false;
|
|
2574
2484
|
}
|
|
2575
2485
|
|
|
2576
|
-
if (
|
|
2577
|
-
this.
|
|
2578
|
-
var
|
|
2579
|
-
var
|
|
2580
|
-
var
|
|
2581
|
-
var
|
|
2582
|
-
var
|
|
2583
|
-
var
|
|
2584
|
-
suspendResult = solveConjunctionGoals(this.
|
|
2486
|
+
if (tmp_6) {
|
|
2487
|
+
this.ai_1 = 4;
|
|
2488
|
+
var tmp_9 = Conjunction_getInstance();
|
|
2489
|
+
var tmp_10 = drop(this.x4i_1, 1);
|
|
2490
|
+
var tmp_11 = this.j4j_1.n5().v34(this.g4j_1);
|
|
2491
|
+
var tmp_12 = this.l4j_1.solution.r1t().minus(this.w4i_1.context.q4a_1);
|
|
2492
|
+
var tmp_13 = this.g4j_1;
|
|
2493
|
+
var tmp_14 = this.l4j_1.sideEffectManager;
|
|
2494
|
+
suspendResult = solveConjunctionGoals(this.v4i_1, tmp_9, this.w4i_1, tmp_10, tmp_11, tmp_12, tmp_13, tmp_14 instanceof SideEffectManagerImpl ? tmp_14 : null, this.c4j_1 ? true : this.k4j_1, this);
|
|
2585
2495
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2586
2496
|
return suspendResult;
|
|
2587
2497
|
}
|
|
2588
2498
|
continue $sm;
|
|
2589
2499
|
} else {
|
|
2590
|
-
var
|
|
2591
|
-
var
|
|
2592
|
-
var
|
|
2593
|
-
if (!isInterface(
|
|
2594
|
-
|
|
2500
|
+
var tmp_15;
|
|
2501
|
+
var tmp_16;
|
|
2502
|
+
var tmp_17 = this.l4j_1.solution;
|
|
2503
|
+
if (!isInterface(tmp_17, No)) {
|
|
2504
|
+
tmp_16 = true;
|
|
2595
2505
|
} else {
|
|
2596
|
-
|
|
2506
|
+
tmp_16 = !this.c4j_1 ? !this.k4j_1 : false;
|
|
2597
2507
|
}
|
|
2598
|
-
if (
|
|
2599
|
-
|
|
2508
|
+
if (tmp_16) {
|
|
2509
|
+
tmp_15 = true;
|
|
2600
2510
|
} else {
|
|
2601
|
-
|
|
2511
|
+
tmp_15 = this.f4j_1;
|
|
2602
2512
|
}
|
|
2603
|
-
if (
|
|
2604
|
-
this.
|
|
2605
|
-
suspendResult = this.
|
|
2513
|
+
if (tmp_15) {
|
|
2514
|
+
this.ai_1 = 2;
|
|
2515
|
+
suspendResult = this.v4i_1.d5(replyWith(this.w4i_1, this.l4j_1.i2h(VOID, VOID, plus_1(this.a4j_1, this.g4j_1))), this);
|
|
2606
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2607
2517
|
return suspendResult;
|
|
2608
2518
|
}
|
|
2609
2519
|
continue $sm;
|
|
2610
2520
|
} else {
|
|
2611
|
-
this.
|
|
2521
|
+
this.ai_1 = 3;
|
|
2612
2522
|
continue $sm;
|
|
2613
2523
|
}
|
|
2614
2524
|
}
|
|
2615
2525
|
|
|
2616
2526
|
break;
|
|
2617
2527
|
case 2:
|
|
2618
|
-
this.
|
|
2528
|
+
this.ai_1 = 3;
|
|
2619
2529
|
continue $sm;
|
|
2620
2530
|
case 3:
|
|
2621
|
-
this.
|
|
2531
|
+
this.ai_1 = 5;
|
|
2622
2532
|
continue $sm;
|
|
2623
2533
|
case 4:
|
|
2624
2534
|
var sideEffectPair = suspendResult;
|
|
2625
|
-
if (sideEffectPair.
|
|
2626
|
-
this.
|
|
2535
|
+
if (sideEffectPair.k4_1) {
|
|
2536
|
+
this.f4j_1 = true;
|
|
2627
2537
|
}
|
|
2628
2538
|
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2539
|
+
this.g4j_1 = sideEffectPair.l4_1;
|
|
2540
|
+
this.ai_1 = 5;
|
|
2631
2541
|
continue $sm;
|
|
2632
2542
|
case 5:
|
|
2633
|
-
var
|
|
2634
|
-
if (this.
|
|
2635
|
-
|
|
2543
|
+
var tmp_18;
|
|
2544
|
+
if (this.f4j_1) {
|
|
2545
|
+
tmp_18 = true;
|
|
2636
2546
|
} else {
|
|
2637
|
-
var
|
|
2638
|
-
|
|
2547
|
+
var tmp_19 = this.l4j_1.solution;
|
|
2548
|
+
tmp_18 = isInterface(tmp_19, Halt);
|
|
2639
2549
|
}
|
|
2640
2550
|
|
|
2641
|
-
if (
|
|
2642
|
-
return new Pair(true, plus_1(this.
|
|
2551
|
+
if (tmp_18) {
|
|
2552
|
+
return new Pair(true, plus_1(this.a4j_1, this.g4j_1));
|
|
2643
2553
|
}
|
|
2644
2554
|
|
|
2645
|
-
this.
|
|
2555
|
+
this.ai_1 = 1;
|
|
2646
2556
|
continue $sm;
|
|
2647
2557
|
case 6:
|
|
2648
|
-
return new Pair(this.
|
|
2558
|
+
return new Pair(this.f4j_1, plus_1(this.a4j_1, this.g4j_1));
|
|
2649
2559
|
case 7:
|
|
2650
|
-
throw this.
|
|
2560
|
+
throw this.di_1;
|
|
2651
2561
|
}
|
|
2652
2562
|
} catch ($p) {
|
|
2653
|
-
|
|
2654
|
-
|
|
2563
|
+
var e = $p;
|
|
2564
|
+
if (this.bi_1 === 7) {
|
|
2565
|
+
throw e;
|
|
2655
2566
|
} else {
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2567
|
+
this.ai_1 = this.bi_1;
|
|
2568
|
+
this.di_1 = e;
|
|
2658
2569
|
}
|
|
2659
2570
|
}
|
|
2660
2571
|
while (true);
|
|
2661
2572
|
};
|
|
2662
2573
|
function Conjunction() {
|
|
2663
2574
|
Conjunction_instance = this;
|
|
2664
|
-
|
|
2665
|
-
PrimitiveWrapper_init_$Init$(',', 2,
|
|
2575
|
+
Companion_getInstance_15();
|
|
2576
|
+
PrimitiveWrapper_init_$Init$(',', 2, VOID, this);
|
|
2666
2577
|
}
|
|
2667
|
-
Conjunction.
|
|
2578
|
+
protoOf(Conjunction).u4h = function (request) {
|
|
2668
2579
|
return sequence(Conjunction$uncheckedImplementation$slambda_0(request, null));
|
|
2669
2580
|
};
|
|
2670
|
-
Conjunction.
|
|
2671
|
-
return this.
|
|
2581
|
+
protoOf(Conjunction).p2e = function (request) {
|
|
2582
|
+
return this.u4h(request);
|
|
2672
2583
|
};
|
|
2673
2584
|
var Conjunction_instance;
|
|
2674
2585
|
function Conjunction_getInstance() {
|
|
@@ -2678,20 +2589,20 @@
|
|
|
2678
2589
|
}
|
|
2679
2590
|
function Cut() {
|
|
2680
2591
|
Cut_instance = this;
|
|
2681
|
-
PrimitiveWrapper_init_$Init$('!', 0,
|
|
2592
|
+
PrimitiveWrapper_init_$Init$('!', 0, VOID, this);
|
|
2682
2593
|
}
|
|
2683
|
-
Cut.
|
|
2594
|
+
protoOf(Cut).u4h = function (request) {
|
|
2684
2595
|
var tmp$ret$1;
|
|
2685
2596
|
// Inline function 'kotlin.with' call
|
|
2686
2597
|
// Inline function 'kotlin.contracts.contract' call
|
|
2687
2598
|
var tmp$ret$0;
|
|
2688
2599
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Cut.uncheckedImplementation.<anonymous>' call
|
|
2689
|
-
tmp$ret$0 = sequenceOf([request.
|
|
2600
|
+
tmp$ret$0 = sequenceOf([request.replySuccess(request.context.q4a_1, request.context.u4a_1.c4b(), [])]);
|
|
2690
2601
|
tmp$ret$1 = tmp$ret$0;
|
|
2691
2602
|
return tmp$ret$1;
|
|
2692
2603
|
};
|
|
2693
|
-
Cut.
|
|
2694
|
-
return this.
|
|
2604
|
+
protoOf(Cut).p2e = function (request) {
|
|
2605
|
+
return this.u4h(request);
|
|
2695
2606
|
};
|
|
2696
2607
|
var Cut_instance;
|
|
2697
2608
|
function Cut_getInstance() {
|
|
@@ -2700,65 +2611,63 @@
|
|
|
2700
2611
|
return Cut_instance;
|
|
2701
2612
|
}
|
|
2702
2613
|
function Not$uncheckedImplementation$slambda($request, resultContinuation) {
|
|
2703
|
-
this.
|
|
2614
|
+
this.h4k_1 = $request;
|
|
2704
2615
|
CoroutineImpl.call(this, resultContinuation);
|
|
2705
2616
|
}
|
|
2706
|
-
Not$uncheckedImplementation$slambda.
|
|
2707
|
-
var tmp = this.
|
|
2708
|
-
tmp.
|
|
2709
|
-
tmp.
|
|
2710
|
-
return tmp.
|
|
2617
|
+
protoOf(Not$uncheckedImplementation$slambda).y2q = function ($this$sequence, $completion) {
|
|
2618
|
+
var tmp = this.z2q($this$sequence, $completion);
|
|
2619
|
+
tmp.ci_1 = Unit_getInstance();
|
|
2620
|
+
tmp.di_1 = null;
|
|
2621
|
+
return tmp.ii();
|
|
2711
2622
|
};
|
|
2712
|
-
Not$uncheckedImplementation$slambda.
|
|
2713
|
-
return this.
|
|
2623
|
+
protoOf(Not$uncheckedImplementation$slambda).ui = function (p1, $completion) {
|
|
2624
|
+
return this.y2q(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
2714
2625
|
};
|
|
2715
|
-
Not$uncheckedImplementation$slambda.
|
|
2716
|
-
var suspendResult = this.
|
|
2626
|
+
protoOf(Not$uncheckedImplementation$slambda).ii = function () {
|
|
2627
|
+
var suspendResult = this.ci_1;
|
|
2717
2628
|
$sm: do
|
|
2718
2629
|
try {
|
|
2719
|
-
var tmp = this.
|
|
2630
|
+
var tmp = this.ai_1;
|
|
2720
2631
|
switch (tmp) {
|
|
2721
2632
|
case 0:
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2633
|
+
this.bi_1 = 7;
|
|
2634
|
+
this.j4k_1 = single(this.h4k_1.arguments);
|
|
2724
2635
|
var tmp_0 = this;
|
|
2725
|
-
var tmp_1 =
|
|
2726
|
-
var tmp_2 =
|
|
2636
|
+
var tmp_1 = Companion_getInstance_19();
|
|
2637
|
+
var tmp_2 = Companion_getInstance_13();
|
|
2727
2638
|
var tmp0__get_functor__thl4dk = Call_getInstance();
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
this.q4m_1 = this.p4m_1.j();
|
|
2732
|
-
this.zh_1 = 1;
|
|
2639
|
+
tmp_0.k4k_1 = tmp_1.f4a(newSolveRequest(this.h4k_1, tmp_2.of(tmp0__get_functor__thl4dk.signature.name, [this.j4k_1])));
|
|
2640
|
+
this.l4k_1 = this.k4k_1.j();
|
|
2641
|
+
this.ai_1 = 1;
|
|
2733
2642
|
continue $sm;
|
|
2734
2643
|
case 1:
|
|
2735
|
-
if (!this.
|
|
2736
|
-
this.
|
|
2644
|
+
if (!this.l4k_1.m()) {
|
|
2645
|
+
this.ai_1 = 6;
|
|
2737
2646
|
continue $sm;
|
|
2738
2647
|
}
|
|
2739
2648
|
|
|
2740
|
-
this.
|
|
2741
|
-
this.
|
|
2742
|
-
var
|
|
2743
|
-
if (isInterface(
|
|
2744
|
-
this.
|
|
2745
|
-
suspendResult = this.
|
|
2649
|
+
this.m4k_1 = this.l4k_1.n();
|
|
2650
|
+
this.n4k_1 = this.m4k_1.solution;
|
|
2651
|
+
var tmp_3 = this.n4k_1;
|
|
2652
|
+
if (isInterface(tmp_3, Yes)) {
|
|
2653
|
+
this.ai_1 = 5;
|
|
2654
|
+
suspendResult = this.i4k_1.d5(this.h4k_1.replyFail(VOID, []), this);
|
|
2746
2655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2747
2656
|
return suspendResult;
|
|
2748
2657
|
}
|
|
2749
2658
|
continue $sm;
|
|
2750
2659
|
} else {
|
|
2751
|
-
var
|
|
2752
|
-
if (isInterface(
|
|
2753
|
-
this.
|
|
2754
|
-
suspendResult = this.
|
|
2660
|
+
var tmp_4 = this.n4k_1;
|
|
2661
|
+
if (isInterface(tmp_4, No)) {
|
|
2662
|
+
this.ai_1 = 3;
|
|
2663
|
+
suspendResult = this.i4k_1.d5(this.h4k_1.replySuccess(this.h4k_1.context.q4a_1, VOID, []), this);
|
|
2755
2664
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2756
2665
|
return suspendResult;
|
|
2757
2666
|
}
|
|
2758
2667
|
continue $sm;
|
|
2759
2668
|
} else {
|
|
2760
|
-
this.
|
|
2761
|
-
suspendResult = this.
|
|
2669
|
+
this.ai_1 = 2;
|
|
2670
|
+
suspendResult = this.i4k_1.d5(replyWith(this.h4k_1, this.m4k_1), this);
|
|
2762
2671
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2763
2672
|
return suspendResult;
|
|
2764
2673
|
}
|
|
@@ -2768,53 +2677,54 @@
|
|
|
2768
2677
|
|
|
2769
2678
|
break;
|
|
2770
2679
|
case 2:
|
|
2771
|
-
this.
|
|
2680
|
+
this.ai_1 = 4;
|
|
2772
2681
|
continue $sm;
|
|
2773
2682
|
case 3:
|
|
2774
|
-
this.
|
|
2683
|
+
this.ai_1 = 4;
|
|
2775
2684
|
continue $sm;
|
|
2776
2685
|
case 4:
|
|
2777
|
-
this.
|
|
2686
|
+
this.ai_1 = 1;
|
|
2778
2687
|
continue $sm;
|
|
2779
2688
|
case 5:
|
|
2780
2689
|
return Unit_getInstance();
|
|
2781
2690
|
case 6:
|
|
2782
2691
|
return Unit_getInstance();
|
|
2783
2692
|
case 7:
|
|
2784
|
-
throw this.
|
|
2693
|
+
throw this.di_1;
|
|
2785
2694
|
}
|
|
2786
2695
|
} catch ($p) {
|
|
2787
|
-
|
|
2788
|
-
|
|
2696
|
+
var e = $p;
|
|
2697
|
+
if (this.bi_1 === 7) {
|
|
2698
|
+
throw e;
|
|
2789
2699
|
} else {
|
|
2790
|
-
this.
|
|
2791
|
-
this.
|
|
2700
|
+
this.ai_1 = this.bi_1;
|
|
2701
|
+
this.di_1 = e;
|
|
2792
2702
|
}
|
|
2793
2703
|
}
|
|
2794
2704
|
while (true);
|
|
2795
2705
|
};
|
|
2796
|
-
Not$uncheckedImplementation$slambda.
|
|
2797
|
-
var i = new Not$uncheckedImplementation$slambda(this.
|
|
2798
|
-
i.
|
|
2706
|
+
protoOf(Not$uncheckedImplementation$slambda).z2q = function ($this$sequence, completion) {
|
|
2707
|
+
var i = new Not$uncheckedImplementation$slambda(this.h4k_1, completion);
|
|
2708
|
+
i.i4k_1 = $this$sequence;
|
|
2799
2709
|
return i;
|
|
2800
2710
|
};
|
|
2801
2711
|
function Not$uncheckedImplementation$slambda_0($request, resultContinuation) {
|
|
2802
2712
|
var i = new Not$uncheckedImplementation$slambda($request, resultContinuation);
|
|
2803
|
-
var l = function ($this$sequence, $
|
|
2804
|
-
return i.
|
|
2713
|
+
var l = function ($this$sequence, $completion) {
|
|
2714
|
+
return i.y2q($this$sequence, $completion);
|
|
2805
2715
|
};
|
|
2806
2716
|
l.$arity = 1;
|
|
2807
2717
|
return l;
|
|
2808
2718
|
}
|
|
2809
2719
|
function Not() {
|
|
2810
2720
|
Not_instance = this;
|
|
2811
|
-
PrimitiveWrapper_init_$Init$('\\+', 1,
|
|
2721
|
+
PrimitiveWrapper_init_$Init$('\\+', 1, VOID, this);
|
|
2812
2722
|
}
|
|
2813
|
-
Not.
|
|
2723
|
+
protoOf(Not).u4h = function (request) {
|
|
2814
2724
|
return sequence(Not$uncheckedImplementation$slambda_0(request, null));
|
|
2815
2725
|
};
|
|
2816
|
-
Not.
|
|
2817
|
-
return this.
|
|
2726
|
+
protoOf(Not).p2e = function (request) {
|
|
2727
|
+
return this.u4h(request);
|
|
2818
2728
|
};
|
|
2819
2729
|
var Not_instance;
|
|
2820
2730
|
function Not_getInstance() {
|
|
@@ -2832,15 +2742,15 @@
|
|
|
2832
2742
|
var tmp;
|
|
2833
2743
|
var tmp_0;
|
|
2834
2744
|
var tmp0_safe_receiver = tmp0_with;
|
|
2835
|
-
var tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2745
|
+
var tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wv();
|
|
2836
2746
|
ErrorUtils_getInstance();
|
|
2837
2747
|
if (tmp_1 === 'error') {
|
|
2838
|
-
tmp_0 = tmp0_with.
|
|
2748
|
+
tmp_0 = tmp0_with.qv() === 2;
|
|
2839
2749
|
} else {
|
|
2840
2750
|
tmp_0 = false;
|
|
2841
2751
|
}
|
|
2842
2752
|
if (tmp_0) {
|
|
2843
|
-
var tmp_2 = firstOrNull(tmp0_with.
|
|
2753
|
+
var tmp_2 = firstOrNull(tmp0_with.xv());
|
|
2844
2754
|
var tmp1_safe_receiver = (!(tmp_2 == null) ? isInterface(tmp_2, Struct) : false) ? tmp_2 : null;
|
|
2845
2755
|
var tmp_3;
|
|
2846
2756
|
if (tmp1_safe_receiver == null) {
|
|
@@ -2851,7 +2761,7 @@
|
|
|
2851
2761
|
// Inline function 'kotlin.contracts.contract' call
|
|
2852
2762
|
var tmp$ret$0;
|
|
2853
2763
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.extractErrorTypeAndExtra.<anonymous>.<anonymous>' call
|
|
2854
|
-
tmp$ret$0 = new Pair(tmp1_safe_receiver, tmp0_with.
|
|
2764
|
+
tmp$ret$0 = new Pair(tmp1_safe_receiver, tmp0_with.xv().o(1));
|
|
2855
2765
|
tmp$ret$1 = tmp$ret$0;
|
|
2856
2766
|
tmp_3 = tmp$ret$1;
|
|
2857
2767
|
}
|
|
@@ -2874,11 +2784,11 @@
|
|
|
2874
2784
|
// Inline function 'kotlin.contracts.contract' call
|
|
2875
2785
|
var tmp$ret$0;
|
|
2876
2786
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.extractErrorCauseChain.<anonymous>' call
|
|
2877
|
-
var type = tmp0_safe_receiver.
|
|
2878
|
-
var extra = tmp0_safe_receiver.
|
|
2879
|
-
var tmp0_$this =
|
|
2787
|
+
var type = tmp0_safe_receiver.r3();
|
|
2788
|
+
var extra = tmp0_safe_receiver.s3();
|
|
2789
|
+
var tmp0_$this = Companion_getInstance_16();
|
|
2880
2790
|
var tmp1_cause = extractErrorCauseChain(extra, Throw_getInstance(), withContext);
|
|
2881
|
-
tmp$ret$0 = tmp0_$this.
|
|
2791
|
+
tmp$ret$0 = tmp0_$this.of(VOID, tmp1_cause, withContext, type, extra);
|
|
2882
2792
|
tmp$ret$1 = tmp$ret$0;
|
|
2883
2793
|
tmp = tmp$ret$1;
|
|
2884
2794
|
}
|
|
@@ -2888,16 +2798,16 @@
|
|
|
2888
2798
|
Throw_instance = this;
|
|
2889
2799
|
NonBacktrackable.call(this, 'throw');
|
|
2890
2800
|
}
|
|
2891
|
-
Throw.
|
|
2801
|
+
protoOf(Throw).q4k = function (_this__u8e3s4, first) {
|
|
2892
2802
|
var tmp;
|
|
2893
2803
|
try {
|
|
2894
2804
|
var tmp$ret$3;
|
|
2895
2805
|
// Inline function 'kotlin.let' call
|
|
2896
|
-
var tmp0_let = single(
|
|
2806
|
+
var tmp0_let = single(Companion_getInstance_14().d2e(_this__u8e3s4).arguments).freshCopy();
|
|
2897
2807
|
// Inline function 'kotlin.contracts.contract' call
|
|
2898
2808
|
var tmp$ret$2;
|
|
2899
2809
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.computeOne.<anonymous>' call
|
|
2900
|
-
var ancestorCatch = _this__u8e3s4.context.
|
|
2810
|
+
var ancestorCatch = _this__u8e3s4.context.u4a_1.k4b(tmp0_let);
|
|
2901
2811
|
var tmp0_safe_receiver = ancestorCatch;
|
|
2902
2812
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.arguments;
|
|
2903
2813
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o(1);
|
|
@@ -2910,23 +2820,23 @@
|
|
|
2910
2820
|
// Inline function 'kotlin.contracts.contract' call
|
|
2911
2821
|
var tmp$ret$0;
|
|
2912
2822
|
// Inline function 'it.unibo.tuprolog.solve.streams.stdlib.primitive.Throw.computeOne.<anonymous>.<anonymous>' call
|
|
2913
|
-
tmp$ret$0 =
|
|
2823
|
+
tmp$ret$0 = Companion_getInstance_14().d2f(_this__u8e3s4, tmp2_safe_receiver, tmp0_let);
|
|
2914
2824
|
tmp$ret$1 = tmp$ret$0;
|
|
2915
2825
|
tmp_0 = tmp$ret$1;
|
|
2916
2826
|
}
|
|
2917
2827
|
var catcher = tmp_0;
|
|
2918
2828
|
var tmp_1;
|
|
2919
2829
|
if (!(catcher == null) ? isInterface(catcher, Unifier) : false) {
|
|
2920
|
-
var tmp_2 = _this__u8e3s4.context.
|
|
2830
|
+
var tmp_2 = _this__u8e3s4.context.q4a_1.plus(catcher);
|
|
2921
2831
|
var newSubstitution = isInterface(tmp_2, Unifier) ? tmp_2 : THROW_CCE();
|
|
2922
|
-
tmp_1 = _this__u8e3s4.
|
|
2832
|
+
tmp_1 = _this__u8e3s4.replySuccess(newSubstitution, _this__u8e3s4.context.u4a_1.l4b(ancestorCatch.context), []);
|
|
2923
2833
|
} else {
|
|
2924
2834
|
var errorCause = extractErrorCauseChain(tmp0_let, Throw_getInstance(), _this__u8e3s4.context);
|
|
2925
2835
|
var tmp_3;
|
|
2926
2836
|
if (!(errorCause == null)) {
|
|
2927
2837
|
throw errorCause;
|
|
2928
2838
|
} else {
|
|
2929
|
-
throw
|
|
2839
|
+
throw Companion_getInstance_17().forUncaughtException(_this__u8e3s4.context, tmp0_let);
|
|
2930
2840
|
}
|
|
2931
2841
|
tmp_1 = tmp_3;
|
|
2932
2842
|
}
|
|
@@ -2936,7 +2846,8 @@
|
|
|
2936
2846
|
} catch ($p) {
|
|
2937
2847
|
var tmp_4;
|
|
2938
2848
|
if ($p instanceof LogicError) {
|
|
2939
|
-
|
|
2849
|
+
var logicError = $p;
|
|
2850
|
+
tmp_4 = _this__u8e3s4.replyException(logicError, VOID, []);
|
|
2940
2851
|
} else {
|
|
2941
2852
|
throw $p;
|
|
2942
2853
|
}
|
|
@@ -2944,8 +2855,8 @@
|
|
|
2944
2855
|
}
|
|
2945
2856
|
return tmp;
|
|
2946
2857
|
};
|
|
2947
|
-
Throw.
|
|
2948
|
-
return this.
|
|
2858
|
+
protoOf(Throw).x2h = function (_this__u8e3s4, first) {
|
|
2859
|
+
return this.q4k(_this__u8e3s4, first);
|
|
2949
2860
|
};
|
|
2950
2861
|
var Throw_instance;
|
|
2951
2862
|
function Throw_getInstance() {
|
|
@@ -2954,58 +2865,58 @@
|
|
|
2954
2865
|
return Throw_instance;
|
|
2955
2866
|
}
|
|
2956
2867
|
//region block: post-declaration
|
|
2957
|
-
StreamsSolver.
|
|
2958
|
-
StreamsSolver.
|
|
2959
|
-
StreamsSolver.
|
|
2960
|
-
StreamsSolver.
|
|
2961
|
-
StreamsSolver.
|
|
2962
|
-
StreamsSolver.
|
|
2963
|
-
StreamsSolver.
|
|
2964
|
-
StreamsSolver.
|
|
2965
|
-
StreamsSolver.
|
|
2966
|
-
StreamsSolver.
|
|
2967
|
-
StreamsSolver.
|
|
2968
|
-
StreamsSolver.
|
|
2969
|
-
StreamsSolver.
|
|
2970
|
-
StreamsSolver.
|
|
2971
|
-
StreamsSolverFactory.
|
|
2972
|
-
StreamsSolverFactory.
|
|
2973
|
-
StreamsSolverFactory.
|
|
2974
|
-
StreamsSolverFactory.
|
|
2975
|
-
StreamsSolverFactory.
|
|
2976
|
-
StreamsSolverFactory.
|
|
2977
|
-
StreamsSolverFactory.
|
|
2978
|
-
StreamsSolverFactory.
|
|
2979
|
-
StreamsSolverFactory.
|
|
2980
|
-
StreamsSolverFactory.
|
|
2981
|
-
StreamsSolverFactory.
|
|
2982
|
-
StreamsSolverFactory.
|
|
2983
|
-
StreamsSolverFactory.
|
|
2984
|
-
StreamsSolverFactory.
|
|
2985
|
-
StreamsSolverFactory.
|
|
2986
|
-
StreamsSolverFactory.
|
|
2987
|
-
StreamsSolverFactory.
|
|
2988
|
-
StreamsSolverFactory.
|
|
2989
|
-
StreamsExecutionContext.
|
|
2990
|
-
StreamsExecutionContext.
|
|
2991
|
-
StreamsExecutionContext.
|
|
2992
|
-
StreamsExecutionContext.
|
|
2993
|
-
StreamsExecutionContext.
|
|
2994
|
-
StreamsExecutionContext.
|
|
2995
|
-
StreamsExecutionContext.
|
|
2996
|
-
StreamsExecutionContext.
|
|
2997
|
-
StreamsExecutionContext.
|
|
2998
|
-
StreamsExecutionContext.
|
|
2999
|
-
AbstractTimedState.
|
|
3000
|
-
StateGoalEvaluation.
|
|
3001
|
-
StateInit.
|
|
3002
|
-
StateRuleSelection.
|
|
3003
|
-
DefaultBuiltins.
|
|
3004
|
-
DefaultBuiltins.
|
|
3005
|
-
DefaultBuiltins.
|
|
3006
|
-
DefaultBuiltins.
|
|
3007
|
-
DefaultBuiltins.
|
|
3008
|
-
DefaultBuiltins.
|
|
2868
|
+
protoOf(StreamsSolver).copy = copy;
|
|
2869
|
+
protoOf(StreamsSolver).solveWithTimeout = solveWithTimeout;
|
|
2870
|
+
protoOf(StreamsSolver).solve = solve;
|
|
2871
|
+
protoOf(StreamsSolver).solveListWithTimeout = solveListWithTimeout;
|
|
2872
|
+
protoOf(StreamsSolver).solveList = solveList;
|
|
2873
|
+
protoOf(StreamsSolver).solveListWithOptions = solveListWithOptions;
|
|
2874
|
+
protoOf(StreamsSolver).solveOnceWithTimeout = solveOnceWithTimeout;
|
|
2875
|
+
protoOf(StreamsSolver).solveOnce = solveOnce;
|
|
2876
|
+
protoOf(StreamsSolver).solveOnceWithOptions = solveOnceWithOptions;
|
|
2877
|
+
protoOf(StreamsSolver).clone = clone;
|
|
2878
|
+
protoOf(StreamsSolver).f1u = get_standardInput;
|
|
2879
|
+
protoOf(StreamsSolver).h1u = get_standardOutput;
|
|
2880
|
+
protoOf(StreamsSolver).j1u = get_standardError;
|
|
2881
|
+
protoOf(StreamsSolver).l1u = get_warnings;
|
|
2882
|
+
protoOf(StreamsSolverFactory).rawSolverOf = rawSolverOf;
|
|
2883
|
+
protoOf(StreamsSolverFactory).solverOf = solverOf;
|
|
2884
|
+
protoOf(StreamsSolverFactory).mutableSolverOf = mutableSolverOf;
|
|
2885
|
+
protoOf(StreamsSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
|
|
2886
|
+
protoOf(StreamsSolverFactory).newBuilder = newBuilder;
|
|
2887
|
+
protoOf(StreamsSolverFactory).t1w = get_defaultRuntime;
|
|
2888
|
+
protoOf(StreamsSolverFactory).v1w = get_defaultUnificator;
|
|
2889
|
+
protoOf(StreamsSolverFactory).w1w = get_defaultFlags;
|
|
2890
|
+
protoOf(StreamsSolverFactory).z1w = get_defaultStaticKb;
|
|
2891
|
+
protoOf(StreamsSolverFactory).a1x = get_defaultDynamicKb;
|
|
2892
|
+
protoOf(StreamsSolverFactory).b1x = get_defaultInputChannel;
|
|
2893
|
+
protoOf(StreamsSolverFactory).c1x = get_defaultOutputChannel;
|
|
2894
|
+
protoOf(StreamsSolverFactory).d1x = get_defaultErrorChannel;
|
|
2895
|
+
protoOf(StreamsSolverFactory).e1x = get_defaultWarningsChannel;
|
|
2896
|
+
protoOf(StreamsSolverFactory).m1x = solverWithDefaultBuiltins;
|
|
2897
|
+
protoOf(StreamsSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
|
|
2898
|
+
protoOf(StreamsSolverFactory).o1x = mutableSolverWithDefaultBuiltins;
|
|
2899
|
+
protoOf(StreamsSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
|
|
2900
|
+
protoOf(StreamsExecutionContext).createSolver = createSolver;
|
|
2901
|
+
protoOf(StreamsExecutionContext).createMutableSolver = createMutableSolver;
|
|
2902
|
+
protoOf(StreamsExecutionContext).update = update;
|
|
2903
|
+
protoOf(StreamsExecutionContext).f1u = get_standardInput;
|
|
2904
|
+
protoOf(StreamsExecutionContext).h1u = get_standardOutput;
|
|
2905
|
+
protoOf(StreamsExecutionContext).j1u = get_standardError;
|
|
2906
|
+
protoOf(StreamsExecutionContext).l1u = get_warnings;
|
|
2907
|
+
protoOf(StreamsExecutionContext).m1t = get_endTime;
|
|
2908
|
+
protoOf(StreamsExecutionContext).o1t = get_remainingTime;
|
|
2909
|
+
protoOf(StreamsExecutionContext).p1t = get_elapsedTime;
|
|
2910
|
+
protoOf(AbstractTimedState).n5 = get_context;
|
|
2911
|
+
protoOf(StateGoalEvaluation).n5 = get_context;
|
|
2912
|
+
protoOf(StateInit).n5 = get_context;
|
|
2913
|
+
protoOf(StateRuleSelection).n5 = get_context;
|
|
2914
|
+
protoOf(DefaultBuiltins).containsSignature = containsSignature;
|
|
2915
|
+
protoOf(DefaultBuiltins).containsOperator = containsOperator;
|
|
2916
|
+
protoOf(DefaultBuiltins).hasPrimitive = hasPrimitive;
|
|
2917
|
+
protoOf(DefaultBuiltins).hasFunction = hasFunction;
|
|
2918
|
+
protoOf(DefaultBuiltins).r2c = get_ruleSignatures;
|
|
2919
|
+
protoOf(DefaultBuiltins).hasProtected = hasProtected;
|
|
3009
2920
|
//endregion
|
|
3010
2921
|
//region block: exports
|
|
3011
2922
|
function $jsExportAll$(_) {
|
|
@@ -3014,15 +2925,12 @@
|
|
|
3014
2925
|
var $it$unibo$tuprolog = $it$unibo.tuprolog || ($it$unibo.tuprolog = {});
|
|
3015
2926
|
var $it$unibo$tuprolog$solve = $it$unibo$tuprolog.solve || ($it$unibo$tuprolog.solve = {});
|
|
3016
2927
|
var $it$unibo$tuprolog$solve$streams = $it$unibo$tuprolog$solve.streams || ($it$unibo$tuprolog$solve.streams = {});
|
|
3017
|
-
|
|
3018
|
-
configurable: true,
|
|
3019
|
-
get: StreamsSolverFactory_getInstance
|
|
3020
|
-
});
|
|
2928
|
+
defineProp($it$unibo$tuprolog$solve$streams, 'StreamsSolverFactory', StreamsSolverFactory_getInstance);
|
|
3021
2929
|
}
|
|
3022
2930
|
$jsExportAll$(_);
|
|
3023
2931
|
_.$jsExportAll$ = $jsExportAll$;
|
|
3024
2932
|
//endregion
|
|
3025
2933
|
return _;
|
|
3026
|
-
}
|
|
2934
|
+
}));
|
|
3027
2935
|
|
|
3028
2936
|
//# sourceMappingURL=2p-solve-streams.js.map
|