mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 03:33:35 +00:00
fix #4106
This commit is contained in:
parent
530f77281c
commit
51c3778354
|
@ -306,9 +306,8 @@ struct check_logic::imp {
|
|||
}
|
||||
|
||||
// check if the divisor is a numeral
|
||||
void check_div(app * n) {
|
||||
SASSERT(n->get_num_args() == 2);
|
||||
if (!m_nonlinear && !is_numeral(n->get_arg(1)))
|
||||
void check_div(app * n) {
|
||||
if (n->get_num_args() != 2 || (!m_nonlinear && !is_numeral(n->get_arg(1))))
|
||||
fail("logic does not support nonlinear arithmetic");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue