package electrod

  1. Overview
  2. Docs
Formal analysis for the Electrod formal pivot language

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-1.0.0.tbz
sha256=4da251e58d97c797d6e940e586d225a09715777fbb1b25c5527a6a2e1e3c2d58
sha512=89c45ebd0d3401b17eac4217289ed21ec87135ab5fa62bf63b2bed1ad1435a381e3434582c2ec99c2e6d8d87ce23cecfa7ba14d76234493992ae06879b808dd2

doc/electrod.libelectrod/Libelectrod/Scope/index.html

Module Libelectrod.ScopeSource

Relation scopes.

Sourcetype relation = private
  1. | Plain_relation of Tuple_set.t * Tuple_set.t
    (*

    inv: inf in sup

    *)
  2. | Partial_function of int * Tuple_set.t
    (*

    int is the domain arity (inv: >= 0); inf = empty

    *)
  3. | Total_function of int * Tuple_set.t
    (*

    int is the domain arity (inv: >= 0); inf = empty

    *)
Sourcetype t = private
  1. | Exact of Tuple_set.t
    (*

    means: lower bound = upper bound

    *)
  2. | Inexact of relation

Constructors

Sourceval exact : Tuple_set.t -> t
Sourceval plain_relation : Tuple_set.t -> Tuple_set.t -> relation
Sourceval partial_function : int -> Tuple_set.t -> relation
Sourceval total_function : int -> Tuple_set.t -> relation
Sourceval inexact : relation -> t
Sourceval equal : t -> t -> bool
Sourceval included_in : Tuple_set.t -> t -> bool

included_in ts scope tells whether ts is in the scope (meaning it also contains the lower bound of the scope if the latter is inexact.)

Sourceval inf : t -> Tuple_set.t

Return the inf and sup bounds of the scope.

Sourceval sup : t -> Tuple_set.t
Sourceval must : t -> Tuple_set.t

Return the must and may (= sup - inf; computation is cached) bounds of the scope.

Sourceval may : t -> Tuple_set.t
Sourceval is_partial : t -> bool
Sourceval inferred_arity : t -> int

0 if the arity cannot be inferred (= is unknown), n > 0 otherwise.

include Intf.Print.S with type t := t
Sourceval pp : t Fmtc.t
Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.

On This Page
  1. Constructors