Skip to content

Commit

Permalink
fix #4106
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 26, 2020
1 parent 530f772 commit 51c3778
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cmd_context/check_logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 51c3778

Please sign in to comment.