@tuprolog/2p-full 2.0.5 → 2.0.9

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 (70) hide show
  1. package/2p-bdd.js +172 -172
  2. package/2p-bdd.js.map +1 -1
  3. package/2p-core.js +3593 -3366
  4. package/2p-core.js.map +1 -1
  5. package/2p-datalog.js.map +1 -1
  6. package/2p-dsl-core.js.map +1 -1
  7. package/2p-dsl-solve.js.map +1 -1
  8. package/2p-dsl-theory.js.map +1 -1
  9. package/2p-dsl-unify.js.map +1 -1
  10. package/2p-full.js +17 -4
  11. package/2p-full.js.map +1 -1
  12. package/2p-gui-plp.js.map +1 -1
  13. package/2p-gui.js.map +1 -1
  14. package/2p-ide-web.js.map +1 -1
  15. package/2p-io-lib.js +3489 -5
  16. package/2p-io-lib.js.map +1 -1
  17. package/2p-oop-lib.js +3382 -5
  18. package/2p-oop-lib.js.map +1 -1
  19. package/2p-parser-core.js +616 -5
  20. package/2p-parser-core.js.map +1 -1
  21. package/2p-parser-impl.js +5636 -5
  22. package/2p-parser-impl.js.map +1 -1
  23. package/2p-parser-theory.js +278 -5
  24. package/2p-parser-theory.js.map +1 -1
  25. package/2p-repl.js +533 -5
  26. package/2p-repl.js.map +1 -1
  27. package/2p-serialize-core.js.map +1 -1
  28. package/2p-serialize-theory.js.map +1 -1
  29. package/2p-solve-classic.js +1050 -1050
  30. package/2p-solve-classic.js.map +1 -1
  31. package/2p-solve-concurrent.js.map +1 -1
  32. package/2p-solve-plp.js +3 -3
  33. package/2p-solve-plp.js.map +1 -1
  34. package/2p-solve-problog.js +1450 -1444
  35. package/2p-solve-problog.js.map +1 -1
  36. package/2p-solve-streams.js +1033 -1033
  37. package/2p-solve-streams.js.map +1 -1
  38. package/2p-solve.js +5580 -4490
  39. package/2p-solve.js.map +1 -1
  40. package/2p-test-dsl.js.map +1 -1
  41. package/2p-theory.js +1725 -1725
  42. package/2p-theory.js.map +1 -1
  43. package/2p-unify.js +375 -375
  44. package/2p-unify.js.map +1 -1
  45. package/2p-utils.js +546 -493
  46. package/2p-utils.js.map +1 -1
  47. package/clikt-clikt-mordant.js +311 -5
  48. package/clikt-clikt-mordant.js.map +1 -1
  49. package/clikt-clikt.js +6672 -5
  50. package/clikt-clikt.js.map +1 -1
  51. package/colormath-root-colormath.js +1654 -5
  52. package/colormath-root-colormath.js.map +1 -1
  53. package/kotlin-kotlin-stdlib.js +5400 -2597
  54. package/kotlin-kotlin-stdlib.js.map +1 -1
  55. package/kotlin-kotlin-test.js.map +1 -1
  56. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
  57. package/kotlinx-atomicfu.js.map +1 -1
  58. package/kotlinx-coroutines-core.js.map +1 -1
  59. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  60. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  61. package/kt-math.js +1622 -1614
  62. package/kt-math.js.map +1 -1
  63. package/mordant-mordant-omnibus.js.map +1 -1
  64. package/mordant-mordant.js +10375 -5
  65. package/mordant-mordant.js.map +1 -1
  66. package/okio-parent-okio-nodefilesystem.js +201 -5
  67. package/okio-parent-okio-nodefilesystem.js.map +1 -1
  68. package/okio-parent-okio.js +3863 -5
  69. package/okio-parent-okio.js.map +1 -1
  70. package/package.json +4 -4
@@ -28,159 +28,159 @@
28
28
  'use strict';
29
29
  //region block: imports
30
30
  var imul = Math.imul;
31
- var first = kotlin_kotlin.$_$.w7;
32
- var protoOf = kotlin_kotlin.$_$.p6;
33
- var initMetadataForClass = kotlin_kotlin.$_$.a6;
34
- var initMetadataForCompanion = kotlin_kotlin.$_$.b6;
35
- var Unit_instance = kotlin_kotlin.$_$.m;
36
- var constructCallableReference = kotlin_kotlin.$_$.r5;
37
- var isInterface = kotlin_kotlin.$_$.j6;
31
+ var first = kotlin_kotlin.$_$.ia;
32
+ var protoOf = kotlin_kotlin.$_$.r8;
33
+ var initMetadataForClass = kotlin_kotlin.$_$.a8;
34
+ var initMetadataForCompanion = kotlin_kotlin.$_$.b8;
35
+ var Unit_instance = kotlin_kotlin.$_$.r;
36
+ var constructCallableReference = kotlin_kotlin.$_$.q7;
37
+ var isInterface = kotlin_kotlin.$_$.j8;
38
38
  var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
39
39
  var VOID = kotlin_kotlin.$_$.b;
40
- var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.q;
41
- var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.l;
40
+ var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.k1;
41
+ var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.f1;
42
42
  var Companion_instance_0 = kotlin_it_unibo_tuprolog_theory.$_$.b;
43
43
  var Companion_instance_1 = kotlin_it_unibo_tuprolog_theory.$_$.a;
44
- var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.a;
45
- var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.c;
46
- var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.b;
47
- var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.d;
48
- var objectCreate = kotlin_kotlin.$_$.o6;
49
- var filter = kotlin_kotlin.$_$.u7;
50
- var THROW_CCE = kotlin_kotlin.$_$.na;
51
- var Sequence = kotlin_kotlin.$_$.i7;
52
- var map = kotlin_kotlin.$_$.g8;
53
- var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.c4;
54
- var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.e4;
55
- var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.b4;
56
- var Request = kotlin_it_unibo_tuprolog_solve.$_$.a2;
57
- var take = kotlin_kotlin.$_$.r8;
58
- var buffered = kotlin_it_unibo_tuprolog_utils.$_$.q;
59
- var copy = kotlin_it_unibo_tuprolog_solve.$_$.b1;
60
- var solveWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.k3;
61
- var solve = kotlin_it_unibo_tuprolog_solve.$_$.l3;
62
- var solveListWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.f3;
63
- var solveList = kotlin_it_unibo_tuprolog_solve.$_$.e3;
64
- var solveListWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.g3;
65
- var solveOnceWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.h3;
66
- var solveOnce = kotlin_it_unibo_tuprolog_solve.$_$.j3;
67
- var solveOnceWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.i3;
68
- var clone = kotlin_it_unibo_tuprolog_solve.$_$.d3;
69
- var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.o2;
70
- var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.p2;
71
- var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.n2;
72
- var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.q2;
73
- var Solver = kotlin_it_unibo_tuprolog_solve.$_$.z3;
74
- var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.g1;
75
- var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.f1;
76
- var NotImplementedError = kotlin_kotlin.$_$.ia;
77
- var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.c1;
78
- var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.d1;
79
- var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.w3;
80
- var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.r3;
81
- var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.t3;
82
- var get_defaultFlags = kotlin_it_unibo_tuprolog_solve.$_$.o3;
83
- var get_defaultStaticKb = kotlin_it_unibo_tuprolog_solve.$_$.s3;
84
- var get_defaultDynamicKb = kotlin_it_unibo_tuprolog_solve.$_$.m3;
85
- var get_defaultInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.p3;
86
- var get_defaultOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.q3;
87
- var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.n3;
88
- var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.u3;
89
- var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.x3;
90
- var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.h1;
91
- var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.v3;
92
- var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.e1;
93
- var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.y3;
94
- var initMetadataForObject = kotlin_kotlin.$_$.f6;
95
- var defineProp = kotlin_kotlin.$_$.s5;
96
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.o;
97
- var firstOrNull = kotlin_kotlin.$_$.o2;
98
- var emptyList = kotlin_kotlin.$_$.l2;
99
- var emptySequence = kotlin_kotlin.$_$.q7;
100
- var plus = kotlin_kotlin.$_$.l8;
101
- var toMutableList = kotlin_kotlin.$_$.j4;
102
- var first_0 = kotlin_kotlin.$_$.p2;
103
- var listOf = kotlin_kotlin.$_$.b3;
104
- var lastOrNull = kotlin_kotlin.$_$.x2;
105
- var contains = kotlin_kotlin.$_$.m7;
106
- var equals = kotlin_kotlin.$_$.t5;
107
- var plus_0 = kotlin_kotlin.$_$.j8;
108
- var Collection = kotlin_kotlin.$_$.p1;
109
- var toString = kotlin_kotlin.$_$.s6;
110
- var toString_0 = kotlin_kotlin.$_$.xa;
111
- var hashCode = kotlin_kotlin.$_$.z5;
112
- var getBooleanHashCode = kotlin_kotlin.$_$.v5;
113
- var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.e;
114
- var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.p;
115
- var Unifier = kotlin_it_unibo_tuprolog_core.$_$.q1;
116
- var Companion_instance_6 = kotlin_it_unibo_tuprolog_core.$_$.f;
117
- var prepareForExecution = kotlin_it_unibo_tuprolog_core.$_$.u2;
118
- var single = kotlin_kotlin.$_$.z3;
119
- var copyToArray = kotlin_kotlin.$_$.i2;
120
- var any = kotlin_kotlin.$_$.j7;
121
- var sequence = kotlin_kotlin.$_$.o8;
122
- var drop = kotlin_kotlin.$_$.k2;
123
- var plus_1 = kotlin_kotlin.$_$.t3;
124
- var indexOf = kotlin_kotlin.$_$.a8;
125
- var CoroutineImpl = kotlin_kotlin.$_$.p4;
126
- var SequenceScope = kotlin_kotlin.$_$.h7;
127
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o4;
128
- var filterIndexed = kotlin_kotlin.$_$.r7;
129
- var initMetadataForLambda = kotlin_kotlin.$_$.e6;
130
- var asSequence = kotlin_kotlin.$_$.a2;
131
- var toList = kotlin_kotlin.$_$.u8;
132
- var Companion_instance_7 = kotlin_it_unibo_tuprolog_solve.$_$.e;
133
- var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.a4;
134
- var lazy = kotlin_kotlin.$_$.ta;
135
- var collectionSizeOrDefault = kotlin_kotlin.$_$.d2;
136
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
137
- var KProperty1 = kotlin_kotlin.$_$.g7;
138
- var getPropertyCallableRef = kotlin_kotlin.$_$.x5;
139
- var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.z;
140
- var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.y;
141
- var apply = kotlin_it_unibo_tuprolog_solve.$_$.l2;
142
- var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.k2;
143
- var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.m2;
144
- var update = kotlin_it_unibo_tuprolog_solve.$_$.a1;
145
- var getBigIntHashCode = kotlin_kotlin.$_$.u5;
146
- var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.i2;
147
- var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.j2;
148
- var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.h2;
149
- var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.r2;
150
- var initMetadataForInterface = kotlin_kotlin.$_$.d6;
151
- var sequenceOf = kotlin_kotlin.$_$.n8;
152
- var drop_0 = kotlin_kotlin.$_$.p7;
153
- var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.l1;
154
- var subtract = kotlin_kotlin.$_$.g5;
155
- var getKClassFromExpression = kotlin_kotlin.$_$.e7;
156
- var Halt = kotlin_it_unibo_tuprolog_solve.$_$.a3;
157
- var Yes = kotlin_it_unibo_tuprolog_solve.$_$.c3;
158
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
159
- var No = kotlin_it_unibo_tuprolog_solve.$_$.b3;
160
- var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.o;
161
- var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.r1;
162
- var HaltException = kotlin_it_unibo_tuprolog_solve.$_$.q1;
163
- var sequenceOf_0 = kotlin_kotlin.$_$.m8;
164
- var flatMap = kotlin_kotlin.$_$.x7;
165
- var asIterable = kotlin_kotlin.$_$.k7;
166
- var Rule = kotlin_it_unibo_tuprolog_core.$_$.o1;
167
- var none = kotlin_kotlin.$_$.i8;
168
- var Struct = kotlin_it_unibo_tuprolog_core.$_$.p1;
169
- var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.v1;
170
- var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.u;
171
- var listOf_0 = kotlin_kotlin.$_$.c3;
172
- var PrimitiveWrapper = kotlin_it_unibo_tuprolog_solve.$_$.y1;
173
- var PrimitiveWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.m1;
174
- var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.r;
175
- var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.x;
176
- var TypeError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.i1;
177
- var last = kotlin_kotlin.$_$.y2;
178
- var first_1 = kotlin_kotlin.$_$.q2;
179
- var Pair = kotlin_kotlin.$_$.la;
180
- var initMetadataForCoroutine = kotlin_kotlin.$_$.c6;
181
- var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.k;
182
- var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.d2;
183
- var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.i;
44
+ var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.r;
45
+ var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.t;
46
+ var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.s;
47
+ var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.u;
48
+ var objectCreate = kotlin_kotlin.$_$.q8;
49
+ var filter = kotlin_kotlin.$_$.ga;
50
+ var THROW_CCE = kotlin_kotlin.$_$.ge;
51
+ var Sequence = kotlin_kotlin.$_$.u9;
52
+ var map = kotlin_kotlin.$_$.ua;
53
+ var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.m5;
54
+ var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.o5;
55
+ var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.l5;
56
+ var Request = kotlin_it_unibo_tuprolog_solve.$_$.f3;
57
+ var take = kotlin_kotlin.$_$.gb;
58
+ var buffered = kotlin_it_unibo_tuprolog_utils.$_$.s;
59
+ var copy = kotlin_it_unibo_tuprolog_solve.$_$.x1;
60
+ var solveWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.u4;
61
+ var solve = kotlin_it_unibo_tuprolog_solve.$_$.v4;
62
+ var solveListWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.p4;
63
+ var solveList = kotlin_it_unibo_tuprolog_solve.$_$.o4;
64
+ var solveListWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.q4;
65
+ var solveOnceWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.r4;
66
+ var solveOnce = kotlin_it_unibo_tuprolog_solve.$_$.t4;
67
+ var solveOnceWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.s4;
68
+ var clone = kotlin_it_unibo_tuprolog_solve.$_$.n4;
69
+ var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.y3;
70
+ var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.z3;
71
+ var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.x3;
72
+ var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.a4;
73
+ var Solver = kotlin_it_unibo_tuprolog_solve.$_$.j5;
74
+ var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.c2;
75
+ var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.b2;
76
+ var NotImplementedError = kotlin_kotlin.$_$.be;
77
+ var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.y1;
78
+ var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.z1;
79
+ var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.g5;
80
+ var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.b5;
81
+ var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.d5;
82
+ var get_defaultFlags = kotlin_it_unibo_tuprolog_solve.$_$.y4;
83
+ var get_defaultStaticKb = kotlin_it_unibo_tuprolog_solve.$_$.c5;
84
+ var get_defaultDynamicKb = kotlin_it_unibo_tuprolog_solve.$_$.w4;
85
+ var get_defaultInputChannel = kotlin_it_unibo_tuprolog_solve.$_$.z4;
86
+ var get_defaultOutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.a5;
87
+ var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.x4;
88
+ var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.e5;
89
+ var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.h5;
90
+ var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.d2;
91
+ var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.f5;
92
+ var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.a2;
93
+ var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.i5;
94
+ var initMetadataForObject = kotlin_kotlin.$_$.f8;
95
+ var defineProp = kotlin_kotlin.$_$.r7;
96
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.u;
97
+ var firstOrNull = kotlin_kotlin.$_$.m3;
98
+ var emptyList = kotlin_kotlin.$_$.j3;
99
+ var emptySequence = kotlin_kotlin.$_$.ca;
100
+ var plus = kotlin_kotlin.$_$.ab;
101
+ var toMutableList = kotlin_kotlin.$_$.x5;
102
+ var first_0 = kotlin_kotlin.$_$.n3;
103
+ var listOf = kotlin_kotlin.$_$.f4;
104
+ var lastOrNull = kotlin_kotlin.$_$.z3;
105
+ var contains = kotlin_kotlin.$_$.y9;
106
+ var equals = kotlin_kotlin.$_$.s7;
107
+ var plus_0 = kotlin_kotlin.$_$.ya;
108
+ var Collection = kotlin_kotlin.$_$.b2;
109
+ var toString = kotlin_kotlin.$_$.u8;
110
+ var toString_0 = kotlin_kotlin.$_$.ve;
111
+ var hashCode = kotlin_kotlin.$_$.z7;
112
+ var getBooleanHashCode = kotlin_kotlin.$_$.v7;
113
+ var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.n;
114
+ var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.y;
115
+ var Unifier = kotlin_it_unibo_tuprolog_core.$_$.a2;
116
+ var Companion_instance_6 = kotlin_it_unibo_tuprolog_core.$_$.o;
117
+ var prepareForExecution = kotlin_it_unibo_tuprolog_core.$_$.e3;
118
+ var single = kotlin_kotlin.$_$.h5;
119
+ var copyToArray = kotlin_kotlin.$_$.g3;
120
+ var any = kotlin_kotlin.$_$.v9;
121
+ var sequence = kotlin_kotlin.$_$.db;
122
+ var drop = kotlin_kotlin.$_$.i3;
123
+ var plus_1 = kotlin_kotlin.$_$.z4;
124
+ var indexOf = kotlin_kotlin.$_$.na;
125
+ var CoroutineImpl = kotlin_kotlin.$_$.i6;
126
+ var SequenceScope = kotlin_kotlin.$_$.t9;
127
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h6;
128
+ var filterIndexed = kotlin_kotlin.$_$.da;
129
+ var initMetadataForLambda = kotlin_kotlin.$_$.e8;
130
+ var asSequence = kotlin_kotlin.$_$.r2;
131
+ var toList = kotlin_kotlin.$_$.jb;
132
+ var Companion_instance_7 = kotlin_it_unibo_tuprolog_solve.$_$.v;
133
+ var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.k5;
134
+ var lazy = kotlin_kotlin.$_$.pe;
135
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.w2;
136
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.t;
137
+ var KProperty1 = kotlin_kotlin.$_$.s9;
138
+ var getPropertyCallableRef = kotlin_kotlin.$_$.x7;
139
+ var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.v1;
140
+ var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.u1;
141
+ var apply = kotlin_it_unibo_tuprolog_solve.$_$.v3;
142
+ var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.u3;
143
+ var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.w3;
144
+ var update = kotlin_it_unibo_tuprolog_solve.$_$.w1;
145
+ var getBigIntHashCode = kotlin_kotlin.$_$.u7;
146
+ var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.s3;
147
+ var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.t3;
148
+ var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.r3;
149
+ var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.b4;
150
+ var initMetadataForInterface = kotlin_kotlin.$_$.d8;
151
+ var sequenceOf = kotlin_kotlin.$_$.cb;
152
+ var drop_0 = kotlin_kotlin.$_$.ba;
153
+ var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.h2;
154
+ var subtract = kotlin_kotlin.$_$.d7;
155
+ var getKClassFromExpression = kotlin_kotlin.$_$.o9;
156
+ var Halt = kotlin_it_unibo_tuprolog_solve.$_$.k4;
157
+ var Yes = kotlin_it_unibo_tuprolog_solve.$_$.m4;
158
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
159
+ var No = kotlin_it_unibo_tuprolog_solve.$_$.l4;
160
+ var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.x;
161
+ var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.r2;
162
+ var HaltException = kotlin_it_unibo_tuprolog_solve.$_$.q2;
163
+ var sequenceOf_0 = kotlin_kotlin.$_$.bb;
164
+ var flatMap = kotlin_kotlin.$_$.ja;
165
+ var asIterable = kotlin_kotlin.$_$.w9;
166
+ var Rule = kotlin_it_unibo_tuprolog_core.$_$.y1;
167
+ var none = kotlin_kotlin.$_$.wa;
168
+ var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
169
+ var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.w2;
170
+ var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.p1;
171
+ var listOf_0 = kotlin_kotlin.$_$.g4;
172
+ var PrimitiveWrapper = kotlin_it_unibo_tuprolog_solve.$_$.c3;
173
+ var PrimitiveWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.i2;
174
+ var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
175
+ var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k;
176
+ var TypeError_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.e2;
177
+ var last = kotlin_kotlin.$_$.a4;
178
+ var first_1 = kotlin_kotlin.$_$.o3;
179
+ var Pair = kotlin_kotlin.$_$.ee;
180
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.c8;
181
+ var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.e1;
182
+ var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.m3;
183
+ var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.c1;
184
184
  //endregion
185
185
  //region block: pre-declaration
186
186
  initMetadataForClass(SolverStrategies$Companion$prologStandard$1);
@@ -195,7 +195,7 @@
195
195
  initMetadataForClass(AlreadyExecutedState, 'AlreadyExecutedState');
196
196
  initMetadataForInterface(FinalState, 'FinalState');
197
197
  function get_context() {
198
- var tmp = this.f3d().context;
198
+ var tmp = this.get_solve_iymyhi_k$().context;
199
199
  return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
200
200
  }
201
201
  initMetadataForInterface(IntermediateState, 'IntermediateState');
@@ -229,19 +229,19 @@
229
229
  //endregion
230
230
  function SolverStrategies$Companion$prologStandard$1() {
231
231
  }
232
- protoOf(SolverStrategies$Companion$prologStandard$1).b3d = function (predicationSequence, context) {
232
+ protoOf(SolverStrategies$Companion$prologStandard$1).predicationChoiceStrategy_pbjr0w_k$ = function (predicationSequence, context) {
233
233
  return first(predicationSequence);
234
234
  };
235
- protoOf(SolverStrategies$Companion$prologStandard$1).c3d = function (unifiableClauses, context) {
235
+ protoOf(SolverStrategies$Companion$prologStandard$1).clauseChoiceStrategy_yngr8k_k$ = function (unifiableClauses, context) {
236
236
  return first(unifiableClauses);
237
237
  };
238
- protoOf(SolverStrategies$Companion$prologStandard$1).d3d = function (term, context) {
239
- return term.yt();
238
+ protoOf(SolverStrategies$Companion$prologStandard$1).successCheckStrategy_50okaq_k$ = function (term, context) {
239
+ return term.get_isTrue_ew6ti9_k$();
240
240
  };
241
241
  function Companion() {
242
242
  Companion_instance_10 = this;
243
243
  var tmp = this;
244
- tmp.e3d_1 = new SolverStrategies$Companion$prologStandard$1();
244
+ tmp.prologStandard_1 = new SolverStrategies$Companion$prologStandard$1();
245
245
  }
246
246
  var Companion_instance_10;
247
247
  function Companion_getInstance_5() {
@@ -251,27 +251,27 @@
251
251
  }
252
252
  function SolverStrategies$clauseChoiceStrategy$ref(p0) {
253
253
  return constructCallableReference(function (p0_0, p1) {
254
- return p0.c3d(p0_0, p1);
255
- }, 2, 0, 94, 'clauseChoiceStrategy', [p0]);
254
+ return p0.clauseChoiceStrategy_yngr8k_k$(p0_0, p1);
255
+ }, 2, 0, 171, 'clauseChoiceStrategy', [p0]);
256
256
  }
257
257
  function SolverStrategies$predicationChoiceStrategy$ref(p0) {
258
258
  return constructCallableReference(function (p0_0, p1) {
259
- return p0.b3d(p0_0, p1);
260
- }, 2, 0, 95, 'predicationChoiceStrategy', [p0]);
259
+ return p0.predicationChoiceStrategy_pbjr0w_k$(p0_0, p1);
260
+ }, 2, 0, 172, 'predicationChoiceStrategy', [p0]);
261
261
  }
262
262
  function StreamsSolver$Companion$solveToFinalStates$lambda(it) {
263
263
  return !(it == null) ? isInterface(it, FinalState) : false;
264
264
  }
265
265
  function StreamsSolver$Companion$solveToFinalStates$lambda_0($goalRequest) {
266
266
  return function (it) {
267
- return it.f3d().solution.q1v().equals($goalRequest.q1v());
267
+ return it.get_solve_iymyhi_k$().solution.get_query_ixn1y7_k$().equals($goalRequest.get_query_ixn1y7_k$());
268
268
  };
269
269
  }
270
270
  function StreamsSolver$Companion$solveToResponses$lambda(it) {
271
- return it.f3d();
271
+ return it.get_solve_iymyhi_k$();
272
272
  }
273
273
  function StreamsSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $this) {
274
- unificator = unificator === VOID ? Companion_getInstance().n1k() : unificator;
274
+ unificator = unificator === VOID ? Companion_getInstance().get_default_qtagd4_k$() : unificator;
275
275
  libraries = libraries === VOID ? Companion_instance.empty() : libraries;
276
276
  flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
277
277
  staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
@@ -280,7 +280,7 @@
280
280
  stdOut = stdOut === VOID ? Companion_instance_3.stdOut() : stdOut;
281
281
  stdErr = stdErr === VOID ? Companion_instance_3.stdErr() : stdErr;
282
282
  warnings = warnings === VOID ? Companion_instance_3.warning() : warnings;
283
- StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.q1x(stdIn), Companion_instance_5.t1x(stdOut, stdErr, warnings));
283
+ StreamsSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.fromStandard_im9cmu_k$(stdIn), Companion_instance_5.fromStandard_rfofsy_k$(stdOut, stdErr, warnings));
284
284
  return $this;
285
285
  }
286
286
  function StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
@@ -288,15 +288,15 @@
288
288
  }
289
289
  function Companion_0() {
290
290
  }
291
- protoOf(Companion_0).g3d = function (goalRequest) {
291
+ protoOf(Companion_0).solveToFinalStates_ioolgl_k$ = function (goalRequest) {
292
292
  // Inline function 'kotlin.sequences.filterIsInstance' call
293
- var this_0 = StateMachineExecutor_instance.h3d(new StateInit(goalRequest));
293
+ var this_0 = StateMachineExecutor_instance.execute_tri2km_k$(new StateInit(goalRequest));
294
294
  var tmp = filter(this_0, StreamsSolver$Companion$solveToFinalStates$lambda);
295
295
  var tmp_0 = isInterface(tmp, Sequence) ? tmp : THROW_CCE();
296
296
  return filter(tmp_0, StreamsSolver$Companion$solveToFinalStates$lambda_0(goalRequest));
297
297
  };
298
- protoOf(Companion_0).i3d = function (goalRequest) {
299
- var tmp = this.g3d(goalRequest);
298
+ protoOf(Companion_0).solveToResponses_lmvh2j_k$ = function (goalRequest) {
299
+ var tmp = this.solveToFinalStates_ioolgl_k$(goalRequest);
300
300
  return map(tmp, StreamsSolver$Companion$solveToResponses$lambda);
301
301
  };
302
302
  var Companion_instance_11;
@@ -305,83 +305,83 @@
305
305
  }
306
306
  function StreamsSolver$solve$lambda(this$0) {
307
307
  return function (it) {
308
- this$0.j3d_1 = it.i8().z30(it.f3d().sideEffects);
309
- return it.f3d().solution.cleanUp();
308
+ this$0.executionContext_1 = it.get_context_h02k06_k$().applyIterable_lkplre_k$(it.get_solve_iymyhi_k$().sideEffects);
309
+ return it.get_solve_iymyhi_k$().solution.cleanUp();
310
310
  };
311
311
  }
312
312
  function StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
313
- unificator = unificator === VOID ? Companion_getInstance().n1k() : unificator;
313
+ unificator = unificator === VOID ? Companion_getInstance().get_default_qtagd4_k$() : unificator;
314
314
  libraries = libraries === VOID ? Companion_instance.empty() : libraries;
315
315
  flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
316
316
  staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
317
317
  dynamicKb = dynamicKb === VOID ? Companion_instance_0.empty(unificator) : dynamicKb;
318
318
  inputChannels = inputChannels === VOID ? Companion_instance_4.fromStandard() : inputChannels;
319
319
  outputChannels = outputChannels === VOID ? Companion_instance_5.fromStandard() : outputChannels;
320
- this.j3d_1 = new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])), inputChannels, outputChannels);
320
+ this.executionContext_1 = new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])), inputChannels, outputChannels);
321
321
  }
322
- protoOf(StreamsSolver).o2a = function (goal, options) {
323
- this.j3d_1 = new StreamsExecutionContext(this.u1k(), this.r1u(), this.s1u(), this.t1u(), this.u1u(), VOID, this.v1u(), this.w1u(), VOID, VOID, VOID, options.y1w());
324
- var tmp = Companion_instance_11.g3d(new Request(extractSignature(goal), goal.bu(), this.j3d_1));
322
+ protoOf(StreamsSolver).solveWithOptions_5o6xex_k$ = function (goal, options) {
323
+ this.executionContext_1 = new StreamsExecutionContext(this.get_unificator_xw6v3j_k$(), this.get_libraries_lyf10w_k$(), this.get_flags_irfhb2_k$(), this.get_staticKb_a01l1u_k$(), this.get_dynamicKb_wvqg8j_k$(), VOID, this.get_inputChannels_uyf05t_k$(), this.get_outputChannels_ffvoca_k$(), VOID, VOID, VOID, options.get_timeout_kgpqiw_k$());
324
+ var tmp = Companion_instance_11.solveToFinalStates_ioolgl_k$(new Request(extractSignature(goal), goal.get_argsList_cw1bs4_k$(), this.executionContext_1));
325
325
  var solutionSequence = map(tmp, StreamsSolver$solve$lambda(this));
326
- if (options.z1w() > 0) {
327
- solutionSequence = take(solutionSequence, options.z1w());
326
+ if (options.get_limit_iuokuq_k$() > 0) {
327
+ solutionSequence = take(solutionSequence, options.get_limit_iuokuq_k$());
328
328
  }
329
- if (options.x1w()) {
329
+ if (options.get_isEager_zan0w5_k$()) {
330
330
  solutionSequence = buffered(solutionSequence);
331
331
  }
332
332
  return solutionSequence;
333
333
  };
334
334
  protoOf(StreamsSolver).solveWithOptions = function (goal, options) {
335
- return this.o2a(goal, options);
335
+ return this.solveWithOptions_5o6xex_k$(goal, options);
336
336
  };
337
- protoOf(StreamsSolver).i1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
337
+ protoOf(StreamsSolver).copy_equ050_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
338
338
  return StreamsSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
339
339
  };
340
340
  protoOf(StreamsSolver).copy = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
341
341
  return this.copy(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof StreamsSolver) ? $super : THROW_CCE());
342
342
  };
343
- protoOf(StreamsSolver).u1k = function () {
344
- return this.j3d_1.k3d_1;
343
+ protoOf(StreamsSolver).get_unificator_xw6v3j_k$ = function () {
344
+ return this.executionContext_1.unificator_1;
345
345
  };
346
- protoOf(StreamsSolver).r1u = function () {
347
- return this.j3d_1.l3d_1;
346
+ protoOf(StreamsSolver).get_libraries_lyf10w_k$ = function () {
347
+ return this.executionContext_1.libraries_1;
348
348
  };
349
- protoOf(StreamsSolver).s1u = function () {
350
- return this.j3d_1.m3d_1;
349
+ protoOf(StreamsSolver).get_flags_irfhb2_k$ = function () {
350
+ return this.executionContext_1.flags_1;
351
351
  };
352
- protoOf(StreamsSolver).t1u = function () {
353
- return this.j3d_1.n3d_1;
352
+ protoOf(StreamsSolver).get_staticKb_a01l1u_k$ = function () {
353
+ return this.executionContext_1.staticKb_1;
354
354
  };
355
- protoOf(StreamsSolver).u1u = function () {
356
- return this.j3d_1.o3d_1;
355
+ protoOf(StreamsSolver).get_dynamicKb_wvqg8j_k$ = function () {
356
+ return this.executionContext_1.dynamicKb_1;
357
357
  };
358
- protoOf(StreamsSolver).v1u = function () {
359
- return this.j3d_1.q3d_1;
358
+ protoOf(StreamsSolver).get_inputChannels_uyf05t_k$ = function () {
359
+ return this.executionContext_1.inputChannels_1;
360
360
  };
361
- protoOf(StreamsSolver).w1u = function () {
362
- return this.j3d_1.r3d_1;
361
+ protoOf(StreamsSolver).get_outputChannels_ffvoca_k$ = function () {
362
+ return this.executionContext_1.outputChannels_1;
363
363
  };
364
- protoOf(StreamsSolver).a1v = function () {
365
- return this.j3d_1.p3d_1;
364
+ protoOf(StreamsSolver).get_operators_z0nmfu_k$ = function () {
365
+ return this.executionContext_1.operators_1;
366
366
  };
367
367
  function StreamsSolverFactory() {
368
368
  }
369
- protoOf(StreamsSolverFactory).d1x = function () {
369
+ protoOf(StreamsSolverFactory).get_defaultBuiltins_lwij14_k$ = function () {
370
370
  return DefaultBuiltins_getInstance();
371
371
  };
372
- protoOf(StreamsSolverFactory).o1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
372
+ protoOf(StreamsSolverFactory).solverOf_7gm3c2_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
373
373
  return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
374
374
  };
375
375
  protoOf(StreamsSolverFactory).rawSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, $super) {
376
376
  return this.rawSolverOf(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, ($super == null ? true : $super instanceof StreamsSolverFactory) ? $super : THROW_CCE());
377
377
  };
378
- protoOf(StreamsSolverFactory).u1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
379
- return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.q1x(stdIn), Companion_instance_5.t1x(stdOut, stdErr, warnings));
378
+ protoOf(StreamsSolverFactory).solverOf_dn642x_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
379
+ return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, Companion_instance_4.fromStandard_im9cmu_k$(stdIn), Companion_instance_5.fromStandard_rfofsy_k$(stdOut, stdErr, warnings));
380
380
  };
381
381
  protoOf(StreamsSolverFactory).solverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
382
382
  return this.solverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof StreamsSolverFactory) ? $super : THROW_CCE());
383
383
  };
384
- protoOf(StreamsSolverFactory).w1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
384
+ protoOf(StreamsSolverFactory).mutableSolverOf_wmp0rz_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
385
385
  // Inline function 'kotlin.TODO' call
386
386
  var reason = 'Mutable stream solver is not supported yet';
387
387
  throw new NotImplementedError('An operation is not implemented: ' + reason);
@@ -389,7 +389,7 @@
389
389
  protoOf(StreamsSolverFactory).mutableSolverOf = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, $super) {
390
390
  return this.mutableSolverOf(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, ($super == null ? true : $super instanceof StreamsSolverFactory) ? $super : THROW_CCE());
391
391
  };
392
- protoOf(StreamsSolverFactory).y1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
392
+ protoOf(StreamsSolverFactory).mutableSolverOf_16557c_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
393
393
  // Inline function 'kotlin.TODO' call
394
394
  var reason = 'Mutable stream solver is not supported yet';
395
395
  throw new NotImplementedError('An operation is not implemented: ' + reason);
@@ -403,29 +403,29 @@
403
403
  }
404
404
  function getFirstChoicePointContext($this) {
405
405
  // Inline function 'kotlin.collections.filter' call
406
- var tmp0 = $this.z3d_1;
406
+ var tmp0 = $this.clauseScopedParents_1;
407
407
  // Inline function 'kotlin.collections.filterTo' call
408
408
  var destination = ArrayList_init_$Create$();
409
- var _iterator__ex2g4s = tmp0.n();
410
- while (_iterator__ex2g4s.q()) {
411
- var element = _iterator__ex2g4s.r();
412
- if (element.x3d_1.a3e_1) {
413
- destination.l(element);
409
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
410
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
411
+ var element = _iterator__ex2g4s.next_20eer_k$();
412
+ if (element.sideEffectManager_1.isChoicePointChild_1) {
413
+ destination.add_utx5q5_k$(element);
414
414
  }
415
415
  }
416
416
  // Inline function 'kotlin.collections.mapNotNull' call
417
417
  // Inline function 'kotlin.collections.mapNotNullTo' call
418
418
  var destination_0 = ArrayList_init_$Create$();
419
419
  // Inline function 'kotlin.collections.forEach' call
420
- var _iterator__ex2g4s_0 = destination.n();
421
- while (_iterator__ex2g4s_0.q()) {
422
- var element_0 = _iterator__ex2g4s_0.r();
423
- var tmp0_safe_receiver = firstOrNull(element_0.x3d_1.z3d_1);
420
+ var _iterator__ex2g4s_0 = destination.iterator_jk1svi_k$();
421
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
422
+ var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
423
+ var tmp0_safe_receiver = firstOrNull(element_0.sideEffectManager_1.clauseScopedParents_1);
424
424
  if (tmp0_safe_receiver == null)
425
425
  null;
426
426
  else {
427
427
  // Inline function 'kotlin.let' call
428
- destination_0.l(tmp0_safe_receiver);
428
+ destination_0.add_utx5q5_k$(tmp0_safe_receiver);
429
429
  }
430
430
  }
431
431
  return destination_0;
@@ -437,44 +437,44 @@
437
437
  logicalParentRequests = logicalParentRequests === VOID ? emptyList() : logicalParentRequests;
438
438
  throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? emptySequence() : throwNonSelectableParentContexts;
439
439
  throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? null : throwRelatedToCutContextsParent;
440
- this.z3d_1 = clauseScopedParents;
441
- this.a3e_1 = isChoicePointChild;
442
- this.b3e_1 = toCutContextsParent;
443
- this.c3e_1 = logicalParentRequests;
444
- this.d3e_1 = throwNonSelectableParentContexts;
445
- this.e3e_1 = throwRelatedToCutContextsParent;
440
+ this.clauseScopedParents_1 = clauseScopedParents;
441
+ this.isChoicePointChild_1 = isChoicePointChild;
442
+ this.toCutContextsParent_1 = toCutContextsParent;
443
+ this.logicalParentRequests_1 = logicalParentRequests;
444
+ this.throwNonSelectableParentContexts_1 = throwNonSelectableParentContexts;
445
+ this.throwRelatedToCutContextsParent_1 = throwRelatedToCutContextsParent;
446
446
  }
447
- protoOf(SideEffectManagerImpl).f3e = function () {
448
- return this.g3e(VOID, VOID, plus(this.b3e_1, getFirstChoicePointContext(this)));
447
+ protoOf(SideEffectManagerImpl).cut_24aq_k$ = function () {
448
+ return this.copy$default_m6yl2r_k$(VOID, VOID, plus(this.toCutContextsParent_1, getFirstChoicePointContext(this)));
449
449
  };
450
450
  protoOf(SideEffectManagerImpl).cut = function () {
451
- return this.f3e();
451
+ return this.cut_24aq_k$();
452
452
  };
453
- protoOf(SideEffectManagerImpl).h3e = function (currentContext) {
453
+ protoOf(SideEffectManagerImpl).stateInitInitialize_k45sa5_k$ = function (currentContext) {
454
454
  // Inline function 'kotlin.apply' call
455
- var this_0 = toMutableList(this.z3d_1);
456
- this_0.s3(0, currentContext);
457
- return this.g3e(this_0, false);
455
+ var this_0 = toMutableList(this.clauseScopedParents_1);
456
+ this_0.add_dl6gt3_k$(0, currentContext);
457
+ return this.copy$default_m6yl2r_k$(this_0, false);
458
458
  };
459
- protoOf(SideEffectManagerImpl).i3e = function (currentContext, isChoicePointChild, logicalParentRequest) {
459
+ protoOf(SideEffectManagerImpl).creatingNewRequest_40r2sm_k$ = function (currentContext, isChoicePointChild, logicalParentRequest) {
460
460
  // Inline function 'kotlin.apply' call
461
- var this_0 = toMutableList(this.z3d_1);
462
- this_0.s3(0, currentContext);
461
+ var this_0 = toMutableList(this.clauseScopedParents_1);
462
+ this_0.add_dl6gt3_k$(0, currentContext);
463
463
  var tmp = this_0;
464
464
  var tmp_0;
465
- if (this.c3e_1.y(logicalParentRequest)) {
465
+ if (this.logicalParentRequests_1.contains_aljjnj_k$(logicalParentRequest)) {
466
466
  // Inline function 'kotlin.collections.dropWhile' call
467
- var this_1 = this.c3e_1;
467
+ var this_1 = this.logicalParentRequests_1;
468
468
  var yielding = false;
469
469
  var list = ArrayList_init_$Create$();
470
- var _iterator__ex2g4s = this_1.n();
471
- while (_iterator__ex2g4s.q()) {
472
- var item = _iterator__ex2g4s.r();
470
+ var _iterator__ex2g4s = this_1.iterator_jk1svi_k$();
471
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
472
+ var item = _iterator__ex2g4s.next_20eer_k$();
473
473
  if (yielding) {
474
- list.l(item);
474
+ list.add_utx5q5_k$(item);
475
475
  } else {
476
476
  if (!!item.equals(logicalParentRequest)) {
477
- list.l(item);
477
+ list.add_utx5q5_k$(item);
478
478
  yielding = true;
479
479
  }
480
480
  }
@@ -482,44 +482,44 @@
482
482
  tmp_0 = list;
483
483
  } else {
484
484
  // Inline function 'kotlin.apply' call
485
- var this_2 = toMutableList(this.c3e_1);
486
- this_2.s3(0, logicalParentRequest);
485
+ var this_2 = toMutableList(this.logicalParentRequests_1);
486
+ this_2.add_dl6gt3_k$(0, logicalParentRequest);
487
487
  tmp_0 = this_2;
488
488
  }
489
- return this.g3e(tmp, isChoicePointChild, VOID, tmp_0);
489
+ return this.copy$default_m6yl2r_k$(tmp, isChoicePointChild, VOID, tmp_0);
490
490
  };
491
- protoOf(SideEffectManagerImpl).j3e = function () {
492
- return this.g3e(listOf(first_0(this.z3d_1)));
491
+ protoOf(SideEffectManagerImpl).enterRuleSubScope_lpzv30_k$ = function () {
492
+ return this.copy$default_m6yl2r_k$(listOf(first_0(this.clauseScopedParents_1)));
493
493
  };
494
- protoOf(SideEffectManagerImpl).k3e = function (upperScopeSideEffectsManager) {
494
+ protoOf(SideEffectManagerImpl).extendParentScopeWith_y1m3r3_k$ = function (upperScopeSideEffectsManager) {
495
495
  // Inline function 'kotlin.apply' call
496
- var this_0 = toMutableList(this.z3d_1);
497
- this_0.w(upperScopeSideEffectsManager.z3d_1);
498
- return this.g3e(this_0);
496
+ var this_0 = toMutableList(this.clauseScopedParents_1);
497
+ this_0.addAll_h3ej1q_k$(upperScopeSideEffectsManager.clauseScopedParents_1);
498
+ return this.copy$default_m6yl2r_k$(this_0);
499
499
  };
500
- protoOf(SideEffectManagerImpl).l3e = function () {
501
- return contains(this.b3e_1, lastOrNull(this.z3d_1)) || this.m3e();
500
+ protoOf(SideEffectManagerImpl).shouldCutExecuteInRuleSelection_wc622h_k$ = function () {
501
+ return contains(this.toCutContextsParent_1, lastOrNull(this.clauseScopedParents_1)) || this.shouldExecuteThrowCut_n98vym_k$();
502
502
  };
503
- protoOf(SideEffectManagerImpl).n3e = function (toUnifyArgument) {
503
+ protoOf(SideEffectManagerImpl).retrieveAncestorCatchRequest_r27er6_k$ = function (toUnifyArgument) {
504
504
  // Inline function 'kotlin.collections.filter' call
505
- var tmp0 = this.c3e_1;
505
+ var tmp0 = this.logicalParentRequests_1;
506
506
  // Inline function 'kotlin.collections.filterTo' call
507
507
  var destination = ArrayList_init_$Create$();
508
- var _iterator__ex2g4s = tmp0.n();
509
- while (_iterator__ex2g4s.q()) {
510
- var element = _iterator__ex2g4s.r();
508
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
509
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
510
+ var element = _iterator__ex2g4s.next_20eer_k$();
511
511
  if (element.signature.equals(Catch_getInstance().signature)) {
512
- destination.l(element);
512
+ destination.add_utx5q5_k$(element);
513
513
  }
514
514
  }
515
515
  // Inline function 'kotlin.collections.filterNot' call
516
516
  // Inline function 'kotlin.collections.filterNotTo' call
517
517
  var destination_0 = ArrayList_init_$Create$();
518
- var _iterator__ex2g4s_0 = destination.n();
519
- while (_iterator__ex2g4s_0.q()) {
520
- var element_0 = _iterator__ex2g4s_0.r();
521
- if (!contains(this.d3e_1, element_0.context)) {
522
- destination_0.l(element_0);
518
+ var _iterator__ex2g4s_0 = destination.iterator_jk1svi_k$();
519
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
520
+ var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
521
+ if (!contains(this.throwNonSelectableParentContexts_1, element_0.context)) {
522
+ destination_0.add_utx5q5_k$(element_0);
523
523
  }
524
524
  }
525
525
  var ancestorCatchesRequests = destination_0;
@@ -527,10 +527,10 @@
527
527
  var tmp$ret$7;
528
528
  $l$block: {
529
529
  // Inline function 'kotlin.collections.firstOrNull' call
530
- var _iterator__ex2g4s_1 = ancestorCatchesRequests.n();
531
- while (_iterator__ex2g4s_1.q()) {
532
- var element_1 = _iterator__ex2g4s_1.r();
533
- if (Companion_getInstance().matches(element_1.arguments.x(1), toUnifyArgument)) {
530
+ var _iterator__ex2g4s_1 = ancestorCatchesRequests.iterator_jk1svi_k$();
531
+ while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
532
+ var element_1 = _iterator__ex2g4s_1.next_20eer_k$();
533
+ if (Companion_getInstance().matches(element_1.arguments.get_c1px32_k$(1), toUnifyArgument)) {
534
534
  tmp$ret$7 = element_1;
535
535
  break $l$block;
536
536
  }
@@ -539,26 +539,26 @@
539
539
  }
540
540
  return tmp$ret$7;
541
541
  };
542
- protoOf(SideEffectManagerImpl).o3e = function (ancestorCatchContext) {
543
- return this.g3e(VOID, VOID, VOID, VOID, VOID, ancestorCatchContext);
542
+ protoOf(SideEffectManagerImpl).throwCut_aijtdq_k$ = function (ancestorCatchContext) {
543
+ return this.copy$default_m6yl2r_k$(VOID, VOID, VOID, VOID, VOID, ancestorCatchContext);
544
544
  };
545
- protoOf(SideEffectManagerImpl).p3e = function (contextImpl) {
546
- return equals(this.e3e_1, contextImpl);
545
+ protoOf(SideEffectManagerImpl).isSelectedThrowCatch_8rjyws_k$ = function (contextImpl) {
546
+ return equals(this.throwRelatedToCutContextsParent_1, contextImpl);
547
547
  };
548
- protoOf(SideEffectManagerImpl).q3e = function (contextImpl) {
549
- return this.g3e(VOID, VOID, VOID, VOID, plus_0(this.d3e_1, contextImpl));
548
+ protoOf(SideEffectManagerImpl).ensureNoMoreSelectableCatch_83cmnn_k$ = function (contextImpl) {
549
+ return this.copy$default_m6yl2r_k$(VOID, VOID, VOID, VOID, plus_0(this.throwNonSelectableParentContexts_1, contextImpl));
550
550
  };
551
- protoOf(SideEffectManagerImpl).r3e = function (toRecoverSituation) {
552
- return this.g3e(VOID, VOID, toRecoverSituation.b3e_1);
551
+ protoOf(SideEffectManagerImpl).resetCutWorkChanges_ch1794_k$ = function (toRecoverSituation) {
552
+ return this.copy$default_m6yl2r_k$(VOID, VOID, toRecoverSituation.toCutContextsParent_1);
553
553
  };
554
- protoOf(SideEffectManagerImpl).m3e = function () {
555
- var tmp0 = this.c3e_1;
554
+ protoOf(SideEffectManagerImpl).shouldExecuteThrowCut_n98vym_k$ = function () {
555
+ var tmp0 = this.logicalParentRequests_1;
556
556
  var tmp$ret$0;
557
557
  $l$block_0: {
558
558
  // Inline function 'kotlin.collections.any' call
559
559
  var tmp;
560
560
  if (isInterface(tmp0, Collection)) {
561
- tmp = tmp0.h();
561
+ tmp = tmp0.isEmpty_y1axqb_k$();
562
562
  } else {
563
563
  tmp = false;
564
564
  }
@@ -566,10 +566,10 @@
566
566
  tmp$ret$0 = false;
567
567
  break $l$block_0;
568
568
  }
569
- var _iterator__ex2g4s = tmp0.n();
570
- while (_iterator__ex2g4s.q()) {
571
- var element = _iterator__ex2g4s.r();
572
- if (element.context.equals(this.e3e_1)) {
569
+ var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
570
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
571
+ var element = _iterator__ex2g4s.next_20eer_k$();
572
+ if (element.context.equals(this.throwRelatedToCutContextsParent_1)) {
573
573
  tmp$ret$0 = true;
574
574
  break $l$block_0;
575
575
  }
@@ -578,28 +578,28 @@
578
578
  }
579
579
  return tmp$ret$0;
580
580
  };
581
- protoOf(SideEffectManagerImpl).s3e = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
581
+ protoOf(SideEffectManagerImpl).copy_v2ree8_k$ = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) {
582
582
  return new SideEffectManagerImpl(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
583
583
  };
584
- protoOf(SideEffectManagerImpl).g3e = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $super) {
585
- clauseScopedParents = clauseScopedParents === VOID ? this.z3d_1 : clauseScopedParents;
586
- isChoicePointChild = isChoicePointChild === VOID ? this.a3e_1 : isChoicePointChild;
587
- toCutContextsParent = toCutContextsParent === VOID ? this.b3e_1 : toCutContextsParent;
588
- logicalParentRequests = logicalParentRequests === VOID ? this.c3e_1 : logicalParentRequests;
589
- throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? this.d3e_1 : throwNonSelectableParentContexts;
590
- throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? this.e3e_1 : throwRelatedToCutContextsParent;
591
- return $super === VOID ? this.s3e(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) : $super.s3e.call(this, clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
584
+ protoOf(SideEffectManagerImpl).copy$default_m6yl2r_k$ = function (clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent, $super) {
585
+ clauseScopedParents = clauseScopedParents === VOID ? this.clauseScopedParents_1 : clauseScopedParents;
586
+ isChoicePointChild = isChoicePointChild === VOID ? this.isChoicePointChild_1 : isChoicePointChild;
587
+ toCutContextsParent = toCutContextsParent === VOID ? this.toCutContextsParent_1 : toCutContextsParent;
588
+ logicalParentRequests = logicalParentRequests === VOID ? this.logicalParentRequests_1 : logicalParentRequests;
589
+ throwNonSelectableParentContexts = throwNonSelectableParentContexts === VOID ? this.throwNonSelectableParentContexts_1 : throwNonSelectableParentContexts;
590
+ throwRelatedToCutContextsParent = throwRelatedToCutContextsParent === VOID ? this.throwRelatedToCutContextsParent_1 : throwRelatedToCutContextsParent;
591
+ return $super === VOID ? this.copy_v2ree8_k$(clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent) : $super.copy_v2ree8_k$.call(this, clauseScopedParents, isChoicePointChild, toCutContextsParent, logicalParentRequests, throwNonSelectableParentContexts, throwRelatedToCutContextsParent);
592
592
  };
593
593
  protoOf(SideEffectManagerImpl).toString = function () {
594
- return 'SideEffectManagerImpl(clauseScopedParents=' + toString(this.z3d_1) + ', isChoicePointChild=' + this.a3e_1 + ', toCutContextsParent=' + toString(this.b3e_1) + ', logicalParentRequests=' + toString(this.c3e_1) + ', throwNonSelectableParentContexts=' + toString(this.d3e_1) + ', throwRelatedToCutContextsParent=' + toString_0(this.e3e_1) + ')';
594
+ return 'SideEffectManagerImpl(clauseScopedParents=' + toString(this.clauseScopedParents_1) + ', isChoicePointChild=' + this.isChoicePointChild_1 + ', toCutContextsParent=' + toString(this.toCutContextsParent_1) + ', logicalParentRequests=' + toString(this.logicalParentRequests_1) + ', throwNonSelectableParentContexts=' + toString(this.throwNonSelectableParentContexts_1) + ', throwRelatedToCutContextsParent=' + toString_0(this.throwRelatedToCutContextsParent_1) + ')';
595
595
  };
596
596
  protoOf(SideEffectManagerImpl).hashCode = function () {
597
- var result = hashCode(this.z3d_1);
598
- result = imul(result, 31) + getBooleanHashCode(this.a3e_1) | 0;
599
- result = imul(result, 31) + hashCode(this.b3e_1) | 0;
600
- result = imul(result, 31) + hashCode(this.c3e_1) | 0;
601
- result = imul(result, 31) + hashCode(this.d3e_1) | 0;
602
- result = imul(result, 31) + (this.e3e_1 == null ? 0 : this.e3e_1.hashCode()) | 0;
597
+ var result = hashCode(this.clauseScopedParents_1);
598
+ result = imul(result, 31) + getBooleanHashCode(this.isChoicePointChild_1) | 0;
599
+ result = imul(result, 31) + hashCode(this.toCutContextsParent_1) | 0;
600
+ result = imul(result, 31) + hashCode(this.logicalParentRequests_1) | 0;
601
+ result = imul(result, 31) + hashCode(this.throwNonSelectableParentContexts_1) | 0;
602
+ result = imul(result, 31) + (this.throwRelatedToCutContextsParent_1 == null ? 0 : this.throwRelatedToCutContextsParent_1.hashCode()) | 0;
603
603
  return result;
604
604
  };
605
605
  protoOf(SideEffectManagerImpl).equals = function (other) {
@@ -607,42 +607,42 @@
607
607
  return true;
608
608
  if (!(other instanceof SideEffectManagerImpl))
609
609
  return false;
610
- if (!equals(this.z3d_1, other.z3d_1))
610
+ if (!equals(this.clauseScopedParents_1, other.clauseScopedParents_1))
611
611
  return false;
612
- if (!(this.a3e_1 === other.a3e_1))
612
+ if (!(this.isChoicePointChild_1 === other.isChoicePointChild_1))
613
613
  return false;
614
- if (!equals(this.b3e_1, other.b3e_1))
614
+ if (!equals(this.toCutContextsParent_1, other.toCutContextsParent_1))
615
615
  return false;
616
- if (!equals(this.c3e_1, other.c3e_1))
616
+ if (!equals(this.logicalParentRequests_1, other.logicalParentRequests_1))
617
617
  return false;
618
- if (!equals(this.d3e_1, other.d3e_1))
618
+ if (!equals(this.throwNonSelectableParentContexts_1, other.throwNonSelectableParentContexts_1))
619
619
  return false;
620
- if (!equals(this.e3e_1, other.e3e_1))
620
+ if (!equals(this.throwRelatedToCutContextsParent_1, other.throwRelatedToCutContextsParent_1))
621
621
  return false;
622
622
  return true;
623
623
  };
624
624
  function resetCutWorkChanges(_this__u8e3s4, toRecoverSituation) {
625
625
  var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
626
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r3e(toRecoverSituation);
626
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.resetCutWorkChanges_ch1794_k$(toRecoverSituation);
627
627
  }
628
628
  function isSelectedThrowCatch(_this__u8e3s4, context) {
629
629
  var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
630
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p3e(context);
630
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.isSelectedThrowCatch_8rjyws_k$(context);
631
631
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
632
632
  }
633
633
  function shouldExecuteThrowCut(_this__u8e3s4) {
634
634
  var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
635
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m3e();
635
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.shouldExecuteThrowCut_n98vym_k$();
636
636
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
637
637
  }
638
638
  function shouldCutExecuteInRuleSelection(_this__u8e3s4) {
639
639
  var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
640
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l3e();
640
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.shouldCutExecuteInRuleSelection_wc622h_k$();
641
641
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
642
642
  }
643
643
  function extendParentScopeWith(_this__u8e3s4, upperScopeSideEffectsManager) {
644
644
  var tmp0_safe_receiver = _this__u8e3s4 instanceof SideEffectManagerImpl ? _this__u8e3s4 : null;
645
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k3e(upperScopeSideEffectsManager);
645
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.extendParentScopeWith_y1m3r3_k$(upperScopeSideEffectsManager);
646
646
  }
647
647
  function isWellFormed(_this__u8e3s4) {
648
648
  return _this__u8e3s4.accept(Companion_getInstance_1().bodyWellFormedVisitor);
@@ -650,22 +650,22 @@
650
650
  function newSolveRequest(_this__u8e3s4, newGoal, toAddSubstitutions, toPropagateContextData, baseSideEffectManager, requestIssuingInstant, isChoicePointChild) {
651
651
  toAddSubstitutions = toAddSubstitutions === VOID ? Companion_getInstance_2().empty() : toAddSubstitutions;
652
652
  toPropagateContextData = toPropagateContextData === VOID ? _this__u8e3s4.context : toPropagateContextData;
653
- baseSideEffectManager = baseSideEffectManager === VOID ? _this__u8e3s4.context.x3d_1 : baseSideEffectManager;
654
- requestIssuingInstant = requestIssuingInstant === VOID ? _this__u8e3s4.p28_1 : requestIssuingInstant;
653
+ baseSideEffectManager = baseSideEffectManager === VOID ? _this__u8e3s4.context.sideEffectManager_1 : baseSideEffectManager;
654
+ requestIssuingInstant = requestIssuingInstant === VOID ? _this__u8e3s4.startTime_1 : requestIssuingInstant;
655
655
  isChoicePointChild = isChoicePointChild === VOID ? false : isChoicePointChild;
656
656
  var tmp = extractSignature(newGoal);
657
- var tmp_0 = newGoal.bu();
658
- var tmp_1 = toPropagateContextData.r1u();
659
- var tmp_2 = toPropagateContextData.s1u();
660
- var tmp_3 = toPropagateContextData.t1u();
661
- var tmp_4 = toPropagateContextData.u1u();
662
- var tmp_5 = toPropagateContextData.v1u();
663
- var tmp_6 = toPropagateContextData.w1u();
664
- var tmp_7 = _this__u8e3s4.context.t3d_1.plus(toAddSubstitutions);
665
- return _this__u8e3s4.l2h(tmp, tmp_0, _this__u8e3s4.context.t3e(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.i3e(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4)), requestIssuingInstant);
657
+ var tmp_0 = newGoal.get_argsList_cw1bs4_k$();
658
+ var tmp_1 = toPropagateContextData.get_libraries_lyf10w_k$();
659
+ var tmp_2 = toPropagateContextData.get_flags_irfhb2_k$();
660
+ var tmp_3 = toPropagateContextData.get_staticKb_a01l1u_k$();
661
+ var tmp_4 = toPropagateContextData.get_dynamicKb_wvqg8j_k$();
662
+ var tmp_5 = toPropagateContextData.get_inputChannels_uyf05t_k$();
663
+ var tmp_6 = toPropagateContextData.get_outputChannels_ffvoca_k$();
664
+ var tmp_7 = _this__u8e3s4.context.substitution_1.plus(toAddSubstitutions);
665
+ return _this__u8e3s4.copy$default_c2mg6k_k$(tmp, tmp_0, _this__u8e3s4.context.copy$default_91c9pl_k$(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.creatingNewRequest_40r2sm_k$(_this__u8e3s4.context, isChoicePointChild, _this__u8e3s4)), requestIssuingInstant);
666
666
  }
667
667
  function prepareForExecutionAsGoal(_this__u8e3s4) {
668
- return single(prepareForExecution(Companion_instance_6.of(_this__u8e3s4, [])).bu()).uu();
668
+ return single(prepareForExecution(Companion_instance_6.of(_this__u8e3s4, [])).get_argsList_cw1bs4_k$()).castTo_8vzplt_k$();
669
669
  }
670
670
  function replyWith(_this__u8e3s4, otherResponse) {
671
671
  // Inline function 'kotlin.with' call
@@ -674,7 +674,7 @@
674
674
  // Inline function 'kotlin.collections.toTypedArray' call
675
675
  var this_0 = otherResponse.sideEffects;
676
676
  var tmp$ret$2 = copyToArray(this_0);
677
- return _this__u8e3s4.e2h(otherResponse.solution, tmp, tmp$ret$2.slice());
677
+ return _this__u8e3s4.replyWith_o0sskn_k$(otherResponse.solution, tmp, tmp$ret$2.slice());
678
678
  }
679
679
  function orderWithStrategy(_this__u8e3s4, context, selectionStrategy) {
680
680
  var tmp;
@@ -688,16 +688,16 @@
688
688
  function addWithNoDuplicates(_this__u8e3s4, toAddSideEffects) {
689
689
  var duplicatedCount = 0;
690
690
  // Inline function 'kotlin.collections.forEach' call
691
- var _iterator__ex2g4s = _this__u8e3s4.n();
692
- while (_iterator__ex2g4s.q()) {
693
- var element = _iterator__ex2g4s.r();
691
+ var _iterator__ex2g4s = _this__u8e3s4.iterator_jk1svi_k$();
692
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
693
+ var element = _iterator__ex2g4s.next_20eer_k$();
694
694
  // Inline function 'kotlin.collections.find' call
695
695
  var tmp$ret$3;
696
696
  $l$block: {
697
697
  // Inline function 'kotlin.collections.firstOrNull' call
698
- var _iterator__ex2g4s_0 = toAddSideEffects.n();
699
- while (_iterator__ex2g4s_0.q()) {
700
- var element_0 = _iterator__ex2g4s_0.r();
698
+ var _iterator__ex2g4s_0 = toAddSideEffects.iterator_jk1svi_k$();
699
+ while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
700
+ var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
701
701
  if (element === element_0) {
702
702
  tmp$ret$3 = element_0;
703
703
  break $l$block;
@@ -713,13 +713,13 @@
713
713
  }
714
714
  function moreThanOne(elements) {
715
715
  // Inline function 'kotlin.with' call
716
- var $this$with = elements.n();
716
+ var $this$with = elements.iterator_jk1svi_k$();
717
717
  var tmp;
718
- if (!$this$with.q()) {
718
+ if (!$this$with.hasNext_bitz1p_k$()) {
719
719
  tmp = false;
720
720
  } else {
721
- $this$with.r();
722
- tmp = $this$with.q();
721
+ $this$with.next_20eer_k$();
722
+ tmp = $this$with.hasNext_bitz1p_k$();
723
723
  }
724
724
  return tmp;
725
725
  }
@@ -729,39 +729,39 @@
729
729
  };
730
730
  }
731
731
  function orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
732
- this.c3f_1 = $selectionStrategy;
733
- this.d3f_1 = $this_orderWithStrategy;
734
- this.e3f_1 = $context;
732
+ this.$selectionStrategy_1 = $selectionStrategy;
733
+ this.$this_orderWithStrategy_1 = $this_orderWithStrategy;
734
+ this.$context_1 = $context;
735
735
  CoroutineImpl.call(this, resultContinuation);
736
736
  }
737
- protoOf(orderWithStrategy$slambda).h3f = function ($this$sequence, $completion) {
738
- var tmp = this.i3f($this$sequence, $completion);
739
- tmp.e8_1 = Unit_instance;
740
- tmp.f8_1 = null;
741
- return tmp.k8();
737
+ protoOf(orderWithStrategy$slambda).invoke_hab2ee_k$ = function ($this$sequence, $completion) {
738
+ var tmp = this.create_xgwk16_k$($this$sequence, $completion);
739
+ tmp.result_1 = Unit_instance;
740
+ tmp.exception_1 = null;
741
+ return tmp.doResume_5yljmg_k$();
742
742
  };
743
- protoOf(orderWithStrategy$slambda).b9 = function (p1, $completion) {
744
- return this.h3f(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
743
+ protoOf(orderWithStrategy$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
744
+ return this.invoke_hab2ee_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
745
745
  };
746
- protoOf(orderWithStrategy$slambda).k8 = function () {
747
- var suspendResult = this.e8_1;
746
+ protoOf(orderWithStrategy$slambda).doResume_5yljmg_k$ = function () {
747
+ var suspendResult = this.result_1;
748
748
  $sm: do
749
749
  try {
750
- var tmp = this.c8_1;
750
+ var tmp = this.state_1;
751
751
  switch (tmp) {
752
752
  case 0:
753
- this.d8_1 = 3;
754
- this.g3f_1 = this.c3f_1(this.d3f_1, this.e3f_1);
755
- this.c8_1 = 1;
756
- suspendResult = this.f3f_1.cd(this.g3f_1, this);
753
+ this.exceptionState_1 = 3;
754
+ this.selected0__1 = this.$selectionStrategy_1(this.$this_orderWithStrategy_1, this.$context_1);
755
+ this.state_1 = 1;
756
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.selected0__1, this);
757
757
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
758
758
  return suspendResult;
759
759
  }
760
760
 
761
761
  continue $sm;
762
762
  case 1:
763
- this.c8_1 = 2;
764
- suspendResult = this.f3f_1.fd(orderWithStrategy(filterIndexed(this.d3f_1, orderWithStrategy$slambda$lambda(this.d3f_1, this.g3f_1)), this.e3f_1, this.c3f_1), this);
763
+ this.state_1 = 2;
764
+ suspendResult = this.$this$sequence_1.yieldAll_h63j2x_k$(orderWithStrategy(filterIndexed(this.$this_orderWithStrategy_1, orderWithStrategy$slambda$lambda(this.$this_orderWithStrategy_1, this.selected0__1)), this.$context_1, this.$selectionStrategy_1), this);
765
765
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
766
766
  return suspendResult;
767
767
  }
@@ -770,45 +770,45 @@
770
770
  case 2:
771
771
  return Unit_instance;
772
772
  case 3:
773
- throw this.f8_1;
773
+ throw this.exception_1;
774
774
  }
775
775
  } catch ($p) {
776
776
  var e = $p;
777
- if (this.d8_1 === 3) {
777
+ if (this.exceptionState_1 === 3) {
778
778
  throw e;
779
779
  } else {
780
- this.c8_1 = this.d8_1;
781
- this.f8_1 = e;
780
+ this.state_1 = this.exceptionState_1;
781
+ this.exception_1 = e;
782
782
  }
783
783
  }
784
784
  while (true);
785
785
  };
786
- protoOf(orderWithStrategy$slambda).i3f = function ($this$sequence, completion) {
787
- var i = new orderWithStrategy$slambda(this.c3f_1, this.d3f_1, this.e3f_1, completion);
788
- i.f3f_1 = $this$sequence;
786
+ protoOf(orderWithStrategy$slambda).create_xgwk16_k$ = function ($this$sequence, completion) {
787
+ var i = new orderWithStrategy$slambda(this.$selectionStrategy_1, this.$this_orderWithStrategy_1, this.$context_1, completion);
788
+ i.$this$sequence_1 = $this$sequence;
789
789
  return i;
790
790
  };
791
791
  function orderWithStrategy$slambda_0($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation) {
792
792
  var i = new orderWithStrategy$slambda($selectionStrategy, $this_orderWithStrategy, $context, resultContinuation);
793
793
  return constructCallableReference(function ($this$sequence, $completion) {
794
- return i.h3f($this$sequence, $completion);
794
+ return i.invoke_hab2ee_k$($this$sequence, $completion);
795
795
  }, 1);
796
796
  }
797
797
  function StreamsExecutionContext_init_$Init$(context, newCurrentSubstitution, $this) {
798
- var tmp = context.u1k();
799
- var tmp_0 = context.r1u();
800
- var tmp_1 = context.s1u();
801
- var tmp_2 = context.t1u();
802
- var tmp_3 = context.u1u();
803
- var tmp_4 = context.a1v();
804
- var tmp_5 = context.v1u();
805
- var tmp_6 = context.w1u();
806
- var tmp_7 = context.p1u();
798
+ var tmp = context.get_unificator_xw6v3j_k$();
799
+ var tmp_0 = context.get_libraries_lyf10w_k$();
800
+ var tmp_1 = context.get_flags_irfhb2_k$();
801
+ var tmp_2 = context.get_staticKb_a01l1u_k$();
802
+ var tmp_3 = context.get_dynamicKb_wvqg8j_k$();
803
+ var tmp_4 = context.get_operators_z0nmfu_k$();
804
+ var tmp_5 = context.get_inputChannels_uyf05t_k$();
805
+ var tmp_6 = context.get_outputChannels_ffvoca_k$();
806
+ var tmp_7 = context.get_customData_oovbd0_k$();
807
807
  var tmp0_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
808
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w3d_1;
809
- var tmp_8 = tmp1_elvis_lhs == null ? Companion_getInstance_5().e3d_1 : tmp1_elvis_lhs;
808
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solverStrategies_1;
809
+ var tmp_8 = tmp1_elvis_lhs == null ? Companion_getInstance_5().prologStandard_1 : tmp1_elvis_lhs;
810
810
  var tmp2_safe_receiver = context instanceof StreamsExecutionContext ? context : null;
811
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.x3d_1;
811
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.sideEffectManager_1;
812
812
  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);
813
813
  return $this;
814
814
  }
@@ -816,21 +816,21 @@
816
816
  return StreamsExecutionContext_init_$Init$(context, newCurrentSubstitution, objectCreate(protoOf(StreamsExecutionContext)));
817
817
  }
818
818
  function StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
819
- return it.q1v();
819
+ return it.get_query_ixn1y7_k$();
820
820
  }
821
821
  function StreamsExecutionContext$logicStackTrace$delegate$lambda(this$0) {
822
822
  return function () {
823
- var tmp = asSequence(this$0.x3d_1.c3e_1);
823
+ var tmp = asSequence(this$0.sideEffectManager_1.logicalParentRequests_1);
824
824
  return toList(map(tmp, StreamsExecutionContext$logicStackTrace$delegate$lambda$lambda));
825
825
  };
826
826
  }
827
827
  function StreamsExecutionContext$_get_logicStackTrace_$ref_tj4lit() {
828
828
  return constructCallableReference(function (p0) {
829
- return p0.o1u();
830
- }, 1, 0, 96);
829
+ return p0.get_logicStackTrace_2ngtyq_k$();
830
+ }, 1, 0, 173);
831
831
  }
832
832
  function StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
833
- unificator = unificator === VOID ? Companion_getInstance().n1k() : unificator;
833
+ unificator = unificator === VOID ? Companion_getInstance().get_default_qtagd4_k$() : unificator;
834
834
  libraries = libraries === VOID ? Companion_instance.empty() : libraries;
835
835
  flags = flags === VOID ? Companion_getInstance_0().empty() : flags;
836
836
  staticKb = staticKb === VOID ? Companion_instance_0.empty(unificator) : staticKb;
@@ -842,88 +842,88 @@
842
842
  substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
843
843
  startTime = startTime === VOID ? currentTimeInstant() : startTime;
844
844
  maxDuration = maxDuration === VOID ? 9223372036854775807n : maxDuration;
845
- solverStrategies = solverStrategies === VOID ? Companion_getInstance_5().e3d_1 : solverStrategies;
845
+ solverStrategies = solverStrategies === VOID ? Companion_getInstance_5().prologStandard_1 : solverStrategies;
846
846
  sideEffectManager = sideEffectManager === VOID ? new SideEffectManagerImpl() : sideEffectManager;
847
- this.k3d_1 = unificator;
848
- this.l3d_1 = libraries;
849
- this.m3d_1 = flags;
850
- this.n3d_1 = staticKb;
851
- this.o3d_1 = dynamicKb;
852
- this.p3d_1 = operators;
853
- this.q3d_1 = inputChannels;
854
- this.r3d_1 = outputChannels;
855
- this.s3d_1 = customData;
856
- this.t3d_1 = substitution;
857
- this.u3d_1 = startTime;
858
- this.v3d_1 = maxDuration;
859
- this.w3d_1 = solverStrategies;
860
- this.x3d_1 = sideEffectManager;
847
+ this.unificator_1 = unificator;
848
+ this.libraries_1 = libraries;
849
+ this.flags_1 = flags;
850
+ this.staticKb_1 = staticKb;
851
+ this.dynamicKb_1 = dynamicKb;
852
+ this.operators_1 = operators;
853
+ this.inputChannels_1 = inputChannels;
854
+ this.outputChannels_1 = outputChannels;
855
+ this.customData_1 = customData;
856
+ this.substitution_1 = substitution;
857
+ this.startTime_1 = startTime;
858
+ this.maxDuration_1 = maxDuration;
859
+ this.solverStrategies_1 = solverStrategies;
860
+ this.sideEffectManager_1 = sideEffectManager;
861
861
  var tmp = this;
862
- tmp.y3d_1 = lazy(StreamsExecutionContext$logicStackTrace$delegate$lambda(this));
862
+ tmp.logicStackTrace$delegate_1 = lazy(StreamsExecutionContext$logicStackTrace$delegate$lambda(this));
863
863
  }
864
- protoOf(StreamsExecutionContext).u1k = function () {
865
- return this.k3d_1;
864
+ protoOf(StreamsExecutionContext).get_unificator_xw6v3j_k$ = function () {
865
+ return this.unificator_1;
866
866
  };
867
- protoOf(StreamsExecutionContext).r1u = function () {
868
- return this.l3d_1;
867
+ protoOf(StreamsExecutionContext).get_libraries_lyf10w_k$ = function () {
868
+ return this.libraries_1;
869
869
  };
870
- protoOf(StreamsExecutionContext).s1u = function () {
871
- return this.m3d_1;
870
+ protoOf(StreamsExecutionContext).get_flags_irfhb2_k$ = function () {
871
+ return this.flags_1;
872
872
  };
873
- protoOf(StreamsExecutionContext).t1u = function () {
874
- return this.n3d_1;
873
+ protoOf(StreamsExecutionContext).get_staticKb_a01l1u_k$ = function () {
874
+ return this.staticKb_1;
875
875
  };
876
- protoOf(StreamsExecutionContext).u1u = function () {
877
- return this.o3d_1;
876
+ protoOf(StreamsExecutionContext).get_dynamicKb_wvqg8j_k$ = function () {
877
+ return this.dynamicKb_1;
878
878
  };
879
- protoOf(StreamsExecutionContext).a1v = function () {
880
- return this.p3d_1;
879
+ protoOf(StreamsExecutionContext).get_operators_z0nmfu_k$ = function () {
880
+ return this.operators_1;
881
881
  };
882
- protoOf(StreamsExecutionContext).v1u = function () {
883
- return this.q3d_1;
882
+ protoOf(StreamsExecutionContext).get_inputChannels_uyf05t_k$ = function () {
883
+ return this.inputChannels_1;
884
884
  };
885
- protoOf(StreamsExecutionContext).w1u = function () {
886
- return this.r3d_1;
885
+ protoOf(StreamsExecutionContext).get_outputChannels_ffvoca_k$ = function () {
886
+ return this.outputChannels_1;
887
887
  };
888
- protoOf(StreamsExecutionContext).p1u = function () {
889
- return this.s3d_1;
888
+ protoOf(StreamsExecutionContext).get_customData_oovbd0_k$ = function () {
889
+ return this.customData_1;
890
890
  };
891
- protoOf(StreamsExecutionContext).n1u = function () {
892
- return this.t3d_1;
891
+ protoOf(StreamsExecutionContext).get_substitution_i7fi9y_k$ = function () {
892
+ return this.substitution_1;
893
893
  };
894
- protoOf(StreamsExecutionContext).h1u = function () {
895
- return this.u3d_1;
894
+ protoOf(StreamsExecutionContext).get_startTime_qp7d5m_k$ = function () {
895
+ return this.startTime_1;
896
896
  };
897
- protoOf(StreamsExecutionContext).j1u = function () {
898
- return this.v3d_1;
897
+ protoOf(StreamsExecutionContext).get_maxDuration_ek6oxb_k$ = function () {
898
+ return this.maxDuration_1;
899
899
  };
900
- protoOf(StreamsExecutionContext).m1u = function () {
900
+ protoOf(StreamsExecutionContext).get_procedure_9lj7py_k$ = function () {
901
901
  // Inline function 'kotlin.collections.map' call
902
- var this_0 = this.x3d_1.c3e_1;
902
+ var this_0 = this.sideEffectManager_1.logicalParentRequests_1;
903
903
  // Inline function 'kotlin.collections.mapTo' call
904
904
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
905
- var _iterator__ex2g4s = this_0.n();
906
- while (_iterator__ex2g4s.q()) {
907
- var item = _iterator__ex2g4s.r();
908
- var tmp$ret$2 = item.q1v();
909
- destination.l(tmp$ret$2);
905
+ var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
906
+ while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
907
+ var item = _iterator__ex2g4s.next_20eer_k$();
908
+ var tmp$ret$2 = item.get_query_ixn1y7_k$();
909
+ destination.add_utx5q5_k$(tmp$ret$2);
910
910
  }
911
911
  return firstOrNull(destination);
912
912
  };
913
- protoOf(StreamsExecutionContext).o1u = function () {
914
- var tmp0 = this.y3d_1;
913
+ protoOf(StreamsExecutionContext).get_logicStackTrace_2ngtyq_k$ = function () {
914
+ var tmp0 = this.logicStackTrace$delegate_1;
915
915
  var tmp = KProperty1;
916
916
  // Inline function 'kotlin.getValue' call
917
917
  getPropertyCallableRef('logicStackTrace', 1, tmp, StreamsExecutionContext$_get_logicStackTrace_$ref_tj4lit(), null);
918
- return tmp0.f2();
918
+ return tmp0.get_value_j01efc_k$();
919
919
  };
920
- protoOf(StreamsExecutionContext).q1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
920
+ protoOf(StreamsExecutionContext).createSolver_k5yu55_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
921
921
  return new StreamsSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels);
922
922
  };
923
923
  protoOf(StreamsExecutionContext).createSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
924
924
  return this.createSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof StreamsExecutionContext) ? $super : THROW_CCE());
925
925
  };
926
- protoOf(StreamsExecutionContext).x1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
926
+ protoOf(StreamsExecutionContext).createMutableSolver_qlofgr_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
927
927
  // Inline function 'kotlin.TODO' call
928
928
  var reason = 'Not yet implemented';
929
929
  throw new NotImplementedError('An operation is not implemented: ' + reason);
@@ -931,71 +931,71 @@
931
931
  protoOf(StreamsExecutionContext).createMutableSolver = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, $super) {
932
932
  return this.createMutableSolver(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, ($super == null ? true : $super instanceof StreamsExecutionContext) ? $super : THROW_CCE());
933
933
  };
934
- protoOf(StreamsExecutionContext).y30 = function (sideEffect) {
934
+ protoOf(StreamsExecutionContext).apply_xpzu4e_k$ = function (sideEffect) {
935
935
  var tmp = apply.call(this, sideEffect);
936
936
  return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
937
937
  };
938
938
  protoOf(StreamsExecutionContext).apply = function (sideEffect) {
939
- return this.y30(sideEffect);
939
+ return this.apply_xpzu4e_k$(sideEffect);
940
940
  };
941
- protoOf(StreamsExecutionContext).z30 = function (sideEffects) {
941
+ protoOf(StreamsExecutionContext).applyIterable_lkplre_k$ = function (sideEffects) {
942
942
  var tmp = applyIterable.call(this, sideEffects);
943
943
  return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
944
944
  };
945
945
  protoOf(StreamsExecutionContext).applyIterable = function (sideEffects) {
946
- return this.z30(sideEffects);
946
+ return this.applyIterable_lkplre_k$(sideEffects);
947
947
  };
948
- protoOf(StreamsExecutionContext).a31 = function (sideEffects) {
948
+ protoOf(StreamsExecutionContext).applySequence_5ojcmh_k$ = function (sideEffects) {
949
949
  var tmp = applySequence.call(this, sideEffects);
950
950
  return tmp instanceof StreamsExecutionContext ? tmp : THROW_CCE();
951
951
  };
952
952
  protoOf(StreamsExecutionContext).applySequence = function (sideEffects) {
953
- return this.a31(sideEffects);
953
+ return this.applySequence_5ojcmh_k$(sideEffects);
954
954
  };
955
- protoOf(StreamsExecutionContext).z1u = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
956
- return this.t3e(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData);
955
+ protoOf(StreamsExecutionContext).update_7gpjus_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
956
+ return this.copy$default_91c9pl_k$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData);
957
957
  };
958
958
  protoOf(StreamsExecutionContext).update = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, $super) {
959
959
  return this.update(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, ($super == null ? true : $super instanceof StreamsExecutionContext) ? $super : THROW_CCE());
960
960
  };
961
- protoOf(StreamsExecutionContext).j3f = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
961
+ protoOf(StreamsExecutionContext).copy_udue3v_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) {
962
962
  return new StreamsExecutionContext(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
963
963
  };
964
- protoOf(StreamsExecutionContext).t3e = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $super) {
965
- unificator = unificator === VOID ? this.k3d_1 : unificator;
966
- libraries = libraries === VOID ? this.l3d_1 : libraries;
967
- flags = flags === VOID ? this.m3d_1 : flags;
968
- staticKb = staticKb === VOID ? this.n3d_1 : staticKb;
969
- dynamicKb = dynamicKb === VOID ? this.o3d_1 : dynamicKb;
970
- operators = operators === VOID ? this.p3d_1 : operators;
971
- inputChannels = inputChannels === VOID ? this.q3d_1 : inputChannels;
972
- outputChannels = outputChannels === VOID ? this.r3d_1 : outputChannels;
973
- customData = customData === VOID ? this.s3d_1 : customData;
974
- substitution = substitution === VOID ? this.t3d_1 : substitution;
975
- startTime = startTime === VOID ? this.u3d_1 : startTime;
976
- maxDuration = maxDuration === VOID ? this.v3d_1 : maxDuration;
977
- solverStrategies = solverStrategies === VOID ? this.w3d_1 : solverStrategies;
978
- sideEffectManager = sideEffectManager === VOID ? this.x3d_1 : sideEffectManager;
979
- return $super === VOID ? this.j3f(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) : $super.j3f.call(this, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
964
+ protoOf(StreamsExecutionContext).copy$default_91c9pl_k$ = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager, $super) {
965
+ unificator = unificator === VOID ? this.unificator_1 : unificator;
966
+ libraries = libraries === VOID ? this.libraries_1 : libraries;
967
+ flags = flags === VOID ? this.flags_1 : flags;
968
+ staticKb = staticKb === VOID ? this.staticKb_1 : staticKb;
969
+ dynamicKb = dynamicKb === VOID ? this.dynamicKb_1 : dynamicKb;
970
+ operators = operators === VOID ? this.operators_1 : operators;
971
+ inputChannels = inputChannels === VOID ? this.inputChannels_1 : inputChannels;
972
+ outputChannels = outputChannels === VOID ? this.outputChannels_1 : outputChannels;
973
+ customData = customData === VOID ? this.customData_1 : customData;
974
+ substitution = substitution === VOID ? this.substitution_1 : substitution;
975
+ startTime = startTime === VOID ? this.startTime_1 : startTime;
976
+ maxDuration = maxDuration === VOID ? this.maxDuration_1 : maxDuration;
977
+ solverStrategies = solverStrategies === VOID ? this.solverStrategies_1 : solverStrategies;
978
+ sideEffectManager = sideEffectManager === VOID ? this.sideEffectManager_1 : sideEffectManager;
979
+ return $super === VOID ? this.copy_udue3v_k$(unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager) : $super.copy_udue3v_k$.call(this, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, startTime, maxDuration, solverStrategies, sideEffectManager);
980
980
  };
981
981
  protoOf(StreamsExecutionContext).toString = function () {
982
- return 'StreamsExecutionContext(unificator=' + toString(this.k3d_1) + ', libraries=' + toString(this.l3d_1) + ', flags=' + this.m3d_1.toString() + ', staticKb=' + toString(this.n3d_1) + ', dynamicKb=' + toString(this.o3d_1) + ', operators=' + this.p3d_1.toString() + ', inputChannels=' + toString(this.q3d_1) + ', outputChannels=' + toString(this.r3d_1) + ', customData=' + this.s3d_1.toString() + ', substitution=' + toString(this.t3d_1) + ', startTime=' + this.u3d_1.toString() + ', maxDuration=' + this.v3d_1.toString() + ', solverStrategies=' + toString(this.w3d_1) + ', sideEffectManager=' + this.x3d_1.toString() + ')';
982
+ return 'StreamsExecutionContext(unificator=' + toString(this.unificator_1) + ', libraries=' + toString(this.libraries_1) + ', flags=' + this.flags_1.toString() + ', staticKb=' + toString(this.staticKb_1) + ', dynamicKb=' + toString(this.dynamicKb_1) + ', operators=' + this.operators_1.toString() + ', inputChannels=' + toString(this.inputChannels_1) + ', outputChannels=' + toString(this.outputChannels_1) + ', customData=' + this.customData_1.toString() + ', substitution=' + toString(this.substitution_1) + ', startTime=' + this.startTime_1.toString() + ', maxDuration=' + this.maxDuration_1.toString() + ', solverStrategies=' + toString(this.solverStrategies_1) + ', sideEffectManager=' + this.sideEffectManager_1.toString() + ')';
983
983
  };
984
984
  protoOf(StreamsExecutionContext).hashCode = function () {
985
- var result = hashCode(this.k3d_1);
986
- result = imul(result, 31) + hashCode(this.l3d_1) | 0;
987
- result = imul(result, 31) + this.m3d_1.hashCode() | 0;
988
- result = imul(result, 31) + hashCode(this.n3d_1) | 0;
989
- result = imul(result, 31) + hashCode(this.o3d_1) | 0;
990
- result = imul(result, 31) + this.p3d_1.hashCode() | 0;
991
- result = imul(result, 31) + hashCode(this.q3d_1) | 0;
992
- result = imul(result, 31) + hashCode(this.r3d_1) | 0;
993
- result = imul(result, 31) + this.s3d_1.hashCode() | 0;
994
- result = imul(result, 31) + hashCode(this.t3d_1) | 0;
995
- result = imul(result, 31) + getBigIntHashCode(this.u3d_1) | 0;
996
- result = imul(result, 31) + getBigIntHashCode(this.v3d_1) | 0;
997
- result = imul(result, 31) + hashCode(this.w3d_1) | 0;
998
- result = imul(result, 31) + this.x3d_1.hashCode() | 0;
985
+ var result = hashCode(this.unificator_1);
986
+ result = imul(result, 31) + hashCode(this.libraries_1) | 0;
987
+ result = imul(result, 31) + this.flags_1.hashCode() | 0;
988
+ result = imul(result, 31) + hashCode(this.staticKb_1) | 0;
989
+ result = imul(result, 31) + hashCode(this.dynamicKb_1) | 0;
990
+ result = imul(result, 31) + this.operators_1.hashCode() | 0;
991
+ result = imul(result, 31) + hashCode(this.inputChannels_1) | 0;
992
+ result = imul(result, 31) + hashCode(this.outputChannels_1) | 0;
993
+ result = imul(result, 31) + this.customData_1.hashCode() | 0;
994
+ result = imul(result, 31) + hashCode(this.substitution_1) | 0;
995
+ result = imul(result, 31) + getBigIntHashCode(this.startTime_1) | 0;
996
+ result = imul(result, 31) + getBigIntHashCode(this.maxDuration_1) | 0;
997
+ result = imul(result, 31) + hashCode(this.solverStrategies_1) | 0;
998
+ result = imul(result, 31) + this.sideEffectManager_1.hashCode() | 0;
999
999
  return result;
1000
1000
  };
1001
1001
  protoOf(StreamsExecutionContext).equals = function (other) {
@@ -1003,62 +1003,62 @@
1003
1003
  return true;
1004
1004
  if (!(other instanceof StreamsExecutionContext))
1005
1005
  return false;
1006
- if (!equals(this.k3d_1, other.k3d_1))
1006
+ if (!equals(this.unificator_1, other.unificator_1))
1007
1007
  return false;
1008
- if (!equals(this.l3d_1, other.l3d_1))
1008
+ if (!equals(this.libraries_1, other.libraries_1))
1009
1009
  return false;
1010
- if (!this.m3d_1.equals(other.m3d_1))
1010
+ if (!this.flags_1.equals(other.flags_1))
1011
1011
  return false;
1012
- if (!equals(this.n3d_1, other.n3d_1))
1012
+ if (!equals(this.staticKb_1, other.staticKb_1))
1013
1013
  return false;
1014
- if (!equals(this.o3d_1, other.o3d_1))
1014
+ if (!equals(this.dynamicKb_1, other.dynamicKb_1))
1015
1015
  return false;
1016
- if (!this.p3d_1.equals(other.p3d_1))
1016
+ if (!this.operators_1.equals(other.operators_1))
1017
1017
  return false;
1018
- if (!equals(this.q3d_1, other.q3d_1))
1018
+ if (!equals(this.inputChannels_1, other.inputChannels_1))
1019
1019
  return false;
1020
- if (!equals(this.r3d_1, other.r3d_1))
1020
+ if (!equals(this.outputChannels_1, other.outputChannels_1))
1021
1021
  return false;
1022
- if (!this.s3d_1.equals(other.s3d_1))
1022
+ if (!this.customData_1.equals(other.customData_1))
1023
1023
  return false;
1024
- if (!equals(this.t3d_1, other.t3d_1))
1024
+ if (!equals(this.substitution_1, other.substitution_1))
1025
1025
  return false;
1026
- if (!(this.u3d_1 === other.u3d_1))
1026
+ if (!(this.startTime_1 === other.startTime_1))
1027
1027
  return false;
1028
- if (!(this.v3d_1 === other.v3d_1))
1028
+ if (!(this.maxDuration_1 === other.maxDuration_1))
1029
1029
  return false;
1030
- if (!equals(this.w3d_1, other.w3d_1))
1030
+ if (!equals(this.solverStrategies_1, other.solverStrategies_1))
1031
1031
  return false;
1032
- if (!this.x3d_1.equals(other.x3d_1))
1032
+ if (!this.sideEffectManager_1.equals(other.sideEffectManager_1))
1033
1033
  return false;
1034
1034
  return true;
1035
1035
  };
1036
1036
  function getSideEffectManager(_this__u8e3s4) {
1037
1037
  var tmp0_safe_receiver = _this__u8e3s4 instanceof StreamsExecutionContext ? _this__u8e3s4 : null;
1038
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x3d_1;
1038
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sideEffectManager_1;
1039
1039
  }
1040
1040
  function AbstractState(solve) {
1041
- this.k3f_1 = solve;
1042
- this.l3f_1 = false;
1041
+ this.solve_1 = solve;
1042
+ this.hasBehaved_1 = false;
1043
1043
  }
1044
- protoOf(AbstractState).m3f = function () {
1045
- return this.l3f_1;
1044
+ protoOf(AbstractState).get_hasBehaved_9ntkx4_k$ = function () {
1045
+ return this.hasBehaved_1;
1046
1046
  };
1047
1047
  function AlreadyExecutedState(wrappedState) {
1048
- this.o3f_1 = wrappedState;
1049
- this.p3f_1 = true;
1048
+ this.wrappedState_1 = wrappedState;
1049
+ this.hasBehaved_1 = true;
1050
1050
  }
1051
- protoOf(AlreadyExecutedState).m3f = function () {
1052
- return this.p3f_1;
1051
+ protoOf(AlreadyExecutedState).get_hasBehaved_9ntkx4_k$ = function () {
1052
+ return this.hasBehaved_1;
1053
1053
  };
1054
1054
  protoOf(AlreadyExecutedState).toString = function () {
1055
- return 'AlreadyExecutedState of: ' + toString(this.o3f_1);
1055
+ return 'AlreadyExecutedState of: ' + toString(this.wrappedState_1);
1056
1056
  };
1057
- protoOf(AlreadyExecutedState).n3f = function () {
1058
- return this.o3f_1.n3f();
1057
+ protoOf(AlreadyExecutedState).behave_n19dxx_k$ = function () {
1058
+ return this.wrappedState_1.behave_n19dxx_k$();
1059
1059
  };
1060
- protoOf(AlreadyExecutedState).i8 = function () {
1061
- return this.o3f_1.i8();
1060
+ protoOf(AlreadyExecutedState).get_context_h02k06_k$ = function () {
1061
+ return this.wrappedState_1.get_context_h02k06_k$();
1062
1062
  };
1063
1063
  function asAlreadyExecuted(_this__u8e3s4) {
1064
1064
  var tmp0_safe_receiver = _this__u8e3s4 instanceof AlreadyExecutedState ? _this__u8e3s4 : null;
@@ -1078,7 +1078,7 @@
1078
1078
  }
1079
1079
  function internalExecute($this, state) {
1080
1080
  var tmp;
1081
- if (state.m3f()) {
1081
+ if (state.get_hasBehaved_9ntkx4_k$()) {
1082
1082
  tmp = sequenceOf(state);
1083
1083
  } else {
1084
1084
  tmp = sequence(StateMachineExecutor$internalExecute$slambda_0(state, null));
@@ -1086,92 +1086,92 @@
1086
1086
  return tmp;
1087
1087
  }
1088
1088
  function StateMachineExecutor$execute$lambda(it) {
1089
- return StateMachineExecutor_instance.q3f(it);
1089
+ return StateMachineExecutor_instance.unwrapIfNeeded_6aqy46_k$(it);
1090
1090
  }
1091
1091
  function StateMachineExecutor$executeWrapping$lambda(it) {
1092
1092
  return asAlreadyExecuted(it);
1093
1093
  }
1094
1094
  function StateMachineExecutor$internalExecute$slambda($state, resultContinuation) {
1095
- this.z3f_1 = $state;
1095
+ this.$state_1 = $state;
1096
1096
  CoroutineImpl.call(this, resultContinuation);
1097
1097
  }
1098
- protoOf(StateMachineExecutor$internalExecute$slambda).c3g = function ($this$sequence, $completion) {
1099
- var tmp = this.d3g($this$sequence, $completion);
1100
- tmp.e8_1 = Unit_instance;
1101
- tmp.f8_1 = null;
1102
- return tmp.k8();
1098
+ protoOf(StateMachineExecutor$internalExecute$slambda).invoke_7thwuq_k$ = function ($this$sequence, $completion) {
1099
+ var tmp = this.create_od0806_k$($this$sequence, $completion);
1100
+ tmp.result_1 = Unit_instance;
1101
+ tmp.exception_1 = null;
1102
+ return tmp.doResume_5yljmg_k$();
1103
1103
  };
1104
- protoOf(StateMachineExecutor$internalExecute$slambda).b9 = function (p1, $completion) {
1105
- return this.c3g(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1104
+ protoOf(StateMachineExecutor$internalExecute$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1105
+ return this.invoke_7thwuq_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1106
1106
  };
1107
- protoOf(StateMachineExecutor$internalExecute$slambda).k8 = function () {
1108
- var suspendResult = this.e8_1;
1107
+ protoOf(StateMachineExecutor$internalExecute$slambda).doResume_5yljmg_k$ = function () {
1108
+ var suspendResult = this.result_1;
1109
1109
  $sm: do
1110
1110
  try {
1111
- var tmp = this.c8_1;
1111
+ var tmp = this.state_1;
1112
1112
  switch (tmp) {
1113
1113
  case 0:
1114
- this.d8_1 = 5;
1115
- this.c8_1 = 1;
1116
- suspendResult = this.a3g_1.cd(this.z3f_1, this);
1114
+ this.exceptionState_1 = 5;
1115
+ this.state_1 = 1;
1116
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.$state_1, this);
1117
1117
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1118
1118
  return suspendResult;
1119
1119
  }
1120
1120
 
1121
1121
  continue $sm;
1122
1122
  case 1:
1123
- this.b3g_1 = this.z3f_1.n3f().n();
1124
- this.c8_1 = 2;
1123
+ this._iterator_0_yqohr0__1 = this.$state_1.behave_n19dxx_k$().iterator_jk1svi_k$();
1124
+ this.state_1 = 2;
1125
1125
  continue $sm;
1126
1126
  case 2:
1127
- if (!this.b3g_1.q()) {
1128
- this.c8_1 = 4;
1127
+ if (!this._iterator_0_yqohr0__1.hasNext_bitz1p_k$()) {
1128
+ this.state_1 = 4;
1129
1129
  continue $sm;
1130
1130
  }
1131
1131
 
1132
- var element = this.b3g_1.r();
1133
- this.c8_1 = 3;
1134
- suspendResult = this.a3g_1.fd(internalExecute(StateMachineExecutor_instance, element), this);
1132
+ var element = this._iterator_0_yqohr0__1.next_20eer_k$();
1133
+ this.state_1 = 3;
1134
+ suspendResult = this.$this$sequence_1.yieldAll_h63j2x_k$(internalExecute(StateMachineExecutor_instance, element), this);
1135
1135
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1136
1136
  return suspendResult;
1137
1137
  }
1138
1138
 
1139
1139
  continue $sm;
1140
1140
  case 3:
1141
- this.c8_1 = 2;
1141
+ this.state_1 = 2;
1142
1142
  continue $sm;
1143
1143
  case 4:
1144
1144
  return Unit_instance;
1145
1145
  case 5:
1146
- throw this.f8_1;
1146
+ throw this.exception_1;
1147
1147
  }
1148
1148
  } catch ($p) {
1149
1149
  var e = $p;
1150
- if (this.d8_1 === 5) {
1150
+ if (this.exceptionState_1 === 5) {
1151
1151
  throw e;
1152
1152
  } else {
1153
- this.c8_1 = this.d8_1;
1154
- this.f8_1 = e;
1153
+ this.state_1 = this.exceptionState_1;
1154
+ this.exception_1 = e;
1155
1155
  }
1156
1156
  }
1157
1157
  while (true);
1158
1158
  };
1159
- protoOf(StateMachineExecutor$internalExecute$slambda).d3g = function ($this$sequence, completion) {
1160
- var i = new StateMachineExecutor$internalExecute$slambda(this.z3f_1, completion);
1161
- i.a3g_1 = $this$sequence;
1159
+ protoOf(StateMachineExecutor$internalExecute$slambda).create_od0806_k$ = function ($this$sequence, completion) {
1160
+ var i = new StateMachineExecutor$internalExecute$slambda(this.$state_1, completion);
1161
+ i.$this$sequence_1 = $this$sequence;
1162
1162
  return i;
1163
1163
  };
1164
1164
  function StateMachineExecutor$internalExecute$slambda_0($state, resultContinuation) {
1165
1165
  var i = new StateMachineExecutor$internalExecute$slambda($state, resultContinuation);
1166
1166
  return constructCallableReference(function ($this$sequence, $completion) {
1167
- return i.c3g($this$sequence, $completion);
1167
+ return i.invoke_7thwuq_k$($this$sequence, $completion);
1168
1168
  }, 1);
1169
1169
  }
1170
1170
  function StateMachineExecutor() {
1171
1171
  }
1172
- protoOf(StateMachineExecutor).h3d = function (state) {
1172
+ protoOf(StateMachineExecutor).execute_tri2km_k$ = function (state) {
1173
1173
  var tmp;
1174
- if (state.m3f()) {
1174
+ if (state.get_hasBehaved_9ntkx4_k$()) {
1175
1175
  tmp = emptySequence();
1176
1176
  } else {
1177
1177
  var tmp_0 = drop_0(internalExecute(this, state), 1);
@@ -1179,14 +1179,14 @@
1179
1179
  }
1180
1180
  return tmp;
1181
1181
  };
1182
- protoOf(StateMachineExecutor).e3g = function (state) {
1183
- var tmp = this.h3d(state);
1182
+ protoOf(StateMachineExecutor).executeWrapping_k0nhak_k$ = function (state) {
1183
+ var tmp = this.execute_tri2km_k$(state);
1184
1184
  return map(tmp, StateMachineExecutor$executeWrapping$lambda);
1185
1185
  };
1186
- protoOf(StateMachineExecutor).q3f = function (_this__u8e3s4) {
1186
+ protoOf(StateMachineExecutor).unwrapIfNeeded_6aqy46_k$ = function (_this__u8e3s4) {
1187
1187
  var tmp;
1188
1188
  if (_this__u8e3s4 instanceof AlreadyExecutedState) {
1189
- tmp = _this__u8e3s4.o3f_1;
1189
+ tmp = _this__u8e3s4.wrappedState_1;
1190
1190
  } else {
1191
1191
  tmp = _this__u8e3s4;
1192
1192
  }
@@ -1198,18 +1198,18 @@
1198
1198
  }
1199
1199
  function StateMachineExecutor$executeWrapping$ref(p0) {
1200
1200
  return constructCallableReference(function (p0_0) {
1201
- return p0.e3g(p0_0);
1202
- }, 1, 0, 97, 'executeWrapping', [p0]);
1201
+ return p0.executeWrapping_k0nhak_k$(p0_0);
1202
+ }, 1, 0, 174, 'executeWrapping', [p0]);
1203
1203
  }
1204
1204
  function statEndHaltTimeout($this, $receiver) {
1205
- return stateEndHalt($receiver, TimeOutException_init_$Create$('Given time for `' + $receiver.f3d().q1v().toString() + '` computation (' + $receiver.f3d().q28_1.toString() + ") wasn't enough for completion", VOID, $receiver.f3d().context, $receiver.f3d().q28_1), VOID, []);
1205
+ return stateEndHalt($receiver, TimeOutException_init_$Create$('Given time for `' + $receiver.get_solve_iymyhi_k$().get_query_ixn1y7_k$().toString() + '` computation (' + $receiver.get_solve_iymyhi_k$().maxDuration_1.toString() + ") wasn't enough for completion", VOID, $receiver.get_solve_iymyhi_k$().context, $receiver.get_solve_iymyhi_k$().maxDuration_1), VOID, []);
1206
1206
  }
1207
1207
  function _get_stateCurrentTime__3c8uza($this) {
1208
- var tmp0 = $this.i3g_1;
1208
+ var tmp0 = $this.stateCurrentTime$delegate_1;
1209
1209
  var tmp = KProperty1;
1210
1210
  // Inline function 'kotlin.getValue' call
1211
1211
  getPropertyCallableRef('stateCurrentTime', 1, tmp, AbstractTimedState$_get_stateCurrentTime_$ref_pw5vcd(), null);
1212
- return tmp0.f2();
1212
+ return tmp0.get_value_j01efc_k$();
1213
1213
  }
1214
1214
  function timeIsOver($this, currentDuration, maxDuration) {
1215
1215
  return currentDuration >= maxDuration;
@@ -1226,52 +1226,52 @@
1226
1226
  function AbstractTimedState$_get_stateCurrentTime_$ref_pw5vcd() {
1227
1227
  return constructCallableReference(function (p0) {
1228
1228
  return _get_stateCurrentTime__3c8uza(p0);
1229
- }, 1, 0, 98);
1229
+ }, 1, 0, 175);
1230
1230
  }
1231
1231
  function AbstractTimedState(solve) {
1232
1232
  AbstractState.call(this, solve);
1233
- this.h3g_1 = solve;
1233
+ this.solve_2 = solve;
1234
1234
  var tmp = this;
1235
- tmp.i3g_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
1235
+ tmp.stateCurrentTime$delegate_1 = lazy(AbstractTimedState$stateCurrentTime$delegate$lambda);
1236
1236
  }
1237
- protoOf(AbstractTimedState).f3d = function () {
1238
- return this.h3g_1;
1237
+ protoOf(AbstractTimedState).get_solve_iymyhi_k$ = function () {
1238
+ return this.solve_2;
1239
1239
  };
1240
- protoOf(AbstractTimedState).n3f = function () {
1241
- return this.f3d().q28_1 === 9223372036854775807n ? this.j3g() : timeIsOver(this, subtract(_get_stateCurrentTime__3c8uza(this), this.f3d().p28_1), this.f3d().q28_1) ? sequenceOf(statEndHaltTimeout(Companion_instance_12, this)) : this.j3g();
1240
+ protoOf(AbstractTimedState).behave_n19dxx_k$ = function () {
1241
+ return this.get_solve_iymyhi_k$().maxDuration_1 === 9223372036854775807n ? this.behaveTimed_3b7a30_k$() : timeIsOver(this, subtract(_get_stateCurrentTime__3c8uza(this), this.get_solve_iymyhi_k$().startTime_1), this.get_solve_iymyhi_k$().maxDuration_1) ? sequenceOf(statEndHaltTimeout(Companion_instance_12, this)) : this.behaveTimed_3b7a30_k$();
1242
1242
  };
1243
- protoOf(AbstractTimedState).k3g = function (_this__u8e3s4, toYieldState) {
1244
- return timeIsOver(this, subtract(currentTimeInstant(), _this__u8e3s4.f3d().p28_1), _this__u8e3s4.f3d().q28_1) ? statEndHaltTimeout(Companion_instance_12, _this__u8e3s4) : toYieldState;
1243
+ protoOf(AbstractTimedState).ifTimeIsNotOver_dx6dah_k$ = function (_this__u8e3s4, toYieldState) {
1244
+ return timeIsOver(this, subtract(currentTimeInstant(), _this__u8e3s4.get_solve_iymyhi_k$().startTime_1), _this__u8e3s4.get_solve_iymyhi_k$().maxDuration_1) ? statEndHaltTimeout(Companion_instance_12, _this__u8e3s4) : toYieldState;
1245
1245
  };
1246
1246
  protoOf(AbstractTimedState).toString = function () {
1247
- return toString(getKClassFromExpression(this)) + ' with ' + this.f3d().toString();
1247
+ return toString(getKClassFromExpression(this)) + ' with ' + this.get_solve_iymyhi_k$().toString();
1248
1248
  };
1249
1249
  function StateEnd$Halt$exception$delegate$lambda(this$0) {
1250
1250
  return function () {
1251
- var tmp = this$0.r3g_1.solution;
1252
- return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).t1v();
1251
+ var tmp = this$0.solve_3.solution;
1252
+ return (isInterface(tmp, Halt) ? tmp : THROW_CCE()).get_exception_x0n6w6_k$();
1253
1253
  };
1254
1254
  }
1255
1255
  function True(sourceContext, solve) {
1256
1256
  StateEnd.call(this, sourceContext, solve);
1257
- this.y3g_1 = sourceContext;
1258
- this.z3g_1 = solve;
1259
- var tmp = this.z3g_1.solution;
1257
+ this.sourceContext_2 = sourceContext;
1258
+ this.solve_3 = solve;
1259
+ var tmp = this.solve_3.solution;
1260
1260
  // Inline function 'kotlin.require' call
1261
1261
  if (!isInterface(tmp, Yes)) {
1262
- var message = 'True end state can be created only with Solution.Yes. Current: `' + toString(this.z3g_1.solution) + '`';
1262
+ var message = 'True end state can be created only with Solution.Yes. Current: `' + toString(this.solve_3.solution) + '`';
1263
1263
  throw IllegalArgumentException_init_$Create$(toString(message));
1264
1264
  }
1265
1265
  }
1266
- protoOf(True).f3d = function () {
1267
- return this.z3g_1;
1266
+ protoOf(True).get_solve_iymyhi_k$ = function () {
1267
+ return this.solve_3;
1268
1268
  };
1269
1269
  protoOf(True).toString = function () {
1270
- return 'True(sourceContext=' + toString(this.y3g_1) + ', solve=' + this.z3g_1.toString() + ')';
1270
+ return 'True(sourceContext=' + toString(this.sourceContext_2) + ', solve=' + this.solve_3.toString() + ')';
1271
1271
  };
1272
1272
  protoOf(True).hashCode = function () {
1273
- var result = hashCode(this.y3g_1);
1274
- result = imul(result, 31) + this.z3g_1.hashCode() | 0;
1273
+ var result = hashCode(this.sourceContext_2);
1274
+ result = imul(result, 31) + this.solve_3.hashCode() | 0;
1275
1275
  return result;
1276
1276
  };
1277
1277
  protoOf(True).equals = function (other) {
@@ -1279,32 +1279,32 @@
1279
1279
  return true;
1280
1280
  if (!(other instanceof True))
1281
1281
  return false;
1282
- if (!equals(this.y3g_1, other.y3g_1))
1282
+ if (!equals(this.sourceContext_2, other.sourceContext_2))
1283
1283
  return false;
1284
- if (!this.z3g_1.equals(other.z3g_1))
1284
+ if (!this.solve_3.equals(other.solve_3))
1285
1285
  return false;
1286
1286
  return true;
1287
1287
  };
1288
1288
  function False(sourceContext, solve) {
1289
1289
  StateEnd.call(this, sourceContext, solve);
1290
- this.k3h_1 = sourceContext;
1291
- this.l3h_1 = solve;
1292
- var tmp = this.l3h_1.solution;
1290
+ this.sourceContext_2 = sourceContext;
1291
+ this.solve_3 = solve;
1292
+ var tmp = this.solve_3.solution;
1293
1293
  // Inline function 'kotlin.require' call
1294
1294
  if (!isInterface(tmp, No)) {
1295
- var message = 'False end state can be created only with Solution.No. Current: `' + toString(this.l3h_1.solution) + '`';
1295
+ var message = 'False end state can be created only with Solution.No. Current: `' + toString(this.solve_3.solution) + '`';
1296
1296
  throw IllegalArgumentException_init_$Create$(toString(message));
1297
1297
  }
1298
1298
  }
1299
- protoOf(False).f3d = function () {
1300
- return this.l3h_1;
1299
+ protoOf(False).get_solve_iymyhi_k$ = function () {
1300
+ return this.solve_3;
1301
1301
  };
1302
1302
  protoOf(False).toString = function () {
1303
- return 'False(sourceContext=' + toString(this.k3h_1) + ', solve=' + this.l3h_1.toString() + ')';
1303
+ return 'False(sourceContext=' + toString(this.sourceContext_2) + ', solve=' + this.solve_3.toString() + ')';
1304
1304
  };
1305
1305
  protoOf(False).hashCode = function () {
1306
- var result = hashCode(this.k3h_1);
1307
- result = imul(result, 31) + this.l3h_1.hashCode() | 0;
1306
+ var result = hashCode(this.sourceContext_2);
1307
+ result = imul(result, 31) + this.solve_3.hashCode() | 0;
1308
1308
  return result;
1309
1309
  };
1310
1310
  protoOf(False).equals = function (other) {
@@ -1312,34 +1312,34 @@
1312
1312
  return true;
1313
1313
  if (!(other instanceof False))
1314
1314
  return false;
1315
- if (!equals(this.k3h_1, other.k3h_1))
1315
+ if (!equals(this.sourceContext_2, other.sourceContext_2))
1316
1316
  return false;
1317
- if (!this.l3h_1.equals(other.l3h_1))
1317
+ if (!this.solve_3.equals(other.solve_3))
1318
1318
  return false;
1319
1319
  return true;
1320
1320
  };
1321
1321
  function Halt_0(sourceContext, solve) {
1322
1322
  StateEnd.call(this, sourceContext, solve);
1323
- this.q3g_1 = sourceContext;
1324
- this.r3g_1 = solve;
1325
- var tmp = this.r3g_1.solution;
1323
+ this.sourceContext_2 = sourceContext;
1324
+ this.solve_3 = solve;
1325
+ var tmp = this.solve_3.solution;
1326
1326
  // Inline function 'kotlin.require' call
1327
1327
  if (!isInterface(tmp, Halt)) {
1328
- var message = 'Halt end state can be created only with Solution.Halt. Current: `' + toString(this.r3g_1.solution) + '`';
1328
+ var message = 'Halt end state can be created only with Solution.Halt. Current: `' + toString(this.solve_3.solution) + '`';
1329
1329
  throw IllegalArgumentException_init_$Create$(toString(message));
1330
1330
  }
1331
1331
  var tmp_0 = this;
1332
- tmp_0.s3g_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
1332
+ tmp_0.exception$delegate_1 = lazy(StateEnd$Halt$exception$delegate$lambda(this));
1333
1333
  }
1334
- protoOf(Halt_0).f3d = function () {
1335
- return this.r3g_1;
1334
+ protoOf(Halt_0).get_solve_iymyhi_k$ = function () {
1335
+ return this.solve_3;
1336
1336
  };
1337
1337
  protoOf(Halt_0).toString = function () {
1338
- return 'Halt(sourceContext=' + toString(this.q3g_1) + ', solve=' + this.r3g_1.toString() + ')';
1338
+ return 'Halt(sourceContext=' + toString(this.sourceContext_2) + ', solve=' + this.solve_3.toString() + ')';
1339
1339
  };
1340
1340
  protoOf(Halt_0).hashCode = function () {
1341
- var result = hashCode(this.q3g_1);
1342
- result = imul(result, 31) + this.r3g_1.hashCode() | 0;
1341
+ var result = hashCode(this.sourceContext_2);
1342
+ result = imul(result, 31) + this.solve_3.hashCode() | 0;
1343
1343
  return result;
1344
1344
  };
1345
1345
  protoOf(Halt_0).equals = function (other) {
@@ -1347,63 +1347,63 @@
1347
1347
  return true;
1348
1348
  if (!(other instanceof Halt_0))
1349
1349
  return false;
1350
- if (!equals(this.q3g_1, other.q3g_1))
1350
+ if (!equals(this.sourceContext_2, other.sourceContext_2))
1351
1351
  return false;
1352
- if (!this.r3g_1.equals(other.r3g_1))
1352
+ if (!this.solve_3.equals(other.solve_3))
1353
1353
  return false;
1354
1354
  return true;
1355
1355
  };
1356
1356
  function StateEnd$context$delegate$lambda(this$0) {
1357
1357
  return function () {
1358
- var tmp = this$0.f3d().solution.n1u();
1358
+ var tmp = this$0.get_solve_iymyhi_k$().solution.get_substitution_i7fi9y_k$();
1359
1359
  var tmp0_elvis_lhs = isInterface(tmp, Unifier) ? tmp : null;
1360
- return StreamsExecutionContext_init_$Create$(this$0.c3h_1, tmp0_elvis_lhs == null ? Companion_getInstance_2().empty() : tmp0_elvis_lhs);
1360
+ return StreamsExecutionContext_init_$Create$(this$0.sourceContext_1, tmp0_elvis_lhs == null ? Companion_getInstance_2().empty() : tmp0_elvis_lhs);
1361
1361
  };
1362
1362
  }
1363
1363
  function StateEnd$_get_context_$ref_fll2gn() {
1364
1364
  return constructCallableReference(function (p0) {
1365
- return p0.i8();
1366
- }, 1, 0, 99);
1365
+ return p0.get_context_h02k06_k$();
1366
+ }, 1, 0, 176);
1367
1367
  }
1368
1368
  function StateEnd(sourceContext, solve) {
1369
1369
  AbstractState.call(this, solve);
1370
- this.c3h_1 = sourceContext;
1371
- this.d3h_1 = solve;
1370
+ this.sourceContext_1 = sourceContext;
1371
+ this.solve_2 = solve;
1372
1372
  var tmp = this;
1373
- tmp.e3h_1 = lazy(StateEnd$context$delegate$lambda(this));
1373
+ tmp.context$delegate_1 = lazy(StateEnd$context$delegate$lambda(this));
1374
1374
  }
1375
- protoOf(StateEnd).f3d = function () {
1376
- return this.d3h_1;
1375
+ protoOf(StateEnd).get_solve_iymyhi_k$ = function () {
1376
+ return this.solve_2;
1377
1377
  };
1378
- protoOf(StateEnd).n3f = function () {
1378
+ protoOf(StateEnd).behave_n19dxx_k$ = function () {
1379
1379
  return emptySequence();
1380
1380
  };
1381
- protoOf(StateEnd).i8 = function () {
1382
- var tmp0 = this.e3h_1;
1381
+ protoOf(StateEnd).get_context_h02k06_k$ = function () {
1382
+ var tmp0 = this.context$delegate_1;
1383
1383
  var tmp = KProperty1;
1384
1384
  // Inline function 'kotlin.getValue' call
1385
1385
  getPropertyCallableRef('context', 1, tmp, StateEnd$_get_context_$ref_fll2gn(), null);
1386
- return tmp0.f2();
1386
+ return tmp0.get_value_j01efc_k$();
1387
1387
  };
1388
1388
  function stateEndTrue(_this__u8e3s4, substitution, sideEffectManager, sideEffects) {
1389
1389
  substitution = substitution === VOID ? Companion_getInstance_2().empty() : substitution;
1390
1390
  sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
1391
- var tmp = _this__u8e3s4.i8();
1392
- var tmp_0 = _this__u8e3s4.f3d();
1393
- return new True(tmp, tmp_0.w2g(substitution, sideEffectManager == null ? getSideEffectManager(_this__u8e3s4.f3d().context) : sideEffectManager, sideEffects.slice()));
1391
+ var tmp = _this__u8e3s4.get_context_h02k06_k$();
1392
+ var tmp_0 = _this__u8e3s4.get_solve_iymyhi_k$();
1393
+ return new True(tmp, tmp_0.replySuccess_islsza_k$(substitution, sideEffectManager == null ? getSideEffectManager(_this__u8e3s4.get_solve_iymyhi_k$().context) : sideEffectManager, sideEffects.slice()));
1394
1394
  }
1395
1395
  function stateEndFalse(_this__u8e3s4, sideEffectManager, sideEffects) {
1396
1396
  sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
1397
- var tmp = _this__u8e3s4.i8();
1398
- var tmp_0 = _this__u8e3s4.f3d();
1399
- return new False(tmp, tmp_0.x2g(sideEffectManager == null ? getSideEffectManager(_this__u8e3s4.f3d().context) : sideEffectManager, sideEffects.slice()));
1397
+ var tmp = _this__u8e3s4.get_context_h02k06_k$();
1398
+ var tmp_0 = _this__u8e3s4.get_solve_iymyhi_k$();
1399
+ return new False(tmp, tmp_0.replyFail_pts8pu_k$(sideEffectManager == null ? getSideEffectManager(_this__u8e3s4.get_solve_iymyhi_k$().context) : sideEffectManager, sideEffects.slice()));
1400
1400
  }
1401
1401
  function stateEndHalt(_this__u8e3s4, exception, sideEffectManager, sideEffects) {
1402
1402
  sideEffectManager = sideEffectManager === VOID ? null : sideEffectManager;
1403
- var tmp = _this__u8e3s4.i8();
1404
- var tmp_0 = _this__u8e3s4.f3d();
1405
- var tmp1_elvis_lhs = sideEffectManager == null ? getSideEffectManager(exception.i8()) : sideEffectManager;
1406
- return new Halt_0(tmp, tmp_0.y2g(exception, tmp1_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.f3d().context) : tmp1_elvis_lhs, sideEffects.slice()));
1403
+ var tmp = _this__u8e3s4.get_context_h02k06_k$();
1404
+ var tmp_0 = _this__u8e3s4.get_solve_iymyhi_k$();
1405
+ var tmp1_elvis_lhs = sideEffectManager == null ? getSideEffectManager(exception.get_context_h02k06_k$()) : sideEffectManager;
1406
+ return new Halt_0(tmp, tmp_0.replyException_y6kgve_k$(exception, tmp1_elvis_lhs == null ? getSideEffectManager(_this__u8e3s4.get_solve_iymyhi_k$().context) : tmp1_elvis_lhs, sideEffects.slice()));
1407
1407
  }
1408
1408
  function stateEnd(_this__u8e3s4, response) {
1409
1409
  // Inline function 'kotlin.with' call
@@ -1421,15 +1421,15 @@
1421
1421
  function stateEnd$lambda($this_stateEnd, $sideEffectManager, $sideEffects) {
1422
1422
  return function (sol) {
1423
1423
  // Inline function 'kotlin.takeUnless' call
1424
- var this_0 = sol.n1u();
1424
+ var this_0 = sol.get_substitution_i7fi9y_k$();
1425
1425
  var tmp;
1426
- if (!this_0.h()) {
1426
+ if (!this_0.isEmpty_y1axqb_k$()) {
1427
1427
  tmp = this_0;
1428
1428
  } else {
1429
1429
  tmp = null;
1430
1430
  }
1431
1431
  var tmp0_elvis_lhs = tmp;
1432
- return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.f3d().context.n1u() : tmp0_elvis_lhs, $sideEffectManager, $sideEffects.slice());
1432
+ return stateEndTrue($this_stateEnd, tmp0_elvis_lhs == null ? $this_stateEnd.get_solve_iymyhi_k$().context.get_substitution_i7fi9y_k$() : tmp0_elvis_lhs, $sideEffectManager, $sideEffects.slice());
1433
1433
  };
1434
1434
  }
1435
1435
  function stateEnd$lambda_0($this_stateEnd, $sideEffectManager, $sideEffects) {
@@ -1439,16 +1439,16 @@
1439
1439
  }
1440
1440
  function stateEnd$lambda_1($this_stateEnd, $sideEffectManager, $sideEffects) {
1441
1441
  return function (it) {
1442
- return stateEndHalt($this_stateEnd, it.t1v(), $sideEffectManager, $sideEffects.slice());
1442
+ return stateEndHalt($this_stateEnd, it.get_exception_x0n6w6_k$(), $sideEffectManager, $sideEffects.slice());
1443
1443
  };
1444
1444
  }
1445
1445
  function newThrowSolveRequest($this, $receiver, error) {
1446
1446
  var tmp = Companion_getInstance_3();
1447
1447
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
1448
1448
  var tmp$ret$0 = Throw_getInstance().signature.name;
1449
- var tmp_0 = tmp.of(tmp$ret$0, [error.b24()]);
1450
- var tmp0_elvis_lhs = getSideEffectManager(error.i8());
1451
- return newSolveRequest($receiver, tmp_0, VOID, VOID, tmp0_elvis_lhs == null ? $receiver.context.x3d_1 : tmp0_elvis_lhs, currentTimeInstant());
1449
+ var tmp_0 = tmp.of(tmp$ret$0, [error.get_errorStruct_5b2a98_k$()]);
1450
+ var tmp0_elvis_lhs = getSideEffectManager(error.get_context_h02k06_k$());
1451
+ return newSolveRequest($receiver, tmp_0, VOID, VOID, tmp0_elvis_lhs == null ? $receiver.context.sideEffectManager_1 : tmp0_elvis_lhs, currentTimeInstant());
1452
1452
  }
1453
1453
  function Companion_2() {
1454
1454
  }
@@ -1457,218 +1457,218 @@
1457
1457
  return Companion_instance_13;
1458
1458
  }
1459
1459
  function StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation) {
1460
- this.u3h_1 = this$0;
1460
+ this.this$0__1 = this$0;
1461
1461
  CoroutineImpl.call(this, resultContinuation);
1462
1462
  }
1463
- protoOf(StateGoalEvaluation$behaveTimed$slambda).c3g = function ($this$sequence, $completion) {
1464
- var tmp = this.d3g($this$sequence, $completion);
1465
- tmp.e8_1 = Unit_instance;
1466
- tmp.f8_1 = null;
1467
- return tmp.k8();
1463
+ protoOf(StateGoalEvaluation$behaveTimed$slambda).invoke_7thwuq_k$ = function ($this$sequence, $completion) {
1464
+ var tmp = this.create_od0806_k$($this$sequence, $completion);
1465
+ tmp.result_1 = Unit_instance;
1466
+ tmp.exception_1 = null;
1467
+ return tmp.doResume_5yljmg_k$();
1468
1468
  };
1469
- protoOf(StateGoalEvaluation$behaveTimed$slambda).b9 = function (p1, $completion) {
1470
- return this.c3g(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1469
+ protoOf(StateGoalEvaluation$behaveTimed$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1470
+ return this.invoke_7thwuq_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1471
1471
  };
1472
- protoOf(StateGoalEvaluation$behaveTimed$slambda).k8 = function () {
1473
- var suspendResult = this.e8_1;
1472
+ protoOf(StateGoalEvaluation$behaveTimed$slambda).doResume_5yljmg_k$ = function () {
1473
+ var suspendResult = this.result_1;
1474
1474
  $sm: do
1475
1475
  try {
1476
- var tmp = this.c8_1;
1476
+ var tmp = this.state_1;
1477
1477
  switch (tmp) {
1478
1478
  case 0:
1479
- this.d8_1 = 11;
1480
- var $this$with = this.u3h_1.i3i_1;
1481
- var primitive = $this$with.context.l3d_1.e2d().i2($this$with.signature);
1479
+ this.exceptionState_1 = 11;
1480
+ var $this$with = this.this$0__1.solve_3;
1481
+ var primitive = $this$with.context.libraries_1.get_primitives_xl08ol_k$().get_wei43m_k$($this$with.signature);
1482
1482
  if (primitive == null) {
1483
- this.x3h_1 = null;
1484
- this.c8_1 = 8;
1483
+ this.WHEN_RESULT1__1 = null;
1484
+ this.state_1 = 8;
1485
1485
  continue $sm;
1486
1486
  } else {
1487
- this.y3h_1 = primitive;
1488
- this.y3h_1;
1489
- this.d3i_1 = null;
1490
- this.d8_1 = 1;
1491
- this.d3i_1 = primitive.solve(this.u3h_1.i3i_1);
1492
- this.d8_1 = 11;
1493
- this.c8_1 = 3;
1487
+ this.this2__1 = primitive;
1488
+ this.this2__1;
1489
+ this.responses7__1 = null;
1490
+ this.exceptionState_1 = 1;
1491
+ this.responses7__1 = primitive.solve(this.this$0__1.solve_3);
1492
+ this.exceptionState_1 = 11;
1493
+ this.state_1 = 3;
1494
1494
  continue $sm;
1495
1495
  }
1496
1496
 
1497
1497
  case 1:
1498
- this.d8_1 = 11;
1499
- var tmp_0 = this.f8_1;
1498
+ this.exceptionState_1 = 11;
1499
+ var tmp_0 = this.exception_1;
1500
1500
  if (tmp_0 instanceof HaltException) {
1501
- var exception = this.f8_1;
1502
- this.c8_1 = 2;
1503
- suspendResult = this.v3h_1.cd(stateEndHalt(this.u3h_1, exception, VOID, []), this);
1501
+ var exception = this.exception_1;
1502
+ this.state_1 = 2;
1503
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(stateEndHalt(this.this$0__1, exception, VOID, []), this);
1504
1504
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1505
1505
  return suspendResult;
1506
1506
  }
1507
1507
  continue $sm;
1508
1508
  } else {
1509
- var tmp_1 = this.f8_1;
1509
+ var tmp_1 = this.exception_1;
1510
1510
  if (tmp_1 instanceof LogicError) {
1511
- var logicError = this.f8_1;
1512
- this.d3i_1 = Companion_instance_11.i3d(newThrowSolveRequest(Companion_instance_13, this.u3h_1.i3i_1, logicError));
1513
- this.c8_1 = 3;
1511
+ var logicError = this.exception_1;
1512
+ this.responses7__1 = Companion_instance_11.solveToResponses_lmvh2j_k$(newThrowSolveRequest(Companion_instance_13, this.this$0__1.solve_3, logicError));
1513
+ this.state_1 = 3;
1514
1514
  continue $sm;
1515
1515
  } else {
1516
- throw this.f8_1;
1516
+ throw this.exception_1;
1517
1517
  }
1518
1518
  }
1519
1519
 
1520
1520
  case 2:
1521
- this.c8_1 = 3;
1521
+ this.state_1 = 3;
1522
1522
  continue $sm;
1523
1523
  case 3:
1524
- this.d8_1 = 11;
1525
- this.b3i_1 = emptyList();
1526
- var tmp0_safe_receiver = this.d3i_1;
1524
+ this.exceptionState_1 = 11;
1525
+ this.allSideEffectsSoFar5__1 = emptyList();
1526
+ var tmp0_safe_receiver = this.responses7__1;
1527
1527
  if (tmp0_safe_receiver == null) {
1528
- this.z3h_1 = null;
1529
- this.c8_1 = 7;
1528
+ this.WHEN_RESULT3__1 = null;
1529
+ this.state_1 = 7;
1530
1530
  continue $sm;
1531
1531
  } else {
1532
- this.c3i_1 = tmp0_safe_receiver.n();
1533
- this.c8_1 = 4;
1532
+ this._iterator_6_yqohr6__1 = tmp0_safe_receiver.iterator_jk1svi_k$();
1533
+ this.state_1 = 4;
1534
1534
  continue $sm;
1535
1535
  }
1536
1536
 
1537
1537
  case 4:
1538
- if (!this.c3i_1.q()) {
1539
- this.c8_1 = 6;
1538
+ if (!this._iterator_6_yqohr6__1.hasNext_bitz1p_k$()) {
1539
+ this.state_1 = 6;
1540
1540
  continue $sm;
1541
1541
  }
1542
1542
 
1543
- var element = this.c3i_1.r();
1544
- this.a3i_1 = element;
1545
- this.b3i_1 = addWithNoDuplicates(this.b3i_1, this.a3i_1.sideEffects);
1546
- this.c8_1 = 5;
1547
- suspendResult = this.v3h_1.cd(this.u3h_1.k3g(this.u3h_1, stateEnd(this.u3h_1, this.a3i_1.q2h(VOID, VOID, this.b3i_1))), this);
1543
+ var element = this._iterator_6_yqohr6__1.next_20eer_k$();
1544
+ this.it4__1 = element;
1545
+ this.allSideEffectsSoFar5__1 = addWithNoDuplicates(this.allSideEffectsSoFar5__1, this.it4__1.sideEffects);
1546
+ this.state_1 = 5;
1547
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.this$0__1.ifTimeIsNotOver_dx6dah_k$(this.this$0__1, stateEnd(this.this$0__1, this.it4__1.copy$default_ezhrq1_k$(VOID, VOID, this.allSideEffectsSoFar5__1))), this);
1548
1548
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1549
1549
  return suspendResult;
1550
1550
  }
1551
1551
 
1552
1552
  continue $sm;
1553
1553
  case 5:
1554
- var tmp_2 = this.a3i_1.solution;
1554
+ var tmp_2 = this.it4__1.solution;
1555
1555
  if (isInterface(tmp_2, Halt))
1556
1556
  return Unit_instance;
1557
- this.c8_1 = 4;
1557
+ this.state_1 = 4;
1558
1558
  continue $sm;
1559
1559
  case 6:
1560
- this.z3h_1 = Unit_instance;
1561
- this.c8_1 = 7;
1560
+ this.WHEN_RESULT3__1 = Unit_instance;
1561
+ this.state_1 = 7;
1562
1562
  continue $sm;
1563
1563
  case 7:
1564
- this.x3h_1 = this.y3h_1;
1565
- this.c8_1 = 8;
1564
+ this.WHEN_RESULT1__1 = this.this2__1;
1565
+ this.state_1 = 8;
1566
1566
  continue $sm;
1567
1567
  case 8:
1568
- var tmp1_elvis_lhs = this.x3h_1;
1568
+ var tmp1_elvis_lhs = this.WHEN_RESULT1__1;
1569
1569
  if (tmp1_elvis_lhs == null) {
1570
- this.c8_1 = 9;
1571
- suspendResult = this.v3h_1.cd(new StateRuleSelection(this.u3h_1.i3i_1), this);
1570
+ this.state_1 = 9;
1571
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(new StateRuleSelection(this.this$0__1.solve_3), this);
1572
1572
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1573
1573
  return suspendResult;
1574
1574
  }
1575
1575
  continue $sm;
1576
1576
  } else {
1577
- this.w3h_1 = tmp1_elvis_lhs;
1578
- this.c8_1 = 10;
1577
+ this.WHEN_RESULT0__1 = tmp1_elvis_lhs;
1578
+ this.state_1 = 10;
1579
1579
  continue $sm;
1580
1580
  }
1581
1581
 
1582
1582
  case 9:
1583
1583
  var tmp_3 = this;
1584
- tmp_3.w3h_1 = Unit_instance;
1585
- this.c8_1 = 10;
1584
+ tmp_3.WHEN_RESULT0__1 = Unit_instance;
1585
+ this.state_1 = 10;
1586
1586
  continue $sm;
1587
1587
  case 10:
1588
1588
  return Unit_instance;
1589
1589
  case 11:
1590
- throw this.f8_1;
1590
+ throw this.exception_1;
1591
1591
  }
1592
1592
  } catch ($p) {
1593
1593
  var e = $p;
1594
- if (this.d8_1 === 11) {
1594
+ if (this.exceptionState_1 === 11) {
1595
1595
  throw e;
1596
1596
  } else {
1597
- this.c8_1 = this.d8_1;
1598
- this.f8_1 = e;
1597
+ this.state_1 = this.exceptionState_1;
1598
+ this.exception_1 = e;
1599
1599
  }
1600
1600
  }
1601
1601
  while (true);
1602
1602
  };
1603
- protoOf(StateGoalEvaluation$behaveTimed$slambda).d3g = function ($this$sequence, completion) {
1604
- var i = new StateGoalEvaluation$behaveTimed$slambda(this.u3h_1, completion);
1605
- i.v3h_1 = $this$sequence;
1603
+ protoOf(StateGoalEvaluation$behaveTimed$slambda).create_od0806_k$ = function ($this$sequence, completion) {
1604
+ var i = new StateGoalEvaluation$behaveTimed$slambda(this.this$0__1, completion);
1605
+ i.$this$sequence_1 = $this$sequence;
1606
1606
  return i;
1607
1607
  };
1608
1608
  function StateGoalEvaluation$behaveTimed$slambda_0(this$0, resultContinuation) {
1609
1609
  var i = new StateGoalEvaluation$behaveTimed$slambda(this$0, resultContinuation);
1610
1610
  return constructCallableReference(function ($this$sequence, $completion) {
1611
- return i.c3g($this$sequence, $completion);
1611
+ return i.invoke_7thwuq_k$($this$sequence, $completion);
1612
1612
  }, 1);
1613
1613
  }
1614
1614
  function StateGoalEvaluation(solve) {
1615
1615
  AbstractTimedState.call(this, solve);
1616
- this.i3i_1 = solve;
1616
+ this.solve_3 = solve;
1617
1617
  }
1618
- protoOf(StateGoalEvaluation).f3d = function () {
1619
- return this.i3i_1;
1618
+ protoOf(StateGoalEvaluation).get_solve_iymyhi_k$ = function () {
1619
+ return this.solve_3;
1620
1620
  };
1621
- protoOf(StateGoalEvaluation).j3g = function () {
1621
+ protoOf(StateGoalEvaluation).behaveTimed_3b7a30_k$ = function () {
1622
1622
  return sequence(StateGoalEvaluation$behaveTimed$slambda_0(this, null));
1623
1623
  };
1624
1624
  function StateInit$behaveTimed$slambda(this$0, resultContinuation) {
1625
- this.r3i_1 = this$0;
1625
+ this.this$0__1 = this$0;
1626
1626
  CoroutineImpl.call(this, resultContinuation);
1627
1627
  }
1628
- protoOf(StateInit$behaveTimed$slambda).c3g = function ($this$sequence, $completion) {
1629
- var tmp = this.d3g($this$sequence, $completion);
1630
- tmp.e8_1 = Unit_instance;
1631
- tmp.f8_1 = null;
1632
- return tmp.k8();
1628
+ protoOf(StateInit$behaveTimed$slambda).invoke_7thwuq_k$ = function ($this$sequence, $completion) {
1629
+ var tmp = this.create_od0806_k$($this$sequence, $completion);
1630
+ tmp.result_1 = Unit_instance;
1631
+ tmp.exception_1 = null;
1632
+ return tmp.doResume_5yljmg_k$();
1633
1633
  };
1634
- protoOf(StateInit$behaveTimed$slambda).b9 = function (p1, $completion) {
1635
- return this.c3g(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1634
+ protoOf(StateInit$behaveTimed$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1635
+ return this.invoke_7thwuq_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1636
1636
  };
1637
- protoOf(StateInit$behaveTimed$slambda).k8 = function () {
1638
- var suspendResult = this.e8_1;
1637
+ protoOf(StateInit$behaveTimed$slambda).doResume_5yljmg_k$ = function () {
1638
+ var suspendResult = this.result_1;
1639
1639
  $sm: do
1640
1640
  try {
1641
- var tmp = this.c8_1;
1641
+ var tmp = this.state_1;
1642
1642
  switch (tmp) {
1643
1643
  case 0:
1644
- this.d8_1 = 6;
1645
- var $this$with = this.r3i_1.a3j_1.context;
1646
- var initializedSideEffectsManager = $this$with.x3d_1.h3e($this$with);
1647
- var currentGoal = this.r3i_1.a3j_1.q1v();
1648
- var $this$with_0 = this.r3i_1.a3j_1.context;
1649
- if ($this$with_0.w3d_1.d3d(currentGoal, $this$with_0)) {
1650
- this.c8_1 = 4;
1651
- suspendResult = this.s3i_1.cd(this.r3i_1.k3g(this.r3i_1, stateEndTrue(this.r3i_1, this.r3i_1.a3j_1.context.t3d_1, initializedSideEffectsManager, [])), this);
1644
+ this.exceptionState_1 = 6;
1645
+ var $this$with = this.this$0__1.solve_3.context;
1646
+ var initializedSideEffectsManager = $this$with.sideEffectManager_1.stateInitInitialize_k45sa5_k$($this$with);
1647
+ var currentGoal = this.this$0__1.solve_3.get_query_ixn1y7_k$();
1648
+ var $this$with_0 = this.this$0__1.solve_3.context;
1649
+ if ($this$with_0.solverStrategies_1.successCheckStrategy_50okaq_k$(currentGoal, $this$with_0)) {
1650
+ this.state_1 = 4;
1651
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.this$0__1.ifTimeIsNotOver_dx6dah_k$(this.this$0__1, stateEndTrue(this.this$0__1, this.this$0__1.solve_3.context.substitution_1, initializedSideEffectsManager, [])), this);
1652
1652
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1653
1653
  return suspendResult;
1654
1654
  }
1655
1655
  continue $sm;
1656
1656
  } else {
1657
1657
  if (isWellFormed(currentGoal)) {
1658
- this.v3i_1 = prepareForExecutionAsGoal(currentGoal);
1659
- var preparedGoal = this.v3i_1;
1660
- this.c8_1 = 2;
1658
+ this.this2__1 = prepareForExecutionAsGoal(currentGoal);
1659
+ var preparedGoal = this.this2__1;
1660
+ this.state_1 = 2;
1661
1661
  var tmp_0 = extractSignature(preparedGoal);
1662
- var tmp_1 = preparedGoal.bu();
1663
- var $this$with_1 = this.r3i_1.a3j_1.context;
1664
- suspendResult = this.s3i_1.cd(new StateGoalEvaluation(this.r3i_1.a3j_1.l2h(tmp_0, tmp_1, $this$with_1.t3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, initializedSideEffectsManager))), this);
1662
+ var tmp_1 = preparedGoal.get_argsList_cw1bs4_k$();
1663
+ var $this$with_1 = this.this$0__1.solve_3.context;
1664
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(new StateGoalEvaluation(this.this$0__1.solve_3.copy$default_c2mg6k_k$(tmp_0, tmp_1, $this$with_1.copy$default_91c9pl_k$(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, initializedSideEffectsManager))), this);
1665
1665
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1666
1666
  return suspendResult;
1667
1667
  }
1668
1668
  continue $sm;
1669
1669
  } else {
1670
- this.c8_1 = 1;
1671
- suspendResult = this.s3i_1.cd(stateEndFalse(this.r3i_1, initializedSideEffectsManager, []), this);
1670
+ this.state_1 = 1;
1671
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(stateEndFalse(this.this$0__1, initializedSideEffectsManager, []), this);
1672
1672
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1673
1673
  return suspendResult;
1674
1674
  }
@@ -1678,64 +1678,64 @@
1678
1678
 
1679
1679
  case 1:
1680
1680
  var tmp_2 = this;
1681
- tmp_2.u3i_1 = Unit_instance;
1682
- this.c8_1 = 3;
1681
+ tmp_2.WHEN_RESULT1__1 = Unit_instance;
1682
+ this.state_1 = 3;
1683
1683
  continue $sm;
1684
1684
  case 2:
1685
- this.u3i_1 = this.v3i_1;
1686
- this.c8_1 = 3;
1685
+ this.WHEN_RESULT1__1 = this.this2__1;
1686
+ this.state_1 = 3;
1687
1687
  continue $sm;
1688
1688
  case 3:
1689
- this.t3i_1 = this.u3i_1;
1690
- this.c8_1 = 5;
1689
+ this.WHEN_RESULT0__1 = this.WHEN_RESULT1__1;
1690
+ this.state_1 = 5;
1691
1691
  continue $sm;
1692
1692
  case 4:
1693
1693
  var tmp_3 = this;
1694
- tmp_3.t3i_1 = Unit_instance;
1695
- this.c8_1 = 5;
1694
+ tmp_3.WHEN_RESULT0__1 = Unit_instance;
1695
+ this.state_1 = 5;
1696
1696
  continue $sm;
1697
1697
  case 5:
1698
1698
  return Unit_instance;
1699
1699
  case 6:
1700
- throw this.f8_1;
1700
+ throw this.exception_1;
1701
1701
  }
1702
1702
  } catch ($p) {
1703
1703
  var e = $p;
1704
- if (this.d8_1 === 6) {
1704
+ if (this.exceptionState_1 === 6) {
1705
1705
  throw e;
1706
1706
  } else {
1707
- this.c8_1 = this.d8_1;
1708
- this.f8_1 = e;
1707
+ this.state_1 = this.exceptionState_1;
1708
+ this.exception_1 = e;
1709
1709
  }
1710
1710
  }
1711
1711
  while (true);
1712
1712
  };
1713
- protoOf(StateInit$behaveTimed$slambda).d3g = function ($this$sequence, completion) {
1714
- var i = new StateInit$behaveTimed$slambda(this.r3i_1, completion);
1715
- i.s3i_1 = $this$sequence;
1713
+ protoOf(StateInit$behaveTimed$slambda).create_od0806_k$ = function ($this$sequence, completion) {
1714
+ var i = new StateInit$behaveTimed$slambda(this.this$0__1, completion);
1715
+ i.$this$sequence_1 = $this$sequence;
1716
1716
  return i;
1717
1717
  };
1718
1718
  function StateInit$behaveTimed$slambda_0(this$0, resultContinuation) {
1719
1719
  var i = new StateInit$behaveTimed$slambda(this$0, resultContinuation);
1720
1720
  return constructCallableReference(function ($this$sequence, $completion) {
1721
- return i.c3g($this$sequence, $completion);
1721
+ return i.invoke_7thwuq_k$($this$sequence, $completion);
1722
1722
  }, 1);
1723
1723
  }
1724
1724
  function StateInit(solve) {
1725
1725
  AbstractTimedState.call(this, solve);
1726
- this.a3j_1 = solve;
1726
+ this.solve_3 = solve;
1727
1727
  }
1728
- protoOf(StateInit).f3d = function () {
1729
- return this.a3j_1;
1728
+ protoOf(StateInit).get_solve_iymyhi_k$ = function () {
1729
+ return this.solve_3;
1730
1730
  };
1731
- protoOf(StateInit).j3g = function () {
1731
+ protoOf(StateInit).behaveTimed_3b7a30_k$ = function () {
1732
1732
  return sequence(StateInit$behaveTimed$slambda_0(this, null));
1733
1733
  };
1734
1734
  function retrieveRulesMatching($this, $receiver, currentGoal) {
1735
1735
  // Inline function 'kotlin.let' call
1736
- var refreshedGoal = currentGoal.du();
1736
+ var refreshedGoal = currentGoal.freshCopy_fcm65_k$();
1737
1737
  // Inline function 'kotlin.takeIf' call
1738
- var this_0 = $receiver.r1u().asTheory($receiver.u1k()).getByHead(refreshedGoal);
1738
+ var this_0 = $receiver.get_libraries_lyf10w_k$().asTheory($receiver.get_unificator_xw6v3j_k$()).getByHead(refreshedGoal);
1739
1739
  var tmp;
1740
1740
  if (any(this_0)) {
1741
1741
  tmp = this_0;
@@ -1745,7 +1745,7 @@
1745
1745
  var tmp0_elvis_lhs = tmp;
1746
1746
  var tmp_0;
1747
1747
  if (tmp0_elvis_lhs == null) {
1748
- var tmp_1 = sequenceOf_0([$receiver.t1u(), $receiver.u1u()]);
1748
+ var tmp_1 = sequenceOf_0([$receiver.get_staticKb_a01l1u_k$(), $receiver.get_dynamicKb_wvqg8j_k$()]);
1749
1749
  tmp_0 = flatMap(tmp_1, StateRuleSelection$Companion$retrieveRulesMatching$lambda(refreshedGoal));
1750
1750
  } else {
1751
1751
  tmp_0 = tmp0_elvis_lhs;
@@ -1755,13 +1755,13 @@
1755
1755
  function initializeForSubRuleScope($this, $receiver) {
1756
1756
  // Inline function 'kotlin.with' call
1757
1757
  var $this$with = $receiver.context;
1758
- var tmp$ret$0 = $this$with.t3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$with.x3d_1.j3e());
1759
- return $receiver.l2h(VOID, VOID, tmp$ret$0);
1758
+ var tmp$ret$0 = $this$with.copy$default_91c9pl_k$(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$with.sideEffectManager_1.enterRuleSubScope_lpzv30_k$());
1759
+ return $receiver.copy$default_c2mg6k_k$(VOID, VOID, tmp$ret$0);
1760
1760
  }
1761
1761
  function removeSubstitutionFor($this, $receiver, unusedVariables) {
1762
1762
  var tmp;
1763
1763
  if (isInterface($receiver, Yes)) {
1764
- tmp = $receiver.copy(VOID, $receiver.n1u().yz(asIterable(unusedVariables)));
1764
+ tmp = $receiver.copy(VOID, $receiver.get_substitution_i7fi9y_k$().minusIterable_d0qivw_k$(asIterable(unusedVariables)));
1765
1765
  } else {
1766
1766
  tmp = $receiver;
1767
1767
  }
@@ -1773,7 +1773,7 @@
1773
1773
  };
1774
1774
  }
1775
1775
  function StateRuleSelection$behaveTimed$slambda$lambda(it) {
1776
- var tmp = prepareForExecution(it).du();
1776
+ var tmp = prepareForExecution(it).freshCopy_fcm65_k$();
1777
1777
  return isInterface(tmp, Rule) ? tmp : THROW_CCE();
1778
1778
  }
1779
1779
  function Companion_3() {
@@ -1783,124 +1783,124 @@
1783
1783
  return Companion_instance_14;
1784
1784
  }
1785
1785
  function StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation) {
1786
- this.j3j_1 = this$0;
1786
+ this.this$0__1 = this$0;
1787
1787
  CoroutineImpl.call(this, resultContinuation);
1788
1788
  }
1789
- protoOf(StateRuleSelection$behaveTimed$slambda).c3g = function ($this$sequence, $completion) {
1790
- var tmp = this.d3g($this$sequence, $completion);
1791
- tmp.e8_1 = Unit_instance;
1792
- tmp.f8_1 = null;
1793
- return tmp.k8();
1789
+ protoOf(StateRuleSelection$behaveTimed$slambda).invoke_7thwuq_k$ = function ($this$sequence, $completion) {
1790
+ var tmp = this.create_od0806_k$($this$sequence, $completion);
1791
+ tmp.result_1 = Unit_instance;
1792
+ tmp.exception_1 = null;
1793
+ return tmp.doResume_5yljmg_k$();
1794
1794
  };
1795
- protoOf(StateRuleSelection$behaveTimed$slambda).b9 = function (p1, $completion) {
1796
- return this.c3g(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1795
+ protoOf(StateRuleSelection$behaveTimed$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
1796
+ return this.invoke_7thwuq_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
1797
1797
  };
1798
- protoOf(StateRuleSelection$behaveTimed$slambda).k8 = function () {
1799
- var suspendResult = this.e8_1;
1798
+ protoOf(StateRuleSelection$behaveTimed$slambda).doResume_5yljmg_k$ = function () {
1799
+ var suspendResult = this.result_1;
1800
1800
  $sm: do
1801
1801
  try {
1802
- var tmp = this.c8_1;
1802
+ var tmp = this.state_1;
1803
1803
  switch (tmp) {
1804
1804
  case 0:
1805
- this.d8_1 = 12;
1806
- this.t3j_1 = this.j3j_1.z3j_1.q1v();
1807
- var matchingRules = retrieveRulesMatching(Companion_instance_14, this.j3j_1.z3j_1.context, this.t3j_1);
1808
- this.s3j_1 = moreThanOne(matchingRules);
1805
+ this.exceptionState_1 = 12;
1806
+ this.currentGoal8__1 = this.this$0__1.solve_3.get_query_ixn1y7_k$();
1807
+ var matchingRules = retrieveRulesMatching(Companion_instance_14, this.this$0__1.solve_3.context, this.currentGoal8__1);
1808
+ this.isChoicePoint7__1 = moreThanOne(matchingRules);
1809
1809
  if (none(matchingRules)) {
1810
- this.c8_1 = 10;
1811
- suspendResult = this.k3j_1.cd(stateEndFalse(this.j3j_1, VOID, []), this);
1810
+ this.state_1 = 10;
1811
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(stateEndFalse(this.this$0__1, VOID, []), this);
1812
1812
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1813
1813
  return suspendResult;
1814
1814
  }
1815
1815
  continue $sm;
1816
1816
  } else {
1817
- var $this$with = this.j3j_1.z3j_1.context;
1818
- var tmp_0 = orderWithStrategy(matchingRules, $this$with, SolverStrategies$clauseChoiceStrategy$ref($this$with.w3d_1));
1819
- this.u3j_1 = map(tmp_0, StateRuleSelection$behaveTimed$slambda$lambda).n();
1820
- this.c8_1 = 1;
1817
+ var $this$with = this.this$0__1.solve_3.context;
1818
+ var tmp_0 = orderWithStrategy(matchingRules, $this$with, SolverStrategies$clauseChoiceStrategy$ref($this$with.solverStrategies_1));
1819
+ this.this9__1 = map(tmp_0, StateRuleSelection$behaveTimed$slambda$lambda).iterator_jk1svi_k$();
1820
+ this.state_1 = 1;
1821
1821
  continue $sm;
1822
1822
  }
1823
1823
 
1824
1824
  case 1:
1825
- if (!this.u3j_1.q()) {
1826
- this.c8_1 = 9;
1825
+ if (!this.this9__1.hasNext_bitz1p_k$()) {
1826
+ this.state_1 = 9;
1827
1827
  continue $sm;
1828
1828
  }
1829
1829
 
1830
- var tmp0 = this.u3j_1.r();
1831
- var tmp2 = this.u3j_1.q();
1832
- this.n3j_1 = tmp0;
1833
- this.o3j_1 = tmp2;
1834
- var unifyingSubstitution = this.j3j_1.i8().k3d_1.mgu(this.t3j_1, this.n3j_1.gw());
1835
- var tmp_1 = this.n3j_1.hw().applySubstitution(unifyingSubstitution);
1830
+ var tmp0 = this.this9__1.next_20eer_k$();
1831
+ var tmp2 = this.this9__1.hasNext_bitz1p_k$();
1832
+ this.refreshedRule2__1 = tmp0;
1833
+ this.hasAlternatives3__1 = tmp2;
1834
+ var unifyingSubstitution = this.this$0__1.get_context_h02k06_k$().unificator_1.mgu(this.currentGoal8__1, this.refreshedRule2__1.get_head_won7e1_k$());
1835
+ var tmp_1 = this.refreshedRule2__1.get_body_wojkyz_k$().applySubstitution(unifyingSubstitution);
1836
1836
  var wellFormedRuleBody = isInterface(tmp_1, Struct) ? tmp_1 : THROW_CCE();
1837
1837
  var tmp_2 = this;
1838
- var tmp0_$receiver = this.j3j_1.z3j_1;
1838
+ var tmp0_$receiver = this.this$0__1.solve_3;
1839
1839
  var tmp1_requestIssuingInstant = currentTimeInstant();
1840
- tmp_2.p3j_1 = newSolveRequest(tmp0_$receiver, wellFormedRuleBody, unifyingSubstitution, VOID, VOID, tmp1_requestIssuingInstant, this.s3j_1);
1841
- this.r3j_1 = new StateInit(initializeForSubRuleScope(Companion_instance_14, this.p3j_1));
1842
- var it = this.r3j_1;
1843
- this.c8_1 = 2;
1844
- suspendResult = this.k3j_1.cd(asAlreadyExecuted(it), this);
1840
+ tmp_2.subSolveRequest4__1 = newSolveRequest(tmp0_$receiver, wellFormedRuleBody, unifyingSubstitution, VOID, VOID, tmp1_requestIssuingInstant, this.isChoicePoint7__1);
1841
+ this.this6__1 = new StateInit(initializeForSubRuleScope(Companion_instance_14, this.subSolveRequest4__1));
1842
+ var it = this.this6__1;
1843
+ this.state_1 = 2;
1844
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(asAlreadyExecuted(it), this);
1845
1845
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1846
1846
  return suspendResult;
1847
1847
  }
1848
1848
 
1849
1849
  continue $sm;
1850
1850
  case 2:
1851
- var subInitialState = this.r3j_1;
1852
- this.l3j_1 = false;
1853
- this.q3j_1 = this.j3j_1.a3k_1(subInitialState).n();
1854
- this.c8_1 = 3;
1851
+ var subInitialState = this.this6__1;
1852
+ this.cutNextSiblings0__1 = false;
1853
+ this._iterator_5_yqohr5__1 = this.this$0__1.subStateExecute_1(subInitialState).iterator_jk1svi_k$();
1854
+ this.state_1 = 3;
1855
1855
  continue $sm;
1856
1856
  case 3:
1857
- if (!this.q3j_1.q()) {
1858
- this.c8_1 = 8;
1857
+ if (!this._iterator_5_yqohr5__1.hasNext_bitz1p_k$()) {
1858
+ this.state_1 = 8;
1859
1859
  continue $sm;
1860
1860
  }
1861
1861
 
1862
- var element = this.q3j_1.r();
1863
- this.m3j_1 = element.o3f_1;
1862
+ var element = this._iterator_5_yqohr5__1.next_20eer_k$();
1863
+ this.subState1__1 = element.wrappedState_1;
1864
1864
  var tmp_3;
1865
- var tmp_4 = this.m3j_1;
1865
+ var tmp_4 = this.subState1__1;
1866
1866
  if (isInterface(tmp_4, FinalState)) {
1867
- tmp_3 = this.m3j_1.f3d().solution.q1v().equals(this.p3j_1.q1v());
1867
+ tmp_3 = this.subState1__1.get_solve_iymyhi_k$().solution.get_query_ixn1y7_k$().equals(this.subSolveRequest4__1.get_query_ixn1y7_k$());
1868
1868
  } else {
1869
1869
  tmp_3 = false;
1870
1870
  }
1871
1871
 
1872
1872
  if (tmp_3) {
1873
- if (shouldCutExecuteInRuleSelection(this.m3j_1.f3d().sideEffectManager)) {
1874
- this.l3j_1 = true;
1873
+ if (shouldCutExecuteInRuleSelection(this.subState1__1.get_solve_iymyhi_k$().sideEffectManager)) {
1874
+ this.cutNextSiblings0__1 = true;
1875
1875
  }
1876
1876
  var tmp_5;
1877
1877
  var tmp_6;
1878
- var tmp_7 = this.m3j_1;
1878
+ var tmp_7 = this.subState1__1;
1879
1879
  if (!(tmp_7 instanceof False)) {
1880
1880
  tmp_6 = true;
1881
1881
  } else {
1882
- tmp_6 = !this.o3j_1;
1882
+ tmp_6 = !this.hasAlternatives3__1;
1883
1883
  }
1884
1884
  if (tmp_6) {
1885
1885
  tmp_5 = true;
1886
1886
  } else {
1887
- tmp_5 = this.l3j_1;
1887
+ tmp_5 = this.cutNextSiblings0__1;
1888
1888
  }
1889
1889
  if (tmp_5) {
1890
- var extendedScopeSideEffectManager = extendParentScopeWith(this.m3j_1.f3d().sideEffectManager, this.j3j_1.z3j_1.context.x3d_1);
1891
- this.c8_1 = 5;
1892
- suspendResult = this.k3j_1.cd(stateEnd(this.j3j_1, this.m3j_1.f3d().q2h(removeSubstitutionFor(Companion_instance_14, this.m3j_1.f3d().solution, this.n3j_1.cu()), extendedScopeSideEffectManager)), this);
1890
+ var extendedScopeSideEffectManager = extendParentScopeWith(this.subState1__1.get_solve_iymyhi_k$().sideEffectManager, this.this$0__1.solve_3.context.sideEffectManager_1);
1891
+ this.state_1 = 5;
1892
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(stateEnd(this.this$0__1, this.subState1__1.get_solve_iymyhi_k$().copy$default_ezhrq1_k$(removeSubstitutionFor(Companion_instance_14, this.subState1__1.get_solve_iymyhi_k$().solution, this.refreshedRule2__1.get_variables_75f0zy_k$()), extendedScopeSideEffectManager)), this);
1893
1893
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1894
1894
  return suspendResult;
1895
1895
  }
1896
1896
  continue $sm;
1897
1897
  } else {
1898
- this.c8_1 = 6;
1898
+ this.state_1 = 6;
1899
1899
  continue $sm;
1900
1900
  }
1901
1901
  } else {
1902
- this.c8_1 = 4;
1903
- suspendResult = this.k3j_1.cd(element, this);
1902
+ this.state_1 = 4;
1903
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(element, this);
1904
1904
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1905
1905
  return suspendResult;
1906
1906
  }
@@ -1908,75 +1908,75 @@
1908
1908
  }
1909
1909
 
1910
1910
  case 4:
1911
- this.c8_1 = 7;
1911
+ this.state_1 = 7;
1912
1912
  continue $sm;
1913
1913
  case 5:
1914
- this.c8_1 = 6;
1914
+ this.state_1 = 6;
1915
1915
  continue $sm;
1916
1916
  case 6:
1917
- var tmp_8 = this.m3j_1;
1917
+ var tmp_8 = this.subState1__1;
1918
1918
  if (tmp_8 instanceof Halt_0)
1919
1919
  return Unit_instance;
1920
- this.c8_1 = 7;
1920
+ this.state_1 = 7;
1921
1921
  continue $sm;
1922
1922
  case 7:
1923
- this.c8_1 = 3;
1923
+ this.state_1 = 3;
1924
1924
  continue $sm;
1925
1925
  case 8:
1926
- if (this.l3j_1)
1926
+ if (this.cutNextSiblings0__1)
1927
1927
  return Unit_instance;
1928
- this.c8_1 = 1;
1928
+ this.state_1 = 1;
1929
1929
  continue $sm;
1930
1930
  case 9:
1931
- this.c8_1 = 11;
1931
+ this.state_1 = 11;
1932
1932
  continue $sm;
1933
1933
  case 10:
1934
- this.c8_1 = 11;
1934
+ this.state_1 = 11;
1935
1935
  continue $sm;
1936
1936
  case 11:
1937
1937
  return Unit_instance;
1938
1938
  case 12:
1939
- throw this.f8_1;
1939
+ throw this.exception_1;
1940
1940
  }
1941
1941
  } catch ($p) {
1942
1942
  var e = $p;
1943
- if (this.d8_1 === 12) {
1943
+ if (this.exceptionState_1 === 12) {
1944
1944
  throw e;
1945
1945
  } else {
1946
- this.c8_1 = this.d8_1;
1947
- this.f8_1 = e;
1946
+ this.state_1 = this.exceptionState_1;
1947
+ this.exception_1 = e;
1948
1948
  }
1949
1949
  }
1950
1950
  while (true);
1951
1951
  };
1952
- protoOf(StateRuleSelection$behaveTimed$slambda).d3g = function ($this$sequence, completion) {
1953
- var i = new StateRuleSelection$behaveTimed$slambda(this.j3j_1, completion);
1954
- i.k3j_1 = $this$sequence;
1952
+ protoOf(StateRuleSelection$behaveTimed$slambda).create_od0806_k$ = function ($this$sequence, completion) {
1953
+ var i = new StateRuleSelection$behaveTimed$slambda(this.this$0__1, completion);
1954
+ i.$this$sequence_1 = $this$sequence;
1955
1955
  return i;
1956
1956
  };
1957
1957
  function StateRuleSelection$behaveTimed$slambda_0(this$0, resultContinuation) {
1958
1958
  var i = new StateRuleSelection$behaveTimed$slambda(this$0, resultContinuation);
1959
1959
  return constructCallableReference(function ($this$sequence, $completion) {
1960
- return i.c3g($this$sequence, $completion);
1960
+ return i.invoke_7thwuq_k$($this$sequence, $completion);
1961
1961
  }, 1);
1962
1962
  }
1963
1963
  function StateRuleSelection(solve) {
1964
1964
  AbstractTimedState.call(this, solve);
1965
- this.z3j_1 = solve;
1965
+ this.solve_3 = solve;
1966
1966
  var tmp = this;
1967
- tmp.a3k_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_instance);
1967
+ tmp.subStateExecute_1 = StateMachineExecutor$executeWrapping$ref(StateMachineExecutor_instance);
1968
1968
  }
1969
- protoOf(StateRuleSelection).f3d = function () {
1970
- return this.z3j_1;
1969
+ protoOf(StateRuleSelection).get_solve_iymyhi_k$ = function () {
1970
+ return this.solve_3;
1971
1971
  };
1972
- protoOf(StateRuleSelection).j3g = function () {
1972
+ protoOf(StateRuleSelection).behaveTimed_3b7a30_k$ = function () {
1973
1973
  return sequence(StateRuleSelection$behaveTimed$slambda_0(this, null));
1974
1974
  };
1975
1975
  function DefaultBuiltins() {
1976
1976
  DefaultBuiltins_instance = this;
1977
1977
  ExtensionLibrary.call(this, CommonBuiltins_getInstance());
1978
1978
  }
1979
- protoOf(DefaultBuiltins).s2d = function () {
1979
+ protoOf(DefaultBuiltins).get_additionalPrimitives_kt57lw_k$ = function () {
1980
1980
  return listOf_0([Call_getInstance(), Catch_getInstance(), Conjunction_getInstance(), Cut_getInstance(), Throw_getInstance(), Not_getInstance()]);
1981
1981
  };
1982
1982
  var DefaultBuiltins_instance;
@@ -1987,27 +1987,27 @@
1987
1987
  }
1988
1988
  function Call$uncheckedImplementation$lambda($request) {
1989
1989
  return function (it) {
1990
- return replyWith($request, it.q2h(VOID, resetCutWorkChanges(it.sideEffectManager, $request.context.x3d_1)));
1990
+ return replyWith($request, it.copy$default_ezhrq1_k$(VOID, resetCutWorkChanges(it.sideEffectManager, $request.context.sideEffectManager_1)));
1991
1991
  };
1992
1992
  }
1993
1993
  function Call() {
1994
1994
  Call_instance = this;
1995
1995
  PrimitiveWrapper_init_$Init$('call', 1, VOID, this);
1996
1996
  }
1997
- protoOf(Call).i3k = function (request) {
1997
+ protoOf(Call).uncheckedImplementation_mc12qx_k$ = function (request) {
1998
1998
  // Inline function 'kotlin.let' call
1999
- var toBeCalledGoal = single(Companion_getInstance_4().s2e(request).arguments);
1999
+ var toBeCalledGoal = single(Companion_getInstance_4().ensuringAllArgumentsAreInstantiated_60kzw2_k$(request).arguments);
2000
2000
  var tmp;
2001
2001
  if (isWellFormed(toBeCalledGoal)) {
2002
- var tmp_0 = Companion_instance_11.i3d(newSolveRequest(request, prepareForExecutionAsGoal(toBeCalledGoal)));
2002
+ var tmp_0 = Companion_instance_11.solveToResponses_lmvh2j_k$(newSolveRequest(request, prepareForExecutionAsGoal(toBeCalledGoal)));
2003
2003
  tmp = map(tmp_0, Call$uncheckedImplementation$lambda(request));
2004
2004
  } else {
2005
2005
  throw TypeError_init_$Create$('call/1 argument is neither a Variable nor a well-formed goal', VOID, request.context, Expected_CALLABLE_getInstance(), toBeCalledGoal);
2006
2006
  }
2007
2007
  return tmp;
2008
2008
  };
2009
- protoOf(Call).e2f = function (request) {
2010
- return this.i3k(request);
2009
+ protoOf(Call).uncheckedImplementation_etwntj_k$ = function (request) {
2010
+ return this.uncheckedImplementation_mc12qx_k$(request);
2011
2011
  };
2012
2012
  var Call_instance;
2013
2013
  function Call_getInstance() {
@@ -2027,53 +2027,53 @@
2027
2027
  return tmp.of(tmp$ret$0, [goal]);
2028
2028
  }
2029
2029
  function ensureNoMoreSelectableCatch($this, $receiver, notSelectableContext) {
2030
- return $receiver.l2h(VOID, VOID, $receiver.context.t3e(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $receiver.context.x3d_1.q3e(notSelectableContext)));
2030
+ return $receiver.copy$default_c2mg6k_k$(VOID, VOID, $receiver.context.copy$default_91c9pl_k$(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $receiver.context.sideEffectManager_1.ensureNoMoreSelectableCatch_83cmnn_k$(notSelectableContext)));
2031
2031
  }
2032
2032
  function Catch$uncheckedImplementation$slambda($request, resultContinuation) {
2033
- this.r3k_1 = $request;
2033
+ this.$request_1 = $request;
2034
2034
  CoroutineImpl.call(this, resultContinuation);
2035
2035
  }
2036
- protoOf(Catch$uncheckedImplementation$slambda).n2p = function ($this$sequence, $completion) {
2037
- var tmp = this.o2p($this$sequence, $completion);
2038
- tmp.e8_1 = Unit_instance;
2039
- tmp.f8_1 = null;
2040
- return tmp.k8();
2036
+ protoOf(Catch$uncheckedImplementation$slambda).invoke_ze0sv8_k$ = function ($this$sequence, $completion) {
2037
+ var tmp = this.create_ibarao_k$($this$sequence, $completion);
2038
+ tmp.result_1 = Unit_instance;
2039
+ tmp.exception_1 = null;
2040
+ return tmp.doResume_5yljmg_k$();
2041
2041
  };
2042
- protoOf(Catch$uncheckedImplementation$slambda).b9 = function (p1, $completion) {
2043
- return this.n2p(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2042
+ protoOf(Catch$uncheckedImplementation$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
2043
+ return this.invoke_ze0sv8_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2044
2044
  };
2045
- protoOf(Catch$uncheckedImplementation$slambda).k8 = function () {
2046
- var suspendResult = this.e8_1;
2045
+ protoOf(Catch$uncheckedImplementation$slambda).doResume_5yljmg_k$ = function () {
2046
+ var suspendResult = this.result_1;
2047
2047
  $sm: do
2048
2048
  try {
2049
- var tmp = this.c8_1;
2049
+ var tmp = this.state_1;
2050
2050
  switch (tmp) {
2051
2051
  case 0:
2052
- this.d8_1 = 6;
2053
- var goalArgument = first_0(this.r3k_1.arguments);
2054
- this.t3k_1 = Companion_instance_11.i3d(newSolveRequest(this.r3k_1, call(Catch_getInstance(), goalArgument))).n();
2055
- this.c8_1 = 1;
2052
+ this.exceptionState_1 = 6;
2053
+ var goalArgument = first_0(this.$request_1.arguments);
2054
+ this._iterator_0_yqohr0__1 = Companion_instance_11.solveToResponses_lmvh2j_k$(newSolveRequest(this.$request_1, call(Catch_getInstance(), goalArgument))).iterator_jk1svi_k$();
2055
+ this.state_1 = 1;
2056
2056
  continue $sm;
2057
2057
  case 1:
2058
- if (!this.t3k_1.q()) {
2059
- this.c8_1 = 5;
2058
+ if (!this._iterator_0_yqohr0__1.hasNext_bitz1p_k$()) {
2059
+ this.state_1 = 5;
2060
2060
  continue $sm;
2061
2061
  }
2062
2062
 
2063
- var element = this.t3k_1.r();
2064
- if (isSelectedThrowCatch(element.sideEffectManager, this.r3k_1.context)) {
2065
- var recoverGoalArgument = last(this.r3k_1.arguments).applySubstitution(element.solution.n1u());
2066
- var recoverGoalSolveRequest = ensureNoMoreSelectableCatch(Catch_getInstance(), newSolveRequest(this.r3k_1, call(Catch_getInstance(), recoverGoalArgument), element.solution.n1u().minus(this.r3k_1.context.t3d_1), VOID, VOID, currentTimeInstant()), this.r3k_1.context);
2067
- this.c8_1 = 3;
2068
- var tmp_0 = Companion_instance_11.i3d(recoverGoalSolveRequest);
2069
- suspendResult = this.s3k_1.fd(map(tmp_0, Catch$uncheckedImplementation$slambda$lambda(this.r3k_1)), this);
2063
+ var element = this._iterator_0_yqohr0__1.next_20eer_k$();
2064
+ if (isSelectedThrowCatch(element.sideEffectManager, this.$request_1.context)) {
2065
+ var recoverGoalArgument = last(this.$request_1.arguments).applySubstitution(element.solution.get_substitution_i7fi9y_k$());
2066
+ var recoverGoalSolveRequest = ensureNoMoreSelectableCatch(Catch_getInstance(), newSolveRequest(this.$request_1, call(Catch_getInstance(), recoverGoalArgument), element.solution.get_substitution_i7fi9y_k$().minus(this.$request_1.context.substitution_1), VOID, VOID, currentTimeInstant()), this.$request_1.context);
2067
+ this.state_1 = 3;
2068
+ var tmp_0 = Companion_instance_11.solveToResponses_lmvh2j_k$(recoverGoalSolveRequest);
2069
+ suspendResult = this.$this$sequence_1.yieldAll_h63j2x_k$(map(tmp_0, Catch$uncheckedImplementation$slambda$lambda(this.$request_1)), this);
2070
2070
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2071
2071
  return suspendResult;
2072
2072
  }
2073
2073
  continue $sm;
2074
2074
  } else {
2075
- this.c8_1 = 2;
2076
- suspendResult = this.s3k_1.cd(replyWith(this.r3k_1, element), this);
2075
+ this.state_1 = 2;
2076
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(replyWith(this.$request_1, element), this);
2077
2077
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2078
2078
  return suspendResult;
2079
2079
  }
@@ -2081,50 +2081,50 @@
2081
2081
  }
2082
2082
 
2083
2083
  case 2:
2084
- this.c8_1 = 4;
2084
+ this.state_1 = 4;
2085
2085
  continue $sm;
2086
2086
  case 3:
2087
- this.c8_1 = 4;
2087
+ this.state_1 = 4;
2088
2088
  continue $sm;
2089
2089
  case 4:
2090
- this.c8_1 = 1;
2090
+ this.state_1 = 1;
2091
2091
  continue $sm;
2092
2092
  case 5:
2093
2093
  return Unit_instance;
2094
2094
  case 6:
2095
- throw this.f8_1;
2095
+ throw this.exception_1;
2096
2096
  }
2097
2097
  } catch ($p) {
2098
2098
  var e = $p;
2099
- if (this.d8_1 === 6) {
2099
+ if (this.exceptionState_1 === 6) {
2100
2100
  throw e;
2101
2101
  } else {
2102
- this.c8_1 = this.d8_1;
2103
- this.f8_1 = e;
2102
+ this.state_1 = this.exceptionState_1;
2103
+ this.exception_1 = e;
2104
2104
  }
2105
2105
  }
2106
2106
  while (true);
2107
2107
  };
2108
- protoOf(Catch$uncheckedImplementation$slambda).o2p = function ($this$sequence, completion) {
2109
- var i = new Catch$uncheckedImplementation$slambda(this.r3k_1, completion);
2110
- i.s3k_1 = $this$sequence;
2108
+ protoOf(Catch$uncheckedImplementation$slambda).create_ibarao_k$ = function ($this$sequence, completion) {
2109
+ var i = new Catch$uncheckedImplementation$slambda(this.$request_1, completion);
2110
+ i.$this$sequence_1 = $this$sequence;
2111
2111
  return i;
2112
2112
  };
2113
2113
  function Catch$uncheckedImplementation$slambda_0($request, resultContinuation) {
2114
2114
  var i = new Catch$uncheckedImplementation$slambda($request, resultContinuation);
2115
2115
  return constructCallableReference(function ($this$sequence, $completion) {
2116
- return i.n2p($this$sequence, $completion);
2116
+ return i.invoke_ze0sv8_k$($this$sequence, $completion);
2117
2117
  }, 1);
2118
2118
  }
2119
2119
  function Catch() {
2120
2120
  Catch_instance = this;
2121
2121
  PrimitiveWrapper_init_$Init$('catch', 3, VOID, this);
2122
2122
  }
2123
- protoOf(Catch).i3k = function (request) {
2123
+ protoOf(Catch).uncheckedImplementation_mc12qx_k$ = function (request) {
2124
2124
  return sequence(Catch$uncheckedImplementation$slambda_0(request, null));
2125
2125
  };
2126
- protoOf(Catch).e2f = function (request) {
2127
- return this.i3k(request);
2126
+ protoOf(Catch).uncheckedImplementation_etwntj_k$ = function (request) {
2127
+ return this.uncheckedImplementation_mc12qx_k$(request);
2128
2128
  };
2129
2129
  var Catch_instance;
2130
2130
  function Catch_getInstance() {
@@ -2134,36 +2134,36 @@
2134
2134
  }
2135
2135
  function solveConjunctionGoals($this, $receiver, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $completion) {
2136
2136
  var tmp = new $solveConjunctionGoalsCOROUTINE$($this, $receiver, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, $completion);
2137
- tmp.e8_1 = Unit_instance;
2138
- tmp.f8_1 = null;
2139
- return tmp.k8();
2137
+ tmp.result_1 = Unit_instance;
2138
+ tmp.exception_1 = null;
2139
+ return tmp.doResume_5yljmg_k$();
2140
2140
  }
2141
2141
  function Conjunction$uncheckedImplementation$slambda($request, resultContinuation) {
2142
- this.z3l_1 = $request;
2142
+ this.$request_1 = $request;
2143
2143
  CoroutineImpl.call(this, resultContinuation);
2144
2144
  }
2145
- protoOf(Conjunction$uncheckedImplementation$slambda).n2p = function ($this$sequence, $completion) {
2146
- var tmp = this.o2p($this$sequence, $completion);
2147
- tmp.e8_1 = Unit_instance;
2148
- tmp.f8_1 = null;
2149
- return tmp.k8();
2145
+ protoOf(Conjunction$uncheckedImplementation$slambda).invoke_ze0sv8_k$ = function ($this$sequence, $completion) {
2146
+ var tmp = this.create_ibarao_k$($this$sequence, $completion);
2147
+ tmp.result_1 = Unit_instance;
2148
+ tmp.exception_1 = null;
2149
+ return tmp.doResume_5yljmg_k$();
2150
2150
  };
2151
- protoOf(Conjunction$uncheckedImplementation$slambda).b9 = function (p1, $completion) {
2152
- return this.n2p(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2151
+ protoOf(Conjunction$uncheckedImplementation$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
2152
+ return this.invoke_ze0sv8_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2153
2153
  };
2154
- protoOf(Conjunction$uncheckedImplementation$slambda).k8 = function () {
2155
- var suspendResult = this.e8_1;
2154
+ protoOf(Conjunction$uncheckedImplementation$slambda).doResume_5yljmg_k$ = function () {
2155
+ var suspendResult = this.result_1;
2156
2156
  $sm: do
2157
2157
  try {
2158
- var tmp = this.c8_1;
2158
+ var tmp = this.state_1;
2159
2159
  switch (tmp) {
2160
2160
  case 0:
2161
- this.d8_1 = 2;
2162
- var $this$with = this.z3l_1;
2163
- var tmp_0 = $this$with.q1v().castToTuple().qs();
2164
- var subGoals = toList(orderWithStrategy(tmp_0, $this$with.context, SolverStrategies$predicationChoiceStrategy$ref($this$with.context.w3d_1)));
2165
- this.c8_1 = 1;
2166
- suspendResult = solveConjunctionGoals(Conjunction_getInstance(), this.a3m_1, this.z3l_1, subGoals, this.z3l_1.context, Companion_getInstance_2().empty(), emptyList(), this.z3l_1.context.x3d_1, false, this);
2161
+ this.exceptionState_1 = 2;
2162
+ var $this$with = this.$request_1;
2163
+ var tmp_0 = $this$with.get_query_ixn1y7_k$().castToTuple().toSequence_lzjcyk_k$();
2164
+ var subGoals = toList(orderWithStrategy(tmp_0, $this$with.context, SolverStrategies$predicationChoiceStrategy$ref($this$with.context.solverStrategies_1)));
2165
+ this.state_1 = 1;
2166
+ suspendResult = solveConjunctionGoals(Conjunction_getInstance(), this.$this$sequence_1, this.$request_1, subGoals, this.$request_1.context, Companion_getInstance_2().empty(), emptyList(), this.$request_1.context.sideEffectManager_1, false, this);
2167
2167
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2168
2168
  return suspendResult;
2169
2169
  }
@@ -2172,105 +2172,105 @@
2172
2172
  case 1:
2173
2173
  return Unit_instance;
2174
2174
  case 2:
2175
- throw this.f8_1;
2175
+ throw this.exception_1;
2176
2176
  }
2177
2177
  } catch ($p) {
2178
2178
  var e = $p;
2179
- if (this.d8_1 === 2) {
2179
+ if (this.exceptionState_1 === 2) {
2180
2180
  throw e;
2181
2181
  } else {
2182
- this.c8_1 = this.d8_1;
2183
- this.f8_1 = e;
2182
+ this.state_1 = this.exceptionState_1;
2183
+ this.exception_1 = e;
2184
2184
  }
2185
2185
  }
2186
2186
  while (true);
2187
2187
  };
2188
- protoOf(Conjunction$uncheckedImplementation$slambda).o2p = function ($this$sequence, completion) {
2189
- var i = new Conjunction$uncheckedImplementation$slambda(this.z3l_1, completion);
2190
- i.a3m_1 = $this$sequence;
2188
+ protoOf(Conjunction$uncheckedImplementation$slambda).create_ibarao_k$ = function ($this$sequence, completion) {
2189
+ var i = new Conjunction$uncheckedImplementation$slambda(this.$request_1, completion);
2190
+ i.$this$sequence_1 = $this$sequence;
2191
2191
  return i;
2192
2192
  };
2193
2193
  function Conjunction$uncheckedImplementation$slambda_0($request, resultContinuation) {
2194
2194
  var i = new Conjunction$uncheckedImplementation$slambda($request, resultContinuation);
2195
2195
  return constructCallableReference(function ($this$sequence, $completion) {
2196
- return i.n2p($this$sequence, $completion);
2196
+ return i.invoke_ze0sv8_k$($this$sequence, $completion);
2197
2197
  }, 1);
2198
2198
  }
2199
2199
  function $solveConjunctionGoalsCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, mainRequest, goals, toPropagateContext, accumulatedSubstitutions, accumulatedSideEffects, previousResponseSideEffectManager, previousGoalsHadAlternatives, resultContinuation) {
2200
2200
  CoroutineImpl.call(this, resultContinuation);
2201
- this.d3l_1 = _this__u8e3s4;
2202
- this.e3l_1 = _this__u8e3s4_0;
2203
- this.f3l_1 = mainRequest;
2204
- this.g3l_1 = goals;
2205
- this.h3l_1 = toPropagateContext;
2206
- this.i3l_1 = accumulatedSubstitutions;
2207
- this.j3l_1 = accumulatedSideEffects;
2208
- this.k3l_1 = previousResponseSideEffectManager;
2209
- this.l3l_1 = previousGoalsHadAlternatives;
2210
- }
2211
- protoOf($solveConjunctionGoalsCOROUTINE$).k8 = function () {
2212
- var suspendResult = this.e8_1;
2201
+ this._this__u8e3s4__1 = _this__u8e3s4;
2202
+ this._this__u8e3s4__2 = _this__u8e3s4_0;
2203
+ this.mainRequest_1 = mainRequest;
2204
+ this.goals_1 = goals;
2205
+ this.toPropagateContext_1 = toPropagateContext;
2206
+ this.accumulatedSubstitutions_1 = accumulatedSubstitutions;
2207
+ this.accumulatedSideEffects_1 = accumulatedSideEffects;
2208
+ this.previousResponseSideEffectManager_1 = previousResponseSideEffectManager;
2209
+ this.previousGoalsHadAlternatives_1 = previousGoalsHadAlternatives;
2210
+ }
2211
+ protoOf($solveConjunctionGoalsCOROUTINE$).doResume_5yljmg_k$ = function () {
2212
+ var suspendResult = this.result_1;
2213
2213
  $sm: do
2214
2214
  try {
2215
- var tmp = this.c8_1;
2215
+ var tmp = this.state_1;
2216
2216
  switch (tmp) {
2217
2217
  case 0:
2218
- this.d8_1 = 7;
2219
- this.p3l_1 = prepareForExecutionAsGoal(first_1(this.g3l_1).applySubstitution(this.i3l_1));
2220
- var tmp0_elvis_lhs = this.k3l_1;
2221
- var goalRequest = newSolveRequest(this.f3l_1, this.p3l_1, this.i3l_1, this.h3l_1, tmp0_elvis_lhs == null ? this.f3l_1.context.x3d_1 : tmp0_elvis_lhs);
2222
- this.n3l_1 = false;
2223
- this.m3l_1 = emptyList();
2224
- this.q3l_1 = Companion_instance_11.g3d(goalRequest).n();
2225
- this.c8_1 = 1;
2218
+ this.exceptionState_1 = 7;
2219
+ this.goal3__1 = prepareForExecutionAsGoal(first_1(this.goals_1).applySubstitution(this.accumulatedSubstitutions_1));
2220
+ var tmp0_elvis_lhs = this.previousResponseSideEffectManager_1;
2221
+ var goalRequest = newSolveRequest(this.mainRequest_1, this.goal3__1, this.accumulatedSubstitutions_1, this.toPropagateContext_1, tmp0_elvis_lhs == null ? this.mainRequest_1.context.sideEffectManager_1 : tmp0_elvis_lhs);
2222
+ this.cutExecuted1__1 = false;
2223
+ this.currentSideEffects0__1 = emptyList();
2224
+ this.this4__1 = Companion_instance_11.solveToFinalStates_ioolgl_k$(goalRequest).iterator_jk1svi_k$();
2225
+ this.state_1 = 1;
2226
2226
  continue $sm;
2227
2227
  case 1:
2228
- if (!this.q3l_1.q()) {
2229
- this.c8_1 = 6;
2228
+ if (!this.this4__1.hasNext_bitz1p_k$()) {
2229
+ this.state_1 = 6;
2230
2230
  continue $sm;
2231
2231
  }
2232
2232
 
2233
- var tmp0 = this.q3l_1.r();
2234
- var currentHasAlternatives = this.q3l_1.q();
2235
- this.o3l_1 = tmp0.f3d();
2233
+ var tmp0 = this.this4__1.next_20eer_k$();
2234
+ var currentHasAlternatives = this.this4__1.hasNext_bitz1p_k$();
2235
+ this.goalResponse2__1 = tmp0.get_solve_iymyhi_k$();
2236
2236
  var tmp_0;
2237
- if (Cut_getInstance().signature.name === this.p3l_1.au()) {
2237
+ if (Cut_getInstance().signature.name === this.goal3__1.get_functor_75vgt2_k$()) {
2238
2238
  tmp_0 = true;
2239
2239
  } else {
2240
- var tmp0_safe_receiver = this.o3l_1.sideEffectManager;
2240
+ var tmp0_safe_receiver = this.goalResponse2__1.sideEffectManager;
2241
2241
  tmp_0 = (tmp0_safe_receiver == null ? null : shouldExecuteThrowCut(tmp0_safe_receiver)) === true;
2242
2242
  }
2243
2243
 
2244
2244
  if (tmp_0) {
2245
- this.n3l_1 = true;
2245
+ this.cutExecuted1__1 = true;
2246
2246
  }
2247
2247
 
2248
- this.m3l_1 = addWithNoDuplicates(this.m3l_1, this.o3l_1.sideEffects);
2248
+ this.currentSideEffects0__1 = addWithNoDuplicates(this.currentSideEffects0__1, this.goalResponse2__1.sideEffects);
2249
2249
  var tmp_1;
2250
2250
  var tmp_2;
2251
- var tmp1_safe_receiver = this.o3l_1.sideEffectManager;
2251
+ var tmp1_safe_receiver = this.goalResponse2__1.sideEffectManager;
2252
2252
  if ((tmp1_safe_receiver == null ? null : shouldExecuteThrowCut(tmp1_safe_receiver)) === false) {
2253
- var tmp_3 = this.o3l_1.solution;
2253
+ var tmp_3 = this.goalResponse2__1.solution;
2254
2254
  tmp_2 = isInterface(tmp_3, Yes);
2255
2255
  } else {
2256
2256
  tmp_2 = false;
2257
2257
  }
2258
2258
 
2259
2259
  if (tmp_2) {
2260
- tmp_1 = moreThanOne(asSequence(this.g3l_1));
2260
+ tmp_1 = moreThanOne(asSequence(this.goals_1));
2261
2261
  } else {
2262
2262
  tmp_1 = false;
2263
2263
  }
2264
2264
 
2265
2265
  if (tmp_1) {
2266
- this.c8_1 = 4;
2266
+ this.state_1 = 4;
2267
2267
  var tmp_4 = Conjunction_getInstance();
2268
- var tmp_5 = drop(this.g3l_1, 1);
2269
- var tmp_6 = tmp0.i8().z30(this.m3l_1);
2270
- var tmp_7 = this.o3l_1.solution.n1u().minus(this.f3l_1.context.t3d_1);
2271
- var tmp_8 = this.m3l_1;
2272
- var tmp_9 = this.o3l_1.sideEffectManager;
2273
- suspendResult = solveConjunctionGoals(tmp_4, this.e3l_1, this.f3l_1, tmp_5, tmp_6, tmp_7, tmp_8, tmp_9 instanceof SideEffectManagerImpl ? tmp_9 : null, this.l3l_1 || currentHasAlternatives, this);
2268
+ var tmp_5 = drop(this.goals_1, 1);
2269
+ var tmp_6 = tmp0.get_context_h02k06_k$().applyIterable_lkplre_k$(this.currentSideEffects0__1);
2270
+ var tmp_7 = this.goalResponse2__1.solution.get_substitution_i7fi9y_k$().minus(this.mainRequest_1.context.substitution_1);
2271
+ var tmp_8 = this.currentSideEffects0__1;
2272
+ var tmp_9 = this.goalResponse2__1.sideEffectManager;
2273
+ suspendResult = solveConjunctionGoals(tmp_4, this._this__u8e3s4__2, this.mainRequest_1, tmp_5, tmp_6, tmp_7, tmp_8, tmp_9 instanceof SideEffectManagerImpl ? tmp_9 : null, this.previousGoalsHadAlternatives_1 || currentHasAlternatives, this);
2274
2274
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2275
2275
  return suspendResult;
2276
2276
  }
@@ -2278,72 +2278,72 @@
2278
2278
  } else {
2279
2279
  var tmp_10;
2280
2280
  var tmp_11;
2281
- var tmp_12 = this.o3l_1.solution;
2281
+ var tmp_12 = this.goalResponse2__1.solution;
2282
2282
  if (!isInterface(tmp_12, No)) {
2283
2283
  tmp_11 = true;
2284
2284
  } else {
2285
- tmp_11 = (!this.l3l_1 && !currentHasAlternatives);
2285
+ tmp_11 = (!this.previousGoalsHadAlternatives_1 && !currentHasAlternatives);
2286
2286
  }
2287
2287
  if (tmp_11) {
2288
2288
  tmp_10 = true;
2289
2289
  } else {
2290
- tmp_10 = this.n3l_1;
2290
+ tmp_10 = this.cutExecuted1__1;
2291
2291
  }
2292
2292
  if (tmp_10) {
2293
- this.c8_1 = 2;
2294
- suspendResult = this.e3l_1.cd(replyWith(this.f3l_1, this.o3l_1.q2h(VOID, VOID, plus_1(this.j3l_1, this.m3l_1))), this);
2293
+ this.state_1 = 2;
2294
+ suspendResult = this._this__u8e3s4__2.yield_3xhcex_k$(replyWith(this.mainRequest_1, this.goalResponse2__1.copy$default_ezhrq1_k$(VOID, VOID, plus_1(this.accumulatedSideEffects_1, this.currentSideEffects0__1))), this);
2295
2295
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2296
2296
  return suspendResult;
2297
2297
  }
2298
2298
  continue $sm;
2299
2299
  } else {
2300
- this.c8_1 = 3;
2300
+ this.state_1 = 3;
2301
2301
  continue $sm;
2302
2302
  }
2303
2303
  }
2304
2304
 
2305
2305
  case 2:
2306
- this.c8_1 = 3;
2306
+ this.state_1 = 3;
2307
2307
  continue $sm;
2308
2308
  case 3:
2309
- this.c8_1 = 5;
2309
+ this.state_1 = 5;
2310
2310
  continue $sm;
2311
2311
  case 4:
2312
2312
  var sideEffectPair = suspendResult;
2313
2313
  if (sideEffectPair.first) {
2314
- this.n3l_1 = true;
2314
+ this.cutExecuted1__1 = true;
2315
2315
  }
2316
2316
 
2317
- this.m3l_1 = sideEffectPair.second;
2318
- this.c8_1 = 5;
2317
+ this.currentSideEffects0__1 = sideEffectPair.second;
2318
+ this.state_1 = 5;
2319
2319
  continue $sm;
2320
2320
  case 5:
2321
2321
  var tmp_13;
2322
- if (this.n3l_1) {
2322
+ if (this.cutExecuted1__1) {
2323
2323
  tmp_13 = true;
2324
2324
  } else {
2325
- var tmp_14 = this.o3l_1.solution;
2325
+ var tmp_14 = this.goalResponse2__1.solution;
2326
2326
  tmp_13 = isInterface(tmp_14, Halt);
2327
2327
  }
2328
2328
 
2329
2329
  if (tmp_13) {
2330
- return new Pair(true, plus_1(this.j3l_1, this.m3l_1));
2330
+ return new Pair(true, plus_1(this.accumulatedSideEffects_1, this.currentSideEffects0__1));
2331
2331
  }
2332
2332
 
2333
- this.c8_1 = 1;
2333
+ this.state_1 = 1;
2334
2334
  continue $sm;
2335
2335
  case 6:
2336
- return new Pair(this.n3l_1, plus_1(this.j3l_1, this.m3l_1));
2336
+ return new Pair(this.cutExecuted1__1, plus_1(this.accumulatedSideEffects_1, this.currentSideEffects0__1));
2337
2337
  case 7:
2338
- throw this.f8_1;
2338
+ throw this.exception_1;
2339
2339
  }
2340
2340
  } catch ($p) {
2341
2341
  var e = $p;
2342
- if (this.d8_1 === 7) {
2342
+ if (this.exceptionState_1 === 7) {
2343
2343
  throw e;
2344
2344
  } else {
2345
- this.c8_1 = this.d8_1;
2346
- this.f8_1 = e;
2345
+ this.state_1 = this.exceptionState_1;
2346
+ this.exception_1 = e;
2347
2347
  }
2348
2348
  }
2349
2349
  while (true);
@@ -2352,11 +2352,11 @@
2352
2352
  Conjunction_instance = this;
2353
2353
  PrimitiveWrapper_init_$Init$(',', 2, VOID, this);
2354
2354
  }
2355
- protoOf(Conjunction).i3k = function (request) {
2355
+ protoOf(Conjunction).uncheckedImplementation_mc12qx_k$ = function (request) {
2356
2356
  return sequence(Conjunction$uncheckedImplementation$slambda_0(request, null));
2357
2357
  };
2358
- protoOf(Conjunction).e2f = function (request) {
2359
- return this.i3k(request);
2358
+ protoOf(Conjunction).uncheckedImplementation_etwntj_k$ = function (request) {
2359
+ return this.uncheckedImplementation_mc12qx_k$(request);
2360
2360
  };
2361
2361
  var Conjunction_instance;
2362
2362
  function Conjunction_getInstance() {
@@ -2368,12 +2368,12 @@
2368
2368
  Cut_instance = this;
2369
2369
  PrimitiveWrapper_init_$Init$('!', 0, VOID, this);
2370
2370
  }
2371
- protoOf(Cut).i3k = function (request) {
2371
+ protoOf(Cut).uncheckedImplementation_mc12qx_k$ = function (request) {
2372
2372
  // Inline function 'kotlin.with' call
2373
- return sequenceOf(request.replySuccess(request.context.t3d_1, request.context.x3d_1.f3e(), []));
2373
+ return sequenceOf(request.replySuccess(request.context.substitution_1, request.context.sideEffectManager_1.cut_24aq_k$(), []));
2374
2374
  };
2375
- protoOf(Cut).e2f = function (request) {
2376
- return this.i3k(request);
2375
+ protoOf(Cut).uncheckedImplementation_etwntj_k$ = function (request) {
2376
+ return this.uncheckedImplementation_mc12qx_k$(request);
2377
2377
  };
2378
2378
  var Cut_instance;
2379
2379
  function Cut_getInstance() {
@@ -2382,59 +2382,59 @@
2382
2382
  return Cut_instance;
2383
2383
  }
2384
2384
  function Not$uncheckedImplementation$slambda($request, resultContinuation) {
2385
- this.l3m_1 = $request;
2385
+ this.$request_1 = $request;
2386
2386
  CoroutineImpl.call(this, resultContinuation);
2387
2387
  }
2388
- protoOf(Not$uncheckedImplementation$slambda).n2p = function ($this$sequence, $completion) {
2389
- var tmp = this.o2p($this$sequence, $completion);
2390
- tmp.e8_1 = Unit_instance;
2391
- tmp.f8_1 = null;
2392
- return tmp.k8();
2388
+ protoOf(Not$uncheckedImplementation$slambda).invoke_ze0sv8_k$ = function ($this$sequence, $completion) {
2389
+ var tmp = this.create_ibarao_k$($this$sequence, $completion);
2390
+ tmp.result_1 = Unit_instance;
2391
+ tmp.exception_1 = null;
2392
+ return tmp.doResume_5yljmg_k$();
2393
2393
  };
2394
- protoOf(Not$uncheckedImplementation$slambda).b9 = function (p1, $completion) {
2395
- return this.n2p(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2394
+ protoOf(Not$uncheckedImplementation$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
2395
+ return this.invoke_ze0sv8_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
2396
2396
  };
2397
- protoOf(Not$uncheckedImplementation$slambda).k8 = function () {
2398
- var suspendResult = this.e8_1;
2397
+ protoOf(Not$uncheckedImplementation$slambda).doResume_5yljmg_k$ = function () {
2398
+ var suspendResult = this.result_1;
2399
2399
  $sm: do
2400
2400
  try {
2401
- var tmp = this.c8_1;
2401
+ var tmp = this.state_1;
2402
2402
  switch (tmp) {
2403
2403
  case 0:
2404
- this.d8_1 = 7;
2405
- var goalArgument = single(this.l3m_1.arguments);
2404
+ this.exceptionState_1 = 7;
2405
+ var goalArgument = single(this.$request_1.arguments);
2406
2406
  var tmp_0 = Companion_instance_11;
2407
2407
  var tmp_1 = Companion_getInstance_3();
2408
2408
  var this_0 = Call_getInstance();
2409
- this.n3m_1 = tmp_0.i3d(newSolveRequest(this.l3m_1, tmp_1.of(this_0.signature.name, [goalArgument]))).n();
2410
- this.c8_1 = 1;
2409
+ this._iterator_0_yqohr0__1 = tmp_0.solveToResponses_lmvh2j_k$(newSolveRequest(this.$request_1, tmp_1.of(this_0.signature.name, [goalArgument]))).iterator_jk1svi_k$();
2410
+ this.state_1 = 1;
2411
2411
  continue $sm;
2412
2412
  case 1:
2413
- if (!this.n3m_1.q()) {
2414
- this.c8_1 = 6;
2413
+ if (!this._iterator_0_yqohr0__1.hasNext_bitz1p_k$()) {
2414
+ this.state_1 = 6;
2415
2415
  continue $sm;
2416
2416
  }
2417
2417
 
2418
- var element = this.n3m_1.r();
2418
+ var element = this._iterator_0_yqohr0__1.next_20eer_k$();
2419
2419
  var tmp0_subject = element.solution;
2420
2420
  if (isInterface(tmp0_subject, Yes)) {
2421
- this.c8_1 = 5;
2422
- suspendResult = this.m3m_1.cd(this.l3m_1.replyFail(VOID, []), this);
2421
+ this.state_1 = 5;
2422
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.$request_1.replyFail(VOID, []), this);
2423
2423
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2424
2424
  return suspendResult;
2425
2425
  }
2426
2426
  continue $sm;
2427
2427
  } else {
2428
2428
  if (isInterface(tmp0_subject, No)) {
2429
- this.c8_1 = 3;
2430
- suspendResult = this.m3m_1.cd(this.l3m_1.replySuccess(this.l3m_1.context.t3d_1, VOID, []), this);
2429
+ this.state_1 = 3;
2430
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.$request_1.replySuccess(this.$request_1.context.substitution_1, VOID, []), this);
2431
2431
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2432
2432
  return suspendResult;
2433
2433
  }
2434
2434
  continue $sm;
2435
2435
  } else {
2436
- this.c8_1 = 2;
2437
- suspendResult = this.m3m_1.cd(replyWith(this.l3m_1, element), this);
2436
+ this.state_1 = 2;
2437
+ suspendResult = this.$this$sequence_1.yield_3xhcex_k$(replyWith(this.$request_1, element), this);
2438
2438
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2439
2439
  return suspendResult;
2440
2440
  }
@@ -2443,52 +2443,52 @@
2443
2443
  }
2444
2444
 
2445
2445
  case 2:
2446
- this.c8_1 = 4;
2446
+ this.state_1 = 4;
2447
2447
  continue $sm;
2448
2448
  case 3:
2449
- this.c8_1 = 4;
2449
+ this.state_1 = 4;
2450
2450
  continue $sm;
2451
2451
  case 4:
2452
- this.c8_1 = 1;
2452
+ this.state_1 = 1;
2453
2453
  continue $sm;
2454
2454
  case 5:
2455
2455
  return Unit_instance;
2456
2456
  case 6:
2457
2457
  return Unit_instance;
2458
2458
  case 7:
2459
- throw this.f8_1;
2459
+ throw this.exception_1;
2460
2460
  }
2461
2461
  } catch ($p) {
2462
2462
  var e = $p;
2463
- if (this.d8_1 === 7) {
2463
+ if (this.exceptionState_1 === 7) {
2464
2464
  throw e;
2465
2465
  } else {
2466
- this.c8_1 = this.d8_1;
2467
- this.f8_1 = e;
2466
+ this.state_1 = this.exceptionState_1;
2467
+ this.exception_1 = e;
2468
2468
  }
2469
2469
  }
2470
2470
  while (true);
2471
2471
  };
2472
- protoOf(Not$uncheckedImplementation$slambda).o2p = function ($this$sequence, completion) {
2473
- var i = new Not$uncheckedImplementation$slambda(this.l3m_1, completion);
2474
- i.m3m_1 = $this$sequence;
2472
+ protoOf(Not$uncheckedImplementation$slambda).create_ibarao_k$ = function ($this$sequence, completion) {
2473
+ var i = new Not$uncheckedImplementation$slambda(this.$request_1, completion);
2474
+ i.$this$sequence_1 = $this$sequence;
2475
2475
  return i;
2476
2476
  };
2477
2477
  function Not$uncheckedImplementation$slambda_0($request, resultContinuation) {
2478
2478
  var i = new Not$uncheckedImplementation$slambda($request, resultContinuation);
2479
2479
  return constructCallableReference(function ($this$sequence, $completion) {
2480
- return i.n2p($this$sequence, $completion);
2480
+ return i.invoke_ze0sv8_k$($this$sequence, $completion);
2481
2481
  }, 1);
2482
2482
  }
2483
2483
  function Not() {
2484
2484
  Not_instance = this;
2485
2485
  PrimitiveWrapper_init_$Init$('\\+', 1, VOID, this);
2486
2486
  }
2487
- protoOf(Not).i3k = function (request) {
2487
+ protoOf(Not).uncheckedImplementation_mc12qx_k$ = function (request) {
2488
2488
  return sequence(Not$uncheckedImplementation$slambda_0(request, null));
2489
2489
  };
2490
- protoOf(Not).e2f = function (request) {
2491
- return this.i3k(request);
2490
+ protoOf(Not).uncheckedImplementation_etwntj_k$ = function (request) {
2491
+ return this.uncheckedImplementation_mc12qx_k$(request);
2492
2492
  };
2493
2493
  var Not_instance;
2494
2494
  function Not_getInstance() {
@@ -2501,20 +2501,20 @@
2501
2501
  var $this$with = isInterface($receiver, Struct) ? $receiver : null;
2502
2502
  var tmp;
2503
2503
  var tmp_0;
2504
- if (($this$with == null ? null : $this$with.au()) === 'error') {
2505
- tmp_0 = $this$with.ut() === 2;
2504
+ if (($this$with == null ? null : $this$with.get_functor_75vgt2_k$()) === 'error') {
2505
+ tmp_0 = $this$with.get_arity_iosiic_k$() === 2;
2506
2506
  } else {
2507
2507
  tmp_0 = false;
2508
2508
  }
2509
2509
  if (tmp_0) {
2510
- var tmp_1 = firstOrNull($this$with.bu());
2510
+ var tmp_1 = firstOrNull($this$with.get_argsList_cw1bs4_k$());
2511
2511
  var tmp0_safe_receiver = (!(tmp_1 == null) ? isInterface(tmp_1, Struct) : false) ? tmp_1 : null;
2512
2512
  var tmp_2;
2513
2513
  if (tmp0_safe_receiver == null) {
2514
2514
  tmp_2 = null;
2515
2515
  } else {
2516
2516
  // Inline function 'kotlin.let' call
2517
- tmp_2 = new Pair(tmp0_safe_receiver, $this$with.bu().x(1));
2517
+ tmp_2 = new Pair(tmp0_safe_receiver, $this$with.get_argsList_cw1bs4_k$().get_c1px32_k$(1));
2518
2518
  }
2519
2519
  tmp = tmp_2;
2520
2520
  } else {
@@ -2529,8 +2529,8 @@
2529
2529
  tmp = null;
2530
2530
  } else {
2531
2531
  // Inline function 'kotlin.let' call
2532
- var type = tmp0_safe_receiver.pc();
2533
- var extra = tmp0_safe_receiver.qc();
2532
+ var type = tmp0_safe_receiver.component1_7eebsc_k$();
2533
+ var extra = tmp0_safe_receiver.component2_7eebsb_k$();
2534
2534
  var tmp1_cause = extractErrorCauseChain(Throw_getInstance(), extra, withContext);
2535
2535
  tmp = Companion_instance_8.of(VOID, tmp1_cause, withContext, type, extra);
2536
2536
  }
@@ -2540,27 +2540,27 @@
2540
2540
  Throw_instance = this;
2541
2541
  NonBacktrackable.call(this, 'throw');
2542
2542
  }
2543
- protoOf(Throw).q3m = function (_this__u8e3s4, first) {
2543
+ protoOf(Throw).computeOne_ythzuv_k$ = function (_this__u8e3s4, first) {
2544
2544
  var tmp;
2545
2545
  try {
2546
2546
  // Inline function 'kotlin.let' call
2547
- var throwArgument = single(Companion_getInstance_4().s2e(_this__u8e3s4).arguments).freshCopy();
2548
- var ancestorCatch = _this__u8e3s4.context.x3d_1.n3e(throwArgument);
2547
+ var throwArgument = single(Companion_getInstance_4().ensuringAllArgumentsAreInstantiated_60kzw2_k$(_this__u8e3s4).arguments).freshCopy();
2548
+ var ancestorCatch = _this__u8e3s4.context.sideEffectManager_1.retrieveAncestorCatchRequest_r27er6_k$(throwArgument);
2549
2549
  var tmp1_safe_receiver = ancestorCatch == null ? null : ancestorCatch.arguments;
2550
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x(1);
2550
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get_c1px32_k$(1);
2551
2551
  var tmp_0;
2552
2552
  if (tmp2_safe_receiver == null) {
2553
2553
  tmp_0 = null;
2554
2554
  } else {
2555
2555
  // Inline function 'kotlin.let' call
2556
- tmp_0 = Companion_getInstance_4().q2f(_this__u8e3s4, tmp2_safe_receiver, throwArgument);
2556
+ tmp_0 = Companion_getInstance_4().mgu_jyyt35_k$(_this__u8e3s4, tmp2_safe_receiver, throwArgument);
2557
2557
  }
2558
2558
  var catcher = tmp_0;
2559
2559
  var tmp_1;
2560
2560
  if (!(catcher == null) ? isInterface(catcher, Unifier) : false) {
2561
- var tmp_2 = _this__u8e3s4.context.t3d_1.plus(catcher);
2561
+ var tmp_2 = _this__u8e3s4.context.substitution_1.plus(catcher);
2562
2562
  var newSubstitution = isInterface(tmp_2, Unifier) ? tmp_2 : THROW_CCE();
2563
- tmp_1 = _this__u8e3s4.replySuccess(newSubstitution, _this__u8e3s4.context.x3d_1.o3e(ancestorCatch.context), []);
2563
+ tmp_1 = _this__u8e3s4.replySuccess(newSubstitution, _this__u8e3s4.context.sideEffectManager_1.throwCut_aijtdq_k$(ancestorCatch.context), []);
2564
2564
  } else {
2565
2565
  var errorCause = extractErrorCauseChain(Throw_getInstance(), throwArgument, _this__u8e3s4.context);
2566
2566
  if (!(errorCause == null))
@@ -2581,8 +2581,8 @@
2581
2581
  }
2582
2582
  return tmp;
2583
2583
  };
2584
- protoOf(Throw).d2i = function (_this__u8e3s4, first) {
2585
- return this.q3m(_this__u8e3s4, first);
2584
+ protoOf(Throw).computeOne_2tedul_k$ = function (_this__u8e3s4, first) {
2585
+ return this.computeOne_ythzuv_k$(_this__u8e3s4, first);
2586
2586
  };
2587
2587
  var Throw_instance;
2588
2588
  function Throw_getInstance() {
@@ -2601,39 +2601,39 @@
2601
2601
  protoOf(StreamsSolver).solveOnce = solveOnce;
2602
2602
  protoOf(StreamsSolver).solveOnceWithOptions = solveOnceWithOptions;
2603
2603
  protoOf(StreamsSolver).clone = clone;
2604
- protoOf(StreamsSolver).b1v = get_standardInput;
2605
- protoOf(StreamsSolver).c1v = get_standardOutput;
2606
- protoOf(StreamsSolver).d1v = get_standardError;
2607
- protoOf(StreamsSolver).e1v = get_warnings;
2604
+ protoOf(StreamsSolver).get_standardInput_yibe3g_k$ = get_standardInput;
2605
+ protoOf(StreamsSolver).get_standardOutput_1cxkgp_k$ = get_standardOutput;
2606
+ protoOf(StreamsSolver).get_standardError_ykfz6m_k$ = get_standardError;
2607
+ protoOf(StreamsSolver).get_warnings_nkdx40_k$ = get_warnings;
2608
2608
  protoOf(StreamsSolverFactory).rawSolverOf = rawSolverOf;
2609
2609
  protoOf(StreamsSolverFactory).solverOf = solverOf;
2610
2610
  protoOf(StreamsSolverFactory).mutableSolverOf = mutableSolverOf;
2611
2611
  protoOf(StreamsSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
2612
2612
  protoOf(StreamsSolverFactory).newBuilder = newBuilder;
2613
- protoOf(StreamsSolverFactory).c1x = get_defaultRuntime;
2614
- protoOf(StreamsSolverFactory).e1x = get_defaultUnificator;
2615
- protoOf(StreamsSolverFactory).f1x = get_defaultFlags;
2616
- protoOf(StreamsSolverFactory).i1x = get_defaultStaticKb;
2617
- protoOf(StreamsSolverFactory).j1x = get_defaultDynamicKb;
2618
- protoOf(StreamsSolverFactory).k1x = get_defaultInputChannel;
2619
- protoOf(StreamsSolverFactory).l1x = get_defaultOutputChannel;
2620
- protoOf(StreamsSolverFactory).m1x = get_defaultErrorChannel;
2621
- protoOf(StreamsSolverFactory).n1x = get_defaultWarningsChannel;
2622
- protoOf(StreamsSolverFactory).v1x = solverWithDefaultBuiltins;
2613
+ protoOf(StreamsSolverFactory).get_defaultRuntime_l4gjfk_k$ = get_defaultRuntime;
2614
+ protoOf(StreamsSolverFactory).get_defaultUnificator_ub4hy6_k$ = get_defaultUnificator;
2615
+ protoOf(StreamsSolverFactory).get_defaultFlags_6lgyr5_k$ = get_defaultFlags;
2616
+ protoOf(StreamsSolverFactory).get_defaultStaticKb_njv4d9_k$ = get_defaultStaticKb;
2617
+ protoOf(StreamsSolverFactory).get_defaultDynamicKb_ctuo3i_k$ = get_defaultDynamicKb;
2618
+ protoOf(StreamsSolverFactory).get_defaultInputChannel_2ryi7j_k$ = get_defaultInputChannel;
2619
+ protoOf(StreamsSolverFactory).get_defaultOutputChannel_bnwwa_k$ = get_defaultOutputChannel;
2620
+ protoOf(StreamsSolverFactory).get_defaultErrorChannel_ezdmst_k$ = get_defaultErrorChannel;
2621
+ protoOf(StreamsSolverFactory).get_defaultWarningsChannel_rdf4c_k$ = get_defaultWarningsChannel;
2622
+ protoOf(StreamsSolverFactory).solverWithDefaultBuiltins_tcha89_k$ = solverWithDefaultBuiltins;
2623
2623
  protoOf(StreamsSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
2624
- protoOf(StreamsSolverFactory).x1x = mutableSolverWithDefaultBuiltins;
2624
+ protoOf(StreamsSolverFactory).mutableSolverWithDefaultBuiltins_bc3d81_k$ = mutableSolverWithDefaultBuiltins;
2625
2625
  protoOf(StreamsSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
2626
2626
  protoOf(StreamsExecutionContext).createSolver = createSolver;
2627
2627
  protoOf(StreamsExecutionContext).createMutableSolver = createMutableSolver;
2628
2628
  protoOf(StreamsExecutionContext).update = update;
2629
- protoOf(StreamsExecutionContext).b1v = get_standardInput;
2630
- protoOf(StreamsExecutionContext).c1v = get_standardOutput;
2631
- protoOf(StreamsExecutionContext).d1v = get_standardError;
2632
- protoOf(StreamsExecutionContext).e1v = get_warnings;
2633
- protoOf(StreamsExecutionContext).i1u = get_endTime;
2634
- protoOf(StreamsExecutionContext).k1u = get_remainingTime;
2635
- protoOf(StreamsExecutionContext).l1u = get_elapsedTime;
2636
- protoOf(AbstractTimedState).i8 = get_context;
2629
+ protoOf(StreamsExecutionContext).get_standardInput_yibe3g_k$ = get_standardInput;
2630
+ protoOf(StreamsExecutionContext).get_standardOutput_1cxkgp_k$ = get_standardOutput;
2631
+ protoOf(StreamsExecutionContext).get_standardError_ykfz6m_k$ = get_standardError;
2632
+ protoOf(StreamsExecutionContext).get_warnings_nkdx40_k$ = get_warnings;
2633
+ protoOf(StreamsExecutionContext).get_endTime_pbcuqp_k$ = get_endTime;
2634
+ protoOf(StreamsExecutionContext).get_remainingTime_6e6md6_k$ = get_remainingTime;
2635
+ protoOf(StreamsExecutionContext).get_elapsedTime_5vfaps_k$ = get_elapsedTime;
2636
+ protoOf(AbstractTimedState).get_context_h02k06_k$ = get_context;
2637
2637
  //endregion
2638
2638
  //region block: init
2639
2639
  Companion_instance_11 = new Companion_0();