mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
use PB solver instead of full arithmetic for bouding Pareto fronts so that difference logic theory isn't broken. Codeplex issue 175
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
49483fdc28
commit
c3232693f0
5 changed files with 51 additions and 54 deletions
|
@ -86,6 +86,14 @@ namespace opt {
|
|||
m_context.set_logic(logic);
|
||||
}
|
||||
|
||||
void opt_solver::ensure_pb() {
|
||||
smt::theory_id th_id = m.get_family_id("pb");
|
||||
smt::theory* th = get_context().get_theory(th_id);
|
||||
if (!th) {
|
||||
get_context().register_plugin(alloc(smt::theory_pb, m, m_params));
|
||||
}
|
||||
}
|
||||
|
||||
smt::theory_opt& opt_solver::get_optimizer() {
|
||||
smt::context& ctx = m_context.get_context();
|
||||
smt::theory_id arith_id = m_context.m().get_family_id("arith");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue