@tuprolog/2p-full 0.31.5-dev0c → 0.31.5-dev0n

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.
Files changed (64) hide show
  1. package/2p-bdd.js +234 -229
  2. package/2p-bdd.js.map +1 -1
  3. package/2p-core.js +5618 -6238
  4. package/2p-core.js.map +1 -1
  5. package/2p-datalog.js +9 -2
  6. package/2p-datalog.js.map +1 -1
  7. package/2p-dsl-core.js +9 -2
  8. package/2p-dsl-core.js.map +1 -1
  9. package/2p-dsl-solve.js +9 -2
  10. package/2p-dsl-solve.js.map +1 -1
  11. package/2p-dsl-theory.js +9 -2
  12. package/2p-dsl-theory.js.map +1 -1
  13. package/2p-dsl-unify.js +9 -2
  14. package/2p-dsl-unify.js.map +1 -1
  15. package/2p-full.js +26 -3
  16. package/2p-full.js.map +1 -1
  17. package/2p-io-lib.js +931 -954
  18. package/2p-io-lib.js.map +1 -1
  19. package/2p-oop-lib.js +1308 -1337
  20. package/2p-oop-lib.js.map +1 -1
  21. package/2p-parser-core.js +364 -368
  22. package/2p-parser-core.js.map +1 -1
  23. package/2p-parser-js.js +14 -3
  24. package/2p-parser-js.js.map +1 -1
  25. package/2p-parser-theory.js +66 -41
  26. package/2p-parser-theory.js.map +1 -1
  27. package/2p-repl.js +183 -181
  28. package/2p-repl.js.map +1 -1
  29. package/2p-serialize-core.js +9 -2
  30. package/2p-serialize-core.js.map +1 -1
  31. package/2p-serialize-theory.js +9 -2
  32. package/2p-serialize-theory.js.map +1 -1
  33. package/2p-solve-classic.js +1408 -1680
  34. package/2p-solve-classic.js.map +1 -1
  35. package/2p-solve-concurrent.js +9 -2
  36. package/2p-solve-concurrent.js.map +1 -1
  37. package/2p-solve-plp.js +19 -5
  38. package/2p-solve-plp.js.map +1 -1
  39. package/2p-solve-problog.js +1880 -1915
  40. package/2p-solve-problog.js.map +1 -1
  41. package/2p-solve-streams.js +1251 -1343
  42. package/2p-solve-streams.js.map +1 -1
  43. package/2p-solve.js +5397 -5851
  44. package/2p-solve.js.map +1 -1
  45. package/2p-theory.js +1800 -1796
  46. package/2p-theory.js.map +1 -1
  47. package/2p-unify.js +371 -372
  48. package/2p-unify.js.map +1 -1
  49. package/2p-utils.js +555 -517
  50. package/2p-utils.js.map +1 -1
  51. package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
  52. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
  53. package/clikt-clikt-js-ir.js +2208 -2427
  54. package/clikt-clikt-js-ir.js.map +1 -1
  55. package/kotlin-kotlin-stdlib-js-ir.js +3030 -3127
  56. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  57. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
  58. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
  59. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
  60. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  61. package/kt-math.js +3196 -2832
  62. package/kt-math.js.map +1 -1
  63. package/package.json +56 -2
  64. package/2p-full.d.ts +0 -270
package/2p-bdd.js CHANGED
@@ -1,50 +1,64 @@
1
- (function (_, kotlin_kotlin) {
1
+ (function (root, factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
6
+ else {
7
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
+ throw new Error("Error loading module '2p-bdd'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '2p-bdd'.");
9
+ }
10
+ root['2p-bdd'] = factory(typeof this['2p-bdd'] === 'undefined' ? {} : this['2p-bdd'], this['kotlin-kotlin-stdlib-js-ir']);
11
+ }
12
+ }(this, function (_, kotlin_kotlin) {
2
13
  'use strict';
3
14
  //region block: imports
4
15
  var imul = Math.imul;
5
- var interfaceMeta = kotlin_kotlin.$_$.u6;
6
- var setMetadataFor = kotlin_kotlin.$_$.j7;
7
- var objectMeta = kotlin_kotlin.$_$.i7;
8
- var RuntimeException = kotlin_kotlin.$_$.rb;
9
- var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.b2;
10
- var captureStack = kotlin_kotlin.$_$.h6;
11
- var classMeta = kotlin_kotlin.$_$.m6;
12
- var hashCode = kotlin_kotlin.$_$.t6;
13
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f1;
14
- var Unit_getInstance = kotlin_kotlin.$_$.r2;
15
- var ensureNotNull = kotlin_kotlin.$_$.vb;
16
- var Pair = kotlin_kotlin.$_$.qb;
17
- var compareTo = kotlin_kotlin.$_$.n6;
18
- var equals = kotlin_kotlin.$_$.o6;
19
- var THROW_CCE = kotlin_kotlin.$_$.sb;
20
- var isComparable = kotlin_kotlin.$_$.x6;
16
+ var protoOf = kotlin_kotlin.$_$.s6;
17
+ var interfaceMeta = kotlin_kotlin.$_$.c6;
18
+ var VOID = kotlin_kotlin.$_$.gc;
19
+ var setMetadataFor = kotlin_kotlin.$_$.t6;
20
+ var objectMeta = kotlin_kotlin.$_$.r6;
21
+ var RuntimeException = kotlin_kotlin.$_$.sb;
22
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.f1;
23
+ var captureStack = kotlin_kotlin.$_$.o5;
24
+ var defineProp = kotlin_kotlin.$_$.v5;
25
+ var classMeta = kotlin_kotlin.$_$.t5;
26
+ var hashCode = kotlin_kotlin.$_$.b6;
27
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i;
28
+ var Unit_getInstance = kotlin_kotlin.$_$.v1;
29
+ var ensureNotNull = kotlin_kotlin.$_$.wb;
30
+ var Pair = kotlin_kotlin.$_$.rb;
31
+ var compareTo = kotlin_kotlin.$_$.u5;
32
+ var equals = kotlin_kotlin.$_$.w5;
33
+ var THROW_CCE = kotlin_kotlin.$_$.tb;
34
+ var isComparable = kotlin_kotlin.$_$.f6;
21
35
  var getKClassFromExpression = kotlin_kotlin.$_$.b;
22
- var lazy = kotlin_kotlin.$_$.xb;
23
- var KProperty1 = kotlin_kotlin.$_$.d8;
24
- var getPropertyCallableRef = kotlin_kotlin.$_$.r6;
36
+ var lazy = kotlin_kotlin.$_$.yb;
37
+ var KProperty1 = kotlin_kotlin.$_$.o7;
38
+ var getPropertyCallableRef = kotlin_kotlin.$_$.z5;
25
39
  //endregion
26
40
  //region block: pre-declaration
27
41
  function accept(visitor) {
28
42
  return visitor.visitTerminal(this);
29
43
  }
30
- setMetadataFor(Terminal, 'Terminal', interfaceMeta, undefined, undefined, undefined, undefined, []);
44
+ setMetadataFor(Terminal, 'Terminal', interfaceMeta);
31
45
  function accept_0(visitor) {
32
46
  return visitor.visitVariable(this);
33
47
  }
34
- setMetadataFor(Variable, 'Variable', interfaceMeta, undefined, undefined, undefined, undefined, []);
35
- setMetadataFor(Companion, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
36
- setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
37
- setMetadataFor(BinaryDecisionDiagramException, 'BinaryDecisionDiagramException', classMeta, RuntimeException, undefined, undefined, undefined, []);
38
- setMetadataFor(BinaryDecisionDiagramOperationException, 'BinaryDecisionDiagramOperationException', classMeta, BinaryDecisionDiagramException, undefined, undefined, undefined, []);
39
- setMetadataFor(AnyVisitor, 'AnyVisitor', classMeta, undefined, undefined, undefined, undefined, []);
40
- setMetadataFor(BinaryApplyExpansionVisitor, 'BinaryApplyExpansionVisitor', classMeta, undefined, undefined, undefined, undefined, []);
41
- setMetadataFor(ExpansionVisitor, 'ExpansionVisitor', classMeta, undefined, undefined, undefined, undefined, []);
42
- setMetadataFor(UnaryApplyExpansionVisitor, 'UnaryApplyExpansionVisitor', classMeta, undefined, undefined, undefined, undefined, []);
43
- setMetadataFor(ReducedBinaryDecisionDiagramBuilder, 'ReducedBinaryDecisionDiagramBuilder', classMeta, undefined, undefined, undefined, undefined, []);
44
- setMetadataFor(SimpleBinaryDecisionDiagramBuilder, 'SimpleBinaryDecisionDiagramBuilder', classMeta, undefined, undefined, undefined, undefined, []);
45
- setMetadataFor(SimpleBinaryDecisionDiagramTerminal, 'SimpleBinaryDecisionDiagramTerminal', classMeta, undefined, [Terminal], undefined, undefined, []);
46
- setMetadataFor(SimpleBinaryDecisionDiagramVariable, 'SimpleBinaryDecisionDiagramVariable', classMeta, undefined, [Variable], undefined, undefined, []);
47
- setMetadataFor(CastVisitor, 'CastVisitor', classMeta, undefined, undefined, undefined, undefined, []);
48
+ setMetadataFor(Variable, 'Variable', interfaceMeta);
49
+ setMetadataFor(Companion, 'Companion', objectMeta);
50
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
51
+ setMetadataFor(BinaryDecisionDiagramException, 'BinaryDecisionDiagramException', classMeta, RuntimeException);
52
+ setMetadataFor(BinaryDecisionDiagramOperationException, 'BinaryDecisionDiagramOperationException', classMeta, BinaryDecisionDiagramException);
53
+ setMetadataFor(AnyVisitor, 'AnyVisitor', classMeta);
54
+ setMetadataFor(BinaryApplyExpansionVisitor, 'BinaryApplyExpansionVisitor', classMeta);
55
+ setMetadataFor(ExpansionVisitor, 'ExpansionVisitor', classMeta);
56
+ setMetadataFor(UnaryApplyExpansionVisitor, 'UnaryApplyExpansionVisitor', classMeta);
57
+ setMetadataFor(ReducedBinaryDecisionDiagramBuilder, 'ReducedBinaryDecisionDiagramBuilder', classMeta);
58
+ setMetadataFor(SimpleBinaryDecisionDiagramBuilder, 'SimpleBinaryDecisionDiagramBuilder', classMeta);
59
+ setMetadataFor(SimpleBinaryDecisionDiagramTerminal, 'SimpleBinaryDecisionDiagramTerminal', classMeta, VOID, [Terminal]);
60
+ setMetadataFor(SimpleBinaryDecisionDiagramVariable, 'SimpleBinaryDecisionDiagramVariable', classMeta, VOID, [Variable]);
61
+ setMetadataFor(CastVisitor, 'CastVisitor', classMeta);
48
62
  //endregion
49
63
  function Terminal() {
50
64
  }
@@ -53,13 +67,13 @@
53
67
  function Companion() {
54
68
  Companion_instance = this;
55
69
  }
56
- Companion.prototype.variableOf = function (value) {
70
+ protoOf(Companion).variableOf = function (value) {
57
71
  return this.variableOfWithNodes(value, this.terminalOf(false), this.terminalOf(true));
58
72
  };
59
- Companion.prototype.variableOfWithNodes = function (value, low, high) {
73
+ protoOf(Companion).variableOfWithNodes = function (value, low, high) {
60
74
  return Companion_getInstance_0().defaultOf().buildVariable(value, low, high);
61
75
  };
62
- Companion.prototype.terminalOf = function (truth) {
76
+ protoOf(Companion).terminalOf = function (truth) {
63
77
  return Companion_getInstance_0().defaultOf().buildTerminal(truth);
64
78
  };
65
79
  var Companion_instance;
@@ -71,22 +85,18 @@
71
85
  function Companion_0() {
72
86
  Companion_instance_0 = this;
73
87
  }
74
- Companion_0.prototype.defaultOf = function () {
88
+ protoOf(Companion_0).defaultOf = function () {
75
89
  return createDefaultBinaryDecisionDiagramBuilder();
76
90
  };
77
- Companion_0.prototype.simpleOf = function () {
91
+ protoOf(Companion_0).simpleOf = function () {
78
92
  return new SimpleBinaryDecisionDiagramBuilder();
79
93
  };
80
- Companion_0.prototype.reducedOf = function (delegate) {
81
- return this.c32(delegate === void 1 ? this.defaultOf() : delegate);
82
- };
83
- Companion_0.prototype.c32 = function (delegate) {
94
+ protoOf(Companion_0).w2z = function (delegate) {
84
95
  return new ReducedBinaryDecisionDiagramBuilder(delegate);
85
96
  };
86
- Companion_0.prototype.d32 = function (delegate, $mask0, $handler) {
87
- if (!(($mask0 & 1) === 0))
88
- delegate = this.defaultOf();
89
- return this.c32(delegate);
97
+ protoOf(Companion_0).reducedOf = function (delegate, $super) {
98
+ delegate = delegate === VOID ? this.defaultOf() : delegate;
99
+ return $super === VOID ? this.w2z(delegate) : $super.w2z.call(this, delegate);
90
100
  };
91
101
  var Companion_instance_0;
92
102
  function Companion_getInstance_0() {
@@ -138,14 +148,12 @@
138
148
  }
139
149
  function applyThenExpansion$lambda($this_applyThenExpansion, $unaryOp, $expansionFalseTerminal, $expansionTrueTerminal, $expansionOperator) {
140
150
  return function () {
141
- var tmp = Companion_getInstance_0();
142
- return $this_applyThenExpansion.accept(new UnaryApplyExpansionVisitor(tmp.d32(null, 1, null), $unaryOp, $expansionFalseTerminal, $expansionTrueTerminal, $expansionOperator));
151
+ return $this_applyThenExpansion.accept(new UnaryApplyExpansionVisitor(Companion_getInstance_0().reducedOf(), $unaryOp, $expansionFalseTerminal, $expansionTrueTerminal, $expansionOperator));
143
152
  };
144
153
  }
145
154
  function applyThenExpansion$lambda_0($this_applyThenExpansion, $that, $binaryOp, $expansionFalseTerminal, $expansionTrueTerminal, $expansionOperator) {
146
155
  return function () {
147
- var tmp = Companion_getInstance_0();
148
- return $this_applyThenExpansion.accept(new BinaryApplyExpansionVisitor(tmp.d32(null, 1, null), $that, $binaryOp, $expansionFalseTerminal, $expansionTrueTerminal, $expansionOperator));
156
+ return $this_applyThenExpansion.accept(new BinaryApplyExpansionVisitor(Companion_getInstance_0().reducedOf(), $that, $binaryOp, $expansionFalseTerminal, $expansionTrueTerminal, $expansionOperator));
149
157
  };
150
158
  }
151
159
  function bddTerminalOf(value) {
@@ -161,8 +169,7 @@
161
169
  return runOperationAndCatchErrors(any$lambda(_this__u8e3s4, predicate));
162
170
  }
163
171
  function map(_this__u8e3s4, mapper) {
164
- var tmp = Companion_getInstance_0();
165
- var builder = tmp.d32(null, 1, null);
172
+ var builder = Companion_getInstance_0().reducedOf();
166
173
  return runOperationAndCatchErrors(map$lambda(_this__u8e3s4, builder, mapper));
167
174
  }
168
175
  function runOperationAndCatchErrors(action) {
@@ -170,7 +177,8 @@
170
177
  return action();
171
178
  } catch ($p) {
172
179
  if ($p instanceof Error) {
173
- throw new BinaryDecisionDiagramOperationException('BinaryDecisionDiagram operation failure', $p);
180
+ var e = $p;
181
+ throw new BinaryDecisionDiagramOperationException('BinaryDecisionDiagram operation failure', e);
174
182
  } else {
175
183
  throw $p;
176
184
  }
@@ -199,91 +207,88 @@
199
207
  };
200
208
  }
201
209
  function BinaryDecisionDiagramException(message, cause) {
210
+ message = message === VOID ? null : message;
211
+ cause = cause === VOID ? null : cause;
202
212
  RuntimeException_init_$Init$(message, cause, this);
203
- this.e32_1 = message;
204
- this.f32_1 = cause;
205
213
  captureStack(this, BinaryDecisionDiagramException);
214
+ this.x2z_1 = message;
215
+ this.y2z_1 = cause;
206
216
  }
207
- BinaryDecisionDiagramException.prototype.k1 = function () {
208
- return this.e32_1;
217
+ protoOf(BinaryDecisionDiagramException).p1 = function () {
218
+ return this.x2z_1;
209
219
  };
210
- BinaryDecisionDiagramException.prototype.l1 = function () {
211
- return this.f32_1;
220
+ protoOf(BinaryDecisionDiagramException).q1 = function () {
221
+ return this.y2z_1;
212
222
  };
213
- Object.defineProperty(BinaryDecisionDiagramException.prototype, 'message', {
214
- configurable: true,
215
- get: function () {
216
- return this.k1();
217
- }
223
+ defineProp(protoOf(BinaryDecisionDiagramException), 'message', function () {
224
+ return this.p1();
218
225
  });
219
- Object.defineProperty(BinaryDecisionDiagramException.prototype, 'cause', {
220
- configurable: true,
221
- get: function () {
222
- return this.l1();
223
- }
226
+ defineProp(protoOf(BinaryDecisionDiagramException), 'cause', function () {
227
+ return this.q1();
224
228
  });
225
229
  function BinaryDecisionDiagramOperationException(message, cause) {
230
+ cause = cause === VOID ? null : cause;
226
231
  BinaryDecisionDiagramException.call(this, message, cause);
227
232
  captureStack(this, BinaryDecisionDiagramOperationException);
228
233
  }
229
234
  function AnyVisitor(predicate) {
230
- this.g32_1 = predicate;
235
+ this.z2z_1 = predicate;
231
236
  }
232
- AnyVisitor.prototype.h32 = function (node) {
237
+ protoOf(AnyVisitor).a30 = function (node) {
233
238
  return false;
234
239
  };
235
- AnyVisitor.prototype.visitTerminal = function (node) {
236
- return this.h32(node);
240
+ protoOf(AnyVisitor).visitTerminal = function (node) {
241
+ return this.a30(node);
237
242
  };
238
- AnyVisitor.prototype.i32 = function (node) {
239
- var result = this.g32_1(node.b1());
243
+ protoOf(AnyVisitor).b30 = function (node) {
244
+ var result = this.z2z_1(node.b1());
240
245
  if (!result) {
241
- result = node.a32().accept(this);
246
+ result = node.u2z().accept(this);
242
247
  }
243
248
  if (!result) {
244
- result = node.b32().accept(this);
249
+ result = node.v2z().accept(this);
245
250
  }
246
251
  return result;
247
252
  };
248
- AnyVisitor.prototype.visitVariable = function (node) {
249
- return this.i32(node);
253
+ protoOf(AnyVisitor).visitVariable = function (node) {
254
+ return this.b30(node);
250
255
  };
251
256
  function visitWithTable($this, first, second, computation) {
252
257
  var firstKey = hashCode(first);
253
258
  var secondKey = hashCode(second);
254
- if (!$this.p32_1.u2(firstKey)) {
259
+ if (!$this.i30_1.z2(firstKey)) {
255
260
  // Inline function 'kotlin.collections.set' call
256
- var tmp0_set = $this.p32_1;
261
+ var tmp0_set = $this.i30_1;
257
262
  var tmp$ret$0;
258
263
  // Inline function 'kotlin.collections.mutableMapOf' call
259
264
  tmp$ret$0 = LinkedHashMap_init_$Create$();
260
265
  var tmp1_set = tmp$ret$0;
261
- tmp0_set.w3(firstKey, tmp1_set);
266
+ tmp0_set.a4(firstKey, tmp1_set);
262
267
  }
263
- var cached = ensureNotNull($this.p32_1.a3(firstKey)).a3(secondKey);
268
+ var cached = ensureNotNull($this.i30_1.f3(firstKey)).f3(secondKey);
264
269
  if (!(cached == null)) {
265
270
  return cached;
266
271
  }
267
272
  var result = computation();
268
273
  // Inline function 'kotlin.collections.set' call
269
- var tmp2_set = ensureNotNull($this.p32_1.a3(firstKey));
270
- tmp2_set.w3(secondKey, result);
274
+ var tmp2_set = ensureNotNull($this.i30_1.f3(firstKey));
275
+ tmp2_set.a4(secondKey, result);
271
276
  return result;
272
277
  }
273
278
  function apply($this, first, second) {
274
- var truth = $this.l32_1(first.y31(), second.y31());
275
- return new Pair($this.j32_1.buildTerminal(truth), truth ? $this.n32_1 : $this.m32_1);
279
+ var truth = $this.e30_1(first.s2z(), second.s2z());
280
+ return new Pair($this.c30_1.buildTerminal(truth), truth ? $this.g30_1 : $this.f30_1);
276
281
  }
277
282
  function apply_0($this, first, second) {
278
- $this.k32_1 = second.a32();
279
- var lowNode = first.z31($this);
280
- $this.k32_1 = second.b32();
281
- var highNode = first.z31($this);
282
- return new Pair($this.j32_1.buildVariable(second.b1(), lowNode.g4_1, highNode.g4_1), $this.o32_1(second.b1(), lowNode.h4_1, highNode.h4_1));
283
+ $this.d30_1 = second.u2z();
284
+ var lowNode = first.t2z($this);
285
+ $this.d30_1 = second.v2z();
286
+ var highNode = first.t2z($this);
287
+ return new Pair($this.c30_1.buildVariable(second.b1(), lowNode.k4_1, highNode.k4_1), $this.h30_1(second.b1(), lowNode.l4_1, highNode.l4_1));
283
288
  }
284
289
  function apply_1($this, first, second) {
285
- $this.k32_1 = first;
286
- return second.z31($this);
290
+ $this.d30_1 = first;
291
+ return second.t2z($this);
287
292
  }
288
293
  function apply_2($this, first, second) {
289
294
  var newValue;
@@ -293,25 +298,25 @@
293
298
  var secondHigh;
294
299
  if (compareTo(first.b1(), second.b1()) <= 0) {
295
300
  newValue = first.b1();
296
- firstHigh = first.b32();
297
- firstLow = first.a32();
301
+ firstHigh = first.v2z();
302
+ firstLow = first.u2z();
298
303
  } else {
299
304
  newValue = second.b1();
300
305
  firstLow = first;
301
306
  firstHigh = first;
302
307
  }
303
308
  if (compareTo(second.b1(), first.b1()) <= 0) {
304
- secondHigh = second.b32();
305
- secondLow = second.a32();
309
+ secondHigh = second.v2z();
310
+ secondLow = second.u2z();
306
311
  } else {
307
312
  secondLow = second;
308
313
  secondHigh = second;
309
314
  }
310
- $this.k32_1 = secondLow;
315
+ $this.d30_1 = secondLow;
311
316
  var lowNode = firstLow.accept($this);
312
- $this.k32_1 = secondHigh;
317
+ $this.d30_1 = secondHigh;
313
318
  var highNode = firstHigh.accept($this);
314
- return new Pair($this.j32_1.buildVariable(newValue, lowNode.g4_1, highNode.g4_1), $this.o32_1(newValue, lowNode.h4_1, highNode.h4_1));
319
+ return new Pair($this.c30_1.buildVariable(newValue, lowNode.k4_1, highNode.k4_1), $this.h30_1(newValue, lowNode.l4_1, highNode.l4_1));
315
320
  }
316
321
  function BinaryApplyExpansionVisitor$visit$lambda$lambda(this$0, $node) {
317
322
  return function (that) {
@@ -325,11 +330,11 @@
325
330
  }
326
331
  function BinaryApplyExpansionVisitor$visit$lambda(this$0, $node) {
327
332
  return function () {
328
- var tmp = this$0.q32_1;
329
- tmp.r32_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda(this$0, $node);
330
- var tmp_0 = this$0.q32_1;
331
- tmp_0.s32_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda_0(this$0, $node);
332
- return this$0.k32_1.accept(this$0.q32_1);
333
+ var tmp = this$0.j30_1;
334
+ tmp.k30_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda(this$0, $node);
335
+ var tmp_0 = this$0.j30_1;
336
+ tmp_0.l30_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda_0(this$0, $node);
337
+ return this$0.d30_1.accept(this$0.j30_1);
333
338
  };
334
339
  }
335
340
  function BinaryApplyExpansionVisitor$visit$lambda$lambda_1(this$0, $node) {
@@ -344,151 +349,151 @@
344
349
  }
345
350
  function BinaryApplyExpansionVisitor$visit$lambda_0(this$0, $node) {
346
351
  return function () {
347
- var tmp = this$0.q32_1;
348
- tmp.r32_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda_1(this$0, $node);
349
- var tmp_0 = this$0.q32_1;
350
- tmp_0.s32_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda_2(this$0, $node);
351
- return this$0.k32_1.accept(this$0.q32_1);
352
+ var tmp = this$0.j30_1;
353
+ tmp.k30_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda_1(this$0, $node);
354
+ var tmp_0 = this$0.j30_1;
355
+ tmp_0.l30_1 = BinaryApplyExpansionVisitor$visit$lambda$lambda_2(this$0, $node);
356
+ return this$0.d30_1.accept(this$0.j30_1);
352
357
  };
353
358
  }
354
359
  function BinaryApplyExpansionVisitor(builder, thatNode, operator, expansionFalseTerminal, expansionTrueTerminal, expansionOperator) {
355
- this.j32_1 = builder;
356
- this.k32_1 = thatNode;
357
- this.l32_1 = operator;
358
- this.m32_1 = expansionFalseTerminal;
359
- this.n32_1 = expansionTrueTerminal;
360
- this.o32_1 = expansionOperator;
360
+ this.c30_1 = builder;
361
+ this.d30_1 = thatNode;
362
+ this.e30_1 = operator;
363
+ this.f30_1 = expansionFalseTerminal;
364
+ this.g30_1 = expansionTrueTerminal;
365
+ this.h30_1 = expansionOperator;
361
366
  var tmp = this;
362
367
  var tmp$ret$0;
363
368
  // Inline function 'kotlin.collections.mutableMapOf' call
364
369
  tmp$ret$0 = LinkedHashMap_init_$Create$();
365
- tmp.p32_1 = tmp$ret$0;
366
- this.q32_1 = new CastVisitor();
370
+ tmp.i30_1 = tmp$ret$0;
371
+ this.j30_1 = new CastVisitor();
367
372
  }
368
- BinaryApplyExpansionVisitor.prototype.h32 = function (node) {
369
- var tmp = this.k32_1;
373
+ protoOf(BinaryApplyExpansionVisitor).a30 = function (node) {
374
+ var tmp = this.d30_1;
370
375
  return visitWithTable(this, node, tmp, BinaryApplyExpansionVisitor$visit$lambda(this, node));
371
376
  };
372
- BinaryApplyExpansionVisitor.prototype.visitTerminal = function (node) {
373
- return this.h32(node);
377
+ protoOf(BinaryApplyExpansionVisitor).visitTerminal = function (node) {
378
+ return this.a30(node);
374
379
  };
375
- BinaryApplyExpansionVisitor.prototype.i32 = function (node) {
376
- var tmp = this.k32_1;
380
+ protoOf(BinaryApplyExpansionVisitor).b30 = function (node) {
381
+ var tmp = this.d30_1;
377
382
  return visitWithTable(this, node, tmp, BinaryApplyExpansionVisitor$visit$lambda_0(this, node));
378
383
  };
379
- BinaryApplyExpansionVisitor.prototype.visitVariable = function (node) {
380
- return this.i32(node);
384
+ protoOf(BinaryApplyExpansionVisitor).visitVariable = function (node) {
385
+ return this.b30(node);
381
386
  };
382
387
  function ExpansionVisitor(varOp, falseTerminal, trueTerminal) {
383
- this.t32_1 = varOp;
384
- this.u32_1 = falseTerminal;
385
- this.v32_1 = trueTerminal;
388
+ this.m30_1 = varOp;
389
+ this.n30_1 = falseTerminal;
390
+ this.o30_1 = trueTerminal;
386
391
  }
387
- ExpansionVisitor.prototype.h32 = function (node) {
388
- return node.y31() ? this.v32_1 : this.u32_1;
392
+ protoOf(ExpansionVisitor).a30 = function (node) {
393
+ return node.s2z() ? this.o30_1 : this.n30_1;
389
394
  };
390
- ExpansionVisitor.prototype.visitTerminal = function (node) {
391
- return this.h32(node);
395
+ protoOf(ExpansionVisitor).visitTerminal = function (node) {
396
+ return this.a30(node);
392
397
  };
393
- ExpansionVisitor.prototype.i32 = function (node) {
394
- var lowValue = node.a32().accept(this);
395
- var highValue = node.b32().accept(this);
396
- return this.t32_1(node.b1(), lowValue, highValue);
398
+ protoOf(ExpansionVisitor).b30 = function (node) {
399
+ var lowValue = node.u2z().accept(this);
400
+ var highValue = node.v2z().accept(this);
401
+ return this.m30_1(node.b1(), lowValue, highValue);
397
402
  };
398
- ExpansionVisitor.prototype.visitVariable = function (node) {
399
- return this.i32(node);
403
+ protoOf(ExpansionVisitor).visitVariable = function (node) {
404
+ return this.b30(node);
400
405
  };
401
406
  function UnaryApplyExpansionVisitor(builder, operator, expansionFalseTerminal, expansionTrueTerminal, expansionOperator) {
402
- this.w32_1 = builder;
403
- this.x32_1 = operator;
404
- this.y32_1 = expansionFalseTerminal;
405
- this.z32_1 = expansionTrueTerminal;
406
- this.a33_1 = expansionOperator;
407
+ this.p30_1 = builder;
408
+ this.q30_1 = operator;
409
+ this.r30_1 = expansionFalseTerminal;
410
+ this.s30_1 = expansionTrueTerminal;
411
+ this.t30_1 = expansionOperator;
407
412
  var tmp = this;
408
413
  var tmp$ret$0;
409
414
  // Inline function 'kotlin.collections.mutableMapOf' call
410
415
  tmp$ret$0 = LinkedHashMap_init_$Create$();
411
- tmp.b33_1 = tmp$ret$0;
416
+ tmp.u30_1 = tmp$ret$0;
412
417
  }
413
- UnaryApplyExpansionVisitor.prototype.h32 = function (node) {
414
- var resTruth = this.x32_1(node.y31());
415
- return new Pair(this.w32_1.buildTerminal(resTruth), resTruth ? this.z32_1 : this.y32_1);
418
+ protoOf(UnaryApplyExpansionVisitor).a30 = function (node) {
419
+ var resTruth = this.q30_1(node.s2z());
420
+ return new Pair(this.p30_1.buildTerminal(resTruth), resTruth ? this.s30_1 : this.r30_1);
416
421
  };
417
- UnaryApplyExpansionVisitor.prototype.visitTerminal = function (node) {
418
- return this.h32(node);
422
+ protoOf(UnaryApplyExpansionVisitor).visitTerminal = function (node) {
423
+ return this.a30(node);
419
424
  };
420
- UnaryApplyExpansionVisitor.prototype.i32 = function (node) {
425
+ protoOf(UnaryApplyExpansionVisitor).b30 = function (node) {
421
426
  var key = hashCode(node);
422
- if (this.b33_1.u2(key)) {
423
- return ensureNotNull(this.b33_1.a3(key));
427
+ if (this.u30_1.z2(key)) {
428
+ return ensureNotNull(this.u30_1.f3(key));
424
429
  }
425
- var lowNode = node.a32().accept(this);
426
- var highNode = node.b32().accept(this);
427
- var result = new Pair(this.w32_1.buildVariable(node.b1(), lowNode.g4_1, highNode.g4_1), this.a33_1(node.b1(), lowNode.h4_1, highNode.h4_1));
430
+ var lowNode = node.u2z().accept(this);
431
+ var highNode = node.v2z().accept(this);
432
+ var result = new Pair(this.p30_1.buildVariable(node.b1(), lowNode.k4_1, highNode.k4_1), this.t30_1(node.b1(), lowNode.l4_1, highNode.l4_1));
428
433
  // Inline function 'kotlin.collections.set' call
429
- var tmp0_set = this.b33_1;
430
- tmp0_set.w3(key, result);
434
+ var tmp0_set = this.u30_1;
435
+ tmp0_set.a4(key, result);
431
436
  return result;
432
437
  };
433
- UnaryApplyExpansionVisitor.prototype.visitVariable = function (node) {
434
- return this.i32(node);
438
+ protoOf(UnaryApplyExpansionVisitor).visitVariable = function (node) {
439
+ return this.b30(node);
435
440
  };
436
441
  function ReducedBinaryDecisionDiagramBuilder(delegate) {
437
- this.c33_1 = delegate;
442
+ this.v30_1 = delegate;
438
443
  var tmp = this;
439
444
  var tmp$ret$0;
440
445
  // Inline function 'kotlin.collections.mutableMapOf' call
441
446
  tmp$ret$0 = LinkedHashMap_init_$Create$();
442
- tmp.d33_1 = tmp$ret$0;
447
+ tmp.w30_1 = tmp$ret$0;
443
448
  }
444
- ReducedBinaryDecisionDiagramBuilder.prototype.e33 = function (value, low, high) {
449
+ protoOf(ReducedBinaryDecisionDiagramBuilder).x30 = function (value, low, high) {
445
450
  if (equals(low, high)) {
446
451
  return low;
447
452
  }
448
- var newNode = this.c33_1.buildVariable(value, low, high);
453
+ var newNode = this.v30_1.buildVariable(value, low, high);
449
454
  var key = hashCode(newNode);
450
- var cached = this.d33_1.a3(key);
455
+ var cached = this.w30_1.f3(key);
451
456
  var tmp;
452
457
  if (!(cached == null)) {
453
458
  tmp = cached;
454
459
  } else {
455
460
  // Inline function 'kotlin.collections.set' call
456
- var tmp0_set = this.d33_1;
457
- tmp0_set.w3(key, newNode);
461
+ var tmp0_set = this.w30_1;
462
+ tmp0_set.a4(key, newNode);
458
463
  tmp = newNode;
459
464
  }
460
465
  return tmp;
461
466
  };
462
- ReducedBinaryDecisionDiagramBuilder.prototype.buildVariable = function (value, low, high) {
463
- return this.e33(isComparable(value) ? value : THROW_CCE(), low, high);
467
+ protoOf(ReducedBinaryDecisionDiagramBuilder).buildVariable = function (value, low, high) {
468
+ return this.x30(isComparable(value) ? value : THROW_CCE(), low, high);
464
469
  };
465
- ReducedBinaryDecisionDiagramBuilder.prototype.f33 = function (truth) {
466
- return this.c33_1.buildTerminal(truth);
470
+ protoOf(ReducedBinaryDecisionDiagramBuilder).y30 = function (truth) {
471
+ return this.v30_1.buildTerminal(truth);
467
472
  };
468
- ReducedBinaryDecisionDiagramBuilder.prototype.buildTerminal = function (truth) {
469
- return this.f33(truth);
473
+ protoOf(ReducedBinaryDecisionDiagramBuilder).buildTerminal = function (truth) {
474
+ return this.y30(truth);
470
475
  };
471
476
  function SimpleBinaryDecisionDiagramBuilder() {
472
477
  }
473
- SimpleBinaryDecisionDiagramBuilder.prototype.e33 = function (value, low, high) {
478
+ protoOf(SimpleBinaryDecisionDiagramBuilder).x30 = function (value, low, high) {
474
479
  return new SimpleBinaryDecisionDiagramVariable(value, low, high);
475
480
  };
476
- SimpleBinaryDecisionDiagramBuilder.prototype.buildVariable = function (value, low, high) {
477
- return this.e33(isComparable(value) ? value : THROW_CCE(), low, high);
481
+ protoOf(SimpleBinaryDecisionDiagramBuilder).buildVariable = function (value, low, high) {
482
+ return this.x30(isComparable(value) ? value : THROW_CCE(), low, high);
478
483
  };
479
- SimpleBinaryDecisionDiagramBuilder.prototype.f33 = function (truth) {
484
+ protoOf(SimpleBinaryDecisionDiagramBuilder).y30 = function (truth) {
480
485
  return new SimpleBinaryDecisionDiagramTerminal(truth);
481
486
  };
482
- SimpleBinaryDecisionDiagramBuilder.prototype.buildTerminal = function (truth) {
483
- return this.f33(truth);
487
+ protoOf(SimpleBinaryDecisionDiagramBuilder).buildTerminal = function (truth) {
488
+ return this.y30(truth);
484
489
  };
485
490
  function SimpleBinaryDecisionDiagramTerminal(truth) {
486
- this.g33_1 = truth;
491
+ this.z30_1 = truth;
487
492
  }
488
- SimpleBinaryDecisionDiagramTerminal.prototype.y31 = function () {
489
- return this.g33_1;
493
+ protoOf(SimpleBinaryDecisionDiagramTerminal).s2z = function () {
494
+ return this.z30_1;
490
495
  };
491
- SimpleBinaryDecisionDiagramTerminal.prototype.equals = function (other) {
496
+ protoOf(SimpleBinaryDecisionDiagramTerminal).equals = function (other) {
492
497
  if (this === other)
493
498
  return true;
494
499
  if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
@@ -497,51 +502,51 @@
497
502
  other;
498
503
  else
499
504
  THROW_CCE();
500
- if (!(this.g33_1 === other.g33_1))
505
+ if (!(this.z30_1 === other.z30_1))
501
506
  return false;
502
507
  return true;
503
508
  };
504
- SimpleBinaryDecisionDiagramTerminal.prototype.hashCode = function () {
505
- return this.g33_1 | 0;
509
+ protoOf(SimpleBinaryDecisionDiagramTerminal).hashCode = function () {
510
+ return this.z30_1 | 0;
506
511
  };
507
- SimpleBinaryDecisionDiagramTerminal.prototype.toString = function () {
508
- return 'SimpleBinaryDecisionDiagramTerminal(truth=' + this.g33_1 + ')';
512
+ protoOf(SimpleBinaryDecisionDiagramTerminal).toString = function () {
513
+ return 'SimpleBinaryDecisionDiagramTerminal(truth=' + this.z30_1 + ')';
509
514
  };
510
- SimpleBinaryDecisionDiagramTerminal.prototype.accept = function (visitor) {
511
- return this.z31(visitor);
515
+ protoOf(SimpleBinaryDecisionDiagramTerminal).accept = function (visitor) {
516
+ return this.t2z(visitor);
512
517
  };
513
518
  function _get_hashCodeCache__ny3r0q($this) {
514
519
  var tmp$ret$0;
515
520
  // Inline function 'kotlin.getValue' call
516
521
  var tmp0_getValue = hashCodeCache$factory();
517
- tmp$ret$0 = $this.k33_1.b1();
522
+ tmp$ret$0 = $this.d31_1.b1();
518
523
  return tmp$ret$0;
519
524
  }
520
525
  function SimpleBinaryDecisionDiagramVariable$hashCodeCache$delegate$lambda(this$0) {
521
526
  return function () {
522
- var result = hashCode(this$0.h33_1);
523
- result = imul(31, result) + hashCode(this$0.i33_1) | 0;
524
- result = imul(31, result) + hashCode(this$0.j33_1) | 0;
527
+ var result = hashCode(this$0.a31_1);
528
+ result = imul(31, result) + hashCode(this$0.b31_1) | 0;
529
+ result = imul(31, result) + hashCode(this$0.c31_1) | 0;
525
530
  return result;
526
531
  };
527
532
  }
528
533
  function SimpleBinaryDecisionDiagramVariable(value, low, high) {
529
- this.h33_1 = value;
530
- this.i33_1 = low;
531
- this.j33_1 = high;
534
+ this.a31_1 = value;
535
+ this.b31_1 = low;
536
+ this.c31_1 = high;
532
537
  var tmp = this;
533
- tmp.k33_1 = lazy(SimpleBinaryDecisionDiagramVariable$hashCodeCache$delegate$lambda(this));
538
+ tmp.d31_1 = lazy(SimpleBinaryDecisionDiagramVariable$hashCodeCache$delegate$lambda(this));
534
539
  }
535
- SimpleBinaryDecisionDiagramVariable.prototype.b1 = function () {
536
- return this.h33_1;
540
+ protoOf(SimpleBinaryDecisionDiagramVariable).b1 = function () {
541
+ return this.a31_1;
537
542
  };
538
- SimpleBinaryDecisionDiagramVariable.prototype.a32 = function () {
539
- return this.i33_1;
543
+ protoOf(SimpleBinaryDecisionDiagramVariable).u2z = function () {
544
+ return this.b31_1;
540
545
  };
541
- SimpleBinaryDecisionDiagramVariable.prototype.b32 = function () {
542
- return this.j33_1;
546
+ protoOf(SimpleBinaryDecisionDiagramVariable).v2z = function () {
547
+ return this.c31_1;
543
548
  };
544
- SimpleBinaryDecisionDiagramVariable.prototype.equals = function (other) {
549
+ protoOf(SimpleBinaryDecisionDiagramVariable).equals = function (other) {
545
550
  if (this === other)
546
551
  return true;
547
552
  if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
@@ -550,22 +555,22 @@
550
555
  other;
551
556
  else
552
557
  THROW_CCE();
553
- if (!equals(this.h33_1, other.h33_1))
558
+ if (!equals(this.a31_1, other.a31_1))
554
559
  return false;
555
- if (!equals(this.i33_1, other.i33_1))
560
+ if (!equals(this.b31_1, other.b31_1))
556
561
  return false;
557
- if (!equals(this.j33_1, other.j33_1))
562
+ if (!equals(this.c31_1, other.c31_1))
558
563
  return false;
559
564
  return true;
560
565
  };
561
- SimpleBinaryDecisionDiagramVariable.prototype.hashCode = function () {
566
+ protoOf(SimpleBinaryDecisionDiagramVariable).hashCode = function () {
562
567
  return _get_hashCodeCache__ny3r0q(this);
563
568
  };
564
- SimpleBinaryDecisionDiagramVariable.prototype.toString = function () {
565
- return 'SimpleBinaryDecisionDiagramVariable(value=' + this.h33_1 + ', low=' + this.i33_1 + ', high=' + this.j33_1 + ')';
569
+ protoOf(SimpleBinaryDecisionDiagramVariable).toString = function () {
570
+ return 'SimpleBinaryDecisionDiagramVariable(value=' + this.a31_1 + ', low=' + this.b31_1 + ', high=' + this.c31_1 + ')';
566
571
  };
567
- SimpleBinaryDecisionDiagramVariable.prototype.accept = function (visitor) {
568
- return this.z31(visitor);
572
+ protoOf(SimpleBinaryDecisionDiagramVariable).accept = function (visitor) {
573
+ return this.t2z(visitor);
569
574
  };
570
575
  function hashCodeCache$factory() {
571
576
  return getPropertyCallableRef('hashCodeCache', 1, KProperty1, function (receiver) {
@@ -573,24 +578,24 @@
573
578
  }, null);
574
579
  }
575
580
  function CastVisitor() {
576
- this.r32_1 = null;
577
- this.s32_1 = null;
581
+ this.k30_1 = null;
582
+ this.l30_1 = null;
578
583
  }
579
- CastVisitor.prototype.h32 = function (node) {
580
- return ensureNotNull(this.r32_1)(node);
584
+ protoOf(CastVisitor).a30 = function (node) {
585
+ return ensureNotNull(this.k30_1)(node);
581
586
  };
582
- CastVisitor.prototype.visitTerminal = function (node) {
583
- return this.h32(node);
587
+ protoOf(CastVisitor).visitTerminal = function (node) {
588
+ return this.a30(node);
584
589
  };
585
- CastVisitor.prototype.i32 = function (node) {
586
- return ensureNotNull(this.s32_1)(node);
590
+ protoOf(CastVisitor).b30 = function (node) {
591
+ return ensureNotNull(this.l30_1)(node);
587
592
  };
588
- CastVisitor.prototype.visitVariable = function (node) {
589
- return this.i32(node);
593
+ protoOf(CastVisitor).visitVariable = function (node) {
594
+ return this.b30(node);
590
595
  };
591
596
  //region block: post-declaration
592
- SimpleBinaryDecisionDiagramTerminal.prototype.z31 = accept;
593
- SimpleBinaryDecisionDiagramVariable.prototype.z31 = accept_0;
597
+ protoOf(SimpleBinaryDecisionDiagramTerminal).t2z = accept;
598
+ protoOf(SimpleBinaryDecisionDiagramVariable).t2z = accept_0;
594
599
  //endregion
595
600
  //region block: exports
596
601
  _.$_$ = _.$_$ || {};
@@ -604,6 +609,6 @@
604
609
  _.$_$.h = orThenExpansion;
605
610
  //endregion
606
611
  return _;
607
- }(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js')));
612
+ }));
608
613
 
609
614
  //# sourceMappingURL=2p-bdd.js.map