3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-01 08:53:18 +00:00

fix for github issue 83

This commit is contained in:
Ken McMillan 2015-05-20 15:37:51 -07:00
parent cd8f82ebc2
commit caa616f11b
3 changed files with 23 additions and 1 deletions

View file

@ -1021,6 +1021,12 @@ public:
my_coeffs.push_back(make_int(c));
my_prem_cons.push_back(conc(prem(proof,i)));
}
else if(c.is_neg()){
int j = (i % 2 == 0) ? i + 1 : i - 1;
my_prems.push_back(prems[j]);
my_coeffs.push_back(make_int(-coeffs[j]));
my_prem_cons.push_back(conc(prem(proof,j)));
}
}
ast my_con = sum_inequalities(my_coeffs,my_prem_cons);
@ -1884,7 +1890,7 @@ public:
}
case GCDTestKind: {
std::vector<rational> farkas_coeffs;
get_farkas_coeffs(proof,farkas_coeffs);
get_broken_gcd_test_coeffs(proof,farkas_coeffs);
if(farkas_coeffs.size() != nprems){
pfgoto(proof);
throw unsupported();