@tuprolog/arg2p 0.16.2 → 0.16.4
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-core.js +3214 -3035
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +303 -303
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +251 -251
- package/2p-dsl-theory.js +159 -159
- package/2p-dsl-unify.js +6 -6
- package/2p-io-lib.js +3496 -0
- package/2p-io-lib.js.map +1 -0
- package/2p-parser-core.js +124 -123
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1480 -1389
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +89 -88
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1004 -1004
- package/2p-solve.js +3934 -3465
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1423 -1423
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +349 -349
- package/2p-utils.js +391 -391
- package/README.md +59 -12
- package/arg2p-causality-solver.js +151 -151
- package/arg2p-core.js +1791 -1743
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +95 -95
- package/kotlin-kotlin-stdlib.js +2583 -1714
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1531 -1531
- package/okio-parent-okio-nodefilesystem.js +211 -0
- package/okio-parent-okio-nodefilesystem.js.map +1 -0
- package/okio-parent-okio.js +3873 -0
- package/okio-parent-okio.js.map +1 -0
- package/package.json +5 -2
package/2p-dsl-core.js
CHANGED
|
@@ -21,78 +21,78 @@
|
|
|
21
21
|
}(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils, kotlin_io_github_gciatto_kt_math) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
25
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
26
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
27
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var toString = kotlin_kotlin.$_$.
|
|
30
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
31
|
-
var Term = kotlin_it_unibo_tuprolog_core.$_$.
|
|
32
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
33
|
-
var TermConvertible = kotlin_it_unibo_tuprolog_core.$_$.
|
|
34
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
35
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
36
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.bc;
|
|
25
|
+
var Unit_instance = kotlin_kotlin.$_$.p;
|
|
26
|
+
var constructCallableReference = kotlin_kotlin.$_$.s6;
|
|
27
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.o7;
|
|
29
|
+
var toString = kotlin_kotlin.$_$.r7;
|
|
30
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
31
|
+
var Term = kotlin_it_unibo_tuprolog_core.$_$.a3;
|
|
32
|
+
var isInterface = kotlin_kotlin.$_$.i7;
|
|
33
|
+
var TermConvertible = kotlin_it_unibo_tuprolog_core.$_$.d2;
|
|
34
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.g8;
|
|
35
|
+
var getKClass = kotlin_kotlin.$_$.h8;
|
|
36
|
+
var toString_0 = kotlin_kotlin.$_$.h;
|
|
37
37
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
38
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
38
|
+
var asIterable = kotlin_kotlin.$_$.g2;
|
|
39
39
|
var assertItemsAreNotNull = kotlin_it_unibo_tuprolog_utils.$_$.s;
|
|
40
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
41
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.o2;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
42
42
|
var assertItemsAreNotNull_0 = kotlin_it_unibo_tuprolog_utils.$_$.r;
|
|
43
|
-
var map = kotlin_kotlin.$_$.
|
|
43
|
+
var map = kotlin_kotlin.$_$.i9;
|
|
44
44
|
var assertItemsAreNotNull_1 = kotlin_it_unibo_tuprolog_utils.$_$.t;
|
|
45
|
-
var Char = kotlin_kotlin.$_$.
|
|
46
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
45
|
+
var Char = kotlin_kotlin.$_$.ob;
|
|
46
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.m;
|
|
47
47
|
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
48
48
|
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
49
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
50
|
-
var Iterable = kotlin_kotlin.$_$.
|
|
51
|
-
var KtList = kotlin_kotlin.$_$.
|
|
52
|
-
var KtSet = kotlin_kotlin.$_$.
|
|
53
|
-
var Pair = kotlin_kotlin.$_$.
|
|
54
|
-
var Triple = kotlin_kotlin.$_$.
|
|
55
|
-
var Entry = kotlin_kotlin.$_$.
|
|
56
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
49
|
+
var Sequence = kotlin_kotlin.$_$.l8;
|
|
50
|
+
var Iterable = kotlin_kotlin.$_$.x1;
|
|
51
|
+
var KtList = kotlin_kotlin.$_$.y1;
|
|
52
|
+
var KtSet = kotlin_kotlin.$_$.b2;
|
|
53
|
+
var Pair = kotlin_kotlin.$_$.zb;
|
|
54
|
+
var Triple = kotlin_kotlin.$_$.dc;
|
|
55
|
+
var Entry = kotlin_kotlin.$_$.z1;
|
|
56
|
+
var KtMap = kotlin_kotlin.$_$.a2;
|
|
57
|
+
var initMetadataForClass = kotlin_kotlin.$_$.b7;
|
|
58
58
|
var VOID = kotlin_kotlin.$_$.b;
|
|
59
|
-
var Struct = kotlin_it_unibo_tuprolog_core.$_$.
|
|
60
|
-
var Scope = kotlin_it_unibo_tuprolog_core.$_$.
|
|
61
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
59
|
+
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
60
|
+
var Scope = kotlin_it_unibo_tuprolog_core.$_$.a2;
|
|
61
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.d7;
|
|
62
62
|
var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.m;
|
|
63
63
|
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
64
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
65
|
-
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.
|
|
66
|
-
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.
|
|
67
|
-
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.
|
|
68
|
-
var plus = kotlin_kotlin.$_$.
|
|
69
|
-
var Tuple = kotlin_it_unibo_tuprolog_core.$_$.
|
|
64
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.c7;
|
|
65
|
+
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
66
|
+
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
67
|
+
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.f1;
|
|
68
|
+
var plus = kotlin_kotlin.$_$.n4;
|
|
69
|
+
var Tuple = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
70
70
|
var Companion_instance_1 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
71
71
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.o;
|
|
72
|
-
var Var = kotlin_it_unibo_tuprolog_core.$_$.
|
|
72
|
+
var Var = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
73
73
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
74
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
75
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
76
|
-
var listOf = kotlin_kotlin.$_$.
|
|
77
|
-
var Rule = kotlin_it_unibo_tuprolog_core.$_$.
|
|
78
|
-
var Directive = kotlin_it_unibo_tuprolog_core.$_$.
|
|
79
|
-
var Fact = kotlin_it_unibo_tuprolog_core.$_$.
|
|
74
|
+
var sequenceOf = kotlin_kotlin.$_$.o9;
|
|
75
|
+
var copyToArray = kotlin_kotlin.$_$.y2;
|
|
76
|
+
var listOf = kotlin_kotlin.$_$.v3;
|
|
77
|
+
var Rule = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
78
|
+
var Directive = kotlin_it_unibo_tuprolog_core.$_$.s1;
|
|
79
|
+
var Fact = kotlin_it_unibo_tuprolog_core.$_$.t1;
|
|
80
80
|
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.k;
|
|
81
81
|
//endregion
|
|
82
82
|
//region block: pre-declaration
|
|
83
83
|
function copy(scope, $super) {
|
|
84
|
-
scope = scope === VOID ? this.
|
|
85
|
-
return $super === VOID ? this.
|
|
84
|
+
scope = scope === VOID ? this.c1j() : scope;
|
|
85
|
+
return $super === VOID ? this.d1j(scope) : $super.d1j.call(this, scope);
|
|
86
86
|
}
|
|
87
87
|
initMetadataForInterface(Termificator, 'Termificator');
|
|
88
88
|
initMetadataForClass(AbstractTermificator, 'AbstractTermificator', VOID, VOID, [Termificator]);
|
|
89
89
|
function convertToTerm(_this__u8e3s4) {
|
|
90
|
-
return this.
|
|
90
|
+
return this.q33().toTerm(_this__u8e3s4);
|
|
91
91
|
}
|
|
92
92
|
function convertToSpecificSubTypeOfTerm(_this__u8e3s4, type, converter) {
|
|
93
93
|
var t = this.convertToTerm(_this__u8e3s4);
|
|
94
94
|
var tmp;
|
|
95
|
-
if (type.
|
|
95
|
+
if (type.k9(t)) {
|
|
96
96
|
tmp = isInterface(t, Term) ? t : THROW_CCE();
|
|
97
97
|
} else {
|
|
98
98
|
if (isInterface(t, Struct)) {
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
var otherTerm = this.convertToTerm(other);
|
|
211
211
|
var tmp;
|
|
212
212
|
if (isInterface(it, Tuple)) {
|
|
213
|
-
tmp = this.tupleOfIterable(plus(it.
|
|
213
|
+
tmp = this.tupleOfIterable(plus(it.dy(), otherTerm));
|
|
214
214
|
} else {
|
|
215
215
|
tmp = this.tupleOf([this.convertToTerm(_this__u8e3s4), otherTerm]);
|
|
216
216
|
}
|
|
@@ -263,39 +263,6 @@
|
|
|
263
263
|
return this.anyImpliedByVararg(_this__u8e3s4, other.slice());
|
|
264
264
|
}
|
|
265
265
|
initMetadataForInterface(LogicProgrammingScopeWithOperators, 'LogicProgrammingScopeWithOperators', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
266
|
-
function varTo(_this__u8e3s4, termObject) {
|
|
267
|
-
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
268
|
-
}
|
|
269
|
-
function stringTo(_this__u8e3s4, termObject) {
|
|
270
|
-
return Companion_getInstance_0().of(this.varOf(_this__u8e3s4), this.convertToTerm(termObject));
|
|
271
|
-
}
|
|
272
|
-
function substitutionGet(_this__u8e3s4, term) {
|
|
273
|
-
var t = this.convertToTerm(term);
|
|
274
|
-
var tmp;
|
|
275
|
-
if (isInterface(t, Var)) {
|
|
276
|
-
tmp = _this__u8e3s4.i2(t);
|
|
277
|
-
} else {
|
|
278
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
279
|
-
}
|
|
280
|
-
return tmp;
|
|
281
|
-
}
|
|
282
|
-
function substitutionContainsKey(_this__u8e3s4, term) {
|
|
283
|
-
var t = this.convertToTerm(term);
|
|
284
|
-
var tmp;
|
|
285
|
-
if (isInterface(t, Var)) {
|
|
286
|
-
tmp = _this__u8e3s4.g2(t);
|
|
287
|
-
} else {
|
|
288
|
-
raiseErrorConvertingTo(term, getKClass(Var));
|
|
289
|
-
}
|
|
290
|
-
return tmp;
|
|
291
|
-
}
|
|
292
|
-
function substitutionContains(_this__u8e3s4, term) {
|
|
293
|
-
return this.substitutionContainsKey(_this__u8e3s4, term);
|
|
294
|
-
}
|
|
295
|
-
function substitutionContainsValue(_this__u8e3s4, term) {
|
|
296
|
-
return _this__u8e3s4.h2(this.convertToTerm(term));
|
|
297
|
-
}
|
|
298
|
-
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
299
266
|
function at_end_of_stream1(alias) {
|
|
300
267
|
return this.structOf('at_end_of_stream', [this.convertToTerm(alias)]);
|
|
301
268
|
}
|
|
@@ -592,7 +559,7 @@
|
|
|
592
559
|
// Inline function 'kotlin.let' call
|
|
593
560
|
var tmp;
|
|
594
561
|
if (!(tail == null)) {
|
|
595
|
-
tmp = this.
|
|
562
|
+
tmp = this.h12(destination, this.convertToTerm(tail));
|
|
596
563
|
} else {
|
|
597
564
|
tmp = this.logicListOfIterable(destination);
|
|
598
565
|
}
|
|
@@ -600,7 +567,7 @@
|
|
|
600
567
|
}
|
|
601
568
|
function logicList_0(items, tail, $super) {
|
|
602
569
|
tail = tail === VOID ? null : tail;
|
|
603
|
-
return $super === VOID ? this.
|
|
570
|
+
return $super === VOID ? this.w33(items, tail) : logicList(items, tail);
|
|
604
571
|
}
|
|
605
572
|
function rule(function_0) {
|
|
606
573
|
var tmp = this.convertToTerm(function_0(this.newScope()));
|
|
@@ -617,7 +584,40 @@
|
|
|
617
584
|
return this.convertToSpecificSubTypeOfTerm(tmp, tmp_0, MinimalLogicProgrammingScope$factOf$ref(this));
|
|
618
585
|
}
|
|
619
586
|
initMetadataForInterface(MinimalLogicProgrammingScope, 'MinimalLogicProgrammingScope', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
620
|
-
|
|
587
|
+
function varTo(_this__u8e3s4, termObject) {
|
|
588
|
+
return Companion_getInstance_0().of(_this__u8e3s4, this.convertToTerm(termObject));
|
|
589
|
+
}
|
|
590
|
+
function stringTo(_this__u8e3s4, termObject) {
|
|
591
|
+
return Companion_getInstance_0().of(this.varOf(_this__u8e3s4), this.convertToTerm(termObject));
|
|
592
|
+
}
|
|
593
|
+
function substitutionGet(_this__u8e3s4, term) {
|
|
594
|
+
var t = this.convertToTerm(term);
|
|
595
|
+
var tmp;
|
|
596
|
+
if (isInterface(t, Var)) {
|
|
597
|
+
tmp = _this__u8e3s4.i2(t);
|
|
598
|
+
} else {
|
|
599
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
600
|
+
}
|
|
601
|
+
return tmp;
|
|
602
|
+
}
|
|
603
|
+
function substitutionContainsKey(_this__u8e3s4, term) {
|
|
604
|
+
var t = this.convertToTerm(term);
|
|
605
|
+
var tmp;
|
|
606
|
+
if (isInterface(t, Var)) {
|
|
607
|
+
tmp = _this__u8e3s4.g2(t);
|
|
608
|
+
} else {
|
|
609
|
+
raiseErrorConvertingTo(term, getKClass(Var));
|
|
610
|
+
}
|
|
611
|
+
return tmp;
|
|
612
|
+
}
|
|
613
|
+
function substitutionContains(_this__u8e3s4, term) {
|
|
614
|
+
return this.substitutionContainsKey(_this__u8e3s4, term);
|
|
615
|
+
}
|
|
616
|
+
function substitutionContainsValue(_this__u8e3s4, term) {
|
|
617
|
+
return _this__u8e3s4.h2(this.convertToTerm(term));
|
|
618
|
+
}
|
|
619
|
+
initMetadataForInterface(LogicProgrammingScopeWithSubstitutions, 'LogicProgrammingScopeWithSubstitutions', VOID, VOID, [BaseLogicProgrammingScope]);
|
|
620
|
+
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [LogicProgrammingScopeWithOperators, BaseLogicProgrammingScope, LogicProgrammingScopeWithPrologStandardLibrary, MinimalLogicProgrammingScope, LogicProgrammingScopeWithSubstitutions, Scope]);
|
|
621
621
|
initMetadataForCompanion(Companion_0);
|
|
622
622
|
initMetadataForClass(DefaultTermificator, 'DefaultTermificator', VOID, AbstractTermificator);
|
|
623
623
|
//endregion
|
|
@@ -628,100 +628,100 @@
|
|
|
628
628
|
}
|
|
629
629
|
function AbstractTermificator$handleSequenceAsList$lambda(this$0) {
|
|
630
630
|
return function (it) {
|
|
631
|
-
return this$0.
|
|
631
|
+
return this$0.w32(it);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
634
|
function AbstractTermificator$handleCharAsString$ref(p0) {
|
|
635
635
|
return constructCallableReference(function (p0_0) {
|
|
636
|
-
return p0.
|
|
637
|
-
}, 1, 0,
|
|
636
|
+
return p0.x32(p0_0.r1_1);
|
|
637
|
+
}, 1, 0, 92, 'handleCharAsString', [p0]);
|
|
638
638
|
}
|
|
639
639
|
function AbstractTermificator$handleBooleanAsTruth$ref(p0) {
|
|
640
640
|
return constructCallableReference(function (p0_0) {
|
|
641
|
-
return p0.
|
|
642
|
-
}, 1, 0,
|
|
641
|
+
return p0.y32(p0_0);
|
|
642
|
+
}, 1, 0, 93, 'handleBooleanAsTruth', [p0]);
|
|
643
643
|
}
|
|
644
644
|
function AbstractTermificator$handleStringAsAtomOrVariable$ref(p0) {
|
|
645
645
|
return constructCallableReference(function (p0_0) {
|
|
646
|
-
return p0.
|
|
647
|
-
}, 1, 0,
|
|
646
|
+
return p0.z32(p0_0);
|
|
647
|
+
}, 1, 0, 94, 'handleStringAsAtomOrVariable', [p0]);
|
|
648
648
|
}
|
|
649
649
|
function AbstractTermificator$handleBigIntegerAsInteger$ref(p0) {
|
|
650
650
|
return constructCallableReference(function (p0_0) {
|
|
651
|
-
return p0.
|
|
652
|
-
}, 1, 0,
|
|
651
|
+
return p0.a33(p0_0);
|
|
652
|
+
}, 1, 0, 95, 'handleBigIntegerAsInteger', [p0]);
|
|
653
653
|
}
|
|
654
654
|
function AbstractTermificator$handleBigDecimalAsReal$ref(p0) {
|
|
655
655
|
return constructCallableReference(function (p0_0) {
|
|
656
|
-
return p0.
|
|
657
|
-
}, 1, 0,
|
|
656
|
+
return p0.b33(p0_0);
|
|
657
|
+
}, 1, 0, 96, 'handleBigDecimalAsReal', [p0]);
|
|
658
658
|
}
|
|
659
659
|
function AbstractTermificator$handleNumberAsNumeric$ref(p0) {
|
|
660
660
|
return constructCallableReference(function (p0_0) {
|
|
661
|
-
return p0.
|
|
662
|
-
}, 1, 0,
|
|
661
|
+
return p0.c33(p0_0);
|
|
662
|
+
}, 1, 0, 97, 'handleNumberAsNumeric', [p0]);
|
|
663
663
|
}
|
|
664
664
|
function AbstractTermificator$handleArrayAsList$ref(p0) {
|
|
665
665
|
return constructCallableReference(function (p0_0) {
|
|
666
|
-
return p0.
|
|
667
|
-
}, 1, 0,
|
|
666
|
+
return p0.d33(p0_0);
|
|
667
|
+
}, 1, 0, 98, 'handleArrayAsList', [p0]);
|
|
668
668
|
}
|
|
669
669
|
function AbstractTermificator$handleSequenceAsList$ref(p0) {
|
|
670
670
|
return constructCallableReference(function (p0_0) {
|
|
671
|
-
return p0.
|
|
672
|
-
}, 1, 0,
|
|
671
|
+
return p0.e33(p0_0);
|
|
672
|
+
}, 1, 0, 99, 'handleSequenceAsList', [p0]);
|
|
673
673
|
}
|
|
674
674
|
function AbstractTermificator$handleIterableAsList$ref(p0) {
|
|
675
675
|
return constructCallableReference(function (p0_0) {
|
|
676
|
-
return p0.
|
|
677
|
-
}, 1, 0,
|
|
676
|
+
return p0.f33(p0_0);
|
|
677
|
+
}, 1, 0, 100, 'handleIterableAsList', [p0]);
|
|
678
678
|
}
|
|
679
679
|
function AbstractTermificator$handleKotlinListAsLogicList$ref(p0) {
|
|
680
680
|
return constructCallableReference(function (p0_0) {
|
|
681
|
-
return p0.
|
|
682
|
-
}, 1, 0,
|
|
681
|
+
return p0.g33(p0_0);
|
|
682
|
+
}, 1, 0, 101, 'handleKotlinListAsLogicList', [p0]);
|
|
683
683
|
}
|
|
684
684
|
function AbstractTermificator$handleSetAsBlock$ref(p0) {
|
|
685
685
|
return constructCallableReference(function (p0_0) {
|
|
686
|
-
return p0.
|
|
687
|
-
}, 1, 0,
|
|
686
|
+
return p0.h33(p0_0);
|
|
687
|
+
}, 1, 0, 102, 'handleSetAsBlock', [p0]);
|
|
688
688
|
}
|
|
689
689
|
function AbstractTermificator$handlePairAsTuple$ref(p0) {
|
|
690
690
|
return constructCallableReference(function (p0_0) {
|
|
691
|
-
return p0.
|
|
692
|
-
}, 1, 0,
|
|
691
|
+
return p0.i33(p0_0);
|
|
692
|
+
}, 1, 0, 103, 'handlePairAsTuple', [p0]);
|
|
693
693
|
}
|
|
694
694
|
function AbstractTermificator$handleTripletAsTuple$ref(p0) {
|
|
695
695
|
return constructCallableReference(function (p0_0) {
|
|
696
|
-
return p0.
|
|
697
|
-
}, 1, 0,
|
|
696
|
+
return p0.j33(p0_0);
|
|
697
|
+
}, 1, 0, 104, 'handleTripletAsTuple', [p0]);
|
|
698
698
|
}
|
|
699
699
|
function AbstractTermificator$handleKeyValuePairAsStruct$ref(p0) {
|
|
700
700
|
return constructCallableReference(function (p0_0) {
|
|
701
|
-
return p0.
|
|
702
|
-
}, 1, 0,
|
|
701
|
+
return p0.k33(p0_0);
|
|
702
|
+
}, 1, 0, 105, 'handleKeyValuePairAsStruct', [p0]);
|
|
703
703
|
}
|
|
704
704
|
function AbstractTermificator$handleMapAsBlock$ref(p0) {
|
|
705
705
|
return constructCallableReference(function (p0_0) {
|
|
706
|
-
return p0.
|
|
707
|
-
}, 1, 0,
|
|
706
|
+
return p0.l33(p0_0);
|
|
707
|
+
}, 1, 0, 106, 'handleMapAsBlock', [p0]);
|
|
708
708
|
}
|
|
709
709
|
function AbstractTermificator(scope) {
|
|
710
|
-
this.
|
|
710
|
+
this.u32_1 = scope;
|
|
711
711
|
var tmp = this;
|
|
712
712
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
713
|
-
tmp.
|
|
713
|
+
tmp.v32_1 = LinkedHashMap_init_$Create$();
|
|
714
714
|
}
|
|
715
|
-
protoOf(AbstractTermificator).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(AbstractTermificator).c1j = function () {
|
|
716
|
+
return this.u32_1;
|
|
717
717
|
};
|
|
718
|
-
protoOf(AbstractTermificator).
|
|
719
|
-
var tmp0 = this.
|
|
718
|
+
protoOf(AbstractTermificator).m33 = function (type, conversion) {
|
|
719
|
+
var tmp0 = this.v32_1;
|
|
720
720
|
// Inline function 'kotlin.collections.set' call
|
|
721
721
|
var value = AbstractTermificator$handleType$lambda(conversion);
|
|
722
|
-
tmp0.
|
|
722
|
+
tmp0.q4(type, value);
|
|
723
723
|
};
|
|
724
|
-
protoOf(AbstractTermificator).
|
|
724
|
+
protoOf(AbstractTermificator).w32 = function (value) {
|
|
725
725
|
$l$block: {
|
|
726
726
|
// Inline function 'kotlin.requireNotNull' call
|
|
727
727
|
if (value == null) {
|
|
@@ -738,51 +738,51 @@
|
|
|
738
738
|
return value.toTerm();
|
|
739
739
|
}
|
|
740
740
|
var type = getKClassFromExpression(value);
|
|
741
|
-
var exactConverter = this.
|
|
741
|
+
var exactConverter = this.v32_1.i2(type);
|
|
742
742
|
if (!(exactConverter == null)) {
|
|
743
743
|
return exactConverter(value);
|
|
744
744
|
}
|
|
745
745
|
// Inline function 'kotlin.collections.iterator' call
|
|
746
|
-
var _iterator__ex2g4s = this.
|
|
746
|
+
var _iterator__ex2g4s = this.v32_1.d1().n();
|
|
747
747
|
while (_iterator__ex2g4s.q()) {
|
|
748
748
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
749
749
|
// Inline function 'kotlin.collections.component1' call
|
|
750
750
|
var superType = _destruct__k2r9zo.e2();
|
|
751
751
|
// Inline function 'kotlin.collections.component2' call
|
|
752
752
|
var converter = _destruct__k2r9zo.f2();
|
|
753
|
-
if (superType.
|
|
753
|
+
if (superType.k9(value)) {
|
|
754
754
|
return converter(value);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
raiseErrorConvertingTo(value, getKClass(Term));
|
|
758
758
|
};
|
|
759
759
|
protoOf(AbstractTermificator).toTerm = function (value) {
|
|
760
|
-
return this.
|
|
760
|
+
return this.w32(value);
|
|
761
761
|
};
|
|
762
|
-
protoOf(AbstractTermificator).
|
|
763
|
-
return this.
|
|
762
|
+
protoOf(AbstractTermificator).y32 = function (value) {
|
|
763
|
+
return this.c1j().truthOf(value);
|
|
764
764
|
};
|
|
765
|
-
protoOf(AbstractTermificator).
|
|
766
|
-
return this.
|
|
765
|
+
protoOf(AbstractTermificator).x32 = function (value) {
|
|
766
|
+
return this.w32(toString_0(value));
|
|
767
767
|
};
|
|
768
|
-
protoOf(AbstractTermificator).
|
|
768
|
+
protoOf(AbstractTermificator).z32 = function (value) {
|
|
769
769
|
var tmp;
|
|
770
770
|
// Inline function 'kotlin.text.matches' call
|
|
771
|
-
if (Companion_getInstance().
|
|
772
|
-
tmp = this.
|
|
771
|
+
if (Companion_getInstance().n15_1.fb(value)) {
|
|
772
|
+
tmp = this.c1j().varOf(value);
|
|
773
773
|
} else {
|
|
774
|
-
tmp = this.
|
|
774
|
+
tmp = this.c1j().atomOf(value);
|
|
775
775
|
}
|
|
776
776
|
return tmp;
|
|
777
777
|
};
|
|
778
|
-
protoOf(AbstractTermificator).
|
|
779
|
-
return this.
|
|
778
|
+
protoOf(AbstractTermificator).a33 = function (value) {
|
|
779
|
+
return this.c1j().intOfBigInteger(value);
|
|
780
780
|
};
|
|
781
|
-
protoOf(AbstractTermificator).
|
|
782
|
-
return this.
|
|
781
|
+
protoOf(AbstractTermificator).b33 = function (value) {
|
|
782
|
+
return this.c1j().realOfBigDecimal(value);
|
|
783
783
|
};
|
|
784
|
-
protoOf(AbstractTermificator).
|
|
785
|
-
var tmp = this.
|
|
784
|
+
protoOf(AbstractTermificator).d33 = function (value) {
|
|
785
|
+
var tmp = this.c1j();
|
|
786
786
|
// Inline function 'kotlin.collections.map' call
|
|
787
787
|
var this_0 = assertItemsAreNotNull(asIterable(value));
|
|
788
788
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -790,18 +790,18 @@
|
|
|
790
790
|
var _iterator__ex2g4s = this_0.n();
|
|
791
791
|
while (_iterator__ex2g4s.q()) {
|
|
792
792
|
var item = _iterator__ex2g4s.r();
|
|
793
|
-
var tmp$ret$2 = this.
|
|
793
|
+
var tmp$ret$2 = this.w32(item);
|
|
794
794
|
destination.k(tmp$ret$2);
|
|
795
795
|
}
|
|
796
796
|
return tmp.logicListOfIterable(destination);
|
|
797
797
|
};
|
|
798
|
-
protoOf(AbstractTermificator).
|
|
799
|
-
var tmp = this.
|
|
798
|
+
protoOf(AbstractTermificator).e33 = function (value) {
|
|
799
|
+
var tmp = this.c1j();
|
|
800
800
|
var tmp_0 = assertItemsAreNotNull_0(value);
|
|
801
801
|
return tmp.logicListOfSequence(map(tmp_0, AbstractTermificator$handleSequenceAsList$lambda(this)));
|
|
802
802
|
};
|
|
803
|
-
protoOf(AbstractTermificator).
|
|
804
|
-
var tmp = this.
|
|
803
|
+
protoOf(AbstractTermificator).f33 = function (value) {
|
|
804
|
+
var tmp = this.c1j();
|
|
805
805
|
// Inline function 'kotlin.collections.map' call
|
|
806
806
|
var this_0 = assertItemsAreNotNull(value);
|
|
807
807
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -809,13 +809,13 @@
|
|
|
809
809
|
var _iterator__ex2g4s = this_0.n();
|
|
810
810
|
while (_iterator__ex2g4s.q()) {
|
|
811
811
|
var item = _iterator__ex2g4s.r();
|
|
812
|
-
var tmp$ret$2 = this.
|
|
812
|
+
var tmp$ret$2 = this.w32(item);
|
|
813
813
|
destination.k(tmp$ret$2);
|
|
814
814
|
}
|
|
815
815
|
return tmp.logicListOfIterable(destination);
|
|
816
816
|
};
|
|
817
|
-
protoOf(AbstractTermificator).
|
|
818
|
-
var tmp = this.
|
|
817
|
+
protoOf(AbstractTermificator).g33 = function (value) {
|
|
818
|
+
var tmp = this.c1j();
|
|
819
819
|
// Inline function 'kotlin.collections.map' call
|
|
820
820
|
var this_0 = assertItemsAreNotNull_1(value);
|
|
821
821
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -823,13 +823,13 @@
|
|
|
823
823
|
var _iterator__ex2g4s = this_0.n();
|
|
824
824
|
while (_iterator__ex2g4s.q()) {
|
|
825
825
|
var item = _iterator__ex2g4s.r();
|
|
826
|
-
var tmp$ret$2 = this.
|
|
826
|
+
var tmp$ret$2 = this.w32(item);
|
|
827
827
|
destination.k(tmp$ret$2);
|
|
828
828
|
}
|
|
829
829
|
return tmp.logicListOfIterable(destination);
|
|
830
830
|
};
|
|
831
|
-
protoOf(AbstractTermificator).
|
|
832
|
-
var tmp = this.
|
|
831
|
+
protoOf(AbstractTermificator).h33 = function (value) {
|
|
832
|
+
var tmp = this.c1j();
|
|
833
833
|
// Inline function 'kotlin.collections.map' call
|
|
834
834
|
var this_0 = assertItemsAreNotNull(value);
|
|
835
835
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -837,22 +837,22 @@
|
|
|
837
837
|
var _iterator__ex2g4s = this_0.n();
|
|
838
838
|
while (_iterator__ex2g4s.q()) {
|
|
839
839
|
var item = _iterator__ex2g4s.r();
|
|
840
|
-
var tmp$ret$2 = this.
|
|
840
|
+
var tmp$ret$2 = this.w32(item);
|
|
841
841
|
destination.k(tmp$ret$2);
|
|
842
842
|
}
|
|
843
843
|
return tmp.blockOfIterable(destination);
|
|
844
844
|
};
|
|
845
|
-
protoOf(AbstractTermificator).
|
|
846
|
-
return this.
|
|
845
|
+
protoOf(AbstractTermificator).i33 = function (value) {
|
|
846
|
+
return this.c1j().tupleOf([this.w32(value.first), this.w32(value.second)]);
|
|
847
847
|
};
|
|
848
|
-
protoOf(AbstractTermificator).
|
|
849
|
-
return this.
|
|
848
|
+
protoOf(AbstractTermificator).j33 = function (value) {
|
|
849
|
+
return this.c1j().tupleOf([this.w32(value.ij_1), this.w32(value.jj_1), this.w32(value.kj_1)]);
|
|
850
850
|
};
|
|
851
|
-
protoOf(AbstractTermificator).
|
|
852
|
-
return this.
|
|
851
|
+
protoOf(AbstractTermificator).k33 = function (value) {
|
|
852
|
+
return this.c1j().structOf(':', [this.w32(value.e2()), this.w32(value.f2())]);
|
|
853
853
|
};
|
|
854
|
-
protoOf(AbstractTermificator).
|
|
855
|
-
var tmp = this.
|
|
854
|
+
protoOf(AbstractTermificator).l33 = function (value) {
|
|
855
|
+
var tmp = this.c1j();
|
|
856
856
|
// Inline function 'kotlin.collections.map' call
|
|
857
857
|
var this_0 = assertItemsAreNotNull(value.d1());
|
|
858
858
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -860,68 +860,68 @@
|
|
|
860
860
|
var _iterator__ex2g4s = this_0.n();
|
|
861
861
|
while (_iterator__ex2g4s.q()) {
|
|
862
862
|
var item = _iterator__ex2g4s.r();
|
|
863
|
-
var tmp$ret$2 = this.
|
|
863
|
+
var tmp$ret$2 = this.k33(item);
|
|
864
864
|
destination.k(tmp$ret$2);
|
|
865
865
|
}
|
|
866
866
|
return tmp.blockOfIterable(destination);
|
|
867
867
|
};
|
|
868
|
-
protoOf(AbstractTermificator).
|
|
868
|
+
protoOf(AbstractTermificator).n33 = function () {
|
|
869
869
|
var tmp = getKClass(Char);
|
|
870
|
-
this.
|
|
871
|
-
var tmp_0 = PrimitiveClasses_getInstance().
|
|
872
|
-
this.
|
|
873
|
-
var tmp_1 = PrimitiveClasses_getInstance().
|
|
874
|
-
this.
|
|
870
|
+
this.m33(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
871
|
+
var tmp_0 = PrimitiveClasses_getInstance().v9();
|
|
872
|
+
this.m33(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
873
|
+
var tmp_1 = PrimitiveClasses_getInstance().da();
|
|
874
|
+
this.m33(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
875
875
|
var tmp_2 = getKClass(BigInteger);
|
|
876
|
-
this.
|
|
876
|
+
this.m33(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
877
877
|
var tmp_3 = getKClass(BigDecimal);
|
|
878
|
-
this.
|
|
879
|
-
var tmp_4 = PrimitiveClasses_getInstance().
|
|
880
|
-
this.
|
|
881
|
-
var tmp_5 = PrimitiveClasses_getInstance().
|
|
882
|
-
this.
|
|
878
|
+
this.m33(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
879
|
+
var tmp_4 = PrimitiveClasses_getInstance().t9();
|
|
880
|
+
this.m33(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
881
|
+
var tmp_5 = PrimitiveClasses_getInstance().ca();
|
|
882
|
+
this.m33(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
883
883
|
var tmp_6 = getKClass(Sequence);
|
|
884
|
-
this.
|
|
884
|
+
this.m33(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
885
885
|
var tmp_7 = getKClass(Iterable);
|
|
886
|
-
this.
|
|
886
|
+
this.m33(tmp_7, AbstractTermificator$handleIterableAsList$ref(this));
|
|
887
887
|
};
|
|
888
|
-
protoOf(AbstractTermificator).
|
|
888
|
+
protoOf(AbstractTermificator).o33 = function () {
|
|
889
889
|
var tmp = getKClass(Char);
|
|
890
|
-
this.
|
|
891
|
-
var tmp_0 = PrimitiveClasses_getInstance().
|
|
892
|
-
this.
|
|
893
|
-
var tmp_1 = PrimitiveClasses_getInstance().
|
|
894
|
-
this.
|
|
890
|
+
this.m33(tmp, AbstractTermificator$handleCharAsString$ref(this));
|
|
891
|
+
var tmp_0 = PrimitiveClasses_getInstance().v9();
|
|
892
|
+
this.m33(tmp_0, AbstractTermificator$handleBooleanAsTruth$ref(this));
|
|
893
|
+
var tmp_1 = PrimitiveClasses_getInstance().da();
|
|
894
|
+
this.m33(tmp_1, AbstractTermificator$handleStringAsAtomOrVariable$ref(this));
|
|
895
895
|
var tmp_2 = getKClass(BigInteger);
|
|
896
|
-
this.
|
|
896
|
+
this.m33(tmp_2, AbstractTermificator$handleBigIntegerAsInteger$ref(this));
|
|
897
897
|
var tmp_3 = getKClass(BigDecimal);
|
|
898
|
-
this.
|
|
899
|
-
var tmp_4 = PrimitiveClasses_getInstance().
|
|
900
|
-
this.
|
|
901
|
-
var tmp_5 = PrimitiveClasses_getInstance().
|
|
902
|
-
this.
|
|
898
|
+
this.m33(tmp_3, AbstractTermificator$handleBigDecimalAsReal$ref(this));
|
|
899
|
+
var tmp_4 = PrimitiveClasses_getInstance().t9();
|
|
900
|
+
this.m33(tmp_4, AbstractTermificator$handleNumberAsNumeric$ref(this));
|
|
901
|
+
var tmp_5 = PrimitiveClasses_getInstance().ca();
|
|
902
|
+
this.m33(tmp_5, AbstractTermificator$handleArrayAsList$ref(this));
|
|
903
903
|
var tmp_6 = getKClass(Sequence);
|
|
904
|
-
this.
|
|
904
|
+
this.m33(tmp_6, AbstractTermificator$handleSequenceAsList$ref(this));
|
|
905
905
|
var tmp_7 = getKClass(KtList);
|
|
906
|
-
this.
|
|
906
|
+
this.m33(tmp_7, AbstractTermificator$handleKotlinListAsLogicList$ref(this));
|
|
907
907
|
var tmp_8 = getKClass(KtSet);
|
|
908
|
-
this.
|
|
908
|
+
this.m33(tmp_8, AbstractTermificator$handleSetAsBlock$ref(this));
|
|
909
909
|
var tmp_9 = getKClass(Pair);
|
|
910
|
-
this.
|
|
910
|
+
this.m33(tmp_9, AbstractTermificator$handlePairAsTuple$ref(this));
|
|
911
911
|
var tmp_10 = getKClass(Triple);
|
|
912
|
-
this.
|
|
912
|
+
this.m33(tmp_10, AbstractTermificator$handleTripletAsTuple$ref(this));
|
|
913
913
|
var tmp_11 = getKClass(Entry);
|
|
914
|
-
this.
|
|
914
|
+
this.m33(tmp_11, AbstractTermificator$handleKeyValuePairAsStruct$ref(this));
|
|
915
915
|
var tmp_12 = getKClass(KtMap);
|
|
916
|
-
this.
|
|
916
|
+
this.m33(tmp_12, AbstractTermificator$handleMapAsBlock$ref(this));
|
|
917
917
|
var tmp_13 = getKClass(Iterable);
|
|
918
|
-
this.
|
|
918
|
+
this.m33(tmp_13, AbstractTermificator$handleIterableAsList$ref(this));
|
|
919
919
|
};
|
|
920
|
-
protoOf(AbstractTermificator).
|
|
920
|
+
protoOf(AbstractTermificator).p33 = function (novel) {
|
|
921
921
|
if (novel) {
|
|
922
|
-
this.
|
|
922
|
+
this.o33();
|
|
923
923
|
} else {
|
|
924
|
-
this.
|
|
924
|
+
this.n33();
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
927
|
function BaseLogicProgrammingScope() {
|
|
@@ -937,244 +937,244 @@
|
|
|
937
937
|
protoOf(Companion).empty = function () {
|
|
938
938
|
return this.of();
|
|
939
939
|
};
|
|
940
|
-
protoOf(Companion).
|
|
941
|
-
return new LogicProgrammingScopeImpl(scope, termificator.
|
|
940
|
+
protoOf(Companion).r33 = function (scope, termificator, variablesProvider) {
|
|
941
|
+
return new LogicProgrammingScopeImpl(scope, termificator.c1j() === scope ? termificator : termificator.d1j(scope), variablesProvider.c1j() === scope ? variablesProvider : variablesProvider.d1j(scope));
|
|
942
942
|
};
|
|
943
943
|
protoOf(Companion).of = function (scope, termificator, variablesProvider, $super) {
|
|
944
944
|
scope = scope === VOID ? Companion_instance.empty() : scope;
|
|
945
945
|
termificator = termificator === VOID ? Companion_instance_3.default(scope) : termificator;
|
|
946
|
-
variablesProvider = variablesProvider === VOID ? Companion_instance_0.
|
|
947
|
-
return $super === VOID ? this.
|
|
946
|
+
variablesProvider = variablesProvider === VOID ? Companion_instance_0.s15(scope) : variablesProvider;
|
|
947
|
+
return $super === VOID ? this.r33(scope, termificator, variablesProvider) : $super.r33.call(this, scope, termificator, variablesProvider);
|
|
948
948
|
};
|
|
949
949
|
var Companion_instance_2;
|
|
950
950
|
function Companion_getInstance_1() {
|
|
951
951
|
return Companion_instance_2;
|
|
952
952
|
}
|
|
953
953
|
function LogicProgrammingScopeImpl(scope, termificator, variablesProvider) {
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
954
|
+
this.s33_1 = scope;
|
|
955
|
+
this.t33_1 = termificator;
|
|
956
|
+
this.u33_1 = variablesProvider;
|
|
957
957
|
// Inline function 'kotlin.require' call
|
|
958
|
-
if (!(this.
|
|
958
|
+
if (!(this.s33_1 === this.u33_1.c1j() && this.s33_1 === this.t33_1.c1j())) {
|
|
959
959
|
var message = 'The provided Scope should be the same object for both Termificator and VariablesProvider';
|
|
960
960
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
964
|
-
return this.
|
|
963
|
+
protoOf(LogicProgrammingScopeImpl).c1j = function () {
|
|
964
|
+
return this.s33_1;
|
|
965
965
|
};
|
|
966
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
967
|
-
return this.
|
|
966
|
+
protoOf(LogicProgrammingScopeImpl).q33 = function () {
|
|
967
|
+
return this.t33_1;
|
|
968
968
|
};
|
|
969
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
970
|
-
return new LogicProgrammingScopeImpl(scope, this.
|
|
969
|
+
protoOf(LogicProgrammingScopeImpl).d1j = function (scope) {
|
|
970
|
+
return new LogicProgrammingScopeImpl(scope, this.t33_1.d1j(scope), this.u33_1.d1j(scope));
|
|
971
971
|
};
|
|
972
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
973
|
-
return this.
|
|
972
|
+
protoOf(LogicProgrammingScopeImpl).v33 = function () {
|
|
973
|
+
return this.d1j(Companion_instance.empty());
|
|
974
974
|
};
|
|
975
975
|
protoOf(LogicProgrammingScopeImpl).newScope = function () {
|
|
976
|
-
return this.
|
|
976
|
+
return this.v33();
|
|
977
977
|
};
|
|
978
978
|
protoOf(LogicProgrammingScopeImpl).structOf = function (functor, args) {
|
|
979
|
-
return this.
|
|
979
|
+
return this.u33_1.structOf(functor, args);
|
|
980
980
|
};
|
|
981
981
|
protoOf(LogicProgrammingScopeImpl).structOfSequence = function (functor, args) {
|
|
982
|
-
return this.
|
|
982
|
+
return this.u33_1.structOfSequence(functor, args);
|
|
983
983
|
};
|
|
984
984
|
protoOf(LogicProgrammingScopeImpl).structOfIterable = function (functor, args) {
|
|
985
|
-
return this.
|
|
985
|
+
return this.u33_1.structOfIterable(functor, args);
|
|
986
986
|
};
|
|
987
987
|
protoOf(LogicProgrammingScopeImpl).structOfList = function (functor, args) {
|
|
988
|
-
return this.
|
|
988
|
+
return this.u33_1.structOfList(functor, args);
|
|
989
989
|
};
|
|
990
990
|
protoOf(LogicProgrammingScopeImpl).tupleOf = function (terms) {
|
|
991
|
-
return this.
|
|
991
|
+
return this.u33_1.tupleOf(terms);
|
|
992
992
|
};
|
|
993
993
|
protoOf(LogicProgrammingScopeImpl).tupleOfIterable = function (terms) {
|
|
994
|
-
return this.
|
|
994
|
+
return this.u33_1.tupleOfIterable(terms);
|
|
995
995
|
};
|
|
996
996
|
protoOf(LogicProgrammingScopeImpl).tupleOfSequence = function (terms) {
|
|
997
|
-
return this.
|
|
997
|
+
return this.u33_1.tupleOfSequence(terms);
|
|
998
998
|
};
|
|
999
999
|
protoOf(LogicProgrammingScopeImpl).logicListOf = function (terms) {
|
|
1000
|
-
return this.
|
|
1000
|
+
return this.u33_1.logicListOf(terms);
|
|
1001
1001
|
};
|
|
1002
1002
|
protoOf(LogicProgrammingScopeImpl).logicListOfIterable = function (terms) {
|
|
1003
|
-
return this.
|
|
1003
|
+
return this.u33_1.logicListOfIterable(terms);
|
|
1004
1004
|
};
|
|
1005
1005
|
protoOf(LogicProgrammingScopeImpl).logicListOfSequence = function (terms) {
|
|
1006
|
-
return this.
|
|
1006
|
+
return this.u33_1.logicListOfSequence(terms);
|
|
1007
1007
|
};
|
|
1008
1008
|
protoOf(LogicProgrammingScopeImpl).blockOf = function (terms) {
|
|
1009
|
-
return this.
|
|
1009
|
+
return this.u33_1.blockOf(terms);
|
|
1010
1010
|
};
|
|
1011
1011
|
protoOf(LogicProgrammingScopeImpl).blockOfIterable = function (terms) {
|
|
1012
|
-
return this.
|
|
1012
|
+
return this.u33_1.blockOfIterable(terms);
|
|
1013
1013
|
};
|
|
1014
1014
|
protoOf(LogicProgrammingScopeImpl).blockOfSequence = function (terms) {
|
|
1015
|
-
return this.
|
|
1015
|
+
return this.u33_1.blockOfSequence(terms);
|
|
1016
1016
|
};
|
|
1017
1017
|
protoOf(LogicProgrammingScopeImpl).factOf = function (head) {
|
|
1018
|
-
return this.
|
|
1018
|
+
return this.u33_1.factOf(head);
|
|
1019
1019
|
};
|
|
1020
1020
|
protoOf(LogicProgrammingScopeImpl).consOf = function (head, tail) {
|
|
1021
|
-
return this.
|
|
1021
|
+
return this.u33_1.consOf(head, tail);
|
|
1022
1022
|
};
|
|
1023
1023
|
protoOf(LogicProgrammingScopeImpl).directiveOf = function (body1, body) {
|
|
1024
|
-
return this.
|
|
1024
|
+
return this.u33_1.directiveOf(body1, body);
|
|
1025
1025
|
};
|
|
1026
1026
|
protoOf(LogicProgrammingScopeImpl).containsVar = function (variable) {
|
|
1027
|
-
return this.
|
|
1027
|
+
return this.u33_1.containsVar(variable);
|
|
1028
1028
|
};
|
|
1029
1029
|
protoOf(LogicProgrammingScopeImpl).contains = function (variable) {
|
|
1030
|
-
return this.
|
|
1030
|
+
return this.u33_1.contains(variable);
|
|
1031
1031
|
};
|
|
1032
1032
|
protoOf(LogicProgrammingScopeImpl).get = function (variable) {
|
|
1033
|
-
return this.
|
|
1033
|
+
return this.u33_1.get(variable);
|
|
1034
1034
|
};
|
|
1035
1035
|
protoOf(LogicProgrammingScopeImpl).where = function (lambda) {
|
|
1036
|
-
return this.
|
|
1036
|
+
return this.u33_1.where(lambda);
|
|
1037
1037
|
};
|
|
1038
1038
|
protoOf(LogicProgrammingScopeImpl).with = function (lambda) {
|
|
1039
|
-
return this.
|
|
1039
|
+
return this.u33_1.with(lambda);
|
|
1040
1040
|
};
|
|
1041
1041
|
protoOf(LogicProgrammingScopeImpl).varOf = function (name) {
|
|
1042
|
-
return this.
|
|
1042
|
+
return this.u33_1.varOf(name);
|
|
1043
1043
|
};
|
|
1044
1044
|
protoOf(LogicProgrammingScopeImpl).varOfChar = function (name) {
|
|
1045
|
-
return this.
|
|
1045
|
+
return this.u33_1.varOfChar(name);
|
|
1046
1046
|
};
|
|
1047
1047
|
protoOf(LogicProgrammingScopeImpl).atomOf = function (value) {
|
|
1048
|
-
return this.
|
|
1048
|
+
return this.u33_1.atomOf(value);
|
|
1049
1049
|
};
|
|
1050
1050
|
protoOf(LogicProgrammingScopeImpl).atomOfChar = function (value) {
|
|
1051
|
-
return this.
|
|
1051
|
+
return this.u33_1.atomOfChar(value);
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1054
|
-
return this.
|
|
1053
|
+
protoOf(LogicProgrammingScopeImpl).g12 = function (terms, last) {
|
|
1054
|
+
return this.u33_1.g12(terms, last);
|
|
1055
1055
|
};
|
|
1056
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1057
|
-
return this.
|
|
1056
|
+
protoOf(LogicProgrammingScopeImpl).h12 = function (terms, last) {
|
|
1057
|
+
return this.u33_1.h12(terms, last);
|
|
1058
1058
|
};
|
|
1059
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1060
|
-
return this.
|
|
1059
|
+
protoOf(LogicProgrammingScopeImpl).i12 = function (terms, last) {
|
|
1060
|
+
return this.u33_1.i12(terms, last);
|
|
1061
1061
|
};
|
|
1062
1062
|
protoOf(LogicProgrammingScopeImpl).ruleOf = function (head, body1, body) {
|
|
1063
|
-
return this.
|
|
1063
|
+
return this.u33_1.ruleOf(head, body1, body);
|
|
1064
1064
|
};
|
|
1065
1065
|
protoOf(LogicProgrammingScopeImpl).clauseOf = function (head, body) {
|
|
1066
|
-
return this.
|
|
1066
|
+
return this.u33_1.clauseOf(head, body);
|
|
1067
1067
|
};
|
|
1068
1068
|
protoOf(LogicProgrammingScopeImpl).indicatorOf = function (name, arity) {
|
|
1069
|
-
return this.
|
|
1069
|
+
return this.u33_1.indicatorOf(name, arity);
|
|
1070
1070
|
};
|
|
1071
1071
|
protoOf(LogicProgrammingScopeImpl).indicatorOfStringInt = function (name, arity) {
|
|
1072
|
-
return this.
|
|
1072
|
+
return this.u33_1.indicatorOfStringInt(name, arity);
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(LogicProgrammingScopeImpl).anonymous = function () {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.u33_1.anonymous();
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(LogicProgrammingScopeImpl).whatever = function () {
|
|
1078
|
-
return this.
|
|
1078
|
+
return this.u33_1.whatever();
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(LogicProgrammingScopeImpl).numOfBigDecimal = function (value) {
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.u33_1.numOfBigDecimal(value);
|
|
1082
1082
|
};
|
|
1083
1083
|
protoOf(LogicProgrammingScopeImpl).numOfDouble = function (value) {
|
|
1084
|
-
return this.
|
|
1084
|
+
return this.u33_1.numOfDouble(value);
|
|
1085
1085
|
};
|
|
1086
1086
|
protoOf(LogicProgrammingScopeImpl).numOfFloat = function (value) {
|
|
1087
|
-
return this.
|
|
1087
|
+
return this.u33_1.numOfFloat(value);
|
|
1088
1088
|
};
|
|
1089
1089
|
protoOf(LogicProgrammingScopeImpl).numOfBigInteger = function (value) {
|
|
1090
|
-
return this.
|
|
1090
|
+
return this.u33_1.numOfBigInteger(value);
|
|
1091
1091
|
};
|
|
1092
1092
|
protoOf(LogicProgrammingScopeImpl).numOfInt = function (value) {
|
|
1093
|
-
return this.
|
|
1093
|
+
return this.u33_1.numOfInt(value);
|
|
1094
1094
|
};
|
|
1095
1095
|
protoOf(LogicProgrammingScopeImpl).numOfLong = function (value) {
|
|
1096
|
-
return this.
|
|
1096
|
+
return this.u33_1.numOfLong(value);
|
|
1097
1097
|
};
|
|
1098
1098
|
protoOf(LogicProgrammingScopeImpl).numOfShort = function (value) {
|
|
1099
|
-
return this.
|
|
1099
|
+
return this.u33_1.numOfShort(value);
|
|
1100
1100
|
};
|
|
1101
1101
|
protoOf(LogicProgrammingScopeImpl).numOfByte = function (value) {
|
|
1102
|
-
return this.
|
|
1102
|
+
return this.u33_1.numOfByte(value);
|
|
1103
1103
|
};
|
|
1104
1104
|
protoOf(LogicProgrammingScopeImpl).parseNum = function (value) {
|
|
1105
|
-
return this.
|
|
1105
|
+
return this.u33_1.parseNum(value);
|
|
1106
1106
|
};
|
|
1107
1107
|
protoOf(LogicProgrammingScopeImpl).numOf = function (value) {
|
|
1108
|
-
return this.
|
|
1108
|
+
return this.u33_1.numOf(value);
|
|
1109
1109
|
};
|
|
1110
1110
|
protoOf(LogicProgrammingScopeImpl).intOfBigInteger = function (value) {
|
|
1111
|
-
return this.
|
|
1111
|
+
return this.u33_1.intOfBigInteger(value);
|
|
1112
1112
|
};
|
|
1113
1113
|
protoOf(LogicProgrammingScopeImpl).intOf = function (value) {
|
|
1114
|
-
return this.
|
|
1114
|
+
return this.u33_1.intOf(value);
|
|
1115
1115
|
};
|
|
1116
1116
|
protoOf(LogicProgrammingScopeImpl).intOfLong = function (value) {
|
|
1117
|
-
return this.
|
|
1117
|
+
return this.u33_1.intOfLong(value);
|
|
1118
1118
|
};
|
|
1119
1119
|
protoOf(LogicProgrammingScopeImpl).intOfShort = function (value) {
|
|
1120
|
-
return this.
|
|
1120
|
+
return this.u33_1.intOfShort(value);
|
|
1121
1121
|
};
|
|
1122
1122
|
protoOf(LogicProgrammingScopeImpl).intOfByte = function (value) {
|
|
1123
|
-
return this.
|
|
1123
|
+
return this.u33_1.intOfByte(value);
|
|
1124
1124
|
};
|
|
1125
1125
|
protoOf(LogicProgrammingScopeImpl).parseInt = function (value) {
|
|
1126
|
-
return this.
|
|
1126
|
+
return this.u33_1.parseInt(value);
|
|
1127
1127
|
};
|
|
1128
1128
|
protoOf(LogicProgrammingScopeImpl).parseIntRadix = function (value, radix) {
|
|
1129
|
-
return this.
|
|
1129
|
+
return this.u33_1.parseIntRadix(value, radix);
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(LogicProgrammingScopeImpl).realOfBigDecimal = function (value) {
|
|
1132
|
-
return this.
|
|
1132
|
+
return this.u33_1.realOfBigDecimal(value);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(LogicProgrammingScopeImpl).realOf = function (value) {
|
|
1135
|
-
return this.
|
|
1135
|
+
return this.u33_1.realOf(value);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(LogicProgrammingScopeImpl).realOfFloat = function (value) {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.u33_1.realOfFloat(value);
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(LogicProgrammingScopeImpl).parseReal = function (value) {
|
|
1141
|
-
return this.
|
|
1141
|
+
return this.u33_1.parseReal(value);
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(LogicProgrammingScopeImpl).truthOf = function (value) {
|
|
1144
|
-
return this.
|
|
1144
|
+
return this.u33_1.truthOf(value);
|
|
1145
1145
|
};
|
|
1146
1146
|
protoOf(LogicProgrammingScopeImpl).unifierOf = function (assignments) {
|
|
1147
|
-
return this.
|
|
1147
|
+
return this.u33_1.unifierOf(assignments);
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(LogicProgrammingScopeImpl).unifierOfIterable = function (assignments) {
|
|
1150
|
-
return this.
|
|
1150
|
+
return this.u33_1.unifierOfIterable(assignments);
|
|
1151
1151
|
};
|
|
1152
1152
|
protoOf(LogicProgrammingScopeImpl).unifierOfSequence = function (assignments) {
|
|
1153
|
-
return this.
|
|
1153
|
+
return this.u33_1.unifierOfSequence(assignments);
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(LogicProgrammingScopeImpl).substitutionOf = function (assignments) {
|
|
1156
|
-
return this.
|
|
1156
|
+
return this.u33_1.substitutionOf(assignments);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(LogicProgrammingScopeImpl).substitutionOfIterable = function (assignments) {
|
|
1159
|
-
return this.
|
|
1159
|
+
return this.u33_1.substitutionOfIterable(assignments);
|
|
1160
1160
|
};
|
|
1161
1161
|
protoOf(LogicProgrammingScopeImpl).substitutionOfSequence = function (assignments) {
|
|
1162
|
-
return this.
|
|
1162
|
+
return this.u33_1.substitutionOfSequence(assignments);
|
|
1163
1163
|
};
|
|
1164
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1165
|
-
return this.
|
|
1164
|
+
protoOf(LogicProgrammingScopeImpl).e12 = function () {
|
|
1165
|
+
return this.u33_1.e12();
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1168
|
-
return this.
|
|
1167
|
+
protoOf(LogicProgrammingScopeImpl).f12 = function () {
|
|
1168
|
+
return this.u33_1.f12();
|
|
1169
1169
|
};
|
|
1170
1170
|
protoOf(LogicProgrammingScopeImpl).getValue = function (thisRef, property) {
|
|
1171
|
-
return this.
|
|
1171
|
+
return this.u33_1.getValue(thisRef, property);
|
|
1172
1172
|
};
|
|
1173
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1174
|
-
return this.
|
|
1173
|
+
protoOf(LogicProgrammingScopeImpl).f1j = function () {
|
|
1174
|
+
return this.u33_1.f1j();
|
|
1175
1175
|
};
|
|
1176
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1177
|
-
return this.
|
|
1176
|
+
protoOf(LogicProgrammingScopeImpl).g1j = function () {
|
|
1177
|
+
return this.u33_1.g1j();
|
|
1178
1178
|
};
|
|
1179
1179
|
function LogicProgrammingScopeWithOperators() {
|
|
1180
1180
|
}
|
|
@@ -1190,12 +1190,12 @@
|
|
|
1190
1190
|
function MinimalLogicProgrammingScope$directiveOf$ref(p0) {
|
|
1191
1191
|
return constructCallableReference(function (p0_0) {
|
|
1192
1192
|
return p0.directiveOf(p0_0, []);
|
|
1193
|
-
}, 1, 0,
|
|
1193
|
+
}, 1, 0, 107, VOID, [p0]);
|
|
1194
1194
|
}
|
|
1195
1195
|
function MinimalLogicProgrammingScope$factOf$ref(p0) {
|
|
1196
1196
|
return constructCallableReference(function (p0_0) {
|
|
1197
1197
|
return p0.factOf(p0_0);
|
|
1198
|
-
}, 1, 0,
|
|
1198
|
+
}, 1, 0, 108, 'factOf', [p0]);
|
|
1199
1199
|
}
|
|
1200
1200
|
function MinimalLogicProgrammingScope() {
|
|
1201
1201
|
}
|
|
@@ -1216,21 +1216,21 @@
|
|
|
1216
1216
|
function DefaultTermificator(scope, novel) {
|
|
1217
1217
|
novel = novel === VOID ? false : novel;
|
|
1218
1218
|
AbstractTermificator.call(this, scope);
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1219
|
+
this.z33_1 = novel;
|
|
1220
|
+
this.p33(this.z33_1);
|
|
1221
|
+
this.a34_1 = new NumberTypeTester();
|
|
1222
1222
|
}
|
|
1223
|
-
protoOf(DefaultTermificator).
|
|
1223
|
+
protoOf(DefaultTermificator).c33 = function (value) {
|
|
1224
1224
|
var tmp;
|
|
1225
|
-
if (this.
|
|
1226
|
-
tmp = this.
|
|
1225
|
+
if (this.a34_1.nt(value)) {
|
|
1226
|
+
tmp = this.c1j().intOfBigInteger(this.a34_1.ot(value));
|
|
1227
1227
|
} else {
|
|
1228
|
-
tmp = this.
|
|
1228
|
+
tmp = this.c1j().realOfBigDecimal(this.a34_1.pt(value));
|
|
1229
1229
|
}
|
|
1230
1230
|
return tmp;
|
|
1231
1231
|
};
|
|
1232
|
-
protoOf(DefaultTermificator).
|
|
1233
|
-
return new DefaultTermificator(scope, this.
|
|
1232
|
+
protoOf(DefaultTermificator).d1j = function (scope) {
|
|
1233
|
+
return new DefaultTermificator(scope, this.z33_1);
|
|
1234
1234
|
};
|
|
1235
1235
|
protoOf(DefaultTermificator).copy = function (scope, $super) {
|
|
1236
1236
|
return this.copy(scope, ($super == null ? true : $super instanceof DefaultTermificator) ? $super : THROW_CCE());
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
protoOf(LogicProgrammingScopeImpl).consOfAny = consOfAny;
|
|
1250
1250
|
protoOf(LogicProgrammingScopeImpl).directiveOfAny = directiveOfAny;
|
|
1251
1251
|
protoOf(LogicProgrammingScopeImpl).withScope = withScope;
|
|
1252
|
-
protoOf(LogicProgrammingScopeImpl).
|
|
1252
|
+
protoOf(LogicProgrammingScopeImpl).w33 = logicList;
|
|
1253
1253
|
protoOf(LogicProgrammingScopeImpl).logicList = logicList_0;
|
|
1254
1254
|
protoOf(LogicProgrammingScopeImpl).rule = rule;
|
|
1255
1255
|
protoOf(LogicProgrammingScopeImpl).clause2 = clause2;
|