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

Regressions reported by Guido

This commit is contained in:
Nikolaj Bjorner 2023-12-01 13:32:13 -08:00
parent 99e2794a6d
commit faf14012ba
3 changed files with 16 additions and 7 deletions

View file

@ -2413,7 +2413,10 @@ namespace {
m_n2 = static_cast<const check *>(m_pc)->m_enode;
SASSERT(m_n1 != 0);
SASSERT(m_n2 != 0);
if (m_n1->get_root() != m_n2->get_root())
// hack to handle dynamically generated patterns:
// if the pattern is ground and an if-expression, ignore equality check.
if (m_n1->get_root() != m_n2->get_root() && !m.is_ite(m_n2->get_expr()))
goto backtrack;
// we used the equality m_n1 = m_n2 for the match and need to make sure it ends up in the log