mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
add prd (#7649)
* 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:
parent
33812201cb
commit
ad02d18e63
4 changed files with 408 additions and 5106 deletions
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue