mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
use get_sign
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4e81085292
commit
683eed0c1e
2 changed files with 22 additions and 20 deletions
|
@ -285,6 +285,7 @@ lia_move int_solver::run_gcd_test() {
|
|||
TRACE("int_solver", tout << "gcd-test " << settings().st().m_gcd_calls << "\n";);
|
||||
if (!gcd_test()) {
|
||||
settings().st().m_gcd_conflicts++;
|
||||
TRACE("gcd_test", tout << "gcd conflict\n";);
|
||||
return lia_move::conflict;
|
||||
}
|
||||
}
|
||||
|
@ -404,29 +405,30 @@ lia_move int_solver::hnf_cut() {
|
|||
lia_move int_solver::check() {
|
||||
if (!has_inf_int()) return lia_move::sat;
|
||||
|
||||
#define CHECK_RET(fn) \
|
||||
r = fn; \
|
||||
if (r != lia_move::undef) { TRACE("int_solver", tout << #fn << "\n";); return r; }
|
||||
|
||||
m_t.clear();
|
||||
m_k.reset();
|
||||
m_ex.clear();
|
||||
m_upper = false;
|
||||
lia_move r = run_gcd_test();
|
||||
if (r != lia_move::undef) return r;
|
||||
lia_move r;
|
||||
|
||||
CHECK_RET(run_gcd_test());
|
||||
|
||||
check_return_helper pc(m_lar_solver, r);
|
||||
|
||||
if(settings().m_int_pivot_fixed_vars_from_basis)
|
||||
if (settings().m_int_pivot_fixed_vars_from_basis)
|
||||
m_lar_solver->pivot_fixed_vars_from_basis();
|
||||
|
||||
r = patch_nbasic_columns();
|
||||
if (r != lia_move::undef) return r;
|
||||
CHECK_RET(patch_nbasic_columns());
|
||||
++m_number_of_calls;
|
||||
r = find_cube();
|
||||
if (r != lia_move::undef) return r;
|
||||
|
||||
r = hnf_cut();
|
||||
if (r != lia_move::undef) return r;
|
||||
|
||||
r = gomory_cut();
|
||||
return (r == lia_move::undef)? branch_or_sat() : r;
|
||||
CHECK_RET(find_cube());
|
||||
CHECK_RET(hnf_cut());
|
||||
CHECK_RET(gomory_cut());
|
||||
CHECK_RET(branch_or_sat());
|
||||
return r;
|
||||
}
|
||||
|
||||
lia_move int_solver::branch_or_sat() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue