aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics/tacticals.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-11-18 20:26:15 +0100
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-02-14 17:28:50 +0100
commit8b660087beb2209e52bc4412dc82c6727963c6a5 (patch)
treec45f8a2cc5bbc0573caa24562fbb15e9c776b5dd /tactics/tacticals.ml
parent485bbfbed4ae4a28119c4e42c5e40fd77abf4f8a (diff)
Elim API using EConstr.
Diffstat (limited to 'tactics/tacticals.ml')
-rw-r--r--tactics/tacticals.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/tactics/tacticals.ml b/tactics/tacticals.ml
index e15ee149d..e440f1dc5 100644
--- a/tactics/tacticals.ml
+++ b/tactics/tacticals.ml
@@ -128,7 +128,7 @@ let onClauseLR tac cl gls =
tclMAP tac (List.rev (Locusops.simple_clause_of hyps cl)) gls
let ifOnHyp pred tac1 tac2 id gl =
- if pred (id,pf_get_hyp_typ gl id) then
+ if pred (id,EConstr.of_constr (pf_get_hyp_typ gl id)) then
tac1 id gl
else
tac2 id gl
@@ -583,6 +583,7 @@ module New = struct
let ifOnHyp pred tac1 tac2 id =
Proofview.Goal.nf_enter { enter = begin fun gl ->
let typ = Tacmach.New.pf_get_hyp_typ id gl in
+ let typ = EConstr.of_constr typ in
if pred (id,typ) then
tac1 id
else