3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-27 06:45:48 +00:00

regressions from previous push

This commit is contained in:
Nikolaj Bjorner 2021-08-25 18:30:50 -07:00
parent 2daf569da6
commit 07c26208fa
2 changed files with 3 additions and 0 deletions

View file

@ -185,6 +185,7 @@ bool macro_util::is_left_simple_macro(expr * n, unsigned num_decls, app_ref & he
return true;
}
if (m_manager.is_not(n, lhs) && m_manager.is_eq(lhs, lhs, rhs) &&
m_manager.is_bool(lhs) &&
is_macro_head(lhs, num_decls) &&
!is_forbidden(to_app(lhs)->get_decl()) &&
!occurs(to_app(lhs)->get_decl(), rhs)) {
@ -224,6 +225,7 @@ bool macro_util::is_right_simple_macro(expr * n, unsigned num_decls, app_ref & h
return true;
}
if (m_manager.is_not(n, n) && m_manager.is_eq(n, lhs, rhs) &&
m_manager.is_bool(lhs) &&
is_macro_head(rhs, num_decls) &&
!is_forbidden(to_app(rhs)->get_decl()) &&
!occurs(to_app(rhs)->get_decl(), lhs)) {