]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/ng_library/nCicLibrary.ml
nCicLibrary
[helm.git] / matita / components / ng_library / nCicLibrary.ml
index 3117a12ad387d8458711ab9c50cf9b32271fac4c..e2e7d1b34054a0448950d75596034a14019cceaa 100644 (file)
@@ -260,9 +260,10 @@ module Serializer(D: sig type dumpable_s = private #dumpable_status end) =
    let ch = open_out (ng_path_of_baseuri baseuri) in
    Marshal.to_channel ch (magic,(status#dump.dependencies,status#dump.objs)) [];
    close_out ch;
-(*
+
+   if Helm_registry.get_bool "matita.remove_old_objects" then
    remove_objects ~baseuri; (* FG: we remove the old objects before putting the new ones*)
-*)
+
    List.iter
     (function 
      | `Obj (uri,obj) ->
@@ -372,7 +373,7 @@ let add_obj status ((u,_,_,_,_) as orig_obj) =
   status#set_timestamp (!storage,!local_aliases)
 ;;
 
-let add_constraint status u1 u2 = 
+let add_constraint status ~acyclic u1 u2 = 
   if
    List.exists
     (function `Constr (u1',u2') when u1=u1' && u2=u2' -> true | _ -> false)
@@ -380,7 +381,7 @@ let add_constraint status u1 u2 =
   then
    (*CSC: raise an exception here! *)
    (prerr_endline "CANNOT ADD A CONSTRAINT TWICE"; assert false);
-  NCicEnvironment.add_lt_constraint u1 u2;
+  NCicEnvironment.add_lt_constraint ~acyclic u1 u2;
   storage := (`Constr (u1,u2)) :: !storage;
   status#set_timestamp (!storage,!local_aliases)
 ;;