@tuprolog/arg2p 0.10.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 +9458 -0
- package/2p-core.js.map +1 -0
- package/2p-dsl-core.js +1630 -0
- package/2p-dsl-core.js.map +1 -0
- package/2p-dsl-solve.js +959 -0
- package/2p-dsl-solve.js.map +1 -0
- package/2p-dsl-theory.js +806 -0
- package/2p-dsl-theory.js.map +1 -0
- package/2p-dsl-unify.js +79 -0
- package/2p-dsl-unify.js.map +1 -0
- package/2p-parser-core.js +1282 -0
- package/2p-parser-core.js.map +1 -0
- package/2p-parser-js.js +39 -0
- package/2p-parser-js.js.map +1 -0
- package/2p-parser-theory.js +156 -0
- package/2p-parser-theory.js.map +1 -0
- package/2p-solve-classic.js +2825 -0
- package/2p-solve-classic.js.map +1 -0
- package/2p-solve.js +14540 -0
- package/2p-solve.js.map +1 -0
- package/2p-theory.js +4771 -0
- package/2p-theory.js.map +1 -0
- package/2p-unify.js +923 -0
- package/2p-unify.js.map +1 -0
- package/2p-utils.js +1410 -0
- package/2p-utils.js.map +1 -0
- package/README.md +120 -0
- package/arg2p-causality-solver.js +501 -0
- package/arg2p-causality-solver.js.map +1 -0
- package/arg2p-core.js +4798 -0
- package/arg2p-core.js.map +1 -0
- package/arg2p.js +565 -0
- package/arg2p.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +9923 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kt-math.js +10392 -0
- package/kt-math.js.map +1 -0
- package/package.json +26 -0
package/arg2p.js
ADDED
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './arg2p-core.js', './2p-theory.js', './2p-parser-theory.js', './2p-solve.js', './2p-solve-classic.js', './arg2p-causality-solver.js', './2p-core.js', './2p-parser-core.js', './kt-math.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./arg2p-core.js'), require('./2p-theory.js'), require('./2p-parser-theory.js'), require('./2p-solve.js'), require('./2p-solve-classic.js'), require('./arg2p-causality-solver.js'), require('./2p-core.js'), require('./2p-parser-core.js'), require('./kt-math.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof this['arg2p-core'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency 'arg2p-core' was not found. Please, check whether 'arg2p-core' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof this['2p-theory'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
15
|
+
}
|
|
16
|
+
if (typeof this['2p-parser-theory'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency '2p-parser-theory' was not found. Please, check whether '2p-parser-theory' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof this['2p-solve'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof this['2p-solve-classic'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency '2p-solve-classic' was not found. Please, check whether '2p-solve-classic' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
24
|
+
}
|
|
25
|
+
if (typeof this['arg2p-causality-solver'] === 'undefined') {
|
|
26
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency 'arg2p-causality-solver' was not found. Please, check whether 'arg2p-causality-solver' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
27
|
+
}
|
|
28
|
+
if (typeof this['2p-core'] === 'undefined') {
|
|
29
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
30
|
+
}
|
|
31
|
+
if (typeof this['2p-parser-core'] === 'undefined') {
|
|
32
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency '2p-parser-core' was not found. Please, check whether '2p-parser-core' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
33
|
+
}
|
|
34
|
+
if (typeof this['kt-math'] === 'undefined') {
|
|
35
|
+
throw new Error("Error loading module 'it.unibo.tuprolog.argumentation:arg2p'. Its dependency 'kt-math' was not found. Please, check whether 'kt-math' is loaded prior to 'it.unibo.tuprolog.argumentation:arg2p'.");
|
|
36
|
+
}
|
|
37
|
+
root['it.unibo.tuprolog.argumentation:arg2p'] = factory(typeof this['it.unibo.tuprolog.argumentation:arg2p'] === 'undefined' ? {} : this['it.unibo.tuprolog.argumentation:arg2p'], this['kotlin-kotlin-stdlib'], this['arg2p-core'], this['2p-theory'], this['2p-parser-theory'], this['2p-solve'], this['2p-solve-classic'], this['arg2p-causality-solver'], this['2p-core'], this['2p-parser-core'], this['kt-math']);
|
|
38
|
+
}
|
|
39
|
+
}(this, function (_, kotlin_kotlin, kotlin_it_unibo_tuprolog_argumentation_core, kotlin_it_unibo_tuprolog_theory, kotlin_it_unibo_tuprolog_parser_theory, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_solve_classic, kotlin_it_unibo_tuprolog_argumentation_causality_solver, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_parser_core, kotlin_io_github_gciatto_kt_math) {
|
|
40
|
+
'use strict';
|
|
41
|
+
//region block: imports
|
|
42
|
+
var imul = Math.imul;
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.b6;
|
|
44
|
+
var VOID = kotlin_kotlin.$_$.d;
|
|
45
|
+
var getStringHashCode = kotlin_kotlin.$_$.m5;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.y9;
|
|
47
|
+
var classMeta = kotlin_kotlin.$_$.f5;
|
|
48
|
+
var setMetadataFor = kotlin_kotlin.$_$.c6;
|
|
49
|
+
var hashCode = kotlin_kotlin.$_$.n5;
|
|
50
|
+
var equals = kotlin_kotlin.$_$.i5;
|
|
51
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
52
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.b;
|
|
53
|
+
var Unit_instance = kotlin_kotlin.$_$.s1;
|
|
54
|
+
var contentEquals = kotlin_kotlin.$_$.m2;
|
|
55
|
+
var contentHashCode = kotlin_kotlin.$_$.n2;
|
|
56
|
+
var toString = kotlin_kotlin.$_$.g6;
|
|
57
|
+
var arg2pScope = kotlin_it_unibo_tuprolog_argumentation_core.$_$.e;
|
|
58
|
+
var mineGraph = kotlin_it_unibo_tuprolog_argumentation_core.$_$.j;
|
|
59
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.j2;
|
|
60
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
61
|
+
var copyToArray = kotlin_kotlin.$_$.r2;
|
|
62
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
63
|
+
var parseTheory = kotlin_it_unibo_tuprolog_parser_theory.$_$.a;
|
|
64
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h1;
|
|
65
|
+
var ClassicSolverFactory_instance = kotlin_it_unibo_tuprolog_solve_classic.$_$.a;
|
|
66
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_argumentation_core.$_$.c;
|
|
67
|
+
var CausalitySolver = kotlin_it_unibo_tuprolog_argumentation_causality_solver.$_$.a;
|
|
68
|
+
var listOf = kotlin_kotlin.$_$.j3;
|
|
69
|
+
var Unknown_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
70
|
+
var TrackVariables_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
71
|
+
var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.s;
|
|
72
|
+
var toString_0 = kotlin_kotlin.$_$.ka;
|
|
73
|
+
var toInt = kotlin_kotlin.$_$.g9;
|
|
74
|
+
var filter = kotlin_kotlin.$_$.j7;
|
|
75
|
+
var map = kotlin_kotlin.$_$.v7;
|
|
76
|
+
var first = kotlin_kotlin.$_$.l7;
|
|
77
|
+
var ensureNotNull = kotlin_kotlin.$_$.ca;
|
|
78
|
+
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
79
|
+
var parseStructWithOperators = kotlin_it_unibo_tuprolog_parser_core.$_$.f;
|
|
80
|
+
var parseTheoryWithOperators = kotlin_it_unibo_tuprolog_parser_theory.$_$.b;
|
|
81
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
82
|
+
var objectMeta = kotlin_kotlin.$_$.a6;
|
|
83
|
+
var defineProp = kotlin_kotlin.$_$.h5;
|
|
84
|
+
//endregion
|
|
85
|
+
//region block: pre-declaration
|
|
86
|
+
setMetadataFor(BridgedArgument, 'BridgedArgument', classMeta);
|
|
87
|
+
setMetadataFor(BridgedAttack, 'BridgedAttack', classMeta);
|
|
88
|
+
setMetadataFor(JsPair, 'JsPair', classMeta);
|
|
89
|
+
setMetadataFor(JsIterator, 'JsIterator', classMeta);
|
|
90
|
+
setMetadataFor(BridgedResult, 'BridgedResult', classMeta);
|
|
91
|
+
setMetadataFor(BridgedGraph, 'BridgedGraph', classMeta);
|
|
92
|
+
setMetadataFor(BridgedSolution, 'BridgedSolution', classMeta);
|
|
93
|
+
setMetadataFor(JsBridge, 'JsBridge', objectMeta);
|
|
94
|
+
//endregion
|
|
95
|
+
function BridgedArgument(id, descriptor, label) {
|
|
96
|
+
this.id = id;
|
|
97
|
+
this.descriptor = descriptor;
|
|
98
|
+
this.label = label;
|
|
99
|
+
}
|
|
100
|
+
protoOf(BridgedArgument).s13 = function () {
|
|
101
|
+
return this.id;
|
|
102
|
+
};
|
|
103
|
+
protoOf(BridgedArgument).r3l = function () {
|
|
104
|
+
return this.descriptor;
|
|
105
|
+
};
|
|
106
|
+
protoOf(BridgedArgument).p3p = function () {
|
|
107
|
+
return this.label;
|
|
108
|
+
};
|
|
109
|
+
protoOf(BridgedArgument).gd = function () {
|
|
110
|
+
return this.id;
|
|
111
|
+
};
|
|
112
|
+
protoOf(BridgedArgument).hd = function () {
|
|
113
|
+
return this.descriptor;
|
|
114
|
+
};
|
|
115
|
+
protoOf(BridgedArgument).q3p = function () {
|
|
116
|
+
return this.label;
|
|
117
|
+
};
|
|
118
|
+
protoOf(BridgedArgument).r3p = function (id, descriptor, label) {
|
|
119
|
+
return new BridgedArgument(id, descriptor, label);
|
|
120
|
+
};
|
|
121
|
+
protoOf(BridgedArgument).copy = function (id, descriptor, label, $super) {
|
|
122
|
+
id = id === VOID ? this.id : id;
|
|
123
|
+
descriptor = descriptor === VOID ? this.descriptor : descriptor;
|
|
124
|
+
label = label === VOID ? this.label : label;
|
|
125
|
+
return this.r3p(id, descriptor, label);
|
|
126
|
+
};
|
|
127
|
+
protoOf(BridgedArgument).toString = function () {
|
|
128
|
+
return 'BridgedArgument(id=' + this.id + ', descriptor=' + this.descriptor + ', label=' + this.label + ')';
|
|
129
|
+
};
|
|
130
|
+
protoOf(BridgedArgument).hashCode = function () {
|
|
131
|
+
var result = getStringHashCode(this.id);
|
|
132
|
+
result = imul(result, 31) + getStringHashCode(this.descriptor) | 0;
|
|
133
|
+
result = imul(result, 31) + getStringHashCode(this.label) | 0;
|
|
134
|
+
return result;
|
|
135
|
+
};
|
|
136
|
+
protoOf(BridgedArgument).equals = function (other) {
|
|
137
|
+
if (this === other)
|
|
138
|
+
return true;
|
|
139
|
+
if (!(other instanceof BridgedArgument))
|
|
140
|
+
return false;
|
|
141
|
+
var tmp0_other_with_cast = other instanceof BridgedArgument ? other : THROW_CCE();
|
|
142
|
+
if (!(this.id === tmp0_other_with_cast.id))
|
|
143
|
+
return false;
|
|
144
|
+
if (!(this.descriptor === tmp0_other_with_cast.descriptor))
|
|
145
|
+
return false;
|
|
146
|
+
if (!(this.label === tmp0_other_with_cast.label))
|
|
147
|
+
return false;
|
|
148
|
+
return true;
|
|
149
|
+
};
|
|
150
|
+
function BridgedAttack(from, to) {
|
|
151
|
+
this.from = from;
|
|
152
|
+
this.to = to;
|
|
153
|
+
}
|
|
154
|
+
protoOf(BridgedAttack).s3p = function () {
|
|
155
|
+
return this.from;
|
|
156
|
+
};
|
|
157
|
+
protoOf(BridgedAttack).t3p = function () {
|
|
158
|
+
return this.to;
|
|
159
|
+
};
|
|
160
|
+
protoOf(BridgedAttack).gd = function () {
|
|
161
|
+
return this.from;
|
|
162
|
+
};
|
|
163
|
+
protoOf(BridgedAttack).hd = function () {
|
|
164
|
+
return this.to;
|
|
165
|
+
};
|
|
166
|
+
protoOf(BridgedAttack).u3p = function (from, to) {
|
|
167
|
+
return new BridgedAttack(from, to);
|
|
168
|
+
};
|
|
169
|
+
protoOf(BridgedAttack).copy = function (from, to, $super) {
|
|
170
|
+
from = from === VOID ? this.from : from;
|
|
171
|
+
to = to === VOID ? this.to : to;
|
|
172
|
+
return this.u3p(from, to);
|
|
173
|
+
};
|
|
174
|
+
protoOf(BridgedAttack).toString = function () {
|
|
175
|
+
return 'BridgedAttack(from=' + this.from + ', to=' + this.to + ')';
|
|
176
|
+
};
|
|
177
|
+
protoOf(BridgedAttack).hashCode = function () {
|
|
178
|
+
var result = getStringHashCode(this.from);
|
|
179
|
+
result = imul(result, 31) + getStringHashCode(this.to) | 0;
|
|
180
|
+
return result;
|
|
181
|
+
};
|
|
182
|
+
protoOf(BridgedAttack).equals = function (other) {
|
|
183
|
+
if (this === other)
|
|
184
|
+
return true;
|
|
185
|
+
if (!(other instanceof BridgedAttack))
|
|
186
|
+
return false;
|
|
187
|
+
var tmp0_other_with_cast = other instanceof BridgedAttack ? other : THROW_CCE();
|
|
188
|
+
if (!(this.from === tmp0_other_with_cast.from))
|
|
189
|
+
return false;
|
|
190
|
+
if (!(this.to === tmp0_other_with_cast.to))
|
|
191
|
+
return false;
|
|
192
|
+
return true;
|
|
193
|
+
};
|
|
194
|
+
function JsPair(first, second) {
|
|
195
|
+
this.first = first;
|
|
196
|
+
this.second = second;
|
|
197
|
+
}
|
|
198
|
+
protoOf(JsPair).v3p = function () {
|
|
199
|
+
return this.first;
|
|
200
|
+
};
|
|
201
|
+
protoOf(JsPair).w3p = function () {
|
|
202
|
+
return this.second;
|
|
203
|
+
};
|
|
204
|
+
protoOf(JsPair).gd = function () {
|
|
205
|
+
return this.first;
|
|
206
|
+
};
|
|
207
|
+
protoOf(JsPair).hd = function () {
|
|
208
|
+
return this.second;
|
|
209
|
+
};
|
|
210
|
+
protoOf(JsPair).x3p = function (first, second) {
|
|
211
|
+
return new JsPair(first, second);
|
|
212
|
+
};
|
|
213
|
+
protoOf(JsPair).copy = function (first, second, $super) {
|
|
214
|
+
first = first === VOID ? this.first : first;
|
|
215
|
+
second = second === VOID ? this.second : second;
|
|
216
|
+
return this.x3p(first, second);
|
|
217
|
+
};
|
|
218
|
+
protoOf(JsPair).toString = function () {
|
|
219
|
+
return 'JsPair(first=' + this.first + ', second=' + this.second + ')';
|
|
220
|
+
};
|
|
221
|
+
protoOf(JsPair).hashCode = function () {
|
|
222
|
+
var result = this.first == null ? 0 : hashCode(this.first);
|
|
223
|
+
result = imul(result, 31) + (this.second == null ? 0 : hashCode(this.second)) | 0;
|
|
224
|
+
return result;
|
|
225
|
+
};
|
|
226
|
+
protoOf(JsPair).equals = function (other) {
|
|
227
|
+
if (this === other)
|
|
228
|
+
return true;
|
|
229
|
+
if (!(other instanceof JsPair))
|
|
230
|
+
return false;
|
|
231
|
+
var tmp0_other_with_cast = other instanceof JsPair ? other : THROW_CCE();
|
|
232
|
+
if (!equals(this.first, tmp0_other_with_cast.first))
|
|
233
|
+
return false;
|
|
234
|
+
if (!equals(this.second, tmp0_other_with_cast.second))
|
|
235
|
+
return false;
|
|
236
|
+
return true;
|
|
237
|
+
};
|
|
238
|
+
function JsIterator(nextFunction, hasNextFunction) {
|
|
239
|
+
this.y3p_1 = nextFunction;
|
|
240
|
+
this.z3p_1 = hasNextFunction;
|
|
241
|
+
}
|
|
242
|
+
protoOf(JsIterator).hasNext = function () {
|
|
243
|
+
return this.z3p_1();
|
|
244
|
+
};
|
|
245
|
+
protoOf(JsIterator).next = function () {
|
|
246
|
+
if (!this.hasNext())
|
|
247
|
+
throw NoSuchElementException_init_$Create$('No more elements');
|
|
248
|
+
return this.y3p_1();
|
|
249
|
+
};
|
|
250
|
+
function BridgedResult(i, query) {
|
|
251
|
+
this.i = i;
|
|
252
|
+
this.query = query;
|
|
253
|
+
}
|
|
254
|
+
protoOf(BridgedResult).a3q = function () {
|
|
255
|
+
return this.i;
|
|
256
|
+
};
|
|
257
|
+
protoOf(BridgedResult).q1w = function () {
|
|
258
|
+
return this.query;
|
|
259
|
+
};
|
|
260
|
+
protoOf(BridgedResult).gd = function () {
|
|
261
|
+
return this.i;
|
|
262
|
+
};
|
|
263
|
+
protoOf(BridgedResult).hd = function () {
|
|
264
|
+
return this.query;
|
|
265
|
+
};
|
|
266
|
+
protoOf(BridgedResult).b3q = function (i, query) {
|
|
267
|
+
return new BridgedResult(i, query);
|
|
268
|
+
};
|
|
269
|
+
protoOf(BridgedResult).copy = function (i, query, $super) {
|
|
270
|
+
i = i === VOID ? this.i : i;
|
|
271
|
+
query = query === VOID ? this.query : query;
|
|
272
|
+
return this.b3q(i, query);
|
|
273
|
+
};
|
|
274
|
+
protoOf(BridgedResult).toString = function () {
|
|
275
|
+
return 'BridgedResult(i=' + this.i + ', query=' + this.query + ')';
|
|
276
|
+
};
|
|
277
|
+
protoOf(BridgedResult).hashCode = function () {
|
|
278
|
+
var result = hashCode(this.i);
|
|
279
|
+
result = imul(result, 31) + getStringHashCode(this.query) | 0;
|
|
280
|
+
return result;
|
|
281
|
+
};
|
|
282
|
+
protoOf(BridgedResult).equals = function (other) {
|
|
283
|
+
if (this === other)
|
|
284
|
+
return true;
|
|
285
|
+
if (!(other instanceof BridgedResult))
|
|
286
|
+
return false;
|
|
287
|
+
var tmp0_other_with_cast = other instanceof BridgedResult ? other : THROW_CCE();
|
|
288
|
+
if (!equals(this.i, tmp0_other_with_cast.i))
|
|
289
|
+
return false;
|
|
290
|
+
if (!(this.query === tmp0_other_with_cast.query))
|
|
291
|
+
return false;
|
|
292
|
+
return true;
|
|
293
|
+
};
|
|
294
|
+
function BridgedGraph(arguments_0, attacks) {
|
|
295
|
+
this.arguments = arguments_0;
|
|
296
|
+
this.attacks = attacks;
|
|
297
|
+
}
|
|
298
|
+
protoOf(BridgedGraph).k2b = function () {
|
|
299
|
+
return this.arguments;
|
|
300
|
+
};
|
|
301
|
+
protoOf(BridgedGraph).c3q = function () {
|
|
302
|
+
return this.attacks;
|
|
303
|
+
};
|
|
304
|
+
protoOf(BridgedGraph).equals = function (other) {
|
|
305
|
+
if (this === other)
|
|
306
|
+
return true;
|
|
307
|
+
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
308
|
+
return false;
|
|
309
|
+
if (!(other instanceof BridgedGraph))
|
|
310
|
+
THROW_CCE();
|
|
311
|
+
if (!contentEquals(this.arguments, other.arguments))
|
|
312
|
+
return false;
|
|
313
|
+
if (!contentEquals(this.attacks, other.attacks))
|
|
314
|
+
return false;
|
|
315
|
+
return true;
|
|
316
|
+
};
|
|
317
|
+
protoOf(BridgedGraph).hashCode = function () {
|
|
318
|
+
var result = contentHashCode(this.arguments);
|
|
319
|
+
result = imul(31, result) + contentHashCode(this.attacks) | 0;
|
|
320
|
+
return result;
|
|
321
|
+
};
|
|
322
|
+
protoOf(BridgedGraph).gd = function () {
|
|
323
|
+
return this.arguments;
|
|
324
|
+
};
|
|
325
|
+
protoOf(BridgedGraph).hd = function () {
|
|
326
|
+
return this.attacks;
|
|
327
|
+
};
|
|
328
|
+
protoOf(BridgedGraph).d3q = function (arguments_0, attacks) {
|
|
329
|
+
return new BridgedGraph(arguments_0, attacks);
|
|
330
|
+
};
|
|
331
|
+
protoOf(BridgedGraph).copy = function (arguments_0, attacks, $super) {
|
|
332
|
+
arguments_0 = arguments_0 === VOID ? this.arguments : arguments_0;
|
|
333
|
+
attacks = attacks === VOID ? this.attacks : attacks;
|
|
334
|
+
return this.d3q(arguments_0, attacks);
|
|
335
|
+
};
|
|
336
|
+
protoOf(BridgedGraph).toString = function () {
|
|
337
|
+
return 'BridgedGraph(arguments=' + toString(this.arguments) + ', attacks=' + toString(this.attacks) + ')';
|
|
338
|
+
};
|
|
339
|
+
function BridgedSolution(res, query, substitutions, exception, graph) {
|
|
340
|
+
this.res = res;
|
|
341
|
+
this.query = query;
|
|
342
|
+
this.substitutions = substitutions;
|
|
343
|
+
this.exception = exception;
|
|
344
|
+
this.graph = graph;
|
|
345
|
+
}
|
|
346
|
+
protoOf(BridgedSolution).e3q = function () {
|
|
347
|
+
return this.res;
|
|
348
|
+
};
|
|
349
|
+
protoOf(BridgedSolution).q1w = function () {
|
|
350
|
+
return this.query;
|
|
351
|
+
};
|
|
352
|
+
protoOf(BridgedSolution).f3q = function () {
|
|
353
|
+
return this.substitutions;
|
|
354
|
+
};
|
|
355
|
+
protoOf(BridgedSolution).t1w = function () {
|
|
356
|
+
return this.exception;
|
|
357
|
+
};
|
|
358
|
+
protoOf(BridgedSolution).g3q = function () {
|
|
359
|
+
return this.graph;
|
|
360
|
+
};
|
|
361
|
+
protoOf(BridgedSolution).equals = function (other) {
|
|
362
|
+
if (this === other)
|
|
363
|
+
return true;
|
|
364
|
+
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
365
|
+
return false;
|
|
366
|
+
if (!(other instanceof BridgedSolution))
|
|
367
|
+
THROW_CCE();
|
|
368
|
+
if (!(this.res === other.res))
|
|
369
|
+
return false;
|
|
370
|
+
if (!(this.query === other.query))
|
|
371
|
+
return false;
|
|
372
|
+
if (!contentEquals(this.substitutions, other.substitutions))
|
|
373
|
+
return false;
|
|
374
|
+
if (!(this.exception === other.exception))
|
|
375
|
+
return false;
|
|
376
|
+
return true;
|
|
377
|
+
};
|
|
378
|
+
protoOf(BridgedSolution).hashCode = function () {
|
|
379
|
+
var result = getStringHashCode(this.res);
|
|
380
|
+
result = imul(31, result) + getStringHashCode(this.query) | 0;
|
|
381
|
+
result = imul(31, result) + contentHashCode(this.substitutions) | 0;
|
|
382
|
+
result = imul(31, result) + getStringHashCode(this.exception) | 0;
|
|
383
|
+
return result;
|
|
384
|
+
};
|
|
385
|
+
protoOf(BridgedSolution).gd = function () {
|
|
386
|
+
return this.res;
|
|
387
|
+
};
|
|
388
|
+
protoOf(BridgedSolution).hd = function () {
|
|
389
|
+
return this.query;
|
|
390
|
+
};
|
|
391
|
+
protoOf(BridgedSolution).q3p = function () {
|
|
392
|
+
return this.substitutions;
|
|
393
|
+
};
|
|
394
|
+
protoOf(BridgedSolution).h3q = function () {
|
|
395
|
+
return this.exception;
|
|
396
|
+
};
|
|
397
|
+
protoOf(BridgedSolution).i3q = function () {
|
|
398
|
+
return this.graph;
|
|
399
|
+
};
|
|
400
|
+
protoOf(BridgedSolution).j3q = function (res, query, substitutions, exception, graph) {
|
|
401
|
+
return new BridgedSolution(res, query, substitutions, exception, graph);
|
|
402
|
+
};
|
|
403
|
+
protoOf(BridgedSolution).copy = function (res, query, substitutions, exception, graph, $super) {
|
|
404
|
+
res = res === VOID ? this.res : res;
|
|
405
|
+
query = query === VOID ? this.query : query;
|
|
406
|
+
substitutions = substitutions === VOID ? this.substitutions : substitutions;
|
|
407
|
+
exception = exception === VOID ? this.exception : exception;
|
|
408
|
+
graph = graph === VOID ? this.graph : graph;
|
|
409
|
+
return this.j3q(res, query, substitutions, exception, graph);
|
|
410
|
+
};
|
|
411
|
+
protoOf(BridgedSolution).toString = function () {
|
|
412
|
+
return 'BridgedSolution(res=' + this.res + ', query=' + this.query + ', substitutions=' + toString(this.substitutions) + ', exception=' + this.exception + ', graph=' + this.graph + ')';
|
|
413
|
+
};
|
|
414
|
+
function graphOf($this, solver) {
|
|
415
|
+
var graph = mineGraph(solver, arg2pScope(JsBridge$graphOf$lambda(solver)));
|
|
416
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
417
|
+
// Inline function 'kotlin.collections.map' call
|
|
418
|
+
var this_0 = graph.b3m_1;
|
|
419
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
420
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
421
|
+
var tmp0_iterator = this_0.r();
|
|
422
|
+
while (tmp0_iterator.s()) {
|
|
423
|
+
var item = tmp0_iterator.u();
|
|
424
|
+
// Inline function 'it.unibo.tuprolog.argumentation.bridge.JsBridge.graphOf.<anonymous>' call
|
|
425
|
+
var tmp$ret$0 = new BridgedArgument(item.w3l_1.l3l_1, item.w3l_1.r3l(), item.x3l_1);
|
|
426
|
+
destination.o(tmp$ret$0);
|
|
427
|
+
}
|
|
428
|
+
var tmp = copyToArray(destination);
|
|
429
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
430
|
+
// Inline function 'kotlin.collections.map' call
|
|
431
|
+
var this_1 = graph.z3l_1;
|
|
432
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
433
|
+
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
434
|
+
var tmp0_iterator_0 = this_1.r();
|
|
435
|
+
while (tmp0_iterator_0.s()) {
|
|
436
|
+
var item_0 = tmp0_iterator_0.u();
|
|
437
|
+
// Inline function 'it.unibo.tuprolog.argumentation.bridge.JsBridge.graphOf.<anonymous>' call
|
|
438
|
+
var tmp$ret$4 = new BridgedAttack(item_0.s3l_1.l3l_1, item_0.t3l_1.l3l_1);
|
|
439
|
+
destination_0.o(tmp$ret$4);
|
|
440
|
+
}
|
|
441
|
+
var tmp$ret$7 = copyToArray(destination_0);
|
|
442
|
+
return new BridgedGraph(tmp, tmp$ret$7);
|
|
443
|
+
}
|
|
444
|
+
function solverOf($this, outputConsumer, flagsText) {
|
|
445
|
+
var flags = parseTheory(Companion_instance, flagsText);
|
|
446
|
+
var libFlags = Companion_getInstance().of('argumentation.flags', VOID, flags);
|
|
447
|
+
var tmp = ClassicSolverFactory_instance;
|
|
448
|
+
var tmp_0 = ClassicSolverFactory_instance.p1y().plusRuntime(Companion_instance_0.u3a(VOID, listOf(new CausalitySolver())).q3a().plusLibrary(libFlags));
|
|
449
|
+
var tmp_1 = ClassicSolverFactory_instance.s1y().setNotable(Unknown_getInstance(), Unknown_getInstance().b2a_1).setNotable(TrackVariables_getInstance(), TrackVariables_getInstance().v29_1);
|
|
450
|
+
var tmp_2 = Companion_instance.emptyWithDefaultUnificator();
|
|
451
|
+
var tmp_3 = Companion_instance_1.of(outputConsumer);
|
|
452
|
+
var tmp_4 = Companion_instance_1;
|
|
453
|
+
var tmp_5 = tmp_4.of(JsBridge$solverOf$lambda);
|
|
454
|
+
var tmp_6 = Companion_instance_1;
|
|
455
|
+
return tmp.mutableSolverWithDefaultBuiltinsAnd(VOID, tmp_0, tmp_1, tmp_2, VOID, VOID, tmp_3, tmp_5, tmp_6.of(JsBridge$solverOf$lambda_0));
|
|
456
|
+
}
|
|
457
|
+
function JsBridge$graphOf$lambda$lambda(it) {
|
|
458
|
+
return it.u1w();
|
|
459
|
+
}
|
|
460
|
+
function JsBridge$graphOf$lambda$lambda_0($this_arg2pScope) {
|
|
461
|
+
return function (it) {
|
|
462
|
+
return toInt(toString_0(it.m1v().x2($this_arg2pScope.c1h())));
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
function JsBridge$graphOf$lambda($solver) {
|
|
466
|
+
return function ($this$arg2pScope) {
|
|
467
|
+
var tmp = $solver.solve($this$arg2pScope.stringInvoke('context_active', $this$arg2pScope.c1h(), []));
|
|
468
|
+
var tmp_0 = filter(tmp, JsBridge$graphOf$lambda$lambda);
|
|
469
|
+
return first(map(tmp_0, JsBridge$graphOf$lambda$lambda_0($this$arg2pScope)));
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
function JsBridge$solverOf$lambda(_anonymous_parameter_0__qggqh8) {
|
|
473
|
+
return Unit_instance;
|
|
474
|
+
}
|
|
475
|
+
function JsBridge$solverOf$lambda_0(_anonymous_parameter_0__qggqh8) {
|
|
476
|
+
return Unit_instance;
|
|
477
|
+
}
|
|
478
|
+
function JsBridge$solve$lambda($formatter, $solver) {
|
|
479
|
+
return function (sol) {
|
|
480
|
+
var tmp;
|
|
481
|
+
if (sol.u1w()) {
|
|
482
|
+
var tmp_0 = $formatter.f13(ensureNotNull(sol.o1w()));
|
|
483
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
484
|
+
// Inline function 'kotlin.collections.map' call
|
|
485
|
+
var this_0 = sol.m1v();
|
|
486
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
487
|
+
var destination = ArrayList_init_$Create$(this_0.l());
|
|
488
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
489
|
+
var tmp0_iterator = this_0.n2().r();
|
|
490
|
+
while (tmp0_iterator.s()) {
|
|
491
|
+
var item = tmp0_iterator.u();
|
|
492
|
+
// Inline function 'it.unibo.tuprolog.argumentation.bridge.JsBridge.solve.<anonymous>.<anonymous>' call
|
|
493
|
+
var tmp$ret$1 = new JsPair($formatter.f13(item.q2()), $formatter.f13(item.r2()));
|
|
494
|
+
destination.o(tmp$ret$1);
|
|
495
|
+
}
|
|
496
|
+
var tmp$ret$4 = copyToArray(destination);
|
|
497
|
+
tmp = new BridgedSolution('yes', tmp_0, tmp$ret$4, '', graphOf(JsBridge_instance, $solver));
|
|
498
|
+
} else if (sol.v1w()) {
|
|
499
|
+
// Inline function 'kotlin.emptyArray' call
|
|
500
|
+
var tmp$ret$5 = [];
|
|
501
|
+
tmp = new BridgedSolution('no', '', tmp$ret$5, '', graphOf(JsBridge_instance, $solver));
|
|
502
|
+
} else {
|
|
503
|
+
// Inline function 'kotlin.emptyArray' call
|
|
504
|
+
var tmp$ret$6 = [];
|
|
505
|
+
tmp = new BridgedSolution('halt', '', tmp$ret$6, toString_0(sol.t1w()), graphOf(JsBridge_instance, $solver));
|
|
506
|
+
}
|
|
507
|
+
return tmp;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
function JsBridge$solve$lambda_0($i) {
|
|
511
|
+
return function () {
|
|
512
|
+
return $i.s() ? $i.u() : null;
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
function JsBridge$solve$lambda_1($i) {
|
|
516
|
+
return function () {
|
|
517
|
+
return $i.s();
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
function JsBridge() {
|
|
521
|
+
}
|
|
522
|
+
protoOf(JsBridge).solve = function (queryText, theoryText, flagsText, outputConsumer) {
|
|
523
|
+
var solver = solverOf(this, outputConsumer, flagsText);
|
|
524
|
+
var query = parseStructWithOperators(Companion_getInstance_0(), queryText, solver.z1v());
|
|
525
|
+
var theory = parseTheoryWithOperators(Companion_instance, theoryText, solver.z1v());
|
|
526
|
+
var formatter = Companion_instance_2.prettyExpressionsPrettyVariablesDefaultOperators();
|
|
527
|
+
solver.loadStaticKb(theory);
|
|
528
|
+
var tmp = solver.solve(query);
|
|
529
|
+
var solutions = map(tmp, JsBridge$solve$lambda(formatter, solver));
|
|
530
|
+
var i = solutions.r();
|
|
531
|
+
var tmp_0 = JsBridge$solve$lambda_0(i);
|
|
532
|
+
var jsIt = new JsIterator(tmp_0, JsBridge$solve$lambda_1(i));
|
|
533
|
+
return new BridgedResult(jsIt, formatter.f13(query));
|
|
534
|
+
};
|
|
535
|
+
var JsBridge_instance;
|
|
536
|
+
function JsBridge_getInstance() {
|
|
537
|
+
return JsBridge_instance;
|
|
538
|
+
}
|
|
539
|
+
//region block: init
|
|
540
|
+
JsBridge_instance = new JsBridge();
|
|
541
|
+
//endregion
|
|
542
|
+
//region block: exports
|
|
543
|
+
function $jsExportAll$(_) {
|
|
544
|
+
var $it = _.it || (_.it = {});
|
|
545
|
+
var $it$unibo = $it.unibo || ($it.unibo = {});
|
|
546
|
+
var $it$unibo$tuprolog = $it$unibo.tuprolog || ($it$unibo.tuprolog = {});
|
|
547
|
+
var $it$unibo$tuprolog$argumentation = $it$unibo$tuprolog.argumentation || ($it$unibo$tuprolog.argumentation = {});
|
|
548
|
+
var $it$unibo$tuprolog$argumentation$bridge = $it$unibo$tuprolog$argumentation.bridge || ($it$unibo$tuprolog$argumentation.bridge = {});
|
|
549
|
+
$it$unibo$tuprolog$argumentation$bridge.BridgedArgument = BridgedArgument;
|
|
550
|
+
$it$unibo$tuprolog$argumentation$bridge.BridgedAttack = BridgedAttack;
|
|
551
|
+
$it$unibo$tuprolog$argumentation$bridge.JsPair = JsPair;
|
|
552
|
+
$it$unibo$tuprolog$argumentation$bridge.JsIterator = JsIterator;
|
|
553
|
+
$it$unibo$tuprolog$argumentation$bridge.BridgedResult = BridgedResult;
|
|
554
|
+
$it$unibo$tuprolog$argumentation$bridge.BridgedGraph = BridgedGraph;
|
|
555
|
+
$it$unibo$tuprolog$argumentation$bridge.BridgedSolution = BridgedSolution;
|
|
556
|
+
defineProp($it$unibo$tuprolog$argumentation$bridge, 'JsBridge', JsBridge_getInstance);
|
|
557
|
+
}
|
|
558
|
+
$jsExportAll$(_);
|
|
559
|
+
kotlin_io_github_gciatto_kt_math.$jsExportAll$(_);
|
|
560
|
+
kotlin_it_unibo_tuprolog_solve_classic.$jsExportAll$(_);
|
|
561
|
+
//endregion
|
|
562
|
+
return _;
|
|
563
|
+
}));
|
|
564
|
+
|
|
565
|
+
//# sourceMappingURL=arg2p.js.map
|
package/arg2p.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/commonMain/kotlin/it/unibo/tuprolog/argumentation/bridge/JsBridge.kt","common/src/generated/_Collections.kt","src/jsMainSources/libraries/stdlib/js/src/kotlin/collectionJs.kt","common/src/generated/_Maps.kt","src/kotlin/collections/Maps.kt","js-ir/runtime/kotlinHacks.kt"],"sourcesContent":[null,null,null,null,null,null],"names":["<init>","id","descriptor","label","<get-id>","<get-descriptor>","<get-label>","component1","component2","component3","copy","copy$default","toString","hashCode","result","equals","other","from","to","<get-from>","<get-to>","first","second","<get-first>","<get-second>","nextFunction","hasNextFunction","hasNext","next","i","query","<get-i>","<get-query>","arguments","attacks","<get-arguments>","<get-attacks>","res","substitutions","exception","graph","<get-res>","<get-substitutions>","<get-exception>","<get-graph>","component4","component5","graphOf","solver","item","solverOf","outputConsumer","flagsText","flags","libFlags","JsBridge$graphOf$lambda$lambda","it","$this_arg2pScope","JsBridge$graphOf$lambda$lambda$lambda","JsBridge$graphOf$lambda","$solver","$this$arg2pScope","JsBridge$solverOf$lambda","JsBridge$solve$lambda","$formatter","JsBridge$solve$lambda$lambda","sol","$i","solve","queryText","theoryText","theory","formatter","solutions","jsIt"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAoB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