]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/paramodulation/path_indexing.ml
New test.
[helm.git] / helm / ocaml / paramodulation / path_indexing.ml
index 95d6de9f55d46f5021d2410fcb4ac90d027f0fc8..9212f0ac857ca868141c2dc154a85e5ea2a50b3a 100644 (file)
@@ -57,6 +57,7 @@ end
 
 module PosEqSet = Set.Make(OrderedPosEquality);;
 
+
 module PSTrie = Trie.Make(PSMap);;
 
 (*
@@ -291,6 +292,12 @@ let rec retrieve_unifiables trie term =
 ;;
 
 
+let retrieve_all trie term =
+  PSTrie.fold
+    (fun k v s -> PosEqSet.union v s) trie PosEqSet.empty
+;;
+
+
 let string_of_pstrie trie =
   let rec to_string level = function
     | PSTrie.Node (v, map) ->