Browse Source

fixed a bug

Former-commit-id: 2a19ecc4f7
tempestpy_adaptions
dehnert 9 years ago
parent
commit
5b77d827dc
  1. 2
      src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp
  2. 2
      src/models/sparse/Model.cpp
  3. 2
      src/models/symbolic/Model.cpp

2
src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp

@ -160,7 +160,7 @@ namespace storm {
template<typename ValueType, typename RewardModelType>
std::vector<ValueType> SparseDtmcPrctlHelper<ValueType, RewardModelType>::computeReachabilityRewards(storm::storage::SparseMatrix<ValueType> const& transitionMatrix, storm::storage::SparseMatrix<ValueType> const& backwardTransitions, std::function<std::vector<ValueType> const&(uint_fast64_t, storm::storage::SparseMatrix<ValueType> const&, storm::storage::BitVector const&)> const& totalStateRewardVectorGetter, storm::storage::BitVector const& targetStates, bool qualitative, storm::utility::solver::LinearEquationSolverFactory<ValueType> const& linearEquationSolverFactory) {
// Determine which states have a reward of infinity by definition.
storm::storage::BitVector trueStates(transitionMatrix.getRowCount(), true);
storm::storage::BitVector infinityStates = storm::utility::graph::performProb1(backwardTransitions, trueStates, targetStates);

2
src/models/sparse/Model.cpp

@ -90,7 +90,7 @@ namespace storm {
template<typename ValueType, typename RewardModelType>
RewardModelType const& Model<ValueType, RewardModelType>::getRewardModel(std::string const& rewardModelName) const {
auto it = this->rewardModels.find(rewardModelName);
STORM_LOG_THROW(it != this->rewardModels.end(), storm::exceptions::IllegalArgumentException, "The requested reward model does not exist.");
STORM_LOG_THROW(it != this->rewardModels.end(), storm::exceptions::IllegalArgumentException, "The requested reward model '" << rewardModelName << "' does not exist.");
return it->second;
}

2
src/models/symbolic/Model.cpp

@ -132,7 +132,7 @@ namespace storm {
template<storm::dd::DdType Type>
typename Model<Type>::RewardModelType const& Model<Type>::getRewardModel(std::string const& rewardModelName) const {
auto it = this->rewardModels.find(rewardModelName);
STORM_LOG_THROW(it != this->rewardModels.end(), storm::exceptions::InvalidArgumentException, "Unknown reward model '" << rewardModelName << "'.");
STORM_LOG_THROW(it != this->rewardModels.end(), storm::exceptions::InvalidArgumentException, "The requested reward model '" << rewardModelName << "' does not exist.");
return it->second;
}

Loading…
Cancel
Save