mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
reduce-args: fix unsoundness 2: f(v + 2), where b is quantified
This commit is contained in:
parent
aed4619066
commit
facb421398
|
@ -96,10 +96,10 @@ struct reduce_args_tactic::imp {
|
||||||
expr *lhs, *rhs;
|
expr *lhs, *rhs;
|
||||||
if (bv.is_bv_add(e, lhs, rhs) && bv.is_numeral(lhs)) {
|
if (bv.is_bv_add(e, lhs, rhs) && bv.is_numeral(lhs)) {
|
||||||
base = rhs;
|
base = rhs;
|
||||||
return true;
|
} else {
|
||||||
|
base = e;
|
||||||
}
|
}
|
||||||
base = e;
|
return !is_var(base);
|
||||||
return !is_var(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool may_be_unique(ast_manager& m, bv_util& bv, expr* e, expr*& base) {
|
static bool may_be_unique(ast_manager& m, bv_util& bv, expr* e, expr*& base) {
|
||||||
|
|
Loading…
Reference in a new issue