mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
parent
1d77e3e19f
commit
dd07d21f6c
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue