mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 19:53:34 +00:00
parent
0768701744
commit
04a19cd1d8
|
@ -1161,6 +1161,10 @@ br_status arith_rewriter::mk_power_core(expr * arg1, expr * arg2, expr_ref & res
|
|||
if (!is_num_x && !is_irrat_x)
|
||||
return BR_FAILED;
|
||||
|
||||
if (y.is_zero()) {
|
||||
return BR_FAILED;
|
||||
}
|
||||
|
||||
rational num_y = numerator(y);
|
||||
rational den_y = denominator(y);
|
||||
bool is_neg_y = false;
|
||||
|
|
Loading…
Reference in a new issue