mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
delay internalization, relevancy (#4707)
* delay evaluation Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * Update bv_solver.cpp * delay internalize Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * compiler warnings Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * remove gc Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com> * add bv delay option Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1e7998f03a
commit
7c2bdfe3fb
21 changed files with 584 additions and 122 deletions
|
@ -515,6 +515,18 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void init(vector<T, CallDestructors> const& other) {
|
||||
if (this == &other)
|
||||
return;
|
||||
reset();
|
||||
append(other);
|
||||
}
|
||||
|
||||
void init(SZ sz, T const* data) {
|
||||
reset();
|
||||
append(sz, data);
|
||||
}
|
||||
|
||||
T * c_ptr() const {
|
||||
return m_data;
|
||||
}
|
||||
|
@ -637,3 +649,14 @@ struct vector_hash : public vector_hash_tpl<Hash, vector<typename Hash::data> >
|
|||
|
||||
template<typename Hash>
|
||||
struct svector_hash : public vector_hash_tpl<Hash, svector<typename Hash::data> > {};
|
||||
|
||||
|
||||
template<typename T>
|
||||
inline std::ostream& operator<<(std::ostream& out, vector<T> const& v) {
|
||||
bool first = true;
|
||||
for (auto const& t : v) {
|
||||
if (first) first = false; else out << " ";
|
||||
out << t;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue