X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fbinaries%2Ftptp2grafite%2Fmain.ml;h=18fa713a9a05b1f48b71ae81528652018ce28453;hb=551b90466538e44c85b2f739e47b89140c0bce67;hp=8df37fe00e3154f6fd58625bbc24a81ebdb082e8;hpb=9b8ad1220893070c9a98500f99355bba7775743d;p=helm.git diff --git a/helm/software/components/binaries/tptp2grafite/main.ml b/helm/software/components/binaries/tptp2grafite/main.ml index 8df37fe00..18fa713a9 100644 --- a/helm/software/components/binaries/tptp2grafite/main.ml +++ b/helm/software/components/binaries/tptp2grafite/main.ml @@ -51,6 +51,12 @@ let collect_fv_from_atom a = HExtlib.list_uniq (List.sort compare (aux a)) ;; +let collect_fv_from_formulae = function + | A.Disjunction _ -> assert false + | A.NegAtom a + | A.Atom a -> collect_fv_from_atom a +;; + let rec convert_term = function | A.Variable x -> mk_ident x | A.Constant x -> mk_ident x @@ -144,6 +150,8 @@ let convert_ast statements context = function | A.Hypothesis -> statements, f::context | A.Negated_conjecture -> + if collect_fv_from_formulae f <> [] then + prerr_endline "CONTIENE FV"; let f = PT.Binder (`Forall,