Skip to content

Commit

Permalink
Update z3solver to handle unknown solution cases with error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardodebenedictis committed Jan 9, 2025
1 parent 52a6a97 commit 2d3bc38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/z3/z3solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ namespace ratio
if (!inconsistencies)
return true; // solution found..
}
else if (res == z3::unknown)
{
LOG_ERR("Z3 solver failed to solve the problem: " << slv.reason_unknown());
return false; // no solution..
}
else if (unexpanded_flaws.empty())
return false; // no solution..
else
Expand Down

0 comments on commit 2d3bc38

Please sign in to comment.