Skip to content

Commit

Permalink
Require explicitly providing bucketSize for BitVectorHashMap (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
volkm authored Sep 10, 2024
1 parent 0b1cae2 commit db61b80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/storm/simulator/PrismProgramSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ DiscreteTimePrismProgramSimulator<ValueType>::DiscreteTimePrismProgramSimulator(
currentState(),
stateGenerator(std::make_shared<storm::generator::PrismNextStateGenerator<ValueType, uint32_t>>(program, options)),
zeroRewards(stateGenerator->getNumberOfRewardModels(), storm::utility::zero<ValueType>()),
lastActionRewards(zeroRewards) {
lastActionRewards(zeroRewards),
stateToId(stateGenerator->getStateSize()),
idToState() {
// Current state needs to be overwritten to actual initial state.
// But first, let us create a state generator.

clearStateCaches();
resetToInitial();
}

Expand Down
2 changes: 1 addition & 1 deletion src/storm/storage/BitVectorHashMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class BitVectorHashMap {
* @param loadFactor The load factor that determines at which point the size of the underlying storage is
* increased.
*/
BitVectorHashMap(uint64_t bucketSize = 64, uint64_t initialSize = 1000, double loadFactor = 0.75);
BitVectorHashMap(uint64_t bucketSize, uint64_t initialSize = 1000, double loadFactor = 0.75);

BitVectorHashMap(BitVectorHashMap const&) = default;
BitVectorHashMap(BitVectorHashMap&&) = default;
Expand Down

0 comments on commit db61b80

Please sign in to comment.