mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 08:15:47 +00:00
still working on interpolation of full z3 proofs
This commit is contained in:
parent
07bb534d65
commit
2c9c5ba1f0
8 changed files with 547 additions and 135 deletions
|
@ -494,6 +494,12 @@ void iz3mgr::get_farkas_coeffs(const ast &proof, std::vector<rational>& rats){
|
|||
}
|
||||
rats[i-2] = r;
|
||||
}
|
||||
if(rats.size() != 0 && rats[0].is_neg()){
|
||||
for(unsigned i = 0; i < rats.size(); i++){
|
||||
assert(rats[i].is_neg());
|
||||
rats[i] = -rats[i];
|
||||
}
|
||||
}
|
||||
extract_lcd(rats);
|
||||
}
|
||||
|
||||
|
@ -519,11 +525,10 @@ void iz3mgr::get_assign_bounds_coeffs(const ast &proof, std::vector<rational>& r
|
|||
{
|
||||
ast con = arg(conc(proof),i-1);
|
||||
ast temp = make_real(r); // for debugging
|
||||
#if 0
|
||||
opr o = is_not(con) ? op(arg(con,0)) : op(con);
|
||||
if(is_not(con) ? (o == Leq || o == Lt) : (o == Geq || o == Gt))
|
||||
#endif
|
||||
r = -r;
|
||||
r = -r;
|
||||
}
|
||||
rats[i-1] = r;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue