mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
parent
698e2ffb0b
commit
3210dce63c
|
@ -181,7 +181,7 @@ 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_unsigned()) {
|
||||
if (!m_autil.is_numeral(t->get_arg(1), k) || !k.is_unsigned() || k.is_zero()) {
|
||||
if (m_use_var_idxs)
|
||||
throw_not_polynomial();
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue