https://github.com/EasyCrypt/easycrypt
Revision a722c7a3976a1784e00d97e97cc69849f5e55462 authored by Pierre-Yves Strub on 16 December 2015, 16:17:34 UTC, committed by Pierre-Yves Strub on 16 December 2015, 16:17:42 UTC
1 parent 62ee9c8
Raw File
Tip revision: a722c7a3976a1784e00d97e97cc69849f5e55462 authored by Pierre-Yves Strub on 16 December 2015, 16:17:34 UTC
ambient `auto`: do not fail on first non-applicable lemma in the db.
Tip revision: a722c7a
ecUid.mli
(* --------------------------------------------------------------------
 * Copyright (c) - 2012--2015 - IMDEA Software Institute
 * Copyright (c) - 2012--2015 - Inria
 * 
 * Distributed under the terms of the CeCILL-C-V1 license
 * -------------------------------------------------------------------- *)

(* -------------------------------------------------------------------- *)
open EcMaps
open EcSymbols

(* -------------------------------------------------------------------- *)
val unique : unit -> int

(* -------------------------------------------------------------------- *)
type uid = int
type uidmap

val create : unit -> uidmap
val lookup : uidmap -> symbol -> uid option
val forsym : uidmap -> symbol -> uid

(* -------------------------------------------------------------------- *)
val uid_equal   : uid -> uid -> bool
val uid_compare : uid -> uid -> int

module Muid : Map.S  with type key = uid
module Suid : Set.S  with module M = Map.MakeBase(Muid)

(* -------------------------------------------------------------------- *)
module NameGen : sig
  type t

  val ofint  : int -> string
  val bulk   : ?fmt:(string -> string) -> int -> string list
  val create : unit -> t
  val get    : t -> uid -> string
end
back to top