if delta > height then config else aux (0, [], body, s)
| (_, _, NCic.Const (NReference.Ref
(_,_,NReference.Fix (fixno,recindex)) as refer),s) as config ->
- let fixes,_, height = NCicEnvironment.get_checked_fixes refer in
+ let fixes,_, height = NCicEnvironment.get_checked_fixes_or_cofixes refer in
if delta > height then config else
(match
try Some (RS.from_stack (List.nth s recindex))
| (k, e, NCic.Match (_,_,term,pl),s) as config ->
let decofix = function
| (_,_,NCic.Const(NReference.Ref(_,_,NReference.CoFix c)as refer),s)->
- let cofixes,_,_ = NCicEnvironment.get_checked_cofixes refer in
+ let cofixes,_,_ = NCicEnvironment.get_checked_fixes_or_cofixes refer in
let _,_,_,_,body = List.nth cofixes c in
reduce ~delta:0 ~subst context (0,[],body,s)
| config -> config