package electrod

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

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-0.9.0.tbz
sha256=b2263601350f2ffe3cb1671d8bdd256729986b248c1ec39e84ec76a2f2b8408c
sha512=f4c0e7a196c7a14fff51e7f0cc6f91ed8b3df965523d878ab507320f9771ec69efddb31252ff9763ed2f92bc8c369cea73ca20edebbc3c9ff327fe500f33bdf0

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

Module Libelectrod.InstanceSource

An instance is a set of relations whose value is a fixed tuple set.

Sourcetype t

Virtually: a map between relation names and sets of tuples.

Sourceval empty : t

Constructor.

Sourceval add : Name.t -> Tuple_set.t -> t -> t

Adds an association to the instance. The name must not be in the instance already.

Sourceval mem : Name.t -> t -> bool

Checks whether a name is already bound in the map.

Accessors

Sourceval get_exn : Name.t -> t -> Tuple_set.t

May raise Not_found. IT MAY BE BETTER TO RETURN AN EXACT SCOPE OR EVEN A RELATION (TO BE DECIDED WHEN INSTANCES ARE USED IN THE TRANSLATION)

Sourceval get : Name.t -> t -> Tuple_set.t option

May rather return None. IT MAY BE BETTER TO RETURN AN EXACT SCOPE OR EVEN A RELATION (TO BE DECIDED WHEN INSTANCES ARE USED IN THE TRANSLATION)

Sourceval to_list : t -> (Name.t * Tuple_set.t) list

Returns the map as an association list. IT MAY BE BETTER TO RETURN AN EXACT SCOPE OR EVEN A RELATION (TO BE DECIDED WHEN INSTANCES ARE USED IN THE TRANSLATION)

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. Accessors