Browse Source

Assertion requiring equal bitsizes of BitVectorHashMap and key

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
ced0d3fbb9
  1. 1
      src/storm/storage/BitVectorHashMap.cpp

1
src/storm/storage/BitVectorHashMap.cpp

@ -159,6 +159,7 @@ namespace storm {
template<class ValueType, class Hash>
std::pair<bool, uint64_t> BitVectorHashMap<ValueType, Hash>::findBucket(storm::storage::BitVector const& key) const {
STORM_LOG_ASSERT(key.size() == bucketSize, "Size of bit vector and size of buckets do not match");
uint64_t bucket = hasher(key) >> this->getCurrentShiftWidth();
while (isBucketOccupied(bucket)) {

Loading…
Cancel
Save