From 7ada864b7728c9c94b7ca9856b6b2c89feb0214e Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Wed, 30 May 2018 18:20:52 +0200 Subject: Fix #7631: native_compute fails to compile an example in Coq 8.8 Dependency analysis for separate compilation was not iterated properly on rel_context and named_context. --- kernel/constr.mli | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kernel/constr.mli') diff --git a/kernel/constr.mli b/kernel/constr.mli index b35ea6653..742a13919 100644 --- a/kernel/constr.mli +++ b/kernel/constr.mli @@ -402,6 +402,15 @@ val iter : (constr -> unit) -> constr -> unit val iter_with_binders : ('a -> 'a) -> ('a -> constr -> unit) -> 'a -> constr -> unit +(** [iter_with_binders g f n c] iters [f n] on the immediate + subterms of [c]; it carries an extra data [n] (typically a lift + index) which is processed by [g] (which typically add 1 to [n]) at + each binder traversal; it is not recursive and the order with which + subterms are processed is not specified *) + +val fold_constr_with_binders : + ('a -> 'a) -> ('a -> 'b -> constr -> 'b) -> 'a -> 'b -> constr -> 'b + type constr_compare_fn = int -> constr -> constr -> bool (** [compare_head f c1 c2] compare [c1] and [c2] using [f] to compare -- cgit v1.2.3