mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
working on product sets
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3ae10abf04
commit
9e7cef7d6b
8 changed files with 377 additions and 66 deletions
|
@ -228,6 +228,14 @@ unsigned bit_vector::get_hash() const {
|
|||
return string_hash(reinterpret_cast<char const* const>(m_data), size()/8, 0);
|
||||
}
|
||||
|
||||
bit_vector& bit_vector::neg() {
|
||||
unsigned n = num_words();
|
||||
for (unsigned i = 0; i < n; ++i) {
|
||||
m_data[i] = ~m_data[i];
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
void fr_bit_vector::reset() {
|
||||
unsigned sz = size();
|
||||
unsigned_vector::const_iterator it = m_one_idxs.begin();
|
||||
|
|
|
@ -200,6 +200,8 @@ public:
|
|||
bit_vector & operator|=(bit_vector const & source);
|
||||
|
||||
bit_vector & operator&=(bit_vector const & source);
|
||||
|
||||
bit_vector & neg();
|
||||
|
||||
void display(std::ostream & out) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue