3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-31 11:42:28 +00:00

remove a few useless dynamic casts

This commit is contained in:
Nuno Lopes 2025-09-13 21:06:55 +01:00
parent f0c788581a
commit c350ddf990
8 changed files with 18 additions and 28 deletions

View file

@ -1568,7 +1568,7 @@ namespace smt {
family_id fid = m.get_family_id("specrels");
theory* th = get_theory(fid);
if (th)
dynamic_cast<theory_special_relations*>(th)->get_specrels(rels);
static_cast<theory_special_relations*>(th)->get_specrels(rels);
}
@ -3602,7 +3602,7 @@ namespace smt {
auto p = m_theories.get_plugin(tid);
if (!p)
return false;
m_model = dynamic_cast<theory_sls*>(p)->get_model();
m_model = static_cast<theory_sls*>(p)->get_model();
return m_model.get() != nullptr;
}