mirror of
https://github.com/Z3Prover/z3
synced 2025-07-29 07:27:57 +00:00
tidy
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
10cb358f9f
commit
d2ada6a772
1 changed files with 13 additions and 6 deletions
|
@ -189,6 +189,16 @@ struct solver::imp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool check_constraints() {
|
||||||
|
for (lp::constraint_index ci : lra.constraints().indices())
|
||||||
|
if (!check_constraint(ci))
|
||||||
|
return false;
|
||||||
|
for (auto const& m : m_nla_core.emons())
|
||||||
|
if (!check_monic(m))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\brief one-shot nlsat check.
|
\brief one-shot nlsat check.
|
||||||
A one shot checker is the least functionality that can
|
A one shot checker is the least functionality that can
|
||||||
|
@ -319,6 +329,7 @@ struct solver::imp {
|
||||||
if (mon)
|
if (mon)
|
||||||
v = mon->var();
|
v = mon->var();
|
||||||
else {
|
else {
|
||||||
|
NOT_IMPLEMENTED_YET();
|
||||||
return l_undef;
|
return l_undef;
|
||||||
// this one is for Lev Nachmanson: lar_solver relies on internal variables
|
// this one is for Lev Nachmanson: lar_solver relies on internal variables
|
||||||
// to have terms from outside. The solver doesn't get to create
|
// to have terms from outside. The solver doesn't get to create
|
||||||
|
@ -527,12 +538,8 @@ struct solver::imp {
|
||||||
case l_true:
|
case l_true:
|
||||||
m_nla_core.set_use_nra_model(true);
|
m_nla_core.set_use_nra_model(true);
|
||||||
lra.init_model();
|
lra.init_model();
|
||||||
for (lp::constraint_index ci : lra.constraints().indices())
|
if (!check_constraints())
|
||||||
if (!check_constraint(ci))
|
return l_undef;
|
||||||
return l_undef;
|
|
||||||
for (auto const& m : m_nla_core.emons())
|
|
||||||
if (!check_monic(m))
|
|
||||||
return l_undef;
|
|
||||||
break;
|
break;
|
||||||
case l_false: {
|
case l_false: {
|
||||||
lp::explanation ex;
|
lp::explanation ex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue