mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 05:43:39 +00:00
fix #4106
This commit is contained in:
parent
530f77281c
commit
51c3778354
1 changed files with 2 additions and 3 deletions
|
@ -307,8 +307,7 @@ struct check_logic::imp {
|
||||||
|
|
||||||
// check if the divisor is a numeral
|
// check if the divisor is a numeral
|
||||||
void check_div(app * n) {
|
void check_div(app * n) {
|
||||||
SASSERT(n->get_num_args() == 2);
|
if (n->get_num_args() != 2 || (!m_nonlinear && !is_numeral(n->get_arg(1))))
|
||||||
if (!m_nonlinear && !is_numeral(n->get_arg(1)))
|
|
||||||
fail("logic does not support nonlinear arithmetic");
|
fail("logic does not support nonlinear arithmetic");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue