aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/constr.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-09-01 17:52:44 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-11-08 18:35:12 +0100
commita42795cc1c2a8ed3efa9960af920ff7b16d928f0 (patch)
tree94afab156f907e5576091fdebe4b227346440dba /kernel/constr.ml
parent6b99de706e37c75407373e756e24f2256b848815 (diff)
Introducing a new EConstr.t type to perform the nf_evar operation on demand.
Diffstat (limited to 'kernel/constr.ml')
-rw-r--r--kernel/constr.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/constr.ml b/kernel/constr.ml
index ce20751ab..0ae3fb474 100644
--- a/kernel/constr.ml
+++ b/kernel/constr.ml
@@ -235,6 +235,12 @@ let mkVar id = Var id
let kind c = c
+(* The other way around. We treat specifically smart constructors *)
+let of_kind = function
+| App (f, a) -> mkApp (f, a)
+| Cast (c, knd, t) -> mkCast (c, knd, t)
+| k -> k
+
(****************************************************************************)
(* Functions to recur through subterms *)
(****************************************************************************)