3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 23:05:46 +00:00

working on new interpolation

This commit is contained in:
Ken McMillan 2013-10-25 13:58:56 -07:00
parent 3a0947b3ba
commit 79b0f83ab3
3 changed files with 691 additions and 35 deletions

View file

@ -325,6 +325,13 @@ class iz3mgr {
return rational(1);
}
ast get_linear_var(const ast& t){
rational res;
if(op(t) == Times && is_numeral(arg(t,0),res))
return arg(t,1);
return t;
}
int get_quantifier_num_bound(const ast &t) {
return to_quantifier(t.raw())->get_num_decls();
}