3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-01-25 16:40:55 +01:00
parent 9294b2ceb2
commit 435f79eab0

View file

@ -218,8 +218,8 @@ bool theory_user_propagator::internalize_term(app* term) {
unsigned v = add_expr(term);
if (!m_created_eh)
throw default_exception("You have to register a created event handler for new terms");
if (!m_created_eh && m_fixed_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);
return true;
}