[sledge] Add Var.of_trm

Reviewed By: ngorogiannis

Differential Revision: D24532352

fbshipit-source-id: 829a76ebe
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 4756316217
commit 84234b7d37

@ -18,6 +18,7 @@ module rec Var : sig
include Ses.Var_intf.VAR with type t = private Trm.t
val of_ : Trm.t -> t
val of_trm : Trm.t -> t option
end = struct
module T = struct
type t = Trm.t [@@deriving compare, equal, sexp]
@ -36,6 +37,7 @@ end = struct
include Ses.Var0.Make (T)
let of_ v = v |> check T.invariant
let of_trm = function Trm.Var _ as v -> Some v | _ -> None
end
and Arith0 :

@ -36,6 +36,7 @@ module Var : sig
include Ses.Var_intf.VAR with type t = private trm
val of_ : trm -> t
val of_trm : trm -> t option
end
module Arith :

Loading…
Cancel
Save