timed-automata-analyzer 1.0.3 → 1.0.4
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/LICENSE
CHANGED
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* locations.</li>
|
|
20
20
|
* </ul>
|
|
21
21
|
*/
|
|
22
|
-
export function findUnreachableLocations(ta: TimedAutomaton):
|
|
22
|
+
export function findUnreachableLocations(ta: TimedAutomaton): string[];
|
|
23
23
|
export enum ClockComparator {
|
|
24
24
|
LESSER = 0,
|
|
25
25
|
LEQ = 1,
|
|
@@ -36,17 +36,17 @@ export class Clock {
|
|
|
36
36
|
}
|
|
37
37
|
export class ClockConstraint {
|
|
38
38
|
free(): void;
|
|
39
|
-
constructor(clauses:
|
|
39
|
+
constructor(clauses: Clause[]);
|
|
40
40
|
}
|
|
41
41
|
export class Location {
|
|
42
42
|
free(): void;
|
|
43
|
-
constructor(name: string, is_initial: boolean, invariant?: ClockConstraint);
|
|
43
|
+
constructor(name: string, is_initial: boolean, invariant?: ClockConstraint | null);
|
|
44
44
|
}
|
|
45
45
|
export class Switch {
|
|
46
46
|
free(): void;
|
|
47
|
-
constructor(source: Location, guard: ClockConstraint | undefined, action: string, reset:
|
|
47
|
+
constructor(source: Location, guard: ClockConstraint | null | undefined, action: string, reset: Clock[], target: Location);
|
|
48
48
|
}
|
|
49
49
|
export class TimedAutomaton {
|
|
50
50
|
free(): void;
|
|
51
|
-
constructor(locations:
|
|
51
|
+
constructor(locations: Location[], clocks: Clock[], switches: Switch[]);
|
|
52
52
|
}
|
|
@@ -105,9 +105,9 @@ function addToExternrefTable0(obj) {
|
|
|
105
105
|
|
|
106
106
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
107
107
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
108
|
-
const mem = getDataViewMemory0();
|
|
109
108
|
for (let i = 0; i < array.length; i++) {
|
|
110
|
-
|
|
109
|
+
const add = addToExternrefTable0(array[i]);
|
|
110
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
111
111
|
}
|
|
112
112
|
WASM_VECTOR_LEN = array.length;
|
|
113
113
|
return ptr;
|
|
@@ -146,7 +146,7 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
146
146
|
* locations.</li>
|
|
147
147
|
* </ul>
|
|
148
148
|
* @param {TimedAutomaton} ta
|
|
149
|
-
* @returns {
|
|
149
|
+
* @returns {string[]}
|
|
150
150
|
*/
|
|
151
151
|
export function findUnreachableLocations(ta) {
|
|
152
152
|
_assertClass(ta, TimedAutomaton);
|
|
@@ -260,7 +260,7 @@ export class ClockConstraint {
|
|
|
260
260
|
wasm.__wbg_clockconstraint_free(ptr, 0);
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
|
-
* @param {
|
|
263
|
+
* @param {Clause[]} clauses
|
|
264
264
|
*/
|
|
265
265
|
constructor(clauses) {
|
|
266
266
|
const ptr0 = passArrayJsValueToWasm0(clauses, wasm.__wbindgen_malloc);
|
|
@@ -299,7 +299,7 @@ export class Location {
|
|
|
299
299
|
/**
|
|
300
300
|
* @param {string} name
|
|
301
301
|
* @param {boolean} is_initial
|
|
302
|
-
* @param {ClockConstraint |
|
|
302
|
+
* @param {ClockConstraint | null} [invariant]
|
|
303
303
|
*/
|
|
304
304
|
constructor(name, is_initial, invariant) {
|
|
305
305
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -342,9 +342,9 @@ export class Switch {
|
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
344
|
* @param {Location} source
|
|
345
|
-
* @param {ClockConstraint | undefined} guard
|
|
345
|
+
* @param {ClockConstraint | null | undefined} guard
|
|
346
346
|
* @param {string} action
|
|
347
|
-
* @param {
|
|
347
|
+
* @param {Clock[]} reset
|
|
348
348
|
* @param {Location} target
|
|
349
349
|
*/
|
|
350
350
|
constructor(source, guard, action, reset, target) {
|
|
@@ -384,9 +384,9 @@ export class TimedAutomaton {
|
|
|
384
384
|
wasm.__wbg_timedautomaton_free(ptr, 0);
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
|
-
* @param {
|
|
388
|
-
* @param {
|
|
389
|
-
* @param {
|
|
387
|
+
* @param {Location[]} locations
|
|
388
|
+
* @param {Clock[]} clocks
|
|
389
|
+
* @param {Switch[]} switches
|
|
390
390
|
*/
|
|
391
391
|
constructor(locations, clocks, switches) {
|
|
392
392
|
const ptr0 = passArrayJsValueToWasm0(locations, wasm.__wbindgen_malloc);
|
|
Binary file
|