@tuprolog/2p-full 0.31.21 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +198 -215
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +3282 -5092
- package/2p-core.js.map +1 -1
- package/2p-full.js +6 -6
- package/2p-io-lib.js +874 -1121
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1140 -1327
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +438 -609
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +7 -8
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +35 -39
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +152 -179
- package/2p-repl.js.map +1 -1
- package/2p-solve-classic.js +1141 -1371
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-plp.js +9 -14
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1689 -1981
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1206 -1372
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +4879 -6147
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1820 -2246
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +290 -330
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +483 -557
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-js-ir.js +2243 -3266
- package/clikt-clikt-js-ir.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +9601 -10371
- 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 +2926 -4247
- package/kt-math.js.map +1 -1
- package/package.json +9 -3
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
package/2p-io-lib.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './2p-solve.js', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', './2p-solve.js', './kotlin-kotlin-stdlib.js', './2p-core.js', './2p-parser-core.js', './2p-parser-theory.js', './2p-theory.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./2p-solve.js'), require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('./2p-solve.js'), require('./kotlin-kotlin-stdlib.js'), require('./2p-core.js'), require('./2p-parser-core.js'), require('./2p-parser-theory.js'), require('./2p-theory.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['2p-solve'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module '2p-io-lib'. Its dependency '2p-solve' was not found. Please, check whether '2p-solve' is loaded prior to '2p-io-lib'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
11
|
-
throw new Error("Error loading module '2p-io-lib'. Its dependency 'kotlin-kotlin-stdlib
|
|
10
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module '2p-io-lib'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-io-lib'.");
|
|
12
12
|
}
|
|
13
13
|
if (typeof this['2p-core'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module '2p-io-lib'. Its dependency '2p-core' was not found. Please, check whether '2p-core' is loaded prior to '2p-io-lib'.");
|
|
@@ -22,92 +22,86 @@
|
|
|
22
22
|
if (typeof this['2p-theory'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module '2p-io-lib'. Its dependency '2p-theory' was not found. Please, check whether '2p-theory' is loaded prior to '2p-io-lib'.");
|
|
24
24
|
}
|
|
25
|
-
root['2p-io-lib'] = factory(typeof this['2p-io-lib'] === 'undefined' ? {} : this['2p-io-lib'], this['2p-solve'], this['kotlin-kotlin-stdlib
|
|
25
|
+
root['2p-io-lib'] = factory(typeof this['2p-io-lib'] === 'undefined' ? {} : this['2p-io-lib'], this['2p-solve'], this['kotlin-kotlin-stdlib'], this['2p-core'], this['2p-parser-core'], this['2p-parser-theory'], this['2p-theory']);
|
|
26
26
|
}
|
|
27
27
|
}(this, function (_, kotlin_it_unibo_tuprolog_solve, kotlin_kotlin, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_parser_core, kotlin_it_unibo_tuprolog_parser_theory, kotlin_it_unibo_tuprolog_theory) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
30
|
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.u6;
|
|
32
32
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c2;
|
|
33
|
-
var listOf = kotlin_kotlin.$_$.
|
|
34
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
35
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
36
|
-
var to = kotlin_kotlin.$_$.
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var get_ruleSignatures = kotlin_it_unibo_tuprolog_solve.$_$.d3;
|
|
43
|
-
var hasProtected = kotlin_it_unibo_tuprolog_solve.$_$.c3;
|
|
44
|
-
var objectMeta = kotlin_kotlin.$_$.r6;
|
|
45
|
-
var VOID = kotlin_kotlin.$_$.gc;
|
|
46
|
-
var setMetadataFor = kotlin_kotlin.$_$.t6;
|
|
47
|
-
var asSequence = kotlin_kotlin.$_$.l2;
|
|
48
|
-
var map = kotlin_kotlin.$_$.o8;
|
|
33
|
+
var listOf = kotlin_kotlin.$_$.s3;
|
|
34
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.q2;
|
|
35
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
36
|
+
var to = kotlin_kotlin.$_$.hc;
|
|
37
|
+
var Unit_instance = kotlin_kotlin.$_$.y1;
|
|
38
|
+
var objectMeta = kotlin_kotlin.$_$.t6;
|
|
39
|
+
var setMetadataFor = kotlin_kotlin.$_$.v6;
|
|
40
|
+
var asSequence = kotlin_kotlin.$_$.o2;
|
|
41
|
+
var map = kotlin_kotlin.$_$.q8;
|
|
49
42
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.s;
|
|
50
|
-
var toSet = kotlin_kotlin.$_$.
|
|
51
|
-
var
|
|
52
|
-
var Enum = kotlin_kotlin.$_$.
|
|
53
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
54
|
-
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.
|
|
55
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
43
|
+
var toSet = kotlin_kotlin.$_$.f9;
|
|
44
|
+
var THROW_IAE = kotlin_kotlin.$_$.wb;
|
|
45
|
+
var Enum = kotlin_kotlin.$_$.kb;
|
|
46
|
+
var classMeta = kotlin_kotlin.$_$.v5;
|
|
47
|
+
var RegexOption_IGNORE_CASE_getInstance = kotlin_kotlin.$_$.e;
|
|
48
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
49
|
+
var VOID = kotlin_kotlin.$_$.d;
|
|
50
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
51
|
+
var toList = kotlin_kotlin.$_$.w4;
|
|
52
|
+
var mapCapacity = kotlin_kotlin.$_$.t3;
|
|
53
|
+
var coerceAtLeast = kotlin_kotlin.$_$.k7;
|
|
54
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
55
|
+
var startsWith = kotlin_kotlin.$_$.ma;
|
|
56
|
+
var interfaceMeta = kotlin_kotlin.$_$.f6;
|
|
63
57
|
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.k;
|
|
64
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
65
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
58
|
+
var objectCreate = kotlin_kotlin.$_$.s6;
|
|
59
|
+
var captureStack = kotlin_kotlin.$_$.q5;
|
|
66
60
|
var TuPrologException_init_$Init$_0 = kotlin_it_unibo_tuprolog_core.$_$.m;
|
|
67
61
|
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.l1;
|
|
68
|
-
var
|
|
69
|
-
var
|
|
62
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_solve.$_$.v1;
|
|
63
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
70
64
|
var Expected_URL_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
71
|
-
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
72
|
-
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
73
|
-
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
74
|
-
var
|
|
75
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
+
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.c3;
|
|
66
|
+
var Predicative_0 = kotlin_it_unibo_tuprolog_solve.$_$.o3;
|
|
67
|
+
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
68
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_solve.$_$.e2;
|
|
69
|
+
var THROW_CCE = kotlin_kotlin.$_$.vb;
|
|
76
70
|
var InputChannel = kotlin_it_unibo_tuprolog_solve.$_$.o2;
|
|
77
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
71
|
+
var isInterface = kotlin_kotlin.$_$.j6;
|
|
78
72
|
var OutputChannel = kotlin_it_unibo_tuprolog_solve.$_$.p2;
|
|
79
|
-
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
80
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
81
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
73
|
+
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
74
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
75
|
+
var IllegalStateException = kotlin_kotlin.$_$.nb;
|
|
82
76
|
var Atom = kotlin_it_unibo_tuprolog_core.$_$.o1;
|
|
83
|
-
var equals = kotlin_kotlin.$_$.
|
|
84
|
-
var
|
|
85
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
86
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
var
|
|
91
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
92
|
-
var filter = kotlin_kotlin.$_$.
|
|
93
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
94
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
95
|
-
var
|
|
96
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
97
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
98
|
-
var asSequence_1 = kotlin_kotlin.$_$.
|
|
99
|
-
var addAll = kotlin_kotlin.$_$.
|
|
77
|
+
var equals = kotlin_kotlin.$_$.y5;
|
|
78
|
+
var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
79
|
+
var sequenceOf = kotlin_kotlin.$_$.w8;
|
|
80
|
+
var flatMap = kotlin_kotlin.$_$.h8;
|
|
81
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
82
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.i1;
|
|
83
|
+
var Companion_getInstance_4 = kotlin_it_unibo_tuprolog_core.$_$.g1;
|
|
84
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
85
|
+
var asSequence_0 = kotlin_kotlin.$_$.n2;
|
|
86
|
+
var filter = kotlin_kotlin.$_$.e8;
|
|
87
|
+
var Sequence = kotlin_kotlin.$_$.s7;
|
|
88
|
+
var firstOrNull = kotlin_kotlin.$_$.f8;
|
|
89
|
+
var Companion_getInstance_5 = kotlin_it_unibo_tuprolog_core.$_$.e1;
|
|
90
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
91
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
92
|
+
var asSequence_1 = kotlin_kotlin.$_$.m2;
|
|
93
|
+
var addAll = kotlin_kotlin.$_$.g2;
|
|
100
94
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
104
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
105
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
106
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
95
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.j1;
|
|
96
|
+
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
97
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l5;
|
|
98
|
+
var SequenceScope = kotlin_kotlin.$_$.r7;
|
|
99
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.k5;
|
|
100
|
+
var filterNot = kotlin_kotlin.$_$.d8;
|
|
107
101
|
var Truth = kotlin_it_unibo_tuprolog_core.$_$.z2;
|
|
108
|
-
var lazy = kotlin_kotlin.$_$.
|
|
109
|
-
var sequence = kotlin_kotlin.$_$.
|
|
110
|
-
var
|
|
102
|
+
var lazy = kotlin_kotlin.$_$.ac;
|
|
103
|
+
var sequence = kotlin_kotlin.$_$.x8;
|
|
104
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_solve.$_$.o1;
|
|
111
105
|
var Expected_STREAM_PROPERTY_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.e;
|
|
112
106
|
var Expected_WRITE_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.g;
|
|
113
107
|
var Expected_READ_OPTION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.b;
|
|
@@ -117,51 +111,52 @@
|
|
|
117
111
|
var FuncFormat_QUOTED_IF_NECESSARY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.e;
|
|
118
112
|
var OpFormat_EXPRESSIONS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.f;
|
|
119
113
|
var OpFormat_IGNORE_OPERATORS_getInstance = kotlin_it_unibo_tuprolog_core.$_$.g;
|
|
120
|
-
var
|
|
114
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_core.$_$.f1;
|
|
121
115
|
var VarFormat_UNDERSCORE_getInstance = kotlin_it_unibo_tuprolog_core.$_$.h;
|
|
122
116
|
var Expected_SOURCE_SINK_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.c;
|
|
123
117
|
var Expected_IO_MODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a;
|
|
124
|
-
var
|
|
118
|
+
var Companion_instance_7 = kotlin_it_unibo_tuprolog_solve.$_$.q1;
|
|
125
119
|
var Expected_STREAM_OR_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.d;
|
|
126
120
|
var Expected_IN_CHARACTER_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m;
|
|
127
|
-
var
|
|
121
|
+
var Companion_instance_8 = kotlin_it_unibo_tuprolog_solve.$_$.t1;
|
|
128
122
|
var Limit_CHARACTER_CODE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.i;
|
|
129
|
-
var
|
|
123
|
+
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
130
124
|
var Integer = kotlin_it_unibo_tuprolog_core.$_$.u1;
|
|
131
|
-
var Map = kotlin_kotlin.$_$.
|
|
125
|
+
var Map = kotlin_kotlin.$_$.d2;
|
|
132
126
|
var Expected_STREAM_TYPE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.f;
|
|
133
127
|
var format = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
134
|
-
var
|
|
135
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
136
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
137
|
-
var
|
|
138
|
-
var
|
|
139
|
-
var
|
|
140
|
-
var
|
|
141
|
-
var
|
|
128
|
+
var toString = kotlin_kotlin.$_$.o1;
|
|
129
|
+
var charSequenceGet = kotlin_kotlin.$_$.t5;
|
|
130
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.n1;
|
|
131
|
+
var Char = kotlin_kotlin.$_$.hb;
|
|
132
|
+
var emptyList = kotlin_kotlin.$_$.z2;
|
|
133
|
+
var get_lastIndex = kotlin_kotlin.$_$.l3;
|
|
134
|
+
var toList_0 = kotlin_kotlin.$_$.d9;
|
|
135
|
+
var last = kotlin_kotlin.$_$.o3;
|
|
136
|
+
var Companion_instance_9 = kotlin_it_unibo_tuprolog_solve.$_$.u1;
|
|
142
137
|
var ParseException = kotlin_it_unibo_tuprolog_parser_core.$_$.b;
|
|
143
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
144
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
145
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
146
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
147
|
-
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
148
|
-
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
149
|
-
var
|
|
150
|
-
var
|
|
151
|
-
var
|
|
152
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
153
|
-
var
|
|
154
|
-
var
|
|
155
|
-
var
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
var
|
|
138
|
+
var emptySet = kotlin_kotlin.$_$.b3;
|
|
139
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bc;
|
|
140
|
+
var KProperty1 = kotlin_kotlin.$_$.q7;
|
|
141
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.c6;
|
|
142
|
+
var NonBacktrackable_1 = kotlin_it_unibo_tuprolog_solve.$_$.i3;
|
|
143
|
+
var NonBacktrackable_2 = kotlin_it_unibo_tuprolog_solve.$_$.e3;
|
|
144
|
+
var Companion_instance_10 = kotlin_it_unibo_tuprolog_parser_theory.$_$.a;
|
|
145
|
+
var Companion_instance_11 = kotlin_it_unibo_tuprolog_theory.$_$.b;
|
|
146
|
+
var Companion_instance_12 = kotlin_it_unibo_tuprolog_theory.$_$.a;
|
|
147
|
+
var charSequenceLength = kotlin_kotlin.$_$.u5;
|
|
148
|
+
var titlecase = kotlin_kotlin.$_$.sa;
|
|
149
|
+
var isLowerCase = kotlin_kotlin.$_$.u9;
|
|
150
|
+
var toString_0 = kotlin_kotlin.$_$.z6;
|
|
151
|
+
var BinaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
152
|
+
var distinct = kotlin_kotlin.$_$.y7;
|
|
153
|
+
var NotImplementedError = kotlin_kotlin.$_$.qb;
|
|
159
154
|
var Info_getInstance = kotlin_it_unibo_tuprolog_core.$_$.k1;
|
|
160
155
|
var Platform_BROWSER_getInstance = kotlin_it_unibo_tuprolog_core.$_$.i;
|
|
161
|
-
var replace = kotlin_kotlin.$_$.
|
|
162
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
163
|
-
var toInt = kotlin_kotlin.$_$.
|
|
164
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
156
|
+
var replace = kotlin_kotlin.$_$.ha;
|
|
157
|
+
var KProperty0 = kotlin_kotlin.$_$.p7;
|
|
158
|
+
var toInt = kotlin_kotlin.$_$.xa;
|
|
159
|
+
var getStringHashCode = kotlin_kotlin.$_$.d6;
|
|
165
160
|
//endregion
|
|
166
161
|
//region block: pre-declaration
|
|
167
162
|
setMetadataFor(IOLib, 'IOLib', objectMeta, AbstractLibrary);
|
|
@@ -170,16 +165,16 @@
|
|
|
170
165
|
setMetadataFor(UrlField, 'UrlField', classMeta, Enum);
|
|
171
166
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
172
167
|
function resolve(child) {
|
|
173
|
-
return
|
|
168
|
+
return Companion_getInstance_8().g3j(this.k3j(), this.l3j(), this.m3j(), this.k30() + '/' + child, this.u1v());
|
|
174
169
|
}
|
|
175
170
|
function div(child) {
|
|
176
171
|
return this.resolve(child);
|
|
177
172
|
}
|
|
178
173
|
function get_isFile() {
|
|
179
|
-
return this.
|
|
174
|
+
return this.k3j() === 'file';
|
|
180
175
|
}
|
|
181
176
|
function get_isHttp() {
|
|
182
|
-
return startsWith(this.
|
|
177
|
+
return startsWith(this.k3j(), 'http');
|
|
183
178
|
}
|
|
184
179
|
setMetadataFor(Url, 'Url', interfaceMeta);
|
|
185
180
|
setMetadataFor(IOException, 'IOException', classMeta, TuPrologException);
|
|
@@ -200,7 +195,7 @@
|
|
|
200
195
|
setMetadataFor(GetChar2, 'GetChar2', objectMeta, NonBacktrackable);
|
|
201
196
|
setMetadataFor(GetCode1, 'GetCode1', objectMeta, NonBacktrackable_0);
|
|
202
197
|
setMetadataFor(GetCode2, 'GetCode2', objectMeta, NonBacktrackable);
|
|
203
|
-
setMetadataFor(IOPrimitiveUtils$propertiesOf$slambda, 'IOPrimitiveUtils$propertiesOf$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
198
|
+
setMetadataFor(IOPrimitiveUtils$propertiesOf$slambda, 'IOPrimitiveUtils$propertiesOf$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
204
199
|
setMetadataFor(IOPrimitiveUtils, 'IOPrimitiveUtils', objectMeta);
|
|
205
200
|
setMetadataFor(Nl1, 'Nl1', objectMeta, NonBacktrackable_0);
|
|
206
201
|
setMetadataFor(Open3, 'Open3', objectMeta, NonBacktrackable_1);
|
|
@@ -238,31 +233,24 @@
|
|
|
238
233
|
IOLib_instance = this;
|
|
239
234
|
AbstractLibrary.call(this);
|
|
240
235
|
}
|
|
241
|
-
protoOf(IOLib).
|
|
236
|
+
protoOf(IOLib).s2d = function () {
|
|
242
237
|
return 'prolog.io';
|
|
243
238
|
};
|
|
244
|
-
protoOf(IOLib).
|
|
239
|
+
protoOf(IOLib).r2d = function () {
|
|
245
240
|
var tmp = Companion_getInstance();
|
|
246
|
-
var tmp$ret$3;
|
|
247
241
|
// Inline function 'kotlin.collections.map' call
|
|
248
|
-
var
|
|
249
|
-
var tmp$ret$2;
|
|
242
|
+
var this_0 = listOf([AtEndOfStream0_getInstance(), AtEndOfStream1_getInstance(), CharConversion_getInstance(), Close1_getInstance(), Close2_getInstance(), Consult_getInstance(), CurrentCharConversion_getInstance(), CurrentInput_getInstance(), CurrentOutput_getInstance(), FlushOutput_getInstance(), GetByte1_getInstance(), GetByte2_getInstance(), GetChar1_getInstance(), GetChar2_getInstance(), GetCode1_getInstance(), GetCode2_getInstance(), Nl1_getInstance(), Open3_getInstance(), Open4_getInstance(), PeekByte1_getInstance(), PeekByte2_getInstance(), PeekChar1_getInstance(), PeekChar2_getInstance(), PeekCode1_getInstance(), PeekCode2_getInstance(), PutByte1_getInstance(), PutByte2_getInstance(), PutChar1_getInstance(), PutChar2_getInstance(), PutCode1_getInstance(), PutCode2_getInstance(), Read1_getInstance(), Read2_getInstance(), ReadTerm2_getInstance(), ReadTerm3_getInstance(), SetInput_getInstance(), SetOutput_getInstance(), SetTheory_getInstance(), StreamProperty_getInstance(), Write2_getInstance(), WriteCanonical1_getInstance(), WriteCanonical2_getInstance(), WriteEq1_getInstance(), WriteEq2_getInstance(), WriteTerm2_getInstance(), WriteTerm3_getInstance()]);
|
|
250
243
|
// Inline function 'kotlin.collections.mapTo' call
|
|
251
|
-
var
|
|
252
|
-
var tmp0_iterator =
|
|
253
|
-
while (tmp0_iterator.
|
|
254
|
-
var item = tmp0_iterator.
|
|
255
|
-
var tmp$ret$1;
|
|
244
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
245
|
+
var tmp0_iterator = this_0.r();
|
|
246
|
+
while (tmp0_iterator.s()) {
|
|
247
|
+
var item = tmp0_iterator.u();
|
|
256
248
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.IOLib.<get-primitives>.<anonymous>' call
|
|
257
|
-
var tmp$ret$0;
|
|
258
249
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
259
|
-
tmp$ret$
|
|
260
|
-
tmp$ret$1
|
|
261
|
-
tmp0_mapTo.g(tmp$ret$1);
|
|
250
|
+
var tmp$ret$1 = to(item.signature, item.i1u());
|
|
251
|
+
destination.o(tmp$ret$1);
|
|
262
252
|
}
|
|
263
|
-
tmp
|
|
264
|
-
tmp$ret$3 = tmp$ret$2;
|
|
265
|
-
return tmp.iterableToMapEnsuringNoDuplicates(tmp$ret$3);
|
|
253
|
+
return tmp.iterableToMapEnsuringNoDuplicates(destination);
|
|
266
254
|
};
|
|
267
255
|
var IOLib_instance;
|
|
268
256
|
function IOLib_getInstance() {
|
|
@@ -271,14 +259,9 @@
|
|
|
271
259
|
return IOLib_instance;
|
|
272
260
|
}
|
|
273
261
|
function IOMode$Companion$atomValues$lambda(it) {
|
|
274
|
-
var tmp$ret$1;
|
|
275
262
|
// Inline function 'kotlin.text.lowercase' call
|
|
276
|
-
var tmp0_lowercase = it.v1_1;
|
|
277
|
-
var tmp$ret$0;
|
|
278
263
|
// Inline function 'kotlin.js.asDynamic' call
|
|
279
|
-
|
|
280
|
-
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
281
|
-
return tmp$ret$1;
|
|
264
|
+
return it.g9_1.toLowerCase();
|
|
282
265
|
}
|
|
283
266
|
function Atom$Companion$of$ref($boundThis) {
|
|
284
267
|
var l = function (p0) {
|
|
@@ -291,18 +274,18 @@
|
|
|
291
274
|
var IOMode_WRITE_instance;
|
|
292
275
|
var IOMode_APPEND_instance;
|
|
293
276
|
function Companion() {
|
|
294
|
-
|
|
277
|
+
Companion_instance_13 = this;
|
|
295
278
|
var tmp = this;
|
|
296
279
|
var tmp_0 = asSequence(values());
|
|
297
280
|
var tmp_1 = map(tmp_0, IOMode$Companion$atomValues$lambda);
|
|
298
|
-
tmp.
|
|
281
|
+
tmp.d3j_1 = toSet(map(tmp_1, Atom$Companion$of$ref(Companion_getInstance_0())));
|
|
299
282
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
283
|
+
var Companion_instance_13;
|
|
284
|
+
function Companion_getInstance_7() {
|
|
302
285
|
IOMode_initEntries();
|
|
303
|
-
if (
|
|
286
|
+
if (Companion_instance_13 == null)
|
|
304
287
|
new Companion();
|
|
305
|
-
return
|
|
288
|
+
return Companion_instance_13;
|
|
306
289
|
}
|
|
307
290
|
function values() {
|
|
308
291
|
return [IOMode_READ_getInstance(), IOMode_WRITE_getInstance(), IOMode_APPEND_getInstance()];
|
|
@@ -317,19 +300,19 @@
|
|
|
317
300
|
return IOMode_APPEND_getInstance();
|
|
318
301
|
default:
|
|
319
302
|
IOMode_initEntries();
|
|
320
|
-
|
|
303
|
+
THROW_IAE('No enum constant value.');
|
|
321
304
|
break;
|
|
322
305
|
}
|
|
323
306
|
}
|
|
324
307
|
var IOMode_entriesInitialized;
|
|
325
308
|
function IOMode_initEntries() {
|
|
326
309
|
if (IOMode_entriesInitialized)
|
|
327
|
-
return
|
|
310
|
+
return Unit_instance;
|
|
328
311
|
IOMode_entriesInitialized = true;
|
|
329
312
|
IOMode_READ_instance = new IOMode('READ', 0);
|
|
330
313
|
IOMode_WRITE_instance = new IOMode('WRITE', 1);
|
|
331
314
|
IOMode_APPEND_instance = new IOMode('APPEND', 2);
|
|
332
|
-
|
|
315
|
+
Companion_getInstance_7();
|
|
333
316
|
}
|
|
334
317
|
function IOMode(name, ordinal) {
|
|
335
318
|
Enum.call(this, name, ordinal);
|
|
@@ -359,7 +342,7 @@
|
|
|
359
342
|
var UrlField_entriesInitialized;
|
|
360
343
|
function UrlField_initEntries() {
|
|
361
344
|
if (UrlField_entriesInitialized)
|
|
362
|
-
return
|
|
345
|
+
return Unit_instance;
|
|
363
346
|
UrlField_entriesInitialized = true;
|
|
364
347
|
UrlField_PROTOCOL_instance = new UrlField('PROTOCOL', 0);
|
|
365
348
|
UrlField_UNIT_instance = new UrlField('UNIT', 1);
|
|
@@ -452,10 +435,10 @@
|
|
|
452
435
|
return UrlField_ANCHOR_instance;
|
|
453
436
|
}
|
|
454
437
|
function Companion_0() {
|
|
455
|
-
|
|
456
|
-
this.
|
|
438
|
+
Companion_instance_14 = this;
|
|
439
|
+
this.e3j_1 = urlRegex$default(this);
|
|
457
440
|
}
|
|
458
|
-
protoOf(Companion_0).
|
|
441
|
+
protoOf(Companion_0).f3j = function (_this__u8e3s4) {
|
|
459
442
|
var tmp;
|
|
460
443
|
if (_this__u8e3s4 < 0) {
|
|
461
444
|
throw IllegalArgumentException_init_$Create$('Invalid port: ' + _this__u8e3s4);
|
|
@@ -464,53 +447,41 @@
|
|
|
464
447
|
}
|
|
465
448
|
return tmp;
|
|
466
449
|
};
|
|
467
|
-
protoOf(Companion_0).
|
|
468
|
-
var tmp0_safe_receiver = this.
|
|
469
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
450
|
+
protoOf(Companion_0).e30 = function (string) {
|
|
451
|
+
var tmp0_safe_receiver = this.e3j_1.t8(string);
|
|
452
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j9();
|
|
470
453
|
var match = tmp1_safe_receiver == null ? null : toList(tmp1_safe_receiver);
|
|
471
|
-
var tmp2_safe_receiver = match;
|
|
472
454
|
var tmp;
|
|
473
|
-
if (
|
|
455
|
+
if (match == null) {
|
|
474
456
|
tmp = null;
|
|
475
457
|
} else {
|
|
476
|
-
var tmp$ret$4;
|
|
477
458
|
// Inline function 'kotlin.let' call
|
|
478
459
|
// Inline function 'kotlin.contracts.contract' call
|
|
479
|
-
var tmp$ret$3;
|
|
480
460
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.Companion.parse.<anonymous>' call
|
|
481
|
-
var tmp$ret$2;
|
|
482
461
|
// Inline function 'kotlin.collections.associate' call
|
|
483
|
-
var
|
|
484
|
-
var capacity = coerceAtLeast(mapCapacity(
|
|
485
|
-
var tmp$ret$1;
|
|
462
|
+
var this_0 = values_0();
|
|
463
|
+
var capacity = coerceAtLeast(mapCapacity(this_0.length), 16);
|
|
486
464
|
// Inline function 'kotlin.collections.associateTo' call
|
|
487
|
-
var
|
|
488
|
-
var indexedObject = tmp2_associate;
|
|
465
|
+
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
489
466
|
var inductionVariable = 0;
|
|
490
|
-
var last =
|
|
467
|
+
var last = this_0.length;
|
|
491
468
|
while (inductionVariable < last) {
|
|
492
|
-
var element =
|
|
469
|
+
var element = this_0[inductionVariable];
|
|
493
470
|
inductionVariable = inductionVariable + 1 | 0;
|
|
494
471
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
495
|
-
var tmp$ret$0;
|
|
496
472
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.Companion.parse.<anonymous>.<anonymous>' call
|
|
497
|
-
var tmp0_safe_receiver_0 =
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
tmp1_associateTo.a4(tmp0_plusAssign.k4_1, tmp0_plusAssign.l4_1);
|
|
473
|
+
var tmp0_safe_receiver_0 = match.c1(element.h9_1 + 1 | 0);
|
|
474
|
+
var pair = to(element, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.k9_1);
|
|
475
|
+
destination.n2(pair.ye_1, pair.ze_1);
|
|
501
476
|
}
|
|
502
|
-
tmp
|
|
503
|
-
tmp$ret$2 = tmp$ret$1;
|
|
504
|
-
tmp$ret$3 = tmp$ret$2;
|
|
505
|
-
tmp$ret$4 = tmp$ret$3;
|
|
506
|
-
tmp = tmp$ret$4;
|
|
477
|
+
tmp = destination;
|
|
507
478
|
}
|
|
508
479
|
return tmp;
|
|
509
480
|
};
|
|
510
481
|
protoOf(Companion_0).file = function (path) {
|
|
511
482
|
return fileUrl(path);
|
|
512
483
|
};
|
|
513
|
-
protoOf(Companion_0).
|
|
484
|
+
protoOf(Companion_0).g3j = function (protocol, host, port, path, query) {
|
|
514
485
|
return remoteUrl(protocol, host, port, path, query);
|
|
515
486
|
};
|
|
516
487
|
protoOf(Companion_0).remote = function (protocol, host, port, path, query, $super) {
|
|
@@ -518,27 +489,27 @@
|
|
|
518
489
|
port = port === VOID ? null : port;
|
|
519
490
|
path = path === VOID ? '' : path;
|
|
520
491
|
query = query === VOID ? null : query;
|
|
521
|
-
return $super === VOID ? this.
|
|
492
|
+
return $super === VOID ? this.g3j(protocol, host, port, path, query) : $super.g3j.call(this, protocol, host, port, path, query);
|
|
522
493
|
};
|
|
523
|
-
protoOf(Companion_0).
|
|
524
|
-
return this.
|
|
494
|
+
protoOf(Companion_0).h3j = function (host, port, path, query) {
|
|
495
|
+
return this.g3j('http', host, port, path, query);
|
|
525
496
|
};
|
|
526
497
|
protoOf(Companion_0).http = function (host, port, path, query, $super) {
|
|
527
498
|
host = host === VOID ? '' : host;
|
|
528
499
|
port = port === VOID ? null : port;
|
|
529
500
|
path = path === VOID ? '' : path;
|
|
530
501
|
query = query === VOID ? null : query;
|
|
531
|
-
return $super === VOID ? this.
|
|
502
|
+
return $super === VOID ? this.h3j(host, port, path, query) : $super.h3j.call(this, host, port, path, query);
|
|
532
503
|
};
|
|
533
|
-
protoOf(Companion_0).
|
|
534
|
-
return this.
|
|
504
|
+
protoOf(Companion_0).i3j = function (host, port, path, query) {
|
|
505
|
+
return this.g3j('https', host, port, path, query);
|
|
535
506
|
};
|
|
536
507
|
protoOf(Companion_0).https = function (host, port, path, query, $super) {
|
|
537
508
|
host = host === VOID ? '' : host;
|
|
538
509
|
port = port === VOID ? null : port;
|
|
539
510
|
path = path === VOID ? '' : path;
|
|
540
511
|
query = query === VOID ? null : query;
|
|
541
|
-
return $super === VOID ? this.
|
|
512
|
+
return $super === VOID ? this.i3j(host, port, path, query) : $super.i3j.call(this, host, port, path, query);
|
|
542
513
|
};
|
|
543
514
|
protoOf(Companion_0).of = function (string) {
|
|
544
515
|
var tmp;
|
|
@@ -559,7 +530,6 @@
|
|
|
559
530
|
} else {
|
|
560
531
|
throw $p;
|
|
561
532
|
}
|
|
562
|
-
tmp_1 = tmp_2;
|
|
563
533
|
}
|
|
564
534
|
tmp_0 = tmp_1;
|
|
565
535
|
} else {
|
|
@@ -569,17 +539,16 @@
|
|
|
569
539
|
}
|
|
570
540
|
return tmp;
|
|
571
541
|
};
|
|
572
|
-
protoOf(Companion_0).
|
|
573
|
-
var
|
|
574
|
-
var tmp = tmp0_safe_receiver == null ? null : this.c3i(tmp0_safe_receiver);
|
|
542
|
+
protoOf(Companion_0).j3j = function (protocol, host, port, path, query) {
|
|
543
|
+
var tmp = port == null ? null : this.f3j(port);
|
|
575
544
|
var tmp_0 = str(tmp, this, Url$Companion$toString$lambda);
|
|
576
545
|
return protocol + '://' + host + tmp_0 + path + str(query, this, Url$Companion$toString$lambda_0);
|
|
577
546
|
};
|
|
578
|
-
var
|
|
579
|
-
function
|
|
580
|
-
if (
|
|
547
|
+
var Companion_instance_14;
|
|
548
|
+
function Companion_getInstance_8() {
|
|
549
|
+
if (Companion_instance_14 == null)
|
|
581
550
|
new Companion_0();
|
|
582
|
-
return
|
|
551
|
+
return Companion_instance_14;
|
|
583
552
|
}
|
|
584
553
|
function Url() {
|
|
585
554
|
}
|
|
@@ -603,8 +572,8 @@
|
|
|
603
572
|
captureStack(tmp, IOException_init_$Create$_0);
|
|
604
573
|
return tmp;
|
|
605
574
|
}
|
|
606
|
-
protoOf(IOException).
|
|
607
|
-
return
|
|
575
|
+
protoOf(IOException).p3j = function (context) {
|
|
576
|
+
return Companion_instance.forUncaughtKtException(context, this);
|
|
608
577
|
};
|
|
609
578
|
function IOException() {
|
|
610
579
|
captureStack(this, IOException);
|
|
@@ -619,8 +588,8 @@
|
|
|
619
588
|
captureStack(tmp, InvalidUrlException_init_$Create$);
|
|
620
589
|
return tmp;
|
|
621
590
|
}
|
|
622
|
-
protoOf(InvalidUrlException).
|
|
623
|
-
return
|
|
591
|
+
protoOf(InvalidUrlException).q3j = function (context, signature, culprit, index) {
|
|
592
|
+
return Companion_instance_0.d28(context, signature, Expected_URL_getInstance(), culprit, index);
|
|
624
593
|
};
|
|
625
594
|
function InvalidUrlException() {
|
|
626
595
|
captureStack(this, InvalidUrlException);
|
|
@@ -629,19 +598,15 @@
|
|
|
629
598
|
AtEndOfStream0_instance = this;
|
|
630
599
|
Predicative.call(this, 'at_end_of_stream');
|
|
631
600
|
}
|
|
632
|
-
protoOf(AtEndOfStream0).
|
|
633
|
-
var tmp$ret$1;
|
|
601
|
+
protoOf(AtEndOfStream0).s3j = function (_this__u8e3s4) {
|
|
634
602
|
// Inline function 'kotlin.let' call
|
|
635
|
-
var tmp0_let = IOPrimitiveUtils_getInstance().h3j(_this__u8e3s4);
|
|
636
603
|
// Inline function 'kotlin.contracts.contract' call
|
|
637
|
-
var tmp$ret$0;
|
|
638
604
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.AtEndOfStream0.compute.<anonymous>' call
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
return tmp$ret$1;
|
|
605
|
+
var it = IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4);
|
|
606
|
+
return it.a1z() ? true : it.hr();
|
|
642
607
|
};
|
|
643
|
-
protoOf(AtEndOfStream0).
|
|
644
|
-
return this.
|
|
608
|
+
protoOf(AtEndOfStream0).z2f = function (_this__u8e3s4) {
|
|
609
|
+
return this.s3j(_this__u8e3s4);
|
|
645
610
|
};
|
|
646
611
|
var AtEndOfStream0_instance;
|
|
647
612
|
function AtEndOfStream0_getInstance() {
|
|
@@ -653,19 +618,15 @@
|
|
|
653
618
|
AtEndOfStream1_instance = this;
|
|
654
619
|
Predicative_0.call(this, 'at_end_of_stream');
|
|
655
620
|
}
|
|
656
|
-
protoOf(AtEndOfStream1).
|
|
657
|
-
var tmp$ret$1;
|
|
621
|
+
protoOf(AtEndOfStream1).m3k = function (_this__u8e3s4, first) {
|
|
658
622
|
// Inline function 'kotlin.let' call
|
|
659
|
-
var tmp0_let = IOPrimitiveUtils_getInstance().k3j(_this__u8e3s4, 0);
|
|
660
623
|
// Inline function 'kotlin.contracts.contract' call
|
|
661
|
-
var tmp$ret$0;
|
|
662
624
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.AtEndOfStream1.compute.<anonymous>' call
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
return tmp$ret$1;
|
|
625
|
+
var it = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
626
|
+
return it.a1z() ? true : it.hr();
|
|
666
627
|
};
|
|
667
|
-
protoOf(AtEndOfStream1).
|
|
668
|
-
return this.
|
|
628
|
+
protoOf(AtEndOfStream1).w2i = function (_this__u8e3s4, first) {
|
|
629
|
+
return this.m3k(_this__u8e3s4, first);
|
|
669
630
|
};
|
|
670
631
|
var AtEndOfStream1_instance;
|
|
671
632
|
function AtEndOfStream1_getInstance() {
|
|
@@ -677,11 +638,11 @@
|
|
|
677
638
|
CharConversion_instance = this;
|
|
678
639
|
NonBacktrackable.call(this, 'char_conversion');
|
|
679
640
|
}
|
|
680
|
-
protoOf(CharConversion).
|
|
681
|
-
return
|
|
641
|
+
protoOf(CharConversion).w2o = function (_this__u8e3s4, first, second) {
|
|
642
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
682
643
|
};
|
|
683
|
-
protoOf(CharConversion).
|
|
684
|
-
return this.
|
|
644
|
+
protoOf(CharConversion).h2f = function (_this__u8e3s4, first, second) {
|
|
645
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
685
646
|
};
|
|
686
647
|
var CharConversion_instance;
|
|
687
648
|
function CharConversion_getInstance() {
|
|
@@ -691,32 +652,31 @@
|
|
|
691
652
|
}
|
|
692
653
|
function Close1$computeOne$lambda($this_computeOne, $channel) {
|
|
693
654
|
return function ($this$replySuccess) {
|
|
694
|
-
var tmp = $this_computeOne.context.
|
|
695
|
-
$this$replySuccess.
|
|
696
|
-
return
|
|
655
|
+
var tmp = $this_computeOne.context.y1u();
|
|
656
|
+
$this$replySuccess.g2m(tmp.aliasesOf(isInterface($channel, InputChannel) ? $channel : THROW_CCE()));
|
|
657
|
+
return Unit_instance;
|
|
697
658
|
};
|
|
698
659
|
}
|
|
699
660
|
function Close1$computeOne$lambda_0($this_computeOne, $channel) {
|
|
700
661
|
return function ($this$replySuccess) {
|
|
701
|
-
var tmp = $this_computeOne.context.
|
|
702
|
-
$this$replySuccess.
|
|
703
|
-
return
|
|
662
|
+
var tmp = $this_computeOne.context.z1u();
|
|
663
|
+
$this$replySuccess.j2m(tmp.aliasesOf(isInterface($channel, OutputChannel) ? $channel : THROW_CCE()));
|
|
664
|
+
return Unit_instance;
|
|
704
665
|
};
|
|
705
666
|
}
|
|
706
667
|
function Close1() {
|
|
707
668
|
Close1_instance = this;
|
|
708
669
|
NonBacktrackable_0.call(this, 'close');
|
|
709
670
|
}
|
|
710
|
-
protoOf(Close1).
|
|
711
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
671
|
+
protoOf(Close1).f2o = function (_this__u8e3s4, first) {
|
|
672
|
+
var channel = IOPrimitiveUtils_getInstance().q3k(_this__u8e3s4, 0);
|
|
712
673
|
try {
|
|
713
674
|
channel.close();
|
|
714
|
-
var tmp0_subject = channel;
|
|
715
675
|
var tmp;
|
|
716
|
-
if (isInterface(
|
|
676
|
+
if (isInterface(channel, InputChannel)) {
|
|
717
677
|
tmp = _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Close1$computeOne$lambda(_this__u8e3s4, channel));
|
|
718
678
|
} else {
|
|
719
|
-
if (isInterface(
|
|
679
|
+
if (isInterface(channel, OutputChannel)) {
|
|
720
680
|
tmp = _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Close1$computeOne$lambda_0(_this__u8e3s4, channel));
|
|
721
681
|
} else {
|
|
722
682
|
throw IllegalStateException_init_$Create$('This should never happen');
|
|
@@ -732,8 +692,8 @@
|
|
|
732
692
|
}
|
|
733
693
|
}
|
|
734
694
|
};
|
|
735
|
-
protoOf(Close1).
|
|
736
|
-
return this.
|
|
695
|
+
protoOf(Close1).z2i = function (_this__u8e3s4, first) {
|
|
696
|
+
return this.f2o(_this__u8e3s4, first);
|
|
737
697
|
};
|
|
738
698
|
var Close1_instance;
|
|
739
699
|
function Close1_getInstance() {
|
|
@@ -745,11 +705,11 @@
|
|
|
745
705
|
Close2_instance = this;
|
|
746
706
|
NonBacktrackable.call(this, 'close');
|
|
747
707
|
}
|
|
748
|
-
protoOf(Close2).
|
|
749
|
-
return
|
|
708
|
+
protoOf(Close2).w2o = function (_this__u8e3s4, first, second) {
|
|
709
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
750
710
|
};
|
|
751
|
-
protoOf(Close2).
|
|
752
|
-
return this.
|
|
711
|
+
protoOf(Close2).h2f = function (_this__u8e3s4, first, second) {
|
|
712
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
753
713
|
};
|
|
754
714
|
var Close2_instance;
|
|
755
715
|
function Close2_getInstance() {
|
|
@@ -761,30 +721,30 @@
|
|
|
761
721
|
Consult_instance = this;
|
|
762
722
|
NonBacktrackable_0.call(this, 'consult');
|
|
763
723
|
}
|
|
764
|
-
protoOf(Consult).
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).
|
|
724
|
+
protoOf(Consult).f2o = function (_this__u8e3s4, first) {
|
|
725
|
+
Companion_getInstance_1().l2g(_this__u8e3s4, 0);
|
|
726
|
+
Companion_getInstance_1().u2g(_this__u8e3s4, 0);
|
|
727
|
+
var urlString = (isInterface(first, Atom) ? first : THROW_CCE()).r2();
|
|
768
728
|
try {
|
|
769
|
-
var url =
|
|
729
|
+
var url = Companion_getInstance_8().of(urlString);
|
|
770
730
|
var text = url.readAsText();
|
|
771
|
-
return SetTheory_getInstance().
|
|
731
|
+
return SetTheory_getInstance().u3k(_this__u8e3s4, text);
|
|
772
732
|
} catch ($p) {
|
|
773
733
|
if ($p instanceof InvalidUrlException) {
|
|
774
734
|
var e = $p;
|
|
775
|
-
throw e.
|
|
735
|
+
throw e.q3j(_this__u8e3s4.context, _this__u8e3s4.signature, first, 0);
|
|
776
736
|
} else {
|
|
777
737
|
if ($p instanceof IOException) {
|
|
778
738
|
var e_0 = $p;
|
|
779
|
-
throw e_0.
|
|
739
|
+
throw e_0.p3j(_this__u8e3s4.context);
|
|
780
740
|
} else {
|
|
781
741
|
throw $p;
|
|
782
742
|
}
|
|
783
743
|
}
|
|
784
744
|
}
|
|
785
745
|
};
|
|
786
|
-
protoOf(Consult).
|
|
787
|
-
return this.
|
|
746
|
+
protoOf(Consult).z2i = function (_this__u8e3s4, first) {
|
|
747
|
+
return this.f2o(_this__u8e3s4, first);
|
|
788
748
|
};
|
|
789
749
|
var Consult_instance;
|
|
790
750
|
function Consult_getInstance() {
|
|
@@ -796,11 +756,11 @@
|
|
|
796
756
|
CurrentCharConversion_instance = this;
|
|
797
757
|
NonBacktrackable.call(this, 'current_char_conversion');
|
|
798
758
|
}
|
|
799
|
-
protoOf(CurrentCharConversion).
|
|
800
|
-
return
|
|
759
|
+
protoOf(CurrentCharConversion).w2o = function (_this__u8e3s4, first, second) {
|
|
760
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
801
761
|
};
|
|
802
|
-
protoOf(CurrentCharConversion).
|
|
803
|
-
return this.
|
|
762
|
+
protoOf(CurrentCharConversion).h2f = function (_this__u8e3s4, first, second) {
|
|
763
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
804
764
|
};
|
|
805
765
|
var CurrentCharConversion_instance;
|
|
806
766
|
function CurrentCharConversion_getInstance() {
|
|
@@ -812,23 +772,18 @@
|
|
|
812
772
|
CurrentInput_instance = this;
|
|
813
773
|
NonBacktrackable_0.call(this, 'current_input');
|
|
814
774
|
}
|
|
815
|
-
protoOf(CurrentInput).
|
|
816
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
817
|
-
var tmp$ret$1;
|
|
775
|
+
protoOf(CurrentInput).f2o = function (_this__u8e3s4, first) {
|
|
776
|
+
var channel = IOPrimitiveUtils_getInstance().x3k(_this__u8e3s4, 0);
|
|
818
777
|
// Inline function 'kotlin.let' call
|
|
819
|
-
var tmp0_let = _this__u8e3s4.context.z1t();
|
|
820
778
|
// Inline function 'kotlin.contracts.contract' call
|
|
821
|
-
var tmp$ret$0;
|
|
822
779
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.CurrentInput.computeOne.<anonymous>' call
|
|
823
|
-
var
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
var tmp0_subject = channel;
|
|
828
|
-
return tmp0_subject == null ? _this__u8e3s4.replyWith(Companion_getInstance_3().d2f(_this__u8e3s4, first, currentChannel.z1x()), VOID, []) : equals(tmp0_subject, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
780
|
+
var it = _this__u8e3s4.context.y1u();
|
|
781
|
+
var tmp0_elvis_lhs = it.fr();
|
|
782
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.i1v() : tmp0_elvis_lhs;
|
|
783
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, first, currentChannel.b1z()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
829
784
|
};
|
|
830
|
-
protoOf(CurrentInput).
|
|
831
|
-
return this.
|
|
785
|
+
protoOf(CurrentInput).z2i = function (_this__u8e3s4, first) {
|
|
786
|
+
return this.f2o(_this__u8e3s4, first);
|
|
832
787
|
};
|
|
833
788
|
var CurrentInput_instance;
|
|
834
789
|
function CurrentInput_getInstance() {
|
|
@@ -840,23 +795,18 @@
|
|
|
840
795
|
CurrentOutput_instance = this;
|
|
841
796
|
NonBacktrackable_0.call(this, 'current_output');
|
|
842
797
|
}
|
|
843
|
-
protoOf(CurrentOutput).
|
|
844
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
845
|
-
var tmp$ret$1;
|
|
798
|
+
protoOf(CurrentOutput).f2o = function (_this__u8e3s4, first) {
|
|
799
|
+
var channel = IOPrimitiveUtils_getInstance().x3k(_this__u8e3s4, 0);
|
|
846
800
|
// Inline function 'kotlin.let' call
|
|
847
|
-
var tmp0_let = _this__u8e3s4.context.a1u();
|
|
848
801
|
// Inline function 'kotlin.contracts.contract' call
|
|
849
|
-
var tmp$ret$0;
|
|
850
802
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.CurrentOutput.computeOne.<anonymous>' call
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
var tmp0_subject = channel;
|
|
856
|
-
return tmp0_subject == null ? _this__u8e3s4.replyWith(Companion_getInstance_3().d2f(_this__u8e3s4, first, currentChannel.z1x()), VOID, []) : equals(tmp0_subject, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
803
|
+
var it = _this__u8e3s4.context.z1u();
|
|
804
|
+
var tmp0_elvis_lhs = it.fr();
|
|
805
|
+
var currentChannel = tmp0_elvis_lhs == null ? it.j1v() : tmp0_elvis_lhs;
|
|
806
|
+
return channel == null ? _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, first, currentChannel.b1z()), VOID, []) : equals(channel, currentChannel) ? _this__u8e3s4.replySuccess(VOID, VOID, []) : _this__u8e3s4.replyFail(VOID, []);
|
|
857
807
|
};
|
|
858
|
-
protoOf(CurrentOutput).
|
|
859
|
-
return this.
|
|
808
|
+
protoOf(CurrentOutput).z2i = function (_this__u8e3s4, first) {
|
|
809
|
+
return this.f2o(_this__u8e3s4, first);
|
|
860
810
|
};
|
|
861
811
|
var CurrentOutput_instance;
|
|
862
812
|
function CurrentOutput_getInstance() {
|
|
@@ -868,8 +818,8 @@
|
|
|
868
818
|
FlushOutput_instance = this;
|
|
869
819
|
NonBacktrackable_0.call(this, 'flush_output');
|
|
870
820
|
}
|
|
871
|
-
protoOf(FlushOutput).
|
|
872
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
821
|
+
protoOf(FlushOutput).f2o = function (_this__u8e3s4, first) {
|
|
822
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
873
823
|
var tmp;
|
|
874
824
|
try {
|
|
875
825
|
channel.flush();
|
|
@@ -886,8 +836,8 @@
|
|
|
886
836
|
}
|
|
887
837
|
return tmp;
|
|
888
838
|
};
|
|
889
|
-
protoOf(FlushOutput).
|
|
890
|
-
return this.
|
|
839
|
+
protoOf(FlushOutput).z2i = function (_this__u8e3s4, first) {
|
|
840
|
+
return this.f2o(_this__u8e3s4, first);
|
|
891
841
|
};
|
|
892
842
|
var FlushOutput_instance;
|
|
893
843
|
function FlushOutput_getInstance() {
|
|
@@ -899,11 +849,11 @@
|
|
|
899
849
|
GetByte1_instance = this;
|
|
900
850
|
NonBacktrackable_0.call(this, 'get_byte');
|
|
901
851
|
}
|
|
902
|
-
protoOf(GetByte1).
|
|
903
|
-
return
|
|
852
|
+
protoOf(GetByte1).f2o = function (_this__u8e3s4, first) {
|
|
853
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
904
854
|
};
|
|
905
|
-
protoOf(GetByte1).
|
|
906
|
-
return this.
|
|
855
|
+
protoOf(GetByte1).z2i = function (_this__u8e3s4, first) {
|
|
856
|
+
return this.f2o(_this__u8e3s4, first);
|
|
907
857
|
};
|
|
908
858
|
var GetByte1_instance;
|
|
909
859
|
function GetByte1_getInstance() {
|
|
@@ -915,11 +865,11 @@
|
|
|
915
865
|
GetByte2_instance = this;
|
|
916
866
|
NonBacktrackable.call(this, 'get_byte');
|
|
917
867
|
}
|
|
918
|
-
protoOf(GetByte2).
|
|
919
|
-
return
|
|
868
|
+
protoOf(GetByte2).w2o = function (_this__u8e3s4, first, second) {
|
|
869
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
920
870
|
};
|
|
921
|
-
protoOf(GetByte2).
|
|
922
|
-
return this.
|
|
871
|
+
protoOf(GetByte2).h2f = function (_this__u8e3s4, first, second) {
|
|
872
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
923
873
|
};
|
|
924
874
|
var GetByte2_instance;
|
|
925
875
|
function GetByte2_getInstance() {
|
|
@@ -931,12 +881,12 @@
|
|
|
931
881
|
GetChar1_instance = this;
|
|
932
882
|
NonBacktrackable_0.call(this, 'get_char');
|
|
933
883
|
}
|
|
934
|
-
protoOf(GetChar1).
|
|
935
|
-
IOPrimitiveUtils_getInstance().
|
|
936
|
-
return IOPrimitiveUtils_getInstance().
|
|
884
|
+
protoOf(GetChar1).f2o = function (_this__u8e3s4, first) {
|
|
885
|
+
IOPrimitiveUtils_getInstance().e3l(_this__u8e3s4, 0);
|
|
886
|
+
return IOPrimitiveUtils_getInstance().f3l(_this__u8e3s4, IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4), first);
|
|
937
887
|
};
|
|
938
|
-
protoOf(GetChar1).
|
|
939
|
-
return this.
|
|
888
|
+
protoOf(GetChar1).z2i = function (_this__u8e3s4, first) {
|
|
889
|
+
return this.f2o(_this__u8e3s4, first);
|
|
940
890
|
};
|
|
941
891
|
var GetChar1_instance;
|
|
942
892
|
function GetChar1_getInstance() {
|
|
@@ -948,13 +898,13 @@
|
|
|
948
898
|
GetChar2_instance = this;
|
|
949
899
|
NonBacktrackable.call(this, 'get_char');
|
|
950
900
|
}
|
|
951
|
-
protoOf(GetChar2).
|
|
952
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
953
|
-
IOPrimitiveUtils_getInstance().
|
|
954
|
-
return IOPrimitiveUtils_getInstance().
|
|
901
|
+
protoOf(GetChar2).w2o = function (_this__u8e3s4, first, second) {
|
|
902
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
903
|
+
IOPrimitiveUtils_getInstance().e3l(_this__u8e3s4, 1);
|
|
904
|
+
return IOPrimitiveUtils_getInstance().f3l(_this__u8e3s4, channel, second);
|
|
955
905
|
};
|
|
956
|
-
protoOf(GetChar2).
|
|
957
|
-
return this.
|
|
906
|
+
protoOf(GetChar2).h2f = function (_this__u8e3s4, first, second) {
|
|
907
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
958
908
|
};
|
|
959
909
|
var GetChar2_instance;
|
|
960
910
|
function GetChar2_getInstance() {
|
|
@@ -966,12 +916,12 @@
|
|
|
966
916
|
GetCode1_instance = this;
|
|
967
917
|
NonBacktrackable_0.call(this, 'get_code');
|
|
968
918
|
}
|
|
969
|
-
protoOf(GetCode1).
|
|
970
|
-
IOPrimitiveUtils_getInstance().
|
|
971
|
-
return IOPrimitiveUtils_getInstance().
|
|
919
|
+
protoOf(GetCode1).f2o = function (_this__u8e3s4, first) {
|
|
920
|
+
IOPrimitiveUtils_getInstance().i3l(_this__u8e3s4, 0);
|
|
921
|
+
return IOPrimitiveUtils_getInstance().j3l(_this__u8e3s4, IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4), first);
|
|
972
922
|
};
|
|
973
|
-
protoOf(GetCode1).
|
|
974
|
-
return this.
|
|
923
|
+
protoOf(GetCode1).z2i = function (_this__u8e3s4, first) {
|
|
924
|
+
return this.f2o(_this__u8e3s4, first);
|
|
975
925
|
};
|
|
976
926
|
var GetCode1_instance;
|
|
977
927
|
function GetCode1_getInstance() {
|
|
@@ -983,13 +933,13 @@
|
|
|
983
933
|
GetCode2_instance = this;
|
|
984
934
|
NonBacktrackable.call(this, 'get_code');
|
|
985
935
|
}
|
|
986
|
-
protoOf(GetCode2).
|
|
987
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
988
|
-
IOPrimitiveUtils_getInstance().
|
|
989
|
-
return IOPrimitiveUtils_getInstance().
|
|
936
|
+
protoOf(GetCode2).w2o = function (_this__u8e3s4, first, second) {
|
|
937
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
938
|
+
IOPrimitiveUtils_getInstance().i3l(_this__u8e3s4, 0);
|
|
939
|
+
return IOPrimitiveUtils_getInstance().j3l(_this__u8e3s4, channel, first);
|
|
990
940
|
};
|
|
991
|
-
protoOf(GetCode2).
|
|
992
|
-
return this.
|
|
941
|
+
protoOf(GetCode2).h2f = function (_this__u8e3s4, first, second) {
|
|
942
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
993
943
|
};
|
|
994
944
|
var GetCode2_instance;
|
|
995
945
|
function GetCode2_getInstance() {
|
|
@@ -998,7 +948,6 @@
|
|
|
998
948
|
return GetCode2_instance;
|
|
999
949
|
}
|
|
1000
950
|
function IOPrimitiveUtils$propertiesOf$slambda$lambda(it) {
|
|
1001
|
-
Companion_getInstance_4();
|
|
1002
951
|
return it === '$current';
|
|
1003
952
|
}
|
|
1004
953
|
function IOPrimitiveUtils$alias$ref($boundThis) {
|
|
@@ -1009,7 +958,6 @@
|
|
|
1009
958
|
return l;
|
|
1010
959
|
}
|
|
1011
960
|
function IOPrimitiveUtils$propertiesOf$slambda$lambda_0(it) {
|
|
1012
|
-
Companion_getInstance_4();
|
|
1013
961
|
return it === '$current';
|
|
1014
962
|
}
|
|
1015
963
|
function IOPrimitiveUtils$alias$ref_0($boundThis) {
|
|
@@ -1020,123 +968,106 @@
|
|
|
1020
968
|
return l;
|
|
1021
969
|
}
|
|
1022
970
|
function _get_INPUT_STREAM_TERM_PATTERN__5fd8p6($this) {
|
|
1023
|
-
var tmp$ret$0;
|
|
1024
971
|
// Inline function 'kotlin.getValue' call
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1027
|
-
return
|
|
972
|
+
var this_0 = $this.t3j_1;
|
|
973
|
+
INPUT_STREAM_TERM_PATTERN$factory();
|
|
974
|
+
return this_0.r2();
|
|
1028
975
|
}
|
|
1029
976
|
function _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf($this) {
|
|
1030
|
-
var tmp$ret$0;
|
|
1031
977
|
// Inline function 'kotlin.getValue' call
|
|
1032
|
-
var
|
|
1033
|
-
|
|
1034
|
-
return
|
|
978
|
+
var this_0 = $this.u3j_1;
|
|
979
|
+
OUTPUT_STREAM_TERM_PATTERN$factory();
|
|
980
|
+
return this_0.r2();
|
|
1035
981
|
}
|
|
1036
982
|
function _get_PROPERTY_TYPE_PATTERN__5nq864($this) {
|
|
1037
|
-
var tmp$ret$0;
|
|
1038
983
|
// Inline function 'kotlin.getValue' call
|
|
1039
|
-
var
|
|
1040
|
-
|
|
1041
|
-
return
|
|
984
|
+
var this_0 = $this.v3j_1;
|
|
985
|
+
PROPERTY_TYPE_PATTERN$factory();
|
|
986
|
+
return this_0.r2();
|
|
1042
987
|
}
|
|
1043
988
|
function _get_PROPERTY_REPOSITION_PATTERN__lznuii($this) {
|
|
1044
|
-
var tmp$ret$0;
|
|
1045
989
|
// Inline function 'kotlin.getValue' call
|
|
1046
|
-
var
|
|
1047
|
-
|
|
1048
|
-
return
|
|
990
|
+
var this_0 = $this.w3j_1;
|
|
991
|
+
PROPERTY_REPOSITION_PATTERN$factory();
|
|
992
|
+
return this_0.r2();
|
|
1049
993
|
}
|
|
1050
994
|
function _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this) {
|
|
1051
|
-
var tmp$ret$0;
|
|
1052
995
|
// Inline function 'kotlin.getValue' call
|
|
1053
|
-
var
|
|
1054
|
-
|
|
1055
|
-
return
|
|
996
|
+
var this_0 = $this.x3j_1;
|
|
997
|
+
PROPERTY_EOF_ACTION_PATTERN$factory();
|
|
998
|
+
return this_0.r2();
|
|
1056
999
|
}
|
|
1057
1000
|
function _get_PROPERTY_ALIAS_PATTERN__wipd2s($this) {
|
|
1058
|
-
var tmp$ret$0;
|
|
1059
1001
|
// Inline function 'kotlin.getValue' call
|
|
1060
|
-
var
|
|
1061
|
-
|
|
1062
|
-
return
|
|
1002
|
+
var this_0 = $this.y3j_1;
|
|
1003
|
+
PROPERTY_ALIAS_PATTERN$factory();
|
|
1004
|
+
return this_0.r2();
|
|
1063
1005
|
}
|
|
1064
1006
|
function _get_PROPERTY_INPUT__z2zr91($this) {
|
|
1065
|
-
var tmp$ret$0;
|
|
1066
1007
|
// Inline function 'kotlin.getValue' call
|
|
1067
|
-
var
|
|
1068
|
-
|
|
1069
|
-
return
|
|
1008
|
+
var this_0 = $this.z3j_1;
|
|
1009
|
+
PROPERTY_INPUT$factory();
|
|
1010
|
+
return this_0.r2();
|
|
1070
1011
|
}
|
|
1071
1012
|
function _get_PROPERTY_OUTPUT__1pem9m($this) {
|
|
1072
|
-
var tmp$ret$0;
|
|
1073
1013
|
// Inline function 'kotlin.getValue' call
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1076
|
-
return
|
|
1014
|
+
var this_0 = $this.a3k_1;
|
|
1015
|
+
PROPERTY_OUTPUT$factory();
|
|
1016
|
+
return this_0.r2();
|
|
1077
1017
|
}
|
|
1078
1018
|
function _get_PROPERTY_TYPE_TEXT__9rpcwt($this) {
|
|
1079
|
-
var tmp$ret$0;
|
|
1080
1019
|
// Inline function 'kotlin.getValue' call
|
|
1081
|
-
var
|
|
1082
|
-
|
|
1083
|
-
return
|
|
1020
|
+
var this_0 = $this.b3k_1;
|
|
1021
|
+
PROPERTY_TYPE_TEXT$factory();
|
|
1022
|
+
return this_0.r2();
|
|
1084
1023
|
}
|
|
1085
1024
|
function _get_PROPERTY_REPOSITION_FALSE__i73t3b($this) {
|
|
1086
|
-
var tmp$ret$0;
|
|
1087
1025
|
// Inline function 'kotlin.getValue' call
|
|
1088
|
-
var
|
|
1089
|
-
|
|
1090
|
-
return
|
|
1026
|
+
var this_0 = $this.c3k_1;
|
|
1027
|
+
PROPERTY_REPOSITION_FALSE$factory();
|
|
1028
|
+
return this_0.r2();
|
|
1091
1029
|
}
|
|
1092
1030
|
function _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl($this) {
|
|
1093
|
-
var tmp$ret$0;
|
|
1094
1031
|
// Inline function 'kotlin.getValue' call
|
|
1095
|
-
var
|
|
1096
|
-
|
|
1097
|
-
return
|
|
1032
|
+
var this_0 = $this.d3k_1;
|
|
1033
|
+
PROPERTY_EOF_ACTION_EOF_CODE$factory();
|
|
1034
|
+
return this_0.r2();
|
|
1098
1035
|
}
|
|
1099
1036
|
function _get_OPTION_QUOTED_PATTERN__n2ri42($this) {
|
|
1100
|
-
var tmp$ret$0;
|
|
1101
1037
|
// Inline function 'kotlin.getValue' call
|
|
1102
|
-
var
|
|
1103
|
-
|
|
1104
|
-
return
|
|
1038
|
+
var this_0 = $this.e3k_1;
|
|
1039
|
+
OPTION_QUOTED_PATTERN$factory();
|
|
1040
|
+
return this_0.r2();
|
|
1105
1041
|
}
|
|
1106
1042
|
function _get_OPTION_NUMBER_VARS_PATTERN__p98ste($this) {
|
|
1107
|
-
var tmp$ret$0;
|
|
1108
1043
|
// Inline function 'kotlin.getValue' call
|
|
1109
|
-
var
|
|
1110
|
-
|
|
1111
|
-
return
|
|
1044
|
+
var this_0 = $this.f3k_1;
|
|
1045
|
+
OPTION_NUMBER_VARS_PATTERN$factory();
|
|
1046
|
+
return this_0.r2();
|
|
1112
1047
|
}
|
|
1113
1048
|
function _get_OPTION_IGNORE_OPS_PATTERN__cpse4v($this) {
|
|
1114
|
-
var tmp$ret$0;
|
|
1115
1049
|
// Inline function 'kotlin.getValue' call
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1118
|
-
return
|
|
1050
|
+
var this_0 = $this.g3k_1;
|
|
1051
|
+
OPTION_IGNORE_OPS_PATTERN$factory();
|
|
1052
|
+
return this_0.r2();
|
|
1119
1053
|
}
|
|
1120
1054
|
function _get_INFO_VARIABLES_PATTERN__bhp1h0($this) {
|
|
1121
|
-
var tmp$ret$0;
|
|
1122
1055
|
// Inline function 'kotlin.getValue' call
|
|
1123
|
-
var
|
|
1124
|
-
|
|
1125
|
-
return
|
|
1056
|
+
var this_0 = $this.h3k_1;
|
|
1057
|
+
INFO_VARIABLES_PATTERN$factory();
|
|
1058
|
+
return this_0.r2();
|
|
1126
1059
|
}
|
|
1127
1060
|
function _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom($this) {
|
|
1128
|
-
var tmp$ret$0;
|
|
1129
1061
|
// Inline function 'kotlin.getValue' call
|
|
1130
|
-
var
|
|
1131
|
-
|
|
1132
|
-
return
|
|
1062
|
+
var this_0 = $this.i3k_1;
|
|
1063
|
+
INFO_VARIABLE_NAMES_PATTERN$factory();
|
|
1064
|
+
return this_0.r2();
|
|
1133
1065
|
}
|
|
1134
1066
|
function _get_INFO_SINGLETONS_PATTERN__y21s87($this) {
|
|
1135
|
-
var tmp$ret$0;
|
|
1136
1067
|
// Inline function 'kotlin.getValue' call
|
|
1137
|
-
var
|
|
1138
|
-
|
|
1139
|
-
return
|
|
1068
|
+
var this_0 = $this.j3k_1;
|
|
1069
|
+
INFO_SINGLETONS_PATTERN$factory();
|
|
1070
|
+
return this_0.r2();
|
|
1140
1071
|
}
|
|
1141
1072
|
function _get_validPropertiesPattern__7s1t06($this) {
|
|
1142
1073
|
return sequenceOf([_get_PROPERTY_INPUT__z2zr91($this), _get_PROPERTY_OUTPUT__1pem9m($this), _get_PROPERTY_ALIAS_PATTERN__wipd2s($this), _get_PROPERTY_TYPE_PATTERN__5nq864($this), _get_PROPERTY_EOF_ACTION_PATTERN__8k2shv($this), _get_PROPERTY_REPOSITION_PATTERN__lznuii($this)]);
|
|
@@ -1154,162 +1085,127 @@
|
|
|
1154
1085
|
return sequenceOf([_get_PROPERTY_INPUT__z2zr91($this), _get_PROPERTY_OUTPUT__1pem9m($this), _get_PROPERTY_ALIAS_PATTERN__wipd2s($this), _get_PROPERTY_TYPE_TEXT__9rpcwt($this), _get_PROPERTY_EOF_ACTION_EOF_CODE__he3pvl($this), _get_PROPERTY_REPOSITION_FALSE__i73t3b($this)]);
|
|
1155
1086
|
}
|
|
1156
1087
|
function alias($this, alias) {
|
|
1157
|
-
var tmp =
|
|
1158
|
-
var tmp0_safe_receiver = alias;
|
|
1088
|
+
var tmp = Companion_getInstance_2();
|
|
1159
1089
|
var tmp_0;
|
|
1160
|
-
if (
|
|
1090
|
+
if (alias == null) {
|
|
1161
1091
|
tmp_0 = null;
|
|
1162
1092
|
} else {
|
|
1163
|
-
var tmp$ret$1;
|
|
1164
1093
|
// Inline function 'kotlin.let' call
|
|
1165
1094
|
// Inline function 'kotlin.contracts.contract' call
|
|
1166
|
-
var tmp$ret$0;
|
|
1167
1095
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.alias.<anonymous>' call
|
|
1168
|
-
|
|
1169
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1170
|
-
tmp_0 = tmp$ret$1;
|
|
1096
|
+
tmp_0 = Companion_getInstance_0().of(alias);
|
|
1171
1097
|
}
|
|
1172
1098
|
var tmp1_elvis_lhs = tmp_0;
|
|
1173
|
-
return tmp.of('alias', [tmp1_elvis_lhs == null ?
|
|
1099
|
+
return tmp.of('alias', [tmp1_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp1_elvis_lhs]);
|
|
1174
1100
|
}
|
|
1175
1101
|
function alias$default($this, alias_0, $super) {
|
|
1176
1102
|
alias_0 = alias_0 === VOID ? null : alias_0;
|
|
1177
1103
|
return alias($this, alias_0);
|
|
1178
1104
|
}
|
|
1179
1105
|
function quoted($this, value) {
|
|
1180
|
-
var tmp =
|
|
1181
|
-
var tmp0_safe_receiver = value;
|
|
1106
|
+
var tmp = Companion_getInstance_2();
|
|
1182
1107
|
var tmp_0;
|
|
1183
|
-
if (
|
|
1108
|
+
if (value == null) {
|
|
1184
1109
|
tmp_0 = null;
|
|
1185
1110
|
} else {
|
|
1186
|
-
var tmp$ret$1;
|
|
1187
1111
|
// Inline function 'kotlin.let' call
|
|
1188
1112
|
// Inline function 'kotlin.contracts.contract' call
|
|
1189
|
-
var tmp$ret$0;
|
|
1190
1113
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.quoted.<anonymous>' call
|
|
1191
|
-
|
|
1192
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1193
|
-
tmp_0 = tmp$ret$1;
|
|
1114
|
+
tmp_0 = Companion_getInstance_4().of(value);
|
|
1194
1115
|
}
|
|
1195
1116
|
var tmp1_elvis_lhs = tmp_0;
|
|
1196
|
-
return tmp.of('quoted', [tmp1_elvis_lhs == null ?
|
|
1117
|
+
return tmp.of('quoted', [tmp1_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp1_elvis_lhs]);
|
|
1197
1118
|
}
|
|
1198
1119
|
function quoted$default($this, value, $super) {
|
|
1199
1120
|
value = value === VOID ? null : value;
|
|
1200
1121
|
return quoted($this, value);
|
|
1201
1122
|
}
|
|
1202
1123
|
function ignoreOps($this, value) {
|
|
1203
|
-
var tmp =
|
|
1204
|
-
var tmp0_safe_receiver = value;
|
|
1124
|
+
var tmp = Companion_getInstance_2();
|
|
1205
1125
|
var tmp_0;
|
|
1206
|
-
if (
|
|
1126
|
+
if (value == null) {
|
|
1207
1127
|
tmp_0 = null;
|
|
1208
1128
|
} else {
|
|
1209
|
-
var tmp$ret$1;
|
|
1210
1129
|
// Inline function 'kotlin.let' call
|
|
1211
1130
|
// Inline function 'kotlin.contracts.contract' call
|
|
1212
|
-
var tmp$ret$0;
|
|
1213
1131
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ignoreOps.<anonymous>' call
|
|
1214
|
-
|
|
1215
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1216
|
-
tmp_0 = tmp$ret$1;
|
|
1132
|
+
tmp_0 = Companion_getInstance_4().of(value);
|
|
1217
1133
|
}
|
|
1218
1134
|
var tmp1_elvis_lhs = tmp_0;
|
|
1219
|
-
return tmp.of('ignore_ops', [tmp1_elvis_lhs == null ?
|
|
1135
|
+
return tmp.of('ignore_ops', [tmp1_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp1_elvis_lhs]);
|
|
1220
1136
|
}
|
|
1221
1137
|
function ignoreOps$default($this, value, $super) {
|
|
1222
1138
|
value = value === VOID ? null : value;
|
|
1223
1139
|
return ignoreOps($this, value);
|
|
1224
1140
|
}
|
|
1225
1141
|
function numberVars($this, value) {
|
|
1226
|
-
var tmp =
|
|
1227
|
-
var tmp0_safe_receiver = value;
|
|
1142
|
+
var tmp = Companion_getInstance_2();
|
|
1228
1143
|
var tmp_0;
|
|
1229
|
-
if (
|
|
1144
|
+
if (value == null) {
|
|
1230
1145
|
tmp_0 = null;
|
|
1231
1146
|
} else {
|
|
1232
|
-
var tmp$ret$1;
|
|
1233
1147
|
// Inline function 'kotlin.let' call
|
|
1234
1148
|
// Inline function 'kotlin.contracts.contract' call
|
|
1235
|
-
var tmp$ret$0;
|
|
1236
1149
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.numberVars.<anonymous>' call
|
|
1237
|
-
|
|
1238
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1239
|
-
tmp_0 = tmp$ret$1;
|
|
1150
|
+
tmp_0 = Companion_getInstance_4().of(value);
|
|
1240
1151
|
}
|
|
1241
1152
|
var tmp1_elvis_lhs = tmp_0;
|
|
1242
|
-
return tmp.of('numbervars', [tmp1_elvis_lhs == null ?
|
|
1153
|
+
return tmp.of('numbervars', [tmp1_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp1_elvis_lhs]);
|
|
1243
1154
|
}
|
|
1244
1155
|
function numberVars$default($this, value, $super) {
|
|
1245
1156
|
value = value === VOID ? null : value;
|
|
1246
1157
|
return numberVars($this, value);
|
|
1247
1158
|
}
|
|
1248
1159
|
function variables($this, variables) {
|
|
1249
|
-
var tmp =
|
|
1250
|
-
var tmp0_safe_receiver = variables;
|
|
1160
|
+
var tmp = Companion_getInstance_2();
|
|
1251
1161
|
var tmp_0;
|
|
1252
|
-
if (
|
|
1162
|
+
if (variables == null) {
|
|
1253
1163
|
tmp_0 = null;
|
|
1254
1164
|
} else {
|
|
1255
|
-
var tmp$ret$1;
|
|
1256
1165
|
// Inline function 'kotlin.let' call
|
|
1257
1166
|
// Inline function 'kotlin.contracts.contract' call
|
|
1258
|
-
var tmp$ret$0;
|
|
1259
1167
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.variables.<anonymous>' call
|
|
1260
|
-
|
|
1261
|
-
tmp$ret$1 = tmp$ret$0;
|
|
1262
|
-
tmp_0 = tmp$ret$1;
|
|
1168
|
+
tmp_0 = Companion_instance_2.ofList(variables);
|
|
1263
1169
|
}
|
|
1264
1170
|
var tmp1_elvis_lhs = tmp_0;
|
|
1265
|
-
return tmp.of('variables', [tmp1_elvis_lhs == null ?
|
|
1171
|
+
return tmp.of('variables', [tmp1_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp1_elvis_lhs]);
|
|
1266
1172
|
}
|
|
1267
1173
|
function variables$default($this, variables_0, $super) {
|
|
1268
1174
|
variables_0 = variables_0 === VOID ? null : variables_0;
|
|
1269
1175
|
return variables($this, variables_0);
|
|
1270
1176
|
}
|
|
1271
1177
|
function vn($this, functor, vNames) {
|
|
1272
|
-
var tmp =
|
|
1273
|
-
var tmp0_safe_receiver = vNames;
|
|
1178
|
+
var tmp = Companion_getInstance_2();
|
|
1274
1179
|
var tmp_0;
|
|
1275
|
-
if (
|
|
1180
|
+
if (vNames == null) {
|
|
1276
1181
|
tmp_0 = null;
|
|
1277
1182
|
} else {
|
|
1278
|
-
var tmp$ret$2;
|
|
1279
1183
|
// Inline function 'kotlin.collections.map' call
|
|
1280
|
-
var tmp$ret$1;
|
|
1281
1184
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1282
|
-
var
|
|
1283
|
-
var tmp0_iterator =
|
|
1284
|
-
while (tmp0_iterator.
|
|
1285
|
-
var item = tmp0_iterator.
|
|
1286
|
-
var tmp$ret$0;
|
|
1185
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(vNames, 10));
|
|
1186
|
+
var tmp0_iterator = vNames.r();
|
|
1187
|
+
while (tmp0_iterator.s()) {
|
|
1188
|
+
var item = tmp0_iterator.u();
|
|
1287
1189
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.vn.<anonymous>' call
|
|
1288
|
-
var a = item.
|
|
1289
|
-
var v = item.
|
|
1290
|
-
tmp$ret$0 =
|
|
1291
|
-
|
|
1190
|
+
var a = item.me();
|
|
1191
|
+
var v = item.ne();
|
|
1192
|
+
var tmp$ret$0 = Companion_getInstance_2().of('=', [a, v]);
|
|
1193
|
+
destination.o(tmp$ret$0);
|
|
1292
1194
|
}
|
|
1293
|
-
|
|
1294
|
-
tmp$ret$2 = tmp$ret$1;
|
|
1295
|
-
tmp_0 = tmp$ret$2;
|
|
1195
|
+
tmp_0 = destination;
|
|
1296
1196
|
}
|
|
1297
1197
|
var tmp1_safe_receiver = tmp_0;
|
|
1298
1198
|
var tmp_1;
|
|
1299
1199
|
if (tmp1_safe_receiver == null) {
|
|
1300
1200
|
tmp_1 = null;
|
|
1301
1201
|
} else {
|
|
1302
|
-
var tmp$ret$4;
|
|
1303
1202
|
// Inline function 'kotlin.let' call
|
|
1304
1203
|
// Inline function 'kotlin.contracts.contract' call
|
|
1305
|
-
var tmp$ret$3;
|
|
1306
1204
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.vn.<anonymous>' call
|
|
1307
|
-
|
|
1308
|
-
tmp$ret$4 = tmp$ret$3;
|
|
1309
|
-
tmp_1 = tmp$ret$4;
|
|
1205
|
+
tmp_1 = Companion_instance_2.ofList(tmp1_safe_receiver);
|
|
1310
1206
|
}
|
|
1311
1207
|
var tmp2_elvis_lhs = tmp_1;
|
|
1312
|
-
return tmp.of(functor, [tmp2_elvis_lhs == null ?
|
|
1208
|
+
return tmp.of(functor, [tmp2_elvis_lhs == null ? Companion_getInstance_3().anonymous() : tmp2_elvis_lhs]);
|
|
1313
1209
|
}
|
|
1314
1210
|
function variableNames($this, vNames) {
|
|
1315
1211
|
return vn($this, 'variable_names', vNames);
|
|
@@ -1326,19 +1222,15 @@
|
|
|
1326
1222
|
return singletons($this, vNames);
|
|
1327
1223
|
}
|
|
1328
1224
|
function getOption(_this__u8e3s4, $this, unificator, pattern) {
|
|
1329
|
-
var tmp$ret$1;
|
|
1330
1225
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
1331
|
-
var tmp$ret$0;
|
|
1332
1226
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
1333
|
-
var
|
|
1334
|
-
var tmp = filter(
|
|
1335
|
-
|
|
1336
|
-
var tmp_0 = tmp$ret$0;
|
|
1227
|
+
var this_0 = asSequence_0(_this__u8e3s4);
|
|
1228
|
+
var tmp = filter(this_0, IOPrimitiveUtils$getOption$lambda);
|
|
1229
|
+
var tmp_0 = isInterface(tmp, Sequence) ? tmp : THROW_CCE();
|
|
1337
1230
|
var tmp_1 = filter(tmp_0, IOPrimitiveUtils$getOption$lambda_0(unificator, pattern));
|
|
1338
|
-
var
|
|
1339
|
-
var tmp_2 = filter(
|
|
1340
|
-
|
|
1341
|
-
var tmp_3 = tmp$ret$1;
|
|
1231
|
+
var this_1 = map(tmp_1, IOPrimitiveUtils$getOption$lambda_1);
|
|
1232
|
+
var tmp_2 = filter(this_1, IOPrimitiveUtils$getOption$lambda_2);
|
|
1233
|
+
var tmp_3 = isInterface(tmp_2, Sequence) ? tmp_2 : THROW_CCE();
|
|
1342
1234
|
var tmp0_elvis_lhs = firstOrNull(map(tmp_3, IOPrimitiveUtils$getOption$lambda_3));
|
|
1343
1235
|
return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
1344
1236
|
}
|
|
@@ -1346,19 +1238,14 @@
|
|
|
1346
1238
|
var tmp$ret$2;
|
|
1347
1239
|
$l$block: {
|
|
1348
1240
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
1349
|
-
var tmp$ret$0;
|
|
1350
1241
|
// Inline function 'kotlin.sequences.filterIsInstance' call
|
|
1351
|
-
var
|
|
1352
|
-
var tmp = filter(
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
while (tmp0_iterator.m()) {
|
|
1357
|
-
var element = tmp0_iterator.n();
|
|
1358
|
-
var tmp$ret$1;
|
|
1242
|
+
var this_0 = asSequence_0(_this__u8e3s4);
|
|
1243
|
+
var tmp = filter(this_0, IOPrimitiveUtils$getInfo$lambda);
|
|
1244
|
+
var tmp0_iterator = (isInterface(tmp, Sequence) ? tmp : THROW_CCE()).r();
|
|
1245
|
+
while (tmp0_iterator.s()) {
|
|
1246
|
+
var element = tmp0_iterator.u();
|
|
1359
1247
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.getInfo.<anonymous>' call
|
|
1360
|
-
|
|
1361
|
-
if (tmp$ret$1) {
|
|
1248
|
+
if (unificator.match(element, pattern)) {
|
|
1362
1249
|
tmp$ret$2 = element;
|
|
1363
1250
|
break $l$block;
|
|
1364
1251
|
}
|
|
@@ -1370,53 +1257,39 @@
|
|
|
1370
1257
|
if (tmp0_safe_receiver == null) {
|
|
1371
1258
|
tmp_0 = null;
|
|
1372
1259
|
} else {
|
|
1373
|
-
var tmp$ret$4;
|
|
1374
1260
|
// Inline function 'kotlin.let' call
|
|
1375
1261
|
// Inline function 'kotlin.contracts.contract' call
|
|
1376
|
-
var tmp$ret$3;
|
|
1377
1262
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.getInfo.<anonymous>' call
|
|
1378
|
-
|
|
1379
|
-
tmp$ret$4 = tmp$ret$3;
|
|
1380
|
-
tmp_0 = tmp$ret$4;
|
|
1263
|
+
tmp_0 = unificator.mgu(tmp0_safe_receiver, value);
|
|
1381
1264
|
}
|
|
1382
1265
|
var tmp1_elvis_lhs = tmp_0;
|
|
1383
|
-
return tmp1_elvis_lhs == null ?
|
|
1266
|
+
return tmp1_elvis_lhs == null ? Companion_getInstance_5().empty() : tmp1_elvis_lhs;
|
|
1384
1267
|
}
|
|
1385
1268
|
function _get_singletons__bihqrn(_this__u8e3s4, $this) {
|
|
1386
|
-
var tmp$ret$4;
|
|
1387
1269
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1388
|
-
var tmp1_groupBy = _this__u8e3s4.yv();
|
|
1389
|
-
var tmp$ret$3;
|
|
1390
1270
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1391
|
-
var
|
|
1392
|
-
var
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
var
|
|
1271
|
+
var this_0 = _this__u8e3s4.sw();
|
|
1272
|
+
var destination = LinkedHashMap_init_$Create$_0();
|
|
1273
|
+
var tmp0_iterator = this_0.r();
|
|
1274
|
+
while (tmp0_iterator.s()) {
|
|
1275
|
+
var element = tmp0_iterator.u();
|
|
1396
1276
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.<get-singletons>.<anonymous>' call
|
|
1397
|
-
|
|
1398
|
-
var key = tmp$ret$0;
|
|
1399
|
-
var tmp$ret$2;
|
|
1277
|
+
var key = element;
|
|
1400
1278
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1401
|
-
var value =
|
|
1279
|
+
var value = destination.x2(key);
|
|
1402
1280
|
var tmp;
|
|
1403
1281
|
if (value == null) {
|
|
1404
|
-
var tmp$ret$1;
|
|
1405
1282
|
// Inline function 'kotlin.sequences.groupByTo.<anonymous>' call
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
tmp0_groupByTo.a4(key, answer);
|
|
1283
|
+
var answer = ArrayList_init_$Create$_0();
|
|
1284
|
+
destination.n2(key, answer);
|
|
1409
1285
|
tmp = answer;
|
|
1410
1286
|
} else {
|
|
1411
1287
|
tmp = value;
|
|
1412
1288
|
}
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
list.g(element);
|
|
1289
|
+
var list = tmp;
|
|
1290
|
+
list.o(element);
|
|
1416
1291
|
}
|
|
1417
|
-
|
|
1418
|
-
tmp$ret$4 = tmp$ret$3;
|
|
1419
|
-
var tmp_0 = asSequence_1(tmp$ret$4);
|
|
1292
|
+
var tmp_0 = asSequence_1(destination);
|
|
1420
1293
|
var tmp_1 = filter(tmp_0, IOPrimitiveUtils$_get_singletons_$lambda_kke618);
|
|
1421
1294
|
return toSet(map(tmp_1, IOPrimitiveUtils$_get_singletons_$lambda_kke618_0));
|
|
1422
1295
|
}
|
|
@@ -1424,99 +1297,76 @@
|
|
|
1424
1297
|
return toAssignments_0(asSequence_0(_this__u8e3s4), $this);
|
|
1425
1298
|
}
|
|
1426
1299
|
function toAssignments_0(_this__u8e3s4, $this) {
|
|
1427
|
-
var tmp$ret$10;
|
|
1428
1300
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1429
|
-
var tmp$ret$4;
|
|
1430
1301
|
// Inline function 'kotlin.sequences.groupBy' call
|
|
1431
|
-
var tmp$ret$3;
|
|
1432
1302
|
// Inline function 'kotlin.sequences.groupByTo' call
|
|
1433
|
-
var
|
|
1434
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
1435
|
-
while (tmp0_iterator.
|
|
1436
|
-
var element = tmp0_iterator.
|
|
1437
|
-
var tmp$ret$0;
|
|
1303
|
+
var destination = LinkedHashMap_init_$Create$_0();
|
|
1304
|
+
var tmp0_iterator = _this__u8e3s4.r();
|
|
1305
|
+
while (tmp0_iterator.s()) {
|
|
1306
|
+
var element = tmp0_iterator.u();
|
|
1438
1307
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.toAssignments.<anonymous>' call
|
|
1439
|
-
|
|
1440
|
-
var key = tmp$ret$0;
|
|
1441
|
-
var tmp$ret$2;
|
|
1308
|
+
var key = Companion_getInstance_0().of(element.bb());
|
|
1442
1309
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1443
|
-
var value =
|
|
1310
|
+
var value = destination.x2(key);
|
|
1444
1311
|
var tmp;
|
|
1445
1312
|
if (value == null) {
|
|
1446
|
-
var tmp$ret$1;
|
|
1447
1313
|
// Inline function 'kotlin.sequences.groupByTo.<anonymous>' call
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
tmp0_groupByTo.a4(key, answer);
|
|
1314
|
+
var answer = ArrayList_init_$Create$_0();
|
|
1315
|
+
destination.n2(key, answer);
|
|
1451
1316
|
tmp = answer;
|
|
1452
1317
|
} else {
|
|
1453
1318
|
tmp = value;
|
|
1454
1319
|
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1459
|
-
tmp$ret$3 = tmp0_groupByTo;
|
|
1460
|
-
tmp$ret$4 = tmp$ret$3;
|
|
1461
|
-
var tmp2_flatMap = tmp$ret$4;
|
|
1462
|
-
var tmp$ret$9;
|
|
1320
|
+
var list = tmp;
|
|
1321
|
+
list.o(element);
|
|
1322
|
+
}
|
|
1463
1323
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1464
|
-
var
|
|
1465
|
-
var tmp$ret$5;
|
|
1324
|
+
var destination_0 = ArrayList_init_$Create$_0();
|
|
1466
1325
|
// Inline function 'kotlin.collections.iterator' call
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
var element_0 = tmp0_iterator_0.n();
|
|
1471
|
-
var tmp$ret$8;
|
|
1326
|
+
var tmp0_iterator_0 = destination.p2().r();
|
|
1327
|
+
while (tmp0_iterator_0.s()) {
|
|
1328
|
+
var element_0 = tmp0_iterator_0.u();
|
|
1472
1329
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.toAssignments.<anonymous>' call
|
|
1473
|
-
var tmp$ret$6;
|
|
1474
1330
|
// Inline function 'kotlin.collections.component1' call
|
|
1475
|
-
|
|
1476
|
-
var n = tmp$ret$6;
|
|
1477
|
-
var tmp$ret$7;
|
|
1331
|
+
var n = element_0.q2();
|
|
1478
1332
|
// Inline function 'kotlin.collections.component2' call
|
|
1479
|
-
|
|
1480
|
-
var vs = tmp$ret$7;
|
|
1333
|
+
var vs = element_0.r2();
|
|
1481
1334
|
var tmp_0 = asSequence_0(vs);
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
addAll(tmp1_flatMapTo, list_0);
|
|
1335
|
+
var list_0 = map(tmp_0, IOPrimitiveUtils$toAssignments$lambda(n));
|
|
1336
|
+
addAll(destination_0, list_0);
|
|
1485
1337
|
}
|
|
1486
|
-
|
|
1487
|
-
tmp$ret$10 = tmp$ret$9;
|
|
1488
|
-
return toList(tmp$ret$10);
|
|
1338
|
+
return toList(destination_0);
|
|
1489
1339
|
}
|
|
1490
1340
|
function _get_alias__jw26bj(_this__u8e3s4, $this) {
|
|
1491
1341
|
var tmp0_safe_receiver = (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Struct) : false) ? _this__u8e3s4 : null;
|
|
1492
1342
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.getArgAt(0);
|
|
1493
1343
|
var tmp1_safe_receiver = (!(tmp == null) ? isInterface(tmp, Atom) : false) ? tmp : null;
|
|
1494
|
-
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1344
|
+
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r2();
|
|
1495
1345
|
}
|
|
1496
1346
|
function replyOpeningStream(_this__u8e3s4, $this, channel, third, alias) {
|
|
1497
|
-
var streamTerm = channel.
|
|
1498
|
-
var tmp =
|
|
1347
|
+
var streamTerm = channel.b1z();
|
|
1348
|
+
var tmp = Companion_getInstance_1().f2g(_this__u8e3s4, third, streamTerm);
|
|
1499
1349
|
return _this__u8e3s4.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda(alias, channel));
|
|
1500
1350
|
}
|
|
1501
1351
|
function replyOpeningStream_0(_this__u8e3s4, $this, channel, third, alias) {
|
|
1502
|
-
var streamTerm = channel.
|
|
1503
|
-
var tmp =
|
|
1352
|
+
var streamTerm = channel.b1z();
|
|
1353
|
+
var tmp = Companion_getInstance_1().f2g(_this__u8e3s4, third, streamTerm);
|
|
1504
1354
|
return _this__u8e3s4.replyWithBuildingSideEffects(tmp, VOID, IOPrimitiveUtils$replyOpeningStream$lambda_0(alias, channel));
|
|
1505
1355
|
}
|
|
1506
1356
|
function IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
1507
|
-
return
|
|
1357
|
+
return Companion_instance_3.streamTerm();
|
|
1508
1358
|
}
|
|
1509
1359
|
function IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda() {
|
|
1510
|
-
return
|
|
1360
|
+
return Companion_instance_4.streamTerm();
|
|
1511
1361
|
}
|
|
1512
1362
|
function IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda() {
|
|
1513
|
-
return
|
|
1363
|
+
return Companion_getInstance_2().of('type', [Companion_getInstance_3().anonymous()]);
|
|
1514
1364
|
}
|
|
1515
1365
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda() {
|
|
1516
|
-
return
|
|
1366
|
+
return Companion_getInstance_2().of('reposition', [Companion_getInstance_3().anonymous()]);
|
|
1517
1367
|
}
|
|
1518
1368
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda() {
|
|
1519
|
-
return
|
|
1369
|
+
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_3().anonymous()]);
|
|
1520
1370
|
}
|
|
1521
1371
|
function IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda() {
|
|
1522
1372
|
return alias$default(IOPrimitiveUtils_getInstance());
|
|
@@ -1528,13 +1378,13 @@
|
|
|
1528
1378
|
return Companion_getInstance_0().of('output');
|
|
1529
1379
|
}
|
|
1530
1380
|
function IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda() {
|
|
1531
|
-
return
|
|
1381
|
+
return Companion_getInstance_2().of('type', [Companion_getInstance_0().of('text')]);
|
|
1532
1382
|
}
|
|
1533
1383
|
function IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda() {
|
|
1534
|
-
return
|
|
1384
|
+
return Companion_getInstance_2().of('reposition', [Companion_getInstance_4().jw_1]);
|
|
1535
1385
|
}
|
|
1536
1386
|
function IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda() {
|
|
1537
|
-
return
|
|
1387
|
+
return Companion_getInstance_2().of('eof_action', [Companion_getInstance_0().of('eof_code')]);
|
|
1538
1388
|
}
|
|
1539
1389
|
function IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda() {
|
|
1540
1390
|
return quoted$default(IOPrimitiveUtils_getInstance());
|
|
@@ -1579,115 +1429,114 @@
|
|
|
1579
1429
|
return map(sequenceOf([true, false]), it);
|
|
1580
1430
|
}
|
|
1581
1431
|
function IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation) {
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1432
|
+
this.t3l_1 = $channel;
|
|
1433
|
+
this.u3l_1 = $this_propertiesOf;
|
|
1584
1434
|
CoroutineImpl.call(this, resultContinuation);
|
|
1585
1435
|
}
|
|
1586
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1587
|
-
var tmp = this.
|
|
1588
|
-
tmp.
|
|
1589
|
-
tmp.
|
|
1590
|
-
return tmp.
|
|
1436
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).x3l = function ($this$sequence, $completion) {
|
|
1437
|
+
var tmp = this.y3l($this$sequence, $completion);
|
|
1438
|
+
tmp.pc_1 = Unit_instance;
|
|
1439
|
+
tmp.qc_1 = null;
|
|
1440
|
+
return tmp.yc();
|
|
1591
1441
|
};
|
|
1592
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1593
|
-
return this.
|
|
1442
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).ld = function (p1, $completion) {
|
|
1443
|
+
return this.x3l(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
1594
1444
|
};
|
|
1595
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1596
|
-
var suspendResult = this.
|
|
1445
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).yc = function () {
|
|
1446
|
+
var suspendResult = this.pc_1;
|
|
1597
1447
|
$sm: do
|
|
1598
1448
|
try {
|
|
1599
|
-
var tmp = this.
|
|
1449
|
+
var tmp = this.nc_1;
|
|
1600
1450
|
switch (tmp) {
|
|
1601
1451
|
case 0:
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
var tmp_0 = this.
|
|
1452
|
+
this.oc_1 = 7;
|
|
1453
|
+
this.w3l_1 = this.t3l_1;
|
|
1454
|
+
var tmp_0 = this.w3l_1;
|
|
1605
1455
|
if (isInterface(tmp_0, InputChannel)) {
|
|
1606
|
-
this.
|
|
1607
|
-
suspendResult = this.
|
|
1456
|
+
this.nc_1 = 3;
|
|
1457
|
+
suspendResult = this.v3l_1.ef(_get_PROPERTY_INPUT__z2zr91(IOPrimitiveUtils_getInstance()), this);
|
|
1608
1458
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1609
1459
|
return suspendResult;
|
|
1610
1460
|
}
|
|
1611
1461
|
continue $sm;
|
|
1612
1462
|
} else {
|
|
1613
|
-
var tmp_1 = this.
|
|
1463
|
+
var tmp_1 = this.w3l_1;
|
|
1614
1464
|
if (isInterface(tmp_1, OutputChannel)) {
|
|
1615
|
-
this.
|
|
1616
|
-
suspendResult = this.
|
|
1465
|
+
this.nc_1 = 1;
|
|
1466
|
+
suspendResult = this.v3l_1.ef(_get_PROPERTY_OUTPUT__1pem9m(IOPrimitiveUtils_getInstance()), this);
|
|
1617
1467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1618
1468
|
return suspendResult;
|
|
1619
1469
|
}
|
|
1620
1470
|
continue $sm;
|
|
1621
1471
|
} else {
|
|
1622
|
-
this.
|
|
1472
|
+
this.nc_1 = 5;
|
|
1623
1473
|
continue $sm;
|
|
1624
1474
|
}
|
|
1625
1475
|
}
|
|
1626
1476
|
|
|
1627
|
-
break;
|
|
1628
1477
|
case 1:
|
|
1629
|
-
this.
|
|
1630
|
-
var tmp_2 = this.
|
|
1631
|
-
var tmp_3 = this.
|
|
1478
|
+
this.nc_1 = 2;
|
|
1479
|
+
var tmp_2 = this.u3l_1.context.z1u();
|
|
1480
|
+
var tmp_3 = this.t3l_1;
|
|
1632
1481
|
var tmp_4 = tmp_2.aliasesOf(isInterface(tmp_3, OutputChannel) ? tmp_3 : THROW_CCE());
|
|
1633
1482
|
var tmp_5 = filterNot(tmp_4, IOPrimitiveUtils$propertiesOf$slambda$lambda_0);
|
|
1634
|
-
suspendResult = this.
|
|
1483
|
+
suspendResult = this.v3l_1.hf(map(tmp_5, IOPrimitiveUtils$alias$ref_0(IOPrimitiveUtils_getInstance())), this);
|
|
1635
1484
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1636
1485
|
return suspendResult;
|
|
1637
1486
|
}
|
|
1638
1487
|
|
|
1639
1488
|
continue $sm;
|
|
1640
1489
|
case 2:
|
|
1641
|
-
this.
|
|
1490
|
+
this.nc_1 = 5;
|
|
1642
1491
|
continue $sm;
|
|
1643
1492
|
case 3:
|
|
1644
|
-
this.
|
|
1645
|
-
var tmp_6 = this.
|
|
1646
|
-
var tmp_7 = this.
|
|
1493
|
+
this.nc_1 = 4;
|
|
1494
|
+
var tmp_6 = this.u3l_1.context.y1u();
|
|
1495
|
+
var tmp_7 = this.t3l_1;
|
|
1647
1496
|
var tmp_8 = tmp_6.aliasesOf(isInterface(tmp_7, InputChannel) ? tmp_7 : THROW_CCE());
|
|
1648
1497
|
var tmp_9 = filterNot(tmp_8, IOPrimitiveUtils$propertiesOf$slambda$lambda);
|
|
1649
|
-
suspendResult = this.
|
|
1498
|
+
suspendResult = this.v3l_1.hf(map(tmp_9, IOPrimitiveUtils$alias$ref(IOPrimitiveUtils_getInstance())), this);
|
|
1650
1499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1651
1500
|
return suspendResult;
|
|
1652
1501
|
}
|
|
1653
1502
|
|
|
1654
1503
|
continue $sm;
|
|
1655
1504
|
case 4:
|
|
1656
|
-
this.
|
|
1505
|
+
this.nc_1 = 5;
|
|
1657
1506
|
continue $sm;
|
|
1658
1507
|
case 5:
|
|
1659
|
-
this.
|
|
1660
|
-
suspendResult = this.
|
|
1508
|
+
this.nc_1 = 6;
|
|
1509
|
+
suspendResult = this.v3l_1.ef(_get_PROPERTY_TYPE_TEXT__9rpcwt(IOPrimitiveUtils_getInstance()), this);
|
|
1661
1510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1662
1511
|
return suspendResult;
|
|
1663
1512
|
}
|
|
1664
1513
|
|
|
1665
1514
|
continue $sm;
|
|
1666
1515
|
case 6:
|
|
1667
|
-
return
|
|
1516
|
+
return Unit_instance;
|
|
1668
1517
|
case 7:
|
|
1669
|
-
throw this.
|
|
1518
|
+
throw this.qc_1;
|
|
1670
1519
|
}
|
|
1671
1520
|
} catch ($p) {
|
|
1672
1521
|
var e = $p;
|
|
1673
|
-
if (this.
|
|
1522
|
+
if (this.oc_1 === 7) {
|
|
1674
1523
|
throw e;
|
|
1675
1524
|
} else {
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1525
|
+
this.nc_1 = this.oc_1;
|
|
1526
|
+
this.qc_1 = e;
|
|
1678
1527
|
}
|
|
1679
1528
|
}
|
|
1680
1529
|
while (true);
|
|
1681
1530
|
};
|
|
1682
|
-
protoOf(IOPrimitiveUtils$propertiesOf$slambda).
|
|
1683
|
-
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.
|
|
1684
|
-
i.
|
|
1531
|
+
protoOf(IOPrimitiveUtils$propertiesOf$slambda).y3l = function ($this$sequence, completion) {
|
|
1532
|
+
var i = new IOPrimitiveUtils$propertiesOf$slambda(this.t3l_1, this.u3l_1, completion);
|
|
1533
|
+
i.v3l_1 = $this$sequence;
|
|
1685
1534
|
return i;
|
|
1686
1535
|
};
|
|
1687
1536
|
function IOPrimitiveUtils$propertiesOf$slambda_0($channel, $this_propertiesOf, resultContinuation) {
|
|
1688
1537
|
var i = new IOPrimitiveUtils$propertiesOf$slambda($channel, $this_propertiesOf, resultContinuation);
|
|
1689
1538
|
var l = function ($this$sequence, $completion) {
|
|
1690
|
-
return i.
|
|
1539
|
+
return i.x3l($this$sequence, $completion);
|
|
1691
1540
|
};
|
|
1692
1541
|
l.$arity = 1;
|
|
1693
1542
|
return l;
|
|
@@ -1707,16 +1556,16 @@
|
|
|
1707
1556
|
return !(it == null) ? isInterface(it, Truth) : false;
|
|
1708
1557
|
}
|
|
1709
1558
|
function IOPrimitiveUtils$getOption$lambda_3(it) {
|
|
1710
|
-
return it.
|
|
1559
|
+
return it.ow();
|
|
1711
1560
|
}
|
|
1712
1561
|
function IOPrimitiveUtils$getInfo$lambda(it) {
|
|
1713
1562
|
return !(it == null) ? isInterface(it, Struct) : false;
|
|
1714
1563
|
}
|
|
1715
1564
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618(it) {
|
|
1716
|
-
return it.
|
|
1565
|
+
return it.r2().l() === 1;
|
|
1717
1566
|
}
|
|
1718
1567
|
function IOPrimitiveUtils$_get_singletons_$lambda_kke618_0(it) {
|
|
1719
|
-
return it.
|
|
1568
|
+
return it.q2();
|
|
1720
1569
|
}
|
|
1721
1570
|
function IOPrimitiveUtils$toAssignments$lambda($n) {
|
|
1722
1571
|
return function (it) {
|
|
@@ -1725,105 +1574,94 @@
|
|
|
1725
1574
|
}
|
|
1726
1575
|
function IOPrimitiveUtils$open$lambda($this_open) {
|
|
1727
1576
|
return function (it) {
|
|
1728
|
-
return IOPrimitiveUtils_getInstance().
|
|
1577
|
+
return IOPrimitiveUtils_getInstance().z3l($this_open, it);
|
|
1729
1578
|
};
|
|
1730
1579
|
}
|
|
1731
1580
|
function IOPrimitiveUtils$open$lambda_0($this_open) {
|
|
1732
1581
|
return function (it) {
|
|
1733
|
-
return IOPrimitiveUtils_getInstance().
|
|
1582
|
+
return IOPrimitiveUtils_getInstance().a3m($this_open, it);
|
|
1734
1583
|
};
|
|
1735
1584
|
}
|
|
1736
1585
|
function IOPrimitiveUtils$replyOpeningStream$lambda($alias, $channel) {
|
|
1737
1586
|
return function ($this$replyWith) {
|
|
1738
1587
|
var tmp0_elvis_lhs = $alias;
|
|
1739
|
-
$this$replyWith.
|
|
1740
|
-
return
|
|
1588
|
+
$this$replyWith.h2m(tmp0_elvis_lhs == null ? 'output_channel' + $channel.b1z().get(1) : tmp0_elvis_lhs, $channel);
|
|
1589
|
+
return Unit_instance;
|
|
1741
1590
|
};
|
|
1742
1591
|
}
|
|
1743
1592
|
function IOPrimitiveUtils$replyOpeningStream$lambda_0($alias, $channel) {
|
|
1744
1593
|
return function ($this$replyWith) {
|
|
1745
1594
|
var tmp0_elvis_lhs = $alias;
|
|
1746
|
-
$this$replyWith.
|
|
1747
|
-
return
|
|
1595
|
+
$this$replyWith.e2m(tmp0_elvis_lhs == null ? 'input_channel' + $channel.b1z().get(1) : tmp0_elvis_lhs, $channel);
|
|
1596
|
+
return Unit_instance;
|
|
1748
1597
|
};
|
|
1749
1598
|
}
|
|
1750
1599
|
function IOPrimitiveUtils() {
|
|
1751
1600
|
IOPrimitiveUtils_instance = this;
|
|
1752
1601
|
var tmp = this;
|
|
1753
|
-
tmp.
|
|
1602
|
+
tmp.t3j_1 = lazy(IOPrimitiveUtils$INPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1754
1603
|
var tmp_0 = this;
|
|
1755
|
-
tmp_0.
|
|
1604
|
+
tmp_0.u3j_1 = lazy(IOPrimitiveUtils$OUTPUT_STREAM_TERM_PATTERN$delegate$lambda);
|
|
1756
1605
|
var tmp_1 = this;
|
|
1757
|
-
tmp_1.
|
|
1606
|
+
tmp_1.v3j_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_PATTERN$delegate$lambda);
|
|
1758
1607
|
var tmp_2 = this;
|
|
1759
|
-
tmp_2.
|
|
1608
|
+
tmp_2.w3j_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_PATTERN$delegate$lambda);
|
|
1760
1609
|
var tmp_3 = this;
|
|
1761
|
-
tmp_3.
|
|
1610
|
+
tmp_3.x3j_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_PATTERN$delegate$lambda);
|
|
1762
1611
|
var tmp_4 = this;
|
|
1763
|
-
tmp_4.
|
|
1612
|
+
tmp_4.y3j_1 = lazy(IOPrimitiveUtils$PROPERTY_ALIAS_PATTERN$delegate$lambda);
|
|
1764
1613
|
var tmp_5 = this;
|
|
1765
|
-
tmp_5.
|
|
1614
|
+
tmp_5.z3j_1 = lazy(IOPrimitiveUtils$PROPERTY_INPUT$delegate$lambda);
|
|
1766
1615
|
var tmp_6 = this;
|
|
1767
|
-
tmp_6.
|
|
1616
|
+
tmp_6.a3k_1 = lazy(IOPrimitiveUtils$PROPERTY_OUTPUT$delegate$lambda);
|
|
1768
1617
|
var tmp_7 = this;
|
|
1769
|
-
tmp_7.
|
|
1618
|
+
tmp_7.b3k_1 = lazy(IOPrimitiveUtils$PROPERTY_TYPE_TEXT$delegate$lambda);
|
|
1770
1619
|
var tmp_8 = this;
|
|
1771
|
-
tmp_8.
|
|
1620
|
+
tmp_8.c3k_1 = lazy(IOPrimitiveUtils$PROPERTY_REPOSITION_FALSE$delegate$lambda);
|
|
1772
1621
|
var tmp_9 = this;
|
|
1773
|
-
tmp_9.
|
|
1622
|
+
tmp_9.d3k_1 = lazy(IOPrimitiveUtils$PROPERTY_EOF_ACTION_EOF_CODE$delegate$lambda);
|
|
1774
1623
|
var tmp_10 = this;
|
|
1775
|
-
tmp_10.
|
|
1624
|
+
tmp_10.e3k_1 = lazy(IOPrimitiveUtils$OPTION_QUOTED_PATTERN$delegate$lambda);
|
|
1776
1625
|
var tmp_11 = this;
|
|
1777
|
-
tmp_11.
|
|
1626
|
+
tmp_11.f3k_1 = lazy(IOPrimitiveUtils$OPTION_NUMBER_VARS_PATTERN$delegate$lambda);
|
|
1778
1627
|
var tmp_12 = this;
|
|
1779
|
-
tmp_12.
|
|
1628
|
+
tmp_12.g3k_1 = lazy(IOPrimitiveUtils$OPTION_IGNORE_OPS_PATTERN$delegate$lambda);
|
|
1780
1629
|
var tmp_13 = this;
|
|
1781
|
-
tmp_13.
|
|
1630
|
+
tmp_13.h3k_1 = lazy(IOPrimitiveUtils$INFO_VARIABLES_PATTERN$delegate$lambda);
|
|
1782
1631
|
var tmp_14 = this;
|
|
1783
|
-
tmp_14.
|
|
1632
|
+
tmp_14.i3k_1 = lazy(IOPrimitiveUtils$INFO_VARIABLE_NAMES_PATTERN$delegate$lambda);
|
|
1784
1633
|
var tmp_15 = this;
|
|
1785
|
-
tmp_15.
|
|
1634
|
+
tmp_15.j3k_1 = lazy(IOPrimitiveUtils$INFO_SINGLETONS_PATTERN$delegate$lambda);
|
|
1786
1635
|
}
|
|
1787
|
-
protoOf(IOPrimitiveUtils).
|
|
1636
|
+
protoOf(IOPrimitiveUtils).b3m = function (_this__u8e3s4, channel) {
|
|
1788
1637
|
return sequence(IOPrimitiveUtils$propertiesOf$slambda_0(channel, _this__u8e3s4, null));
|
|
1789
1638
|
};
|
|
1790
|
-
protoOf(IOPrimitiveUtils).
|
|
1791
|
-
var tmp$ret$1;
|
|
1639
|
+
protoOf(IOPrimitiveUtils).k3k = function (_this__u8e3s4) {
|
|
1792
1640
|
// Inline function 'kotlin.let' call
|
|
1793
|
-
var tmp0_let = _this__u8e3s4.context.z1t();
|
|
1794
1641
|
// Inline function 'kotlin.contracts.contract' call
|
|
1795
|
-
var tmp$ret$0;
|
|
1796
1642
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.<get-currentInputChannel>.<anonymous>' call
|
|
1797
|
-
var
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
return tmp$ret$1;
|
|
1643
|
+
var it = _this__u8e3s4.context.y1u();
|
|
1644
|
+
var tmp0_elvis_lhs = it.fr();
|
|
1645
|
+
return tmp0_elvis_lhs == null ? it.i1v() : tmp0_elvis_lhs;
|
|
1801
1646
|
};
|
|
1802
|
-
protoOf(IOPrimitiveUtils).
|
|
1803
|
-
var tmp$ret$1;
|
|
1647
|
+
protoOf(IOPrimitiveUtils).c3m = function (_this__u8e3s4) {
|
|
1804
1648
|
// Inline function 'kotlin.let' call
|
|
1805
|
-
var tmp0_let = _this__u8e3s4.context.a1u();
|
|
1806
1649
|
// Inline function 'kotlin.contracts.contract' call
|
|
1807
|
-
var tmp$ret$0;
|
|
1808
1650
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.<get-currentOutputChannel>.<anonymous>' call
|
|
1809
|
-
var
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
return tmp$ret$1;
|
|
1651
|
+
var it = _this__u8e3s4.context.z1u();
|
|
1652
|
+
var tmp0_elvis_lhs = it.fr();
|
|
1653
|
+
return tmp0_elvis_lhs == null ? it.j1v() : tmp0_elvis_lhs;
|
|
1813
1654
|
};
|
|
1814
|
-
protoOf(IOPrimitiveUtils).
|
|
1655
|
+
protoOf(IOPrimitiveUtils).z3l = function (_this__u8e3s4, term) {
|
|
1815
1656
|
var tmp;
|
|
1816
1657
|
var tmp$ret$1;
|
|
1817
1658
|
$l$block: {
|
|
1818
1659
|
// Inline function 'kotlin.sequences.any' call
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
var element = tmp0_iterator.n();
|
|
1823
|
-
var tmp$ret$0;
|
|
1660
|
+
var tmp0_iterator = _get_validPropertiesPattern__7s1t06(this).r();
|
|
1661
|
+
while (tmp0_iterator.s()) {
|
|
1662
|
+
var element = tmp0_iterator.u();
|
|
1824
1663
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ensureTermIsValidProperty.<anonymous>' call
|
|
1825
|
-
|
|
1826
|
-
if (tmp$ret$0) {
|
|
1664
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, element, term)) {
|
|
1827
1665
|
tmp$ret$1 = true;
|
|
1828
1666
|
break $l$block;
|
|
1829
1667
|
}
|
|
@@ -1833,23 +1671,20 @@
|
|
|
1833
1671
|
if (tmp$ret$1) {
|
|
1834
1672
|
tmp = term;
|
|
1835
1673
|
} else {
|
|
1836
|
-
throw
|
|
1674
|
+
throw Companion_instance_5.forTerm(_this__u8e3s4.context, Expected_STREAM_PROPERTY_getInstance(), term);
|
|
1837
1675
|
}
|
|
1838
1676
|
return tmp;
|
|
1839
1677
|
};
|
|
1840
|
-
protoOf(IOPrimitiveUtils).
|
|
1678
|
+
protoOf(IOPrimitiveUtils).a3m = function (_this__u8e3s4, term) {
|
|
1841
1679
|
var tmp;
|
|
1842
1680
|
var tmp$ret$1;
|
|
1843
1681
|
$l$block: {
|
|
1844
1682
|
// Inline function 'kotlin.sequences.any' call
|
|
1845
|
-
var
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
var element = tmp0_iterator.n();
|
|
1849
|
-
var tmp$ret$0;
|
|
1683
|
+
var tmp0_iterator = _get_supportedPropertiesPattern__x8u7bw(this).r();
|
|
1684
|
+
while (tmp0_iterator.s()) {
|
|
1685
|
+
var element = tmp0_iterator.u();
|
|
1850
1686
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ensureTermIsSupportedProperty.<anonymous>' call
|
|
1851
|
-
|
|
1852
|
-
if (tmp$ret$0) {
|
|
1687
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, element, term)) {
|
|
1853
1688
|
tmp$ret$1 = true;
|
|
1854
1689
|
break $l$block;
|
|
1855
1690
|
}
|
|
@@ -1859,23 +1694,20 @@
|
|
|
1859
1694
|
if (tmp$ret$1) {
|
|
1860
1695
|
tmp = term;
|
|
1861
1696
|
} else {
|
|
1862
|
-
throw
|
|
1697
|
+
throw Companion_instance.forUncaughtKtException(_this__u8e3s4.context, IllegalStateException_init_$Create$('unsupported option ' + term));
|
|
1863
1698
|
}
|
|
1864
1699
|
return tmp;
|
|
1865
1700
|
};
|
|
1866
|
-
protoOf(IOPrimitiveUtils).
|
|
1701
|
+
protoOf(IOPrimitiveUtils).d3m = function (_this__u8e3s4, term) {
|
|
1867
1702
|
var tmp;
|
|
1868
1703
|
var tmp$ret$1;
|
|
1869
1704
|
$l$block: {
|
|
1870
1705
|
// Inline function 'kotlin.sequences.any' call
|
|
1871
|
-
var
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
var element = tmp0_iterator.n();
|
|
1875
|
-
var tmp$ret$0;
|
|
1706
|
+
var tmp0_iterator = _get_validOptionsPattern__akhsd9(this).r();
|
|
1707
|
+
while (tmp0_iterator.s()) {
|
|
1708
|
+
var element = tmp0_iterator.u();
|
|
1876
1709
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ensureTermIsValidOption.<anonymous>' call
|
|
1877
|
-
|
|
1878
|
-
if (tmp$ret$0) {
|
|
1710
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, element, term)) {
|
|
1879
1711
|
tmp$ret$1 = true;
|
|
1880
1712
|
break $l$block;
|
|
1881
1713
|
}
|
|
@@ -1885,23 +1717,20 @@
|
|
|
1885
1717
|
if (tmp$ret$1) {
|
|
1886
1718
|
tmp = term;
|
|
1887
1719
|
} else {
|
|
1888
|
-
throw
|
|
1720
|
+
throw Companion_instance_5.forTerm(_this__u8e3s4.context, Expected_WRITE_OPTION_getInstance(), term);
|
|
1889
1721
|
}
|
|
1890
1722
|
return tmp;
|
|
1891
1723
|
};
|
|
1892
|
-
protoOf(IOPrimitiveUtils).
|
|
1724
|
+
protoOf(IOPrimitiveUtils).e3m = function (_this__u8e3s4, term) {
|
|
1893
1725
|
var tmp;
|
|
1894
1726
|
var tmp$ret$1;
|
|
1895
1727
|
$l$block: {
|
|
1896
1728
|
// Inline function 'kotlin.sequences.any' call
|
|
1897
|
-
var
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
var element = tmp0_iterator.n();
|
|
1901
|
-
var tmp$ret$0;
|
|
1729
|
+
var tmp0_iterator = _get_validInfoPattern__dtwgth(this).r();
|
|
1730
|
+
while (tmp0_iterator.s()) {
|
|
1731
|
+
var element = tmp0_iterator.u();
|
|
1902
1732
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ensureTermIsValidInfo.<anonymous>' call
|
|
1903
|
-
|
|
1904
|
-
if (tmp$ret$0) {
|
|
1733
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, element, term)) {
|
|
1905
1734
|
tmp$ret$1 = true;
|
|
1906
1735
|
break $l$block;
|
|
1907
1736
|
}
|
|
@@ -1911,77 +1740,73 @@
|
|
|
1911
1740
|
if (tmp$ret$1) {
|
|
1912
1741
|
tmp = term;
|
|
1913
1742
|
} else {
|
|
1914
|
-
throw
|
|
1743
|
+
throw Companion_instance_5.forTerm(_this__u8e3s4.context, Expected_READ_OPTION_getInstance(), term);
|
|
1915
1744
|
}
|
|
1916
1745
|
return tmp;
|
|
1917
1746
|
};
|
|
1918
|
-
protoOf(IOPrimitiveUtils).
|
|
1919
|
-
|
|
1920
|
-
var tmp = _this__u8e3s4.arguments.
|
|
1747
|
+
protoOf(IOPrimitiveUtils).f3m = function (_this__u8e3s4, index) {
|
|
1748
|
+
Companion_getInstance_1().z2g(_this__u8e3s4, index);
|
|
1749
|
+
var tmp = _this__u8e3s4.arguments.c1(index);
|
|
1921
1750
|
var list = isInterface(tmp, List) ? tmp : THROW_CCE();
|
|
1922
|
-
var tmp0_iterator = list.
|
|
1923
|
-
while (tmp0_iterator.
|
|
1924
|
-
var term = tmp0_iterator.
|
|
1925
|
-
this.
|
|
1751
|
+
var tmp0_iterator = list.uu().r();
|
|
1752
|
+
while (tmp0_iterator.s()) {
|
|
1753
|
+
var term = tmp0_iterator.u();
|
|
1754
|
+
this.d3m(_this__u8e3s4, term);
|
|
1926
1755
|
}
|
|
1927
1756
|
return _this__u8e3s4;
|
|
1928
1757
|
};
|
|
1929
|
-
protoOf(IOPrimitiveUtils).
|
|
1930
|
-
var list = _this__u8e3s4.arguments.
|
|
1758
|
+
protoOf(IOPrimitiveUtils).g3m = function (_this__u8e3s4, index) {
|
|
1759
|
+
var list = _this__u8e3s4.arguments.c1(index);
|
|
1931
1760
|
var tmp;
|
|
1932
1761
|
if (isInterface(list, Var)) {
|
|
1933
1762
|
tmp = null;
|
|
1934
1763
|
} else {
|
|
1935
|
-
|
|
1764
|
+
Companion_getInstance_1().z2g(_this__u8e3s4, index);
|
|
1936
1765
|
var listOfInfo = (isInterface(list, List) ? list : THROW_CCE()).toList();
|
|
1937
|
-
var tmp0_iterator = listOfInfo.
|
|
1938
|
-
while (tmp0_iterator.
|
|
1939
|
-
var term = tmp0_iterator.
|
|
1940
|
-
this.
|
|
1766
|
+
var tmp0_iterator = listOfInfo.r();
|
|
1767
|
+
while (tmp0_iterator.s()) {
|
|
1768
|
+
var term = tmp0_iterator.u();
|
|
1769
|
+
this.e3m(_this__u8e3s4, term);
|
|
1941
1770
|
}
|
|
1942
1771
|
tmp = listOfInfo;
|
|
1943
1772
|
}
|
|
1944
1773
|
return tmp;
|
|
1945
1774
|
};
|
|
1946
|
-
protoOf(IOPrimitiveUtils).
|
|
1947
|
-
this.
|
|
1948
|
-
var tmp = _this__u8e3s4.arguments.
|
|
1775
|
+
protoOf(IOPrimitiveUtils).h3m = function (_this__u8e3s4, index) {
|
|
1776
|
+
this.f3m(_this__u8e3s4, index);
|
|
1777
|
+
var tmp = _this__u8e3s4.arguments.c1(index);
|
|
1949
1778
|
var optionList = (isInterface(tmp, List) ? tmp : THROW_CCE()).toList();
|
|
1950
1779
|
var tmp_0;
|
|
1951
|
-
if (getOption(optionList, this, _this__u8e3s4.context.
|
|
1780
|
+
if (getOption(optionList, this, _this__u8e3s4.context.j1l(), _get_OPTION_QUOTED_PATTERN__n2ri42(this))) {
|
|
1952
1781
|
tmp_0 = FuncFormat_QUOTED_IF_NECESSARY_getInstance();
|
|
1953
1782
|
} else {
|
|
1954
1783
|
tmp_0 = FuncFormat_LITERAL_getInstance();
|
|
1955
1784
|
}
|
|
1956
1785
|
var funcFormat = tmp_0;
|
|
1957
1786
|
var tmp_1;
|
|
1958
|
-
if (getOption(optionList, this, _this__u8e3s4.context.
|
|
1787
|
+
if (getOption(optionList, this, _this__u8e3s4.context.j1l(), _get_OPTION_IGNORE_OPS_PATTERN__cpse4v(this))) {
|
|
1959
1788
|
tmp_1 = OpFormat_IGNORE_OPERATORS_getInstance();
|
|
1960
1789
|
} else {
|
|
1961
1790
|
tmp_1 = OpFormat_EXPRESSIONS_getInstance();
|
|
1962
1791
|
}
|
|
1963
1792
|
var opFormat = tmp_1;
|
|
1964
|
-
var numberVars = getOption(optionList, this, _this__u8e3s4.context.
|
|
1965
|
-
return
|
|
1793
|
+
var numberVars = getOption(optionList, this, _this__u8e3s4.context.j1l(), _get_OPTION_NUMBER_VARS_PATTERN__p98ste(this));
|
|
1794
|
+
return Companion_instance_6.m14(VarFormat_UNDERSCORE_getInstance(), opFormat, funcFormat, numberVars, _this__u8e3s4.context.d1v());
|
|
1966
1795
|
};
|
|
1967
|
-
protoOf(IOPrimitiveUtils).
|
|
1968
|
-
var term = _this__u8e3s4.arguments.
|
|
1969
|
-
|
|
1970
|
-
if (isInterface(tmp0_subject, Var))
|
|
1796
|
+
protoOf(IOPrimitiveUtils).i3m = function (_this__u8e3s4, index) {
|
|
1797
|
+
var term = _this__u8e3s4.arguments.c1(index);
|
|
1798
|
+
if (isInterface(term, Var))
|
|
1971
1799
|
return _this__u8e3s4;
|
|
1972
1800
|
else {
|
|
1973
|
-
if (isInterface(
|
|
1801
|
+
if (isInterface(term, Struct)) {
|
|
1974
1802
|
var tmp$ret$1;
|
|
1975
1803
|
$l$block: {
|
|
1976
1804
|
// Inline function 'kotlin.sequences.any' call
|
|
1977
|
-
var
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
var element = tmp0_iterator.n();
|
|
1981
|
-
var tmp$ret$0;
|
|
1805
|
+
var tmp0_iterator = sequenceOf([_get_PROPERTY_INPUT__z2zr91(this), _get_PROPERTY_OUTPUT__1pem9m(this), _get_PROPERTY_ALIAS_PATTERN__wipd2s(this)]).r();
|
|
1806
|
+
while (tmp0_iterator.s()) {
|
|
1807
|
+
var element = tmp0_iterator.u();
|
|
1982
1808
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ensuringArgumentIsStreamProperty.<anonymous>' call
|
|
1983
|
-
|
|
1984
|
-
if (tmp$ret$0) {
|
|
1809
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, element, term)) {
|
|
1985
1810
|
tmp$ret$1 = true;
|
|
1986
1811
|
break $l$block;
|
|
1987
1812
|
}
|
|
@@ -1993,17 +1818,17 @@
|
|
|
1993
1818
|
}
|
|
1994
1819
|
}
|
|
1995
1820
|
}
|
|
1996
|
-
throw
|
|
1821
|
+
throw Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_PROPERTY_getInstance(), term, index);
|
|
1997
1822
|
};
|
|
1998
|
-
protoOf(IOPrimitiveUtils).
|
|
1999
|
-
|
|
2000
|
-
var term = _this__u8e3s4.arguments.
|
|
2001
|
-
var error =
|
|
1823
|
+
protoOf(IOPrimitiveUtils).j3m = function (_this__u8e3s4, index) {
|
|
1824
|
+
Companion_getInstance_1().l2g(_this__u8e3s4, index);
|
|
1825
|
+
var term = _this__u8e3s4.arguments.c1(index);
|
|
1826
|
+
var error = Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_SOURCE_SINK_getInstance(), term, index);
|
|
2002
1827
|
if (!isInterface(term, Atom)) {
|
|
2003
1828
|
throw error;
|
|
2004
1829
|
}
|
|
2005
1830
|
try {
|
|
2006
|
-
return
|
|
1831
|
+
return Companion_getInstance_8().of(term.r2());
|
|
2007
1832
|
} catch ($p) {
|
|
2008
1833
|
if ($p instanceof InvalidUrlException) {
|
|
2009
1834
|
var _ = $p;
|
|
@@ -2013,88 +1838,83 @@
|
|
|
2013
1838
|
}
|
|
2014
1839
|
}
|
|
2015
1840
|
};
|
|
2016
|
-
protoOf(IOPrimitiveUtils).
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
var tmp = _this__u8e3s4.arguments.
|
|
1841
|
+
protoOf(IOPrimitiveUtils).k3m = function (_this__u8e3s4, index) {
|
|
1842
|
+
Companion_getInstance_1().l2g(_this__u8e3s4, index);
|
|
1843
|
+
Companion_getInstance_1().u2g(_this__u8e3s4, index);
|
|
1844
|
+
var tmp = _this__u8e3s4.arguments.c1(index);
|
|
2020
1845
|
var term = isInterface(tmp, Atom) ? tmp : THROW_CCE();
|
|
2021
|
-
if (!
|
|
2022
|
-
throw
|
|
1846
|
+
if (!Companion_getInstance_7().d3j_1.n(term)) {
|
|
1847
|
+
throw Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IO_MODE_getInstance(), term, index);
|
|
2023
1848
|
}
|
|
2024
|
-
var tmp$ret$1;
|
|
2025
1849
|
// Inline function 'kotlin.text.uppercase' call
|
|
2026
|
-
var tmp0_uppercase = term.b1();
|
|
2027
|
-
var tmp$ret$0;
|
|
2028
1850
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2029
|
-
tmp$ret$
|
|
2030
|
-
tmp$ret$1 = tmp$ret$0.toUpperCase();
|
|
1851
|
+
var tmp$ret$1 = term.r2().toUpperCase();
|
|
2031
1852
|
return valueOf(tmp$ret$1);
|
|
2032
1853
|
};
|
|
2033
|
-
protoOf(IOPrimitiveUtils).
|
|
2034
|
-
var term = _this__u8e3s4.arguments.
|
|
2035
|
-
|
|
2036
|
-
if (isInterface(tmp0_subject, Var))
|
|
1854
|
+
protoOf(IOPrimitiveUtils).x3k = function (_this__u8e3s4, index) {
|
|
1855
|
+
var term = _this__u8e3s4.arguments.c1(index);
|
|
1856
|
+
if (isInterface(term, Var))
|
|
2037
1857
|
return null;
|
|
2038
1858
|
else {
|
|
2039
|
-
if (isInterface(
|
|
2040
|
-
if (
|
|
2041
|
-
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
1859
|
+
if (isInterface(term, Struct))
|
|
1860
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
1861
|
+
var tmp1_elvis_lhs = firstOrNull(_this__u8e3s4.context.z1u().findByTerm(term));
|
|
2042
1862
|
var tmp;
|
|
2043
1863
|
if (tmp1_elvis_lhs == null) {
|
|
2044
|
-
throw
|
|
1864
|
+
throw Companion_instance_7.forStream(_this__u8e3s4.context, term);
|
|
2045
1865
|
} else {
|
|
2046
1866
|
tmp = tmp1_elvis_lhs;
|
|
2047
1867
|
}
|
|
2048
1868
|
return tmp;
|
|
2049
|
-
} else if (
|
|
2050
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
1869
|
+
} else if (Companion_getInstance_1().g2g(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
1870
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.y1u().findByTerm(term));
|
|
2051
1871
|
var tmp_0;
|
|
2052
1872
|
if (tmp2_elvis_lhs == null) {
|
|
2053
|
-
throw
|
|
1873
|
+
throw Companion_instance_7.forStream(_this__u8e3s4.context, term);
|
|
2054
1874
|
} else {
|
|
2055
1875
|
tmp_0 = tmp2_elvis_lhs;
|
|
2056
1876
|
}
|
|
2057
1877
|
return tmp_0;
|
|
2058
1878
|
}
|
|
2059
1879
|
}
|
|
2060
|
-
throw
|
|
1880
|
+
throw Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2061
1881
|
};
|
|
2062
|
-
protoOf(IOPrimitiveUtils).
|
|
2063
|
-
var arg = _this__u8e3s4.arguments.
|
|
1882
|
+
protoOf(IOPrimitiveUtils).e3l = function (_this__u8e3s4, index) {
|
|
1883
|
+
var arg = _this__u8e3s4.arguments.c1(index);
|
|
2064
1884
|
var tmp;
|
|
2065
1885
|
if (isInterface(arg, Var)) {
|
|
2066
1886
|
tmp = _this__u8e3s4;
|
|
2067
1887
|
} else {
|
|
2068
1888
|
if (isInterface(arg, Atom)) {
|
|
2069
1889
|
var tmp_0;
|
|
2070
|
-
if (arg.
|
|
1890
|
+
if (arg.r2() === 'end_of_file') {
|
|
2071
1891
|
tmp_0 = _this__u8e3s4;
|
|
2072
|
-
} else if (arg.
|
|
1892
|
+
} else if (arg.r2().length === 1) {
|
|
2073
1893
|
tmp_0 = _this__u8e3s4;
|
|
2074
1894
|
} else {
|
|
2075
|
-
throw
|
|
1895
|
+
throw Companion_instance_0.d28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2076
1896
|
}
|
|
2077
1897
|
tmp = tmp_0;
|
|
2078
1898
|
} else {
|
|
2079
|
-
throw
|
|
1899
|
+
throw Companion_instance_0.d28(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_IN_CHARACTER_getInstance(), arg, index);
|
|
2080
1900
|
}
|
|
2081
1901
|
}
|
|
2082
1902
|
return tmp;
|
|
2083
1903
|
};
|
|
2084
|
-
protoOf(IOPrimitiveUtils).
|
|
2085
|
-
var term = _this__u8e3s4.arguments.
|
|
1904
|
+
protoOf(IOPrimitiveUtils).i3l = function (_this__u8e3s4, index) {
|
|
1905
|
+
var term = _this__u8e3s4.arguments.c1(index);
|
|
2086
1906
|
var tmp;
|
|
2087
1907
|
if (isInterface(term, Var)) {
|
|
2088
1908
|
tmp = _this__u8e3s4;
|
|
2089
1909
|
} else {
|
|
2090
1910
|
if (!isInterface(term, Integer)) {
|
|
2091
|
-
tmp =
|
|
1911
|
+
tmp = Companion_getInstance_1().y2g(_this__u8e3s4, index);
|
|
2092
1912
|
} else {
|
|
2093
|
-
if (term.equals(
|
|
1913
|
+
if (term.equals(Companion_getInstance_6().f11_1)) {
|
|
2094
1914
|
tmp = _this__u8e3s4;
|
|
2095
1915
|
} else {
|
|
2096
|
-
if (
|
|
2097
|
-
throw
|
|
1916
|
+
if (Companion_getInstance_1().c2h(term)) {
|
|
1917
|
+
throw Companion_instance_8.of(_this__u8e3s4.context, _this__u8e3s4.signature, Limit_CHARACTER_CODE_getInstance());
|
|
2098
1918
|
} else {
|
|
2099
1919
|
tmp = _this__u8e3s4;
|
|
2100
1920
|
}
|
|
@@ -2103,31 +1923,24 @@
|
|
|
2103
1923
|
}
|
|
2104
1924
|
return tmp;
|
|
2105
1925
|
};
|
|
2106
|
-
protoOf(IOPrimitiveUtils).
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
var tmp = _this__u8e3s4.arguments.
|
|
1926
|
+
protoOf(IOPrimitiveUtils).q3k = function (_this__u8e3s4, index) {
|
|
1927
|
+
Companion_getInstance_1().l2g(_this__u8e3s4, index);
|
|
1928
|
+
Companion_getInstance_1().p2g(_this__u8e3s4, index);
|
|
1929
|
+
var tmp = _this__u8e3s4.arguments.c1(index);
|
|
2110
1930
|
var term = isInterface(tmp, Struct) ? tmp : THROW_CCE();
|
|
2111
1931
|
var tmp_0;
|
|
2112
1932
|
if (isInterface(term, Atom)) {
|
|
2113
1933
|
var tmp$ret$3;
|
|
2114
1934
|
$l$block: {
|
|
2115
1935
|
// Inline function 'kotlin.sequences.firstOrNull' call
|
|
2116
|
-
var
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
var element = tmp0_iterator.n();
|
|
2120
|
-
var tmp$ret$2;
|
|
1936
|
+
var tmp0_iterator = sequenceOf([_this__u8e3s4.context.y1u(), _this__u8e3s4.context.z1u()]).r();
|
|
1937
|
+
while (tmp0_iterator.s()) {
|
|
1938
|
+
var element = tmp0_iterator.u();
|
|
2121
1939
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.ensuringArgumentIsChannel.<anonymous>' call
|
|
2122
|
-
var tmp$ret$1;
|
|
2123
1940
|
// Inline function 'kotlin.collections.contains' call
|
|
2124
|
-
var tmp0_contains = term.b1();
|
|
2125
|
-
var tmp$ret$0;
|
|
2126
1941
|
// Inline function 'kotlin.collections.containsKey' call
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
tmp$ret$2 = tmp$ret$1;
|
|
2130
|
-
if (tmp$ret$2) {
|
|
1942
|
+
var key = term.r2();
|
|
1943
|
+
if ((isInterface(element, Map) ? element : THROW_CCE()).u2(key)) {
|
|
2131
1944
|
tmp$ret$3 = element;
|
|
2132
1945
|
break $l$block;
|
|
2133
1946
|
}
|
|
@@ -2135,62 +1948,62 @@
|
|
|
2135
1948
|
tmp$ret$3 = null;
|
|
2136
1949
|
}
|
|
2137
1950
|
var tmp0_safe_receiver = tmp$ret$3;
|
|
2138
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1951
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x2(term.r2());
|
|
2139
1952
|
var tmp_1;
|
|
2140
1953
|
if (tmp1_elvis_lhs == null) {
|
|
2141
|
-
throw
|
|
1954
|
+
throw Companion_instance_7.forSourceSink(_this__u8e3s4.context, term);
|
|
2142
1955
|
} else {
|
|
2143
1956
|
tmp_1 = tmp1_elvis_lhs;
|
|
2144
1957
|
}
|
|
2145
1958
|
tmp_0 = tmp_1;
|
|
2146
1959
|
} else {
|
|
2147
|
-
if (
|
|
2148
|
-
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
1960
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, term, _get_OUTPUT_STREAM_TERM_PATTERN__4vocxf(this))) {
|
|
1961
|
+
var tmp2_elvis_lhs = firstOrNull(_this__u8e3s4.context.z1u().findByTerm(term));
|
|
2149
1962
|
var tmp_2;
|
|
2150
1963
|
if (tmp2_elvis_lhs == null) {
|
|
2151
|
-
throw
|
|
1964
|
+
throw Companion_instance_7.forStream(_this__u8e3s4.context, term);
|
|
2152
1965
|
} else {
|
|
2153
1966
|
tmp_2 = tmp2_elvis_lhs;
|
|
2154
1967
|
}
|
|
2155
1968
|
tmp_0 = tmp_2;
|
|
2156
1969
|
} else {
|
|
2157
|
-
if (
|
|
2158
|
-
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.
|
|
1970
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, term, _get_INPUT_STREAM_TERM_PATTERN__5fd8p6(this))) {
|
|
1971
|
+
var tmp3_elvis_lhs = firstOrNull(_this__u8e3s4.context.y1u().findByTerm(term));
|
|
2159
1972
|
var tmp_3;
|
|
2160
1973
|
if (tmp3_elvis_lhs == null) {
|
|
2161
|
-
throw
|
|
1974
|
+
throw Companion_instance_7.forStream(_this__u8e3s4.context, term);
|
|
2162
1975
|
} else {
|
|
2163
1976
|
tmp_3 = tmp3_elvis_lhs;
|
|
2164
1977
|
}
|
|
2165
1978
|
tmp_0 = tmp_3;
|
|
2166
1979
|
} else {
|
|
2167
|
-
throw
|
|
1980
|
+
throw Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_OR_ALIAS_getInstance(), term, index);
|
|
2168
1981
|
}
|
|
2169
1982
|
}
|
|
2170
1983
|
}
|
|
2171
1984
|
return tmp_0;
|
|
2172
1985
|
};
|
|
2173
|
-
protoOf(IOPrimitiveUtils).
|
|
2174
|
-
var channel = this.
|
|
1986
|
+
protoOf(IOPrimitiveUtils).n3k = function (_this__u8e3s4, index) {
|
|
1987
|
+
var channel = this.q3k(_this__u8e3s4, index);
|
|
2175
1988
|
var tmp;
|
|
2176
1989
|
if (isInterface(channel, InputChannel)) {
|
|
2177
1990
|
tmp = channel;
|
|
2178
1991
|
} else {
|
|
2179
|
-
throw
|
|
1992
|
+
throw Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.c1(index), index);
|
|
2180
1993
|
}
|
|
2181
1994
|
return tmp;
|
|
2182
1995
|
};
|
|
2183
|
-
protoOf(IOPrimitiveUtils).
|
|
2184
|
-
var channel = this.
|
|
1996
|
+
protoOf(IOPrimitiveUtils).a3l = function (_this__u8e3s4, index) {
|
|
1997
|
+
var channel = this.q3k(_this__u8e3s4, index);
|
|
2185
1998
|
var tmp;
|
|
2186
1999
|
if (isInterface(channel, OutputChannel)) {
|
|
2187
2000
|
tmp = channel;
|
|
2188
2001
|
} else {
|
|
2189
|
-
throw
|
|
2002
|
+
throw Companion_instance_5.e25(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_STREAM_TYPE_getInstance(), _this__u8e3s4.arguments.c1(index), index);
|
|
2190
2003
|
}
|
|
2191
2004
|
return tmp;
|
|
2192
2005
|
};
|
|
2193
|
-
protoOf(IOPrimitiveUtils).
|
|
2006
|
+
protoOf(IOPrimitiveUtils).l3m = function (_this__u8e3s4, channel, term, formatter) {
|
|
2194
2007
|
var tmp;
|
|
2195
2008
|
try {
|
|
2196
2009
|
channel.write(format(term, formatter));
|
|
@@ -2207,10 +2020,10 @@
|
|
|
2207
2020
|
}
|
|
2208
2021
|
return tmp;
|
|
2209
2022
|
};
|
|
2210
|
-
protoOf(IOPrimitiveUtils).
|
|
2023
|
+
protoOf(IOPrimitiveUtils).m3m = function (_this__u8e3s4, channel, arg) {
|
|
2211
2024
|
var tmp;
|
|
2212
2025
|
try {
|
|
2213
|
-
channel.write(
|
|
2026
|
+
channel.write(toString(arg.y10().toChar()));
|
|
2214
2027
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2215
2028
|
} catch ($p) {
|
|
2216
2029
|
var tmp_0;
|
|
@@ -2224,10 +2037,10 @@
|
|
|
2224
2037
|
}
|
|
2225
2038
|
return tmp;
|
|
2226
2039
|
};
|
|
2227
|
-
protoOf(IOPrimitiveUtils).
|
|
2040
|
+
protoOf(IOPrimitiveUtils).n3m = function (_this__u8e3s4, channel, arg) {
|
|
2228
2041
|
var tmp;
|
|
2229
2042
|
try {
|
|
2230
|
-
channel.write(arg.
|
|
2043
|
+
channel.write(arg.r2());
|
|
2231
2044
|
tmp = _this__u8e3s4.replySuccess(VOID, VOID, []);
|
|
2232
2045
|
} catch ($p) {
|
|
2233
2046
|
var tmp_0;
|
|
@@ -2241,7 +2054,7 @@
|
|
|
2241
2054
|
}
|
|
2242
2055
|
return tmp;
|
|
2243
2056
|
};
|
|
2244
|
-
protoOf(IOPrimitiveUtils).
|
|
2057
|
+
protoOf(IOPrimitiveUtils).o3m = function (_this__u8e3s4, channel, arg) {
|
|
2245
2058
|
var tmp;
|
|
2246
2059
|
try {
|
|
2247
2060
|
var tmp0_safe_receiver = channel.peek();
|
|
@@ -2251,14 +2064,12 @@
|
|
|
2251
2064
|
if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
|
|
2252
2065
|
tmp_0 = null;
|
|
2253
2066
|
} else {
|
|
2254
|
-
var tmp$ret$0;
|
|
2255
2067
|
// Inline function 'kotlin.code' call
|
|
2256
|
-
|
|
2257
|
-
tmp_0 = tmp$ret$0;
|
|
2068
|
+
tmp_0 = Char__toInt_impl_vasixd(tmp1_safe_receiver);
|
|
2258
2069
|
}
|
|
2259
2070
|
var tmp2_elvis_lhs = tmp_0;
|
|
2260
2071
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2261
|
-
tmp = _this__u8e3s4.replyWith(
|
|
2072
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2262
2073
|
} catch ($p) {
|
|
2263
2074
|
var tmp_2;
|
|
2264
2075
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2271,12 +2082,12 @@
|
|
|
2271
2082
|
}
|
|
2272
2083
|
return tmp;
|
|
2273
2084
|
};
|
|
2274
|
-
protoOf(IOPrimitiveUtils).
|
|
2085
|
+
protoOf(IOPrimitiveUtils).p3m = function (_this__u8e3s4, channel, arg) {
|
|
2275
2086
|
var tmp;
|
|
2276
2087
|
try {
|
|
2277
2088
|
var tmp0_elvis_lhs = channel.peek();
|
|
2278
2089
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2279
|
-
tmp = _this__u8e3s4.replyWith(
|
|
2090
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2280
2091
|
} catch ($p) {
|
|
2281
2092
|
var tmp_0;
|
|
2282
2093
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2289,7 +2100,7 @@
|
|
|
2289
2100
|
}
|
|
2290
2101
|
return tmp;
|
|
2291
2102
|
};
|
|
2292
|
-
protoOf(IOPrimitiveUtils).
|
|
2103
|
+
protoOf(IOPrimitiveUtils).j3l = function (_this__u8e3s4, channel, arg) {
|
|
2293
2104
|
var tmp;
|
|
2294
2105
|
try {
|
|
2295
2106
|
var tmp0_safe_receiver = channel.read();
|
|
@@ -2299,14 +2110,12 @@
|
|
|
2299
2110
|
if ((tmp_1 == null ? null : new Char(tmp_1)) == null) {
|
|
2300
2111
|
tmp_0 = null;
|
|
2301
2112
|
} else {
|
|
2302
|
-
var tmp$ret$0;
|
|
2303
2113
|
// Inline function 'kotlin.code' call
|
|
2304
|
-
|
|
2305
|
-
tmp_0 = tmp$ret$0;
|
|
2114
|
+
tmp_0 = Char__toInt_impl_vasixd(tmp1_safe_receiver);
|
|
2306
2115
|
}
|
|
2307
2116
|
var tmp2_elvis_lhs = tmp_0;
|
|
2308
2117
|
var code = tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2309
|
-
tmp = _this__u8e3s4.replyWith(
|
|
2118
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, arg, Companion_getInstance_6().ofInt(code)), VOID, []);
|
|
2310
2119
|
} catch ($p) {
|
|
2311
2120
|
var tmp_2;
|
|
2312
2121
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2319,12 +2128,12 @@
|
|
|
2319
2128
|
}
|
|
2320
2129
|
return tmp;
|
|
2321
2130
|
};
|
|
2322
|
-
protoOf(IOPrimitiveUtils).
|
|
2131
|
+
protoOf(IOPrimitiveUtils).f3l = function (_this__u8e3s4, channel, arg) {
|
|
2323
2132
|
var tmp;
|
|
2324
2133
|
try {
|
|
2325
2134
|
var tmp0_elvis_lhs = channel.read();
|
|
2326
2135
|
var char = tmp0_elvis_lhs == null ? 'end_of_file' : tmp0_elvis_lhs;
|
|
2327
|
-
tmp = _this__u8e3s4.replyWith(
|
|
2136
|
+
tmp = _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, arg, Companion_getInstance_0().of(char)), VOID, []);
|
|
2328
2137
|
} catch ($p) {
|
|
2329
2138
|
var tmp_0;
|
|
2330
2139
|
if ($p instanceof IllegalStateException) {
|
|
@@ -2337,55 +2146,50 @@
|
|
|
2337
2146
|
}
|
|
2338
2147
|
return tmp;
|
|
2339
2148
|
};
|
|
2340
|
-
protoOf(IOPrimitiveUtils).
|
|
2149
|
+
protoOf(IOPrimitiveUtils).q3m = function (_this__u8e3s4, channel, arg, lastIsInfoList) {
|
|
2341
2150
|
try {
|
|
2342
|
-
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.
|
|
2151
|
+
var termsChannel = asTermChannel(channel, _this__u8e3s4.context.d1v());
|
|
2343
2152
|
var tmp;
|
|
2344
2153
|
if (lastIsInfoList) {
|
|
2345
|
-
tmp = this.
|
|
2154
|
+
tmp = this.g3m(_this__u8e3s4, get_lastIndex(_this__u8e3s4.arguments));
|
|
2346
2155
|
} else {
|
|
2347
2156
|
tmp = emptyList();
|
|
2348
2157
|
}
|
|
2349
2158
|
var infoList = tmp;
|
|
2350
|
-
if (!termsChannel.
|
|
2159
|
+
if (!termsChannel.f1z())
|
|
2351
2160
|
return _this__u8e3s4.replyFail(VOID, []);
|
|
2352
2161
|
var read = termsChannel.read();
|
|
2353
2162
|
var tmp_0;
|
|
2354
2163
|
if (read == null) {
|
|
2355
2164
|
tmp_0 = _this__u8e3s4.replyFail(VOID, []);
|
|
2356
2165
|
} else {
|
|
2357
|
-
var variables_0 = variables(this, toList_0(read.
|
|
2358
|
-
var variableNames_0 = variableNames(this, toAssignments_0(read.
|
|
2166
|
+
var variables_0 = variables(this, toList_0(read.sw()));
|
|
2167
|
+
var variableNames_0 = variableNames(this, toAssignments_0(read.sw(), this));
|
|
2359
2168
|
var singletons_0 = singletons(this, toAssignments(_get_singletons__bihqrn(read, this), this));
|
|
2360
|
-
var tmp0_safe_receiver = infoList;
|
|
2361
2169
|
var tmp_1;
|
|
2362
|
-
if (
|
|
2170
|
+
if (infoList == null) {
|
|
2363
2171
|
tmp_1 = null;
|
|
2364
2172
|
} else {
|
|
2365
|
-
var tmp$ret$1;
|
|
2366
2173
|
// Inline function 'kotlin.let' call
|
|
2367
2174
|
// Inline function 'kotlin.contracts.contract' call
|
|
2368
|
-
var tmp$ret$0;
|
|
2369
2175
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.readTermAndReply.<anonymous>' call
|
|
2370
|
-
var u = _this__u8e3s4.context.
|
|
2371
|
-
|
|
2372
|
-
tmp$ret$1 = tmp$ret$0;
|
|
2373
|
-
tmp_1 = tmp$ret$1;
|
|
2176
|
+
var u = _this__u8e3s4.context.j1l();
|
|
2177
|
+
tmp_1 = getInfo(infoList, IOPrimitiveUtils_getInstance(), u, _get_INFO_SINGLETONS_PATTERN__y21s87(IOPrimitiveUtils_getInstance()), singletons_0).plus(getInfo(infoList, IOPrimitiveUtils_getInstance(), u, _get_INFO_VARIABLES_PATTERN__bhp1h0(IOPrimitiveUtils_getInstance()), variables_0)).plus(getInfo(infoList, IOPrimitiveUtils_getInstance(), u, _get_INFO_VARIABLE_NAMES_PATTERN__j3oaom(IOPrimitiveUtils_getInstance()), variableNames_0));
|
|
2374
2178
|
}
|
|
2375
2179
|
var tmp1_elvis_lhs = tmp_1;
|
|
2376
|
-
var info = tmp1_elvis_lhs == null ?
|
|
2377
|
-
tmp_0 = _this__u8e3s4.replyWith(
|
|
2180
|
+
var info = tmp1_elvis_lhs == null ? Companion_getInstance_1().f2g(_this__u8e3s4, last(_this__u8e3s4.arguments), Companion_instance_2.of([variables_0, variableNames_0, singletons_0])) : tmp1_elvis_lhs;
|
|
2181
|
+
tmp_0 = _this__u8e3s4.replyWith(Companion_getInstance_1().f2g(_this__u8e3s4, arg, read).plus(info), VOID, []);
|
|
2378
2182
|
}
|
|
2379
2183
|
return tmp_0;
|
|
2380
2184
|
} catch ($p) {
|
|
2381
2185
|
if ($p instanceof IllegalStateException) {
|
|
2382
2186
|
var e = $p;
|
|
2383
|
-
throw
|
|
2187
|
+
throw Companion_instance.forUncaughtKtException(_this__u8e3s4.context, e);
|
|
2384
2188
|
} else {
|
|
2385
2189
|
if ($p instanceof ParseException) {
|
|
2386
2190
|
var e_0 = $p;
|
|
2387
|
-
var tmp_2 =
|
|
2388
|
-
var tmp_3 = channel.
|
|
2191
|
+
var tmp_2 = Companion_instance_9;
|
|
2192
|
+
var tmp_3 = channel.b1z().toString();
|
|
2389
2193
|
var tmp_4 = e_0.line;
|
|
2390
2194
|
var tmp_5 = e_0.column;
|
|
2391
2195
|
var tmp2_elvis_lhs = e_0.message;
|
|
@@ -2396,19 +2200,19 @@
|
|
|
2396
2200
|
}
|
|
2397
2201
|
}
|
|
2398
2202
|
};
|
|
2399
|
-
protoOf(IOPrimitiveUtils).
|
|
2203
|
+
protoOf(IOPrimitiveUtils).r3m = function (_this__u8e3s4, channel, arg, lastIsInfoList, $super) {
|
|
2400
2204
|
lastIsInfoList = lastIsInfoList === VOID ? false : lastIsInfoList;
|
|
2401
|
-
return $super === VOID ? this.
|
|
2205
|
+
return $super === VOID ? this.q3m(_this__u8e3s4, channel, arg, lastIsInfoList) : $super.q3m.call(this, _this__u8e3s4, channel, arg, lastIsInfoList);
|
|
2402
2206
|
};
|
|
2403
|
-
protoOf(IOPrimitiveUtils).
|
|
2404
|
-
var url = this.
|
|
2405
|
-
var mode = this.
|
|
2406
|
-
|
|
2207
|
+
protoOf(IOPrimitiveUtils).s3m = function (_this__u8e3s4, third) {
|
|
2208
|
+
var url = this.j3m(_this__u8e3s4, 0);
|
|
2209
|
+
var mode = this.k3m(_this__u8e3s4, 1);
|
|
2210
|
+
Companion_getInstance_1().s2g(_this__u8e3s4, 2);
|
|
2407
2211
|
var tmp;
|
|
2408
|
-
if (_this__u8e3s4.arguments.
|
|
2409
|
-
|
|
2410
|
-
var tmp_0 = _this__u8e3s4.arguments.
|
|
2411
|
-
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).
|
|
2212
|
+
if (_this__u8e3s4.arguments.l() >= 4) {
|
|
2213
|
+
Companion_getInstance_1().z2g(_this__u8e3s4, 3);
|
|
2214
|
+
var tmp_0 = _this__u8e3s4.arguments.c1(3);
|
|
2215
|
+
var tmp_1 = (isInterface(tmp_0, List) ? tmp_0 : THROW_CCE()).uu();
|
|
2412
2216
|
var tmp_2 = map(tmp_1, IOPrimitiveUtils$open$lambda(_this__u8e3s4));
|
|
2413
2217
|
tmp = toSet(map(tmp_2, IOPrimitiveUtils$open$lambda_0(_this__u8e3s4)));
|
|
2414
2218
|
} else {
|
|
@@ -2418,13 +2222,11 @@
|
|
|
2418
2222
|
var tmp$ret$1;
|
|
2419
2223
|
$l$block: {
|
|
2420
2224
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2421
|
-
var tmp0_iterator = options.
|
|
2422
|
-
while (tmp0_iterator.
|
|
2423
|
-
var element = tmp0_iterator.
|
|
2424
|
-
var tmp$ret$0;
|
|
2225
|
+
var tmp0_iterator = options.r();
|
|
2226
|
+
while (tmp0_iterator.s()) {
|
|
2227
|
+
var element = tmp0_iterator.u();
|
|
2425
2228
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.IOPrimitiveUtils.open.<anonymous>' call
|
|
2426
|
-
|
|
2427
|
-
if (tmp$ret$0) {
|
|
2229
|
+
if (Companion_getInstance_1().g2g(_this__u8e3s4, element, _get_PROPERTY_ALIAS_PATTERN__wipd2s(IOPrimitiveUtils_getInstance()))) {
|
|
2428
2230
|
tmp$ret$1 = element;
|
|
2429
2231
|
break $l$block;
|
|
2430
2232
|
}
|
|
@@ -2433,10 +2235,8 @@
|
|
|
2433
2235
|
}
|
|
2434
2236
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
2435
2237
|
var alias = tmp0_safe_receiver == null ? null : _get_alias__jw26bj(tmp0_safe_receiver, this);
|
|
2436
|
-
var tmp1_subject = mode;
|
|
2437
|
-
var tmp0 = tmp1_subject.w1_1;
|
|
2438
2238
|
var tmp_3;
|
|
2439
|
-
switch (
|
|
2239
|
+
switch (mode.h9_1) {
|
|
2440
2240
|
case 0:
|
|
2441
2241
|
tmp_3 = replyOpeningStream_0(_this__u8e3s4, this, openInputChannel(url), third, alias);
|
|
2442
2242
|
break;
|
|
@@ -2547,8 +2347,8 @@
|
|
|
2547
2347
|
Nl1_instance = this;
|
|
2548
2348
|
NonBacktrackable_0.call(this, 'nl');
|
|
2549
2349
|
}
|
|
2550
|
-
protoOf(Nl1).
|
|
2551
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2350
|
+
protoOf(Nl1).f2o = function (_this__u8e3s4, first) {
|
|
2351
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2552
2352
|
var tmp;
|
|
2553
2353
|
try {
|
|
2554
2354
|
channel.write('\n');
|
|
@@ -2565,8 +2365,8 @@
|
|
|
2565
2365
|
}
|
|
2566
2366
|
return tmp;
|
|
2567
2367
|
};
|
|
2568
|
-
protoOf(Nl1).
|
|
2569
|
-
return this.
|
|
2368
|
+
protoOf(Nl1).z2i = function (_this__u8e3s4, first) {
|
|
2369
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2570
2370
|
};
|
|
2571
2371
|
var Nl1_instance;
|
|
2572
2372
|
function Nl1_getInstance() {
|
|
@@ -2578,11 +2378,11 @@
|
|
|
2578
2378
|
Open3_instance = this;
|
|
2579
2379
|
NonBacktrackable_1.call(this, 'open');
|
|
2580
2380
|
}
|
|
2581
|
-
protoOf(Open3).
|
|
2582
|
-
return IOPrimitiveUtils_getInstance().
|
|
2381
|
+
protoOf(Open3).y2q = function (_this__u8e3s4, first, second, third) {
|
|
2382
|
+
return IOPrimitiveUtils_getInstance().s3m(_this__u8e3s4, third);
|
|
2583
2383
|
};
|
|
2584
|
-
protoOf(Open3).
|
|
2585
|
-
return this.
|
|
2384
|
+
protoOf(Open3).q2i = function (_this__u8e3s4, first, second, third) {
|
|
2385
|
+
return this.y2q(_this__u8e3s4, first, second, third);
|
|
2586
2386
|
};
|
|
2587
2387
|
var Open3_instance;
|
|
2588
2388
|
function Open3_getInstance() {
|
|
@@ -2594,11 +2394,11 @@
|
|
|
2594
2394
|
Open4_instance = this;
|
|
2595
2395
|
NonBacktrackable_2.call(this, 'open');
|
|
2596
2396
|
}
|
|
2597
|
-
protoOf(Open4).
|
|
2598
|
-
return IOPrimitiveUtils_getInstance().
|
|
2397
|
+
protoOf(Open4).w3m = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2398
|
+
return IOPrimitiveUtils_getInstance().s3m(_this__u8e3s4, third);
|
|
2599
2399
|
};
|
|
2600
|
-
protoOf(Open4).
|
|
2601
|
-
return this.
|
|
2400
|
+
protoOf(Open4).l2h = function (_this__u8e3s4, first, second, third, fourth) {
|
|
2401
|
+
return this.w3m(_this__u8e3s4, first, second, third, fourth);
|
|
2602
2402
|
};
|
|
2603
2403
|
var Open4_instance;
|
|
2604
2404
|
function Open4_getInstance() {
|
|
@@ -2610,11 +2410,11 @@
|
|
|
2610
2410
|
PeekByte1_instance = this;
|
|
2611
2411
|
NonBacktrackable_0.call(this, 'peek_byte');
|
|
2612
2412
|
}
|
|
2613
|
-
protoOf(PeekByte1).
|
|
2614
|
-
return
|
|
2413
|
+
protoOf(PeekByte1).f2o = function (_this__u8e3s4, first) {
|
|
2414
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
2615
2415
|
};
|
|
2616
|
-
protoOf(PeekByte1).
|
|
2617
|
-
return this.
|
|
2416
|
+
protoOf(PeekByte1).z2i = function (_this__u8e3s4, first) {
|
|
2417
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2618
2418
|
};
|
|
2619
2419
|
var PeekByte1_instance;
|
|
2620
2420
|
function PeekByte1_getInstance() {
|
|
@@ -2626,11 +2426,11 @@
|
|
|
2626
2426
|
PeekByte2_instance = this;
|
|
2627
2427
|
NonBacktrackable.call(this, 'peek_byte');
|
|
2628
2428
|
}
|
|
2629
|
-
protoOf(PeekByte2).
|
|
2630
|
-
return
|
|
2429
|
+
protoOf(PeekByte2).w2o = function (_this__u8e3s4, first, second) {
|
|
2430
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
2631
2431
|
};
|
|
2632
|
-
protoOf(PeekByte2).
|
|
2633
|
-
return this.
|
|
2432
|
+
protoOf(PeekByte2).h2f = function (_this__u8e3s4, first, second) {
|
|
2433
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2634
2434
|
};
|
|
2635
2435
|
var PeekByte2_instance;
|
|
2636
2436
|
function PeekByte2_getInstance() {
|
|
@@ -2642,12 +2442,12 @@
|
|
|
2642
2442
|
PeekChar1_instance = this;
|
|
2643
2443
|
NonBacktrackable_0.call(this, 'peek_char');
|
|
2644
2444
|
}
|
|
2645
|
-
protoOf(PeekChar1).
|
|
2646
|
-
IOPrimitiveUtils_getInstance().
|
|
2647
|
-
return IOPrimitiveUtils_getInstance().
|
|
2445
|
+
protoOf(PeekChar1).f2o = function (_this__u8e3s4, first) {
|
|
2446
|
+
IOPrimitiveUtils_getInstance().e3l(_this__u8e3s4, 0);
|
|
2447
|
+
return IOPrimitiveUtils_getInstance().p3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4), first);
|
|
2648
2448
|
};
|
|
2649
|
-
protoOf(PeekChar1).
|
|
2650
|
-
return this.
|
|
2449
|
+
protoOf(PeekChar1).z2i = function (_this__u8e3s4, first) {
|
|
2450
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2651
2451
|
};
|
|
2652
2452
|
var PeekChar1_instance;
|
|
2653
2453
|
function PeekChar1_getInstance() {
|
|
@@ -2659,13 +2459,13 @@
|
|
|
2659
2459
|
PeekChar2_instance = this;
|
|
2660
2460
|
NonBacktrackable.call(this, 'peek_char');
|
|
2661
2461
|
}
|
|
2662
|
-
protoOf(PeekChar2).
|
|
2663
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2664
|
-
IOPrimitiveUtils_getInstance().
|
|
2665
|
-
return IOPrimitiveUtils_getInstance().
|
|
2462
|
+
protoOf(PeekChar2).w2o = function (_this__u8e3s4, first, second) {
|
|
2463
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
2464
|
+
IOPrimitiveUtils_getInstance().e3l(_this__u8e3s4, 1);
|
|
2465
|
+
return IOPrimitiveUtils_getInstance().p3m(_this__u8e3s4, channel, second);
|
|
2666
2466
|
};
|
|
2667
|
-
protoOf(PeekChar2).
|
|
2668
|
-
return this.
|
|
2467
|
+
protoOf(PeekChar2).h2f = function (_this__u8e3s4, first, second) {
|
|
2468
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2669
2469
|
};
|
|
2670
2470
|
var PeekChar2_instance;
|
|
2671
2471
|
function PeekChar2_getInstance() {
|
|
@@ -2677,12 +2477,12 @@
|
|
|
2677
2477
|
PeekCode1_instance = this;
|
|
2678
2478
|
NonBacktrackable_0.call(this, 'peek_code');
|
|
2679
2479
|
}
|
|
2680
|
-
protoOf(PeekCode1).
|
|
2681
|
-
IOPrimitiveUtils_getInstance().
|
|
2682
|
-
return IOPrimitiveUtils_getInstance().
|
|
2480
|
+
protoOf(PeekCode1).f2o = function (_this__u8e3s4, first) {
|
|
2481
|
+
IOPrimitiveUtils_getInstance().i3l(_this__u8e3s4, 0);
|
|
2482
|
+
return IOPrimitiveUtils_getInstance().o3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4), first);
|
|
2683
2483
|
};
|
|
2684
|
-
protoOf(PeekCode1).
|
|
2685
|
-
return this.
|
|
2484
|
+
protoOf(PeekCode1).z2i = function (_this__u8e3s4, first) {
|
|
2485
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2686
2486
|
};
|
|
2687
2487
|
var PeekCode1_instance;
|
|
2688
2488
|
function PeekCode1_getInstance() {
|
|
@@ -2694,13 +2494,13 @@
|
|
|
2694
2494
|
PeekCode2_instance = this;
|
|
2695
2495
|
NonBacktrackable.call(this, 'peek_code');
|
|
2696
2496
|
}
|
|
2697
|
-
protoOf(PeekCode2).
|
|
2698
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2699
|
-
IOPrimitiveUtils_getInstance().
|
|
2700
|
-
return IOPrimitiveUtils_getInstance().
|
|
2497
|
+
protoOf(PeekCode2).w2o = function (_this__u8e3s4, first, second) {
|
|
2498
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
2499
|
+
IOPrimitiveUtils_getInstance().i3l(_this__u8e3s4, 0);
|
|
2500
|
+
return IOPrimitiveUtils_getInstance().o3m(_this__u8e3s4, channel, first);
|
|
2701
2501
|
};
|
|
2702
|
-
protoOf(PeekCode2).
|
|
2703
|
-
return this.
|
|
2502
|
+
protoOf(PeekCode2).h2f = function (_this__u8e3s4, first, second) {
|
|
2503
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2704
2504
|
};
|
|
2705
2505
|
var PeekCode2_instance;
|
|
2706
2506
|
function PeekCode2_getInstance() {
|
|
@@ -2712,11 +2512,11 @@
|
|
|
2712
2512
|
PutByte1_instance = this;
|
|
2713
2513
|
NonBacktrackable_0.call(this, 'put_byte');
|
|
2714
2514
|
}
|
|
2715
|
-
protoOf(PutByte1).
|
|
2716
|
-
return
|
|
2515
|
+
protoOf(PutByte1).f2o = function (_this__u8e3s4, first) {
|
|
2516
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
2717
2517
|
};
|
|
2718
|
-
protoOf(PutByte1).
|
|
2719
|
-
return this.
|
|
2518
|
+
protoOf(PutByte1).z2i = function (_this__u8e3s4, first) {
|
|
2519
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2720
2520
|
};
|
|
2721
2521
|
var PutByte1_instance;
|
|
2722
2522
|
function PutByte1_getInstance() {
|
|
@@ -2728,11 +2528,11 @@
|
|
|
2728
2528
|
PutByte2_instance = this;
|
|
2729
2529
|
NonBacktrackable.call(this, 'put_byte');
|
|
2730
2530
|
}
|
|
2731
|
-
protoOf(PutByte2).
|
|
2732
|
-
return
|
|
2531
|
+
protoOf(PutByte2).w2o = function (_this__u8e3s4, first, second) {
|
|
2532
|
+
return Companion_getInstance_1().n2g(_this__u8e3s4);
|
|
2733
2533
|
};
|
|
2734
|
-
protoOf(PutByte2).
|
|
2735
|
-
return this.
|
|
2534
|
+
protoOf(PutByte2).h2f = function (_this__u8e3s4, first, second) {
|
|
2535
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2736
2536
|
};
|
|
2737
2537
|
var PutByte2_instance;
|
|
2738
2538
|
function PutByte2_getInstance() {
|
|
@@ -2744,14 +2544,14 @@
|
|
|
2744
2544
|
PutChar1_instance = this;
|
|
2745
2545
|
NonBacktrackable_0.call(this, 'put_char');
|
|
2746
2546
|
}
|
|
2747
|
-
protoOf(PutChar1).
|
|
2748
|
-
|
|
2547
|
+
protoOf(PutChar1).f2o = function (_this__u8e3s4, first) {
|
|
2548
|
+
Companion_getInstance_1().w2g(_this__u8e3s4, 0);
|
|
2749
2549
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2750
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2751
|
-
return tmp.
|
|
2550
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().c3m(_this__u8e3s4);
|
|
2551
|
+
return tmp.n3m(_this__u8e3s4, tmp_0, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2752
2552
|
};
|
|
2753
|
-
protoOf(PutChar1).
|
|
2754
|
-
return this.
|
|
2553
|
+
protoOf(PutChar1).z2i = function (_this__u8e3s4, first) {
|
|
2554
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2755
2555
|
};
|
|
2756
2556
|
var PutChar1_instance;
|
|
2757
2557
|
function PutChar1_getInstance() {
|
|
@@ -2763,14 +2563,14 @@
|
|
|
2763
2563
|
PutChar2_instance = this;
|
|
2764
2564
|
NonBacktrackable.call(this, 'put_char');
|
|
2765
2565
|
}
|
|
2766
|
-
protoOf(PutChar2).
|
|
2767
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2768
|
-
|
|
2566
|
+
protoOf(PutChar2).w2o = function (_this__u8e3s4, first, second) {
|
|
2567
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2568
|
+
Companion_getInstance_1().w2g(_this__u8e3s4, 1);
|
|
2769
2569
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2770
|
-
return tmp.
|
|
2570
|
+
return tmp.n3m(_this__u8e3s4, channel, isInterface(first, Atom) ? first : THROW_CCE());
|
|
2771
2571
|
};
|
|
2772
|
-
protoOf(PutChar2).
|
|
2773
|
-
return this.
|
|
2572
|
+
protoOf(PutChar2).h2f = function (_this__u8e3s4, first, second) {
|
|
2573
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2774
2574
|
};
|
|
2775
2575
|
var PutChar2_instance;
|
|
2776
2576
|
function PutChar2_getInstance() {
|
|
@@ -2782,14 +2582,14 @@
|
|
|
2782
2582
|
PutCode1_instance = this;
|
|
2783
2583
|
NonBacktrackable_0.call(this, 'put_code');
|
|
2784
2584
|
}
|
|
2785
|
-
protoOf(PutCode1).
|
|
2786
|
-
|
|
2585
|
+
protoOf(PutCode1).f2o = function (_this__u8e3s4, first) {
|
|
2586
|
+
Companion_getInstance_1().f2h(_this__u8e3s4, 0);
|
|
2787
2587
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2788
|
-
var tmp_0 = IOPrimitiveUtils_getInstance().
|
|
2789
|
-
return tmp.
|
|
2588
|
+
var tmp_0 = IOPrimitiveUtils_getInstance().c3m(_this__u8e3s4);
|
|
2589
|
+
return tmp.m3m(_this__u8e3s4, tmp_0, isInterface(first, Integer) ? first : THROW_CCE());
|
|
2790
2590
|
};
|
|
2791
|
-
protoOf(PutCode1).
|
|
2792
|
-
return this.
|
|
2591
|
+
protoOf(PutCode1).z2i = function (_this__u8e3s4, first) {
|
|
2592
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2793
2593
|
};
|
|
2794
2594
|
var PutCode1_instance;
|
|
2795
2595
|
function PutCode1_getInstance() {
|
|
@@ -2801,14 +2601,14 @@
|
|
|
2801
2601
|
PutCode2_instance = this;
|
|
2802
2602
|
NonBacktrackable.call(this, 'put_code');
|
|
2803
2603
|
}
|
|
2804
|
-
protoOf(PutCode2).
|
|
2805
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2806
|
-
|
|
2604
|
+
protoOf(PutCode2).w2o = function (_this__u8e3s4, first, second) {
|
|
2605
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2606
|
+
Companion_getInstance_1().f2h(_this__u8e3s4, 1);
|
|
2807
2607
|
var tmp = IOPrimitiveUtils_getInstance();
|
|
2808
|
-
return tmp.
|
|
2608
|
+
return tmp.m3m(_this__u8e3s4, channel, isInterface(first, Integer) ? first : THROW_CCE());
|
|
2809
2609
|
};
|
|
2810
|
-
protoOf(PutCode2).
|
|
2811
|
-
return this.
|
|
2610
|
+
protoOf(PutCode2).h2f = function (_this__u8e3s4, first, second) {
|
|
2611
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2812
2612
|
};
|
|
2813
2613
|
var PutCode2_instance;
|
|
2814
2614
|
function PutCode2_getInstance() {
|
|
@@ -2820,11 +2620,11 @@
|
|
|
2820
2620
|
Read1_instance = this;
|
|
2821
2621
|
NonBacktrackable_0.call(this, 'read');
|
|
2822
2622
|
}
|
|
2823
|
-
protoOf(Read1).
|
|
2824
|
-
return IOPrimitiveUtils_getInstance().
|
|
2623
|
+
protoOf(Read1).f2o = function (_this__u8e3s4, first) {
|
|
2624
|
+
return IOPrimitiveUtils_getInstance().r3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4), first);
|
|
2825
2625
|
};
|
|
2826
|
-
protoOf(Read1).
|
|
2827
|
-
return this.
|
|
2626
|
+
protoOf(Read1).z2i = function (_this__u8e3s4, first) {
|
|
2627
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2828
2628
|
};
|
|
2829
2629
|
var Read1_instance;
|
|
2830
2630
|
function Read1_getInstance() {
|
|
@@ -2836,12 +2636,12 @@
|
|
|
2836
2636
|
Read2_instance = this;
|
|
2837
2637
|
NonBacktrackable.call(this, 'read');
|
|
2838
2638
|
}
|
|
2839
|
-
protoOf(Read2).
|
|
2840
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2841
|
-
return IOPrimitiveUtils_getInstance().
|
|
2639
|
+
protoOf(Read2).w2o = function (_this__u8e3s4, first, second) {
|
|
2640
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
2641
|
+
return IOPrimitiveUtils_getInstance().r3m(_this__u8e3s4, channel, second);
|
|
2842
2642
|
};
|
|
2843
|
-
protoOf(Read2).
|
|
2844
|
-
return this.
|
|
2643
|
+
protoOf(Read2).h2f = function (_this__u8e3s4, first, second) {
|
|
2644
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2845
2645
|
};
|
|
2846
2646
|
var Read2_instance;
|
|
2847
2647
|
function Read2_getInstance() {
|
|
@@ -2853,11 +2653,11 @@
|
|
|
2853
2653
|
ReadTerm2_instance = this;
|
|
2854
2654
|
NonBacktrackable.call(this, 'read_term');
|
|
2855
2655
|
}
|
|
2856
|
-
protoOf(ReadTerm2).
|
|
2857
|
-
return IOPrimitiveUtils_getInstance().
|
|
2656
|
+
protoOf(ReadTerm2).w2o = function (_this__u8e3s4, first, second) {
|
|
2657
|
+
return IOPrimitiveUtils_getInstance().q3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().k3k(_this__u8e3s4), first, true);
|
|
2858
2658
|
};
|
|
2859
|
-
protoOf(ReadTerm2).
|
|
2860
|
-
return this.
|
|
2659
|
+
protoOf(ReadTerm2).h2f = function (_this__u8e3s4, first, second) {
|
|
2660
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
2861
2661
|
};
|
|
2862
2662
|
var ReadTerm2_instance;
|
|
2863
2663
|
function ReadTerm2_getInstance() {
|
|
@@ -2869,12 +2669,12 @@
|
|
|
2869
2669
|
ReadTerm3_instance = this;
|
|
2870
2670
|
NonBacktrackable_1.call(this, 'read_term');
|
|
2871
2671
|
}
|
|
2872
|
-
protoOf(ReadTerm3).
|
|
2873
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2874
|
-
return IOPrimitiveUtils_getInstance().
|
|
2672
|
+
protoOf(ReadTerm3).y2q = function (_this__u8e3s4, first, second, third) {
|
|
2673
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
2674
|
+
return IOPrimitiveUtils_getInstance().q3m(_this__u8e3s4, channel, second, true);
|
|
2875
2675
|
};
|
|
2876
|
-
protoOf(ReadTerm3).
|
|
2877
|
-
return this.
|
|
2676
|
+
protoOf(ReadTerm3).q2i = function (_this__u8e3s4, first, second, third) {
|
|
2677
|
+
return this.y2q(_this__u8e3s4, first, second, third);
|
|
2878
2678
|
};
|
|
2879
2679
|
var ReadTerm3_instance;
|
|
2880
2680
|
function ReadTerm3_getInstance() {
|
|
@@ -2884,20 +2684,20 @@
|
|
|
2884
2684
|
}
|
|
2885
2685
|
function SetInput$computeOne$lambda($this_computeOne, $channel) {
|
|
2886
2686
|
return function ($this$replySuccess) {
|
|
2887
|
-
$this$replySuccess.
|
|
2888
|
-
return
|
|
2687
|
+
$this$replySuccess.f2m($this_computeOne.context.y1u().setCurrentChannel($channel));
|
|
2688
|
+
return Unit_instance;
|
|
2889
2689
|
};
|
|
2890
2690
|
}
|
|
2891
2691
|
function SetInput() {
|
|
2892
2692
|
SetInput_instance = this;
|
|
2893
2693
|
NonBacktrackable_0.call(this, 'set_input');
|
|
2894
2694
|
}
|
|
2895
|
-
protoOf(SetInput).
|
|
2896
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2695
|
+
protoOf(SetInput).f2o = function (_this__u8e3s4, first) {
|
|
2696
|
+
var channel = IOPrimitiveUtils_getInstance().n3k(_this__u8e3s4, 0);
|
|
2897
2697
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetInput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2898
2698
|
};
|
|
2899
|
-
protoOf(SetInput).
|
|
2900
|
-
return this.
|
|
2699
|
+
protoOf(SetInput).z2i = function (_this__u8e3s4, first) {
|
|
2700
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2901
2701
|
};
|
|
2902
2702
|
var SetInput_instance;
|
|
2903
2703
|
function SetInput_getInstance() {
|
|
@@ -2907,20 +2707,20 @@
|
|
|
2907
2707
|
}
|
|
2908
2708
|
function SetOutput$computeOne$lambda($this_computeOne, $channel) {
|
|
2909
2709
|
return function ($this$replySuccess) {
|
|
2910
|
-
$this$replySuccess.
|
|
2911
|
-
return
|
|
2710
|
+
$this$replySuccess.i2m($this_computeOne.context.z1u().setCurrentChannel($channel));
|
|
2711
|
+
return Unit_instance;
|
|
2912
2712
|
};
|
|
2913
2713
|
}
|
|
2914
2714
|
function SetOutput() {
|
|
2915
2715
|
SetOutput_instance = this;
|
|
2916
2716
|
NonBacktrackable_0.call(this, 'set_output');
|
|
2917
2717
|
}
|
|
2918
|
-
protoOf(SetOutput).
|
|
2919
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
2718
|
+
protoOf(SetOutput).f2o = function (_this__u8e3s4, first) {
|
|
2719
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2920
2720
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetOutput$computeOne$lambda(_this__u8e3s4, channel));
|
|
2921
2721
|
};
|
|
2922
|
-
protoOf(SetOutput).
|
|
2923
|
-
return this.
|
|
2722
|
+
protoOf(SetOutput).z2i = function (_this__u8e3s4, first) {
|
|
2723
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2924
2724
|
};
|
|
2925
2725
|
var SetOutput_instance;
|
|
2926
2726
|
function SetOutput_getInstance() {
|
|
@@ -2932,40 +2732,40 @@
|
|
|
2932
2732
|
return function ($this$replySuccess) {
|
|
2933
2733
|
var tmp;
|
|
2934
2734
|
if ($append) {
|
|
2935
|
-
$this$replySuccess.
|
|
2936
|
-
$this$replySuccess.
|
|
2937
|
-
tmp =
|
|
2735
|
+
$this$replySuccess.s2l($solver.w1u());
|
|
2736
|
+
$this$replySuccess.y2l($solver.x1u());
|
|
2737
|
+
tmp = Unit_instance;
|
|
2938
2738
|
} else {
|
|
2939
|
-
$this$replySuccess.
|
|
2940
|
-
$this$replySuccess.
|
|
2941
|
-
tmp =
|
|
2739
|
+
$this$replySuccess.q2l($solver.w1u());
|
|
2740
|
+
$this$replySuccess.w2l($solver.x1u());
|
|
2741
|
+
tmp = Unit_instance;
|
|
2942
2742
|
}
|
|
2943
|
-
$this$replySuccess.
|
|
2944
|
-
$this$replySuccess.
|
|
2945
|
-
return
|
|
2743
|
+
$this$replySuccess.d2m($solver.d1v());
|
|
2744
|
+
$this$replySuccess.c2m($solver.v1u());
|
|
2745
|
+
return Unit_instance;
|
|
2946
2746
|
};
|
|
2947
2747
|
}
|
|
2948
2748
|
function SetTheory() {
|
|
2949
2749
|
SetTheory_instance = this;
|
|
2950
2750
|
NonBacktrackable_0.call(this, 'set_theory');
|
|
2951
2751
|
}
|
|
2952
|
-
protoOf(SetTheory).
|
|
2953
|
-
|
|
2954
|
-
return this.
|
|
2752
|
+
protoOf(SetTheory).f2o = function (_this__u8e3s4, first) {
|
|
2753
|
+
Companion_getInstance_1().u2g(_this__u8e3s4, 0);
|
|
2754
|
+
return this.p3n(_this__u8e3s4, first.kx().r2(), false);
|
|
2955
2755
|
};
|
|
2956
|
-
protoOf(SetTheory).
|
|
2957
|
-
return this.
|
|
2756
|
+
protoOf(SetTheory).z2i = function (_this__u8e3s4, first) {
|
|
2757
|
+
return this.f2o(_this__u8e3s4, first);
|
|
2958
2758
|
};
|
|
2959
|
-
protoOf(SetTheory).
|
|
2759
|
+
protoOf(SetTheory).p3n = function (_this__u8e3s4, text, append) {
|
|
2960
2760
|
try {
|
|
2961
|
-
var theory =
|
|
2962
|
-
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID,
|
|
2761
|
+
var theory = Companion_instance_10.withOperatorSet(_this__u8e3s4.context.d1v()).parseTheoryWithDefaultUnificator(text);
|
|
2762
|
+
var solver = _this__u8e3s4.context.createMutableSolver(VOID, VOID, VOID, Companion_instance_11.empty(_this__u8e3s4.context.j1l()), Companion_instance_12.empty(_this__u8e3s4.context.j1l()));
|
|
2963
2763
|
solver.loadStaticKb(theory);
|
|
2964
2764
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, SetTheory$setTheory$lambda(append, solver));
|
|
2965
2765
|
} catch ($p) {
|
|
2966
2766
|
if ($p instanceof ParseException) {
|
|
2967
2767
|
var e = $p;
|
|
2968
|
-
var tmp =
|
|
2768
|
+
var tmp = Companion_instance_9;
|
|
2969
2769
|
var tmp_0 = e.clauseIndex;
|
|
2970
2770
|
var tmp_1 = e.line;
|
|
2971
2771
|
var tmp_2 = e.column;
|
|
@@ -2974,30 +2774,21 @@
|
|
|
2974
2774
|
if (tmp0_safe_receiver == null) {
|
|
2975
2775
|
tmp_3 = null;
|
|
2976
2776
|
} else {
|
|
2977
|
-
var tmp$ret$4;
|
|
2978
2777
|
// Inline function 'kotlin.text.replaceFirstChar' call
|
|
2979
2778
|
var tmp_4;
|
|
2980
|
-
var tmp$ret$0;
|
|
2981
2779
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2982
|
-
|
|
2983
|
-
if (tmp$ret$0) {
|
|
2984
|
-
var tmp$ret$1;
|
|
2780
|
+
if (charSequenceLength(tmp0_safe_receiver) > 0) {
|
|
2985
2781
|
// Inline function 'it.unibo.tuprolog.solve.libs.io.primitives.SetTheory.setTheory.<anonymous>' call
|
|
2986
|
-
var
|
|
2987
|
-
tmp$ret$1 = isLowerCase(
|
|
2782
|
+
var it = charSequenceGet(tmp0_safe_receiver, 0);
|
|
2783
|
+
var tmp$ret$1 = isLowerCase(it) ? titlecase(it) : toString(it);
|
|
2988
2784
|
var tmp_5 = toString_0(tmp$ret$1);
|
|
2989
|
-
var tmp$ret$3;
|
|
2990
2785
|
// Inline function 'kotlin.text.substring' call
|
|
2991
|
-
var tmp$ret$2;
|
|
2992
2786
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2993
|
-
|
|
2994
|
-
tmp$ret$3 = tmp$ret$2.substring(1);
|
|
2995
|
-
tmp_4 = tmp_5 + tmp$ret$3;
|
|
2787
|
+
tmp_4 = tmp_5 + tmp0_safe_receiver.substring(1);
|
|
2996
2788
|
} else {
|
|
2997
2789
|
tmp_4 = tmp0_safe_receiver;
|
|
2998
2790
|
}
|
|
2999
|
-
|
|
3000
|
-
tmp_3 = tmp$ret$4;
|
|
2791
|
+
tmp_3 = tmp_4;
|
|
3001
2792
|
}
|
|
3002
2793
|
var tmp1_elvis_lhs = tmp_3;
|
|
3003
2794
|
throw tmp.whileParsingClauses(_this__u8e3s4.context, text, tmp_0, tmp_1, tmp_2, tmp1_elvis_lhs == null ? '<no detail provided>' : tmp1_elvis_lhs);
|
|
@@ -3006,9 +2797,9 @@
|
|
|
3006
2797
|
}
|
|
3007
2798
|
}
|
|
3008
2799
|
};
|
|
3009
|
-
protoOf(SetTheory).
|
|
2800
|
+
protoOf(SetTheory).u3k = function (_this__u8e3s4, text, append, $super) {
|
|
3010
2801
|
append = append === VOID ? true : append;
|
|
3011
|
-
return $super === VOID ? this.
|
|
2802
|
+
return $super === VOID ? this.p3n(_this__u8e3s4, text, append) : $super.p3n.call(this, _this__u8e3s4, text, append);
|
|
3012
2803
|
};
|
|
3013
2804
|
var SetTheory_instance;
|
|
3014
2805
|
function SetTheory_getInstance() {
|
|
@@ -3017,16 +2808,16 @@
|
|
|
3017
2808
|
return SetTheory_instance;
|
|
3018
2809
|
}
|
|
3019
2810
|
function StreamProperty$computeAll$lambda(it) {
|
|
3020
|
-
return asSequence_0(it.
|
|
2811
|
+
return asSequence_0(it.m2());
|
|
3021
2812
|
}
|
|
3022
2813
|
function StreamProperty$computeAll$lambda_0($this_computeAll) {
|
|
3023
2814
|
return function (it) {
|
|
3024
|
-
return to(it.
|
|
2815
|
+
return to(it.b1z(), IOPrimitiveUtils_getInstance().b3m($this_computeAll, it));
|
|
3025
2816
|
};
|
|
3026
2817
|
}
|
|
3027
2818
|
function StreamProperty$computeAll$lambda_1(_name_for_destructuring_parameter_0__wldtmu) {
|
|
3028
|
-
var streamTerm = _name_for_destructuring_parameter_0__wldtmu.
|
|
3029
|
-
var properties = _name_for_destructuring_parameter_0__wldtmu.
|
|
2819
|
+
var streamTerm = _name_for_destructuring_parameter_0__wldtmu.me();
|
|
2820
|
+
var properties = _name_for_destructuring_parameter_0__wldtmu.ne();
|
|
3030
2821
|
return map(properties, StreamProperty$computeAll$lambda$lambda(streamTerm));
|
|
3031
2822
|
}
|
|
3032
2823
|
function StreamProperty$computeAll$lambda$lambda($streamTerm) {
|
|
@@ -3036,26 +2827,26 @@
|
|
|
3036
2827
|
}
|
|
3037
2828
|
function StreamProperty$computeAll$lambda_2($this_computeAll, $first, $second) {
|
|
3038
2829
|
return function (_name_for_destructuring_parameter_0__wldtmu) {
|
|
3039
|
-
var streamTerm = _name_for_destructuring_parameter_0__wldtmu.
|
|
3040
|
-
var property = _name_for_destructuring_parameter_0__wldtmu.
|
|
3041
|
-
return $this_computeAll.replyWith(
|
|
2830
|
+
var streamTerm = _name_for_destructuring_parameter_0__wldtmu.me();
|
|
2831
|
+
var property = _name_for_destructuring_parameter_0__wldtmu.ne();
|
|
2832
|
+
return $this_computeAll.replyWith(Companion_getInstance_1().f2g($this_computeAll, $first, streamTerm).plus(Companion_getInstance_1().f2g($this_computeAll, $second, property)), VOID, []);
|
|
3042
2833
|
};
|
|
3043
2834
|
}
|
|
3044
2835
|
function StreamProperty() {
|
|
3045
2836
|
StreamProperty_instance = this;
|
|
3046
2837
|
BinaryRelation.call(this, 'stream_property');
|
|
3047
2838
|
}
|
|
3048
|
-
protoOf(StreamProperty).
|
|
3049
|
-
IOPrimitiveUtils_getInstance().
|
|
3050
|
-
IOPrimitiveUtils_getInstance().
|
|
3051
|
-
var tmp = sequenceOf([_this__u8e3s4.context.
|
|
2839
|
+
protoOf(StreamProperty).s2o = function (_this__u8e3s4, first, second) {
|
|
2840
|
+
IOPrimitiveUtils_getInstance().x3k(_this__u8e3s4, 0);
|
|
2841
|
+
IOPrimitiveUtils_getInstance().i3m(_this__u8e3s4, 1);
|
|
2842
|
+
var tmp = sequenceOf([_this__u8e3s4.context.y1u(), _this__u8e3s4.context.z1u()]);
|
|
3052
2843
|
var tmp_0 = distinct(flatMap(tmp, StreamProperty$computeAll$lambda));
|
|
3053
2844
|
var tmp_1 = map(tmp_0, StreamProperty$computeAll$lambda_0(_this__u8e3s4));
|
|
3054
2845
|
var tmp_2 = flatMap(tmp_1, StreamProperty$computeAll$lambda_1);
|
|
3055
2846
|
return map(tmp_2, StreamProperty$computeAll$lambda_2(_this__u8e3s4, first, second));
|
|
3056
2847
|
};
|
|
3057
|
-
protoOf(StreamProperty).
|
|
3058
|
-
return this.
|
|
2848
|
+
protoOf(StreamProperty).j2f = function (_this__u8e3s4, first, second) {
|
|
2849
|
+
return this.s2o(_this__u8e3s4, first, second);
|
|
3059
2850
|
};
|
|
3060
2851
|
var StreamProperty_instance;
|
|
3061
2852
|
function StreamProperty_getInstance() {
|
|
@@ -3067,12 +2858,12 @@
|
|
|
3067
2858
|
Write2_instance = this;
|
|
3068
2859
|
NonBacktrackable.call(this, 'write');
|
|
3069
2860
|
}
|
|
3070
|
-
protoOf(Write2).
|
|
3071
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3072
|
-
return IOPrimitiveUtils_getInstance().
|
|
2861
|
+
protoOf(Write2).w2o = function (_this__u8e3s4, first, second) {
|
|
2862
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2863
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, channel, second, Companion_instance_6.n14(_this__u8e3s4.context.d1v()));
|
|
3073
2864
|
};
|
|
3074
|
-
protoOf(Write2).
|
|
3075
|
-
return this.
|
|
2865
|
+
protoOf(Write2).h2f = function (_this__u8e3s4, first, second) {
|
|
2866
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
3076
2867
|
};
|
|
3077
2868
|
var Write2_instance;
|
|
3078
2869
|
function Write2_getInstance() {
|
|
@@ -3084,11 +2875,11 @@
|
|
|
3084
2875
|
WriteCanonical1_instance = this;
|
|
3085
2876
|
NonBacktrackable_0.call(this, 'write_canonical');
|
|
3086
2877
|
}
|
|
3087
|
-
protoOf(WriteCanonical1).
|
|
3088
|
-
return IOPrimitiveUtils_getInstance().
|
|
2878
|
+
protoOf(WriteCanonical1).f2o = function (_this__u8e3s4, first) {
|
|
2879
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().c3m(_this__u8e3s4), first, Companion_instance_6.canonical());
|
|
3089
2880
|
};
|
|
3090
|
-
protoOf(WriteCanonical1).
|
|
3091
|
-
return this.
|
|
2881
|
+
protoOf(WriteCanonical1).z2i = function (_this__u8e3s4, first) {
|
|
2882
|
+
return this.f2o(_this__u8e3s4, first);
|
|
3092
2883
|
};
|
|
3093
2884
|
var WriteCanonical1_instance;
|
|
3094
2885
|
function WriteCanonical1_getInstance() {
|
|
@@ -3100,12 +2891,12 @@
|
|
|
3100
2891
|
WriteCanonical2_instance = this;
|
|
3101
2892
|
NonBacktrackable.call(this, 'write_canonical');
|
|
3102
2893
|
}
|
|
3103
|
-
protoOf(WriteCanonical2).
|
|
3104
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3105
|
-
return IOPrimitiveUtils_getInstance().
|
|
2894
|
+
protoOf(WriteCanonical2).w2o = function (_this__u8e3s4, first, second) {
|
|
2895
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2896
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, channel, second, Companion_instance_6.canonical());
|
|
3106
2897
|
};
|
|
3107
|
-
protoOf(WriteCanonical2).
|
|
3108
|
-
return this.
|
|
2898
|
+
protoOf(WriteCanonical2).h2f = function (_this__u8e3s4, first, second) {
|
|
2899
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
3109
2900
|
};
|
|
3110
2901
|
var WriteCanonical2_instance;
|
|
3111
2902
|
function WriteCanonical2_getInstance() {
|
|
@@ -3117,11 +2908,11 @@
|
|
|
3117
2908
|
WriteEq1_instance = this;
|
|
3118
2909
|
NonBacktrackable_0.call(this, 'writeq');
|
|
3119
2910
|
}
|
|
3120
|
-
protoOf(WriteEq1).
|
|
3121
|
-
return IOPrimitiveUtils_getInstance().
|
|
2911
|
+
protoOf(WriteEq1).f2o = function (_this__u8e3s4, first) {
|
|
2912
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().c3m(_this__u8e3s4), first, Companion_instance_6.readable());
|
|
3122
2913
|
};
|
|
3123
|
-
protoOf(WriteEq1).
|
|
3124
|
-
return this.
|
|
2914
|
+
protoOf(WriteEq1).z2i = function (_this__u8e3s4, first) {
|
|
2915
|
+
return this.f2o(_this__u8e3s4, first);
|
|
3125
2916
|
};
|
|
3126
2917
|
var WriteEq1_instance;
|
|
3127
2918
|
function WriteEq1_getInstance() {
|
|
@@ -3133,12 +2924,12 @@
|
|
|
3133
2924
|
WriteEq2_instance = this;
|
|
3134
2925
|
NonBacktrackable.call(this, 'writeq');
|
|
3135
2926
|
}
|
|
3136
|
-
protoOf(WriteEq2).
|
|
3137
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3138
|
-
return IOPrimitiveUtils_getInstance().
|
|
2927
|
+
protoOf(WriteEq2).w2o = function (_this__u8e3s4, first, second) {
|
|
2928
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2929
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, channel, second, Companion_instance_6.readable());
|
|
3139
2930
|
};
|
|
3140
|
-
protoOf(WriteEq2).
|
|
3141
|
-
return this.
|
|
2931
|
+
protoOf(WriteEq2).h2f = function (_this__u8e3s4, first, second) {
|
|
2932
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
3142
2933
|
};
|
|
3143
2934
|
var WriteEq2_instance;
|
|
3144
2935
|
function WriteEq2_getInstance() {
|
|
@@ -3150,12 +2941,12 @@
|
|
|
3150
2941
|
WriteTerm2_instance = this;
|
|
3151
2942
|
NonBacktrackable.call(this, 'write_term');
|
|
3152
2943
|
}
|
|
3153
|
-
protoOf(WriteTerm2).
|
|
3154
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3155
|
-
return IOPrimitiveUtils_getInstance().
|
|
2944
|
+
protoOf(WriteTerm2).w2o = function (_this__u8e3s4, first, second) {
|
|
2945
|
+
var formatter = IOPrimitiveUtils_getInstance().h3m(_this__u8e3s4, 1);
|
|
2946
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, IOPrimitiveUtils_getInstance().c3m(_this__u8e3s4), first, formatter);
|
|
3156
2947
|
};
|
|
3157
|
-
protoOf(WriteTerm2).
|
|
3158
|
-
return this.
|
|
2948
|
+
protoOf(WriteTerm2).h2f = function (_this__u8e3s4, first, second) {
|
|
2949
|
+
return this.w2o(_this__u8e3s4, first, second);
|
|
3159
2950
|
};
|
|
3160
2951
|
var WriteTerm2_instance;
|
|
3161
2952
|
function WriteTerm2_getInstance() {
|
|
@@ -3167,13 +2958,13 @@
|
|
|
3167
2958
|
WriteTerm3_instance = this;
|
|
3168
2959
|
NonBacktrackable_1.call(this, 'write_term');
|
|
3169
2960
|
}
|
|
3170
|
-
protoOf(WriteTerm3).
|
|
3171
|
-
var channel = IOPrimitiveUtils_getInstance().
|
|
3172
|
-
var formatter = IOPrimitiveUtils_getInstance().
|
|
3173
|
-
return IOPrimitiveUtils_getInstance().
|
|
2961
|
+
protoOf(WriteTerm3).y2q = function (_this__u8e3s4, first, second, third) {
|
|
2962
|
+
var channel = IOPrimitiveUtils_getInstance().a3l(_this__u8e3s4, 0);
|
|
2963
|
+
var formatter = IOPrimitiveUtils_getInstance().h3m(_this__u8e3s4, 1);
|
|
2964
|
+
return IOPrimitiveUtils_getInstance().l3m(_this__u8e3s4, channel, first, formatter);
|
|
3174
2965
|
};
|
|
3175
|
-
protoOf(WriteTerm3).
|
|
3176
|
-
return this.
|
|
2966
|
+
protoOf(WriteTerm3).q2i = function (_this__u8e3s4, first, second, third) {
|
|
2967
|
+
return this.y2q(_this__u8e3s4, first, second, third);
|
|
3177
2968
|
};
|
|
3178
2969
|
var WriteTerm3_instance;
|
|
3179
2970
|
function WriteTerm3_getInstance() {
|
|
@@ -3182,24 +2973,24 @@
|
|
|
3182
2973
|
return WriteTerm3_instance;
|
|
3183
2974
|
}
|
|
3184
2975
|
function asTermChannel(_this__u8e3s4, operators) {
|
|
3185
|
-
|
|
2976
|
+
// Inline function 'kotlin.TODO' call
|
|
2977
|
+
var reason = 'reading terms is still not supported for JS';
|
|
2978
|
+
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
3186
2979
|
}
|
|
3187
2980
|
function get_FS() {
|
|
3188
2981
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3189
|
-
var tmp$ret$0;
|
|
3190
2982
|
// Inline function 'kotlin.getValue' call
|
|
3191
|
-
var
|
|
3192
|
-
|
|
3193
|
-
return
|
|
2983
|
+
var this_0 = FS$delegate;
|
|
2984
|
+
FS$factory();
|
|
2985
|
+
return this_0.r2();
|
|
3194
2986
|
}
|
|
3195
2987
|
var FS$delegate;
|
|
3196
2988
|
function get_PATH() {
|
|
3197
2989
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3198
|
-
var tmp$ret$0;
|
|
3199
2990
|
// Inline function 'kotlin.getValue' call
|
|
3200
|
-
var
|
|
3201
|
-
|
|
3202
|
-
return
|
|
2991
|
+
var this_0 = PATH$delegate;
|
|
2992
|
+
PATH$factory();
|
|
2993
|
+
return this_0.r2();
|
|
3203
2994
|
}
|
|
3204
2995
|
var PATH$delegate;
|
|
3205
2996
|
function get_READ_TEXT() {
|
|
@@ -3214,17 +3005,16 @@
|
|
|
3214
3005
|
var READ_BINARY;
|
|
3215
3006
|
function get_REQUEST() {
|
|
3216
3007
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3217
|
-
var tmp$ret$0;
|
|
3218
3008
|
// Inline function 'kotlin.getValue' call
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3221
|
-
return
|
|
3009
|
+
var this_0 = REQUEST$delegate;
|
|
3010
|
+
REQUEST$factory();
|
|
3011
|
+
return this_0.r2();
|
|
3222
3012
|
}
|
|
3223
3013
|
var REQUEST$delegate;
|
|
3224
3014
|
function readText(path) {
|
|
3225
3015
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3226
3016
|
var tmp;
|
|
3227
|
-
if (Info_getInstance().
|
|
3017
|
+
if (Info_getInstance().av().equals(Platform_BROWSER_getInstance())) {
|
|
3228
3018
|
tmp = browserReadText(path);
|
|
3229
3019
|
} else {
|
|
3230
3020
|
tmp = nodeReadText(path);
|
|
@@ -3236,11 +3026,8 @@
|
|
|
3236
3026
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3237
3027
|
try {
|
|
3238
3028
|
var response = get_REQUEST()('GET', url, {});
|
|
3239
|
-
var tmp$ret$0;
|
|
3240
3029
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3241
|
-
|
|
3242
|
-
tmp$ret$0 = tmp0_unsafeCast;
|
|
3243
|
-
return tmp$ret$0;
|
|
3030
|
+
return response.getBody(encoding);
|
|
3244
3031
|
} catch ($p) {
|
|
3245
3032
|
if ($p instanceof Error) {
|
|
3246
3033
|
var e = $p;
|
|
@@ -3253,7 +3040,7 @@
|
|
|
3253
3040
|
function readBin(path) {
|
|
3254
3041
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3255
3042
|
var tmp;
|
|
3256
|
-
if (Info_getInstance().
|
|
3043
|
+
if (Info_getInstance().av().equals(Platform_BROWSER_getInstance())) {
|
|
3257
3044
|
tmp = browserReadBin(path);
|
|
3258
3045
|
} else {
|
|
3259
3046
|
tmp = nodeReadBin(path);
|
|
@@ -3266,11 +3053,8 @@
|
|
|
3266
3053
|
}
|
|
3267
3054
|
function browserReadText(path) {
|
|
3268
3055
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3269
|
-
var tmp$ret$0;
|
|
3270
3056
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3271
|
-
var
|
|
3272
|
-
tmp$ret$0 = tmp0_unsafeCast;
|
|
3273
|
-
var tmp0_elvis_lhs = tmp$ret$0;
|
|
3057
|
+
var tmp0_elvis_lhs = window.localStorage.getItem(path);
|
|
3274
3058
|
var tmp;
|
|
3275
3059
|
if (tmp0_elvis_lhs == null) {
|
|
3276
3060
|
throw IOException_init_$Create$('No such entry in window.localStorage: ' + path);
|
|
@@ -3283,11 +3067,8 @@
|
|
|
3283
3067
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3284
3068
|
var tmp;
|
|
3285
3069
|
try {
|
|
3286
|
-
var tmp$ret$0;
|
|
3287
3070
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3288
|
-
|
|
3289
|
-
tmp$ret$0 = tmp0_unsafeCast;
|
|
3290
|
-
tmp = tmp$ret$0;
|
|
3071
|
+
tmp = get_FS().readFileSync(toOsSpecificPath(path), get_READ_TEXT());
|
|
3291
3072
|
} catch ($p) {
|
|
3292
3073
|
var tmp_0;
|
|
3293
3074
|
if ($p instanceof Error) {
|
|
@@ -3296,17 +3077,13 @@
|
|
|
3296
3077
|
} else {
|
|
3297
3078
|
throw $p;
|
|
3298
3079
|
}
|
|
3299
|
-
tmp = tmp_0;
|
|
3300
3080
|
}
|
|
3301
3081
|
return tmp;
|
|
3302
3082
|
}
|
|
3303
3083
|
function browserReadBin(path) {
|
|
3304
3084
|
_init_properties_FileSystem_kt__z0x7or();
|
|
3305
|
-
var tmp$ret$0;
|
|
3306
3085
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3307
|
-
var
|
|
3308
|
-
tmp$ret$0 = tmp0_unsafeCast;
|
|
3309
|
-
var tmp0_safe_receiver = tmp$ret$0;
|
|
3086
|
+
var tmp0_safe_receiver = window.localStorage.getItem(path);
|
|
3310
3087
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : toByteArray(tmp0_safe_receiver);
|
|
3311
3088
|
var tmp;
|
|
3312
3089
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -3329,7 +3106,6 @@
|
|
|
3329
3106
|
} else {
|
|
3330
3107
|
throw $p;
|
|
3331
3108
|
}
|
|
3332
|
-
tmp = tmp_0;
|
|
3333
3109
|
}
|
|
3334
3110
|
return tmp;
|
|
3335
3111
|
}
|
|
@@ -3340,16 +3116,9 @@
|
|
|
3340
3116
|
var tmp_1 = new Int8Array(tmp_0);
|
|
3341
3117
|
while (tmp < tmp_0) {
|
|
3342
3118
|
var tmp_2 = tmp;
|
|
3343
|
-
var tmp$ret$2;
|
|
3344
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.io.toByteArray.<anonymous>' call
|
|
3345
|
-
var tmp$ret$1;
|
|
3346
3119
|
// Inline function 'org.khronos.webgl.get' call
|
|
3347
|
-
var tmp$ret$0;
|
|
3348
3120
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3349
|
-
|
|
3350
|
-
tmp$ret$1 = tmp$ret$0[tmp_2];
|
|
3351
|
-
tmp$ret$2 = tmp$ret$1;
|
|
3352
|
-
tmp_1[tmp_2] = tmp$ret$2;
|
|
3121
|
+
tmp_1[tmp_2] = _this__u8e3s4[tmp_2];
|
|
3353
3122
|
tmp = tmp + 1 | 0;
|
|
3354
3123
|
}
|
|
3355
3124
|
return tmp_1;
|
|
@@ -3363,13 +3132,9 @@
|
|
|
3363
3132
|
if (get_PATH().sep == '\\') {
|
|
3364
3133
|
var tmp;
|
|
3365
3134
|
if (startsWith(_this__u8e3s4, '/')) {
|
|
3366
|
-
var tmp$ret$1;
|
|
3367
3135
|
// Inline function 'kotlin.text.substring' call
|
|
3368
|
-
var tmp$ret$0;
|
|
3369
3136
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3370
|
-
tmp
|
|
3371
|
-
tmp$ret$1 = tmp$ret$0.substring(1);
|
|
3372
|
-
tmp = tmp$ret$1;
|
|
3137
|
+
tmp = _this__u8e3s4.substring(1);
|
|
3373
3138
|
} else {
|
|
3374
3139
|
tmp = _this__u8e3s4;
|
|
3375
3140
|
}
|
|
@@ -3385,10 +3150,7 @@
|
|
|
3385
3150
|
var tmp_1 = new Int8Array(tmp_0);
|
|
3386
3151
|
while (tmp < tmp_0) {
|
|
3387
3152
|
var tmp_2 = tmp;
|
|
3388
|
-
|
|
3389
|
-
// Inline function 'it.unibo.tuprolog.solve.libs.io.toByteArray.<anonymous>' call
|
|
3390
|
-
tmp$ret$0 = obj[tmp_2];
|
|
3391
|
-
tmp_1[tmp_2] = tmp$ret$0;
|
|
3153
|
+
tmp_1[tmp_2] = obj[tmp_2];
|
|
3392
3154
|
tmp = tmp + 1 | 0;
|
|
3393
3155
|
}
|
|
3394
3156
|
return tmp_1;
|
|
@@ -3422,8 +3184,7 @@
|
|
|
3422
3184
|
}
|
|
3423
3185
|
var properties_initialized_FileSystem_kt_g28cz1;
|
|
3424
3186
|
function _init_properties_FileSystem_kt__z0x7or() {
|
|
3425
|
-
if (properties_initialized_FileSystem_kt_g28cz1) {
|
|
3426
|
-
} else {
|
|
3187
|
+
if (!properties_initialized_FileSystem_kt_g28cz1) {
|
|
3427
3188
|
properties_initialized_FileSystem_kt_g28cz1 = true;
|
|
3428
3189
|
FS$delegate = lazy(FS$delegate$lambda);
|
|
3429
3190
|
PATH$delegate = lazy(PATH$delegate$lambda);
|
|
@@ -3434,7 +3195,7 @@
|
|
|
3434
3195
|
}
|
|
3435
3196
|
function JsUrl_init_$Init$(url, $this) {
|
|
3436
3197
|
JsUrl.call($this);
|
|
3437
|
-
var tmp0_elvis_lhs =
|
|
3198
|
+
var tmp0_elvis_lhs = Companion_getInstance_8().e30(url);
|
|
3438
3199
|
var tmp;
|
|
3439
3200
|
if (tmp0_elvis_lhs == null) {
|
|
3440
3201
|
throw InvalidUrlException_init_$Create$('Invalid URL: ' + url);
|
|
@@ -3443,20 +3204,20 @@
|
|
|
3443
3204
|
}
|
|
3444
3205
|
var match = tmp;
|
|
3445
3206
|
var tmp_0 = $this;
|
|
3446
|
-
var tmp1_elvis_lhs = match.
|
|
3447
|
-
tmp_0.
|
|
3207
|
+
var tmp1_elvis_lhs = match.x2(UrlField_PROTOCOL_getInstance());
|
|
3208
|
+
tmp_0.z3n_1 = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
3448
3209
|
var tmp_1 = $this;
|
|
3449
|
-
var tmp2_elvis_lhs = match.
|
|
3450
|
-
tmp_1.
|
|
3210
|
+
var tmp2_elvis_lhs = match.x2(UrlField_HOST_getInstance());
|
|
3211
|
+
tmp_1.a3o_1 = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
|
|
3451
3212
|
var tmp_2 = $this;
|
|
3452
|
-
var tmp3_elvis_lhs = match.
|
|
3453
|
-
tmp_2.
|
|
3213
|
+
var tmp3_elvis_lhs = match.x2(UrlField_PATH_getInstance());
|
|
3214
|
+
tmp_2.b3o_1 = tmp3_elvis_lhs == null ? '' : tmp3_elvis_lhs;
|
|
3454
3215
|
var tmp_3 = $this;
|
|
3455
|
-
var tmp4_safe_receiver = match.
|
|
3216
|
+
var tmp4_safe_receiver = match.x2(UrlField_PORT_getInstance());
|
|
3456
3217
|
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : toInt(tmp4_safe_receiver);
|
|
3457
|
-
tmp_3.
|
|
3458
|
-
$this.
|
|
3459
|
-
$this.
|
|
3218
|
+
tmp_3.c3o_1 = tmp5_safe_receiver == null ? null : Companion_getInstance_8().f3j(tmp5_safe_receiver);
|
|
3219
|
+
$this.d3o_1 = match.x2(UrlField_QUERY_getInstance());
|
|
3220
|
+
$this.y3n_1 = url;
|
|
3460
3221
|
return $this;
|
|
3461
3222
|
}
|
|
3462
3223
|
function JsUrl_init_$Create$(url) {
|
|
@@ -3468,75 +3229,73 @@
|
|
|
3468
3229
|
path = path === VOID ? '' : path;
|
|
3469
3230
|
query = query === VOID ? null : query;
|
|
3470
3231
|
JsUrl.call($this);
|
|
3471
|
-
$this.
|
|
3472
|
-
$this.
|
|
3473
|
-
$this.
|
|
3474
|
-
$this.
|
|
3475
|
-
$this.
|
|
3476
|
-
$this.
|
|
3232
|
+
$this.z3n_1 = protocol;
|
|
3233
|
+
$this.a3o_1 = host;
|
|
3234
|
+
$this.c3o_1 = port;
|
|
3235
|
+
$this.b3o_1 = path;
|
|
3236
|
+
$this.d3o_1 = query;
|
|
3237
|
+
$this.y3n_1 = Companion_getInstance_8().j3j(protocol, host, port, path, query);
|
|
3477
3238
|
return $this;
|
|
3478
3239
|
}
|
|
3479
3240
|
function JsUrl_init_$Create$_0(protocol, host, port, path, query) {
|
|
3480
3241
|
return JsUrl_init_$Init$_0(protocol, host, port, path, query, objectCreate(protoOf(JsUrl)));
|
|
3481
3242
|
}
|
|
3482
|
-
protoOf(JsUrl).
|
|
3483
|
-
return this.
|
|
3243
|
+
protoOf(JsUrl).k3j = function () {
|
|
3244
|
+
return this.z3n_1;
|
|
3484
3245
|
};
|
|
3485
|
-
protoOf(JsUrl).
|
|
3486
|
-
return this.
|
|
3246
|
+
protoOf(JsUrl).l3j = function () {
|
|
3247
|
+
return this.a3o_1;
|
|
3487
3248
|
};
|
|
3488
|
-
protoOf(JsUrl).
|
|
3489
|
-
return this.
|
|
3249
|
+
protoOf(JsUrl).k30 = function () {
|
|
3250
|
+
return this.b3o_1;
|
|
3490
3251
|
};
|
|
3491
|
-
protoOf(JsUrl).
|
|
3492
|
-
return this.
|
|
3252
|
+
protoOf(JsUrl).m3j = function () {
|
|
3253
|
+
return this.c3o_1;
|
|
3493
3254
|
};
|
|
3494
|
-
protoOf(JsUrl).
|
|
3495
|
-
return this.
|
|
3255
|
+
protoOf(JsUrl).u1v = function () {
|
|
3256
|
+
return this.d3o_1;
|
|
3496
3257
|
};
|
|
3497
|
-
protoOf(JsUrl).
|
|
3498
|
-
if (this.
|
|
3499
|
-
return readText(this.
|
|
3258
|
+
protoOf(JsUrl).e3o = function () {
|
|
3259
|
+
if (this.n3j()) {
|
|
3260
|
+
return readText(this.b3o_1);
|
|
3500
3261
|
} else {
|
|
3501
|
-
return fetch(this.
|
|
3262
|
+
return fetch(this.y3n_1, 'UTF-8');
|
|
3502
3263
|
}
|
|
3503
3264
|
};
|
|
3504
3265
|
protoOf(JsUrl).readAsText = function () {
|
|
3505
|
-
return this.
|
|
3266
|
+
return this.e3o();
|
|
3506
3267
|
};
|
|
3507
|
-
protoOf(JsUrl).
|
|
3508
|
-
if (this.
|
|
3509
|
-
return readBin(this.
|
|
3268
|
+
protoOf(JsUrl).f3o = function () {
|
|
3269
|
+
if (this.n3j()) {
|
|
3270
|
+
return readBin(this.b3o_1);
|
|
3510
3271
|
} else {
|
|
3511
|
-
return toByteArray(fetch(this.
|
|
3272
|
+
return toByteArray(fetch(this.y3n_1));
|
|
3512
3273
|
}
|
|
3513
3274
|
};
|
|
3514
3275
|
protoOf(JsUrl).readAsByteArray = function () {
|
|
3515
|
-
return this.
|
|
3276
|
+
return this.f3o();
|
|
3516
3277
|
};
|
|
3517
3278
|
protoOf(JsUrl).equals = function (other) {
|
|
3518
3279
|
if (this === other)
|
|
3519
3280
|
return true;
|
|
3520
3281
|
if (other == null ? true : !(this.constructor == other.constructor))
|
|
3521
3282
|
return false;
|
|
3522
|
-
if (other instanceof JsUrl)
|
|
3523
|
-
other;
|
|
3524
|
-
else
|
|
3283
|
+
if (!(other instanceof JsUrl))
|
|
3525
3284
|
THROW_CCE();
|
|
3526
|
-
if (!(this.
|
|
3285
|
+
if (!(this.y3n_1 === other.y3n_1))
|
|
3527
3286
|
return false;
|
|
3528
3287
|
return true;
|
|
3529
3288
|
};
|
|
3530
3289
|
protoOf(JsUrl).hashCode = function () {
|
|
3531
|
-
return getStringHashCode(this.
|
|
3290
|
+
return getStringHashCode(this.y3n_1);
|
|
3532
3291
|
};
|
|
3533
3292
|
protoOf(JsUrl).toString = function () {
|
|
3534
|
-
return this.
|
|
3293
|
+
return this.y3n_1;
|
|
3535
3294
|
};
|
|
3536
3295
|
function JsUrl() {
|
|
3537
3296
|
}
|
|
3538
3297
|
function openInputChannel(_this__u8e3s4) {
|
|
3539
|
-
return
|
|
3298
|
+
return Companion_instance_3.ofString(_this__u8e3s4.readAsText());
|
|
3540
3299
|
}
|
|
3541
3300
|
function openOutputChannel(_this__u8e3s4, append) {
|
|
3542
3301
|
append = append === VOID ? false : append;
|
|
@@ -3556,16 +3315,10 @@
|
|
|
3556
3315
|
return JsUrl_init_$Create$(string);
|
|
3557
3316
|
}
|
|
3558
3317
|
//region block: post-declaration
|
|
3559
|
-
protoOf(IOLib).containsSignature = containsSignature;
|
|
3560
|
-
protoOf(IOLib).containsOperator = containsOperator;
|
|
3561
|
-
protoOf(IOLib).hasPrimitive = hasPrimitive;
|
|
3562
|
-
protoOf(IOLib).hasFunction = hasFunction;
|
|
3563
|
-
protoOf(IOLib).r2c = get_ruleSignatures;
|
|
3564
|
-
protoOf(IOLib).hasProtected = hasProtected;
|
|
3565
3318
|
protoOf(JsUrl).resolve = resolve;
|
|
3566
3319
|
protoOf(JsUrl).div = div;
|
|
3567
|
-
protoOf(JsUrl).
|
|
3568
|
-
protoOf(JsUrl).
|
|
3320
|
+
protoOf(JsUrl).n3j = get_isFile;
|
|
3321
|
+
protoOf(JsUrl).o3j = get_isHttp;
|
|
3569
3322
|
//endregion
|
|
3570
3323
|
//region block: exports
|
|
3571
3324
|
_.$_$ = _.$_$ || {};
|