mirror of
https://github.com/Z3Prover/z3
synced 2026-07-04 06:16:09 +00:00
log exceptions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4dbd592137
commit
4237f9d86b
1 changed files with 3 additions and 1 deletions
|
|
@ -861,7 +861,7 @@ class parallel_solver {
|
||||||
|
|
||||||
if (changed && !m_bb_candidates.empty()) {
|
if (changed && !m_bb_candidates.empty()) {
|
||||||
m_bb_candidate_epoch.fetch_add(1, std::memory_order_release);
|
m_bb_candidate_epoch.fetch_add(1, std::memory_order_release);
|
||||||
std::sort(
|
std::stable_sort(
|
||||||
m_bb_candidates.begin(),
|
m_bb_candidates.begin(),
|
||||||
m_bb_candidates.end(),
|
m_bb_candidates.end(),
|
||||||
[&](bb_candidate const& a, bb_candidate const& b) {
|
[&](bb_candidate const& a, bb_candidate const& b) {
|
||||||
|
|
@ -1933,11 +1933,13 @@ public:
|
||||||
if (lim.is_canceled())
|
if (lim.is_canceled())
|
||||||
m_batch_manager.set_cancel();
|
m_batch_manager.set_cancel();
|
||||||
} catch (z3_error &err) {
|
} catch (z3_error &err) {
|
||||||
|
IF_VERBOSE(0, verbose_stream() << "Exception in parallel solver: " << err.what() << "\n");
|
||||||
if (!lim.is_canceled())
|
if (!lim.is_canceled())
|
||||||
m_batch_manager.set_exception(err.error_code());
|
m_batch_manager.set_exception(err.error_code());
|
||||||
else
|
else
|
||||||
m_batch_manager.set_cancel();
|
m_batch_manager.set_cancel();
|
||||||
} catch (z3_exception &ex) {
|
} catch (z3_exception &ex) {
|
||||||
|
IF_VERBOSE(0, verbose_stream() << "Exception in parallel solver: " << ex.what() << "\n");
|
||||||
if (!lim.is_canceled() && !is_cancellation_exception(ex.what()))
|
if (!lim.is_canceled() && !is_cancellation_exception(ex.what()))
|
||||||
m_batch_manager.set_exception(ex.what());
|
m_batch_manager.set_exception(ex.what());
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue