diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-09-02 20:41:08 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-09-02 20:41:08 +0000 |
commit | 1d18e5ebed9a5b20ed6a8fe21d11842acf6fa7ea (patch) | |
tree | 7074f04453914bc377ff6aeb307dd17b82b76ff3 /src/bindings | |
parent | 74770f1071e6102795393cf65dd0c651038db6b4 (diff) |
Merge from my post-smtcomp branch. Includes:
Dumping infrastructure. Can dump preprocessed queries and clauses. Can
also dump queries (for testing with another solver) to see if any conflicts
are missed, T-propagations are missed, all lemmas are T-valid, etc. For a
full list of options see --dump=help.
CUDD building much cleaner.
Documentation and assertion fixes.
Printer improvements, printing of commands in language-defined way, etc.
Typechecker stuff in expr package now autogenerated, no need to manually
edit the expr package when adding a new theory.
CVC3 compatibility layer (builds as libcompat).
SWIG detection and language binding support (infrastructure).
Support for some Z3 extended commands (like datatypes) in SMT-LIBv2 mode
(when not in compliance mode).
Copyright and file headers regenerated.
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/Makefile | 4 | ||||
-rw-r--r-- | src/bindings/Makefile.am | 58 |
2 files changed, 62 insertions, 0 deletions
diff --git a/src/bindings/Makefile b/src/bindings/Makefile new file mode 100644 index 000000000..419d3a1b4 --- /dev/null +++ b/src/bindings/Makefile @@ -0,0 +1,4 @@ +topdir = ../.. +srcdir = src/bindings + +include $(topdir)/Makefile.subdir diff --git a/src/bindings/Makefile.am b/src/bindings/Makefile.am new file mode 100644 index 000000000..cd314f957 --- /dev/null +++ b/src/bindings/Makefile.am @@ -0,0 +1,58 @@ +AM_CPPFLAGS = \ + -D__BUILDING_CVC4BINDINGSLIB \ + -I@srcdir@/../include -I@srcdir@/.. -I@builddir@/.. +AM_CXXFLAGS = -Wall $(FLAG_VISIBILITY_HIDDEN) + +lib_LTLIBRARIES = +if CVC4_LANGUAGE_BINDING_JAVA +lib_LTLIBRARIES += libcvc4bindings_java.la +endif +# cvc4bindings_csharp.so \ +# cvc4bindings_perl.so \ +# cvc4bindings_php.so \ +# cvc4bindings_python.so \ +# cvc4bindings_ocaml.so \ +# cvc4bindings_ruby.so \ +# cvc4bindings_tcl.so + +nodist_libcvc4bindings_java_la_SOURCES = java.cpp +#nodist_cvc4bindings_csharp_so_SOURCES = csharp.cpp +#nodist_cvc4bindings_perl_so_SOURCES = perl.cpp +#nodist_cvc4bindings_php_so_SOURCES = php.cpp +#nodist_cvc4bindings_python_so_SOURCES = python.cpp +#nodist_cvc4bindings_ocaml_so_SOURCES = ocaml.cpp +#nodist_cvc4bindings_ruby_so_SOURCES = ruby.cpp +#nodist_cvc4bindings_tcl_so_SOURCES = tcl.cpp + +BUILT_SOURCES = \ + java.cpp \ + csharp.cpp \ + perl.cpp \ + php.cpp \ + python.cpp \ + ocaml.cpp \ + ruby.cpp \ + tcl.cpp + +CLEANFILES = \ + $(BUILT_SOURCES) \ + cvc4.java \ + cvc4.cs \ + cvc4JNI.java \ + cvc4.php \ + cvc4PINVOKE.cs \ + cvc4.pm \ + cvc4.py \ + php_cvc4.h + +java.lo: java.cpp; $(LTCXXCOMPILE) $(JAVA_INCLUDES) -o $@ $< +java.cpp:: +csharp.cpp:: +perl.cpp:: +php.cpp:: +python.cpp:: +ocaml.cpp:: +ruby.cpp:: +tcl.cpp:: +$(patsubst %,%.cpp,$(filter-out c c++,$(CVC4_LANGUAGE_BINDINGS))):: %.cpp: @srcdir@/../smt/smt_engine.h + $(AM_V_GEN)$(SWIG) -w503 -I@srcdir@/../include -I@srcdir@/.. -I@builddir@/.. -module cvc4 -c++ -$(patsubst %.cpp,%,$@) -o $@ $< |