mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
add ignore int to new arithmetic solvers
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b1aa6b260b
commit
7497856ded
2 changed files with 17 additions and 2 deletions
|
@ -1014,6 +1014,9 @@ namespace arith {
|
|||
return sat::check_result::CR_CONTINUE;
|
||||
case l_undef:
|
||||
TRACE("arith", tout << "check-lia giveup\n";);
|
||||
if (ctx.get_config().m_arith_ignore_int)
|
||||
return sat::check_result::CR_GIVEUP;
|
||||
|
||||
st = sat::check_result::CR_CONTINUE;
|
||||
break;
|
||||
}
|
||||
|
@ -1127,7 +1130,11 @@ namespace arith {
|
|||
if (!check_idiv_bounds())
|
||||
return l_false;
|
||||
|
||||
switch (m_lia->check(&m_explanation)) {
|
||||
auto cr = m_lia->check(&m_explanation);
|
||||
if (cr != lp::lia_move::sat && ctx.get_config().m_arith_ignore_int)
|
||||
return l_undef;
|
||||
|
||||
switch (cr) {
|
||||
case lp::lia_move::sat:
|
||||
lia_check = l_true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue