Module Bigraph.Rs_intf

module type L = sig ... end

Input signature of functor Rs.Make representing the type of computation limit (i.e. discrete or dense time).

module type Weighted = sig ... end

Descriptor for the weighted transition-system body G_weighted: the family's name and to_txt header, and how to print and order the label (PRISM edges, to_txt and dot labels).

type rs_type =
  1. | BRS
    (*

    Bigraphical Reactive Systems

    *)
  2. | PBRS
    (*

    Probabilistic Bigraphical Reactive Systems

    *)
  3. | SBRS
    (*

    Stochastic Bigraphical Reactive Systems

    *)
  4. | ABRS
    (*

    Action (Nondeterministic) Bigraphical Reactive Systems

    *)

Type for the kind of reactive system.

type key_collision = {
  1. key : int;
    (*

    The shared 30-bit key, i.e. the value of Big.key.

    *)
  2. states : int;
    (*

    Number of distinct states under this key

    *)
  3. distinct_fps : int;
    (*

    Distinct fingerprints under this key (iso-test classes)

    *)
  4. state_ids : int list;
    (*

    State ids under this key, ascending

    *)
}

The distinct states sharing one 30-bit structural key (Big.key). The key is a 30-bit hash (OCaml's generic hash), so distinct isomorphism classes can share one; top lists the most-occupied colliding keys with their state ids. distinct_fps counts the distinct 31-bit structural fingerprints (!val:Big.fp) under the key: the iso tests the pre-filter leaves to run for that key.

val key_collision_to_yojson : key_collision -> Yojson.Safe.t
type key_collisions = {
  1. colliding_keys : int;
    (*

    Keys shared by >= 2 distinct states

    *)
  2. collision_pairs : int;
    (*

    Sum, over colliding keys, of the state pairs sharing it

    *)
  3. pairs_true : int;
    (*

    The pairs of those whose fingerprints are equal: the iso tests the fingerprint pre-filter leaves to run

    *)
  4. max_per_key : int;
    (*

    Most distinct states under a single key

    *)
  5. top : key_collision list;
    (*

    The up to five most-occupied colliding keys

    *)
  6. iso_tests : int;
    (*

    Isomorphism tests run while classifying states

    *)
  7. fp_rejected : int;
    (*

    Bucket candidates rejected by the fingerprint: iso tests the pre-filter skipped

    *)
  8. wl_rejected : int;
    (*

    Equal-fingerprint candidates rejected by the WL gate: iso tests the pre-filter skipped

    *)
}
val key_collisions_to_yojson : key_collisions -> Yojson.Safe.t
val _ : key_collisions -> Yojson.Safe.t
type stats = {
  1. time : float;
    (*

    Build time

    *)
  2. states : int;
    (*

    Number of states

    *)
  3. trans : int;
    (*

    Number of transitions

    *)
  4. occs : int;
    (*

    Number of occurrences

    *)
  5. internal : Stdlib.Hashtbl.statistics;
    (*

    Internal storage statistics from state deduplication

    *)
  6. mean_size : float;
    (*

    States mean size

    *)
  7. mean_size_match : float;
    (*

    Matches mean size

    *)
  8. key_collisions : key_collisions;
    (*

    30-bit key collisions among the states

    *)
}

The type of execution and rewrite statistics.

type pred_entry = {
  1. base : Predicate.t * Big.t;
    (*

    Checked against every state.

    *)
  2. variants : (Predicate.t * Big.t) list;
    (*

    Per-value patterns, checked only where the base occurs.

    *)
}

Predicate entry for RS.bfs and RS.sim. base is checked against every state. For a plain predicate variants is empty and the base's predicate is recorded for every matching state. For a factored BRS family base is the single bracket-guarded pattern and variants holds one named concrete pattern per family member: each variant is checked only for the states where base occurs, and its predicate is what the transition system records, so the labels hold one entry per member value.

module type RS = sig ... end

Output signature of functor Rs.Make.

module type MAKER = functor (_ : Solver.M) -> functor (R : React.T) -> functor (_ : Priority.P with type r_t := R.t and type r_label := R.label) -> functor (L : L with type label := R.label) -> functor (G : Ts.S with type label := R.label) -> RS with type react = R.t and type label = R.label and type graph = G.t and type limit = L.t

Functor building a concrete implementation of a reactive system.

module type Intf = sig ... end