mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
parent
698e2ffb0b
commit
3210dce63c
|
@ -181,7 +181,7 @@ struct expr2polynomial::imp {
|
||||||
case OP_POWER: {
|
case OP_POWER: {
|
||||||
rational k;
|
rational k;
|
||||||
SASSERT(t->get_num_args() == 2);
|
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)
|
if (m_use_var_idxs)
|
||||||
throw_not_polynomial();
|
throw_not_polynomial();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue