mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
working on new parameter framework
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
be5f933201
commit
589f096e6e
36 changed files with 436 additions and 377 deletions
|
@ -28,6 +28,8 @@ Revision History:
|
|||
#include"solver.h"
|
||||
#include"smt_strategic_solver.h"
|
||||
#include"cmd_context.h"
|
||||
#include"model_params.hpp"
|
||||
#include"parser_params.hpp"
|
||||
|
||||
namespace smtlib {
|
||||
|
||||
|
@ -35,8 +37,9 @@ namespace smtlib {
|
|||
m_ast_manager(params.m_proof_mode, params.m_trace_stream),
|
||||
m_params(params),
|
||||
m_ctx(0),
|
||||
m_parser(parser::create(m_ast_manager, params.m_ignore_user_patterns)),
|
||||
m_error_code(0) {
|
||||
parser_params ps;
|
||||
m_parser = parser::create(m_ast_manager, ps.ignore_user_patterns());
|
||||
m_parser->initialize_smtlib();
|
||||
}
|
||||
|
||||
|
@ -82,7 +85,7 @@ namespace smtlib {
|
|||
// Hack: it seems SMT-LIB allow benchmarks without any :formula
|
||||
benchmark.add_formula(m_ast_manager.mk_true());
|
||||
}
|
||||
m_ctx = alloc(cmd_context, &m_params, true, &m_ast_manager, benchmark.get_logic());
|
||||
m_ctx = alloc(cmd_context, true, &m_ast_manager, benchmark.get_logic());
|
||||
m_ctx->set_solver(mk_smt_strategic_solver(false));
|
||||
theory::expr_iterator fit = benchmark.begin_formulas();
|
||||
theory::expr_iterator fend = benchmark.end_formulas();
|
||||
|
@ -105,7 +108,8 @@ namespace smtlib {
|
|||
model_ref md;
|
||||
if (r->status() != l_false) r->get_model(md);
|
||||
if (md.get() != 0 && m_params.m_model) {
|
||||
model_v2_pp(std::cout, *(md.get()), m_params.m_model_partial);
|
||||
model_params p;
|
||||
model_v2_pp(std::cout, *(md.get()), p.partial());
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue