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/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