3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-12-27 12:16:28 -08:00
parent 1d77e3e19f
commit dd07d21f6c
2 changed files with 7 additions and 2 deletions

View file

@ -181,13 +181,16 @@ struct expr2polynomial::imp {
case OP_POWER: {
rational k;
SASSERT(t->get_num_args() == 2);
if (!m_autil.is_numeral(t->get_arg(1), k) || !k.is_int() || !k.is_unsigned()) {
if (!m_autil.is_numeral(t->get_arg(1), k) || !k.is_unsigned()) {
if (m_use_var_idxs)
throw_not_polynomial();
else
store_var_poly(t);
return true;
}
if (k.is_zero()) {
throw_not_polynomial();
}
push_frame(t);
return false;
}