mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 19:47:52 +00:00
refactor weighted theory solver into own file
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8d23b2b813
commit
d67f1f36c4
5 changed files with 511 additions and 490 deletions
|
@ -50,7 +50,7 @@ namespace opt {
|
|||
bool m_dump_benchmarks;
|
||||
static unsigned m_dump_count;
|
||||
statistics m_stats;
|
||||
filter_model_converter m_fm;
|
||||
ref<filter_model_converter> m_fm;
|
||||
public:
|
||||
opt_solver(ast_manager & m, params_ref const & p, symbol const & l);
|
||||
virtual ~opt_solver();
|
||||
|
@ -82,7 +82,8 @@ namespace opt {
|
|||
inf_eps const & get_objective_value(unsigned obj_index);
|
||||
expr_ref mk_ge(unsigned obj_index, inf_eps const& val);
|
||||
|
||||
filter_model_converter& mc() { return m_fm; }
|
||||
filter_model_converter& mc() { return *(m_fm.get()); }
|
||||
ref<filter_model_converter>& mc_ref() { return m_fm; }
|
||||
|
||||
static opt_solver& to_opt(solver& s);
|
||||
bool dump_benchmarks();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue