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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/2p-bdd.js +234 -229
  2. package/2p-bdd.js.map +1 -1
  3. package/2p-core.js +5576 -6196
  4. package/2p-core.js.map +1 -1
  5. package/2p-datalog.js +9 -2
  6. package/2p-datalog.js.map +1 -1
  7. package/2p-dsl-core.js +9 -2
  8. package/2p-dsl-core.js.map +1 -1
  9. package/2p-dsl-solve.js +9 -2
  10. package/2p-dsl-solve.js.map +1 -1
  11. package/2p-dsl-theory.js +9 -2
  12. package/2p-dsl-theory.js.map +1 -1
  13. package/2p-dsl-unify.js +9 -2
  14. package/2p-dsl-unify.js.map +1 -1
  15. package/2p-full.js +26 -3
  16. package/2p-full.js.map +1 -1
  17. package/2p-io-lib.js +903 -926
  18. package/2p-io-lib.js.map +1 -1
  19. package/2p-oop-lib.js +1298 -1327
  20. package/2p-oop-lib.js.map +1 -1
  21. package/2p-parser-core.js +352 -356
  22. package/2p-parser-core.js.map +1 -1
  23. package/2p-parser-js.js +14 -3
  24. package/2p-parser-js.js.map +1 -1
  25. package/2p-parser-theory.js +66 -41
  26. package/2p-parser-theory.js.map +1 -1
  27. package/2p-repl.js +175 -173
  28. package/2p-repl.js.map +1 -1
  29. package/2p-serialize-core.js +9 -2
  30. package/2p-serialize-core.js.map +1 -1
  31. package/2p-serialize-theory.js +9 -2
  32. package/2p-serialize-theory.js.map +1 -1
  33. package/2p-solve-classic.js +1405 -1677
  34. package/2p-solve-classic.js.map +1 -1
  35. package/2p-solve-concurrent.js +9 -2
  36. package/2p-solve-concurrent.js.map +1 -1
  37. package/2p-solve-plp.js +19 -5
  38. package/2p-solve-plp.js.map +1 -1
  39. package/2p-solve-problog.js +1845 -1880
  40. package/2p-solve-problog.js.map +1 -1
  41. package/2p-solve-streams.js +1239 -1331
  42. package/2p-solve-streams.js.map +1 -1
  43. package/2p-solve.js +5342 -5796
  44. package/2p-solve.js.map +1 -1
  45. package/2p-theory.js +1734 -1730
  46. package/2p-theory.js.map +1 -1
  47. package/2p-unify.js +364 -365
  48. package/2p-unify.js.map +1 -1
  49. package/2p-utils.js +548 -510
  50. package/2p-utils.js.map +1 -1
  51. package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
  52. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
  53. package/clikt-clikt-js-ir.js +2078 -2260
  54. package/clikt-clikt-js-ir.js.map +1 -1
  55. package/kotlin-kotlin-stdlib-js-ir.js +2566 -2676
  56. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  57. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
  58. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
  59. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
  60. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  61. package/kt-math.js +3666 -3302
  62. package/kt-math.js.map +1 -1
  63. package/package.json +56 -2
  64. package/2p-full.d.ts +0 -270
@@ -1,23 +1,56 @@
1
- (function (_, kotlin_it_unibo_tuprolog_solve, kotlin_kotlin, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils) {
1
+ (function (root, factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './2p-unify.js', './kotlin-kotlin-stdlib-js-ir.js', './2p-solve.js', './2p-theory.js', './2p-utils.js', './2p-core.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./2p-unify.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./2p-solve.js'), require('./2p-theory.js'), require('./2p-utils.js'), require('./2p-core.js'));
6
+ else {
7
+ if (typeof this['2p-unify'] === 'undefined') {
8
+ throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-solve-classic'.");
9
+ }
10
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
11
+ throw new Error("Error loading module '2p-solve-classic'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '2p-solve-classic'.");
12
+ }
13
+ if (typeof this['2p-solve'] === 'undefined') {
14
+ throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to '2p-solve-classic'.");
15
+ }
16
+ if (typeof this['2p-theory'] === 'undefined') {
17
+ throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to '2p-solve-classic'.");
18
+ }
19
+ if (typeof this['2p-utils'] === 'undefined') {
20
+ throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-utils' was not found. Please, check whether '2p-utils' is loaded prior to '2p-solve-classic'.");
21
+ }
22
+ if (typeof this['2p-core'] === 'undefined') {
23
+ throw new Error("Error loading module '2p-solve-classic'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-solve-classic'.");
24
+ }
25
+ root['2p-solve-classic'] = factory(typeof this['2p-solve-classic'] === 'undefined' ? {} : this['2p-solve-classic'], this['2p-unify'], this['kotlin-kotlin-stdlib-js-ir'], this['2p-solve'], this['2p-theory'], this['2p-utils'], this['2p-core']);
26
+ }
27
+ }(this, function (_, kotlin_it_unibo_tuprolog_unify, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_core) {
2
28
  'use strict';
3
29
  //region block: imports
4
30
  var imul = Math.imul;
5
- var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m1;
6
- var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
7
- var Unit_getInstance = kotlin_kotlin.$_$.r2;
8
- var toString = kotlin_kotlin.$_$.n7;
9
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
10
- var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.x2;
11
- var THROW_CCE = kotlin_kotlin.$_$.sb;
12
- var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.bc;
13
- var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_theory.$_$.b;
14
- var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_theory.$_$.a;
31
+ var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
32
+ var VOID = kotlin_kotlin.$_$.gc;
33
+ var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_solve.$_$.d2;
34
+ var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.y1;
35
+ var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_theory.$_$.b;
36
+ var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_theory.$_$.a;
37
+ var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
38
+ var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
39
+ var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_solve.$_$.k1;
40
+ var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_solve.$_$.m1;
41
+ var Unit_getInstance = kotlin_kotlin.$_$.v1;
42
+ var toString = kotlin_kotlin.$_$.x6;
43
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t;
44
+ var AbstractSolver = kotlin_it_unibo_tuprolog_solve.$_$.v2;
45
+ var protoOf = kotlin_kotlin.$_$.s6;
46
+ var THROW_CCE = kotlin_kotlin.$_$.tb;
47
+ var throwUninitializedPropertyAccessException = kotlin_kotlin.$_$.cc;
15
48
  var getAllOperators = kotlin_it_unibo_tuprolog_solve.$_$.t5;
16
49
  var toOperatorSet = kotlin_it_unibo_tuprolog_solve.$_$.v5;
17
- var Long = kotlin_kotlin.$_$.mb;
50
+ var Long = kotlin_kotlin.$_$.nb;
18
51
  var currentTimeInstant = kotlin_it_unibo_tuprolog_solve.$_$.r5;
19
- var asSequence = kotlin_kotlin.$_$.i8;
20
- var copy$default = kotlin_it_unibo_tuprolog_solve.$_$.u;
52
+ var asSequence = kotlin_kotlin.$_$.t7;
53
+ var copy = kotlin_it_unibo_tuprolog_solve.$_$.u;
21
54
  var solveWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.b5;
22
55
  var solve = kotlin_it_unibo_tuprolog_solve.$_$.c5;
23
56
  var solveListWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.w4;
@@ -26,58 +59,54 @@
26
59
  var solveOnceWithTimeout = kotlin_it_unibo_tuprolog_solve.$_$.y4;
27
60
  var solveOnce = kotlin_it_unibo_tuprolog_solve.$_$.a5;
28
61
  var solveOnceWithOptions = kotlin_it_unibo_tuprolog_solve.$_$.z4;
29
- var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.g4;
30
- var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.h4;
31
- var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.f4;
32
- var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.i4;
33
- var classMeta = kotlin_kotlin.$_$.m6;
34
- var setMetadataFor = kotlin_kotlin.$_$.j7;
35
- var ensureNotNull = kotlin_kotlin.$_$.vb;
36
- var hashCode = kotlin_kotlin.$_$.t6;
37
- var equals = kotlin_kotlin.$_$.o6;
38
- var CoroutineImpl = kotlin_kotlin.$_$.c6;
39
- var SequenceScope = kotlin_kotlin.$_$.e8;
40
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b6;
41
- var sequence = kotlin_kotlin.$_$.j9;
42
- var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_unify.$_$.a;
43
- var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_solve.$_$.f2;
44
- var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_solve.$_$.a2;
45
- var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_solve.$_$.p1;
46
- var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_core.$_$.e1;
47
- var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.g1;
48
- var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_utils.$_$.c;
49
- var Companion_getInstance_10 = kotlin_kotlin.$_$.q2;
50
- var emptySet = kotlin_kotlin.$_$.u3;
51
- var asSequence_0 = kotlin_kotlin.$_$.g3;
52
- var emptySequence = kotlin_kotlin.$_$.n8;
53
- var plus = kotlin_kotlin.$_$.g9;
54
- var flatMap = kotlin_kotlin.$_$.u8;
55
- var distinct = kotlin_kotlin.$_$.l8;
62
+ var get_standardInput = kotlin_it_unibo_tuprolog_solve.$_$.f4;
63
+ var get_standardOutput = kotlin_it_unibo_tuprolog_solve.$_$.g4;
64
+ var get_standardError = kotlin_it_unibo_tuprolog_solve.$_$.e4;
65
+ var get_warnings = kotlin_it_unibo_tuprolog_solve.$_$.h4;
66
+ var classMeta = kotlin_kotlin.$_$.t5;
67
+ var setMetadataFor = kotlin_kotlin.$_$.t6;
68
+ var ensureNotNull = kotlin_kotlin.$_$.wb;
69
+ var hashCode = kotlin_kotlin.$_$.b6;
70
+ var equals = kotlin_kotlin.$_$.w5;
71
+ var CoroutineImpl = kotlin_kotlin.$_$.j5;
72
+ var SequenceScope = kotlin_kotlin.$_$.p7;
73
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i5;
74
+ var sequence = kotlin_kotlin.$_$.v8;
75
+ var asSequence_0 = kotlin_kotlin.$_$.k2;
76
+ var emptySequence = kotlin_kotlin.$_$.y7;
77
+ var plus = kotlin_kotlin.$_$.s8;
78
+ var flatMap = kotlin_kotlin.$_$.f8;
79
+ var distinct = kotlin_kotlin.$_$.w7;
56
80
  var cached = kotlin_it_unibo_tuprolog_utils.$_$.r;
57
- var Companion_getInstance_11 = kotlin_it_unibo_tuprolog_core.$_$.d1;
58
- var filter = kotlin_kotlin.$_$.r8;
59
- var map = kotlin_kotlin.$_$.c9;
60
- var toList = kotlin_kotlin.$_$.p9;
61
- var lazy = kotlin_kotlin.$_$.xb;
62
- var contains = kotlin_kotlin.$_$.j8;
63
- var createSolver$default = kotlin_it_unibo_tuprolog_solve.$_$.s;
64
- var createMutableSolver$default = kotlin_it_unibo_tuprolog_solve.$_$.r;
65
- var update$default = kotlin_it_unibo_tuprolog_solve.$_$.t;
66
- var apply = kotlin_it_unibo_tuprolog_solve.$_$.d4;
67
- var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.c4;
68
- var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.e4;
69
- var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.a4;
70
- var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.b4;
71
- var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.z3;
72
- var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.j4;
73
- var KProperty1 = kotlin_kotlin.$_$.d8;
74
- var getPropertyCallableRef = kotlin_kotlin.$_$.r6;
75
- var Companion_getInstance_12 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
76
- var Companion_getInstance_13 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
77
- var solverOf$default = kotlin_it_unibo_tuprolog_solve.$_$.z;
78
- var solverOf$default_0 = kotlin_it_unibo_tuprolog_solve.$_$.y;
79
- var mutableSolverOf$default = kotlin_it_unibo_tuprolog_solve.$_$.v;
80
- var mutableSolverOf$default_0 = kotlin_it_unibo_tuprolog_solve.$_$.w;
81
+ var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.d1;
82
+ var filter = kotlin_kotlin.$_$.c8;
83
+ var map = kotlin_kotlin.$_$.o8;
84
+ var toList = kotlin_kotlin.$_$.b9;
85
+ var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
86
+ var Companion_getInstance_10 = kotlin_it_unibo_tuprolog_core.$_$.e1;
87
+ var Companion_getInstance_11 = kotlin_it_unibo_tuprolog_core.$_$.g1;
88
+ var Companion_getInstance_12 = kotlin_it_unibo_tuprolog_utils.$_$.c;
89
+ var Companion_getInstance_13 = kotlin_kotlin.$_$.u1;
90
+ var emptySet = kotlin_kotlin.$_$.y2;
91
+ var lazy = kotlin_kotlin.$_$.yb;
92
+ var contains = kotlin_kotlin.$_$.u7;
93
+ var createSolver = kotlin_it_unibo_tuprolog_solve.$_$.s;
94
+ var createMutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.r;
95
+ var update = kotlin_it_unibo_tuprolog_solve.$_$.t;
96
+ var apply = kotlin_it_unibo_tuprolog_solve.$_$.c4;
97
+ var applyIterable = kotlin_it_unibo_tuprolog_solve.$_$.b4;
98
+ var applySequence = kotlin_it_unibo_tuprolog_solve.$_$.d4;
99
+ var get_endTime = kotlin_it_unibo_tuprolog_solve.$_$.z3;
100
+ var get_remainingTime = kotlin_it_unibo_tuprolog_solve.$_$.a4;
101
+ var get_elapsedTime = kotlin_it_unibo_tuprolog_solve.$_$.y3;
102
+ var ExecutionContext = kotlin_it_unibo_tuprolog_solve.$_$.i4;
103
+ var KProperty1 = kotlin_kotlin.$_$.o7;
104
+ var getPropertyCallableRef = kotlin_kotlin.$_$.z5;
105
+ var objectCreate = kotlin_kotlin.$_$.q6;
106
+ var rawSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.z;
107
+ var solverOf = kotlin_it_unibo_tuprolog_solve.$_$.y;
108
+ var mutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.v;
109
+ var rawMutableSolverOf = kotlin_it_unibo_tuprolog_solve.$_$.w;
81
110
  var newBuilder = kotlin_it_unibo_tuprolog_solve.$_$.n5;
82
111
  var get_defaultRuntime = kotlin_it_unibo_tuprolog_solve.$_$.i5;
83
112
  var get_defaultUnificator = kotlin_it_unibo_tuprolog_solve.$_$.k5;
@@ -89,91 +118,92 @@
89
118
  var get_defaultErrorChannel = kotlin_it_unibo_tuprolog_solve.$_$.e5;
90
119
  var get_defaultWarningsChannel = kotlin_it_unibo_tuprolog_solve.$_$.l5;
91
120
  var solverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.o5;
92
- var solverWithDefaultBuiltins$default = kotlin_it_unibo_tuprolog_solve.$_$.a1;
121
+ var solverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.a1;
93
122
  var mutableSolverWithDefaultBuiltins = kotlin_it_unibo_tuprolog_solve.$_$.m5;
94
- var mutableSolverWithDefaultBuiltins$default = kotlin_it_unibo_tuprolog_solve.$_$.x;
123
+ var mutableSolverWithDefaultBuiltinsAnd = kotlin_it_unibo_tuprolog_solve.$_$.x;
95
124
  var SolverFactory = kotlin_it_unibo_tuprolog_solve.$_$.p5;
96
- var objectMeta = kotlin_kotlin.$_$.i7;
97
- var listOf = kotlin_kotlin.$_$.h4;
125
+ var objectMeta = kotlin_kotlin.$_$.r6;
126
+ var defineProp = kotlin_kotlin.$_$.v5;
127
+ var listOf = kotlin_kotlin.$_$.o3;
98
128
  var getAllOperators_0 = kotlin_it_unibo_tuprolog_solve.$_$.u5;
99
- var to = kotlin_kotlin.$_$.ec;
100
- var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.n4;
101
- var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.o4;
102
- var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.p4;
103
- var loadDynamicClauses = kotlin_it_unibo_tuprolog_solve.$_$.m4;
104
- var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.k4;
105
- var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.l4;
106
- var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.q4;
107
- var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.v1;
108
- var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.d1;
109
- var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.w1;
110
- var interfaceMeta = kotlin_kotlin.$_$.u6;
129
+ var to = kotlin_kotlin.$_$.fc;
130
+ var loadStaticClauses = kotlin_it_unibo_tuprolog_solve.$_$.m4;
131
+ var loadStaticClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.n4;
132
+ var loadStaticClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.o4;
133
+ var loadDynamicClauses = kotlin_it_unibo_tuprolog_solve.$_$.l4;
134
+ var loadDynamicClausesIterable = kotlin_it_unibo_tuprolog_solve.$_$.j4;
135
+ var loadDynamicClausesSequence = kotlin_it_unibo_tuprolog_solve.$_$.k4;
136
+ var MutableSolver = kotlin_it_unibo_tuprolog_solve.$_$.p4;
137
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.z;
138
+ var TimeOutException_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.e1;
139
+ var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.a1;
140
+ var interfaceMeta = kotlin_kotlin.$_$.c6;
111
141
  var getKClass = kotlin_kotlin.$_$.c;
112
- var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.o1;
113
- var Companion_getInstance_14 = kotlin_it_unibo_tuprolog_solve.$_$.m2;
114
- var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.s2;
115
- var Companion_getInstance_15 = kotlin_it_unibo_tuprolog_solve.$_$.x1;
142
+ var ClassCastException_init_$Create$ = kotlin_kotlin.$_$.r;
143
+ var Companion_getInstance_14 = kotlin_it_unibo_tuprolog_solve.$_$.k2;
144
+ var MessageError = kotlin_it_unibo_tuprolog_solve.$_$.q2;
145
+ var Companion_getInstance_15 = kotlin_it_unibo_tuprolog_solve.$_$.v1;
116
146
  var plus_0 = kotlin_it_unibo_tuprolog_utils.$_$.h1;
117
- var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.u2;
118
- var toSet = kotlin_kotlin.$_$.r9;
119
- var plus_1 = kotlin_kotlin.$_$.y4;
120
- var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c2;
121
- var drop = kotlin_kotlin.$_$.m8;
122
- var first = kotlin_kotlin.$_$.t8;
147
+ var LogicError = kotlin_it_unibo_tuprolog_solve.$_$.s2;
148
+ var toSet = kotlin_kotlin.$_$.d9;
149
+ var plus_1 = kotlin_kotlin.$_$.f4;
150
+ var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a2;
151
+ var drop = kotlin_kotlin.$_$.x7;
152
+ var first = kotlin_kotlin.$_$.e8;
123
153
  var Unifier = kotlin_it_unibo_tuprolog_core.$_$.a2;
124
- var isInterface = kotlin_kotlin.$_$.y6;
125
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
126
- var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.v2;
127
- var Companion_getInstance_16 = kotlin_it_unibo_tuprolog_solve.$_$.y1;
154
+ var isInterface = kotlin_kotlin.$_$.g6;
155
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w;
156
+ var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.t2;
157
+ var Companion_getInstance_16 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
128
158
  var extractSignature = kotlin_it_unibo_tuprolog_solve.$_$.s5;
129
- var Signature_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.h1;
159
+ var Signature = kotlin_it_unibo_tuprolog_solve.$_$.q4;
130
160
  var Expected_CALLABLE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k;
131
161
  var cursor = kotlin_it_unibo_tuprolog_utils.$_$.t;
132
- var Companion_getInstance_17 = kotlin_it_unibo_tuprolog_solve.$_$.t1;
162
+ var Companion_getInstance_17 = kotlin_it_unibo_tuprolog_solve.$_$.r1;
133
163
  var prepareForExecutionWithUnifier = kotlin_it_unibo_tuprolog_core.$_$.d3;
134
- var setOf = kotlin_kotlin.$_$.e5;
135
- var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d2;
136
- var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.i1;
137
- var Companion_getInstance_18 = kotlin_it_unibo_tuprolog_solve.$_$.s1;
138
- var contains_0 = kotlin_kotlin.$_$.k3;
139
- var firstOrNull = kotlin_kotlin.$_$.s8;
140
- var any = kotlin_kotlin.$_$.g8;
141
- var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b2;
164
+ var setOf = kotlin_kotlin.$_$.l4;
165
+ var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b2;
166
+ var MissingPredicate_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.c1;
167
+ var Companion_getInstance_18 = kotlin_it_unibo_tuprolog_solve.$_$.q1;
168
+ var contains_0 = kotlin_kotlin.$_$.o2;
169
+ var firstOrNull = kotlin_kotlin.$_$.d8;
170
+ var any = kotlin_kotlin.$_$.r7;
171
+ var LastCallOptimization_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.z1;
142
172
  var buffered = kotlin_it_unibo_tuprolog_utils.$_$.q;
143
- var sequenceOf = kotlin_kotlin.$_$.i9;
144
- var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.y3;
145
- var Request_init_$Create$ = kotlin_it_unibo_tuprolog_solve.$_$.f1;
146
- var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.z2;
147
- var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l2;
148
- var listOf_0 = kotlin_kotlin.$_$.i4;
149
- var containsSignature = kotlin_it_unibo_tuprolog_solve.$_$.b3;
150
- var containsOperator = kotlin_it_unibo_tuprolog_solve.$_$.a3;
151
- var hasPrimitive = kotlin_it_unibo_tuprolog_solve.$_$.d3;
152
- var hasFunction = kotlin_it_unibo_tuprolog_solve.$_$.c3;
153
- var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.f3;
154
- var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.e3;
173
+ var sequenceOf = kotlin_kotlin.$_$.u8;
174
+ var MagicCut = kotlin_it_unibo_tuprolog_solve.$_$.x3;
175
+ var Request = kotlin_it_unibo_tuprolog_solve.$_$.m3;
176
+ var ExtensionLibrary = kotlin_it_unibo_tuprolog_solve.$_$.x2;
177
+ var CommonBuiltins_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j2;
178
+ var listOf_0 = kotlin_kotlin.$_$.p3;
179
+ var containsSignature = kotlin_it_unibo_tuprolog_solve.$_$.z2;
180
+ var containsOperator = kotlin_it_unibo_tuprolog_solve.$_$.y2;
181
+ var hasPrimitive = kotlin_it_unibo_tuprolog_solve.$_$.b3;
182
+ var hasFunction = kotlin_it_unibo_tuprolog_solve.$_$.a3;
183
+ var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.d3;
184
+ var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.c3;
155
185
  var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
156
- var Companion_getInstance_19 = kotlin_it_unibo_tuprolog_solve.$_$.u1;
157
- var Companion_getInstance_20 = kotlin_it_unibo_tuprolog_solve.$_$.z1;
158
- var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.w3;
159
- var Companion_getInstance_21 = kotlin_it_unibo_tuprolog_solve.$_$.g2;
160
- var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.x3;
186
+ var Companion_getInstance_19 = kotlin_it_unibo_tuprolog_solve.$_$.s1;
187
+ var Companion_getInstance_20 = kotlin_it_unibo_tuprolog_solve.$_$.x1;
188
+ var UnaryPredicate = kotlin_it_unibo_tuprolog_solve.$_$.v3;
189
+ var Companion_getInstance_21 = kotlin_it_unibo_tuprolog_solve.$_$.e2;
190
+ var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.w3;
161
191
  var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.g1;
162
- var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i2;
163
- var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h2;
192
+ var EnsureExecutable_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g2;
193
+ var MagicCut_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f2;
164
194
  //endregion
165
195
  //region block: pre-declaration
166
- setMetadataFor(AbstractClassicSolver, 'AbstractClassicSolver', classMeta, AbstractSolver, undefined, undefined, undefined, []);
167
- setMetadataFor(ChoicePointContext, 'ChoicePointContext', classMeta, undefined, undefined, undefined, undefined, []);
168
- setMetadataFor(Primitives, 'Primitives', classMeta, ChoicePointContext, undefined, undefined, undefined, []);
169
- setMetadataFor(Rules, 'Rules', classMeta, ChoicePointContext, undefined, undefined, undefined, []);
170
- setMetadataFor(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn, 'ChoicePointContext$<get-pathToRoot>$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
171
- setMetadataFor(ClassicExecutionContext$pathToRoot$slambda, 'ClassicExecutionContext$pathToRoot$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
172
- setMetadataFor(ClassicExecutionContext, 'ClassicExecutionContext', classMeta, undefined, [ExecutionContext], undefined, undefined, []);
173
- setMetadataFor(ClassicSolver, 'ClassicSolver', classMeta, AbstractClassicSolver, undefined, undefined, undefined, []);
174
- setMetadataFor(ClassicSolverFactory, 'ClassicSolverFactory', objectMeta, undefined, [SolverFactory], undefined, undefined, []);
175
- setMetadataFor(MutableClassicSolver, 'MutableClassicSolver', classMeta, ClassicSolver, [ClassicSolver, MutableSolver], undefined, undefined, []);
176
- setMetadataFor(Companion, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
196
+ setMetadataFor(AbstractClassicSolver, 'AbstractClassicSolver', classMeta, AbstractSolver);
197
+ setMetadataFor(ChoicePointContext, 'ChoicePointContext', classMeta);
198
+ setMetadataFor(Primitives, 'Primitives', classMeta, ChoicePointContext);
199
+ setMetadataFor(Rules, 'Rules', classMeta, ChoicePointContext);
200
+ setMetadataFor(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn, 'ChoicePointContext$<get-pathToRoot>$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
201
+ setMetadataFor(ClassicExecutionContext$pathToRoot$slambda, 'ClassicExecutionContext$pathToRoot$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
202
+ setMetadataFor(ClassicExecutionContext, 'ClassicExecutionContext', classMeta, VOID, [ExecutionContext]);
203
+ setMetadataFor(ClassicSolver, 'ClassicSolver', classMeta, AbstractClassicSolver);
204
+ setMetadataFor(ClassicSolverFactory, 'ClassicSolverFactory', objectMeta, VOID, [SolverFactory]);
205
+ setMetadataFor(MutableClassicSolver, 'MutableClassicSolver', classMeta, ClassicSolver, [ClassicSolver, MutableSolver]);
206
+ setMetadataFor(Companion, 'Companion', objectMeta);
177
207
  function get_isEndState() {
178
208
  return false;
179
209
  }
@@ -184,15 +214,19 @@
184
214
  var tmp0_elvis_lhs = this.asEndState();
185
215
  var tmp;
186
216
  if (tmp0_elvis_lhs == null) {
187
- throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).kd());
217
+ throw ClassCastException_init_$Create$('Cannot cast ' + this + ' to ' + getKClass(EndState).md());
188
218
  } else {
189
219
  tmp = tmp0_elvis_lhs;
190
220
  }
191
221
  return tmp;
192
222
  }
193
- setMetadataFor(State, 'State', interfaceMeta, undefined, undefined, undefined, undefined, []);
223
+ function clone(context, $super) {
224
+ context = context === VOID ? this.n5() : context;
225
+ return $super === VOID ? this.d36(context) : $super.d36.call(this, context);
226
+ }
227
+ setMetadataFor(State, 'State', interfaceMeta);
194
228
  function get_hasOpenAlternatives() {
195
- return this.h2j().a1w() ? this.j5().g35() : false;
229
+ return this.e2h().c1v() ? this.n5().c33() : false;
196
230
  }
197
231
  function get_isEndState_0() {
198
232
  return true;
@@ -200,46 +234,53 @@
200
234
  function asEndState_0() {
201
235
  return this;
202
236
  }
203
- function asEndState_1() {
204
- return this.e38();
205
- }
206
- setMetadataFor(EndState, 'EndState', interfaceMeta, undefined, [State], undefined, undefined, []);
207
- setMetadataFor(AbstractState, 'AbstractState', classMeta, undefined, [State], undefined, undefined, []);
208
- setMetadataFor(AbstractEndState, 'AbstractEndState', classMeta, AbstractState, [EndState, AbstractState], undefined, undefined, []);
209
- setMetadataFor(StateBacktracking, 'StateBacktracking', classMeta, AbstractState, undefined, undefined, undefined, []);
210
- setMetadataFor(StateEnd, 'StateEnd', classMeta, AbstractEndState, undefined, undefined, undefined, []);
211
- setMetadataFor(StateException, 'StateException', classMeta, AbstractState, [State, AbstractState], undefined, undefined, []);
212
- setMetadataFor(StateGoalSelection, 'StateGoalSelection', classMeta, AbstractState, undefined, undefined, undefined, []);
213
- setMetadataFor(StateHalt, 'StateHalt', classMeta, AbstractEndState, [State, AbstractEndState], undefined, undefined, []);
214
- setMetadataFor(StateInit, 'StateInit', classMeta, AbstractState, undefined, undefined, undefined, []);
215
- setMetadataFor(StatePrimitiveExecution, 'StatePrimitiveExecution', classMeta, AbstractState, undefined, undefined, undefined, []);
216
- setMetadataFor(StatePrimitiveSelection, 'StatePrimitiveSelection', classMeta, AbstractState, undefined, undefined, undefined, []);
217
- setMetadataFor(StateRuleExecution, 'StateRuleExecution', classMeta, AbstractState, undefined, undefined, undefined, []);
218
- setMetadataFor(CutLimit, 'CutLimit', classMeta, undefined, undefined, undefined, undefined, []);
219
- setMetadataFor(None, 'None', objectMeta, CutLimit, undefined, undefined, undefined, []);
220
- setMetadataFor(Actual, 'Actual', classMeta, CutLimit, undefined, undefined, undefined, []);
221
- setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
222
- setMetadataFor(StateRuleSelection, 'StateRuleSelection', classMeta, AbstractState, undefined, undefined, undefined, []);
223
- setMetadataFor(AbstractSolutionIterator, 'AbstractSolutionIterator', classMeta, undefined, undefined, undefined, undefined, []);
224
- setMetadataFor(SimpleSolutionIterator, 'SimpleSolutionIterator', classMeta, AbstractSolutionIterator, undefined, undefined, undefined, []);
225
- setMetadataFor(DefaultBuiltins, 'DefaultBuiltins', objectMeta, ExtensionLibrary, undefined, undefined, undefined, []);
226
- setMetadataFor(Throw, 'Throw', objectMeta, UnaryPredicate, undefined, undefined, undefined, []);
227
- setMetadataFor(Call, 'Call', objectMeta, RuleWrapper, undefined, undefined, undefined, []);
228
- setMetadataFor(Catch, 'Catch', objectMeta, RuleWrapper, undefined, undefined, undefined, []);
229
- setMetadataFor(Comma, 'Comma', objectMeta, RuleWrapper, undefined, undefined, undefined, []);
230
- setMetadataFor(Cut, 'Cut', objectMeta, RuleWrapper, undefined, undefined, undefined, []);
231
- setMetadataFor(NegationAsFailure, 'NegationAsFailure', classMeta, RuleWrapper, undefined, undefined, undefined, []);
232
- setMetadataFor(Fail, 'Fail', objectMeta, NegationAsFailure, undefined, undefined, undefined, []);
233
- setMetadataFor(Success, 'Success', objectMeta, NegationAsFailure, undefined, undefined, undefined, []);
234
- setMetadataFor(Companion_1, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
237
+ setMetadataFor(EndState, 'EndState', interfaceMeta, VOID, [State]);
238
+ setMetadataFor(AbstractState, 'AbstractState', classMeta, VOID, [State]);
239
+ setMetadataFor(AbstractEndState, 'AbstractEndState', classMeta, AbstractState, [EndState, AbstractState]);
240
+ setMetadataFor(StateBacktracking, 'StateBacktracking', classMeta, AbstractState);
241
+ setMetadataFor(StateEnd, 'StateEnd', classMeta, AbstractEndState);
242
+ setMetadataFor(StateException, 'StateException', classMeta, AbstractState, [State, AbstractState]);
243
+ setMetadataFor(StateGoalSelection, 'StateGoalSelection', classMeta, AbstractState);
244
+ setMetadataFor(StateHalt, 'StateHalt', classMeta, AbstractEndState, [State, AbstractEndState]);
245
+ setMetadataFor(StateInit, 'StateInit', classMeta, AbstractState);
246
+ setMetadataFor(StatePrimitiveExecution, 'StatePrimitiveExecution', classMeta, AbstractState);
247
+ setMetadataFor(StatePrimitiveSelection, 'StatePrimitiveSelection', classMeta, AbstractState);
248
+ setMetadataFor(StateRuleExecution, 'StateRuleExecution', classMeta, AbstractState);
249
+ setMetadataFor(CutLimit, 'CutLimit', classMeta);
250
+ setMetadataFor(None, 'None', objectMeta, CutLimit);
251
+ setMetadataFor(Actual, 'Actual', classMeta, CutLimit);
252
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
253
+ setMetadataFor(StateRuleSelection, 'StateRuleSelection', classMeta, AbstractState);
254
+ setMetadataFor(AbstractSolutionIterator, 'AbstractSolutionIterator', classMeta);
255
+ setMetadataFor(SimpleSolutionIterator, 'SimpleSolutionIterator', classMeta, AbstractSolutionIterator);
256
+ setMetadataFor(DefaultBuiltins, 'DefaultBuiltins', objectMeta, ExtensionLibrary);
257
+ setMetadataFor(Throw, 'Throw', objectMeta, UnaryPredicate);
258
+ setMetadataFor(Call, 'Call', objectMeta, RuleWrapper);
259
+ setMetadataFor(Catch, 'Catch', objectMeta, RuleWrapper);
260
+ setMetadataFor(Comma, 'Comma', objectMeta, RuleWrapper);
261
+ setMetadataFor(Cut, 'Cut', objectMeta, RuleWrapper);
262
+ setMetadataFor(NegationAsFailure, 'NegationAsFailure', classMeta, RuleWrapper);
263
+ setMetadataFor(Fail, 'Fail', objectMeta, NegationAsFailure);
264
+ setMetadataFor(Success, 'Success', objectMeta, NegationAsFailure);
265
+ setMetadataFor(Companion_1, 'Companion', objectMeta);
235
266
  //endregion
236
267
  function AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
237
- AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance().m1y(stdIn), Companion_getInstance_0().p1y(stdOut, stdErr, warnings), trustKb);
268
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
269
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
270
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
271
+ staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
272
+ dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
273
+ stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
274
+ stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
275
+ stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
276
+ warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
277
+ trustKb = trustKb === VOID ? false : trustKb;
278
+ AbstractClassicSolver.call($this, unificator, libraries, flags, staticKb, dynamicKb, Companion_getInstance_6().h1x(stdIn), Companion_getInstance_7().k1x(stdOut, stdErr, warnings), trustKb);
238
279
  return $this;
239
280
  }
240
281
  function updateCurrentContextAfterStateTransition($this, source, destination, index) {
241
282
  // Inline function 'kotlin.require' call
242
- var tmp0_require = destination.j5().c34_1.equals(index);
283
+ var tmp0_require = destination.n5().y31_1.equals(index);
243
284
  // Inline function 'kotlin.contracts.contract' call
244
285
  // Inline function 'kotlin.require' call
245
286
  // Inline function 'kotlin.contracts.contract' call
@@ -250,7 +291,7 @@
250
291
  var message = tmp$ret$0;
251
292
  throw IllegalArgumentException_init_$Create$(toString(message));
252
293
  }
253
- $this.j34(destination.j5());
294
+ $this.f32(destination.n5());
254
295
  }
255
296
  function AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref($boundThis) {
256
297
  var l = function (p0, p1, p2) {
@@ -261,322 +302,307 @@
261
302
  return l;
262
303
  }
263
304
  function AbstractClassicSolver(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
305
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
306
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
307
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
308
+ initialStaticKb = initialStaticKb === VOID ? Companion_getInstance_2().empty(unificator) : initialStaticKb;
309
+ initialDynamicKb = initialDynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : initialDynamicKb;
310
+ inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
311
+ outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
312
+ trustKb = trustKb === VOID ? false : trustKb;
264
313
  AbstractSolver.call(this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
265
314
  }
266
- AbstractClassicSolver.prototype.j34 = function (_set____db54di) {
267
- this.i34_1 = _set____db54di;
315
+ protoOf(AbstractClassicSolver).f32 = function (_set____db54di) {
316
+ this.e32_1 = _set____db54di;
268
317
  };
269
- AbstractClassicSolver.prototype.u2b = function (_set____db54di) {
270
- return this.j34(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
318
+ protoOf(AbstractClassicSolver).a2a = function (_set____db54di) {
319
+ return this.f32(_set____db54di instanceof ClassicExecutionContext ? _set____db54di : THROW_CCE());
271
320
  };
272
- AbstractClassicSolver.prototype.s2b = function () {
273
- var tmp = this.i34_1;
321
+ protoOf(AbstractClassicSolver).y29 = function () {
322
+ var tmp = this.e32_1;
274
323
  if (!(tmp == null))
275
324
  return tmp;
276
325
  else {
277
326
  throwUninitializedPropertyAccessException('currentContext');
278
327
  }
279
328
  };
280
- AbstractClassicSolver.prototype.t2b = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
281
- var tmp = trustKb ? staticKb.toImmutableTheory() : Companion_getInstance_1().empty(unificator);
282
- var tmp_0 = trustKb ? dynamicKb.toMutableTheory() : Companion_getInstance_2().empty(unificator);
283
- var tmp_1 = toOperatorSet(getAllOperators(libraries, []));
284
- var tmp_2 = new Long(0, 0);
285
- var tmp_3 = new Long(0, 0);
286
- var tmp_4 = new Long(0, 0);
287
- return ClassicExecutionContext_init_$Create$(null, unificator, libraries, flags, tmp, tmp_0, tmp_1, inputChannels, outputChannels, null, null, null, null, null, null, tmp_2, tmp_3, null, null, 0, tmp_4, null, 4161025, null);
288
- };
289
- AbstractClassicSolver.prototype.a2c = function (goal, options) {
290
- var tmp0_unificator = this.h1l();
291
- var tmp1_libraries = this.t1u();
292
- var tmp2_flags = this.u1u();
293
- var tmp3_staticKb = this.v1u().toImmutableTheory();
294
- var tmp4_dynamicKb = this.w1u().toMutableTheory();
295
- var tmp5_operators = this.e1v();
296
- var tmp6_inputChannels = this.x1u();
297
- var tmp7_outputChannels = this.y1u();
298
- var tmp8_customData = this.s2b().r33_1;
329
+ protoOf(AbstractClassicSolver).z29 = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, trustKb) {
330
+ return new ClassicExecutionContext(VOID, unificator, libraries, flags, trustKb ? staticKb.toImmutableTheory() : Companion_getInstance_2().empty(unificator), trustKb ? dynamicKb.toMutableTheory() : Companion_getInstance_3().empty(unificator), toOperatorSet(getAllOperators(libraries, [])), inputChannels, outputChannels, VOID, VOID, VOID, VOID, VOID, VOID, new Long(0, 0));
331
+ };
332
+ protoOf(AbstractClassicSolver).g2a = function (goal, options) {
333
+ var tmp0_unificator = this.k1k();
334
+ var tmp1_libraries = this.v1t();
335
+ var tmp2_flags = this.w1t();
336
+ var tmp3_staticKb = this.x1t().toImmutableTheory();
337
+ var tmp4_dynamicKb = this.y1t().toMutableTheory();
338
+ var tmp5_operators = this.e1u();
339
+ var tmp6_inputChannels = this.z1t();
340
+ var tmp7_outputChannels = this.a1u();
341
+ var tmp8_customData = this.y29().n31_1;
299
342
  var tmp9_startTime = currentTimeInstant();
300
- var tmp10_maxDuration = options.g1x();
301
- var tmp = new Long(0, 0);
302
- this.j34(ClassicExecutionContext_init_$Create$(null, tmp0_unificator, tmp1_libraries, tmp2_flags, tmp3_staticKb, tmp4_dynamicKb, tmp5_operators, tmp6_inputChannels, tmp7_outputChannels, tmp8_customData, null, goal, null, null, null, tmp9_startTime, tmp10_maxDuration, null, null, 0, tmp, null, 4092929, null));
303
- var tmp_0 = new StateInit(this.s2b());
304
- return asSequence(this.k34(tmp_0, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
343
+ var tmp10_maxDuration = options.b1w();
344
+ this.f32(new ClassicExecutionContext(VOID, tmp0_unificator, tmp1_libraries, tmp2_flags, tmp3_staticKb, tmp4_dynamicKb, tmp5_operators, tmp6_inputChannels, tmp7_outputChannels, tmp8_customData, VOID, goal, VOID, VOID, VOID, tmp9_startTime, tmp10_maxDuration));
345
+ var tmp = new StateInit(this.y29());
346
+ return asSequence(this.g32(tmp, AbstractClassicSolver$updateCurrentContextAfterStateTransition$ref(this)));
305
347
  };
306
348
  function Primitives(alternatives, executionContext, parent, depth) {
307
349
  ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
308
- this.p34_1 = alternatives;
309
- this.q34_1 = executionContext;
310
- this.r34_1 = parent;
311
- this.s34_1 = depth;
350
+ this.l32_1 = alternatives;
351
+ this.m32_1 = executionContext;
352
+ this.n32_1 = parent;
353
+ this.o32_1 = depth;
312
354
  }
313
- Primitives.prototype.t34 = function () {
314
- return this.p34_1;
355
+ protoOf(Primitives).p32 = function () {
356
+ return this.l32_1;
315
357
  };
316
- Primitives.prototype.u34 = function () {
317
- return this.q34_1;
358
+ protoOf(Primitives).q32 = function () {
359
+ return this.m32_1;
318
360
  };
319
- Primitives.prototype.v34 = function () {
320
- return this.r34_1;
361
+ protoOf(Primitives).r32 = function () {
362
+ return this.n32_1;
321
363
  };
322
- Primitives.prototype.w34 = function () {
323
- return this.s34_1;
364
+ protoOf(Primitives).s32 = function () {
365
+ return this.o32_1;
324
366
  };
325
- Primitives.prototype.toString = function () {
326
- return ChoicePointContext.prototype.toString.call(this);
367
+ protoOf(Primitives).toString = function () {
368
+ return protoOf(ChoicePointContext).toString.call(this);
327
369
  };
328
- Primitives.prototype.x34 = function () {
370
+ protoOf(Primitives).t32 = function () {
329
371
  return 'Primitives';
330
372
  };
331
- Primitives.prototype.y34 = function (context) {
332
- var tmp0_$this = ensureNotNull(this.q34_1);
333
- var tmp1_primitives = this.p34_1;
373
+ protoOf(Primitives).u32 = function (context) {
374
+ var tmp0_$this = ensureNotNull(this.m32_1);
375
+ var tmp1_primitives = this.l32_1;
334
376
  var tmp$ret$0;
335
377
  // Inline function 'kotlin.Long.plus' call
336
- var tmp0_plus = context.c34_1;
337
- tmp$ret$0 = tmp0_plus.zg(new Long(1, 0));
378
+ var tmp0_plus = context.y31_1;
379
+ tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
338
380
  var tmp2_step = tmp$ret$0;
339
- var tmp3_startTime = context.x33_1;
340
- var tmp4_flags = context.l33_1;
341
- var tmp5_dynamicKb = context.n33_1;
342
- var tmp6_staticKb = context.m33_1;
343
- var tmp7_operators = context.o33_1;
344
- var tmp8_inputChannels = context.p33_1;
345
- var tmp9_outputChannels = context.q33_1;
346
- var tmp10_libraries = context.k33_1;
347
- var tmp11_customData = context.r33_1.discardEphemeral();
348
- var tmp = new Long(0, 0);
349
- var tempContext = tmp0_$this.z34(null, null, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, null, null, null, null, tmp1_primitives, tmp3_startTime, tmp, null, null, 0, tmp2_step, null, 3095555, null);
350
- var tmp_0 = this.p34_1.qq();
351
- var nextChoicePointContext = this.a35(tmp_0, tempContext, null, 0, 12, null);
352
- var tmp_1 = new Long(0, 0);
353
- var tmp_2 = new Long(0, 0);
354
- var tmp_3 = new Long(0, 0);
355
- return tempContext.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_1, tmp_2, nextChoicePointContext, null, 0, tmp_3, null, 4063231, null);
356
- };
357
- Primitives.prototype.b35 = function (alternatives, executionContext, parent, depth) {
381
+ var tmp3_startTime = context.t31_1;
382
+ var tmp4_flags = context.h31_1;
383
+ var tmp5_dynamicKb = context.j31_1;
384
+ var tmp6_staticKb = context.i31_1;
385
+ var tmp7_operators = context.k31_1;
386
+ var tmp8_inputChannels = context.l31_1;
387
+ var tmp9_outputChannels = context.m31_1;
388
+ var tmp10_libraries = context.g31_1;
389
+ var tmp11_customData = context.n31_1.discardEphemeral();
390
+ var tempContext = tmp0_$this.v32(VOID, VOID, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, VOID, VOID, VOID, VOID, tmp1_primitives, tmp3_startTime, VOID, VOID, VOID, VOID, tmp2_step);
391
+ var nextChoicePointContext = this.w32(this.l32_1.kq(), tempContext);
392
+ return tempContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
393
+ };
394
+ protoOf(Primitives).x32 = function (alternatives, executionContext, parent, depth) {
358
395
  return new Primitives(alternatives, executionContext, parent, depth);
359
396
  };
360
- Primitives.prototype.a35 = function (alternatives, executionContext, parent, depth, $mask0, $handler) {
361
- if (!(($mask0 & 1) === 0))
362
- alternatives = this.p34_1;
363
- if (!(($mask0 & 2) === 0))
364
- executionContext = this.q34_1;
365
- if (!(($mask0 & 4) === 0))
366
- parent = this.r34_1;
367
- if (!(($mask0 & 8) === 0))
368
- depth = this.s34_1;
369
- return this.b35(alternatives, executionContext, parent, depth);
370
- };
371
- Primitives.prototype.hashCode = function () {
372
- var result = hashCode(this.p34_1);
373
- result = imul(result, 31) + (this.q34_1 == null ? 0 : this.q34_1.hashCode()) | 0;
374
- result = imul(result, 31) + (this.r34_1 == null ? 0 : hashCode(this.r34_1)) | 0;
375
- result = imul(result, 31) + this.s34_1 | 0;
397
+ protoOf(Primitives).w32 = function (alternatives, executionContext, parent, depth, $super) {
398
+ alternatives = alternatives === VOID ? this.l32_1 : alternatives;
399
+ executionContext = executionContext === VOID ? this.m32_1 : executionContext;
400
+ parent = parent === VOID ? this.n32_1 : parent;
401
+ depth = depth === VOID ? this.o32_1 : depth;
402
+ return $super === VOID ? this.x32(alternatives, executionContext, parent, depth) : $super.x32.call(this, alternatives, executionContext, parent, depth);
403
+ };
404
+ protoOf(Primitives).hashCode = function () {
405
+ var result = hashCode(this.l32_1);
406
+ result = imul(result, 31) + (this.m32_1 == null ? 0 : this.m32_1.hashCode()) | 0;
407
+ result = imul(result, 31) + (this.n32_1 == null ? 0 : hashCode(this.n32_1)) | 0;
408
+ result = imul(result, 31) + this.o32_1 | 0;
376
409
  return result;
377
410
  };
378
- Primitives.prototype.equals = function (other) {
411
+ protoOf(Primitives).equals = function (other) {
379
412
  if (this === other)
380
413
  return true;
381
414
  if (!(other instanceof Primitives))
382
415
  return false;
383
416
  var tmp0_other_with_cast = other instanceof Primitives ? other : THROW_CCE();
384
- if (!equals(this.p34_1, tmp0_other_with_cast.p34_1))
417
+ if (!equals(this.l32_1, tmp0_other_with_cast.l32_1))
385
418
  return false;
386
- if (!equals(this.q34_1, tmp0_other_with_cast.q34_1))
419
+ if (!equals(this.m32_1, tmp0_other_with_cast.m32_1))
387
420
  return false;
388
- if (!equals(this.r34_1, tmp0_other_with_cast.r34_1))
421
+ if (!equals(this.n32_1, tmp0_other_with_cast.n32_1))
389
422
  return false;
390
- if (!(this.s34_1 === tmp0_other_with_cast.s34_1))
423
+ if (!(this.o32_1 === tmp0_other_with_cast.o32_1))
391
424
  return false;
392
425
  return true;
393
426
  };
394
427
  function Rules(alternatives, executionContext, parent, depth) {
395
428
  ChoicePointContext.call(this, alternatives, executionContext, parent, depth);
396
- this.o35_1 = alternatives;
397
- this.p35_1 = executionContext;
398
- this.q35_1 = parent;
399
- this.r35_1 = depth;
429
+ this.k33_1 = alternatives;
430
+ this.l33_1 = executionContext;
431
+ this.m33_1 = parent;
432
+ this.n33_1 = depth;
400
433
  }
401
- Rules.prototype.t34 = function () {
402
- return this.o35_1;
434
+ protoOf(Rules).p32 = function () {
435
+ return this.k33_1;
403
436
  };
404
- Rules.prototype.u34 = function () {
405
- return this.p35_1;
437
+ protoOf(Rules).q32 = function () {
438
+ return this.l33_1;
406
439
  };
407
- Rules.prototype.v34 = function () {
408
- return this.q35_1;
440
+ protoOf(Rules).r32 = function () {
441
+ return this.m33_1;
409
442
  };
410
- Rules.prototype.w34 = function () {
411
- return this.r35_1;
443
+ protoOf(Rules).s32 = function () {
444
+ return this.n33_1;
412
445
  };
413
- Rules.prototype.toString = function () {
414
- return ChoicePointContext.prototype.toString.call(this);
446
+ protoOf(Rules).toString = function () {
447
+ return protoOf(ChoicePointContext).toString.call(this);
415
448
  };
416
- Rules.prototype.x34 = function () {
449
+ protoOf(Rules).t32 = function () {
417
450
  return 'Rules';
418
451
  };
419
- Rules.prototype.y34 = function (context) {
420
- var tmp0_$this = ensureNotNull(this.p35_1);
421
- var tmp1_rules = this.o35_1;
452
+ protoOf(Rules).u32 = function (context) {
453
+ var tmp0_$this = ensureNotNull(this.l33_1);
454
+ var tmp1_rules = this.k33_1;
422
455
  var tmp$ret$0;
423
456
  // Inline function 'kotlin.Long.plus' call
424
- var tmp0_plus = context.c34_1;
425
- tmp$ret$0 = tmp0_plus.zg(new Long(1, 0));
457
+ var tmp0_plus = context.y31_1;
458
+ tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
426
459
  var tmp2_step = tmp$ret$0;
427
- var tmp3_startTime = context.x33_1;
428
- var tmp4_flags = context.l33_1;
429
- var tmp5_dynamicKb = context.n33_1;
430
- var tmp6_staticKb = context.m33_1;
431
- var tmp7_operators = context.o33_1;
432
- var tmp8_inputChannels = context.p33_1;
433
- var tmp9_outputChannels = context.q33_1;
434
- var tmp10_libraries = context.k33_1;
435
- var tmp11_customData = context.r33_1.discardEphemeral();
436
- var tmp = new Long(0, 0);
437
- var tempContext = tmp0_$this.z34(null, null, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, null, null, null, tmp1_rules, null, tmp3_startTime, tmp, null, null, 0, tmp2_step, null, 3103747, null);
438
- var tmp_0 = this.o35_1.qq();
439
- var nextChoicePointContext = this.s35(tmp_0, tempContext, null, 0, 12, null);
440
- var tmp_1 = new Long(0, 0);
441
- var tmp_2 = new Long(0, 0);
442
- var tmp_3 = new Long(0, 0);
443
- return tempContext.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_1, tmp_2, nextChoicePointContext, null, 0, tmp_3, null, 4063231, null);
444
- };
445
- Rules.prototype.t35 = function (alternatives, executionContext, parent, depth) {
460
+ var tmp3_startTime = context.t31_1;
461
+ var tmp4_flags = context.h31_1;
462
+ var tmp5_dynamicKb = context.j31_1;
463
+ var tmp6_staticKb = context.i31_1;
464
+ var tmp7_operators = context.k31_1;
465
+ var tmp8_inputChannels = context.l31_1;
466
+ var tmp9_outputChannels = context.m31_1;
467
+ var tmp10_libraries = context.g31_1;
468
+ var tmp11_customData = context.n31_1.discardEphemeral();
469
+ var tempContext = tmp0_$this.v32(VOID, VOID, tmp10_libraries, tmp4_flags, tmp6_staticKb, tmp5_dynamicKb, tmp7_operators, tmp8_inputChannels, tmp9_outputChannels, tmp11_customData, VOID, VOID, VOID, tmp1_rules, VOID, tmp3_startTime, VOID, VOID, VOID, VOID, tmp2_step);
470
+ var nextChoicePointContext = this.o33(this.k33_1.kq(), tempContext);
471
+ return tempContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, nextChoicePointContext);
472
+ };
473
+ protoOf(Rules).p33 = function (alternatives, executionContext, parent, depth) {
446
474
  return new Rules(alternatives, executionContext, parent, depth);
447
475
  };
448
- Rules.prototype.s35 = function (alternatives, executionContext, parent, depth, $mask0, $handler) {
449
- if (!(($mask0 & 1) === 0))
450
- alternatives = this.o35_1;
451
- if (!(($mask0 & 2) === 0))
452
- executionContext = this.p35_1;
453
- if (!(($mask0 & 4) === 0))
454
- parent = this.q35_1;
455
- if (!(($mask0 & 8) === 0))
456
- depth = this.r35_1;
457
- return this.t35(alternatives, executionContext, parent, depth);
458
- };
459
- Rules.prototype.hashCode = function () {
460
- var result = hashCode(this.o35_1);
461
- result = imul(result, 31) + (this.p35_1 == null ? 0 : this.p35_1.hashCode()) | 0;
462
- result = imul(result, 31) + (this.q35_1 == null ? 0 : hashCode(this.q35_1)) | 0;
463
- result = imul(result, 31) + this.r35_1 | 0;
476
+ protoOf(Rules).o33 = function (alternatives, executionContext, parent, depth, $super) {
477
+ alternatives = alternatives === VOID ? this.k33_1 : alternatives;
478
+ executionContext = executionContext === VOID ? this.l33_1 : executionContext;
479
+ parent = parent === VOID ? this.m33_1 : parent;
480
+ depth = depth === VOID ? this.n33_1 : depth;
481
+ return $super === VOID ? this.p33(alternatives, executionContext, parent, depth) : $super.p33.call(this, alternatives, executionContext, parent, depth);
482
+ };
483
+ protoOf(Rules).hashCode = function () {
484
+ var result = hashCode(this.k33_1);
485
+ result = imul(result, 31) + (this.l33_1 == null ? 0 : this.l33_1.hashCode()) | 0;
486
+ result = imul(result, 31) + (this.m33_1 == null ? 0 : hashCode(this.m33_1)) | 0;
487
+ result = imul(result, 31) + this.n33_1 | 0;
464
488
  return result;
465
489
  };
466
- Rules.prototype.equals = function (other) {
490
+ protoOf(Rules).equals = function (other) {
467
491
  if (this === other)
468
492
  return true;
469
493
  if (!(other instanceof Rules))
470
494
  return false;
471
495
  var tmp0_other_with_cast = other instanceof Rules ? other : THROW_CCE();
472
- if (!equals(this.o35_1, tmp0_other_with_cast.o35_1))
496
+ if (!equals(this.k33_1, tmp0_other_with_cast.k33_1))
473
497
  return false;
474
- if (!equals(this.p35_1, tmp0_other_with_cast.p35_1))
498
+ if (!equals(this.l33_1, tmp0_other_with_cast.l33_1))
475
499
  return false;
476
- if (!equals(this.q35_1, tmp0_other_with_cast.q35_1))
500
+ if (!equals(this.m33_1, tmp0_other_with_cast.m33_1))
477
501
  return false;
478
- if (!(this.r35_1 === tmp0_other_with_cast.r35_1))
502
+ if (!(this.n33_1 === tmp0_other_with_cast.n33_1))
479
503
  return false;
480
504
  return true;
481
505
  };
482
506
  function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation) {
483
- this.c36_1 = this$0;
507
+ this.y33_1 = this$0;
484
508
  CoroutineImpl.call(this, resultContinuation);
485
509
  }
486
- ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.prototype.f36 = function ($this$sequence, $cont) {
487
- var tmp = this.g36($this$sequence, $cont);
488
- tmp.bi_1 = Unit_getInstance();
489
- tmp.ci_1 = null;
490
- return tmp.hi();
510
+ protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).b34 = function ($this$sequence, $completion) {
511
+ var tmp = this.c34($this$sequence, $completion);
512
+ tmp.ci_1 = Unit_getInstance();
513
+ tmp.di_1 = null;
514
+ return tmp.ii();
491
515
  };
492
- ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.prototype.ti = function (p1, $cont) {
493
- return this.f36(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
516
+ protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).ui = function (p1, $completion) {
517
+ return this.b34(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
494
518
  };
495
- ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.prototype.hi = function () {
496
- var suspendResult = this.bi_1;
519
+ protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).ii = function () {
520
+ var suspendResult = this.ci_1;
497
521
  $sm: do
498
522
  try {
499
- var tmp = this.zh_1;
523
+ var tmp = this.ai_1;
500
524
  switch (tmp) {
501
525
  case 0:
502
- this.ai_1 = 4;
503
- this.e36_1 = this.c36_1;
504
- this.zh_1 = 1;
526
+ this.bi_1 = 4;
527
+ this.a34_1 = this.y33_1;
528
+ this.ai_1 = 1;
505
529
  continue $sm;
506
530
  case 1:
507
- if (!!(this.e36_1 == null)) {
508
- this.zh_1 = 3;
531
+ if (!!(this.a34_1 == null)) {
532
+ this.ai_1 = 3;
509
533
  continue $sm;
510
534
  }
511
535
 
512
- this.zh_1 = 2;
513
- suspendResult = this.d36_1.z4(ensureNotNull(this.e36_1), this);
536
+ this.ai_1 = 2;
537
+ suspendResult = this.z33_1.d5(ensureNotNull(this.a34_1), this);
514
538
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
515
539
  return suspendResult;
516
540
  }
517
541
 
518
542
  continue $sm;
519
543
  case 2:
520
- this.e36_1 = this.e36_1.v34();
521
- this.zh_1 = 1;
544
+ this.a34_1 = this.a34_1.r32();
545
+ this.ai_1 = 1;
522
546
  continue $sm;
523
547
  case 3:
524
548
  return Unit_getInstance();
525
549
  case 4:
526
- throw this.ci_1;
550
+ throw this.di_1;
527
551
  }
528
552
  } catch ($p) {
529
- if (this.ai_1 === 4) {
530
- throw $p;
553
+ var e = $p;
554
+ if (this.bi_1 === 4) {
555
+ throw e;
531
556
  } else {
532
- this.zh_1 = this.ai_1;
533
- this.ci_1 = $p;
557
+ this.ai_1 = this.bi_1;
558
+ this.di_1 = e;
534
559
  }
535
560
  }
536
561
  while (true);
537
562
  };
538
- ChoicePointContext$_get_pathToRoot_$slambda_q0myjn.prototype.g36 = function ($this$sequence, completion) {
539
- var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.c36_1, completion);
540
- i.d36_1 = $this$sequence;
563
+ protoOf(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn).c34 = function ($this$sequence, completion) {
564
+ var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this.y33_1, completion);
565
+ i.z33_1 = $this$sequence;
541
566
  return i;
542
567
  };
543
568
  function ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this$0, resultContinuation) {
544
569
  var i = new ChoicePointContext$_get_pathToRoot_$slambda_q0myjn(this$0, resultContinuation);
545
- var l = function ($this$sequence, $cont) {
546
- return i.f36($this$sequence, $cont);
570
+ var l = function ($this$sequence, $completion) {
571
+ return i.b34($this$sequence, $completion);
547
572
  };
548
573
  l.$arity = 1;
549
574
  return l;
550
575
  }
551
576
  function ChoicePointContext(alternatives, executionContext, parent, depth) {
552
- this.c35_1 = alternatives;
553
- this.d35_1 = executionContext;
554
- this.e35_1 = parent;
555
- this.f35_1 = depth;
577
+ depth = depth === VOID ? 0 : depth;
578
+ this.y32_1 = alternatives;
579
+ this.z32_1 = executionContext;
580
+ this.a33_1 = parent;
581
+ this.b33_1 = depth;
556
582
  }
557
- ChoicePointContext.prototype.t34 = function () {
558
- return this.c35_1;
583
+ protoOf(ChoicePointContext).p32 = function () {
584
+ return this.y32_1;
559
585
  };
560
- ChoicePointContext.prototype.u34 = function () {
561
- return this.d35_1;
586
+ protoOf(ChoicePointContext).q32 = function () {
587
+ return this.z32_1;
562
588
  };
563
- ChoicePointContext.prototype.v34 = function () {
564
- return this.e35_1;
589
+ protoOf(ChoicePointContext).r32 = function () {
590
+ return this.a33_1;
565
591
  };
566
- ChoicePointContext.prototype.w34 = function () {
567
- return this.f35_1;
592
+ protoOf(ChoicePointContext).s32 = function () {
593
+ return this.b33_1;
568
594
  };
569
- ChoicePointContext.prototype.g35 = function () {
595
+ protoOf(ChoicePointContext).c33 = function () {
570
596
  var tmp$ret$1;
571
597
  $l$block: {
572
598
  // Inline function 'kotlin.sequences.any' call
573
- var tmp0_any = this.h35();
599
+ var tmp0_any = this.d33();
574
600
  var tmp0_iterator = tmp0_any.j();
575
601
  while (tmp0_iterator.m()) {
576
602
  var element = tmp0_iterator.n();
577
603
  var tmp$ret$0;
578
604
  // Inline function 'it.unibo.tuprolog.solve.classic.ChoicePointContext.<get-hasOpenAlternatives>.<anonymous>' call
579
- tmp$ret$0 = element.t34().sq();
605
+ tmp$ret$0 = element.p32().mq();
580
606
  if (tmp$ret$0) {
581
607
  tmp$ret$1 = true;
582
608
  break $l$block;
@@ -586,170 +612,118 @@
586
612
  }
587
613
  return tmp$ret$1;
588
614
  };
589
- ChoicePointContext.prototype.h35 = function () {
615
+ protoOf(ChoicePointContext).d33 = function () {
590
616
  return sequence(ChoicePointContext$_get_pathToRoot_$slambda_q0myjn_0(this, null));
591
617
  };
592
- ChoicePointContext.prototype.i35 = function () {
593
- var tmp0_safe_receiver = this.u34();
594
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b34_1;
618
+ protoOf(ChoicePointContext).e33 = function () {
619
+ var tmp0_safe_receiver = this.q32();
620
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x31_1;
595
621
  };
596
- ChoicePointContext.prototype.j35 = function () {
597
- var tmp0_safe_receiver = this.u34();
598
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i33_1;
622
+ protoOf(ChoicePointContext).f33 = function () {
623
+ var tmp0_safe_receiver = this.q32();
624
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e31_1;
599
625
  };
600
- ChoicePointContext.prototype.toString = function () {
601
- var tmp = this.x34() + '(' + ('alternatives=' + this.t34() + ', ');
626
+ protoOf(ChoicePointContext).toString = function () {
627
+ var tmp = this.t32() + '(' + ('alternatives=' + this.p32() + ', ');
602
628
  var tmp_0;
603
- if (this.u34() === null) {
604
- tmp_0 = 'executionContext=' + this.u34() + ', ';
629
+ if (this.q32() === null) {
630
+ tmp_0 = 'executionContext=' + this.q32() + ', ';
605
631
  } else {
606
- 'executionContextDepth=' + this.i35() + ', ';
607
- tmp_0 = 'executionContextProcedure=' + this.j35() + ', ';
632
+ 'executionContextDepth=' + this.e33() + ', ';
633
+ tmp_0 = 'executionContextProcedure=' + this.f33() + ', ';
608
634
  }
609
- return tmp + tmp_0 + ('depth=' + this.w34()) + ')';
635
+ return tmp + tmp_0 + ('depth=' + this.s32()) + ')';
610
636
  };
611
637
  function appendRules(_this__u8e3s4, alternatives, executionContext) {
638
+ executionContext = executionContext === VOID ? null : executionContext;
612
639
  return new Rules(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
613
640
  }
614
641
  function nextDepth(_this__u8e3s4) {
615
- return _this__u8e3s4 == null ? 0 : _this__u8e3s4.w34() + 1 | 0;
642
+ return _this__u8e3s4 == null ? 0 : _this__u8e3s4.s32() + 1 | 0;
616
643
  }
617
644
  function appendPrimitives(_this__u8e3s4, alternatives, executionContext) {
645
+ executionContext = executionContext === VOID ? null : executionContext;
618
646
  return new Primitives(alternatives, executionContext, _this__u8e3s4, nextDepth(_this__u8e3s4));
619
647
  }
620
- function ClassicExecutionContext_init_$Init$(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $marker, $this) {
621
- if (!(($mask0 & 1) === 0))
622
- procedure = null;
623
- if (!(($mask0 & 2) === 0))
624
- unificator = Companion_getInstance_3().e1l();
625
- if (!(($mask0 & 4) === 0))
626
- libraries = Companion_getInstance_4().empty();
627
- if (!(($mask0 & 8) === 0))
628
- flags = Companion_getInstance_5().empty();
629
- if (!(($mask0 & 16) === 0))
630
- staticKb = Companion_getInstance_1().empty(unificator);
631
- if (!(($mask0 & 32) === 0))
632
- dynamicKb = Companion_getInstance_2().empty(unificator);
633
- if (!(($mask0 & 64) === 0))
634
- operators = toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb]));
635
- if (!(($mask0 & 128) === 0)) {
636
- var tmp = Companion_getInstance();
637
- inputChannels = tmp.s1z(null, 1, null);
638
- }
639
- if (!(($mask0 & 256) === 0)) {
640
- var tmp_0 = Companion_getInstance_0();
641
- outputChannels = tmp_0.t1z(null, null, null, 7, null);
642
- }
643
- if (!(($mask0 & 512) === 0))
644
- customData = Companion_getInstance_6().empty();
645
- if (!(($mask0 & 1024) === 0))
646
- substitution = Companion_getInstance_7().empty();
647
- if (!(($mask0 & 2048) === 0))
648
- query = Companion_getInstance_8().tv_1;
649
- if (!(($mask0 & 4096) === 0))
650
- goals = Companion_getInstance_9().empty();
651
- if (!(($mask0 & 8192) === 0))
652
- rules = Companion_getInstance_9().empty();
653
- if (!(($mask0 & 16384) === 0))
654
- primitives = Companion_getInstance_9().empty();
655
- if (!(($mask0 & 65536) === 0)) {
656
- Companion_getInstance_10();
657
- maxDuration = new Long(-1, 2147483647);
658
- }
659
- if (!(($mask0 & 131072) === 0))
660
- choicePoints = null;
661
- if (!(($mask0 & 262144) === 0))
662
- parent = null;
663
- if (!(($mask0 & 524288) === 0))
664
- depth = 0;
665
- if (!(($mask0 & 1048576) === 0))
666
- step = new Long(0, 0);
667
- if (!(($mask0 & 2097152) === 0))
668
- relevantVariables = emptySet();
669
- ClassicExecutionContext.call($this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
670
- return $this;
671
- }
672
- function ClassicExecutionContext_init_$Create$(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $marker) {
673
- return ClassicExecutionContext_init_$Init$(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $marker, Object.create(ClassicExecutionContext.prototype));
674
- }
675
648
  function _get_locallyInterestingVariables__39cqti($this) {
676
- var tmp = asSequence_0($this.d34_1);
677
- var tmp0_safe_receiver = $this.u33_1.rq();
678
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ew();
649
+ var tmp = asSequence_0($this.z31_1);
650
+ var tmp0_safe_receiver = $this.q31_1.lq();
651
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.yv();
679
652
  return plus(tmp, tmp1_elvis_lhs == null ? emptySequence() : tmp1_elvis_lhs);
680
653
  }
681
654
  function _get_interestingVariables__k6uw5o($this) {
682
655
  var tmp$ret$0;
683
656
  // Inline function 'kotlin.getValue' call
684
657
  var tmp0_getValue = interestingVariables$factory();
685
- tmp$ret$0 = $this.g34_1.b1();
658
+ tmp$ret$0 = $this.c32_1.b1();
686
659
  return tmp$ret$0;
687
660
  }
688
661
  function ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation) {
689
- this.p36_1 = this$0;
662
+ this.l34_1 = this$0;
690
663
  CoroutineImpl.call(this, resultContinuation);
691
664
  }
692
- ClassicExecutionContext$pathToRoot$slambda.prototype.s36 = function ($this$sequence, $cont) {
693
- var tmp = this.t36($this$sequence, $cont);
694
- tmp.bi_1 = Unit_getInstance();
695
- tmp.ci_1 = null;
696
- return tmp.hi();
665
+ protoOf(ClassicExecutionContext$pathToRoot$slambda).o34 = function ($this$sequence, $completion) {
666
+ var tmp = this.p34($this$sequence, $completion);
667
+ tmp.ci_1 = Unit_getInstance();
668
+ tmp.di_1 = null;
669
+ return tmp.ii();
697
670
  };
698
- ClassicExecutionContext$pathToRoot$slambda.prototype.ti = function (p1, $cont) {
699
- return this.s36(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
671
+ protoOf(ClassicExecutionContext$pathToRoot$slambda).ui = function (p1, $completion) {
672
+ return this.o34(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
700
673
  };
701
- ClassicExecutionContext$pathToRoot$slambda.prototype.hi = function () {
702
- var suspendResult = this.bi_1;
674
+ protoOf(ClassicExecutionContext$pathToRoot$slambda).ii = function () {
675
+ var suspendResult = this.ci_1;
703
676
  $sm: do
704
677
  try {
705
- var tmp = this.zh_1;
678
+ var tmp = this.ai_1;
706
679
  switch (tmp) {
707
680
  case 0:
708
- this.ai_1 = 4;
709
- this.r36_1 = this.p36_1;
710
- this.zh_1 = 1;
681
+ this.bi_1 = 4;
682
+ this.n34_1 = this.l34_1;
683
+ this.ai_1 = 1;
711
684
  continue $sm;
712
685
  case 1:
713
- if (!!(this.r36_1 == null)) {
714
- this.zh_1 = 3;
686
+ if (!!(this.n34_1 == null)) {
687
+ this.ai_1 = 3;
715
688
  continue $sm;
716
689
  }
717
690
 
718
- this.zh_1 = 2;
719
- suspendResult = this.q36_1.z4(this.r36_1, this);
691
+ this.ai_1 = 2;
692
+ suspendResult = this.m34_1.d5(this.n34_1, this);
720
693
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
721
694
  return suspendResult;
722
695
  }
723
696
 
724
697
  continue $sm;
725
698
  case 2:
726
- this.r36_1 = this.r36_1.a34_1;
727
- this.zh_1 = 1;
699
+ this.n34_1 = this.n34_1.w31_1;
700
+ this.ai_1 = 1;
728
701
  continue $sm;
729
702
  case 3:
730
703
  return Unit_getInstance();
731
704
  case 4:
732
- throw this.ci_1;
705
+ throw this.di_1;
733
706
  }
734
707
  } catch ($p) {
735
- if (this.ai_1 === 4) {
736
- throw $p;
708
+ var e = $p;
709
+ if (this.bi_1 === 4) {
710
+ throw e;
737
711
  } else {
738
- this.zh_1 = this.ai_1;
739
- this.ci_1 = $p;
712
+ this.ai_1 = this.bi_1;
713
+ this.di_1 = e;
740
714
  }
741
715
  }
742
716
  while (true);
743
717
  };
744
- ClassicExecutionContext$pathToRoot$slambda.prototype.t36 = function ($this$sequence, completion) {
745
- var i = new ClassicExecutionContext$pathToRoot$slambda(this.p36_1, completion);
746
- i.q36_1 = $this$sequence;
718
+ protoOf(ClassicExecutionContext$pathToRoot$slambda).p34 = function ($this$sequence, completion) {
719
+ var i = new ClassicExecutionContext$pathToRoot$slambda(this.l34_1, completion);
720
+ i.m34_1 = $this$sequence;
747
721
  return i;
748
722
  };
749
723
  function ClassicExecutionContext$pathToRoot$slambda_0(this$0, resultContinuation) {
750
724
  var i = new ClassicExecutionContext$pathToRoot$slambda(this$0, resultContinuation);
751
- var l = function ($this$sequence, $cont) {
752
- return i.s36($this$sequence, $cont);
725
+ var l = function ($this$sequence, $completion) {
726
+ return i.o34($this$sequence, $completion);
753
727
  };
754
728
  l.$arity = 1;
755
729
  return l;
@@ -757,11 +731,11 @@
757
731
  function ClassicExecutionContext$currentGoal$delegate$lambda(this$0) {
758
732
  return function () {
759
733
  var tmp;
760
- if (this$0.u33_1.tq()) {
734
+ if (this$0.q31_1.nq()) {
761
735
  tmp = null;
762
736
  } else {
763
- var tmp0_safe_receiver = this$0.u33_1.rq();
764
- tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.s33_1);
737
+ var tmp0_safe_receiver = this$0.q31_1.lq();
738
+ tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.applySubstitution(this$0.o31_1);
765
739
  }
766
740
  return tmp;
767
741
  };
@@ -771,50 +745,78 @@
771
745
  }
772
746
  function ClassicExecutionContext$interestingVariables$delegate$lambda(this$0) {
773
747
  return function () {
774
- var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.t33_1.ew());
775
- return cached(distinct(plus(tmp, flatMap(this$0.e34_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
748
+ var tmp = plus(_get_locallyInterestingVariables__39cqti(this$0), this$0.p31_1.yv());
749
+ return cached(distinct(plus(tmp, flatMap(this$0.a32_1, ClassicExecutionContext$interestingVariables$delegate$lambda$lambda))));
776
750
  };
777
751
  }
778
752
  function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda(it) {
779
- return it.u36();
753
+ return it.q34();
780
754
  }
781
755
  function ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0) {
782
756
  return function (it) {
783
- var tmp0_elvis_lhs = it.i33_1;
784
- return tmp0_elvis_lhs == null ? Companion_getInstance_11().of('?-', [this$0.t33_1]) : tmp0_elvis_lhs;
757
+ var tmp0_elvis_lhs = it.e31_1;
758
+ return tmp0_elvis_lhs == null ? Companion_getInstance_8().of('?-', [this$0.p31_1]) : tmp0_elvis_lhs;
785
759
  };
786
760
  }
787
761
  function ClassicExecutionContext$logicStackTrace$delegate$lambda(this$0) {
788
762
  return function () {
789
- var tmp = filter(this$0.e34_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
763
+ var tmp = filter(this$0.a32_1, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda);
790
764
  return toList(map(tmp, ClassicExecutionContext$logicStackTrace$delegate$lambda$lambda_0(this$0)));
791
765
  };
792
766
  }
793
767
  function ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
794
- this.i33_1 = procedure;
795
- this.j33_1 = unificator;
796
- this.k33_1 = libraries;
797
- this.l33_1 = flags;
798
- this.m33_1 = staticKb;
799
- this.n33_1 = dynamicKb;
800
- this.o33_1 = operators;
801
- this.p33_1 = inputChannels;
802
- this.q33_1 = outputChannels;
803
- this.r33_1 = customData;
804
- this.s33_1 = substitution;
805
- this.t33_1 = query;
806
- this.u33_1 = goals;
807
- this.v33_1 = rules;
808
- this.w33_1 = primitives;
809
- this.x33_1 = startTime;
810
- this.y33_1 = maxDuration;
811
- this.z33_1 = choicePoints;
812
- this.a34_1 = parent;
813
- this.b34_1 = depth;
814
- this.c34_1 = step;
815
- this.d34_1 = relevantVariables;
768
+ procedure = procedure === VOID ? null : procedure;
769
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
770
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
771
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
772
+ staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
773
+ dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
774
+ operators = operators === VOID ? toOperatorSet(getAllOperators(libraries, [staticKb, dynamicKb])) : operators;
775
+ inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
776
+ outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
777
+ customData = customData === VOID ? Companion_getInstance_9().empty() : customData;
778
+ substitution = substitution === VOID ? Companion_getInstance_10().empty() : substitution;
779
+ query = query === VOID ? Companion_getInstance_11().nv_1 : query;
780
+ goals = goals === VOID ? Companion_getInstance_12().empty() : goals;
781
+ rules = rules === VOID ? Companion_getInstance_12().empty() : rules;
782
+ primitives = primitives === VOID ? Companion_getInstance_12().empty() : primitives;
783
+ var tmp;
784
+ if (maxDuration === VOID) {
785
+ Companion_getInstance_13();
786
+ tmp = new Long(-1, 2147483647);
787
+ } else {
788
+ tmp = maxDuration;
789
+ }
790
+ maxDuration = tmp;
791
+ choicePoints = choicePoints === VOID ? null : choicePoints;
792
+ parent = parent === VOID ? null : parent;
793
+ depth = depth === VOID ? 0 : depth;
794
+ step = step === VOID ? new Long(0, 0) : step;
795
+ relevantVariables = relevantVariables === VOID ? emptySet() : relevantVariables;
796
+ this.e31_1 = procedure;
797
+ this.f31_1 = unificator;
798
+ this.g31_1 = libraries;
799
+ this.h31_1 = flags;
800
+ this.i31_1 = staticKb;
801
+ this.j31_1 = dynamicKb;
802
+ this.k31_1 = operators;
803
+ this.l31_1 = inputChannels;
804
+ this.m31_1 = outputChannels;
805
+ this.n31_1 = customData;
806
+ this.o31_1 = substitution;
807
+ this.p31_1 = query;
808
+ this.q31_1 = goals;
809
+ this.r31_1 = rules;
810
+ this.s31_1 = primitives;
811
+ this.t31_1 = startTime;
812
+ this.u31_1 = maxDuration;
813
+ this.v31_1 = choicePoints;
814
+ this.w31_1 = parent;
815
+ this.x31_1 = depth;
816
+ this.y31_1 = step;
817
+ this.z31_1 = relevantVariables;
816
818
  // Inline function 'kotlin.require' call
817
- var tmp0_require = (this.b34_1 === 0 ? this.a34_1 == null : false) ? true : this.b34_1 > 0 ? !(this.a34_1 == null) : false;
819
+ var tmp0_require = (this.x31_1 === 0 ? this.w31_1 == null : false) ? true : this.x31_1 > 0 ? !(this.w31_1 == null) : false;
818
820
  // Inline function 'kotlin.contracts.contract' call
819
821
  // Inline function 'kotlin.require' call
820
822
  // Inline function 'kotlin.contracts.contract' call
@@ -826,7 +828,7 @@
826
828
  throw IllegalArgumentException_init_$Create$(toString(message));
827
829
  }
828
830
  // Inline function 'kotlin.require' call
829
- var tmp1_require = this.x33_1.jd(new Long(0, 0)) >= 0;
831
+ var tmp1_require = this.t31_1.i1(new Long(0, 0)) >= 0;
830
832
  // Inline function 'kotlin.contracts.contract' call
831
833
  // Inline function 'kotlin.require' call
832
834
  // Inline function 'kotlin.contracts.contract' call
@@ -838,7 +840,7 @@
838
840
  throw IllegalArgumentException_init_$Create$(toString(message_0));
839
841
  }
840
842
  // Inline function 'kotlin.require' call
841
- var tmp2_require = this.y33_1.jd(new Long(0, 0)) >= 0;
843
+ var tmp2_require = this.u31_1.i1(new Long(0, 0)) >= 0;
842
844
  // Inline function 'kotlin.contracts.contract' call
843
845
  // Inline function 'kotlin.require' call
844
846
  // Inline function 'kotlin.contracts.contract' call
@@ -849,249 +851,223 @@
849
851
  var message_1 = tmp$ret$2;
850
852
  throw IllegalArgumentException_init_$Create$(toString(message_1));
851
853
  }
852
- var tmp = this;
853
- tmp.e34_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
854
854
  var tmp_0 = this;
855
- tmp_0.f34_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
855
+ tmp_0.a32_1 = sequence(ClassicExecutionContext$pathToRoot$slambda_0(this, null));
856
856
  var tmp_1 = this;
857
- tmp_1.g34_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
857
+ tmp_1.b32_1 = lazy(ClassicExecutionContext$currentGoal$delegate$lambda(this));
858
858
  var tmp_2 = this;
859
- tmp_2.h34_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
859
+ tmp_2.c32_1 = lazy(ClassicExecutionContext$interestingVariables$delegate$lambda(this));
860
+ var tmp_3 = this;
861
+ tmp_3.d32_1 = lazy(ClassicExecutionContext$logicStackTrace$delegate$lambda(this));
860
862
  }
861
- ClassicExecutionContext.prototype.n1u = function () {
862
- return this.i33_1;
863
+ protoOf(ClassicExecutionContext).q1t = function () {
864
+ return this.e31_1;
863
865
  };
864
- ClassicExecutionContext.prototype.h1l = function () {
865
- return this.j33_1;
866
+ protoOf(ClassicExecutionContext).k1k = function () {
867
+ return this.f31_1;
866
868
  };
867
- ClassicExecutionContext.prototype.t1u = function () {
868
- return this.k33_1;
869
+ protoOf(ClassicExecutionContext).v1t = function () {
870
+ return this.g31_1;
869
871
  };
870
- ClassicExecutionContext.prototype.u1u = function () {
871
- return this.l33_1;
872
+ protoOf(ClassicExecutionContext).w1t = function () {
873
+ return this.h31_1;
872
874
  };
873
- ClassicExecutionContext.prototype.v1u = function () {
874
- return this.m33_1;
875
+ protoOf(ClassicExecutionContext).x1t = function () {
876
+ return this.i31_1;
875
877
  };
876
- ClassicExecutionContext.prototype.w1u = function () {
877
- return this.n33_1;
878
+ protoOf(ClassicExecutionContext).y1t = function () {
879
+ return this.j31_1;
878
880
  };
879
- ClassicExecutionContext.prototype.e1v = function () {
880
- return this.o33_1;
881
+ protoOf(ClassicExecutionContext).e1u = function () {
882
+ return this.k31_1;
881
883
  };
882
- ClassicExecutionContext.prototype.x1u = function () {
883
- return this.p33_1;
884
+ protoOf(ClassicExecutionContext).z1t = function () {
885
+ return this.l31_1;
884
886
  };
885
- ClassicExecutionContext.prototype.y1u = function () {
886
- return this.q33_1;
887
+ protoOf(ClassicExecutionContext).a1u = function () {
888
+ return this.m31_1;
887
889
  };
888
- ClassicExecutionContext.prototype.q1u = function () {
889
- return this.r33_1;
890
+ protoOf(ClassicExecutionContext).t1t = function () {
891
+ return this.n31_1;
890
892
  };
891
- ClassicExecutionContext.prototype.o1u = function () {
892
- return this.s33_1;
893
+ protoOf(ClassicExecutionContext).r1t = function () {
894
+ return this.o31_1;
893
895
  };
894
- ClassicExecutionContext.prototype.i1u = function () {
895
- return this.x33_1;
896
+ protoOf(ClassicExecutionContext).l1t = function () {
897
+ return this.t31_1;
896
898
  };
897
- ClassicExecutionContext.prototype.k1u = function () {
898
- return this.y33_1;
899
+ protoOf(ClassicExecutionContext).n1t = function () {
900
+ return this.u31_1;
899
901
  };
900
- ClassicExecutionContext.prototype.v36 = function () {
901
- return this.b34_1 === 0;
902
+ protoOf(ClassicExecutionContext).r34 = function () {
903
+ return this.x31_1 === 0;
902
904
  };
903
- ClassicExecutionContext.prototype.g35 = function () {
904
- var tmp0_safe_receiver = this.z33_1;
905
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g35();
905
+ protoOf(ClassicExecutionContext).c33 = function () {
906
+ var tmp0_safe_receiver = this.v31_1;
907
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c33();
906
908
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
907
909
  };
908
- ClassicExecutionContext.prototype.u36 = function () {
909
- return this.a34_1 == null ? true : (this.b34_1 - this.a34_1.b34_1 | 0) >= 1;
910
+ protoOf(ClassicExecutionContext).q34 = function () {
911
+ return this.w31_1 == null ? true : (this.x31_1 - this.w31_1.x31_1 | 0) >= 1;
910
912
  };
911
- ClassicExecutionContext.prototype.w36 = function () {
913
+ protoOf(ClassicExecutionContext).s34 = function () {
912
914
  var tmp$ret$0;
913
915
  // Inline function 'kotlin.getValue' call
914
916
  var tmp0_getValue = currentGoal$factory();
915
- tmp$ret$0 = this.f34_1.b1();
917
+ tmp$ret$0 = this.b32_1.b1();
916
918
  return tmp$ret$0;
917
919
  };
918
- ClassicExecutionContext.prototype.x36 = function (variable) {
920
+ protoOf(ClassicExecutionContext).t34 = function (variable) {
919
921
  return contains(_get_interestingVariables__k6uw5o(this), variable);
920
922
  };
921
- ClassicExecutionContext.prototype.p1u = function () {
923
+ protoOf(ClassicExecutionContext).s1t = function () {
922
924
  var tmp$ret$0;
923
925
  // Inline function 'kotlin.getValue' call
924
926
  var tmp0_getValue = logicStackTrace$factory();
925
- tmp$ret$0 = this.h34_1.b1();
927
+ tmp$ret$0 = this.d32_1.b1();
926
928
  return tmp$ret$0;
927
929
  };
928
- ClassicExecutionContext.prototype.r1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
930
+ protoOf(ClassicExecutionContext).u1t = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
929
931
  return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
930
932
  };
931
- ClassicExecutionContext.prototype.z1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
933
+ protoOf(ClassicExecutionContext).b1u = function (unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels) {
932
934
  return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, true);
933
935
  };
934
- ClassicExecutionContext.prototype.c1v = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
935
- var tmp = dynamicKb.toMutableTheory();
936
- var tmp_0 = new Long(0, 0);
937
- var tmp_1 = new Long(0, 0);
938
- var tmp_2 = new Long(0, 0);
939
- return this.z34(null, unificator, libraries, flags, staticKb, tmp, operators, inputChannels, outputChannels, customData, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4193281, null);
936
+ protoOf(ClassicExecutionContext).d1u = function (unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData) {
937
+ return this.v32(VOID, unificator, libraries, flags, staticKb, dynamicKb.toMutableTheory(), operators, inputChannels, outputChannels, customData);
940
938
  };
941
- ClassicExecutionContext.prototype.y36 = function (sideEffect) {
939
+ protoOf(ClassicExecutionContext).u34 = function (sideEffect) {
942
940
  var tmp = apply.call(this, sideEffect);
943
941
  return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
944
942
  };
945
- ClassicExecutionContext.prototype.apply = function (sideEffect) {
946
- return this.y36(sideEffect);
943
+ protoOf(ClassicExecutionContext).apply = function (sideEffect) {
944
+ return this.u34(sideEffect);
947
945
  };
948
- ClassicExecutionContext.prototype.z36 = function (sideEffects) {
946
+ protoOf(ClassicExecutionContext).v34 = function (sideEffects) {
949
947
  var tmp = applyIterable.call(this, sideEffects);
950
948
  return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
951
949
  };
952
- ClassicExecutionContext.prototype.applyIterable = function (sideEffects) {
953
- return this.z36(sideEffects);
950
+ protoOf(ClassicExecutionContext).applyIterable = function (sideEffects) {
951
+ return this.v34(sideEffects);
954
952
  };
955
- ClassicExecutionContext.prototype.a37 = function (sideEffects) {
953
+ protoOf(ClassicExecutionContext).w34 = function (sideEffects) {
956
954
  var tmp = applySequence.call(this, sideEffects);
957
955
  return tmp instanceof ClassicExecutionContext ? tmp : THROW_CCE();
958
956
  };
959
- ClassicExecutionContext.prototype.applySequence = function (sideEffects) {
960
- return this.a37(sideEffects);
957
+ protoOf(ClassicExecutionContext).applySequence = function (sideEffects) {
958
+ return this.w34(sideEffects);
961
959
  };
962
- ClassicExecutionContext.prototype.toString = function () {
963
- return 'ClassicExecutionContext(' + ('step=' + toString(this.c34_1) + ', ') + ('depth=' + this.b34_1 + ', ') + ('substitution=' + this.s33_1 + ', ') + ('logicStackTrace=' + this.p1u() + ', ') + ('goals=' + this.u33_1 + ', ') + ('rules=' + this.v33_1 + ', ') + ('primitives=' + this.w33_1 + ', ') + ('startTime=' + toString(this.x33_1) + ', ') + ('endTime=' + toString(this.j1u()) + ', ') + ('maxDuration=' + toString(this.y33_1) + ', ') + ('unificator=' + this.j33_1 + ', ') + ('choicePoints=' + this.z33_1) + ')';
960
+ protoOf(ClassicExecutionContext).toString = function () {
961
+ return 'ClassicExecutionContext(' + ('step=' + toString(this.y31_1) + ', ') + ('depth=' + this.x31_1 + ', ') + ('substitution=' + this.o31_1 + ', ') + ('logicStackTrace=' + this.s1t() + ', ') + ('goals=' + this.q31_1 + ', ') + ('rules=' + this.r31_1 + ', ') + ('primitives=' + this.s31_1 + ', ') + ('startTime=' + toString(this.t31_1) + ', ') + ('endTime=' + toString(this.m1t()) + ', ') + ('maxDuration=' + toString(this.u31_1) + ', ') + ('unificator=' + this.f31_1 + ', ') + ('choicePoints=' + this.v31_1) + ')';
964
962
  };
965
- ClassicExecutionContext.prototype.b37 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
963
+ protoOf(ClassicExecutionContext).x34 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) {
966
964
  return new ClassicExecutionContext(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
967
965
  };
968
- ClassicExecutionContext.prototype.z34 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $mask0, $handler) {
969
- if (!(($mask0 & 1) === 0))
970
- procedure = this.i33_1;
971
- if (!(($mask0 & 2) === 0))
972
- unificator = this.j33_1;
973
- if (!(($mask0 & 4) === 0))
974
- libraries = this.k33_1;
975
- if (!(($mask0 & 8) === 0))
976
- flags = this.l33_1;
977
- if (!(($mask0 & 16) === 0))
978
- staticKb = this.m33_1;
979
- if (!(($mask0 & 32) === 0))
980
- dynamicKb = this.n33_1;
981
- if (!(($mask0 & 64) === 0))
982
- operators = this.o33_1;
983
- if (!(($mask0 & 128) === 0))
984
- inputChannels = this.p33_1;
985
- if (!(($mask0 & 256) === 0))
986
- outputChannels = this.q33_1;
987
- if (!(($mask0 & 512) === 0))
988
- customData = this.r33_1;
989
- if (!(($mask0 & 1024) === 0))
990
- substitution = this.s33_1;
991
- if (!(($mask0 & 2048) === 0))
992
- query = this.t33_1;
993
- if (!(($mask0 & 4096) === 0))
994
- goals = this.u33_1;
995
- if (!(($mask0 & 8192) === 0))
996
- rules = this.v33_1;
997
- if (!(($mask0 & 16384) === 0))
998
- primitives = this.w33_1;
999
- if (!(($mask0 & 32768) === 0))
1000
- startTime = this.x33_1;
1001
- if (!(($mask0 & 65536) === 0))
1002
- maxDuration = this.y33_1;
1003
- if (!(($mask0 & 131072) === 0))
1004
- choicePoints = this.z33_1;
1005
- if (!(($mask0 & 262144) === 0))
1006
- parent = this.a34_1;
1007
- if (!(($mask0 & 524288) === 0))
1008
- depth = this.b34_1;
1009
- if (!(($mask0 & 1048576) === 0))
1010
- step = this.c34_1;
1011
- if (!(($mask0 & 2097152) === 0))
1012
- relevantVariables = this.d34_1;
1013
- return this.b37(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
1014
- };
1015
- ClassicExecutionContext.prototype.hashCode = function () {
1016
- var result = this.i33_1 == null ? 0 : this.i33_1.hashCode();
1017
- result = imul(result, 31) + hashCode(this.j33_1) | 0;
1018
- result = imul(result, 31) + hashCode(this.k33_1) | 0;
1019
- result = imul(result, 31) + this.l33_1.hashCode() | 0;
1020
- result = imul(result, 31) + hashCode(this.m33_1) | 0;
1021
- result = imul(result, 31) + hashCode(this.n33_1) | 0;
1022
- result = imul(result, 31) + this.o33_1.hashCode() | 0;
1023
- result = imul(result, 31) + hashCode(this.p33_1) | 0;
1024
- result = imul(result, 31) + hashCode(this.q33_1) | 0;
1025
- result = imul(result, 31) + this.r33_1.hashCode() | 0;
1026
- result = imul(result, 31) + hashCode(this.s33_1) | 0;
1027
- result = imul(result, 31) + this.t33_1.hashCode() | 0;
1028
- result = imul(result, 31) + hashCode(this.u33_1) | 0;
1029
- result = imul(result, 31) + hashCode(this.v33_1) | 0;
1030
- result = imul(result, 31) + hashCode(this.w33_1) | 0;
1031
- result = imul(result, 31) + this.x33_1.hashCode() | 0;
1032
- result = imul(result, 31) + this.y33_1.hashCode() | 0;
1033
- result = imul(result, 31) + (this.z33_1 == null ? 0 : hashCode(this.z33_1)) | 0;
1034
- result = imul(result, 31) + (this.a34_1 == null ? 0 : this.a34_1.hashCode()) | 0;
1035
- result = imul(result, 31) + this.b34_1 | 0;
1036
- result = imul(result, 31) + this.c34_1.hashCode() | 0;
1037
- result = imul(result, 31) + hashCode(this.d34_1) | 0;
966
+ protoOf(ClassicExecutionContext).v32 = function (procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables, $super) {
967
+ procedure = procedure === VOID ? this.e31_1 : procedure;
968
+ unificator = unificator === VOID ? this.f31_1 : unificator;
969
+ libraries = libraries === VOID ? this.g31_1 : libraries;
970
+ flags = flags === VOID ? this.h31_1 : flags;
971
+ staticKb = staticKb === VOID ? this.i31_1 : staticKb;
972
+ dynamicKb = dynamicKb === VOID ? this.j31_1 : dynamicKb;
973
+ operators = operators === VOID ? this.k31_1 : operators;
974
+ inputChannels = inputChannels === VOID ? this.l31_1 : inputChannels;
975
+ outputChannels = outputChannels === VOID ? this.m31_1 : outputChannels;
976
+ customData = customData === VOID ? this.n31_1 : customData;
977
+ substitution = substitution === VOID ? this.o31_1 : substitution;
978
+ query = query === VOID ? this.p31_1 : query;
979
+ goals = goals === VOID ? this.q31_1 : goals;
980
+ rules = rules === VOID ? this.r31_1 : rules;
981
+ primitives = primitives === VOID ? this.s31_1 : primitives;
982
+ startTime = startTime === VOID ? this.t31_1 : startTime;
983
+ maxDuration = maxDuration === VOID ? this.u31_1 : maxDuration;
984
+ choicePoints = choicePoints === VOID ? this.v31_1 : choicePoints;
985
+ parent = parent === VOID ? this.w31_1 : parent;
986
+ depth = depth === VOID ? this.x31_1 : depth;
987
+ step = step === VOID ? this.y31_1 : step;
988
+ relevantVariables = relevantVariables === VOID ? this.z31_1 : relevantVariables;
989
+ return $super === VOID ? this.x34(procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables) : $super.x34.call(this, procedure, unificator, libraries, flags, staticKb, dynamicKb, operators, inputChannels, outputChannels, customData, substitution, query, goals, rules, primitives, startTime, maxDuration, choicePoints, parent, depth, step, relevantVariables);
990
+ };
991
+ protoOf(ClassicExecutionContext).hashCode = function () {
992
+ var result = this.e31_1 == null ? 0 : this.e31_1.hashCode();
993
+ result = imul(result, 31) + hashCode(this.f31_1) | 0;
994
+ result = imul(result, 31) + hashCode(this.g31_1) | 0;
995
+ result = imul(result, 31) + this.h31_1.hashCode() | 0;
996
+ result = imul(result, 31) + hashCode(this.i31_1) | 0;
997
+ result = imul(result, 31) + hashCode(this.j31_1) | 0;
998
+ result = imul(result, 31) + this.k31_1.hashCode() | 0;
999
+ result = imul(result, 31) + hashCode(this.l31_1) | 0;
1000
+ result = imul(result, 31) + hashCode(this.m31_1) | 0;
1001
+ result = imul(result, 31) + this.n31_1.hashCode() | 0;
1002
+ result = imul(result, 31) + hashCode(this.o31_1) | 0;
1003
+ result = imul(result, 31) + this.p31_1.hashCode() | 0;
1004
+ result = imul(result, 31) + hashCode(this.q31_1) | 0;
1005
+ result = imul(result, 31) + hashCode(this.r31_1) | 0;
1006
+ result = imul(result, 31) + hashCode(this.s31_1) | 0;
1007
+ result = imul(result, 31) + this.t31_1.hashCode() | 0;
1008
+ result = imul(result, 31) + this.u31_1.hashCode() | 0;
1009
+ result = imul(result, 31) + (this.v31_1 == null ? 0 : hashCode(this.v31_1)) | 0;
1010
+ result = imul(result, 31) + (this.w31_1 == null ? 0 : this.w31_1.hashCode()) | 0;
1011
+ result = imul(result, 31) + this.x31_1 | 0;
1012
+ result = imul(result, 31) + this.y31_1.hashCode() | 0;
1013
+ result = imul(result, 31) + hashCode(this.z31_1) | 0;
1038
1014
  return result;
1039
1015
  };
1040
- ClassicExecutionContext.prototype.equals = function (other) {
1016
+ protoOf(ClassicExecutionContext).equals = function (other) {
1041
1017
  if (this === other)
1042
1018
  return true;
1043
1019
  if (!(other instanceof ClassicExecutionContext))
1044
1020
  return false;
1045
1021
  var tmp0_other_with_cast = other instanceof ClassicExecutionContext ? other : THROW_CCE();
1046
- if (!equals(this.i33_1, tmp0_other_with_cast.i33_1))
1022
+ if (!equals(this.e31_1, tmp0_other_with_cast.e31_1))
1047
1023
  return false;
1048
- if (!equals(this.j33_1, tmp0_other_with_cast.j33_1))
1024
+ if (!equals(this.f31_1, tmp0_other_with_cast.f31_1))
1049
1025
  return false;
1050
- if (!equals(this.k33_1, tmp0_other_with_cast.k33_1))
1026
+ if (!equals(this.g31_1, tmp0_other_with_cast.g31_1))
1051
1027
  return false;
1052
- if (!this.l33_1.equals(tmp0_other_with_cast.l33_1))
1028
+ if (!this.h31_1.equals(tmp0_other_with_cast.h31_1))
1053
1029
  return false;
1054
- if (!equals(this.m33_1, tmp0_other_with_cast.m33_1))
1030
+ if (!equals(this.i31_1, tmp0_other_with_cast.i31_1))
1055
1031
  return false;
1056
- if (!equals(this.n33_1, tmp0_other_with_cast.n33_1))
1032
+ if (!equals(this.j31_1, tmp0_other_with_cast.j31_1))
1057
1033
  return false;
1058
- if (!this.o33_1.equals(tmp0_other_with_cast.o33_1))
1034
+ if (!this.k31_1.equals(tmp0_other_with_cast.k31_1))
1059
1035
  return false;
1060
- if (!equals(this.p33_1, tmp0_other_with_cast.p33_1))
1036
+ if (!equals(this.l31_1, tmp0_other_with_cast.l31_1))
1061
1037
  return false;
1062
- if (!equals(this.q33_1, tmp0_other_with_cast.q33_1))
1038
+ if (!equals(this.m31_1, tmp0_other_with_cast.m31_1))
1063
1039
  return false;
1064
- if (!this.r33_1.equals(tmp0_other_with_cast.r33_1))
1040
+ if (!this.n31_1.equals(tmp0_other_with_cast.n31_1))
1065
1041
  return false;
1066
- if (!equals(this.s33_1, tmp0_other_with_cast.s33_1))
1042
+ if (!equals(this.o31_1, tmp0_other_with_cast.o31_1))
1067
1043
  return false;
1068
- if (!this.t33_1.equals(tmp0_other_with_cast.t33_1))
1044
+ if (!this.p31_1.equals(tmp0_other_with_cast.p31_1))
1069
1045
  return false;
1070
- if (!equals(this.u33_1, tmp0_other_with_cast.u33_1))
1046
+ if (!equals(this.q31_1, tmp0_other_with_cast.q31_1))
1071
1047
  return false;
1072
- if (!equals(this.v33_1, tmp0_other_with_cast.v33_1))
1048
+ if (!equals(this.r31_1, tmp0_other_with_cast.r31_1))
1073
1049
  return false;
1074
- if (!equals(this.w33_1, tmp0_other_with_cast.w33_1))
1050
+ if (!equals(this.s31_1, tmp0_other_with_cast.s31_1))
1075
1051
  return false;
1076
- if (!this.x33_1.equals(tmp0_other_with_cast.x33_1))
1052
+ if (!this.t31_1.equals(tmp0_other_with_cast.t31_1))
1077
1053
  return false;
1078
- if (!this.y33_1.equals(tmp0_other_with_cast.y33_1))
1054
+ if (!this.u31_1.equals(tmp0_other_with_cast.u31_1))
1079
1055
  return false;
1080
- if (!equals(this.z33_1, tmp0_other_with_cast.z33_1))
1056
+ if (!equals(this.v31_1, tmp0_other_with_cast.v31_1))
1081
1057
  return false;
1082
- if (!equals(this.a34_1, tmp0_other_with_cast.a34_1))
1058
+ if (!equals(this.w31_1, tmp0_other_with_cast.w31_1))
1083
1059
  return false;
1084
- if (!(this.b34_1 === tmp0_other_with_cast.b34_1))
1060
+ if (!(this.x31_1 === tmp0_other_with_cast.x31_1))
1085
1061
  return false;
1086
- if (!this.c34_1.equals(tmp0_other_with_cast.c34_1))
1062
+ if (!this.y31_1.equals(tmp0_other_with_cast.y31_1))
1087
1063
  return false;
1088
- if (!equals(this.d34_1, tmp0_other_with_cast.d34_1))
1064
+ if (!equals(this.z31_1, tmp0_other_with_cast.z31_1))
1089
1065
  return false;
1090
1066
  return true;
1091
1067
  };
1092
1068
  function currentGoal$factory() {
1093
1069
  return getPropertyCallableRef('currentGoal', 1, KProperty1, function (receiver) {
1094
- return receiver.w36();
1070
+ return receiver.s34();
1095
1071
  }, null);
1096
1072
  }
1097
1073
  function interestingVariables$factory() {
@@ -1101,107 +1077,74 @@
1101
1077
  }
1102
1078
  function logicStackTrace$factory() {
1103
1079
  return getPropertyCallableRef('logicStackTrace', 1, KProperty1, function (receiver) {
1104
- return receiver.p1u();
1080
+ return receiver.s1t();
1105
1081
  }, null);
1106
1082
  }
1107
1083
  function ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this) {
1084
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
1085
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
1086
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
1087
+ initialStaticKb = initialStaticKb === VOID ? Companion_getInstance_2().empty(unificator) : initialStaticKb;
1088
+ initialDynamicKb = initialDynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : initialDynamicKb;
1089
+ inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
1090
+ outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
1091
+ trustKb = trustKb === VOID ? false : trustKb;
1108
1092
  AbstractClassicSolver.call($this, unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb);
1109
1093
  ClassicSolver.call($this);
1110
1094
  return $this;
1111
1095
  }
1112
1096
  function ClassicSolver_init_$Create$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb) {
1113
- return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, Object.create(ClassicSolver.prototype));
1114
- }
1115
- function ClassicSolver_init_$Init$_0(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker, $this) {
1116
- if (!(($mask0 & 1) === 0))
1117
- unificator = Companion_getInstance_3().e1l();
1118
- if (!(($mask0 & 2) === 0))
1119
- libraries = Companion_getInstance_4().empty();
1120
- if (!(($mask0 & 4) === 0))
1121
- flags = Companion_getInstance_5().empty();
1122
- if (!(($mask0 & 8) === 0))
1123
- initialStaticKb = Companion_getInstance_1().empty(unificator);
1124
- if (!(($mask0 & 16) === 0))
1125
- initialDynamicKb = Companion_getInstance_2().empty(unificator);
1126
- if (!(($mask0 & 32) === 0)) {
1127
- var tmp = Companion_getInstance();
1128
- inputChannels = tmp.s1z(null, 1, null);
1129
- }
1130
- if (!(($mask0 & 64) === 0)) {
1131
- var tmp_0 = Companion_getInstance_0();
1132
- outputChannels = tmp_0.t1z(null, null, null, 7, null);
1133
- }
1134
- if (!(($mask0 & 128) === 0))
1135
- trustKb = false;
1136
- ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $this);
1137
- return $this;
1138
- }
1139
- function ClassicSolver_init_$Create$_0(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker) {
1140
- return ClassicSolver_init_$Init$_0(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker, Object.create(ClassicSolver.prototype));
1141
- }
1142
- function ClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
1097
+ return ClassicSolver_init_$Init$(unificator, libraries, flags, initialStaticKb, initialDynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(ClassicSolver)));
1098
+ }
1099
+ function ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
1100
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
1101
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
1102
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
1103
+ staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
1104
+ dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
1105
+ stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
1106
+ stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
1107
+ stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
1108
+ warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
1109
+ trustKb = trustKb === VOID ? false : trustKb;
1143
1110
  AbstractClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
1144
1111
  ClassicSolver.call($this);
1145
1112
  return $this;
1146
1113
  }
1147
- function ClassicSolver_init_$Init$_2(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker, $this) {
1148
- if (!(($mask0 & 1) === 0))
1149
- unificator = Companion_getInstance_3().e1l();
1150
- if (!(($mask0 & 2) === 0))
1151
- libraries = Companion_getInstance_4().empty();
1152
- if (!(($mask0 & 4) === 0))
1153
- flags = Companion_getInstance_5().empty();
1154
- if (!(($mask0 & 8) === 0))
1155
- staticKb = Companion_getInstance_1().empty(unificator);
1156
- if (!(($mask0 & 16) === 0))
1157
- dynamicKb = Companion_getInstance_2().empty(unificator);
1158
- if (!(($mask0 & 32) === 0))
1159
- stdIn = Companion_getInstance_12().stdIn();
1160
- if (!(($mask0 & 64) === 0))
1161
- stdOut = Companion_getInstance_13().stdOut();
1162
- if (!(($mask0 & 128) === 0))
1163
- stdErr = Companion_getInstance_13().stdErr();
1164
- if (!(($mask0 & 256) === 0))
1165
- warnings = Companion_getInstance_13().warning();
1166
- if (!(($mask0 & 512) === 0))
1167
- trustKb = false;
1168
- ClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
1169
- return $this;
1170
- }
1171
- function ClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker) {
1172
- return ClassicSolver_init_$Init$_2(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker, Object.create(ClassicSolver.prototype));
1114
+ function ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
1115
+ return ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(ClassicSolver)));
1173
1116
  }
1174
- ClassicSolver.prototype.k34 = function (initialState, onStateTransition) {
1175
- return Companion_getInstance_22().d37(initialState, onStateTransition);
1117
+ protoOf(ClassicSolver).g32 = function (initialState, onStateTransition) {
1118
+ return Companion_getInstance_22().z34(initialState, onStateTransition);
1176
1119
  };
1177
- ClassicSolver.prototype.m1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1178
- return ClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, false, 512, null);
1120
+ protoOf(ClassicSolver).m1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1121
+ return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1179
1122
  };
1180
- ClassicSolver.prototype.w1s = function () {
1181
- return this.u1x(null, null, null, null, null, null, null, null, null, 511, null);
1123
+ protoOf(ClassicSolver).z1r = function () {
1124
+ return this.copy();
1182
1125
  };
1183
- ClassicSolver.prototype.clone = function () {
1184
- return this.w1s();
1126
+ protoOf(ClassicSolver).clone = function () {
1127
+ return this.z1r();
1185
1128
  };
1186
1129
  function ClassicSolver() {
1187
1130
  }
1188
1131
  function ClassicSolverFactory() {
1189
1132
  ClassicSolverFactory_instance = this;
1190
1133
  }
1191
- ClassicSolverFactory.prototype.a1y = function () {
1134
+ protoOf(ClassicSolverFactory).u1w = function () {
1192
1135
  return DefaultBuiltins_getInstance();
1193
1136
  };
1194
- ClassicSolverFactory.prototype.q1y = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
1195
- return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, false, 128, null);
1137
+ protoOf(ClassicSolverFactory).f1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
1138
+ return ClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
1196
1139
  };
1197
- ClassicSolverFactory.prototype.s1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1198
- return ClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, false, 512, null);
1140
+ protoOf(ClassicSolverFactory).l1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1141
+ return ClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1199
1142
  };
1200
- ClassicSolverFactory.prototype.w1y = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1201
- return MutableClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, false, 512, null);
1143
+ protoOf(ClassicSolverFactory).n1x = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1144
+ return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1202
1145
  };
1203
- ClassicSolverFactory.prototype.a1z = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
1204
- return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs, false, 128, null);
1146
+ protoOf(ClassicSolverFactory).p1x = function (unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs) {
1147
+ return MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputs, outputs);
1205
1148
  };
1206
1149
  var ClassicSolverFactory_instance;
1207
1150
  function ClassicSolverFactory_getInstance() {
@@ -1210,419 +1153,300 @@
1210
1153
  return ClassicSolverFactory_instance;
1211
1154
  }
1212
1155
  function MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this) {
1156
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
1157
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
1158
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
1159
+ staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
1160
+ dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
1161
+ inputChannels = inputChannels === VOID ? Companion_getInstance_6().fromStandard() : inputChannels;
1162
+ outputChannels = outputChannels === VOID ? Companion_getInstance_7().fromStandard() : outputChannels;
1163
+ trustKb = trustKb === VOID ? false : trustKb;
1213
1164
  ClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this);
1214
1165
  MutableClassicSolver.call($this);
1215
1166
  return $this;
1216
1167
  }
1217
1168
  function MutableClassicSolver_init_$Create$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb) {
1218
- return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, Object.create(MutableClassicSolver.prototype));
1219
- }
1220
- function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker, $this) {
1221
- if (!(($mask0 & 1) === 0))
1222
- unificator = Companion_getInstance_3().e1l();
1223
- if (!(($mask0 & 2) === 0))
1224
- libraries = Companion_getInstance_4().empty();
1225
- if (!(($mask0 & 4) === 0))
1226
- flags = Companion_getInstance_5().empty();
1227
- if (!(($mask0 & 8) === 0))
1228
- staticKb = Companion_getInstance_1().empty(unificator);
1229
- if (!(($mask0 & 16) === 0))
1230
- dynamicKb = Companion_getInstance_2().empty(unificator);
1231
- if (!(($mask0 & 32) === 0)) {
1232
- var tmp = Companion_getInstance();
1233
- inputChannels = tmp.s1z(null, 1, null);
1234
- }
1235
- if (!(($mask0 & 64) === 0)) {
1236
- var tmp_0 = Companion_getInstance_0();
1237
- outputChannels = tmp_0.t1z(null, null, null, 7, null);
1238
- }
1239
- if (!(($mask0 & 128) === 0))
1240
- trustKb = false;
1241
- MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $this);
1242
- return $this;
1243
- }
1244
- function MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker) {
1245
- return MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, $mask0, $marker, Object.create(MutableClassicSolver.prototype));
1246
- }
1247
- function MutableClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
1248
- ClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
1169
+ return MutableClassicSolver_init_$Init$(unificator, libraries, flags, staticKb, dynamicKb, inputChannels, outputChannels, trustKb, objectCreate(protoOf(MutableClassicSolver)));
1170
+ }
1171
+ function MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this) {
1172
+ unificator = unificator === VOID ? Companion_getInstance().h1k() : unificator;
1173
+ libraries = libraries === VOID ? Companion_getInstance_0().empty() : libraries;
1174
+ flags = flags === VOID ? Companion_getInstance_1().empty() : flags;
1175
+ staticKb = staticKb === VOID ? Companion_getInstance_2().empty(unificator) : staticKb;
1176
+ dynamicKb = dynamicKb === VOID ? Companion_getInstance_3().empty(unificator) : dynamicKb;
1177
+ stdIn = stdIn === VOID ? Companion_getInstance_4().stdIn() : stdIn;
1178
+ stdOut = stdOut === VOID ? Companion_getInstance_5().stdOut() : stdOut;
1179
+ stdErr = stdErr === VOID ? Companion_getInstance_5().stdErr() : stdErr;
1180
+ warnings = warnings === VOID ? Companion_getInstance_5().warning() : warnings;
1181
+ trustKb = trustKb === VOID ? false : trustKb;
1182
+ ClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
1249
1183
  MutableClassicSolver.call($this);
1250
1184
  return $this;
1251
1185
  }
1252
- function MutableClassicSolver_init_$Init$_2(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker, $this) {
1253
- if (!(($mask0 & 1) === 0))
1254
- unificator = Companion_getInstance_3().e1l();
1255
- if (!(($mask0 & 2) === 0))
1256
- libraries = Companion_getInstance_4().empty();
1257
- if (!(($mask0 & 4) === 0))
1258
- flags = Companion_getInstance_5().empty();
1259
- if (!(($mask0 & 8) === 0))
1260
- staticKb = Companion_getInstance_1().empty(unificator);
1261
- if (!(($mask0 & 16) === 0))
1262
- dynamicKb = Companion_getInstance_2().empty(unificator);
1263
- if (!(($mask0 & 32) === 0))
1264
- stdIn = Companion_getInstance_12().stdIn();
1265
- if (!(($mask0 & 64) === 0))
1266
- stdOut = Companion_getInstance_13().stdOut();
1267
- if (!(($mask0 & 128) === 0))
1268
- stdErr = Companion_getInstance_13().stdErr();
1269
- if (!(($mask0 & 256) === 0))
1270
- warnings = Companion_getInstance_13().warning();
1271
- if (!(($mask0 & 512) === 0))
1272
- trustKb = false;
1273
- MutableClassicSolver_init_$Init$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $this);
1274
- return $this;
1275
- }
1276
- function MutableClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker) {
1277
- return MutableClassicSolver_init_$Init$_2(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, $mask0, $marker, Object.create(MutableClassicSolver.prototype));
1186
+ function MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb) {
1187
+ return MutableClassicSolver_init_$Init$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, trustKb, objectCreate(protoOf(MutableClassicSolver)));
1278
1188
  }
1279
1189
  function MutableClassicSolver$loadLibrary$lambda($library) {
1280
1190
  return function ($this$updateContext) {
1281
- var newRuntime = $this$updateContext.k33_1.plusLibrary($library);
1282
- var tmp = $this$updateContext.o33_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, [])));
1283
- var tmp_0 = new Long(0, 0);
1284
- var tmp_1 = new Long(0, 0);
1285
- var tmp_2 = new Long(0, 0);
1286
- return $this$updateContext.z34(null, null, newRuntime, null, null, null, tmp, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194235, null);
1191
+ var newRuntime = $this$updateContext.g31_1.plusLibrary($library);
1192
+ return $this$updateContext.v32(VOID, VOID, newRuntime, VOID, VOID, VOID, $this$updateContext.k31_1.plusOperatorSet(toOperatorSet(getAllOperators(newRuntime, []))));
1287
1193
  };
1288
1194
  }
1289
1195
  function MutableClassicSolver$unloadLibrary$lambda($library) {
1290
1196
  return function ($this$updateContext) {
1291
- var newRuntime = $this$updateContext.k33_1.plusLibrary($library);
1292
- var tmp = toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.m33_1, $this$updateContext.n33_1]));
1293
- var tmp_0 = new Long(0, 0);
1294
- var tmp_1 = new Long(0, 0);
1295
- var tmp_2 = new Long(0, 0);
1296
- return $this$updateContext.z34(null, null, newRuntime, null, null, null, tmp, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194235, null);
1197
+ var newRuntime = $this$updateContext.g31_1.plusLibrary($library);
1198
+ return $this$updateContext.v32(VOID, VOID, newRuntime, VOID, VOID, VOID, toOperatorSet(getAllOperators(newRuntime, [$this$updateContext.i31_1, $this$updateContext.j31_1])));
1297
1199
  };
1298
1200
  }
1299
1201
  function MutableClassicSolver$setRuntime$lambda($libraries) {
1300
1202
  return function ($this$updateContext) {
1301
- var tmp = toOperatorSet(getAllOperators($libraries, [$this$updateContext.m33_1, $this$updateContext.n33_1]));
1302
- var tmp_0 = new Long(0, 0);
1303
- var tmp_1 = new Long(0, 0);
1304
- var tmp_2 = new Long(0, 0);
1305
- return $this$updateContext.z34(null, null, $libraries, null, null, null, tmp, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194235, null);
1203
+ return $this$updateContext.v32(VOID, VOID, $libraries, VOID, VOID, VOID, toOperatorSet(getAllOperators($libraries, [$this$updateContext.i31_1, $this$updateContext.j31_1])));
1306
1204
  };
1307
1205
  }
1308
1206
  function MutableClassicSolver$resetStaticKb$lambda($this$updateContext) {
1309
- var tmp = Companion_getInstance_1().empty($this$updateContext.j33_1);
1310
- var tmp_0 = toOperatorSet(getAllOperators($this$updateContext.k33_1, [$this$updateContext.n33_1]));
1311
- var tmp_1 = new Long(0, 0);
1312
- var tmp_2 = new Long(0, 0);
1313
- var tmp_3 = new Long(0, 0);
1314
- return $this$updateContext.z34(null, null, null, null, tmp, null, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194223, null);
1207
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, Companion_getInstance_2().empty($this$updateContext.f31_1), VOID, toOperatorSet(getAllOperators($this$updateContext.g31_1, [$this$updateContext.j31_1])));
1315
1208
  }
1316
1209
  function MutableClassicSolver$resetDynamicKb$lambda($this$updateContext) {
1317
- var tmp = Companion_getInstance_2().empty($this$updateContext.j33_1);
1318
- var tmp_0 = toOperatorSet(getAllOperators($this$updateContext.k33_1, [$this$updateContext.m33_1]));
1319
- var tmp_1 = new Long(0, 0);
1320
- var tmp_2 = new Long(0, 0);
1321
- var tmp_3 = new Long(0, 0);
1322
- return $this$updateContext.z34(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
1210
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, Companion_getInstance_3().empty($this$updateContext.f31_1), toOperatorSet(getAllOperators($this$updateContext.g31_1, [$this$updateContext.i31_1])));
1323
1211
  }
1324
1212
  function MutableClassicSolver$assertA$lambda($clause) {
1325
1213
  return function ($this$updateContext) {
1326
- var tmp = $this$updateContext.n33_1.m1s($clause);
1327
- var tmp_0 = $this$updateContext.o33_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause))));
1328
- var tmp_1 = new Long(0, 0);
1329
- var tmp_2 = new Long(0, 0);
1330
- var tmp_3 = new Long(0, 0);
1331
- return $this$updateContext.z34(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
1214
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.p1r($clause), $this$updateContext.k31_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
1332
1215
  };
1333
1216
  }
1334
1217
  function MutableClassicSolver$assertA$lambda_0($fact) {
1335
1218
  return function ($this$updateContext) {
1336
- var tmp = $this$updateContext.n33_1.z1s($fact);
1337
- var tmp_0 = new Long(0, 0);
1338
- var tmp_1 = new Long(0, 0);
1339
- var tmp_2 = new Long(0, 0);
1340
- return $this$updateContext.z34(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
1219
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.c1s($fact));
1341
1220
  };
1342
1221
  }
1343
1222
  function MutableClassicSolver$assertZ$lambda($clause) {
1344
1223
  return function ($this$updateContext) {
1345
- var tmp = $this$updateContext.n33_1.q1s($clause);
1346
- var tmp_0 = $this$updateContext.o33_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause))));
1347
- var tmp_1 = new Long(0, 0);
1348
- var tmp_2 = new Long(0, 0);
1349
- var tmp_3 = new Long(0, 0);
1350
- return $this$updateContext.z34(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
1224
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.t1r($clause), $this$updateContext.k31_1.plusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
1351
1225
  };
1352
1226
  }
1353
1227
  function MutableClassicSolver$assertZ$lambda_0($fact) {
1354
1228
  return function ($this$updateContext) {
1355
- var tmp = $this$updateContext.n33_1.a1t($fact);
1356
- var tmp_0 = new Long(0, 0);
1357
- var tmp_1 = new Long(0, 0);
1358
- var tmp_2 = new Long(0, 0);
1359
- return $this$updateContext.z34(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
1229
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $this$updateContext.j31_1.d1s($fact));
1360
1230
  };
1361
1231
  }
1362
1232
  function MutableClassicSolver$retract$lambda($result, $clause) {
1363
1233
  return function ($this$updateContext) {
1364
- var tmp = $result.e1s().toMutableTheory();
1365
- var tmp_0 = $this$updateContext.o33_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause))));
1366
- var tmp_1 = new Long(0, 0);
1367
- var tmp_2 = new Long(0, 0);
1368
- var tmp_3 = new Long(0, 0);
1369
- return $this$updateContext.z34(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
1234
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory(), $this$updateContext.k31_1.minusOperatorSet(toOperatorSet(getAllOperators_0(listOf($clause)))));
1370
1235
  };
1371
1236
  }
1372
1237
  function MutableClassicSolver$retract$lambda_0($result) {
1373
1238
  return function ($this$updateContext) {
1374
- var tmp = $result.e1s().toMutableTheory();
1375
- var tmp_0 = new Long(0, 0);
1376
- var tmp_1 = new Long(0, 0);
1377
- var tmp_2 = new Long(0, 0);
1378
- return $this$updateContext.z34(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
1239
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory());
1379
1240
  };
1380
1241
  }
1381
1242
  function MutableClassicSolver$retractAll$lambda($result) {
1382
1243
  return function ($this$updateContext) {
1383
- var tmp = $result.e1s().toMutableTheory();
1384
- var tmp_0 = $this$updateContext.o33_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.e1s())));
1385
- var tmp_1 = new Long(0, 0);
1386
- var tmp_2 = new Long(0, 0);
1387
- var tmp_3 = new Long(0, 0);
1388
- return $this$updateContext.z34(null, null, null, null, null, tmp, tmp_0, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 4194207, null);
1244
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory(), $this$updateContext.k31_1.minusOperatorSet(toOperatorSet(getAllOperators_0($result.h1r()))));
1389
1245
  };
1390
1246
  }
1391
1247
  function MutableClassicSolver$retractAll$lambda_0($result) {
1392
1248
  return function ($this$updateContext) {
1393
- var tmp = $result.e1s().toMutableTheory();
1394
- var tmp_0 = new Long(0, 0);
1395
- var tmp_1 = new Long(0, 0);
1396
- var tmp_2 = new Long(0, 0);
1397
- return $this$updateContext.z34(null, null, null, null, null, tmp, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194271, null);
1249
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, $result.h1r().toMutableTheory());
1398
1250
  };
1399
1251
  }
1400
1252
  function MutableClassicSolver$setFlag$lambda($name, $value) {
1401
1253
  return function ($this$updateContext) {
1402
- var tmp = $this$updateContext.l33_1.set($name, $value);
1403
- var tmp_0 = new Long(0, 0);
1404
- var tmp_1 = new Long(0, 0);
1405
- var tmp_2 = new Long(0, 0);
1406
- return $this$updateContext.z34(null, null, null, tmp, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194295, null);
1254
+ return $this$updateContext.v32(VOID, VOID, VOID, $this$updateContext.h31_1.set($name, $value));
1407
1255
  };
1408
1256
  }
1409
1257
  function MutableClassicSolver$setFlag$lambda_0($flag) {
1410
1258
  return function ($this$updateContext) {
1411
- var tmp = $this$updateContext.l33_1.plusPair($flag);
1412
- var tmp_0 = new Long(0, 0);
1413
- var tmp_1 = new Long(0, 0);
1414
- var tmp_2 = new Long(0, 0);
1415
- return $this$updateContext.z34(null, null, null, tmp, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194295, null);
1259
+ return $this$updateContext.v32(VOID, VOID, VOID, $this$updateContext.h31_1.plusPair($flag));
1416
1260
  };
1417
1261
  }
1418
1262
  function MutableClassicSolver$setFlag$lambda_1($flag) {
1419
1263
  return function ($this$updateContext) {
1420
- var tmp = $this$updateContext.l33_1.plusNotable($flag);
1421
- var tmp_0 = new Long(0, 0);
1422
- var tmp_1 = new Long(0, 0);
1423
- var tmp_2 = new Long(0, 0);
1424
- return $this$updateContext.z34(null, null, null, tmp, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194295, null);
1264
+ return $this$updateContext.v32(VOID, VOID, VOID, $this$updateContext.h31_1.plusNotable($flag));
1425
1265
  };
1426
1266
  }
1427
1267
  function MutableClassicSolver$setStandardInput$lambda($stdIn) {
1428
1268
  return function ($this$updateContext) {
1429
- Companion_getInstance();
1430
- var tmp = $this$updateContext.p33_1.plus(to('stdin', $stdIn));
1431
- var tmp_0 = new Long(0, 0);
1432
- var tmp_1 = new Long(0, 0);
1433
- var tmp_2 = new Long(0, 0);
1434
- return $this$updateContext.z34(null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194175, null);
1269
+ Companion_getInstance_6();
1270
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.l31_1.plus(to('stdin', $stdIn)));
1435
1271
  };
1436
1272
  }
1437
1273
  function MutableClassicSolver$setStandardError$lambda($stdErr) {
1438
1274
  return function ($this$updateContext) {
1439
- Companion_getInstance_0();
1440
- var tmp = $this$updateContext.q33_1.plus(to('stderr', $stdErr));
1441
- var tmp_0 = new Long(0, 0);
1442
- var tmp_1 = new Long(0, 0);
1443
- var tmp_2 = new Long(0, 0);
1444
- return $this$updateContext.z34(null, null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194047, null);
1275
+ Companion_getInstance_7();
1276
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.m31_1.plus(to('stderr', $stdErr)));
1445
1277
  };
1446
1278
  }
1447
1279
  function MutableClassicSolver$setStandardOutput$lambda($stdOut) {
1448
1280
  return function ($this$updateContext) {
1449
- Companion_getInstance_0();
1450
- var tmp = $this$updateContext.q33_1.plus(to('stdout', $stdOut));
1451
- var tmp_0 = new Long(0, 0);
1452
- var tmp_1 = new Long(0, 0);
1453
- var tmp_2 = new Long(0, 0);
1454
- return $this$updateContext.z34(null, null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194047, null);
1281
+ Companion_getInstance_7();
1282
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this$updateContext.m31_1.plus(to('stdout', $stdOut)));
1455
1283
  };
1456
1284
  }
1457
1285
  function MutableClassicSolver$setWarnings$lambda($warnings) {
1458
1286
  return function ($this$updateContext) {
1459
- var tmp = Companion_getInstance_0().u1z($this$updateContext.q33_1, $warnings);
1460
- var tmp_0 = new Long(0, 0);
1461
- var tmp_1 = new Long(0, 0);
1462
- var tmp_2 = new Long(0, 0);
1463
- return $this$updateContext.z34(null, null, null, null, null, null, null, null, tmp, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 4194047, null);
1287
+ return $this$updateContext.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_7().f1y($this$updateContext.m31_1, $warnings));
1464
1288
  };
1465
1289
  }
1466
- MutableClassicSolver.prototype.f37 = function (library) {
1467
- this.r2b(MutableClassicSolver$loadLibrary$lambda(library));
1290
+ protoOf(MutableClassicSolver).b35 = function (library) {
1291
+ this.x29(MutableClassicSolver$loadLibrary$lambda(library));
1468
1292
  };
1469
- MutableClassicSolver.prototype.loadLibrary = function (library) {
1470
- return this.f37(library);
1293
+ protoOf(MutableClassicSolver).loadLibrary = function (library) {
1294
+ return this.b35(library);
1471
1295
  };
1472
- MutableClassicSolver.prototype.g37 = function (library) {
1473
- this.r2b(MutableClassicSolver$unloadLibrary$lambda(library));
1296
+ protoOf(MutableClassicSolver).c35 = function (library) {
1297
+ this.x29(MutableClassicSolver$unloadLibrary$lambda(library));
1474
1298
  };
1475
- MutableClassicSolver.prototype.unloadLibrary = function (library) {
1476
- return this.g37(library);
1299
+ protoOf(MutableClassicSolver).unloadLibrary = function (library) {
1300
+ return this.c35(library);
1477
1301
  };
1478
- MutableClassicSolver.prototype.h37 = function (libraries) {
1479
- this.r2b(MutableClassicSolver$setRuntime$lambda(libraries));
1302
+ protoOf(MutableClassicSolver).d35 = function (libraries) {
1303
+ this.x29(MutableClassicSolver$setRuntime$lambda(libraries));
1480
1304
  };
1481
- MutableClassicSolver.prototype.setLibraries = function (libraries) {
1482
- return this.h37(libraries);
1305
+ protoOf(MutableClassicSolver).setLibraries = function (libraries) {
1306
+ return this.d35(libraries);
1483
1307
  };
1484
- MutableClassicSolver.prototype.i37 = function (theory) {
1485
- this.v2b(theory, null, false, false, 10, null);
1308
+ protoOf(MutableClassicSolver).e35 = function (theory) {
1309
+ this.b2a(theory, VOID, false);
1486
1310
  };
1487
- MutableClassicSolver.prototype.loadStaticKb = function (theory) {
1488
- return this.i37(theory);
1311
+ protoOf(MutableClassicSolver).loadStaticKb = function (theory) {
1312
+ return this.e35(theory);
1489
1313
  };
1490
- MutableClassicSolver.prototype.j37 = function (theory) {
1491
- this.v2b(theory, null, false, false, 14, null);
1314
+ protoOf(MutableClassicSolver).f35 = function (theory) {
1315
+ this.b2a(theory);
1492
1316
  };
1493
- MutableClassicSolver.prototype.appendStaticKb = function (theory) {
1494
- return this.j37(theory);
1317
+ protoOf(MutableClassicSolver).appendStaticKb = function (theory) {
1318
+ return this.f35(theory);
1495
1319
  };
1496
- MutableClassicSolver.prototype.k37 = function () {
1497
- this.r2b(MutableClassicSolver$resetStaticKb$lambda);
1320
+ protoOf(MutableClassicSolver).g35 = function () {
1321
+ this.x29(MutableClassicSolver$resetStaticKb$lambda);
1498
1322
  };
1499
- MutableClassicSolver.prototype.resetStaticKb = function () {
1500
- return this.k37();
1323
+ protoOf(MutableClassicSolver).resetStaticKb = function () {
1324
+ return this.g35();
1501
1325
  };
1502
- MutableClassicSolver.prototype.l37 = function (theory) {
1503
- this.v2b(null, theory, false, false, 5, null);
1326
+ protoOf(MutableClassicSolver).h35 = function (theory) {
1327
+ this.b2a(VOID, theory, VOID, false);
1504
1328
  };
1505
- MutableClassicSolver.prototype.loadDynamicKb = function (theory) {
1506
- return this.l37(theory);
1329
+ protoOf(MutableClassicSolver).loadDynamicKb = function (theory) {
1330
+ return this.h35(theory);
1507
1331
  };
1508
- MutableClassicSolver.prototype.m37 = function (theory) {
1509
- this.v2b(null, theory, false, false, 13, null);
1332
+ protoOf(MutableClassicSolver).i35 = function (theory) {
1333
+ this.b2a(VOID, theory);
1510
1334
  };
1511
- MutableClassicSolver.prototype.appendDynamicKb = function (theory) {
1512
- return this.m37(theory);
1335
+ protoOf(MutableClassicSolver).appendDynamicKb = function (theory) {
1336
+ return this.i35(theory);
1513
1337
  };
1514
- MutableClassicSolver.prototype.n37 = function () {
1515
- this.r2b(MutableClassicSolver$resetDynamicKb$lambda);
1338
+ protoOf(MutableClassicSolver).j35 = function () {
1339
+ this.x29(MutableClassicSolver$resetDynamicKb$lambda);
1516
1340
  };
1517
- MutableClassicSolver.prototype.resetDynamicKb = function () {
1518
- return this.n37();
1341
+ protoOf(MutableClassicSolver).resetDynamicKb = function () {
1342
+ return this.j35();
1519
1343
  };
1520
- MutableClassicSolver.prototype.t1m = function (clause) {
1521
- this.r2b(MutableClassicSolver$assertA$lambda(clause));
1344
+ protoOf(MutableClassicSolver).w1l = function (clause) {
1345
+ this.x29(MutableClassicSolver$assertA$lambda(clause));
1522
1346
  };
1523
- MutableClassicSolver.prototype.assertA = function (clause) {
1524
- return this.t1m(clause);
1347
+ protoOf(MutableClassicSolver).assertA = function (clause) {
1348
+ return this.w1l(clause);
1525
1349
  };
1526
- MutableClassicSolver.prototype.o37 = function (fact) {
1527
- this.r2b(MutableClassicSolver$assertA$lambda_0(fact));
1350
+ protoOf(MutableClassicSolver).k35 = function (fact) {
1351
+ this.x29(MutableClassicSolver$assertA$lambda_0(fact));
1528
1352
  };
1529
- MutableClassicSolver.prototype.assertAFact = function (fact) {
1530
- return this.o37(fact);
1353
+ protoOf(MutableClassicSolver).assertAFact = function (fact) {
1354
+ return this.k35(fact);
1531
1355
  };
1532
- MutableClassicSolver.prototype.t1l = function (clause) {
1533
- this.r2b(MutableClassicSolver$assertZ$lambda(clause));
1356
+ protoOf(MutableClassicSolver).w1k = function (clause) {
1357
+ this.x29(MutableClassicSolver$assertZ$lambda(clause));
1534
1358
  };
1535
- MutableClassicSolver.prototype.assertZ = function (clause) {
1536
- return this.t1l(clause);
1359
+ protoOf(MutableClassicSolver).assertZ = function (clause) {
1360
+ return this.w1k(clause);
1537
1361
  };
1538
- MutableClassicSolver.prototype.p37 = function (fact) {
1539
- this.r2b(MutableClassicSolver$assertZ$lambda_0(fact));
1362
+ protoOf(MutableClassicSolver).l35 = function (fact) {
1363
+ this.x29(MutableClassicSolver$assertZ$lambda_0(fact));
1540
1364
  };
1541
- MutableClassicSolver.prototype.assertZFact = function (fact) {
1542
- return this.p37(fact);
1365
+ protoOf(MutableClassicSolver).assertZFact = function (fact) {
1366
+ return this.l35(fact);
1543
1367
  };
1544
- MutableClassicSolver.prototype.b1t = function (clause) {
1545
- var result = this.w1u().retract(clause);
1546
- this.r2b(MutableClassicSolver$retract$lambda(result, clause));
1368
+ protoOf(MutableClassicSolver).e1s = function (clause) {
1369
+ var result = this.y1t().retract(clause);
1370
+ this.x29(MutableClassicSolver$retract$lambda(result, clause));
1547
1371
  return result;
1548
1372
  };
1549
- MutableClassicSolver.prototype.retract = function (clause) {
1550
- return this.b1t(clause);
1373
+ protoOf(MutableClassicSolver).retract = function (clause) {
1374
+ return this.e1s(clause);
1551
1375
  };
1552
- MutableClassicSolver.prototype.c1t = function (fact) {
1553
- var result = this.w1u().retractByHead(fact);
1554
- this.r2b(MutableClassicSolver$retract$lambda_0(result));
1376
+ protoOf(MutableClassicSolver).f1s = function (fact) {
1377
+ var result = this.y1t().retractByHead(fact);
1378
+ this.x29(MutableClassicSolver$retract$lambda_0(result));
1555
1379
  return result;
1556
1380
  };
1557
- MutableClassicSolver.prototype.retractByHead = function (fact) {
1558
- return this.c1t(fact);
1381
+ protoOf(MutableClassicSolver).retractByHead = function (fact) {
1382
+ return this.f1s(fact);
1559
1383
  };
1560
- MutableClassicSolver.prototype.z1l = function (clause) {
1561
- var result = this.w1u().retractAll(clause);
1562
- this.r2b(MutableClassicSolver$retractAll$lambda(result));
1384
+ protoOf(MutableClassicSolver).c1l = function (clause) {
1385
+ var result = this.y1t().retractAll(clause);
1386
+ this.x29(MutableClassicSolver$retractAll$lambda(result));
1563
1387
  return result;
1564
1388
  };
1565
- MutableClassicSolver.prototype.retractAll = function (clause) {
1566
- return this.z1l(clause);
1389
+ protoOf(MutableClassicSolver).retractAll = function (clause) {
1390
+ return this.c1l(clause);
1567
1391
  };
1568
- MutableClassicSolver.prototype.q37 = function (fact) {
1569
- var result = this.w1u().retractAllByHead(fact);
1570
- this.r2b(MutableClassicSolver$retractAll$lambda_0(result));
1392
+ protoOf(MutableClassicSolver).m35 = function (fact) {
1393
+ var result = this.y1t().retractAllByHead(fact);
1394
+ this.x29(MutableClassicSolver$retractAll$lambda_0(result));
1571
1395
  return result;
1572
1396
  };
1573
- MutableClassicSolver.prototype.retractAllBeHead = function (fact) {
1574
- return this.q37(fact);
1397
+ protoOf(MutableClassicSolver).retractAllBeHead = function (fact) {
1398
+ return this.m35(fact);
1575
1399
  };
1576
- MutableClassicSolver.prototype.r37 = function (name, value) {
1577
- this.r2b(MutableClassicSolver$setFlag$lambda(name, value));
1400
+ protoOf(MutableClassicSolver).n35 = function (name, value) {
1401
+ this.x29(MutableClassicSolver$setFlag$lambda(name, value));
1578
1402
  };
1579
- MutableClassicSolver.prototype.setFlag = function (name, value) {
1580
- return this.r37(name, value);
1403
+ protoOf(MutableClassicSolver).setFlag = function (name, value) {
1404
+ return this.n35(name, value);
1581
1405
  };
1582
- MutableClassicSolver.prototype.s37 = function (flag) {
1583
- this.r2b(MutableClassicSolver$setFlag$lambda_0(flag));
1406
+ protoOf(MutableClassicSolver).o35 = function (flag) {
1407
+ this.x29(MutableClassicSolver$setFlag$lambda_0(flag));
1584
1408
  };
1585
- MutableClassicSolver.prototype.setFlagPair = function (flag) {
1586
- return this.s37(flag);
1409
+ protoOf(MutableClassicSolver).setFlagPair = function (flag) {
1410
+ return this.o35(flag);
1587
1411
  };
1588
- MutableClassicSolver.prototype.t37 = function (flag) {
1589
- this.r2b(MutableClassicSolver$setFlag$lambda_1(flag));
1412
+ protoOf(MutableClassicSolver).p35 = function (flag) {
1413
+ this.x29(MutableClassicSolver$setFlag$lambda_1(flag));
1590
1414
  };
1591
- MutableClassicSolver.prototype.setFlagNotable = function (flag) {
1592
- return this.t37(flag);
1415
+ protoOf(MutableClassicSolver).setFlagNotable = function (flag) {
1416
+ return this.p35(flag);
1593
1417
  };
1594
- MutableClassicSolver.prototype.u37 = function (stdIn) {
1595
- this.r2b(MutableClassicSolver$setStandardInput$lambda(stdIn));
1418
+ protoOf(MutableClassicSolver).q35 = function (stdIn) {
1419
+ this.x29(MutableClassicSolver$setStandardInput$lambda(stdIn));
1596
1420
  };
1597
- MutableClassicSolver.prototype.setStandardInput = function (stdIn) {
1598
- return this.u37(stdIn);
1421
+ protoOf(MutableClassicSolver).setStandardInput = function (stdIn) {
1422
+ return this.q35(stdIn);
1599
1423
  };
1600
- MutableClassicSolver.prototype.v37 = function (stdErr) {
1601
- this.r2b(MutableClassicSolver$setStandardError$lambda(stdErr));
1424
+ protoOf(MutableClassicSolver).r35 = function (stdErr) {
1425
+ this.x29(MutableClassicSolver$setStandardError$lambda(stdErr));
1602
1426
  };
1603
- MutableClassicSolver.prototype.setStandardError = function (stdErr) {
1604
- return this.v37(stdErr);
1427
+ protoOf(MutableClassicSolver).setStandardError = function (stdErr) {
1428
+ return this.r35(stdErr);
1605
1429
  };
1606
- MutableClassicSolver.prototype.w37 = function (stdOut) {
1607
- this.r2b(MutableClassicSolver$setStandardOutput$lambda(stdOut));
1430
+ protoOf(MutableClassicSolver).s35 = function (stdOut) {
1431
+ this.x29(MutableClassicSolver$setStandardOutput$lambda(stdOut));
1608
1432
  };
1609
- MutableClassicSolver.prototype.setStandardOutput = function (stdOut) {
1610
- return this.w37(stdOut);
1433
+ protoOf(MutableClassicSolver).setStandardOutput = function (stdOut) {
1434
+ return this.s35(stdOut);
1611
1435
  };
1612
- MutableClassicSolver.prototype.x37 = function (warnings) {
1613
- this.r2b(MutableClassicSolver$setWarnings$lambda(warnings));
1436
+ protoOf(MutableClassicSolver).t35 = function (warnings) {
1437
+ this.x29(MutableClassicSolver$setWarnings$lambda(warnings));
1614
1438
  };
1615
- MutableClassicSolver.prototype.setWarnings = function (warnings) {
1616
- return this.x37(warnings);
1439
+ protoOf(MutableClassicSolver).setWarnings = function (warnings) {
1440
+ return this.t35(warnings);
1617
1441
  };
1618
- MutableClassicSolver.prototype.m1v = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1619
- return MutableClassicSolver_init_$Create$_1(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings, false, 512, null);
1442
+ protoOf(MutableClassicSolver).m1u = function (unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings) {
1443
+ return MutableClassicSolver_init_$Create$_0(unificator, libraries, flags, staticKb, dynamicKb, stdIn, stdOut, stdErr, warnings);
1620
1444
  };
1621
- MutableClassicSolver.prototype.w1s = function () {
1622
- return this.u1x(null, null, null, null, null, null, null, null, null, 511, null);
1445
+ protoOf(MutableClassicSolver).z1r = function () {
1446
+ return this.copy();
1623
1447
  };
1624
- MutableClassicSolver.prototype.clone = function () {
1625
- return this.w1s();
1448
+ protoOf(MutableClassicSolver).clone = function () {
1449
+ return this.z1r();
1626
1450
  };
1627
1451
  function MutableClassicSolver() {
1628
1452
  }
@@ -1632,17 +1456,18 @@
1632
1456
  function Companion() {
1633
1457
  Companion_instance = this;
1634
1458
  }
1635
- Companion.prototype.of = function (initialState, onStateTransition) {
1459
+ protoOf(Companion).z34 = function (initialState, onStateTransition) {
1460
+ return new SimpleSolutionIterator(initialState, onStateTransition);
1461
+ };
1462
+ protoOf(Companion).of = function (initialState, onStateTransition, $super) {
1636
1463
  var tmp;
1637
- if (onStateTransition === void 1) {
1464
+ if (onStateTransition === VOID) {
1638
1465
  tmp = SolutionIterator$Companion$of$lambda;
1639
1466
  } else {
1640
1467
  tmp = onStateTransition;
1641
1468
  }
1642
- return this.d37(initialState, tmp);
1643
- };
1644
- Companion.prototype.d37 = function (initialState, onStateTransition) {
1645
- return new SimpleSolutionIterator(initialState, onStateTransition);
1469
+ onStateTransition = tmp;
1470
+ return $super === VOID ? this.z34(initialState, onStateTransition) : $super.z34.call(this, initialState, onStateTransition);
1646
1471
  };
1647
1472
  var Companion_instance;
1648
1473
  function Companion_getInstance_22() {
@@ -1652,85 +1477,80 @@
1652
1477
  }
1653
1478
  function AbstractEndState(solution, context) {
1654
1479
  AbstractState.call(this, context);
1655
- this.a38_1 = solution;
1656
- this.b38_1 = context;
1480
+ this.w35_1 = solution;
1481
+ this.x35_1 = context;
1657
1482
  }
1658
- AbstractEndState.prototype.h2j = function () {
1659
- return this.a38_1;
1483
+ protoOf(AbstractEndState).e2h = function () {
1484
+ return this.w35_1;
1660
1485
  };
1661
- AbstractEndState.prototype.j5 = function () {
1662
- return this.b38_1;
1486
+ protoOf(AbstractEndState).n5 = function () {
1487
+ return this.x35_1;
1663
1488
  };
1664
- AbstractEndState.prototype.c38 = function () {
1489
+ protoOf(AbstractEndState).y35 = function () {
1665
1490
  throw NoSuchElementException_init_$Create$();
1666
1491
  };
1667
- AbstractEndState.prototype.asEndState = function () {
1668
- return this.e38();
1492
+ protoOf(AbstractEndState).asEndState = function () {
1493
+ return this.a36();
1669
1494
  };
1670
1495
  function AbstractState$executionTime$delegate$lambda(this$0) {
1671
1496
  return function () {
1672
- return this$0.k38();
1497
+ return this$0.g36();
1673
1498
  };
1674
1499
  }
1675
1500
  function AbstractState(context) {
1676
- this.f38_1 = context;
1501
+ this.b36_1 = context;
1677
1502
  var tmp = this;
1678
- tmp.g38_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
1503
+ tmp.c36_1 = lazy(AbstractState$executionTime$delegate$lambda(this));
1679
1504
  }
1680
- AbstractState.prototype.j5 = function () {
1681
- return this.f38_1;
1505
+ protoOf(AbstractState).n5 = function () {
1506
+ return this.b36_1;
1682
1507
  };
1683
- AbstractState.prototype.i38 = function () {
1508
+ protoOf(AbstractState).e36 = function () {
1684
1509
  var tmp$ret$0;
1685
1510
  // Inline function 'kotlin.getValue' call
1686
1511
  var tmp0_getValue = executionTime$factory();
1687
- tmp$ret$0 = this.g38_1.b1();
1512
+ tmp$ret$0 = this.c36_1.b1();
1688
1513
  return tmp$ret$0;
1689
1514
  };
1690
- AbstractState.prototype.j38 = function () {
1691
- return this.i38().ah(this.j5().x33_1).jd(this.j5().y33_1) > 0;
1515
+ protoOf(AbstractState).f36 = function () {
1516
+ return this.e36().ch(this.n5().t31_1).i1(this.n5().u31_1) > 0;
1692
1517
  };
1693
- AbstractState.prototype.n = function () {
1518
+ protoOf(AbstractState).n = function () {
1694
1519
  var tmp;
1695
- if (this.j38()) {
1696
- var tmp0_exceededDuration = this.j5().y33_1;
1697
- var tmp1_context = this.j5();
1698
- var tmp_0 = TimeOutException_init_$Create$(null, null, tmp1_context, tmp0_exceededDuration, 3, null);
1699
- var tmp_1 = this.j5();
1700
- var tmp_2 = new Long(0, 0);
1701
- var tmp_3 = new Long(0, 0);
1702
- var tmp_4 = this.l38();
1703
- tmp = new StateHalt(tmp_0, tmp_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_2, tmp_3, null, null, 0, tmp_4, null, 3145727, null));
1520
+ if (this.f36()) {
1521
+ var tmp0_exceededDuration = this.n5().u31_1;
1522
+ var tmp1_context = this.n5();
1523
+ tmp = new StateHalt(TimeOutException_init_$Create$(VOID, VOID, tmp1_context, tmp0_exceededDuration), this.n5().v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
1704
1524
  } else {
1705
- tmp = this.c38();
1525
+ tmp = this.y35();
1706
1526
  }
1707
1527
  return tmp;
1708
1528
  };
1709
- AbstractState.prototype.next = function () {
1529
+ protoOf(AbstractState).next = function () {
1710
1530
  return this.n();
1711
1531
  };
1712
- AbstractState.prototype.k38 = function () {
1532
+ protoOf(AbstractState).g36 = function () {
1713
1533
  return currentTimeInstant();
1714
1534
  };
1715
- AbstractState.prototype.l38 = function () {
1535
+ protoOf(AbstractState).h36 = function () {
1716
1536
  var tmp$ret$0;
1717
1537
  // Inline function 'kotlin.Long.plus' call
1718
- var tmp0_plus = this.j5().c34_1;
1719
- tmp$ret$0 = tmp0_plus.zg(new Long(1, 0));
1538
+ var tmp0_plus = this.n5().y31_1;
1539
+ tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
1720
1540
  return tmp$ret$0;
1721
1541
  };
1722
- AbstractState.prototype.m38 = function (_this__u8e3s4) {
1542
+ protoOf(AbstractState).i36 = function (_this__u8e3s4) {
1723
1543
  var tmp$ret$2;
1724
1544
  $l$block: {
1725
1545
  // Inline function 'kotlin.sequences.first' call
1726
- var tmp0_first = _this__u8e3s4.e34_1;
1546
+ var tmp0_first = _this__u8e3s4.a32_1;
1727
1547
  var tmp0_iterator = tmp0_first.j();
1728
1548
  while (tmp0_iterator.m()) {
1729
1549
  var element = tmp0_iterator.n();
1730
1550
  var tmp$ret$1;
1731
1551
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.AbstractState.skipThrow.<anonymous>' call
1732
- var tmp0_safe_receiver = element.i33_1;
1733
- var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cw();
1552
+ var tmp0_safe_receiver = element.e31_1;
1553
+ var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.wv();
1734
1554
  var tmp$ret$0;
1735
1555
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
1736
1556
  var tmp0__get_functor__thl4dk = Throw_getInstance();
@@ -1747,7 +1567,7 @@
1747
1567
  };
1748
1568
  function executionTime$factory() {
1749
1569
  return getPropertyCallableRef('executionTime', 1, KProperty1, function (receiver) {
1750
- return receiver.i38();
1570
+ return receiver.e36();
1751
1571
  }, null);
1752
1572
  }
1753
1573
  function EndState() {
@@ -1756,38 +1576,34 @@
1756
1576
  }
1757
1577
  function StateBacktracking(context) {
1758
1578
  AbstractState.call(this, context);
1759
- this.p38_1 = context;
1579
+ this.l36_1 = context;
1760
1580
  }
1761
- StateBacktracking.prototype.j5 = function () {
1762
- return this.p38_1;
1581
+ protoOf(StateBacktracking).n5 = function () {
1582
+ return this.l36_1;
1763
1583
  };
1764
- StateBacktracking.prototype.c38 = function () {
1765
- var choicePoints = this.p38_1.z33_1;
1584
+ protoOf(StateBacktracking).y35 = function () {
1585
+ var choicePoints = this.l36_1.v31_1;
1766
1586
  var tmp;
1767
1587
  var tmp$ret$1;
1768
1588
  // Inline function 'kotlin.let' call
1769
1589
  // Inline function 'kotlin.contracts.contract' call
1770
1590
  var tmp$ret$0;
1771
1591
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateBacktracking.computeNext.<anonymous>' call
1772
- tmp$ret$0 = choicePoints === null ? true : !choicePoints.g35();
1592
+ tmp$ret$0 = choicePoints === null ? true : !choicePoints.c33();
1773
1593
  tmp$ret$1 = tmp$ret$0;
1774
1594
  if (tmp$ret$1) {
1775
- var tmp_0 = Companion_getInstance_14().no(this.p38_1.t33_1);
1776
- var tmp_1 = new Long(0, 0);
1777
- var tmp_2 = new Long(0, 0);
1778
- var tmp_3 = this.l38();
1779
- tmp = new StateEnd(tmp_0, this.p38_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_1, tmp_2, null, null, 0, tmp_3, null, 3145727, null));
1595
+ tmp = new StateEnd(Companion_getInstance_14().no(this.l36_1.p31_1), this.l36_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
1780
1596
  } else {
1781
1597
  var tmp$ret$3;
1782
1598
  $l$block: {
1783
1599
  // Inline function 'kotlin.sequences.first' call
1784
- var tmp0_first = ensureNotNull(choicePoints).h35();
1600
+ var tmp0_first = ensureNotNull(choicePoints).d33();
1785
1601
  var tmp0_iterator = tmp0_first.j();
1786
1602
  while (tmp0_iterator.m()) {
1787
1603
  var element = tmp0_iterator.n();
1788
1604
  var tmp$ret$2;
1789
1605
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateBacktracking.computeNext.<anonymous>' call
1790
- tmp$ret$2 = element.t34().sq();
1606
+ tmp$ret$2 = element.p32().mq();
1791
1607
  if (tmp$ret$2) {
1792
1608
  tmp$ret$3 = element;
1793
1609
  break $l$block;
@@ -1796,99 +1612,98 @@
1796
1612
  throw NoSuchElementException_init_$Create$_0('Sequence contains no element matching the predicate.');
1797
1613
  }
1798
1614
  var choicePointContext = tmp$ret$3;
1799
- var nextContext = choicePointContext.y34(this.p38_1);
1800
- var tmp_4;
1801
- if (nextContext.w33_1.sq()) {
1802
- tmp_4 = new StatePrimitiveExecution(nextContext);
1615
+ var nextContext = choicePointContext.u32(this.l36_1);
1616
+ var tmp_0;
1617
+ if (nextContext.s31_1.mq()) {
1618
+ tmp_0 = new StatePrimitiveExecution(nextContext);
1803
1619
  } else {
1804
- tmp_4 = new StateRuleExecution(nextContext);
1620
+ tmp_0 = new StateRuleExecution(nextContext);
1805
1621
  }
1806
- tmp = tmp_4;
1622
+ tmp = tmp_0;
1807
1623
  }
1808
1624
  return tmp;
1809
1625
  };
1810
- StateBacktracking.prototype.h38 = function (context) {
1811
- return this.q38(context);
1626
+ protoOf(StateBacktracking).d36 = function (context) {
1627
+ return this.m36(context);
1812
1628
  };
1813
- StateBacktracking.prototype.q38 = function (context) {
1629
+ protoOf(StateBacktracking).m36 = function (context) {
1814
1630
  return new StateBacktracking(context);
1815
1631
  };
1816
- StateBacktracking.prototype.toString = function () {
1817
- return 'StateBacktracking(context=' + this.p38_1 + ')';
1632
+ protoOf(StateBacktracking).toString = function () {
1633
+ return 'StateBacktracking(context=' + this.l36_1 + ')';
1818
1634
  };
1819
- StateBacktracking.prototype.hashCode = function () {
1820
- return this.p38_1.hashCode();
1635
+ protoOf(StateBacktracking).hashCode = function () {
1636
+ return this.l36_1.hashCode();
1821
1637
  };
1822
- StateBacktracking.prototype.equals = function (other) {
1638
+ protoOf(StateBacktracking).equals = function (other) {
1823
1639
  if (this === other)
1824
1640
  return true;
1825
1641
  if (!(other instanceof StateBacktracking))
1826
1642
  return false;
1827
1643
  var tmp0_other_with_cast = other instanceof StateBacktracking ? other : THROW_CCE();
1828
- if (!this.p38_1.equals(tmp0_other_with_cast.p38_1))
1644
+ if (!this.l36_1.equals(tmp0_other_with_cast.l36_1))
1829
1645
  return false;
1830
1646
  return true;
1831
1647
  };
1832
1648
  function StateEnd(solution, context) {
1833
1649
  AbstractEndState.call(this, solution, context);
1834
- this.v38_1 = solution;
1835
- this.w38_1 = context;
1650
+ this.r36_1 = solution;
1651
+ this.s36_1 = context;
1836
1652
  }
1837
- StateEnd.prototype.h2j = function () {
1838
- return this.v38_1;
1653
+ protoOf(StateEnd).e2h = function () {
1654
+ return this.r36_1;
1839
1655
  };
1840
- StateEnd.prototype.j5 = function () {
1841
- return this.w38_1;
1656
+ protoOf(StateEnd).n5 = function () {
1657
+ return this.s36_1;
1842
1658
  };
1843
- StateEnd.prototype.j38 = function () {
1659
+ protoOf(StateEnd).f36 = function () {
1844
1660
  return false;
1845
1661
  };
1846
- StateEnd.prototype.c38 = function () {
1662
+ protoOf(StateEnd).y35 = function () {
1847
1663
  var tmp;
1848
- if (this.w38_1.g35()) {
1849
- var tmp0_$this = this.w38_1;
1850
- var tmp1_step = this.l38();
1851
- var tmp2_startTime = this.k38();
1852
- var tmp_0 = new Long(0, 0);
1853
- tmp = new StateBacktracking(tmp0_$this.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp2_startTime, tmp_0, null, null, 0, tmp1_step, null, 3112959, null));
1664
+ if (this.s36_1.c33()) {
1665
+ var tmp0_$this = this.s36_1;
1666
+ var tmp1_step = this.h36();
1667
+ var tmp2_startTime = this.g36();
1668
+ tmp = new StateBacktracking(tmp0_$this.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_startTime, VOID, VOID, VOID, VOID, tmp1_step));
1854
1669
  } else {
1855
- tmp = AbstractEndState.prototype.c38.call(this);
1670
+ tmp = protoOf(AbstractEndState).y35.call(this);
1856
1671
  }
1857
1672
  return tmp;
1858
1673
  };
1859
- StateEnd.prototype.h38 = function (context) {
1860
- return this.x38(this.v38_1, context);
1674
+ protoOf(StateEnd).d36 = function (context) {
1675
+ return this.t36(this.r36_1, context);
1861
1676
  };
1862
- StateEnd.prototype.x38 = function (solution, context) {
1677
+ protoOf(StateEnd).t36 = function (solution, context) {
1863
1678
  return new StateEnd(solution, context);
1864
1679
  };
1865
- StateEnd.prototype.toString = function () {
1866
- return 'StateEnd(solution=' + this.v38_1 + ', context=' + this.w38_1 + ')';
1680
+ protoOf(StateEnd).toString = function () {
1681
+ return 'StateEnd(solution=' + this.r36_1 + ', context=' + this.s36_1 + ')';
1867
1682
  };
1868
- StateEnd.prototype.hashCode = function () {
1869
- var result = hashCode(this.v38_1);
1870
- result = imul(result, 31) + this.w38_1.hashCode() | 0;
1683
+ protoOf(StateEnd).hashCode = function () {
1684
+ var result = hashCode(this.r36_1);
1685
+ result = imul(result, 31) + this.s36_1.hashCode() | 0;
1871
1686
  return result;
1872
1687
  };
1873
- StateEnd.prototype.equals = function (other) {
1688
+ protoOf(StateEnd).equals = function (other) {
1874
1689
  if (this === other)
1875
1690
  return true;
1876
1691
  if (!(other instanceof StateEnd))
1877
1692
  return false;
1878
1693
  var tmp0_other_with_cast = other instanceof StateEnd ? other : THROW_CCE();
1879
- if (!equals(this.v38_1, tmp0_other_with_cast.v38_1))
1694
+ if (!equals(this.r36_1, tmp0_other_with_cast.r36_1))
1880
1695
  return false;
1881
- if (!this.w38_1.equals(tmp0_other_with_cast.w38_1))
1696
+ if (!this.s36_1.equals(tmp0_other_with_cast.s36_1))
1882
1697
  return false;
1883
1698
  return true;
1884
1699
  };
1885
- StateEnd.prototype.asEndState = function () {
1886
- return this.e38();
1700
+ protoOf(StateEnd).asEndState = function () {
1701
+ return this.a36();
1887
1702
  };
1888
1703
  function isCatch(_this__u8e3s4, $this) {
1889
1704
  var tmp;
1890
- if (_this__u8e3s4.wv() === 3) {
1891
- var tmp_0 = _this__u8e3s4.cw();
1705
+ if (_this__u8e3s4.qv() === 3) {
1706
+ var tmp_0 = _this__u8e3s4.wv();
1892
1707
  var tmp$ret$0;
1893
1708
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
1894
1709
  var tmp0__get_functor__thl4dk = Catch_getInstance();
@@ -1903,9 +1718,9 @@
1903
1718
  var tmp0_subject = _this__u8e3s4;
1904
1719
  var tmp;
1905
1720
  if (tmp0_subject instanceof MessageError) {
1906
- tmp = _this__u8e3s4.j27();
1721
+ tmp = _this__u8e3s4.r25();
1907
1722
  } else {
1908
- tmp = _this__u8e3s4.k25();
1723
+ tmp = _this__u8e3s4.t23();
1909
1724
  }
1910
1725
  return tmp;
1911
1726
  }
@@ -1920,25 +1735,17 @@
1920
1735
  return tmp;
1921
1736
  }
1922
1737
  function _get_finalState__3aigq8($this) {
1923
- var tmp = toPublicException($this.a39_1, $this);
1924
- var tmp_0 = new Long(0, 0);
1925
- var tmp_1 = new Long(0, 0);
1926
- var tmp_2 = $this.l38();
1927
- return new StateHalt(tmp, $this.b39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3145727, null));
1738
+ return new StateHalt(toPublicException($this.w36_1, $this), $this.x36_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
1928
1739
  }
1929
1740
  function _get_handleExceptionInParentContext__yj3v4e($this) {
1930
- var tmp = ensureNotNull($this.b39_1.a34_1);
1931
- var tmp_0 = new Long(0, 0);
1932
- var tmp_1 = new Long(0, 0);
1933
- var tmp_2 = $this.l38();
1934
- return new StateException($this.a39_1, tmp.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3145727, null));
1741
+ return new StateException($this.w36_1, ensureNotNull($this.x36_1.w31_1).v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
1935
1742
  }
1936
1743
  function handleStruct($this, unificator, catchGoal, error) {
1937
1744
  var tmp;
1938
1745
  if (isCatch(catchGoal, $this)) {
1939
1746
  var catcher = unificator.mgu(catchGoal.get(1), getExceptionContent(error, $this));
1940
1747
  tmp = handleCatch($this, catchGoal, catcher);
1941
- } else if ($this.b39_1.v36()) {
1748
+ } else if ($this.x36_1.r34()) {
1942
1749
  tmp = _get_finalState__3aigq8($this);
1943
1750
  } else {
1944
1751
  tmp = _get_handleExceptionInParentContext__yj3v4e($this);
@@ -1947,20 +1754,18 @@
1947
1754
  }
1948
1755
  function handleCatch($this, catchGoal, catcher) {
1949
1756
  var tmp;
1950
- if (catcher.n12()) {
1951
- var tmp_0 = $this.b39_1.s33_1.plus(catcher);
1757
+ if (catcher.g11()) {
1758
+ var tmp_0 = $this.x36_1.o31_1.plus(catcher);
1952
1759
  var newSubstitution = tmp_0.filterEntry(StateException$handleCatch$lambda($this));
1953
1760
  var subGoals = catchGoal.get(2).getSubstituted(newSubstitution, []);
1954
- var newGoals = plus_0(toGoals(subGoals), $this.b39_1.u33_1.qq());
1955
- var tmp0_$this = $this.b39_1;
1956
- var tmp1_rules = Companion_getInstance_9().empty();
1957
- var tmp2_primitives = Companion_getInstance_9().empty();
1761
+ var newGoals = plus_0(toGoals(subGoals), $this.x36_1.q31_1.kq());
1762
+ var tmp0_$this = $this.x36_1;
1763
+ var tmp1_rules = Companion_getInstance_12().empty();
1764
+ var tmp2_primitives = Companion_getInstance_12().empty();
1958
1765
  var tmp3_substitution = newSubstitution.castToUnifier();
1959
- var tmp4_step = $this.l38();
1960
- var tmp_1 = new Long(0, 0);
1961
- var tmp_2 = new Long(0, 0);
1962
- tmp = new StateGoalSelection(tmp0_$this.z34(null, null, null, null, null, null, null, null, null, null, tmp3_substitution, null, newGoals, tmp1_rules, tmp2_primitives, tmp_1, tmp_2, null, null, 0, tmp4_step, null, 3116031, null));
1963
- } else if ($this.b39_1.v36()) {
1766
+ var tmp4_step = $this.h36();
1767
+ tmp = new StateGoalSelection(tmp0_$this.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_substitution, VOID, newGoals, tmp1_rules, tmp2_primitives, VOID, VOID, VOID, VOID, VOID, tmp4_step));
1768
+ } else if ($this.x36_1.r34()) {
1964
1769
  tmp = _get_finalState__3aigq8($this);
1965
1770
  } else {
1966
1771
  tmp = _get_handleExceptionInParentContext__yj3v4e($this);
@@ -1973,51 +1778,51 @@
1973
1778
  // Inline function 'kotlin.collections.component1' call
1974
1779
  tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.a1();
1975
1780
  var it = tmp$ret$0;
1976
- return this$0.b39_1.x36(it);
1781
+ return this$0.x36_1.t34(it);
1977
1782
  };
1978
1783
  }
1979
1784
  function StateException(exception, context) {
1980
1785
  AbstractState.call(this, context);
1981
- this.a39_1 = exception;
1982
- this.b39_1 = context;
1786
+ this.w36_1 = exception;
1787
+ this.x36_1 = context;
1983
1788
  }
1984
- StateException.prototype.j5 = function () {
1985
- return this.b39_1;
1789
+ protoOf(StateException).n5 = function () {
1790
+ return this.x36_1;
1986
1791
  };
1987
- StateException.prototype.c38 = function () {
1988
- var tmp0_subject = this.a39_1;
1792
+ protoOf(StateException).y35 = function () {
1793
+ var tmp0_subject = this.w36_1;
1989
1794
  var tmp;
1990
1795
  if (tmp0_subject instanceof LogicError) {
1991
- var catchGoal = ensureNotNull(this.b39_1.w36());
1992
- tmp = catchGoal.iw() ? handleStruct(this, this.b39_1.j33_1, catchGoal.castToStruct(), this.a39_1) : this.b39_1.v36() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
1796
+ var catchGoal = ensureNotNull(this.x36_1.s34());
1797
+ tmp = catchGoal.aw() ? handleStruct(this, this.x36_1.f31_1, catchGoal.castToStruct(), this.w36_1) : this.x36_1.r34() ? _get_finalState__3aigq8(this) : _get_handleExceptionInParentContext__yj3v4e(this);
1993
1798
  } else {
1994
1799
  tmp = _get_finalState__3aigq8(this);
1995
1800
  }
1996
1801
  return tmp;
1997
1802
  };
1998
- StateException.prototype.h38 = function (context) {
1999
- return this.c39(this.a39_1, context);
1803
+ protoOf(StateException).d36 = function (context) {
1804
+ return this.y36(this.w36_1, context);
2000
1805
  };
2001
- StateException.prototype.c39 = function (exception, context) {
1806
+ protoOf(StateException).y36 = function (exception, context) {
2002
1807
  return new StateException(exception, context);
2003
1808
  };
2004
- StateException.prototype.toString = function () {
2005
- return 'StateException(exception=' + this.a39_1 + ', context=' + this.b39_1 + ')';
1809
+ protoOf(StateException).toString = function () {
1810
+ return 'StateException(exception=' + this.w36_1 + ', context=' + this.x36_1 + ')';
2006
1811
  };
2007
- StateException.prototype.hashCode = function () {
2008
- var result = hashCode(this.a39_1);
2009
- result = imul(result, 31) + this.b39_1.hashCode() | 0;
1812
+ protoOf(StateException).hashCode = function () {
1813
+ var result = hashCode(this.w36_1);
1814
+ result = imul(result, 31) + this.x36_1.hashCode() | 0;
2010
1815
  return result;
2011
1816
  };
2012
- StateException.prototype.equals = function (other) {
1817
+ protoOf(StateException).equals = function (other) {
2013
1818
  if (this === other)
2014
1819
  return true;
2015
1820
  if (!(other instanceof StateException))
2016
1821
  return false;
2017
1822
  var tmp0_other_with_cast = other instanceof StateException ? other : THROW_CCE();
2018
- if (!equals(this.a39_1, tmp0_other_with_cast.a39_1))
1823
+ if (!equals(this.w36_1, tmp0_other_with_cast.w36_1))
2019
1824
  return false;
2020
- if (!this.b39_1.equals(tmp0_other_with_cast.b39_1))
1825
+ if (!this.x36_1.equals(tmp0_other_with_cast.x36_1))
2021
1826
  return false;
2022
1827
  return true;
2023
1828
  };
@@ -2027,166 +1832,155 @@
2027
1832
  // Inline function 'kotlin.collections.component1' call
2028
1833
  tmp$ret$0 = _name_for_destructuring_parameter_0__wldtmu.a1();
2029
1834
  var it = tmp$ret$0;
2030
- return this$0.f39_1.x36(it);
1835
+ return this$0.b37_1.t34(it);
2031
1836
  };
2032
1837
  }
2033
1838
  function StateGoalSelection(context) {
2034
1839
  AbstractState.call(this, context);
2035
- this.f39_1 = context;
1840
+ this.b37_1 = context;
2036
1841
  }
2037
- StateGoalSelection.prototype.j5 = function () {
2038
- return this.f39_1;
1842
+ protoOf(StateGoalSelection).n5 = function () {
1843
+ return this.b37_1;
2039
1844
  };
2040
- StateGoalSelection.prototype.c38 = function () {
1845
+ protoOf(StateGoalSelection).y35 = function () {
2041
1846
  var tmp;
2042
- if (this.f39_1.u33_1.tq()) {
1847
+ if (this.b37_1.q31_1.nq()) {
2043
1848
  var tmp_0;
2044
- if (this.f39_1.v36()) {
2045
- var tmp_1 = Companion_getInstance_14().j1w(this.f39_1.t33_1, this.f39_1.s33_1);
2046
- var tmp_2 = new Long(0, 0);
2047
- var tmp_3 = new Long(0, 0);
2048
- var tmp_4 = this.l38();
2049
- tmp_0 = new StateEnd(tmp_1, this.f39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_2, tmp_3, null, null, 0, tmp_4, null, 3145727, null));
1849
+ if (this.b37_1.r34()) {
1850
+ tmp_0 = new StateEnd(Companion_getInstance_14().a1v(this.b37_1.p31_1, this.b37_1.o31_1), this.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
2050
1851
  } else {
2051
1852
  var tmp$ret$1;
2052
1853
  // Inline function 'kotlin.let' call
2053
- var tmp0_let = ensureNotNull(this.f39_1.a34_1);
1854
+ var tmp0_let = ensureNotNull(this.b37_1.w31_1);
2054
1855
  // Inline function 'kotlin.contracts.contract' call
2055
1856
  var tmp$ret$0;
2056
1857
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateGoalSelection.computeNext.<anonymous>' call
2057
- var tmp0_choicePoints = this.f39_1.z33_1;
2058
- var tmp1_flags = this.f39_1.l33_1;
2059
- var tmp2_dynamicKb = this.f39_1.n33_1;
2060
- var tmp3_staticKb = this.f39_1.m33_1;
2061
- var tmp4_substitution = this.f39_1.s33_1.h12(StateGoalSelection$computeNext$lambda(this));
2062
- var tmp5_goals = tmp0_let.u33_1.qq();
2063
- var tmp6_procedure = tmp0_let.i33_1;
2064
- var tmp7_step = this.l38();
2065
- var tmp8_startTime = this.f39_1.x33_1;
2066
- var tmp9_operators = this.f39_1.o33_1;
2067
- var tmp10_inputChannels = this.f39_1.p33_1;
2068
- var tmp11_outputChannels = this.f39_1.q33_1;
2069
- var tmp12_libraries = this.f39_1.k33_1;
2070
- var tmp13_customData = this.f39_1.r33_1;
2071
- var tmp_5 = new Long(0, 0);
2072
- tmp$ret$0 = tmp0_let.z34(tmp6_procedure, null, tmp12_libraries, tmp1_flags, tmp3_staticKb, tmp2_dynamicKb, tmp9_operators, tmp10_inputChannels, tmp11_outputChannels, tmp13_customData, tmp4_substitution, null, tmp5_goals, null, null, tmp8_startTime, tmp_5, tmp0_choicePoints, null, 0, tmp7_step, null, 2975746, null);
1858
+ var tmp0_choicePoints = this.b37_1.v31_1;
1859
+ var tmp1_flags = this.b37_1.h31_1;
1860
+ var tmp2_dynamicKb = this.b37_1.j31_1;
1861
+ var tmp3_staticKb = this.b37_1.i31_1;
1862
+ var tmp4_substitution = this.b37_1.o31_1.w10(StateGoalSelection$computeNext$lambda(this));
1863
+ var tmp5_goals = tmp0_let.q31_1.kq();
1864
+ var tmp6_procedure = tmp0_let.e31_1;
1865
+ var tmp7_step = this.h36();
1866
+ var tmp8_startTime = this.b37_1.t31_1;
1867
+ var tmp9_operators = this.b37_1.k31_1;
1868
+ var tmp10_inputChannels = this.b37_1.l31_1;
1869
+ var tmp11_outputChannels = this.b37_1.m31_1;
1870
+ var tmp12_libraries = this.b37_1.g31_1;
1871
+ var tmp13_customData = this.b37_1.n31_1;
1872
+ tmp$ret$0 = tmp0_let.v32(tmp6_procedure, VOID, tmp12_libraries, tmp1_flags, tmp3_staticKb, tmp2_dynamicKb, tmp9_operators, tmp10_inputChannels, tmp11_outputChannels, tmp13_customData, tmp4_substitution, VOID, tmp5_goals, VOID, VOID, tmp8_startTime, VOID, tmp0_choicePoints, VOID, VOID, tmp7_step);
2073
1873
  tmp$ret$1 = tmp$ret$0;
2074
1874
  tmp_0 = new StateGoalSelection(tmp$ret$1);
2075
1875
  }
2076
1876
  tmp = tmp_0;
2077
- } else if (equals(this.f39_1.l33_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().r29_1)) {
2078
- var tmp_6 = new Long(0, 0);
2079
- var tmp_7 = new Long(0, 0);
2080
- tmp = new StatePrimitiveSelection(this.f39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_6, tmp_7, null, null, 0, this.l38(), plus_1(this.f39_1.d34_1, toSet(ensureNotNull(this.f39_1.u33_1.rq()).ew())), 1048575, null));
1877
+ } else if (equals(this.b37_1.h31_1.get(TrackVariables_getInstance()), TrackVariables_getInstance().x27_1)) {
1878
+ tmp = new StatePrimitiveSelection(this.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36(), plus_1(this.b37_1.z31_1, toSet(ensureNotNull(this.b37_1.q31_1.lq()).yv()))));
2081
1879
  } else {
2082
- var tmp_8 = new Long(0, 0);
2083
- var tmp_9 = new Long(0, 0);
2084
- var tmp_10 = this.l38();
2085
- tmp = new StatePrimitiveSelection(this.f39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_8, tmp_9, null, null, 0, tmp_10, null, 3145727, null));
1880
+ tmp = new StatePrimitiveSelection(this.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
2086
1881
  }
2087
1882
  return tmp;
2088
1883
  };
2089
- StateGoalSelection.prototype.h38 = function (context) {
2090
- return this.q38(context);
1884
+ protoOf(StateGoalSelection).d36 = function (context) {
1885
+ return this.m36(context);
2091
1886
  };
2092
- StateGoalSelection.prototype.q38 = function (context) {
1887
+ protoOf(StateGoalSelection).m36 = function (context) {
2093
1888
  return new StateGoalSelection(context);
2094
1889
  };
2095
- StateGoalSelection.prototype.toString = function () {
2096
- return 'StateGoalSelection(context=' + this.f39_1 + ')';
1890
+ protoOf(StateGoalSelection).toString = function () {
1891
+ return 'StateGoalSelection(context=' + this.b37_1 + ')';
2097
1892
  };
2098
- StateGoalSelection.prototype.hashCode = function () {
2099
- return this.f39_1.hashCode();
1893
+ protoOf(StateGoalSelection).hashCode = function () {
1894
+ return this.b37_1.hashCode();
2100
1895
  };
2101
- StateGoalSelection.prototype.equals = function (other) {
1896
+ protoOf(StateGoalSelection).equals = function (other) {
2102
1897
  if (this === other)
2103
1898
  return true;
2104
1899
  if (!(other instanceof StateGoalSelection))
2105
1900
  return false;
2106
1901
  var tmp0_other_with_cast = other instanceof StateGoalSelection ? other : THROW_CCE();
2107
- if (!this.f39_1.equals(tmp0_other_with_cast.f39_1))
1902
+ if (!this.b37_1.equals(tmp0_other_with_cast.b37_1))
2108
1903
  return false;
2109
1904
  return true;
2110
1905
  };
2111
1906
  function StateHalt(exception, context) {
2112
- AbstractEndState.call(this, Companion_getInstance_14().halt(context.t33_1, exception), context);
2113
- this.k39_1 = exception;
2114
- this.l39_1 = context;
1907
+ AbstractEndState.call(this, Companion_getInstance_14().halt(context.p31_1, exception), context);
1908
+ this.g37_1 = exception;
1909
+ this.h37_1 = context;
2115
1910
  }
2116
- StateHalt.prototype.j5 = function () {
2117
- return this.l39_1;
1911
+ protoOf(StateHalt).n5 = function () {
1912
+ return this.h37_1;
2118
1913
  };
2119
- StateHalt.prototype.h38 = function (context) {
2120
- return this.c39(this.k39_1, context);
1914
+ protoOf(StateHalt).d36 = function (context) {
1915
+ return this.y36(this.g37_1, context);
2121
1916
  };
2122
- StateHalt.prototype.c39 = function (exception, context) {
1917
+ protoOf(StateHalt).y36 = function (exception, context) {
2123
1918
  return new StateHalt(exception, context);
2124
1919
  };
2125
- StateHalt.prototype.toString = function () {
2126
- return 'StateHalt(exception=' + this.k39_1 + ', context=' + this.l39_1 + ')';
1920
+ protoOf(StateHalt).toString = function () {
1921
+ return 'StateHalt(exception=' + this.g37_1 + ', context=' + this.h37_1 + ')';
2127
1922
  };
2128
- StateHalt.prototype.hashCode = function () {
2129
- var result = hashCode(this.k39_1);
2130
- result = imul(result, 31) + this.l39_1.hashCode() | 0;
1923
+ protoOf(StateHalt).hashCode = function () {
1924
+ var result = hashCode(this.g37_1);
1925
+ result = imul(result, 31) + this.h37_1.hashCode() | 0;
2131
1926
  return result;
2132
1927
  };
2133
- StateHalt.prototype.equals = function (other) {
1928
+ protoOf(StateHalt).equals = function (other) {
2134
1929
  if (this === other)
2135
1930
  return true;
2136
1931
  if (!(other instanceof StateHalt))
2137
1932
  return false;
2138
1933
  var tmp0_other_with_cast = other instanceof StateHalt ? other : THROW_CCE();
2139
- if (!equals(this.k39_1, tmp0_other_with_cast.k39_1))
1934
+ if (!equals(this.g37_1, tmp0_other_with_cast.g37_1))
2140
1935
  return false;
2141
- if (!this.l39_1.equals(tmp0_other_with_cast.l39_1))
1936
+ if (!this.h37_1.equals(tmp0_other_with_cast.h37_1))
2142
1937
  return false;
2143
1938
  return true;
2144
1939
  };
2145
- StateHalt.prototype.asEndState = function () {
2146
- return this.e38();
1940
+ protoOf(StateHalt).asEndState = function () {
1941
+ return this.a36();
2147
1942
  };
2148
1943
  function StateInit(context) {
2149
1944
  AbstractState.call(this, context);
2150
- this.o39_1 = context;
2151
- }
2152
- StateInit.prototype.j5 = function () {
2153
- return this.o39_1;
2154
- };
2155
- StateInit.prototype.c38 = function () {
2156
- var tmp0_$this = this.o39_1;
2157
- var tmp1_goals = toGoals(this.o39_1.t33_1);
2158
- var tmp2_rules = Companion_getInstance_9().empty();
2159
- var tmp3_primitives = Companion_getInstance_9().empty();
2160
- var tmp4_substitution = Companion_getInstance_7().empty();
2161
- var tmp5_customData = this.o39_1.r33_1.preservePersistent();
1945
+ this.k37_1 = context;
1946
+ }
1947
+ protoOf(StateInit).n5 = function () {
1948
+ return this.k37_1;
1949
+ };
1950
+ protoOf(StateInit).y35 = function () {
1951
+ var tmp0_$this = this.k37_1;
1952
+ var tmp1_goals = toGoals(this.k37_1.p31_1);
1953
+ var tmp2_rules = Companion_getInstance_12().empty();
1954
+ var tmp3_primitives = Companion_getInstance_12().empty();
1955
+ var tmp4_substitution = Companion_getInstance_10().empty();
1956
+ var tmp5_customData = this.k37_1.n31_1.preservePersistent();
2162
1957
  var tmp6_relevantVariables = emptySet();
2163
- var tmp = new Long(0, 0);
2164
- return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.z34(null, null, null, null, null, null, null, null, null, tmp5_customData, tmp4_substitution, null, tmp1_goals, tmp2_rules, tmp3_primitives, tmp, new Long(0, 0), null, null, 0, new Long(1, 0), tmp6_relevantVariables, 100863, null), Companion_getInstance_9().empty()));
1958
+ return new StateGoalSelection(appendRulesAndChoicePoints(tmp0_$this.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp5_customData, tmp4_substitution, VOID, tmp1_goals, tmp2_rules, tmp3_primitives, VOID, VOID, null, null, 0, new Long(1, 0), tmp6_relevantVariables), Companion_getInstance_12().empty()));
2165
1959
  };
2166
- StateInit.prototype.h38 = function (context) {
2167
- return this.q38(context);
1960
+ protoOf(StateInit).d36 = function (context) {
1961
+ return this.m36(context);
2168
1962
  };
2169
- StateInit.prototype.q38 = function (context) {
1963
+ protoOf(StateInit).m36 = function (context) {
2170
1964
  return new StateInit(context);
2171
1965
  };
2172
- StateInit.prototype.toString = function () {
2173
- return 'StateInit(context=' + this.o39_1 + ')';
1966
+ protoOf(StateInit).toString = function () {
1967
+ return 'StateInit(context=' + this.k37_1 + ')';
2174
1968
  };
2175
- StateInit.prototype.hashCode = function () {
2176
- return this.o39_1.hashCode();
1969
+ protoOf(StateInit).hashCode = function () {
1970
+ return this.k37_1.hashCode();
2177
1971
  };
2178
- StateInit.prototype.equals = function (other) {
1972
+ protoOf(StateInit).equals = function (other) {
2179
1973
  if (this === other)
2180
1974
  return true;
2181
1975
  if (!(other instanceof StateInit))
2182
1976
  return false;
2183
1977
  var tmp0_other_with_cast = other instanceof StateInit ? other : THROW_CCE();
2184
- if (!this.o39_1.equals(tmp0_other_with_cast.o39_1))
1978
+ if (!this.k37_1.equals(tmp0_other_with_cast.k37_1))
2185
1979
  return false;
2186
1980
  return true;
2187
1981
  };
2188
1982
  function copyFromCurrentPrimitive(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution) {
2189
- var tmp0_safe_receiver = _this__u8e3s4.w33_1.rq();
1983
+ var tmp0_safe_receiver = _this__u8e3s4.s31_1.lq();
2190
1984
  var tmp;
2191
1985
  if (tmp0_safe_receiver == null) {
2192
1986
  tmp = null;
@@ -2196,52 +1990,45 @@
2196
1990
  // Inline function 'kotlin.contracts.contract' call
2197
1991
  var tmp$ret$0;
2198
1992
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveExecution.copyFromCurrentPrimitive.<anonymous>' call
2199
- tmp$ret$0 = _this__u8e3s4.z36(tmp0_safe_receiver.sideEffects);
1993
+ tmp$ret$0 = _this__u8e3s4.v34(tmp0_safe_receiver.sideEffects);
2200
1994
  tmp$ret$1 = tmp$ret$0;
2201
1995
  tmp = tmp$ret$1;
2202
1996
  }
2203
1997
  var tmp1_elvis_lhs = tmp;
2204
1998
  var ctx = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
2205
1999
  var tmp3_elvis_lhs = goals;
2206
- var tmp4_goals = tmp3_elvis_lhs == null ? _this__u8e3s4.u33_1 : tmp3_elvis_lhs;
2207
- var tmp_0 = drop(_this__u8e3s4.e34_1, procedureFromAncestor);
2000
+ var tmp4_goals = tmp3_elvis_lhs == null ? _this__u8e3s4.q31_1 : tmp3_elvis_lhs;
2001
+ var tmp_0 = drop(_this__u8e3s4.a32_1, procedureFromAncestor);
2208
2002
  var tmp5_procedure = first(map(tmp_0, StatePrimitiveExecution$copyFromCurrentPrimitive$lambda));
2209
- var tmp6_primitives = Companion_getInstance_9().empty();
2003
+ var tmp6_primitives = Companion_getInstance_12().empty();
2210
2004
  var tmp2_elvis_lhs = substitution;
2211
- var tmp_1 = tmp2_elvis_lhs == null ? _this__u8e3s4.s33_1 : tmp2_elvis_lhs;
2005
+ var tmp_1 = tmp2_elvis_lhs == null ? _this__u8e3s4.o31_1 : tmp2_elvis_lhs;
2212
2006
  var tmp7_substitution = isInterface(tmp_1, Unifier) ? tmp_1 : THROW_CCE();
2213
- var tmp8_step = $this.l38();
2214
- var tmp_2 = new Long(0, 0);
2215
- var tmp_3 = new Long(0, 0);
2216
- return ctx.z34(tmp5_procedure, null, null, null, null, null, null, null, null, null, tmp7_substitution, null, tmp4_goals, null, tmp6_primitives, tmp_2, tmp_3, null, null, 0, tmp8_step, null, 3124222, null);
2217
- }
2218
- function copyFromCurrentPrimitive$default(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution, $mask0, $handler) {
2219
- if (!(($mask0 & 2) === 0))
2220
- goals = null;
2221
- if (!(($mask0 & 4) === 0))
2222
- procedureFromAncestor = 0;
2223
- if (!(($mask0 & 8) === 0))
2224
- substitution = null;
2007
+ var tmp8_step = $this.h36();
2008
+ return ctx.v32(tmp5_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp7_substitution, VOID, tmp4_goals, VOID, tmp6_primitives, VOID, VOID, VOID, VOID, VOID, tmp8_step);
2009
+ }
2010
+ function copyFromCurrentPrimitive$default(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution, $super) {
2011
+ goals = goals === VOID ? null : goals;
2012
+ procedureFromAncestor = procedureFromAncestor === VOID ? 0 : procedureFromAncestor;
2013
+ substitution = substitution === VOID ? null : substitution;
2225
2014
  return copyFromCurrentPrimitive(_this__u8e3s4, $this, goals, procedureFromAncestor, substitution);
2226
2015
  }
2227
2016
  function StatePrimitiveExecution$copyFromCurrentPrimitive$lambda(it) {
2228
- return it.i33_1;
2017
+ return it.e31_1;
2229
2018
  }
2230
2019
  function StatePrimitiveExecution$computeNext$lambda(this$0) {
2231
2020
  return function (it) {
2232
- return new StateGoalSelection(copyFromCurrentPrimitive(this$0.r39_1, this$0, this$0.r39_1.u33_1.qq(), 1, this$0.r39_1.j33_1.mergeWithOccurCheck(this$0.r39_1.s33_1, it.o1u(), false)));
2021
+ return new StateGoalSelection(copyFromCurrentPrimitive(this$0.n37_1, this$0, this$0.n37_1.q31_1.kq(), 1, this$0.n37_1.f31_1.mergeWithOccurCheck(this$0.n37_1.o31_1, it.r1t(), false)));
2233
2022
  };
2234
2023
  }
2235
2024
  function StatePrimitiveExecution$computeNext$lambda_0(this$0) {
2236
2025
  return function (it) {
2237
- var tmp = ensureNotNull(this$0.r39_1.a34_1);
2238
- return new StateBacktracking(copyFromCurrentPrimitive$default(tmp, this$0, null, 0, null, 14, null));
2026
+ return new StateBacktracking(copyFromCurrentPrimitive$default(ensureNotNull(this$0.n37_1.w31_1), this$0));
2239
2027
  };
2240
2028
  }
2241
2029
  function StatePrimitiveExecution$computeNext$lambda_1(this$0) {
2242
2030
  return function (it) {
2243
- var tmp = it.z1v().updateLastContext(this$0.m38(this$0.r39_1));
2244
- return new StateException(tmp, copyFromCurrentPrimitive$default(this$0.r39_1, this$0, null, 0, null, 14, null));
2031
+ return new StateException(it.y1u().updateLastContext(this$0.i36(this$0.n37_1)), copyFromCurrentPrimitive$default(this$0.n37_1, this$0));
2245
2032
  };
2246
2033
  }
2247
2034
  function StatePrimitiveExecution$computeNext$lambda_2(it) {
@@ -2249,15 +2036,15 @@
2249
2036
  }
2250
2037
  function StatePrimitiveExecution(context) {
2251
2038
  AbstractState.call(this, context);
2252
- this.r39_1 = context;
2039
+ this.n37_1 = context;
2253
2040
  }
2254
- StatePrimitiveExecution.prototype.j5 = function () {
2255
- return this.r39_1;
2041
+ protoOf(StatePrimitiveExecution).n5 = function () {
2042
+ return this.n37_1;
2256
2043
  };
2257
- StatePrimitiveExecution.prototype.c38 = function () {
2044
+ protoOf(StatePrimitiveExecution).y35 = function () {
2258
2045
  var tmp;
2259
2046
  try {
2260
- var tmp0_safe_receiver = this.r39_1.w33_1.rq();
2047
+ var tmp0_safe_receiver = this.n37_1.s31_1.lq();
2261
2048
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.solution;
2262
2049
  var tmp_0;
2263
2050
  if (tmp1_safe_receiver == null) {
@@ -2266,87 +2053,75 @@
2266
2053
  var tmp_1 = StatePrimitiveExecution$computeNext$lambda(this);
2267
2054
  var tmp_2 = StatePrimitiveExecution$computeNext$lambda_0(this);
2268
2055
  var tmp_3 = StatePrimitiveExecution$computeNext$lambda_1(this);
2269
- tmp_0 = tmp1_safe_receiver.d1w(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
2056
+ tmp_0 = tmp1_safe_receiver.f1v(tmp_1, tmp_2, tmp_3, StatePrimitiveExecution$computeNext$lambda_2);
2270
2057
  }
2271
2058
  var tmp2_elvis_lhs = tmp_0;
2272
- var tmp_4;
2273
- if (tmp2_elvis_lhs == null) {
2274
- tmp_4 = new StateBacktracking(copyFromCurrentPrimitive$default(this.r39_1, this, null, 0, null, 14, null));
2275
- } else {
2276
- tmp_4 = tmp2_elvis_lhs;
2277
- }
2278
- tmp = tmp_4;
2059
+ tmp = tmp2_elvis_lhs == null ? new StateBacktracking(copyFromCurrentPrimitive$default(this.n37_1, this)) : tmp2_elvis_lhs;
2279
2060
  } catch ($p) {
2280
- var tmp_5;
2061
+ var tmp_4;
2281
2062
  if ($p instanceof ResolutionException) {
2282
- var tmp_6 = $p.updateLastContext(this.m38(this.r39_1));
2283
- var tmp_7 = new Long(0, 0);
2284
- var tmp_8 = new Long(0, 0);
2285
- var tmp_9 = this.l38();
2286
- tmp_5 = new StateException(tmp_6, this.r39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_7, tmp_8, null, null, 0, tmp_9, null, 3145727, null));
2063
+ var exception = $p;
2064
+ tmp_4 = new StateException(exception.updateLastContext(this.i36(this.n37_1)), this.n37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
2287
2065
  } else {
2288
2066
  throw $p;
2289
2067
  }
2290
- tmp = tmp_5;
2068
+ tmp = tmp_4;
2291
2069
  }
2292
2070
  return tmp;
2293
2071
  };
2294
- StatePrimitiveExecution.prototype.h38 = function (context) {
2295
- return this.q38(context);
2072
+ protoOf(StatePrimitiveExecution).d36 = function (context) {
2073
+ return this.m36(context);
2296
2074
  };
2297
- StatePrimitiveExecution.prototype.q38 = function (context) {
2075
+ protoOf(StatePrimitiveExecution).m36 = function (context) {
2298
2076
  return new StatePrimitiveExecution(context);
2299
2077
  };
2300
- StatePrimitiveExecution.prototype.toString = function () {
2301
- return 'StatePrimitiveExecution(context=' + this.r39_1 + ')';
2078
+ protoOf(StatePrimitiveExecution).toString = function () {
2079
+ return 'StatePrimitiveExecution(context=' + this.n37_1 + ')';
2302
2080
  };
2303
- StatePrimitiveExecution.prototype.hashCode = function () {
2304
- return this.r39_1.hashCode();
2081
+ protoOf(StatePrimitiveExecution).hashCode = function () {
2082
+ return this.n37_1.hashCode();
2305
2083
  };
2306
- StatePrimitiveExecution.prototype.equals = function (other) {
2084
+ protoOf(StatePrimitiveExecution).equals = function (other) {
2307
2085
  if (this === other)
2308
2086
  return true;
2309
2087
  if (!(other instanceof StatePrimitiveExecution))
2310
2088
  return false;
2311
2089
  var tmp0_other_with_cast = other instanceof StatePrimitiveExecution ? other : THROW_CCE();
2312
- if (!this.r39_1.equals(tmp0_other_with_cast.r39_1))
2090
+ if (!this.n37_1.equals(tmp0_other_with_cast.n37_1))
2313
2091
  return false;
2314
2092
  return true;
2315
2093
  };
2316
2094
  function exceptionalState($this, exception) {
2317
- var tmp = new Long(0, 0);
2318
- var tmp_0 = new Long(0, 0);
2319
- var tmp_1 = $this.l38();
2320
- return new StateException(exception, $this.u39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, null, 0, tmp_1, null, 3145727, null));
2095
+ return new StateException(exception, $this.q37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
2321
2096
  }
2322
2097
  function StatePrimitiveSelection(context) {
2323
2098
  AbstractState.call(this, context);
2324
- this.u39_1 = context;
2099
+ this.q37_1 = context;
2325
2100
  }
2326
- StatePrimitiveSelection.prototype.j5 = function () {
2327
- return this.u39_1;
2101
+ protoOf(StatePrimitiveSelection).n5 = function () {
2102
+ return this.q37_1;
2328
2103
  };
2329
- StatePrimitiveSelection.prototype.c38 = function () {
2104
+ protoOf(StatePrimitiveSelection).y35 = function () {
2330
2105
  var tmp$ret$1;
2331
2106
  // Inline function 'kotlin.with' call
2332
- var tmp0_with = this.u39_1;
2107
+ var tmp0_with = this.q37_1;
2333
2108
  // Inline function 'kotlin.contracts.contract' call
2334
2109
  var tmp$ret$0;
2335
2110
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StatePrimitiveSelection.computeNext.<anonymous>' call
2336
- var goal = ensureNotNull(tmp0_with.w36());
2111
+ var goal = ensureNotNull(tmp0_with.s34());
2337
2112
  var tmp;
2338
- if (goal.yw()) {
2339
- tmp = exceptionalState(this, Companion_getInstance_17().forGoal(this.u39_1, extractSignature(ensureNotNull(this.u39_1.i33_1)), goal.castToVar()));
2340
- } else if (goal.iw()) {
2113
+ if (goal.mw()) {
2114
+ tmp = exceptionalState(this, Companion_getInstance_17().forGoal(this.q37_1, extractSignature(ensureNotNull(this.q37_1.e31_1)), goal.castToVar()));
2115
+ } else if (goal.aw()) {
2341
2116
  var goalStruct = goal.castToStruct();
2342
2117
  var signature = extractSignature(goalStruct);
2343
2118
  var tmp_0;
2344
- if (tmp0_with.k33_1.hasPrimitive(signature)) {
2345
- var childContext = createChild$default(tmp0_with, false, 1, null);
2119
+ if (tmp0_with.g31_1.hasPrimitive(signature)) {
2120
+ var childContext = createChild(tmp0_with);
2346
2121
  var tmp_1;
2347
2122
  try {
2348
- var request = toRequest(childContext, goalStruct, signature, this.i38());
2349
- var tmp0_elvis_lhs = tmp0_with.k33_1.k2e().a3(signature);
2123
+ var request = toRequest(childContext, goalStruct, signature, this.e36());
2124
+ var tmp0_elvis_lhs = tmp0_with.g31_1.p2c().f3(signature);
2350
2125
  var tmp_2;
2351
2126
  if (tmp0_elvis_lhs == null) {
2352
2127
  throw IllegalStateException_init_$Create$('Inconsistent behaviour of Library.contains and Library.get');
@@ -2359,7 +2134,8 @@
2359
2134
  } catch ($p) {
2360
2135
  var tmp_3;
2361
2136
  if ($p instanceof ResolutionException) {
2362
- tmp_3 = exceptionalState(this, $p.updateLastContext(this.m38(childContext)));
2137
+ var exception = $p;
2138
+ tmp_3 = exceptionalState(this, exception.updateLastContext(this.i36(childContext)));
2363
2139
  } else {
2364
2140
  throw $p;
2365
2141
  }
@@ -2367,125 +2143,110 @@
2367
2143
  }
2368
2144
  tmp_0 = tmp_1;
2369
2145
  } else {
2370
- var tmp_4 = new Long(0, 0);
2371
- var tmp_5 = new Long(0, 0);
2372
- var tmp_6 = this.l38();
2373
- tmp_0 = new StateRuleSelection(this.u39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_4, tmp_5, null, null, 0, tmp_6, null, 3145727, null));
2146
+ tmp_0 = new StateRuleSelection(this.q37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h36()));
2374
2147
  }
2375
2148
  tmp = tmp_0;
2376
2149
  } else {
2377
- var tmp_7 = Companion_getInstance_16();
2378
- var tmp1_safe_receiver = this.u39_1.i33_1;
2150
+ var tmp_4 = Companion_getInstance_16();
2151
+ var tmp1_safe_receiver = this.q37_1.e31_1;
2379
2152
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : extractSignature(tmp1_safe_receiver);
2380
- var tmp_8;
2381
- if (tmp2_elvis_lhs == null) {
2382
- tmp_8 = Signature_init_$Create$('?-', 1, false, 4, null);
2383
- } else {
2384
- tmp_8 = tmp2_elvis_lhs;
2385
- }
2386
- tmp = exceptionalState(this, tmp_7.forGoal(this.u39_1, tmp_8, Expected_CALLABLE_getInstance(), goal));
2153
+ tmp = exceptionalState(this, tmp_4.forGoal(this.q37_1, tmp2_elvis_lhs == null ? new Signature('?-', 1) : tmp2_elvis_lhs, Expected_CALLABLE_getInstance(), goal));
2387
2154
  }
2388
2155
  tmp$ret$0 = tmp;
2389
2156
  tmp$ret$1 = tmp$ret$0;
2390
2157
  return tmp$ret$1;
2391
2158
  };
2392
- StatePrimitiveSelection.prototype.h38 = function (context) {
2393
- return this.q38(context);
2159
+ protoOf(StatePrimitiveSelection).d36 = function (context) {
2160
+ return this.m36(context);
2394
2161
  };
2395
- StatePrimitiveSelection.prototype.q38 = function (context) {
2162
+ protoOf(StatePrimitiveSelection).m36 = function (context) {
2396
2163
  return new StatePrimitiveSelection(context);
2397
2164
  };
2398
- StatePrimitiveSelection.prototype.toString = function () {
2399
- return 'StatePrimitiveSelection(context=' + this.u39_1 + ')';
2165
+ protoOf(StatePrimitiveSelection).toString = function () {
2166
+ return 'StatePrimitiveSelection(context=' + this.q37_1 + ')';
2400
2167
  };
2401
- StatePrimitiveSelection.prototype.hashCode = function () {
2402
- return this.u39_1.hashCode();
2168
+ protoOf(StatePrimitiveSelection).hashCode = function () {
2169
+ return this.q37_1.hashCode();
2403
2170
  };
2404
- StatePrimitiveSelection.prototype.equals = function (other) {
2171
+ protoOf(StatePrimitiveSelection).equals = function (other) {
2405
2172
  if (this === other)
2406
2173
  return true;
2407
2174
  if (!(other instanceof StatePrimitiveSelection))
2408
2175
  return false;
2409
2176
  var tmp0_other_with_cast = other instanceof StatePrimitiveSelection ? other : THROW_CCE();
2410
- if (!this.u39_1.equals(tmp0_other_with_cast.u39_1))
2177
+ if (!this.q37_1.equals(tmp0_other_with_cast.q37_1))
2411
2178
  return false;
2412
2179
  return true;
2413
2180
  };
2414
2181
  function _get_failureState__yid9tw($this) {
2415
- var tmp = Companion_getInstance_9().empty();
2416
- var tmp_0 = new Long(0, 0);
2417
- var tmp_1 = new Long(0, 0);
2418
- var tmp_2 = $this.l38();
2419
- return new StateBacktracking($this.x39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3137535, null));
2182
+ return new StateBacktracking($this.t37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Companion_getInstance_12().empty(), VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
2420
2183
  }
2421
2184
  function StateRuleExecution(context) {
2422
2185
  AbstractState.call(this, context);
2423
- this.x39_1 = context;
2186
+ this.t37_1 = context;
2424
2187
  }
2425
- StateRuleExecution.prototype.j5 = function () {
2426
- return this.x39_1;
2188
+ protoOf(StateRuleExecution).n5 = function () {
2189
+ return this.t37_1;
2427
2190
  };
2428
- StateRuleExecution.prototype.c38 = function () {
2191
+ protoOf(StateRuleExecution).y35 = function () {
2429
2192
  var tmp$ret$1;
2430
2193
  // Inline function 'kotlin.with' call
2431
- var tmp0_with = this.x39_1;
2194
+ var tmp0_with = this.t37_1;
2432
2195
  // Inline function 'kotlin.contracts.contract' call
2433
2196
  var tmp$ret$0;
2434
2197
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleExecution.computeNext.<anonymous>' call
2435
- tmp$ret$0 = tmp0_with.j33_1.mgu(ensureNotNull(tmp0_with.w36()), ensureNotNull(tmp0_with.v33_1.rq()).iy());
2198
+ tmp$ret$0 = tmp0_with.f31_1.mgu(ensureNotNull(tmp0_with.s34()), ensureNotNull(tmp0_with.r31_1.lq()).sx());
2436
2199
  tmp$ret$1 = tmp$ret$0;
2437
2200
  var substitution = tmp$ret$1;
2438
2201
  var tmp;
2439
- if (substitution.n12()) {
2440
- var newSubstitution = this.x39_1.s33_1.plus(substitution).castToUnifier();
2441
- var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.x39_1.v33_1.rq()), newSubstitution).jy().getSubstituted(newSubstitution, []);
2442
- var tmp0_$this = this.x39_1;
2202
+ if (substitution.g11()) {
2203
+ var newSubstitution = this.t37_1.o31_1.plus(substitution).castToUnifier();
2204
+ var subGoals = prepareForExecutionWithUnifier(ensureNotNull(this.t37_1.r31_1.lq()), newSubstitution).tx().getSubstituted(newSubstitution, []);
2205
+ var tmp0_$this = this.t37_1;
2443
2206
  var tmp1_goals = toGoals(subGoals);
2444
- var tmp2_rules = Companion_getInstance_9().empty();
2445
- var tmp3_step = this.l38();
2446
- var tmp_0 = new Long(0, 0);
2447
- var tmp_1 = new Long(0, 0);
2448
- tmp = new StateGoalSelection(tmp0_$this.z34(null, null, null, null, null, null, null, null, null, null, newSubstitution, null, tmp1_goals, tmp2_rules, null, tmp_0, tmp_1, null, null, 0, tmp3_step, null, 3132415, null));
2207
+ var tmp2_rules = Companion_getInstance_12().empty();
2208
+ var tmp3_step = this.h36();
2209
+ tmp = new StateGoalSelection(tmp0_$this.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newSubstitution, VOID, tmp1_goals, tmp2_rules, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_step));
2449
2210
  } else {
2450
2211
  tmp = _get_failureState__yid9tw(this);
2451
2212
  }
2452
2213
  return tmp;
2453
2214
  };
2454
- StateRuleExecution.prototype.h38 = function (context) {
2455
- return this.q38(context);
2215
+ protoOf(StateRuleExecution).d36 = function (context) {
2216
+ return this.m36(context);
2456
2217
  };
2457
- StateRuleExecution.prototype.q38 = function (context) {
2218
+ protoOf(StateRuleExecution).m36 = function (context) {
2458
2219
  return new StateRuleExecution(context);
2459
2220
  };
2460
- StateRuleExecution.prototype.toString = function () {
2461
- return 'StateRuleExecution(context=' + this.x39_1 + ')';
2221
+ protoOf(StateRuleExecution).toString = function () {
2222
+ return 'StateRuleExecution(context=' + this.t37_1 + ')';
2462
2223
  };
2463
- StateRuleExecution.prototype.hashCode = function () {
2464
- return this.x39_1.hashCode();
2224
+ protoOf(StateRuleExecution).hashCode = function () {
2225
+ return this.t37_1.hashCode();
2465
2226
  };
2466
- StateRuleExecution.prototype.equals = function (other) {
2227
+ protoOf(StateRuleExecution).equals = function (other) {
2467
2228
  if (this === other)
2468
2229
  return true;
2469
2230
  if (!(other instanceof StateRuleExecution))
2470
2231
  return false;
2471
2232
  var tmp0_other_with_cast = other instanceof StateRuleExecution ? other : THROW_CCE();
2472
- if (!this.x39_1.equals(tmp0_other_with_cast.x39_1))
2233
+ if (!this.t37_1.equals(tmp0_other_with_cast.t37_1))
2473
2234
  return false;
2474
2235
  return true;
2475
2236
  };
2476
2237
  function None() {
2477
2238
  None_instance = this;
2478
2239
  CutLimit.call(this);
2479
- this.y39_1 = -1;
2480
- this.z39_1 = null;
2240
+ this.u37_1 = -1;
2241
+ this.v37_1 = null;
2481
2242
  }
2482
- None.prototype.a3a = function () {
2483
- return this.y39_1;
2243
+ protoOf(None).w37 = function () {
2244
+ return this.u37_1;
2484
2245
  };
2485
- None.prototype.n1u = function () {
2486
- return this.z39_1;
2246
+ protoOf(None).q1t = function () {
2247
+ return this.v37_1;
2487
2248
  };
2488
- None.prototype.b3a = function () {
2249
+ protoOf(None).x37 = function () {
2489
2250
  return true;
2490
2251
  };
2491
2252
  var None_instance;
@@ -2496,27 +2257,24 @@
2496
2257
  }
2497
2258
  function Actual(depthToCut, procedure) {
2498
2259
  CutLimit.call(this);
2499
- this.c3a_1 = depthToCut;
2500
- this.d3a_1 = procedure;
2260
+ this.y37_1 = depthToCut;
2261
+ this.z37_1 = procedure;
2501
2262
  }
2502
- Actual.prototype.a3a = function () {
2503
- return this.c3a_1;
2263
+ protoOf(Actual).w37 = function () {
2264
+ return this.y37_1;
2504
2265
  };
2505
- Actual.prototype.n1u = function () {
2506
- return this.d3a_1;
2266
+ protoOf(Actual).q1t = function () {
2267
+ return this.z37_1;
2507
2268
  };
2508
2269
  function CutLimit() {
2509
2270
  }
2510
- CutLimit.prototype.b3a = function () {
2271
+ protoOf(CutLimit).x37 = function () {
2511
2272
  return false;
2512
2273
  };
2513
2274
  function Companion_0() {
2514
2275
  Companion_instance_0 = this;
2515
- this.e3a_1 = Catch_getInstance().signature;
2516
- var tmp = this;
2517
- var tmp_0 = Signature_init_$Create$(',', 2, false, 4, null);
2518
- var tmp_1 = Signature_init_$Create$(';', 2, false, 4, null);
2519
- tmp.f3a_1 = setOf([tmp_0, tmp_1, Signature_init_$Create$('->', 2, false, 4, null)]);
2276
+ this.a38_1 = Catch_getInstance().signature;
2277
+ this.b38_1 = setOf([new Signature(',', 2), new Signature(';', 2), new Signature('->', 2)]);
2520
2278
  }
2521
2279
  var Companion_instance_0;
2522
2280
  function Companion_getInstance_23() {
@@ -2525,21 +2283,15 @@
2525
2283
  return Companion_instance_0;
2526
2284
  }
2527
2285
  function _get_failureState__yid9tw_0($this) {
2528
- var tmp = new Long(0, 0);
2529
- var tmp_0 = new Long(0, 0);
2530
- var tmp_1 = $this.l38();
2531
- return new StateBacktracking($this.i3a_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, null, 0, tmp_1, null, 3145727, null));
2286
+ return new StateBacktracking($this.e38_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
2532
2287
  }
2533
2288
  function exceptionalState_0($this, exception) {
2534
- var tmp = new Long(0, 0);
2535
- var tmp_0 = new Long(0, 0);
2536
- var tmp_1 = $this.l38();
2537
- return new StateException(exception, $this.i3a_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp, tmp_0, null, null, 0, tmp_1, null, 3145727, null));
2289
+ return new StateException(exception, $this.e38_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
2538
2290
  }
2539
2291
  function missingProcedure($this, ruleSources, missing) {
2540
- var unknown = $this.i3a_1.l33_1.get(Unknown_getInstance());
2292
+ var unknown = $this.e38_1.h31_1.get(Unknown_getInstance());
2541
2293
  var tmp;
2542
- if (equals(unknown, Unknown_getInstance().x29_1)) {
2294
+ if (equals(unknown, Unknown_getInstance().d28_1)) {
2543
2295
  tmp = _get_failureState__yid9tw_0($this);
2544
2296
  } else {
2545
2297
  var tmp_0;
@@ -2562,15 +2314,15 @@
2562
2314
  if (tmp$ret$1) {
2563
2315
  var tmp0_subject = unknown;
2564
2316
  var tmp_1;
2565
- if (equals(tmp0_subject, Unknown_getInstance().v29_1)) {
2566
- tmp_1 = exceptionalState_0($this, Companion_getInstance_18().forProcedure($this.i3a_1, missing));
2567
- } else if (equals(tmp0_subject, Unknown_getInstance().w29_1)) {
2317
+ if (equals(tmp0_subject, Unknown_getInstance().b28_1)) {
2318
+ tmp_1 = exceptionalState_0($this, Companion_getInstance_18().forProcedure($this.e38_1, missing));
2319
+ } else if (equals(tmp0_subject, Unknown_getInstance().c28_1)) {
2568
2320
  var tmp$ret$2;
2569
2321
  // Inline function 'kotlin.also' call
2570
2322
  var tmp0_also = _get_failureState__yid9tw_0($this);
2571
2323
  // Inline function 'kotlin.contracts.contract' call
2572
2324
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.missingProcedure.<anonymous>' call
2573
- $this.i3a_1.l1v().write(MissingPredicate_init_$Create$($this.i3a_1, missing));
2325
+ $this.e38_1.l1u().write(MissingPredicate_init_$Create$($this.e38_1, missing));
2574
2326
  tmp$ret$2 = tmp0_also;
2575
2327
  tmp_1 = tmp$ret$2;
2576
2328
  } else {
@@ -2585,31 +2337,27 @@
2585
2337
  return tmp;
2586
2338
  }
2587
2339
  function _get_ignoreState__t4wl8y($this) {
2588
- var tmp = $this.i3a_1.u33_1.qq();
2589
- var tmp_0 = new Long(0, 0);
2590
- var tmp_1 = new Long(0, 0);
2591
- var tmp_2 = $this.l38();
2592
- return new StateGoalSelection($this.i3a_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, tmp, null, null, tmp_0, tmp_1, null, null, 0, tmp_2, null, 3141631, null));
2340
+ return new StateGoalSelection($this.e38_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.e38_1.q31_1.kq(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, $this.h36()));
2593
2341
  }
2594
2342
  function isCut(_this__u8e3s4, $this) {
2595
- return _this__u8e3s4.xv() ? _this__u8e3s4.castToAtom().b1() === '!' : false;
2343
+ return _this__u8e3s4.rv() ? _this__u8e3s4.castToAtom().b1() === '!' : false;
2596
2344
  }
2597
2345
  function computeCutLimit(_this__u8e3s4, $this, magicCut) {
2598
2346
  var tmp;
2599
2347
  if (magicCut) {
2600
- tmp = firstOrNull(_this__u8e3s4.e34_1);
2348
+ tmp = firstOrNull(_this__u8e3s4.a32_1);
2601
2349
  } else {
2602
2350
  var tmp$ret$1;
2603
2351
  $l$block: {
2604
2352
  // Inline function 'kotlin.sequences.firstOrNull' call
2605
- var tmp0_firstOrNull = _this__u8e3s4.e34_1;
2353
+ var tmp0_firstOrNull = _this__u8e3s4.a32_1;
2606
2354
  var tmp0_iterator = tmp0_firstOrNull.j();
2607
2355
  while (tmp0_iterator.m()) {
2608
2356
  var element = tmp0_iterator.n();
2609
2357
  var tmp$ret$0;
2610
2358
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeCutLimit.<anonymous>' call
2611
- var tmp_0 = Companion_getInstance_23().f3a_1;
2612
- var tmp0_safe_receiver = element.i33_1;
2359
+ var tmp_0 = Companion_getInstance_23().b38_1;
2360
+ var tmp0_safe_receiver = element.e31_1;
2613
2361
  tmp$ret$0 = !contains_0(tmp_0, tmp0_safe_receiver == null ? null : extractSignature(tmp0_safe_receiver));
2614
2362
  if (tmp$ret$0) {
2615
2363
  tmp$ret$1 = element;
@@ -2625,21 +2373,21 @@
2625
2373
  if (cutLimit == null) {
2626
2374
  tmp_1 = None_getInstance();
2627
2375
  } else {
2628
- tmp_1 = new Actual(cutLimit.b34_1, cutLimit.i33_1);
2376
+ tmp_1 = new Actual(cutLimit.x31_1, cutLimit.e31_1);
2629
2377
  }
2630
2378
  return tmp_1;
2631
2379
  }
2632
2380
  function cutCanBeSkipped($this, cutLimit, executionContext) {
2633
- return (cutLimit.b3a() ? true : cutLimit.a3a() > executionContext.b34_1) ? true : cutLimit.a3a() === executionContext.b34_1 ? !equals(cutLimit.n1u(), executionContext.i33_1) : false;
2381
+ return (cutLimit.x37() ? true : cutLimit.w37() > executionContext.x31_1) ? true : cutLimit.w37() === executionContext.x31_1 ? !equals(cutLimit.q1t(), executionContext.e31_1) : false;
2634
2382
  }
2635
2383
  function performCut(_this__u8e3s4, $this, cutLimit) {
2636
2384
  var tmp;
2637
2385
  if (_this__u8e3s4 === null) {
2638
2386
  tmp = null;
2639
- } else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.u34()))) {
2387
+ } else if (cutCanBeSkipped($this, cutLimit, ensureNotNull(_this__u8e3s4.q32()))) {
2640
2388
  tmp = _this__u8e3s4;
2641
2389
  } else {
2642
- var tmp_0 = _this__u8e3s4.h35();
2390
+ var tmp_0 = _this__u8e3s4.d33();
2643
2391
  var cutCandidates = filter(tmp_0, StateRuleSelection$performCut$lambda(cutLimit));
2644
2392
  var tmp_1;
2645
2393
  if (any(cutCandidates)) {
@@ -2651,7 +2399,7 @@
2651
2399
  var element = tmp0_iterator.n();
2652
2400
  var tmp$ret$0;
2653
2401
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.performCut.<anonymous>' call
2654
- tmp$ret$0 = ensureNotNull(element.u34()).b34_1 <= cutLimit.a3a();
2402
+ tmp$ret$0 = ensureNotNull(element.q32()).x31_1 <= cutLimit.w37();
2655
2403
  if (tmp$ret$0) {
2656
2404
  tmp$ret$1 = element;
2657
2405
  break $l$block;
@@ -2660,7 +2408,7 @@
2660
2408
  tmp$ret$1 = null;
2661
2409
  }
2662
2410
  var tmp0_safe_receiver = tmp$ret$1;
2663
- tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v34();
2411
+ tmp_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r32();
2664
2412
  } else {
2665
2413
  tmp_1 = _this__u8e3s4;
2666
2414
  }
@@ -2670,10 +2418,10 @@
2670
2418
  }
2671
2419
  function _get_isTailRecursive__h5eso7(_this__u8e3s4, $this) {
2672
2420
  var tmp;
2673
- if (_this__u8e3s4.u33_1.qq().tq() ? equals(_this__u8e3s4.l33_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().k29_1) : false) {
2421
+ if (_this__u8e3s4.q31_1.kq().nq() ? equals(_this__u8e3s4.h31_1.get(LastCallOptimization_getInstance()), LastCallOptimization_getInstance().q27_1) : false) {
2674
2422
  var tmp$ret$3;
2675
2423
  // Inline function 'kotlin.let' call
2676
- var tmp0_let = ensureNotNull(_this__u8e3s4.w36());
2424
+ var tmp0_let = ensureNotNull(_this__u8e3s4.s34());
2677
2425
  // Inline function 'kotlin.contracts.contract' call
2678
2426
  var tmp$ret$2;
2679
2427
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>' call
@@ -2689,9 +2437,9 @@
2689
2437
  var tmp$ret$0;
2690
2438
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.<get-isTailRecursive>.<anonymous>.<anonymous>' call
2691
2439
  var tmp_1;
2692
- var tmp0_safe_receiver_0 = _this__u8e3s4.i33_1;
2440
+ var tmp0_safe_receiver_0 = _this__u8e3s4.e31_1;
2693
2441
  if (equals(tmp1_safe_receiver, tmp0_safe_receiver_0 == null ? null : extractSignature(tmp0_safe_receiver_0))) {
2694
- tmp_1 = !equals(tmp1_safe_receiver, Companion_getInstance_23().e3a_1);
2442
+ tmp_1 = !equals(tmp1_safe_receiver, Companion_getInstance_23().a38_1);
2695
2443
  } else {
2696
2444
  tmp_1 = false;
2697
2445
  }
@@ -2717,7 +2465,7 @@
2717
2465
  var tmp$ret$0;
2718
2466
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.selectClauses.<anonymous>' call
2719
2467
  var tmp_0;
2720
- if (_this__u8e3s4.x1s()) {
2468
+ if (_this__u8e3s4.a1s()) {
2721
2469
  tmp_0 = buffered(tmp0_let);
2722
2470
  } else {
2723
2471
  tmp_0 = tmp0_let;
@@ -2728,7 +2476,7 @@
2728
2476
  }
2729
2477
  function StateRuleSelection$performCut$lambda($cutLimit) {
2730
2478
  return function (it) {
2731
- return equals(ensureNotNull(it.u34()).i33_1, $cutLimit.n1u());
2479
+ return equals(ensureNotNull(it.q32()).e31_1, $cutLimit.q1t());
2732
2480
  };
2733
2481
  }
2734
2482
  function StateRuleSelection$computeNext$lambda(this$0, $currentGoalStruct) {
@@ -2737,34 +2485,34 @@
2737
2485
  };
2738
2486
  }
2739
2487
  function StateRuleSelection$selectClauses$lambda(it) {
2740
- return it.fw();
2488
+ return it.fy();
2741
2489
  }
2742
2490
  function StateRuleSelection(context) {
2743
2491
  Companion_getInstance_23();
2744
2492
  AbstractState.call(this, context);
2745
- this.i3a_1 = context;
2493
+ this.e38_1 = context;
2746
2494
  }
2747
- StateRuleSelection.prototype.j5 = function () {
2748
- return this.i3a_1;
2495
+ protoOf(StateRuleSelection).n5 = function () {
2496
+ return this.e38_1;
2749
2497
  };
2750
- StateRuleSelection.prototype.c38 = function () {
2751
- var currentGoal = ensureNotNull(this.i3a_1.w36());
2498
+ protoOf(StateRuleSelection).y35 = function () {
2499
+ var currentGoal = ensureNotNull(this.e38_1.s34());
2752
2500
  var tmp;
2753
- if (currentGoal.yw()) {
2754
- tmp = exceptionalState_0(this, Companion_getInstance_17().forGoal(this.i3a_1, extractSignature(ensureNotNull(this.i3a_1.i33_1)), currentGoal.castToVar()));
2755
- } else if (currentGoal.iw()) {
2501
+ if (currentGoal.mw()) {
2502
+ tmp = exceptionalState_0(this, Companion_getInstance_17().forGoal(this.e38_1, extractSignature(ensureNotNull(this.e38_1.e31_1)), currentGoal.castToVar()));
2503
+ } else if (currentGoal.aw()) {
2756
2504
  var tmp$ret$5;
2757
2505
  // Inline function 'kotlin.with' call
2758
- var tmp0_with = this.i3a_1;
2506
+ var tmp0_with = this.e38_1;
2759
2507
  // Inline function 'kotlin.contracts.contract' call
2760
2508
  var tmp$ret$4;
2761
2509
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>' call
2762
2510
  var currentGoalStruct = currentGoal.castToStruct();
2763
- var ruleSources = sequenceOf([tmp0_with.k33_1.asTheory(tmp0_with.j33_1), tmp0_with.m33_1, tmp0_with.n33_1]);
2511
+ var ruleSources = sequenceOf([tmp0_with.g31_1.asTheory(tmp0_with.f31_1), tmp0_with.i31_1, tmp0_with.j31_1]);
2764
2512
  var tmp_0;
2765
- if (currentGoalStruct.zw()) {
2513
+ if (currentGoalStruct.nw()) {
2766
2514
  var tmp_1;
2767
- if (currentGoalStruct.aw()) {
2515
+ if (currentGoalStruct.uv()) {
2768
2516
  tmp_1 = _get_ignoreState__t4wl8y(this);
2769
2517
  } else {
2770
2518
  tmp_1 = _get_failureState__yid9tw_0(this);
@@ -2779,11 +2527,7 @@
2779
2527
  // Inline function 'kotlin.contracts.contract' call
2780
2528
  var tmp$ret$0;
2781
2529
  // Inline function 'it.unibo.tuprolog.solve.classic.fsm.StateRuleSelection.computeNext.<anonymous>.<anonymous>' call
2782
- var tmp_2 = new Long(0, 0);
2783
- var tmp_3 = new Long(0, 0);
2784
- var tmp_4 = performCut(tmp0_let.f39_1.z33_1, this, cutLimit);
2785
- var tmp_5 = new Long(0, 0);
2786
- tmp$ret$0 = tmp0_let.q38(tmp0_let.f39_1.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, tmp_2, tmp_3, tmp_4, null, 0, tmp_5, null, 4063231, null));
2530
+ tmp$ret$0 = tmp0_let.m36(tmp0_let.b37_1.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, performCut(tmp0_let.b37_1.v31_1, this, cutLimit)));
2787
2531
  tmp$ret$1 = tmp$ret$0;
2788
2532
  tmp_0 = tmp$ret$1;
2789
2533
  } else {
@@ -2805,13 +2549,13 @@
2805
2549
  }
2806
2550
  if (tmp$ret$3) {
2807
2551
  var rules = cursor(flatMap(ruleSources, StateRuleSelection$computeNext$lambda(this, currentGoalStruct)));
2808
- var tmp_6;
2809
- if (_get_isTailRecursive__h5eso7(this.i3a_1, this)) {
2810
- tmp_6 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints$default(this.i3a_1, rules, false, 2, null));
2552
+ var tmp_2;
2553
+ if (_get_isTailRecursive__h5eso7(this.e38_1, this)) {
2554
+ tmp_2 = new StateRuleExecution(replaceWithChildAppendingRulesAndChoicePoints(this.e38_1, rules));
2811
2555
  } else {
2812
- tmp_6 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints$default(this.i3a_1, rules, false, 2, null));
2556
+ tmp_2 = new StateRuleExecution(createChildAppendingRulesAndChoicePoints(this.e38_1, rules));
2813
2557
  }
2814
- tmp_0 = tmp_6;
2558
+ tmp_0 = tmp_2;
2815
2559
  } else {
2816
2560
  tmp_0 = missingProcedure(this, ruleSources, extractSignature(currentGoalStruct));
2817
2561
  }
@@ -2821,44 +2565,41 @@
2821
2565
  tmp$ret$5 = tmp$ret$4;
2822
2566
  tmp = tmp$ret$5;
2823
2567
  } else {
2824
- tmp = exceptionalState_0(this, Companion_getInstance_16().forGoal(this.i3a_1, extractSignature(ensureNotNull(this.i3a_1.i33_1)), Expected_CALLABLE_getInstance(), currentGoal));
2568
+ tmp = exceptionalState_0(this, Companion_getInstance_16().forGoal(this.e38_1, extractSignature(ensureNotNull(this.e38_1.e31_1)), Expected_CALLABLE_getInstance(), currentGoal));
2825
2569
  }
2826
2570
  return tmp;
2827
2571
  };
2828
- StateRuleSelection.prototype.h38 = function (context) {
2829
- return this.q38(context);
2572
+ protoOf(StateRuleSelection).d36 = function (context) {
2573
+ return this.m36(context);
2830
2574
  };
2831
- StateRuleSelection.prototype.q38 = function (context) {
2575
+ protoOf(StateRuleSelection).m36 = function (context) {
2832
2576
  return new StateRuleSelection(context);
2833
2577
  };
2834
- StateRuleSelection.prototype.toString = function () {
2835
- return 'StateRuleSelection(context=' + this.i3a_1 + ')';
2578
+ protoOf(StateRuleSelection).toString = function () {
2579
+ return 'StateRuleSelection(context=' + this.e38_1 + ')';
2836
2580
  };
2837
- StateRuleSelection.prototype.hashCode = function () {
2838
- return this.i3a_1.hashCode();
2581
+ protoOf(StateRuleSelection).hashCode = function () {
2582
+ return this.e38_1.hashCode();
2839
2583
  };
2840
- StateRuleSelection.prototype.equals = function (other) {
2584
+ protoOf(StateRuleSelection).equals = function (other) {
2841
2585
  if (this === other)
2842
2586
  return true;
2843
2587
  if (!(other instanceof StateRuleSelection))
2844
2588
  return false;
2845
2589
  var tmp0_other_with_cast = other instanceof StateRuleSelection ? other : THROW_CCE();
2846
- if (!this.i3a_1.equals(tmp0_other_with_cast.i3a_1))
2590
+ if (!this.e38_1.equals(tmp0_other_with_cast.e38_1))
2847
2591
  return false;
2848
2592
  return true;
2849
2593
  };
2850
2594
  function appendRulesAndChoicePoints(_this__u8e3s4, rules) {
2851
2595
  var tmp;
2852
- if (rules.sq()) {
2853
- tmp = appendRules(_this__u8e3s4.z33_1, rules.qq(), _this__u8e3s4);
2596
+ if (rules.mq()) {
2597
+ tmp = appendRules(_this__u8e3s4.v31_1, rules.kq(), _this__u8e3s4);
2854
2598
  } else {
2855
- tmp = appendRules(_this__u8e3s4.z33_1, Companion_getInstance_9().empty(), _this__u8e3s4);
2599
+ tmp = appendRules(_this__u8e3s4.v31_1, Companion_getInstance_12().empty(), _this__u8e3s4);
2856
2600
  }
2857
2601
  var newChoicePointContext = tmp;
2858
- var tmp_0 = new Long(0, 0);
2859
- var tmp_1 = new Long(0, 0);
2860
- var tmp_2 = new Long(0, 0);
2861
- return _this__u8e3s4.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, rules, null, tmp_0, tmp_1, newChoicePointContext, null, 0, tmp_2, null, 4055039, null);
2602
+ return _this__u8e3s4.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, rules, VOID, VOID, VOID, newChoicePointContext);
2862
2603
  }
2863
2604
  function toGoals(_this__u8e3s4) {
2864
2605
  var tmp = unfoldGoals(_this__u8e3s4);
@@ -2866,8 +2607,8 @@
2866
2607
  }
2867
2608
  function unfoldGoals(_this__u8e3s4) {
2868
2609
  var tmp;
2869
- if (_this__u8e3s4.nw()) {
2870
- var tmp_0 = _this__u8e3s4.castToTuple().gu();
2610
+ if (_this__u8e3s4.dw()) {
2611
+ var tmp_0 = _this__u8e3s4.castToTuple().au();
2871
2612
  tmp = flatMap(tmp_0, unfoldGoals$lambda);
2872
2613
  } else {
2873
2614
  tmp = sequenceOf([_this__u8e3s4]);
@@ -2875,86 +2616,67 @@
2875
2616
  return tmp;
2876
2617
  }
2877
2618
  function createChild(_this__u8e3s4, inferProcedureFromGoals) {
2878
- var currentGoal = ensureNotNull(_this__u8e3s4.w36()).castToStruct();
2619
+ inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
2620
+ var currentGoal = ensureNotNull(_this__u8e3s4.s34()).castToStruct();
2879
2621
  var tmp0_goals = toGoals(currentGoal);
2880
- var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.i33_1;
2881
- var tmp2_depth = _this__u8e3s4.b34_1 + 1 | 0;
2622
+ var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.e31_1;
2623
+ var tmp2_depth = _this__u8e3s4.x31_1 + 1 | 0;
2882
2624
  var tmp$ret$0;
2883
2625
  // Inline function 'kotlin.Long.plus' call
2884
- var tmp0_plus = _this__u8e3s4.c34_1;
2885
- tmp$ret$0 = tmp0_plus.zg(new Long(1, 0));
2626
+ var tmp0_plus = _this__u8e3s4.y31_1;
2627
+ tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
2886
2628
  var tmp3_step = tmp$ret$0;
2887
2629
  var tmp4_relevantVariables = emptySet();
2888
- var tmp = new Long(0, 0);
2889
- var tmp_0 = new Long(0, 0);
2890
- return _this__u8e3s4.z34(tmp1_procedure, null, null, null, null, null, null, null, null, null, null, null, tmp0_goals, null, null, tmp, tmp_0, null, _this__u8e3s4, tmp2_depth, tmp3_step, tmp4_relevantVariables, 258046, null);
2891
- }
2892
- function createChild$default(_this__u8e3s4, inferProcedureFromGoals, $mask0, $handler) {
2893
- if (!(($mask0 & 1) === 0))
2894
- inferProcedureFromGoals = true;
2895
- return createChild(_this__u8e3s4, inferProcedureFromGoals);
2630
+ return _this__u8e3s4.v32(tmp1_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_goals, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4, tmp2_depth, tmp3_step, tmp4_relevantVariables);
2896
2631
  }
2897
2632
  function toRequest(_this__u8e3s4, goal, signature, startTime) {
2898
- var tmp = goal.dw();
2899
- return Request_init_$Create$(signature, tmp, _this__u8e3s4, startTime, new Long(0, 0), 16, null);
2633
+ return new Request(signature, goal.xv(), _this__u8e3s4, startTime);
2900
2634
  }
2901
2635
  function appendPrimitivesAndChoicePoints(_this__u8e3s4, primitiveExecutions) {
2902
2636
  var tmp;
2903
- if (primitiveExecutions.sq()) {
2904
- tmp = appendPrimitives(_this__u8e3s4.z33_1, primitiveExecutions.qq(), _this__u8e3s4);
2637
+ if (primitiveExecutions.mq()) {
2638
+ tmp = appendPrimitives(_this__u8e3s4.v31_1, primitiveExecutions.kq(), _this__u8e3s4);
2905
2639
  } else {
2906
- tmp = appendPrimitives(_this__u8e3s4.z33_1, Companion_getInstance_9().empty(), _this__u8e3s4);
2640
+ tmp = appendPrimitives(_this__u8e3s4.v31_1, Companion_getInstance_12().empty(), _this__u8e3s4);
2907
2641
  }
2908
2642
  var newChoicePointContext = tmp;
2909
- var tmp_0 = new Long(0, 0);
2910
- var tmp_1 = new Long(0, 0);
2911
- var tmp_2 = new Long(0, 0);
2912
- return _this__u8e3s4.z34(null, null, null, null, null, null, null, null, null, null, null, null, null, null, primitiveExecutions, tmp_0, tmp_1, newChoicePointContext, null, 0, tmp_2, null, 4046847, null);
2643
+ return _this__u8e3s4.v32(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, primitiveExecutions, VOID, VOID, newChoicePointContext);
2913
2644
  }
2914
2645
  function replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
2646
+ inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
2915
2647
  var tempExecutionContext = replaceWithChild(_this__u8e3s4, inferProcedureFromGoals);
2916
2648
  return appendRulesAndChoicePoints(tempExecutionContext, rules);
2917
2649
  }
2918
- function replaceWithChildAppendingRulesAndChoicePoints$default(_this__u8e3s4, rules, inferProcedureFromGoals, $mask0, $handler) {
2919
- if (!(($mask0 & 2) === 0))
2920
- inferProcedureFromGoals = true;
2921
- return replaceWithChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals);
2922
- }
2923
2650
  function createChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals) {
2651
+ inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
2924
2652
  var tempExecutionContext = createChild(_this__u8e3s4, inferProcedureFromGoals);
2925
2653
  return appendRulesAndChoicePoints(tempExecutionContext, rules);
2926
2654
  }
2927
- function createChildAppendingRulesAndChoicePoints$default(_this__u8e3s4, rules, inferProcedureFromGoals, $mask0, $handler) {
2928
- if (!(($mask0 & 2) === 0))
2929
- inferProcedureFromGoals = true;
2930
- return createChildAppendingRulesAndChoicePoints(_this__u8e3s4, rules, inferProcedureFromGoals);
2931
- }
2932
2655
  function ensureRules(_this__u8e3s4) {
2933
2656
  return map(_this__u8e3s4, ensureRules$lambda);
2934
2657
  }
2935
2658
  function replaceWithChild(_this__u8e3s4, inferProcedureFromGoals) {
2936
- var currentGoal = ensureNotNull(_this__u8e3s4.w36()).castToStruct();
2659
+ inferProcedureFromGoals = inferProcedureFromGoals === VOID ? true : inferProcedureFromGoals;
2660
+ var currentGoal = ensureNotNull(_this__u8e3s4.s34()).castToStruct();
2937
2661
  var tmp0_goals = toGoals(currentGoal);
2938
- var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.i33_1;
2939
- var tmp2_depth = _this__u8e3s4.b34_1 + 1 | 0;
2662
+ var tmp1_procedure = inferProcedureFromGoals ? currentGoal : _this__u8e3s4.e31_1;
2663
+ var tmp2_depth = _this__u8e3s4.x31_1 + 1 | 0;
2940
2664
  var tmp$ret$0;
2941
2665
  // Inline function 'kotlin.Long.plus' call
2942
- var tmp0_plus = _this__u8e3s4.c34_1;
2943
- tmp$ret$0 = tmp0_plus.zg(new Long(1, 0));
2666
+ var tmp0_plus = _this__u8e3s4.y31_1;
2667
+ tmp$ret$0 = tmp0_plus.bh(new Long(1, 0));
2944
2668
  var tmp3_step = tmp$ret$0;
2945
- var tmp = new Long(0, 0);
2946
- var tmp_0 = new Long(0, 0);
2947
- return _this__u8e3s4.z34(tmp1_procedure, null, null, null, null, null, null, null, null, null, null, null, tmp0_goals, null, null, tmp, tmp_0, null, null, tmp2_depth, tmp3_step, null, 2617342, null);
2669
+ return _this__u8e3s4.v32(tmp1_procedure, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_goals, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_depth, tmp3_step);
2948
2670
  }
2949
2671
  function toGoals$lambda(it) {
2950
- return it.yw() ? Companion_getInstance_11().of('call', [it]) : it;
2672
+ return it.mw() ? Companion_getInstance_8().of('call', [it]) : it;
2951
2673
  }
2952
2674
  function unfoldGoals$lambda(it) {
2953
2675
  return unfoldGoals(it);
2954
2676
  }
2955
2677
  function ensureRules$lambda(it) {
2956
2678
  // Inline function 'kotlin.require' call
2957
- var tmp0_require = it.kw();
2679
+ var tmp0_require = it.cw();
2958
2680
  // Inline function 'kotlin.contracts.contract' call
2959
2681
  // Inline function 'kotlin.require' call
2960
2682
  // Inline function 'kotlin.contracts.contract' call
@@ -2968,54 +2690,54 @@
2968
2690
  return it.castToRule();
2969
2691
  }
2970
2692
  function AbstractSolutionIterator(state) {
2971
- this.j3a_1 = state;
2972
- this.k3a_1 = new Long(0, 0);
2693
+ this.f38_1 = state;
2694
+ this.g38_1 = new Long(0, 0);
2973
2695
  }
2974
- AbstractSolutionIterator.prototype.m = function () {
2696
+ protoOf(AbstractSolutionIterator).m = function () {
2975
2697
  var tmp$ret$1;
2976
2698
  // Inline function 'kotlin.let' call
2977
- var tmp0_let = this.j3a_1;
2699
+ var tmp0_let = this.f38_1;
2978
2700
  // Inline function 'kotlin.contracts.contract' call
2979
2701
  var tmp$ret$0;
2980
2702
  // Inline function 'it.unibo.tuprolog.solve.classic.impl.AbstractSolutionIterator.hasNext.<anonymous>' call
2981
- tmp$ret$0 = !tmp0_let.d38() ? true : tmp0_let.castToEndState().g35();
2703
+ tmp$ret$0 = !tmp0_let.z35() ? true : tmp0_let.castToEndState().c33();
2982
2704
  tmp$ret$1 = tmp$ret$0;
2983
2705
  return tmp$ret$1;
2984
2706
  };
2985
- AbstractSolutionIterator.prototype.n = function () {
2707
+ protoOf(AbstractSolutionIterator).n = function () {
2986
2708
  do {
2987
- var previousState = this.j3a_1;
2709
+ var previousState = this.f38_1;
2988
2710
  var tmp = this;
2989
- var tmp_0 = this.j3a_1;
2711
+ var tmp_0 = this.f38_1;
2990
2712
  var tmp0_this = this;
2991
- tmp0_this.k3a_1 = tmp0_this.k3a_1.eh();
2992
- tmp.j3a_1 = this.l3a(tmp_0, tmp0_this.k3a_1);
2993
- this.onStateTransition(previousState, this.j3a_1, this.k3a_1);
2713
+ tmp0_this.g38_1 = tmp0_this.g38_1.gh();
2714
+ tmp.f38_1 = this.h38(tmp_0, tmp0_this.g38_1);
2715
+ this.onStateTransition(previousState, this.f38_1, this.g38_1);
2994
2716
  }
2995
- while (!this.j3a_1.d38());
2996
- return this.j3a_1.castToEndState().h2j().cleanUp();
2717
+ while (!this.f38_1.z35());
2718
+ return this.f38_1.castToEndState().e2h().cleanUp();
2997
2719
  };
2998
2720
  function SimpleSolutionIterator(state, onStateTransitionCallback) {
2999
2721
  AbstractSolutionIterator.call(this, state);
3000
- this.o3a_1 = onStateTransitionCallback;
2722
+ this.k38_1 = onStateTransitionCallback;
3001
2723
  }
3002
- SimpleSolutionIterator.prototype.l3a = function (state, step) {
2724
+ protoOf(SimpleSolutionIterator).h38 = function (state, step) {
3003
2725
  return state.next();
3004
2726
  };
3005
- SimpleSolutionIterator.prototype.p3a = function (source, destination, index) {
3006
- return this.o3a_1(source, destination, index);
2727
+ protoOf(SimpleSolutionIterator).l38 = function (source, destination, index) {
2728
+ return this.k38_1(source, destination, index);
3007
2729
  };
3008
- SimpleSolutionIterator.prototype.onStateTransition = function (source, destination, index) {
3009
- return this.p3a(source, destination, index);
2730
+ protoOf(SimpleSolutionIterator).onStateTransition = function (source, destination, index) {
2731
+ return this.l38(source, destination, index);
3010
2732
  };
3011
2733
  function DefaultBuiltins() {
3012
2734
  DefaultBuiltins_instance = this;
3013
2735
  ExtensionLibrary.call(this, CommonBuiltins_getInstance());
3014
2736
  }
3015
- DefaultBuiltins.prototype.y2e = function () {
2737
+ protoOf(DefaultBuiltins).d2d = function () {
3016
2738
  return listOf(Throw_getInstance());
3017
2739
  };
3018
- DefaultBuiltins.prototype.x2e = function () {
2740
+ protoOf(DefaultBuiltins).c2d = function () {
3019
2741
  return listOf_0([Catch_getInstance(), Call_getInstance(), Comma_getInstance(), Cut_getInstance(), Fail_getInstance(), Success_getInstance()]);
3020
2742
  };
3021
2743
  var DefaultBuiltins_instance;
@@ -3029,12 +2751,12 @@
3029
2751
  var tmp_0;
3030
2752
  var tmp_1;
3031
2753
  if (isInterface(error, Struct)) {
3032
- tmp_1 = error.cw() === 'error';
2754
+ tmp_1 = error.wv() === 'error';
3033
2755
  } else {
3034
2756
  tmp_1 = false;
3035
2757
  }
3036
2758
  if (tmp_1) {
3037
- var containsArg = error.wv();
2759
+ var containsArg = error.qv();
3038
2760
  tmp_0 = 1 <= containsArg ? containsArg <= 2 : false;
3039
2761
  } else {
3040
2762
  tmp_0 = false;
@@ -3042,10 +2764,9 @@
3042
2764
  if (tmp_0) {
3043
2765
  var tmp_2 = Companion_getInstance_20();
3044
2766
  var tmp_3 = error.get(0);
3045
- tmp = tmp_2.r25(null, null, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.wv() > 1 ? error.get(1) : null, 3, null);
2767
+ tmp = tmp_2.of(VOID, VOID, context, isInterface(tmp_3, Struct) ? tmp_3 : THROW_CCE(), error.qv() > 1 ? error.get(1) : null);
3046
2768
  } else {
3047
- var tmp_4 = Companion_getInstance_19();
3048
- tmp = tmp_4.e27(error, context, null, 4, null);
2769
+ tmp = Companion_getInstance_19().m25(error, context);
3049
2770
  }
3050
2771
  return tmp;
3051
2772
  }
@@ -3053,13 +2774,11 @@
3053
2774
  Throw_instance = this;
3054
2775
  UnaryPredicate.call(this, 'throw');
3055
2776
  }
3056
- Throw.prototype.q2r = function (_this__u8e3s4, first) {
3057
- var tmp = Companion_getInstance_21().y2f(_this__u8e3s4);
3058
- var tmp_0 = handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.o(0));
3059
- return sequenceOf([tmp.c2j(tmp_0, null, [], 6, null)]);
2777
+ protoOf(Throw).n2p = function (_this__u8e3s4, first) {
2778
+ return sequenceOf([Companion_getInstance_21().d2e(_this__u8e3s4).replyException(handleError(this, _this__u8e3s4.context, _this__u8e3s4.arguments.o(0)), VOID, [])]);
3060
2779
  };
3061
- Throw.prototype.c2k = function (_this__u8e3s4, first) {
3062
- return this.q2r(_this__u8e3s4, first);
2780
+ protoOf(Throw).z2h = function (_this__u8e3s4, first) {
2781
+ return this.n2p(_this__u8e3s4, first);
3063
2782
  };
3064
2783
  var Throw_instance;
3065
2784
  function Throw_getInstance() {
@@ -3069,12 +2788,12 @@
3069
2788
  }
3070
2789
  function Call() {
3071
2790
  Call_instance = this;
3072
- RuleWrapper_init_$Init$('call', 1, false, 4, null, this);
2791
+ RuleWrapper_init_$Init$('call', 1, VOID, this);
3073
2792
  }
3074
- Call.prototype.g2k = function (_this__u8e3s4) {
2793
+ protoOf(Call).d2i = function (_this__u8e3s4) {
3075
2794
  return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('G')]);
3076
2795
  };
3077
- Call.prototype.h2k = function (_this__u8e3s4) {
2796
+ protoOf(Call).e2i = function (_this__u8e3s4) {
3078
2797
  var tmp$ret$0;
3079
2798
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3080
2799
  var tmp0__get_functor__thl4dk = EnsureExecutable_getInstance();
@@ -3089,12 +2808,12 @@
3089
2808
  }
3090
2809
  function Catch() {
3091
2810
  Catch_instance = this;
3092
- RuleWrapper_init_$Init$('catch', 3, false, 4, null, this);
2811
+ RuleWrapper_init_$Init$('catch', 3, VOID, this);
3093
2812
  }
3094
- Catch.prototype.g2k = function (_this__u8e3s4) {
2813
+ protoOf(Catch).d2i = function (_this__u8e3s4) {
3095
2814
  return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('G'), _this__u8e3s4.varOf('E'), _this__u8e3s4.varOf('C')]);
3096
2815
  };
3097
- Catch.prototype.h2k = function (_this__u8e3s4) {
2816
+ protoOf(Catch).e2i = function (_this__u8e3s4) {
3098
2817
  return _this__u8e3s4.varOf('G');
3099
2818
  };
3100
2819
  var Catch_instance;
@@ -3105,12 +2824,12 @@
3105
2824
  }
3106
2825
  function Comma() {
3107
2826
  Comma_instance = this;
3108
- RuleWrapper_init_$Init$(',', 2, false, 4, null, this);
2827
+ RuleWrapper_init_$Init$(',', 2, VOID, this);
3109
2828
  }
3110
- Comma.prototype.g2k = function (_this__u8e3s4) {
2829
+ protoOf(Comma).d2i = function (_this__u8e3s4) {
3111
2830
  return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
3112
2831
  };
3113
- Comma.prototype.h2k = function (_this__u8e3s4) {
2832
+ protoOf(Comma).e2i = function (_this__u8e3s4) {
3114
2833
  return _this__u8e3s4.tupleOf([_this__u8e3s4.varOf('A'), _this__u8e3s4.varOf('B')]);
3115
2834
  };
3116
2835
  var Comma_instance;
@@ -3121,7 +2840,7 @@
3121
2840
  }
3122
2841
  function Cut() {
3123
2842
  Cut_instance = this;
3124
- RuleWrapper_init_$Init$('!', 0, false, 4, null, this);
2843
+ RuleWrapper_init_$Init$('!', 0, VOID, this);
3125
2844
  }
3126
2845
  var Cut_instance;
3127
2846
  function Cut_getInstance() {
@@ -3133,7 +2852,7 @@
3133
2852
  Fail_instance = this;
3134
2853
  NegationAsFailure.call(this);
3135
2854
  }
3136
- Fail.prototype.h2k = function (_this__u8e3s4) {
2855
+ protoOf(Fail).e2i = function (_this__u8e3s4) {
3137
2856
  var tmp$ret$0;
3138
2857
  // Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
3139
2858
  var tmp0__get_functor__thl4dk = EnsureExecutable_getInstance();
@@ -3155,7 +2874,7 @@
3155
2874
  Success_instance = this;
3156
2875
  NegationAsFailure.call(this);
3157
2876
  }
3158
- Success.prototype.h2k = function (_this__u8e3s4) {
2877
+ protoOf(Success).e2i = function (_this__u8e3s4) {
3159
2878
  return _this__u8e3s4.truthOf(true);
3160
2879
  };
3161
2880
  var Success_instance;
@@ -3166,8 +2885,8 @@
3166
2885
  }
3167
2886
  function Companion_1() {
3168
2887
  Companion_instance_1 = this;
3169
- this.p3b_1 = '\\+';
3170
- this.q3b_1 = 1;
2888
+ this.l39_1 = '\\+';
2889
+ this.m39_1 = 1;
3171
2890
  }
3172
2891
  var Companion_instance_1;
3173
2892
  function Companion_getInstance_24() {
@@ -3179,130 +2898,142 @@
3179
2898
  Companion_getInstance_24();
3180
2899
  Companion_getInstance_24();
3181
2900
  Companion_getInstance_24();
3182
- RuleWrapper_init_$Init$('\\+', 1, false, 4, null, this);
2901
+ RuleWrapper_init_$Init$('\\+', 1, VOID, this);
3183
2902
  }
3184
- NegationAsFailure.prototype.g2k = function (_this__u8e3s4) {
2903
+ protoOf(NegationAsFailure).d2i = function (_this__u8e3s4) {
3185
2904
  return _this__u8e3s4.ktListOf([_this__u8e3s4.varOf('X')]);
3186
2905
  };
3187
2906
  //region block: post-declaration
3188
- AbstractClassicSolver.prototype.u1x = copy$default;
3189
- AbstractClassicSolver.prototype.solveWithTimeout = solveWithTimeout;
3190
- AbstractClassicSolver.prototype.solve = solve;
3191
- AbstractClassicSolver.prototype.solveListWithTimeout = solveListWithTimeout;
3192
- AbstractClassicSolver.prototype.solveList = solveList;
3193
- AbstractClassicSolver.prototype.solveListWithOptions = solveListWithOptions;
3194
- AbstractClassicSolver.prototype.solveOnceWithTimeout = solveOnceWithTimeout;
3195
- AbstractClassicSolver.prototype.solveOnce = solveOnce;
3196
- AbstractClassicSolver.prototype.solveOnceWithOptions = solveOnceWithOptions;
3197
- AbstractClassicSolver.prototype.f1v = get_standardInput;
3198
- AbstractClassicSolver.prototype.h1v = get_standardOutput;
3199
- AbstractClassicSolver.prototype.j1v = get_standardError;
3200
- AbstractClassicSolver.prototype.l1v = get_warnings;
3201
- ClassicExecutionContext.prototype.s1u = createSolver$default;
3202
- ClassicExecutionContext.prototype.a1v = createMutableSolver$default;
3203
- ClassicExecutionContext.prototype.d1v = update$default;
3204
- ClassicExecutionContext.prototype.f1v = get_standardInput;
3205
- ClassicExecutionContext.prototype.h1v = get_standardOutput;
3206
- ClassicExecutionContext.prototype.j1v = get_standardError;
3207
- ClassicExecutionContext.prototype.l1v = get_warnings;
3208
- ClassicExecutionContext.prototype.j1u = get_endTime;
3209
- ClassicExecutionContext.prototype.l1u = get_remainingTime;
3210
- ClassicExecutionContext.prototype.m1u = get_elapsedTime;
3211
- ClassicSolver.prototype.u1x = copy$default;
3212
- ClassicSolver.prototype.solveWithTimeout = solveWithTimeout;
3213
- ClassicSolver.prototype.solve = solve;
3214
- ClassicSolver.prototype.solveListWithTimeout = solveListWithTimeout;
3215
- ClassicSolver.prototype.solveList = solveList;
3216
- ClassicSolver.prototype.solveListWithOptions = solveListWithOptions;
3217
- ClassicSolver.prototype.solveOnceWithTimeout = solveOnceWithTimeout;
3218
- ClassicSolver.prototype.solveOnce = solveOnce;
3219
- ClassicSolver.prototype.solveOnceWithOptions = solveOnceWithOptions;
3220
- ClassicSolver.prototype.f1v = get_standardInput;
3221
- ClassicSolver.prototype.h1v = get_standardOutput;
3222
- ClassicSolver.prototype.j1v = get_standardError;
3223
- ClassicSolver.prototype.l1v = get_warnings;
3224
- ClassicSolverFactory.prototype.r1y = solverOf$default;
3225
- ClassicSolverFactory.prototype.t1y = solverOf$default_0;
3226
- ClassicSolverFactory.prototype.x1y = mutableSolverOf$default;
3227
- ClassicSolverFactory.prototype.b1z = mutableSolverOf$default_0;
3228
- ClassicSolverFactory.prototype.newBuilder = newBuilder;
3229
- ClassicSolverFactory.prototype.z1x = get_defaultRuntime;
3230
- ClassicSolverFactory.prototype.b1y = get_defaultUnificator;
3231
- ClassicSolverFactory.prototype.c1y = get_defaultFlags;
3232
- ClassicSolverFactory.prototype.f1y = get_defaultStaticKb;
3233
- ClassicSolverFactory.prototype.g1y = get_defaultDynamicKb;
3234
- ClassicSolverFactory.prototype.h1y = get_defaultInputChannel;
3235
- ClassicSolverFactory.prototype.i1y = get_defaultOutputChannel;
3236
- ClassicSolverFactory.prototype.j1y = get_defaultErrorChannel;
3237
- ClassicSolverFactory.prototype.k1y = get_defaultWarningsChannel;
3238
- ClassicSolverFactory.prototype.u1y = solverWithDefaultBuiltins;
3239
- ClassicSolverFactory.prototype.v1y = solverWithDefaultBuiltins$default;
3240
- ClassicSolverFactory.prototype.y1y = mutableSolverWithDefaultBuiltins;
3241
- ClassicSolverFactory.prototype.z1y = mutableSolverWithDefaultBuiltins$default;
3242
- MutableClassicSolver.prototype.u1x = copy$default;
3243
- MutableClassicSolver.prototype.solveWithTimeout = solveWithTimeout;
3244
- MutableClassicSolver.prototype.solve = solve;
3245
- MutableClassicSolver.prototype.solveListWithTimeout = solveListWithTimeout;
3246
- MutableClassicSolver.prototype.solveList = solveList;
3247
- MutableClassicSolver.prototype.solveListWithOptions = solveListWithOptions;
3248
- MutableClassicSolver.prototype.solveOnceWithTimeout = solveOnceWithTimeout;
3249
- MutableClassicSolver.prototype.solveOnce = solveOnce;
3250
- MutableClassicSolver.prototype.solveOnceWithOptions = solveOnceWithOptions;
3251
- MutableClassicSolver.prototype.f1v = get_standardInput;
3252
- MutableClassicSolver.prototype.h1v = get_standardOutput;
3253
- MutableClassicSolver.prototype.j1v = get_standardError;
3254
- MutableClassicSolver.prototype.l1v = get_warnings;
3255
- MutableClassicSolver.prototype.loadStaticClauses = loadStaticClauses;
3256
- MutableClassicSolver.prototype.loadStaticClausesIterable = loadStaticClausesIterable;
3257
- MutableClassicSolver.prototype.loadStaticClausesSequence = loadStaticClausesSequence;
3258
- MutableClassicSolver.prototype.loadDynamicClauses = loadDynamicClauses;
3259
- MutableClassicSolver.prototype.loadDynamicClausesIterable = loadDynamicClausesIterable;
3260
- MutableClassicSolver.prototype.loadDynamicClausesSequence = loadDynamicClausesSequence;
3261
- AbstractState.prototype.d38 = get_isEndState;
3262
- AbstractState.prototype.asEndState = asEndState;
3263
- AbstractState.prototype.castToEndState = castToEndState;
3264
- AbstractEndState.prototype.g35 = get_hasOpenAlternatives;
3265
- AbstractEndState.prototype.d38 = get_isEndState_0;
3266
- AbstractEndState.prototype.e38 = asEndState_0;
3267
- AbstractEndState.prototype.castToEndState = castToEndState;
3268
- StateBacktracking.prototype.d38 = get_isEndState;
3269
- StateBacktracking.prototype.asEndState = asEndState;
3270
- StateBacktracking.prototype.castToEndState = castToEndState;
3271
- StateEnd.prototype.g35 = get_hasOpenAlternatives;
3272
- StateEnd.prototype.d38 = get_isEndState_0;
3273
- StateEnd.prototype.e38 = asEndState_0;
3274
- StateEnd.prototype.castToEndState = castToEndState;
3275
- StateException.prototype.d38 = get_isEndState;
3276
- StateException.prototype.asEndState = asEndState;
3277
- StateException.prototype.castToEndState = castToEndState;
3278
- StateGoalSelection.prototype.d38 = get_isEndState;
3279
- StateGoalSelection.prototype.asEndState = asEndState;
3280
- StateGoalSelection.prototype.castToEndState = castToEndState;
3281
- StateHalt.prototype.d38 = get_isEndState_0;
3282
- StateHalt.prototype.e38 = asEndState_0;
3283
- StateHalt.prototype.castToEndState = castToEndState;
3284
- StateHalt.prototype.g35 = get_hasOpenAlternatives;
3285
- StateInit.prototype.d38 = get_isEndState;
3286
- StateInit.prototype.asEndState = asEndState;
3287
- StateInit.prototype.castToEndState = castToEndState;
3288
- StatePrimitiveExecution.prototype.d38 = get_isEndState;
3289
- StatePrimitiveExecution.prototype.asEndState = asEndState;
3290
- StatePrimitiveExecution.prototype.castToEndState = castToEndState;
3291
- StatePrimitiveSelection.prototype.d38 = get_isEndState;
3292
- StatePrimitiveSelection.prototype.asEndState = asEndState;
3293
- StatePrimitiveSelection.prototype.castToEndState = castToEndState;
3294
- StateRuleExecution.prototype.d38 = get_isEndState;
3295
- StateRuleExecution.prototype.asEndState = asEndState;
3296
- StateRuleExecution.prototype.castToEndState = castToEndState;
3297
- StateRuleSelection.prototype.d38 = get_isEndState;
3298
- StateRuleSelection.prototype.asEndState = asEndState;
3299
- StateRuleSelection.prototype.castToEndState = castToEndState;
3300
- DefaultBuiltins.prototype.containsSignature = containsSignature;
3301
- DefaultBuiltins.prototype.containsOperator = containsOperator;
3302
- DefaultBuiltins.prototype.hasPrimitive = hasPrimitive;
3303
- DefaultBuiltins.prototype.hasFunction = hasFunction;
3304
- DefaultBuiltins.prototype.m2e = get_ruleSignatures;
3305
- DefaultBuiltins.prototype.hasProtected = hasProtected;
2907
+ protoOf(AbstractClassicSolver).copy = copy;
2908
+ protoOf(AbstractClassicSolver).solveWithTimeout = solveWithTimeout;
2909
+ protoOf(AbstractClassicSolver).solve = solve;
2910
+ protoOf(AbstractClassicSolver).solveListWithTimeout = solveListWithTimeout;
2911
+ protoOf(AbstractClassicSolver).solveList = solveList;
2912
+ protoOf(AbstractClassicSolver).solveListWithOptions = solveListWithOptions;
2913
+ protoOf(AbstractClassicSolver).solveOnceWithTimeout = solveOnceWithTimeout;
2914
+ protoOf(AbstractClassicSolver).solveOnce = solveOnce;
2915
+ protoOf(AbstractClassicSolver).solveOnceWithOptions = solveOnceWithOptions;
2916
+ protoOf(AbstractClassicSolver).f1u = get_standardInput;
2917
+ protoOf(AbstractClassicSolver).h1u = get_standardOutput;
2918
+ protoOf(AbstractClassicSolver).j1u = get_standardError;
2919
+ protoOf(AbstractClassicSolver).l1u = get_warnings;
2920
+ protoOf(ClassicExecutionContext).createSolver = createSolver;
2921
+ protoOf(ClassicExecutionContext).createMutableSolver = createMutableSolver;
2922
+ protoOf(ClassicExecutionContext).update = update;
2923
+ protoOf(ClassicExecutionContext).f1u = get_standardInput;
2924
+ protoOf(ClassicExecutionContext).h1u = get_standardOutput;
2925
+ protoOf(ClassicExecutionContext).j1u = get_standardError;
2926
+ protoOf(ClassicExecutionContext).l1u = get_warnings;
2927
+ protoOf(ClassicExecutionContext).m1t = get_endTime;
2928
+ protoOf(ClassicExecutionContext).o1t = get_remainingTime;
2929
+ protoOf(ClassicExecutionContext).p1t = get_elapsedTime;
2930
+ protoOf(ClassicSolver).copy = copy;
2931
+ protoOf(ClassicSolver).solveWithTimeout = solveWithTimeout;
2932
+ protoOf(ClassicSolver).solve = solve;
2933
+ protoOf(ClassicSolver).solveListWithTimeout = solveListWithTimeout;
2934
+ protoOf(ClassicSolver).solveList = solveList;
2935
+ protoOf(ClassicSolver).solveListWithOptions = solveListWithOptions;
2936
+ protoOf(ClassicSolver).solveOnceWithTimeout = solveOnceWithTimeout;
2937
+ protoOf(ClassicSolver).solveOnce = solveOnce;
2938
+ protoOf(ClassicSolver).solveOnceWithOptions = solveOnceWithOptions;
2939
+ protoOf(ClassicSolver).f1u = get_standardInput;
2940
+ protoOf(ClassicSolver).h1u = get_standardOutput;
2941
+ protoOf(ClassicSolver).j1u = get_standardError;
2942
+ protoOf(ClassicSolver).l1u = get_warnings;
2943
+ protoOf(ClassicSolverFactory).rawSolverOf = rawSolverOf;
2944
+ protoOf(ClassicSolverFactory).solverOf = solverOf;
2945
+ protoOf(ClassicSolverFactory).mutableSolverOf = mutableSolverOf;
2946
+ protoOf(ClassicSolverFactory).rawMutableSolverOf = rawMutableSolverOf;
2947
+ protoOf(ClassicSolverFactory).newBuilder = newBuilder;
2948
+ protoOf(ClassicSolverFactory).t1w = get_defaultRuntime;
2949
+ protoOf(ClassicSolverFactory).v1w = get_defaultUnificator;
2950
+ protoOf(ClassicSolverFactory).w1w = get_defaultFlags;
2951
+ protoOf(ClassicSolverFactory).z1w = get_defaultStaticKb;
2952
+ protoOf(ClassicSolverFactory).a1x = get_defaultDynamicKb;
2953
+ protoOf(ClassicSolverFactory).b1x = get_defaultInputChannel;
2954
+ protoOf(ClassicSolverFactory).c1x = get_defaultOutputChannel;
2955
+ protoOf(ClassicSolverFactory).d1x = get_defaultErrorChannel;
2956
+ protoOf(ClassicSolverFactory).e1x = get_defaultWarningsChannel;
2957
+ protoOf(ClassicSolverFactory).m1x = solverWithDefaultBuiltins;
2958
+ protoOf(ClassicSolverFactory).solverWithDefaultBuiltinsAnd = solverWithDefaultBuiltinsAnd;
2959
+ protoOf(ClassicSolverFactory).o1x = mutableSolverWithDefaultBuiltins;
2960
+ protoOf(ClassicSolverFactory).mutableSolverWithDefaultBuiltinsAnd = mutableSolverWithDefaultBuiltinsAnd;
2961
+ protoOf(MutableClassicSolver).copy = copy;
2962
+ protoOf(MutableClassicSolver).solveWithTimeout = solveWithTimeout;
2963
+ protoOf(MutableClassicSolver).solve = solve;
2964
+ protoOf(MutableClassicSolver).solveListWithTimeout = solveListWithTimeout;
2965
+ protoOf(MutableClassicSolver).solveList = solveList;
2966
+ protoOf(MutableClassicSolver).solveListWithOptions = solveListWithOptions;
2967
+ protoOf(MutableClassicSolver).solveOnceWithTimeout = solveOnceWithTimeout;
2968
+ protoOf(MutableClassicSolver).solveOnce = solveOnce;
2969
+ protoOf(MutableClassicSolver).solveOnceWithOptions = solveOnceWithOptions;
2970
+ protoOf(MutableClassicSolver).f1u = get_standardInput;
2971
+ protoOf(MutableClassicSolver).h1u = get_standardOutput;
2972
+ protoOf(MutableClassicSolver).j1u = get_standardError;
2973
+ protoOf(MutableClassicSolver).l1u = get_warnings;
2974
+ protoOf(MutableClassicSolver).loadStaticClauses = loadStaticClauses;
2975
+ protoOf(MutableClassicSolver).loadStaticClausesIterable = loadStaticClausesIterable;
2976
+ protoOf(MutableClassicSolver).loadStaticClausesSequence = loadStaticClausesSequence;
2977
+ protoOf(MutableClassicSolver).loadDynamicClauses = loadDynamicClauses;
2978
+ protoOf(MutableClassicSolver).loadDynamicClausesIterable = loadDynamicClausesIterable;
2979
+ protoOf(MutableClassicSolver).loadDynamicClausesSequence = loadDynamicClausesSequence;
2980
+ protoOf(AbstractState).z35 = get_isEndState;
2981
+ protoOf(AbstractState).asEndState = asEndState;
2982
+ protoOf(AbstractState).castToEndState = castToEndState;
2983
+ protoOf(AbstractState).clone = clone;
2984
+ protoOf(AbstractEndState).c33 = get_hasOpenAlternatives;
2985
+ protoOf(AbstractEndState).z35 = get_isEndState_0;
2986
+ protoOf(AbstractEndState).a36 = asEndState_0;
2987
+ protoOf(AbstractEndState).castToEndState = castToEndState;
2988
+ protoOf(AbstractEndState).clone = clone;
2989
+ protoOf(StateBacktracking).clone = clone;
2990
+ protoOf(StateBacktracking).z35 = get_isEndState;
2991
+ protoOf(StateBacktracking).asEndState = asEndState;
2992
+ protoOf(StateBacktracking).castToEndState = castToEndState;
2993
+ protoOf(StateEnd).clone = clone;
2994
+ protoOf(StateEnd).c33 = get_hasOpenAlternatives;
2995
+ protoOf(StateEnd).z35 = get_isEndState_0;
2996
+ protoOf(StateEnd).a36 = asEndState_0;
2997
+ protoOf(StateEnd).castToEndState = castToEndState;
2998
+ protoOf(StateException).clone = clone;
2999
+ protoOf(StateException).z35 = get_isEndState;
3000
+ protoOf(StateException).asEndState = asEndState;
3001
+ protoOf(StateException).castToEndState = castToEndState;
3002
+ protoOf(StateGoalSelection).clone = clone;
3003
+ protoOf(StateGoalSelection).z35 = get_isEndState;
3004
+ protoOf(StateGoalSelection).asEndState = asEndState;
3005
+ protoOf(StateGoalSelection).castToEndState = castToEndState;
3006
+ protoOf(StateHalt).clone = clone;
3007
+ protoOf(StateHalt).z35 = get_isEndState_0;
3008
+ protoOf(StateHalt).a36 = asEndState_0;
3009
+ protoOf(StateHalt).castToEndState = castToEndState;
3010
+ protoOf(StateHalt).c33 = get_hasOpenAlternatives;
3011
+ protoOf(StateInit).clone = clone;
3012
+ protoOf(StateInit).z35 = get_isEndState;
3013
+ protoOf(StateInit).asEndState = asEndState;
3014
+ protoOf(StateInit).castToEndState = castToEndState;
3015
+ protoOf(StatePrimitiveExecution).clone = clone;
3016
+ protoOf(StatePrimitiveExecution).z35 = get_isEndState;
3017
+ protoOf(StatePrimitiveExecution).asEndState = asEndState;
3018
+ protoOf(StatePrimitiveExecution).castToEndState = castToEndState;
3019
+ protoOf(StatePrimitiveSelection).clone = clone;
3020
+ protoOf(StatePrimitiveSelection).z35 = get_isEndState;
3021
+ protoOf(StatePrimitiveSelection).asEndState = asEndState;
3022
+ protoOf(StatePrimitiveSelection).castToEndState = castToEndState;
3023
+ protoOf(StateRuleExecution).clone = clone;
3024
+ protoOf(StateRuleExecution).z35 = get_isEndState;
3025
+ protoOf(StateRuleExecution).asEndState = asEndState;
3026
+ protoOf(StateRuleExecution).castToEndState = castToEndState;
3027
+ protoOf(StateRuleSelection).clone = clone;
3028
+ protoOf(StateRuleSelection).z35 = get_isEndState;
3029
+ protoOf(StateRuleSelection).asEndState = asEndState;
3030
+ protoOf(StateRuleSelection).castToEndState = castToEndState;
3031
+ protoOf(DefaultBuiltins).containsSignature = containsSignature;
3032
+ protoOf(DefaultBuiltins).containsOperator = containsOperator;
3033
+ protoOf(DefaultBuiltins).hasPrimitive = hasPrimitive;
3034
+ protoOf(DefaultBuiltins).hasFunction = hasFunction;
3035
+ protoOf(DefaultBuiltins).r2c = get_ruleSignatures;
3036
+ protoOf(DefaultBuiltins).hasProtected = hasProtected;
3306
3037
  //endregion
3307
3038
  //region block: exports
3308
3039
  function $jsExportAll$(_) {
@@ -3311,10 +3042,7 @@
3311
3042
  var $it$unibo$tuprolog = $it$unibo.tuprolog || ($it$unibo.tuprolog = {});
3312
3043
  var $it$unibo$tuprolog$solve = $it$unibo$tuprolog.solve || ($it$unibo$tuprolog.solve = {});
3313
3044
  var $it$unibo$tuprolog$solve$classic = $it$unibo$tuprolog$solve.classic || ($it$unibo$tuprolog$solve.classic = {});
3314
- Object.defineProperty($it$unibo$tuprolog$solve$classic, 'ClassicSolverFactory', {
3315
- configurable: true,
3316
- get: ClassicSolverFactory_getInstance
3317
- });
3045
+ defineProp($it$unibo$tuprolog$solve$classic, 'ClassicSolverFactory', ClassicSolverFactory_getInstance);
3318
3046
  }
3319
3047
  $jsExportAll$(_);
3320
3048
  _.$jsExportAll$ = $jsExportAll$;
@@ -3324,6 +3052,6 @@
3324
3052
  _.$_$.c = ClassicSolverFactory_getInstance;
3325
3053
  //endregion
3326
3054
  return _;
3327
- }(module.exports, require('./2p-solve.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./2p-theory.js'), require('./2p-unify.js'), require('./2p-core.js'), require('./2p-utils.js')));
3055
+ }));
3328
3056
 
3329
3057
  //# sourceMappingURL=2p-solve-classic.js.map