mirror of
https://github.com/Z3Prover/z3
synced 2025-08-13 14:40:55 +00:00
update goal2sat interface to use explicit initialization
This commit is contained in:
parent
500626e814
commit
82d9e4a4fc
5 changed files with 29 additions and 10 deletions
|
@ -721,7 +721,8 @@ private:
|
|||
if (m_solver.inconsistent())
|
||||
return l_false;
|
||||
m_pc.reset();
|
||||
m_goal2sat(m, sz, fmls, m_params, m_solver, m_map, m_dep2asm, is_incremental());
|
||||
m_goal2sat.init(m, m_params, m_solver, m_map, m_dep2asm, is_incremental());
|
||||
m_goal2sat(sz, fmls);
|
||||
if (!m_sat_mc) m_sat_mc = alloc(sat2goal::mc, m);
|
||||
m_sat_mc->flush_smc(m_solver, m_map);
|
||||
return check_uninterpreted();
|
||||
|
@ -798,7 +799,8 @@ private:
|
|||
fmls.append(sz, asms);
|
||||
for (unsigned i = 0; i < get_num_assumptions(); ++i)
|
||||
fmls.push_back(get_assumption(i));
|
||||
m_goal2sat.assumptions(m, fmls.size(), fmls.data(), m_params, m_solver, m_map, m_dep2asm, is_incremental());
|
||||
m_goal2sat.init(m, m_params, m_solver, m_map, m_dep2asm, is_incremental());
|
||||
m_goal2sat.assumptions(fmls.size(), fmls.data());
|
||||
extract_assumptions(fmls.size(), fmls.data());
|
||||
return l_true;
|
||||
}
|
||||
|
|
|
@ -15,8 +15,7 @@ Author:
|
|||
|
||||
--*/
|
||||
|
||||
#include "sat/sat_params.hpp"
|
||||
#include "sat/sat_solver/sat_smt_preprocess.h"
|
||||
|
||||
#include "ast/simplifiers/bit_blaster.h"
|
||||
#include "ast/simplifiers/max_bv_sharing.h"
|
||||
#include "ast/simplifiers/card2bv.h"
|
||||
|
@ -24,6 +23,8 @@ Author:
|
|||
#include "ast/simplifiers/rewriter_simplifier.h"
|
||||
#include "ast/simplifiers/solve_eqs.h"
|
||||
#include "ast/simplifiers/eliminate_predicates.h"
|
||||
#include "sat/sat_params.hpp"
|
||||
#include "sat/sat_solver/sat_smt_preprocess.h"
|
||||
|
||||
void init_preprocess(ast_manager& m, params_ref const& p, seq_simplifier& s, dependent_expr_state& st) {
|
||||
params_ref simp1_p = p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue