]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicCoercion.ml
- oCic2NCic and nCic2OCic moved to ng_library
[helm.git] / helm / software / components / ng_refiner / nCicCoercion.ml
index fd697265a2464e4c9255eb6f844fd796b2fe6bac..04fddee83fdee339546a4bf42484bdf3e23d8f73 100644 (file)
@@ -14,6 +14,9 @@
 let debug s = prerr_endline (Lazy.force s);;
 let debug _ = ();;
 
+let convert_term = ref (fun _ _ -> assert false);;
+let set_convert_term f = convert_term := f;;
+
 module COT : Set.OrderedType 
 with type t = string * NCic.term * int * int  * NCic.term *
 NCic.term = 
@@ -67,7 +70,7 @@ let index_old_db odb (status : #status) =
        List.fold_left 
          (fun status (uri,_,arg) ->
            try
-            let c=fst (OCic2NCic.convert_term uri (CicUtil.term_of_uri uri)) in
+            let c=fst (!convert_term uri (CicUtil.term_of_uri uri)) in
             let arity = match tgt with | CoercDb.Fun i -> i | _ -> 0 in
             let src, tgt = 
               let cty = NCicTypeChecker.typeof ~subst:[] ~metasenv:[] [] c in