mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 00:18:45 +00:00
re-enable pre-process
This commit is contained in:
parent
c9fa00aec1
commit
3f5eb7fcf2
10 changed files with 66 additions and 62 deletions
|
@ -57,6 +57,8 @@ namespace opt {
|
|||
virtual smt::context& smt_context() = 0; // access SMT context for SMT based MaxSMT solver (wmax requires SMT core)
|
||||
virtual unsigned num_objectives() = 0;
|
||||
virtual bool verify_model(unsigned id, model* mdl, rational const& v) = 0;
|
||||
virtual rational adjust(unsigned id, rational const& v) = 0;
|
||||
virtual void add_offset(unsigned id, rational const& o) = 0;
|
||||
virtual void set_model(model_ref& _m) = 0;
|
||||
virtual void model_updated(model* mdl) = 0;
|
||||
};
|
||||
|
@ -93,7 +95,7 @@ namespace opt {
|
|||
app_ref m_term; // for maximize, minimize term
|
||||
expr_ref_vector m_terms; // for maxsmt
|
||||
vector<rational> m_weights; // for maxsmt
|
||||
adjust_value m_adjust_value;
|
||||
adjust_value m_adjust_value;
|
||||
symbol m_id; // for maxsmt
|
||||
unsigned m_index; // for maximize/minimize index
|
||||
|
||||
|
@ -269,11 +271,14 @@ namespace opt {
|
|||
|
||||
void model_updated(model* mdl) override;
|
||||
|
||||
rational adjust(unsigned id, rational const& v) override;
|
||||
|
||||
void add_offset(unsigned id, rational const& o) override;
|
||||
|
||||
void register_on_model(on_model_t& ctx, std::function<void(on_model_t&, model_ref&)>& on_model) {
|
||||
m_on_model_ctx = ctx;
|
||||
m_on_model_eh = on_model;
|
||||
}
|
||||
|
||||
|
||||
void collect_timer_stats(statistics& st) const {
|
||||
if (m_time != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue