Skip to content

Commit

Permalink
Merge pull request #1328 from psi-func/fix-bitwuzla-timeout
Browse files Browse the repository at this point in the history
Fix: not using timeout with bitwuzla backend
  • Loading branch information
JonathanSalwan committed May 22, 2024
2 parents 98de7d8 + 7e51dac commit e712f44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libtriton/engines/solver/bitwuzla/bitwuzlaSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ namespace triton {
auto bzlaAst = triton::ast::TritonToBitwuzla();
bitwuzla_assert(bzla, bzlaAst.convert(node, bzla));

auto tmout = timeout != 0 ? timeout : this->timeout;

// Set solving params.
SolverParams p(this->timeout, this->memoryLimit);
if (this->timeout || this->memoryLimit) {
SolverParams p(tmout, this->memoryLimit);
if (tmout || this->memoryLimit) {
bitwuzla_set_termination_callback(bzla, this->terminateCallback, reinterpret_cast<void*>(&p));
}

Expand Down

0 comments on commit e712f44

Please sign in to comment.