@tuprolog/2p-full 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +204 -201
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +3668 -4128
- package/2p-core.js.map +1 -1
- package/2p-datalog.js +3 -3
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js +3 -3
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +3 -3
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +3 -3
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +3 -3
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +9 -19
- package/2p-full.js.map +1 -1
- package/2p-io-lib.js +6 -3321
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +6 -3435
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +6 -1266
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +6 -30
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +6 -126
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +6 -499
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js +3 -3
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js +3 -3
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1216 -1203
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js +3 -3
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +8 -8
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +2095 -2140
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1244 -1333
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5185 -6393
- package/2p-solve.js.map +1 -1
- package/2p-test-dsl.js +3 -3
- package/2p-test-dsl.js.map +1 -1
- package/2p-theory.js +2091 -1992
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +315 -300
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +625 -635
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +15 -0
- package/clikt-clikt-mordant.js.map +1 -0
- package/clikt-clikt.js +15 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +15 -0
- package/colormath-root-colormath.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +6829 -8585
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js +15 -0
- package/kotlin-kotlin-test.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +15 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +15 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kt-math.js +3143 -3508
- package/kt-math.js.map +1 -1
- package/mordant-mordant-omnibus.js +15 -0
- package/mordant-mordant-omnibus.js.map +1 -0
- package/mordant-mordant.js +19 -0
- package/mordant-mordant.js.map +1 -0
- package/package.json +2 -3
- package/88b0986a7186d029-atomicfu-js-ir.js +0 -15
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/clikt-clikt-js-ir.js +0 -6006
- package/clikt-clikt-js-ir.js.map +0 -1
- package/kotlin-kotlin-test-kotlin-test-js-ir.js +0 -15
- package/kotlin-kotlin-test-kotlin-test-js-ir.js.map +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +0 -15
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
package/2p-oop-lib.js
CHANGED
|
@@ -1,3442 +1,13 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports'
|
|
3
|
+
define(['exports'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
if (typeof this['2p-solve'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module '2p-oop-lib'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to '2p-oop-lib'.");
|
|
12
|
-
}
|
|
13
|
-
if (typeof this['kt-math'] === 'undefined') {
|
|
14
|
-
throw new Error("Error loading module '2p-oop-lib'. Its dependency 'kt-math' was not found. Please, check whether 'kt-math' is loaded prior to '2p-oop-lib'.");
|
|
15
|
-
}
|
|
16
|
-
if (typeof this['2p-core'] === 'undefined') {
|
|
17
|
-
throw new Error("Error loading module '2p-oop-lib'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-oop-lib'.");
|
|
18
|
-
}
|
|
19
|
-
if (typeof this['2p-utils'] === 'undefined') {
|
|
20
|
-
throw new Error("Error loading module '2p-oop-lib'. Its dependency '2p-utils' was not found. Please, check whether '2p-utils' is loaded prior to '2p-oop-lib'.");
|
|
21
|
-
}
|
|
22
|
-
if (typeof this['2p-unify'] === 'undefined') {
|
|
23
|
-
throw new Error("Error loading module '2p-oop-lib'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-oop-lib'.");
|
|
24
|
-
}
|
|
25
|
-
root['2p-oop-lib'] = factory(typeof this['2p-oop-lib'] === 'undefined' ? {} : this['2p-oop-lib'], this['kotlin-kotlin-stdlib'], this['2p-solve'], this['kt-math'], this['2p-core'], this['2p-utils'], this['2p-unify']);
|
|
26
|
-
}
|
|
27
|
-
}(this, function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_solve, kotlin_io_github_gciatto_kt_math, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_unify) {
|
|
5
|
+
factory(module.exports);
|
|
6
|
+
else
|
|
7
|
+
globalThis['2p-oop-lib'] = factory(typeof globalThis['2p-oop-lib'] === 'undefined' ? {} : globalThis['2p-oop-lib']);
|
|
8
|
+
}(function (_) {
|
|
28
9
|
'use strict';
|
|
29
|
-
//region block: imports
|
|
30
|
-
var NullPointerException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.u6;
|
|
32
|
-
var interfaceMeta = kotlin_kotlin.$_$.f6;
|
|
33
|
-
var setMetadataFor = kotlin_kotlin.$_$.v6;
|
|
34
|
-
var VOID = kotlin_kotlin.$_$.d;
|
|
35
|
-
var objectMeta = kotlin_kotlin.$_$.t6;
|
|
36
|
-
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
37
|
-
var listOf = kotlin_kotlin.$_$.s3;
|
|
38
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.q2;
|
|
39
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
40
|
-
var to = kotlin_kotlin.$_$.hc;
|
|
41
|
-
var Unit_instance = kotlin_kotlin.$_$.y1;
|
|
42
|
-
var toMap = kotlin_kotlin.$_$.b5;
|
|
43
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.v1;
|
|
44
|
-
var List = kotlin_kotlin.$_$.c2;
|
|
45
|
-
var getKClass = kotlin_kotlin.$_$.c;
|
|
46
|
-
var ArrayList = kotlin_kotlin.$_$.z1;
|
|
47
|
-
var Map = kotlin_kotlin.$_$.d2;
|
|
48
|
-
var LinkedHashMap = kotlin_kotlin.$_$.b2;
|
|
49
|
-
var Long = kotlin_kotlin.$_$.pb;
|
|
50
|
-
var Char = kotlin_kotlin.$_$.hb;
|
|
51
|
-
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
52
|
-
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
53
|
-
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
54
|
-
var Specifier_XFY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.c;
|
|
55
|
-
var Operator = kotlin_it_unibo_tuprolog_core.$_$.n1;
|
|
56
|
-
var Specifier_XFX_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b;
|
|
57
|
-
var Specifier_FX_getInstance = kotlin_it_unibo_tuprolog_core.$_$.a;
|
|
58
|
-
var OperatorSet_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.n;
|
|
59
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.b;
|
|
60
|
-
var Atom = kotlin_it_unibo_tuprolog_core.$_$.o1;
|
|
61
|
-
var isInterface = kotlin_kotlin.$_$.j6;
|
|
62
|
-
var lazy = kotlin_kotlin.$_$.ac;
|
|
63
|
-
var toString = kotlin_kotlin.$_$.gc;
|
|
64
|
-
var hashCode = kotlin_kotlin.$_$.e6;
|
|
65
|
-
var THROW_CCE = kotlin_kotlin.$_$.vb;
|
|
66
|
-
var equals = kotlin_kotlin.$_$.y5;
|
|
67
|
-
var classMeta = kotlin_kotlin.$_$.v5;
|
|
68
|
-
var KProperty1 = kotlin_kotlin.$_$.q7;
|
|
69
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.c6;
|
|
70
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.e;
|
|
71
|
-
var contains = kotlin_kotlin.$_$.r2;
|
|
72
|
-
var listOf_0 = kotlin_kotlin.$_$.r3;
|
|
73
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.p2;
|
|
74
|
-
var copyToArray = kotlin_kotlin.$_$.w2;
|
|
75
|
-
var trimMargin = kotlin_kotlin.$_$.db;
|
|
76
|
-
var toString_0 = kotlin_kotlin.$_$.z6;
|
|
77
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
78
|
-
var setOf = kotlin_kotlin.$_$.o4;
|
|
79
|
-
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.f1;
|
|
80
|
-
var format = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
81
|
-
var captureStack = kotlin_kotlin.$_$.q5;
|
|
82
|
-
var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
83
|
-
var Expected_DEALIASING_EXPRESSION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.l;
|
|
84
|
-
var charSequenceLength = kotlin_kotlin.$_$.u5;
|
|
85
|
-
var charSequenceGet = kotlin_kotlin.$_$.t5;
|
|
86
|
-
var toString_1 = kotlin_kotlin.$_$.o1;
|
|
87
|
-
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
|
|
88
|
-
var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
89
|
-
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.q1;
|
|
90
|
-
var ObjectType_OOP_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
91
|
-
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.m;
|
|
92
|
-
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.l1;
|
|
93
|
-
var objectCreate = kotlin_kotlin.$_$.s6;
|
|
94
|
-
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.t1;
|
|
95
|
-
var Limit_OOP_OBJECT_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.j;
|
|
96
|
-
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.s;
|
|
97
|
-
var Term = kotlin_it_unibo_tuprolog_core.$_$.y2;
|
|
98
|
-
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.j;
|
|
99
|
-
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
100
|
-
var charArrayOf = kotlin_kotlin.$_$.r5;
|
|
101
|
-
var concatToString = kotlin_kotlin.$_$.l9;
|
|
102
|
-
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
103
|
-
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
104
|
-
var isNumber = kotlin_kotlin.$_$.k6;
|
|
105
|
-
var Exception = kotlin_kotlin.$_$.lb;
|
|
106
|
-
var Var = kotlin_it_unibo_tuprolog_core.$_$.b3;
|
|
107
|
-
var sequenceOf = kotlin_kotlin.$_$.w8;
|
|
108
|
-
var Companion_getInstance_4 = kotlin_io_github_gciatto_kt_math.$_$.e;
|
|
109
|
-
var Companion_getInstance_5 = kotlin_kotlin.$_$.x1;
|
|
110
|
-
var plus = kotlin_kotlin.$_$.u8;
|
|
111
|
-
var IntCompanionObject_instance = kotlin_kotlin.$_$.s1;
|
|
112
|
-
var ShortCompanionObject_instance = kotlin_kotlin.$_$.t1;
|
|
113
|
-
var ByteCompanionObject_instance = kotlin_kotlin.$_$.p1;
|
|
114
|
-
var Companion_getInstance_6 = kotlin_io_github_gciatto_kt_math.$_$.d;
|
|
115
|
-
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.q1;
|
|
116
|
-
var compareTo = kotlin_kotlin.$_$.w5;
|
|
117
|
-
var FloatCompanionObject_instance = kotlin_kotlin.$_$.r1;
|
|
118
|
-
var Integer = kotlin_it_unibo_tuprolog_core.$_$.u1;
|
|
119
|
-
var Real = kotlin_it_unibo_tuprolog_core.$_$.x1;
|
|
120
|
-
var Truth = kotlin_it_unibo_tuprolog_core.$_$.z2;
|
|
121
|
-
var first = kotlin_kotlin.$_$.g8;
|
|
122
|
-
var toSet = kotlin_kotlin.$_$.f9;
|
|
123
|
-
var Some = kotlin_it_unibo_tuprolog_utils.$_$.k;
|
|
124
|
-
var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
125
|
-
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
126
|
-
var Functional = kotlin_it_unibo_tuprolog_solve.$_$.h3;
|
|
127
|
-
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.v1;
|
|
128
|
-
var Functional_0 = kotlin_it_unibo_tuprolog_solve.$_$.y2;
|
|
129
|
-
var Expected_OBJECT_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.n;
|
|
130
|
-
var map = kotlin_kotlin.$_$.q8;
|
|
131
|
-
var Companion_instance_5 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
132
|
-
var List_0 = kotlin_it_unibo_tuprolog_core.$_$.v1;
|
|
133
|
-
var toList = kotlin_kotlin.$_$.d9;
|
|
134
|
-
var isArray = kotlin_kotlin.$_$.g6;
|
|
135
|
-
var asSequence = kotlin_kotlin.$_$.o2;
|
|
136
|
-
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.j3;
|
|
137
|
-
var TernaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.l3;
|
|
138
|
-
var asSequence_0 = kotlin_kotlin.$_$.n2;
|
|
139
|
-
var flatMap = kotlin_kotlin.$_$.h8;
|
|
140
|
-
var distinct = kotlin_kotlin.$_$.y7;
|
|
141
|
-
var TypeTester = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
142
|
-
var Expected_TYPE_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.p;
|
|
143
|
-
var Expected_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
144
|
-
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_core.$_$.i1;
|
|
145
|
-
var Companion_getInstance_10 = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
146
|
-
var filter = kotlin_kotlin.$_$.e8;
|
|
147
|
-
var Sequence = kotlin_kotlin.$_$.s7;
|
|
148
|
-
var firstOrNull = kotlin_kotlin.$_$.f8;
|
|
149
|
-
var Yes = kotlin_it_unibo_tuprolog_solve.$_$.n4;
|
|
150
|
-
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
151
|
-
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.r1;
|
|
152
|
-
var Set = kotlin_kotlin.$_$.e2;
|
|
153
|
-
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
154
|
-
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.q3;
|
|
155
|
-
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
156
|
-
var Var_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h2;
|
|
157
|
-
var getStringHashCode = kotlin_kotlin.$_$.d6;
|
|
158
|
-
var toString_2 = kotlin_kotlin.$_$.za;
|
|
159
|
-
var ensureNotNull = kotlin_kotlin.$_$.yb;
|
|
160
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k1;
|
|
161
|
-
var split = kotlin_kotlin.$_$.ka;
|
|
162
|
-
var get_kotlin = kotlin_kotlin.$_$.l6;
|
|
163
|
-
var NotImplementedError = kotlin_kotlin.$_$.qb;
|
|
164
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
165
|
-
//endregion
|
|
166
10
|
//region block: pre-declaration
|
|
167
|
-
setMetadataFor(Ref, 'Ref', interfaceMeta, VOID, [Atom]);
|
|
168
|
-
setMetadataFor(ObjectRef, 'ObjectRef', interfaceMeta, VOID, [Ref]);
|
|
169
|
-
function get_object() {
|
|
170
|
-
throw NullPointerException_init_$Create$();
|
|
171
|
-
}
|
|
172
|
-
function invoke(objectConverter, methodName, arguments_0) {
|
|
173
|
-
throw NullPointerException_init_$Create$();
|
|
174
|
-
}
|
|
175
|
-
function assign(objectConverter, propertyName, value) {
|
|
176
|
-
throw NullPointerException_init_$Create$();
|
|
177
|
-
}
|
|
178
|
-
setMetadataFor(NullRef, 'NullRef', interfaceMeta, VOID, [ObjectRef]);
|
|
179
|
-
setMetadataFor(OOP, 'OOP', objectMeta);
|
|
180
|
-
setMetadataFor(OOPLib, 'OOPLib', objectMeta, AbstractLibrary);
|
|
181
|
-
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
182
|
-
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
183
|
-
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
184
|
-
setMetadataFor(Result, 'Result', classMeta);
|
|
185
|
-
setMetadataFor(Value, 'Value', classMeta, Result);
|
|
186
|
-
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
187
|
-
function convert(term) {
|
|
188
|
-
return this.w3p(this.y3p(term), term);
|
|
189
|
-
}
|
|
190
|
-
setMetadataFor(TermToObjectConverter, 'TermToObjectConverter', interfaceMeta);
|
|
191
|
-
setMetadataFor(Companion_3, 'Companion', objectMeta);
|
|
192
|
-
function typeRefFromName(typeName) {
|
|
193
|
-
var tmp = Companion_instance.ar(this.b3q(typeName));
|
|
194
|
-
return tmp.st(TypeFactory$typeRefFromName$lambda).r2();
|
|
195
|
-
}
|
|
196
|
-
setMetadataFor(TypeFactory, 'TypeFactory', interfaceMeta);
|
|
197
|
-
setMetadataFor(Companion_4, 'Companion', objectMeta);
|
|
198
|
-
function create(objectConverter, arguments_0) {
|
|
199
|
-
return this.e3q(objectConverter, listOf(arguments_0.slice()));
|
|
200
|
-
}
|
|
201
|
-
setMetadataFor(TypeRef, 'TypeRef', interfaceMeta, VOID, [Ref]);
|
|
202
|
-
setMetadataFor(OopException, 'OopException', classMeta, TuPrologException);
|
|
203
|
-
setMetadataFor(MalformedAliasException, 'MalformedAliasException', classMeta, OopException);
|
|
204
|
-
setMetadataFor(NoSuchAnAliasException, 'NoSuchAnAliasException', classMeta, OopException);
|
|
205
|
-
setMetadataFor(Companion_5, 'Companion', objectMeta);
|
|
206
|
-
setMetadataFor(TermToObjectConversionException, 'TermToObjectConversionException', classMeta, OopException);
|
|
207
|
-
setMetadataFor(NullRefImpl, 'NullRefImpl', objectMeta, VOID, [NullRef, Atom]);
|
|
208
|
-
setMetadataFor(ObjectRefImpl, 'ObjectRefImpl', classMeta, VOID, [ObjectRef, Atom]);
|
|
209
|
-
setMetadataFor(ObjectToTermConverterImpl, 'ObjectToTermConverterImpl', classMeta, VOID, VOID, ObjectToTermConverterImpl);
|
|
210
|
-
setMetadataFor(TermToObjectConverterImpl, 'TermToObjectConverterImpl', classMeta, VOID, [TermToObjectConverter]);
|
|
211
|
-
setMetadataFor(TypeFactoryImpl, 'TypeFactoryImpl', classMeta, VOID, [TypeFactory], TypeFactoryImpl);
|
|
212
|
-
setMetadataFor(Companion_6, 'Companion', objectMeta);
|
|
213
|
-
setMetadataFor(TypeRefImpl, 'TypeRefImpl', classMeta, VOID, [TypeRef, Atom]);
|
|
214
|
-
setMetadataFor(AbstractInvoke, 'AbstractInvoke', classMeta, Functional);
|
|
215
|
-
setMetadataFor(AbstractIterableItems, 'AbstractIterableItems', classMeta, Functional_0);
|
|
216
|
-
setMetadataFor(ArrayItems, 'ArrayItems', objectMeta, AbstractIterableItems);
|
|
217
|
-
setMetadataFor(Assign, 'Assign', objectMeta, Predicative);
|
|
218
|
-
setMetadataFor(Cast, 'Cast', objectMeta, TernaryRelation);
|
|
219
|
-
setMetadataFor(InvokeMethod, 'InvokeMethod', objectMeta, AbstractInvoke);
|
|
220
|
-
setMetadataFor(InvokeStrict, 'InvokeStrict', objectMeta, AbstractInvoke);
|
|
221
|
-
setMetadataFor(ListItems, 'ListItems', objectMeta, AbstractIterableItems);
|
|
222
|
-
setMetadataFor(NewObject3, 'NewObject3', objectMeta, Functional);
|
|
223
|
-
setMetadataFor(NullRef_0, 'NullRef', objectMeta, TypeTester);
|
|
224
|
-
setMetadataFor(ObjectRef_0, 'ObjectRef', objectMeta, TypeTester);
|
|
225
|
-
setMetadataFor(Ref_0, 'Ref', objectMeta, TypeTester);
|
|
226
|
-
setMetadataFor(Register, 'Register', objectMeta, NonBacktrackable);
|
|
227
|
-
setMetadataFor(SetItems, 'SetItems', objectMeta, AbstractIterableItems);
|
|
228
|
-
setMetadataFor(Type, 'Type', objectMeta, Functional_0);
|
|
229
|
-
setMetadataFor(TypeRef_0, 'TypeRef', objectMeta, TypeTester);
|
|
230
|
-
setMetadataFor(Unregister, 'Unregister', objectMeta, NonBacktrackable_0);
|
|
231
|
-
setMetadataFor(Companion_7, 'Companion', objectMeta);
|
|
232
|
-
setMetadataFor(Alias, 'Alias', classMeta, RuleWrapper);
|
|
233
|
-
setMetadataFor(ColonEquals, 'ColonEquals', classMeta, RuleWrapper);
|
|
234
|
-
setMetadataFor(Cast_0, 'Cast', objectMeta, ColonEquals);
|
|
235
|
-
setMetadataFor(Invocation, 'Invocation', objectMeta, ColonEquals);
|
|
236
|
-
setMetadataFor(Assignment, 'Assignment', objectMeta, ColonEquals);
|
|
237
|
-
setMetadataFor(Dot, 'Dot', objectMeta, RuleWrapper);
|
|
238
|
-
setMetadataFor(Companion_8, 'Companion', objectMeta);
|
|
239
|
-
setMetadataFor(FluentReduce, 'FluentReduce', classMeta, RuleWrapper);
|
|
240
|
-
setMetadataFor(Recursive, 'Recursive', objectMeta, FluentReduce);
|
|
241
|
-
setMetadataFor(Couple, 'Couple', objectMeta, FluentReduce);
|
|
242
|
-
setMetadataFor(Trivial, 'Trivial', objectMeta, FluentReduce);
|
|
243
|
-
setMetadataFor(NewObject2, 'NewObject2', objectMeta, RuleWrapper);
|
|
244
|
-
setMetadataFor(Companion_9, 'Companion', objectMeta);
|
|
245
|
-
setMetadataFor(PropertyReduce, 'PropertyReduce', classMeta, RuleWrapper);
|
|
246
|
-
setMetadataFor(Recursive_0, 'Recursive', objectMeta, PropertyReduce);
|
|
247
|
-
setMetadataFor(Base, 'Base', objectMeta, PropertyReduce);
|
|
248
|
-
//endregion
|
|
249
|
-
function NullRef() {
|
|
250
|
-
}
|
|
251
|
-
function OOP() {
|
|
252
|
-
this.a3p_1 = '.';
|
|
253
|
-
this.b3p_1 = ':=';
|
|
254
|
-
this.c3p_1 = '$';
|
|
255
|
-
this.d3p_1 = 'as';
|
|
256
|
-
this.e3p_1 = 'alias';
|
|
257
|
-
}
|
|
258
|
-
var OOP_instance;
|
|
259
|
-
function OOP_getInstance() {
|
|
260
|
-
return OOP_instance;
|
|
261
|
-
}
|
|
262
|
-
function OOPLib() {
|
|
263
|
-
OOPLib_instance = this;
|
|
264
|
-
AbstractLibrary.call(this);
|
|
265
|
-
}
|
|
266
|
-
protoOf(OOPLib).j2e = function () {
|
|
267
|
-
return 'prolog.oop';
|
|
268
|
-
};
|
|
269
|
-
protoOf(OOPLib).i2e = function () {
|
|
270
|
-
// Inline function 'kotlin.collections.map' call
|
|
271
|
-
var this_0 = listOf([ArrayItems_getInstance(), Assign_getInstance(), Cast_getInstance(), Type_getInstance(), InvokeMethod_getInstance(), InvokeStrict_getInstance(), ListItems_getInstance(), NewObject3_getInstance(), NullRef_getInstance(), ObjectRef_getInstance(), Ref_getInstance(), Register_getInstance(), SetItems_getInstance(), TypeRef_getInstance(), Unregister_getInstance()]);
|
|
272
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
273
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
274
|
-
var tmp0_iterator = this_0.r();
|
|
275
|
-
while (tmp0_iterator.s()) {
|
|
276
|
-
var item = tmp0_iterator.u();
|
|
277
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.OOPLib.<get-primitives>.<anonymous>' call
|
|
278
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
279
|
-
var tmp$ret$1 = to(item.signature, item.q1u());
|
|
280
|
-
destination.o(tmp$ret$1);
|
|
281
|
-
}
|
|
282
|
-
return toMap(destination);
|
|
283
|
-
};
|
|
284
|
-
protoOf(OOPLib).p1l = function () {
|
|
285
|
-
// Inline function 'kotlin.collections.map' call
|
|
286
|
-
var this_0 = listOf(arrayConcat([[Cast_getInstance_0(), Invocation_getInstance(), Assignment_getInstance(), Dot_getInstance(), Recursive_getInstance(), Couple_getInstance(), Trivial_getInstance(), NewObject2_getInstance(), Recursive_getInstance_0(), Base_getInstance(), Companion_instance_15.h3p('string', PrimitiveClasses_getInstance().m7()), Companion_instance_15.h3p('array', PrimitiveClasses_getInstance().l7()), Companion_instance_15.h3p('list', getKClass(List)), Companion_instance_15.h3p('arraylist', getKClass(ArrayList)), Companion_instance_15.h3p('map', getKClass(Map)), Companion_instance_15.h3p('hashmap', getKClass(LinkedHashMap)), Companion_instance_15.h3p('int', PrimitiveClasses_getInstance().i7()), Companion_instance_15.h3p('integer', PrimitiveClasses_getInstance().i7()), Companion_instance_15.h3p('double', PrimitiveClasses_getInstance().k7()), Companion_instance_15.h3p('float', PrimitiveClasses_getInstance().j7()), Companion_instance_15.h3p('long', getKClass(Long)), Companion_instance_15.h3p('short', PrimitiveClasses_getInstance().h7()), Companion_instance_15.h3p('byte', PrimitiveClasses_getInstance().g7()), Companion_instance_15.h3p('char', getKClass(Char)), Companion_instance_15.h3p('bool', PrimitiveClasses_getInstance().f7()), Companion_instance_15.h3p('boolean', PrimitiveClasses_getInstance().f7()), Companion_instance_15.h3p('any', PrimitiveClasses_getInstance().c7()), Companion_instance_15.h3p('nothing', PrimitiveClasses_getInstance().e7()), Companion_instance_15.h3p('big_integer', getKClass(BigInteger)), Companion_instance_15.h3p('big_decimal', getKClass(BigDecimal))], get_platformSpecificAliases()]));
|
|
287
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
288
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
289
|
-
var tmp0_iterator = this_0.r();
|
|
290
|
-
while (tmp0_iterator.s()) {
|
|
291
|
-
var item = tmp0_iterator.u();
|
|
292
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.OOPLib.<get-clauses>.<anonymous>' call
|
|
293
|
-
var tmp$ret$0 = item.q1u();
|
|
294
|
-
destination.o(tmp$ret$0);
|
|
295
|
-
}
|
|
296
|
-
return destination;
|
|
297
|
-
};
|
|
298
|
-
protoOf(OOPLib).l1v = function () {
|
|
299
|
-
return OperatorSet_init_$Create$([new Operator('.', Specifier_XFY_getInstance(), 800), new Operator(':=', Specifier_XFX_getInstance(), 850), new Operator('as', Specifier_XFX_getInstance(), 200), new Operator('$', Specifier_FX_getInstance(), 100)]);
|
|
300
|
-
};
|
|
301
|
-
var OOPLib_instance;
|
|
302
|
-
function OOPLib_getInstance() {
|
|
303
|
-
if (OOPLib_instance == null)
|
|
304
|
-
new OOPLib();
|
|
305
|
-
return OOPLib_instance;
|
|
306
|
-
}
|
|
307
|
-
function nameOf($this, type, identifier) {
|
|
308
|
-
return '<object:' + get_fullName(type) + '#' + identifier + '>';
|
|
309
|
-
}
|
|
310
|
-
function Companion() {
|
|
311
|
-
Companion_instance_7 = this;
|
|
312
|
-
this.i3p_1 = NullRefImpl_getInstance();
|
|
313
|
-
}
|
|
314
|
-
protoOf(Companion).j3p = function (any) {
|
|
315
|
-
return any == null ? nameOf(this, PrimitiveClasses_getInstance().e7(), 'null') : nameOf(this, getKClassFromExpression(any), get_identifier(any));
|
|
316
|
-
};
|
|
317
|
-
protoOf(Companion).k3p = function (any) {
|
|
318
|
-
return any == null ? this.i3p_1 : new ObjectRefImpl(any);
|
|
319
|
-
};
|
|
320
|
-
var Companion_instance_7;
|
|
321
|
-
function Companion_getInstance_11() {
|
|
322
|
-
if (Companion_instance_7 == null)
|
|
323
|
-
new Companion();
|
|
324
|
-
return Companion_instance_7;
|
|
325
|
-
}
|
|
326
|
-
function ObjectRef() {
|
|
327
|
-
}
|
|
328
|
-
function Companion_0() {
|
|
329
|
-
Companion_instance_8 = this;
|
|
330
|
-
this.l3p_1 = new ObjectToTermConverterImpl();
|
|
331
|
-
}
|
|
332
|
-
var Companion_instance_8;
|
|
333
|
-
function Companion_getInstance_12() {
|
|
334
|
-
if (Companion_instance_8 == null)
|
|
335
|
-
new Companion_0();
|
|
336
|
-
return Companion_instance_8;
|
|
337
|
-
}
|
|
338
|
-
function Companion_1() {
|
|
339
|
-
}
|
|
340
|
-
protoOf(Companion_1).m3p = function (type, termToObjectConverter) {
|
|
341
|
-
return overloadSelector(type, termToObjectConverter);
|
|
342
|
-
};
|
|
343
|
-
var Companion_instance_9;
|
|
344
|
-
function Companion_getInstance_13() {
|
|
345
|
-
return Companion_instance_9;
|
|
346
|
-
}
|
|
347
|
-
function Ref() {
|
|
348
|
-
}
|
|
349
|
-
function _get_termValue__ikgccs($this) {
|
|
350
|
-
// Inline function 'kotlin.getValue' call
|
|
351
|
-
var this_0 = $this.o3p_1;
|
|
352
|
-
termValue$factory();
|
|
353
|
-
return this_0.r2();
|
|
354
|
-
}
|
|
355
|
-
function _get_objectRef__3zhern($this) {
|
|
356
|
-
// Inline function 'kotlin.getValue' call
|
|
357
|
-
var this_0 = $this.p3p_1;
|
|
358
|
-
objectRef$factory();
|
|
359
|
-
return this_0.r2();
|
|
360
|
-
}
|
|
361
|
-
function Result$Value$termValue$delegate$lambda(this$0) {
|
|
362
|
-
return function () {
|
|
363
|
-
return Companion_getInstance_12().l3p_1.q3p(this$0.n3p_1);
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
function Result$Value$objectRef$delegate$lambda(this$0) {
|
|
367
|
-
return function () {
|
|
368
|
-
// Inline function 'kotlin.let' call
|
|
369
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
370
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.Value.objectRef$delegate.<anonymous>.<anonymous>' call
|
|
371
|
-
var it = _get_termValue__ikgccs(this$0);
|
|
372
|
-
var tmp;
|
|
373
|
-
if (isInterface(it, ObjectRef)) {
|
|
374
|
-
tmp = it;
|
|
375
|
-
} else {
|
|
376
|
-
tmp = Companion_getInstance_11().k3p(this$0.n3p_1);
|
|
377
|
-
}
|
|
378
|
-
return tmp;
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
function Value(value) {
|
|
382
|
-
Result.call(this);
|
|
383
|
-
this.n3p_1 = value;
|
|
384
|
-
var tmp = this;
|
|
385
|
-
tmp.o3p_1 = lazy(Result$Value$termValue$delegate$lambda(this));
|
|
386
|
-
var tmp_0 = this;
|
|
387
|
-
tmp_0.p3p_1 = lazy(Result$Value$objectRef$delegate$lambda(this));
|
|
388
|
-
}
|
|
389
|
-
protoOf(Value).p1i = function () {
|
|
390
|
-
return _get_termValue__ikgccs(this);
|
|
391
|
-
};
|
|
392
|
-
protoOf(Value).toTerm = function () {
|
|
393
|
-
return this.p1i();
|
|
394
|
-
};
|
|
395
|
-
protoOf(Value).r3p = function () {
|
|
396
|
-
return _get_objectRef__3zhern(this);
|
|
397
|
-
};
|
|
398
|
-
protoOf(Value).toString = function () {
|
|
399
|
-
return 'Value(value=' + toString(this.n3p_1) + ')';
|
|
400
|
-
};
|
|
401
|
-
protoOf(Value).hashCode = function () {
|
|
402
|
-
return this.n3p_1 == null ? 0 : hashCode(this.n3p_1);
|
|
403
|
-
};
|
|
404
|
-
protoOf(Value).equals = function (other) {
|
|
405
|
-
if (this === other)
|
|
406
|
-
return true;
|
|
407
|
-
if (!(other instanceof Value))
|
|
408
|
-
return false;
|
|
409
|
-
var tmp0_other_with_cast = other instanceof Value ? other : THROW_CCE();
|
|
410
|
-
if (!equals(this.n3p_1, tmp0_other_with_cast.n3p_1))
|
|
411
|
-
return false;
|
|
412
|
-
return true;
|
|
413
|
-
};
|
|
414
|
-
function Result() {
|
|
415
|
-
}
|
|
416
|
-
function termValue$factory() {
|
|
417
|
-
return getPropertyCallableRef('termValue', 1, KProperty1, function (receiver) {
|
|
418
|
-
return _get_termValue__ikgccs(receiver);
|
|
419
|
-
}, null);
|
|
420
|
-
}
|
|
421
|
-
function objectRef$factory() {
|
|
422
|
-
return getPropertyCallableRef('objectRef', 1, KProperty1, function (receiver) {
|
|
423
|
-
return _get_objectRef__3zhern(receiver);
|
|
424
|
-
}, null);
|
|
425
|
-
}
|
|
426
|
-
function TermToObjectConverter$Companion$of$lambda(it) {
|
|
427
|
-
return null;
|
|
428
|
-
}
|
|
429
|
-
function Companion_2() {
|
|
430
|
-
Companion_instance_10 = this;
|
|
431
|
-
this.s3p_1 = this.t3p();
|
|
432
|
-
}
|
|
433
|
-
protoOf(Companion_2).u3p = function (typeFactory, dealiaser) {
|
|
434
|
-
return new TermToObjectConverterImpl(typeFactory, dealiaser);
|
|
435
|
-
};
|
|
436
|
-
protoOf(Companion_2).t3p = function (typeFactory, dealiaser, $super) {
|
|
437
|
-
typeFactory = typeFactory === VOID ? Companion_getInstance_15().v3p_1 : typeFactory;
|
|
438
|
-
var tmp;
|
|
439
|
-
if (dealiaser === VOID) {
|
|
440
|
-
tmp = TermToObjectConverter$Companion$of$lambda;
|
|
441
|
-
} else {
|
|
442
|
-
tmp = dealiaser;
|
|
443
|
-
}
|
|
444
|
-
dealiaser = tmp;
|
|
445
|
-
return $super === VOID ? this.u3p(typeFactory, dealiaser) : $super.u3p.call(this, typeFactory, dealiaser);
|
|
446
|
-
};
|
|
447
|
-
var Companion_instance_10;
|
|
448
|
-
function Companion_getInstance_14() {
|
|
449
|
-
if (Companion_instance_10 == null)
|
|
450
|
-
new Companion_2();
|
|
451
|
-
return Companion_instance_10;
|
|
452
|
-
}
|
|
453
|
-
function TermToObjectConverter() {
|
|
454
|
-
}
|
|
455
|
-
function Companion_3() {
|
|
456
|
-
Companion_instance_11 = this;
|
|
457
|
-
this.v3p_1 = new TypeFactoryImpl();
|
|
458
|
-
}
|
|
459
|
-
var Companion_instance_11;
|
|
460
|
-
function Companion_getInstance_15() {
|
|
461
|
-
if (Companion_instance_11 == null)
|
|
462
|
-
new Companion_3();
|
|
463
|
-
return Companion_instance_11;
|
|
464
|
-
}
|
|
465
|
-
function TypeFactory$typeRefFromName$lambda(it) {
|
|
466
|
-
return Companion_instance_12.a3q(it);
|
|
467
|
-
}
|
|
468
|
-
function TypeFactory() {
|
|
469
|
-
}
|
|
470
|
-
function Companion_4() {
|
|
471
|
-
}
|
|
472
|
-
protoOf(Companion_4).a3q = function (type) {
|
|
473
|
-
return new TypeRefImpl(type);
|
|
474
|
-
};
|
|
475
|
-
var Companion_instance_12;
|
|
476
|
-
function Companion_getInstance_16() {
|
|
477
|
-
return Companion_instance_12;
|
|
478
|
-
}
|
|
479
|
-
function TypeRef() {
|
|
480
|
-
}
|
|
481
|
-
function get_PRIMITIVE_TYPES() {
|
|
482
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
483
|
-
return PRIMITIVE_TYPES;
|
|
484
|
-
}
|
|
485
|
-
var PRIMITIVE_TYPES;
|
|
486
|
-
function get_ID() {
|
|
487
|
-
return ID;
|
|
488
|
-
}
|
|
489
|
-
var ID;
|
|
490
|
-
function get_isPrimitiveType(_this__u8e3s4) {
|
|
491
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
492
|
-
return contains(get_PRIMITIVE_TYPES(), _this__u8e3s4);
|
|
493
|
-
}
|
|
494
|
-
function isSubtypeOf(_this__u8e3s4, other) {
|
|
495
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
496
|
-
return isSubtypeOf_0(_this__u8e3s4, other, false);
|
|
497
|
-
}
|
|
498
|
-
function create_0(_this__u8e3s4, objectConverter, arguments_0) {
|
|
499
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
500
|
-
var constructorRef = Companion_instance_9.m3p(_this__u8e3s4, objectConverter).f3q(arguments_0);
|
|
501
|
-
return callWithPrologArguments(constructorRef, objectConverter, arguments_0);
|
|
502
|
-
}
|
|
503
|
-
function invoke_0(_this__u8e3s4, objectConverter, methodName, arguments_0) {
|
|
504
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
505
|
-
return invoke_1(getKClassFromExpression(_this__u8e3s4), objectConverter, methodName, arguments_0, _this__u8e3s4);
|
|
506
|
-
}
|
|
507
|
-
function invoke_1(_this__u8e3s4, objectConverter, methodName, arguments_0, instance) {
|
|
508
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
509
|
-
var methodRef = Companion_instance_9.m3p(_this__u8e3s4, objectConverter).g3q(methodName, arguments_0);
|
|
510
|
-
return callWithPrologArguments(methodRef, objectConverter, arguments_0, instance);
|
|
511
|
-
}
|
|
512
|
-
function assign_0(_this__u8e3s4, objectConverter, propertyName, value) {
|
|
513
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
514
|
-
return assign_1(getKClassFromExpression(_this__u8e3s4), objectConverter, propertyName, value, _this__u8e3s4);
|
|
515
|
-
}
|
|
516
|
-
function assign_1(_this__u8e3s4, objectConverter, propertyName, value, instance) {
|
|
517
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
518
|
-
var setterRef = get_setterMethod(Companion_instance_9.m3p(_this__u8e3s4, objectConverter).h3q(propertyName, value));
|
|
519
|
-
return callWithPrologArguments(setterRef, objectConverter, listOf_0(value), instance);
|
|
520
|
-
}
|
|
521
|
-
function isSubtypeOf_0(_this__u8e3s4, other, strict) {
|
|
522
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
523
|
-
return isSupertypeOf(other, _this__u8e3s4, strict);
|
|
524
|
-
}
|
|
525
|
-
function callWithPrologArguments(_this__u8e3s4, converter, arguments_0, instance) {
|
|
526
|
-
instance = instance === VOID ? null : instance;
|
|
527
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
528
|
-
var formalArgumentsTypes = ensureArgumentsListIsOfSize(_this__u8e3s4, arguments_0);
|
|
529
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
530
|
-
// Inline function 'kotlin.collections.mapIndexed' call
|
|
531
|
-
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
532
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(arguments_0, 10));
|
|
533
|
-
var index = 0;
|
|
534
|
-
var tmp0_iterator = arguments_0.r();
|
|
535
|
-
while (tmp0_iterator.s()) {
|
|
536
|
-
var item = tmp0_iterator.u();
|
|
537
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.callWithPrologArguments.<anonymous>' call
|
|
538
|
-
var tmp1 = index;
|
|
539
|
-
index = tmp1 + 1 | 0;
|
|
540
|
-
var i = checkIndexOverflow(tmp1);
|
|
541
|
-
var tmp$ret$0 = converter.w3p(formalArgumentsTypes.c1(i), item);
|
|
542
|
-
destination.o(tmp$ret$0);
|
|
543
|
-
}
|
|
544
|
-
var args = copyToArray(destination);
|
|
545
|
-
return catchingPlatformSpecificException(_this__u8e3s4, instance, callWithPrologArguments$lambda(_this__u8e3s4, instance, args));
|
|
546
|
-
}
|
|
547
|
-
function isSupertypeOf(_this__u8e3s4, other, strict) {
|
|
548
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
549
|
-
var tmp$ret$1;
|
|
550
|
-
$l$block: {
|
|
551
|
-
// Inline function 'kotlin.sequences.any' call
|
|
552
|
-
var tmp0_iterator = allSupertypes(other, strict).r();
|
|
553
|
-
while (tmp0_iterator.s()) {
|
|
554
|
-
var element = tmp0_iterator.u();
|
|
555
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.isSupertypeOf.<anonymous>' call
|
|
556
|
-
if (element.equals(_this__u8e3s4)) {
|
|
557
|
-
tmp$ret$1 = true;
|
|
558
|
-
break $l$block;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
tmp$ret$1 = false;
|
|
562
|
-
}
|
|
563
|
-
return tmp$ret$1;
|
|
564
|
-
}
|
|
565
|
-
function ensureArgumentsListIsOfSize(_this__u8e3s4, actualArguments) {
|
|
566
|
-
_init_properties_TypeUtils_kt__wnsx0l();
|
|
567
|
-
// Inline function 'kotlin.also' call
|
|
568
|
-
var this_0 = get_formalParameterTypes(_this__u8e3s4);
|
|
569
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
570
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.ensureArgumentsListIsOfSize.<anonymous>' call
|
|
571
|
-
// Inline function 'kotlin.require' call
|
|
572
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
573
|
-
if (!(get_formalParameterTypes(_this__u8e3s4).l() === actualArguments.l())) {
|
|
574
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.ensureArgumentsListIsOfSize.<anonymous>.<anonymous>' call
|
|
575
|
-
var tmp = _this__u8e3s4.callableName;
|
|
576
|
-
// Inline function 'kotlin.collections.map' call
|
|
577
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
578
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
579
|
-
var tmp0_iterator = this_0.r();
|
|
580
|
-
while (tmp0_iterator.s()) {
|
|
581
|
-
var item = tmp0_iterator.u();
|
|
582
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.ensureArgumentsListIsOfSize.<anonymous>.<anonymous>.<anonymous>' call
|
|
583
|
-
var tmp$ret$0 = get_name(item);
|
|
584
|
-
destination.o(tmp$ret$0);
|
|
585
|
-
}
|
|
586
|
-
var message = trimMargin('\n |\n |Error while invoking ' + tmp + ' the expected argument types \n | ' + destination + ' \n |are not as many as the as the actual parameters (' + this_0.l() + ' vs. ' + actualArguments.l() + '):\n | ' + actualArguments + '\n |\n ');
|
|
587
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
588
|
-
}
|
|
589
|
-
return this_0;
|
|
590
|
-
}
|
|
591
|
-
function callWithPrologArguments$lambda($this_callWithPrologArguments, $instance, $args) {
|
|
592
|
-
return function () {
|
|
593
|
-
var result = invoke_2($this_callWithPrologArguments, $instance, $args.slice());
|
|
594
|
-
return new Value(result);
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
var properties_initialized_TypeUtils_kt_7pe6qv;
|
|
598
|
-
function _init_properties_TypeUtils_kt__wnsx0l() {
|
|
599
|
-
if (!properties_initialized_TypeUtils_kt_7pe6qv) {
|
|
600
|
-
properties_initialized_TypeUtils_kt_7pe6qv = true;
|
|
601
|
-
PRIMITIVE_TYPES = setOf([getKClass(Long), PrimitiveClasses_getInstance().i7(), PrimitiveClasses_getInstance().h7(), PrimitiveClasses_getInstance().g7(), getKClass(Char), PrimitiveClasses_getInstance().k7(), PrimitiveClasses_getInstance().j7()]);
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
function MalformedAliasException(dealiasingExpression) {
|
|
605
|
-
OopException_init_$Init$('This is not a dealiasing expression `' + dealiasingExpression + '` in the form ' + format(get_DEALIASING_TEMPLATE(), Companion_instance_0.prettyExpressionsPrettyVariablesDefaultOperators()), VOID, this);
|
|
606
|
-
captureStack(this, MalformedAliasException);
|
|
607
|
-
this.i3q_1 = dealiasingExpression;
|
|
608
|
-
}
|
|
609
|
-
protoOf(MalformedAliasException).j3q = function (context, signature) {
|
|
610
|
-
var tmp = Companion_instance_1;
|
|
611
|
-
var tmp_0 = Expected_DEALIASING_EXPRESSION_getInstance();
|
|
612
|
-
var tmp_1 = this.w25();
|
|
613
|
-
var tmp_2 = signature.toIndicator();
|
|
614
|
-
var tmp0_safe_receiver = this.message;
|
|
615
|
-
var tmp_3;
|
|
616
|
-
if (tmp0_safe_receiver == null) {
|
|
617
|
-
tmp_3 = null;
|
|
618
|
-
} else {
|
|
619
|
-
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
620
|
-
var tmp_4;
|
|
621
|
-
// Inline function 'kotlin.text.isNotEmpty' call
|
|
622
|
-
if (charSequenceLength(tmp0_safe_receiver) > 0) {
|
|
623
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.exceptions.MalformedAliasException.toLogicError.<anonymous>' call
|
|
624
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
625
|
-
var this_0 = charSequenceGet(tmp0_safe_receiver, 0);
|
|
626
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
627
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
628
|
-
var tmp$ret$4 = toString_1(this_0).toLowerCase();
|
|
629
|
-
var tmp_5 = toString_0(tmp$ret$4);
|
|
630
|
-
// Inline function 'kotlin.text.substring' call
|
|
631
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
632
|
-
tmp_4 = tmp_5 + tmp0_safe_receiver.substring(1);
|
|
633
|
-
} else {
|
|
634
|
-
tmp_4 = tmp0_safe_receiver;
|
|
635
|
-
}
|
|
636
|
-
tmp_3 = tmp_4;
|
|
637
|
-
}
|
|
638
|
-
return tmp.of(context, tmp_0, tmp_1, 'Error in ' + tmp_2 + ': ' + tmp_3);
|
|
639
|
-
};
|
|
640
|
-
protoOf(MalformedAliasException).w25 = function () {
|
|
641
|
-
return this.i3q_1;
|
|
642
|
-
};
|
|
643
|
-
function NoSuchAnAliasException(dealiasingExpression) {
|
|
644
|
-
OopException_init_$Init$('There exists no reference whose alias is `' + dealiasingExpression.get(0) + '`', VOID, this);
|
|
645
|
-
captureStack(this, NoSuchAnAliasException);
|
|
646
|
-
this.k3q_1 = dealiasingExpression;
|
|
647
|
-
// Inline function 'kotlin.require' call
|
|
648
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
649
|
-
// Inline function 'kotlin.require' call
|
|
650
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
651
|
-
if (!Companion_getInstance().matches(this.k3q_1, get_DEALIASING_TEMPLATE())) {
|
|
652
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
653
|
-
var message = 'Failed requirement.';
|
|
654
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
655
|
-
}
|
|
656
|
-
// Inline function 'kotlin.require' call
|
|
657
|
-
var tmp = this.k3q_1.get(0);
|
|
658
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
659
|
-
// Inline function 'kotlin.require' call
|
|
660
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
661
|
-
if (!isInterface(tmp, Struct)) {
|
|
662
|
-
// Inline function 'kotlin.require.<anonymous>' call
|
|
663
|
-
var message_0 = 'Failed requirement.';
|
|
664
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
protoOf(NoSuchAnAliasException).j3q = function (context, signature) {
|
|
668
|
-
var tmp = Companion_instance_2;
|
|
669
|
-
var tmp_0 = ObjectType_OOP_ALIAS_getInstance();
|
|
670
|
-
var tmp_1 = this.w25();
|
|
671
|
-
var tmp0_elvis_lhs = this.message;
|
|
672
|
-
return tmp.of(context, tmp_0, tmp_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
673
|
-
};
|
|
674
|
-
protoOf(NoSuchAnAliasException).w25 = function () {
|
|
675
|
-
return this.k3q_1;
|
|
676
|
-
};
|
|
677
|
-
function OopException_init_$Init$(message, cause, $this) {
|
|
678
|
-
message = message === VOID ? null : message;
|
|
679
|
-
cause = cause === VOID ? null : cause;
|
|
680
|
-
TuPrologException_init_$Init$(message, cause, $this);
|
|
681
|
-
OopException.call($this);
|
|
682
|
-
return $this;
|
|
683
|
-
}
|
|
684
|
-
function Companion_5() {
|
|
685
|
-
}
|
|
686
|
-
var Companion_instance_13;
|
|
687
|
-
function Companion_getInstance_17() {
|
|
688
|
-
return Companion_instance_13;
|
|
689
|
-
}
|
|
690
|
-
function OopException() {
|
|
691
|
-
captureStack(this, OopException);
|
|
692
|
-
}
|
|
693
|
-
function TermToObjectConversionException_init_$Init$(term, $this) {
|
|
694
|
-
TermToObjectConversionException.call($this, term, null);
|
|
695
|
-
return $this;
|
|
696
|
-
}
|
|
697
|
-
function TermToObjectConversionException_init_$Create$(term) {
|
|
698
|
-
var tmp = TermToObjectConversionException_init_$Init$(term, objectCreate(protoOf(TermToObjectConversionException)));
|
|
699
|
-
captureStack(tmp, TermToObjectConversionException_init_$Create$);
|
|
700
|
-
return tmp;
|
|
701
|
-
}
|
|
702
|
-
function TermToObjectConversionException(term, targetType) {
|
|
703
|
-
targetType = targetType === VOID ? null : targetType;
|
|
704
|
-
var tmp;
|
|
705
|
-
if (targetType == null) {
|
|
706
|
-
tmp = null;
|
|
707
|
-
} else {
|
|
708
|
-
// Inline function 'kotlin.let' call
|
|
709
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
710
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.exceptions.TermToObjectConversionException.<init>.<anonymous>' call
|
|
711
|
-
tmp = 'Term `' + term + '` cannot be converted into an object of type ' + get_fullName(targetType);
|
|
712
|
-
}
|
|
713
|
-
var tmp1_elvis_lhs = tmp;
|
|
714
|
-
OopException_init_$Init$(tmp1_elvis_lhs == null ? 'Term `' + term + '` cannot be converted into an object' : tmp1_elvis_lhs, VOID, this);
|
|
715
|
-
captureStack(this, TermToObjectConversionException);
|
|
716
|
-
this.l3q_1 = term;
|
|
717
|
-
this.m3q_1 = targetType;
|
|
718
|
-
}
|
|
719
|
-
protoOf(TermToObjectConversionException).j3q = function (context, signature) {
|
|
720
|
-
return Companion_instance_3.p27(context, signature, Limit_OOP_OBJECT_getInstance(), this);
|
|
721
|
-
};
|
|
722
|
-
function NullRefImpl() {
|
|
723
|
-
NullRefImpl_instance = this;
|
|
724
|
-
this.n3q_1 = Companion_getInstance_0().of(Companion_getInstance_11().j3p(null));
|
|
725
|
-
}
|
|
726
|
-
protoOf(NullRefImpl).rw = function () {
|
|
727
|
-
return this.n3q_1.rw();
|
|
728
|
-
};
|
|
729
|
-
protoOf(NullRefImpl).jx = function () {
|
|
730
|
-
return this.n3q_1.jx();
|
|
731
|
-
};
|
|
732
|
-
protoOf(NullRefImpl).kw = function () {
|
|
733
|
-
return this.n3q_1.kw();
|
|
734
|
-
};
|
|
735
|
-
protoOf(NullRefImpl).qw = function () {
|
|
736
|
-
return this.n3q_1.qw();
|
|
737
|
-
};
|
|
738
|
-
protoOf(NullRefImpl).ix = function () {
|
|
739
|
-
return this.n3q_1.ix();
|
|
740
|
-
};
|
|
741
|
-
protoOf(NullRefImpl).lw = function () {
|
|
742
|
-
return this.n3q_1.lw();
|
|
743
|
-
};
|
|
744
|
-
protoOf(NullRefImpl).xw = function () {
|
|
745
|
-
return this.n3q_1.xw();
|
|
746
|
-
};
|
|
747
|
-
protoOf(NullRefImpl).dx = function () {
|
|
748
|
-
return this.n3q_1.dx();
|
|
749
|
-
};
|
|
750
|
-
protoOf(NullRefImpl).mw = function () {
|
|
751
|
-
return this.n3q_1.mw();
|
|
752
|
-
};
|
|
753
|
-
protoOf(NullRefImpl).nw = function () {
|
|
754
|
-
return this.n3q_1.nw();
|
|
755
|
-
};
|
|
756
|
-
protoOf(NullRefImpl).hx = function () {
|
|
757
|
-
return this.n3q_1.hx();
|
|
758
|
-
};
|
|
759
|
-
protoOf(NullRefImpl).ux = function () {
|
|
760
|
-
return this.n3q_1.ux();
|
|
761
|
-
};
|
|
762
|
-
protoOf(NullRefImpl).fx = function () {
|
|
763
|
-
return this.n3q_1.fx();
|
|
764
|
-
};
|
|
765
|
-
protoOf(NullRefImpl).rx = function () {
|
|
766
|
-
return this.n3q_1.rx();
|
|
767
|
-
};
|
|
768
|
-
protoOf(NullRefImpl).cx = function () {
|
|
769
|
-
return this.n3q_1.cx();
|
|
770
|
-
};
|
|
771
|
-
protoOf(NullRefImpl).qx = function () {
|
|
772
|
-
return this.n3q_1.qx();
|
|
773
|
-
};
|
|
774
|
-
protoOf(NullRefImpl).sx = function () {
|
|
775
|
-
return this.n3q_1.sx();
|
|
776
|
-
};
|
|
777
|
-
protoOf(NullRefImpl).ox = function () {
|
|
778
|
-
return this.n3q_1.ox();
|
|
779
|
-
};
|
|
780
|
-
protoOf(NullRefImpl).yw = function () {
|
|
781
|
-
return this.n3q_1.yw();
|
|
782
|
-
};
|
|
783
|
-
protoOf(NullRefImpl).ww = function () {
|
|
784
|
-
return this.n3q_1.ww();
|
|
785
|
-
};
|
|
786
|
-
protoOf(NullRefImpl).ow = function () {
|
|
787
|
-
return this.n3q_1.ow();
|
|
788
|
-
};
|
|
789
|
-
protoOf(NullRefImpl).nx = function () {
|
|
790
|
-
return this.n3q_1.nx();
|
|
791
|
-
};
|
|
792
|
-
protoOf(NullRefImpl).bx = function () {
|
|
793
|
-
return this.n3q_1.bx();
|
|
794
|
-
};
|
|
795
|
-
protoOf(NullRefImpl).mx = function () {
|
|
796
|
-
return this.n3q_1.mx();
|
|
797
|
-
};
|
|
798
|
-
protoOf(NullRefImpl).vt = function () {
|
|
799
|
-
return this.n3q_1.vt();
|
|
800
|
-
};
|
|
801
|
-
protoOf(NullRefImpl).r2 = function () {
|
|
802
|
-
return this.n3q_1.r2();
|
|
803
|
-
};
|
|
804
|
-
protoOf(NullRefImpl).sw = function () {
|
|
805
|
-
return this.n3q_1.sw();
|
|
806
|
-
};
|
|
807
|
-
protoOf(NullRefImpl).addFirst = function (argument) {
|
|
808
|
-
return this.n3q_1.addFirst(argument);
|
|
809
|
-
};
|
|
810
|
-
protoOf(NullRefImpl).addLast = function (argument) {
|
|
811
|
-
return this.n3q_1.addLast(argument);
|
|
812
|
-
};
|
|
813
|
-
protoOf(NullRefImpl).append = function (argument) {
|
|
814
|
-
return this.n3q_1.append(argument);
|
|
815
|
-
};
|
|
816
|
-
protoOf(NullRefImpl).vw = function () {
|
|
817
|
-
return this.n3q_1.vw();
|
|
818
|
-
};
|
|
819
|
-
protoOf(NullRefImpl).asAtom = function () {
|
|
820
|
-
return this.vw();
|
|
821
|
-
};
|
|
822
|
-
protoOf(NullRefImpl).asBlock = function () {
|
|
823
|
-
return this.n3q_1.asBlock();
|
|
824
|
-
};
|
|
825
|
-
protoOf(NullRefImpl).asClause = function () {
|
|
826
|
-
return this.n3q_1.asClause();
|
|
827
|
-
};
|
|
828
|
-
protoOf(NullRefImpl).asCons = function () {
|
|
829
|
-
return this.n3q_1.asCons();
|
|
830
|
-
};
|
|
831
|
-
protoOf(NullRefImpl).asDirective = function () {
|
|
832
|
-
return this.n3q_1.asDirective();
|
|
833
|
-
};
|
|
834
|
-
protoOf(NullRefImpl).asEmptyBlock = function () {
|
|
835
|
-
return this.n3q_1.asEmptyBlock();
|
|
836
|
-
};
|
|
837
|
-
protoOf(NullRefImpl).asEmptyList = function () {
|
|
838
|
-
return this.n3q_1.asEmptyList();
|
|
839
|
-
};
|
|
840
|
-
protoOf(NullRefImpl).asFact = function () {
|
|
841
|
-
return this.n3q_1.asFact();
|
|
842
|
-
};
|
|
843
|
-
protoOf(NullRefImpl).asIndicator = function () {
|
|
844
|
-
return this.n3q_1.asIndicator();
|
|
845
|
-
};
|
|
846
|
-
protoOf(NullRefImpl).asInteger = function () {
|
|
847
|
-
return this.n3q_1.asInteger();
|
|
848
|
-
};
|
|
849
|
-
protoOf(NullRefImpl).asList = function () {
|
|
850
|
-
return this.n3q_1.asList();
|
|
851
|
-
};
|
|
852
|
-
protoOf(NullRefImpl).asNumeric = function () {
|
|
853
|
-
return this.n3q_1.asNumeric();
|
|
854
|
-
};
|
|
855
|
-
protoOf(NullRefImpl).asReal = function () {
|
|
856
|
-
return this.n3q_1.asReal();
|
|
857
|
-
};
|
|
858
|
-
protoOf(NullRefImpl).asRecursive = function () {
|
|
859
|
-
return this.n3q_1.asRecursive();
|
|
860
|
-
};
|
|
861
|
-
protoOf(NullRefImpl).asRule = function () {
|
|
862
|
-
return this.n3q_1.asRule();
|
|
863
|
-
};
|
|
864
|
-
protoOf(NullRefImpl).gx = function () {
|
|
865
|
-
return this.n3q_1.gx();
|
|
866
|
-
};
|
|
867
|
-
protoOf(NullRefImpl).asStruct = function () {
|
|
868
|
-
return this.gx();
|
|
869
|
-
};
|
|
870
|
-
protoOf(NullRefImpl).asTerm = function () {
|
|
871
|
-
return this.n3q_1.asTerm();
|
|
872
|
-
};
|
|
873
|
-
protoOf(NullRefImpl).asTruth = function () {
|
|
874
|
-
return this.n3q_1.asTruth();
|
|
875
|
-
};
|
|
876
|
-
protoOf(NullRefImpl).asTuple = function () {
|
|
877
|
-
return this.n3q_1.asTuple();
|
|
878
|
-
};
|
|
879
|
-
protoOf(NullRefImpl).asVar = function () {
|
|
880
|
-
return this.n3q_1.asVar();
|
|
881
|
-
};
|
|
882
|
-
protoOf(NullRefImpl).castToAtom = function () {
|
|
883
|
-
return this.n3q_1.castToAtom();
|
|
884
|
-
};
|
|
885
|
-
protoOf(NullRefImpl).castToBlock = function () {
|
|
886
|
-
return this.n3q_1.castToBlock();
|
|
887
|
-
};
|
|
888
|
-
protoOf(NullRefImpl).castToClause = function () {
|
|
889
|
-
return this.n3q_1.castToClause();
|
|
890
|
-
};
|
|
891
|
-
protoOf(NullRefImpl).castToCons = function () {
|
|
892
|
-
return this.n3q_1.castToCons();
|
|
893
|
-
};
|
|
894
|
-
protoOf(NullRefImpl).castToConstant = function () {
|
|
895
|
-
return this.n3q_1.castToConstant();
|
|
896
|
-
};
|
|
897
|
-
protoOf(NullRefImpl).castToDirective = function () {
|
|
898
|
-
return this.n3q_1.castToDirective();
|
|
899
|
-
};
|
|
900
|
-
protoOf(NullRefImpl).castToEmptyBlock = function () {
|
|
901
|
-
return this.n3q_1.castToEmptyBlock();
|
|
902
|
-
};
|
|
903
|
-
protoOf(NullRefImpl).castToEmptyList = function () {
|
|
904
|
-
return this.n3q_1.castToEmptyList();
|
|
905
|
-
};
|
|
906
|
-
protoOf(NullRefImpl).castToFact = function () {
|
|
907
|
-
return this.n3q_1.castToFact();
|
|
908
|
-
};
|
|
909
|
-
protoOf(NullRefImpl).castToIndicator = function () {
|
|
910
|
-
return this.n3q_1.castToIndicator();
|
|
911
|
-
};
|
|
912
|
-
protoOf(NullRefImpl).castToInteger = function () {
|
|
913
|
-
return this.n3q_1.castToInteger();
|
|
914
|
-
};
|
|
915
|
-
protoOf(NullRefImpl).castToList = function () {
|
|
916
|
-
return this.n3q_1.castToList();
|
|
917
|
-
};
|
|
918
|
-
protoOf(NullRefImpl).castToNumeric = function () {
|
|
919
|
-
return this.n3q_1.castToNumeric();
|
|
920
|
-
};
|
|
921
|
-
protoOf(NullRefImpl).castToReal = function () {
|
|
922
|
-
return this.n3q_1.castToReal();
|
|
923
|
-
};
|
|
924
|
-
protoOf(NullRefImpl).castToRecursive = function () {
|
|
925
|
-
return this.n3q_1.castToRecursive();
|
|
926
|
-
};
|
|
927
|
-
protoOf(NullRefImpl).castToRule = function () {
|
|
928
|
-
return this.n3q_1.castToRule();
|
|
929
|
-
};
|
|
930
|
-
protoOf(NullRefImpl).castToStruct = function () {
|
|
931
|
-
return this.n3q_1.castToStruct();
|
|
932
|
-
};
|
|
933
|
-
protoOf(NullRefImpl).castToTerm = function () {
|
|
934
|
-
return this.n3q_1.castToTerm();
|
|
935
|
-
};
|
|
936
|
-
protoOf(NullRefImpl).castToTruth = function () {
|
|
937
|
-
return this.n3q_1.castToTruth();
|
|
938
|
-
};
|
|
939
|
-
protoOf(NullRefImpl).castToTuple = function () {
|
|
940
|
-
return this.n3q_1.castToTuple();
|
|
941
|
-
};
|
|
942
|
-
protoOf(NullRefImpl).castToVar = function () {
|
|
943
|
-
return this.n3q_1.castToVar();
|
|
944
|
-
};
|
|
945
|
-
protoOf(NullRefImpl).lx = function (other) {
|
|
946
|
-
return this.n3q_1.lx(other);
|
|
947
|
-
};
|
|
948
|
-
protoOf(NullRefImpl).d = function (other) {
|
|
949
|
-
return this.lx((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
950
|
-
};
|
|
951
|
-
protoOf(NullRefImpl).containsTag = function (name) {
|
|
952
|
-
return this.n3q_1.containsTag(name);
|
|
953
|
-
};
|
|
954
|
-
protoOf(NullRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
955
|
-
return this.n3q_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
956
|
-
};
|
|
957
|
-
protoOf(NullRefImpl).equals = function (other) {
|
|
958
|
-
return this.n3q_1.equals(other);
|
|
959
|
-
};
|
|
960
|
-
protoOf(NullRefImpl).get = function (index) {
|
|
961
|
-
return this.n3q_1.get(index);
|
|
962
|
-
};
|
|
963
|
-
protoOf(NullRefImpl).getArgAt = function (index) {
|
|
964
|
-
return this.n3q_1.getArgAt(index);
|
|
965
|
-
};
|
|
966
|
-
protoOf(NullRefImpl).getTag = function (name) {
|
|
967
|
-
return this.n3q_1.getTag(name);
|
|
968
|
-
};
|
|
969
|
-
protoOf(NullRefImpl).hashCode = function () {
|
|
970
|
-
return this.n3q_1.hashCode();
|
|
971
|
-
};
|
|
972
|
-
protoOf(NullRefImpl).insertAt = function (index, argument) {
|
|
973
|
-
return this.n3q_1.insertAt(index, argument);
|
|
974
|
-
};
|
|
975
|
-
protoOf(NullRefImpl).resetTags = function (tags) {
|
|
976
|
-
return this.n3q_1.resetTags(tags);
|
|
977
|
-
};
|
|
978
|
-
protoOf(NullRefImpl).setArgs = function (args) {
|
|
979
|
-
return this.n3q_1.setArgs(args);
|
|
980
|
-
};
|
|
981
|
-
protoOf(NullRefImpl).setArgsIterable = function (args) {
|
|
982
|
-
return this.n3q_1.setArgsIterable(args);
|
|
983
|
-
};
|
|
984
|
-
protoOf(NullRefImpl).setArgsSequence = function (args) {
|
|
985
|
-
return this.n3q_1.setArgsSequence(args);
|
|
986
|
-
};
|
|
987
|
-
protoOf(NullRefImpl).setFunctor = function (functor) {
|
|
988
|
-
return this.n3q_1.setFunctor(functor);
|
|
989
|
-
};
|
|
990
|
-
protoOf(NullRefImpl).structurallyEquals = function (other) {
|
|
991
|
-
return this.n3q_1.structurallyEquals(other);
|
|
992
|
-
};
|
|
993
|
-
protoOf(NullRefImpl).toString = function () {
|
|
994
|
-
return this.n3q_1.toString();
|
|
995
|
-
};
|
|
996
|
-
protoOf(NullRefImpl).px = function () {
|
|
997
|
-
return true;
|
|
998
|
-
};
|
|
999
|
-
protoOf(NullRefImpl).tx = function () {
|
|
1000
|
-
return this;
|
|
1001
|
-
};
|
|
1002
|
-
protoOf(NullRefImpl).asConstant = function () {
|
|
1003
|
-
return this.tx();
|
|
1004
|
-
};
|
|
1005
|
-
protoOf(NullRefImpl).tw = function () {
|
|
1006
|
-
return this;
|
|
1007
|
-
};
|
|
1008
|
-
protoOf(NullRefImpl).freshCopy = function () {
|
|
1009
|
-
return this.tw();
|
|
1010
|
-
};
|
|
1011
|
-
protoOf(NullRefImpl).uw = function (scope) {
|
|
1012
|
-
return this;
|
|
1013
|
-
};
|
|
1014
|
-
protoOf(NullRefImpl).freshCopyFromScope = function (scope) {
|
|
1015
|
-
return this.uw(scope);
|
|
1016
|
-
};
|
|
1017
|
-
protoOf(NullRefImpl).kx = function () {
|
|
1018
|
-
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1019
|
-
};
|
|
1020
|
-
protoOf(NullRefImpl).br = function () {
|
|
1021
|
-
return this.kx();
|
|
1022
|
-
};
|
|
1023
|
-
protoOf(NullRefImpl).w16 = function (substitution) {
|
|
1024
|
-
return this;
|
|
1025
|
-
};
|
|
1026
|
-
protoOf(NullRefImpl).applySubstitution = function (substitution) {
|
|
1027
|
-
return this.w16(substitution);
|
|
1028
|
-
};
|
|
1029
|
-
protoOf(NullRefImpl).s2o = function (substitution, substitutions) {
|
|
1030
|
-
return this;
|
|
1031
|
-
};
|
|
1032
|
-
protoOf(NullRefImpl).apply = function (substitution, substitutions) {
|
|
1033
|
-
return this.s2o(substitution, substitutions);
|
|
1034
|
-
};
|
|
1035
|
-
protoOf(NullRefImpl).r2o = function (substitution, substitutions) {
|
|
1036
|
-
return this;
|
|
1037
|
-
};
|
|
1038
|
-
protoOf(NullRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1039
|
-
return this.r2o(substitution, substitutions);
|
|
1040
|
-
};
|
|
1041
|
-
protoOf(NullRefImpl).c16 = function (visitor) {
|
|
1042
|
-
return visitor.visitAtom(this);
|
|
1043
|
-
};
|
|
1044
|
-
protoOf(NullRefImpl).accept = function (visitor) {
|
|
1045
|
-
return this.c16(visitor);
|
|
1046
|
-
};
|
|
1047
|
-
var NullRefImpl_instance;
|
|
1048
|
-
function NullRefImpl_getInstance() {
|
|
1049
|
-
if (NullRefImpl_instance == null)
|
|
1050
|
-
new NullRefImpl();
|
|
1051
|
-
return NullRefImpl_instance;
|
|
1052
|
-
}
|
|
1053
|
-
function ObjectRefImpl(object) {
|
|
1054
|
-
this.o3q_1 = object;
|
|
1055
|
-
this.p3q_1 = Companion_getInstance_0().of(Companion_getInstance_11().j3p(object));
|
|
1056
|
-
}
|
|
1057
|
-
protoOf(ObjectRefImpl).x3o = function () {
|
|
1058
|
-
return this.o3q_1;
|
|
1059
|
-
};
|
|
1060
|
-
protoOf(ObjectRefImpl).rw = function () {
|
|
1061
|
-
return this.p3q_1.rw();
|
|
1062
|
-
};
|
|
1063
|
-
protoOf(ObjectRefImpl).jx = function () {
|
|
1064
|
-
return this.p3q_1.jx();
|
|
1065
|
-
};
|
|
1066
|
-
protoOf(ObjectRefImpl).kw = function () {
|
|
1067
|
-
return this.p3q_1.kw();
|
|
1068
|
-
};
|
|
1069
|
-
protoOf(ObjectRefImpl).qw = function () {
|
|
1070
|
-
return this.p3q_1.qw();
|
|
1071
|
-
};
|
|
1072
|
-
protoOf(ObjectRefImpl).ix = function () {
|
|
1073
|
-
return this.p3q_1.ix();
|
|
1074
|
-
};
|
|
1075
|
-
protoOf(ObjectRefImpl).lw = function () {
|
|
1076
|
-
return this.p3q_1.lw();
|
|
1077
|
-
};
|
|
1078
|
-
protoOf(ObjectRefImpl).xw = function () {
|
|
1079
|
-
return this.p3q_1.xw();
|
|
1080
|
-
};
|
|
1081
|
-
protoOf(ObjectRefImpl).dx = function () {
|
|
1082
|
-
return this.p3q_1.dx();
|
|
1083
|
-
};
|
|
1084
|
-
protoOf(ObjectRefImpl).mw = function () {
|
|
1085
|
-
return this.p3q_1.mw();
|
|
1086
|
-
};
|
|
1087
|
-
protoOf(ObjectRefImpl).nw = function () {
|
|
1088
|
-
return this.p3q_1.nw();
|
|
1089
|
-
};
|
|
1090
|
-
protoOf(ObjectRefImpl).hx = function () {
|
|
1091
|
-
return this.p3q_1.hx();
|
|
1092
|
-
};
|
|
1093
|
-
protoOf(ObjectRefImpl).ux = function () {
|
|
1094
|
-
return this.p3q_1.ux();
|
|
1095
|
-
};
|
|
1096
|
-
protoOf(ObjectRefImpl).fx = function () {
|
|
1097
|
-
return this.p3q_1.fx();
|
|
1098
|
-
};
|
|
1099
|
-
protoOf(ObjectRefImpl).rx = function () {
|
|
1100
|
-
return this.p3q_1.rx();
|
|
1101
|
-
};
|
|
1102
|
-
protoOf(ObjectRefImpl).cx = function () {
|
|
1103
|
-
return this.p3q_1.cx();
|
|
1104
|
-
};
|
|
1105
|
-
protoOf(ObjectRefImpl).qx = function () {
|
|
1106
|
-
return this.p3q_1.qx();
|
|
1107
|
-
};
|
|
1108
|
-
protoOf(ObjectRefImpl).sx = function () {
|
|
1109
|
-
return this.p3q_1.sx();
|
|
1110
|
-
};
|
|
1111
|
-
protoOf(ObjectRefImpl).ox = function () {
|
|
1112
|
-
return this.p3q_1.ox();
|
|
1113
|
-
};
|
|
1114
|
-
protoOf(ObjectRefImpl).yw = function () {
|
|
1115
|
-
return this.p3q_1.yw();
|
|
1116
|
-
};
|
|
1117
|
-
protoOf(ObjectRefImpl).ww = function () {
|
|
1118
|
-
return this.p3q_1.ww();
|
|
1119
|
-
};
|
|
1120
|
-
protoOf(ObjectRefImpl).ow = function () {
|
|
1121
|
-
return this.p3q_1.ow();
|
|
1122
|
-
};
|
|
1123
|
-
protoOf(ObjectRefImpl).nx = function () {
|
|
1124
|
-
return this.p3q_1.nx();
|
|
1125
|
-
};
|
|
1126
|
-
protoOf(ObjectRefImpl).bx = function () {
|
|
1127
|
-
return this.p3q_1.bx();
|
|
1128
|
-
};
|
|
1129
|
-
protoOf(ObjectRefImpl).mx = function () {
|
|
1130
|
-
return this.p3q_1.mx();
|
|
1131
|
-
};
|
|
1132
|
-
protoOf(ObjectRefImpl).vt = function () {
|
|
1133
|
-
return this.p3q_1.vt();
|
|
1134
|
-
};
|
|
1135
|
-
protoOf(ObjectRefImpl).r2 = function () {
|
|
1136
|
-
return this.p3q_1.r2();
|
|
1137
|
-
};
|
|
1138
|
-
protoOf(ObjectRefImpl).sw = function () {
|
|
1139
|
-
return this.p3q_1.sw();
|
|
1140
|
-
};
|
|
1141
|
-
protoOf(ObjectRefImpl).addFirst = function (argument) {
|
|
1142
|
-
return this.p3q_1.addFirst(argument);
|
|
1143
|
-
};
|
|
1144
|
-
protoOf(ObjectRefImpl).addLast = function (argument) {
|
|
1145
|
-
return this.p3q_1.addLast(argument);
|
|
1146
|
-
};
|
|
1147
|
-
protoOf(ObjectRefImpl).append = function (argument) {
|
|
1148
|
-
return this.p3q_1.append(argument);
|
|
1149
|
-
};
|
|
1150
|
-
protoOf(ObjectRefImpl).vw = function () {
|
|
1151
|
-
return this.p3q_1.vw();
|
|
1152
|
-
};
|
|
1153
|
-
protoOf(ObjectRefImpl).asAtom = function () {
|
|
1154
|
-
return this.vw();
|
|
1155
|
-
};
|
|
1156
|
-
protoOf(ObjectRefImpl).asBlock = function () {
|
|
1157
|
-
return this.p3q_1.asBlock();
|
|
1158
|
-
};
|
|
1159
|
-
protoOf(ObjectRefImpl).asClause = function () {
|
|
1160
|
-
return this.p3q_1.asClause();
|
|
1161
|
-
};
|
|
1162
|
-
protoOf(ObjectRefImpl).asCons = function () {
|
|
1163
|
-
return this.p3q_1.asCons();
|
|
1164
|
-
};
|
|
1165
|
-
protoOf(ObjectRefImpl).asDirective = function () {
|
|
1166
|
-
return this.p3q_1.asDirective();
|
|
1167
|
-
};
|
|
1168
|
-
protoOf(ObjectRefImpl).asEmptyBlock = function () {
|
|
1169
|
-
return this.p3q_1.asEmptyBlock();
|
|
1170
|
-
};
|
|
1171
|
-
protoOf(ObjectRefImpl).asEmptyList = function () {
|
|
1172
|
-
return this.p3q_1.asEmptyList();
|
|
1173
|
-
};
|
|
1174
|
-
protoOf(ObjectRefImpl).asFact = function () {
|
|
1175
|
-
return this.p3q_1.asFact();
|
|
1176
|
-
};
|
|
1177
|
-
protoOf(ObjectRefImpl).asIndicator = function () {
|
|
1178
|
-
return this.p3q_1.asIndicator();
|
|
1179
|
-
};
|
|
1180
|
-
protoOf(ObjectRefImpl).asInteger = function () {
|
|
1181
|
-
return this.p3q_1.asInteger();
|
|
1182
|
-
};
|
|
1183
|
-
protoOf(ObjectRefImpl).asList = function () {
|
|
1184
|
-
return this.p3q_1.asList();
|
|
1185
|
-
};
|
|
1186
|
-
protoOf(ObjectRefImpl).asNumeric = function () {
|
|
1187
|
-
return this.p3q_1.asNumeric();
|
|
1188
|
-
};
|
|
1189
|
-
protoOf(ObjectRefImpl).asReal = function () {
|
|
1190
|
-
return this.p3q_1.asReal();
|
|
1191
|
-
};
|
|
1192
|
-
protoOf(ObjectRefImpl).asRecursive = function () {
|
|
1193
|
-
return this.p3q_1.asRecursive();
|
|
1194
|
-
};
|
|
1195
|
-
protoOf(ObjectRefImpl).asRule = function () {
|
|
1196
|
-
return this.p3q_1.asRule();
|
|
1197
|
-
};
|
|
1198
|
-
protoOf(ObjectRefImpl).gx = function () {
|
|
1199
|
-
return this.p3q_1.gx();
|
|
1200
|
-
};
|
|
1201
|
-
protoOf(ObjectRefImpl).asStruct = function () {
|
|
1202
|
-
return this.gx();
|
|
1203
|
-
};
|
|
1204
|
-
protoOf(ObjectRefImpl).asTerm = function () {
|
|
1205
|
-
return this.p3q_1.asTerm();
|
|
1206
|
-
};
|
|
1207
|
-
protoOf(ObjectRefImpl).asTruth = function () {
|
|
1208
|
-
return this.p3q_1.asTruth();
|
|
1209
|
-
};
|
|
1210
|
-
protoOf(ObjectRefImpl).asTuple = function () {
|
|
1211
|
-
return this.p3q_1.asTuple();
|
|
1212
|
-
};
|
|
1213
|
-
protoOf(ObjectRefImpl).asVar = function () {
|
|
1214
|
-
return this.p3q_1.asVar();
|
|
1215
|
-
};
|
|
1216
|
-
protoOf(ObjectRefImpl).castToAtom = function () {
|
|
1217
|
-
return this.p3q_1.castToAtom();
|
|
1218
|
-
};
|
|
1219
|
-
protoOf(ObjectRefImpl).castToBlock = function () {
|
|
1220
|
-
return this.p3q_1.castToBlock();
|
|
1221
|
-
};
|
|
1222
|
-
protoOf(ObjectRefImpl).castToClause = function () {
|
|
1223
|
-
return this.p3q_1.castToClause();
|
|
1224
|
-
};
|
|
1225
|
-
protoOf(ObjectRefImpl).castToCons = function () {
|
|
1226
|
-
return this.p3q_1.castToCons();
|
|
1227
|
-
};
|
|
1228
|
-
protoOf(ObjectRefImpl).castToConstant = function () {
|
|
1229
|
-
return this.p3q_1.castToConstant();
|
|
1230
|
-
};
|
|
1231
|
-
protoOf(ObjectRefImpl).castToDirective = function () {
|
|
1232
|
-
return this.p3q_1.castToDirective();
|
|
1233
|
-
};
|
|
1234
|
-
protoOf(ObjectRefImpl).castToEmptyBlock = function () {
|
|
1235
|
-
return this.p3q_1.castToEmptyBlock();
|
|
1236
|
-
};
|
|
1237
|
-
protoOf(ObjectRefImpl).castToEmptyList = function () {
|
|
1238
|
-
return this.p3q_1.castToEmptyList();
|
|
1239
|
-
};
|
|
1240
|
-
protoOf(ObjectRefImpl).castToFact = function () {
|
|
1241
|
-
return this.p3q_1.castToFact();
|
|
1242
|
-
};
|
|
1243
|
-
protoOf(ObjectRefImpl).castToIndicator = function () {
|
|
1244
|
-
return this.p3q_1.castToIndicator();
|
|
1245
|
-
};
|
|
1246
|
-
protoOf(ObjectRefImpl).castToInteger = function () {
|
|
1247
|
-
return this.p3q_1.castToInteger();
|
|
1248
|
-
};
|
|
1249
|
-
protoOf(ObjectRefImpl).castToList = function () {
|
|
1250
|
-
return this.p3q_1.castToList();
|
|
1251
|
-
};
|
|
1252
|
-
protoOf(ObjectRefImpl).castToNumeric = function () {
|
|
1253
|
-
return this.p3q_1.castToNumeric();
|
|
1254
|
-
};
|
|
1255
|
-
protoOf(ObjectRefImpl).castToReal = function () {
|
|
1256
|
-
return this.p3q_1.castToReal();
|
|
1257
|
-
};
|
|
1258
|
-
protoOf(ObjectRefImpl).castToRecursive = function () {
|
|
1259
|
-
return this.p3q_1.castToRecursive();
|
|
1260
|
-
};
|
|
1261
|
-
protoOf(ObjectRefImpl).castToRule = function () {
|
|
1262
|
-
return this.p3q_1.castToRule();
|
|
1263
|
-
};
|
|
1264
|
-
protoOf(ObjectRefImpl).castToStruct = function () {
|
|
1265
|
-
return this.p3q_1.castToStruct();
|
|
1266
|
-
};
|
|
1267
|
-
protoOf(ObjectRefImpl).castToTerm = function () {
|
|
1268
|
-
return this.p3q_1.castToTerm();
|
|
1269
|
-
};
|
|
1270
|
-
protoOf(ObjectRefImpl).castToTruth = function () {
|
|
1271
|
-
return this.p3q_1.castToTruth();
|
|
1272
|
-
};
|
|
1273
|
-
protoOf(ObjectRefImpl).castToTuple = function () {
|
|
1274
|
-
return this.p3q_1.castToTuple();
|
|
1275
|
-
};
|
|
1276
|
-
protoOf(ObjectRefImpl).castToVar = function () {
|
|
1277
|
-
return this.p3q_1.castToVar();
|
|
1278
|
-
};
|
|
1279
|
-
protoOf(ObjectRefImpl).lx = function (other) {
|
|
1280
|
-
return this.p3q_1.lx(other);
|
|
1281
|
-
};
|
|
1282
|
-
protoOf(ObjectRefImpl).d = function (other) {
|
|
1283
|
-
return this.lx((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1284
|
-
};
|
|
1285
|
-
protoOf(ObjectRefImpl).containsTag = function (name) {
|
|
1286
|
-
return this.p3q_1.containsTag(name);
|
|
1287
|
-
};
|
|
1288
|
-
protoOf(ObjectRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1289
|
-
return this.p3q_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1290
|
-
};
|
|
1291
|
-
protoOf(ObjectRefImpl).equals = function (other) {
|
|
1292
|
-
return this.p3q_1.equals(other);
|
|
1293
|
-
};
|
|
1294
|
-
protoOf(ObjectRefImpl).get = function (index) {
|
|
1295
|
-
return this.p3q_1.get(index);
|
|
1296
|
-
};
|
|
1297
|
-
protoOf(ObjectRefImpl).getArgAt = function (index) {
|
|
1298
|
-
return this.p3q_1.getArgAt(index);
|
|
1299
|
-
};
|
|
1300
|
-
protoOf(ObjectRefImpl).getTag = function (name) {
|
|
1301
|
-
return this.p3q_1.getTag(name);
|
|
1302
|
-
};
|
|
1303
|
-
protoOf(ObjectRefImpl).hashCode = function () {
|
|
1304
|
-
return this.p3q_1.hashCode();
|
|
1305
|
-
};
|
|
1306
|
-
protoOf(ObjectRefImpl).insertAt = function (index, argument) {
|
|
1307
|
-
return this.p3q_1.insertAt(index, argument);
|
|
1308
|
-
};
|
|
1309
|
-
protoOf(ObjectRefImpl).resetTags = function (tags) {
|
|
1310
|
-
return this.p3q_1.resetTags(tags);
|
|
1311
|
-
};
|
|
1312
|
-
protoOf(ObjectRefImpl).setArgs = function (args) {
|
|
1313
|
-
return this.p3q_1.setArgs(args);
|
|
1314
|
-
};
|
|
1315
|
-
protoOf(ObjectRefImpl).setArgsIterable = function (args) {
|
|
1316
|
-
return this.p3q_1.setArgsIterable(args);
|
|
1317
|
-
};
|
|
1318
|
-
protoOf(ObjectRefImpl).setArgsSequence = function (args) {
|
|
1319
|
-
return this.p3q_1.setArgsSequence(args);
|
|
1320
|
-
};
|
|
1321
|
-
protoOf(ObjectRefImpl).setFunctor = function (functor) {
|
|
1322
|
-
return this.p3q_1.setFunctor(functor);
|
|
1323
|
-
};
|
|
1324
|
-
protoOf(ObjectRefImpl).structurallyEquals = function (other) {
|
|
1325
|
-
return this.p3q_1.structurallyEquals(other);
|
|
1326
|
-
};
|
|
1327
|
-
protoOf(ObjectRefImpl).toString = function () {
|
|
1328
|
-
return this.p3q_1.toString();
|
|
1329
|
-
};
|
|
1330
|
-
protoOf(ObjectRefImpl).px = function () {
|
|
1331
|
-
return true;
|
|
1332
|
-
};
|
|
1333
|
-
protoOf(ObjectRefImpl).tx = function () {
|
|
1334
|
-
return this;
|
|
1335
|
-
};
|
|
1336
|
-
protoOf(ObjectRefImpl).asConstant = function () {
|
|
1337
|
-
return this.tx();
|
|
1338
|
-
};
|
|
1339
|
-
protoOf(ObjectRefImpl).y3o = function (objectConverter, methodName, arguments_0) {
|
|
1340
|
-
return invoke_0(this.o3q_1, objectConverter, methodName, arguments_0);
|
|
1341
|
-
};
|
|
1342
|
-
protoOf(ObjectRefImpl).z3o = function (objectConverter, propertyName, value) {
|
|
1343
|
-
assign_0(this.o3q_1, objectConverter, propertyName, value);
|
|
1344
|
-
return true;
|
|
1345
|
-
};
|
|
1346
|
-
protoOf(ObjectRefImpl).tw = function () {
|
|
1347
|
-
return this;
|
|
1348
|
-
};
|
|
1349
|
-
protoOf(ObjectRefImpl).freshCopy = function () {
|
|
1350
|
-
return this.tw();
|
|
1351
|
-
};
|
|
1352
|
-
protoOf(ObjectRefImpl).uw = function (scope) {
|
|
1353
|
-
return this;
|
|
1354
|
-
};
|
|
1355
|
-
protoOf(ObjectRefImpl).freshCopyFromScope = function (scope) {
|
|
1356
|
-
return this.uw(scope);
|
|
1357
|
-
};
|
|
1358
|
-
protoOf(ObjectRefImpl).kx = function () {
|
|
1359
|
-
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1360
|
-
};
|
|
1361
|
-
protoOf(ObjectRefImpl).br = function () {
|
|
1362
|
-
return this.kx();
|
|
1363
|
-
};
|
|
1364
|
-
protoOf(ObjectRefImpl).w16 = function (substitution) {
|
|
1365
|
-
return this;
|
|
1366
|
-
};
|
|
1367
|
-
protoOf(ObjectRefImpl).applySubstitution = function (substitution) {
|
|
1368
|
-
return this.w16(substitution);
|
|
1369
|
-
};
|
|
1370
|
-
protoOf(ObjectRefImpl).s2o = function (substitution, substitutions) {
|
|
1371
|
-
return this;
|
|
1372
|
-
};
|
|
1373
|
-
protoOf(ObjectRefImpl).apply = function (substitution, substitutions) {
|
|
1374
|
-
return this.s2o(substitution, substitutions);
|
|
1375
|
-
};
|
|
1376
|
-
protoOf(ObjectRefImpl).r2o = function (substitution, substitutions) {
|
|
1377
|
-
return this;
|
|
1378
|
-
};
|
|
1379
|
-
protoOf(ObjectRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1380
|
-
return this.r2o(substitution, substitutions);
|
|
1381
|
-
};
|
|
1382
|
-
protoOf(ObjectRefImpl).c16 = function (visitor) {
|
|
1383
|
-
return visitor.visitAtom(this);
|
|
1384
|
-
};
|
|
1385
|
-
protoOf(ObjectRefImpl).accept = function (visitor) {
|
|
1386
|
-
return this.c16(visitor);
|
|
1387
|
-
};
|
|
1388
|
-
function ObjectToTermConverterImpl() {
|
|
1389
|
-
this.q3q_1 = new NumberTypeTester();
|
|
1390
|
-
}
|
|
1391
|
-
protoOf(ObjectToTermConverterImpl).q3p = function (source) {
|
|
1392
|
-
// Inline function 'kotlin.with' call
|
|
1393
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1394
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.impl.ObjectToTermConverterImpl.convert.<anonymous>' call
|
|
1395
|
-
var $this$with = this.q3q_1;
|
|
1396
|
-
var tmp;
|
|
1397
|
-
if (source == null) {
|
|
1398
|
-
tmp = Companion_getInstance_11().i3p_1;
|
|
1399
|
-
} else {
|
|
1400
|
-
if (!(source == null) ? typeof source === 'string' : false) {
|
|
1401
|
-
tmp = Companion_getInstance_0().of(source);
|
|
1402
|
-
} else {
|
|
1403
|
-
if (isNumber(source)) {
|
|
1404
|
-
tmp = $this$with.nt(source) ? Companion_getInstance_3().ofBigInteger($this$with.ot(source)) : Companion_getInstance_2().ofBigDecimal($this$with.pt(source));
|
|
1405
|
-
} else {
|
|
1406
|
-
if (source instanceof Char) {
|
|
1407
|
-
var tmp_0 = Companion_getInstance_0();
|
|
1408
|
-
// Inline function 'kotlin.charArrayOf' call
|
|
1409
|
-
var tmp$ret$0 = charArrayOf([source.pa_1]);
|
|
1410
|
-
tmp = tmp_0.of(concatToString(tmp$ret$0));
|
|
1411
|
-
} else {
|
|
1412
|
-
if (!(source == null) ? typeof source === 'boolean' : false) {
|
|
1413
|
-
tmp = Companion_getInstance_1().of(source);
|
|
1414
|
-
} else {
|
|
1415
|
-
tmp = Companion_getInstance_11().k3p(source);
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
return tmp;
|
|
1422
|
-
};
|
|
1423
|
-
function explicitConversion($this, castExpression, term, type) {
|
|
1424
|
-
var targetType = getType($this, castExpression, type);
|
|
1425
|
-
try {
|
|
1426
|
-
return $this.w3p(targetType, term);
|
|
1427
|
-
} catch ($p) {
|
|
1428
|
-
if ($p instanceof TermToObjectConversionException) {
|
|
1429
|
-
var e = $p;
|
|
1430
|
-
throw e;
|
|
1431
|
-
} else {
|
|
1432
|
-
if ($p instanceof Exception) {
|
|
1433
|
-
var _ = $p;
|
|
1434
|
-
throw new TermToObjectConversionException(term, targetType);
|
|
1435
|
-
} else {
|
|
1436
|
-
throw $p;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
function getType($this, castExpression, typeTerm) {
|
|
1442
|
-
var tmp;
|
|
1443
|
-
if (isInterface(typeTerm, TypeRef)) {
|
|
1444
|
-
tmp = typeTerm.z24();
|
|
1445
|
-
} else {
|
|
1446
|
-
if (isInterface(typeTerm, Atom)) {
|
|
1447
|
-
var tmp1_elvis_lhs = $this.r3q_1.b3q(typeTerm.r2());
|
|
1448
|
-
var tmp_0;
|
|
1449
|
-
if (tmp1_elvis_lhs == null) {
|
|
1450
|
-
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1451
|
-
} else {
|
|
1452
|
-
tmp_0 = tmp1_elvis_lhs;
|
|
1453
|
-
}
|
|
1454
|
-
tmp = tmp_0;
|
|
1455
|
-
} else {
|
|
1456
|
-
if (isInterface(typeTerm, Struct)) {
|
|
1457
|
-
var tmp_1;
|
|
1458
|
-
if (Companion_getInstance().matches(typeTerm, get_DEALIASING_TEMPLATE())) {
|
|
1459
|
-
var ref = $this.s3q_1(typeTerm);
|
|
1460
|
-
var tmp_2;
|
|
1461
|
-
if (!(ref == null) ? isInterface(ref, TypeRef) : false) {
|
|
1462
|
-
tmp_2 = ref.z24();
|
|
1463
|
-
} else {
|
|
1464
|
-
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1465
|
-
}
|
|
1466
|
-
tmp_1 = tmp_2;
|
|
1467
|
-
} else {
|
|
1468
|
-
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1469
|
-
}
|
|
1470
|
-
tmp = tmp_1;
|
|
1471
|
-
} else {
|
|
1472
|
-
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
return tmp;
|
|
1477
|
-
}
|
|
1478
|
-
function admissibleTypesByPriority($this, term) {
|
|
1479
|
-
var tmp;
|
|
1480
|
-
var tmp_0;
|
|
1481
|
-
if (isInterface(term, NullRef)) {
|
|
1482
|
-
tmp_0 = true;
|
|
1483
|
-
} else {
|
|
1484
|
-
tmp_0 = isInterface(term, Var);
|
|
1485
|
-
}
|
|
1486
|
-
if (tmp_0) {
|
|
1487
|
-
tmp = sequenceOf([PrimitiveClasses_getInstance().e7()]);
|
|
1488
|
-
} else {
|
|
1489
|
-
if (isInterface(term, ObjectRef)) {
|
|
1490
|
-
tmp = sequenceOf([getKClassFromExpression(term.x3o())]);
|
|
1491
|
-
} else {
|
|
1492
|
-
if (isInterface(term, Truth)) {
|
|
1493
|
-
tmp = sequenceOf([PrimitiveClasses_getInstance().f7(), PrimitiveClasses_getInstance().m7()]);
|
|
1494
|
-
} else {
|
|
1495
|
-
if (isInterface(term, Atom)) {
|
|
1496
|
-
var admissible = sequenceOf([PrimitiveClasses_getInstance().m7()]);
|
|
1497
|
-
if (term.r2().length === 1) {
|
|
1498
|
-
admissible = plus(admissible, sequenceOf([getKClass(Char)]));
|
|
1499
|
-
}
|
|
1500
|
-
tmp = admissible;
|
|
1501
|
-
} else {
|
|
1502
|
-
if (isInterface(term, Real)) {
|
|
1503
|
-
tmp = sequenceOf([getKClass(BigDecimal), PrimitiveClasses_getInstance().k7(), PrimitiveClasses_getInstance().j7()]);
|
|
1504
|
-
} else {
|
|
1505
|
-
if (isInterface(term, Integer)) {
|
|
1506
|
-
var admissible_0 = sequenceOf([getKClass(BigInteger)]);
|
|
1507
|
-
var tmp_1 = Companion_getInstance_4();
|
|
1508
|
-
Companion_getInstance_5();
|
|
1509
|
-
var tmp_2 = tmp_1.ofLong(new Long(0, -2147483648));
|
|
1510
|
-
var tmp_3 = Companion_getInstance_4();
|
|
1511
|
-
Companion_getInstance_5();
|
|
1512
|
-
if (tmp_2.rangeTo(tmp_3.ofLong(new Long(-1, 2147483647))).ga(term.y10())) {
|
|
1513
|
-
admissible_0 = plus(admissible_0, sequenceOf([getKClass(Long)]));
|
|
1514
|
-
}
|
|
1515
|
-
if (Companion_getInstance_4().of(IntCompanionObject_instance.MIN_VALUE).rangeTo(Companion_getInstance_4().of(IntCompanionObject_instance.MAX_VALUE)).ga(term.y10())) {
|
|
1516
|
-
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().i7()]));
|
|
1517
|
-
}
|
|
1518
|
-
if (Companion_getInstance_4().of(ShortCompanionObject_instance.MIN_VALUE).rangeTo(Companion_getInstance_4().of(ShortCompanionObject_instance.MAX_VALUE)).ga(term.y10())) {
|
|
1519
|
-
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().h7()]));
|
|
1520
|
-
}
|
|
1521
|
-
if (Companion_getInstance_4().of(ByteCompanionObject_instance.MIN_VALUE).rangeTo(Companion_getInstance_4().of(ByteCompanionObject_instance.MAX_VALUE)).ga(term.y10())) {
|
|
1522
|
-
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().g7()]));
|
|
1523
|
-
}
|
|
1524
|
-
admissible_0 = plus(admissible_0, sequenceOf([getKClass(BigDecimal)]));
|
|
1525
|
-
var tmp_4 = Companion_getInstance_6();
|
|
1526
|
-
var containsLower = tmp_4.ofDouble(4.9E-324);
|
|
1527
|
-
var tmp_5 = Companion_getInstance_6();
|
|
1528
|
-
var containsUpper = tmp_5.ofDouble(1.7976931348623157E308);
|
|
1529
|
-
var containsArg = term.g11();
|
|
1530
|
-
if (0 <= compareTo(containsArg, containsLower) ? compareTo(containsArg, containsUpper) <= 0 : false) {
|
|
1531
|
-
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().k7()]));
|
|
1532
|
-
}
|
|
1533
|
-
var tmp_6 = Companion_getInstance_6();
|
|
1534
|
-
var containsLower_0 = tmp_6.ofFloat(1.4E-45);
|
|
1535
|
-
var tmp_7 = Companion_getInstance_6();
|
|
1536
|
-
var containsUpper_0 = tmp_7.ofFloat(3.4028235E38);
|
|
1537
|
-
var containsArg_0 = term.g11();
|
|
1538
|
-
if (0 <= compareTo(containsArg_0, containsLower_0) ? compareTo(containsArg_0, containsUpper_0) <= 0 : false) {
|
|
1539
|
-
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().j7()]));
|
|
1540
|
-
}
|
|
1541
|
-
tmp = admissible_0;
|
|
1542
|
-
} else {
|
|
1543
|
-
if (isInterface(term, Struct)) {
|
|
1544
|
-
var tmp_8;
|
|
1545
|
-
if (Companion_getInstance().matches(term, get_CAST_TEMPLATE())) {
|
|
1546
|
-
tmp_8 = sequenceOf([getType($this, term, term.get(1))]);
|
|
1547
|
-
} else if (Companion_getInstance().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1548
|
-
var ref = $this.s3q_1(term);
|
|
1549
|
-
var tmp_9;
|
|
1550
|
-
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1551
|
-
tmp_9 = admissibleTypesByPriority($this, ref);
|
|
1552
|
-
} else {
|
|
1553
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1554
|
-
}
|
|
1555
|
-
tmp_8 = tmp_9;
|
|
1556
|
-
} else {
|
|
1557
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1558
|
-
}
|
|
1559
|
-
tmp = tmp_8;
|
|
1560
|
-
} else {
|
|
1561
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
return tmp;
|
|
1570
|
-
}
|
|
1571
|
-
function TermToObjectConverterImpl(typeFactory, dealiaser) {
|
|
1572
|
-
this.r3q_1 = typeFactory;
|
|
1573
|
-
this.s3q_1 = dealiaser;
|
|
1574
|
-
}
|
|
1575
|
-
protoOf(TermToObjectConverterImpl).w3p = function (type, term) {
|
|
1576
|
-
var tmp;
|
|
1577
|
-
var tmp_0;
|
|
1578
|
-
if (isInterface(term, NullRef)) {
|
|
1579
|
-
tmp_0 = true;
|
|
1580
|
-
} else {
|
|
1581
|
-
tmp_0 = isInterface(term, Var);
|
|
1582
|
-
}
|
|
1583
|
-
if (tmp_0) {
|
|
1584
|
-
var tmp_1;
|
|
1585
|
-
if (get_isPrimitiveType(type)) {
|
|
1586
|
-
throw new TermToObjectConversionException(term, type);
|
|
1587
|
-
} else {
|
|
1588
|
-
tmp_1 = null;
|
|
1589
|
-
}
|
|
1590
|
-
tmp = tmp_1;
|
|
1591
|
-
} else {
|
|
1592
|
-
if (isInterface(term, ObjectRef)) {
|
|
1593
|
-
var tmp_2;
|
|
1594
|
-
if (isSubtypeOf(getKClassFromExpression(term.x3o()), type)) {
|
|
1595
|
-
tmp_2 = term.x3o();
|
|
1596
|
-
} else {
|
|
1597
|
-
throw new TermToObjectConversionException(term, type);
|
|
1598
|
-
}
|
|
1599
|
-
tmp = tmp_2;
|
|
1600
|
-
} else {
|
|
1601
|
-
if (isInterface(term, Truth)) {
|
|
1602
|
-
var tmp_3;
|
|
1603
|
-
if (isSubtypeOf(PrimitiveClasses_getInstance().f7(), type)) {
|
|
1604
|
-
tmp_3 = term.ow();
|
|
1605
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().m7(), type)) {
|
|
1606
|
-
tmp_3 = term.r2();
|
|
1607
|
-
} else {
|
|
1608
|
-
throw new TermToObjectConversionException(term, type);
|
|
1609
|
-
}
|
|
1610
|
-
tmp = tmp_3;
|
|
1611
|
-
} else {
|
|
1612
|
-
if (isInterface(term, Atom)) {
|
|
1613
|
-
var tmp_4;
|
|
1614
|
-
if (isSubtypeOf(PrimitiveClasses_getInstance().m7(), type)) {
|
|
1615
|
-
tmp_4 = term.r2();
|
|
1616
|
-
} else if (isSubtypeOf(getKClass(Char), type)) {
|
|
1617
|
-
var tmp_5;
|
|
1618
|
-
if (term.r2().length === 1) {
|
|
1619
|
-
tmp_5 = charSequenceGet(term.r2(), 0);
|
|
1620
|
-
} else {
|
|
1621
|
-
throw new TermToObjectConversionException(term, type);
|
|
1622
|
-
}
|
|
1623
|
-
tmp_4 = new Char(tmp_5);
|
|
1624
|
-
} else {
|
|
1625
|
-
throw new TermToObjectConversionException(term, type);
|
|
1626
|
-
}
|
|
1627
|
-
tmp = tmp_4;
|
|
1628
|
-
} else {
|
|
1629
|
-
if (isInterface(term, Real)) {
|
|
1630
|
-
var tmp_6;
|
|
1631
|
-
if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1632
|
-
tmp_6 = term.g11();
|
|
1633
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().k7(), type)) {
|
|
1634
|
-
tmp_6 = term.g11().toDouble();
|
|
1635
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().j7(), type)) {
|
|
1636
|
-
tmp_6 = term.g11().toFloat();
|
|
1637
|
-
} else {
|
|
1638
|
-
throw new TermToObjectConversionException(term, type);
|
|
1639
|
-
}
|
|
1640
|
-
tmp = tmp_6;
|
|
1641
|
-
} else {
|
|
1642
|
-
if (isInterface(term, Integer)) {
|
|
1643
|
-
var tmp_7;
|
|
1644
|
-
if (isSubtypeOf(getKClass(BigInteger), type)) {
|
|
1645
|
-
tmp_7 = term.y10();
|
|
1646
|
-
} else if (isSubtypeOf(getKClass(Long), type)) {
|
|
1647
|
-
tmp_7 = term.y10().toLongExact();
|
|
1648
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().i7(), type)) {
|
|
1649
|
-
tmp_7 = term.y10().toIntExact();
|
|
1650
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().h7(), type)) {
|
|
1651
|
-
tmp_7 = term.y10().toShortExact();
|
|
1652
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().g7(), type)) {
|
|
1653
|
-
tmp_7 = term.y10().toByteExact();
|
|
1654
|
-
} else if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1655
|
-
tmp_7 = term.g11();
|
|
1656
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().k7(), type)) {
|
|
1657
|
-
tmp_7 = term.g11().toDouble();
|
|
1658
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().j7(), type)) {
|
|
1659
|
-
tmp_7 = term.g11().toFloat();
|
|
1660
|
-
} else {
|
|
1661
|
-
throw new TermToObjectConversionException(term, type);
|
|
1662
|
-
}
|
|
1663
|
-
tmp = tmp_7;
|
|
1664
|
-
} else {
|
|
1665
|
-
if (isInterface(term, Struct)) {
|
|
1666
|
-
// Inline function 'kotlin.also' call
|
|
1667
|
-
var tmp_8;
|
|
1668
|
-
if (Companion_getInstance().matches(term, get_CAST_TEMPLATE())) {
|
|
1669
|
-
tmp_8 = explicitConversion(this, term, term.get(0), term.get(1));
|
|
1670
|
-
} else if (Companion_getInstance().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1671
|
-
var ref = this.s3q_1(term);
|
|
1672
|
-
var tmp_9;
|
|
1673
|
-
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1674
|
-
tmp_9 = this.w3p(type, ref);
|
|
1675
|
-
} else {
|
|
1676
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1677
|
-
}
|
|
1678
|
-
tmp_8 = tmp_9;
|
|
1679
|
-
} else {
|
|
1680
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1681
|
-
}
|
|
1682
|
-
var this_0 = tmp_8;
|
|
1683
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1684
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.impl.TermToObjectConverterImpl.convertInto.<anonymous>' call
|
|
1685
|
-
if (!(this_0 == null) ? !isSubtypeOf(getKClassFromExpression(this_0), type) : false) {
|
|
1686
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1687
|
-
}
|
|
1688
|
-
tmp = this_0;
|
|
1689
|
-
} else {
|
|
1690
|
-
throw TermToObjectConversionException_init_$Create$(term);
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
return tmp;
|
|
1699
|
-
};
|
|
1700
|
-
protoOf(TermToObjectConverterImpl).y3p = function (term) {
|
|
1701
|
-
return first(admissibleTypesByPriority(this, term));
|
|
1702
|
-
};
|
|
1703
|
-
protoOf(TermToObjectConverterImpl).x3p = function (term) {
|
|
1704
|
-
return toSet(admissibleTypesByPriority(this, term));
|
|
1705
|
-
};
|
|
1706
|
-
function TypeFactoryImpl() {
|
|
1707
|
-
}
|
|
1708
|
-
protoOf(TypeFactoryImpl).b3q = function (typeName) {
|
|
1709
|
-
return kClassFromName(typeName).r2();
|
|
1710
|
-
};
|
|
1711
|
-
function nameOf_0($this, type) {
|
|
1712
|
-
return '<type:' + get_fullName(type) + '>';
|
|
1713
|
-
}
|
|
1714
|
-
function Companion_6() {
|
|
1715
|
-
}
|
|
1716
|
-
var Companion_instance_14;
|
|
1717
|
-
function Companion_getInstance_18() {
|
|
1718
|
-
return Companion_instance_14;
|
|
1719
|
-
}
|
|
1720
|
-
function TypeRefImpl(type) {
|
|
1721
|
-
this.t3q_1 = type;
|
|
1722
|
-
this.u3q_1 = Companion_getInstance_0().of(nameOf_0(Companion_instance_14, type));
|
|
1723
|
-
}
|
|
1724
|
-
protoOf(TypeRefImpl).z24 = function () {
|
|
1725
|
-
return this.t3q_1;
|
|
1726
|
-
};
|
|
1727
|
-
protoOf(TypeRefImpl).rw = function () {
|
|
1728
|
-
return this.u3q_1.rw();
|
|
1729
|
-
};
|
|
1730
|
-
protoOf(TypeRefImpl).jx = function () {
|
|
1731
|
-
return this.u3q_1.jx();
|
|
1732
|
-
};
|
|
1733
|
-
protoOf(TypeRefImpl).kw = function () {
|
|
1734
|
-
return this.u3q_1.kw();
|
|
1735
|
-
};
|
|
1736
|
-
protoOf(TypeRefImpl).qw = function () {
|
|
1737
|
-
return this.u3q_1.qw();
|
|
1738
|
-
};
|
|
1739
|
-
protoOf(TypeRefImpl).ix = function () {
|
|
1740
|
-
return this.u3q_1.ix();
|
|
1741
|
-
};
|
|
1742
|
-
protoOf(TypeRefImpl).lw = function () {
|
|
1743
|
-
return this.u3q_1.lw();
|
|
1744
|
-
};
|
|
1745
|
-
protoOf(TypeRefImpl).xw = function () {
|
|
1746
|
-
return this.u3q_1.xw();
|
|
1747
|
-
};
|
|
1748
|
-
protoOf(TypeRefImpl).dx = function () {
|
|
1749
|
-
return this.u3q_1.dx();
|
|
1750
|
-
};
|
|
1751
|
-
protoOf(TypeRefImpl).mw = function () {
|
|
1752
|
-
return this.u3q_1.mw();
|
|
1753
|
-
};
|
|
1754
|
-
protoOf(TypeRefImpl).nw = function () {
|
|
1755
|
-
return this.u3q_1.nw();
|
|
1756
|
-
};
|
|
1757
|
-
protoOf(TypeRefImpl).hx = function () {
|
|
1758
|
-
return this.u3q_1.hx();
|
|
1759
|
-
};
|
|
1760
|
-
protoOf(TypeRefImpl).ux = function () {
|
|
1761
|
-
return this.u3q_1.ux();
|
|
1762
|
-
};
|
|
1763
|
-
protoOf(TypeRefImpl).fx = function () {
|
|
1764
|
-
return this.u3q_1.fx();
|
|
1765
|
-
};
|
|
1766
|
-
protoOf(TypeRefImpl).rx = function () {
|
|
1767
|
-
return this.u3q_1.rx();
|
|
1768
|
-
};
|
|
1769
|
-
protoOf(TypeRefImpl).cx = function () {
|
|
1770
|
-
return this.u3q_1.cx();
|
|
1771
|
-
};
|
|
1772
|
-
protoOf(TypeRefImpl).qx = function () {
|
|
1773
|
-
return this.u3q_1.qx();
|
|
1774
|
-
};
|
|
1775
|
-
protoOf(TypeRefImpl).sx = function () {
|
|
1776
|
-
return this.u3q_1.sx();
|
|
1777
|
-
};
|
|
1778
|
-
protoOf(TypeRefImpl).ox = function () {
|
|
1779
|
-
return this.u3q_1.ox();
|
|
1780
|
-
};
|
|
1781
|
-
protoOf(TypeRefImpl).yw = function () {
|
|
1782
|
-
return this.u3q_1.yw();
|
|
1783
|
-
};
|
|
1784
|
-
protoOf(TypeRefImpl).ww = function () {
|
|
1785
|
-
return this.u3q_1.ww();
|
|
1786
|
-
};
|
|
1787
|
-
protoOf(TypeRefImpl).ow = function () {
|
|
1788
|
-
return this.u3q_1.ow();
|
|
1789
|
-
};
|
|
1790
|
-
protoOf(TypeRefImpl).nx = function () {
|
|
1791
|
-
return this.u3q_1.nx();
|
|
1792
|
-
};
|
|
1793
|
-
protoOf(TypeRefImpl).bx = function () {
|
|
1794
|
-
return this.u3q_1.bx();
|
|
1795
|
-
};
|
|
1796
|
-
protoOf(TypeRefImpl).mx = function () {
|
|
1797
|
-
return this.u3q_1.mx();
|
|
1798
|
-
};
|
|
1799
|
-
protoOf(TypeRefImpl).vt = function () {
|
|
1800
|
-
return this.u3q_1.vt();
|
|
1801
|
-
};
|
|
1802
|
-
protoOf(TypeRefImpl).r2 = function () {
|
|
1803
|
-
return this.u3q_1.r2();
|
|
1804
|
-
};
|
|
1805
|
-
protoOf(TypeRefImpl).sw = function () {
|
|
1806
|
-
return this.u3q_1.sw();
|
|
1807
|
-
};
|
|
1808
|
-
protoOf(TypeRefImpl).addFirst = function (argument) {
|
|
1809
|
-
return this.u3q_1.addFirst(argument);
|
|
1810
|
-
};
|
|
1811
|
-
protoOf(TypeRefImpl).addLast = function (argument) {
|
|
1812
|
-
return this.u3q_1.addLast(argument);
|
|
1813
|
-
};
|
|
1814
|
-
protoOf(TypeRefImpl).append = function (argument) {
|
|
1815
|
-
return this.u3q_1.append(argument);
|
|
1816
|
-
};
|
|
1817
|
-
protoOf(TypeRefImpl).vw = function () {
|
|
1818
|
-
return this.u3q_1.vw();
|
|
1819
|
-
};
|
|
1820
|
-
protoOf(TypeRefImpl).asAtom = function () {
|
|
1821
|
-
return this.vw();
|
|
1822
|
-
};
|
|
1823
|
-
protoOf(TypeRefImpl).asBlock = function () {
|
|
1824
|
-
return this.u3q_1.asBlock();
|
|
1825
|
-
};
|
|
1826
|
-
protoOf(TypeRefImpl).asClause = function () {
|
|
1827
|
-
return this.u3q_1.asClause();
|
|
1828
|
-
};
|
|
1829
|
-
protoOf(TypeRefImpl).asCons = function () {
|
|
1830
|
-
return this.u3q_1.asCons();
|
|
1831
|
-
};
|
|
1832
|
-
protoOf(TypeRefImpl).asDirective = function () {
|
|
1833
|
-
return this.u3q_1.asDirective();
|
|
1834
|
-
};
|
|
1835
|
-
protoOf(TypeRefImpl).asEmptyBlock = function () {
|
|
1836
|
-
return this.u3q_1.asEmptyBlock();
|
|
1837
|
-
};
|
|
1838
|
-
protoOf(TypeRefImpl).asEmptyList = function () {
|
|
1839
|
-
return this.u3q_1.asEmptyList();
|
|
1840
|
-
};
|
|
1841
|
-
protoOf(TypeRefImpl).asFact = function () {
|
|
1842
|
-
return this.u3q_1.asFact();
|
|
1843
|
-
};
|
|
1844
|
-
protoOf(TypeRefImpl).asIndicator = function () {
|
|
1845
|
-
return this.u3q_1.asIndicator();
|
|
1846
|
-
};
|
|
1847
|
-
protoOf(TypeRefImpl).asInteger = function () {
|
|
1848
|
-
return this.u3q_1.asInteger();
|
|
1849
|
-
};
|
|
1850
|
-
protoOf(TypeRefImpl).asList = function () {
|
|
1851
|
-
return this.u3q_1.asList();
|
|
1852
|
-
};
|
|
1853
|
-
protoOf(TypeRefImpl).asNumeric = function () {
|
|
1854
|
-
return this.u3q_1.asNumeric();
|
|
1855
|
-
};
|
|
1856
|
-
protoOf(TypeRefImpl).asReal = function () {
|
|
1857
|
-
return this.u3q_1.asReal();
|
|
1858
|
-
};
|
|
1859
|
-
protoOf(TypeRefImpl).asRecursive = function () {
|
|
1860
|
-
return this.u3q_1.asRecursive();
|
|
1861
|
-
};
|
|
1862
|
-
protoOf(TypeRefImpl).asRule = function () {
|
|
1863
|
-
return this.u3q_1.asRule();
|
|
1864
|
-
};
|
|
1865
|
-
protoOf(TypeRefImpl).gx = function () {
|
|
1866
|
-
return this.u3q_1.gx();
|
|
1867
|
-
};
|
|
1868
|
-
protoOf(TypeRefImpl).asStruct = function () {
|
|
1869
|
-
return this.gx();
|
|
1870
|
-
};
|
|
1871
|
-
protoOf(TypeRefImpl).asTerm = function () {
|
|
1872
|
-
return this.u3q_1.asTerm();
|
|
1873
|
-
};
|
|
1874
|
-
protoOf(TypeRefImpl).asTruth = function () {
|
|
1875
|
-
return this.u3q_1.asTruth();
|
|
1876
|
-
};
|
|
1877
|
-
protoOf(TypeRefImpl).asTuple = function () {
|
|
1878
|
-
return this.u3q_1.asTuple();
|
|
1879
|
-
};
|
|
1880
|
-
protoOf(TypeRefImpl).asVar = function () {
|
|
1881
|
-
return this.u3q_1.asVar();
|
|
1882
|
-
};
|
|
1883
|
-
protoOf(TypeRefImpl).castToAtom = function () {
|
|
1884
|
-
return this.u3q_1.castToAtom();
|
|
1885
|
-
};
|
|
1886
|
-
protoOf(TypeRefImpl).castToBlock = function () {
|
|
1887
|
-
return this.u3q_1.castToBlock();
|
|
1888
|
-
};
|
|
1889
|
-
protoOf(TypeRefImpl).castToClause = function () {
|
|
1890
|
-
return this.u3q_1.castToClause();
|
|
1891
|
-
};
|
|
1892
|
-
protoOf(TypeRefImpl).castToCons = function () {
|
|
1893
|
-
return this.u3q_1.castToCons();
|
|
1894
|
-
};
|
|
1895
|
-
protoOf(TypeRefImpl).castToConstant = function () {
|
|
1896
|
-
return this.u3q_1.castToConstant();
|
|
1897
|
-
};
|
|
1898
|
-
protoOf(TypeRefImpl).castToDirective = function () {
|
|
1899
|
-
return this.u3q_1.castToDirective();
|
|
1900
|
-
};
|
|
1901
|
-
protoOf(TypeRefImpl).castToEmptyBlock = function () {
|
|
1902
|
-
return this.u3q_1.castToEmptyBlock();
|
|
1903
|
-
};
|
|
1904
|
-
protoOf(TypeRefImpl).castToEmptyList = function () {
|
|
1905
|
-
return this.u3q_1.castToEmptyList();
|
|
1906
|
-
};
|
|
1907
|
-
protoOf(TypeRefImpl).castToFact = function () {
|
|
1908
|
-
return this.u3q_1.castToFact();
|
|
1909
|
-
};
|
|
1910
|
-
protoOf(TypeRefImpl).castToIndicator = function () {
|
|
1911
|
-
return this.u3q_1.castToIndicator();
|
|
1912
|
-
};
|
|
1913
|
-
protoOf(TypeRefImpl).castToInteger = function () {
|
|
1914
|
-
return this.u3q_1.castToInteger();
|
|
1915
|
-
};
|
|
1916
|
-
protoOf(TypeRefImpl).castToList = function () {
|
|
1917
|
-
return this.u3q_1.castToList();
|
|
1918
|
-
};
|
|
1919
|
-
protoOf(TypeRefImpl).castToNumeric = function () {
|
|
1920
|
-
return this.u3q_1.castToNumeric();
|
|
1921
|
-
};
|
|
1922
|
-
protoOf(TypeRefImpl).castToReal = function () {
|
|
1923
|
-
return this.u3q_1.castToReal();
|
|
1924
|
-
};
|
|
1925
|
-
protoOf(TypeRefImpl).castToRecursive = function () {
|
|
1926
|
-
return this.u3q_1.castToRecursive();
|
|
1927
|
-
};
|
|
1928
|
-
protoOf(TypeRefImpl).castToRule = function () {
|
|
1929
|
-
return this.u3q_1.castToRule();
|
|
1930
|
-
};
|
|
1931
|
-
protoOf(TypeRefImpl).castToStruct = function () {
|
|
1932
|
-
return this.u3q_1.castToStruct();
|
|
1933
|
-
};
|
|
1934
|
-
protoOf(TypeRefImpl).castToTerm = function () {
|
|
1935
|
-
return this.u3q_1.castToTerm();
|
|
1936
|
-
};
|
|
1937
|
-
protoOf(TypeRefImpl).castToTruth = function () {
|
|
1938
|
-
return this.u3q_1.castToTruth();
|
|
1939
|
-
};
|
|
1940
|
-
protoOf(TypeRefImpl).castToTuple = function () {
|
|
1941
|
-
return this.u3q_1.castToTuple();
|
|
1942
|
-
};
|
|
1943
|
-
protoOf(TypeRefImpl).castToVar = function () {
|
|
1944
|
-
return this.u3q_1.castToVar();
|
|
1945
|
-
};
|
|
1946
|
-
protoOf(TypeRefImpl).lx = function (other) {
|
|
1947
|
-
return this.u3q_1.lx(other);
|
|
1948
|
-
};
|
|
1949
|
-
protoOf(TypeRefImpl).d = function (other) {
|
|
1950
|
-
return this.lx((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1951
|
-
};
|
|
1952
|
-
protoOf(TypeRefImpl).containsTag = function (name) {
|
|
1953
|
-
return this.u3q_1.containsTag(name);
|
|
1954
|
-
};
|
|
1955
|
-
protoOf(TypeRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1956
|
-
return this.u3q_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1957
|
-
};
|
|
1958
|
-
protoOf(TypeRefImpl).equals = function (other) {
|
|
1959
|
-
return this.u3q_1.equals(other);
|
|
1960
|
-
};
|
|
1961
|
-
protoOf(TypeRefImpl).get = function (index) {
|
|
1962
|
-
return this.u3q_1.get(index);
|
|
1963
|
-
};
|
|
1964
|
-
protoOf(TypeRefImpl).getArgAt = function (index) {
|
|
1965
|
-
return this.u3q_1.getArgAt(index);
|
|
1966
|
-
};
|
|
1967
|
-
protoOf(TypeRefImpl).getTag = function (name) {
|
|
1968
|
-
return this.u3q_1.getTag(name);
|
|
1969
|
-
};
|
|
1970
|
-
protoOf(TypeRefImpl).hashCode = function () {
|
|
1971
|
-
return this.u3q_1.hashCode();
|
|
1972
|
-
};
|
|
1973
|
-
protoOf(TypeRefImpl).insertAt = function (index, argument) {
|
|
1974
|
-
return this.u3q_1.insertAt(index, argument);
|
|
1975
|
-
};
|
|
1976
|
-
protoOf(TypeRefImpl).resetTags = function (tags) {
|
|
1977
|
-
return this.u3q_1.resetTags(tags);
|
|
1978
|
-
};
|
|
1979
|
-
protoOf(TypeRefImpl).setArgs = function (args) {
|
|
1980
|
-
return this.u3q_1.setArgs(args);
|
|
1981
|
-
};
|
|
1982
|
-
protoOf(TypeRefImpl).setArgsIterable = function (args) {
|
|
1983
|
-
return this.u3q_1.setArgsIterable(args);
|
|
1984
|
-
};
|
|
1985
|
-
protoOf(TypeRefImpl).setArgsSequence = function (args) {
|
|
1986
|
-
return this.u3q_1.setArgsSequence(args);
|
|
1987
|
-
};
|
|
1988
|
-
protoOf(TypeRefImpl).setFunctor = function (functor) {
|
|
1989
|
-
return this.u3q_1.setFunctor(functor);
|
|
1990
|
-
};
|
|
1991
|
-
protoOf(TypeRefImpl).structurallyEquals = function (other) {
|
|
1992
|
-
return this.u3q_1.structurallyEquals(other);
|
|
1993
|
-
};
|
|
1994
|
-
protoOf(TypeRefImpl).toString = function () {
|
|
1995
|
-
return this.u3q_1.toString();
|
|
1996
|
-
};
|
|
1997
|
-
protoOf(TypeRefImpl).e3q = function (objectConverter, arguments_0) {
|
|
1998
|
-
return create_0(this.t3q_1, objectConverter, arguments_0);
|
|
1999
|
-
};
|
|
2000
|
-
protoOf(TypeRefImpl).y3o = function (objectConverter, methodName, arguments_0) {
|
|
2001
|
-
var companionObjectRef = get_companionObjectRef(this.t3q_1);
|
|
2002
|
-
var tmp;
|
|
2003
|
-
if (companionObjectRef instanceof Some) {
|
|
2004
|
-
tmp = invoke_0(companionObjectRef.uq_1, objectConverter, methodName, arguments_0);
|
|
2005
|
-
} else {
|
|
2006
|
-
tmp = invoke_1(this.t3q_1, objectConverter, methodName, arguments_0, null);
|
|
2007
|
-
}
|
|
2008
|
-
return tmp;
|
|
2009
|
-
};
|
|
2010
|
-
protoOf(TypeRefImpl).px = function () {
|
|
2011
|
-
return true;
|
|
2012
|
-
};
|
|
2013
|
-
protoOf(TypeRefImpl).tx = function () {
|
|
2014
|
-
return this;
|
|
2015
|
-
};
|
|
2016
|
-
protoOf(TypeRefImpl).asConstant = function () {
|
|
2017
|
-
return this.tx();
|
|
2018
|
-
};
|
|
2019
|
-
protoOf(TypeRefImpl).tw = function () {
|
|
2020
|
-
return this;
|
|
2021
|
-
};
|
|
2022
|
-
protoOf(TypeRefImpl).freshCopy = function () {
|
|
2023
|
-
return this.tw();
|
|
2024
|
-
};
|
|
2025
|
-
protoOf(TypeRefImpl).uw = function (scope) {
|
|
2026
|
-
return this;
|
|
2027
|
-
};
|
|
2028
|
-
protoOf(TypeRefImpl).freshCopyFromScope = function (scope) {
|
|
2029
|
-
return this.uw(scope);
|
|
2030
|
-
};
|
|
2031
|
-
protoOf(TypeRefImpl).kx = function () {
|
|
2032
|
-
return isInterface(this, Term) ? this : THROW_CCE();
|
|
2033
|
-
};
|
|
2034
|
-
protoOf(TypeRefImpl).br = function () {
|
|
2035
|
-
return this.kx();
|
|
2036
|
-
};
|
|
2037
|
-
protoOf(TypeRefImpl).w16 = function (substitution) {
|
|
2038
|
-
return this;
|
|
2039
|
-
};
|
|
2040
|
-
protoOf(TypeRefImpl).applySubstitution = function (substitution) {
|
|
2041
|
-
return this.w16(substitution);
|
|
2042
|
-
};
|
|
2043
|
-
protoOf(TypeRefImpl).s2o = function (substitution, substitutions) {
|
|
2044
|
-
return this;
|
|
2045
|
-
};
|
|
2046
|
-
protoOf(TypeRefImpl).apply = function (substitution, substitutions) {
|
|
2047
|
-
return this.s2o(substitution, substitutions);
|
|
2048
|
-
};
|
|
2049
|
-
protoOf(TypeRefImpl).r2o = function (substitution, substitutions) {
|
|
2050
|
-
return this;
|
|
2051
|
-
};
|
|
2052
|
-
protoOf(TypeRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
2053
|
-
return this.r2o(substitution, substitutions);
|
|
2054
|
-
};
|
|
2055
|
-
protoOf(TypeRefImpl).c16 = function (visitor) {
|
|
2056
|
-
return visitor.visitAtom(this);
|
|
2057
|
-
};
|
|
2058
|
-
protoOf(TypeRefImpl).accept = function (visitor) {
|
|
2059
|
-
return this.c16(visitor);
|
|
2060
|
-
};
|
|
2061
|
-
protoOf(TypeRefImpl).z3o = function (objectConverter, propertyName, value) {
|
|
2062
|
-
var companionObjectRef = get_companionObjectRef(this.t3q_1);
|
|
2063
|
-
if (companionObjectRef instanceof Some) {
|
|
2064
|
-
assign_0(companionObjectRef.uq_1, objectConverter, propertyName, value);
|
|
2065
|
-
} else {
|
|
2066
|
-
assign_1(this.t3q_1, objectConverter, propertyName, value, null);
|
|
2067
|
-
}
|
|
2068
|
-
return true;
|
|
2069
|
-
};
|
|
2070
|
-
function actuallyInvoke(_this__u8e3s4, $this, ref, method, resultTerm) {
|
|
2071
|
-
var result = ref.y3o(get_termToObjectConverter(_this__u8e3s4), method.qw(), method.rw());
|
|
2072
|
-
var tmp;
|
|
2073
|
-
if (result instanceof Value) {
|
|
2074
|
-
tmp = Companion_getInstance_8().w2g(_this__u8e3s4, resultTerm, $this.w3q(result));
|
|
2075
|
-
} else {
|
|
2076
|
-
tmp = Companion_getInstance_7().failed();
|
|
2077
|
-
}
|
|
2078
|
-
return tmp;
|
|
2079
|
-
}
|
|
2080
|
-
function AbstractInvoke(suffix) {
|
|
2081
|
-
Functional.call(this, 'invoke_' + suffix);
|
|
2082
|
-
}
|
|
2083
|
-
protoOf(AbstractInvoke).a2q = function (_this__u8e3s4, first, second, third) {
|
|
2084
|
-
Companion_getInstance_8().g2h(_this__u8e3s4, 0);
|
|
2085
|
-
Companion_getInstance_8().g2h(_this__u8e3s4, 1);
|
|
2086
|
-
var method = isInterface(second, Struct) ? second : THROW_CCE();
|
|
2087
|
-
var tmp$ret$1;
|
|
2088
|
-
$l$block: {
|
|
2089
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2090
|
-
try {
|
|
2091
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.AbstractInvoke.computeOneSubstitution.<anonymous>' call
|
|
2092
|
-
var tmp;
|
|
2093
|
-
if (isInterface(first, Ref)) {
|
|
2094
|
-
tmp = actuallyInvoke(_this__u8e3s4, this, first, method, third);
|
|
2095
|
-
} else {
|
|
2096
|
-
if (isInterface(first, Struct)) {
|
|
2097
|
-
var ref = findRefFromAlias(_this__u8e3s4, first);
|
|
2098
|
-
tmp = actuallyInvoke(_this__u8e3s4, this, ref, method, third);
|
|
2099
|
-
} else {
|
|
2100
|
-
tmp = Companion_getInstance_7().failed();
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
tmp$ret$1 = tmp;
|
|
2104
|
-
break $l$block;
|
|
2105
|
-
} catch ($p) {
|
|
2106
|
-
if ($p instanceof OopException) {
|
|
2107
|
-
var e = $p;
|
|
2108
|
-
throw e.j3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2109
|
-
} else {
|
|
2110
|
-
if ($p instanceof Error) {
|
|
2111
|
-
var e_0 = $p;
|
|
2112
|
-
throw Companion_instance_4.forUncaughtKtException(_this__u8e3s4.context, e_0);
|
|
2113
|
-
} else {
|
|
2114
|
-
throw $p;
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
}
|
|
2118
|
-
}
|
|
2119
|
-
return tmp$ret$1;
|
|
2120
|
-
};
|
|
2121
|
-
protoOf(AbstractInvoke).j2j = function (_this__u8e3s4, first, second, third) {
|
|
2122
|
-
return this.a2q(_this__u8e3s4, first, second, third);
|
|
2123
|
-
};
|
|
2124
|
-
function AbstractIterableItems$computeOneSubstitution$lambda($converter) {
|
|
2125
|
-
return function (it) {
|
|
2126
|
-
return $converter.z3p(it);
|
|
2127
|
-
};
|
|
2128
|
-
}
|
|
2129
|
-
function AbstractIterableItems$computeOneSubstitution$lambda_0(it) {
|
|
2130
|
-
return Companion_getInstance_12().l3p_1.q3p(it);
|
|
2131
|
-
}
|
|
2132
|
-
function AbstractIterableItems(iterable, target) {
|
|
2133
|
-
Functional_0.call(this, iterable + '_items');
|
|
2134
|
-
this.y3q_1 = target;
|
|
2135
|
-
}
|
|
2136
|
-
protoOf(AbstractIterableItems).x2p = function (_this__u8e3s4, first, second) {
|
|
2137
|
-
var tmp;
|
|
2138
|
-
var tmp_0;
|
|
2139
|
-
if (isInterface(first, Var)) {
|
|
2140
|
-
tmp_0 = isInterface(second, Var);
|
|
2141
|
-
} else {
|
|
2142
|
-
tmp_0 = false;
|
|
2143
|
-
}
|
|
2144
|
-
if (tmp_0) {
|
|
2145
|
-
// Inline function 'kotlin.let' call
|
|
2146
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2147
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.AbstractIterableItems.computeOneSubstitution.<anonymous>' call
|
|
2148
|
-
Companion_getInstance_8().w2f(_this__u8e3s4);
|
|
2149
|
-
tmp = Companion_getInstance_7().failed();
|
|
2150
|
-
} else {
|
|
2151
|
-
if (isInterface(second, List_0)) {
|
|
2152
|
-
var converter = get_termToObjectConverter(_this__u8e3s4);
|
|
2153
|
-
var tmp_1 = second.uu();
|
|
2154
|
-
var items = this.z3q(map(tmp_1, AbstractIterableItems$computeOneSubstitution$lambda(converter)));
|
|
2155
|
-
var objectRef = Companion_getInstance_11().k3p(items);
|
|
2156
|
-
tmp = Companion_getInstance_8().w2g(_this__u8e3s4, first, objectRef);
|
|
2157
|
-
} else {
|
|
2158
|
-
if (isInterface(first, ObjectRef)) {
|
|
2159
|
-
var obj = first.x3o();
|
|
2160
|
-
var tmp_2;
|
|
2161
|
-
if (this.a3r(obj)) {
|
|
2162
|
-
var tmp_3 = this.b3r(!(obj == null) ? obj : THROW_CCE());
|
|
2163
|
-
var items_0 = map(tmp_3, AbstractIterableItems$computeOneSubstitution$lambda_0);
|
|
2164
|
-
tmp_2 = Companion_getInstance_8().w2g(_this__u8e3s4, second, Companion_instance_5.ofSequence(items_0));
|
|
2165
|
-
} else {
|
|
2166
|
-
tmp_2 = Companion_getInstance_7().failed();
|
|
2167
|
-
}
|
|
2168
|
-
tmp = tmp_2;
|
|
2169
|
-
} else {
|
|
2170
|
-
throw Companion_instance_1.l28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_OBJECT_REFERENCE_getInstance(), first, 0);
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
}
|
|
2174
|
-
return tmp;
|
|
2175
|
-
};
|
|
2176
|
-
protoOf(AbstractIterableItems).h2g = function (_this__u8e3s4, first, second) {
|
|
2177
|
-
return this.x2p(_this__u8e3s4, first, second);
|
|
2178
|
-
};
|
|
2179
|
-
function ArrayItems() {
|
|
2180
|
-
ArrayItems_instance = this;
|
|
2181
|
-
AbstractIterableItems.call(this, 'array', PrimitiveClasses_getInstance().l7());
|
|
2182
|
-
}
|
|
2183
|
-
protoOf(ArrayItems).z3q = function (_this__u8e3s4) {
|
|
2184
|
-
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2185
|
-
var this_0 = toList(_this__u8e3s4);
|
|
2186
|
-
return copyToArray(this_0);
|
|
2187
|
-
};
|
|
2188
|
-
protoOf(ArrayItems).a3r = function (_this__u8e3s4) {
|
|
2189
|
-
return !(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false;
|
|
2190
|
-
};
|
|
2191
|
-
protoOf(ArrayItems).e3r = function (_this__u8e3s4) {
|
|
2192
|
-
return asSequence(_this__u8e3s4);
|
|
2193
|
-
};
|
|
2194
|
-
protoOf(ArrayItems).b3r = function (_this__u8e3s4) {
|
|
2195
|
-
return this.e3r(isArray(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE());
|
|
2196
|
-
};
|
|
2197
|
-
var ArrayItems_instance;
|
|
2198
|
-
function ArrayItems_getInstance() {
|
|
2199
|
-
if (ArrayItems_instance == null)
|
|
2200
|
-
new ArrayItems();
|
|
2201
|
-
return ArrayItems_instance;
|
|
2202
|
-
}
|
|
2203
|
-
function Assign() {
|
|
2204
|
-
Assign_instance = this;
|
|
2205
|
-
Predicative.call(this, 'assign');
|
|
2206
|
-
}
|
|
2207
|
-
protoOf(Assign).g3r = function (_this__u8e3s4, first, second, third) {
|
|
2208
|
-
Companion_getInstance_8().l2h(_this__u8e3s4, 0);
|
|
2209
|
-
Companion_getInstance_8().l2h(_this__u8e3s4, 1);
|
|
2210
|
-
var tmp$ret$1;
|
|
2211
|
-
$l$block: {
|
|
2212
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2213
|
-
try {
|
|
2214
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.Assign.compute.<anonymous>' call
|
|
2215
|
-
var tmp;
|
|
2216
|
-
if (isInterface(first, Ref)) {
|
|
2217
|
-
tmp = first;
|
|
2218
|
-
} else {
|
|
2219
|
-
tmp = findRefFromAlias(_this__u8e3s4, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2220
|
-
}
|
|
2221
|
-
var ref = tmp;
|
|
2222
|
-
var tmp_0;
|
|
2223
|
-
if (Companion_getInstance_8().x2g(_this__u8e3s4, third, get_DEALIASING_TEMPLATE())) {
|
|
2224
|
-
tmp_0 = findRefFromAlias(_this__u8e3s4, isInterface(third, Struct) ? third : THROW_CCE());
|
|
2225
|
-
} else {
|
|
2226
|
-
tmp_0 = third;
|
|
2227
|
-
}
|
|
2228
|
-
var value = tmp_0;
|
|
2229
|
-
var tmp_1 = get_termToObjectConverter(_this__u8e3s4);
|
|
2230
|
-
tmp$ret$1 = ref.z3o(tmp_1, (isInterface(second, Atom) ? second : THROW_CCE()).r2(), value);
|
|
2231
|
-
break $l$block;
|
|
2232
|
-
} catch ($p) {
|
|
2233
|
-
if ($p instanceof OopException) {
|
|
2234
|
-
var e = $p;
|
|
2235
|
-
throw e.j3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2236
|
-
} else {
|
|
2237
|
-
if ($p instanceof Error) {
|
|
2238
|
-
var e_0 = $p;
|
|
2239
|
-
throw Companion_instance_4.forUncaughtKtException(_this__u8e3s4.context, e_0);
|
|
2240
|
-
} else {
|
|
2241
|
-
throw $p;
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
return tmp$ret$1;
|
|
2247
|
-
};
|
|
2248
|
-
protoOf(Assign).l2j = function (_this__u8e3s4, first, second, third) {
|
|
2249
|
-
return this.g3r(_this__u8e3s4, first, second, third);
|
|
2250
|
-
};
|
|
2251
|
-
var Assign_instance;
|
|
2252
|
-
function Assign_getInstance() {
|
|
2253
|
-
if (Assign_instance == null)
|
|
2254
|
-
new Assign();
|
|
2255
|
-
return Assign_instance;
|
|
2256
|
-
}
|
|
2257
|
-
function cast(_this__u8e3s4, $this, term, type, result) {
|
|
2258
|
-
var tmp;
|
|
2259
|
-
if (type == null) {
|
|
2260
|
-
tmp = Companion_getInstance_7().failed();
|
|
2261
|
-
} else {
|
|
2262
|
-
var casted = get_termToObjectConverter(_this__u8e3s4).w3p(type, term);
|
|
2263
|
-
tmp = Companion_getInstance_8().w2g(_this__u8e3s4, result, Companion_getInstance_11().k3p(casted));
|
|
2264
|
-
}
|
|
2265
|
-
return tmp;
|
|
2266
|
-
}
|
|
2267
|
-
function Cast$computeAll$lambda(it) {
|
|
2268
|
-
return allSupertypes(it, false);
|
|
2269
|
-
}
|
|
2270
|
-
function Cast$computeAll$lambda_0($$this$catchingOopExceptions, $first, $third, $second) {
|
|
2271
|
-
return function (it) {
|
|
2272
|
-
return cast($$this$catchingOopExceptions, Cast_getInstance(), $first, it, $third).plus(Companion_getInstance_8().w2g($$this$catchingOopExceptions, $second, Companion_instance_12.a3q(it)));
|
|
2273
|
-
};
|
|
2274
|
-
}
|
|
2275
|
-
function Cast$computeAll$lambda_1($$this$catchingOopExceptions) {
|
|
2276
|
-
return function (it) {
|
|
2277
|
-
return $$this$catchingOopExceptions.replyWith(it, VOID, []);
|
|
2278
|
-
};
|
|
2279
|
-
}
|
|
2280
|
-
function Cast() {
|
|
2281
|
-
Cast_instance = this;
|
|
2282
|
-
TernaryRelation.call(this, 'cast');
|
|
2283
|
-
}
|
|
2284
|
-
protoOf(Cast).i3r = function (_this__u8e3s4, first, second, third) {
|
|
2285
|
-
var tmp$ret$1;
|
|
2286
|
-
$l$block: {
|
|
2287
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2288
|
-
try {
|
|
2289
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.Cast.computeAll.<anonymous>' call
|
|
2290
|
-
var tmp;
|
|
2291
|
-
if (isInterface(second, Struct)) {
|
|
2292
|
-
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2293
|
-
var type = getArgumentAsTypeRef(_this__u8e3s4, 1);
|
|
2294
|
-
var tmp_0;
|
|
2295
|
-
try {
|
|
2296
|
-
var tmp_1 = Cast_getInstance();
|
|
2297
|
-
tmp_0 = sequenceOf([_this__u8e3s4.replyWith(cast(_this__u8e3s4, tmp_1, first, type == null ? null : type.z24(), third), VOID, [])]);
|
|
2298
|
-
} catch ($p) {
|
|
2299
|
-
var tmp_2;
|
|
2300
|
-
if ($p instanceof TermToObjectConversionException) {
|
|
2301
|
-
var _ = $p;
|
|
2302
|
-
tmp_2 = sequenceOf([_this__u8e3s4.replyFail(VOID, [])]);
|
|
2303
|
-
} else {
|
|
2304
|
-
throw $p;
|
|
2305
|
-
}
|
|
2306
|
-
tmp_0 = tmp_2;
|
|
2307
|
-
}
|
|
2308
|
-
tmp = tmp_0;
|
|
2309
|
-
} else {
|
|
2310
|
-
if (isInterface(second, Var)) {
|
|
2311
|
-
var tmp_3 = asSequence_0(get_termToObjectConverter(_this__u8e3s4).x3p(first));
|
|
2312
|
-
var tmp_4 = distinct(flatMap(tmp_3, Cast$computeAll$lambda));
|
|
2313
|
-
var tmp_5 = map(tmp_4, Cast$computeAll$lambda_0(_this__u8e3s4, first, third, second));
|
|
2314
|
-
tmp = map(tmp_5, Cast$computeAll$lambda_1(_this__u8e3s4));
|
|
2315
|
-
} else {
|
|
2316
|
-
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2317
|
-
tmp = sequenceOf([_this__u8e3s4.replyFail(VOID, [])]);
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
tmp$ret$1 = tmp;
|
|
2321
|
-
break $l$block;
|
|
2322
|
-
} catch ($p) {
|
|
2323
|
-
if ($p instanceof OopException) {
|
|
2324
|
-
var e = $p;
|
|
2325
|
-
throw e.j3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2326
|
-
} else {
|
|
2327
|
-
if ($p instanceof Error) {
|
|
2328
|
-
var e_0 = $p;
|
|
2329
|
-
throw Companion_instance_4.forUncaughtKtException(_this__u8e3s4.context, e_0);
|
|
2330
|
-
} else {
|
|
2331
|
-
throw $p;
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
}
|
|
2336
|
-
return tmp$ret$1;
|
|
2337
|
-
};
|
|
2338
|
-
protoOf(Cast).e2j = function (_this__u8e3s4, first, second, third) {
|
|
2339
|
-
return this.i3r(_this__u8e3s4, first, second, third);
|
|
2340
|
-
};
|
|
2341
|
-
var Cast_instance;
|
|
2342
|
-
function Cast_getInstance() {
|
|
2343
|
-
if (Cast_instance == null)
|
|
2344
|
-
new Cast();
|
|
2345
|
-
return Cast_instance;
|
|
2346
|
-
}
|
|
2347
|
-
function InvokeMethod() {
|
|
2348
|
-
InvokeMethod_instance = this;
|
|
2349
|
-
AbstractInvoke.call(this, 'method');
|
|
2350
|
-
}
|
|
2351
|
-
protoOf(InvokeMethod).w3q = function (_this__u8e3s4) {
|
|
2352
|
-
return _this__u8e3s4.p1i();
|
|
2353
|
-
};
|
|
2354
|
-
var InvokeMethod_instance;
|
|
2355
|
-
function InvokeMethod_getInstance() {
|
|
2356
|
-
if (InvokeMethod_instance == null)
|
|
2357
|
-
new InvokeMethod();
|
|
2358
|
-
return InvokeMethod_instance;
|
|
2359
|
-
}
|
|
2360
|
-
function InvokeStrict() {
|
|
2361
|
-
InvokeStrict_instance = this;
|
|
2362
|
-
AbstractInvoke.call(this, 'strict');
|
|
2363
|
-
}
|
|
2364
|
-
protoOf(InvokeStrict).w3q = function (_this__u8e3s4) {
|
|
2365
|
-
return _this__u8e3s4.r3p();
|
|
2366
|
-
};
|
|
2367
|
-
var InvokeStrict_instance;
|
|
2368
|
-
function InvokeStrict_getInstance() {
|
|
2369
|
-
if (InvokeStrict_instance == null)
|
|
2370
|
-
new InvokeStrict();
|
|
2371
|
-
return InvokeStrict_instance;
|
|
2372
|
-
}
|
|
2373
|
-
function ListItems() {
|
|
2374
|
-
ListItems_instance = this;
|
|
2375
|
-
AbstractIterableItems.call(this, 'list', getKClass(List));
|
|
2376
|
-
}
|
|
2377
|
-
protoOf(ListItems).z3q = function (_this__u8e3s4) {
|
|
2378
|
-
return toList(_this__u8e3s4);
|
|
2379
|
-
};
|
|
2380
|
-
protoOf(ListItems).a3r = function (_this__u8e3s4) {
|
|
2381
|
-
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, List) : false;
|
|
2382
|
-
};
|
|
2383
|
-
protoOf(ListItems).n3r = function (_this__u8e3s4) {
|
|
2384
|
-
return asSequence_0(_this__u8e3s4);
|
|
2385
|
-
};
|
|
2386
|
-
protoOf(ListItems).b3r = function (_this__u8e3s4) {
|
|
2387
|
-
return this.n3r(isInterface(_this__u8e3s4, List) ? _this__u8e3s4 : THROW_CCE());
|
|
2388
|
-
};
|
|
2389
|
-
var ListItems_instance;
|
|
2390
|
-
function ListItems_getInstance() {
|
|
2391
|
-
if (ListItems_instance == null)
|
|
2392
|
-
new ListItems();
|
|
2393
|
-
return ListItems_instance;
|
|
2394
|
-
}
|
|
2395
|
-
function NewObject3() {
|
|
2396
|
-
NewObject3_instance = this;
|
|
2397
|
-
Functional.call(this, 'new_object');
|
|
2398
|
-
}
|
|
2399
|
-
protoOf(NewObject3).a2q = function (_this__u8e3s4, first, second, third) {
|
|
2400
|
-
Companion_getInstance_8().g2h(_this__u8e3s4, 0);
|
|
2401
|
-
Companion_getInstance_8().q2h(_this__u8e3s4, 1);
|
|
2402
|
-
var tmp$ret$3;
|
|
2403
|
-
$l$block: {
|
|
2404
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2405
|
-
try {
|
|
2406
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.NewObject3.computeOneSubstitution.<anonymous>' call
|
|
2407
|
-
var type = getArgumentAsTypeRef(_this__u8e3s4, 0);
|
|
2408
|
-
var arguments_0 = (isInterface(second, List_0) ? second : THROW_CCE()).toArray();
|
|
2409
|
-
var tmp1_safe_receiver = type == null ? null : type.d3q(get_termToObjectConverter(_this__u8e3s4), arguments_0.slice());
|
|
2410
|
-
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r3p();
|
|
2411
|
-
var tmp;
|
|
2412
|
-
if (objectReference == null) {
|
|
2413
|
-
tmp = null;
|
|
2414
|
-
} else {
|
|
2415
|
-
// Inline function 'kotlin.let' call
|
|
2416
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2417
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.NewObject3.computeOneSubstitution.<anonymous>.<anonymous>' call
|
|
2418
|
-
tmp = Companion_getInstance_8().w2g(_this__u8e3s4, objectReference, third);
|
|
2419
|
-
}
|
|
2420
|
-
var tmp3_elvis_lhs = tmp;
|
|
2421
|
-
tmp$ret$3 = tmp3_elvis_lhs == null ? Companion_getInstance_7().failed() : tmp3_elvis_lhs;
|
|
2422
|
-
break $l$block;
|
|
2423
|
-
} catch ($p) {
|
|
2424
|
-
if ($p instanceof OopException) {
|
|
2425
|
-
var e = $p;
|
|
2426
|
-
throw e.j3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2427
|
-
} else {
|
|
2428
|
-
if ($p instanceof Error) {
|
|
2429
|
-
var e_0 = $p;
|
|
2430
|
-
throw Companion_instance_4.forUncaughtKtException(_this__u8e3s4.context, e_0);
|
|
2431
|
-
} else {
|
|
2432
|
-
throw $p;
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
return tmp$ret$3;
|
|
2438
|
-
};
|
|
2439
|
-
protoOf(NewObject3).j2j = function (_this__u8e3s4, first, second, third) {
|
|
2440
|
-
return this.a2q(_this__u8e3s4, first, second, third);
|
|
2441
|
-
};
|
|
2442
|
-
var NewObject3_instance;
|
|
2443
|
-
function NewObject3_getInstance() {
|
|
2444
|
-
if (NewObject3_instance == null)
|
|
2445
|
-
new NewObject3();
|
|
2446
|
-
return NewObject3_instance;
|
|
2447
|
-
}
|
|
2448
|
-
function NullRef_0() {
|
|
2449
|
-
NullRef_instance = this;
|
|
2450
|
-
TypeTester.call(this, 'null_ref');
|
|
2451
|
-
}
|
|
2452
|
-
protoOf(NullRef_0).v2j = function (term) {
|
|
2453
|
-
return isInterface(term, NullRef);
|
|
2454
|
-
};
|
|
2455
|
-
var NullRef_instance;
|
|
2456
|
-
function NullRef_getInstance() {
|
|
2457
|
-
if (NullRef_instance == null)
|
|
2458
|
-
new NullRef_0();
|
|
2459
|
-
return NullRef_instance;
|
|
2460
|
-
}
|
|
2461
|
-
function ObjectRef_0() {
|
|
2462
|
-
ObjectRef_instance = this;
|
|
2463
|
-
TypeTester.call(this, 'object_ref');
|
|
2464
|
-
}
|
|
2465
|
-
protoOf(ObjectRef_0).v2j = function (term) {
|
|
2466
|
-
return isInterface(term, ObjectRef);
|
|
2467
|
-
};
|
|
2468
|
-
var ObjectRef_instance;
|
|
2469
|
-
function ObjectRef_getInstance() {
|
|
2470
|
-
if (ObjectRef_instance == null)
|
|
2471
|
-
new ObjectRef_0();
|
|
2472
|
-
return ObjectRef_instance;
|
|
2473
|
-
}
|
|
2474
|
-
function get_DEALIASING_TEMPLATE() {
|
|
2475
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2476
|
-
return DEALIASING_TEMPLATE;
|
|
2477
|
-
}
|
|
2478
|
-
var DEALIASING_TEMPLATE;
|
|
2479
|
-
function get_CAST_TEMPLATE() {
|
|
2480
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2481
|
-
return CAST_TEMPLATE;
|
|
2482
|
-
}
|
|
2483
|
-
var CAST_TEMPLATE;
|
|
2484
|
-
function findRefFromAlias(_this__u8e3s4, alias) {
|
|
2485
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2486
|
-
var tmp0_elvis_lhs = findRefFromAliasOrNull(_this__u8e3s4, alias);
|
|
2487
|
-
var tmp;
|
|
2488
|
-
if (tmp0_elvis_lhs == null) {
|
|
2489
|
-
throw new NoSuchAnAliasException(alias);
|
|
2490
|
-
} else {
|
|
2491
|
-
tmp = tmp0_elvis_lhs;
|
|
2492
|
-
}
|
|
2493
|
-
return tmp;
|
|
2494
|
-
}
|
|
2495
|
-
function get_termToObjectConverter(_this__u8e3s4) {
|
|
2496
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2497
|
-
var tmp = Companion_getInstance_14();
|
|
2498
|
-
return tmp.t3p(VOID, _get_termToObjectConverter_$lambda_4bacq4(_this__u8e3s4));
|
|
2499
|
-
}
|
|
2500
|
-
function ensuringArgumentIsTypeRef(_this__u8e3s4, index) {
|
|
2501
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2502
|
-
var arg = _this__u8e3s4.arguments.c1(index);
|
|
2503
|
-
var tmp;
|
|
2504
|
-
var tmp_0;
|
|
2505
|
-
if (matchesDealiasingTemplate(_this__u8e3s4, arg)) {
|
|
2506
|
-
var tmp_1 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
2507
|
-
tmp_0 = isInterface(tmp_1, TypeRef);
|
|
2508
|
-
} else {
|
|
2509
|
-
tmp_0 = false;
|
|
2510
|
-
}
|
|
2511
|
-
if (tmp_0) {
|
|
2512
|
-
tmp = _this__u8e3s4;
|
|
2513
|
-
} else {
|
|
2514
|
-
if (!isInterface(arg, TypeRef)) {
|
|
2515
|
-
throw Companion_instance_1.l28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_TYPE_REFERENCE_getInstance(), arg, index);
|
|
2516
|
-
} else {
|
|
2517
|
-
tmp = _this__u8e3s4;
|
|
2518
|
-
}
|
|
2519
|
-
}
|
|
2520
|
-
return tmp;
|
|
2521
|
-
}
|
|
2522
|
-
function getArgumentAsTypeRef(_this__u8e3s4, index) {
|
|
2523
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2524
|
-
Companion_getInstance_8().g2h(_this__u8e3s4, index);
|
|
2525
|
-
var arg = _this__u8e3s4.arguments.c1(index);
|
|
2526
|
-
var tmp;
|
|
2527
|
-
if (isInterface(arg, TypeRef)) {
|
|
2528
|
-
tmp = arg;
|
|
2529
|
-
} else {
|
|
2530
|
-
if (isInterface(arg, Atom)) {
|
|
2531
|
-
tmp = Companion_getInstance_15().v3p_1.c3q(arg.r2());
|
|
2532
|
-
} else {
|
|
2533
|
-
if (isDealiasingExpression(_this__u8e3s4, arg)) {
|
|
2534
|
-
var tmp_0 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
2535
|
-
tmp = isInterface(tmp_0, TypeRef) ? tmp_0 : null;
|
|
2536
|
-
} else {
|
|
2537
|
-
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2538
|
-
tmp = null;
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
return tmp;
|
|
2543
|
-
}
|
|
2544
|
-
function ensuringArgumentIsRef(_this__u8e3s4, index) {
|
|
2545
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2546
|
-
var arg = _this__u8e3s4.arguments.c1(index);
|
|
2547
|
-
var tmp;
|
|
2548
|
-
if (matchesDealiasingTemplate(_this__u8e3s4, arg) ? ensureAliasIsRegistered(_this__u8e3s4, arg.castToStruct()) : false) {
|
|
2549
|
-
tmp = _this__u8e3s4;
|
|
2550
|
-
} else {
|
|
2551
|
-
if (!isInterface(arg, Ref)) {
|
|
2552
|
-
throw Companion_instance_1.l28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_REFERENCE_getInstance(), arg, index);
|
|
2553
|
-
} else {
|
|
2554
|
-
tmp = _this__u8e3s4;
|
|
2555
|
-
}
|
|
2556
|
-
}
|
|
2557
|
-
return tmp;
|
|
2558
|
-
}
|
|
2559
|
-
function findRefFromAliasOrNull(_this__u8e3s4, alias) {
|
|
2560
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2561
|
-
var tmp;
|
|
2562
|
-
if (isDealiasingExpression(_this__u8e3s4, alias)) {
|
|
2563
|
-
var tmp_0 = alias.get(0);
|
|
2564
|
-
tmp = isInterface(tmp_0, Struct) ? tmp_0 : THROW_CCE();
|
|
2565
|
-
} else {
|
|
2566
|
-
throw new MalformedAliasException(alias);
|
|
2567
|
-
}
|
|
2568
|
-
var actualAlias = tmp;
|
|
2569
|
-
var ActualRef = Companion_getInstance_9().of('ActualRef');
|
|
2570
|
-
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
2571
|
-
var tmp_1 = Companion_getInstance_10();
|
|
2572
|
-
var this_0 = _this__u8e3s4.solve(tmp_1.of('alias', [actualAlias, ActualRef]));
|
|
2573
|
-
var tmp_2 = filter(this_0, findRefFromAliasOrNull$lambda);
|
|
2574
|
-
var tmp$ret$0 = isInterface(tmp_2, Sequence) ? tmp_2 : THROW_CCE();
|
|
2575
|
-
var tmp0_safe_receiver = firstOrNull(tmp$ret$0);
|
|
2576
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1w();
|
|
2577
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get(1);
|
|
2578
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.kx();
|
|
2579
|
-
}
|
|
2580
|
-
function matchesDealiasingTemplate(_this__u8e3s4, term) {
|
|
2581
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2582
|
-
var tmp;
|
|
2583
|
-
if (isInterface(term, Struct)) {
|
|
2584
|
-
tmp = Companion_getInstance_8().x2g(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2585
|
-
} else {
|
|
2586
|
-
tmp = false;
|
|
2587
|
-
}
|
|
2588
|
-
return tmp;
|
|
2589
|
-
}
|
|
2590
|
-
function isDealiasingExpression(_this__u8e3s4, term) {
|
|
2591
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2592
|
-
var tmp;
|
|
2593
|
-
var tmp_0;
|
|
2594
|
-
if (isInterface(term, Struct)) {
|
|
2595
|
-
tmp_0 = Companion_getInstance_8().x2g(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2596
|
-
} else {
|
|
2597
|
-
tmp_0 = false;
|
|
2598
|
-
}
|
|
2599
|
-
if (tmp_0) {
|
|
2600
|
-
var tmp_1 = term.rw().c1(0);
|
|
2601
|
-
tmp = isInterface(tmp_1, Atom);
|
|
2602
|
-
} else {
|
|
2603
|
-
tmp = false;
|
|
2604
|
-
}
|
|
2605
|
-
return tmp;
|
|
2606
|
-
}
|
|
2607
|
-
function ensureAliasIsRegistered(_this__u8e3s4, alias) {
|
|
2608
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2609
|
-
var tmp;
|
|
2610
|
-
if (isAliasRegistered(_this__u8e3s4, alias)) {
|
|
2611
|
-
tmp = true;
|
|
2612
|
-
} else {
|
|
2613
|
-
throw new NoSuchAnAliasException(alias);
|
|
2614
|
-
}
|
|
2615
|
-
return tmp;
|
|
2616
|
-
}
|
|
2617
|
-
function isAliasRegistered(_this__u8e3s4, alias) {
|
|
2618
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2619
|
-
return !(findRefFromAliasOrNull(_this__u8e3s4, alias) == null);
|
|
2620
|
-
}
|
|
2621
|
-
function _get_termToObjectConverter_$lambda_4bacq4($this_termToObjectConverter) {
|
|
2622
|
-
return function (it) {
|
|
2623
|
-
return findRefFromAliasOrNull($this_termToObjectConverter, it);
|
|
2624
|
-
};
|
|
2625
|
-
}
|
|
2626
|
-
function findRefFromAliasOrNull$lambda(it) {
|
|
2627
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2628
|
-
return !(it == null) ? isInterface(it, Yes) : false;
|
|
2629
|
-
}
|
|
2630
|
-
var properties_initialized_PrimitiveExtensions_kt_xhw6ad;
|
|
2631
|
-
function _init_properties_PrimitiveExtensions_kt__hfa11z() {
|
|
2632
|
-
if (!properties_initialized_PrimitiveExtensions_kt_xhw6ad) {
|
|
2633
|
-
properties_initialized_PrimitiveExtensions_kt_xhw6ad = true;
|
|
2634
|
-
var tmp = Companion_getInstance_10();
|
|
2635
|
-
DEALIASING_TEMPLATE = tmp.of('$', [Companion_getInstance_9().of('Alias')]);
|
|
2636
|
-
var tmp_0 = Companion_getInstance_10();
|
|
2637
|
-
CAST_TEMPLATE = tmp_0.template('as', 2);
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
function Ref_0() {
|
|
2641
|
-
Ref_instance = this;
|
|
2642
|
-
TypeTester.call(this, 'ref');
|
|
2643
|
-
}
|
|
2644
|
-
protoOf(Ref_0).v2j = function (term) {
|
|
2645
|
-
return isInterface(term, Ref);
|
|
2646
|
-
};
|
|
2647
|
-
var Ref_instance;
|
|
2648
|
-
function Ref_getInstance() {
|
|
2649
|
-
if (Ref_instance == null)
|
|
2650
|
-
new Ref_0();
|
|
2651
|
-
return Ref_instance;
|
|
2652
|
-
}
|
|
2653
|
-
function Register$computeOne$lambda($second, $first) {
|
|
2654
|
-
return function ($this$replySuccess) {
|
|
2655
|
-
var tmp = Companion_instance_15;
|
|
2656
|
-
var tmp_0 = isInterface($second, Struct) ? $second : THROW_CCE();
|
|
2657
|
-
$this$replySuccess.l2m([tmp.s3r(tmp_0, isInterface($first, Ref) ? $first : THROW_CCE()).q1u()]);
|
|
2658
|
-
return Unit_instance;
|
|
2659
|
-
};
|
|
2660
|
-
}
|
|
2661
|
-
function Register() {
|
|
2662
|
-
Register_instance = this;
|
|
2663
|
-
NonBacktrackable.call(this, 'register');
|
|
2664
|
-
}
|
|
2665
|
-
protoOf(Register).n2p = function (_this__u8e3s4, first_0, second) {
|
|
2666
|
-
Companion_getInstance_8().w2f(_this__u8e3s4);
|
|
2667
|
-
ensuringArgumentIsRef(_this__u8e3s4, 0);
|
|
2668
|
-
Companion_getInstance_8().g2h(_this__u8e3s4, 1);
|
|
2669
|
-
if (!second.ux()) {
|
|
2670
|
-
throw Companion_instance_6.p26(_this__u8e3s4.context, _this__u8e3s4.signature, first(second.sw()), 0);
|
|
2671
|
-
}
|
|
2672
|
-
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Register$computeOne$lambda(second, first_0));
|
|
2673
|
-
};
|
|
2674
|
-
protoOf(Register).y2f = function (_this__u8e3s4, first, second) {
|
|
2675
|
-
return this.n2p(_this__u8e3s4, first, second);
|
|
2676
|
-
};
|
|
2677
|
-
var Register_instance;
|
|
2678
|
-
function Register_getInstance() {
|
|
2679
|
-
if (Register_instance == null)
|
|
2680
|
-
new Register();
|
|
2681
|
-
return Register_instance;
|
|
2682
|
-
}
|
|
2683
|
-
function SetItems() {
|
|
2684
|
-
SetItems_instance = this;
|
|
2685
|
-
AbstractIterableItems.call(this, 'set', getKClass(Set));
|
|
2686
|
-
}
|
|
2687
|
-
protoOf(SetItems).z3q = function (_this__u8e3s4) {
|
|
2688
|
-
return toSet(_this__u8e3s4);
|
|
2689
|
-
};
|
|
2690
|
-
protoOf(SetItems).a3r = function (_this__u8e3s4) {
|
|
2691
|
-
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Set) : false;
|
|
2692
|
-
};
|
|
2693
|
-
protoOf(SetItems).w3r = function (_this__u8e3s4) {
|
|
2694
|
-
return asSequence_0(_this__u8e3s4);
|
|
2695
|
-
};
|
|
2696
|
-
protoOf(SetItems).b3r = function (_this__u8e3s4) {
|
|
2697
|
-
return this.w3r(isInterface(_this__u8e3s4, Set) ? _this__u8e3s4 : THROW_CCE());
|
|
2698
|
-
};
|
|
2699
|
-
var SetItems_instance;
|
|
2700
|
-
function SetItems_getInstance() {
|
|
2701
|
-
if (SetItems_instance == null)
|
|
2702
|
-
new SetItems();
|
|
2703
|
-
return SetItems_instance;
|
|
2704
|
-
}
|
|
2705
|
-
function Type() {
|
|
2706
|
-
Type_instance = this;
|
|
2707
|
-
Functional_0.call(this, 'type');
|
|
2708
|
-
this.y3r_1 = Companion_getInstance_15().v3p_1;
|
|
2709
|
-
}
|
|
2710
|
-
protoOf(Type).x2p = function (_this__u8e3s4, first, second) {
|
|
2711
|
-
var tmp$ret$3;
|
|
2712
|
-
$l$block: {
|
|
2713
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2714
|
-
try {
|
|
2715
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.Type.computeOneSubstitution.<anonymous>' call
|
|
2716
|
-
var tmp;
|
|
2717
|
-
var tmp_0;
|
|
2718
|
-
if (isInterface(first, Var)) {
|
|
2719
|
-
tmp_0 = isInterface(second, Var);
|
|
2720
|
-
} else {
|
|
2721
|
-
tmp_0 = false;
|
|
2722
|
-
}
|
|
2723
|
-
if (tmp_0) {
|
|
2724
|
-
Companion_getInstance_8().c2h(_this__u8e3s4, 0);
|
|
2725
|
-
tmp = Companion_getInstance_7().failed();
|
|
2726
|
-
} else {
|
|
2727
|
-
if (isInterface(first, Var)) {
|
|
2728
|
-
Companion_getInstance_8().l2h(_this__u8e3s4, 1);
|
|
2729
|
-
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2730
|
-
var tmp_1 = Companion_getInstance_8();
|
|
2731
|
-
var tmp_2 = Companion_getInstance_0();
|
|
2732
|
-
tmp = tmp_1.w2g(_this__u8e3s4, first, tmp_2.of(get_name((isInterface(second, TypeRef) ? second : THROW_CCE()).z24())));
|
|
2733
|
-
} else {
|
|
2734
|
-
if (isInterface(second, Var)) {
|
|
2735
|
-
Companion_getInstance_8().l2h(_this__u8e3s4, 0);
|
|
2736
|
-
var tmp_3 = Type_getInstance().y3r_1;
|
|
2737
|
-
var tmp0_safe_receiver = tmp_3.c3q((isInterface(first, Atom) ? first : THROW_CCE()).r2());
|
|
2738
|
-
var tmp_4;
|
|
2739
|
-
if (tmp0_safe_receiver == null) {
|
|
2740
|
-
tmp_4 = null;
|
|
2741
|
-
} else {
|
|
2742
|
-
// Inline function 'kotlin.let' call
|
|
2743
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2744
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.Type.computeOneSubstitution.<anonymous>.<anonymous>' call
|
|
2745
|
-
tmp_4 = Companion_getInstance_8().w2g(_this__u8e3s4, tmp0_safe_receiver, second);
|
|
2746
|
-
}
|
|
2747
|
-
var tmp1_elvis_lhs = tmp_4;
|
|
2748
|
-
tmp = tmp1_elvis_lhs == null ? Companion_getInstance_7().failed() : tmp1_elvis_lhs;
|
|
2749
|
-
} else {
|
|
2750
|
-
Companion_getInstance_8().l2h(_this__u8e3s4, 0);
|
|
2751
|
-
tmp = Companion_getInstance_7().failed();
|
|
2752
|
-
}
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
tmp$ret$3 = tmp;
|
|
2756
|
-
break $l$block;
|
|
2757
|
-
} catch ($p) {
|
|
2758
|
-
if ($p instanceof OopException) {
|
|
2759
|
-
var e = $p;
|
|
2760
|
-
throw e.j3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2761
|
-
} else {
|
|
2762
|
-
if ($p instanceof Error) {
|
|
2763
|
-
var e_0 = $p;
|
|
2764
|
-
throw Companion_instance_4.forUncaughtKtException(_this__u8e3s4.context, e_0);
|
|
2765
|
-
} else {
|
|
2766
|
-
throw $p;
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
return tmp$ret$3;
|
|
2772
|
-
};
|
|
2773
|
-
protoOf(Type).h2g = function (_this__u8e3s4, first, second) {
|
|
2774
|
-
return this.x2p(_this__u8e3s4, first, second);
|
|
2775
|
-
};
|
|
2776
|
-
var Type_instance;
|
|
2777
|
-
function Type_getInstance() {
|
|
2778
|
-
if (Type_instance == null)
|
|
2779
|
-
new Type();
|
|
2780
|
-
return Type_instance;
|
|
2781
|
-
}
|
|
2782
|
-
function TypeRef_0() {
|
|
2783
|
-
TypeRef_instance = this;
|
|
2784
|
-
TypeTester.call(this, 'type_ref');
|
|
2785
|
-
}
|
|
2786
|
-
protoOf(TypeRef_0).v2j = function (term) {
|
|
2787
|
-
return isInterface(term, TypeRef);
|
|
2788
|
-
};
|
|
2789
|
-
var TypeRef_instance;
|
|
2790
|
-
function TypeRef_getInstance() {
|
|
2791
|
-
if (TypeRef_instance == null)
|
|
2792
|
-
new TypeRef_0();
|
|
2793
|
-
return TypeRef_instance;
|
|
2794
|
-
}
|
|
2795
|
-
function Unregister$computeOne$lambda($first) {
|
|
2796
|
-
return function (it) {
|
|
2797
|
-
return it.wy().get(0).equals($first);
|
|
2798
|
-
};
|
|
2799
|
-
}
|
|
2800
|
-
function Unregister$computeOne$lambda_0($toBeRemoved) {
|
|
2801
|
-
return function ($this$replySuccess) {
|
|
2802
|
-
$this$replySuccess.m2m($toBeRemoved);
|
|
2803
|
-
return Unit_instance;
|
|
2804
|
-
};
|
|
2805
|
-
}
|
|
2806
|
-
function Unregister() {
|
|
2807
|
-
Unregister_instance = this;
|
|
2808
|
-
NonBacktrackable_0.call(this, 'unregister');
|
|
2809
|
-
}
|
|
2810
|
-
protoOf(Unregister).w2o = function (_this__u8e3s4, first_0) {
|
|
2811
|
-
Companion_getInstance_8().g2h(_this__u8e3s4, 0);
|
|
2812
|
-
if (!first_0.ux()) {
|
|
2813
|
-
throw Companion_instance_6.p26(_this__u8e3s4.context, _this__u8e3s4.signature, first(first_0.sw()), 0);
|
|
2814
|
-
}
|
|
2815
|
-
var tmp = Companion_getInstance_10();
|
|
2816
|
-
var pattern = tmp.of('alias', [first_0, Companion_getInstance_9().anonymous()]);
|
|
2817
|
-
var tmp_0 = _this__u8e3s4.context.e1v().getByHead(pattern);
|
|
2818
|
-
var toBeRemoved = toList(filter(tmp_0, Unregister$computeOne$lambda(first_0)));
|
|
2819
|
-
var tmp_1;
|
|
2820
|
-
if (toBeRemoved.y()) {
|
|
2821
|
-
tmp_1 = _this__u8e3s4.replyFail(VOID, []);
|
|
2822
|
-
} else {
|
|
2823
|
-
tmp_1 = _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Unregister$computeOne$lambda_0(toBeRemoved));
|
|
2824
|
-
}
|
|
2825
|
-
return tmp_1;
|
|
2826
|
-
};
|
|
2827
|
-
protoOf(Unregister).q2j = function (_this__u8e3s4, first) {
|
|
2828
|
-
return this.w2o(_this__u8e3s4, first);
|
|
2829
|
-
};
|
|
2830
|
-
var Unregister_instance;
|
|
2831
|
-
function Unregister_getInstance() {
|
|
2832
|
-
if (Unregister_instance == null)
|
|
2833
|
-
new Unregister();
|
|
2834
|
-
return Unregister_instance;
|
|
2835
|
-
}
|
|
2836
|
-
function Companion_7() {
|
|
2837
|
-
this.g3p_1 = 'alias';
|
|
2838
|
-
}
|
|
2839
|
-
protoOf(Companion_7).h3p = function (alias, type) {
|
|
2840
|
-
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.a3q(type));
|
|
2841
|
-
};
|
|
2842
|
-
protoOf(Companion_7).s3r = function (alias, ref) {
|
|
2843
|
-
return new Alias(alias, ref);
|
|
2844
|
-
};
|
|
2845
|
-
var Companion_instance_15;
|
|
2846
|
-
function Companion_getInstance_19() {
|
|
2847
|
-
return Companion_instance_15;
|
|
2848
|
-
}
|
|
2849
|
-
function Alias(alias, ref) {
|
|
2850
|
-
RuleWrapper_init_$Init$('alias', 2, VOID, this);
|
|
2851
|
-
this.e3s_1 = alias;
|
|
2852
|
-
this.f3s_1 = ref;
|
|
2853
|
-
// Inline function 'kotlin.require' call
|
|
2854
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2855
|
-
if (!this.e3s_1.ux()) {
|
|
2856
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.rules.Alias.<anonymous>' call
|
|
2857
|
-
var message = 'Alias must be a ground term, got: ' + this.e3s_1;
|
|
2858
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
protoOf(Alias).w2j = function (_this__u8e3s4) {
|
|
2862
|
-
return toList(sequenceOf([this.e3s_1, this.f3s_1]));
|
|
2863
|
-
};
|
|
2864
|
-
function _get_R__7mlo3j($this) {
|
|
2865
|
-
return $this.j3s_1.getValue($this, R$factory());
|
|
2866
|
-
}
|
|
2867
|
-
function _get_X__7mlo8p($this) {
|
|
2868
|
-
return $this.k3s_1.getValue($this, X$factory());
|
|
2869
|
-
}
|
|
2870
|
-
function _get_Y__7mlo9k($this) {
|
|
2871
|
-
return $this.l3s_1.getValue($this, Y$factory());
|
|
2872
|
-
}
|
|
2873
|
-
function _get_T__7mlo59($this) {
|
|
2874
|
-
return $this.m3s_1.getValue($this, T$factory());
|
|
2875
|
-
}
|
|
2876
|
-
function _get_R__7mlo3j_0($this) {
|
|
2877
|
-
return $this.q3s_1.getValue($this, R$factory_0());
|
|
2878
|
-
}
|
|
2879
|
-
function _get_M__7mlnz8($this) {
|
|
2880
|
-
return $this.r3s_1.getValue($this, M$factory());
|
|
2881
|
-
}
|
|
2882
|
-
function _get_C__7mlnqm($this) {
|
|
2883
|
-
return $this.v3s_1.getValue($this, C$factory());
|
|
2884
|
-
}
|
|
2885
|
-
function _get_P__7mlo1t($this) {
|
|
2886
|
-
return $this.w3s_1.getValue($this, P$factory());
|
|
2887
|
-
}
|
|
2888
|
-
function _get_R__7mlo3j_1($this) {
|
|
2889
|
-
return $this.x3s_1.getValue($this, R$factory_1());
|
|
2890
|
-
}
|
|
2891
|
-
function _get_V__7mlo6z($this) {
|
|
2892
|
-
return $this.y3s_1.getValue($this, V$factory());
|
|
2893
|
-
}
|
|
2894
|
-
function Cast_0() {
|
|
2895
|
-
Cast_instance_0 = this;
|
|
2896
|
-
ColonEquals.call(this);
|
|
2897
|
-
this.j3s_1 = this.a1z_1;
|
|
2898
|
-
this.k3s_1 = this.a1z_1;
|
|
2899
|
-
this.l3s_1 = this.a1z_1;
|
|
2900
|
-
this.m3s_1 = this.a1z_1;
|
|
2901
|
-
}
|
|
2902
|
-
protoOf(Cast_0).w2j = function (_this__u8e3s4) {
|
|
2903
|
-
var tmp = _get_R__7mlo3j(this);
|
|
2904
|
-
return listOf([tmp, _this__u8e3s4.structOf('as', [_get_X__7mlo8p(this), _get_T__7mlo59(this)])]);
|
|
2905
|
-
};
|
|
2906
|
-
protoOf(Cast_0).x2j = function (_this__u8e3s4) {
|
|
2907
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2908
|
-
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
2909
|
-
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j(this)]);
|
|
2910
|
-
var tmp_0 = _this__u8e3s4.atomOf('!');
|
|
2911
|
-
var tmp_1 = _this__u8e3s4.structOf('fluent_reduce', [_get_X__7mlo8p(this), _get_Y__7mlo9k(this)]);
|
|
2912
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2913
|
-
var tmp$ret$1 = Cast_getInstance().signature.name;
|
|
2914
|
-
return _this__u8e3s4.tupleOf([tmp, tmp_0, tmp_1, _this__u8e3s4.structOf(tmp$ret$1, [_get_Y__7mlo9k(this), _get_T__7mlo59(this), _get_R__7mlo3j(this)])]);
|
|
2915
|
-
};
|
|
2916
|
-
var Cast_instance_0;
|
|
2917
|
-
function Cast_getInstance_0() {
|
|
2918
|
-
if (Cast_instance_0 == null)
|
|
2919
|
-
new Cast_0();
|
|
2920
|
-
return Cast_instance_0;
|
|
2921
|
-
}
|
|
2922
|
-
function Invocation() {
|
|
2923
|
-
Invocation_instance = this;
|
|
2924
|
-
ColonEquals.call(this);
|
|
2925
|
-
this.q3s_1 = this.a1z_1;
|
|
2926
|
-
this.r3s_1 = this.a1z_1;
|
|
2927
|
-
}
|
|
2928
|
-
protoOf(Invocation).w2j = function (_this__u8e3s4) {
|
|
2929
|
-
return listOf([_get_R__7mlo3j_0(this), _get_M__7mlnz8(this)]);
|
|
2930
|
-
};
|
|
2931
|
-
protoOf(Invocation).x2j = function (_this__u8e3s4) {
|
|
2932
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2933
|
-
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
2934
|
-
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j_0(this)]);
|
|
2935
|
-
var tmp_0 = _this__u8e3s4.atomOf('!');
|
|
2936
|
-
return _this__u8e3s4.tupleOf([tmp, tmp_0, _this__u8e3s4.structOf('fluent_reduce', [_get_M__7mlnz8(this), _get_R__7mlo3j_0(this)])]);
|
|
2937
|
-
};
|
|
2938
|
-
var Invocation_instance;
|
|
2939
|
-
function Invocation_getInstance() {
|
|
2940
|
-
if (Invocation_instance == null)
|
|
2941
|
-
new Invocation();
|
|
2942
|
-
return Invocation_instance;
|
|
2943
|
-
}
|
|
2944
|
-
function Assignment() {
|
|
2945
|
-
Assignment_instance = this;
|
|
2946
|
-
ColonEquals.call(this);
|
|
2947
|
-
this.v3s_1 = this.a1z_1;
|
|
2948
|
-
this.w3s_1 = this.a1z_1;
|
|
2949
|
-
this.x3s_1 = this.a1z_1;
|
|
2950
|
-
this.y3s_1 = this.a1z_1;
|
|
2951
|
-
}
|
|
2952
|
-
protoOf(Assignment).w2j = function (_this__u8e3s4) {
|
|
2953
|
-
return listOf([_get_C__7mlnqm(this), _get_V__7mlo6z(this)]);
|
|
2954
|
-
};
|
|
2955
|
-
protoOf(Assignment).x2j = function (_this__u8e3s4) {
|
|
2956
|
-
var tmp = _this__u8e3s4.structOf('property_reduce', [_get_C__7mlnqm(this), _get_R__7mlo3j_1(this), _get_P__7mlo1t(this)]);
|
|
2957
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
2958
|
-
var tmp$ret$0 = Assign_getInstance().signature.name;
|
|
2959
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j_1(this), _get_P__7mlo1t(this), _get_V__7mlo6z(this)])]);
|
|
2960
|
-
};
|
|
2961
|
-
var Assignment_instance;
|
|
2962
|
-
function Assignment_getInstance() {
|
|
2963
|
-
if (Assignment_instance == null)
|
|
2964
|
-
new Assignment();
|
|
2965
|
-
return Assignment_instance;
|
|
2966
|
-
}
|
|
2967
|
-
function ColonEquals() {
|
|
2968
|
-
RuleWrapper_init_$Init$(':=', 2, VOID, this);
|
|
2969
|
-
}
|
|
2970
|
-
function R$factory() {
|
|
2971
|
-
return getPropertyCallableRef('R', 1, KProperty1, function (receiver) {
|
|
2972
|
-
return _get_R__7mlo3j(receiver);
|
|
2973
|
-
}, null);
|
|
2974
|
-
}
|
|
2975
|
-
function X$factory() {
|
|
2976
|
-
return getPropertyCallableRef('X', 1, KProperty1, function (receiver) {
|
|
2977
|
-
return _get_X__7mlo8p(receiver);
|
|
2978
|
-
}, null);
|
|
2979
|
-
}
|
|
2980
|
-
function Y$factory() {
|
|
2981
|
-
return getPropertyCallableRef('Y', 1, KProperty1, function (receiver) {
|
|
2982
|
-
return _get_Y__7mlo9k(receiver);
|
|
2983
|
-
}, null);
|
|
2984
|
-
}
|
|
2985
|
-
function T$factory() {
|
|
2986
|
-
return getPropertyCallableRef('T', 1, KProperty1, function (receiver) {
|
|
2987
|
-
return _get_T__7mlo59(receiver);
|
|
2988
|
-
}, null);
|
|
2989
|
-
}
|
|
2990
|
-
function R$factory_0() {
|
|
2991
|
-
return getPropertyCallableRef('R', 1, KProperty1, function (receiver) {
|
|
2992
|
-
return _get_R__7mlo3j_0(receiver);
|
|
2993
|
-
}, null);
|
|
2994
|
-
}
|
|
2995
|
-
function M$factory() {
|
|
2996
|
-
return getPropertyCallableRef('M', 1, KProperty1, function (receiver) {
|
|
2997
|
-
return _get_M__7mlnz8(receiver);
|
|
2998
|
-
}, null);
|
|
2999
|
-
}
|
|
3000
|
-
function C$factory() {
|
|
3001
|
-
return getPropertyCallableRef('C', 1, KProperty1, function (receiver) {
|
|
3002
|
-
return _get_C__7mlnqm(receiver);
|
|
3003
|
-
}, null);
|
|
3004
|
-
}
|
|
3005
|
-
function P$factory() {
|
|
3006
|
-
return getPropertyCallableRef('P', 1, KProperty1, function (receiver) {
|
|
3007
|
-
return _get_P__7mlo1t(receiver);
|
|
3008
|
-
}, null);
|
|
3009
|
-
}
|
|
3010
|
-
function R$factory_1() {
|
|
3011
|
-
return getPropertyCallableRef('R', 1, KProperty1, function (receiver) {
|
|
3012
|
-
return _get_R__7mlo3j_1(receiver);
|
|
3013
|
-
}, null);
|
|
3014
|
-
}
|
|
3015
|
-
function V$factory() {
|
|
3016
|
-
return getPropertyCallableRef('V', 1, KProperty1, function (receiver) {
|
|
3017
|
-
return _get_V__7mlo6z(receiver);
|
|
3018
|
-
}, null);
|
|
3019
|
-
}
|
|
3020
|
-
function _get_Method__a3idyi($this) {
|
|
3021
|
-
return $this.c3t_1.getValue($this, Method$factory());
|
|
3022
|
-
}
|
|
3023
|
-
function _get_Ref__e5vi4e($this) {
|
|
3024
|
-
return $this.d3t_1.getValue($this, Ref$factory());
|
|
3025
|
-
}
|
|
3026
|
-
function Dot() {
|
|
3027
|
-
Dot_instance = this;
|
|
3028
|
-
RuleWrapper_init_$Init$('.', 2, VOID, this);
|
|
3029
|
-
this.c3t_1 = this.a1z_1;
|
|
3030
|
-
this.d3t_1 = this.a1z_1;
|
|
3031
|
-
}
|
|
3032
|
-
protoOf(Dot).w2j = function (_this__u8e3s4) {
|
|
3033
|
-
return listOf([_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)]);
|
|
3034
|
-
};
|
|
3035
|
-
protoOf(Dot).x2j = function (_this__u8e3s4) {
|
|
3036
|
-
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.f12()]);
|
|
3037
|
-
};
|
|
3038
|
-
var Dot_instance;
|
|
3039
|
-
function Dot_getInstance() {
|
|
3040
|
-
if (Dot_instance == null)
|
|
3041
|
-
new Dot();
|
|
3042
|
-
return Dot_instance;
|
|
3043
|
-
}
|
|
3044
|
-
function Method$factory() {
|
|
3045
|
-
return getPropertyCallableRef('Method', 1, KProperty1, function (receiver) {
|
|
3046
|
-
return _get_Method__a3idyi(receiver);
|
|
3047
|
-
}, null);
|
|
3048
|
-
}
|
|
3049
|
-
function Ref$factory() {
|
|
3050
|
-
return getPropertyCallableRef('Ref', 1, KProperty1, function (receiver) {
|
|
3051
|
-
return _get_Ref__e5vi4e(receiver);
|
|
3052
|
-
}, null);
|
|
3053
|
-
}
|
|
3054
|
-
function _get_P__7mlo1t_0($this) {
|
|
3055
|
-
return $this.i3t_1.getValue($this, P$factory_0());
|
|
3056
|
-
}
|
|
3057
|
-
function _get_M__7mlnz8_0($this) {
|
|
3058
|
-
return $this.j3t_1.getValue($this, M$factory_0());
|
|
3059
|
-
}
|
|
3060
|
-
function _get_P1__ndbjd6($this) {
|
|
3061
|
-
return $this.k3t_1.getValue($this, P1$factory());
|
|
3062
|
-
}
|
|
3063
|
-
function _get_X__7mlo8p_0($this) {
|
|
3064
|
-
return $this.l3t_1.getValue($this, X$factory_0());
|
|
3065
|
-
}
|
|
3066
|
-
function _get_P__7mlo1t_1($this) {
|
|
3067
|
-
return $this.q3t_1.getValue($this, P$factory_1());
|
|
3068
|
-
}
|
|
3069
|
-
function _get_M__7mlnz8_1($this) {
|
|
3070
|
-
return $this.r3t_1.getValue($this, M$factory_1());
|
|
3071
|
-
}
|
|
3072
|
-
function Companion_8() {
|
|
3073
|
-
this.s3t_1 = 'fluent_reduce';
|
|
3074
|
-
this.t3t_1 = 2;
|
|
3075
|
-
}
|
|
3076
|
-
var Companion_instance_16;
|
|
3077
|
-
function Companion_getInstance_20() {
|
|
3078
|
-
return Companion_instance_16;
|
|
3079
|
-
}
|
|
3080
|
-
function Recursive() {
|
|
3081
|
-
Recursive_instance = this;
|
|
3082
|
-
FluentReduce.call(this);
|
|
3083
|
-
this.i3t_1 = this.a1z_1;
|
|
3084
|
-
this.j3t_1 = this.a1z_1;
|
|
3085
|
-
this.k3t_1 = this.a1z_1;
|
|
3086
|
-
this.l3t_1 = this.a1z_1;
|
|
3087
|
-
}
|
|
3088
|
-
protoOf(Recursive).w2j = function (_this__u8e3s4) {
|
|
3089
|
-
return listOf([_this__u8e3s4.g12([_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this)], _get_X__7mlo8p_0(this)), this.y3t()]);
|
|
3090
|
-
};
|
|
3091
|
-
protoOf(Recursive).x2j = function (_this__u8e3s4) {
|
|
3092
|
-
var tmp = _this__u8e3s4.atomOf('!');
|
|
3093
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3094
|
-
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3095
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this), _get_P1__ndbjd6(this)]), _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_P1__ndbjd6(this), _get_X__7mlo8p_0(this)), this.y3t()])]);
|
|
3096
|
-
};
|
|
3097
|
-
var Recursive_instance;
|
|
3098
|
-
function Recursive_getInstance() {
|
|
3099
|
-
if (Recursive_instance == null)
|
|
3100
|
-
new Recursive();
|
|
3101
|
-
return Recursive_instance;
|
|
3102
|
-
}
|
|
3103
|
-
function Couple() {
|
|
3104
|
-
Couple_instance = this;
|
|
3105
|
-
FluentReduce.call(this);
|
|
3106
|
-
this.q3t_1 = this.a1z_1;
|
|
3107
|
-
this.r3t_1 = this.a1z_1;
|
|
3108
|
-
}
|
|
3109
|
-
protoOf(Couple).w2j = function (_this__u8e3s4) {
|
|
3110
|
-
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.y3t()]);
|
|
3111
|
-
};
|
|
3112
|
-
protoOf(Couple).x2j = function (_this__u8e3s4) {
|
|
3113
|
-
var tmp = _this__u8e3s4.atomOf('!');
|
|
3114
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3115
|
-
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3116
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.y3t()])]);
|
|
3117
|
-
};
|
|
3118
|
-
var Couple_instance;
|
|
3119
|
-
function Couple_getInstance() {
|
|
3120
|
-
if (Couple_instance == null)
|
|
3121
|
-
new Couple();
|
|
3122
|
-
return Couple_instance;
|
|
3123
|
-
}
|
|
3124
|
-
function Trivial() {
|
|
3125
|
-
Trivial_instance = this;
|
|
3126
|
-
FluentReduce.call(this);
|
|
3127
|
-
}
|
|
3128
|
-
protoOf(Trivial).w2j = function (_this__u8e3s4) {
|
|
3129
|
-
return listOf([this.y3t(), this.y3t()]);
|
|
3130
|
-
};
|
|
3131
|
-
var Trivial_instance;
|
|
3132
|
-
function Trivial_getInstance() {
|
|
3133
|
-
if (Trivial_instance == null)
|
|
3134
|
-
new Trivial();
|
|
3135
|
-
return Trivial_instance;
|
|
3136
|
-
}
|
|
3137
|
-
function FluentReduce() {
|
|
3138
|
-
RuleWrapper_init_$Init$('fluent_reduce', 2, VOID, this);
|
|
3139
|
-
this.x3t_1 = this.a1z_1;
|
|
3140
|
-
}
|
|
3141
|
-
protoOf(FluentReduce).y3t = function () {
|
|
3142
|
-
return this.x3t_1.getValue(this, R$factory_2());
|
|
3143
|
-
};
|
|
3144
|
-
protoOf(FluentReduce).x2j = function (_this__u8e3s4) {
|
|
3145
|
-
return _this__u8e3s4.atomOf('!');
|
|
3146
|
-
};
|
|
3147
|
-
function R$factory_2() {
|
|
3148
|
-
return getPropertyCallableRef('R', 1, KProperty1, function (receiver) {
|
|
3149
|
-
return receiver.y3t();
|
|
3150
|
-
}, null);
|
|
3151
|
-
}
|
|
3152
|
-
function P$factory_0() {
|
|
3153
|
-
return getPropertyCallableRef('P', 1, KProperty1, function (receiver) {
|
|
3154
|
-
return _get_P__7mlo1t_0(receiver);
|
|
3155
|
-
}, null);
|
|
3156
|
-
}
|
|
3157
|
-
function M$factory_0() {
|
|
3158
|
-
return getPropertyCallableRef('M', 1, KProperty1, function (receiver) {
|
|
3159
|
-
return _get_M__7mlnz8_0(receiver);
|
|
3160
|
-
}, null);
|
|
3161
|
-
}
|
|
3162
|
-
function P1$factory() {
|
|
3163
|
-
return getPropertyCallableRef('P1', 1, KProperty1, function (receiver) {
|
|
3164
|
-
return _get_P1__ndbjd6(receiver);
|
|
3165
|
-
}, null);
|
|
3166
|
-
}
|
|
3167
|
-
function X$factory_0() {
|
|
3168
|
-
return getPropertyCallableRef('X', 1, KProperty1, function (receiver) {
|
|
3169
|
-
return _get_X__7mlo8p_0(receiver);
|
|
3170
|
-
}, null);
|
|
3171
|
-
}
|
|
3172
|
-
function P$factory_1() {
|
|
3173
|
-
return getPropertyCallableRef('P', 1, KProperty1, function (receiver) {
|
|
3174
|
-
return _get_P__7mlo1t_1(receiver);
|
|
3175
|
-
}, null);
|
|
3176
|
-
}
|
|
3177
|
-
function M$factory_1() {
|
|
3178
|
-
return getPropertyCallableRef('M', 1, KProperty1, function (receiver) {
|
|
3179
|
-
return _get_M__7mlnz8_1(receiver);
|
|
3180
|
-
}, null);
|
|
3181
|
-
}
|
|
3182
|
-
function _get_Type__cwwv8x($this) {
|
|
3183
|
-
return $this.g3u_1.getValue($this, Type$factory());
|
|
3184
|
-
}
|
|
3185
|
-
function _get_Instance__cwfjuy($this) {
|
|
3186
|
-
return $this.h3u_1.getValue($this, Instance$factory());
|
|
3187
|
-
}
|
|
3188
|
-
function NewObject2() {
|
|
3189
|
-
NewObject2_instance = this;
|
|
3190
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3191
|
-
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3192
|
-
RuleWrapper_init_$Init$(tmp$ret$0, 2, VOID, this);
|
|
3193
|
-
this.g3u_1 = this.a1z_1;
|
|
3194
|
-
this.h3u_1 = this.a1z_1;
|
|
3195
|
-
}
|
|
3196
|
-
protoOf(NewObject2).w2j = function (_this__u8e3s4) {
|
|
3197
|
-
return listOf([_get_Type__cwwv8x(this), _get_Instance__cwfjuy(this)]);
|
|
3198
|
-
};
|
|
3199
|
-
protoOf(NewObject2).x2j = function (_this__u8e3s4) {
|
|
3200
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3201
|
-
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3202
|
-
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.e12(), _get_Instance__cwfjuy(this)]);
|
|
3203
|
-
};
|
|
3204
|
-
var NewObject2_instance;
|
|
3205
|
-
function NewObject2_getInstance() {
|
|
3206
|
-
if (NewObject2_instance == null)
|
|
3207
|
-
new NewObject2();
|
|
3208
|
-
return NewObject2_instance;
|
|
3209
|
-
}
|
|
3210
|
-
function Type$factory() {
|
|
3211
|
-
return getPropertyCallableRef('Type', 1, KProperty1, function (receiver) {
|
|
3212
|
-
return _get_Type__cwwv8x(receiver);
|
|
3213
|
-
}, null);
|
|
3214
|
-
}
|
|
3215
|
-
function Instance$factory() {
|
|
3216
|
-
return getPropertyCallableRef('Instance', 1, KProperty1, function (receiver) {
|
|
3217
|
-
return _get_Instance__cwfjuy(receiver);
|
|
3218
|
-
}, null);
|
|
3219
|
-
}
|
|
3220
|
-
function _get_B1__ndb8zg($this) {
|
|
3221
|
-
return $this.n3u_1.getValue($this, B1$factory());
|
|
3222
|
-
}
|
|
3223
|
-
function _get_C__7mlnqm_0($this) {
|
|
3224
|
-
return $this.o3u_1.getValue($this, C$factory_0());
|
|
3225
|
-
}
|
|
3226
|
-
function _get_O__7mlo0y($this) {
|
|
3227
|
-
return $this.p3u_1.getValue($this, O$factory());
|
|
3228
|
-
}
|
|
3229
|
-
function _get_P__7mlo1t_2($this) {
|
|
3230
|
-
return $this.q3u_1.getValue($this, P$factory_2());
|
|
3231
|
-
}
|
|
3232
|
-
function Companion_9() {
|
|
3233
|
-
this.r3u_1 = 'property_reduce';
|
|
3234
|
-
this.s3u_1 = 3;
|
|
3235
|
-
}
|
|
3236
|
-
var Companion_instance_17;
|
|
3237
|
-
function Companion_getInstance_21() {
|
|
3238
|
-
return Companion_instance_17;
|
|
3239
|
-
}
|
|
3240
|
-
function Recursive_0() {
|
|
3241
|
-
Recursive_instance_0 = this;
|
|
3242
|
-
PropertyReduce.call(this);
|
|
3243
|
-
this.n3u_1 = this.a1z_1;
|
|
3244
|
-
this.o3u_1 = this.a1z_1;
|
|
3245
|
-
this.p3u_1 = this.a1z_1;
|
|
3246
|
-
this.q3u_1 = this.a1z_1;
|
|
3247
|
-
}
|
|
3248
|
-
protoOf(Recursive_0).w2j = function (_this__u8e3s4) {
|
|
3249
|
-
return listOf([_this__u8e3s4.g12([this.y3u(), this.z3u()], _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)]);
|
|
3250
|
-
};
|
|
3251
|
-
protoOf(Recursive_0).x2j = function (_this__u8e3s4) {
|
|
3252
|
-
var tmp = _this__u8e3s4.atomOf('!');
|
|
3253
|
-
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3254
|
-
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3255
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.y3u(), this.z3u(), _get_B1__ndb8zg(this)]), _this__u8e3s4.structOf('property_reduce', [_this__u8e3s4.consOf(_get_B1__ndb8zg(this), _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)])]);
|
|
3256
|
-
};
|
|
3257
|
-
var Recursive_instance_0;
|
|
3258
|
-
function Recursive_getInstance_0() {
|
|
3259
|
-
if (Recursive_instance_0 == null)
|
|
3260
|
-
new Recursive_0();
|
|
3261
|
-
return Recursive_instance_0;
|
|
3262
|
-
}
|
|
3263
|
-
function Base() {
|
|
3264
|
-
Base_instance = this;
|
|
3265
|
-
PropertyReduce.call(this);
|
|
3266
|
-
}
|
|
3267
|
-
protoOf(Base).w2j = function (_this__u8e3s4) {
|
|
3268
|
-
return listOf([_this__u8e3s4.consOf(this.y3u(), this.z3u()), this.y3u(), this.z3u()]);
|
|
3269
|
-
};
|
|
3270
|
-
var Base_instance;
|
|
3271
|
-
function Base_getInstance() {
|
|
3272
|
-
if (Base_instance == null)
|
|
3273
|
-
new Base();
|
|
3274
|
-
return Base_instance;
|
|
3275
|
-
}
|
|
3276
|
-
function PropertyReduce() {
|
|
3277
|
-
RuleWrapper_init_$Init$('property_reduce', 3, VOID, this);
|
|
3278
|
-
this.w3u_1 = this.a1z_1;
|
|
3279
|
-
this.x3u_1 = this.a1z_1;
|
|
3280
|
-
}
|
|
3281
|
-
protoOf(PropertyReduce).y3u = function () {
|
|
3282
|
-
return this.w3u_1.getValue(this, A$factory());
|
|
3283
|
-
};
|
|
3284
|
-
protoOf(PropertyReduce).z3u = function () {
|
|
3285
|
-
return this.x3u_1.getValue(this, B$factory());
|
|
3286
|
-
};
|
|
3287
|
-
protoOf(PropertyReduce).x2j = function (_this__u8e3s4) {
|
|
3288
|
-
return _this__u8e3s4.atomOf('!');
|
|
3289
|
-
};
|
|
3290
|
-
function A$factory() {
|
|
3291
|
-
return getPropertyCallableRef('A', 1, KProperty1, function (receiver) {
|
|
3292
|
-
return receiver.y3u();
|
|
3293
|
-
}, null);
|
|
3294
|
-
}
|
|
3295
|
-
function B$factory() {
|
|
3296
|
-
return getPropertyCallableRef('B', 1, KProperty1, function (receiver) {
|
|
3297
|
-
return receiver.z3u();
|
|
3298
|
-
}, null);
|
|
3299
|
-
}
|
|
3300
|
-
function B1$factory() {
|
|
3301
|
-
return getPropertyCallableRef('B1', 1, KProperty1, function (receiver) {
|
|
3302
|
-
return _get_B1__ndb8zg(receiver);
|
|
3303
|
-
}, null);
|
|
3304
|
-
}
|
|
3305
|
-
function C$factory_0() {
|
|
3306
|
-
return getPropertyCallableRef('C', 1, KProperty1, function (receiver) {
|
|
3307
|
-
return _get_C__7mlnqm_0(receiver);
|
|
3308
|
-
}, null);
|
|
3309
|
-
}
|
|
3310
|
-
function O$factory() {
|
|
3311
|
-
return getPropertyCallableRef('O', 1, KProperty1, function (receiver) {
|
|
3312
|
-
return _get_O__7mlo0y(receiver);
|
|
3313
|
-
}, null);
|
|
3314
|
-
}
|
|
3315
|
-
function P$factory_2() {
|
|
3316
|
-
return getPropertyCallableRef('P', 1, KProperty1, function (receiver) {
|
|
3317
|
-
return _get_P__7mlo1t_2(receiver);
|
|
3318
|
-
}, null);
|
|
3319
|
-
}
|
|
3320
|
-
function get_platformSpecificAliases() {
|
|
3321
|
-
// Inline function 'kotlin.emptyArray' call
|
|
3322
|
-
return [];
|
|
3323
|
-
}
|
|
3324
|
-
function get_TODO_EXCEPTION() {
|
|
3325
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3326
|
-
return TODO_EXCEPTION;
|
|
3327
|
-
}
|
|
3328
|
-
var TODO_EXCEPTION;
|
|
3329
|
-
function get_classNamePattern() {
|
|
3330
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3331
|
-
return classNamePattern;
|
|
3332
|
-
}
|
|
3333
|
-
var classNamePattern;
|
|
3334
|
-
function allSupertypes(_this__u8e3s4, strict) {
|
|
3335
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3336
|
-
throw get_TODO_EXCEPTION();
|
|
3337
|
-
}
|
|
3338
|
-
function get_name(_this__u8e3s4) {
|
|
3339
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3340
|
-
throw get_TODO_EXCEPTION();
|
|
3341
|
-
}
|
|
3342
|
-
function get_fullName(_this__u8e3s4) {
|
|
3343
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3344
|
-
throw get_TODO_EXCEPTION();
|
|
3345
|
-
}
|
|
3346
|
-
function get_identifier(_this__u8e3s4) {
|
|
3347
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3348
|
-
return toString_2(getStringHashCode(get_identifier(_this__u8e3s4)), 16);
|
|
3349
|
-
}
|
|
3350
|
-
function get_companionObjectRef(_this__u8e3s4) {
|
|
3351
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3352
|
-
return Companion_instance.zq();
|
|
3353
|
-
}
|
|
3354
|
-
function kClassFromName(qualifiedName) {
|
|
3355
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3356
|
-
var match = get_CLASS_NAME_PATTERN().t8(qualifiedName);
|
|
3357
|
-
// Inline function 'kotlin.require' call
|
|
3358
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3359
|
-
if (!!(match == null)) {
|
|
3360
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.oop.kClassFromName.<anonymous>' call
|
|
3361
|
-
var message = '`' + qualifiedName + '` should match ' + get_CLASS_NAME_PATTERN().d8_1 + ", while is doesn't";
|
|
3362
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
3363
|
-
}
|
|
3364
|
-
var module_0 = ensureNotNull(match.j9().c1(1)).k9_1;
|
|
3365
|
-
var packageSteps = split(ensureNotNull(match.j9().c1(2)).k9_1, charArrayOf([_Char___init__impl__6a9atx(46)]));
|
|
3366
|
-
var kClass = require(module_0);
|
|
3367
|
-
// Inline function 'kotlin.let' call
|
|
3368
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3369
|
-
var it = packageSteps.r();
|
|
3370
|
-
while ((it.s() ? kClass != null : false) ? kClass != undefined : false) {
|
|
3371
|
-
kClass = kClass[it.u()];
|
|
3372
|
-
}
|
|
3373
|
-
var tmp;
|
|
3374
|
-
if (kClass != null ? kClass != undefined : false) {
|
|
3375
|
-
var tmp_0 = Companion_instance;
|
|
3376
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
3377
|
-
var tmp$ret$2 = kClass;
|
|
3378
|
-
tmp = tmp_0.qt(get_kotlin(tmp$ret$2));
|
|
3379
|
-
} else {
|
|
3380
|
-
tmp = Companion_instance.zq();
|
|
3381
|
-
}
|
|
3382
|
-
return tmp;
|
|
3383
|
-
}
|
|
3384
|
-
function get_setterMethod(_this__u8e3s4) {
|
|
3385
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3386
|
-
throw get_TODO_EXCEPTION();
|
|
3387
|
-
}
|
|
3388
|
-
function catchingPlatformSpecificException(_this__u8e3s4, instance, action) {
|
|
3389
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3390
|
-
return action();
|
|
3391
|
-
}
|
|
3392
|
-
function invoke_2(_this__u8e3s4, instance, args) {
|
|
3393
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3394
|
-
throw get_TODO_EXCEPTION();
|
|
3395
|
-
}
|
|
3396
|
-
function get_formalParameterTypes(_this__u8e3s4) {
|
|
3397
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3398
|
-
throw get_TODO_EXCEPTION();
|
|
3399
|
-
}
|
|
3400
|
-
function get_CLASS_NAME_PATTERN() {
|
|
3401
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3402
|
-
return get_classNamePattern();
|
|
3403
|
-
}
|
|
3404
|
-
function overloadSelector(type, termToObjectConverter) {
|
|
3405
|
-
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3406
|
-
throw get_TODO_EXCEPTION();
|
|
3407
|
-
}
|
|
3408
|
-
var properties_initialized_TypeUtilsJs_kt_h8iecw;
|
|
3409
|
-
function _init_properties_TypeUtilsJs_kt__53l6dq() {
|
|
3410
|
-
if (!properties_initialized_TypeUtilsJs_kt_h8iecw) {
|
|
3411
|
-
properties_initialized_TypeUtilsJs_kt_h8iecw = true;
|
|
3412
|
-
TODO_EXCEPTION = new NotImplementedError('OOP-Prolog integration is still not supported on JS');
|
|
3413
|
-
// Inline function 'kotlin.text.toRegex' call
|
|
3414
|
-
var this_0 = '^(' + get_ID() + '):(' + get_ID() + '(\\.' + get_ID() + ')*)$';
|
|
3415
|
-
classNamePattern = Regex_init_$Create$(this_0);
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
|
-
//region block: post-declaration
|
|
3419
|
-
protoOf(NullRefImpl).x3o = get_object;
|
|
3420
|
-
protoOf(NullRefImpl).y3o = invoke;
|
|
3421
|
-
protoOf(NullRefImpl).z3o = assign;
|
|
3422
|
-
protoOf(TermToObjectConverterImpl).z3p = convert;
|
|
3423
|
-
protoOf(TypeFactoryImpl).c3q = typeRefFromName;
|
|
3424
|
-
protoOf(TypeRefImpl).d3q = create;
|
|
3425
|
-
//endregion
|
|
3426
|
-
//region block: init
|
|
3427
|
-
OOP_instance = new OOP();
|
|
3428
|
-
Companion_instance_9 = new Companion_1();
|
|
3429
|
-
Companion_instance_12 = new Companion_4();
|
|
3430
|
-
ID = '[a-zA-Z_][a-zA-Z0-9_]*';
|
|
3431
|
-
Companion_instance_13 = new Companion_5();
|
|
3432
|
-
Companion_instance_14 = new Companion_6();
|
|
3433
|
-
Companion_instance_15 = new Companion_7();
|
|
3434
|
-
Companion_instance_16 = new Companion_8();
|
|
3435
|
-
Companion_instance_17 = new Companion_9();
|
|
3436
|
-
//endregion
|
|
3437
|
-
//region block: exports
|
|
3438
|
-
_.$_$ = _.$_$ || {};
|
|
3439
|
-
_.$_$.a = OOPLib_getInstance;
|
|
3440
11
|
//endregion
|
|
3441
12
|
return _;
|
|
3442
13
|
}));
|