@tuprolog/arg2p-causality-solver 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +3496 -3242
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +1511 -5
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +945 -5
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js +791 -5
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js +68 -5
- package/2p-dsl-unify.js.map +1 -1
- package/2p-io-lib.js +3700 -5
- package/2p-io-lib.js.map +1 -1
- package/2p-parser-core.js +624 -5
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +5647 -5
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +295 -5
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve.js +4825 -4276
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1511 -1496
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +363 -360
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +554 -468
- package/2p-utils.js.map +1 -1
- package/README.md +26 -19
- package/arg2p-causality-solver.js +881 -8
- package/arg2p-causality-solver.js.map +1 -1
- package/arg2p-core.js +14892 -5
- package/arg2p-core.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4775 -2444
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1542 -1539
- package/kt-math.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +201 -5
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +3863 -5
- package/okio-parent-okio.js.map +1 -1
- package/package.json +1 -1
- package/2p-solve-prolog.js +0 -2854
- package/2p-solve-prolog.js.map +0 -1
package/2p-dsl-theory.js
CHANGED
|
@@ -1,13 +1,799 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports'], factory);
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './2p-unify.js', './2p-core.js', './2p-dsl-core.js', './2p-theory.js', './2p-dsl-unify.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./2p-unify.js'), require('./2p-core.js'), require('./2p-dsl-core.js'), require('./2p-theory.js'), require('./2p-dsl-unify.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module '2p-dsl-theory'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-dsl-theory'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['2p-unify'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module '2p-dsl-theory'. Its dependency '2p-unify' was not found. Please, check whether '2p-unify' is loaded prior to '2p-dsl-theory'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof globalThis['2p-core'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module '2p-dsl-theory'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-dsl-theory'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof globalThis['2p-dsl-core'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module '2p-dsl-theory'. Its dependency '2p-dsl-core' was not found. Please, check whether '2p-dsl-core' is loaded prior to '2p-dsl-theory'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof globalThis['2p-theory'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module '2p-dsl-theory'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to '2p-dsl-theory'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof globalThis['2p-dsl-unify'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module '2p-dsl-theory'. Its dependency '2p-dsl-unify' was not found. Please, check whether '2p-dsl-unify' is loaded prior to '2p-dsl-theory'.");
|
|
24
|
+
}
|
|
25
|
+
globalThis['2p-dsl-theory'] = factory(typeof globalThis['2p-dsl-theory'] === 'undefined' ? {} : globalThis['2p-dsl-theory'], globalThis['kotlin-kotlin-stdlib'], globalThis['2p-unify'], globalThis['2p-core'], globalThis['2p-dsl-core'], globalThis['2p-theory'], globalThis['2p-dsl-unify']);
|
|
26
|
+
}
|
|
27
|
+
}(function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_unify, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_dsl_core, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_dsl_unify) {
|
|
9
28
|
'use strict';
|
|
29
|
+
//region block: imports
|
|
30
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
31
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
|
|
32
|
+
var protoOf = kotlin_kotlin.$_$.e8;
|
|
33
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
34
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_dsl_core.$_$.a;
|
|
35
|
+
var Companion_instance_1 = kotlin_it_unibo_tuprolog_core.$_$.c1;
|
|
36
|
+
var IndexedTheoryFactory = kotlin_it_unibo_tuprolog_theory.$_$.c;
|
|
37
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s7;
|
|
38
|
+
var toString = kotlin_kotlin.$_$.h8;
|
|
39
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
40
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
41
|
+
var equals = kotlin_kotlin.$_$.k7;
|
|
42
|
+
var logicListFromFrom = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
43
|
+
var logicListFromIterable = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
44
|
+
var logicListFromSequence = kotlin_it_unibo_tuprolog_core.$_$.f1;
|
|
45
|
+
var mguWithOccurCheck = kotlin_it_unibo_tuprolog_unify.$_$.b;
|
|
46
|
+
var stringInvoke = kotlin_it_unibo_tuprolog_dsl_core.$_$.v4;
|
|
47
|
+
var structOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.a5;
|
|
48
|
+
var tupleOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.b5;
|
|
49
|
+
var logicListOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.w4;
|
|
50
|
+
var blockOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.p4;
|
|
51
|
+
var factOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.t4;
|
|
52
|
+
var consOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.q4;
|
|
53
|
+
var directiveOfAny = kotlin_it_unibo_tuprolog_dsl_core.$_$.r4;
|
|
54
|
+
var withScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.z4;
|
|
55
|
+
var logicList = kotlin_it_unibo_tuprolog_dsl_core.$_$.x4;
|
|
56
|
+
var logicList_0 = kotlin_it_unibo_tuprolog_dsl_core.$_$.b;
|
|
57
|
+
var rule = kotlin_it_unibo_tuprolog_dsl_core.$_$.y4;
|
|
58
|
+
var clause2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.s2;
|
|
59
|
+
var directive = kotlin_it_unibo_tuprolog_dsl_core.$_$.s4;
|
|
60
|
+
var fact = kotlin_it_unibo_tuprolog_dsl_core.$_$.u4;
|
|
61
|
+
var convertToTerm = kotlin_it_unibo_tuprolog_dsl_core.$_$.d;
|
|
62
|
+
var convertToSpecificSubTypeOfTerm = kotlin_it_unibo_tuprolog_dsl_core.$_$.c;
|
|
63
|
+
var substitutionContains = kotlin_it_unibo_tuprolog_dsl_core.$_$.k4;
|
|
64
|
+
var substitutionGet = kotlin_it_unibo_tuprolog_dsl_core.$_$.l4;
|
|
65
|
+
var varTo = kotlin_it_unibo_tuprolog_dsl_core.$_$.n4;
|
|
66
|
+
var stringTo = kotlin_it_unibo_tuprolog_dsl_core.$_$.m4;
|
|
67
|
+
var substitutionContainsKey = kotlin_it_unibo_tuprolog_dsl_core.$_$.i4;
|
|
68
|
+
var substitutionContainsValue = kotlin_it_unibo_tuprolog_dsl_core.$_$.j4;
|
|
69
|
+
var at_end_of_stream1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.f2;
|
|
70
|
+
var call1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.p2;
|
|
71
|
+
var catch3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.q2;
|
|
72
|
+
var throw1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.d4;
|
|
73
|
+
var not1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.q3;
|
|
74
|
+
var naf1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.l3;
|
|
75
|
+
var assert1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.e2;
|
|
76
|
+
var asserta1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.c2;
|
|
77
|
+
var assertz1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.d2;
|
|
78
|
+
var arg3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.z1;
|
|
79
|
+
var atom1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.l2;
|
|
80
|
+
var atomic1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.k2;
|
|
81
|
+
var between3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.n2;
|
|
82
|
+
var callable1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.o2;
|
|
83
|
+
var compound1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.t2;
|
|
84
|
+
var current_op3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.x2;
|
|
85
|
+
var op3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.u3;
|
|
86
|
+
var findall3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.b3;
|
|
87
|
+
var float1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.c3;
|
|
88
|
+
var functor3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.d3;
|
|
89
|
+
var ground1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.e3;
|
|
90
|
+
var integer1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.i3;
|
|
91
|
+
var natural = kotlin_it_unibo_tuprolog_dsl_core.$_$.m3;
|
|
92
|
+
var nonvar1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.p3;
|
|
93
|
+
var number1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.t3;
|
|
94
|
+
var var1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.f4;
|
|
95
|
+
var write1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.g4;
|
|
96
|
+
var univ2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.e4;
|
|
97
|
+
var eq2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.a3;
|
|
98
|
+
var neq2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.n3;
|
|
99
|
+
var id2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.f3;
|
|
100
|
+
var nid2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.o3;
|
|
101
|
+
var arithEq2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.a2;
|
|
102
|
+
var arithNeq2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.b2;
|
|
103
|
+
var member2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.k3;
|
|
104
|
+
var retract1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.w3;
|
|
105
|
+
var append3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.y1;
|
|
106
|
+
var retractall1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.v3;
|
|
107
|
+
var abolish1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.x1;
|
|
108
|
+
var atom_chars2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.g2;
|
|
109
|
+
var atom_codes2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.h2;
|
|
110
|
+
var atom_concat3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.i2;
|
|
111
|
+
var atom_length2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.j2;
|
|
112
|
+
var char_code2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.r2;
|
|
113
|
+
var copy_term2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.v2;
|
|
114
|
+
var current_flag2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.w2;
|
|
115
|
+
var current_prolog_flag2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.y2;
|
|
116
|
+
var sub_atom5 = kotlin_it_unibo_tuprolog_dsl_core.$_$.c4;
|
|
117
|
+
var number_chars2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.r3;
|
|
118
|
+
var number_codes2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.s3;
|
|
119
|
+
var bagof3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.m2;
|
|
120
|
+
var setof3 = kotlin_it_unibo_tuprolog_dsl_core.$_$.z3;
|
|
121
|
+
var consult1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.u2;
|
|
122
|
+
var set_flag2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.x3;
|
|
123
|
+
var set_prolog_flag2 = kotlin_it_unibo_tuprolog_dsl_core.$_$.y3;
|
|
124
|
+
var dynamic1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.z2;
|
|
125
|
+
var static1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.b4;
|
|
126
|
+
var solve1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.a4;
|
|
127
|
+
var initialization1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.h3;
|
|
128
|
+
var load1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.j3;
|
|
129
|
+
var include1 = kotlin_it_unibo_tuprolog_dsl_core.$_$.g3;
|
|
130
|
+
var termPlus = kotlin_it_unibo_tuprolog_dsl_core.$_$.g1;
|
|
131
|
+
var number = kotlin_it_unibo_tuprolog_dsl_core.$_$.h1;
|
|
132
|
+
var booleanPlus = kotlin_it_unibo_tuprolog_dsl_core.$_$.f1;
|
|
133
|
+
var charPlus = kotlin_it_unibo_tuprolog_dsl_core.$_$.i1;
|
|
134
|
+
var termMinus = kotlin_it_unibo_tuprolog_dsl_core.$_$.x;
|
|
135
|
+
var numberMinus = kotlin_it_unibo_tuprolog_dsl_core.$_$.w;
|
|
136
|
+
var booleanMinus = kotlin_it_unibo_tuprolog_dsl_core.$_$.a1;
|
|
137
|
+
var charMinus = kotlin_it_unibo_tuprolog_dsl_core.$_$.y;
|
|
138
|
+
var stringMinus = kotlin_it_unibo_tuprolog_dsl_core.$_$.z;
|
|
139
|
+
var termTimes = kotlin_it_unibo_tuprolog_dsl_core.$_$.v1;
|
|
140
|
+
var numberTimes = kotlin_it_unibo_tuprolog_dsl_core.$_$.r1;
|
|
141
|
+
var booleanTimes = kotlin_it_unibo_tuprolog_dsl_core.$_$.t1;
|
|
142
|
+
var charTimes = kotlin_it_unibo_tuprolog_dsl_core.$_$.s1;
|
|
143
|
+
var stringTimes = kotlin_it_unibo_tuprolog_dsl_core.$_$.u1;
|
|
144
|
+
var termDiv = kotlin_it_unibo_tuprolog_dsl_core.$_$.g;
|
|
145
|
+
var numberDiv = kotlin_it_unibo_tuprolog_dsl_core.$_$.j;
|
|
146
|
+
var booleanDiv = kotlin_it_unibo_tuprolog_dsl_core.$_$.k;
|
|
147
|
+
var charDiv = kotlin_it_unibo_tuprolog_dsl_core.$_$.i;
|
|
148
|
+
var stringDiv = kotlin_it_unibo_tuprolog_dsl_core.$_$.h;
|
|
149
|
+
var anyEqualsTo = kotlin_it_unibo_tuprolog_dsl_core.$_$.l;
|
|
150
|
+
var anyNotEqualsTo = kotlin_it_unibo_tuprolog_dsl_core.$_$.d1;
|
|
151
|
+
var anyGreaterThan = kotlin_it_unibo_tuprolog_dsl_core.$_$.n;
|
|
152
|
+
var anyGreaterThanOrEqualsTo = kotlin_it_unibo_tuprolog_dsl_core.$_$.m;
|
|
153
|
+
var anyNonLowerThan = kotlin_it_unibo_tuprolog_dsl_core.$_$.c1;
|
|
154
|
+
var anyLowerThan = kotlin_it_unibo_tuprolog_dsl_core.$_$.v;
|
|
155
|
+
var anyLowerThanOrEqualsTo = kotlin_it_unibo_tuprolog_dsl_core.$_$.u;
|
|
156
|
+
var anyNonGreaterThan = kotlin_it_unibo_tuprolog_dsl_core.$_$.b1;
|
|
157
|
+
var anyIntDiv = kotlin_it_unibo_tuprolog_dsl_core.$_$.s;
|
|
158
|
+
var termRem = kotlin_it_unibo_tuprolog_dsl_core.$_$.n1;
|
|
159
|
+
var numberRem = kotlin_it_unibo_tuprolog_dsl_core.$_$.k1;
|
|
160
|
+
var booleanRem = kotlin_it_unibo_tuprolog_dsl_core.$_$.o1;
|
|
161
|
+
var charRem = kotlin_it_unibo_tuprolog_dsl_core.$_$.m1;
|
|
162
|
+
var stringRem = kotlin_it_unibo_tuprolog_dsl_core.$_$.l1;
|
|
163
|
+
var anyAnd = kotlin_it_unibo_tuprolog_dsl_core.$_$.f;
|
|
164
|
+
var anyOr = kotlin_it_unibo_tuprolog_dsl_core.$_$.e1;
|
|
165
|
+
var anyPow = kotlin_it_unibo_tuprolog_dsl_core.$_$.j1;
|
|
166
|
+
var anySup = kotlin_it_unibo_tuprolog_dsl_core.$_$.p1;
|
|
167
|
+
var anyIs = kotlin_it_unibo_tuprolog_dsl_core.$_$.t;
|
|
168
|
+
var anyThen = kotlin_it_unibo_tuprolog_dsl_core.$_$.q1;
|
|
169
|
+
var anyImpliedBy = kotlin_it_unibo_tuprolog_dsl_core.$_$.q;
|
|
170
|
+
var anyImpliedByVararg = kotlin_it_unibo_tuprolog_dsl_core.$_$.r;
|
|
171
|
+
var anyIf = kotlin_it_unibo_tuprolog_dsl_core.$_$.o;
|
|
172
|
+
var anyIfVararg = kotlin_it_unibo_tuprolog_dsl_core.$_$.p;
|
|
173
|
+
var anyMguWith = kotlin_it_unibo_tuprolog_dsl_unify.$_$.f;
|
|
174
|
+
var anyMatches = kotlin_it_unibo_tuprolog_dsl_unify.$_$.d;
|
|
175
|
+
var anyUnifyWith = kotlin_it_unibo_tuprolog_dsl_unify.$_$.h;
|
|
176
|
+
var mgu = kotlin_it_unibo_tuprolog_dsl_unify.$_$.g;
|
|
177
|
+
var mguAny = kotlin_it_unibo_tuprolog_dsl_unify.$_$.b;
|
|
178
|
+
var match = kotlin_it_unibo_tuprolog_dsl_unify.$_$.e;
|
|
179
|
+
var matchAny = kotlin_it_unibo_tuprolog_dsl_unify.$_$.a;
|
|
180
|
+
var unify = kotlin_it_unibo_tuprolog_dsl_unify.$_$.i;
|
|
181
|
+
var unifyAny = kotlin_it_unibo_tuprolog_dsl_unify.$_$.c;
|
|
182
|
+
var LogicProgrammingScopeWithPrologStandardLibrary = kotlin_it_unibo_tuprolog_dsl_core.$_$.h4;
|
|
183
|
+
var LogicProgrammingScopeWithOperators = kotlin_it_unibo_tuprolog_dsl_core.$_$.w1;
|
|
184
|
+
var MinimalLogicProgrammingScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.c5;
|
|
185
|
+
var LogicProgrammingScopeWithSubstitutions = kotlin_it_unibo_tuprolog_dsl_core.$_$.o4;
|
|
186
|
+
var BaseLogicProgrammingScope = kotlin_it_unibo_tuprolog_dsl_core.$_$.e;
|
|
187
|
+
var LogicProgrammingScopeWithUnification = kotlin_it_unibo_tuprolog_dsl_unify.$_$.j;
|
|
188
|
+
var Scope = kotlin_it_unibo_tuprolog_core.$_$.a2;
|
|
189
|
+
var Unificator = kotlin_it_unibo_tuprolog_unify.$_$.c;
|
|
190
|
+
var TheoryFactory = kotlin_it_unibo_tuprolog_theory.$_$.f;
|
|
191
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r7;
|
|
192
|
+
var constructCallableReference = kotlin_kotlin.$_$.i7;
|
|
193
|
+
var Clause = kotlin_it_unibo_tuprolog_core.$_$.p1;
|
|
194
|
+
var getKClass = kotlin_kotlin.$_$.w8;
|
|
195
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
196
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
197
|
+
var addAll = kotlin_kotlin.$_$.k2;
|
|
198
|
+
var plus = kotlin_kotlin.$_$.ca;
|
|
199
|
+
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
200
|
+
var listOf = kotlin_kotlin.$_$.f4;
|
|
201
|
+
var flatten = kotlin_kotlin.$_$.r3;
|
|
202
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.t7;
|
|
203
|
+
//endregion
|
|
10
204
|
//region block: pre-declaration
|
|
205
|
+
initMetadataForCompanion(Companion);
|
|
206
|
+
function convertToClause(_this__u8e3s4) {
|
|
207
|
+
var tmp = getKClass(Clause);
|
|
208
|
+
return this.convertToSpecificSubTypeOfTerm(_this__u8e3s4, tmp, LogicProgrammingScopeWithTheories$clauseOf$ref(this));
|
|
209
|
+
}
|
|
210
|
+
function theory(clauseFunctions) {
|
|
211
|
+
// Inline function 'kotlin.collections.map' call
|
|
212
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
213
|
+
var destination = ArrayList_init_$Create$(clauseFunctions.length);
|
|
214
|
+
var inductionVariable = 0;
|
|
215
|
+
var last = clauseFunctions.length;
|
|
216
|
+
while (inductionVariable < last) {
|
|
217
|
+
var item = clauseFunctions[inductionVariable];
|
|
218
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
219
|
+
var tmp$ret$2 = this.convertToClause(item(this.newScope()));
|
|
220
|
+
destination.l(tmp$ret$2);
|
|
221
|
+
}
|
|
222
|
+
return this.theoryOfIterable(destination);
|
|
223
|
+
}
|
|
224
|
+
function theoryOfConcatenatedSequences(clauses, otherClauses) {
|
|
225
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
226
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
227
|
+
var destination = ArrayList_init_$Create$_0();
|
|
228
|
+
var inductionVariable = 0;
|
|
229
|
+
var last = otherClauses.length;
|
|
230
|
+
while (inductionVariable < last) {
|
|
231
|
+
var element = otherClauses[inductionVariable];
|
|
232
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
233
|
+
var list = element;
|
|
234
|
+
addAll(destination, list);
|
|
235
|
+
}
|
|
236
|
+
return this.theoryOfSequence(plus(clauses, destination));
|
|
237
|
+
}
|
|
238
|
+
function theoryOfConcatenatedIterables(clauses, otherClauses) {
|
|
239
|
+
return this.theoryOfIterable(flatten(listOf(arrayConcat([[clauses], otherClauses]))));
|
|
240
|
+
}
|
|
241
|
+
function mutableTheory(clauseFunctions) {
|
|
242
|
+
// Inline function 'kotlin.collections.map' call
|
|
243
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
244
|
+
var destination = ArrayList_init_$Create$(clauseFunctions.length);
|
|
245
|
+
var inductionVariable = 0;
|
|
246
|
+
var last = clauseFunctions.length;
|
|
247
|
+
while (inductionVariable < last) {
|
|
248
|
+
var item = clauseFunctions[inductionVariable];
|
|
249
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
250
|
+
var tmp$ret$2 = this.convertToClause(item(this.newScope()));
|
|
251
|
+
destination.l(tmp$ret$2);
|
|
252
|
+
}
|
|
253
|
+
return this.mutableTheoryOfIterable(destination);
|
|
254
|
+
}
|
|
255
|
+
function mutableTheoryOfConcatenatedSequences(clauses, otherClauses) {
|
|
256
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
257
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
258
|
+
var destination = ArrayList_init_$Create$_0();
|
|
259
|
+
var inductionVariable = 0;
|
|
260
|
+
var last = otherClauses.length;
|
|
261
|
+
while (inductionVariable < last) {
|
|
262
|
+
var element = otherClauses[inductionVariable];
|
|
263
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
264
|
+
var list = element;
|
|
265
|
+
addAll(destination, list);
|
|
266
|
+
}
|
|
267
|
+
return this.mutableTheoryOfSequence(plus(clauses, destination));
|
|
268
|
+
}
|
|
269
|
+
function mutableTheoryOfConcatenatedIterables(clauses, otherClauses) {
|
|
270
|
+
return this.mutableTheoryOfIterable(flatten(listOf(arrayConcat([[clauses], otherClauses]))));
|
|
271
|
+
}
|
|
272
|
+
initMetadataForInterface(LogicProgrammingScopeWithTheories, 'LogicProgrammingScopeWithTheories', VOID, VOID, [Unificator, BaseLogicProgrammingScope, TheoryFactory]);
|
|
273
|
+
initMetadataForClass(LogicProgrammingScopeImpl, 'LogicProgrammingScopeImpl', VOID, VOID, [LogicProgrammingScopeWithPrologStandardLibrary, LogicProgrammingScopeWithOperators, MinimalLogicProgrammingScope, LogicProgrammingScopeWithSubstitutions, BaseLogicProgrammingScope, LogicProgrammingScopeWithUnification, LogicProgrammingScopeWithTheories, Scope, Unificator, TheoryFactory]);
|
|
274
|
+
//endregion
|
|
275
|
+
function logicProgramming(unificator, function_0) {
|
|
276
|
+
unificator = unificator === VOID ? Companion_getInstance_0().u3q_1 : unificator;
|
|
277
|
+
return function_0(Companion_getInstance_0().ofUnificator(unificator));
|
|
278
|
+
}
|
|
279
|
+
function Companion() {
|
|
280
|
+
Companion_instance_2 = this;
|
|
281
|
+
this.u3q_1 = Companion_getInstance().b1o();
|
|
282
|
+
}
|
|
283
|
+
protoOf(Companion).empty = function () {
|
|
284
|
+
return this.of();
|
|
285
|
+
};
|
|
286
|
+
protoOf(Companion).v3q = function (scope, termificator, variablesProvider, unificator, theoryFactory) {
|
|
287
|
+
return new LogicProgrammingScopeImpl(scope, termificator.t1j() === scope ? termificator : termificator.u1j(scope), variablesProvider.t1j() === scope ? variablesProvider : variablesProvider.u1j(scope), unificator, theoryFactory.i1o() === unificator ? theoryFactory : theoryFactory.a1w(unificator));
|
|
288
|
+
};
|
|
289
|
+
protoOf(Companion).of = function (scope, termificator, variablesProvider, unificator, theoryFactory, $super) {
|
|
290
|
+
scope = scope === VOID ? Companion_instance.empty() : scope;
|
|
291
|
+
termificator = termificator === VOID ? Companion_instance_0.default(scope) : termificator;
|
|
292
|
+
variablesProvider = variablesProvider === VOID ? Companion_instance_1.h16(scope) : variablesProvider;
|
|
293
|
+
unificator = unificator === VOID ? this.u3q_1 : unificator;
|
|
294
|
+
theoryFactory = theoryFactory === VOID ? new IndexedTheoryFactory(unificator) : theoryFactory;
|
|
295
|
+
return $super === VOID ? this.v3q(scope, termificator, variablesProvider, unificator, theoryFactory) : $super.v3q.call(this, scope, termificator, variablesProvider, unificator, theoryFactory);
|
|
296
|
+
};
|
|
297
|
+
protoOf(Companion).w3q = function (unificator, theoryFactory, scope, termificator, variablesProvider) {
|
|
298
|
+
return this.v3q(scope, termificator, variablesProvider, unificator, theoryFactory);
|
|
299
|
+
};
|
|
300
|
+
protoOf(Companion).ofUnificator = function (unificator, theoryFactory, scope, termificator, variablesProvider, $super) {
|
|
301
|
+
theoryFactory = theoryFactory === VOID ? new IndexedTheoryFactory(unificator) : theoryFactory;
|
|
302
|
+
scope = scope === VOID ? Companion_instance.empty() : scope;
|
|
303
|
+
termificator = termificator === VOID ? Companion_instance_0.default(scope) : termificator;
|
|
304
|
+
variablesProvider = variablesProvider === VOID ? Companion_instance_1.h16(scope) : variablesProvider;
|
|
305
|
+
return $super === VOID ? this.w3q(unificator, theoryFactory, scope, termificator, variablesProvider) : $super.w3q.call(this, unificator, theoryFactory, scope, termificator, variablesProvider);
|
|
306
|
+
};
|
|
307
|
+
var Companion_instance_2;
|
|
308
|
+
function Companion_getInstance_0() {
|
|
309
|
+
if (Companion_instance_2 == null)
|
|
310
|
+
new Companion();
|
|
311
|
+
return Companion_instance_2;
|
|
312
|
+
}
|
|
313
|
+
function LogicProgrammingScopeImpl(scope, termificator, variablesProvider, unificator, theoryFactory) {
|
|
314
|
+
this.x3q_1 = scope;
|
|
315
|
+
this.y3q_1 = termificator;
|
|
316
|
+
this.z3q_1 = variablesProvider;
|
|
317
|
+
this.a3r_1 = unificator;
|
|
318
|
+
this.b3r_1 = theoryFactory;
|
|
319
|
+
// Inline function 'kotlin.require' call
|
|
320
|
+
if (!(this.x3q_1 === this.z3q_1.t1j() && this.x3q_1 === this.y3q_1.t1j())) {
|
|
321
|
+
var message = 'The provided Scope should be the same object for both Termificator and VariablesProvider';
|
|
322
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
323
|
+
}
|
|
324
|
+
// Inline function 'kotlin.require' call
|
|
325
|
+
if (!equals(this.a3r_1, this.b3r_1.i1o())) {
|
|
326
|
+
var message_0 = 'The provided Unificator should be the same object for both Unificator and TheoryFactory';
|
|
327
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
protoOf(LogicProgrammingScopeImpl).t1j = function () {
|
|
331
|
+
return this.x3q_1;
|
|
332
|
+
};
|
|
333
|
+
protoOf(LogicProgrammingScopeImpl).g3q = function () {
|
|
334
|
+
return this.y3q_1;
|
|
335
|
+
};
|
|
336
|
+
protoOf(LogicProgrammingScopeImpl).i1o = function () {
|
|
337
|
+
return this.a3r_1;
|
|
338
|
+
};
|
|
339
|
+
protoOf(LogicProgrammingScopeImpl).u1j = function (scope) {
|
|
340
|
+
return new LogicProgrammingScopeImpl(scope, this.y3q_1.u1j(scope), this.z3q_1.u1j(scope), this.a3r_1, this.b3r_1);
|
|
341
|
+
};
|
|
342
|
+
protoOf(LogicProgrammingScopeImpl).a1w = function (unificator) {
|
|
343
|
+
return new LogicProgrammingScopeImpl(this.x3q_1, this.y3q_1, this.z3q_1, unificator, this.b3r_1.a1w(unificator));
|
|
344
|
+
};
|
|
345
|
+
protoOf(LogicProgrammingScopeImpl).l3q = function () {
|
|
346
|
+
return this.u1j(Companion_instance.empty());
|
|
347
|
+
};
|
|
348
|
+
protoOf(LogicProgrammingScopeImpl).newScope = function () {
|
|
349
|
+
return this.l3q();
|
|
350
|
+
};
|
|
351
|
+
protoOf(LogicProgrammingScopeImpl).structOf = function (functor, args) {
|
|
352
|
+
return this.z3q_1.structOf(functor, args);
|
|
353
|
+
};
|
|
354
|
+
protoOf(LogicProgrammingScopeImpl).structOfSequence = function (functor, args) {
|
|
355
|
+
return this.z3q_1.structOfSequence(functor, args);
|
|
356
|
+
};
|
|
357
|
+
protoOf(LogicProgrammingScopeImpl).structOfIterable = function (functor, args) {
|
|
358
|
+
return this.z3q_1.structOfIterable(functor, args);
|
|
359
|
+
};
|
|
360
|
+
protoOf(LogicProgrammingScopeImpl).structOfList = function (functor, args) {
|
|
361
|
+
return this.z3q_1.structOfList(functor, args);
|
|
362
|
+
};
|
|
363
|
+
protoOf(LogicProgrammingScopeImpl).tupleOf = function (terms) {
|
|
364
|
+
return this.z3q_1.tupleOf(terms);
|
|
365
|
+
};
|
|
366
|
+
protoOf(LogicProgrammingScopeImpl).tupleOfIterable = function (terms) {
|
|
367
|
+
return this.z3q_1.tupleOfIterable(terms);
|
|
368
|
+
};
|
|
369
|
+
protoOf(LogicProgrammingScopeImpl).tupleOfSequence = function (terms) {
|
|
370
|
+
return this.z3q_1.tupleOfSequence(terms);
|
|
371
|
+
};
|
|
372
|
+
protoOf(LogicProgrammingScopeImpl).logicListOf = function (terms) {
|
|
373
|
+
return this.z3q_1.logicListOf(terms);
|
|
374
|
+
};
|
|
375
|
+
protoOf(LogicProgrammingScopeImpl).logicListOfIterable = function (terms) {
|
|
376
|
+
return this.z3q_1.logicListOfIterable(terms);
|
|
377
|
+
};
|
|
378
|
+
protoOf(LogicProgrammingScopeImpl).logicListOfSequence = function (terms) {
|
|
379
|
+
return this.z3q_1.logicListOfSequence(terms);
|
|
380
|
+
};
|
|
381
|
+
protoOf(LogicProgrammingScopeImpl).blockOf = function (terms) {
|
|
382
|
+
return this.z3q_1.blockOf(terms);
|
|
383
|
+
};
|
|
384
|
+
protoOf(LogicProgrammingScopeImpl).blockOfIterable = function (terms) {
|
|
385
|
+
return this.z3q_1.blockOfIterable(terms);
|
|
386
|
+
};
|
|
387
|
+
protoOf(LogicProgrammingScopeImpl).blockOfSequence = function (terms) {
|
|
388
|
+
return this.z3q_1.blockOfSequence(terms);
|
|
389
|
+
};
|
|
390
|
+
protoOf(LogicProgrammingScopeImpl).factOf = function (head) {
|
|
391
|
+
return this.z3q_1.factOf(head);
|
|
392
|
+
};
|
|
393
|
+
protoOf(LogicProgrammingScopeImpl).consOf = function (head, tail) {
|
|
394
|
+
return this.z3q_1.consOf(head, tail);
|
|
395
|
+
};
|
|
396
|
+
protoOf(LogicProgrammingScopeImpl).directiveOf = function (body1, body) {
|
|
397
|
+
return this.z3q_1.directiveOf(body1, body);
|
|
398
|
+
};
|
|
399
|
+
protoOf(LogicProgrammingScopeImpl).containsVar = function (variable) {
|
|
400
|
+
return this.z3q_1.containsVar(variable);
|
|
401
|
+
};
|
|
402
|
+
protoOf(LogicProgrammingScopeImpl).contains = function (variable) {
|
|
403
|
+
return this.z3q_1.contains(variable);
|
|
404
|
+
};
|
|
405
|
+
protoOf(LogicProgrammingScopeImpl).get = function (variable) {
|
|
406
|
+
return this.z3q_1.get(variable);
|
|
407
|
+
};
|
|
408
|
+
protoOf(LogicProgrammingScopeImpl).where = function (lambda) {
|
|
409
|
+
return this.z3q_1.where(lambda);
|
|
410
|
+
};
|
|
411
|
+
protoOf(LogicProgrammingScopeImpl).with = function (lambda) {
|
|
412
|
+
return this.z3q_1.with(lambda);
|
|
413
|
+
};
|
|
414
|
+
protoOf(LogicProgrammingScopeImpl).varOf = function (name) {
|
|
415
|
+
return this.z3q_1.varOf(name);
|
|
416
|
+
};
|
|
417
|
+
protoOf(LogicProgrammingScopeImpl).varOfChar = function (name) {
|
|
418
|
+
return this.z3q_1.varOfChar(name);
|
|
419
|
+
};
|
|
420
|
+
protoOf(LogicProgrammingScopeImpl).atomOf = function (value) {
|
|
421
|
+
return this.z3q_1.atomOf(value);
|
|
422
|
+
};
|
|
423
|
+
protoOf(LogicProgrammingScopeImpl).atomOfChar = function (value) {
|
|
424
|
+
return this.z3q_1.atomOfChar(value);
|
|
425
|
+
};
|
|
426
|
+
protoOf(LogicProgrammingScopeImpl).u12 = function (terms, last) {
|
|
427
|
+
return this.z3q_1.u12(terms, last);
|
|
428
|
+
};
|
|
429
|
+
protoOf(LogicProgrammingScopeImpl).v12 = function (terms, last) {
|
|
430
|
+
return this.z3q_1.v12(terms, last);
|
|
431
|
+
};
|
|
432
|
+
protoOf(LogicProgrammingScopeImpl).w12 = function (terms, last) {
|
|
433
|
+
return this.z3q_1.w12(terms, last);
|
|
434
|
+
};
|
|
435
|
+
protoOf(LogicProgrammingScopeImpl).ruleOf = function (head, body1, body) {
|
|
436
|
+
return this.z3q_1.ruleOf(head, body1, body);
|
|
437
|
+
};
|
|
438
|
+
protoOf(LogicProgrammingScopeImpl).clauseOf = function (head, body) {
|
|
439
|
+
return this.z3q_1.clauseOf(head, body);
|
|
440
|
+
};
|
|
441
|
+
protoOf(LogicProgrammingScopeImpl).indicatorOf = function (name, arity) {
|
|
442
|
+
return this.z3q_1.indicatorOf(name, arity);
|
|
443
|
+
};
|
|
444
|
+
protoOf(LogicProgrammingScopeImpl).indicatorOfStringInt = function (name, arity) {
|
|
445
|
+
return this.z3q_1.indicatorOfStringInt(name, arity);
|
|
446
|
+
};
|
|
447
|
+
protoOf(LogicProgrammingScopeImpl).anonymous = function () {
|
|
448
|
+
return this.z3q_1.anonymous();
|
|
449
|
+
};
|
|
450
|
+
protoOf(LogicProgrammingScopeImpl).whatever = function () {
|
|
451
|
+
return this.z3q_1.whatever();
|
|
452
|
+
};
|
|
453
|
+
protoOf(LogicProgrammingScopeImpl).numOfBigDecimal = function (value) {
|
|
454
|
+
return this.z3q_1.numOfBigDecimal(value);
|
|
455
|
+
};
|
|
456
|
+
protoOf(LogicProgrammingScopeImpl).numOfDouble = function (value) {
|
|
457
|
+
return this.z3q_1.numOfDouble(value);
|
|
458
|
+
};
|
|
459
|
+
protoOf(LogicProgrammingScopeImpl).numOfFloat = function (value) {
|
|
460
|
+
return this.z3q_1.numOfFloat(value);
|
|
461
|
+
};
|
|
462
|
+
protoOf(LogicProgrammingScopeImpl).numOfBigInteger = function (value) {
|
|
463
|
+
return this.z3q_1.numOfBigInteger(value);
|
|
464
|
+
};
|
|
465
|
+
protoOf(LogicProgrammingScopeImpl).numOfInt = function (value) {
|
|
466
|
+
return this.z3q_1.numOfInt(value);
|
|
467
|
+
};
|
|
468
|
+
protoOf(LogicProgrammingScopeImpl).numOfLong = function (value) {
|
|
469
|
+
return this.z3q_1.numOfLong(value);
|
|
470
|
+
};
|
|
471
|
+
protoOf(LogicProgrammingScopeImpl).numOfShort = function (value) {
|
|
472
|
+
return this.z3q_1.numOfShort(value);
|
|
473
|
+
};
|
|
474
|
+
protoOf(LogicProgrammingScopeImpl).numOfByte = function (value) {
|
|
475
|
+
return this.z3q_1.numOfByte(value);
|
|
476
|
+
};
|
|
477
|
+
protoOf(LogicProgrammingScopeImpl).parseNum = function (value) {
|
|
478
|
+
return this.z3q_1.parseNum(value);
|
|
479
|
+
};
|
|
480
|
+
protoOf(LogicProgrammingScopeImpl).numOf = function (value) {
|
|
481
|
+
return this.z3q_1.numOf(value);
|
|
482
|
+
};
|
|
483
|
+
protoOf(LogicProgrammingScopeImpl).intOfBigInteger = function (value) {
|
|
484
|
+
return this.z3q_1.intOfBigInteger(value);
|
|
485
|
+
};
|
|
486
|
+
protoOf(LogicProgrammingScopeImpl).intOf = function (value) {
|
|
487
|
+
return this.z3q_1.intOf(value);
|
|
488
|
+
};
|
|
489
|
+
protoOf(LogicProgrammingScopeImpl).intOfLong = function (value) {
|
|
490
|
+
return this.z3q_1.intOfLong(value);
|
|
491
|
+
};
|
|
492
|
+
protoOf(LogicProgrammingScopeImpl).intOfShort = function (value) {
|
|
493
|
+
return this.z3q_1.intOfShort(value);
|
|
494
|
+
};
|
|
495
|
+
protoOf(LogicProgrammingScopeImpl).intOfByte = function (value) {
|
|
496
|
+
return this.z3q_1.intOfByte(value);
|
|
497
|
+
};
|
|
498
|
+
protoOf(LogicProgrammingScopeImpl).parseInt = function (value) {
|
|
499
|
+
return this.z3q_1.parseInt(value);
|
|
500
|
+
};
|
|
501
|
+
protoOf(LogicProgrammingScopeImpl).parseIntRadix = function (value, radix) {
|
|
502
|
+
return this.z3q_1.parseIntRadix(value, radix);
|
|
503
|
+
};
|
|
504
|
+
protoOf(LogicProgrammingScopeImpl).realOfBigDecimal = function (value) {
|
|
505
|
+
return this.z3q_1.realOfBigDecimal(value);
|
|
506
|
+
};
|
|
507
|
+
protoOf(LogicProgrammingScopeImpl).realOf = function (value) {
|
|
508
|
+
return this.z3q_1.realOf(value);
|
|
509
|
+
};
|
|
510
|
+
protoOf(LogicProgrammingScopeImpl).realOfFloat = function (value) {
|
|
511
|
+
return this.z3q_1.realOfFloat(value);
|
|
512
|
+
};
|
|
513
|
+
protoOf(LogicProgrammingScopeImpl).parseReal = function (value) {
|
|
514
|
+
return this.z3q_1.parseReal(value);
|
|
515
|
+
};
|
|
516
|
+
protoOf(LogicProgrammingScopeImpl).truthOf = function (value) {
|
|
517
|
+
return this.z3q_1.truthOf(value);
|
|
518
|
+
};
|
|
519
|
+
protoOf(LogicProgrammingScopeImpl).unifierOf = function (assignments) {
|
|
520
|
+
return this.z3q_1.unifierOf(assignments);
|
|
521
|
+
};
|
|
522
|
+
protoOf(LogicProgrammingScopeImpl).unifierOfIterable = function (assignments) {
|
|
523
|
+
return this.z3q_1.unifierOfIterable(assignments);
|
|
524
|
+
};
|
|
525
|
+
protoOf(LogicProgrammingScopeImpl).unifierOfSequence = function (assignments) {
|
|
526
|
+
return this.z3q_1.unifierOfSequence(assignments);
|
|
527
|
+
};
|
|
528
|
+
protoOf(LogicProgrammingScopeImpl).substitutionOf = function (assignments) {
|
|
529
|
+
return this.z3q_1.substitutionOf(assignments);
|
|
530
|
+
};
|
|
531
|
+
protoOf(LogicProgrammingScopeImpl).substitutionOfIterable = function (assignments) {
|
|
532
|
+
return this.z3q_1.substitutionOfIterable(assignments);
|
|
533
|
+
};
|
|
534
|
+
protoOf(LogicProgrammingScopeImpl).substitutionOfSequence = function (assignments) {
|
|
535
|
+
return this.z3q_1.substitutionOfSequence(assignments);
|
|
536
|
+
};
|
|
537
|
+
protoOf(LogicProgrammingScopeImpl).s12 = function () {
|
|
538
|
+
return this.z3q_1.s12();
|
|
539
|
+
};
|
|
540
|
+
protoOf(LogicProgrammingScopeImpl).t12 = function () {
|
|
541
|
+
return this.z3q_1.t12();
|
|
542
|
+
};
|
|
543
|
+
protoOf(LogicProgrammingScopeImpl).getValue = function (thisRef, property) {
|
|
544
|
+
return this.z3q_1.getValue(thisRef, property);
|
|
545
|
+
};
|
|
546
|
+
protoOf(LogicProgrammingScopeImpl).w1j = function () {
|
|
547
|
+
return this.z3q_1.w1j();
|
|
548
|
+
};
|
|
549
|
+
protoOf(LogicProgrammingScopeImpl).x1j = function () {
|
|
550
|
+
return this.z3q_1.x1j();
|
|
551
|
+
};
|
|
552
|
+
protoOf(LogicProgrammingScopeImpl).y1j = function () {
|
|
553
|
+
return this.z3q_1.y1j();
|
|
554
|
+
};
|
|
555
|
+
protoOf(LogicProgrammingScopeImpl).z1j = function () {
|
|
556
|
+
return this.z3q_1.z1j();
|
|
557
|
+
};
|
|
558
|
+
protoOf(LogicProgrammingScopeImpl).z1l = function (term1, term2, occurCheckEnabled) {
|
|
559
|
+
return this.a3r_1.z1l(term1, term2, occurCheckEnabled);
|
|
560
|
+
};
|
|
561
|
+
protoOf(LogicProgrammingScopeImpl).mgu = function (term1, term2) {
|
|
562
|
+
return this.a3r_1.mgu(term1, term2);
|
|
563
|
+
};
|
|
564
|
+
protoOf(LogicProgrammingScopeImpl).matchWithOccurCheck = function (term1, term2, occurCheckEnabled) {
|
|
565
|
+
return this.a3r_1.matchWithOccurCheck(term1, term2, occurCheckEnabled);
|
|
566
|
+
};
|
|
567
|
+
protoOf(LogicProgrammingScopeImpl).match = function (term1, term2) {
|
|
568
|
+
return this.a3r_1.match(term1, term2);
|
|
569
|
+
};
|
|
570
|
+
protoOf(LogicProgrammingScopeImpl).unifyWithOccurCheck = function (term1, term2, occurCheckEnabled) {
|
|
571
|
+
return this.a3r_1.unifyWithOccurCheck(term1, term2, occurCheckEnabled);
|
|
572
|
+
};
|
|
573
|
+
protoOf(LogicProgrammingScopeImpl).unify = function (term1, term2) {
|
|
574
|
+
return this.a3r_1.unify(term1, term2);
|
|
575
|
+
};
|
|
576
|
+
protoOf(LogicProgrammingScopeImpl).mergeWithOccurCheck = function (substitution1, substitution2, occurCheckEnabled) {
|
|
577
|
+
return this.a3r_1.mergeWithOccurCheck(substitution1, substitution2, occurCheckEnabled);
|
|
578
|
+
};
|
|
579
|
+
protoOf(LogicProgrammingScopeImpl).merge = function (substitution1, substitution2) {
|
|
580
|
+
return this.a3r_1.merge(substitution1, substitution2);
|
|
581
|
+
};
|
|
582
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfIterableWithUnificator = function (clauses, unificator) {
|
|
583
|
+
return this.b3r_1.theoryOfIterableWithUnificator(clauses, unificator);
|
|
584
|
+
};
|
|
585
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfIterable = function (clauses) {
|
|
586
|
+
return this.b3r_1.theoryOfIterable(clauses);
|
|
587
|
+
};
|
|
588
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfWithUnificator = function (unificator, clauses) {
|
|
589
|
+
return this.b3r_1.theoryOfWithUnificator(unificator, clauses);
|
|
590
|
+
};
|
|
591
|
+
protoOf(LogicProgrammingScopeImpl).theoryOf = function (clauses) {
|
|
592
|
+
return this.b3r_1.theoryOf(clauses);
|
|
593
|
+
};
|
|
594
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfSequenceWithUnificator = function (clauses, unificator) {
|
|
595
|
+
return this.b3r_1.theoryOfSequenceWithUnificator(clauses, unificator);
|
|
596
|
+
};
|
|
597
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfSequence = function (clauses) {
|
|
598
|
+
return this.b3r_1.theoryOfSequence(clauses);
|
|
599
|
+
};
|
|
600
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfIterableWithUnificator = function (clauses, unificator) {
|
|
601
|
+
return this.b3r_1.mutableTheoryOfIterableWithUnificator(clauses, unificator);
|
|
602
|
+
};
|
|
603
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfIterable = function (clauses) {
|
|
604
|
+
return this.b3r_1.mutableTheoryOfIterable(clauses);
|
|
605
|
+
};
|
|
606
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfWithUnificator = function (unificator, clauses) {
|
|
607
|
+
return this.b3r_1.mutableTheoryOfWithUnificator(unificator, clauses);
|
|
608
|
+
};
|
|
609
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOf = function (clauses) {
|
|
610
|
+
return this.b3r_1.mutableTheoryOf(clauses);
|
|
611
|
+
};
|
|
612
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfSequenceWithUnificator = function (clauses, unificator) {
|
|
613
|
+
return this.b3r_1.mutableTheoryOfSequenceWithUnificator(clauses, unificator);
|
|
614
|
+
};
|
|
615
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfSequence = function (clauses) {
|
|
616
|
+
return this.b3r_1.mutableTheoryOfSequence(clauses);
|
|
617
|
+
};
|
|
618
|
+
protoOf(LogicProgrammingScopeImpl).emptyTheoryWithUnificator = function (unificator) {
|
|
619
|
+
return this.b3r_1.emptyTheoryWithUnificator(unificator);
|
|
620
|
+
};
|
|
621
|
+
protoOf(LogicProgrammingScopeImpl).emptyTheory = function () {
|
|
622
|
+
return this.b3r_1.emptyTheory();
|
|
623
|
+
};
|
|
624
|
+
protoOf(LogicProgrammingScopeImpl).emptyMutableTheoryWithUnificator = function (unificator) {
|
|
625
|
+
return this.b3r_1.emptyMutableTheoryWithUnificator(unificator);
|
|
626
|
+
};
|
|
627
|
+
protoOf(LogicProgrammingScopeImpl).emptyMutableTheory = function () {
|
|
628
|
+
return this.b3r_1.emptyMutableTheory();
|
|
629
|
+
};
|
|
630
|
+
function LogicProgrammingScopeWithTheories$clauseOf$ref(p0) {
|
|
631
|
+
return constructCallableReference(function (p0_0) {
|
|
632
|
+
return p0.clauseOf(p0_0, []);
|
|
633
|
+
}, 1, 0, 102, VOID, [p0]);
|
|
634
|
+
}
|
|
635
|
+
function LogicProgrammingScopeWithTheories() {
|
|
636
|
+
}
|
|
637
|
+
//region block: post-declaration
|
|
638
|
+
protoOf(LogicProgrammingScopeImpl).logicListFromFrom = logicListFromFrom;
|
|
639
|
+
protoOf(LogicProgrammingScopeImpl).logicListFromIterable = logicListFromIterable;
|
|
640
|
+
protoOf(LogicProgrammingScopeImpl).logicListFromSequence = logicListFromSequence;
|
|
641
|
+
protoOf(LogicProgrammingScopeImpl).mguWithOccurCheck = mguWithOccurCheck;
|
|
642
|
+
protoOf(LogicProgrammingScopeImpl).stringInvoke = stringInvoke;
|
|
643
|
+
protoOf(LogicProgrammingScopeImpl).structOfAny = structOfAny;
|
|
644
|
+
protoOf(LogicProgrammingScopeImpl).tupleOfAny = tupleOfAny;
|
|
645
|
+
protoOf(LogicProgrammingScopeImpl).logicListOfAny = logicListOfAny;
|
|
646
|
+
protoOf(LogicProgrammingScopeImpl).blockOfAny = blockOfAny;
|
|
647
|
+
protoOf(LogicProgrammingScopeImpl).factOfAny = factOfAny;
|
|
648
|
+
protoOf(LogicProgrammingScopeImpl).consOfAny = consOfAny;
|
|
649
|
+
protoOf(LogicProgrammingScopeImpl).directiveOfAny = directiveOfAny;
|
|
650
|
+
protoOf(LogicProgrammingScopeImpl).withScope = withScope;
|
|
651
|
+
protoOf(LogicProgrammingScopeImpl).m3q = logicList;
|
|
652
|
+
protoOf(LogicProgrammingScopeImpl).logicList = logicList_0;
|
|
653
|
+
protoOf(LogicProgrammingScopeImpl).rule = rule;
|
|
654
|
+
protoOf(LogicProgrammingScopeImpl).clause2 = clause2;
|
|
655
|
+
protoOf(LogicProgrammingScopeImpl).directive = directive;
|
|
656
|
+
protoOf(LogicProgrammingScopeImpl).fact = fact;
|
|
657
|
+
protoOf(LogicProgrammingScopeImpl).convertToTerm = convertToTerm;
|
|
658
|
+
protoOf(LogicProgrammingScopeImpl).convertToSpecificSubTypeOfTerm = convertToSpecificSubTypeOfTerm;
|
|
659
|
+
protoOf(LogicProgrammingScopeImpl).substitutionContains = substitutionContains;
|
|
660
|
+
protoOf(LogicProgrammingScopeImpl).substitutionGet = substitutionGet;
|
|
661
|
+
protoOf(LogicProgrammingScopeImpl).varTo = varTo;
|
|
662
|
+
protoOf(LogicProgrammingScopeImpl).stringTo = stringTo;
|
|
663
|
+
protoOf(LogicProgrammingScopeImpl).substitutionContainsKey = substitutionContainsKey;
|
|
664
|
+
protoOf(LogicProgrammingScopeImpl).substitutionContainsValue = substitutionContainsValue;
|
|
665
|
+
protoOf(LogicProgrammingScopeImpl).at_end_of_stream1 = at_end_of_stream1;
|
|
666
|
+
protoOf(LogicProgrammingScopeImpl).call1 = call1;
|
|
667
|
+
protoOf(LogicProgrammingScopeImpl).catch3 = catch3;
|
|
668
|
+
protoOf(LogicProgrammingScopeImpl).throw1 = throw1;
|
|
669
|
+
protoOf(LogicProgrammingScopeImpl).not1 = not1;
|
|
670
|
+
protoOf(LogicProgrammingScopeImpl).naf1 = naf1;
|
|
671
|
+
protoOf(LogicProgrammingScopeImpl).assert1 = assert1;
|
|
672
|
+
protoOf(LogicProgrammingScopeImpl).asserta1 = asserta1;
|
|
673
|
+
protoOf(LogicProgrammingScopeImpl).assertz1 = assertz1;
|
|
674
|
+
protoOf(LogicProgrammingScopeImpl).arg3 = arg3;
|
|
675
|
+
protoOf(LogicProgrammingScopeImpl).atom1 = atom1;
|
|
676
|
+
protoOf(LogicProgrammingScopeImpl).atomic1 = atomic1;
|
|
677
|
+
protoOf(LogicProgrammingScopeImpl).between3 = between3;
|
|
678
|
+
protoOf(LogicProgrammingScopeImpl).callable1 = callable1;
|
|
679
|
+
protoOf(LogicProgrammingScopeImpl).compound1 = compound1;
|
|
680
|
+
protoOf(LogicProgrammingScopeImpl).current_op3 = current_op3;
|
|
681
|
+
protoOf(LogicProgrammingScopeImpl).op3 = op3;
|
|
682
|
+
protoOf(LogicProgrammingScopeImpl).findall3 = findall3;
|
|
683
|
+
protoOf(LogicProgrammingScopeImpl).float1 = float1;
|
|
684
|
+
protoOf(LogicProgrammingScopeImpl).functor3 = functor3;
|
|
685
|
+
protoOf(LogicProgrammingScopeImpl).ground1 = ground1;
|
|
686
|
+
protoOf(LogicProgrammingScopeImpl).integer1 = integer1;
|
|
687
|
+
protoOf(LogicProgrammingScopeImpl).natural = natural;
|
|
688
|
+
protoOf(LogicProgrammingScopeImpl).nonvar1 = nonvar1;
|
|
689
|
+
protoOf(LogicProgrammingScopeImpl).number1 = number1;
|
|
690
|
+
protoOf(LogicProgrammingScopeImpl).var1 = var1;
|
|
691
|
+
protoOf(LogicProgrammingScopeImpl).write1 = write1;
|
|
692
|
+
protoOf(LogicProgrammingScopeImpl).univ2 = univ2;
|
|
693
|
+
protoOf(LogicProgrammingScopeImpl).eq2 = eq2;
|
|
694
|
+
protoOf(LogicProgrammingScopeImpl).neq2 = neq2;
|
|
695
|
+
protoOf(LogicProgrammingScopeImpl).id2 = id2;
|
|
696
|
+
protoOf(LogicProgrammingScopeImpl).nid2 = nid2;
|
|
697
|
+
protoOf(LogicProgrammingScopeImpl).arithEq2 = arithEq2;
|
|
698
|
+
protoOf(LogicProgrammingScopeImpl).arithNeq2 = arithNeq2;
|
|
699
|
+
protoOf(LogicProgrammingScopeImpl).member2 = member2;
|
|
700
|
+
protoOf(LogicProgrammingScopeImpl).retract1 = retract1;
|
|
701
|
+
protoOf(LogicProgrammingScopeImpl).append3 = append3;
|
|
702
|
+
protoOf(LogicProgrammingScopeImpl).retractall1 = retractall1;
|
|
703
|
+
protoOf(LogicProgrammingScopeImpl).abolish1 = abolish1;
|
|
704
|
+
protoOf(LogicProgrammingScopeImpl).atom_chars2 = atom_chars2;
|
|
705
|
+
protoOf(LogicProgrammingScopeImpl).atom_codes2 = atom_codes2;
|
|
706
|
+
protoOf(LogicProgrammingScopeImpl).atom_concat3 = atom_concat3;
|
|
707
|
+
protoOf(LogicProgrammingScopeImpl).atom_length2 = atom_length2;
|
|
708
|
+
protoOf(LogicProgrammingScopeImpl).char_code2 = char_code2;
|
|
709
|
+
protoOf(LogicProgrammingScopeImpl).copy_term2 = copy_term2;
|
|
710
|
+
protoOf(LogicProgrammingScopeImpl).current_flag2 = current_flag2;
|
|
711
|
+
protoOf(LogicProgrammingScopeImpl).current_prolog_flag2 = current_prolog_flag2;
|
|
712
|
+
protoOf(LogicProgrammingScopeImpl).sub_atom5 = sub_atom5;
|
|
713
|
+
protoOf(LogicProgrammingScopeImpl).number_chars2 = number_chars2;
|
|
714
|
+
protoOf(LogicProgrammingScopeImpl).number_codes2 = number_codes2;
|
|
715
|
+
protoOf(LogicProgrammingScopeImpl).bagof3 = bagof3;
|
|
716
|
+
protoOf(LogicProgrammingScopeImpl).setof3 = setof3;
|
|
717
|
+
protoOf(LogicProgrammingScopeImpl).consult1 = consult1;
|
|
718
|
+
protoOf(LogicProgrammingScopeImpl).set_flag2 = set_flag2;
|
|
719
|
+
protoOf(LogicProgrammingScopeImpl).set_prolog_flag2 = set_prolog_flag2;
|
|
720
|
+
protoOf(LogicProgrammingScopeImpl).dynamic1 = dynamic1;
|
|
721
|
+
protoOf(LogicProgrammingScopeImpl).static1 = static1;
|
|
722
|
+
protoOf(LogicProgrammingScopeImpl).solve1 = solve1;
|
|
723
|
+
protoOf(LogicProgrammingScopeImpl).initialization1 = initialization1;
|
|
724
|
+
protoOf(LogicProgrammingScopeImpl).load1 = load1;
|
|
725
|
+
protoOf(LogicProgrammingScopeImpl).include1 = include1;
|
|
726
|
+
protoOf(LogicProgrammingScopeImpl).termPlus = termPlus;
|
|
727
|
+
protoOf(LogicProgrammingScopeImpl).number = number;
|
|
728
|
+
protoOf(LogicProgrammingScopeImpl).booleanPlus = booleanPlus;
|
|
729
|
+
protoOf(LogicProgrammingScopeImpl).charPlus = charPlus;
|
|
730
|
+
protoOf(LogicProgrammingScopeImpl).termMinus = termMinus;
|
|
731
|
+
protoOf(LogicProgrammingScopeImpl).numberMinus = numberMinus;
|
|
732
|
+
protoOf(LogicProgrammingScopeImpl).booleanMinus = booleanMinus;
|
|
733
|
+
protoOf(LogicProgrammingScopeImpl).charMinus = charMinus;
|
|
734
|
+
protoOf(LogicProgrammingScopeImpl).stringMinus = stringMinus;
|
|
735
|
+
protoOf(LogicProgrammingScopeImpl).termTimes = termTimes;
|
|
736
|
+
protoOf(LogicProgrammingScopeImpl).numberTimes = numberTimes;
|
|
737
|
+
protoOf(LogicProgrammingScopeImpl).booleanTimes = booleanTimes;
|
|
738
|
+
protoOf(LogicProgrammingScopeImpl).charTimes = charTimes;
|
|
739
|
+
protoOf(LogicProgrammingScopeImpl).stringTimes = stringTimes;
|
|
740
|
+
protoOf(LogicProgrammingScopeImpl).termDiv = termDiv;
|
|
741
|
+
protoOf(LogicProgrammingScopeImpl).numberDiv = numberDiv;
|
|
742
|
+
protoOf(LogicProgrammingScopeImpl).booleanDiv = booleanDiv;
|
|
743
|
+
protoOf(LogicProgrammingScopeImpl).charDiv = charDiv;
|
|
744
|
+
protoOf(LogicProgrammingScopeImpl).stringDiv = stringDiv;
|
|
745
|
+
protoOf(LogicProgrammingScopeImpl).anyEqualsTo = anyEqualsTo;
|
|
746
|
+
protoOf(LogicProgrammingScopeImpl).anyNotEqualsTo = anyNotEqualsTo;
|
|
747
|
+
protoOf(LogicProgrammingScopeImpl).anyGreaterThan = anyGreaterThan;
|
|
748
|
+
protoOf(LogicProgrammingScopeImpl).anyGreaterThanOrEqualsTo = anyGreaterThanOrEqualsTo;
|
|
749
|
+
protoOf(LogicProgrammingScopeImpl).anyNonLowerThan = anyNonLowerThan;
|
|
750
|
+
protoOf(LogicProgrammingScopeImpl).anyLowerThan = anyLowerThan;
|
|
751
|
+
protoOf(LogicProgrammingScopeImpl).anyLowerThanOrEqualsTo = anyLowerThanOrEqualsTo;
|
|
752
|
+
protoOf(LogicProgrammingScopeImpl).anyNonGreaterThan = anyNonGreaterThan;
|
|
753
|
+
protoOf(LogicProgrammingScopeImpl).anyIntDiv = anyIntDiv;
|
|
754
|
+
protoOf(LogicProgrammingScopeImpl).termRem = termRem;
|
|
755
|
+
protoOf(LogicProgrammingScopeImpl).numberRem = numberRem;
|
|
756
|
+
protoOf(LogicProgrammingScopeImpl).booleanRem = booleanRem;
|
|
757
|
+
protoOf(LogicProgrammingScopeImpl).charRem = charRem;
|
|
758
|
+
protoOf(LogicProgrammingScopeImpl).stringRem = stringRem;
|
|
759
|
+
protoOf(LogicProgrammingScopeImpl).anyAnd = anyAnd;
|
|
760
|
+
protoOf(LogicProgrammingScopeImpl).anyOr = anyOr;
|
|
761
|
+
protoOf(LogicProgrammingScopeImpl).anyPow = anyPow;
|
|
762
|
+
protoOf(LogicProgrammingScopeImpl).anySup = anySup;
|
|
763
|
+
protoOf(LogicProgrammingScopeImpl).anyIs = anyIs;
|
|
764
|
+
protoOf(LogicProgrammingScopeImpl).anyThen = anyThen;
|
|
765
|
+
protoOf(LogicProgrammingScopeImpl).anyImpliedBy = anyImpliedBy;
|
|
766
|
+
protoOf(LogicProgrammingScopeImpl).anyImpliedByVararg = anyImpliedByVararg;
|
|
767
|
+
protoOf(LogicProgrammingScopeImpl).anyIf = anyIf;
|
|
768
|
+
protoOf(LogicProgrammingScopeImpl).anyIfVararg = anyIfVararg;
|
|
769
|
+
protoOf(LogicProgrammingScopeImpl).anyMguWith = anyMguWith;
|
|
770
|
+
protoOf(LogicProgrammingScopeImpl).anyMatches = anyMatches;
|
|
771
|
+
protoOf(LogicProgrammingScopeImpl).anyUnifyWith = anyUnifyWith;
|
|
772
|
+
protoOf(LogicProgrammingScopeImpl).r3q = mgu;
|
|
773
|
+
protoOf(LogicProgrammingScopeImpl).mguAny = mguAny;
|
|
774
|
+
protoOf(LogicProgrammingScopeImpl).s3q = match;
|
|
775
|
+
protoOf(LogicProgrammingScopeImpl).matchAny = matchAny;
|
|
776
|
+
protoOf(LogicProgrammingScopeImpl).t3q = unify;
|
|
777
|
+
protoOf(LogicProgrammingScopeImpl).unifyAny = unifyAny;
|
|
778
|
+
protoOf(LogicProgrammingScopeImpl).convertToClause = convertToClause;
|
|
779
|
+
protoOf(LogicProgrammingScopeImpl).theory = theory;
|
|
780
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfConcatenatedSequences = theoryOfConcatenatedSequences;
|
|
781
|
+
protoOf(LogicProgrammingScopeImpl).theoryOfConcatenatedIterables = theoryOfConcatenatedIterables;
|
|
782
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheory = mutableTheory;
|
|
783
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfConcatenatedSequences = mutableTheoryOfConcatenatedSequences;
|
|
784
|
+
protoOf(LogicProgrammingScopeImpl).mutableTheoryOfConcatenatedIterables = mutableTheoryOfConcatenatedIterables;
|
|
785
|
+
//endregion
|
|
786
|
+
//region block: exports
|
|
787
|
+
_.$_$ = _.$_$ || {};
|
|
788
|
+
_.$_$.a = mutableTheoryOfConcatenatedSequences;
|
|
789
|
+
_.$_$.b = mutableTheoryOfConcatenatedIterables;
|
|
790
|
+
_.$_$.c = mutableTheory;
|
|
791
|
+
_.$_$.d = theoryOfConcatenatedSequences;
|
|
792
|
+
_.$_$.e = theoryOfConcatenatedIterables;
|
|
793
|
+
_.$_$.f = theory;
|
|
794
|
+
_.$_$.g = convertToClause;
|
|
795
|
+
_.$_$.h = LogicProgrammingScopeWithTheories;
|
|
796
|
+
_.$_$.i = logicProgramming;
|
|
11
797
|
//endregion
|
|
12
798
|
return _;
|
|
13
799
|
}));
|