mirror of
https://github.com/Z3Prover/z3
synced 2025-07-31 16:33:18 +00:00
fix #7647
This commit is contained in:
parent
9988a93f7f
commit
3fac441f3d
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue