mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
fix build issue for debug mode
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1827f98851
commit
b1893f2a58
6 changed files with 40 additions and 8 deletions
|
@ -245,7 +245,7 @@ namespace smt {
|
|||
void mk_var_eh(bool_var v) override {
|
||||
expr * n = m_context.bool_var2expr(v);
|
||||
double act;
|
||||
if (m_cache.find(n, act))
|
||||
if (n && m_cache.find(n, act))
|
||||
m_context.set_activity(v, act);
|
||||
act_case_split_queue::mk_var_eh(v);
|
||||
}
|
||||
|
@ -255,8 +255,10 @@ namespace smt {
|
|||
double act = m_context.get_activity(v);
|
||||
if (act > 0.0) {
|
||||
expr * n = m_context.bool_var2expr(v);
|
||||
m_cache.insert(n, act);
|
||||
m_cache_domain.push_back(n);
|
||||
if (n) {
|
||||
m_cache.insert(n, act);
|
||||
m_cache_domain.push_back(n);
|
||||
}
|
||||
}
|
||||
}
|
||||
act_case_split_queue::del_var_eh(v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue