timed-automata-analyzer 1.1.0 → 1.1.2

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "luth1um"
6
6
  ],
7
7
  "description": "An analyzer for Timed Automata written in Rust",
8
- "version": "1.1.0",
8
+ "version": "1.1.2",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
@@ -23,4 +23,4 @@
23
23
  "./timed_automata_analyzer.js",
24
24
  "./snippets/*"
25
25
  ]
26
- }
26
+ }
@@ -1,7 +1,7 @@
1
1
  /* @ts-self-types="./timed_automata_analyzer.d.ts" */
2
-
3
2
  import * as wasm from "./timed_automata_analyzer_bg.wasm";
4
3
  import { __wbg_set_wasm } from "./timed_automata_analyzer_bg.js";
4
+
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
@@ -23,7 +23,7 @@ export class Clause {
23
23
  constructor(lhs, op, rhs) {
24
24
  _assertClass(lhs, Clock);
25
25
  const ret = wasm.clause_new(lhs.__wbg_ptr, op, rhs);
26
- this.__wbg_ptr = ret >>> 0;
26
+ this.__wbg_ptr = ret;
27
27
  ClauseFinalization.register(this, this.__wbg_ptr, this);
28
28
  return this;
29
29
  }
@@ -54,7 +54,7 @@ export class Clock {
54
54
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
55
55
  const len0 = WASM_VECTOR_LEN;
56
56
  const ret = wasm.clock_new(ptr0, len0);
57
- this.__wbg_ptr = ret >>> 0;
57
+ this.__wbg_ptr = ret;
58
58
  ClockFinalization.register(this, this.__wbg_ptr, this);
59
59
  return this;
60
60
  }
@@ -89,7 +89,7 @@ export class ClockConstraint {
89
89
  const ptr0 = passArrayJsValueToWasm0(clauses, wasm.__wbindgen_malloc);
90
90
  const len0 = WASM_VECTOR_LEN;
91
91
  const ret = wasm.clockconstraint_new(ptr0, len0);
92
- this.__wbg_ptr = ret >>> 0;
92
+ this.__wbg_ptr = ret;
93
93
  ClockConstraintFinalization.register(this, this.__wbg_ptr, this);
94
94
  return this;
95
95
  }
@@ -127,7 +127,7 @@ export class Location {
127
127
  ptr1 = invariant.__destroy_into_raw();
128
128
  }
129
129
  const ret = wasm.location_new(ptr0, len0, is_initial, ptr1);
130
- this.__wbg_ptr = ret >>> 0;
130
+ this.__wbg_ptr = ret;
131
131
  LocationFinalization.register(this, this.__wbg_ptr, this);
132
132
  return this;
133
133
  }
@@ -171,7 +171,7 @@ export class Switch {
171
171
  const len2 = WASM_VECTOR_LEN;
172
172
  _assertClass(target, Location);
173
173
  const ret = wasm.switch_new(source.__wbg_ptr, ptr0, ptr1, len1, ptr2, len2, target.__wbg_ptr);
174
- this.__wbg_ptr = ret >>> 0;
174
+ this.__wbg_ptr = ret;
175
175
  SwitchFinalization.register(this, this.__wbg_ptr, this);
176
176
  return this;
177
177
  }
@@ -202,7 +202,7 @@ export class TimedAutomaton {
202
202
  const ptr2 = passArrayJsValueToWasm0(switches, wasm.__wbindgen_malloc);
203
203
  const len2 = WASM_VECTOR_LEN;
204
204
  const ret = wasm.timedautomaton_new(ptr0, len0, ptr1, len1, ptr2, len2);
205
- this.__wbg_ptr = ret >>> 0;
205
+ this.__wbg_ptr = ret;
206
206
  TimedAutomatonFinalization.register(this, this.__wbg_ptr, this);
207
207
  return this;
208
208
  }
@@ -234,11 +234,11 @@ export function findUnreachableLocations(ta) {
234
234
  _assertClass(ta, TimedAutomaton);
235
235
  var ptr0 = ta.__destroy_into_raw();
236
236
  const ret = wasm.findUnreachableLocations(ptr0);
237
- var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
237
+ var v2 = getArrayJsValueFromWasm0(ret[0], ret[1]);
238
238
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
239
239
  return v2;
240
240
  }
241
- export function __wbg___wbindgen_throw_df03e93053e0f4bc(arg0, arg1) {
241
+ export function __wbg___wbindgen_throw_bb96b2010945f0bc(arg0, arg1) {
242
242
  throw new Error(getStringFromWasm0(arg0, arg1));
243
243
  }
244
244
  export function __wbg_clause_unwrap(arg0) {
@@ -273,22 +273,22 @@ export function __wbindgen_init_externref_table() {
273
273
  }
274
274
  const ClauseFinalization = (typeof FinalizationRegistry === 'undefined')
275
275
  ? { register: () => {}, unregister: () => {} }
276
- : new FinalizationRegistry(ptr => wasm.__wbg_clause_free(ptr >>> 0, 1));
276
+ : new FinalizationRegistry(ptr => wasm.__wbg_clause_free(ptr, 1));
277
277
  const ClockFinalization = (typeof FinalizationRegistry === 'undefined')
278
278
  ? { register: () => {}, unregister: () => {} }
279
- : new FinalizationRegistry(ptr => wasm.__wbg_clock_free(ptr >>> 0, 1));
279
+ : new FinalizationRegistry(ptr => wasm.__wbg_clock_free(ptr, 1));
280
280
  const ClockConstraintFinalization = (typeof FinalizationRegistry === 'undefined')
281
281
  ? { register: () => {}, unregister: () => {} }
282
- : new FinalizationRegistry(ptr => wasm.__wbg_clockconstraint_free(ptr >>> 0, 1));
282
+ : new FinalizationRegistry(ptr => wasm.__wbg_clockconstraint_free(ptr, 1));
283
283
  const LocationFinalization = (typeof FinalizationRegistry === 'undefined')
284
284
  ? { register: () => {}, unregister: () => {} }
285
- : new FinalizationRegistry(ptr => wasm.__wbg_location_free(ptr >>> 0, 1));
285
+ : new FinalizationRegistry(ptr => wasm.__wbg_location_free(ptr, 1));
286
286
  const SwitchFinalization = (typeof FinalizationRegistry === 'undefined')
287
287
  ? { register: () => {}, unregister: () => {} }
288
- : new FinalizationRegistry(ptr => wasm.__wbg_switch_free(ptr >>> 0, 1));
288
+ : new FinalizationRegistry(ptr => wasm.__wbg_switch_free(ptr, 1));
289
289
  const TimedAutomatonFinalization = (typeof FinalizationRegistry === 'undefined')
290
290
  ? { register: () => {}, unregister: () => {} }
291
- : new FinalizationRegistry(ptr => wasm.__wbg_timedautomaton_free(ptr >>> 0, 1));
291
+ : new FinalizationRegistry(ptr => wasm.__wbg_timedautomaton_free(ptr, 1));
292
292
 
293
293
  function addToExternrefTable0(obj) {
294
294
  const idx = wasm.__externref_table_alloc();
@@ -322,8 +322,7 @@ function getDataViewMemory0() {
322
322
  }
323
323
 
324
324
  function getStringFromWasm0(ptr, len) {
325
- ptr = ptr >>> 0;
326
- return decodeText(ptr, len);
325
+ return decodeText(ptr >>> 0, len);
327
326
  }
328
327
 
329
328
  let cachedUint8ArrayMemory0 = null;
Binary file