let prof_demod_u = HExtlib.profile ~enable "demod.unify";;
let prof_demod_r = HExtlib.profile ~enable "demod.retrieve_generalizations";;
let prof_demod_o = HExtlib.profile ~enable "demod.compare_terms";;
+ let prof_demod_s = HExtlib.profile ~enable "demod.apply_subst";;
let demod table varlist subterm =
let cands =
prof_demod_u.HExtlib.profile
(Unif.unification (varlist@vl) varlist subterm) side
in
- let side = Subst.apply_subst subst side in
- let newside = Subst.apply_subst subst newside in
+ let side =
+ prof_demod_s.HExtlib.profile
+ (Subst.apply_subst subst) side
+ in
+ let newside =
+ prof_demod_s.HExtlib.profile
+ (Subst.apply_subst subst) newside
+ in
if o = Terms.Incomparable then
let o =
prof_demod_o.HExtlib.profile