3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 08:28:44 +00:00
* add prd

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>

* missing text

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>

* fix

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>

* fix #7647

* fix #7647 - with respect to scope level

---------

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-05-17 17:07:03 -07:00 committed by GitHub
parent 33812201cb
commit ad02d18e63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 408 additions and 5106 deletions

View file

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