mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
more ddnf
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b596828d23
commit
34aa06b5a3
3 changed files with 199 additions and 135 deletions
|
@ -224,6 +224,10 @@ bool bit_vector::contains(bit_vector const& other) const {
|
|||
return (m_data[n-1] & other_data) == other_data;
|
||||
}
|
||||
|
||||
unsigned bit_vector::get_hash() const {
|
||||
return string_hash(reinterpret_cast<char const* const>(m_data), size()/8, 0);
|
||||
}
|
||||
|
||||
void fr_bit_vector::reset() {
|
||||
unsigned sz = size();
|
||||
unsigned_vector::const_iterator it = m_one_idxs.begin();
|
||||
|
|
|
@ -125,6 +125,8 @@ public:
|
|||
unsigned get_word(unsigned word_idx) const {
|
||||
return m_data[word_idx];
|
||||
}
|
||||
|
||||
unsigned get_hash() const;
|
||||
|
||||
bool get(unsigned bit_idx) const {
|
||||
SASSERT(bit_idx < size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue