gdp-wired 0.13.2 → 0.13.3
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/dist/core/dsl.d.ts +2 -2
- package/dist/core/dsl.js +3 -2
- package/package.json +1 -1
package/dist/core/dsl.d.ts
CHANGED
|
@@ -132,8 +132,8 @@ export declare class Choice<K extends string> {
|
|
|
132
132
|
is(k: K): Cond;
|
|
133
133
|
of(k: K): Choice<K>;
|
|
134
134
|
get index(): Term;
|
|
135
|
-
eq(o: K | Choice<K> | number): Cond;
|
|
136
|
-
ne(o: K | Choice<K> | number): Cond;
|
|
135
|
+
eq(o: K | Choice<K> | number | Term): Cond;
|
|
136
|
+
ne(o: K | Choice<K> | number | Term): Cond;
|
|
137
137
|
private indexOf;
|
|
138
138
|
match(cases: {
|
|
139
139
|
[k in K]: () => Cond;
|
package/dist/core/dsl.js
CHANGED
|
@@ -358,8 +358,9 @@ export class Choice {
|
|
|
358
358
|
of(k) { return new Choice(lit(this.indexOf(k)), this.values); }
|
|
359
359
|
// Its index among the values, in the order declared (oneOf('new', 'paid'): new is 0), as a term.
|
|
360
360
|
get index() { return this.n; }
|
|
361
|
-
// The same value as a name, another choice of the kind, or an index: status.eq('paid'),
|
|
362
|
-
eq(
|
|
361
|
+
// The same value as a name, another choice of the kind, or an index (a number or a natural term): status.eq('paid'),
|
|
362
|
+
// a.phase.eq(b.phase), phase.eq(3), phase.eq(when(c, 2, phase.index)).
|
|
363
|
+
eq(o) { return typeof o === 'string' ? this.is(o) : o instanceof Choice ? this.n.eq(o.n) : this.n.eq(o); }
|
|
363
364
|
ne(o) { return this.eq(o).not(); }
|
|
364
365
|
indexOf(k) {
|
|
365
366
|
const i = this.values.indexOf(k);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdp-wired",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "An automatic prover for stateful rules (budgets, caps, windows, workflows, policies): laws proven with no proof to write, checked again in Lean, counterexamples found on the GPU, the rule shipped as code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"verification",
|