package electrod

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

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-0.4.1.tbz
sha256=b0bce9cc7126672feda5a02d5ef0c1131ba54db57654f80c0768c2f8d043cef9
sha512=92cc22f81522435e190039324767b6f69fa0b7d9dbfc3fb5561919823136fe492244dae993caf98633828e0090b67f306eec6270b86a1b2ff8630642130a3081

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

Module Libelectrod.RawSource

Type for "raw" ASTs yielded by the Electrod parser.

Sourcetype raw_problem = {
  1. file : string option;
  2. raw_univ : raw_urelements list;
  3. raw_decls : raw_declaration list;
    (*

    does not contain 'univ'

    *)
  4. raw_goal : raw_goal;
  5. raw_invar : raw_block;
    (*

    may be empty

    *)
  6. raw_inst : raw_assignment list;
    (*

    may be empty

    *)
  7. raw_syms : raw_symmetry list;
    (*

    may be empty

    *)
}
Sourceand raw_urelements = private
  1. | UIntvl of raw_interval
  2. | UPlain of Raw_ident.t
Sourceand raw_declaration = private
  1. | DConst of Raw_ident.t * int option * raw_scope
  2. | DVar of Raw_ident.t * int option * raw_scope * raw_scope option

The int option is the optionally-declared arity (compulsory for an empty scope).

Sourceand raw_multiplicity = [ `Lone | `One ] option
Sourceand raw_scope = private
  1. | SExact of raw_bound
  2. | SInexact of raw_bound * raw_multiplicity * raw_bound
Sourceand raw_bound = private
  1. | BUniv
  2. | BRef of Raw_ident.t
    (*

    reference to a previously-defined set

    *)
  3. | BProd of raw_bound * raw_multiplicity * raw_bound
    (*

    None/Some (lone/one)

    *)
  4. | BUnion of raw_bound * raw_bound
  5. | BElts of raw_element list
Sourceand raw_element = private
  1. | EIntvl of raw_interval
    (*

    1-tuples

    *)
  2. | ETuple of raw_tuple
Sourceand raw_tuple = Raw_ident.t list

A n-tuple (incl. n = 1). inv: nonempty list

Sourceand raw_interval = Raw_ident.t * Raw_ident.t
Sourceand raw_assignment = Raw_ident.t * raw_tuple list

asignemnt of tuples to a relation

may be empty

Sourceand raw_symmetry = (Raw_ident.t * raw_tuple) list * (Raw_ident.t * raw_tuple) list
Sourcetype raw_paragraph =
  1. | ParGoal of raw_goal
  2. | ParInst of raw_assignment list
  3. | ParSym of raw_symmetry list
  4. | ParInv of raw_block

This definition is here just to be used in the parser ((to avoid cyclic dependencies). The puprose of paragraphs is to deal easily and efficiently with permutation of these (see Parse_main for more information).)

Constructors

Sourceval etuple : Raw_ident.t list -> raw_element
Sourceval buniv : raw_bound
Sourceval belts : raw_element list -> raw_bound
Sourceval sexact : raw_bound -> raw_scope
Sourceval dconst : Raw_ident.t -> int option -> raw_scope -> raw_declaration
Sourceval dvar : Raw_ident.t -> int option -> raw_scope -> raw_scope option -> raw_declaration
Sourceval problem : string option -> raw_urelements list -> raw_declaration list -> raw_goal -> raw_block -> raw_assignment list -> raw_symmetry list -> raw_problem

Accessors

OCaml

Innovation. Community. Security.