3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-23 22:33:40 +00:00

adding timeout, parameters, statistics

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-10-30 13:23:04 -07:00
parent 49aba844b8
commit 9fc84f1389
4 changed files with 69 additions and 20 deletions

View file

@ -40,14 +40,10 @@ namespace opt {
app_ref_vector m_objectives;
svector<bool> m_is_max;
ref<solver> m_solver;
params_ref m_params;
public:
context(ast_manager& m):
m(m),
m_hard_constraints(m),
m_soft_constraints(m),
m_objectives(m)
{}
context(ast_manager& m);
void add_soft_constraint(expr* f, rational const& w) {
m_soft_constraints.push_back(f);
@ -69,6 +65,10 @@ namespace opt {
void cancel();
void reset_cancel();
void collect_statistics(statistics& stats);
void updt_params(params_ref& p);
private:
bool is_maxsat_problem() const;