Skip to content

Commit 51c3778

Browse files
fix #4106
1 parent 530f772 commit 51c3778

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cmd_context/check_logic.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,8 @@ struct check_logic::imp {
306306
}
307307

308308
// check if the divisor is a numeral
309-
void check_div(app * n) {
310-
SASSERT(n->get_num_args() == 2);
311-
if (!m_nonlinear && !is_numeral(n->get_arg(1)))
309+
void check_div(app * n) {
310+
if (n->get_num_args() != 2 || (!m_nonlinear && !is_numeral(n->get_arg(1))))
312311
fail("logic does not support nonlinear arithmetic");
313312
}
314313

0 commit comments

Comments
 (0)