mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
add to_string and get_help methods to optimize API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7884b2ab31
commit
4d6aa1a0f3
6 changed files with 170 additions and 7 deletions
|
@ -35,6 +35,7 @@ namespace opt {
|
|||
class opt_solver;
|
||||
|
||||
class context {
|
||||
struct free_func_visitor;
|
||||
typedef map<symbol, maxsmt*, symbol_hash_proc, symbol_eq_proc> map_t;
|
||||
typedef map<symbol, unsigned, symbol_hash_proc, symbol_eq_proc> map_id;
|
||||
enum objective_t {
|
||||
|
@ -92,6 +93,8 @@ namespace opt {
|
|||
expr_ref get_lower(unsigned idx);
|
||||
expr_ref get_upper(unsigned idx);
|
||||
|
||||
std::string to_string() const;
|
||||
|
||||
private:
|
||||
void validate_feasibility(maxsmt& ms);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue