| (_, _, NCic.Const
(NReference.Ref (_,_,NReference.Def) as refer), s) as config ->
let _,_,body,_,_,height = NCicEnvironment.get_checked_def refer in
- if delta >= height then config else aux (0, [], body, s)
+ if delta > height then config else aux (0, [], body, s)
| (_, _, NCic.Const (NReference.Ref
(_,_,NReference.Fix (_,recindex)) as refer),s) as config ->
let _,_,body,_, _, height = NCicEnvironment.get_checked_fix refer in
- if delta >= height then config else
+ if delta > height then config else
(match
try Some (RS.from_stack (List.nth s recindex))
with Failure _ -> None
let reference_of_ouri u indinfo =
let u = NUri.nuri_of_ouri u in
- reference_of_string (string_of_reference (Ref (~-1,u,indinfo)))
+ reference_of_string (string_of_reference (Ref (max_int,u,indinfo)))
;;
let ouri_of_reference (Ref (_,u,_)) = NUri.ouri_of_nuri u;;
let convert_obj uri obj =
let o, fixpoints = convert_obj_aux uri obj in
- let obj = NUri.nuri_of_ouri uri,0, [], [], o in
+ let obj = NUri.nuri_of_ouri uri,max_int, [], [], o in
fixpoints @ [obj]
;;