3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

Merge pull request #267 from kenmcmil/duality_interp_error_handling

issue #200
This commit is contained in:
Nikolaj Bjorner 2015-10-27 18:49:46 -07:00
commit 418b6d4738
5 changed files with 28 additions and 5 deletions

View file

@ -564,7 +564,10 @@ class iz3proof_itp_impl : public iz3proof_itp {
else res = clone(e,args);
}
catch (const cannot_simplify &){
res = clone(e,args);
if(g == sum)
res = clone(e,args);
else
throw "interpolation failure";
}
}
return res;

View file

@ -1201,9 +1201,12 @@ public:
ast t = arg(my_con,0);
ast c = arg(my_con,1);
ast d = gcd_of_coefficients(t);
/*
t = z3_simplify(mk_idiv(t,d));
c = z3_simplify(mk_idiv(c,d));
ast cut_con = make(op(my_con),t,c);
*/
ast cut_con = con;
return iproof->make_cut_rule(my_con,d,cut_con,res);
}