3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-08 12:11:23 +00:00

fix stack overflow regression in bool_rewriter

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-12-28 18:21:59 -08:00
parent 3526d03cca
commit 6ea68310c9
3 changed files with 17 additions and 12 deletions

View file

@ -775,8 +775,7 @@ br_status bool_rewriter::mk_eq_core(expr * lhs, expr * rhs, expr_ref & result) {
std::swap(lhs, rhs);
if (m().is_not(lhs, lhs)) {
mk_eq(lhs, rhs, result);
mk_not(result, result);
result = m().mk_not(m().mk_eq(lhs, rhs));
return BR_REWRITE2;
}