mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
fix #3598, feature overload abuse
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
296e56c28f
commit
48581eb7ab
|
@ -252,6 +252,8 @@ namespace smt {
|
|||
// copy theory plugins
|
||||
for (theory* old_th : src.m_theory_set) {
|
||||
theory * new_th = old_th->mk_fresh(&dst);
|
||||
if (!new_th)
|
||||
throw default_exception("theory cannot be copied");
|
||||
dst.register_plugin(new_th);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue