X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fparamodulation%2Fpath_indexing.ml;h=9212f0ac857ca868141c2dc154a85e5ea2a50b3a;hb=aa0c24992572f26d8e78ae34b60c7e151167cf49;hp=95d6de9f55d46f5021d2410fcb4ac90d027f0fc8;hpb=969fb8763a6d4afb88aef1eaa4a4d1ce7d626264;p=helm.git diff --git a/helm/ocaml/paramodulation/path_indexing.ml b/helm/ocaml/paramodulation/path_indexing.ml index 95d6de9f5..9212f0ac8 100644 --- a/helm/ocaml/paramodulation/path_indexing.ml +++ b/helm/ocaml/paramodulation/path_indexing.ml @@ -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) ->