mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
better branching with usage_in_terms()
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
3bbf1474f3
commit
ba40a5752f
4 changed files with 28 additions and 34 deletions
|
@ -101,6 +101,7 @@ class lar_solver : public column_namer {
|
|||
std::unordered_map<lar_term, std::pair<mpq, unsigned>, term_hasher, term_comparer>
|
||||
m_normalized_terms_to_columns;
|
||||
vector<impq> m_backup_x;
|
||||
stacked_vector<unsigned> m_usage_in_terms;
|
||||
// end of fields
|
||||
|
||||
////////////////// methods ////////////////////////////////
|
||||
|
@ -467,9 +468,13 @@ public:
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned usage_in_terms(column_index j) const {
|
||||
if (j >= m_usage_in_terms.size())
|
||||
return 0;
|
||||
return m_usage_in_terms[j];
|
||||
}
|
||||
friend int_solver;
|
||||
friend int_branch;
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue