aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/closure.ml1
-rw-r--r--kernel/closure.mli1
2 files changed, 2 insertions, 0 deletions
diff --git a/kernel/closure.ml b/kernel/closure.ml
index 2f83657d06..9725e779cc 100644
--- a/kernel/closure.ml
+++ b/kernel/closure.ml
@@ -968,6 +968,7 @@ let contract_fix_vect fix =
constructor, cofix, letin, constant), or a neutral term (product,
inductive) *)
let rec knh m stk =
+ if is_val m then (incr prune; (m,stk)) else
match m.term with
| FLIFT(k,a) -> knh a (zshift k stk)
| FCLOS(t,e) -> knht e t (zupdate m stk)
diff --git a/kernel/closure.mli b/kernel/closure.mli
index dae1689419..40ec74f53f 100644
--- a/kernel/closure.mli
+++ b/kernel/closure.mli
@@ -198,5 +198,6 @@ val kl : clos_infos -> fconstr -> constr
val to_constr : (lift -> fconstr -> constr) -> lift -> fconstr -> constr
val optimise_closure : fconstr subs -> constr -> fconstr subs * constr
+val set_norm : fconstr -> unit
(* End of cbn debug section i*)