Browse Source

fixed a failing test (uninitialized data issue)

Former-commit-id: ca0f456ba2
tempestpy_adaptions
dehnert 9 years ago
parent
commit
1136ff0d37
  1. 1
      src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp
  2. 4
      src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.h

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

@ -367,6 +367,7 @@ namespace storm {
// Now compute reachability probabilities in the transformed model.
storm::storage::SparseMatrix<ValueType> const& newTransitionMatrix = transformedModel.transitionMatrix.get();
std::vector<ValueType> conditionalProbabilities = computeUntilProbabilities(newTransitionMatrix, newTransitionMatrix.transpose(), storm::storage::BitVector(newTransitionMatrix.getRowCount(), true), transformedModel.targetStates.get(), qualitative, linearEquationSolverFactory);
storm::utility::vector::setVectorValues(result, transformedModel.beforeStates, conditionalProbabilities);
}
}

4
src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.h

@ -45,6 +45,10 @@ namespace storm {
static std::vector<ValueType> computeReachabilityRewards(storm::storage::SparseMatrix<ValueType> const& transitionMatrix, storm::storage::SparseMatrix<ValueType> const& backwardTransitions, std::function<std::vector<ValueType>(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);
struct BaierTransformedModel {
BaierTransformedModel() : noTargetStates(false) {
// Intentionally left empty.
}
storm::storage::BitVector beforeStates;
boost::optional<storm::storage::SparseMatrix<ValueType>> transitionMatrix;
boost::optional<storm::storage::BitVector> targetStates;

Loading…
Cancel
Save