@tuprolog/2p-full 0.31.5-dev0c → 0.31.5-dev0n

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/2p-bdd.js +234 -229
  2. package/2p-bdd.js.map +1 -1
  3. package/2p-core.js +5618 -6238
  4. package/2p-core.js.map +1 -1
  5. package/2p-datalog.js +9 -2
  6. package/2p-datalog.js.map +1 -1
  7. package/2p-dsl-core.js +9 -2
  8. package/2p-dsl-core.js.map +1 -1
  9. package/2p-dsl-solve.js +9 -2
  10. package/2p-dsl-solve.js.map +1 -1
  11. package/2p-dsl-theory.js +9 -2
  12. package/2p-dsl-theory.js.map +1 -1
  13. package/2p-dsl-unify.js +9 -2
  14. package/2p-dsl-unify.js.map +1 -1
  15. package/2p-full.js +26 -3
  16. package/2p-full.js.map +1 -1
  17. package/2p-io-lib.js +931 -954
  18. package/2p-io-lib.js.map +1 -1
  19. package/2p-oop-lib.js +1308 -1337
  20. package/2p-oop-lib.js.map +1 -1
  21. package/2p-parser-core.js +364 -368
  22. package/2p-parser-core.js.map +1 -1
  23. package/2p-parser-js.js +14 -3
  24. package/2p-parser-js.js.map +1 -1
  25. package/2p-parser-theory.js +66 -41
  26. package/2p-parser-theory.js.map +1 -1
  27. package/2p-repl.js +183 -181
  28. package/2p-repl.js.map +1 -1
  29. package/2p-serialize-core.js +9 -2
  30. package/2p-serialize-core.js.map +1 -1
  31. package/2p-serialize-theory.js +9 -2
  32. package/2p-serialize-theory.js.map +1 -1
  33. package/2p-solve-classic.js +1408 -1680
  34. package/2p-solve-classic.js.map +1 -1
  35. package/2p-solve-concurrent.js +9 -2
  36. package/2p-solve-concurrent.js.map +1 -1
  37. package/2p-solve-plp.js +19 -5
  38. package/2p-solve-plp.js.map +1 -1
  39. package/2p-solve-problog.js +1880 -1915
  40. package/2p-solve-problog.js.map +1 -1
  41. package/2p-solve-streams.js +1251 -1343
  42. package/2p-solve-streams.js.map +1 -1
  43. package/2p-solve.js +5397 -5851
  44. package/2p-solve.js.map +1 -1
  45. package/2p-theory.js +1800 -1796
  46. package/2p-theory.js.map +1 -1
  47. package/2p-unify.js +371 -372
  48. package/2p-unify.js.map +1 -1
  49. package/2p-utils.js +555 -517
  50. package/2p-utils.js.map +1 -1
  51. package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
  52. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
  53. package/clikt-clikt-js-ir.js +2208 -2427
  54. package/clikt-clikt-js-ir.js.map +1 -1
  55. package/kotlin-kotlin-stdlib-js-ir.js +3030 -3127
  56. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  57. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
  58. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
  59. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
  60. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  61. package/kt-math.js +3196 -2832
  62. package/kt-math.js.map +1 -1
  63. package/package.json +56 -2
  64. package/2p-full.d.ts +0 -270
@@ -1,27 +1,62 @@
1
- (function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_theory) {
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.$_$.t8;
6
- var classMeta = kotlin_kotlin.$_$.m6;
7
- var setMetadataFor = kotlin_kotlin.$_$.j7;
8
- var objectMeta = kotlin_kotlin.$_$.i7;
9
- var isInterface = kotlin_kotlin.$_$.y6;
10
- var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m1;
11
- var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
12
- var filter = kotlin_kotlin.$_$.r8;
13
- var THROW_CCE = kotlin_kotlin.$_$.sb;
14
- var Sequence = kotlin_kotlin.$_$.f8;
15
- var Unit_getInstance = kotlin_kotlin.$_$.r2;
16
- var map = kotlin_kotlin.$_$.c9;
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 Request_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.f1;
22
- var take = kotlin_kotlin.$_$.m9;
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$default = kotlin_it_unibo_tuprolog_solve.$_$.u;
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.$_$.g4;
35
- var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.h4;
36
- var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.f4;
37
- var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.i4;
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 solverOf$default = kotlin_it_unibo_tuprolog_solve.$_$.z;
40
- var solverOf$default_0 = kotlin_it_unibo_tuprolog_solve.$_$.y;
41
- var NotImplementedError = kotlin_kotlin.$_$.nb;
42
- var mutableSolverOf$default = kotlin_it_unibo_tuprolog_solve.$_$.v;
43
- var mutableSolverOf$default_0 = kotlin_it_unibo_tuprolog_solve.$_$.w;
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 solverWithDefaultBuiltins$default = kotlin_it_unibo_tuprolog_solve.$_$.a1;
90
+ var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.a1;
56
91
  var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.m5;
57
- var mutableSolverWithDefaultBuiltins$default = kotlin_it_unibo_tuprolog_solve.$_$.x;
92
+ var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.x;
58
93
  var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.p5;
59
- var emptyList = kotlin_kotlin.$_$.s3;
60
- var emptySequence = kotlin_kotlin.$_$.n8;
61
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.c1;
62
- var firstOrNull = kotlin_kotlin.$_$.w3;
63
- var plus = kotlin_kotlin.$_$.h9;
64
- var toMutableList = kotlin_kotlin.$_$.t5;
65
- var first_0 = kotlin_kotlin.$_$.x3;
66
- var listOf = kotlin_kotlin.$_$.h4;
67
- var lastOrNull = kotlin_kotlin.$_$.d4;
68
- var contains = kotlin_kotlin.$_$.j8;
69
- var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_unify.$_$.a;
70
- var equals = kotlin_kotlin.$_$.o6;
71
- var plus_0 = kotlin_kotlin.$_$.f9;
72
- var Collection = kotlin_kotlin.$_$.t2;
73
- var hashCode = kotlin_kotlin.$_$.t6;
74
- var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.t;
75
- var copyToArray = kotlin_kotlin.$_$.p3;
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 Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.e1;
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.$_$.f5;
81
- var any = kotlin_kotlin.$_$.g8;
82
- var sequence = kotlin_kotlin.$_$.j9;
83
- var drop = kotlin_kotlin.$_$.r3;
84
- var plus_1 = kotlin_kotlin.$_$.a5;
85
- var indexOf = kotlin_kotlin.$_$.x8;
86
- var CoroutineImpl = kotlin_kotlin.$_$.c6;
87
- var SequenceScope = kotlin_kotlin.$_$.e8;
88
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b6;
89
- var filterIndexed = kotlin_kotlin.$_$.o8;
90
- var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.f2;
91
- var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_solve.$_$.a2;
92
- var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_theory.$_$.b;
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 Companion_getInstance_9 = kotlin_kotlin.$_$.q2;
96
- var asSequence = kotlin_kotlin.$_$.g3;
97
- var toList = kotlin_kotlin.$_$.p9;
98
- var lazy = kotlin_kotlin.$_$.xb;
99
- var collectionSizeOrDefault = kotlin_kotlin.$_$.j3;
100
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.b1;
101
- var createSolver$default = kotlin_it_unibo_tuprolog_solve.$_$.s;
102
- var createMutableSolver$default = kotlin_it_unibo_tuprolog_solve.$_$.r;
103
- var apply = kotlin_it_unibo_tuprolog_solve.$_$.d4;
104
- var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.c4;
105
- var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.e4;
106
- var update$default = kotlin_it_unibo_tuprolog_solve.$_$.t;
107
- var toString = kotlin_kotlin.$_$.n7;
108
- var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.a4;
109
- var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.b4;
110
- var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.z3;
111
- var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.j4;
112
- var KProperty1 = kotlin_kotlin.$_$.d8;
113
- var getPropertyCallableRef = kotlin_kotlin.$_$.r6;
114
- var interfaceMeta = kotlin_kotlin.$_$.u6;
115
- var sequenceOf = kotlin_kotlin.$_$.i9;
116
- var drop_0 = kotlin_kotlin.$_$.m8;
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.$_$.p1;
154
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t;
122
155
  var No = kotlin_it_unibo_tuprolog_solve.$_$.s4;
123
- var Companion_getInstance_10 = kotlin_it_unibo_tuprolog_core.$_$.d1;
124
- var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.u2;
125
- var HaltException = kotlin_it_unibo_tuprolog_solve.$_$.t2;
126
- var flatMap = kotlin_kotlin.$_$.u8;
127
- var asIterable = kotlin_kotlin.$_$.h8;
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.$_$.e9;
162
+ var none = kotlin_kotlin.$_$.q8;
130
163
  var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
131
- var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.z2;
132
- var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l2;
133
- var listOf_0 = kotlin_kotlin.$_$.i4;
134
- var containsSignature = kotlin_it_unibo_tuprolog_solve.$_$.b3;
135
- var containsOperator = kotlin_it_unibo_tuprolog_solve.$_$.a3;
136
- var hasPrimitive = kotlin_it_unibo_tuprolog_solve.$_$.d3;
137
- var hasFunction = kotlin_it_unibo_tuprolog_solve.$_$.c3;
138
- var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.f3;
139
- var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.e3;
140
- var PrimitiveWrapper = kotlin_it_unibo_tuprolog_solve.$_$.l3;
141
- var PrimitiveWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.e1;
142
- var Companion_getInstance_11 = kotlin_it_unibo_tuprolog_solve.$_$.g2;
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.$_$.e4;
146
- var first_1 = kotlin_kotlin.$_$.y3;
147
- var Pair = kotlin_kotlin.$_$.qb;
148
- var Companion_getInstance_12 = kotlin_it_unibo_tuprolog_core.$_$.h1;
149
- var ErrorUtils_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.r1;
150
- var Companion_getInstance_13 = kotlin_it_unibo_tuprolog_solve.$_$.z1;
151
- var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.u3;
152
- var Companion_getInstance_14 = kotlin_it_unibo_tuprolog_solve.$_$.x1;
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, undefined, classMeta, undefined, undefined, undefined, undefined, []);
156
- setMetadataFor(Companion, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
157
- setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
158
- setMetadataFor(StreamsSolver, 'StreamsSolver', classMeta, undefined, [Solver], undefined, undefined, []);
159
- setMetadataFor(StreamsSolverFactory, 'StreamsSolverFactory', objectMeta, undefined, [SolverFactory], undefined, undefined, []);
160
- setMetadataFor(SideEffectManagerImpl, 'SideEffectManagerImpl', classMeta, undefined, undefined, undefined, undefined, []);
161
- setMetadataFor(orderWithStrategy$slambda, 'orderWithStrategy$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
162
- setMetadataFor(StreamsExecutionContext, 'StreamsExecutionContext', classMeta, undefined, [ExecutionContext], undefined, undefined, []);
163
- setMetadataFor(AbstractState, 'AbstractState', classMeta, undefined, undefined, undefined, undefined, []);
164
- setMetadataFor(AlreadyExecutedState, 'AlreadyExecutedState', classMeta, undefined, undefined, undefined, undefined, []);
165
- setMetadataFor(FinalState, 'FinalState', interfaceMeta, undefined, undefined, undefined, undefined, []);
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.k4c().context;
200
+ var tmp = this.c4a().context;
168
201
  return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
169
202
  }
170
- setMetadataFor(IntermediateState, 'IntermediateState', interfaceMeta, undefined, undefined, undefined, undefined, []);
171
- setMetadataFor(StateMachineExecutor$internalExecute$slambda, 'StateMachineExecutor$internalExecute$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
172
- setMetadataFor(StateMachineExecutor, 'StateMachineExecutor', objectMeta, undefined, undefined, undefined, undefined, []);
173
- setMetadataFor(Companion_1, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
174
- setMetadataFor(AbstractTimedState, 'AbstractTimedState', classMeta, AbstractState, [AbstractState, IntermediateState], undefined, undefined, []);
175
- setMetadataFor(StateEnd, 'StateEnd', classMeta, AbstractState, [AbstractState, FinalState], undefined, undefined, []);
176
- setMetadataFor(True, 'True', classMeta, StateEnd, [StateEnd, FinalState], undefined, undefined, []);
177
- setMetadataFor(False, 'False', classMeta, StateEnd, [StateEnd, FinalState], undefined, undefined, []);
178
- setMetadataFor(Halt_0, 'Halt', classMeta, StateEnd, [StateEnd, FinalState], undefined, undefined, []);
179
- setMetadataFor(Companion_2, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
180
- setMetadataFor(StateGoalEvaluation$behaveTimed$slambda, 'StateGoalEvaluation$behaveTimed$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
181
- setMetadataFor(StateGoalEvaluation, 'StateGoalEvaluation', classMeta, AbstractTimedState, undefined, undefined, undefined, []);
182
- setMetadataFor(StateInit$behaveTimed$slambda, 'StateInit$behaveTimed$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
183
- setMetadataFor(StateInit, 'StateInit', classMeta, AbstractTimedState, undefined, undefined, undefined, []);
184
- setMetadataFor(Companion_3, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
185
- setMetadataFor(StateRuleSelection$behaveTimed$slambda, 'StateRuleSelection$behaveTimed$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
186
- setMetadataFor(StateRuleSelection, 'StateRuleSelection', classMeta, AbstractTimedState, undefined, undefined, undefined, []);
187
- setMetadataFor(DefaultBuiltins, 'DefaultBuiltins', objectMeta, ExtensionLibrary, undefined, undefined, undefined, []);
188
- setMetadataFor(Call, 'Call', objectMeta, PrimitiveWrapper, undefined, undefined, undefined, []);
189
- setMetadataFor(Catch$uncheckedImplementation$slambda, 'Catch$uncheckedImplementation$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
190
- setMetadataFor(Catch, 'Catch', objectMeta, PrimitiveWrapper, undefined, undefined, undefined, []);
191
- setMetadataFor(Conjunction$uncheckedImplementation$slambda, 'Conjunction$uncheckedImplementation$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
192
- setMetadataFor($solveConjunctionGoalsCOROUTINE$0, '$solveConjunctionGoalsCOROUTINE$0', classMeta, CoroutineImpl, undefined, undefined, undefined, []);
193
- setMetadataFor(Conjunction, 'Conjunction', objectMeta, PrimitiveWrapper, undefined, undefined, undefined, [7]);
194
- setMetadataFor(Cut, 'Cut', objectMeta, PrimitiveWrapper, undefined, undefined, undefined, []);
195
- setMetadataFor(Not$uncheckedImplementation$slambda, 'Not$uncheckedImplementation$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
196
- setMetadataFor(Not, 'Not', objectMeta, PrimitiveWrapper, undefined, undefined, undefined, []);
197
- setMetadataFor(Throw, 'Throw', objectMeta, NonBacktrackable, undefined, undefined, undefined, []);
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.prototype.g4c = function (predicationSequence, context) {
234
+ protoOf(SolverStrategies$Companion$prologStandard$1).y49 = function (predicationSequence, context) {
202
235
  return first(predicationSequence);
203
236
  };
204
- SolverStrategies$Companion$prologStandard$1.prototype.h4c = function (unifiableClauses, context) {
237
+ protoOf(SolverStrategies$Companion$prologStandard$1).z49 = function (unifiableClauses, context) {
205
238
  return first(unifiableClauses);
206
239
  };
207
- SolverStrategies$Companion$prologStandard$1.prototype.i4c = function (term, context) {
208
- return term.dw();
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.j4c_1 = new SolverStrategies$Companion$prologStandard$1();
246
+ tmp.b4a_1 = new SolverStrategies$Companion$prologStandard$1();
214
247
  }
215
248
  var Companion_instance;
216
- function Companion_getInstance_15() {
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.k4c().solution.x1v().equals($goalRequest.x1v());
259
+ return it.c4a().solution.v1u().equals($goalRequest.v1u());
227
260
  };
228
261
  }
229
262
  function StreamsSolver$Companion$solveToResponses$lambda(it) {
230
- return it.k4c();
263
+ return it.c4a();
231
264
  }
232
265
  function StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $this) {
233
- StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().p1y(stdIn), Companion_getInstance_0().s1y(stdOut, stdErr, warnings));
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, Object.create(StreamsSolver.prototype));
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.prototype.l4c = function (goalRequest) {
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().m4c(new StateInit(goalRequest));
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.prototype.n4c = function (goalRequest) {
252
- var tmp = this.l4c(goalRequest);
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 Companion_getInstance_16() {
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.o4c_1 = it.j5().c37(it.k4c().sideEffects);
264
- return it.k4c().solution.cleanUp();
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
- Companion_getInstance_16();
269
- var tmp = this;
270
- var tmp_0 = toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb]));
271
- var tmp_1 = new Long(0, 0);
272
- var tmp_2 = new Long(0, 0);
273
- tmp.o4c_1 = StreamsExecutionContext_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, tmp_0, inputChannels, outputChannels, null, null, tmp_1, tmp_2, null, null, 16128, null);
274
- }
275
- StreamsSolver.prototype.c2c = function (goal, options) {
276
- var tmp = this;
277
- var tmp_0 = this.k1l();
278
- var tmp_1 = this.w1u();
279
- var tmp_2 = this.x1u();
280
- var tmp_3 = this.y1u();
281
- var tmp_4 = this.z1u();
282
- var tmp_5 = this.a1v();
283
- var tmp_6 = this.b1v();
284
- var tmp_7 = new Long(0, 0);
285
- var tmp_8 = options.j1x();
286
- tmp.o4c_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.gw();
290
- var tmp_12 = this.o4c_1;
291
- var tmp_13 = new Long(0, 0);
292
- var tmp_14 = tmp_9.l4c(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.k1x() > 0) {
295
- solutionSequence = take(solutionSequence, options.k1x());
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.i1x()) {
327
+ if (options.a1w()) {
298
328
  solutionSequence = buffered(solutionSequence);
299
329
  }
300
330
  return solutionSequence;
301
331
  };
302
- StreamsSolver.prototype.solveWithOptions = function (goal, options) {
303
- return this.c2c(goal, options);
332
+ protoOf(StreamsSolver).solveWithOptions = function (goal, options) {
333
+ return this.f2a(goal, options);
304
334
  };
305
- StreamsSolver.prototype.p1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
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.prototype.k1l = function () {
309
- return this.o4c_1.p4c_1;
338
+ protoOf(StreamsSolver).k1k = function () {
339
+ return this.g4a_1.h4a_1;
310
340
  };
311
- StreamsSolver.prototype.w1u = function () {
312
- return this.o4c_1.q4c_1;
341
+ protoOf(StreamsSolver).v1t = function () {
342
+ return this.g4a_1.i4a_1;
313
343
  };
314
- StreamsSolver.prototype.x1u = function () {
315
- return this.o4c_1.r4c_1;
344
+ protoOf(StreamsSolver).w1t = function () {
345
+ return this.g4a_1.j4a_1;
316
346
  };
317
- StreamsSolver.prototype.y1u = function () {
318
- return this.o4c_1.s4c_1;
347
+ protoOf(StreamsSolver).x1t = function () {
348
+ return this.g4a_1.k4a_1;
319
349
  };
320
- StreamsSolver.prototype.z1u = function () {
321
- return this.o4c_1.t4c_1;
350
+ protoOf(StreamsSolver).y1t = function () {
351
+ return this.g4a_1.l4a_1;
322
352
  };
323
- StreamsSolver.prototype.a1v = function () {
324
- return this.o4c_1.v4c_1;
353
+ protoOf(StreamsSolver).z1t = function () {
354
+ return this.g4a_1.n4a_1;
325
355
  };
326
- StreamsSolver.prototype.b1v = function () {
327
- return this.o4c_1.w4c_1;
356
+ protoOf(StreamsSolver).a1u = function () {
357
+ return this.g4a_1.o4a_1;
328
358
  };
329
- StreamsSolver.prototype.h1v = function () {
330
- return this.o4c_1.u4c_1;
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.prototype.d1y = function () {
365
+ protoOf(StreamsSolverFactory).u1w = function () {
336
366
  return DefaultBuiltins_getInstance();
337
367
  };
338
- StreamsSolverFactory.prototype.t1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
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.prototype.v1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
342
- return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().p1y(stdIn), Companion_getInstance_0().s1y(stdOut, stdErr, warnings));
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.prototype.z1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
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.prototype.d1z = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
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 tmp0_filter = $this.e4d_1;
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 = tmp0_filter.j();
397
+ var tmp0_iterator = tmp1_filter.j();
387
398
  while (tmp0_iterator.m()) {
388
- var element = tmp0_iterator.p();
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.c4d_1.f4d_1;
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 tmp1_mapNotNull = tmp$ret$2;
409
+ var tmp3_mapNotNull = tmp$ret$2;
399
410
  var tmp$ret$5;
400
411
  // Inline function 'kotlin.collections.mapNotNullTo' call
401
- var tmp0_mapNotNullTo = ArrayList_init_$Create$();
412
+ var tmp2_mapNotNullTo = ArrayList_init_$Create$();
402
413
  // Inline function 'kotlin.collections.forEach' call
403
- var tmp0_iterator_0 = tmp1_mapNotNull.j();
414
+ var tmp0_iterator_0 = tmp3_mapNotNull.j();
404
415
  while (tmp0_iterator_0.m()) {
405
- var element_0 = tmp0_iterator_0.p();
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.c4d_1.e4d_1);
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,60 +425,64 @@
414
425
  var tmp$ret$4;
415
426
  // Inline function 'kotlin.let' call
416
427
  // Inline function 'kotlin.contracts.contract' call
417
- tmp0_mapNotNullTo.g(tmp0_safe_receiver);
428
+ tmp2_mapNotNullTo.g(tmp0_safe_receiver);
418
429
  tmp$ret$4 = Unit_getInstance();
419
430
  }
420
431
  }
421
- tmp$ret$5 = tmp0_mapNotNullTo;
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
- this.e4d_1 = clauseScopedParents;
427
- this.f4d_1 = isChoicePointChild;
428
- this.g4d_1 = toCutContextsParent;
429
- this.h4d_1 = logicalParentRequests;
430
- this.i4d_1 = throwNonSelectableParentContexts;
431
- this.j4d_1 = throwRelatedToCutContextsParent;
432
- }
433
- SideEffectManagerImpl.prototype.k4d = function () {
434
- var tmp = plus(this.g4d_1, getFirstChoicePointContext(this));
435
- return this.l4d(null, false, tmp, null, null, null, 59, null);
436
- };
437
- SideEffectManagerImpl.prototype.cut = function () {
438
- return this.k4d();
439
- };
440
- SideEffectManagerImpl.prototype.m4d = function (currentContext) {
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.e4d_1);
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.ua(0, currentContext);
462
+ tmp0_apply.za(0, currentContext);
447
463
  tmp$ret$0 = tmp0_apply;
448
- var tmp = tmp$ret$0;
449
- return this.l4d(tmp, false, null, null, null, null, 60, null);
464
+ return this.d4b(tmp$ret$0, false);
450
465
  };
451
- SideEffectManagerImpl.prototype.n4d = function (currentContext, isChoicePointChild, logicalParentRequest) {
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.e4d_1);
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.ua(0, currentContext);
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.h4d_1.v(tmp0_subject)) {
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.h4d_1;
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();
469
484
  while (tmp0_iterator.m()) {
470
- var item = tmp0_iterator.p();
485
+ var item = tmp0_iterator.n();
471
486
  if (yielding) {
472
487
  list.g(item);
473
488
  } else {
@@ -485,46 +500,43 @@
485
500
  } else {
486
501
  var tmp$ret$3;
487
502
  // Inline function 'kotlin.apply' call
488
- var tmp2_apply = toMutableList(this.h4d_1);
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.ua(0, logicalParentRequest);
506
+ tmp2_apply.za(0, logicalParentRequest);
492
507
  tmp$ret$3 = tmp2_apply;
493
508
  tmp_0 = tmp$ret$3;
494
509
  }
495
- var tmp_1 = tmp_0;
496
- return this.l4d(tmp, isChoicePointChild, null, tmp_1, null, null, 52, null);
510
+ return this.d4b(tmp, isChoicePointChild, VOID, tmp_0);
497
511
  };
498
- SideEffectManagerImpl.prototype.o4d = function () {
499
- var tmp = listOf(first_0(this.e4d_1));
500
- return this.l4d(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.prototype.p4d = function (upperScopeSideEffectsManager) {
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.e4d_1);
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.e4d_1);
521
+ tmp0_apply.t(upperScopeSideEffectsManager.w4a_1);
509
522
  tmp$ret$0 = tmp0_apply;
510
- var tmp = tmp$ret$0;
511
- return this.l4d(tmp, false, null, null, null, null, 62, null);
523
+ return this.d4b(tmp$ret$0);
512
524
  };
513
- SideEffectManagerImpl.prototype.q4d = function () {
514
- return contains(this.g4d_1, lastOrNull(this.e4d_1)) ? true : this.r4d();
525
+ protoOf(SideEffectManagerImpl).i4b = function () {
526
+ return contains(this.y4a_1, lastOrNull(this.w4a_1)) ? true : this.j4b();
515
527
  };
516
- SideEffectManagerImpl.prototype.s4d = function (toUnifyArgument) {
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 tmp0_filter = this.h4d_1;
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 = tmp0_filter.j();
537
+ var tmp0_iterator = tmp1_filter.j();
526
538
  while (tmp0_iterator.m()) {
527
- var element = tmp0_iterator.p();
539
+ var element = tmp0_iterator.n();
528
540
  var tmp$ret$0;
529
541
  // Inline function 'it.unibo.tuprolog.solve.streams.solver.SideEffectManagerImpl.retrieveAncestorCatchRequest.<anonymous>' call
530
542
  tmp$ret$0 = element.signature.equals(Catch_getInstance().signature);
@@ -534,21 +546,21 @@
534
546
  }
535
547
  tmp$ret$1 = tmp0_filterTo;
536
548
  tmp$ret$2 = tmp$ret$1;
537
- var tmp1_filterNot = tmp$ret$2;
549
+ var tmp3_filterNot = tmp$ret$2;
538
550
  var tmp$ret$4;
539
551
  // Inline function 'kotlin.collections.filterNotTo' call
540
- var tmp0_filterNotTo = ArrayList_init_$Create$();
541
- var tmp0_iterator_0 = tmp1_filterNot.j();
552
+ var tmp2_filterNotTo = ArrayList_init_$Create$();
553
+ var tmp0_iterator_0 = tmp3_filterNot.j();
542
554
  while (tmp0_iterator_0.m()) {
543
- var element_0 = tmp0_iterator_0.p();
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.i4d_1, element_0.context);
558
+ tmp$ret$3 = contains(this.a4b_1, element_0.context);
547
559
  if (!tmp$ret$3) {
548
- tmp0_filterNotTo.g(element_0);
560
+ tmp2_filterNotTo.g(element_0);
549
561
  }
550
562
  }
551
- tmp$ret$4 = tmp0_filterNotTo;
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;
@@ -558,10 +570,10 @@
558
570
  // Inline function 'kotlin.collections.firstOrNull' call
559
571
  var tmp0_iterator_1 = ancestorCatchesRequests.j();
560
572
  while (tmp0_iterator_1.m()) {
561
- var element_1 = tmp0_iterator_1.p();
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 = Companion_getInstance_1().matches(element_1.arguments.n(1), toUnifyArgument);
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.prototype.t4d = function (ancestorCatchContext) {
576
- return this.l4d(null, false, null, null, null, ancestorCatchContext, 31, null);
587
+ protoOf(SideEffectManagerImpl).l4b = function (ancestorCatchContext) {
588
+ return this.d4b(VOID, VOID, VOID, VOID, VOID, ancestorCatchContext);
577
589
  };
578
- SideEffectManagerImpl.prototype.u4d = function (contextImpl) {
579
- return equals(this.j4d_1, contextImpl);
590
+ protoOf(SideEffectManagerImpl).m4b = function (contextImpl) {
591
+ return equals(this.b4b_1, contextImpl);
580
592
  };
581
- SideEffectManagerImpl.prototype.v4d = function (contextImpl) {
582
- var tmp = plus_0(this.i4d_1, contextImpl);
583
- return this.l4d(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.prototype.w4d = function (toRecoverSituation) {
586
- return this.l4d(null, false, toRecoverSituation.g4d_1, null, null, null, 59, null);
596
+ protoOf(SideEffectManagerImpl).o4b = function (toRecoverSituation) {
597
+ return this.d4b(VOID, VOID, toRecoverSituation.y4a_1);
587
598
  };
588
- SideEffectManagerImpl.prototype.r4d = function () {
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.h4d_1;
603
+ var tmp0_any = this.z4a_1;
593
604
  var tmp;
594
605
  if (isInterface(tmp0_any, Collection)) {
595
606
  tmp = tmp0_any.d();
@@ -602,10 +613,10 @@
602
613
  }
603
614
  var tmp0_iterator = tmp0_any.j();
604
615
  while (tmp0_iterator.m()) {
605
- var element = tmp0_iterator.p();
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.j4d_1);
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.prototype.x4d = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
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.prototype.l4d = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $mask0, $handler) {
622
- if (!(($mask0 & 1) === 0))
623
- clauseScopedParents = this.e4d_1;
624
- if (!(($mask0 & 2) === 0))
625
- isChoicePointChild = this.f4d_1;
626
- if (!(($mask0 & 4) === 0))
627
- toCutContextsParent = this.g4d_1;
628
- if (!(($mask0 & 8) === 0))
629
- logicalParentRequests = this.h4d_1;
630
- if (!(($mask0 & 16) === 0))
631
- throwNonSelectableParentContexts = this.i4d_1;
632
- if (!(($mask0 & 32) === 0))
633
- throwRelatedToCutContextsParent = this.j4d_1;
634
- return this.x4d(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
635
- };
636
- SideEffectManagerImpl.prototype.toString = function () {
637
- return 'SideEffectManagerImpl(clauseScopedParents=' + this.e4d_1 + ', isChoicePointChild=' + this.f4d_1 + ', toCutContextsParent=' + this.g4d_1 + ', logicalParentRequests=' + this.h4d_1 + ', throwNonSelectableParentContexts=' + this.i4d_1 + ', throwRelatedToCutContextsParent=' + this.j4d_1 + ')';
638
- };
639
- SideEffectManagerImpl.prototype.hashCode = function () {
640
- var result = hashCode(this.e4d_1);
641
- result = imul(result, 31) + (this.f4d_1 | 0) | 0;
642
- result = imul(result, 31) + hashCode(this.g4d_1) | 0;
643
- result = imul(result, 31) + hashCode(this.h4d_1) | 0;
644
- result = imul(result, 31) + hashCode(this.i4d_1) | 0;
645
- result = imul(result, 31) + (this.j4d_1 == null ? 0 : this.j4d_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.prototype.equals = function (other) {
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.e4d_1, tmp0_other_with_cast.e4d_1))
659
+ if (!equals(this.w4a_1, tmp0_other_with_cast.w4a_1))
655
660
  return false;
656
- if (!(this.f4d_1 === tmp0_other_with_cast.f4d_1))
661
+ if (!(this.x4a_1 === tmp0_other_with_cast.x4a_1))
657
662
  return false;
658
- if (!equals(this.g4d_1, tmp0_other_with_cast.g4d_1))
663
+ if (!equals(this.y4a_1, tmp0_other_with_cast.y4a_1))
659
664
  return false;
660
- if (!equals(this.h4d_1, tmp0_other_with_cast.h4d_1))
665
+ if (!equals(this.z4a_1, tmp0_other_with_cast.z4a_1))
661
666
  return false;
662
- if (!equals(this.i4d_1, tmp0_other_with_cast.i4d_1))
667
+ if (!equals(this.a4b_1, tmp0_other_with_cast.a4b_1))
663
668
  return false;
664
- if (!equals(this.j4d_1, tmp0_other_with_cast.j4d_1))
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.w4d(toRecoverSituation);
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.u4d(context);
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.r4d();
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.q4d();
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.p4d(upperScopeSideEffectsManager);
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(Companion_getInstance_2().bodyWellFormedVisitor);
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.y2i(otherResponse.solution, tmp, tmp$ret$0.slice());
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.gw();
713
- var tmp_1 = toPropagateContextData.w1u();
714
- var tmp_2 = toPropagateContextData.x1u();
715
- var tmp_3 = toPropagateContextData.y1u();
716
- var tmp_4 = toPropagateContextData.z1u();
717
- var tmp_5 = toPropagateContextData.a1v();
718
- var tmp_6 = toPropagateContextData.b1v();
719
- var tmp_7 = _this__u8e3s4.context.y4c_1.plus(toAddSubstitutions);
720
- var tmp_8 = isInterface(tmp_7, Unifier) ? tmp_7 : THROW_CCE();
721
- var tmp_9 = new Long(0, 0);
722
- var tmp_10 = new Long(0, 0);
723
- var tmp_11 = _this__u8e3s4.context.y4d(null, tmp_1, tmp_2, tmp_3, tmp_4, null, tmp_5, tmp_6, null, tmp_8, tmp_9, tmp_10, null, baseSideEffectManager.n4d(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4), 7457, null);
724
- return _this__u8e3s4.j2j(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.c4d_1;
733
- if (!(($mask0 & 16) === 0))
734
- requestIssuingInstant = _this__u8e3s4.d2a_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(Companion_getInstance_4().of(_this__u8e3s4, [])).gw()).zw();
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);
@@ -754,7 +747,7 @@
754
747
  // Inline function 'kotlin.collections.forEach' call
755
748
  var tmp0_iterator = _this__u8e3s4.j();
756
749
  while (tmp0_iterator.m()) {
757
- var element = tmp0_iterator.p();
750
+ var element = tmp0_iterator.n();
758
751
  // Inline function 'it.unibo.tuprolog.solve.streams.solver.addWithNoDuplicates.<anonymous>' call
759
752
  var tmp$ret$2;
760
753
  // Inline function 'kotlin.collections.find' call
@@ -763,7 +756,7 @@
763
756
  // Inline function 'kotlin.collections.firstOrNull' call
764
757
  var tmp0_iterator_0 = toAddSideEffects.j();
765
758
  while (tmp0_iterator_0.m()) {
766
- var element_0 = tmp0_iterator_0.p();
759
+ var element_0 = tmp0_iterator_0.n();
767
760
  var tmp$ret$0;
768
761
  // Inline function 'it.unibo.tuprolog.solve.streams.solver.addWithNoDuplicates.<anonymous>.<anonymous>' call
769
762
  tmp$ret$0 = element === element_0;
@@ -793,7 +786,7 @@
793
786
  if (!tmp0_with.m()) {
794
787
  tmp = false;
795
788
  } else {
796
- tmp0_with.p();
789
+ tmp0_with.n();
797
790
  tmp = tmp0_with.m();
798
791
  }
799
792
  tmp$ret$0 = tmp;
@@ -806,40 +799,40 @@
806
799
  };
807
800
  }
808
801
  function orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
809
- this.h4e_1 = $selectionStrategy;
810
- this.i4e_1 = $this_orderWithStrategy;
811
- this.j4e_1 = $context;
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.prototype.m4e = function ($this$sequence, $cont) {
815
- var tmp = this.n4e($this$sequence, $cont);
816
- tmp.ei_1 = Unit_getInstance();
817
- tmp.fi_1 = null;
818
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
821
- return this.m4e(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
813
+ protoOf(orderWithStrategy$slambda).ui = function (p1, $completion) {
814
+ return this.e4c(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
822
815
  };
823
- orderWithStrategy$slambda.prototype.ki = function () {
824
- var suspendResult = this.ei_1;
816
+ protoOf(orderWithStrategy$slambda).ii = function () {
817
+ var suspendResult = this.ci_1;
825
818
  $sm: do
826
819
  try {
827
- var tmp = this.ci_1;
820
+ var tmp = this.ai_1;
828
821
  switch (tmp) {
829
822
  case 0:
830
- this.di_1 = 3;
823
+ this.bi_1 = 3;
831
824
  var tmp_0 = this;
832
- tmp_0.l4e_1 = this.h4e_1(this.i4e_1, this.j4e_1);
833
- this.ci_1 = 1;
834
- suspendResult = this.k4e_1.z4(this.l4e_1, 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.ci_1 = 2;
842
- suspendResult = this.k4e_1.c5(orderWithStrategy(filterIndexed(this.i4e_1, orderWithStrategy$slambda$lambda(this.i4e_1, this.l4e_1)), this.j4e_1, this.h4e_1), 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.fi_1;
844
+ throw this.di_1;
852
845
  }
853
846
  } catch ($p) {
854
- if (this.di_1 === 3) {
855
- throw $p;
847
+ var e = $p;
848
+ if (this.bi_1 === 3) {
849
+ throw e;
856
850
  } else {
857
- this.ci_1 = this.di_1;
858
- this.fi_1 = $p;
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.prototype.n4e = function ($this$sequence, completion) {
864
- var i = new orderWithStrategy$slambda(this.h4e_1, this.i4e_1, this.j4e_1, completion);
865
- i.k4e_1 = $this$sequence;
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, $cont) {
871
- return i.m4e($this$sequence, $cont);
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$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $marker, $this) {
877
- if (!(($mask0 & 1) === 0))
878
- unificator = Companion_getInstance_1().h1l();
879
- if (!(($mask0 & 2) === 0))
880
- libraries = Companion_getInstance_5().empty();
881
- if (!(($mask0 & 4) === 0))
882
- flags = Companion_getInstance_6().empty();
883
- if (!(($mask0 & 8) === 0))
884
- staticKb = Companion_getInstance_7().empty(unificator);
885
- if (!(($mask0 & 16) === 0))
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.v1z(null, 1, null);
892
- }
893
- if (!(($mask0 & 128) === 0)) {
894
- var tmp_0 = Companion_getInstance_0();
895
- outputChannels = tmp_0.w1z(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().j4c_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.k1l();
920
- var tmp_0 = context.w1u();
921
- var tmp_1 = context.x1u();
922
- var tmp_2 = context.y1u();
923
- var tmp_3 = context.z1u();
924
- var tmp_4 = context.h1v();
925
- var tmp_5 = context.a1v();
926
- var tmp_6 = context.b1v();
927
- var tmp_7 = context.t1u();
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.b4d_1;
932
- var tmp_10 = tmp1_elvis_lhs == null ? Companion_getInstance_15().j4c_1 : tmp1_elvis_lhs;
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.c4d_1;
935
- var tmp_11;
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$_0(context, newCurrentSubstitution) {
945
- return StreamsExecutionContext_init_$Init$_0(context, newCurrentSubstitution, Object.create(StreamsExecutionContext.prototype));
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.x1v();
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.c4d_1.h4d_1);
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
- this.p4c_1 = unificator;
958
- this.q4c_1 = libraries;
959
- this.r4c_1 = flags;
960
- this.s4c_1 = staticKb;
961
- this.t4c_1 = dynamicKb;
962
- this.u4c_1 = operators;
963
- this.v4c_1 = inputChannels;
964
- this.w4c_1 = outputChannels;
965
- this.x4c_1 = customData;
966
- this.y4c_1 = substitution;
967
- this.z4c_1 = startTime;
968
- this.a4d_1 = maxDuration;
969
- this.b4d_1 = solverStrategies;
970
- this.c4d_1 = sideEffectManager;
971
- var tmp = this;
972
- tmp.d4d_1 = lazy(StreamsExecutionContext$logicStackTrace$delegate$lambda(this));
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.prototype.k1l = function () {
975
- return this.p4c_1;
939
+ protoOf(StreamsExecutionContext).k1k = function () {
940
+ return this.h4a_1;
976
941
  };
977
- StreamsExecutionContext.prototype.w1u = function () {
978
- return this.q4c_1;
942
+ protoOf(StreamsExecutionContext).v1t = function () {
943
+ return this.i4a_1;
979
944
  };
980
- StreamsExecutionContext.prototype.x1u = function () {
981
- return this.r4c_1;
945
+ protoOf(StreamsExecutionContext).w1t = function () {
946
+ return this.j4a_1;
982
947
  };
983
- StreamsExecutionContext.prototype.y1u = function () {
984
- return this.s4c_1;
948
+ protoOf(StreamsExecutionContext).x1t = function () {
949
+ return this.k4a_1;
985
950
  };
986
- StreamsExecutionContext.prototype.z1u = function () {
987
- return this.t4c_1;
951
+ protoOf(StreamsExecutionContext).y1t = function () {
952
+ return this.l4a_1;
988
953
  };
989
- StreamsExecutionContext.prototype.h1v = function () {
990
- return this.u4c_1;
954
+ protoOf(StreamsExecutionContext).e1u = function () {
955
+ return this.m4a_1;
991
956
  };
992
- StreamsExecutionContext.prototype.a1v = function () {
993
- return this.v4c_1;
957
+ protoOf(StreamsExecutionContext).z1t = function () {
958
+ return this.n4a_1;
994
959
  };
995
- StreamsExecutionContext.prototype.b1v = function () {
996
- return this.w4c_1;
960
+ protoOf(StreamsExecutionContext).a1u = function () {
961
+ return this.o4a_1;
997
962
  };
998
- StreamsExecutionContext.prototype.t1u = function () {
999
- return this.x4c_1;
963
+ protoOf(StreamsExecutionContext).t1t = function () {
964
+ return this.p4a_1;
1000
965
  };
1001
- StreamsExecutionContext.prototype.r1u = function () {
1002
- return this.y4c_1;
966
+ protoOf(StreamsExecutionContext).r1t = function () {
967
+ return this.q4a_1;
1003
968
  };
1004
- StreamsExecutionContext.prototype.l1u = function () {
1005
- return this.z4c_1;
969
+ protoOf(StreamsExecutionContext).l1t = function () {
970
+ return this.r4a_1;
1006
971
  };
1007
- StreamsExecutionContext.prototype.n1u = function () {
1008
- return this.a4d_1;
972
+ protoOf(StreamsExecutionContext).n1t = function () {
973
+ return this.s4a_1;
1009
974
  };
1010
- StreamsExecutionContext.prototype.q1u = function () {
975
+ protoOf(StreamsExecutionContext).q1t = function () {
1011
976
  var tmp$ret$2;
1012
977
  // Inline function 'kotlin.collections.map' call
1013
- var tmp0_map = this.c4d_1.h4d_1;
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(tmp0_map, 10));
1017
- var tmp0_iterator = tmp0_map.j();
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
- var item = tmp0_iterator.p();
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.x1v();
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.prototype.s1u = function () {
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.d4d_1.b1();
998
+ tmp$ret$0 = this.v4a_1.b1();
1034
999
  return tmp$ret$0;
1035
1000
  };
1036
- StreamsExecutionContext.prototype.u1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
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.prototype.c1v = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
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.prototype.b37 = function (sideEffect) {
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.prototype.apply = function (sideEffect) {
1047
- return this.b37(sideEffect);
1011
+ protoOf(StreamsExecutionContext).apply = function (sideEffect) {
1012
+ return this.u34(sideEffect);
1048
1013
  };
1049
- StreamsExecutionContext.prototype.c37 = function (sideEffects) {
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.prototype.applyIterable = function (sideEffects) {
1054
- return this.c37(sideEffects);
1018
+ protoOf(StreamsExecutionContext).applyIterable = function (sideEffects) {
1019
+ return this.v34(sideEffects);
1055
1020
  };
1056
- StreamsExecutionContext.prototype.d37 = function (sideEffects) {
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.prototype.applySequence = function (sideEffects) {
1061
- return this.d37(sideEffects);
1025
+ protoOf(StreamsExecutionContext).applySequence = function (sideEffects) {
1026
+ return this.w34(sideEffects);
1062
1027
  };
1063
- StreamsExecutionContext.prototype.f1v = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
1064
- var tmp = new Long(0, 0);
1065
- var tmp_0 = new Long(0, 0);
1066
- return this.y4d(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.prototype.o4e = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
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.prototype.y4d = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $mask0, $handler) {
1072
- if (!(($mask0 & 1) === 0))
1073
- unificator = this.p4c_1;
1074
- if (!(($mask0 & 2) === 0))
1075
- libraries = this.q4c_1;
1076
- if (!(($mask0 & 4) === 0))
1077
- flags = this.r4c_1;
1078
- if (!(($mask0 & 8) === 0))
1079
- staticKb = this.s4c_1;
1080
- if (!(($mask0 & 16) === 0))
1081
- dynamicKb = this.t4c_1;
1082
- if (!(($mask0 & 32) === 0))
1083
- operators = this.u4c_1;
1084
- if (!(($mask0 & 64) === 0))
1085
- inputChannels = this.v4c_1;
1086
- if (!(($mask0 & 128) === 0))
1087
- outputChannels = this.w4c_1;
1088
- if (!(($mask0 & 256) === 0))
1089
- customData = this.x4c_1;
1090
- if (!(($mask0 & 512) === 0))
1091
- substitution = this.y4c_1;
1092
- if (!(($mask0 & 1024) === 0))
1093
- startTime = this.z4c_1;
1094
- if (!(($mask0 & 2048) === 0))
1095
- maxDuration = this.a4d_1;
1096
- if (!(($mask0 & 4096) === 0))
1097
- solverStrategies = this.b4d_1;
1098
- if (!(($mask0 & 8192) === 0))
1099
- sideEffectManager = this.c4d_1;
1100
- return this.o4e(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
1101
- };
1102
- StreamsExecutionContext.prototype.toString = function () {
1103
- return 'StreamsExecutionContext(unificator=' + this.p4c_1 + ', libraries=' + this.q4c_1 + ', flags=' + this.r4c_1 + ', staticKb=' + this.s4c_1 + ', dynamicKb=' + this.t4c_1 + ', operators=' + this.u4c_1 + ', inputChannels=' + this.v4c_1 + ', outputChannels=' + this.w4c_1 + ', customData=' + this.x4c_1 + ', substitution=' + this.y4c_1 + ', startTime=' + toString(this.z4c_1) + ', maxDuration=' + toString(this.a4d_1) + ', solverStrategies=' + this.b4d_1 + ', sideEffectManager=' + this.c4d_1 + ')';
1104
- };
1105
- StreamsExecutionContext.prototype.hashCode = function () {
1106
- var result = hashCode(this.p4c_1);
1107
- result = imul(result, 31) + hashCode(this.q4c_1) | 0;
1108
- result = imul(result, 31) + this.r4c_1.hashCode() | 0;
1109
- result = imul(result, 31) + hashCode(this.s4c_1) | 0;
1110
- result = imul(result, 31) + hashCode(this.t4c_1) | 0;
1111
- result = imul(result, 31) + this.u4c_1.hashCode() | 0;
1112
- result = imul(result, 31) + hashCode(this.v4c_1) | 0;
1113
- result = imul(result, 31) + hashCode(this.w4c_1) | 0;
1114
- result = imul(result, 31) + this.x4c_1.hashCode() | 0;
1115
- result = imul(result, 31) + hashCode(this.y4c_1) | 0;
1116
- result = imul(result, 31) + this.z4c_1.hashCode() | 0;
1117
- result = imul(result, 31) + this.a4d_1.hashCode() | 0;
1118
- result = imul(result, 31) + hashCode(this.b4d_1) | 0;
1119
- result = imul(result, 31) + this.c4d_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.prototype.equals = function (other) {
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.p4c_1, tmp0_other_with_cast.p4c_1))
1077
+ if (!equals(this.h4a_1, tmp0_other_with_cast.h4a_1))
1129
1078
  return false;
1130
- if (!equals(this.q4c_1, tmp0_other_with_cast.q4c_1))
1079
+ if (!equals(this.i4a_1, tmp0_other_with_cast.i4a_1))
1131
1080
  return false;
1132
- if (!this.r4c_1.equals(tmp0_other_with_cast.r4c_1))
1081
+ if (!this.j4a_1.equals(tmp0_other_with_cast.j4a_1))
1133
1082
  return false;
1134
- if (!equals(this.s4c_1, tmp0_other_with_cast.s4c_1))
1083
+ if (!equals(this.k4a_1, tmp0_other_with_cast.k4a_1))
1135
1084
  return false;
1136
- if (!equals(this.t4c_1, tmp0_other_with_cast.t4c_1))
1085
+ if (!equals(this.l4a_1, tmp0_other_with_cast.l4a_1))
1137
1086
  return false;
1138
- if (!this.u4c_1.equals(tmp0_other_with_cast.u4c_1))
1087
+ if (!this.m4a_1.equals(tmp0_other_with_cast.m4a_1))
1139
1088
  return false;
1140
- if (!equals(this.v4c_1, tmp0_other_with_cast.v4c_1))
1089
+ if (!equals(this.n4a_1, tmp0_other_with_cast.n4a_1))
1141
1090
  return false;
1142
- if (!equals(this.w4c_1, tmp0_other_with_cast.w4c_1))
1091
+ if (!equals(this.o4a_1, tmp0_other_with_cast.o4a_1))
1143
1092
  return false;
1144
- if (!this.x4c_1.equals(tmp0_other_with_cast.x4c_1))
1093
+ if (!this.p4a_1.equals(tmp0_other_with_cast.p4a_1))
1145
1094
  return false;
1146
- if (!equals(this.y4c_1, tmp0_other_with_cast.y4c_1))
1095
+ if (!equals(this.q4a_1, tmp0_other_with_cast.q4a_1))
1147
1096
  return false;
1148
- if (!this.z4c_1.equals(tmp0_other_with_cast.z4c_1))
1097
+ if (!this.r4a_1.equals(tmp0_other_with_cast.r4a_1))
1149
1098
  return false;
1150
- if (!this.a4d_1.equals(tmp0_other_with_cast.a4d_1))
1099
+ if (!this.s4a_1.equals(tmp0_other_with_cast.s4a_1))
1151
1100
  return false;
1152
- if (!equals(this.b4d_1, tmp0_other_with_cast.b4d_1))
1101
+ if (!equals(this.t4a_1, tmp0_other_with_cast.t4a_1))
1153
1102
  return false;
1154
- if (!this.c4d_1.equals(tmp0_other_with_cast.c4d_1))
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.c4d_1;
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.s1u();
1113
+ return receiver.s1t();
1165
1114
  }, null);
1166
1115
  }
1167
1116
  function AbstractState(solve) {
1168
- this.p4e_1 = solve;
1169
- this.q4e_1 = false;
1117
+ this.h4c_1 = solve;
1118
+ this.i4c_1 = false;
1170
1119
  }
1171
- AbstractState.prototype.r4e = function () {
1172
- return this.q4e_1;
1120
+ protoOf(AbstractState).j4c = function () {
1121
+ return this.i4c_1;
1173
1122
  };
1174
1123
  function AlreadyExecutedState(wrappedState) {
1175
- this.t4e_1 = wrappedState;
1176
- this.u4e_1 = true;
1124
+ this.l4c_1 = wrappedState;
1125
+ this.m4c_1 = true;
1177
1126
  }
1178
- AlreadyExecutedState.prototype.s4e = function () {
1179
- return this.t4e_1.s4e();
1127
+ protoOf(AlreadyExecutedState).k4c = function () {
1128
+ return this.l4c_1.k4c();
1180
1129
  };
1181
- AlreadyExecutedState.prototype.r4e = function () {
1182
- return this.u4e_1;
1130
+ protoOf(AlreadyExecutedState).j4c = function () {
1131
+ return this.m4c_1;
1183
1132
  };
1184
- AlreadyExecutedState.prototype.toString = function () {
1185
- return 'AlreadyExecutedState of: ' + this.t4e_1;
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.r4e()) {
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().v4e(it);
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.e4f_1 = $state;
1174
+ this.w4c_1 = $state;
1226
1175
  CoroutineImpl.call(this, resultContinuation);
1227
1176
  }
1228
- StateMachineExecutor$internalExecute$slambda.prototype.j4f = function ($this$sequence, $cont) {
1229
- var tmp = this.k4f($this$sequence, $cont);
1230
- tmp.ei_1 = Unit_getInstance();
1231
- tmp.fi_1 = null;
1232
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
1235
- return this.j4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
1238
- var suspendResult = this.ei_1;
1186
+ protoOf(StateMachineExecutor$internalExecute$slambda).ii = function () {
1187
+ var suspendResult = this.ci_1;
1239
1188
  $sm: do
1240
1189
  try {
1241
- var tmp = this.ci_1;
1190
+ var tmp = this.ai_1;
1242
1191
  switch (tmp) {
1243
1192
  case 0:
1244
- this.di_1 = 5;
1245
- this.ci_1 = 1;
1246
- suspendResult = this.f4f_1.z4(this.e4f_1, 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.g4f_1 = this.e4f_1.s4e();
1255
- this.h4f_1 = this.g4f_1.j();
1256
- this.ci_1 = 2;
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.h4f_1.m()) {
1260
- this.ci_1 = 4;
1208
+ if (!this.z4c_1.m()) {
1209
+ this.ai_1 = 4;
1261
1210
  continue $sm;
1262
1211
  }
1263
1212
 
1264
- this.i4f_1 = this.h4f_1.p();
1265
- this.ci_1 = 3;
1266
- suspendResult = this.f4f_1.c5(internalExecute(StateMachineExecutor_getInstance(), this.i4f_1), 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.ci_1 = 2;
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.fi_1;
1227
+ throw this.di_1;
1279
1228
  }
1280
1229
  } catch ($p) {
1281
- if (this.di_1 === 5) {
1282
- throw $p;
1230
+ var e = $p;
1231
+ if (this.bi_1 === 5) {
1232
+ throw e;
1283
1233
  } else {
1284
- this.ci_1 = this.di_1;
1285
- this.fi_1 = $p;
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.prototype.k4f = function ($this$sequence, completion) {
1291
- var i = new StateMachineExecutor$internalExecute$slambda(this.e4f_1, completion);
1292
- i.f4f_1 = $this$sequence;
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, $cont) {
1298
- return i.j4f($this$sequence, $cont);
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.prototype.m4c = function (state) {
1256
+ protoOf(StateMachineExecutor).e4a = function (state) {
1307
1257
  var tmp;
1308
- if (state.r4e()) {
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.prototype.l4f = function (state) {
1317
- var tmp = this.m4c(state);
1266
+ protoOf(StateMachineExecutor).d4d = function (state) {
1267
+ var tmp = this.e4a(state);
1318
1268
  return map(tmp, StateMachineExecutor$executeWrapping$lambda);
1319
1269
  };
1320
- StateMachineExecutor.prototype.v4e = function (_this__u8e3s4) {
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.t4e_1;
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
- var tmp = 'Given time for `' + _this__u8e3s4.k4c().x1v() + '` computation (' + toString(_this__u8e3s4.k4c().e2a_1) + ") wasn't enough for completion";
1338
- var tmp_0 = TimeOutException_init_$Create$(tmp, null, _this__u8e3s4.k4c().context, _this__u8e3s4.k4c().e2a_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.p4f_1.b1();
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.jd(maxDuration) >= 0;
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 Companion_getInstance_17() {
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
- Companion_getInstance_17();
1312
+ Companion_getInstance_20();
1365
1313
  AbstractState.call(this, solve);
1366
- this.o4f_1 = solve;
1314
+ this.g4d_1 = solve;
1367
1315
  var tmp = this;
1368
- tmp.p4f_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
1316
+ tmp.h4d_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
1369
1317
  }
1370
- AbstractTimedState.prototype.k4c = function () {
1371
- return this.o4f_1;
1318
+ protoOf(AbstractTimedState).c4a = function () {
1319
+ return this.g4d_1;
1372
1320
  };
1373
- AbstractTimedState.prototype.s4e = function () {
1321
+ protoOf(AbstractTimedState).k4c = function () {
1374
1322
  var tmp;
1375
- var tmp_0 = this.k4c().e2a_1;
1376
- Companion_getInstance_9();
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.q4f();
1326
+ tmp = this.i4d();
1379
1327
  } else {
1380
- if (timeIsOver(this, _get_stateCurrentTime__3c8uza(this).ch(this.k4c().d2a_1), this.k4c().e2a_1)) {
1381
- tmp = sequenceOf([statEndHaltTimeout(this, Companion_getInstance_17())]);
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.q4f();
1331
+ tmp = this.i4d();
1384
1332
  }
1385
1333
  }
1386
1334
  return tmp;
1387
1335
  };
1388
- AbstractTimedState.prototype.r4f = function (_this__u8e3s4, toYieldState) {
1389
- return timeIsOver(this, currentTimeInstant().ch(_this__u8e3s4.k4c().d2a_1), _this__u8e3s4.k4c().e2a_1) ? statEndHaltTimeout(_this__u8e3s4, Companion_getInstance_17()) : toYieldState;
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.prototype.toString = function () {
1392
- return '' + getKClassFromExpression(this) + ' with ' + this.k4c();
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.y4f_1.solution;
1402
- return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).c1w();
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.f4g_1 = sourceContext;
1408
- this.g4g_1 = solve;
1355
+ this.x4d_1 = sourceContext;
1356
+ this.y4d_1 = solve;
1409
1357
  // Inline function 'kotlin.require' call
1410
- var tmp = this.g4g_1.solution;
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.g4g_1.solution + '`';
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.prototype.k4c = function () {
1422
- return this.g4g_1;
1369
+ protoOf(True).c4a = function () {
1370
+ return this.y4d_1;
1423
1371
  };
1424
- True.prototype.toString = function () {
1425
- return 'True(sourceContext=' + this.f4g_1 + ', solve=' + this.g4g_1 + ')';
1372
+ protoOf(True).toString = function () {
1373
+ return 'True(sourceContext=' + this.x4d_1 + ', solve=' + this.y4d_1 + ')';
1426
1374
  };
1427
- True.prototype.hashCode = function () {
1428
- var result = hashCode(this.f4g_1);
1429
- result = imul(result, 31) + this.g4g_1.hashCode() | 0;
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.prototype.equals = function (other) {
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.f4g_1, tmp0_other_with_cast.f4g_1))
1386
+ if (!equals(this.x4d_1, tmp0_other_with_cast.x4d_1))
1439
1387
  return false;
1440
- if (!this.g4g_1.equals(tmp0_other_with_cast.g4g_1))
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.r4g_1 = sourceContext;
1447
- this.s4g_1 = solve;
1394
+ this.j4e_1 = sourceContext;
1395
+ this.k4e_1 = solve;
1448
1396
  // Inline function 'kotlin.require' call
1449
- var tmp = this.s4g_1.solution;
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.s4g_1.solution + '`';
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.prototype.k4c = function () {
1461
- return this.s4g_1;
1408
+ protoOf(False).c4a = function () {
1409
+ return this.k4e_1;
1462
1410
  };
1463
- False.prototype.toString = function () {
1464
- return 'False(sourceContext=' + this.r4g_1 + ', solve=' + this.s4g_1 + ')';
1411
+ protoOf(False).toString = function () {
1412
+ return 'False(sourceContext=' + this.j4e_1 + ', solve=' + this.k4e_1 + ')';
1465
1413
  };
1466
- False.prototype.hashCode = function () {
1467
- var result = hashCode(this.r4g_1);
1468
- result = imul(result, 31) + this.s4g_1.hashCode() | 0;
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.prototype.equals = function (other) {
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.r4g_1, tmp0_other_with_cast.r4g_1))
1425
+ if (!equals(this.j4e_1, tmp0_other_with_cast.j4e_1))
1478
1426
  return false;
1479
- if (!this.s4g_1.equals(tmp0_other_with_cast.s4g_1))
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.x4f_1 = sourceContext;
1486
- this.y4f_1 = solve;
1433
+ this.p4d_1 = sourceContext;
1434
+ this.q4d_1 = solve;
1487
1435
  // Inline function 'kotlin.require' call
1488
- var tmp = this.y4f_1.solution;
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.y4f_1.solution + '`';
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.z4f_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
1447
+ tmp_0.r4d_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
1500
1448
  }
1501
- Halt_0.prototype.k4c = function () {
1502
- return this.y4f_1;
1449
+ protoOf(Halt_0).c4a = function () {
1450
+ return this.q4d_1;
1503
1451
  };
1504
- Halt_0.prototype.toString = function () {
1505
- return 'Halt(sourceContext=' + this.x4f_1 + ', solve=' + this.y4f_1 + ')';
1452
+ protoOf(Halt_0).toString = function () {
1453
+ return 'Halt(sourceContext=' + this.p4d_1 + ', solve=' + this.q4d_1 + ')';
1506
1454
  };
1507
- Halt_0.prototype.hashCode = function () {
1508
- var result = hashCode(this.x4f_1);
1509
- result = imul(result, 31) + this.y4f_1.hashCode() | 0;
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.prototype.equals = function (other) {
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.x4f_1, tmp0_other_with_cast.x4f_1))
1466
+ if (!equals(this.p4d_1, tmp0_other_with_cast.p4d_1))
1519
1467
  return false;
1520
- if (!this.y4f_1.equals(tmp0_other_with_cast.y4f_1))
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.k4c().solution.r1u();
1474
+ var tmp = this$0.c4a().solution.r1t();
1527
1475
  var tmp0_elvis_lhs = isInterface(tmp, Unifier) ? tmp : null;
1528
- return StreamsExecutionContext_init_$Create$_0(this$0.j4g_1, tmp0_elvis_lhs == null ? Companion_getInstance_3().empty() : tmp0_elvis_lhs);
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.j4g_1 = sourceContext;
1534
- this.k4g_1 = solve;
1481
+ this.b4e_1 = sourceContext;
1482
+ this.c4e_1 = solve;
1535
1483
  var tmp = this;
1536
- tmp.l4g_1 = lazy(StateEnd$context$delegate$lambda(this));
1484
+ tmp.d4e_1 = lazy(StateEnd$context$delegate$lambda(this));
1537
1485
  }
1538
- StateEnd.prototype.k4c = function () {
1539
- return this.k4g_1;
1486
+ protoOf(StateEnd).c4a = function () {
1487
+ return this.c4e_1;
1540
1488
  };
1541
- StateEnd.prototype.s4e = function () {
1489
+ protoOf(StateEnd).k4c = function () {
1542
1490
  return emptySequence();
1543
1491
  };
1544
- StateEnd.prototype.j5 = function () {
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.l4g_1.b1();
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
- var tmp = _this__u8e3s4.j5();
1553
- var tmp_0 = _this__u8e3s4.k4c();
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.p2i(substitution, tmp0_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.k4c().context) : tmp0_elvis_lhs, sideEffects.slice()));
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
- var tmp = _this__u8e3s4.j5();
1566
- var tmp_0 = _this__u8e3s4.k4c();
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.q2i(tmp0_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.k4c().context) : tmp0_elvis_lhs, sideEffects.slice()));
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
- var tmp = _this__u8e3s4.j5();
1577
- var tmp_0 = _this__u8e3s4.k4c();
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.j5()) : tmp0_elvis_lhs;
1580
- return new Halt_0(tmp, tmp_0.r2i(exception, tmp1_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.k4c().context) : tmp1_elvis_lhs, sideEffects.slice()));
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
- var tmp_1 = stateEnd$lambda_1(_this__u8e3s4, sideEffectManager, sideEffects);
1605
- return solution.h1w(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.r1u();
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.k4c().context.r1u() : tmp0_elvis_lhs, $sideEffectManager, $sideEffects.slice());
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.c1w(), $sideEffectManager, $sideEffects.slice());
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.j5();
1574
+ return receiver.n5();
1640
1575
  }, null);
1641
1576
  }
1642
1577
  function newThrowSolveRequest(_this__u8e3s4, $this, error) {
1643
- var tmp = Companion_getInstance_10();
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.n25()]);
1649
- var tmp0_elvis_lhs = getSideEffectManager(error.j5());
1650
- var tmp_1 = tmp0_elvis_lhs == null ? _this__u8e3s4.context.c4d_1 : tmp0_elvis_lhs;
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 Companion_getInstance_18() {
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.b4h_1 = this$0;
1597
+ this.t4e_1 = this$0;
1665
1598
  CoroutineImpl.call(this, resultContinuation);
1666
1599
  }
1667
- StateGoalEvaluation$behaveTimed$slambda.prototype.j4f = function ($this$sequence, $cont) {
1668
- var tmp = this.k4f($this$sequence, $cont);
1669
- tmp.ei_1 = Unit_getInstance();
1670
- tmp.fi_1 = null;
1671
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
1674
- return this.j4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
1677
- var suspendResult = this.ei_1;
1609
+ protoOf(StateGoalEvaluation$behaveTimed$slambda).ii = function () {
1610
+ var suspendResult = this.ci_1;
1678
1611
  $sm: do
1679
1612
  try {
1680
- var tmp = this.ci_1;
1613
+ var tmp = this.ai_1;
1681
1614
  switch (tmp) {
1682
1615
  case 0:
1683
- this.di_1 = 11;
1616
+ this.bi_1 = 11;
1684
1617
  var tmp_0 = this;
1685
- var tmp0_with = this.b4h_1.u4h_1;
1686
- tmp_0.d4h_1 = tmp0_with.context.q4c_1.n2e().a3(tmp0_with.signature);
1687
- this.e4h_1 = this.d4h_1;
1688
- if (this.e4h_1 == null) {
1689
- this.f4h_1 = null;
1690
- this.ci_1 = 8;
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.g4h_1 = null;
1694
- this.di_1 = 1;
1695
- this.g4h_1 = this.d4h_1.solve(this.b4h_1.u4h_1);
1696
- this.di_1 = 11;
1697
- this.ci_1 = 3;
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.di_1 = 11;
1704
- var tmp_1 = this.fi_1;
1636
+ this.bi_1 = 11;
1637
+ var tmp_1 = this.di_1;
1705
1638
  if (tmp_1 instanceof HaltException) {
1706
- this.h4h_1 = this.fi_1;
1707
- this.ci_1 = 2;
1708
- suspendResult = this.c4h_1.z4(stateEndHalt$default(this.b4h_1, this.h4h_1, null, [], 6, null), 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.fi_1;
1647
+ var tmp_2 = this.di_1;
1715
1648
  if (tmp_2 instanceof LogicError) {
1716
- this.i4h_1 = this.fi_1;
1717
- this.g4h_1 = Companion_getInstance_16().n4c(newThrowSolveRequest(this.b4h_1.u4h_1, Companion_getInstance_18(), this.i4h_1));
1718
- this.ci_1 = 3;
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.fi_1;
1654
+ throw this.di_1;
1722
1655
  }
1723
1656
  }
1724
1657
 
1725
1658
  break;
1726
1659
  case 2:
1727
- this.ci_1 = 3;
1660
+ this.ai_1 = 3;
1728
1661
  continue $sm;
1729
1662
  case 3:
1730
- this.di_1 = 11;
1731
- this.j4h_1 = emptyList();
1732
- this.k4h_1 = this.g4h_1;
1733
- if (this.k4h_1 == null) {
1734
- this.l4h_1 = null;
1735
- this.ci_1 = 7;
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.m4h_1 = this.k4h_1.j();
1739
- this.ci_1 = 4;
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.m4h_1.m()) {
1746
- this.ci_1 = 6;
1678
+ if (!this.e4f_1.m()) {
1679
+ this.ai_1 = 6;
1747
1680
  continue $sm;
1748
1681
  }
1749
1682
 
1750
- this.n4h_1 = this.m4h_1.p();
1751
- this.j4h_1 = addWithNoDuplicates(this.j4h_1, this.n4h_1.sideEffects);
1752
- this.ci_1 = 5;
1753
- suspendResult = this.c4h_1.z4(this.b4h_1.r4f(this.b4h_1, stateEnd(this.b4h_1, this.n4h_1.o2j(null, null, this.j4h_1, 3, null))), 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.n4h_1.solution;
1693
+ var tmp_3 = this.f4f_1.solution;
1761
1694
  if (isInterface(tmp_3, Halt))
1762
1695
  return Unit_getInstance();
1763
- this.ci_1 = 4;
1696
+ this.ai_1 = 4;
1764
1697
  continue $sm;
1765
1698
  case 6:
1766
- this.l4h_1 = Unit_getInstance();
1767
- this.ci_1 = 7;
1699
+ this.d4f_1 = Unit_getInstance();
1700
+ this.ai_1 = 7;
1768
1701
  continue $sm;
1769
1702
  case 7:
1770
1703
  ;
1771
- this.f4h_1 = this.e4h_1;
1772
- this.ci_1 = 8;
1704
+ this.x4e_1 = this.w4e_1;
1705
+ this.ai_1 = 8;
1773
1706
  continue $sm;
1774
1707
  case 8:
1775
- this.o4h_1 = this.f4h_1;
1776
- if (this.o4h_1 == null) {
1777
- this.ci_1 = 9;
1778
- suspendResult = this.c4h_1.z4(new StateRuleSelection(this.b4h_1.u4h_1), 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.p4h_1 = this.o4h_1;
1785
- this.ci_1 = 10;
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.p4h_1 = Unit_getInstance();
1794
- this.ci_1 = 10;
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.fi_1;
1733
+ throw this.di_1;
1801
1734
  }
1802
1735
  } catch ($p) {
1803
- if (this.di_1 === 11) {
1804
- throw $p;
1736
+ var e = $p;
1737
+ if (this.bi_1 === 11) {
1738
+ throw e;
1805
1739
  } else {
1806
- this.ci_1 = this.di_1;
1807
- this.fi_1 = $p;
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.prototype.k4f = function ($this$sequence, completion) {
1813
- var i = new StateGoalEvaluation$behaveTimed$slambda(this.b4h_1, completion);
1814
- i.c4h_1 = $this$sequence;
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, $cont) {
1820
- return i.j4f($this$sequence, $cont);
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
- Companion_getInstance_18();
1760
+ Companion_getInstance_21();
1827
1761
  AbstractTimedState.call(this, solve);
1828
- this.u4h_1 = solve;
1762
+ this.m4f_1 = solve;
1829
1763
  }
1830
- StateGoalEvaluation.prototype.k4c = function () {
1831
- return this.u4h_1;
1764
+ protoOf(StateGoalEvaluation).c4a = function () {
1765
+ return this.m4f_1;
1832
1766
  };
1833
- StateGoalEvaluation.prototype.q4f = function () {
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.d4i_1 = this$0;
1771
+ this.v4f_1 = this$0;
1838
1772
  CoroutineImpl.call(this, resultContinuation);
1839
1773
  }
1840
- StateInit$behaveTimed$slambda.prototype.j4f = function ($this$sequence, $cont) {
1841
- var tmp = this.k4f($this$sequence, $cont);
1842
- tmp.ei_1 = Unit_getInstance();
1843
- tmp.fi_1 = null;
1844
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
1847
- return this.j4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
1850
- var suspendResult = this.ei_1;
1783
+ protoOf(StateInit$behaveTimed$slambda).ii = function () {
1784
+ var suspendResult = this.ci_1;
1851
1785
  $sm: do
1852
1786
  try {
1853
- var tmp = this.ci_1;
1787
+ var tmp = this.ai_1;
1854
1788
  switch (tmp) {
1855
1789
  case 0:
1856
- this.di_1 = 6;
1790
+ this.bi_1 = 6;
1857
1791
  var tmp_0 = this;
1858
- var tmp0_with = this.d4i_1.m4i_1.context;
1859
- tmp_0.f4i_1 = tmp0_with.c4d_1.m4d(tmp0_with);
1860
- this.g4i_1 = this.d4i_1.m4i_1.x1v();
1861
- var tmp1_with = this.d4i_1.m4i_1.context;
1862
- if (tmp1_with.b4d_1.i4c(this.g4i_1, tmp1_with)) {
1863
- this.ci_1 = 4;
1864
- suspendResult = this.e4i_1.z4(this.d4i_1.r4f(this.d4i_1, stateEndTrue$default(this.d4i_1, this.d4i_1.m4i_1.context.y4c_1, this.f4i_1, [], 4, null)), 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.g4i_1)) {
1804
+ if (isWellFormed(this.y4f_1)) {
1871
1805
  var tmp_1 = this;
1872
- tmp_1.h4i_1 = prepareForExecutionAsGoal(this.g4i_1);
1873
- this.ci_1 = 2;
1874
- var tmp_2 = extractSignature(this.h4i_1);
1875
- var tmp_3 = this.h4i_1.gw();
1876
- var tmp0_with_0 = this.d4i_1.m4i_1.context;
1877
- var tmp_4 = new Long(0, 0);
1878
- var tmp_5 = new Long(0, 0);
1879
- var tmp_6 = tmp0_with_0.y4d(null, null, null, null, null, null, null, null, null, null, tmp_4, tmp_5, null, this.f4i_1, 8191, null);
1880
- var tmp_7 = new Long(0, 0);
1881
- suspendResult = this.e4i_1.z4(new StateGoalEvaluation(this.d4i_1.m4i_1.j2j(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.ci_1 = 1;
1888
- suspendResult = this.e4i_1.z4(stateEndFalse$default(this.d4i_1, this.f4i_1, [], 2, null), 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.ci_1 = 3;
1828
+ this.ai_1 = 3;
1899
1829
  continue $sm;
1900
1830
  case 2:
1901
1831
  ;
1902
- this.ci_1 = 3;
1832
+ this.ai_1 = 3;
1903
1833
  continue $sm;
1904
1834
  case 3:
1905
- this.ci_1 = 5;
1835
+ this.ai_1 = 5;
1906
1836
  continue $sm;
1907
1837
  case 4:
1908
- this.ci_1 = 5;
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.fi_1;
1843
+ throw this.di_1;
1914
1844
  }
1915
1845
  } catch ($p) {
1916
- if (this.di_1 === 6) {
1917
- throw $p;
1846
+ var e = $p;
1847
+ if (this.bi_1 === 6) {
1848
+ throw e;
1918
1849
  } else {
1919
- this.ci_1 = this.di_1;
1920
- this.fi_1 = $p;
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.prototype.k4f = function ($this$sequence, completion) {
1926
- var i = new StateInit$behaveTimed$slambda(this.d4i_1, completion);
1927
- i.e4i_1 = $this$sequence;
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, $cont) {
1933
- return i.j4f($this$sequence, $cont);
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.m4i_1 = solve;
1871
+ this.e4g_1 = solve;
1941
1872
  }
1942
- StateInit.prototype.k4c = function () {
1943
- return this.m4i_1;
1873
+ protoOf(StateInit).c4a = function () {
1874
+ return this.e4g_1;
1944
1875
  };
1945
- StateInit.prototype.q4f = function () {
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.iw();
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.w1u().asTheory(_this__u8e3s4.k1l()).getByHead(tmp0_let);
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.y1u(), _this__u8e3s4.z1u()]);
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
- var tmp = new Long(0, 0);
1989
- var tmp_0 = new Long(0, 0);
1990
- tmp$ret$0 = tmp0_with.y4d(null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, tmp0_with.c4d_1.o4d(), 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
- var tmp_1 = tmp$ret$1;
1993
- var tmp_2 = new Long(0, 0);
1994
- return _this__u8e3s4.j2j(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.z1v(null, _this__u8e3s4.r1u().i12(asIterable(unusedVariables)), 1, null);
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.h4c(p0, p1);
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).iw();
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 Companion_getInstance_19() {
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.l4f(p0);
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.v4i_1 = this$0;
1966
+ this.n4g_1 = this$0;
2040
1967
  CoroutineImpl.call(this, resultContinuation);
2041
1968
  }
2042
- StateRuleSelection$behaveTimed$slambda.prototype.j4f = function ($this$sequence, $cont) {
2043
- var tmp = this.k4f($this$sequence, $cont);
2044
- tmp.ei_1 = Unit_getInstance();
2045
- tmp.fi_1 = null;
2046
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
2049
- return this.j4f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
2052
- var suspendResult = this.ei_1;
1978
+ protoOf(StateRuleSelection$behaveTimed$slambda).ii = function () {
1979
+ var suspendResult = this.ci_1;
2053
1980
  $sm: do
2054
1981
  try {
2055
- var tmp = this.ci_1;
1982
+ var tmp = this.ai_1;
2056
1983
  switch (tmp) {
2057
1984
  case 0:
2058
- this.di_1 = 12;
2059
- this.x4i_1 = this.v4i_1.t4j_1.x1v();
2060
- this.y4i_1 = retrieveRulesMatching(this.v4i_1.t4j_1.context, Companion_getInstance_19(), this.x4i_1);
2061
- this.z4i_1 = moreThanOne(this.y4i_1);
2062
- if (none(this.y4i_1)) {
2063
- this.ci_1 = 10;
2064
- suspendResult = this.w4i_1.z4(stateEndFalse$default(this.v4i_1, null, [], 3, null), 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.v4i_1.t4j_1.context;
2072
- var tmp_1 = orderWithStrategy(this.y4i_1, tmp0_with, SolverStrategies$clauseChoiceStrategy$ref(tmp0_with.b4d_1));
2073
- tmp_0.a4j_1 = map(tmp_1, StateRuleSelection$behaveTimed$slambda$lambda);
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.b4j_1 = this.a4j_1.j();
2076
- this.ci_1 = 1;
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.b4j_1.m()) {
2083
- this.ci_1 = 9;
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.c4j_1 = this.b4j_1.p();
2015
+ tmp_3.u4g_1 = this.t4g_1.n();
2089
2016
  var tmp_4 = this;
2090
- tmp_4.d4j_1 = this.b4j_1.m();
2091
- this.e4j_1 = this.v4i_1.j5().p4c_1.mgu(this.x4i_1, this.c4j_1.ly());
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.c4j_1.my().applySubstitution(this.e4j_1);
2094
- tmp_5.f4j_1 = isInterface(tmp_6, Struct) ? tmp_6 : THROW_CCE();
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.v4i_1.t4j_1;
2023
+ var tmp0_$receiver = this.n4g_1.l4h_1;
2097
2024
  var tmp1_requestIssuingInstant = currentTimeInstant();
2098
- tmp_7.g4j_1 = newSolveRequest$default(tmp0_$receiver, this.f4j_1, this.e4j_1, null, null, tmp1_requestIssuingInstant, this.z4i_1, 12, null);
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.h4j_1 = new StateInit(initializeForSubRuleScope(this.g4j_1, Companion_getInstance_19()));
2101
- this.ci_1 = 2;
2102
- suspendResult = this.w4i_1.z4(asAlreadyExecuted(this.h4j_1), 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.i4j_1 = this.h4j_1;
2110
- this.j4j_1 = false;
2036
+ this.a4h_1 = this.z4g_1;
2037
+ this.b4h_1 = false;
2111
2038
  var tmp_9 = this;
2112
- tmp_9.k4j_1 = this.v4i_1.u4j_1(this.i4j_1);
2113
- this.l4j_1 = this.k4j_1.j();
2114
- this.ci_1 = 3;
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.l4j_1.m()) {
2118
- this.ci_1 = 8;
2044
+ if (!this.d4h_1.m()) {
2045
+ this.ai_1 = 8;
2119
2046
  continue $sm;
2120
2047
  }
2121
2048
 
2122
- this.m4j_1 = this.l4j_1.p();
2123
- this.n4j_1 = this.m4j_1.t4e_1;
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.n4j_1;
2052
+ var tmp_11 = this.f4h_1;
2126
2053
  if (isInterface(tmp_11, FinalState)) {
2127
- tmp_10 = this.n4j_1.k4c().solution.x1v().equals(this.g4j_1.x1v());
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.n4j_1.k4c().sideEffectManager)) {
2134
- this.j4j_1 = true;
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.n4j_1;
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.d4j_1;
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.j4j_1;
2074
+ tmp_12 = this.b4h_1;
2148
2075
  }
2149
2076
  if (tmp_12) {
2150
- this.o4j_1 = extendParentScopeWith(this.n4j_1.k4c().sideEffectManager, this.v4i_1.t4j_1.context.c4d_1);
2151
- this.ci_1 = 5;
2152
- var tmp_15 = this.n4j_1.k4c();
2153
- var tmp_16 = removeSubstitutionFor(this.n4j_1.k4c().solution, Companion_getInstance_19(), this.c4j_1.hw());
2154
- suspendResult = this.w4i_1.z4(stateEnd(this.v4i_1, tmp_15.o2j(tmp_16, this.o4j_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.ci_1 = 6;
2085
+ this.ai_1 = 6;
2161
2086
  continue $sm;
2162
2087
  }
2163
2088
  } else {
2164
- this.ci_1 = 4;
2165
- suspendResult = this.w4i_1.z4(this.m4j_1, 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.ci_1 = 7;
2099
+ this.ai_1 = 7;
2175
2100
  continue $sm;
2176
2101
  case 5:
2177
- this.ci_1 = 6;
2102
+ this.ai_1 = 6;
2178
2103
  continue $sm;
2179
2104
  case 6:
2180
- var tmp_17 = this.n4j_1;
2181
- if (tmp_17 instanceof Halt_0)
2105
+ var tmp_15 = this.f4h_1;
2106
+ if (tmp_15 instanceof Halt_0)
2182
2107
  return Unit_getInstance();
2183
- this.ci_1 = 7;
2108
+ this.ai_1 = 7;
2184
2109
  continue $sm;
2185
2110
  case 7:
2186
- this.ci_1 = 3;
2111
+ this.ai_1 = 3;
2187
2112
  continue $sm;
2188
2113
  case 8:
2189
- if (this.j4j_1)
2114
+ if (this.b4h_1)
2190
2115
  return Unit_getInstance();
2191
- this.ci_1 = 1;
2116
+ this.ai_1 = 1;
2192
2117
  continue $sm;
2193
2118
  case 9:
2194
- this.ci_1 = 11;
2119
+ this.ai_1 = 11;
2195
2120
  continue $sm;
2196
2121
  case 10:
2197
- this.ci_1 = 11;
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.fi_1;
2127
+ throw this.di_1;
2203
2128
  }
2204
2129
  } catch ($p) {
2205
- if (this.di_1 === 12) {
2206
- throw $p;
2130
+ var e = $p;
2131
+ if (this.bi_1 === 12) {
2132
+ throw e;
2207
2133
  } else {
2208
- this.ci_1 = this.di_1;
2209
- this.fi_1 = $p;
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.prototype.k4f = function ($this$sequence, completion) {
2215
- var i = new StateRuleSelection$behaveTimed$slambda(this.v4i_1, completion);
2216
- i.w4i_1 = $this$sequence;
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, $cont) {
2222
- return i.j4f($this$sequence, $cont);
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
- Companion_getInstance_19();
2154
+ Companion_getInstance_22();
2229
2155
  AbstractTimedState.call(this, solve);
2230
- this.t4j_1 = solve;
2156
+ this.l4h_1 = solve;
2231
2157
  var tmp = this;
2232
- tmp.u4j_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_getInstance());
2158
+ tmp.m4h_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_getInstance());
2233
2159
  }
2234
- StateRuleSelection.prototype.k4c = function () {
2235
- return this.t4j_1;
2160
+ protoOf(StateRuleSelection).c4a = function () {
2161
+ return this.l4h_1;
2236
2162
  };
2237
- StateRuleSelection.prototype.q4f = function () {
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.prototype.b2f = function () {
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
- var tmp = resetCutWorkChanges(it.sideEffectManager, $request.context.c4d_1);
2256
- return replyWith($request, it.o2j(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, false, 4, null, this);
2186
+ PrimitiveWrapper_init_$Init$('call', 1, VOID, this);
2262
2187
  }
2263
- Call.prototype.c4k = function (request) {
2188
+ protoOf(Call).u4h = function (request) {
2264
2189
  var tmp$ret$1;
2265
2190
  // Inline function 'kotlin.let' call
2266
- var tmp0_let = single(Companion_getInstance_11().b2g(request).arguments);
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 = Companion_getInstance_16();
2273
- var tmp_1 = prepareForExecutionAsGoal(tmp0_let);
2274
- var tmp_2 = new Long(0, 0);
2275
- var tmp_3 = tmp_0.n4c(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
- var tmp_4 = Expected_CALLABLE_getInstance();
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.prototype.q2g = function (request) {
2286
- return this.c4k(request);
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 = Companion_getInstance_10();
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
- var tmp = new Long(0, 0);
2309
- var tmp_0 = new Long(0, 0);
2310
- var tmp_1 = _this__u8e3s4.context.y4d(null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, _this__u8e3s4.context.c4d_1.v4d(notSelectableContext), 8191, null);
2311
- var tmp_2 = new Long(0, 0);
2312
- return _this__u8e3s4.j2j(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.l4k_1 = $request;
2232
+ this.d4i_1 = $request;
2316
2233
  CoroutineImpl.call(this, resultContinuation);
2317
2234
  }
2318
- Catch$uncheckedImplementation$slambda.prototype.e2t = function ($this$sequence, $cont) {
2319
- var tmp = this.f2t($this$sequence, $cont);
2320
- tmp.ei_1 = Unit_getInstance();
2321
- tmp.fi_1 = null;
2322
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
2325
- return this.e2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
2328
- var suspendResult = this.ei_1;
2244
+ protoOf(Catch$uncheckedImplementation$slambda).ii = function () {
2245
+ var suspendResult = this.ci_1;
2329
2246
  $sm: do
2330
2247
  try {
2331
- var tmp = this.ci_1;
2248
+ var tmp = this.ai_1;
2332
2249
  switch (tmp) {
2333
2250
  case 0:
2334
- this.di_1 = 6;
2335
- this.n4k_1 = first_0(this.l4k_1.arguments);
2251
+ this.bi_1 = 6;
2252
+ this.f4i_1 = first_0(this.d4i_1.arguments);
2336
2253
  var tmp_0 = this;
2337
- var tmp_1 = Companion_getInstance_16();
2338
- var tmp_2 = call(Catch_getInstance(), this.n4k_1);
2339
- var tmp_3 = new Long(0, 0);
2340
- tmp_0.o4k_1 = tmp_1.n4c(newSolveRequest$default(this.l4k_1, tmp_2, null, null, null, tmp_3, false, 62, null));
2341
- this.p4k_1 = this.o4k_1.j();
2342
- this.ci_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.p4k_1.m()) {
2346
- this.ci_1 = 5;
2259
+ if (!this.h4i_1.m()) {
2260
+ this.ai_1 = 5;
2347
2261
  continue $sm;
2348
2262
  }
2349
2263
 
2350
- this.q4k_1 = this.p4k_1.p();
2351
- if (isSelectedThrowCatch(this.q4k_1.sideEffectManager, this.l4k_1.context)) {
2352
- this.r4k_1 = last(this.l4k_1.arguments).applySubstitution(this.q4k_1.solution.r1u());
2353
- var tmp_4 = this;
2354
- var tmp_5 = call(Catch_getInstance(), this.r4k_1);
2355
- var tmp_6 = this.q4k_1.solution.r1u().minus(this.l4k_1.context.y4c_1);
2356
- var tmp_7 = currentTimeInstant();
2357
- tmp_4.s4k_1 = ensureNoMoreSelectableCatch(newSolveRequest$default(this.l4k_1, tmp_5, tmp_6, null, null, tmp_7, false, 44, null), Catch_getInstance(), this.l4k_1.context);
2358
- this.ci_1 = 3;
2359
- var tmp_8 = Companion_getInstance_16().n4c(this.s4k_1);
2360
- suspendResult = this.m4k_1.c5(map(tmp_8, Catch$uncheckedImplementation$slambda$lambda(this.l4k_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.ci_1 = 2;
2367
- suspendResult = this.m4k_1.z4(replyWith(this.l4k_1, this.q4k_1), 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.ci_1 = 4;
2286
+ this.ai_1 = 4;
2377
2287
  continue $sm;
2378
2288
  case 3:
2379
- this.ci_1 = 4;
2289
+ this.ai_1 = 4;
2380
2290
  continue $sm;
2381
2291
  case 4:
2382
- this.ci_1 = 1;
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.fi_1;
2297
+ throw this.di_1;
2388
2298
  }
2389
2299
  } catch ($p) {
2390
- if (this.di_1 === 6) {
2391
- throw $p;
2300
+ var e = $p;
2301
+ if (this.bi_1 === 6) {
2302
+ throw e;
2392
2303
  } else {
2393
- this.ci_1 = this.di_1;
2394
- this.fi_1 = $p;
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.prototype.f2t = function ($this$sequence, completion) {
2400
- var i = new Catch$uncheckedImplementation$slambda(this.l4k_1, completion);
2401
- i.m4k_1 = $this$sequence;
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, $cont) {
2407
- return i.e2t($this$sequence, $cont);
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, false, 4, null, this);
2325
+ PrimitiveWrapper_init_$Init$('catch', 3, VOID, this);
2415
2326
  }
2416
- Catch.prototype.c4k = function (request) {
2327
+ protoOf(Catch).u4h = function (request) {
2417
2328
  return sequence(Catch$uncheckedImplementation$slambda_0(request, null));
2418
2329
  };
2419
- Catch.prototype.q2g = function (request) {
2420
- return this.c4k(request);
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.g4c(p0, p1);
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, $cont) {
2436
- var tmp = new $solveConjunctionGoalsCOROUTINE$0($this, _this__u8e3s4, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $cont);
2437
- tmp.ei_1 = Unit_getInstance();
2438
- tmp.fi_1 = null;
2439
- return tmp.ki();
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.c4m_1 = $request;
2353
+ this.u4j_1 = $request;
2443
2354
  CoroutineImpl.call(this, resultContinuation);
2444
2355
  }
2445
- Conjunction$uncheckedImplementation$slambda.prototype.e2t = function ($this$sequence, $cont) {
2446
- var tmp = this.f2t($this$sequence, $cont);
2447
- tmp.ei_1 = Unit_getInstance();
2448
- tmp.fi_1 = null;
2449
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
2452
- return this.e2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
2455
- var suspendResult = this.ei_1;
2365
+ protoOf(Conjunction$uncheckedImplementation$slambda).ii = function () {
2366
+ var suspendResult = this.ci_1;
2456
2367
  $sm: do
2457
2368
  try {
2458
- var tmp = this.ci_1;
2369
+ var tmp = this.ai_1;
2459
2370
  switch (tmp) {
2460
2371
  case 0:
2461
- this.di_1 = 2;
2372
+ this.bi_1 = 2;
2462
2373
  var tmp_0 = this;
2463
- var tmp_1 = this.c4m_1.x1v().castToTuple().ju();
2464
- tmp_0.e4m_1 = toList(orderWithStrategy(tmp_1, this.c4m_1.context, SolverStrategies$predicationChoiceStrategy$ref(this.c4m_1.context.b4d_1)));
2465
- this.ci_1 = 1;
2466
- suspendResult = solveConjunctionGoals(this.d4m_1, Conjunction_getInstance(), this.c4m_1, this.e4m_1, this.c4m_1.context, Companion_getInstance_3().empty(), emptyList(), this.c4m_1.context.c4d_1, false, 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.fi_1;
2387
+ throw this.di_1;
2477
2388
  }
2478
2389
  } catch ($p) {
2479
- if (this.di_1 === 2) {
2480
- throw $p;
2390
+ var e = $p;
2391
+ if (this.bi_1 === 2) {
2392
+ throw e;
2481
2393
  } else {
2482
- this.ci_1 = this.di_1;
2483
- this.fi_1 = $p;
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.prototype.f2t = function ($this$sequence, completion) {
2489
- var i = new Conjunction$uncheckedImplementation$slambda(this.c4m_1, completion);
2490
- i.d4m_1 = $this$sequence;
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, $cont) {
2496
- return i.e2t($this$sequence, $cont);
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.c4l_1 = _this__u8e3s4;
2504
- this.d4l_1 = _this__u8e3s4_0;
2505
- this.e4l_1 = mainRequest;
2506
- this.f4l_1 = goals;
2507
- this.g4l_1 = toPropagateContext;
2508
- this.h4l_1 = accumulatedSubstitutions;
2509
- this.i4l_1 = accumulatedSideEffects;
2510
- this.j4l_1 = previousResponseSideEffectManager;
2511
- this.k4l_1 = previousGoalsHadAlternatives;
2512
- }
2513
- $solveConjunctionGoalsCOROUTINE$0.prototype.ki = function () {
2514
- var suspendResult = this.ei_1;
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.ci_1;
2429
+ var tmp = this.ai_1;
2518
2430
  switch (tmp) {
2519
2431
  case 0:
2520
- this.di_1 = 7;
2521
- this.l4l_1 = prepareForExecutionAsGoal(first_1(this.f4l_1).applySubstitution(this.h4l_1));
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.j4l_1;
2524
- var tmp_1 = tmp0_elvis_lhs == null ? this.e4l_1.context.c4d_1 : tmp0_elvis_lhs;
2525
- var tmp_2 = new Long(0, 0);
2526
- tmp_0.m4l_1 = newSolveRequest$default(this.e4l_1, this.l4l_1, this.h4l_1, this.g4l_1, tmp_1, tmp_2, false, 48, null);
2527
- this.n4l_1 = false;
2528
- this.o4l_1 = emptyList();
2529
- var tmp_3 = this;
2530
- tmp_3.p4l_1 = Companion_getInstance_16().l4c(this.m4l_1);
2531
- var tmp_4 = this;
2532
- tmp_4.q4l_1 = this.p4l_1.j();
2533
- this.ci_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.q4l_1.m()) {
2537
- this.ci_1 = 6;
2446
+ if (!this.i4j_1.m()) {
2447
+ this.ai_1 = 6;
2538
2448
  continue $sm;
2539
2449
  }
2540
2450
 
2541
- var tmp_5 = this;
2542
- tmp_5.r4l_1 = this.q4l_1.p();
2543
- var tmp_6 = this;
2544
- tmp_6.s4l_1 = this.q4l_1.m();
2545
- this.t4l_1 = this.r4l_1.k4c();
2546
- var tmp_7;
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.l4l_1.fw()) {
2549
- tmp_7 = true;
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.t4l_1.sideEffectManager;
2552
- tmp_7 = (tmp0_safe_receiver == null ? null : shouldExecuteThrowCut(tmp0_safe_receiver)) === true;
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 (tmp_7) {
2556
- this.n4l_1 = true;
2465
+ if (tmp_5) {
2466
+ this.f4j_1 = true;
2557
2467
  }
2558
2468
 
2559
- this.o4l_1 = addWithNoDuplicates(this.o4l_1, this.t4l_1.sideEffects);
2560
- var tmp_8;
2561
- var tmp_9;
2562
- var tmp1_safe_receiver = this.t4l_1.sideEffectManager;
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 tmp_10 = this.t4l_1.solution;
2565
- tmp_9 = isInterface(tmp_10, Yes);
2474
+ var tmp_8 = this.l4j_1.solution;
2475
+ tmp_7 = isInterface(tmp_8, Yes);
2566
2476
  } else {
2567
- tmp_9 = false;
2477
+ tmp_7 = false;
2568
2478
  }
2569
2479
 
2570
- if (tmp_9) {
2571
- tmp_8 = moreThanOne(asSequence(this.f4l_1));
2480
+ if (tmp_7) {
2481
+ tmp_6 = moreThanOne(asSequence(this.x4i_1));
2572
2482
  } else {
2573
- tmp_8 = false;
2483
+ tmp_6 = false;
2574
2484
  }
2575
2485
 
2576
- if (tmp_8) {
2577
- this.ci_1 = 4;
2578
- var tmp_11 = Conjunction_getInstance();
2579
- var tmp_12 = drop(this.f4l_1, 1);
2580
- var tmp_13 = this.r4l_1.j5().c37(this.o4l_1);
2581
- var tmp_14 = this.t4l_1.solution.r1u().minus(this.e4l_1.context.y4c_1);
2582
- var tmp_15 = this.o4l_1;
2583
- var tmp_16 = this.t4l_1.sideEffectManager;
2584
- suspendResult = solveConjunctionGoals(this.d4l_1, tmp_11, this.e4l_1, tmp_12, tmp_13, tmp_14, tmp_15, tmp_16 instanceof SideEffectManagerImpl ? tmp_16 : null, this.k4l_1 ? true : this.s4l_1, 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 tmp_17;
2591
- var tmp_18;
2592
- var tmp_19 = this.t4l_1.solution;
2593
- if (!isInterface(tmp_19, No)) {
2594
- tmp_18 = true;
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
- tmp_18 = !this.k4l_1 ? !this.s4l_1 : false;
2506
+ tmp_16 = !this.c4j_1 ? !this.k4j_1 : false;
2597
2507
  }
2598
- if (tmp_18) {
2599
- tmp_17 = true;
2508
+ if (tmp_16) {
2509
+ tmp_15 = true;
2600
2510
  } else {
2601
- tmp_17 = this.n4l_1;
2511
+ tmp_15 = this.f4j_1;
2602
2512
  }
2603
- if (tmp_17) {
2604
- this.ci_1 = 2;
2605
- suspendResult = this.d4l_1.z4(replyWith(this.e4l_1, this.t4l_1.o2j(null, null, plus_1(this.i4l_1, this.o4l_1), 3, null)), 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.ci_1 = 3;
2521
+ this.ai_1 = 3;
2612
2522
  continue $sm;
2613
2523
  }
2614
2524
  }
2615
2525
 
2616
2526
  break;
2617
2527
  case 2:
2618
- this.ci_1 = 3;
2528
+ this.ai_1 = 3;
2619
2529
  continue $sm;
2620
2530
  case 3:
2621
- this.ci_1 = 5;
2531
+ this.ai_1 = 5;
2622
2532
  continue $sm;
2623
2533
  case 4:
2624
2534
  var sideEffectPair = suspendResult;
2625
- if (sideEffectPair.g4_1) {
2626
- this.n4l_1 = true;
2535
+ if (sideEffectPair.k4_1) {
2536
+ this.f4j_1 = true;
2627
2537
  }
2628
2538
 
2629
- this.o4l_1 = sideEffectPair.h4_1;
2630
- this.ci_1 = 5;
2539
+ this.g4j_1 = sideEffectPair.l4_1;
2540
+ this.ai_1 = 5;
2631
2541
  continue $sm;
2632
2542
  case 5:
2633
- var tmp_20;
2634
- if (this.n4l_1) {
2635
- tmp_20 = true;
2543
+ var tmp_18;
2544
+ if (this.f4j_1) {
2545
+ tmp_18 = true;
2636
2546
  } else {
2637
- var tmp_21 = this.t4l_1.solution;
2638
- tmp_20 = isInterface(tmp_21, Halt);
2547
+ var tmp_19 = this.l4j_1.solution;
2548
+ tmp_18 = isInterface(tmp_19, Halt);
2639
2549
  }
2640
2550
 
2641
- if (tmp_20) {
2642
- return new Pair(true, plus_1(this.i4l_1, this.o4l_1));
2551
+ if (tmp_18) {
2552
+ return new Pair(true, plus_1(this.a4j_1, this.g4j_1));
2643
2553
  }
2644
2554
 
2645
- this.ci_1 = 1;
2555
+ this.ai_1 = 1;
2646
2556
  continue $sm;
2647
2557
  case 6:
2648
- return new Pair(this.n4l_1, plus_1(this.i4l_1, this.o4l_1));
2558
+ return new Pair(this.f4j_1, plus_1(this.a4j_1, this.g4j_1));
2649
2559
  case 7:
2650
- throw this.fi_1;
2560
+ throw this.di_1;
2651
2561
  }
2652
2562
  } catch ($p) {
2653
- if (this.di_1 === 7) {
2654
- throw $p;
2563
+ var e = $p;
2564
+ if (this.bi_1 === 7) {
2565
+ throw e;
2655
2566
  } else {
2656
- this.ci_1 = this.di_1;
2657
- this.fi_1 = $p;
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
- Companion_getInstance_12();
2665
- PrimitiveWrapper_init_$Init$(',', 2, false, 4, null, this);
2575
+ Companion_getInstance_15();
2576
+ PrimitiveWrapper_init_$Init$(',', 2, VOID, this);
2666
2577
  }
2667
- Conjunction.prototype.c4k = function (request) {
2578
+ protoOf(Conjunction).u4h = function (request) {
2668
2579
  return sequence(Conjunction$uncheckedImplementation$slambda_0(request, null));
2669
2580
  };
2670
- Conjunction.prototype.q2g = function (request) {
2671
- return this.c4k(request);
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, false, 4, null, this);
2592
+ PrimitiveWrapper_init_$Init$('!', 0, VOID, this);
2682
2593
  }
2683
- Cut.prototype.c4k = function (request) {
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.p2g(request.context.y4c_1, request.context.c4d_1.k4d(), [], 4, null)]);
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.prototype.q2g = function (request) {
2694
- return this.c4k(request);
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.p4m_1 = $request;
2614
+ this.h4k_1 = $request;
2704
2615
  CoroutineImpl.call(this, resultContinuation);
2705
2616
  }
2706
- Not$uncheckedImplementation$slambda.prototype.e2t = function ($this$sequence, $cont) {
2707
- var tmp = this.f2t($this$sequence, $cont);
2708
- tmp.ei_1 = Unit_getInstance();
2709
- tmp.fi_1 = null;
2710
- return tmp.ki();
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.prototype.wi = function (p1, $cont) {
2713
- return this.e2t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
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.prototype.ki = function () {
2716
- var suspendResult = this.ei_1;
2626
+ protoOf(Not$uncheckedImplementation$slambda).ii = function () {
2627
+ var suspendResult = this.ci_1;
2717
2628
  $sm: do
2718
2629
  try {
2719
- var tmp = this.ci_1;
2630
+ var tmp = this.ai_1;
2720
2631
  switch (tmp) {
2721
2632
  case 0:
2722
- this.di_1 = 7;
2723
- this.r4m_1 = single(this.p4m_1.arguments);
2633
+ this.bi_1 = 7;
2634
+ this.j4k_1 = single(this.h4k_1.arguments);
2724
2635
  var tmp_0 = this;
2725
- var tmp_1 = Companion_getInstance_16();
2726
- var tmp_2 = Companion_getInstance_10();
2636
+ var tmp_1 = Companion_getInstance_19();
2637
+ var tmp_2 = Companion_getInstance_13();
2727
2638
  var tmp0__get_functor__thl4dk = Call_getInstance();
2728
- var tmp_3 = tmp_2.of(tmp0__get_functor__thl4dk.signature.name, [this.r4m_1]);
2729
- var tmp_4 = new Long(0, 0);
2730
- tmp_0.s4m_1 = tmp_1.n4c(newSolveRequest$default(this.p4m_1, tmp_3, null, null, null, tmp_4, false, 62, null));
2731
- this.t4m_1 = this.s4m_1.j();
2732
- this.ci_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.t4m_1.m()) {
2736
- this.ci_1 = 6;
2644
+ if (!this.l4k_1.m()) {
2645
+ this.ai_1 = 6;
2737
2646
  continue $sm;
2738
2647
  }
2739
2648
 
2740
- this.u4m_1 = this.t4m_1.p();
2741
- this.v4m_1 = this.u4m_1.solution;
2742
- var tmp_5 = this.v4m_1;
2743
- if (isInterface(tmp_5, Yes)) {
2744
- this.ci_1 = 5;
2745
- suspendResult = this.q4m_1.z4(this.p4m_1.o2g(null, [], 3, null), 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 tmp_6 = this.v4m_1;
2752
- if (isInterface(tmp_6, No)) {
2753
- this.ci_1 = 3;
2754
- suspendResult = this.q4m_1.z4(this.p4m_1.p2g(this.p4m_1.context.y4c_1, null, [], 6, null), 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.ci_1 = 2;
2761
- suspendResult = this.q4m_1.z4(replyWith(this.p4m_1, this.u4m_1), 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.ci_1 = 4;
2680
+ this.ai_1 = 4;
2772
2681
  continue $sm;
2773
2682
  case 3:
2774
- this.ci_1 = 4;
2683
+ this.ai_1 = 4;
2775
2684
  continue $sm;
2776
2685
  case 4:
2777
- this.ci_1 = 1;
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.fi_1;
2693
+ throw this.di_1;
2785
2694
  }
2786
2695
  } catch ($p) {
2787
- if (this.di_1 === 7) {
2788
- throw $p;
2696
+ var e = $p;
2697
+ if (this.bi_1 === 7) {
2698
+ throw e;
2789
2699
  } else {
2790
- this.ci_1 = this.di_1;
2791
- this.fi_1 = $p;
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.prototype.f2t = function ($this$sequence, completion) {
2797
- var i = new Not$uncheckedImplementation$slambda(this.p4m_1, completion);
2798
- i.q4m_1 = $this$sequence;
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, $cont) {
2804
- return i.e2t($this$sequence, $cont);
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, false, 4, null, this);
2721
+ PrimitiveWrapper_init_$Init$('\\+', 1, VOID, this);
2812
2722
  }
2813
- Not.prototype.c4k = function (request) {
2723
+ protoOf(Not).u4h = function (request) {
2814
2724
  return sequence(Not$uncheckedImplementation$slambda_0(request, null));
2815
2725
  };
2816
- Not.prototype.q2g = function (request) {
2817
- return this.c4k(request);
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.fw();
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.zv() === 2;
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.gw());
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.gw().n(1));
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.n3();
2878
- var extra = tmp0_safe_receiver.o3();
2879
- var tmp0_$this = Companion_getInstance_13();
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.u25(null, tmp1_cause, withContext, type, extra, 1, null);
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,19 +2798,19 @@
2888
2798
  Throw_instance = this;
2889
2799
  NonBacktrackable.call(this, 'throw');
2890
2800
  }
2891
- Throw.prototype.y4m = function (_this__u8e3s4, first) {
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(Companion_getInstance_11().b2g(_this__u8e3s4).arguments).freshCopy();
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.c4d_1.s4d(tmp0_let);
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
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n(1);
2813
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o(1);
2904
2814
  var tmp_0;
2905
2815
  if (tmp2_safe_receiver == null) {
2906
2816
  tmp_0 = null;
@@ -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 = Companion_getInstance_11().e2h(_this__u8e3s4, tmp2_safe_receiver, tmp0_let);
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.y4c_1.plus(catcher);
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.p2g(newSubstitution, _this__u8e3s4.context.c4d_1.t4d(ancestorCatch.context), [], 4, null);
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 Companion_getInstance_14().forUncaughtException(_this__u8e3s4.context, tmp0_let);
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
- tmp_4 = _this__u8e3s4.f2j($p, null, [], 6, null);
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.prototype.d2k = function (_this__u8e3s4, first) {
2948
- return this.y4m(_this__u8e3s4, first);
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.prototype.x1x = copy$default;
2958
- StreamsSolver.prototype.solveWithTimeout = solveWithTimeout;
2959
- StreamsSolver.prototype.solve = solve;
2960
- StreamsSolver.prototype.solveListWithTimeout = solveListWithTimeout;
2961
- StreamsSolver.prototype.solveList = solveList;
2962
- StreamsSolver.prototype.solveListWithOptions = solveListWithOptions;
2963
- StreamsSolver.prototype.solveOnceWithTimeout = solveOnceWithTimeout;
2964
- StreamsSolver.prototype.solveOnce = solveOnce;
2965
- StreamsSolver.prototype.solveOnceWithOptions = solveOnceWithOptions;
2966
- StreamsSolver.prototype.clone = clone;
2967
- StreamsSolver.prototype.i1v = get_standardInput;
2968
- StreamsSolver.prototype.k1v = get_standardOutput;
2969
- StreamsSolver.prototype.m1v = get_standardError;
2970
- StreamsSolver.prototype.o1v = get_warnings;
2971
- StreamsSolverFactory.prototype.u1y = solverOf$default;
2972
- StreamsSolverFactory.prototype.w1y = solverOf$default_0;
2973
- StreamsSolverFactory.prototype.a1z = mutableSolverOf$default;
2974
- StreamsSolverFactory.prototype.e1z = mutableSolverOf$default_0;
2975
- StreamsSolverFactory.prototype.newBuilder = newBuilder;
2976
- StreamsSolverFactory.prototype.c1y = get_defaultRuntime;
2977
- StreamsSolverFactory.prototype.e1y = get_defaultUnificator;
2978
- StreamsSolverFactory.prototype.f1y = get_defaultFlags;
2979
- StreamsSolverFactory.prototype.i1y = get_defaultStaticKb;
2980
- StreamsSolverFactory.prototype.j1y = get_defaultDynamicKb;
2981
- StreamsSolverFactory.prototype.k1y = get_defaultInputChannel;
2982
- StreamsSolverFactory.prototype.l1y = get_defaultOutputChannel;
2983
- StreamsSolverFactory.prototype.m1y = get_defaultErrorChannel;
2984
- StreamsSolverFactory.prototype.n1y = get_defaultWarningsChannel;
2985
- StreamsSolverFactory.prototype.x1y = solverWithDefaultBuiltins;
2986
- StreamsSolverFactory.prototype.y1y = solverWithDefaultBuiltins$default;
2987
- StreamsSolverFactory.prototype.b1z = mutableSolverWithDefaultBuiltins;
2988
- StreamsSolverFactory.prototype.c1z = mutableSolverWithDefaultBuiltins$default;
2989
- StreamsExecutionContext.prototype.v1u = createSolver$default;
2990
- StreamsExecutionContext.prototype.d1v = createMutableSolver$default;
2991
- StreamsExecutionContext.prototype.g1v = update$default;
2992
- StreamsExecutionContext.prototype.i1v = get_standardInput;
2993
- StreamsExecutionContext.prototype.k1v = get_standardOutput;
2994
- StreamsExecutionContext.prototype.m1v = get_standardError;
2995
- StreamsExecutionContext.prototype.o1v = get_warnings;
2996
- StreamsExecutionContext.prototype.m1u = get_endTime;
2997
- StreamsExecutionContext.prototype.o1u = get_remainingTime;
2998
- StreamsExecutionContext.prototype.p1u = get_elapsedTime;
2999
- AbstractTimedState.prototype.j5 = get_context;
3000
- StateGoalEvaluation.prototype.j5 = get_context;
3001
- StateInit.prototype.j5 = get_context;
3002
- StateRuleSelection.prototype.j5 = get_context;
3003
- DefaultBuiltins.prototype.containsSignature = containsSignature;
3004
- DefaultBuiltins.prototype.containsOperator = containsOperator;
3005
- DefaultBuiltins.prototype.hasPrimitive = hasPrimitive;
3006
- DefaultBuiltins.prototype.hasFunction = hasFunction;
3007
- DefaultBuiltins.prototype.p2e = get_ruleSignatures;
3008
- DefaultBuiltins.prototype.hasProtected = hasProtected;
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
- Object.defineProperty($it$unibo$tuprolog$solve$streams, 'StreamsSolverFactory', {
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
- }(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./2p-solve.js'), require('./2p-utils.js'), require('./2p-unify.js'), require('./2p-core.js'), require('./2p-theory.js')));
2934
+ }));
3027
2935
 
3028
2936
  //# sourceMappingURL=2p-solve-streams.js.map