@tuprolog/2p-full 0.31.21 → 0.32.0

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