mirror of
https://github.com/Z3Prover/z3
synced 2025-06-23 22:33:40 +00:00
tidy & todo notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
53f78f7d19
commit
3996f58a8e
6 changed files with 86 additions and 44 deletions
|
@ -14,6 +14,13 @@ Author:
|
|||
|
||||
Notes:
|
||||
|
||||
TODO:
|
||||
|
||||
- type check objective term and assertions. It should pass basic sanity being
|
||||
integer, real (, bit-vector) or other supported objective function type.
|
||||
|
||||
- add appropriate statistics tracking to opt::context
|
||||
|
||||
--*/
|
||||
#ifndef _OPT_CONTEXT_H_
|
||||
#define _OPT_CONTEXT_H_
|
||||
|
@ -31,7 +38,7 @@ namespace opt {
|
|||
|
||||
expr_ref_vector m_objectives;
|
||||
svector<bool> m_is_max;
|
||||
ref<::solver> m_solver;
|
||||
ref<solver> m_solver;
|
||||
|
||||
public:
|
||||
context(ast_manager& m):
|
||||
|
@ -55,12 +62,15 @@ namespace opt {
|
|||
m_hard_constraints.push_back(f);
|
||||
}
|
||||
|
||||
void set_solver(::solver* s) {
|
||||
void set_solver(solver* s) {
|
||||
m_solver = s;
|
||||
}
|
||||
|
||||
void optimize();
|
||||
|
||||
void cancel();
|
||||
void reset_cancel();
|
||||
|
||||
private:
|
||||
bool is_maxsat_problem() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue