aboutsummaryrefslogtreecommitdiff
path: root/tactics/eauto.ml4
diff options
context:
space:
mode:
authorMatthieu Sozeau2015-10-04 14:50:45 +0200
committerMatthieu Sozeau2015-10-06 10:01:19 +0200
commit07f4e6b07775052cc1c5dc34cdfa7ad4eacfa94f (patch)
tree4bb7a90d8474b038434b732fb24b9b9d69e937c3 /tactics/eauto.ml4
parentefce61af32ff1b09a21dcf88bca7d6609a0bfd27 (diff)
Fix bug #4354: interpret hints in the right env and sigma.
Diffstat (limited to 'tactics/eauto.ml4')
-rw-r--r--tactics/eauto.ml45
1 files changed, 3 insertions, 2 deletions
diff --git a/tactics/eauto.ml4 b/tactics/eauto.ml4
index 34f87c6cf0..83498cabd8 100644
--- a/tactics/eauto.ml4
+++ b/tactics/eauto.ml4
@@ -147,7 +147,7 @@ let rec e_trivial_fail_db db_list local_db goal =
let d = pf_last_hyp g' in
let hintl = make_resolve_hyp (pf_env g') (project g') d in
(e_trivial_fail_db db_list
- (Hint_db.add_list hintl local_db) g'))) ::
+ (Hint_db.add_list (pf_env g') (project g') hintl local_db) g'))) ::
(List.map fst (e_trivial_resolve db_list local_db (pf_concl goal)) )
in
tclFIRST (List.map tclCOMPLETE tacl) goal
@@ -269,7 +269,8 @@ module SearchProblem = struct
let hintl =
make_resolve_hyp (pf_env g') (project g') (pf_last_hyp g')
in
- let ldb = Hint_db.add_list hintl (List.hd s.localdb) in
+ let ldb = Hint_db.add_list (pf_env g') (project g')
+ hintl (List.hd s.localdb) in
{ depth = s.depth; priority = cost; tacres = lgls;
last_tactic = pp; dblist = s.dblist;
localdb = ldb :: List.tl s.localdb; prev = ps })