mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
use explanation.h for conflict explanations everywhere
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
fd0f6bcbf9
commit
0911fc2bda
10 changed files with 43 additions and 42 deletions
|
@ -82,7 +82,7 @@ namespace nra {
|
|||
TBD: use partial model from lra_solver to prime the state of nlsat_solver.
|
||||
TBD: explore more incremental ways of applying nlsat (using assumptions)
|
||||
*/
|
||||
lbool check(lp::explanation_t& ex) {
|
||||
lbool check(lp::explanation& ex) {
|
||||
SASSERT(need_check());
|
||||
m_nlsat = alloc(nlsat::solver, m_limit, m_params, false);
|
||||
m_zero = alloc(scoped_anum, am());
|
||||
|
@ -121,7 +121,7 @@ namespace nra {
|
|||
m_nlsat->get_core(core);
|
||||
for (auto c : core) {
|
||||
unsigned idx = static_cast<unsigned>(static_cast<imp*>(c) - this);
|
||||
ex.push_back(std::pair<rational, unsigned>(rational(1), idx));
|
||||
ex.push_justification(idx, rational(1));
|
||||
TRACE("arith", tout << "ex: " << idx << "\n";);
|
||||
}
|
||||
break;
|
||||
|
@ -247,7 +247,7 @@ namespace nra {
|
|||
m_imp->add(v, sz, vs);
|
||||
}
|
||||
|
||||
lbool solver::check(lp::explanation_t& ex) {
|
||||
lbool solver::check(lp::explanation& ex) {
|
||||
return m_imp->check(ex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue