From 92aea31430f9d0e8a0fc8f0d6b7fd1a221768f6c Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Mon, 28 Mar 2016 06:25:26 +0200 Subject: Reverting dbdff037 which does not seem to prevent to have #3638 fixed on the contrary of message given in 23041481f, while it introduces a square time complexity of the size of the goal in subterm finding. --- pretyping/find_subterm.ml | 1 - 1 file changed, 1 deletion(-) (limited to 'pretyping/find_subterm.ml') diff --git a/pretyping/find_subterm.ml b/pretyping/find_subterm.ml index 6733b7fca..1f5435b6b 100644 --- a/pretyping/find_subterm.ml +++ b/pretyping/find_subterm.ml @@ -105,7 +105,6 @@ let replace_term_occ_gen_modulo occs like_first test bywhat cl occ t = raise (SubtermUnificationError (!nested,((cl,!pos),t),lastpos,e)) in let rec substrec k t = if nowhere_except_in && !pos > maxocc then t else - if not (Vars.closed0 t) then subst_below k t else try let subst = test.match_fun test.testing_state t in if Locusops.is_selected !pos occs then -- cgit v1.2.3