Skip to content

Commit

Permalink
Merge pull request #1286 from cnheitman/feature/upgrade-bitwuzla
Browse files Browse the repository at this point in the history
Upgrade Bitwuzla to version 0.2.0
  • Loading branch information
JonathanSalwan authored Sep 14, 2023
2 parents 357f372 + 7acc79d commit 8a6ee2f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
git clone https://github.com/bitwuzla/bitwuzla.git
cd bitwuzla
git checkout -b 0.1.0 0.1.0
git checkout -b 0.2.0 0.2.0
python ./configure.py --shared
cd build
sudo ninja install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: |
git clone https://github.com/bitwuzla/bitwuzla.git
cd bitwuzla
git checkout -b 0.1.0 0.1.0
git checkout -b 0.2.0 0.2.0
python ./configure.py --shared
cd build
sudo ninja install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
git clone https://github.com/bitwuzla/bitwuzla.git
cd bitwuzla
git checkout -b 0.1.0 0.1.0
git checkout -b 0.2.0 0.2.0
python ./configure.py --shared --prefix $(pwd)/install
cd build
sudo ninja install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
run: |
git clone https://github.com/bitwuzla/bitwuzla.git
cd bitwuzla
git checkout -b 0.1.0 0.1.0
git checkout -b 0.2.0 0.2.0
python ./configure.py --shared --prefix $(pwd)/install
cd build
sudo ninja install
Expand Down
4 changes: 2 additions & 2 deletions src/libtriton/engines/solver/bitwuzla/bitwuzlaSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace triton {
// Parse model.
std::unordered_map<triton::usize, SolverModel> model;
for (const auto& it : bzlaAst.getVariables()) {
const char* svalue = bitwuzla_term_value_get_str(bitwuzla_get_value(bzla, it.first), 2);
const char* svalue = bitwuzla_term_value_get_str_fmt(bitwuzla_get_value(bzla, it.first), 2);
auto value = this->fromBvalueToUint512(svalue);
auto m = SolverModel(it.second, value);
model[m.getId()] = m;
Expand Down Expand Up @@ -231,7 +231,7 @@ namespace triton {
if (bitwuzla_term_is_bool(term_value)) {
res = bitwuzla_term_value_get_bool(term_value);
} else {
res = triton::uint512{bitwuzla_term_value_get_str(term_value, 10)};
res = triton::uint512{bitwuzla_term_value_get_str_fmt(term_value, 10)};
}

bitwuzla_delete(bzla);
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN echo "[+] Download, build and install Bitwuzla" && \
cd $DEPENDENCIES_DIR && \
git clone https://github.com/bitwuzla/bitwuzla.git && \
cd bitwuzla && \
git checkout -b 0.1.0 0.1.0 && \
git checkout -b 0.2.0 0.2.0 && \
CC=clang CXX=clang++ PATH=$PATH:/opt/_internal/cpython-3.10.13/bin python3.10 ./configure.py --shared --prefix $(pwd)/install && \
cd build && \
PATH=$PATH:/opt/_internal/cpython-3.10.13/bin ninja install
Expand Down

0 comments on commit 8a6ee2f

Please sign in to comment.