Skip to content

Commit

Permalink
Update boolector to most recent version (3.2.3 plus extra) (stanford-…
Browse files Browse the repository at this point in the history
…centaur#344)

* Update boolector to most recent version (3.2.3 plus extra)

* Fix paths to btor2parser lib
  • Loading branch information
CyanoKobalamyne committed May 15, 2024
1 parent 61ff06a commit 1d31ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions btor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target_include_directories (smt-switch-btor PUBLIC "${BTOR_HOME}/src")

target_link_libraries(smt-switch-btor "${BTOR_HOME}/build/lib/libboolector.a")
target_link_libraries(smt-switch-btor "${BTOR_HOME}/deps/cadical/build/libcadical.a")
target_link_libraries(smt-switch-btor "${BTOR_HOME}/deps/btor2tools/build/libbtor2parser.a")
target_link_libraries(smt-switch-btor "${BTOR_HOME}/deps/btor2tools/build/lib/libbtor2parser.a")
target_link_libraries(smt-switch-btor smt-switch)
target_link_libraries(smt-switch-btor pthread)
target_link_libraries(smt-switch-btor m)
Expand All @@ -30,7 +30,7 @@ if (SMT_SWITCH_LIB_TYPE STREQUAL STATIC)
mkdir smt-switch-btor && cd smt-switch-btor && ar -x "../$<TARGET_FILE_NAME:smt-switch-btor>" && cd ../ &&
mkdir boolector && cd boolector && ar -x "${BTOR_HOME}/build/lib/libboolector.a" &&
ar -x "${BTOR_HOME}/deps/cadical/build/libcadical.a" &&
ar -x "${BTOR_HOME}/deps/btor2tools/build/libbtor2parser.a" && cd ../ &&
ar -x "${BTOR_HOME}/deps/btor2tools/build/lib/libbtor2parser.a" && cd ../ &&
ar -qc "$<TARGET_FILE_NAME:smt-switch-btor>" ./boolector/*.o ./smt-switch-btor/*.o &&
# now clean up
rm -rf smt-switch-btor boolector
Expand Down
4 changes: 2 additions & 2 deletions contrib/setup-btor.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

BTOR_VERSION=95859db82fe5b08d063a16d6a7ffe4a941cb0f7d
BTOR_VERSION=97698b06a5de1a4e5743c034c867d384630dc936
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
DEPS=$DIR/../deps

Expand Down Expand Up @@ -31,7 +31,7 @@ else
echo "$DEPS/boolector already exists. If you want to rebuild, please remove it manually."
fi

if [ -f $DEPS/boolector/build/lib/libboolector.a ] && [ -f $DEPS/boolector/deps/cadical/build/libcadical.a ] && [ -f $DEPS/boolector/deps/btor2tools/build/btor2parser.o ] ; then \
if [ -f $DEPS/boolector/build/lib/libboolector.a ] && [ -f $DEPS/boolector/deps/cadical/build/libcadical.a ] && [ -f $DEPS/boolector/deps/btor2tools/build/lib/libbtor2parser.a ] ; then \
echo "It appears boolector was setup successfully into $DEPS/boolector."
echo "You may now install it with make ./configure.sh --btor && cd build && make"
else
Expand Down

0 comments on commit 1d31ade

Please sign in to comment.