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

fixing null check

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-01-25 17:25:42 +01:00
parent 435f79eab0
commit c6539deb61

View file

@ -218,9 +218,10 @@ bool theory_user_propagator::internalize_term(app* term) {
unsigned v = add_expr(term);
if (!m_created_eh && m_fixed_eh)
if (!m_created_eh && (m_fixed_eh || m_eq_eh || m_diseq_eh))
throw default_exception("You have to register a created event handler for new terms if you track them");
m_created_eh(m_user_context, this, term, v);
if (m_created_eh)
m_created_eh(m_user_context, this, term, v);
return true;
}