diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2015-09-04 19:01:21 +0200 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2015-09-04 19:01:21 +0200 |
commit | 89d023e59cf61c17744ec8dca3451f25eeba58b0 (patch) | |
tree | f4c188032e1c9c893bf17844dd3d7e9ff31d28bb | |
parent | 8f6c2fd67c34a9725f79652fb6bcb24f42b0f432 (diff) | |
parent | 9c7364481547580d53f4f2c1a6c7b40a29e902de (diff) | |
download | klee-89d023e59cf61c17744ec8dca3451f25eeba58b0.tar.gz |
Merge pull request #276 from MartinNowack/travis_update
Travis: Support KLEE with different STP versions, in particular 2.1.0; Disable r940
-rw-r--r-- | .travis.yml | 26 | ||||
-rw-r--r-- | .travis/stp-r940-smtlib2.y.patch | 24 | ||||
-rwxr-xr-x | .travis/stp.sh | 32 | ||||
-rw-r--r-- | Dockerfile | 2 |
4 files changed, 17 insertions, 67 deletions
diff --git a/.travis.yml b/.travis.yml index 1979f1ef..be30c1e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ env: # Check the matrix of: # LLVM : {2.9, 3.4} - # STP : {r950, UPSTREAM} + # STP : {2.1.0, master} # UCLIBC: {ENABLED, DISABLED} # with Asserts enabled. @@ -27,22 +27,22 @@ env: # FIXME: Enable when we want to test LLVM3.5 matrix: - #- LLVM_VERSION=3.5 STP_VERSION=UPSTREAM KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 - #- LLVM_VERSION=3.5 STP_VERSION=UPSTREAM KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 - - LLVM_VERSION=3.4 STP_VERSION=UPSTREAM KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=1 - - LLVM_VERSION=3.4 STP_VERSION=UPSTREAM KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 - - LLVM_VERSION=2.9 STP_VERSION=UPSTREAM KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 - - LLVM_VERSION=2.9 STP_VERSION=UPSTREAM KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 - - LLVM_VERSION=3.4 STP_VERSION=r940 KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 - - LLVM_VERSION=3.4 STP_VERSION=r940 KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 - - LLVM_VERSION=2.9 STP_VERSION=r940 KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 - - LLVM_VERSION=2.9 STP_VERSION=r940 KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + #- LLVM_VERSION=3.5 STP_VERSION=master KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 + #- LLVM_VERSION=3.5 STP_VERSION=master KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 + - LLVM_VERSION=3.4 STP_VERSION=master KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=1 + - LLVM_VERSION=3.4 STP_VERSION=master KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=2.9 STP_VERSION=master KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=2.9 STP_VERSION=master KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=3.4 STP_VERSION=2.1.0 KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=3.4 STP_VERSION=2.1.0 KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=2.9 STP_VERSION=2.1.0 KLEE_UCLIBC=0 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=2.9 STP_VERSION=2.1.0 KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=1 COVERAGE=0 # Check at least one build with Asserts disabled. - - LLVM_VERSION=2.9 STP_VERSION=r940 KLEE_UCLIBC=1 DISABLE_ASSERTIONS=1 ENABLE_OPTIMIZED=1 COVERAGE=0 + - LLVM_VERSION=2.9 STP_VERSION=2.1.0 KLEE_UCLIBC=1 DISABLE_ASSERTIONS=1 ENABLE_OPTIMIZED=1 COVERAGE=0 # Check at least one Debug+Asserts build - - LLVM_VERSION=3.4 STP_VERSION=UPSTREAM KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=0 COVERAGE=0 + - LLVM_VERSION=3.4 STP_VERSION=master KLEE_UCLIBC=1 DISABLE_ASSERTIONS=0 ENABLE_OPTIMIZED=0 COVERAGE=0 global: - secure: EF/WAc4BdIRUchF3mjATN3/UwtGWtGaRgb5oIIJHjKhgZFdPsgWsXFgaOB0jaK2hfO/svj/LvlasuRIGxeePVjeaiX8ZlVpuHiX67vdYLY+0kCDRwkusRjm60/GbPU9O/Xjgb/d4aWAEkoq5OnsprVTEvU8iY2JHtAqgwR+wW9I= - secure: Hrp1MRSxDUH2GTQg3QR/yUttY/3KmgbFb5e+zyy551dKpHjxJdsNe8bquY9oFoT7KmPQYl0HNNjEv4qWW8RK+HWHOCB55nL1KlGpOG7vAJcUEZg7ScbliGgiovMB6jIQVfeP9FhYngfc13vNZQ5PGlqzfSsHSAbvkwEogBToHVw= diff --git a/.travis/stp-r940-smtlib2.y.patch b/.travis/stp-r940-smtlib2.y.patch deleted file mode 100644 index 212c0180..00000000 --- a/.travis/stp-r940-smtlib2.y.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/src/parser/smtlib2.y b/src/parser/smtlib2.y -index a94bd6c..5263bf5 100644 ---- a/src/parser/smtlib2.y -+++ b/src/parser/smtlib2.y -@@ -64,6 +64,7 @@ - FatalError(""); - return 1; - } -+ int yyerror(void* AssertsQuery, const char* s) { return yyerror(s); } - - ASTNode querysmt2; - ASTVec assertionsSMT2; -@@ -72,9 +73,10 @@ - #define YYMAXDEPTH 104857600 - #define YYERROR_VERBOSE 1 - #define YY_EXIT_FAILURE -1 --#define YYPARSE_PARAM AssertsQuery - %} - -+%parse-param {void* AssertsQuery} -+ - %union { - unsigned uintval; /* for numerals in types. */ - //ASTNode,ASTVec diff --git a/.travis/stp.sh b/.travis/stp.sh index d2b4f1f1..53b7b6bc 100755 --- a/.travis/stp.sh +++ b/.travis/stp.sh @@ -5,7 +5,7 @@ set -e STP_LOG="$(pwd)/stp-build.log" -if [ "${STP_VERSION}" == "UPSTREAM" ]; then +if [ "x${STP_VERSION}" != "x" ]; then # Build minisat git clone https://github.com/stp/minisat cd minisat @@ -18,7 +18,7 @@ if [ "${STP_VERSION}" == "UPSTREAM" ]; then cd ../../ # Build STP - git clone --depth 1 git://github.com/stp/stp.git src + git clone --depth 1 -b "${STP_VERSION}" git://github.com/stp/stp.git src mkdir build cd build # Disabling building of shared libs is a workaround. @@ -27,34 +27,8 @@ if [ "${STP_VERSION}" == "UPSTREAM" ]; then set +e # Do not exit if build fails because we need to display the log make >> "${STP_LOG}" 2>&1 - -elif [ "${STP_VERSION}" == "r940" ]; then - # Building the old "r940" version that for some reason we love so much! - git clone git://github.com/stp/stp.git src_build - mkdir build # This is actually the install directory - cd src_build/ - git checkout bc78d1f9f06fc095bd1ddad90eacdd1f05f64dae # r940 - - # Fixes for GCC - # We don't try to fix clang compilation because there too many things that need - # fixing and it isn't really r940 anymore if we start doing that - git config --global user.name "travis" - git config --global user.email "travis@travis.123" - git cherry-pick ece1a55fb367bd905078baca38476e35b4df06c3 - patch -p1 -i ${KLEE_SRC}/.travis/stp-r940-smtlib2.y.patch - - # Oh man this project is so broken. The binary build directory is missing - mkdir -p bin - - export CC=gcc - export CXX=g++ - ./scripts/configure --with-prefix=${BUILD_DIR}/stp/build --with-cryptominisat2 - echo "WARNING FORCING GCC TO BE USED TO COMPILE STP" - - set +e # Do not exit if build fails because we need to display the log - make OPTIMIZE=-O2 CFLAGS_M32= install >> "${STP_LOG}" 2>&1 else - echo "Unsupported STP_VERSION" + echo "No STP_VERSION given or empty" exit 1 fi diff --git a/Dockerfile b/Dockerfile index d9fdd02d..c15d7034 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ MAINTAINER Dan Liew <daniel.liew@imperial.ac.uk> # the resulting image is unnecessarily large! ENV LLVM_VERSION=3.4 \ - STP_VERSION=UPSTREAM \ + STP_VERSION=master \ DISABLE_ASSERTIONS=0 \ ENABLE_OPTIMIZED=1 \ KLEE_UCLIBC=1 \ |