mirror of
https://github.com/Z3Prover/z3
synced 2025-10-03 14:33:56 +00:00
use std::exception as base class to z3_exception
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1957b4d991
commit
92065462b4
60 changed files with 109 additions and 111 deletions
|
@ -227,10 +227,10 @@ public:
|
|||
r = m_solver.check(m_asms.size(), m_asms.data());
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
IF_VERBOSE(1, verbose_stream() << "exception: " << ex.msg() << "\n";);
|
||||
IF_VERBOSE(1, verbose_stream() << "exception: " << ex.what() << "\n";);
|
||||
if (m.inc()) {
|
||||
reason_set = true;
|
||||
set_reason_unknown(std::string("(sat.giveup ") + ex.msg() + ')');
|
||||
set_reason_unknown(std::string("(sat.giveup ") + ex.what() + ')');
|
||||
}
|
||||
r = l_undef;
|
||||
}
|
||||
|
@ -779,9 +779,9 @@ private:
|
|||
}
|
||||
}
|
||||
catch (tactic_exception & ex) {
|
||||
IF_VERBOSE(1, verbose_stream() << "exception in tactic " << ex.msg() << "\n";);
|
||||
set_reason_unknown(ex.msg());
|
||||
TRACE("sat", tout << "exception: " << ex.msg() << "\n";);
|
||||
IF_VERBOSE(1, verbose_stream() << "exception in tactic " << ex.what() << "\n";);
|
||||
set_reason_unknown(ex.what());
|
||||
TRACE("sat", tout << "exception: " << ex.what() << "\n";);
|
||||
m_preprocess = nullptr;
|
||||
m_bb_rewriter = nullptr;
|
||||
return l_undef;
|
||||
|
|
|
@ -183,9 +183,9 @@ public:
|
|||
r = m_solver.check(m_dep.m_literals);
|
||||
}
|
||||
catch (z3_exception& ex) {
|
||||
IF_VERBOSE(1, verbose_stream() << "exception: " << ex.msg() << "\n";);
|
||||
IF_VERBOSE(1, verbose_stream() << "exception: " << ex.what() << "\n";);
|
||||
if (m.inc()) {
|
||||
set_reason_unknown(std::string("(sat.giveup ") + ex.msg() + ')');
|
||||
set_reason_unknown(std::string("(sat.giveup ") + ex.what() + ')');
|
||||
return l_undef;
|
||||
}
|
||||
r = l_undef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue