X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fbinaries%2Ftptp2grafite%2FMakefile;h=d79c2661dbcdea785e51ae4af7f599e5a8cb090e;hb=504df4a3889df3b2d47e41df57b8c3613f1b0610;hp=466861d51dc8aa2d1cd1a89342756b2a55858dbf;hpb=b8be5218ad33b0ee6a2e5845850bec8be7ad9c05;p=helm.git diff --git a/components/binaries/tptp2grafite/Makefile b/components/binaries/tptp2grafite/Makefile index 466861d51..d79c2661d 100644 --- a/components/binaries/tptp2grafite/Makefile +++ b/components/binaries/tptp2grafite/Makefile @@ -1,14 +1,39 @@ -all: tptp2grafite +OCAMLC = OCAMLPATH=../../METAS ocamlfind ocamlc -package helm-grafite_parser +TPTPDIR=/home/tassi/helm/trunk/TPTP-v3.1.1/ + +opt all: tptp2grafite + echo -n tptp2grafite: ast.ml parser.mly lexer.mll main.ml - ocamlc -c ast.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 -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 /home/tassi/TPTP-v3.1.1/ $$X \ + > ../../../matita/tests/TPTP/$$X.ma || echo Failed: $$X; \ + done + +parse: + for X in `cat unit_equality_problems`; do\ + echo "Parsing $$X"; \ + ./tptp2grafite -tptppath /home/tassi/TPTP-v3.1.1/ $$X \ + > /dev/null || echo Failed: $$X; \ + done