mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
fix initialization
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
95e26aaad9
commit
5ed27a6c38
3 changed files with 6 additions and 1 deletions
|
@ -52,6 +52,7 @@ namespace euf {
|
||||||
m_values(m)
|
m_values(m)
|
||||||
{
|
{
|
||||||
updt_params(p);
|
updt_params(p);
|
||||||
|
m_relevancy.set_enabled(get_config().m_relevancy_lvl > 2);
|
||||||
|
|
||||||
std::function<void(std::ostream&, void*)> disp =
|
std::function<void(std::ostream&, void*)> disp =
|
||||||
[&](std::ostream& out, void* j) {
|
[&](std::ostream& out, void* j) {
|
||||||
|
@ -70,6 +71,7 @@ namespace euf {
|
||||||
|
|
||||||
void solver::updt_params(params_ref const& p) {
|
void solver::updt_params(params_ref const& p) {
|
||||||
m_config.updt_params(p);
|
m_config.updt_params(p);
|
||||||
|
std::cout << get_config().m_relevancy_lvl << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,7 +22,6 @@ Author:
|
||||||
namespace smt {
|
namespace smt {
|
||||||
|
|
||||||
relevancy::relevancy(euf::solver& ctx): ctx(ctx) {
|
relevancy::relevancy(euf::solver& ctx): ctx(ctx) {
|
||||||
m_enabled = ctx.get_config().m_relevancy_lvl > 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void relevancy::relevant_eh(euf::enode* n) {
|
void relevancy::relevant_eh(euf::enode* n) {
|
||||||
|
@ -73,6 +72,9 @@ namespace smt {
|
||||||
case update::set_root:
|
case update::set_root:
|
||||||
m_roots[idx] = false;
|
m_roots[idx] = false;
|
||||||
break;
|
break;
|
||||||
|
case update::set_qhead:
|
||||||
|
m_qhead = idx;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -143,6 +143,7 @@ namespace smt {
|
||||||
bool is_relevant(expr* e) const { return !m_enabled || m_relevant_expr_ids.get(e->get_id(), false); }
|
bool is_relevant(expr* e) const { return !m_enabled || m_relevant_expr_ids.get(e->get_id(), false); }
|
||||||
|
|
||||||
bool enabled() const { return m_enabled; }
|
bool enabled() const { return m_enabled; }
|
||||||
|
void set_enabled(bool e) { m_enabled = e; }
|
||||||
|
|
||||||
void add_relevant(euf::th_solver* th) { m_relevant_eh.push_back(th); }
|
void add_relevant(euf::th_solver* th) { m_relevant_eh.push_back(th); }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue