3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-31 16:33:18 +00:00
This commit is contained in:
Nikolaj Bjorner 2025-05-16 21:17:06 -07:00
parent 9988a93f7f
commit 3fac441f3d

View file

@ -156,6 +156,8 @@ public:
auto simplifier_factory = sexpr2simplifier(ctx, m_simplifier);
ctx.init_manager();
auto* s = ctx.get_solver();
if (s->get_num_assertions() > 0)
throw cmd_exception("set-simplifier cannot be invoked if there are already assertions");
if (s)
ctx.set_solver(mk_simplifier_solver(s, &simplifier_factory));
}