libpetri 3.0.1 → 4.1.0
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 +5 -1
- package/dist/{chunk-JZIEWVAV.js → chunk-FD3S4TZM.js} +1330 -1077
- package/dist/chunk-FD3S4TZM.js.map +1 -0
- package/dist/{chunk-6NH64RCU.js → chunk-GJAHGHGT.js} +2 -2
- package/dist/debug/index.d.ts +2 -2
- package/dist/doclet/index.d.ts +1 -1
- package/dist/doclet/resources/petrinet-diagrams.js +6364 -6360
- package/dist/{event-store-BFX_yJ8I.d.ts → event-store-B3ppVTpO.d.ts} +1 -1
- package/dist/export/index.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/{petri-net-WSScMyDL.d.ts → petri-net-p0ONpSAO.d.ts} +32 -2
- package/dist/render-dom/index.js +1 -1
- package/dist/verification/index.d.ts +307 -214
- package/dist/verification/index.js +39 -7
- package/dist/verification/index.js.map +1 -1
- package/dist/viewer/index.js +1 -1
- package/dist/viewer/viewer.iife.js +6364 -6360
- package/package.json +4 -7
- package/dist/chunk-JZIEWVAV.js.map +0 -1
- /package/dist/{chunk-6NH64RCU.js.map → chunk-GJAHGHGT.js.map} +0 -0
|
@@ -817,6 +817,24 @@ declare class InterfaceBuilder {
|
|
|
817
817
|
build(): Interface;
|
|
818
818
|
}
|
|
819
819
|
|
|
820
|
+
/**
|
|
821
|
+
* Analysis mode for environment places in state class graph construction.
|
|
822
|
+
*/
|
|
823
|
+
type EnvironmentAnalysisMode = {
|
|
824
|
+
readonly type: 'always-available';
|
|
825
|
+
} | {
|
|
826
|
+
readonly type: 'bounded';
|
|
827
|
+
readonly maxTokens: number;
|
|
828
|
+
} | {
|
|
829
|
+
readonly type: 'ignore';
|
|
830
|
+
};
|
|
831
|
+
/** Assumes environment places always have sufficient tokens. */
|
|
832
|
+
declare function alwaysAvailable(): EnvironmentAnalysisMode;
|
|
833
|
+
/** Analyzes with a bounded number of tokens in environment places. */
|
|
834
|
+
declare function bounded(maxTokens: number): EnvironmentAnalysisMode;
|
|
835
|
+
/** Treats environment places as regular places. */
|
|
836
|
+
declare function ignore(): EnvironmentAnalysisMode;
|
|
837
|
+
|
|
820
838
|
/**
|
|
821
839
|
* Safety properties that can be verified via IC3/PDR.
|
|
822
840
|
*
|
|
@@ -1202,7 +1220,19 @@ declare class SubnetDef<P = void> {
|
|
|
1202
1220
|
* {@link SmtVerificationResult}s
|
|
1203
1221
|
* @throws when an input or in-out port is missing a harness generator
|
|
1204
1222
|
*/
|
|
1205
|
-
verify(harness: VerificationHarness<P
|
|
1223
|
+
verify(harness: VerificationHarness<P>,
|
|
1224
|
+
/**
|
|
1225
|
+
* How injection into the synthetic environment places is modeled (VER-006,
|
|
1226
|
+
* MOD-051 AC3).
|
|
1227
|
+
*
|
|
1228
|
+
* The synthetic net has environment places by construction, so this decides what a
|
|
1229
|
+
* verdict means. The default over-approximates: a `proven` under
|
|
1230
|
+
* `alwaysAvailable()` holds for any environment. Pass `bounded(k)` to prove a
|
|
1231
|
+
* property that holds only when the environment injects at most `k` tokens.
|
|
1232
|
+
* `ignore()` is accepted but cannot yield `proven` — VER-006 refuses to certify a
|
|
1233
|
+
* proof that holds only because injection was never modeled.
|
|
1234
|
+
*/
|
|
1235
|
+
environmentMode?: EnvironmentAnalysisMode): Promise<VerificationResult>;
|
|
1206
1236
|
static builder<P = void>(name: string): SubnetDefBuilder<P>;
|
|
1207
1237
|
/**
|
|
1208
1238
|
* Retrofit utility per **MOD-014**: wraps an existing closed {@link PetriNet}
|
|
@@ -1796,4 +1826,4 @@ declare class PetriNetBuilder {
|
|
|
1796
1826
|
private buildWithFusion;
|
|
1797
1827
|
}
|
|
1798
1828
|
|
|
1799
|
-
export { type VerificationHarness as $, type Arc as A, type Port as B, type Channel as C, type PortDirection as D, type EnvironmentPlace as E, FusionSet as F, SubnetDefBuilder as G, type SubnetInstance as H, type In as I, type Timing as J, type KeyFn as K, type LogFn as L, MAX_DURATION_MS as M, type NameId as N, type Out as O, PetriNet as P, type TimingDeadline as Q, type TimingDelayed as R, SubnetDef as S, type Token as T, type TimingExact as U, type TimingImmediate as V, type TimingWindow as W, TokenInput as X, TokenOutput as Y, type TransitionAction as Z, TransitionBuilder as _, type Place as a, type
|
|
1829
|
+
export { type VerificationHarness as $, type Arc as A, type Port as B, type Channel as C, type PortDirection as D, type EnvironmentPlace as E, FusionSet as F, SubnetDefBuilder as G, type SubnetInstance as H, type In as I, type Timing as J, type KeyFn as K, type LogFn as L, MAX_DURATION_MS as M, type NameId as N, type Out as O, PetriNet as P, type TimingDeadline as Q, type TimingDelayed as R, SubnetDef as S, type Token as T, type TimingExact as U, type TimingImmediate as V, type TimingWindow as W, TokenInput as X, TokenOutput as Y, type TransitionAction as Z, TransitionBuilder as _, type Place as a, type TokenSupplier as a$, type VerificationResult as a0, all as a1, allPlaces as a2, and as a3, andPlaces as a4, arcPlace as a5, atLeast as a6, consumptionCount as a7, deadline as a8, delayed as a9, requiredCount as aA, resetArc as aB, timeout as aC, timeoutPlace as aD, tokenAt as aE, tokenOf as aF, transform as aG, transformAsync as aH, transformFrom as aI, unitToken as aJ, window as aK, withTimeout as aL, xor as aM, xorPlaces as aN, type EnvironmentAnalysisMode as aO, type PInvariant as aP, MarkingState as aQ, type SmtProperty as aR, MarkingStateBuilder as aS, type SmtVerificationResult as aT, type BranchPlaceBound as aU, type DeadlockFree as aV, type JoinedOrDeadLettered as aW, type MutualExclusion as aX, type PlaceBound as aY, type Proven as aZ, type SmtStatistics as a_, earliest as aa, enumerateBranches as ab, environmentPlace as ac, exact as ad, exactly as ae, fork as af, forwardInput as ag, hasDeadline as ah, immediate as ai, inhibitorArc as aj, inputArc as ak, isPassthrough as al, isUnit as am, keyForPlace as an, latest as ao, matchCorrelates as ap, matchKey as aq, matchSpec as ar, nameId as as, one as at, outPlace as au, outputArc as av, passthrough as aw, place as ax, produce as ay, readArc as az, Transition as b, type Unknown as b0, type Unreachable as b1, type Verdict as b2, type Violated as b3, alwaysAvailable as b4, bounded as b5, ignore as b6, branchPlaceBound as b7, deadlockFree as b8, isProven as b9, isViolated as ba, joinedOrDeadLettered as bb, mutualExclusion as bc, pInvariant as bd, pInvariantToString as be, placeBound as bf, propertyDescription as bg, unreachable as bh, TransitionContext as c, type ArcInhibitor as d, type ArcInput as e, type ArcOutput as f, type ArcRead as g, type ArcReset as h, ComposeBindings as i, FusionSetBuilder as j, type InAll as k, type InAtLeast as l, type InExactly as m, type InOne as n, Instance as o, Interface as p, InterfaceBuilder as q, type MatchKey as r, type MatchSpec as s, type OutAnd as t, type OutForwardInput as u, type OutPlace as v, type OutTimeout as w, type OutXor as x, type OutputEntry as y, PetriNetBuilder as z };
|