From 6410e8c242d50eb0571d0e6feea4526979c8b0b2 Mon Sep 17 00:00:00 2001 From: gareuselesinge Date: Fri, 9 Aug 2013 06:09:52 +0000 Subject: state_id data type (this should have been the first commit of Paral-ITP) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16688 85f007b7-540e-0410-9357-904b9bb8a0f7 --- lib/stateid.mli | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/stateid.mli (limited to 'lib/stateid.mli') diff --git a/lib/stateid.mli b/lib/stateid.mli new file mode 100644 index 000000000..978f12691 --- /dev/null +++ b/lib/stateid.mli @@ -0,0 +1,31 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* state_id +val string_of_state_id : state_id -> string +val state_id_of_int : int -> state_id +val int_of_state_id : state_id -> int +val newer_than : state_id -> state_id -> bool + +(* XML marshalling *) +val of_state_id : state_id -> xml +val to_state_id : xml -> state_id + +(* Attaches to an exception the concerned state id, plus an optional + * state id that is a valid state id before the error. + * Backtracking to the valid id is safe. + * The initial_state_id is assumed to be safe. *) +val add_state_id : exn -> ?valid:state_id -> state_id -> exn +val get_state_id : exn -> (state_id * state_id) option + +module StateidOrderedType : Map.OrderedType with type t = state_id -- cgit v1.2.3