mirror of
https://github.com/Z3Prover/z3
synced 2025-06-03 12:51:22 +00:00
debug opt
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
f41d23bc0f
commit
df5c2adc4e
2 changed files with 12 additions and 10 deletions
|
@ -92,7 +92,8 @@ namespace opt {
|
||||||
case 1:
|
case 1:
|
||||||
return execute(m_objectives[0], false);
|
return execute(m_objectives[0], false);
|
||||||
default: {
|
default: {
|
||||||
symbol pri = m_params.get_sym("priority", symbol("lex"));
|
opt_params optp(m_params);
|
||||||
|
symbol pri = optp.priority();
|
||||||
if (pri == symbol("pareto")) {
|
if (pri == symbol("pareto")) {
|
||||||
return execute_pareto();
|
return execute_pareto();
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ Notes:
|
||||||
#include"expr_safe_replace.h" // NB: should use proof-producing expr_substitute in polished version.
|
#include"expr_safe_replace.h" // NB: should use proof-producing expr_substitute in polished version.
|
||||||
#include"arith_decl_plugin.h"
|
#include"arith_decl_plugin.h"
|
||||||
#include"elim01_tactic.h"
|
#include"elim01_tactic.h"
|
||||||
|
#include"model_smt2_pp.h"
|
||||||
|
|
||||||
class bool2int_model_converter : public model_converter {
|
class bool2int_model_converter : public model_converter {
|
||||||
ast_manager& m;
|
ast_manager& m;
|
||||||
|
@ -63,15 +64,15 @@ public:
|
||||||
else {
|
else {
|
||||||
new_model->register_decl(f, fi);
|
new_model->register_decl(f, fi);
|
||||||
}
|
}
|
||||||
num = old_model->get_num_functions();
|
}
|
||||||
for (unsigned i = 0; i < num; i++) {
|
num = old_model->get_num_functions();
|
||||||
func_decl * f = old_model->get_function(i);
|
for (unsigned i = 0; i < num; i++) {
|
||||||
func_interp * fi = old_model->get_func_interp(f);
|
func_decl * f = old_model->get_function(i);
|
||||||
new_model->register_decl(f, fi->copy());
|
func_interp * fi = old_model->get_func_interp(f);
|
||||||
}
|
new_model->register_decl(f, fi->copy());
|
||||||
new_model->copy_usort_interps(*old_model);
|
}
|
||||||
old_model = new_model;
|
new_model->copy_usort_interps(*old_model);
|
||||||
}
|
old_model = new_model;
|
||||||
}
|
}
|
||||||
|
|
||||||
void insert(func_decl* x_new, func_decl* x_old) {
|
void insert(func_decl* x_new, func_decl* x_old) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue