public class SimpleVC {
public static void main(String[] args) {
- System.loadLibrary("CVC4");
+ System.loadLibrary("cvc4jni");
ExprManager em = new ExprManager();
SmtEngine smt = new SmtEngine(em);
rubylib_LTLIBRARIES =
tcllib_LTLIBRARIES =
if CVC4_LANGUAGE_BINDING_JAVA
-javalib_LTLIBRARIES += java/CVC4.la
+javalib_LTLIBRARIES += java/libcvc4jni.la
javadata_DATA += CVC4.jar
-java_CVC4_la_LDFLAGS = \
+java_libcvc4jni_la_LDFLAGS = \
-module \
-version-info $(LIBCVC4BINDINGS_VERSION)
-java_CVC4_la_LIBADD = \
+java_libcvc4jni_la_LIBADD = \
-L@builddir@/.. -lcvc4 \
-L@builddir@/../parser -lcvc4parser
endif
-L@builddir@/../parser -lcvc4parser
endif
-nodist_java_CVC4_la_SOURCES = java.cpp
-java_CVC4_la_CXXFLAGS = -fno-strict-aliasing
+nodist_java_libcvc4jni_la_SOURCES = java.cpp
+java_libcvc4jni_la_CXXFLAGS = -fno-strict-aliasing
nodist_csharp_CVC4_la_SOURCES = csharp.cpp
nodist_perl_CVC4_la_SOURCES = perl.cpp
nodist_php_CVC4_la_SOURCES = php.cpp
$(patsubst %,%.d,$(filter-out c c++,$(CVC4_LANGUAGE_BINDINGS))) \
CVC4.jar
-java_CVC4_la-java.lo java.lo: java.cpp
+java_libcvc4jni_la-java.lo java.lo: java.cpp
$(AM_V_CXX)$(LTCXXCOMPILE) -c $(JAVA_CPPFLAGS) -o $@ $<
CVC4.jar: java.cpp
$(AM_V_GEN) \
typedef CVC4::Statistics Statistics;
#define PRESENTATION_LANG ::CVC4::language::input::LANG_CVC4
-#define SMTLIB_LANG ::CVC4::language::input::LANG_SMTLIB
+#define SMTLIB_LANG ::CVC4::language::input::LANG_SMTLIB_V1
#define SMTLIB_V2_LANG ::CVC4::language::input::LANG_SMTLIB_V2
#define TPTP_LANG ::CVC4::language::input::LANG_TPTP
#define AST_LANG ::CVC4::language::input::LANG_AST
public class CVC4JavaTest {
public static void main(String[] args) {
try {
- System.loadLibrary("CVC4");
+ System.loadLibrary("cvc4jni");
//CVC4.getDebugChannel().on("current");
Result r = smt.checkSat(e);
boolean correct = r.isSat() == Result.Sat.UNSAT;
- System.out.println(smt.getStatisticsRegistry());
+ System.out.println(smt.getStatistics());
System.exit(correct ? 0 : 1);
} catch(Exception e) {