3
0
Fork 0
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:
Nikolaj Bjorner 2020-03-30 17:29:02 -07:00
parent 296e56c28f
commit 48581eb7ab

View file

@ -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);
}
}