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

reduce-args: fix unsoundness 2: f(v + 2), where b is quantified

This commit is contained in:
Nuno Lopes 2016-03-17 13:27:07 +00:00
parent aed4619066
commit facb421398

View file

@ -96,10 +96,10 @@ struct reduce_args_tactic::imp {
expr *lhs, *rhs;
if (bv.is_bv_add(e, lhs, rhs) && bv.is_numeral(lhs)) {
base = rhs;
return true;
} else {
base = e;
}
base = e;
return !is_var(e);
return !is_var(base);
}
static bool may_be_unique(ast_manager& m, bv_util& bv, expr* e, expr*& base) {