3
0
Fork 0
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:
Nikolaj Bjorner 2014-08-21 21:57:44 -07:00
parent b596828d23
commit 34aa06b5a3
3 changed files with 199 additions and 135 deletions

View file

@ -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();

View file

@ -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());