X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fbinaries%2Ftptp2grafite%2FMakefile;h=071bf8ddb8874215000070cfbe2a4fc28942dd5d;hb=5929e58cedcbdc70ce429aae939219ce7555d953;hp=ad3557b7aab6730e8b0fd89044f368301f1a42e3;hpb=bf079bd9d7313b95c9892202290a1572399b0d4c;p=helm.git diff --git a/helm/software/components/binaries/tptp2grafite/Makefile b/helm/software/components/binaries/tptp2grafite/Makefile index ad3557b7a..071bf8ddb 100644 --- a/helm/software/components/binaries/tptp2grafite/Makefile +++ b/helm/software/components/binaries/tptp2grafite/Makefile @@ -1,14 +1,39 @@ -all: tptp2grafite +OCAMLC = OCAMLPATH=../../METAS ocamlfind ocamlc -package helm-grafite_parser +TPTPDIR=/home/$(USER)/TPTP-v3.1.1/ -tptp2grafite: - ocamlc -c ast.ml +opt all: tptp2grafite + echo -n + +tptp2grafite: ast.ml parser.mly lexer.mll main.ml + $(OCAMLC) -c ast.ml ocamlyacc parser.mly - ocamlc -c parser.mli - ocamlc -c parser.ml + $(OCAMLC) -c parser.mli + $(OCAMLC) -c parser.ml ocamllex lexer.mll - ocamlc -c lexer.ml - ocamlc -c main.ml - ocamlc -o tptp2grafite ast.cmo lexer.cmo parser.cmo main.cmo + $(OCAMLC) -c lexer.ml + $(OCAMLC) -c main.ml + $(OCAMLC) -linkpkg -o tptp2grafite ast.cmo lexer.cmo parser.cmo main.cmo clean: - rm -r tptp2grafite *.cmo *.cmi parser.mli parser.ml lexer.ml + rm -f tptp2grafite *.cmo *.cmi parser.mli parser.ml lexer.ml rm *.output + +test: tptp2grafite + cat $(TPTPDIR)/`head -n 1 unit_equality_problems` | ./tptp2grafite + +testall: tptp2grafite + for X in `cat unit_equality_problems`; do\ + cat $(TPTPDIR)/$$X | ./tptp2grafite || echo ERROR PARSING $$X;\ + done + +generate: + for X in `cat unit_equality_problems`; do\ + ./tptp2grafite -tptppath $(TPTPDIR) $$X \ + > ../../../matita/tests/TPTP/$$X.ma || echo Failed: $$X; \ + done + +parse: + for X in `cat unit_equality_problems`; do\ + echo "Parsing $$X"; \ + ./tptp2grafite -tptppath $(TPTPDIR) $$X \ + > /dev/null || echo Failed: $$X; \ + done