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-20 14:41:27 +01:00
parent f1a302bba7
commit c527fda0b6

View file

@ -54,7 +54,7 @@ unsigned theory_user_propagator::add_expr(expr* e) {
if (is_attached_to_var(n))
return n->get_th_var(get_id());
theory_var v = mk_var(n);
if (m.is_bool(e)) {
if (m.is_bool(e) && !ctx.b_internalized(e)) {
bool_var bv = ctx.mk_bool_var(e);
ctx.set_var_theory(bv, get_id());
ctx.set_enode_flag(bv, true);