blob: 6295059a8d7fbf7de09414633485a1cbb72f5d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
(* Certification of Imperative Programs / Jean-Christophe Filliâtre *)
(* $Id$ *)
open Names
(* The abstract type of effects *)
type t
val bottom : t
val add_read : identifier -> t -> t
val add_write : identifier -> t -> t
val get_reads : t -> identifier list
val get_writes : t -> identifier list
val get_repr : t -> (identifier list) * (identifier list)
val is_read : t -> identifier -> bool (* read-only *)
val is_write : t -> identifier -> bool (* read-write *)
val compose : t -> t -> t
val union : t -> t -> t
val disj : t -> t -> t
val remove : t -> identifier -> t
val subst : (identifier * identifier) list -> t -> t
val pp : t -> Pp.std_ppcmds
val ppr : t -> unit
|