SUBDIRS = src test doc contrib
-.PHONY: test
-test: check
src/parser/Makefile
src/theory/Makefile
test/Makefile
+ test/regress/Makefile
+ test/unit/Makefile
])
AC_OUTPUT
INCLUDES = -I@srcdir@/include -I@srcdir@
AM_CXXFLAGS = -Wall -fvisibility=hidden
-SUBDIRS = util expr context prop smt theory parser main
+SUBDIRS = util expr context prop smt theory . parser main
lib_LTLIBRARIES = libcvc4.la
+libcvc4_la_SOURCES =
libcvc4_la_LIBADD = \
- util/libutil.a \
- expr/libexpr.a \
- context/libcontext.a \
- prop/minisat/libminisat.a \
- smt/libsmt.a \
- theory/libtheory.a \
- parser/libparser.a
+ util/libutil.la \
+ expr/libexpr.la \
+ context/libcontext.la \
+ prop/minisat/libminisat.la \
+ smt/libsmt.la \
+ theory/libtheory.la
EXTRA_DIST = \
include/cvc4.h \
INCLUDES = -I@srcdir@/../include -I@srcdir@/..
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libcontext.a
+noinst_LTLIBRARIES = libcontext.la
-libcontext_a_SOURCES =
+libcontext_la_SOURCES =
INCLUDES = -I@srcdir@/../include -I@srcdir@/..
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libexpr.a
+noinst_LTLIBRARIES = libexpr.la
-libexpr_a_SOURCES = \
+libexpr_la_SOURCES = \
expr.cpp \
expr_builder.cpp \
expr_manager.cpp \
ExprBuilder& ExprBuilder::operator<<(const Expr& child) {
}
-template <class Iterator>
-ExprBuilder& ExprBuilder::append(const Iterator& begin, const Iterator& end) {
-}
-
void ExprBuilder::addChild(const Expr& e) {
if(d_nchildren == nchild_thresh) {
vector<Expr>* v = new vector<Expr>();
};/* class MultExprBuilder */
+template <class Iterator>
+ExprBuilder& ExprBuilder::append(const Iterator& begin, const Iterator& end) {
+ return *this;
+}
+
}/* CVC4 namespace */
#endif /* __CVC4__EXPR_BUILDER_H */
main.cpp \
getopt.cpp \
util.cpp
+
+cvc4_LDADD = \
+ ../parser/libparser.la \
+ ../libcvc4.la
INCLUDES = -I@srcdir@/../include -I@srcdir@/.. -I@builddir@
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libparser.a
+noinst_LTLIBRARIES = libparser.la
-libparser_a_SOURCES = \
+libparser_la_SOURCES = \
pl_scanner.lpp \
pl.ypp \
smtlib_scanner.lpp \
INCLUDES = -I@srcdir@/mtl -I@srcdir@/core -I@srcdir@/../../include
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libminisat.a
-libminisat_a_SOURCES = \
+noinst_LTLIBRARIES = libminisat.la
+libminisat_la_SOURCES = \
core/Solver.C \
simp/SimpSolver.C
INCLUDES = -I@srcdir@/../include -I@srcdir@/..
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libsmt.a
+noinst_LTLIBRARIES = libsmt.la
-libsmt_a_SOURCES =
+libsmt_la_SOURCES =
INCLUDES = -I@srcdir@/../include -I@srcdir@/..
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libtheory.a
+noinst_LTLIBRARIES = libtheory.la
-libtheory_a_SOURCES =
+libtheory_la_SOURCES =
INCLUDES = -I@srcdir@/../include -I@srcdir@/..
AM_CXXFLAGS = -Wall -fvisibility=hidden
-noinst_LIBRARIES = libutil.a
+noinst_LTLIBRARIES = libutil.la
-libutil_a_SOURCES =
+libutil_la_SOURCES =
-if HAVE_CXXTESTGEN
-
-AM_CPPFLAGS = -I. "-I$(CXXTEST)" "-I@top_srcdir@/src/include" "-I@top_srcdir@/src"
-AM_CXXFLAGS = -fno-access-control
-AM_LDFLAGS = -L@top_builddir@/src/libcvc4.a
-TESTS = \
- expr/expr_black \
- expr/expr_white
-
-%.cpp: %.h
- $(CXXTESTGEN) --have-eh --have-std --error-printer -o $@ $<
-%: %.cpp
- $(CXX) $(TEST_CPPFLAGS) $(AM_CPPFLAGS) $(TEST_CXXFLAGS) $(AM_CXXFLAGS) -o $@ $(TEST_LDFLAGS) $(AM_LDFLAGS) $< @top_builddir@/src/libcvc4.a
-
-MOSTLYCLEANFILES = $(TESTS) $(TESTS:%=%.cpp)
-
-else
-
-# force a user-visible failure for "make check"
-TESTS = no_cxxtest
-
-endif
-
+SUBDIRS = unit regress
+++ /dev/null
-/* Black box testing of CVC4::Expr. */
-
-#include <cxxtest/TestSuite.h>
-
-#include "cvc4_expr.h"
-
-using namespace CVC4;
-
-class ExprBlack : public CxxTest::TestSuite {
-public:
-
- void testNull() {
- Expr::s_null;
- }
-
- void testCopyCtor() {
- Expr e(Expr::s_null);
- }
-};
+++ /dev/null
-/* White box testing of CVC4::Expr. */
-
-#include <cxxtest/TestSuite.h>
-
-#include "cvc4_expr.h"
-
-using namespace CVC4;
-
-class ExprWhite : public CxxTest::TestSuite {
-public:
-
- void testNull() {
- Expr::s_null;
- }
-
- void testCopyCtor() {
- Expr e(Expr::s_null);
- }
-};
--- /dev/null
+TESTS_ENVIRONMENT = echo
+TESTS = \
+ bug1.cvc
--- /dev/null
+%% Regression level = 0
+%% Result = Valid
+%% Runtime = 1
+%% Language = presentation
+x : REAL;
+y : REAL;
+f : REAL -> REAL;
+ASSERT ((x > y) => f(x) > f (y));
+ASSERT (x = 3);
+ASSERT (y = 2);
+QUERY(f(x) > f (y));
--- /dev/null
+if HAVE_CXXTESTGEN
+
+AM_CPPFLAGS = -I. "-I$(CXXTEST)" "-I@top_srcdir@/src/include" "-I@top_srcdir@/src"
+AM_CXXFLAGS = -fno-access-control
+#AM_LDFLAGS = -L@top_builddir@/src/libcvc4.la
+TESTS = \
+ expr/expr_black \
+ expr/expr_white
+
+lib_LTLIBRARIES = libdummy.la
+libdummy_la_SOURCES = expr/expr_black.cpp
+libdummy_la_LIBADD = @abs_top_builddir@/src/libcvc4.la
+
+$(TESTS:%=%.cpp): %.cpp: %.h
+ $(CXXTESTGEN) --have-eh --have-std --error-printer -o $@ $<
+$(TESTS): %: %.cpp
+# get these in here somehow
+# $(TEST_CPPFLAGS) $(TEST_CXXFLAGS) $(TEST_LDFLAGS)
+ $(LTCXXCOMPILE) -c -o $@.lo $<
+ $(CXXLINK) $@.lo \
+ @abs_top_builddir@/src/context/libcontext.la \
+ @abs_top_builddir@/src/expr/libexpr.la \
+ @abs_top_builddir@/src/smt/libsmt.la \
+ @abs_top_builddir@/src/theory/libtheory.la \
+ @abs_top_builddir@/src/util/libutil.la \
+ @abs_top_builddir@/src/prop/minisat/libminisat.la
+
+MOSTLYCLEANFILES = $(TESTS) $(TESTS:%=%.cpp)
+
+else
+
+# force a user-visible failure for "make check"
+TESTS = no_cxxtest
+
+endif
+
--- /dev/null
+/* Black box testing of CVC4::Expr. */
+
+#include <cxxtest/TestSuite.h>
+
+#include "cvc4_expr.h"
+
+using namespace CVC4;
+
+class ExprBlack : public CxxTest::TestSuite {
+public:
+
+ void testNull() {
+ Expr::s_null;
+ }
+
+ void testCopyCtor() {
+ Expr e(Expr::s_null);
+ }
+};
--- /dev/null
+/* White box testing of CVC4::Expr. */
+
+#include <cxxtest/TestSuite.h>
+
+#include "cvc4_expr.h"
+
+using namespace CVC4;
+
+class ExprWhite : public CxxTest::TestSuite {
+public:
+
+ void testNull() {
+ Expr::s_null;
+ }
+
+ void testCopyCtor() {
+ Expr e(Expr::s_null);
+ }
+};