3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00

Gracefully failing in assign-bounds to farkas

This commit is contained in:
Arie Gurfinkel 2018-06-24 21:03:09 -04:00
parent e906930922
commit f330b96a35

View file

@ -307,7 +307,10 @@ namespace spacer {
rational rat1, rat2, coeff0;
arith_util a(m);
if (a.is_numeral(val1, rat1) && a.is_numeral(val2, rat2)) {
CTRACE("spacer.fkab", !(val1 && val2),
tout << "Failed to match variables\n";);
if (val1 && val2 &&
a.is_numeral(val1, rat1) && a.is_numeral(val2, rat2)) {
coeff0 = abs(rat2/rat1);
coeff0 = coeff0 / lcb.lc();
TRACE("spacer.fkab", tout << "coeff0: " << coeff0 << "\n";);