mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
integrate lambda expressions
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
bf4edef761
commit
520ce9a5ee
139 changed files with 2243 additions and 1506 deletions
|
@ -58,6 +58,8 @@ public:
|
|||
return m_fid2plugins.get(fid, 0);
|
||||
}
|
||||
|
||||
ptr_vector<Plugin> const& plugins() const { return m_plugins; }
|
||||
|
||||
typename ptr_vector<Plugin>::const_iterator begin() const {
|
||||
return m_plugins.begin();
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ class top_sort {
|
|||
|
||||
public:
|
||||
|
||||
~top_sort() {
|
||||
virtual ~top_sort() {
|
||||
for (auto & kv : m_deps) dealloc(kv.m_value);
|
||||
}
|
||||
|
||||
|
@ -96,6 +96,20 @@ public:
|
|||
}
|
||||
|
||||
ptr_vector<T> const& top_sorted() { return m_top_sorted; }
|
||||
|
||||
obj_map<T, unsigned> const& partition_ids() const { return m_partition_id; }
|
||||
|
||||
unsigned partition_id(T* t) const { return m_partition_id[t]; }
|
||||
|
||||
bool is_singleton_partition(T* f) const {
|
||||
unsigned pid = m_partition_id[f];
|
||||
return f == m_top_sorted[pid] &&
|
||||
(pid == 0 || m_partition_id[m_top_sorted[pid-1]] != pid) &&
|
||||
(pid + 1 == m_top_sorted.size() || m_partition_id[m_top_sorted[pid+1]] != pid);
|
||||
}
|
||||
|
||||
obj_map<T, T_set*> const& deps() const { return m_deps; }
|
||||
|
||||
};
|
||||
|
||||
#endif /* TOP_SORT_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue