@tuprolog/2p-full 0.31.5-dev0a → 0.31.5-dev0f
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 +141 -141
- package/2p-core.js +2841 -2841
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +573 -573
- package/2p-oop-lib.js +815 -815
- package/2p-parser-core.js +136 -136
- package/2p-parser-theory.js +11 -11
- package/2p-repl.js +80 -80
- package/2p-solve-classic.js +936 -936
- package/2p-solve-plp.js +1 -1
- package/2p-solve-problog.js +1250 -1250
- package/2p-solve-streams.js +851 -851
- package/2p-solve.js +3409 -3409
- package/2p-theory.js +1258 -1258
- package/2p-unify.js +208 -208
- package/2p-utils.js +324 -324
- package/clikt-clikt-js-ir.js +1143 -1180
- package/clikt-clikt-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +760 -747
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kt-math.js +2184 -2184
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
package/2p-oop-lib.js
CHANGED
|
@@ -163,18 +163,18 @@
|
|
|
163
163
|
setMetadataFor(Value, 'Value', classMeta, Result, undefined, undefined, undefined, []);
|
|
164
164
|
setMetadataFor(Companion_2, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
165
165
|
function convert(term) {
|
|
166
|
-
return this.
|
|
166
|
+
return this.h3q(this.j3q(term), term);
|
|
167
167
|
}
|
|
168
168
|
setMetadataFor(TermToObjectConverter, 'TermToObjectConverter', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
169
169
|
setMetadataFor(Companion_3, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
170
170
|
function typeRefFromName(typeName) {
|
|
171
|
-
var tmp = Companion_getInstance().
|
|
172
|
-
return tmp.
|
|
171
|
+
var tmp = Companion_getInstance().mq(this.m3q(typeName));
|
|
172
|
+
return tmp.et(TypeFactory$typeRefFromName$lambda).b1();
|
|
173
173
|
}
|
|
174
174
|
setMetadataFor(TypeFactory, 'TypeFactory', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
175
175
|
setMetadataFor(Companion_4, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
176
176
|
function create(objectConverter, arguments_0) {
|
|
177
|
-
return this.
|
|
177
|
+
return this.p3q(objectConverter, listOf(arguments_0.slice()));
|
|
178
178
|
}
|
|
179
179
|
setMetadataFor(TypeRef, 'TypeRef', interfaceMeta, undefined, [Ref], undefined, undefined, []);
|
|
180
180
|
setMetadataFor(OopException, 'OopException', classMeta, TuPrologException, undefined, undefined, undefined, []);
|
|
@@ -228,11 +228,11 @@
|
|
|
228
228
|
}
|
|
229
229
|
function OOP() {
|
|
230
230
|
OOP_instance = this;
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
231
|
+
this.l3p_1 = '.';
|
|
232
|
+
this.m3p_1 = ':=';
|
|
233
|
+
this.n3p_1 = '$';
|
|
234
|
+
this.o3p_1 = 'as';
|
|
235
|
+
this.p3p_1 = 'alias';
|
|
236
236
|
}
|
|
237
237
|
var OOP_instance;
|
|
238
238
|
function OOP_getInstance() {
|
|
@@ -244,10 +244,10 @@
|
|
|
244
244
|
OOPLib_instance = this;
|
|
245
245
|
AbstractLibrary.call(this);
|
|
246
246
|
}
|
|
247
|
-
OOPLib.prototype.
|
|
247
|
+
OOPLib.prototype.l2e = function () {
|
|
248
248
|
return 'prolog.oop';
|
|
249
249
|
};
|
|
250
|
-
OOPLib.prototype.
|
|
250
|
+
OOPLib.prototype.k2e = function () {
|
|
251
251
|
var tmp$ret$3;
|
|
252
252
|
// Inline function 'kotlin.collections.map' call
|
|
253
253
|
var tmp0_map = 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()]);
|
|
@@ -256,12 +256,12 @@
|
|
|
256
256
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
257
257
|
var tmp0_iterator = tmp0_map.j();
|
|
258
258
|
while (tmp0_iterator.m()) {
|
|
259
|
-
var item = tmp0_iterator.
|
|
259
|
+
var item = tmp0_iterator.n();
|
|
260
260
|
var tmp$ret$1;
|
|
261
261
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.OOPLib.<get-primitives>.<anonymous>' call
|
|
262
262
|
var tmp$ret$0;
|
|
263
263
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
264
|
-
tmp$ret$0 = to(item.signature, item.
|
|
264
|
+
tmp$ret$0 = to(item.signature, item.g1u());
|
|
265
265
|
tmp$ret$1 = tmp$ret$0;
|
|
266
266
|
tmp0_mapTo.g(tmp$ret$1);
|
|
267
267
|
}
|
|
@@ -269,26 +269,26 @@
|
|
|
269
269
|
tmp$ret$3 = tmp$ret$2;
|
|
270
270
|
return toMap(tmp$ret$3);
|
|
271
271
|
};
|
|
272
|
-
OOPLib.prototype.
|
|
272
|
+
OOPLib.prototype.q1l = function () {
|
|
273
273
|
var tmp$ret$2;
|
|
274
274
|
// Inline function 'kotlin.collections.map' call
|
|
275
|
-
var tmp0_map = 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_getInstance_27().
|
|
275
|
+
var tmp0_map = 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_getInstance_27().s3p('string', PrimitiveClasses_getInstance().ee()), Companion_getInstance_27().s3p('array', PrimitiveClasses_getInstance().de()), Companion_getInstance_27().s3p('list', getKClass(List)), Companion_getInstance_27().s3p('arraylist', getKClass(ArrayList)), Companion_getInstance_27().s3p('map', getKClass(Map)), Companion_getInstance_27().s3p('hashmap', getKClass(LinkedHashMap)), Companion_getInstance_27().s3p('int', PrimitiveClasses_getInstance().ae()), Companion_getInstance_27().s3p('integer', PrimitiveClasses_getInstance().ae()), Companion_getInstance_27().s3p('double', PrimitiveClasses_getInstance().ce()), Companion_getInstance_27().s3p('float', PrimitiveClasses_getInstance().be()), Companion_getInstance_27().s3p('long', getKClass(Long)), Companion_getInstance_27().s3p('short', PrimitiveClasses_getInstance().zd()), Companion_getInstance_27().s3p('byte', PrimitiveClasses_getInstance().yd()), Companion_getInstance_27().s3p('char', getKClass(Char)), Companion_getInstance_27().s3p('bool', PrimitiveClasses_getInstance().xd()), Companion_getInstance_27().s3p('boolean', PrimitiveClasses_getInstance().xd()), Companion_getInstance_27().s3p('any', PrimitiveClasses_getInstance().ud()), Companion_getInstance_27().s3p('nothing', PrimitiveClasses_getInstance().wd()), Companion_getInstance_27().s3p('big_integer', getKClass(BigInteger)), Companion_getInstance_27().s3p('big_decimal', getKClass(BigDecimal))], get_platformSpecificAliases()]));
|
|
276
276
|
var tmp$ret$1;
|
|
277
277
|
// Inline function 'kotlin.collections.mapTo' call
|
|
278
278
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
279
279
|
var tmp0_iterator = tmp0_map.j();
|
|
280
280
|
while (tmp0_iterator.m()) {
|
|
281
|
-
var item = tmp0_iterator.
|
|
281
|
+
var item = tmp0_iterator.n();
|
|
282
282
|
var tmp$ret$0;
|
|
283
283
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.OOPLib.<get-clauses>.<anonymous>' call
|
|
284
|
-
tmp$ret$0 = item.
|
|
284
|
+
tmp$ret$0 = item.g1u();
|
|
285
285
|
tmp0_mapTo.g(tmp$ret$0);
|
|
286
286
|
}
|
|
287
287
|
tmp$ret$1 = tmp0_mapTo;
|
|
288
288
|
tmp$ret$2 = tmp$ret$1;
|
|
289
289
|
return tmp$ret$2;
|
|
290
290
|
};
|
|
291
|
-
OOPLib.prototype.
|
|
291
|
+
OOPLib.prototype.e1v = function () {
|
|
292
292
|
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)]);
|
|
293
293
|
};
|
|
294
294
|
var OOPLib_instance;
|
|
@@ -302,15 +302,15 @@
|
|
|
302
302
|
}
|
|
303
303
|
function Companion() {
|
|
304
304
|
Companion_instance = this;
|
|
305
|
-
this.
|
|
305
|
+
this.t3p_1 = NullRefImpl_getInstance();
|
|
306
306
|
}
|
|
307
|
-
Companion.prototype.
|
|
307
|
+
Companion.prototype.u3p = function (any) {
|
|
308
308
|
var tmp0_subject = any;
|
|
309
309
|
return tmp0_subject == null ? nameOf(this, PrimitiveClasses_getInstance().wd(), 'null') : nameOf(this, getKClassFromExpression(any), get_identifier(any));
|
|
310
310
|
};
|
|
311
|
-
Companion.prototype.
|
|
311
|
+
Companion.prototype.v3p = function (any) {
|
|
312
312
|
var tmp0_subject = any;
|
|
313
|
-
return tmp0_subject == null ? this.
|
|
313
|
+
return tmp0_subject == null ? this.t3p_1 : new ObjectRefImpl(any);
|
|
314
314
|
};
|
|
315
315
|
var Companion_instance;
|
|
316
316
|
function Companion_getInstance_19() {
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
}
|
|
323
323
|
function Companion_0() {
|
|
324
324
|
Companion_instance_0 = this;
|
|
325
|
-
this.
|
|
325
|
+
this.w3p_1 = new ObjectToTermConverterImpl();
|
|
326
326
|
}
|
|
327
327
|
var Companion_instance_0;
|
|
328
328
|
function Companion_getInstance_20() {
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
function Companion_1() {
|
|
334
334
|
Companion_instance_1 = this;
|
|
335
335
|
}
|
|
336
|
-
Companion_1.prototype.
|
|
336
|
+
Companion_1.prototype.x3p = function (type, termToObjectConverter) {
|
|
337
337
|
return overloadSelector(type, termToObjectConverter);
|
|
338
338
|
};
|
|
339
339
|
var Companion_instance_1;
|
|
@@ -348,19 +348,19 @@
|
|
|
348
348
|
var tmp$ret$0;
|
|
349
349
|
// Inline function 'kotlin.getValue' call
|
|
350
350
|
var tmp0_getValue = termValue$factory();
|
|
351
|
-
tmp$ret$0 = $this.
|
|
351
|
+
tmp$ret$0 = $this.z3p_1.b1();
|
|
352
352
|
return tmp$ret$0;
|
|
353
353
|
}
|
|
354
354
|
function _get_objectRef__3zhern($this) {
|
|
355
355
|
var tmp$ret$0;
|
|
356
356
|
// Inline function 'kotlin.getValue' call
|
|
357
357
|
var tmp0_getValue = objectRef$factory();
|
|
358
|
-
tmp$ret$0 = $this.
|
|
358
|
+
tmp$ret$0 = $this.a3q_1.b1();
|
|
359
359
|
return tmp$ret$0;
|
|
360
360
|
}
|
|
361
361
|
function Result$Value$termValue$delegate$lambda(this$0) {
|
|
362
362
|
return function () {
|
|
363
|
-
return Companion_getInstance_20().
|
|
363
|
+
return Companion_getInstance_20().w3p_1.b3q(this$0.y3p_1);
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
function Result$Value$objectRef$delegate$lambda(this$0) {
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
if (isInterface(tmp0_let, ObjectRef)) {
|
|
376
376
|
tmp = tmp0_let;
|
|
377
377
|
} else {
|
|
378
|
-
tmp = Companion_getInstance_19().
|
|
378
|
+
tmp = Companion_getInstance_19().v3p(this$0.y3p_1);
|
|
379
379
|
}
|
|
380
380
|
tmp$ret$0 = tmp;
|
|
381
381
|
tmp$ret$1 = tmp$ret$0;
|
|
@@ -384,26 +384,26 @@
|
|
|
384
384
|
}
|
|
385
385
|
function Value(value) {
|
|
386
386
|
Result.call(this);
|
|
387
|
-
this.
|
|
387
|
+
this.y3p_1 = value;
|
|
388
388
|
var tmp = this;
|
|
389
|
-
tmp.
|
|
389
|
+
tmp.z3p_1 = lazy(Result$Value$termValue$delegate$lambda(this));
|
|
390
390
|
var tmp_0 = this;
|
|
391
|
-
tmp_0.
|
|
391
|
+
tmp_0.a3q_1 = lazy(Result$Value$objectRef$delegate$lambda(this));
|
|
392
392
|
}
|
|
393
|
-
Value.prototype.
|
|
393
|
+
Value.prototype.o1i = function () {
|
|
394
394
|
return _get_termValue__ikgccs(this);
|
|
395
395
|
};
|
|
396
396
|
Value.prototype.toTerm = function () {
|
|
397
|
-
return this.
|
|
397
|
+
return this.o1i();
|
|
398
398
|
};
|
|
399
|
-
Value.prototype.
|
|
399
|
+
Value.prototype.c3q = function () {
|
|
400
400
|
return _get_objectRef__3zhern(this);
|
|
401
401
|
};
|
|
402
402
|
Value.prototype.toString = function () {
|
|
403
|
-
return 'Value(value=' + toString(this.
|
|
403
|
+
return 'Value(value=' + toString(this.y3p_1) + ')';
|
|
404
404
|
};
|
|
405
405
|
Value.prototype.hashCode = function () {
|
|
406
|
-
return this.
|
|
406
|
+
return this.y3p_1 == null ? 0 : hashCode(this.y3p_1);
|
|
407
407
|
};
|
|
408
408
|
Value.prototype.equals = function (other) {
|
|
409
409
|
if (this === other)
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
if (!(other instanceof Value))
|
|
412
412
|
return false;
|
|
413
413
|
var tmp0_other_with_cast = other instanceof Value ? other : THROW_CCE();
|
|
414
|
-
if (!equals(this.
|
|
414
|
+
if (!equals(this.y3p_1, tmp0_other_with_cast.y3p_1))
|
|
415
415
|
return false;
|
|
416
416
|
return true;
|
|
417
417
|
};
|
|
@@ -433,18 +433,18 @@
|
|
|
433
433
|
function Companion_2() {
|
|
434
434
|
Companion_instance_2 = this;
|
|
435
435
|
var tmp = this;
|
|
436
|
-
tmp.
|
|
436
|
+
tmp.d3q_1 = this.e3q(null, null, 3, null);
|
|
437
437
|
}
|
|
438
|
-
Companion_2.prototype.
|
|
438
|
+
Companion_2.prototype.f3q = function (typeFactory, dealiaser) {
|
|
439
439
|
return new TermToObjectConverterImpl(typeFactory, dealiaser);
|
|
440
440
|
};
|
|
441
|
-
Companion_2.prototype.
|
|
441
|
+
Companion_2.prototype.e3q = function (typeFactory, dealiaser, $mask0, $handler) {
|
|
442
442
|
if (!(($mask0 & 1) === 0))
|
|
443
|
-
typeFactory = Companion_getInstance_23().
|
|
443
|
+
typeFactory = Companion_getInstance_23().g3q_1;
|
|
444
444
|
if (!(($mask0 & 2) === 0)) {
|
|
445
445
|
dealiaser = TermToObjectConverter$Companion$of$lambda;
|
|
446
446
|
}
|
|
447
|
-
return this.
|
|
447
|
+
return this.f3q(typeFactory, dealiaser);
|
|
448
448
|
};
|
|
449
449
|
var Companion_instance_2;
|
|
450
450
|
function Companion_getInstance_22() {
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
}
|
|
457
457
|
function Companion_3() {
|
|
458
458
|
Companion_instance_3 = this;
|
|
459
|
-
this.
|
|
459
|
+
this.g3q_1 = new TypeFactoryImpl();
|
|
460
460
|
}
|
|
461
461
|
var Companion_instance_3;
|
|
462
462
|
function Companion_getInstance_23() {
|
|
@@ -465,14 +465,14 @@
|
|
|
465
465
|
return Companion_instance_3;
|
|
466
466
|
}
|
|
467
467
|
function TypeFactory$typeRefFromName$lambda(it) {
|
|
468
|
-
return Companion_getInstance_24().
|
|
468
|
+
return Companion_getInstance_24().l3q(it);
|
|
469
469
|
}
|
|
470
470
|
function TypeFactory() {
|
|
471
471
|
}
|
|
472
472
|
function Companion_4() {
|
|
473
473
|
Companion_instance_4 = this;
|
|
474
474
|
}
|
|
475
|
-
Companion_4.prototype.
|
|
475
|
+
Companion_4.prototype.l3q = function (type) {
|
|
476
476
|
return new TypeRefImpl(type);
|
|
477
477
|
};
|
|
478
478
|
var Companion_instance_4;
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
}
|
|
503
503
|
function create_0(_this__u8e3s4, objectConverter, arguments_0) {
|
|
504
504
|
init_properties_TypeUtils_kt_oih1j7();
|
|
505
|
-
var constructorRef = Companion_getInstance_21().
|
|
505
|
+
var constructorRef = Companion_getInstance_21().x3p(_this__u8e3s4, objectConverter).q3q(arguments_0);
|
|
506
506
|
return callWithPrologArguments$default(constructorRef, objectConverter, arguments_0, null, 4, null);
|
|
507
507
|
}
|
|
508
508
|
function invoke_0(_this__u8e3s4, objectConverter, methodName, arguments_0) {
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
}
|
|
512
512
|
function invoke_1(_this__u8e3s4, objectConverter, methodName, arguments_0, instance) {
|
|
513
513
|
init_properties_TypeUtils_kt_oih1j7();
|
|
514
|
-
var methodRef = Companion_getInstance_21().
|
|
514
|
+
var methodRef = Companion_getInstance_21().x3p(_this__u8e3s4, objectConverter).r3q(methodName, arguments_0);
|
|
515
515
|
return callWithPrologArguments(methodRef, objectConverter, arguments_0, instance);
|
|
516
516
|
}
|
|
517
517
|
function assign_0(_this__u8e3s4, objectConverter, propertyName, value) {
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
}
|
|
521
521
|
function assign_1(_this__u8e3s4, objectConverter, propertyName, value, instance) {
|
|
522
522
|
init_properties_TypeUtils_kt_oih1j7();
|
|
523
|
-
var setterRef = get_setterMethod(Companion_getInstance_21().
|
|
523
|
+
var setterRef = get_setterMethod(Companion_getInstance_21().x3p(_this__u8e3s4, objectConverter).s3q(propertyName, value));
|
|
524
524
|
return callWithPrologArguments(setterRef, objectConverter, listOf_0(value), instance);
|
|
525
525
|
}
|
|
526
526
|
function isSubtypeOf_0(_this__u8e3s4, other, strict) {
|
|
@@ -540,13 +540,13 @@
|
|
|
540
540
|
var index = 0;
|
|
541
541
|
var tmp0_iterator = arguments_0.j();
|
|
542
542
|
while (tmp0_iterator.m()) {
|
|
543
|
-
var item = tmp0_iterator.
|
|
543
|
+
var item = tmp0_iterator.n();
|
|
544
544
|
var tmp$ret$0;
|
|
545
545
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.callWithPrologArguments.<anonymous>' call
|
|
546
546
|
var tmp1 = index;
|
|
547
547
|
index = tmp1 + 1 | 0;
|
|
548
548
|
var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1);
|
|
549
|
-
tmp$ret$0 = converter.
|
|
549
|
+
tmp$ret$0 = converter.h3q(formalArgumentsTypes.o(tmp0__anonymous__q1qw7t), item);
|
|
550
550
|
tmp0_mapIndexedTo.g(tmp$ret$0);
|
|
551
551
|
}
|
|
552
552
|
tmp$ret$1 = tmp0_mapIndexedTo;
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
var tmp0_any = allSupertypes(other, strict);
|
|
570
570
|
var tmp0_iterator = tmp0_any.j();
|
|
571
571
|
while (tmp0_iterator.m()) {
|
|
572
|
-
var element = tmp0_iterator.
|
|
572
|
+
var element = tmp0_iterator.n();
|
|
573
573
|
var tmp$ret$0;
|
|
574
574
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.isSupertypeOf.<anonymous>' call
|
|
575
575
|
tmp$ret$0 = element.equals(_this__u8e3s4);
|
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
// Inline function 'kotlin.contracts.contract' call
|
|
591
591
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.ensureArgumentsListIsOfSize.<anonymous>' call
|
|
592
592
|
// Inline function 'kotlin.require' call
|
|
593
|
-
var tmp0_require = get_formalParameterTypes(_this__u8e3s4).
|
|
593
|
+
var tmp0_require = get_formalParameterTypes(_this__u8e3s4).p() === actualArguments.p();
|
|
594
594
|
// Inline function 'kotlin.contracts.contract' call
|
|
595
595
|
if (!tmp0_require) {
|
|
596
596
|
var tmp$ret$3;
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_also, 10));
|
|
604
604
|
var tmp0_iterator = tmp0_also.j();
|
|
605
605
|
while (tmp0_iterator.m()) {
|
|
606
|
-
var item = tmp0_iterator.
|
|
606
|
+
var item = tmp0_iterator.n();
|
|
607
607
|
var tmp$ret$0;
|
|
608
608
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.ensureArgumentsListIsOfSize.<anonymous>.<anonymous>.<anonymous>' call
|
|
609
609
|
tmp$ret$0 = get_name(item);
|
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
}
|
|
612
612
|
tmp$ret$1 = tmp0_mapTo;
|
|
613
613
|
tmp$ret$2 = tmp$ret$1;
|
|
614
|
-
var tmp_0 = '\n |\n |Error while invoking ' + tmp + ' the expected argument types \n | ' + tmp$ret$2 + ' \n |are not as many as the as the actual parameters (' + tmp0_also.
|
|
614
|
+
var tmp_0 = '\n |\n |Error while invoking ' + tmp + ' the expected argument types \n | ' + tmp$ret$2 + ' \n |are not as many as the as the actual parameters (' + tmp0_also.p() + ' vs. ' + actualArguments.p() + '):\n | ' + actualArguments + '\n |\n ';
|
|
615
615
|
tmp$ret$3 = trimMargin$default(tmp_0, null, 1, null);
|
|
616
616
|
var message = tmp$ret$3;
|
|
617
617
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
@@ -636,13 +636,13 @@
|
|
|
636
636
|
function MalformedAliasException(dealiasingExpression) {
|
|
637
637
|
var tmp = 'This is not a dealiasing expression `' + dealiasingExpression + '` in the form ' + format(get_DEALIASING_TEMPLATE(), Companion_getInstance_0().prettyExpressionsPrettyVariablesDefaultOperators());
|
|
638
638
|
OopException_init_$Init$_0(tmp, null, 2, null, this);
|
|
639
|
-
this.
|
|
639
|
+
this.t3q_1 = dealiasingExpression;
|
|
640
640
|
captureStack(this, MalformedAliasException);
|
|
641
641
|
}
|
|
642
|
-
MalformedAliasException.prototype.
|
|
642
|
+
MalformedAliasException.prototype.u3q = function (context, signature) {
|
|
643
643
|
var tmp = Companion_getInstance_1();
|
|
644
644
|
var tmp_0 = Expected_DEALIASING_EXPRESSION_getInstance();
|
|
645
|
-
var tmp_1 = this.
|
|
645
|
+
var tmp_1 = this.f26();
|
|
646
646
|
var tmp_2 = signature.toIndicator();
|
|
647
647
|
var tmp0_safe_receiver = this.message;
|
|
648
648
|
var tmp_3;
|
|
@@ -687,15 +687,15 @@
|
|
|
687
687
|
}
|
|
688
688
|
return tmp.of(context, tmp_0, tmp_1, 'Error in ' + tmp_2 + ': ' + tmp_3);
|
|
689
689
|
};
|
|
690
|
-
MalformedAliasException.prototype.
|
|
691
|
-
return this.
|
|
690
|
+
MalformedAliasException.prototype.f26 = function () {
|
|
691
|
+
return this.t3q_1;
|
|
692
692
|
};
|
|
693
693
|
function NoSuchAnAliasException(dealiasingExpression) {
|
|
694
694
|
var tmp = 'There exists no reference whose alias is `' + dealiasingExpression.get(0) + '`';
|
|
695
695
|
OopException_init_$Init$_0(tmp, null, 2, null, this);
|
|
696
|
-
this.
|
|
696
|
+
this.v3q_1 = dealiasingExpression;
|
|
697
697
|
// Inline function 'kotlin.require' call
|
|
698
|
-
var tmp0_require = Companion_getInstance_2().matches(this.
|
|
698
|
+
var tmp0_require = Companion_getInstance_2().matches(this.v3q_1, get_DEALIASING_TEMPLATE());
|
|
699
699
|
// Inline function 'kotlin.contracts.contract' call
|
|
700
700
|
// Inline function 'kotlin.require' call
|
|
701
701
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
708
708
|
}
|
|
709
709
|
// Inline function 'kotlin.require' call
|
|
710
|
-
var tmp_0 = this.
|
|
710
|
+
var tmp_0 = this.v3q_1.get(0);
|
|
711
711
|
var tmp1_require = isInterface(tmp_0, Struct);
|
|
712
712
|
// Inline function 'kotlin.contracts.contract' call
|
|
713
713
|
// Inline function 'kotlin.require' call
|
|
@@ -721,15 +721,15 @@
|
|
|
721
721
|
}
|
|
722
722
|
captureStack(this, NoSuchAnAliasException);
|
|
723
723
|
}
|
|
724
|
-
NoSuchAnAliasException.prototype.
|
|
724
|
+
NoSuchAnAliasException.prototype.u3q = function (context, signature) {
|
|
725
725
|
var tmp = Companion_getInstance_3();
|
|
726
726
|
var tmp_0 = ObjectType_OOP_ALIAS_getInstance();
|
|
727
|
-
var tmp_1 = this.
|
|
727
|
+
var tmp_1 = this.f26();
|
|
728
728
|
var tmp0_elvis_lhs = this.message;
|
|
729
729
|
return tmp.of(context, tmp_0, tmp_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
730
730
|
};
|
|
731
|
-
NoSuchAnAliasException.prototype.
|
|
732
|
-
return this.
|
|
731
|
+
NoSuchAnAliasException.prototype.f26 = function () {
|
|
732
|
+
return this.v3q_1;
|
|
733
733
|
};
|
|
734
734
|
function OopException_init_$Init$(message, cause, $this) {
|
|
735
735
|
TuPrologException_init_$Init$(message, cause, $this);
|
|
@@ -784,349 +784,349 @@
|
|
|
784
784
|
var tmp1_elvis_lhs = tmp;
|
|
785
785
|
var tmp_0 = tmp1_elvis_lhs == null ? 'Term `' + term + '` cannot be converted into an object' : tmp1_elvis_lhs;
|
|
786
786
|
OopException_init_$Init$_0(tmp_0, null, 2, null, this);
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
787
|
+
this.w3q_1 = term;
|
|
788
|
+
this.x3q_1 = targetType;
|
|
789
789
|
captureStack(this, TermToObjectConversionException);
|
|
790
790
|
}
|
|
791
|
-
TermToObjectConversionException.prototype.
|
|
792
|
-
return Companion_getInstance_4().
|
|
791
|
+
TermToObjectConversionException.prototype.u3q = function (context, signature) {
|
|
792
|
+
return Companion_getInstance_4().y27(context, signature, Limit_OOP_OBJECT_getInstance(), this);
|
|
793
793
|
};
|
|
794
794
|
function NullRefImpl() {
|
|
795
795
|
NullRefImpl_instance = this;
|
|
796
|
-
this.
|
|
796
|
+
this.y3q_1 = Companion_getInstance_5().of(Companion_getInstance_19().u3p(null));
|
|
797
797
|
}
|
|
798
|
-
NullRefImpl.prototype.
|
|
799
|
-
return this.
|
|
800
|
-
};
|
|
801
|
-
NullRefImpl.prototype.yw = function () {
|
|
802
|
-
return this.b3r_1.yw();
|
|
803
|
-
};
|
|
804
|
-
NullRefImpl.prototype.zv = function () {
|
|
805
|
-
return this.b3r_1.zv();
|
|
798
|
+
NullRefImpl.prototype.dw = function () {
|
|
799
|
+
return this.y3q_1.dw();
|
|
806
800
|
};
|
|
807
|
-
NullRefImpl.prototype.
|
|
808
|
-
return this.
|
|
801
|
+
NullRefImpl.prototype.vw = function () {
|
|
802
|
+
return this.y3q_1.vw();
|
|
809
803
|
};
|
|
810
|
-
NullRefImpl.prototype.
|
|
811
|
-
return this.
|
|
804
|
+
NullRefImpl.prototype.wv = function () {
|
|
805
|
+
return this.y3q_1.wv();
|
|
812
806
|
};
|
|
813
|
-
NullRefImpl.prototype.
|
|
814
|
-
return this.
|
|
807
|
+
NullRefImpl.prototype.cw = function () {
|
|
808
|
+
return this.y3q_1.cw();
|
|
815
809
|
};
|
|
816
|
-
NullRefImpl.prototype.
|
|
817
|
-
return this.
|
|
810
|
+
NullRefImpl.prototype.uw = function () {
|
|
811
|
+
return this.y3q_1.uw();
|
|
818
812
|
};
|
|
819
|
-
NullRefImpl.prototype.
|
|
820
|
-
return this.
|
|
813
|
+
NullRefImpl.prototype.xv = function () {
|
|
814
|
+
return this.y3q_1.xv();
|
|
821
815
|
};
|
|
822
|
-
NullRefImpl.prototype.
|
|
823
|
-
return this.
|
|
816
|
+
NullRefImpl.prototype.qw = function () {
|
|
817
|
+
return this.y3q_1.qw();
|
|
824
818
|
};
|
|
825
|
-
NullRefImpl.prototype.
|
|
826
|
-
return this.
|
|
819
|
+
NullRefImpl.prototype.jw = function () {
|
|
820
|
+
return this.y3q_1.jw();
|
|
827
821
|
};
|
|
828
|
-
NullRefImpl.prototype.
|
|
829
|
-
return this.
|
|
822
|
+
NullRefImpl.prototype.pw = function () {
|
|
823
|
+
return this.y3q_1.pw();
|
|
830
824
|
};
|
|
831
|
-
NullRefImpl.prototype.
|
|
832
|
-
return this.
|
|
825
|
+
NullRefImpl.prototype.lw = function () {
|
|
826
|
+
return this.y3q_1.lw();
|
|
833
827
|
};
|
|
834
|
-
NullRefImpl.prototype.
|
|
835
|
-
return this.
|
|
828
|
+
NullRefImpl.prototype.yv = function () {
|
|
829
|
+
return this.y3q_1.yv();
|
|
836
830
|
};
|
|
837
|
-
NullRefImpl.prototype.
|
|
838
|
-
return this.
|
|
831
|
+
NullRefImpl.prototype.zv = function () {
|
|
832
|
+
return this.y3q_1.zv();
|
|
839
833
|
};
|
|
840
|
-
NullRefImpl.prototype.
|
|
841
|
-
return this.
|
|
834
|
+
NullRefImpl.prototype.mw = function () {
|
|
835
|
+
return this.y3q_1.mw();
|
|
842
836
|
};
|
|
843
|
-
NullRefImpl.prototype.
|
|
844
|
-
return this.
|
|
837
|
+
NullRefImpl.prototype.bw = function () {
|
|
838
|
+
return this.y3q_1.bw();
|
|
845
839
|
};
|
|
846
|
-
NullRefImpl.prototype.
|
|
847
|
-
return this.
|
|
840
|
+
NullRefImpl.prototype.tw = function () {
|
|
841
|
+
return this.y3q_1.tw();
|
|
848
842
|
};
|
|
849
843
|
NullRefImpl.prototype.gx = function () {
|
|
850
|
-
return this.
|
|
844
|
+
return this.y3q_1.gx();
|
|
851
845
|
};
|
|
852
846
|
NullRefImpl.prototype.rw = function () {
|
|
853
|
-
return this.
|
|
847
|
+
return this.y3q_1.rw();
|
|
854
848
|
};
|
|
855
|
-
NullRefImpl.prototype.
|
|
856
|
-
return this.
|
|
849
|
+
NullRefImpl.prototype.dx = function () {
|
|
850
|
+
return this.y3q_1.dx();
|
|
857
851
|
};
|
|
858
|
-
NullRefImpl.prototype.
|
|
859
|
-
return this.
|
|
852
|
+
NullRefImpl.prototype.ow = function () {
|
|
853
|
+
return this.y3q_1.ow();
|
|
860
854
|
};
|
|
861
|
-
NullRefImpl.prototype.
|
|
862
|
-
return this.
|
|
855
|
+
NullRefImpl.prototype.cx = function () {
|
|
856
|
+
return this.y3q_1.cx();
|
|
863
857
|
};
|
|
864
|
-
NullRefImpl.prototype.
|
|
865
|
-
return this.
|
|
858
|
+
NullRefImpl.prototype.ex = function () {
|
|
859
|
+
return this.y3q_1.ex();
|
|
866
860
|
};
|
|
867
|
-
NullRefImpl.prototype.
|
|
868
|
-
return this.
|
|
861
|
+
NullRefImpl.prototype.ax = function () {
|
|
862
|
+
return this.y3q_1.ax();
|
|
869
863
|
};
|
|
870
|
-
NullRefImpl.prototype.
|
|
871
|
-
return this.
|
|
864
|
+
NullRefImpl.prototype.kw = function () {
|
|
865
|
+
return this.y3q_1.kw();
|
|
872
866
|
};
|
|
873
|
-
NullRefImpl.prototype.
|
|
874
|
-
return this.
|
|
867
|
+
NullRefImpl.prototype.iw = function () {
|
|
868
|
+
return this.y3q_1.iw();
|
|
875
869
|
};
|
|
876
|
-
NullRefImpl.prototype.
|
|
877
|
-
return this.
|
|
870
|
+
NullRefImpl.prototype.aw = function () {
|
|
871
|
+
return this.y3q_1.aw();
|
|
878
872
|
};
|
|
879
|
-
NullRefImpl.prototype.
|
|
880
|
-
return this.
|
|
873
|
+
NullRefImpl.prototype.zw = function () {
|
|
874
|
+
return this.y3q_1.zw();
|
|
881
875
|
};
|
|
882
|
-
NullRefImpl.prototype.
|
|
883
|
-
return this.
|
|
876
|
+
NullRefImpl.prototype.nw = function () {
|
|
877
|
+
return this.y3q_1.nw();
|
|
878
|
+
};
|
|
879
|
+
NullRefImpl.prototype.yw = function () {
|
|
880
|
+
return this.y3q_1.yw();
|
|
881
|
+
};
|
|
882
|
+
NullRefImpl.prototype.ht = function () {
|
|
883
|
+
return this.y3q_1.ht();
|
|
884
884
|
};
|
|
885
885
|
NullRefImpl.prototype.b1 = function () {
|
|
886
|
-
return this.
|
|
886
|
+
return this.y3q_1.b1();
|
|
887
887
|
};
|
|
888
|
-
NullRefImpl.prototype.
|
|
889
|
-
return this.
|
|
888
|
+
NullRefImpl.prototype.ew = function () {
|
|
889
|
+
return this.y3q_1.ew();
|
|
890
890
|
};
|
|
891
891
|
NullRefImpl.prototype.addFirst = function (argument) {
|
|
892
|
-
return this.
|
|
892
|
+
return this.y3q_1.addFirst(argument);
|
|
893
893
|
};
|
|
894
894
|
NullRefImpl.prototype.addLast = function (argument) {
|
|
895
|
-
return this.
|
|
895
|
+
return this.y3q_1.addLast(argument);
|
|
896
896
|
};
|
|
897
897
|
NullRefImpl.prototype.append = function (argument) {
|
|
898
|
-
return this.
|
|
898
|
+
return this.y3q_1.append(argument);
|
|
899
899
|
};
|
|
900
|
-
NullRefImpl.prototype.
|
|
901
|
-
return this.
|
|
900
|
+
NullRefImpl.prototype.hw = function () {
|
|
901
|
+
return this.y3q_1.hw();
|
|
902
902
|
};
|
|
903
903
|
NullRefImpl.prototype.asAtom = function () {
|
|
904
|
-
return this.
|
|
904
|
+
return this.hw();
|
|
905
905
|
};
|
|
906
906
|
NullRefImpl.prototype.asBlock = function () {
|
|
907
|
-
return this.
|
|
907
|
+
return this.y3q_1.asBlock();
|
|
908
908
|
};
|
|
909
909
|
NullRefImpl.prototype.asClause = function () {
|
|
910
|
-
return this.
|
|
910
|
+
return this.y3q_1.asClause();
|
|
911
911
|
};
|
|
912
912
|
NullRefImpl.prototype.asCons = function () {
|
|
913
|
-
return this.
|
|
913
|
+
return this.y3q_1.asCons();
|
|
914
914
|
};
|
|
915
915
|
NullRefImpl.prototype.asDirective = function () {
|
|
916
|
-
return this.
|
|
916
|
+
return this.y3q_1.asDirective();
|
|
917
917
|
};
|
|
918
918
|
NullRefImpl.prototype.asEmptyBlock = function () {
|
|
919
|
-
return this.
|
|
919
|
+
return this.y3q_1.asEmptyBlock();
|
|
920
920
|
};
|
|
921
921
|
NullRefImpl.prototype.asEmptyList = function () {
|
|
922
|
-
return this.
|
|
922
|
+
return this.y3q_1.asEmptyList();
|
|
923
923
|
};
|
|
924
924
|
NullRefImpl.prototype.asFact = function () {
|
|
925
|
-
return this.
|
|
925
|
+
return this.y3q_1.asFact();
|
|
926
926
|
};
|
|
927
927
|
NullRefImpl.prototype.asIndicator = function () {
|
|
928
|
-
return this.
|
|
928
|
+
return this.y3q_1.asIndicator();
|
|
929
929
|
};
|
|
930
930
|
NullRefImpl.prototype.asInteger = function () {
|
|
931
|
-
return this.
|
|
931
|
+
return this.y3q_1.asInteger();
|
|
932
932
|
};
|
|
933
933
|
NullRefImpl.prototype.asList = function () {
|
|
934
|
-
return this.
|
|
934
|
+
return this.y3q_1.asList();
|
|
935
935
|
};
|
|
936
936
|
NullRefImpl.prototype.asNumeric = function () {
|
|
937
|
-
return this.
|
|
937
|
+
return this.y3q_1.asNumeric();
|
|
938
938
|
};
|
|
939
939
|
NullRefImpl.prototype.asReal = function () {
|
|
940
|
-
return this.
|
|
940
|
+
return this.y3q_1.asReal();
|
|
941
941
|
};
|
|
942
942
|
NullRefImpl.prototype.asRecursive = function () {
|
|
943
|
-
return this.
|
|
943
|
+
return this.y3q_1.asRecursive();
|
|
944
944
|
};
|
|
945
945
|
NullRefImpl.prototype.asRule = function () {
|
|
946
|
-
return this.
|
|
946
|
+
return this.y3q_1.asRule();
|
|
947
947
|
};
|
|
948
|
-
NullRefImpl.prototype.
|
|
949
|
-
return this.
|
|
948
|
+
NullRefImpl.prototype.sw = function () {
|
|
949
|
+
return this.y3q_1.sw();
|
|
950
950
|
};
|
|
951
951
|
NullRefImpl.prototype.asStruct = function () {
|
|
952
|
-
return this.
|
|
952
|
+
return this.sw();
|
|
953
953
|
};
|
|
954
954
|
NullRefImpl.prototype.asTerm = function () {
|
|
955
|
-
return this.
|
|
955
|
+
return this.y3q_1.asTerm();
|
|
956
956
|
};
|
|
957
957
|
NullRefImpl.prototype.asTruth = function () {
|
|
958
|
-
return this.
|
|
958
|
+
return this.y3q_1.asTruth();
|
|
959
959
|
};
|
|
960
960
|
NullRefImpl.prototype.asTuple = function () {
|
|
961
|
-
return this.
|
|
961
|
+
return this.y3q_1.asTuple();
|
|
962
962
|
};
|
|
963
963
|
NullRefImpl.prototype.asVar = function () {
|
|
964
|
-
return this.
|
|
964
|
+
return this.y3q_1.asVar();
|
|
965
965
|
};
|
|
966
966
|
NullRefImpl.prototype.castToAtom = function () {
|
|
967
|
-
return this.
|
|
967
|
+
return this.y3q_1.castToAtom();
|
|
968
968
|
};
|
|
969
969
|
NullRefImpl.prototype.castToBlock = function () {
|
|
970
|
-
return this.
|
|
970
|
+
return this.y3q_1.castToBlock();
|
|
971
971
|
};
|
|
972
972
|
NullRefImpl.prototype.castToClause = function () {
|
|
973
|
-
return this.
|
|
973
|
+
return this.y3q_1.castToClause();
|
|
974
974
|
};
|
|
975
975
|
NullRefImpl.prototype.castToCons = function () {
|
|
976
|
-
return this.
|
|
976
|
+
return this.y3q_1.castToCons();
|
|
977
977
|
};
|
|
978
978
|
NullRefImpl.prototype.castToConstant = function () {
|
|
979
|
-
return this.
|
|
979
|
+
return this.y3q_1.castToConstant();
|
|
980
980
|
};
|
|
981
981
|
NullRefImpl.prototype.castToDirective = function () {
|
|
982
|
-
return this.
|
|
982
|
+
return this.y3q_1.castToDirective();
|
|
983
983
|
};
|
|
984
984
|
NullRefImpl.prototype.castToEmptyBlock = function () {
|
|
985
|
-
return this.
|
|
985
|
+
return this.y3q_1.castToEmptyBlock();
|
|
986
986
|
};
|
|
987
987
|
NullRefImpl.prototype.castToEmptyList = function () {
|
|
988
|
-
return this.
|
|
988
|
+
return this.y3q_1.castToEmptyList();
|
|
989
989
|
};
|
|
990
990
|
NullRefImpl.prototype.castToFact = function () {
|
|
991
|
-
return this.
|
|
991
|
+
return this.y3q_1.castToFact();
|
|
992
992
|
};
|
|
993
993
|
NullRefImpl.prototype.castToIndicator = function () {
|
|
994
|
-
return this.
|
|
994
|
+
return this.y3q_1.castToIndicator();
|
|
995
995
|
};
|
|
996
996
|
NullRefImpl.prototype.castToInteger = function () {
|
|
997
|
-
return this.
|
|
997
|
+
return this.y3q_1.castToInteger();
|
|
998
998
|
};
|
|
999
999
|
NullRefImpl.prototype.castToList = function () {
|
|
1000
|
-
return this.
|
|
1000
|
+
return this.y3q_1.castToList();
|
|
1001
1001
|
};
|
|
1002
1002
|
NullRefImpl.prototype.castToNumeric = function () {
|
|
1003
|
-
return this.
|
|
1003
|
+
return this.y3q_1.castToNumeric();
|
|
1004
1004
|
};
|
|
1005
1005
|
NullRefImpl.prototype.castToReal = function () {
|
|
1006
|
-
return this.
|
|
1006
|
+
return this.y3q_1.castToReal();
|
|
1007
1007
|
};
|
|
1008
1008
|
NullRefImpl.prototype.castToRecursive = function () {
|
|
1009
|
-
return this.
|
|
1009
|
+
return this.y3q_1.castToRecursive();
|
|
1010
1010
|
};
|
|
1011
1011
|
NullRefImpl.prototype.castToRule = function () {
|
|
1012
|
-
return this.
|
|
1012
|
+
return this.y3q_1.castToRule();
|
|
1013
1013
|
};
|
|
1014
1014
|
NullRefImpl.prototype.castToStruct = function () {
|
|
1015
|
-
return this.
|
|
1015
|
+
return this.y3q_1.castToStruct();
|
|
1016
1016
|
};
|
|
1017
1017
|
NullRefImpl.prototype.castToTerm = function () {
|
|
1018
|
-
return this.
|
|
1018
|
+
return this.y3q_1.castToTerm();
|
|
1019
1019
|
};
|
|
1020
1020
|
NullRefImpl.prototype.castToTruth = function () {
|
|
1021
|
-
return this.
|
|
1021
|
+
return this.y3q_1.castToTruth();
|
|
1022
1022
|
};
|
|
1023
1023
|
NullRefImpl.prototype.castToTuple = function () {
|
|
1024
|
-
return this.
|
|
1024
|
+
return this.y3q_1.castToTuple();
|
|
1025
1025
|
};
|
|
1026
1026
|
NullRefImpl.prototype.castToVar = function () {
|
|
1027
|
-
return this.
|
|
1027
|
+
return this.y3q_1.castToVar();
|
|
1028
1028
|
};
|
|
1029
|
-
NullRefImpl.prototype.
|
|
1030
|
-
return this.
|
|
1029
|
+
NullRefImpl.prototype.xw = function (other) {
|
|
1030
|
+
return this.y3q_1.xw(other);
|
|
1031
1031
|
};
|
|
1032
1032
|
NullRefImpl.prototype.aa = function (other) {
|
|
1033
|
-
return this.
|
|
1033
|
+
return this.xw((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1034
1034
|
};
|
|
1035
1035
|
NullRefImpl.prototype.containsTag = function (name) {
|
|
1036
|
-
return this.
|
|
1036
|
+
return this.y3q_1.containsTag(name);
|
|
1037
1037
|
};
|
|
1038
1038
|
NullRefImpl.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1039
|
-
return this.
|
|
1039
|
+
return this.y3q_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1040
1040
|
};
|
|
1041
1041
|
NullRefImpl.prototype.equals = function (other) {
|
|
1042
|
-
return this.
|
|
1042
|
+
return this.y3q_1.equals(other);
|
|
1043
1043
|
};
|
|
1044
1044
|
NullRefImpl.prototype.get = function (index) {
|
|
1045
|
-
return this.
|
|
1045
|
+
return this.y3q_1.get(index);
|
|
1046
1046
|
};
|
|
1047
1047
|
NullRefImpl.prototype.getArgAt = function (index) {
|
|
1048
|
-
return this.
|
|
1048
|
+
return this.y3q_1.getArgAt(index);
|
|
1049
1049
|
};
|
|
1050
1050
|
NullRefImpl.prototype.getTag = function (name) {
|
|
1051
|
-
return this.
|
|
1051
|
+
return this.y3q_1.getTag(name);
|
|
1052
1052
|
};
|
|
1053
1053
|
NullRefImpl.prototype.hashCode = function () {
|
|
1054
|
-
return this.
|
|
1054
|
+
return this.y3q_1.hashCode();
|
|
1055
1055
|
};
|
|
1056
1056
|
NullRefImpl.prototype.insertAt = function (index, argument) {
|
|
1057
|
-
return this.
|
|
1057
|
+
return this.y3q_1.insertAt(index, argument);
|
|
1058
1058
|
};
|
|
1059
1059
|
NullRefImpl.prototype.resetTags = function (tags) {
|
|
1060
|
-
return this.
|
|
1060
|
+
return this.y3q_1.resetTags(tags);
|
|
1061
1061
|
};
|
|
1062
1062
|
NullRefImpl.prototype.setArgs = function (args) {
|
|
1063
|
-
return this.
|
|
1063
|
+
return this.y3q_1.setArgs(args);
|
|
1064
1064
|
};
|
|
1065
1065
|
NullRefImpl.prototype.setArgsIterable = function (args) {
|
|
1066
|
-
return this.
|
|
1066
|
+
return this.y3q_1.setArgsIterable(args);
|
|
1067
1067
|
};
|
|
1068
1068
|
NullRefImpl.prototype.setArgsSequence = function (args) {
|
|
1069
|
-
return this.
|
|
1069
|
+
return this.y3q_1.setArgsSequence(args);
|
|
1070
1070
|
};
|
|
1071
1071
|
NullRefImpl.prototype.setFunctor = function (functor) {
|
|
1072
|
-
return this.
|
|
1072
|
+
return this.y3q_1.setFunctor(functor);
|
|
1073
1073
|
};
|
|
1074
1074
|
NullRefImpl.prototype.structurallyEquals = function (other) {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.y3q_1.structurallyEquals(other);
|
|
1076
1076
|
};
|
|
1077
1077
|
NullRefImpl.prototype.toString = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.y3q_1.toString();
|
|
1079
1079
|
};
|
|
1080
|
-
NullRefImpl.prototype.
|
|
1080
|
+
NullRefImpl.prototype.bx = function () {
|
|
1081
1081
|
return true;
|
|
1082
1082
|
};
|
|
1083
|
-
NullRefImpl.prototype.
|
|
1083
|
+
NullRefImpl.prototype.fx = function () {
|
|
1084
1084
|
return this;
|
|
1085
1085
|
};
|
|
1086
1086
|
NullRefImpl.prototype.asConstant = function () {
|
|
1087
|
-
return this.
|
|
1087
|
+
return this.fx();
|
|
1088
1088
|
};
|
|
1089
|
-
NullRefImpl.prototype.
|
|
1089
|
+
NullRefImpl.prototype.fw = function () {
|
|
1090
1090
|
return this;
|
|
1091
1091
|
};
|
|
1092
1092
|
NullRefImpl.prototype.freshCopy = function () {
|
|
1093
|
-
return this.
|
|
1093
|
+
return this.fw();
|
|
1094
1094
|
};
|
|
1095
|
-
NullRefImpl.prototype.
|
|
1095
|
+
NullRefImpl.prototype.gw = function (scope) {
|
|
1096
1096
|
return this;
|
|
1097
1097
|
};
|
|
1098
1098
|
NullRefImpl.prototype.freshCopyFromScope = function (scope) {
|
|
1099
|
-
return this.
|
|
1099
|
+
return this.gw(scope);
|
|
1100
1100
|
};
|
|
1101
|
-
NullRefImpl.prototype.
|
|
1101
|
+
NullRefImpl.prototype.ww = function () {
|
|
1102
1102
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1103
1103
|
};
|
|
1104
|
-
NullRefImpl.prototype.
|
|
1105
|
-
return this.
|
|
1104
|
+
NullRefImpl.prototype.nq = function () {
|
|
1105
|
+
return this.ww();
|
|
1106
1106
|
};
|
|
1107
|
-
NullRefImpl.prototype.
|
|
1107
|
+
NullRefImpl.prototype.p16 = function (substitution) {
|
|
1108
1108
|
return this;
|
|
1109
1109
|
};
|
|
1110
1110
|
NullRefImpl.prototype.applySubstitution = function (substitution) {
|
|
1111
|
-
return this.
|
|
1111
|
+
return this.p16(substitution);
|
|
1112
1112
|
};
|
|
1113
|
-
NullRefImpl.prototype.
|
|
1113
|
+
NullRefImpl.prototype.c2p = function (substitution, substitutions) {
|
|
1114
1114
|
return this;
|
|
1115
1115
|
};
|
|
1116
1116
|
NullRefImpl.prototype.apply = function (substitution, substitutions) {
|
|
1117
|
-
return this.
|
|
1117
|
+
return this.c2p(substitution, substitutions);
|
|
1118
1118
|
};
|
|
1119
|
-
NullRefImpl.prototype.
|
|
1119
|
+
NullRefImpl.prototype.b2p = function (substitution, substitutions) {
|
|
1120
1120
|
return this;
|
|
1121
1121
|
};
|
|
1122
1122
|
NullRefImpl.prototype.getSubstituted = function (substitution, substitutions) {
|
|
1123
|
-
return this.
|
|
1123
|
+
return this.b2p(substitution, substitutions);
|
|
1124
1124
|
};
|
|
1125
|
-
NullRefImpl.prototype.
|
|
1125
|
+
NullRefImpl.prototype.v15 = function (visitor) {
|
|
1126
1126
|
return visitor.visitAtom(this);
|
|
1127
1127
|
};
|
|
1128
1128
|
NullRefImpl.prototype.accept = function (visitor) {
|
|
1129
|
-
return this.
|
|
1129
|
+
return this.v15(visitor);
|
|
1130
1130
|
};
|
|
1131
1131
|
var NullRefImpl_instance;
|
|
1132
1132
|
function NullRefImpl_getInstance() {
|
|
@@ -1135,372 +1135,372 @@
|
|
|
1135
1135
|
return NullRefImpl_instance;
|
|
1136
1136
|
}
|
|
1137
1137
|
function ObjectRefImpl(object) {
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1138
|
+
this.z3q_1 = object;
|
|
1139
|
+
this.a3r_1 = Companion_getInstance_5().of(Companion_getInstance_19().u3p(object));
|
|
1140
1140
|
}
|
|
1141
|
-
ObjectRefImpl.prototype.
|
|
1142
|
-
return this.
|
|
1143
|
-
};
|
|
1144
|
-
ObjectRefImpl.prototype.gw = function () {
|
|
1145
|
-
return this.d3r_1.gw();
|
|
1141
|
+
ObjectRefImpl.prototype.i3p = function () {
|
|
1142
|
+
return this.z3q_1;
|
|
1146
1143
|
};
|
|
1147
|
-
ObjectRefImpl.prototype.
|
|
1148
|
-
return this.
|
|
1149
|
-
};
|
|
1150
|
-
ObjectRefImpl.prototype.zv = function () {
|
|
1151
|
-
return this.d3r_1.zv();
|
|
1144
|
+
ObjectRefImpl.prototype.dw = function () {
|
|
1145
|
+
return this.a3r_1.dw();
|
|
1152
1146
|
};
|
|
1153
|
-
ObjectRefImpl.prototype.
|
|
1154
|
-
return this.
|
|
1147
|
+
ObjectRefImpl.prototype.vw = function () {
|
|
1148
|
+
return this.a3r_1.vw();
|
|
1155
1149
|
};
|
|
1156
|
-
ObjectRefImpl.prototype.
|
|
1157
|
-
return this.
|
|
1150
|
+
ObjectRefImpl.prototype.wv = function () {
|
|
1151
|
+
return this.a3r_1.wv();
|
|
1158
1152
|
};
|
|
1159
|
-
ObjectRefImpl.prototype.
|
|
1160
|
-
return this.
|
|
1153
|
+
ObjectRefImpl.prototype.cw = function () {
|
|
1154
|
+
return this.a3r_1.cw();
|
|
1161
1155
|
};
|
|
1162
|
-
ObjectRefImpl.prototype.
|
|
1163
|
-
return this.
|
|
1156
|
+
ObjectRefImpl.prototype.uw = function () {
|
|
1157
|
+
return this.a3r_1.uw();
|
|
1164
1158
|
};
|
|
1165
|
-
ObjectRefImpl.prototype.
|
|
1166
|
-
return this.
|
|
1159
|
+
ObjectRefImpl.prototype.xv = function () {
|
|
1160
|
+
return this.a3r_1.xv();
|
|
1167
1161
|
};
|
|
1168
|
-
ObjectRefImpl.prototype.
|
|
1169
|
-
return this.
|
|
1162
|
+
ObjectRefImpl.prototype.qw = function () {
|
|
1163
|
+
return this.a3r_1.qw();
|
|
1170
1164
|
};
|
|
1171
|
-
ObjectRefImpl.prototype.
|
|
1172
|
-
return this.
|
|
1165
|
+
ObjectRefImpl.prototype.jw = function () {
|
|
1166
|
+
return this.a3r_1.jw();
|
|
1173
1167
|
};
|
|
1174
|
-
ObjectRefImpl.prototype.
|
|
1175
|
-
return this.
|
|
1168
|
+
ObjectRefImpl.prototype.pw = function () {
|
|
1169
|
+
return this.a3r_1.pw();
|
|
1176
1170
|
};
|
|
1177
|
-
ObjectRefImpl.prototype.
|
|
1178
|
-
return this.
|
|
1171
|
+
ObjectRefImpl.prototype.lw = function () {
|
|
1172
|
+
return this.a3r_1.lw();
|
|
1179
1173
|
};
|
|
1180
|
-
ObjectRefImpl.prototype.
|
|
1181
|
-
return this.
|
|
1174
|
+
ObjectRefImpl.prototype.yv = function () {
|
|
1175
|
+
return this.a3r_1.yv();
|
|
1182
1176
|
};
|
|
1183
|
-
ObjectRefImpl.prototype.
|
|
1184
|
-
return this.
|
|
1177
|
+
ObjectRefImpl.prototype.zv = function () {
|
|
1178
|
+
return this.a3r_1.zv();
|
|
1185
1179
|
};
|
|
1186
|
-
ObjectRefImpl.prototype.
|
|
1187
|
-
return this.
|
|
1180
|
+
ObjectRefImpl.prototype.mw = function () {
|
|
1181
|
+
return this.a3r_1.mw();
|
|
1188
1182
|
};
|
|
1189
|
-
ObjectRefImpl.prototype.
|
|
1190
|
-
return this.
|
|
1183
|
+
ObjectRefImpl.prototype.bw = function () {
|
|
1184
|
+
return this.a3r_1.bw();
|
|
1191
1185
|
};
|
|
1192
|
-
ObjectRefImpl.prototype.
|
|
1193
|
-
return this.
|
|
1186
|
+
ObjectRefImpl.prototype.tw = function () {
|
|
1187
|
+
return this.a3r_1.tw();
|
|
1194
1188
|
};
|
|
1195
1189
|
ObjectRefImpl.prototype.gx = function () {
|
|
1196
|
-
return this.
|
|
1190
|
+
return this.a3r_1.gx();
|
|
1197
1191
|
};
|
|
1198
1192
|
ObjectRefImpl.prototype.rw = function () {
|
|
1199
|
-
return this.
|
|
1193
|
+
return this.a3r_1.rw();
|
|
1200
1194
|
};
|
|
1201
|
-
ObjectRefImpl.prototype.
|
|
1202
|
-
return this.
|
|
1195
|
+
ObjectRefImpl.prototype.dx = function () {
|
|
1196
|
+
return this.a3r_1.dx();
|
|
1203
1197
|
};
|
|
1204
|
-
ObjectRefImpl.prototype.
|
|
1205
|
-
return this.
|
|
1198
|
+
ObjectRefImpl.prototype.ow = function () {
|
|
1199
|
+
return this.a3r_1.ow();
|
|
1206
1200
|
};
|
|
1207
|
-
ObjectRefImpl.prototype.
|
|
1208
|
-
return this.
|
|
1201
|
+
ObjectRefImpl.prototype.cx = function () {
|
|
1202
|
+
return this.a3r_1.cx();
|
|
1209
1203
|
};
|
|
1210
|
-
ObjectRefImpl.prototype.
|
|
1211
|
-
return this.
|
|
1204
|
+
ObjectRefImpl.prototype.ex = function () {
|
|
1205
|
+
return this.a3r_1.ex();
|
|
1212
1206
|
};
|
|
1213
|
-
ObjectRefImpl.prototype.
|
|
1214
|
-
return this.
|
|
1207
|
+
ObjectRefImpl.prototype.ax = function () {
|
|
1208
|
+
return this.a3r_1.ax();
|
|
1215
1209
|
};
|
|
1216
|
-
ObjectRefImpl.prototype.
|
|
1217
|
-
return this.
|
|
1210
|
+
ObjectRefImpl.prototype.kw = function () {
|
|
1211
|
+
return this.a3r_1.kw();
|
|
1218
1212
|
};
|
|
1219
|
-
ObjectRefImpl.prototype.
|
|
1220
|
-
return this.
|
|
1213
|
+
ObjectRefImpl.prototype.iw = function () {
|
|
1214
|
+
return this.a3r_1.iw();
|
|
1221
1215
|
};
|
|
1222
|
-
ObjectRefImpl.prototype.
|
|
1223
|
-
return this.
|
|
1216
|
+
ObjectRefImpl.prototype.aw = function () {
|
|
1217
|
+
return this.a3r_1.aw();
|
|
1224
1218
|
};
|
|
1225
|
-
ObjectRefImpl.prototype.
|
|
1226
|
-
return this.
|
|
1219
|
+
ObjectRefImpl.prototype.zw = function () {
|
|
1220
|
+
return this.a3r_1.zw();
|
|
1227
1221
|
};
|
|
1228
|
-
ObjectRefImpl.prototype.
|
|
1229
|
-
return this.
|
|
1222
|
+
ObjectRefImpl.prototype.nw = function () {
|
|
1223
|
+
return this.a3r_1.nw();
|
|
1224
|
+
};
|
|
1225
|
+
ObjectRefImpl.prototype.yw = function () {
|
|
1226
|
+
return this.a3r_1.yw();
|
|
1227
|
+
};
|
|
1228
|
+
ObjectRefImpl.prototype.ht = function () {
|
|
1229
|
+
return this.a3r_1.ht();
|
|
1230
1230
|
};
|
|
1231
1231
|
ObjectRefImpl.prototype.b1 = function () {
|
|
1232
|
-
return this.
|
|
1232
|
+
return this.a3r_1.b1();
|
|
1233
1233
|
};
|
|
1234
|
-
ObjectRefImpl.prototype.
|
|
1235
|
-
return this.
|
|
1234
|
+
ObjectRefImpl.prototype.ew = function () {
|
|
1235
|
+
return this.a3r_1.ew();
|
|
1236
1236
|
};
|
|
1237
1237
|
ObjectRefImpl.prototype.addFirst = function (argument) {
|
|
1238
|
-
return this.
|
|
1238
|
+
return this.a3r_1.addFirst(argument);
|
|
1239
1239
|
};
|
|
1240
1240
|
ObjectRefImpl.prototype.addLast = function (argument) {
|
|
1241
|
-
return this.
|
|
1241
|
+
return this.a3r_1.addLast(argument);
|
|
1242
1242
|
};
|
|
1243
1243
|
ObjectRefImpl.prototype.append = function (argument) {
|
|
1244
|
-
return this.
|
|
1244
|
+
return this.a3r_1.append(argument);
|
|
1245
1245
|
};
|
|
1246
|
-
ObjectRefImpl.prototype.
|
|
1247
|
-
return this.
|
|
1246
|
+
ObjectRefImpl.prototype.hw = function () {
|
|
1247
|
+
return this.a3r_1.hw();
|
|
1248
1248
|
};
|
|
1249
1249
|
ObjectRefImpl.prototype.asAtom = function () {
|
|
1250
|
-
return this.
|
|
1250
|
+
return this.hw();
|
|
1251
1251
|
};
|
|
1252
1252
|
ObjectRefImpl.prototype.asBlock = function () {
|
|
1253
|
-
return this.
|
|
1253
|
+
return this.a3r_1.asBlock();
|
|
1254
1254
|
};
|
|
1255
1255
|
ObjectRefImpl.prototype.asClause = function () {
|
|
1256
|
-
return this.
|
|
1256
|
+
return this.a3r_1.asClause();
|
|
1257
1257
|
};
|
|
1258
1258
|
ObjectRefImpl.prototype.asCons = function () {
|
|
1259
|
-
return this.
|
|
1259
|
+
return this.a3r_1.asCons();
|
|
1260
1260
|
};
|
|
1261
1261
|
ObjectRefImpl.prototype.asDirective = function () {
|
|
1262
|
-
return this.
|
|
1262
|
+
return this.a3r_1.asDirective();
|
|
1263
1263
|
};
|
|
1264
1264
|
ObjectRefImpl.prototype.asEmptyBlock = function () {
|
|
1265
|
-
return this.
|
|
1265
|
+
return this.a3r_1.asEmptyBlock();
|
|
1266
1266
|
};
|
|
1267
1267
|
ObjectRefImpl.prototype.asEmptyList = function () {
|
|
1268
|
-
return this.
|
|
1268
|
+
return this.a3r_1.asEmptyList();
|
|
1269
1269
|
};
|
|
1270
1270
|
ObjectRefImpl.prototype.asFact = function () {
|
|
1271
|
-
return this.
|
|
1271
|
+
return this.a3r_1.asFact();
|
|
1272
1272
|
};
|
|
1273
1273
|
ObjectRefImpl.prototype.asIndicator = function () {
|
|
1274
|
-
return this.
|
|
1274
|
+
return this.a3r_1.asIndicator();
|
|
1275
1275
|
};
|
|
1276
1276
|
ObjectRefImpl.prototype.asInteger = function () {
|
|
1277
|
-
return this.
|
|
1277
|
+
return this.a3r_1.asInteger();
|
|
1278
1278
|
};
|
|
1279
1279
|
ObjectRefImpl.prototype.asList = function () {
|
|
1280
|
-
return this.
|
|
1280
|
+
return this.a3r_1.asList();
|
|
1281
1281
|
};
|
|
1282
1282
|
ObjectRefImpl.prototype.asNumeric = function () {
|
|
1283
|
-
return this.
|
|
1283
|
+
return this.a3r_1.asNumeric();
|
|
1284
1284
|
};
|
|
1285
1285
|
ObjectRefImpl.prototype.asReal = function () {
|
|
1286
|
-
return this.
|
|
1286
|
+
return this.a3r_1.asReal();
|
|
1287
1287
|
};
|
|
1288
1288
|
ObjectRefImpl.prototype.asRecursive = function () {
|
|
1289
|
-
return this.
|
|
1289
|
+
return this.a3r_1.asRecursive();
|
|
1290
1290
|
};
|
|
1291
1291
|
ObjectRefImpl.prototype.asRule = function () {
|
|
1292
|
-
return this.
|
|
1292
|
+
return this.a3r_1.asRule();
|
|
1293
1293
|
};
|
|
1294
|
-
ObjectRefImpl.prototype.
|
|
1295
|
-
return this.
|
|
1294
|
+
ObjectRefImpl.prototype.sw = function () {
|
|
1295
|
+
return this.a3r_1.sw();
|
|
1296
1296
|
};
|
|
1297
1297
|
ObjectRefImpl.prototype.asStruct = function () {
|
|
1298
|
-
return this.
|
|
1298
|
+
return this.sw();
|
|
1299
1299
|
};
|
|
1300
1300
|
ObjectRefImpl.prototype.asTerm = function () {
|
|
1301
|
-
return this.
|
|
1301
|
+
return this.a3r_1.asTerm();
|
|
1302
1302
|
};
|
|
1303
1303
|
ObjectRefImpl.prototype.asTruth = function () {
|
|
1304
|
-
return this.
|
|
1304
|
+
return this.a3r_1.asTruth();
|
|
1305
1305
|
};
|
|
1306
1306
|
ObjectRefImpl.prototype.asTuple = function () {
|
|
1307
|
-
return this.
|
|
1307
|
+
return this.a3r_1.asTuple();
|
|
1308
1308
|
};
|
|
1309
1309
|
ObjectRefImpl.prototype.asVar = function () {
|
|
1310
|
-
return this.
|
|
1310
|
+
return this.a3r_1.asVar();
|
|
1311
1311
|
};
|
|
1312
1312
|
ObjectRefImpl.prototype.castToAtom = function () {
|
|
1313
|
-
return this.
|
|
1313
|
+
return this.a3r_1.castToAtom();
|
|
1314
1314
|
};
|
|
1315
1315
|
ObjectRefImpl.prototype.castToBlock = function () {
|
|
1316
|
-
return this.
|
|
1316
|
+
return this.a3r_1.castToBlock();
|
|
1317
1317
|
};
|
|
1318
1318
|
ObjectRefImpl.prototype.castToClause = function () {
|
|
1319
|
-
return this.
|
|
1319
|
+
return this.a3r_1.castToClause();
|
|
1320
1320
|
};
|
|
1321
1321
|
ObjectRefImpl.prototype.castToCons = function () {
|
|
1322
|
-
return this.
|
|
1322
|
+
return this.a3r_1.castToCons();
|
|
1323
1323
|
};
|
|
1324
1324
|
ObjectRefImpl.prototype.castToConstant = function () {
|
|
1325
|
-
return this.
|
|
1325
|
+
return this.a3r_1.castToConstant();
|
|
1326
1326
|
};
|
|
1327
1327
|
ObjectRefImpl.prototype.castToDirective = function () {
|
|
1328
|
-
return this.
|
|
1328
|
+
return this.a3r_1.castToDirective();
|
|
1329
1329
|
};
|
|
1330
1330
|
ObjectRefImpl.prototype.castToEmptyBlock = function () {
|
|
1331
|
-
return this.
|
|
1331
|
+
return this.a3r_1.castToEmptyBlock();
|
|
1332
1332
|
};
|
|
1333
1333
|
ObjectRefImpl.prototype.castToEmptyList = function () {
|
|
1334
|
-
return this.
|
|
1334
|
+
return this.a3r_1.castToEmptyList();
|
|
1335
1335
|
};
|
|
1336
1336
|
ObjectRefImpl.prototype.castToFact = function () {
|
|
1337
|
-
return this.
|
|
1337
|
+
return this.a3r_1.castToFact();
|
|
1338
1338
|
};
|
|
1339
1339
|
ObjectRefImpl.prototype.castToIndicator = function () {
|
|
1340
|
-
return this.
|
|
1340
|
+
return this.a3r_1.castToIndicator();
|
|
1341
1341
|
};
|
|
1342
1342
|
ObjectRefImpl.prototype.castToInteger = function () {
|
|
1343
|
-
return this.
|
|
1343
|
+
return this.a3r_1.castToInteger();
|
|
1344
1344
|
};
|
|
1345
1345
|
ObjectRefImpl.prototype.castToList = function () {
|
|
1346
|
-
return this.
|
|
1346
|
+
return this.a3r_1.castToList();
|
|
1347
1347
|
};
|
|
1348
1348
|
ObjectRefImpl.prototype.castToNumeric = function () {
|
|
1349
|
-
return this.
|
|
1349
|
+
return this.a3r_1.castToNumeric();
|
|
1350
1350
|
};
|
|
1351
1351
|
ObjectRefImpl.prototype.castToReal = function () {
|
|
1352
|
-
return this.
|
|
1352
|
+
return this.a3r_1.castToReal();
|
|
1353
1353
|
};
|
|
1354
1354
|
ObjectRefImpl.prototype.castToRecursive = function () {
|
|
1355
|
-
return this.
|
|
1355
|
+
return this.a3r_1.castToRecursive();
|
|
1356
1356
|
};
|
|
1357
1357
|
ObjectRefImpl.prototype.castToRule = function () {
|
|
1358
|
-
return this.
|
|
1358
|
+
return this.a3r_1.castToRule();
|
|
1359
1359
|
};
|
|
1360
1360
|
ObjectRefImpl.prototype.castToStruct = function () {
|
|
1361
|
-
return this.
|
|
1361
|
+
return this.a3r_1.castToStruct();
|
|
1362
1362
|
};
|
|
1363
1363
|
ObjectRefImpl.prototype.castToTerm = function () {
|
|
1364
|
-
return this.
|
|
1364
|
+
return this.a3r_1.castToTerm();
|
|
1365
1365
|
};
|
|
1366
1366
|
ObjectRefImpl.prototype.castToTruth = function () {
|
|
1367
|
-
return this.
|
|
1367
|
+
return this.a3r_1.castToTruth();
|
|
1368
1368
|
};
|
|
1369
1369
|
ObjectRefImpl.prototype.castToTuple = function () {
|
|
1370
|
-
return this.
|
|
1370
|
+
return this.a3r_1.castToTuple();
|
|
1371
1371
|
};
|
|
1372
1372
|
ObjectRefImpl.prototype.castToVar = function () {
|
|
1373
|
-
return this.
|
|
1373
|
+
return this.a3r_1.castToVar();
|
|
1374
1374
|
};
|
|
1375
|
-
ObjectRefImpl.prototype.
|
|
1376
|
-
return this.
|
|
1375
|
+
ObjectRefImpl.prototype.xw = function (other) {
|
|
1376
|
+
return this.a3r_1.xw(other);
|
|
1377
1377
|
};
|
|
1378
1378
|
ObjectRefImpl.prototype.aa = function (other) {
|
|
1379
|
-
return this.
|
|
1379
|
+
return this.xw((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1380
1380
|
};
|
|
1381
1381
|
ObjectRefImpl.prototype.containsTag = function (name) {
|
|
1382
|
-
return this.
|
|
1382
|
+
return this.a3r_1.containsTag(name);
|
|
1383
1383
|
};
|
|
1384
1384
|
ObjectRefImpl.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1385
|
-
return this.
|
|
1385
|
+
return this.a3r_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1386
1386
|
};
|
|
1387
1387
|
ObjectRefImpl.prototype.equals = function (other) {
|
|
1388
|
-
return this.
|
|
1388
|
+
return this.a3r_1.equals(other);
|
|
1389
1389
|
};
|
|
1390
1390
|
ObjectRefImpl.prototype.get = function (index) {
|
|
1391
|
-
return this.
|
|
1391
|
+
return this.a3r_1.get(index);
|
|
1392
1392
|
};
|
|
1393
1393
|
ObjectRefImpl.prototype.getArgAt = function (index) {
|
|
1394
|
-
return this.
|
|
1394
|
+
return this.a3r_1.getArgAt(index);
|
|
1395
1395
|
};
|
|
1396
1396
|
ObjectRefImpl.prototype.getTag = function (name) {
|
|
1397
|
-
return this.
|
|
1397
|
+
return this.a3r_1.getTag(name);
|
|
1398
1398
|
};
|
|
1399
1399
|
ObjectRefImpl.prototype.hashCode = function () {
|
|
1400
|
-
return this.
|
|
1400
|
+
return this.a3r_1.hashCode();
|
|
1401
1401
|
};
|
|
1402
1402
|
ObjectRefImpl.prototype.insertAt = function (index, argument) {
|
|
1403
|
-
return this.
|
|
1403
|
+
return this.a3r_1.insertAt(index, argument);
|
|
1404
1404
|
};
|
|
1405
1405
|
ObjectRefImpl.prototype.resetTags = function (tags) {
|
|
1406
|
-
return this.
|
|
1406
|
+
return this.a3r_1.resetTags(tags);
|
|
1407
1407
|
};
|
|
1408
1408
|
ObjectRefImpl.prototype.setArgs = function (args) {
|
|
1409
|
-
return this.
|
|
1409
|
+
return this.a3r_1.setArgs(args);
|
|
1410
1410
|
};
|
|
1411
1411
|
ObjectRefImpl.prototype.setArgsIterable = function (args) {
|
|
1412
|
-
return this.
|
|
1412
|
+
return this.a3r_1.setArgsIterable(args);
|
|
1413
1413
|
};
|
|
1414
1414
|
ObjectRefImpl.prototype.setArgsSequence = function (args) {
|
|
1415
|
-
return this.
|
|
1415
|
+
return this.a3r_1.setArgsSequence(args);
|
|
1416
1416
|
};
|
|
1417
1417
|
ObjectRefImpl.prototype.setFunctor = function (functor) {
|
|
1418
|
-
return this.
|
|
1418
|
+
return this.a3r_1.setFunctor(functor);
|
|
1419
1419
|
};
|
|
1420
1420
|
ObjectRefImpl.prototype.structurallyEquals = function (other) {
|
|
1421
|
-
return this.
|
|
1421
|
+
return this.a3r_1.structurallyEquals(other);
|
|
1422
1422
|
};
|
|
1423
1423
|
ObjectRefImpl.prototype.toString = function () {
|
|
1424
|
-
return this.
|
|
1424
|
+
return this.a3r_1.toString();
|
|
1425
1425
|
};
|
|
1426
|
-
ObjectRefImpl.prototype.
|
|
1426
|
+
ObjectRefImpl.prototype.bx = function () {
|
|
1427
1427
|
return true;
|
|
1428
1428
|
};
|
|
1429
|
-
ObjectRefImpl.prototype.
|
|
1429
|
+
ObjectRefImpl.prototype.fx = function () {
|
|
1430
1430
|
return this;
|
|
1431
1431
|
};
|
|
1432
1432
|
ObjectRefImpl.prototype.asConstant = function () {
|
|
1433
|
-
return this.
|
|
1433
|
+
return this.fx();
|
|
1434
1434
|
};
|
|
1435
|
-
ObjectRefImpl.prototype.
|
|
1436
|
-
return invoke_0(this.
|
|
1435
|
+
ObjectRefImpl.prototype.j3p = function (objectConverter, methodName, arguments_0) {
|
|
1436
|
+
return invoke_0(this.z3q_1, objectConverter, methodName, arguments_0);
|
|
1437
1437
|
};
|
|
1438
|
-
ObjectRefImpl.prototype.
|
|
1439
|
-
assign_0(this.
|
|
1438
|
+
ObjectRefImpl.prototype.k3p = function (objectConverter, propertyName, value) {
|
|
1439
|
+
assign_0(this.z3q_1, objectConverter, propertyName, value);
|
|
1440
1440
|
return true;
|
|
1441
1441
|
};
|
|
1442
|
-
ObjectRefImpl.prototype.
|
|
1442
|
+
ObjectRefImpl.prototype.fw = function () {
|
|
1443
1443
|
return this;
|
|
1444
1444
|
};
|
|
1445
1445
|
ObjectRefImpl.prototype.freshCopy = function () {
|
|
1446
|
-
return this.
|
|
1446
|
+
return this.fw();
|
|
1447
1447
|
};
|
|
1448
|
-
ObjectRefImpl.prototype.
|
|
1448
|
+
ObjectRefImpl.prototype.gw = function (scope) {
|
|
1449
1449
|
return this;
|
|
1450
1450
|
};
|
|
1451
1451
|
ObjectRefImpl.prototype.freshCopyFromScope = function (scope) {
|
|
1452
|
-
return this.
|
|
1452
|
+
return this.gw(scope);
|
|
1453
1453
|
};
|
|
1454
|
-
ObjectRefImpl.prototype.
|
|
1454
|
+
ObjectRefImpl.prototype.ww = function () {
|
|
1455
1455
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1456
1456
|
};
|
|
1457
|
-
ObjectRefImpl.prototype.
|
|
1458
|
-
return this.
|
|
1457
|
+
ObjectRefImpl.prototype.nq = function () {
|
|
1458
|
+
return this.ww();
|
|
1459
1459
|
};
|
|
1460
|
-
ObjectRefImpl.prototype.
|
|
1460
|
+
ObjectRefImpl.prototype.p16 = function (substitution) {
|
|
1461
1461
|
return this;
|
|
1462
1462
|
};
|
|
1463
1463
|
ObjectRefImpl.prototype.applySubstitution = function (substitution) {
|
|
1464
|
-
return this.
|
|
1464
|
+
return this.p16(substitution);
|
|
1465
1465
|
};
|
|
1466
|
-
ObjectRefImpl.prototype.
|
|
1466
|
+
ObjectRefImpl.prototype.c2p = function (substitution, substitutions) {
|
|
1467
1467
|
return this;
|
|
1468
1468
|
};
|
|
1469
1469
|
ObjectRefImpl.prototype.apply = function (substitution, substitutions) {
|
|
1470
|
-
return this.
|
|
1470
|
+
return this.c2p(substitution, substitutions);
|
|
1471
1471
|
};
|
|
1472
|
-
ObjectRefImpl.prototype.
|
|
1472
|
+
ObjectRefImpl.prototype.b2p = function (substitution, substitutions) {
|
|
1473
1473
|
return this;
|
|
1474
1474
|
};
|
|
1475
1475
|
ObjectRefImpl.prototype.getSubstituted = function (substitution, substitutions) {
|
|
1476
|
-
return this.
|
|
1476
|
+
return this.b2p(substitution, substitutions);
|
|
1477
1477
|
};
|
|
1478
|
-
ObjectRefImpl.prototype.
|
|
1478
|
+
ObjectRefImpl.prototype.v15 = function (visitor) {
|
|
1479
1479
|
return visitor.visitAtom(this);
|
|
1480
1480
|
};
|
|
1481
1481
|
ObjectRefImpl.prototype.accept = function (visitor) {
|
|
1482
|
-
return this.
|
|
1482
|
+
return this.v15(visitor);
|
|
1483
1483
|
};
|
|
1484
1484
|
function ObjectToTermConverterImpl() {
|
|
1485
|
-
this.
|
|
1485
|
+
this.b3r_1 = new NumberTypeTester();
|
|
1486
1486
|
}
|
|
1487
|
-
ObjectToTermConverterImpl.prototype.
|
|
1487
|
+
ObjectToTermConverterImpl.prototype.b3q = function (source) {
|
|
1488
1488
|
var tmp$ret$2;
|
|
1489
1489
|
// Inline function 'kotlin.with' call
|
|
1490
|
-
var tmp0_with = this.
|
|
1490
|
+
var tmp0_with = this.b3r_1;
|
|
1491
1491
|
// Inline function 'kotlin.contracts.contract' call
|
|
1492
1492
|
var tmp$ret$1;
|
|
1493
1493
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.impl.ObjectToTermConverterImpl.convert.<anonymous>' call
|
|
1494
1494
|
var tmp0_subject = source;
|
|
1495
1495
|
var tmp;
|
|
1496
1496
|
if (tmp0_subject == null) {
|
|
1497
|
-
tmp = Companion_getInstance_19().
|
|
1497
|
+
tmp = Companion_getInstance_19().t3p_1;
|
|
1498
1498
|
} else {
|
|
1499
1499
|
if (!(tmp0_subject == null) ? typeof tmp0_subject === 'string' : false) {
|
|
1500
1500
|
tmp = Companion_getInstance_5().of(source);
|
|
1501
1501
|
} else {
|
|
1502
1502
|
if (isNumber(tmp0_subject)) {
|
|
1503
|
-
tmp = tmp0_with.
|
|
1503
|
+
tmp = tmp0_with.zs(source) ? Companion_getInstance_8().ofBigInteger(tmp0_with.at(source)) : Companion_getInstance_7().ofBigDecimal(tmp0_with.bt(source));
|
|
1504
1504
|
} else {
|
|
1505
1505
|
if (tmp0_subject instanceof Char) {
|
|
1506
1506
|
var tmp_0 = Companion_getInstance_5();
|
|
@@ -1513,7 +1513,7 @@
|
|
|
1513
1513
|
if (!(tmp0_subject == null) ? typeof tmp0_subject === 'boolean' : false) {
|
|
1514
1514
|
tmp = Companion_getInstance_6().of(source);
|
|
1515
1515
|
} else {
|
|
1516
|
-
tmp = Companion_getInstance_19().
|
|
1516
|
+
tmp = Companion_getInstance_19().v3p(source);
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
function explicitConversion($this, castExpression, term, type) {
|
|
1527
1527
|
var targetType = getType($this, castExpression, type);
|
|
1528
1528
|
try {
|
|
1529
|
-
return $this.
|
|
1529
|
+
return $this.h3q(targetType, term);
|
|
1530
1530
|
} catch ($p) {
|
|
1531
1531
|
if ($p instanceof TermToObjectConversionException) {
|
|
1532
1532
|
throw $p;
|
|
@@ -1543,10 +1543,10 @@
|
|
|
1543
1543
|
var tmp0_subject = typeTerm;
|
|
1544
1544
|
var tmp;
|
|
1545
1545
|
if (isInterface(tmp0_subject, TypeRef)) {
|
|
1546
|
-
tmp = typeTerm.
|
|
1546
|
+
tmp = typeTerm.h25();
|
|
1547
1547
|
} else {
|
|
1548
1548
|
if (isInterface(tmp0_subject, Atom)) {
|
|
1549
|
-
var tmp1_elvis_lhs = $this.
|
|
1549
|
+
var tmp1_elvis_lhs = $this.c3r_1.m3q(typeTerm.b1());
|
|
1550
1550
|
var tmp_0;
|
|
1551
1551
|
if (tmp1_elvis_lhs == null) {
|
|
1552
1552
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
@@ -1558,10 +1558,10 @@
|
|
|
1558
1558
|
if (isInterface(tmp0_subject, Struct)) {
|
|
1559
1559
|
var tmp_1;
|
|
1560
1560
|
if (Companion_getInstance_2().matches(typeTerm, get_DEALIASING_TEMPLATE())) {
|
|
1561
|
-
var ref = $this.
|
|
1561
|
+
var ref = $this.d3r_1(typeTerm);
|
|
1562
1562
|
var tmp_2;
|
|
1563
1563
|
if (!(ref == null) ? isInterface(ref, TypeRef) : false) {
|
|
1564
|
-
tmp_2 = ref.
|
|
1564
|
+
tmp_2 = ref.h25();
|
|
1565
1565
|
} else {
|
|
1566
1566
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1567
1567
|
}
|
|
@@ -1590,7 +1590,7 @@
|
|
|
1590
1590
|
tmp = sequenceOf([PrimitiveClasses_getInstance().wd()]);
|
|
1591
1591
|
} else {
|
|
1592
1592
|
if (isInterface(tmp0_subject, ObjectRef)) {
|
|
1593
|
-
tmp = sequenceOf([getKClassFromExpression(term.
|
|
1593
|
+
tmp = sequenceOf([getKClassFromExpression(term.i3p())]);
|
|
1594
1594
|
} else {
|
|
1595
1595
|
if (isInterface(tmp0_subject, Truth)) {
|
|
1596
1596
|
tmp = sequenceOf([PrimitiveClasses_getInstance().xd(), PrimitiveClasses_getInstance().ee()]);
|
|
@@ -1612,36 +1612,36 @@
|
|
|
1612
1612
|
var tmp_2 = tmp_1.ofLong(new Long(0, -2147483648));
|
|
1613
1613
|
var tmp_3 = Companion_getInstance_9();
|
|
1614
1614
|
Companion_getInstance_10();
|
|
1615
|
-
if (tmp_2.rangeTo(tmp_3.ofLong(new Long(-1, 2147483647))).l3(term.
|
|
1615
|
+
if (tmp_2.rangeTo(tmp_3.ofLong(new Long(-1, 2147483647))).l3(term.m10())) {
|
|
1616
1616
|
admissible_0 = plus(admissible_0, sequenceOf([getKClass(Long)]));
|
|
1617
1617
|
}
|
|
1618
|
-
if (Companion_getInstance_9().of(IntCompanionObject_getInstance().MIN_VALUE).rangeTo(Companion_getInstance_9().of(IntCompanionObject_getInstance().MAX_VALUE)).l3(term.
|
|
1618
|
+
if (Companion_getInstance_9().of(IntCompanionObject_getInstance().MIN_VALUE).rangeTo(Companion_getInstance_9().of(IntCompanionObject_getInstance().MAX_VALUE)).l3(term.m10())) {
|
|
1619
1619
|
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().ae()]));
|
|
1620
1620
|
}
|
|
1621
|
-
if (Companion_getInstance_9().of(ShortCompanionObject_getInstance().MIN_VALUE).rangeTo(Companion_getInstance_9().of(ShortCompanionObject_getInstance().MAX_VALUE)).l3(term.
|
|
1621
|
+
if (Companion_getInstance_9().of(ShortCompanionObject_getInstance().MIN_VALUE).rangeTo(Companion_getInstance_9().of(ShortCompanionObject_getInstance().MAX_VALUE)).l3(term.m10())) {
|
|
1622
1622
|
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().zd()]));
|
|
1623
1623
|
}
|
|
1624
|
-
if (Companion_getInstance_9().of(ByteCompanionObject_getInstance().MIN_VALUE).rangeTo(Companion_getInstance_9().of(ByteCompanionObject_getInstance().MAX_VALUE)).l3(term.
|
|
1624
|
+
if (Companion_getInstance_9().of(ByteCompanionObject_getInstance().MIN_VALUE).rangeTo(Companion_getInstance_9().of(ByteCompanionObject_getInstance().MAX_VALUE)).l3(term.m10())) {
|
|
1625
1625
|
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().yd()]));
|
|
1626
1626
|
}
|
|
1627
1627
|
admissible_0 = plus(admissible_0, sequenceOf([getKClass(BigDecimal)]));
|
|
1628
1628
|
var tmp_4 = Companion_getInstance_11();
|
|
1629
1629
|
DoubleCompanionObject_getInstance();
|
|
1630
|
-
var containsLower = tmp_4.
|
|
1630
|
+
var containsLower = tmp_4.lj(4.9E-324, null, 2, null);
|
|
1631
1631
|
var tmp_5 = Companion_getInstance_11();
|
|
1632
1632
|
DoubleCompanionObject_getInstance();
|
|
1633
|
-
var containsUpper = tmp_5.
|
|
1634
|
-
var containsArg = term.
|
|
1633
|
+
var containsUpper = tmp_5.lj(1.7976931348623157E308, null, 2, null);
|
|
1634
|
+
var containsArg = term.u10();
|
|
1635
1635
|
if (0 <= compareTo(containsArg, containsLower) ? compareTo(containsArg, containsUpper) <= 0 : false) {
|
|
1636
1636
|
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().ce()]));
|
|
1637
1637
|
}
|
|
1638
1638
|
var tmp_6 = Companion_getInstance_11();
|
|
1639
1639
|
FloatCompanionObject_getInstance();
|
|
1640
|
-
var containsLower_0 = tmp_6.
|
|
1640
|
+
var containsLower_0 = tmp_6.nj(1.4E-45, null, 2, null);
|
|
1641
1641
|
var tmp_7 = Companion_getInstance_11();
|
|
1642
1642
|
FloatCompanionObject_getInstance();
|
|
1643
|
-
var containsUpper_0 = tmp_7.
|
|
1644
|
-
var containsArg_0 = term.
|
|
1643
|
+
var containsUpper_0 = tmp_7.nj(3.4028235E38, null, 2, null);
|
|
1644
|
+
var containsArg_0 = term.u10();
|
|
1645
1645
|
if (0 <= compareTo(containsArg_0, containsLower_0) ? compareTo(containsArg_0, containsUpper_0) <= 0 : false) {
|
|
1646
1646
|
admissible_0 = plus(admissible_0, sequenceOf([PrimitiveClasses_getInstance().be()]));
|
|
1647
1647
|
}
|
|
@@ -1652,7 +1652,7 @@
|
|
|
1652
1652
|
if (Companion_getInstance_2().matches(term, get_CAST_TEMPLATE())) {
|
|
1653
1653
|
tmp_8 = sequenceOf([getType($this, term, term.get(1))]);
|
|
1654
1654
|
} else if (Companion_getInstance_2().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1655
|
-
var ref = $this.
|
|
1655
|
+
var ref = $this.d3r_1(term);
|
|
1656
1656
|
var tmp_9;
|
|
1657
1657
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1658
1658
|
tmp_9 = admissibleTypesByPriority($this, ref);
|
|
@@ -1676,10 +1676,10 @@
|
|
|
1676
1676
|
return tmp;
|
|
1677
1677
|
}
|
|
1678
1678
|
function TermToObjectConverterImpl(typeFactory, dealiaser) {
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1679
|
+
this.c3r_1 = typeFactory;
|
|
1680
|
+
this.d3r_1 = dealiaser;
|
|
1681
1681
|
}
|
|
1682
|
-
TermToObjectConverterImpl.prototype.
|
|
1682
|
+
TermToObjectConverterImpl.prototype.h3q = function (type, term) {
|
|
1683
1683
|
var tmp0_subject = term;
|
|
1684
1684
|
var tmp;
|
|
1685
1685
|
var tmp_0;
|
|
@@ -1699,8 +1699,8 @@
|
|
|
1699
1699
|
} else {
|
|
1700
1700
|
if (isInterface(tmp0_subject, ObjectRef)) {
|
|
1701
1701
|
var tmp_2;
|
|
1702
|
-
if (isSubtypeOf(getKClassFromExpression(term.
|
|
1703
|
-
tmp_2 = term.
|
|
1702
|
+
if (isSubtypeOf(getKClassFromExpression(term.i3p()), type)) {
|
|
1703
|
+
tmp_2 = term.i3p();
|
|
1704
1704
|
} else {
|
|
1705
1705
|
throw new TermToObjectConversionException(term, type);
|
|
1706
1706
|
}
|
|
@@ -1709,7 +1709,7 @@
|
|
|
1709
1709
|
if (isInterface(tmp0_subject, Truth)) {
|
|
1710
1710
|
var tmp_3;
|
|
1711
1711
|
if (isSubtypeOf(PrimitiveClasses_getInstance().xd(), type)) {
|
|
1712
|
-
tmp_3 = term.
|
|
1712
|
+
tmp_3 = term.aw();
|
|
1713
1713
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ee(), type)) {
|
|
1714
1714
|
tmp_3 = term.b1();
|
|
1715
1715
|
} else {
|
|
@@ -1737,11 +1737,11 @@
|
|
|
1737
1737
|
if (isInterface(tmp0_subject, Real)) {
|
|
1738
1738
|
var tmp_6;
|
|
1739
1739
|
if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1740
|
-
tmp_6 = term.
|
|
1740
|
+
tmp_6 = term.u10();
|
|
1741
1741
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ce(), type)) {
|
|
1742
|
-
tmp_6 = term.
|
|
1742
|
+
tmp_6 = term.u10().toDouble();
|
|
1743
1743
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().be(), type)) {
|
|
1744
|
-
tmp_6 = term.
|
|
1744
|
+
tmp_6 = term.u10().toFloat();
|
|
1745
1745
|
} else {
|
|
1746
1746
|
throw new TermToObjectConversionException(term, type);
|
|
1747
1747
|
}
|
|
@@ -1750,21 +1750,21 @@
|
|
|
1750
1750
|
if (isInterface(tmp0_subject, Integer)) {
|
|
1751
1751
|
var tmp_7;
|
|
1752
1752
|
if (isSubtypeOf(getKClass(BigInteger), type)) {
|
|
1753
|
-
tmp_7 = term.
|
|
1753
|
+
tmp_7 = term.m10();
|
|
1754
1754
|
} else if (isSubtypeOf(getKClass(Long), type)) {
|
|
1755
|
-
tmp_7 = term.
|
|
1755
|
+
tmp_7 = term.m10().toLongExact();
|
|
1756
1756
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ae(), type)) {
|
|
1757
|
-
tmp_7 = term.
|
|
1757
|
+
tmp_7 = term.m10().toIntExact();
|
|
1758
1758
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().zd(), type)) {
|
|
1759
|
-
tmp_7 = term.
|
|
1759
|
+
tmp_7 = term.m10().toShortExact();
|
|
1760
1760
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().yd(), type)) {
|
|
1761
|
-
tmp_7 = term.
|
|
1761
|
+
tmp_7 = term.m10().toByteExact();
|
|
1762
1762
|
} else if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1763
|
-
tmp_7 = term.
|
|
1763
|
+
tmp_7 = term.u10();
|
|
1764
1764
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ce(), type)) {
|
|
1765
|
-
tmp_7 = term.
|
|
1765
|
+
tmp_7 = term.u10().toDouble();
|
|
1766
1766
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().be(), type)) {
|
|
1767
|
-
tmp_7 = term.
|
|
1767
|
+
tmp_7 = term.u10().toFloat();
|
|
1768
1768
|
} else {
|
|
1769
1769
|
throw new TermToObjectConversionException(term, type);
|
|
1770
1770
|
}
|
|
@@ -1777,10 +1777,10 @@
|
|
|
1777
1777
|
if (Companion_getInstance_2().matches(term, get_CAST_TEMPLATE())) {
|
|
1778
1778
|
tmp_8 = explicitConversion(this, term, term.get(0), term.get(1));
|
|
1779
1779
|
} else if (Companion_getInstance_2().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1780
|
-
var ref = this.
|
|
1780
|
+
var ref = this.d3r_1(term);
|
|
1781
1781
|
var tmp_9;
|
|
1782
1782
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1783
|
-
tmp_9 = this.
|
|
1783
|
+
tmp_9 = this.h3q(type, ref);
|
|
1784
1784
|
} else {
|
|
1785
1785
|
throw TermToObjectConversionException_init_$Create$(term);
|
|
1786
1786
|
}
|
|
@@ -1807,15 +1807,15 @@
|
|
|
1807
1807
|
}
|
|
1808
1808
|
return tmp;
|
|
1809
1809
|
};
|
|
1810
|
-
TermToObjectConverterImpl.prototype.
|
|
1810
|
+
TermToObjectConverterImpl.prototype.j3q = function (term) {
|
|
1811
1811
|
return first(admissibleTypesByPriority(this, term));
|
|
1812
1812
|
};
|
|
1813
|
-
TermToObjectConverterImpl.prototype.
|
|
1813
|
+
TermToObjectConverterImpl.prototype.i3q = function (term) {
|
|
1814
1814
|
return toSet(admissibleTypesByPriority(this, term));
|
|
1815
1815
|
};
|
|
1816
1816
|
function TypeFactoryImpl() {
|
|
1817
1817
|
}
|
|
1818
|
-
TypeFactoryImpl.prototype.
|
|
1818
|
+
TypeFactoryImpl.prototype.m3q = function (typeName) {
|
|
1819
1819
|
return kClassFromName(typeName).b1();
|
|
1820
1820
|
};
|
|
1821
1821
|
function nameOf_0($this, type) {
|
|
@@ -1832,372 +1832,372 @@
|
|
|
1832
1832
|
}
|
|
1833
1833
|
function TypeRefImpl(type) {
|
|
1834
1834
|
Companion_getInstance_26();
|
|
1835
|
-
this.
|
|
1836
|
-
this.
|
|
1835
|
+
this.e3r_1 = type;
|
|
1836
|
+
this.f3r_1 = Companion_getInstance_5().of(nameOf_0(Companion_getInstance_26(), type));
|
|
1837
1837
|
}
|
|
1838
|
-
TypeRefImpl.prototype.
|
|
1839
|
-
return this.
|
|
1838
|
+
TypeRefImpl.prototype.h25 = function () {
|
|
1839
|
+
return this.e3r_1;
|
|
1840
1840
|
};
|
|
1841
|
-
TypeRefImpl.prototype.
|
|
1842
|
-
return this.
|
|
1843
|
-
};
|
|
1844
|
-
TypeRefImpl.prototype.yw = function () {
|
|
1845
|
-
return this.i3r_1.yw();
|
|
1846
|
-
};
|
|
1847
|
-
TypeRefImpl.prototype.zv = function () {
|
|
1848
|
-
return this.i3r_1.zv();
|
|
1841
|
+
TypeRefImpl.prototype.dw = function () {
|
|
1842
|
+
return this.f3r_1.dw();
|
|
1849
1843
|
};
|
|
1850
|
-
TypeRefImpl.prototype.
|
|
1851
|
-
return this.
|
|
1844
|
+
TypeRefImpl.prototype.vw = function () {
|
|
1845
|
+
return this.f3r_1.vw();
|
|
1852
1846
|
};
|
|
1853
|
-
TypeRefImpl.prototype.
|
|
1854
|
-
return this.
|
|
1847
|
+
TypeRefImpl.prototype.wv = function () {
|
|
1848
|
+
return this.f3r_1.wv();
|
|
1855
1849
|
};
|
|
1856
|
-
TypeRefImpl.prototype.
|
|
1857
|
-
return this.
|
|
1850
|
+
TypeRefImpl.prototype.cw = function () {
|
|
1851
|
+
return this.f3r_1.cw();
|
|
1858
1852
|
};
|
|
1859
|
-
TypeRefImpl.prototype.
|
|
1860
|
-
return this.
|
|
1853
|
+
TypeRefImpl.prototype.uw = function () {
|
|
1854
|
+
return this.f3r_1.uw();
|
|
1861
1855
|
};
|
|
1862
|
-
TypeRefImpl.prototype.
|
|
1863
|
-
return this.
|
|
1856
|
+
TypeRefImpl.prototype.xv = function () {
|
|
1857
|
+
return this.f3r_1.xv();
|
|
1864
1858
|
};
|
|
1865
|
-
TypeRefImpl.prototype.
|
|
1866
|
-
return this.
|
|
1859
|
+
TypeRefImpl.prototype.qw = function () {
|
|
1860
|
+
return this.f3r_1.qw();
|
|
1867
1861
|
};
|
|
1868
|
-
TypeRefImpl.prototype.
|
|
1869
|
-
return this.
|
|
1862
|
+
TypeRefImpl.prototype.jw = function () {
|
|
1863
|
+
return this.f3r_1.jw();
|
|
1870
1864
|
};
|
|
1871
|
-
TypeRefImpl.prototype.
|
|
1872
|
-
return this.
|
|
1865
|
+
TypeRefImpl.prototype.pw = function () {
|
|
1866
|
+
return this.f3r_1.pw();
|
|
1873
1867
|
};
|
|
1874
|
-
TypeRefImpl.prototype.
|
|
1875
|
-
return this.
|
|
1868
|
+
TypeRefImpl.prototype.lw = function () {
|
|
1869
|
+
return this.f3r_1.lw();
|
|
1876
1870
|
};
|
|
1877
|
-
TypeRefImpl.prototype.
|
|
1878
|
-
return this.
|
|
1871
|
+
TypeRefImpl.prototype.yv = function () {
|
|
1872
|
+
return this.f3r_1.yv();
|
|
1879
1873
|
};
|
|
1880
|
-
TypeRefImpl.prototype.
|
|
1881
|
-
return this.
|
|
1874
|
+
TypeRefImpl.prototype.zv = function () {
|
|
1875
|
+
return this.f3r_1.zv();
|
|
1882
1876
|
};
|
|
1883
|
-
TypeRefImpl.prototype.
|
|
1884
|
-
return this.
|
|
1877
|
+
TypeRefImpl.prototype.mw = function () {
|
|
1878
|
+
return this.f3r_1.mw();
|
|
1885
1879
|
};
|
|
1886
|
-
TypeRefImpl.prototype.
|
|
1887
|
-
return this.
|
|
1880
|
+
TypeRefImpl.prototype.bw = function () {
|
|
1881
|
+
return this.f3r_1.bw();
|
|
1888
1882
|
};
|
|
1889
|
-
TypeRefImpl.prototype.
|
|
1890
|
-
return this.
|
|
1883
|
+
TypeRefImpl.prototype.tw = function () {
|
|
1884
|
+
return this.f3r_1.tw();
|
|
1891
1885
|
};
|
|
1892
1886
|
TypeRefImpl.prototype.gx = function () {
|
|
1893
|
-
return this.
|
|
1887
|
+
return this.f3r_1.gx();
|
|
1894
1888
|
};
|
|
1895
1889
|
TypeRefImpl.prototype.rw = function () {
|
|
1896
|
-
return this.
|
|
1890
|
+
return this.f3r_1.rw();
|
|
1897
1891
|
};
|
|
1898
|
-
TypeRefImpl.prototype.
|
|
1899
|
-
return this.
|
|
1892
|
+
TypeRefImpl.prototype.dx = function () {
|
|
1893
|
+
return this.f3r_1.dx();
|
|
1900
1894
|
};
|
|
1901
|
-
TypeRefImpl.prototype.
|
|
1902
|
-
return this.
|
|
1895
|
+
TypeRefImpl.prototype.ow = function () {
|
|
1896
|
+
return this.f3r_1.ow();
|
|
1903
1897
|
};
|
|
1904
|
-
TypeRefImpl.prototype.
|
|
1905
|
-
return this.
|
|
1898
|
+
TypeRefImpl.prototype.cx = function () {
|
|
1899
|
+
return this.f3r_1.cx();
|
|
1906
1900
|
};
|
|
1907
|
-
TypeRefImpl.prototype.
|
|
1908
|
-
return this.
|
|
1901
|
+
TypeRefImpl.prototype.ex = function () {
|
|
1902
|
+
return this.f3r_1.ex();
|
|
1909
1903
|
};
|
|
1910
|
-
TypeRefImpl.prototype.
|
|
1911
|
-
return this.
|
|
1904
|
+
TypeRefImpl.prototype.ax = function () {
|
|
1905
|
+
return this.f3r_1.ax();
|
|
1912
1906
|
};
|
|
1913
|
-
TypeRefImpl.prototype.
|
|
1914
|
-
return this.
|
|
1907
|
+
TypeRefImpl.prototype.kw = function () {
|
|
1908
|
+
return this.f3r_1.kw();
|
|
1915
1909
|
};
|
|
1916
|
-
TypeRefImpl.prototype.
|
|
1917
|
-
return this.
|
|
1910
|
+
TypeRefImpl.prototype.iw = function () {
|
|
1911
|
+
return this.f3r_1.iw();
|
|
1918
1912
|
};
|
|
1919
|
-
TypeRefImpl.prototype.
|
|
1920
|
-
return this.
|
|
1913
|
+
TypeRefImpl.prototype.aw = function () {
|
|
1914
|
+
return this.f3r_1.aw();
|
|
1921
1915
|
};
|
|
1922
|
-
TypeRefImpl.prototype.
|
|
1923
|
-
return this.
|
|
1916
|
+
TypeRefImpl.prototype.zw = function () {
|
|
1917
|
+
return this.f3r_1.zw();
|
|
1924
1918
|
};
|
|
1925
|
-
TypeRefImpl.prototype.
|
|
1926
|
-
return this.
|
|
1919
|
+
TypeRefImpl.prototype.nw = function () {
|
|
1920
|
+
return this.f3r_1.nw();
|
|
1921
|
+
};
|
|
1922
|
+
TypeRefImpl.prototype.yw = function () {
|
|
1923
|
+
return this.f3r_1.yw();
|
|
1924
|
+
};
|
|
1925
|
+
TypeRefImpl.prototype.ht = function () {
|
|
1926
|
+
return this.f3r_1.ht();
|
|
1927
1927
|
};
|
|
1928
1928
|
TypeRefImpl.prototype.b1 = function () {
|
|
1929
|
-
return this.
|
|
1929
|
+
return this.f3r_1.b1();
|
|
1930
1930
|
};
|
|
1931
|
-
TypeRefImpl.prototype.
|
|
1932
|
-
return this.
|
|
1931
|
+
TypeRefImpl.prototype.ew = function () {
|
|
1932
|
+
return this.f3r_1.ew();
|
|
1933
1933
|
};
|
|
1934
1934
|
TypeRefImpl.prototype.addFirst = function (argument) {
|
|
1935
|
-
return this.
|
|
1935
|
+
return this.f3r_1.addFirst(argument);
|
|
1936
1936
|
};
|
|
1937
1937
|
TypeRefImpl.prototype.addLast = function (argument) {
|
|
1938
|
-
return this.
|
|
1938
|
+
return this.f3r_1.addLast(argument);
|
|
1939
1939
|
};
|
|
1940
1940
|
TypeRefImpl.prototype.append = function (argument) {
|
|
1941
|
-
return this.
|
|
1941
|
+
return this.f3r_1.append(argument);
|
|
1942
1942
|
};
|
|
1943
|
-
TypeRefImpl.prototype.
|
|
1944
|
-
return this.
|
|
1943
|
+
TypeRefImpl.prototype.hw = function () {
|
|
1944
|
+
return this.f3r_1.hw();
|
|
1945
1945
|
};
|
|
1946
1946
|
TypeRefImpl.prototype.asAtom = function () {
|
|
1947
|
-
return this.
|
|
1947
|
+
return this.hw();
|
|
1948
1948
|
};
|
|
1949
1949
|
TypeRefImpl.prototype.asBlock = function () {
|
|
1950
|
-
return this.
|
|
1950
|
+
return this.f3r_1.asBlock();
|
|
1951
1951
|
};
|
|
1952
1952
|
TypeRefImpl.prototype.asClause = function () {
|
|
1953
|
-
return this.
|
|
1953
|
+
return this.f3r_1.asClause();
|
|
1954
1954
|
};
|
|
1955
1955
|
TypeRefImpl.prototype.asCons = function () {
|
|
1956
|
-
return this.
|
|
1956
|
+
return this.f3r_1.asCons();
|
|
1957
1957
|
};
|
|
1958
1958
|
TypeRefImpl.prototype.asDirective = function () {
|
|
1959
|
-
return this.
|
|
1959
|
+
return this.f3r_1.asDirective();
|
|
1960
1960
|
};
|
|
1961
1961
|
TypeRefImpl.prototype.asEmptyBlock = function () {
|
|
1962
|
-
return this.
|
|
1962
|
+
return this.f3r_1.asEmptyBlock();
|
|
1963
1963
|
};
|
|
1964
1964
|
TypeRefImpl.prototype.asEmptyList = function () {
|
|
1965
|
-
return this.
|
|
1965
|
+
return this.f3r_1.asEmptyList();
|
|
1966
1966
|
};
|
|
1967
1967
|
TypeRefImpl.prototype.asFact = function () {
|
|
1968
|
-
return this.
|
|
1968
|
+
return this.f3r_1.asFact();
|
|
1969
1969
|
};
|
|
1970
1970
|
TypeRefImpl.prototype.asIndicator = function () {
|
|
1971
|
-
return this.
|
|
1971
|
+
return this.f3r_1.asIndicator();
|
|
1972
1972
|
};
|
|
1973
1973
|
TypeRefImpl.prototype.asInteger = function () {
|
|
1974
|
-
return this.
|
|
1974
|
+
return this.f3r_1.asInteger();
|
|
1975
1975
|
};
|
|
1976
1976
|
TypeRefImpl.prototype.asList = function () {
|
|
1977
|
-
return this.
|
|
1977
|
+
return this.f3r_1.asList();
|
|
1978
1978
|
};
|
|
1979
1979
|
TypeRefImpl.prototype.asNumeric = function () {
|
|
1980
|
-
return this.
|
|
1980
|
+
return this.f3r_1.asNumeric();
|
|
1981
1981
|
};
|
|
1982
1982
|
TypeRefImpl.prototype.asReal = function () {
|
|
1983
|
-
return this.
|
|
1983
|
+
return this.f3r_1.asReal();
|
|
1984
1984
|
};
|
|
1985
1985
|
TypeRefImpl.prototype.asRecursive = function () {
|
|
1986
|
-
return this.
|
|
1986
|
+
return this.f3r_1.asRecursive();
|
|
1987
1987
|
};
|
|
1988
1988
|
TypeRefImpl.prototype.asRule = function () {
|
|
1989
|
-
return this.
|
|
1989
|
+
return this.f3r_1.asRule();
|
|
1990
1990
|
};
|
|
1991
|
-
TypeRefImpl.prototype.
|
|
1992
|
-
return this.
|
|
1991
|
+
TypeRefImpl.prototype.sw = function () {
|
|
1992
|
+
return this.f3r_1.sw();
|
|
1993
1993
|
};
|
|
1994
1994
|
TypeRefImpl.prototype.asStruct = function () {
|
|
1995
|
-
return this.
|
|
1995
|
+
return this.sw();
|
|
1996
1996
|
};
|
|
1997
1997
|
TypeRefImpl.prototype.asTerm = function () {
|
|
1998
|
-
return this.
|
|
1998
|
+
return this.f3r_1.asTerm();
|
|
1999
1999
|
};
|
|
2000
2000
|
TypeRefImpl.prototype.asTruth = function () {
|
|
2001
|
-
return this.
|
|
2001
|
+
return this.f3r_1.asTruth();
|
|
2002
2002
|
};
|
|
2003
2003
|
TypeRefImpl.prototype.asTuple = function () {
|
|
2004
|
-
return this.
|
|
2004
|
+
return this.f3r_1.asTuple();
|
|
2005
2005
|
};
|
|
2006
2006
|
TypeRefImpl.prototype.asVar = function () {
|
|
2007
|
-
return this.
|
|
2007
|
+
return this.f3r_1.asVar();
|
|
2008
2008
|
};
|
|
2009
2009
|
TypeRefImpl.prototype.castToAtom = function () {
|
|
2010
|
-
return this.
|
|
2010
|
+
return this.f3r_1.castToAtom();
|
|
2011
2011
|
};
|
|
2012
2012
|
TypeRefImpl.prototype.castToBlock = function () {
|
|
2013
|
-
return this.
|
|
2013
|
+
return this.f3r_1.castToBlock();
|
|
2014
2014
|
};
|
|
2015
2015
|
TypeRefImpl.prototype.castToClause = function () {
|
|
2016
|
-
return this.
|
|
2016
|
+
return this.f3r_1.castToClause();
|
|
2017
2017
|
};
|
|
2018
2018
|
TypeRefImpl.prototype.castToCons = function () {
|
|
2019
|
-
return this.
|
|
2019
|
+
return this.f3r_1.castToCons();
|
|
2020
2020
|
};
|
|
2021
2021
|
TypeRefImpl.prototype.castToConstant = function () {
|
|
2022
|
-
return this.
|
|
2022
|
+
return this.f3r_1.castToConstant();
|
|
2023
2023
|
};
|
|
2024
2024
|
TypeRefImpl.prototype.castToDirective = function () {
|
|
2025
|
-
return this.
|
|
2025
|
+
return this.f3r_1.castToDirective();
|
|
2026
2026
|
};
|
|
2027
2027
|
TypeRefImpl.prototype.castToEmptyBlock = function () {
|
|
2028
|
-
return this.
|
|
2028
|
+
return this.f3r_1.castToEmptyBlock();
|
|
2029
2029
|
};
|
|
2030
2030
|
TypeRefImpl.prototype.castToEmptyList = function () {
|
|
2031
|
-
return this.
|
|
2031
|
+
return this.f3r_1.castToEmptyList();
|
|
2032
2032
|
};
|
|
2033
2033
|
TypeRefImpl.prototype.castToFact = function () {
|
|
2034
|
-
return this.
|
|
2034
|
+
return this.f3r_1.castToFact();
|
|
2035
2035
|
};
|
|
2036
2036
|
TypeRefImpl.prototype.castToIndicator = function () {
|
|
2037
|
-
return this.
|
|
2037
|
+
return this.f3r_1.castToIndicator();
|
|
2038
2038
|
};
|
|
2039
2039
|
TypeRefImpl.prototype.castToInteger = function () {
|
|
2040
|
-
return this.
|
|
2040
|
+
return this.f3r_1.castToInteger();
|
|
2041
2041
|
};
|
|
2042
2042
|
TypeRefImpl.prototype.castToList = function () {
|
|
2043
|
-
return this.
|
|
2043
|
+
return this.f3r_1.castToList();
|
|
2044
2044
|
};
|
|
2045
2045
|
TypeRefImpl.prototype.castToNumeric = function () {
|
|
2046
|
-
return this.
|
|
2046
|
+
return this.f3r_1.castToNumeric();
|
|
2047
2047
|
};
|
|
2048
2048
|
TypeRefImpl.prototype.castToReal = function () {
|
|
2049
|
-
return this.
|
|
2049
|
+
return this.f3r_1.castToReal();
|
|
2050
2050
|
};
|
|
2051
2051
|
TypeRefImpl.prototype.castToRecursive = function () {
|
|
2052
|
-
return this.
|
|
2052
|
+
return this.f3r_1.castToRecursive();
|
|
2053
2053
|
};
|
|
2054
2054
|
TypeRefImpl.prototype.castToRule = function () {
|
|
2055
|
-
return this.
|
|
2055
|
+
return this.f3r_1.castToRule();
|
|
2056
2056
|
};
|
|
2057
2057
|
TypeRefImpl.prototype.castToStruct = function () {
|
|
2058
|
-
return this.
|
|
2058
|
+
return this.f3r_1.castToStruct();
|
|
2059
2059
|
};
|
|
2060
2060
|
TypeRefImpl.prototype.castToTerm = function () {
|
|
2061
|
-
return this.
|
|
2061
|
+
return this.f3r_1.castToTerm();
|
|
2062
2062
|
};
|
|
2063
2063
|
TypeRefImpl.prototype.castToTruth = function () {
|
|
2064
|
-
return this.
|
|
2064
|
+
return this.f3r_1.castToTruth();
|
|
2065
2065
|
};
|
|
2066
2066
|
TypeRefImpl.prototype.castToTuple = function () {
|
|
2067
|
-
return this.
|
|
2067
|
+
return this.f3r_1.castToTuple();
|
|
2068
2068
|
};
|
|
2069
2069
|
TypeRefImpl.prototype.castToVar = function () {
|
|
2070
|
-
return this.
|
|
2070
|
+
return this.f3r_1.castToVar();
|
|
2071
2071
|
};
|
|
2072
|
-
TypeRefImpl.prototype.
|
|
2073
|
-
return this.
|
|
2072
|
+
TypeRefImpl.prototype.xw = function (other) {
|
|
2073
|
+
return this.f3r_1.xw(other);
|
|
2074
2074
|
};
|
|
2075
2075
|
TypeRefImpl.prototype.aa = function (other) {
|
|
2076
|
-
return this.
|
|
2076
|
+
return this.xw((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
2077
2077
|
};
|
|
2078
2078
|
TypeRefImpl.prototype.containsTag = function (name) {
|
|
2079
|
-
return this.
|
|
2079
|
+
return this.f3r_1.containsTag(name);
|
|
2080
2080
|
};
|
|
2081
2081
|
TypeRefImpl.prototype.equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
2082
|
-
return this.
|
|
2082
|
+
return this.f3r_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
2083
2083
|
};
|
|
2084
2084
|
TypeRefImpl.prototype.equals = function (other) {
|
|
2085
|
-
return this.
|
|
2085
|
+
return this.f3r_1.equals(other);
|
|
2086
2086
|
};
|
|
2087
2087
|
TypeRefImpl.prototype.get = function (index) {
|
|
2088
|
-
return this.
|
|
2088
|
+
return this.f3r_1.get(index);
|
|
2089
2089
|
};
|
|
2090
2090
|
TypeRefImpl.prototype.getArgAt = function (index) {
|
|
2091
|
-
return this.
|
|
2091
|
+
return this.f3r_1.getArgAt(index);
|
|
2092
2092
|
};
|
|
2093
2093
|
TypeRefImpl.prototype.getTag = function (name) {
|
|
2094
|
-
return this.
|
|
2094
|
+
return this.f3r_1.getTag(name);
|
|
2095
2095
|
};
|
|
2096
2096
|
TypeRefImpl.prototype.hashCode = function () {
|
|
2097
|
-
return this.
|
|
2097
|
+
return this.f3r_1.hashCode();
|
|
2098
2098
|
};
|
|
2099
2099
|
TypeRefImpl.prototype.insertAt = function (index, argument) {
|
|
2100
|
-
return this.
|
|
2100
|
+
return this.f3r_1.insertAt(index, argument);
|
|
2101
2101
|
};
|
|
2102
2102
|
TypeRefImpl.prototype.resetTags = function (tags) {
|
|
2103
|
-
return this.
|
|
2103
|
+
return this.f3r_1.resetTags(tags);
|
|
2104
2104
|
};
|
|
2105
2105
|
TypeRefImpl.prototype.setArgs = function (args) {
|
|
2106
|
-
return this.
|
|
2106
|
+
return this.f3r_1.setArgs(args);
|
|
2107
2107
|
};
|
|
2108
2108
|
TypeRefImpl.prototype.setArgsIterable = function (args) {
|
|
2109
|
-
return this.
|
|
2109
|
+
return this.f3r_1.setArgsIterable(args);
|
|
2110
2110
|
};
|
|
2111
2111
|
TypeRefImpl.prototype.setArgsSequence = function (args) {
|
|
2112
|
-
return this.
|
|
2112
|
+
return this.f3r_1.setArgsSequence(args);
|
|
2113
2113
|
};
|
|
2114
2114
|
TypeRefImpl.prototype.setFunctor = function (functor) {
|
|
2115
|
-
return this.
|
|
2115
|
+
return this.f3r_1.setFunctor(functor);
|
|
2116
2116
|
};
|
|
2117
2117
|
TypeRefImpl.prototype.structurallyEquals = function (other) {
|
|
2118
|
-
return this.
|
|
2118
|
+
return this.f3r_1.structurallyEquals(other);
|
|
2119
2119
|
};
|
|
2120
2120
|
TypeRefImpl.prototype.toString = function () {
|
|
2121
|
-
return this.
|
|
2121
|
+
return this.f3r_1.toString();
|
|
2122
2122
|
};
|
|
2123
|
-
TypeRefImpl.prototype.
|
|
2124
|
-
return create_0(this.
|
|
2123
|
+
TypeRefImpl.prototype.p3q = function (objectConverter, arguments_0) {
|
|
2124
|
+
return create_0(this.e3r_1, objectConverter, arguments_0);
|
|
2125
2125
|
};
|
|
2126
|
-
TypeRefImpl.prototype.
|
|
2127
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
2126
|
+
TypeRefImpl.prototype.j3p = function (objectConverter, methodName, arguments_0) {
|
|
2127
|
+
var companionObjectRef = get_companionObjectRef(this.e3r_1);
|
|
2128
2128
|
var tmp;
|
|
2129
2129
|
if (companionObjectRef instanceof Some) {
|
|
2130
|
-
tmp = invoke_0(companionObjectRef.
|
|
2130
|
+
tmp = invoke_0(companionObjectRef.gq_1, objectConverter, methodName, arguments_0);
|
|
2131
2131
|
} else {
|
|
2132
|
-
tmp = invoke_1(this.
|
|
2132
|
+
tmp = invoke_1(this.e3r_1, objectConverter, methodName, arguments_0, null);
|
|
2133
2133
|
}
|
|
2134
2134
|
return tmp;
|
|
2135
2135
|
};
|
|
2136
|
-
TypeRefImpl.prototype.
|
|
2136
|
+
TypeRefImpl.prototype.bx = function () {
|
|
2137
2137
|
return true;
|
|
2138
2138
|
};
|
|
2139
|
-
TypeRefImpl.prototype.
|
|
2139
|
+
TypeRefImpl.prototype.fx = function () {
|
|
2140
2140
|
return this;
|
|
2141
2141
|
};
|
|
2142
2142
|
TypeRefImpl.prototype.asConstant = function () {
|
|
2143
|
-
return this.
|
|
2143
|
+
return this.fx();
|
|
2144
2144
|
};
|
|
2145
|
-
TypeRefImpl.prototype.
|
|
2145
|
+
TypeRefImpl.prototype.fw = function () {
|
|
2146
2146
|
return this;
|
|
2147
2147
|
};
|
|
2148
2148
|
TypeRefImpl.prototype.freshCopy = function () {
|
|
2149
|
-
return this.
|
|
2149
|
+
return this.fw();
|
|
2150
2150
|
};
|
|
2151
|
-
TypeRefImpl.prototype.
|
|
2151
|
+
TypeRefImpl.prototype.gw = function (scope) {
|
|
2152
2152
|
return this;
|
|
2153
2153
|
};
|
|
2154
2154
|
TypeRefImpl.prototype.freshCopyFromScope = function (scope) {
|
|
2155
|
-
return this.
|
|
2155
|
+
return this.gw(scope);
|
|
2156
2156
|
};
|
|
2157
|
-
TypeRefImpl.prototype.
|
|
2157
|
+
TypeRefImpl.prototype.ww = function () {
|
|
2158
2158
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
2159
2159
|
};
|
|
2160
|
-
TypeRefImpl.prototype.
|
|
2161
|
-
return this.
|
|
2160
|
+
TypeRefImpl.prototype.nq = function () {
|
|
2161
|
+
return this.ww();
|
|
2162
2162
|
};
|
|
2163
|
-
TypeRefImpl.prototype.
|
|
2163
|
+
TypeRefImpl.prototype.p16 = function (substitution) {
|
|
2164
2164
|
return this;
|
|
2165
2165
|
};
|
|
2166
2166
|
TypeRefImpl.prototype.applySubstitution = function (substitution) {
|
|
2167
|
-
return this.
|
|
2167
|
+
return this.p16(substitution);
|
|
2168
2168
|
};
|
|
2169
|
-
TypeRefImpl.prototype.
|
|
2169
|
+
TypeRefImpl.prototype.c2p = function (substitution, substitutions) {
|
|
2170
2170
|
return this;
|
|
2171
2171
|
};
|
|
2172
2172
|
TypeRefImpl.prototype.apply = function (substitution, substitutions) {
|
|
2173
|
-
return this.
|
|
2173
|
+
return this.c2p(substitution, substitutions);
|
|
2174
2174
|
};
|
|
2175
|
-
TypeRefImpl.prototype.
|
|
2175
|
+
TypeRefImpl.prototype.b2p = function (substitution, substitutions) {
|
|
2176
2176
|
return this;
|
|
2177
2177
|
};
|
|
2178
2178
|
TypeRefImpl.prototype.getSubstituted = function (substitution, substitutions) {
|
|
2179
|
-
return this.
|
|
2179
|
+
return this.b2p(substitution, substitutions);
|
|
2180
2180
|
};
|
|
2181
|
-
TypeRefImpl.prototype.
|
|
2181
|
+
TypeRefImpl.prototype.v15 = function (visitor) {
|
|
2182
2182
|
return visitor.visitAtom(this);
|
|
2183
2183
|
};
|
|
2184
2184
|
TypeRefImpl.prototype.accept = function (visitor) {
|
|
2185
|
-
return this.
|
|
2185
|
+
return this.v15(visitor);
|
|
2186
2186
|
};
|
|
2187
|
-
TypeRefImpl.prototype.
|
|
2188
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
2187
|
+
TypeRefImpl.prototype.k3p = function (objectConverter, propertyName, value) {
|
|
2188
|
+
var companionObjectRef = get_companionObjectRef(this.e3r_1);
|
|
2189
2189
|
if (companionObjectRef instanceof Some) {
|
|
2190
|
-
assign_0(companionObjectRef.
|
|
2190
|
+
assign_0(companionObjectRef.gq_1, objectConverter, propertyName, value);
|
|
2191
2191
|
} else {
|
|
2192
|
-
assign_1(this.
|
|
2192
|
+
assign_1(this.e3r_1, objectConverter, propertyName, value, null);
|
|
2193
2193
|
}
|
|
2194
2194
|
return true;
|
|
2195
2195
|
};
|
|
2196
2196
|
function actuallyInvoke(_this__u8e3s4, $this, ref, method, resultTerm) {
|
|
2197
|
-
var result = ref.
|
|
2197
|
+
var result = ref.j3p(get_termToObjectConverter(_this__u8e3s4), method.cw(), method.dw());
|
|
2198
2198
|
var tmp;
|
|
2199
2199
|
if (result instanceof Value) {
|
|
2200
|
-
tmp = Companion_getInstance_13().
|
|
2200
|
+
tmp = Companion_getInstance_13().b2h(_this__u8e3s4, resultTerm, $this.h3r(result));
|
|
2201
2201
|
} else {
|
|
2202
2202
|
tmp = Companion_getInstance_12().failed();
|
|
2203
2203
|
}
|
|
@@ -2206,9 +2206,9 @@
|
|
|
2206
2206
|
function AbstractInvoke(suffix) {
|
|
2207
2207
|
Functional.call(this, 'invoke_' + suffix);
|
|
2208
2208
|
}
|
|
2209
|
-
AbstractInvoke.prototype.
|
|
2210
|
-
Companion_getInstance_13().
|
|
2211
|
-
Companion_getInstance_13().
|
|
2209
|
+
AbstractInvoke.prototype.k2q = function (_this__u8e3s4, first, second, third) {
|
|
2210
|
+
Companion_getInstance_13().l2h(_this__u8e3s4, 0);
|
|
2211
|
+
Companion_getInstance_13().l2h(_this__u8e3s4, 1);
|
|
2212
2212
|
var method = isInterface(second, Struct) ? second : THROW_CCE();
|
|
2213
2213
|
var tmp$ret$1;
|
|
2214
2214
|
$l$block: {
|
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
break $l$block;
|
|
2234
2234
|
} catch ($p) {
|
|
2235
2235
|
if ($p instanceof OopException) {
|
|
2236
|
-
throw $p.
|
|
2236
|
+
throw $p.u3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2237
2237
|
} else {
|
|
2238
2238
|
if ($p instanceof Error) {
|
|
2239
2239
|
throw Companion_getInstance_14().forUncaughtKtException(_this__u8e3s4.context, $p);
|
|
@@ -2245,22 +2245,22 @@
|
|
|
2245
2245
|
}
|
|
2246
2246
|
return tmp$ret$1;
|
|
2247
2247
|
};
|
|
2248
|
-
AbstractInvoke.prototype.
|
|
2249
|
-
return this.
|
|
2248
|
+
AbstractInvoke.prototype.t2j = function (_this__u8e3s4, first, second, third) {
|
|
2249
|
+
return this.k2q(_this__u8e3s4, first, second, third);
|
|
2250
2250
|
};
|
|
2251
2251
|
function AbstractIterableItems$computeOneSubstitution$lambda($converter) {
|
|
2252
2252
|
return function (it) {
|
|
2253
|
-
return $converter.
|
|
2253
|
+
return $converter.k3q(it);
|
|
2254
2254
|
};
|
|
2255
2255
|
}
|
|
2256
2256
|
function AbstractIterableItems$computeOneSubstitution$lambda_0(it) {
|
|
2257
|
-
return Companion_getInstance_20().
|
|
2257
|
+
return Companion_getInstance_20().w3p_1.b3q(it);
|
|
2258
2258
|
}
|
|
2259
2259
|
function AbstractIterableItems(iterable, target) {
|
|
2260
2260
|
Functional_0.call(this, iterable + '_items');
|
|
2261
|
-
this.
|
|
2261
|
+
this.j3r_1 = target;
|
|
2262
2262
|
}
|
|
2263
|
-
AbstractIterableItems.prototype.
|
|
2263
|
+
AbstractIterableItems.prototype.h2q = function (_this__u8e3s4, first, second) {
|
|
2264
2264
|
var tmp;
|
|
2265
2265
|
var tmp_0;
|
|
2266
2266
|
if (isInterface(first, Var)) {
|
|
@@ -2271,7 +2271,7 @@
|
|
|
2271
2271
|
if (tmp_0) {
|
|
2272
2272
|
var tmp$ret$1;
|
|
2273
2273
|
// Inline function 'kotlin.let' call
|
|
2274
|
-
var tmp0_let = Companion_getInstance_13().
|
|
2274
|
+
var tmp0_let = Companion_getInstance_13().y2f(_this__u8e3s4);
|
|
2275
2275
|
// Inline function 'kotlin.contracts.contract' call
|
|
2276
2276
|
var tmp$ret$0;
|
|
2277
2277
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.AbstractIterableItems.computeOneSubstitution.<anonymous>' call
|
|
@@ -2281,51 +2281,51 @@
|
|
|
2281
2281
|
} else {
|
|
2282
2282
|
if (isInterface(second, List_0)) {
|
|
2283
2283
|
var converter = get_termToObjectConverter(_this__u8e3s4);
|
|
2284
|
-
var tmp_1 = second.
|
|
2285
|
-
var items = this.
|
|
2286
|
-
var objectRef = Companion_getInstance_19().
|
|
2287
|
-
tmp = Companion_getInstance_13().
|
|
2284
|
+
var tmp_1 = second.gu();
|
|
2285
|
+
var items = this.k3r(map(tmp_1, AbstractIterableItems$computeOneSubstitution$lambda(converter)));
|
|
2286
|
+
var objectRef = Companion_getInstance_19().v3p(items);
|
|
2287
|
+
tmp = Companion_getInstance_13().b2h(_this__u8e3s4, first, objectRef);
|
|
2288
2288
|
} else {
|
|
2289
2289
|
if (isInterface(first, ObjectRef)) {
|
|
2290
|
-
var obj = first.
|
|
2290
|
+
var obj = first.i3p();
|
|
2291
2291
|
var tmp_2;
|
|
2292
|
-
if (this.
|
|
2293
|
-
var tmp_3 = this.
|
|
2292
|
+
if (this.l3r(obj)) {
|
|
2293
|
+
var tmp_3 = this.m3r(isObject(obj) ? obj : THROW_CCE());
|
|
2294
2294
|
var items_0 = map(tmp_3, AbstractIterableItems$computeOneSubstitution$lambda_0);
|
|
2295
|
-
tmp_2 = Companion_getInstance_13().
|
|
2295
|
+
tmp_2 = Companion_getInstance_13().b2h(_this__u8e3s4, second, Companion_getInstance_15().ofSequence(items_0));
|
|
2296
2296
|
} else {
|
|
2297
2297
|
tmp_2 = Companion_getInstance_12().failed();
|
|
2298
2298
|
}
|
|
2299
2299
|
tmp = tmp_2;
|
|
2300
2300
|
} else {
|
|
2301
|
-
throw Companion_getInstance_1().
|
|
2301
|
+
throw Companion_getInstance_1().v25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_OBJECT_REFERENCE_getInstance(), first, 0);
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
2305
|
return tmp;
|
|
2306
2306
|
};
|
|
2307
|
-
AbstractIterableItems.prototype.
|
|
2308
|
-
return this.
|
|
2307
|
+
AbstractIterableItems.prototype.k2g = function (_this__u8e3s4, first, second) {
|
|
2308
|
+
return this.h2q(_this__u8e3s4, first, second);
|
|
2309
2309
|
};
|
|
2310
2310
|
function ArrayItems() {
|
|
2311
2311
|
ArrayItems_instance = this;
|
|
2312
2312
|
AbstractIterableItems.call(this, 'array', PrimitiveClasses_getInstance().de());
|
|
2313
2313
|
}
|
|
2314
|
-
ArrayItems.prototype.
|
|
2314
|
+
ArrayItems.prototype.k3r = function (_this__u8e3s4) {
|
|
2315
2315
|
var tmp$ret$0;
|
|
2316
2316
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2317
2317
|
var tmp0_toTypedArray = toList(_this__u8e3s4);
|
|
2318
2318
|
tmp$ret$0 = copyToArray(tmp0_toTypedArray);
|
|
2319
2319
|
return tmp$ret$0;
|
|
2320
2320
|
};
|
|
2321
|
-
ArrayItems.prototype.
|
|
2321
|
+
ArrayItems.prototype.l3r = function (_this__u8e3s4) {
|
|
2322
2322
|
return !(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false;
|
|
2323
2323
|
};
|
|
2324
|
-
ArrayItems.prototype.
|
|
2324
|
+
ArrayItems.prototype.p3r = function (_this__u8e3s4) {
|
|
2325
2325
|
return asSequence(_this__u8e3s4);
|
|
2326
2326
|
};
|
|
2327
|
-
ArrayItems.prototype.
|
|
2328
|
-
return this.
|
|
2327
|
+
ArrayItems.prototype.m3r = function (_this__u8e3s4) {
|
|
2328
|
+
return this.p3r(isArray(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE());
|
|
2329
2329
|
};
|
|
2330
2330
|
var ArrayItems_instance;
|
|
2331
2331
|
function ArrayItems_getInstance() {
|
|
@@ -2337,9 +2337,9 @@
|
|
|
2337
2337
|
Assign_instance = this;
|
|
2338
2338
|
Predicative.call(this, 'assign');
|
|
2339
2339
|
}
|
|
2340
|
-
Assign.prototype.
|
|
2341
|
-
Companion_getInstance_13().
|
|
2342
|
-
Companion_getInstance_13().
|
|
2340
|
+
Assign.prototype.r3r = function (_this__u8e3s4, first, second, third) {
|
|
2341
|
+
Companion_getInstance_13().q2h(_this__u8e3s4, 0);
|
|
2342
|
+
Companion_getInstance_13().q2h(_this__u8e3s4, 1);
|
|
2343
2343
|
var tmp$ret$1;
|
|
2344
2344
|
$l$block: {
|
|
2345
2345
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2355,19 +2355,19 @@
|
|
|
2355
2355
|
}
|
|
2356
2356
|
var ref = tmp;
|
|
2357
2357
|
var tmp_0;
|
|
2358
|
-
if (Companion_getInstance_13().
|
|
2358
|
+
if (Companion_getInstance_13().c2h(_this__u8e3s4, third, get_DEALIASING_TEMPLATE())) {
|
|
2359
2359
|
tmp_0 = findRefFromAlias(_this__u8e3s4, isInterface(third, Struct) ? third : THROW_CCE());
|
|
2360
2360
|
} else {
|
|
2361
2361
|
tmp_0 = third;
|
|
2362
2362
|
}
|
|
2363
2363
|
var value = tmp_0;
|
|
2364
2364
|
var tmp_1 = get_termToObjectConverter(_this__u8e3s4);
|
|
2365
|
-
tmp$ret$0 = ref.
|
|
2365
|
+
tmp$ret$0 = ref.k3p(tmp_1, (isInterface(second, Atom) ? second : THROW_CCE()).b1(), value);
|
|
2366
2366
|
tmp$ret$1 = tmp$ret$0;
|
|
2367
2367
|
break $l$block;
|
|
2368
2368
|
} catch ($p) {
|
|
2369
2369
|
if ($p instanceof OopException) {
|
|
2370
|
-
throw $p.
|
|
2370
|
+
throw $p.u3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2371
2371
|
} else {
|
|
2372
2372
|
if ($p instanceof Error) {
|
|
2373
2373
|
throw Companion_getInstance_14().forUncaughtKtException(_this__u8e3s4.context, $p);
|
|
@@ -2379,8 +2379,8 @@
|
|
|
2379
2379
|
}
|
|
2380
2380
|
return tmp$ret$1;
|
|
2381
2381
|
};
|
|
2382
|
-
Assign.prototype.
|
|
2383
|
-
return this.
|
|
2382
|
+
Assign.prototype.v2j = function (_this__u8e3s4, first, second, third) {
|
|
2383
|
+
return this.r3r(_this__u8e3s4, first, second, third);
|
|
2384
2384
|
};
|
|
2385
2385
|
var Assign_instance;
|
|
2386
2386
|
function Assign_getInstance() {
|
|
@@ -2393,8 +2393,8 @@
|
|
|
2393
2393
|
if (type == null) {
|
|
2394
2394
|
tmp = Companion_getInstance_12().failed();
|
|
2395
2395
|
} else {
|
|
2396
|
-
var casted = get_termToObjectConverter(_this__u8e3s4).
|
|
2397
|
-
tmp = Companion_getInstance_13().
|
|
2396
|
+
var casted = get_termToObjectConverter(_this__u8e3s4).h3q(type, term);
|
|
2397
|
+
tmp = Companion_getInstance_13().b2h(_this__u8e3s4, result, Companion_getInstance_19().v3p(casted));
|
|
2398
2398
|
}
|
|
2399
2399
|
return tmp;
|
|
2400
2400
|
}
|
|
@@ -2403,19 +2403,19 @@
|
|
|
2403
2403
|
}
|
|
2404
2404
|
function Cast$computeAll$lambda_0($this_computeAll, $first, $third, $second) {
|
|
2405
2405
|
return function (it) {
|
|
2406
|
-
return cast($this_computeAll, Cast_getInstance(), $first, it, $third).plus(Companion_getInstance_13().
|
|
2406
|
+
return cast($this_computeAll, Cast_getInstance(), $first, it, $third).plus(Companion_getInstance_13().b2h($this_computeAll, $second, Companion_getInstance_24().l3q(it)));
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
2409
|
function Cast$computeAll$lambda_1($this_computeAll) {
|
|
2410
2410
|
return function (it) {
|
|
2411
|
-
return $this_computeAll.
|
|
2411
|
+
return $this_computeAll.g2g(it, null, [], 6, null);
|
|
2412
2412
|
};
|
|
2413
2413
|
}
|
|
2414
2414
|
function Cast() {
|
|
2415
2415
|
Cast_instance = this;
|
|
2416
2416
|
TernaryRelation.call(this, 'cast');
|
|
2417
2417
|
}
|
|
2418
|
-
Cast.prototype.
|
|
2418
|
+
Cast.prototype.t3r = function (_this__u8e3s4, first, second, third) {
|
|
2419
2419
|
var tmp$ret$1;
|
|
2420
2420
|
$l$block: {
|
|
2421
2421
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2431,12 +2431,12 @@
|
|
|
2431
2431
|
try {
|
|
2432
2432
|
var tmp_1 = Cast_getInstance();
|
|
2433
2433
|
var tmp1_safe_receiver = type;
|
|
2434
|
-
var tmp_2 = cast(_this__u8e3s4, tmp_1, first, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2435
|
-
tmp_0 = sequenceOf([_this__u8e3s4.
|
|
2434
|
+
var tmp_2 = cast(_this__u8e3s4, tmp_1, first, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h25(), third);
|
|
2435
|
+
tmp_0 = sequenceOf([_this__u8e3s4.g2g(tmp_2, null, [], 6, null)]);
|
|
2436
2436
|
} catch ($p) {
|
|
2437
2437
|
var tmp_3;
|
|
2438
2438
|
if ($p instanceof TermToObjectConversionException) {
|
|
2439
|
-
tmp_3 = sequenceOf([_this__u8e3s4.
|
|
2439
|
+
tmp_3 = sequenceOf([_this__u8e3s4.l2g(null, [], 3, null)]);
|
|
2440
2440
|
} else {
|
|
2441
2441
|
throw $p;
|
|
2442
2442
|
}
|
|
@@ -2445,13 +2445,13 @@
|
|
|
2445
2445
|
tmp = tmp_0;
|
|
2446
2446
|
} else {
|
|
2447
2447
|
if (isInterface(tmp0_subject, Var)) {
|
|
2448
|
-
var tmp_4 = asSequence_0(get_termToObjectConverter(_this__u8e3s4).
|
|
2448
|
+
var tmp_4 = asSequence_0(get_termToObjectConverter(_this__u8e3s4).i3q(first));
|
|
2449
2449
|
var tmp_5 = distinct(flatMap(tmp_4, Cast$computeAll$lambda));
|
|
2450
2450
|
var tmp_6 = map(tmp_5, Cast$computeAll$lambda_0(_this__u8e3s4, first, third, second));
|
|
2451
2451
|
tmp = map(tmp_6, Cast$computeAll$lambda_1(_this__u8e3s4));
|
|
2452
2452
|
} else {
|
|
2453
2453
|
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2454
|
-
tmp = sequenceOf([_this__u8e3s4.
|
|
2454
|
+
tmp = sequenceOf([_this__u8e3s4.l2g(null, [], 3, null)]);
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
2457
|
tmp$ret$0 = tmp;
|
|
@@ -2459,7 +2459,7 @@
|
|
|
2459
2459
|
break $l$block;
|
|
2460
2460
|
} catch ($p) {
|
|
2461
2461
|
if ($p instanceof OopException) {
|
|
2462
|
-
throw $p.
|
|
2462
|
+
throw $p.u3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2463
2463
|
} else {
|
|
2464
2464
|
if ($p instanceof Error) {
|
|
2465
2465
|
throw Companion_getInstance_14().forUncaughtKtException(_this__u8e3s4.context, $p);
|
|
@@ -2471,8 +2471,8 @@
|
|
|
2471
2471
|
}
|
|
2472
2472
|
return tmp$ret$1;
|
|
2473
2473
|
};
|
|
2474
|
-
Cast.prototype.
|
|
2475
|
-
return this.
|
|
2474
|
+
Cast.prototype.o2j = function (_this__u8e3s4, first, second, third) {
|
|
2475
|
+
return this.t3r(_this__u8e3s4, first, second, third);
|
|
2476
2476
|
};
|
|
2477
2477
|
var Cast_instance;
|
|
2478
2478
|
function Cast_getInstance() {
|
|
@@ -2484,8 +2484,8 @@
|
|
|
2484
2484
|
InvokeMethod_instance = this;
|
|
2485
2485
|
AbstractInvoke.call(this, 'method');
|
|
2486
2486
|
}
|
|
2487
|
-
InvokeMethod.prototype.
|
|
2488
|
-
return _this__u8e3s4.
|
|
2487
|
+
InvokeMethod.prototype.h3r = function (_this__u8e3s4) {
|
|
2488
|
+
return _this__u8e3s4.o1i();
|
|
2489
2489
|
};
|
|
2490
2490
|
var InvokeMethod_instance;
|
|
2491
2491
|
function InvokeMethod_getInstance() {
|
|
@@ -2497,8 +2497,8 @@
|
|
|
2497
2497
|
InvokeStrict_instance = this;
|
|
2498
2498
|
AbstractInvoke.call(this, 'strict');
|
|
2499
2499
|
}
|
|
2500
|
-
InvokeStrict.prototype.
|
|
2501
|
-
return _this__u8e3s4.
|
|
2500
|
+
InvokeStrict.prototype.h3r = function (_this__u8e3s4) {
|
|
2501
|
+
return _this__u8e3s4.c3q();
|
|
2502
2502
|
};
|
|
2503
2503
|
var InvokeStrict_instance;
|
|
2504
2504
|
function InvokeStrict_getInstance() {
|
|
@@ -2510,17 +2510,17 @@
|
|
|
2510
2510
|
ListItems_instance = this;
|
|
2511
2511
|
AbstractIterableItems.call(this, 'list', getKClass(List));
|
|
2512
2512
|
}
|
|
2513
|
-
ListItems.prototype.
|
|
2513
|
+
ListItems.prototype.k3r = function (_this__u8e3s4) {
|
|
2514
2514
|
return toList(_this__u8e3s4);
|
|
2515
2515
|
};
|
|
2516
|
-
ListItems.prototype.
|
|
2516
|
+
ListItems.prototype.l3r = function (_this__u8e3s4) {
|
|
2517
2517
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, List) : false;
|
|
2518
2518
|
};
|
|
2519
|
-
ListItems.prototype.
|
|
2519
|
+
ListItems.prototype.y3r = function (_this__u8e3s4) {
|
|
2520
2520
|
return asSequence_0(_this__u8e3s4);
|
|
2521
2521
|
};
|
|
2522
|
-
ListItems.prototype.
|
|
2523
|
-
return this.
|
|
2522
|
+
ListItems.prototype.m3r = function (_this__u8e3s4) {
|
|
2523
|
+
return this.y3r(isInterface(_this__u8e3s4, List) ? _this__u8e3s4 : THROW_CCE());
|
|
2524
2524
|
};
|
|
2525
2525
|
var ListItems_instance;
|
|
2526
2526
|
function ListItems_getInstance() {
|
|
@@ -2532,9 +2532,9 @@
|
|
|
2532
2532
|
NewObject3_instance = this;
|
|
2533
2533
|
Functional.call(this, 'new_object');
|
|
2534
2534
|
}
|
|
2535
|
-
NewObject3.prototype.
|
|
2536
|
-
Companion_getInstance_13().
|
|
2537
|
-
Companion_getInstance_13().
|
|
2535
|
+
NewObject3.prototype.k2q = function (_this__u8e3s4, first, second, third) {
|
|
2536
|
+
Companion_getInstance_13().l2h(_this__u8e3s4, 0);
|
|
2537
|
+
Companion_getInstance_13().v2h(_this__u8e3s4, 1);
|
|
2538
2538
|
var tmp$ret$3;
|
|
2539
2539
|
$l$block: {
|
|
2540
2540
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2544,8 +2544,8 @@
|
|
|
2544
2544
|
var type = getArgumentAsTypeRef(_this__u8e3s4, 0);
|
|
2545
2545
|
var arguments_0 = (isInterface(second, List_0) ? second : THROW_CCE()).toArray();
|
|
2546
2546
|
var tmp0_safe_receiver = type;
|
|
2547
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2548
|
-
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2547
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o3q(get_termToObjectConverter(_this__u8e3s4), arguments_0.slice());
|
|
2548
|
+
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c3q();
|
|
2549
2549
|
var tmp2_safe_receiver = objectReference;
|
|
2550
2550
|
var tmp;
|
|
2551
2551
|
if (tmp2_safe_receiver == null) {
|
|
@@ -2556,7 +2556,7 @@
|
|
|
2556
2556
|
// Inline function 'kotlin.contracts.contract' call
|
|
2557
2557
|
var tmp$ret$0;
|
|
2558
2558
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.NewObject3.computeOneSubstitution.<anonymous>.<anonymous>' call
|
|
2559
|
-
tmp$ret$0 = Companion_getInstance_13().
|
|
2559
|
+
tmp$ret$0 = Companion_getInstance_13().b2h(_this__u8e3s4, tmp2_safe_receiver, third);
|
|
2560
2560
|
tmp$ret$1 = tmp$ret$0;
|
|
2561
2561
|
tmp = tmp$ret$1;
|
|
2562
2562
|
}
|
|
@@ -2566,7 +2566,7 @@
|
|
|
2566
2566
|
break $l$block;
|
|
2567
2567
|
} catch ($p) {
|
|
2568
2568
|
if ($p instanceof OopException) {
|
|
2569
|
-
throw $p.
|
|
2569
|
+
throw $p.u3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2570
2570
|
} else {
|
|
2571
2571
|
if ($p instanceof Error) {
|
|
2572
2572
|
throw Companion_getInstance_14().forUncaughtKtException(_this__u8e3s4.context, $p);
|
|
@@ -2578,8 +2578,8 @@
|
|
|
2578
2578
|
}
|
|
2579
2579
|
return tmp$ret$3;
|
|
2580
2580
|
};
|
|
2581
|
-
NewObject3.prototype.
|
|
2582
|
-
return this.
|
|
2581
|
+
NewObject3.prototype.t2j = function (_this__u8e3s4, first, second, third) {
|
|
2582
|
+
return this.k2q(_this__u8e3s4, first, second, third);
|
|
2583
2583
|
};
|
|
2584
2584
|
var NewObject3_instance;
|
|
2585
2585
|
function NewObject3_getInstance() {
|
|
@@ -2591,7 +2591,7 @@
|
|
|
2591
2591
|
NullRef_instance = this;
|
|
2592
2592
|
TypeTester.call(this, 'null_ref');
|
|
2593
2593
|
}
|
|
2594
|
-
NullRef_0.prototype.
|
|
2594
|
+
NullRef_0.prototype.f2k = function (term) {
|
|
2595
2595
|
return isInterface(term, NullRef);
|
|
2596
2596
|
};
|
|
2597
2597
|
var NullRef_instance;
|
|
@@ -2604,7 +2604,7 @@
|
|
|
2604
2604
|
ObjectRef_instance = this;
|
|
2605
2605
|
TypeTester.call(this, 'object_ref');
|
|
2606
2606
|
}
|
|
2607
|
-
ObjectRef_0.prototype.
|
|
2607
|
+
ObjectRef_0.prototype.f2k = function (term) {
|
|
2608
2608
|
return isInterface(term, ObjectRef);
|
|
2609
2609
|
};
|
|
2610
2610
|
var ObjectRef_instance;
|
|
@@ -2637,11 +2637,11 @@
|
|
|
2637
2637
|
function get_termToObjectConverter(_this__u8e3s4) {
|
|
2638
2638
|
init_properties_PrimitiveExtensions_kt_j3o48p();
|
|
2639
2639
|
var tmp = Companion_getInstance_22();
|
|
2640
|
-
return tmp.
|
|
2640
|
+
return tmp.e3q(null, _get_termToObjectConverter_$lambda_4bacq4(_this__u8e3s4), 1, null);
|
|
2641
2641
|
}
|
|
2642
2642
|
function ensuringArgumentIsTypeRef(_this__u8e3s4, index) {
|
|
2643
2643
|
init_properties_PrimitiveExtensions_kt_j3o48p();
|
|
2644
|
-
var arg = _this__u8e3s4.arguments.
|
|
2644
|
+
var arg = _this__u8e3s4.arguments.o(index);
|
|
2645
2645
|
var tmp;
|
|
2646
2646
|
var tmp_0;
|
|
2647
2647
|
if (matchesDealiasingTemplate(_this__u8e3s4, arg)) {
|
|
@@ -2654,7 +2654,7 @@
|
|
|
2654
2654
|
tmp = _this__u8e3s4;
|
|
2655
2655
|
} else {
|
|
2656
2656
|
if (!isInterface(arg, TypeRef)) {
|
|
2657
|
-
throw Companion_getInstance_1().
|
|
2657
|
+
throw Companion_getInstance_1().v25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_TYPE_REFERENCE_getInstance(), arg, index);
|
|
2658
2658
|
} else {
|
|
2659
2659
|
tmp = _this__u8e3s4;
|
|
2660
2660
|
}
|
|
@@ -2663,14 +2663,14 @@
|
|
|
2663
2663
|
}
|
|
2664
2664
|
function getArgumentAsTypeRef(_this__u8e3s4, index) {
|
|
2665
2665
|
init_properties_PrimitiveExtensions_kt_j3o48p();
|
|
2666
|
-
Companion_getInstance_13().
|
|
2667
|
-
var arg = _this__u8e3s4.arguments.
|
|
2666
|
+
Companion_getInstance_13().l2h(_this__u8e3s4, index);
|
|
2667
|
+
var arg = _this__u8e3s4.arguments.o(index);
|
|
2668
2668
|
var tmp;
|
|
2669
2669
|
if (isInterface(arg, TypeRef)) {
|
|
2670
2670
|
tmp = arg;
|
|
2671
2671
|
} else {
|
|
2672
2672
|
if (isInterface(arg, Atom)) {
|
|
2673
|
-
tmp = Companion_getInstance_23().
|
|
2673
|
+
tmp = Companion_getInstance_23().g3q_1.n3q(arg.b1());
|
|
2674
2674
|
} else {
|
|
2675
2675
|
if (isDealiasingExpression(_this__u8e3s4, arg)) {
|
|
2676
2676
|
var tmp_0 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
@@ -2685,13 +2685,13 @@
|
|
|
2685
2685
|
}
|
|
2686
2686
|
function ensuringArgumentIsRef(_this__u8e3s4, index) {
|
|
2687
2687
|
init_properties_PrimitiveExtensions_kt_j3o48p();
|
|
2688
|
-
var arg = _this__u8e3s4.arguments.
|
|
2688
|
+
var arg = _this__u8e3s4.arguments.o(index);
|
|
2689
2689
|
var tmp;
|
|
2690
2690
|
if (matchesDealiasingTemplate(_this__u8e3s4, arg) ? ensureAliasIsRegistered(_this__u8e3s4, arg.castToStruct()) : false) {
|
|
2691
2691
|
tmp = _this__u8e3s4;
|
|
2692
2692
|
} else {
|
|
2693
2693
|
if (!isInterface(arg, Ref)) {
|
|
2694
|
-
throw Companion_getInstance_1().
|
|
2694
|
+
throw Companion_getInstance_1().v25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_REFERENCE_getInstance(), arg, index);
|
|
2695
2695
|
} else {
|
|
2696
2696
|
tmp = _this__u8e3s4;
|
|
2697
2697
|
}
|
|
@@ -2714,19 +2714,19 @@
|
|
|
2714
2714
|
var tmp_1 = Companion_getInstance_17();
|
|
2715
2715
|
Companion_getInstance_27();
|
|
2716
2716
|
var tmp_2 = tmp_1.of('alias', [actualAlias, ActualRef]);
|
|
2717
|
-
var tmp0_filterIsInstance = _this__u8e3s4.
|
|
2717
|
+
var tmp0_filterIsInstance = _this__u8e3s4.e2j(tmp_2, new Long(0, 0), 2, null);
|
|
2718
2718
|
var tmp_3 = filter(tmp0_filterIsInstance, findRefFromAliasOrNull$lambda);
|
|
2719
2719
|
tmp$ret$0 = isInterface(tmp_3, Sequence) ? tmp_3 : THROW_CCE();
|
|
2720
2720
|
var tmp0_safe_receiver = firstOrNull(tmp$ret$0);
|
|
2721
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2721
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1v();
|
|
2722
2722
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get(1);
|
|
2723
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2723
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.ww();
|
|
2724
2724
|
}
|
|
2725
2725
|
function matchesDealiasingTemplate(_this__u8e3s4, term) {
|
|
2726
2726
|
init_properties_PrimitiveExtensions_kt_j3o48p();
|
|
2727
2727
|
var tmp;
|
|
2728
2728
|
if (isInterface(term, Struct)) {
|
|
2729
|
-
tmp = Companion_getInstance_13().
|
|
2729
|
+
tmp = Companion_getInstance_13().c2h(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2730
2730
|
} else {
|
|
2731
2731
|
tmp = false;
|
|
2732
2732
|
}
|
|
@@ -2737,12 +2737,12 @@
|
|
|
2737
2737
|
var tmp;
|
|
2738
2738
|
var tmp_0;
|
|
2739
2739
|
if (isInterface(term, Struct)) {
|
|
2740
|
-
tmp_0 = Companion_getInstance_13().
|
|
2740
|
+
tmp_0 = Companion_getInstance_13().c2h(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2741
2741
|
} else {
|
|
2742
2742
|
tmp_0 = false;
|
|
2743
2743
|
}
|
|
2744
2744
|
if (tmp_0) {
|
|
2745
|
-
var tmp_1 = term.
|
|
2745
|
+
var tmp_1 = term.dw().o(0);
|
|
2746
2746
|
tmp = isInterface(tmp_1, Atom);
|
|
2747
2747
|
} else {
|
|
2748
2748
|
tmp = false;
|
|
@@ -2789,7 +2789,7 @@
|
|
|
2789
2789
|
Ref_instance = this;
|
|
2790
2790
|
TypeTester.call(this, 'ref');
|
|
2791
2791
|
}
|
|
2792
|
-
Ref_0.prototype.
|
|
2792
|
+
Ref_0.prototype.f2k = function (term) {
|
|
2793
2793
|
return isInterface(term, Ref);
|
|
2794
2794
|
};
|
|
2795
2795
|
var Ref_instance;
|
|
@@ -2802,8 +2802,8 @@
|
|
|
2802
2802
|
return function ($this$replySuccess) {
|
|
2803
2803
|
var tmp = Companion_getInstance_27();
|
|
2804
2804
|
var tmp_0 = isInterface($second, Struct) ? $second : THROW_CCE();
|
|
2805
|
-
var tmp_1 = [tmp.
|
|
2806
|
-
$this$replySuccess.
|
|
2805
|
+
var tmp_1 = [tmp.d3s(tmp_0, isInterface($first, Ref) ? $first : THROW_CCE()).g1u()];
|
|
2806
|
+
$this$replySuccess.v2m(tmp_1, false, 2, null);
|
|
2807
2807
|
return Unit_getInstance();
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
@@ -2811,17 +2811,17 @@
|
|
|
2811
2811
|
Register_instance = this;
|
|
2812
2812
|
NonBacktrackable.call(this, 'register');
|
|
2813
2813
|
}
|
|
2814
|
-
Register.prototype.
|
|
2815
|
-
Companion_getInstance_13().
|
|
2814
|
+
Register.prototype.x2p = function (_this__u8e3s4, first_0, second) {
|
|
2815
|
+
Companion_getInstance_13().y2f(_this__u8e3s4);
|
|
2816
2816
|
ensuringArgumentIsRef(_this__u8e3s4, 0);
|
|
2817
|
-
Companion_getInstance_13().
|
|
2818
|
-
if (!second.
|
|
2819
|
-
throw Companion_getInstance_18().
|
|
2817
|
+
Companion_getInstance_13().l2h(_this__u8e3s4, 1);
|
|
2818
|
+
if (!second.gx()) {
|
|
2819
|
+
throw Companion_getInstance_18().y26(_this__u8e3s4.context, _this__u8e3s4.signature, first(second.ew()), 0);
|
|
2820
2820
|
}
|
|
2821
|
-
return _this__u8e3s4.
|
|
2821
|
+
return _this__u8e3s4.b2j(null, null, Register$computeOne$lambda(second, first_0), 3, null);
|
|
2822
2822
|
};
|
|
2823
|
-
Register.prototype.
|
|
2824
|
-
return this.
|
|
2823
|
+
Register.prototype.a2g = function (_this__u8e3s4, first, second) {
|
|
2824
|
+
return this.x2p(_this__u8e3s4, first, second);
|
|
2825
2825
|
};
|
|
2826
2826
|
var Register_instance;
|
|
2827
2827
|
function Register_getInstance() {
|
|
@@ -2833,17 +2833,17 @@
|
|
|
2833
2833
|
SetItems_instance = this;
|
|
2834
2834
|
AbstractIterableItems.call(this, 'set', getKClass(Set));
|
|
2835
2835
|
}
|
|
2836
|
-
SetItems.prototype.
|
|
2836
|
+
SetItems.prototype.k3r = function (_this__u8e3s4) {
|
|
2837
2837
|
return toSet(_this__u8e3s4);
|
|
2838
2838
|
};
|
|
2839
|
-
SetItems.prototype.
|
|
2839
|
+
SetItems.prototype.l3r = function (_this__u8e3s4) {
|
|
2840
2840
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Set) : false;
|
|
2841
2841
|
};
|
|
2842
|
-
SetItems.prototype.
|
|
2842
|
+
SetItems.prototype.h3s = function (_this__u8e3s4) {
|
|
2843
2843
|
return asSequence_0(_this__u8e3s4);
|
|
2844
2844
|
};
|
|
2845
|
-
SetItems.prototype.
|
|
2846
|
-
return this.
|
|
2845
|
+
SetItems.prototype.m3r = function (_this__u8e3s4) {
|
|
2846
|
+
return this.h3s(isInterface(_this__u8e3s4, Set) ? _this__u8e3s4 : THROW_CCE());
|
|
2847
2847
|
};
|
|
2848
2848
|
var SetItems_instance;
|
|
2849
2849
|
function SetItems_getInstance() {
|
|
@@ -2854,9 +2854,9 @@
|
|
|
2854
2854
|
function Type() {
|
|
2855
2855
|
Type_instance = this;
|
|
2856
2856
|
Functional_0.call(this, 'type');
|
|
2857
|
-
this.
|
|
2857
|
+
this.j3s_1 = Companion_getInstance_23().g3q_1;
|
|
2858
2858
|
}
|
|
2859
|
-
Type.prototype.
|
|
2859
|
+
Type.prototype.h2q = function (_this__u8e3s4, first, second) {
|
|
2860
2860
|
var tmp$ret$3;
|
|
2861
2861
|
$l$block: {
|
|
2862
2862
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2871,20 +2871,20 @@
|
|
|
2871
2871
|
tmp_0 = false;
|
|
2872
2872
|
}
|
|
2873
2873
|
if (tmp_0) {
|
|
2874
|
-
Companion_getInstance_13().
|
|
2874
|
+
Companion_getInstance_13().h2h(_this__u8e3s4, 0);
|
|
2875
2875
|
tmp = Companion_getInstance_12().failed();
|
|
2876
2876
|
} else {
|
|
2877
2877
|
if (isInterface(first, Var)) {
|
|
2878
|
-
Companion_getInstance_13().
|
|
2878
|
+
Companion_getInstance_13().q2h(_this__u8e3s4, 1);
|
|
2879
2879
|
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2880
2880
|
var tmp_1 = Companion_getInstance_13();
|
|
2881
2881
|
var tmp_2 = Companion_getInstance_5();
|
|
2882
|
-
tmp = tmp_1.
|
|
2882
|
+
tmp = tmp_1.b2h(_this__u8e3s4, first, tmp_2.of(get_name((isInterface(second, TypeRef) ? second : THROW_CCE()).h25())));
|
|
2883
2883
|
} else {
|
|
2884
2884
|
if (isInterface(second, Var)) {
|
|
2885
|
-
Companion_getInstance_13().
|
|
2886
|
-
var tmp_3 = Type_getInstance().
|
|
2887
|
-
var tmp0_safe_receiver = tmp_3.
|
|
2885
|
+
Companion_getInstance_13().q2h(_this__u8e3s4, 0);
|
|
2886
|
+
var tmp_3 = Type_getInstance().j3s_1;
|
|
2887
|
+
var tmp0_safe_receiver = tmp_3.n3q((isInterface(first, Atom) ? first : THROW_CCE()).b1());
|
|
2888
2888
|
var tmp_4;
|
|
2889
2889
|
if (tmp0_safe_receiver == null) {
|
|
2890
2890
|
tmp_4 = null;
|
|
@@ -2894,14 +2894,14 @@
|
|
|
2894
2894
|
// Inline function 'kotlin.contracts.contract' call
|
|
2895
2895
|
var tmp$ret$0;
|
|
2896
2896
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.Type.computeOneSubstitution.<anonymous>.<anonymous>' call
|
|
2897
|
-
tmp$ret$0 = Companion_getInstance_13().
|
|
2897
|
+
tmp$ret$0 = Companion_getInstance_13().b2h(_this__u8e3s4, tmp0_safe_receiver, second);
|
|
2898
2898
|
tmp$ret$1 = tmp$ret$0;
|
|
2899
2899
|
tmp_4 = tmp$ret$1;
|
|
2900
2900
|
}
|
|
2901
2901
|
var tmp1_elvis_lhs = tmp_4;
|
|
2902
2902
|
tmp = tmp1_elvis_lhs == null ? Companion_getInstance_12().failed() : tmp1_elvis_lhs;
|
|
2903
2903
|
} else {
|
|
2904
|
-
Companion_getInstance_13().
|
|
2904
|
+
Companion_getInstance_13().q2h(_this__u8e3s4, 0);
|
|
2905
2905
|
tmp = Companion_getInstance_12().failed();
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
@@ -2911,7 +2911,7 @@
|
|
|
2911
2911
|
break $l$block;
|
|
2912
2912
|
} catch ($p) {
|
|
2913
2913
|
if ($p instanceof OopException) {
|
|
2914
|
-
throw $p.
|
|
2914
|
+
throw $p.u3q(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2915
2915
|
} else {
|
|
2916
2916
|
if ($p instanceof Error) {
|
|
2917
2917
|
throw Companion_getInstance_14().forUncaughtKtException(_this__u8e3s4.context, $p);
|
|
@@ -2923,8 +2923,8 @@
|
|
|
2923
2923
|
}
|
|
2924
2924
|
return tmp$ret$3;
|
|
2925
2925
|
};
|
|
2926
|
-
Type.prototype.
|
|
2927
|
-
return this.
|
|
2926
|
+
Type.prototype.k2g = function (_this__u8e3s4, first, second) {
|
|
2927
|
+
return this.h2q(_this__u8e3s4, first, second);
|
|
2928
2928
|
};
|
|
2929
2929
|
var Type_instance;
|
|
2930
2930
|
function Type_getInstance() {
|
|
@@ -2936,7 +2936,7 @@
|
|
|
2936
2936
|
TypeRef_instance = this;
|
|
2937
2937
|
TypeTester.call(this, 'type_ref');
|
|
2938
2938
|
}
|
|
2939
|
-
TypeRef_0.prototype.
|
|
2939
|
+
TypeRef_0.prototype.f2k = function (term) {
|
|
2940
2940
|
return isInterface(term, TypeRef);
|
|
2941
2941
|
};
|
|
2942
2942
|
var TypeRef_instance;
|
|
@@ -2947,12 +2947,12 @@
|
|
|
2947
2947
|
}
|
|
2948
2948
|
function Unregister$computeOne$lambda($first) {
|
|
2949
2949
|
return function (it) {
|
|
2950
|
-
return it.
|
|
2950
|
+
return it.iy().get(0).equals($first);
|
|
2951
2951
|
};
|
|
2952
2952
|
}
|
|
2953
2953
|
function Unregister$computeOne$lambda_0($toBeRemoved) {
|
|
2954
2954
|
return function ($this$replySuccess) {
|
|
2955
|
-
$this$replySuccess.
|
|
2955
|
+
$this$replySuccess.w2m($toBeRemoved);
|
|
2956
2956
|
return Unit_getInstance();
|
|
2957
2957
|
};
|
|
2958
2958
|
}
|
|
@@ -2960,26 +2960,26 @@
|
|
|
2960
2960
|
Unregister_instance = this;
|
|
2961
2961
|
NonBacktrackable_0.call(this, 'unregister');
|
|
2962
2962
|
}
|
|
2963
|
-
Unregister.prototype.
|
|
2964
|
-
Companion_getInstance_13().
|
|
2965
|
-
if (!first_0.
|
|
2966
|
-
throw Companion_getInstance_18().
|
|
2963
|
+
Unregister.prototype.g2p = function (_this__u8e3s4, first_0) {
|
|
2964
|
+
Companion_getInstance_13().l2h(_this__u8e3s4, 0);
|
|
2965
|
+
if (!first_0.gx()) {
|
|
2966
|
+
throw Companion_getInstance_18().y26(_this__u8e3s4.context, _this__u8e3s4.signature, first(first_0.ew()), 0);
|
|
2967
2967
|
}
|
|
2968
2968
|
var tmp = Companion_getInstance_17();
|
|
2969
2969
|
Companion_getInstance_27();
|
|
2970
2970
|
var pattern = tmp.of('alias', [first_0, Companion_getInstance_16().anonymous()]);
|
|
2971
|
-
var tmp_0 = _this__u8e3s4.context.
|
|
2971
|
+
var tmp_0 = _this__u8e3s4.context.v1u().getByHead(pattern);
|
|
2972
2972
|
var toBeRemoved = toList(filter(tmp_0, Unregister$computeOne$lambda(first_0)));
|
|
2973
2973
|
var tmp_1;
|
|
2974
2974
|
if (toBeRemoved.d()) {
|
|
2975
|
-
tmp_1 = _this__u8e3s4.
|
|
2975
|
+
tmp_1 = _this__u8e3s4.l2g(null, [], 3, null);
|
|
2976
2976
|
} else {
|
|
2977
|
-
tmp_1 = _this__u8e3s4.
|
|
2977
|
+
tmp_1 = _this__u8e3s4.b2j(null, null, Unregister$computeOne$lambda_0(toBeRemoved), 3, null);
|
|
2978
2978
|
}
|
|
2979
2979
|
return tmp_1;
|
|
2980
2980
|
};
|
|
2981
|
-
Unregister.prototype.
|
|
2982
|
-
return this.
|
|
2981
|
+
Unregister.prototype.a2k = function (_this__u8e3s4, first) {
|
|
2982
|
+
return this.g2p(_this__u8e3s4, first);
|
|
2983
2983
|
};
|
|
2984
2984
|
var Unregister_instance;
|
|
2985
2985
|
function Unregister_getInstance() {
|
|
@@ -2989,12 +2989,12 @@
|
|
|
2989
2989
|
}
|
|
2990
2990
|
function Companion_7() {
|
|
2991
2991
|
Companion_instance_7 = this;
|
|
2992
|
-
this.
|
|
2992
|
+
this.r3p_1 = 'alias';
|
|
2993
2993
|
}
|
|
2994
|
-
Companion_7.prototype.
|
|
2995
|
-
return new Alias(Companion_getInstance_5().of(alias), Companion_getInstance_24().
|
|
2994
|
+
Companion_7.prototype.s3p = function (alias, type) {
|
|
2995
|
+
return new Alias(Companion_getInstance_5().of(alias), Companion_getInstance_24().l3q(type));
|
|
2996
2996
|
};
|
|
2997
|
-
Companion_7.prototype.
|
|
2997
|
+
Companion_7.prototype.d3s = function (alias, ref) {
|
|
2998
2998
|
return new Alias(alias, ref);
|
|
2999
2999
|
};
|
|
3000
3000
|
var Companion_instance_7;
|
|
@@ -3007,66 +3007,66 @@
|
|
|
3007
3007
|
Companion_getInstance_27();
|
|
3008
3008
|
Companion_getInstance_27();
|
|
3009
3009
|
RuleWrapper_init_$Init$('alias', 2, false, 4, null, this);
|
|
3010
|
-
this.
|
|
3011
|
-
this.
|
|
3010
|
+
this.p3s_1 = alias;
|
|
3011
|
+
this.q3s_1 = ref;
|
|
3012
3012
|
// Inline function 'kotlin.require' call
|
|
3013
|
-
var tmp0_require = this.
|
|
3013
|
+
var tmp0_require = this.p3s_1.gx();
|
|
3014
3014
|
// Inline function 'kotlin.contracts.contract' call
|
|
3015
3015
|
if (!tmp0_require) {
|
|
3016
3016
|
var tmp$ret$0;
|
|
3017
3017
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.rules.Alias.<anonymous>' call
|
|
3018
|
-
tmp$ret$0 = 'Alias must be a ground term, got: ' + this.
|
|
3018
|
+
tmp$ret$0 = 'Alias must be a ground term, got: ' + this.p3s_1;
|
|
3019
3019
|
var message = tmp$ret$0;
|
|
3020
3020
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
|
-
Alias.prototype.
|
|
3024
|
-
return toList(sequenceOf([this.
|
|
3023
|
+
Alias.prototype.g2k = function (_this__u8e3s4) {
|
|
3024
|
+
return toList(sequenceOf([this.p3s_1, this.q3s_1]));
|
|
3025
3025
|
};
|
|
3026
3026
|
function _get_R__7mlo3j($this) {
|
|
3027
|
-
return $this.
|
|
3027
|
+
return $this.u3s_1.h1i($this, R$factory());
|
|
3028
3028
|
}
|
|
3029
3029
|
function _get_X__7mlo8p($this) {
|
|
3030
|
-
return $this.
|
|
3030
|
+
return $this.v3s_1.h1i($this, X$factory());
|
|
3031
3031
|
}
|
|
3032
3032
|
function _get_Y__7mlo9k($this) {
|
|
3033
|
-
return $this.
|
|
3033
|
+
return $this.w3s_1.h1i($this, Y$factory());
|
|
3034
3034
|
}
|
|
3035
3035
|
function _get_T__7mlo59($this) {
|
|
3036
|
-
return $this.
|
|
3036
|
+
return $this.x3s_1.h1i($this, T$factory());
|
|
3037
3037
|
}
|
|
3038
3038
|
function _get_R__7mlo3j_0($this) {
|
|
3039
|
-
return $this.
|
|
3039
|
+
return $this.b3t_1.h1i($this, R$factory_0());
|
|
3040
3040
|
}
|
|
3041
3041
|
function _get_M__7mlnz8($this) {
|
|
3042
|
-
return $this.
|
|
3042
|
+
return $this.c3t_1.h1i($this, M$factory());
|
|
3043
3043
|
}
|
|
3044
3044
|
function _get_C__7mlnqm($this) {
|
|
3045
|
-
return $this.
|
|
3045
|
+
return $this.g3t_1.h1i($this, C$factory());
|
|
3046
3046
|
}
|
|
3047
3047
|
function _get_P__7mlo1t($this) {
|
|
3048
|
-
return $this.
|
|
3048
|
+
return $this.h3t_1.h1i($this, P$factory());
|
|
3049
3049
|
}
|
|
3050
3050
|
function _get_R__7mlo3j_1($this) {
|
|
3051
|
-
return $this.
|
|
3051
|
+
return $this.i3t_1.h1i($this, R$factory_1());
|
|
3052
3052
|
}
|
|
3053
3053
|
function _get_V__7mlo6z($this) {
|
|
3054
|
-
return $this.
|
|
3054
|
+
return $this.j3t_1.h1i($this, V$factory());
|
|
3055
3055
|
}
|
|
3056
3056
|
function Cast_0() {
|
|
3057
3057
|
Cast_instance_0 = this;
|
|
3058
3058
|
ColonEquals.call(this);
|
|
3059
|
-
this.
|
|
3060
|
-
this.
|
|
3061
|
-
this.
|
|
3062
|
-
this.
|
|
3059
|
+
this.u3s_1 = this.d1z_1;
|
|
3060
|
+
this.v3s_1 = this.d1z_1;
|
|
3061
|
+
this.w3s_1 = this.d1z_1;
|
|
3062
|
+
this.x3s_1 = this.d1z_1;
|
|
3063
3063
|
}
|
|
3064
|
-
Cast_0.prototype.
|
|
3064
|
+
Cast_0.prototype.g2k = function (_this__u8e3s4) {
|
|
3065
3065
|
var tmp = _get_R__7mlo3j(this);
|
|
3066
3066
|
OOP_getInstance();
|
|
3067
3067
|
return _this__u8e3s4.ktListOf([tmp, _this__u8e3s4.structOf('as', [_get_X__7mlo8p(this), _get_T__7mlo59(this)])]);
|
|
3068
3068
|
};
|
|
3069
|
-
Cast_0.prototype.
|
|
3069
|
+
Cast_0.prototype.h2k = function (_this__u8e3s4) {
|
|
3070
3070
|
var tmp$ret$0;
|
|
3071
3071
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3072
3072
|
var tmp0__get_functor__thl4dk = Var_getInstance();
|
|
@@ -3090,13 +3090,13 @@
|
|
|
3090
3090
|
function Invocation() {
|
|
3091
3091
|
Invocation_instance = this;
|
|
3092
3092
|
ColonEquals.call(this);
|
|
3093
|
-
this.
|
|
3094
|
-
this.
|
|
3093
|
+
this.b3t_1 = this.d1z_1;
|
|
3094
|
+
this.c3t_1 = this.d1z_1;
|
|
3095
3095
|
}
|
|
3096
|
-
Invocation.prototype.
|
|
3096
|
+
Invocation.prototype.g2k = function (_this__u8e3s4) {
|
|
3097
3097
|
return listOf([_get_R__7mlo3j_0(this), _get_M__7mlnz8(this)]);
|
|
3098
3098
|
};
|
|
3099
|
-
Invocation.prototype.
|
|
3099
|
+
Invocation.prototype.h2k = function (_this__u8e3s4) {
|
|
3100
3100
|
var tmp$ret$0;
|
|
3101
3101
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3102
3102
|
var tmp0__get_functor__thl4dk = Var_getInstance();
|
|
@@ -3115,15 +3115,15 @@
|
|
|
3115
3115
|
function Assignment() {
|
|
3116
3116
|
Assignment_instance = this;
|
|
3117
3117
|
ColonEquals.call(this);
|
|
3118
|
-
this.
|
|
3119
|
-
this.
|
|
3120
|
-
this.
|
|
3121
|
-
this.
|
|
3118
|
+
this.g3t_1 = this.d1z_1;
|
|
3119
|
+
this.h3t_1 = this.d1z_1;
|
|
3120
|
+
this.i3t_1 = this.d1z_1;
|
|
3121
|
+
this.j3t_1 = this.d1z_1;
|
|
3122
3122
|
}
|
|
3123
|
-
Assignment.prototype.
|
|
3123
|
+
Assignment.prototype.g2k = function (_this__u8e3s4) {
|
|
3124
3124
|
return listOf([_get_C__7mlnqm(this), _get_V__7mlo6z(this)]);
|
|
3125
3125
|
};
|
|
3126
|
-
Assignment.prototype.
|
|
3126
|
+
Assignment.prototype.h2k = function (_this__u8e3s4) {
|
|
3127
3127
|
Companion_getInstance_29();
|
|
3128
3128
|
var tmp = _this__u8e3s4.structOf('property_reduce', [_get_C__7mlnqm(this), _get_R__7mlo3j_1(this), _get_P__7mlo1t(this)]);
|
|
3129
3129
|
var tmp$ret$0;
|
|
@@ -3193,24 +3193,24 @@
|
|
|
3193
3193
|
}, null);
|
|
3194
3194
|
}
|
|
3195
3195
|
function _get_Method__a3idyi($this) {
|
|
3196
|
-
return $this.
|
|
3196
|
+
return $this.n3t_1.h1i($this, Method$factory());
|
|
3197
3197
|
}
|
|
3198
3198
|
function _get_Ref__e5vi4e($this) {
|
|
3199
|
-
return $this.
|
|
3199
|
+
return $this.o3t_1.h1i($this, Ref$factory());
|
|
3200
3200
|
}
|
|
3201
3201
|
function Dot() {
|
|
3202
3202
|
Dot_instance = this;
|
|
3203
3203
|
OOP_getInstance();
|
|
3204
3204
|
RuleWrapper_init_$Init$('.', 2, false, 4, null, this);
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3205
|
+
this.n3t_1 = this.d1z_1;
|
|
3206
|
+
this.o3t_1 = this.d1z_1;
|
|
3207
3207
|
}
|
|
3208
|
-
Dot.prototype.
|
|
3208
|
+
Dot.prototype.g2k = function (_this__u8e3s4) {
|
|
3209
3209
|
return listOf([_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)]);
|
|
3210
3210
|
};
|
|
3211
|
-
Dot.prototype.
|
|
3211
|
+
Dot.prototype.h2k = function (_this__u8e3s4) {
|
|
3212
3212
|
Companion_getInstance_28();
|
|
3213
|
-
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.
|
|
3213
|
+
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.t11()]);
|
|
3214
3214
|
};
|
|
3215
3215
|
var Dot_instance;
|
|
3216
3216
|
function Dot_getInstance() {
|
|
@@ -3229,27 +3229,27 @@
|
|
|
3229
3229
|
}, null);
|
|
3230
3230
|
}
|
|
3231
3231
|
function _get_P__7mlo1t_0($this) {
|
|
3232
|
-
return $this.
|
|
3232
|
+
return $this.t3t_1.h1i($this, P$factory_0());
|
|
3233
3233
|
}
|
|
3234
3234
|
function _get_M__7mlnz8_0($this) {
|
|
3235
|
-
return $this.
|
|
3235
|
+
return $this.u3t_1.h1i($this, M$factory_0());
|
|
3236
3236
|
}
|
|
3237
3237
|
function _get_P1__ndbjd6($this) {
|
|
3238
|
-
return $this.
|
|
3238
|
+
return $this.v3t_1.h1i($this, P1$factory());
|
|
3239
3239
|
}
|
|
3240
3240
|
function _get_X__7mlo8p_0($this) {
|
|
3241
|
-
return $this.
|
|
3241
|
+
return $this.w3t_1.h1i($this, X$factory_0());
|
|
3242
3242
|
}
|
|
3243
3243
|
function _get_P__7mlo1t_1($this) {
|
|
3244
|
-
return $this.
|
|
3244
|
+
return $this.b3u_1.h1i($this, P$factory_1());
|
|
3245
3245
|
}
|
|
3246
3246
|
function _get_M__7mlnz8_1($this) {
|
|
3247
|
-
return $this.
|
|
3247
|
+
return $this.c3u_1.h1i($this, M$factory_1());
|
|
3248
3248
|
}
|
|
3249
3249
|
function Companion_8() {
|
|
3250
3250
|
Companion_instance_8 = this;
|
|
3251
|
-
this.
|
|
3252
|
-
this.
|
|
3251
|
+
this.d3u_1 = 'fluent_reduce';
|
|
3252
|
+
this.e3u_1 = 2;
|
|
3253
3253
|
}
|
|
3254
3254
|
var Companion_instance_8;
|
|
3255
3255
|
function Companion_getInstance_28() {
|
|
@@ -3260,15 +3260,15 @@
|
|
|
3260
3260
|
function Recursive() {
|
|
3261
3261
|
Recursive_instance = this;
|
|
3262
3262
|
FluentReduce.call(this);
|
|
3263
|
-
this.
|
|
3264
|
-
this.
|
|
3265
|
-
this.
|
|
3266
|
-
this.
|
|
3263
|
+
this.t3t_1 = this.d1z_1;
|
|
3264
|
+
this.u3t_1 = this.d1z_1;
|
|
3265
|
+
this.v3t_1 = this.d1z_1;
|
|
3266
|
+
this.w3t_1 = this.d1z_1;
|
|
3267
3267
|
}
|
|
3268
|
-
Recursive.prototype.
|
|
3269
|
-
return listOf([_this__u8e3s4.
|
|
3268
|
+
Recursive.prototype.g2k = function (_this__u8e3s4) {
|
|
3269
|
+
return listOf([_this__u8e3s4.u11([_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this)], _get_X__7mlo8p_0(this)), this.j3u()]);
|
|
3270
3270
|
};
|
|
3271
|
-
Recursive.prototype.
|
|
3271
|
+
Recursive.prototype.h2k = function (_this__u8e3s4) {
|
|
3272
3272
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3273
3273
|
var tmp$ret$0;
|
|
3274
3274
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
@@ -3276,7 +3276,7 @@
|
|
|
3276
3276
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
3277
3277
|
var tmp_0 = _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this), _get_P1__ndbjd6(this)]);
|
|
3278
3278
|
Companion_getInstance_28();
|
|
3279
|
-
return _this__u8e3s4.tupleOf([tmp, tmp_0, _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_P1__ndbjd6(this), _get_X__7mlo8p_0(this)), this.
|
|
3279
|
+
return _this__u8e3s4.tupleOf([tmp, tmp_0, _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_P1__ndbjd6(this), _get_X__7mlo8p_0(this)), this.j3u()])]);
|
|
3280
3280
|
};
|
|
3281
3281
|
var Recursive_instance;
|
|
3282
3282
|
function Recursive_getInstance() {
|
|
@@ -3287,19 +3287,19 @@
|
|
|
3287
3287
|
function Couple() {
|
|
3288
3288
|
Couple_instance = this;
|
|
3289
3289
|
FluentReduce.call(this);
|
|
3290
|
-
this.
|
|
3291
|
-
this.
|
|
3290
|
+
this.b3u_1 = this.d1z_1;
|
|
3291
|
+
this.c3u_1 = this.d1z_1;
|
|
3292
3292
|
}
|
|
3293
|
-
Couple.prototype.
|
|
3294
|
-
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.
|
|
3293
|
+
Couple.prototype.g2k = function (_this__u8e3s4) {
|
|
3294
|
+
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.j3u()]);
|
|
3295
3295
|
};
|
|
3296
|
-
Couple.prototype.
|
|
3296
|
+
Couple.prototype.h2k = function (_this__u8e3s4) {
|
|
3297
3297
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3298
3298
|
var tmp$ret$0;
|
|
3299
3299
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3300
3300
|
var tmp0__get_functor__thl4dk = InvokeMethod_getInstance();
|
|
3301
3301
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
3302
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.
|
|
3302
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.j3u()])]);
|
|
3303
3303
|
};
|
|
3304
3304
|
var Couple_instance;
|
|
3305
3305
|
function Couple_getInstance() {
|
|
@@ -3311,8 +3311,8 @@
|
|
|
3311
3311
|
Trivial_instance = this;
|
|
3312
3312
|
FluentReduce.call(this);
|
|
3313
3313
|
}
|
|
3314
|
-
Trivial.prototype.
|
|
3315
|
-
return listOf([this.
|
|
3314
|
+
Trivial.prototype.g2k = function (_this__u8e3s4) {
|
|
3315
|
+
return listOf([this.j3u(), this.j3u()]);
|
|
3316
3316
|
};
|
|
3317
3317
|
var Trivial_instance;
|
|
3318
3318
|
function Trivial_getInstance() {
|
|
@@ -3325,17 +3325,17 @@
|
|
|
3325
3325
|
Companion_getInstance_28();
|
|
3326
3326
|
Companion_getInstance_28();
|
|
3327
3327
|
RuleWrapper_init_$Init$('fluent_reduce', 2, false, 4, null, this);
|
|
3328
|
-
this.
|
|
3328
|
+
this.i3u_1 = this.d1z_1;
|
|
3329
3329
|
}
|
|
3330
|
-
FluentReduce.prototype.
|
|
3331
|
-
return this.
|
|
3330
|
+
FluentReduce.prototype.j3u = function () {
|
|
3331
|
+
return this.i3u_1.h1i(this, R$factory_2());
|
|
3332
3332
|
};
|
|
3333
|
-
FluentReduce.prototype.
|
|
3333
|
+
FluentReduce.prototype.h2k = function (_this__u8e3s4) {
|
|
3334
3334
|
return _this__u8e3s4.atomOf('!');
|
|
3335
3335
|
};
|
|
3336
3336
|
function R$factory_2() {
|
|
3337
3337
|
return getPropertyCallableRef('R', 1, KProperty1, function (receiver) {
|
|
3338
|
-
return receiver.
|
|
3338
|
+
return receiver.j3u();
|
|
3339
3339
|
}, null);
|
|
3340
3340
|
}
|
|
3341
3341
|
function P$factory_0() {
|
|
@@ -3369,10 +3369,10 @@
|
|
|
3369
3369
|
}, null);
|
|
3370
3370
|
}
|
|
3371
3371
|
function _get_Type__cwwv8x($this) {
|
|
3372
|
-
return $this.
|
|
3372
|
+
return $this.r3u_1.h1i($this, Type$factory());
|
|
3373
3373
|
}
|
|
3374
3374
|
function _get_Instance__cwfjuy($this) {
|
|
3375
|
-
return $this.
|
|
3375
|
+
return $this.s3u_1.h1i($this, Instance$factory());
|
|
3376
3376
|
}
|
|
3377
3377
|
function NewObject2() {
|
|
3378
3378
|
NewObject2_instance = this;
|
|
@@ -3382,18 +3382,18 @@
|
|
|
3382
3382
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
3383
3383
|
var tmp = tmp$ret$0;
|
|
3384
3384
|
RuleWrapper_init_$Init$(tmp, 2, false, 4, null, this);
|
|
3385
|
-
this.
|
|
3386
|
-
this.
|
|
3385
|
+
this.r3u_1 = this.d1z_1;
|
|
3386
|
+
this.s3u_1 = this.d1z_1;
|
|
3387
3387
|
}
|
|
3388
|
-
NewObject2.prototype.
|
|
3388
|
+
NewObject2.prototype.g2k = function (_this__u8e3s4) {
|
|
3389
3389
|
return listOf([_get_Type__cwwv8x(this), _get_Instance__cwfjuy(this)]);
|
|
3390
3390
|
};
|
|
3391
|
-
NewObject2.prototype.
|
|
3391
|
+
NewObject2.prototype.h2k = function (_this__u8e3s4) {
|
|
3392
3392
|
var tmp$ret$0;
|
|
3393
3393
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3394
3394
|
var tmp0__get_functor__thl4dk = NewObject3_getInstance();
|
|
3395
3395
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
3396
|
-
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.
|
|
3396
|
+
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.s11(), _get_Instance__cwfjuy(this)]);
|
|
3397
3397
|
};
|
|
3398
3398
|
var NewObject2_instance;
|
|
3399
3399
|
function NewObject2_getInstance() {
|
|
@@ -3412,21 +3412,21 @@
|
|
|
3412
3412
|
}, null);
|
|
3413
3413
|
}
|
|
3414
3414
|
function _get_B1__ndb8zg($this) {
|
|
3415
|
-
return $this.
|
|
3415
|
+
return $this.y3u_1.h1i($this, B1$factory());
|
|
3416
3416
|
}
|
|
3417
3417
|
function _get_C__7mlnqm_0($this) {
|
|
3418
|
-
return $this.
|
|
3418
|
+
return $this.z3u_1.h1i($this, C$factory_0());
|
|
3419
3419
|
}
|
|
3420
3420
|
function _get_O__7mlo0y($this) {
|
|
3421
|
-
return $this.
|
|
3421
|
+
return $this.a3v_1.h1i($this, O$factory());
|
|
3422
3422
|
}
|
|
3423
3423
|
function _get_P__7mlo1t_2($this) {
|
|
3424
|
-
return $this.
|
|
3424
|
+
return $this.b3v_1.h1i($this, P$factory_2());
|
|
3425
3425
|
}
|
|
3426
3426
|
function Companion_9() {
|
|
3427
3427
|
Companion_instance_9 = this;
|
|
3428
|
-
this.
|
|
3429
|
-
this.
|
|
3428
|
+
this.c3v_1 = 'property_reduce';
|
|
3429
|
+
this.d3v_1 = 3;
|
|
3430
3430
|
}
|
|
3431
3431
|
var Companion_instance_9;
|
|
3432
3432
|
function Companion_getInstance_29() {
|
|
@@ -3437,21 +3437,21 @@
|
|
|
3437
3437
|
function Recursive_0() {
|
|
3438
3438
|
Recursive_instance_0 = this;
|
|
3439
3439
|
PropertyReduce.call(this);
|
|
3440
|
-
this.
|
|
3441
|
-
this.
|
|
3442
|
-
this.
|
|
3443
|
-
this.
|
|
3440
|
+
this.y3u_1 = this.d1z_1;
|
|
3441
|
+
this.z3u_1 = this.d1z_1;
|
|
3442
|
+
this.a3v_1 = this.d1z_1;
|
|
3443
|
+
this.b3v_1 = this.d1z_1;
|
|
3444
3444
|
}
|
|
3445
|
-
Recursive_0.prototype.
|
|
3446
|
-
return listOf([_this__u8e3s4.
|
|
3445
|
+
Recursive_0.prototype.g2k = function (_this__u8e3s4) {
|
|
3446
|
+
return listOf([_this__u8e3s4.u11([this.j3v(), this.k3v()], _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)]);
|
|
3447
3447
|
};
|
|
3448
|
-
Recursive_0.prototype.
|
|
3448
|
+
Recursive_0.prototype.h2k = function (_this__u8e3s4) {
|
|
3449
3449
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3450
3450
|
var tmp$ret$0;
|
|
3451
3451
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3452
3452
|
var tmp0__get_functor__thl4dk = InvokeMethod_getInstance();
|
|
3453
3453
|
tmp$ret$0 = tmp0__get_functor__thl4dk.signature.name;
|
|
3454
|
-
var tmp_0 = _this__u8e3s4.structOf(tmp$ret$0, [this.
|
|
3454
|
+
var tmp_0 = _this__u8e3s4.structOf(tmp$ret$0, [this.j3v(), this.k3v(), _get_B1__ndb8zg(this)]);
|
|
3455
3455
|
Companion_getInstance_29();
|
|
3456
3456
|
return _this__u8e3s4.tupleOf([tmp, tmp_0, _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)])]);
|
|
3457
3457
|
};
|
|
@@ -3465,8 +3465,8 @@
|
|
|
3465
3465
|
Base_instance = this;
|
|
3466
3466
|
PropertyReduce.call(this);
|
|
3467
3467
|
}
|
|
3468
|
-
Base.prototype.
|
|
3469
|
-
return listOf([_this__u8e3s4.consOf(this.
|
|
3468
|
+
Base.prototype.g2k = function (_this__u8e3s4) {
|
|
3469
|
+
return listOf([_this__u8e3s4.consOf(this.j3v(), this.k3v()), this.j3v(), this.k3v()]);
|
|
3470
3470
|
};
|
|
3471
3471
|
var Base_instance;
|
|
3472
3472
|
function Base_getInstance() {
|
|
@@ -3479,26 +3479,26 @@
|
|
|
3479
3479
|
Companion_getInstance_29();
|
|
3480
3480
|
Companion_getInstance_29();
|
|
3481
3481
|
RuleWrapper_init_$Init$('property_reduce', 3, false, 4, null, this);
|
|
3482
|
-
this.
|
|
3483
|
-
this.
|
|
3482
|
+
this.h3v_1 = this.d1z_1;
|
|
3483
|
+
this.i3v_1 = this.d1z_1;
|
|
3484
3484
|
}
|
|
3485
|
-
PropertyReduce.prototype.
|
|
3486
|
-
return this.
|
|
3485
|
+
PropertyReduce.prototype.j3v = function () {
|
|
3486
|
+
return this.h3v_1.h1i(this, A$factory());
|
|
3487
3487
|
};
|
|
3488
|
-
PropertyReduce.prototype.
|
|
3489
|
-
return this.
|
|
3488
|
+
PropertyReduce.prototype.k3v = function () {
|
|
3489
|
+
return this.i3v_1.h1i(this, B$factory());
|
|
3490
3490
|
};
|
|
3491
|
-
PropertyReduce.prototype.
|
|
3491
|
+
PropertyReduce.prototype.h2k = function (_this__u8e3s4) {
|
|
3492
3492
|
return _this__u8e3s4.atomOf('!');
|
|
3493
3493
|
};
|
|
3494
3494
|
function A$factory() {
|
|
3495
3495
|
return getPropertyCallableRef('A', 1, KProperty1, function (receiver) {
|
|
3496
|
-
return receiver.
|
|
3496
|
+
return receiver.j3v();
|
|
3497
3497
|
}, null);
|
|
3498
3498
|
}
|
|
3499
3499
|
function B$factory() {
|
|
3500
3500
|
return getPropertyCallableRef('B', 1, KProperty1, function (receiver) {
|
|
3501
|
-
return receiver.
|
|
3501
|
+
return receiver.k3v();
|
|
3502
3502
|
}, null);
|
|
3503
3503
|
}
|
|
3504
3504
|
function B1$factory() {
|
|
@@ -3555,7 +3555,7 @@
|
|
|
3555
3555
|
}
|
|
3556
3556
|
function get_companionObjectRef(_this__u8e3s4) {
|
|
3557
3557
|
init_properties_TypeUtilsJs_kt_pjy9o4();
|
|
3558
|
-
return Companion_getInstance().
|
|
3558
|
+
return Companion_getInstance().lq();
|
|
3559
3559
|
}
|
|
3560
3560
|
function kClassFromName(qualifiedName) {
|
|
3561
3561
|
init_properties_TypeUtilsJs_kt_pjy9o4();
|
|
@@ -3570,8 +3570,8 @@
|
|
|
3570
3570
|
var message = tmp$ret$0;
|
|
3571
3571
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
3572
3572
|
}
|
|
3573
|
-
var module_0 = ensureNotNull(match.l9().
|
|
3574
|
-
var tmp = ensureNotNull(match.l9().
|
|
3573
|
+
var module_0 = ensureNotNull(match.l9().o(1)).qf_1;
|
|
3574
|
+
var tmp = ensureNotNull(match.l9().o(2)).qf_1;
|
|
3575
3575
|
var tmp_0 = charArrayOf([_Char___init__impl__6a9atx(46)]);
|
|
3576
3576
|
var packageSteps = split$default(tmp, tmp_0, false, 0, 6, null);
|
|
3577
3577
|
var kClass = require(module_0);
|
|
@@ -3580,7 +3580,7 @@
|
|
|
3580
3580
|
var tmp1_let = packageSteps.j();
|
|
3581
3581
|
// Inline function 'kotlin.contracts.contract' call
|
|
3582
3582
|
while ((tmp1_let.m() ? kClass != null : false) ? kClass != undefined : false) {
|
|
3583
|
-
kClass = kClass[tmp1_let.
|
|
3583
|
+
kClass = kClass[tmp1_let.n()];
|
|
3584
3584
|
}
|
|
3585
3585
|
tmp$ret$1 = Unit_getInstance();
|
|
3586
3586
|
var tmp_1;
|
|
@@ -3590,9 +3590,9 @@
|
|
|
3590
3590
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3591
3591
|
var tmp2_unsafeCast = kClass;
|
|
3592
3592
|
tmp$ret$2 = tmp2_unsafeCast;
|
|
3593
|
-
tmp_1 = tmp_2.
|
|
3593
|
+
tmp_1 = tmp_2.ct(get_kotlin(tmp$ret$2));
|
|
3594
3594
|
} else {
|
|
3595
|
-
tmp_1 = Companion_getInstance().
|
|
3595
|
+
tmp_1 = Companion_getInstance().lq();
|
|
3596
3596
|
}
|
|
3597
3597
|
return tmp_1;
|
|
3598
3598
|
}
|
|
@@ -3638,14 +3638,14 @@
|
|
|
3638
3638
|
OOPLib.prototype.containsOperator = containsOperator;
|
|
3639
3639
|
OOPLib.prototype.hasPrimitive = hasPrimitive;
|
|
3640
3640
|
OOPLib.prototype.hasFunction = hasFunction;
|
|
3641
|
-
OOPLib.prototype.
|
|
3641
|
+
OOPLib.prototype.m2e = get_ruleSignatures;
|
|
3642
3642
|
OOPLib.prototype.hasProtected = hasProtected;
|
|
3643
|
-
NullRefImpl.prototype.
|
|
3644
|
-
NullRefImpl.prototype.
|
|
3645
|
-
NullRefImpl.prototype.
|
|
3646
|
-
TermToObjectConverterImpl.prototype.
|
|
3647
|
-
TypeFactoryImpl.prototype.
|
|
3648
|
-
TypeRefImpl.prototype.
|
|
3643
|
+
NullRefImpl.prototype.i3p = get_object;
|
|
3644
|
+
NullRefImpl.prototype.j3p = invoke;
|
|
3645
|
+
NullRefImpl.prototype.k3p = assign;
|
|
3646
|
+
TermToObjectConverterImpl.prototype.k3q = convert;
|
|
3647
|
+
TypeFactoryImpl.prototype.n3q = typeRefFromName;
|
|
3648
|
+
TypeRefImpl.prototype.o3q = create;
|
|
3649
3649
|
//endregion
|
|
3650
3650
|
//region block: init
|
|
3651
3651
|
id = '[a-zA-Z_][a-zA-Z0-9_]*';
|