[sledge] Make name arg of Var.identified non-optional

Reviewed By: jvillard

Differential Revision: D27262515

fbshipit-source-id: fa9bafd30
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 018c738499
commit c531096f97

@ -167,7 +167,7 @@ module Var = struct
let freshen v ~wrt = fresh (name v) ~wrt let freshen v ~wrt = fresh (name v) ~wrt
let identified ?(name = "") ~id = let identified ~name ~id =
assert (id > 0) ; assert (id > 0) ;
make ~id:(id - Int.max_int) ~name make ~id:(id - Int.max_int) ~name

@ -33,9 +33,9 @@ module type S = sig
val name : t -> string val name : t -> string
val fresh : string -> wrt:Set.t -> t * Set.t val fresh : string -> wrt:Set.t -> t * Set.t
val identified : ?name:string -> id:int -> t val identified : name:string -> id:int -> t
(** Create a variable identified by [id] with optional [name]. The [id] (** Create a variable identified by [id]. The [id] uniquely identifies the
uniquely identifies the variable, and must be positive. *) variable, and must be positive. *)
(** Variable renaming substitutions *) (** Variable renaming substitutions *)
module Subst : Subst.S with type var := t with type set := Set.t module Subst : Subst.S with type var := t with type set := Set.t

Loading…
Cancel
Save