Skip to content

Commit

Permalink
dampen second setup of theory_bv
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Dec 31, 2022
1 parent 5f6f2fc commit c0f1f33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/smt/smt_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,9 +689,12 @@ namespace smt {
}

void setup::setup_bv() {
family_id bv_fid = m_manager.mk_family_id("bv");
if (m_context.get_theory(bv_fid))
return;
switch(m_params.m_bv_mode) {
case BS_NO_BV:
m_context.register_plugin(alloc(smt::theory_dummy, m_context, m_manager.mk_family_id("bv"), "no bit-vector"));
m_context.register_plugin(alloc(smt::theory_dummy, m_context, bv_fid, "no bit-vector"));
break;
case BS_BLASTER:
m_context.register_plugin(alloc(smt::theory_bv, m_context));
Expand Down

0 comments on commit c0f1f33

Please sign in to comment.