]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic/discrimination_tree.ml
Added a new section on automation
[helm.git] / helm / ocaml / cic / discrimination_tree.ml
index fd234df98980a8c912d66fdb2d59f69044121921..bab98921df04691b090c6e8e3020de76e5ccf5bb 100644 (file)
@@ -23,7 +23,9 @@
  * http://cs.unibo.it/helm/.
  *)
 
-module DiscriminationTreeIndexing =
+(* $Id$ *)
+
+module DiscriminationTreeIndexing =  
   functor (A:Set.S) -> 
     struct
 
@@ -59,7 +61,6 @@ module DiscriminationTreeIndexing =
       module DiscriminationTree = Trie.Make(PSMap);;
 
       type t = A.t DiscriminationTree.t
-      type elt = A.elt
       let empty = DiscriminationTree.empty
 
 (*
@@ -219,7 +220,7 @@ let remove_index tree equality =
            | pos -> List.fold_right (fun i r -> if r = [] then [i+1] else i::r) pos []
        in
          try
-           let t = subterm_at_pos pos' term in pos'
+           ignore(subterm_at_pos pos' term ); pos'
          with Not_found ->
            let pos, _ =
              List.fold_right