mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 19:02:02 +00:00
Enhancement for Valentin #332
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2122fdee45
commit
0592e76574
4 changed files with 31 additions and 6 deletions
|
@ -82,6 +82,7 @@ namespace opt {
|
|||
static unsigned m_dump_count;
|
||||
statistics m_stats;
|
||||
bool m_first;
|
||||
bool m_was_unknown;
|
||||
public:
|
||||
opt_solver(ast_manager & m, params_ref const & p, filter_model_converter& fm);
|
||||
virtual ~opt_solver();
|
||||
|
@ -117,6 +118,8 @@ namespace opt {
|
|||
return m_valid_objectives[obj_index];
|
||||
}
|
||||
|
||||
bool was_unknown() const { return m_was_unknown; }
|
||||
|
||||
vector<inf_eps> const& get_objective_values();
|
||||
expr_ref mk_ge(unsigned obj_index, inf_eps const& val);
|
||||
|
||||
|
@ -136,6 +139,7 @@ namespace opt {
|
|||
private:
|
||||
lbool decrement_value(unsigned i, inf_eps& val);
|
||||
void set_model(unsigned i);
|
||||
lbool adjust_result(lbool r);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue