Skip to content

Commit b3e274d

Browse files
committed
1 parent 92de5c8 commit b3e274d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/coq_elpi_builtins.ml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,6 @@ let get_instance_prio gr env sigma (hint_priority : int option) : tc_priority =
426426
match hint_priority with
427427
| Some p -> UserGiven p
428428
| None ->
429-
let rec nb_hyp sigma c = match EConstr.kind sigma c with
430-
| Prod(_,_,c2) -> if EConstr.Vars.noccurn sigma 1 c2 then 1+(nb_hyp sigma c2) else nb_hyp sigma c2
431-
| _ -> 0 in
432429
let merge_context_set_opt sigma ctx =
433430
match ctx with
434431
| None -> sigma
@@ -443,9 +440,8 @@ let get_instance_prio gr env sigma (hint_priority : int option) : tc_priority =
443440
let cty = Reductionops.nf_betaiota env sigma cty in
444441
let sigma' = merge_context_set_opt sigma ctx in
445442
let ce = Clenv.mk_clenv_from env sigma' (c,cty) in
446-
let miss = Clenv.clenv_missing ce in
443+
let miss, hyps = Clenv.clenv_missing ce in
447444
let nmiss = List.length miss in
448-
let hyps = nb_hyp sigma' cty in
449445
Computed (hyps + nmiss)
450446

451447
(* TODO: this algorithm is quite inefficient since we have not yet the

0 commit comments

Comments
 (0)