mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
add sort stumps for expressions
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
27a27f16ff
commit
705607fba0
8 changed files with 195 additions and 58 deletions
|
@ -38,10 +38,13 @@ struct occ {
|
|||
|
||||
class nex_creator {
|
||||
|
||||
ptr_vector<nex> m_allocated;
|
||||
std::unordered_map<lpvar, occ> m_occurences_map;
|
||||
std::unordered_map<lpvar, unsigned> m_powers;
|
||||
ptr_vector<nex> m_allocated;
|
||||
std::unordered_map<lpvar, occ> m_occurences_map;
|
||||
std::unordered_map<lpvar, unsigned> m_powers;
|
||||
// the "less than" operator on expressions
|
||||
std::function<bool (const nex*, const nex*)> m_lt;
|
||||
public:
|
||||
nex_creator(std::function<bool (const nex*, const nex*)> lt) {}
|
||||
const std::unordered_map<lpvar, occ>& occurences_map() const { return m_occurences_map; }
|
||||
std::unordered_map<lpvar, occ>& occurences_map() { return m_occurences_map; }
|
||||
const std::unordered_map<lpvar, unsigned> & powers() const { return m_powers; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue