everystate 0.1.0 → 0.3.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/README.md +121 -86
- package/bin/everystate.mjs +35 -0
- package/native/darwin-arm64/everystate +0 -0
- package/native/darwin-x64/everystate +0 -0
- package/native/linux-arm64/everystate +0 -0
- package/native/linux-x64/everystate +0 -0
- package/native/win32-x64/everystate.exe +0 -0
- package/package.json +29 -24
- package/skills/formal-verification/SKILL.md +115 -0
- package/skills/formal-verification/example/Charge.cfg +7 -0
- package/skills/formal-verification/example/Charge.tla +61 -0
- package/skills/formal-verification/example/ChargeBroken.cfg +7 -0
- package/wasm/cli.mjs +26 -0
- package/wasm/everystate.d.ts +33 -0
- package/wasm/everystate.mjs +112 -0
- package/wasm/everystate.wasm +0 -0
- package/CONFORMANCE.md +0 -64
- package/dist/bundled.d.ts +0 -1
- package/dist/bundled.js +0 -2
- package/dist/cfg.d.ts +0 -24
- package/dist/cfg.js +0 -252
- package/dist/checker.d.ts +0 -96
- package/dist/checker.js +0 -520
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -4
- package/dist/community.d.ts +0 -17
- package/dist/community.js +0 -1381
- package/dist/entry.d.ts +0 -2
- package/dist/entry.js +0 -39
- package/dist/eval.d.ts +0 -119
- package/dist/eval.js +0 -1533
- package/dist/index.d.ts +0 -33
- package/dist/index.js +0 -24
- package/dist/java.d.ts +0 -2
- package/dist/java.js +0 -6
- package/dist/lexer.d.ts +0 -17
- package/dist/lexer.js +0 -255
- package/dist/liveness.d.ts +0 -80
- package/dist/liveness.js +0 -855
- package/dist/main.d.ts +0 -40
- package/dist/main.js +0 -494
- package/dist/model.d.ts +0 -56
- package/dist/model.js +0 -582
- package/dist/modules.d.ts +0 -91
- package/dist/modules.js +0 -649
- package/dist/node-host.d.ts +0 -2
- package/dist/node-host.js +0 -25
- package/dist/parser.d.ts +0 -30
- package/dist/parser.js +0 -1114
- package/dist/pprint.d.ts +0 -7
- package/dist/pprint.js +0 -647
- package/dist/stdlib.d.ts +0 -14
- package/dist/stdlib.js +0 -588
- package/dist/values.d.ts +0 -150
- package/dist/values.js +0 -822
package/dist/values.d.ts
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { TlaError } from './lexer.ts';
|
|
2
|
-
export type Value = any;
|
|
3
|
-
export declare class EvalError extends TlaError {
|
|
4
|
-
constructor(msg: string);
|
|
5
|
-
}
|
|
6
|
-
export declare function strId(s: string): number;
|
|
7
|
-
export declare function resetInterning(): void;
|
|
8
|
-
export declare class ModelValue {
|
|
9
|
-
name: string;
|
|
10
|
-
id: number;
|
|
11
|
-
type: string | null;
|
|
12
|
-
constructor(name: string, id: number);
|
|
13
|
-
}
|
|
14
|
-
export declare function modelValue(name: string): ModelValue;
|
|
15
|
-
export declare function allModelValues(): ModelValue[];
|
|
16
|
-
export declare class TupleV {
|
|
17
|
-
e: Value[];
|
|
18
|
-
constructor(e: Value[]);
|
|
19
|
-
}
|
|
20
|
-
export declare class RecordV {
|
|
21
|
-
names: string[];
|
|
22
|
-
vals: Value[];
|
|
23
|
-
constructor(names: string[], vals: Value[]);
|
|
24
|
-
get(name: string): Value | undefined;
|
|
25
|
-
}
|
|
26
|
-
export declare class FcnV {
|
|
27
|
-
dom: Value[];
|
|
28
|
-
vals: Value[];
|
|
29
|
-
constructor(dom: Value[], vals: Value[]);
|
|
30
|
-
}
|
|
31
|
-
export declare const EMPTY_TUPLE: TupleV;
|
|
32
|
-
export declare abstract class SetBase {
|
|
33
|
-
abstract contains(v: Value): boolean;
|
|
34
|
-
abstract elems(): Value[];
|
|
35
|
-
enumerable(): boolean;
|
|
36
|
-
size(): number;
|
|
37
|
-
}
|
|
38
|
-
export declare class SetV extends SetBase {
|
|
39
|
-
e: Value[];
|
|
40
|
-
constructor(sortedElems: Value[]);
|
|
41
|
-
contains(v: Value): boolean;
|
|
42
|
-
elems(): Value[];
|
|
43
|
-
size(): number;
|
|
44
|
-
}
|
|
45
|
-
export declare const EMPTY_SET: SetV;
|
|
46
|
-
export declare const BOOLEAN_SET: SetV;
|
|
47
|
-
export declare class IntervalV extends SetBase {
|
|
48
|
-
lo: number;
|
|
49
|
-
hi: number;
|
|
50
|
-
private cache;
|
|
51
|
-
constructor(lo: number, hi: number);
|
|
52
|
-
contains(v: Value): boolean;
|
|
53
|
-
elems(): Value[];
|
|
54
|
-
size(): number;
|
|
55
|
-
}
|
|
56
|
-
export declare class SubsetV extends SetBase {
|
|
57
|
-
base: SetBase;
|
|
58
|
-
private cache;
|
|
59
|
-
constructor(base: SetBase);
|
|
60
|
-
contains(v: Value): boolean;
|
|
61
|
-
enumerable(): boolean;
|
|
62
|
-
size(): number;
|
|
63
|
-
elems(): Value[];
|
|
64
|
-
}
|
|
65
|
-
export declare class FcnSetV extends SetBase {
|
|
66
|
-
dom: SetBase;
|
|
67
|
-
rng: SetBase;
|
|
68
|
-
private cache;
|
|
69
|
-
constructor(dom: SetBase, rng: SetBase);
|
|
70
|
-
contains(v: Value): boolean;
|
|
71
|
-
enumerable(): boolean;
|
|
72
|
-
size(): number;
|
|
73
|
-
elems(): Value[];
|
|
74
|
-
}
|
|
75
|
-
export declare class RecSetV extends SetBase {
|
|
76
|
-
names: string[];
|
|
77
|
-
sets: SetBase[];
|
|
78
|
-
private cache;
|
|
79
|
-
constructor(names: string[], sets: SetBase[]);
|
|
80
|
-
contains(v: Value): boolean;
|
|
81
|
-
enumerable(): boolean;
|
|
82
|
-
size(): number;
|
|
83
|
-
elems(): Value[];
|
|
84
|
-
}
|
|
85
|
-
export declare class CrossV extends SetBase {
|
|
86
|
-
sets: SetBase[];
|
|
87
|
-
private cache;
|
|
88
|
-
constructor(sets: SetBase[]);
|
|
89
|
-
contains(v: Value): boolean;
|
|
90
|
-
enumerable(): boolean;
|
|
91
|
-
size(): number;
|
|
92
|
-
elems(): Value[];
|
|
93
|
-
}
|
|
94
|
-
export declare class SeqSetV extends SetBase {
|
|
95
|
-
base: SetBase;
|
|
96
|
-
constructor(base: SetBase);
|
|
97
|
-
contains(v: Value): boolean;
|
|
98
|
-
enumerable(): boolean;
|
|
99
|
-
elems(): Value[];
|
|
100
|
-
}
|
|
101
|
-
export declare class InfSetV extends SetBase {
|
|
102
|
-
kind: 'Nat' | 'Int' | 'Real' | 'STRING';
|
|
103
|
-
constructor(kind: 'Nat' | 'Int' | 'Real' | 'STRING');
|
|
104
|
-
contains(v: Value): boolean;
|
|
105
|
-
enumerable(): boolean;
|
|
106
|
-
elems(): Value[];
|
|
107
|
-
}
|
|
108
|
-
export declare class LazySetV extends SetBase {
|
|
109
|
-
private d;
|
|
110
|
-
get desc(): string;
|
|
111
|
-
pred: (v: Value) => boolean;
|
|
112
|
-
constructor(desc: string | (() => string), pred: (v: Value) => boolean);
|
|
113
|
-
contains(v: Value): boolean;
|
|
114
|
-
enumerable(): boolean;
|
|
115
|
-
elems(): Value[];
|
|
116
|
-
}
|
|
117
|
-
export declare class DerivedSetV extends SetBase {
|
|
118
|
-
private d;
|
|
119
|
-
get desc(): string;
|
|
120
|
-
pred: (v: Value) => boolean;
|
|
121
|
-
gen: (() => Value[]) | null;
|
|
122
|
-
private cache;
|
|
123
|
-
constructor(desc: string | (() => string), pred: (v: Value) => boolean, gen: (() => Value[]) | null);
|
|
124
|
-
contains(v: Value): boolean;
|
|
125
|
-
enumerable(): boolean;
|
|
126
|
-
elems(): Value[];
|
|
127
|
-
}
|
|
128
|
-
export declare function compare(a: Value, b: Value): number;
|
|
129
|
-
export declare function valEq(a: Value, b: Value): boolean;
|
|
130
|
-
export declare function setEq(a: SetBase, b: SetBase): boolean;
|
|
131
|
-
export declare function bsearch(arr: Value[], v: Value): number;
|
|
132
|
-
export declare function sortDedup(a: Value[]): Value[];
|
|
133
|
-
export declare function mkSet(elems: Value[]): SetV;
|
|
134
|
-
export declare function makeFcn(dom: Value[], vals: Value[]): Value;
|
|
135
|
-
export declare function makeFcnFromPairs(pairs: [Value, Value][]): Value;
|
|
136
|
-
export declare function makeRecord(names: string[], vals: Value[]): RecordV;
|
|
137
|
-
export declare function isFcn(v: Value): boolean;
|
|
138
|
-
export declare function domainElems(f: Value): Value[];
|
|
139
|
-
export declare function domainOf(f: Value): SetBase | null;
|
|
140
|
-
export declare function fcnValues(f: Value): Value[];
|
|
141
|
-
export declare class Hasher {
|
|
142
|
-
h1: number;
|
|
143
|
-
h2: number;
|
|
144
|
-
reset(): void;
|
|
145
|
-
add(x: number): void;
|
|
146
|
-
value(v: Value): void;
|
|
147
|
-
finish(): void;
|
|
148
|
-
}
|
|
149
|
-
export declare function fmt(v: Value): string;
|
|
150
|
-
export declare function isSet(v: Value): v is SetBase;
|