mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 20:38:43 +00:00
disable quadratic moves for non-integers as sqrt isn't currently defined for rationals
This commit is contained in:
parent
d8430810fe
commit
fe713eb8e9
|
@ -217,6 +217,8 @@ namespace sls {
|
|||
template<typename num_t>
|
||||
void arith_base<num_t>::find_quadratic_moves(ineq const& ineq, var_t x, num_t const& a, num_t const& b, num_t const& sum) {
|
||||
num_t c, d;
|
||||
if (!is_int(x)) // sqrt is not defined for non-integers
|
||||
return;
|
||||
try {
|
||||
c = sum - a * value(x) * value(x) - b * value(x);
|
||||
d = b * b - 4 * a * c;
|
||||
|
|
Loading…
Reference in a new issue