Browse Source

...

Former-commit-id: 47c139f3bf
tempestpy_adaptions
TimQu 9 years ago
parent
commit
b09d123779
  1. 2
      src/modelchecker/region/SparseDtmcRegionModelChecker.cpp
  2. 1
      src/modelchecker/region/SparseMdpRegionModelChecker.cpp
  3. 5
      src/storage/FlexibleSparseMatrix.cpp
  4. 1
      src/storage/FlexibleSparseMatrix.h

2
src/modelchecker/region/SparseDtmcRegionModelChecker.cpp

@ -141,7 +141,7 @@ namespace storm {
} }
} }
if(eliminateThisState){ if(eliminateThisState){
storm::storage::FlexibleSparseMatrix<ParametricType>::eliminateState(flexibleTransitions, oneStepProbabilities, state, state, flexibleBackwardTransitions, stateRewards);
storm::storage::FlexibleSparseMatrix<ParametricType>::eliminateState(flexibleTransitions, oneStepProbabilities, state, flexibleBackwardTransitions, stateRewards);
subsystem.set(state,false); subsystem.set(state,false);
} }
} }

1
src/modelchecker/region/SparseMdpRegionModelChecker.cpp

@ -121,7 +121,6 @@ namespace storm {
} }
} }
STORM_LOG_DEBUG("Eliminated " << subsystem.size() - subsystem.getNumberOfSetBits() << " of " << subsystem.size() << " states that had constant outgoing transitions."); STORM_LOG_DEBUG("Eliminated " << subsystem.size() - subsystem.getNumberOfSetBits() << " of " << subsystem.size() << " states that had constant outgoing transitions.");
std::cout << "Eliminated " << subsystem.size() - subsystem.getNumberOfSetBits() << " of " << subsystem.size() << " states that had constant outgoing transitions." << std::endl;
//Build the simple model //Build the simple model
STORM_LOG_DEBUG("Building the resulting simplified model."); STORM_LOG_DEBUG("Building the resulting simplified model.");

5
src/storage/FlexibleSparseMatrix.cpp

@ -89,6 +89,11 @@ namespace storm {
} }
template<typename ValueType>
void FlexibleSparseMatrix<ValueType>::eliminateState(FlexibleSparseMatrix& matrix, std::vector<ValueType>& oneStepProbabilities, uint_fast64_t state, FlexibleSparseMatrix& backwardTransitions, boost::optional<std::vector<ValueType>>& stateRewards, bool removeForwardTransitions, bool constrained, storm::storage::BitVector const& predecessorConstraint) {
eliminateState(matrix, oneStepProbabilities, state, state, backwardTransitions, stateRewards, removeForwardTransitions, constrained, predecessorConstraint);
}
template<typename ValueType> template<typename ValueType>
void FlexibleSparseMatrix<ValueType>::eliminateState(FlexibleSparseMatrix& matrix, std::vector<ValueType>& oneStepProbabilities, uint_fast64_t state, uint_fast64_t row, FlexibleSparseMatrix& backwardTransitions, boost::optional<std::vector<ValueType>>& stateRewards, bool removeForwardTransitions, bool constrained, storm::storage::BitVector const& predecessorConstraint) { void FlexibleSparseMatrix<ValueType>::eliminateState(FlexibleSparseMatrix& matrix, std::vector<ValueType>& oneStepProbabilities, uint_fast64_t state, uint_fast64_t row, FlexibleSparseMatrix& backwardTransitions, boost::optional<std::vector<ValueType>>& stateRewards, bool removeForwardTransitions, bool constrained, storm::storage::BitVector const& predecessorConstraint) {

1
src/storage/FlexibleSparseMatrix.h

@ -40,6 +40,7 @@ namespace storm {
*/ */
bool hasSelfLoop(storm::storage::sparse::state_type state); bool hasSelfLoop(storm::storage::sparse::state_type state);
static void eliminateState(FlexibleSparseMatrix& matrix, std::vector<ValueType>& oneStepProbabilities, uint_fast64_t state, FlexibleSparseMatrix& backwardTransitions, boost::optional<std::vector<ValueType>>& stateRewards, bool removeForwardTransitions = true, bool constrained = false, storm::storage::BitVector const& predecessorConstraint = storm::storage::BitVector());
static void eliminateState(FlexibleSparseMatrix& matrix, std::vector<ValueType>& oneStepProbabilities, uint_fast64_t state, uint_fast64_t row, FlexibleSparseMatrix& backwardTransitions, boost::optional<std::vector<ValueType>>& stateRewards, bool removeForwardTransitions = true, bool constrained = false, storm::storage::BitVector const& predecessorConstraint = storm::storage::BitVector()); static void eliminateState(FlexibleSparseMatrix& matrix, std::vector<ValueType>& oneStepProbabilities, uint_fast64_t state, uint_fast64_t row, FlexibleSparseMatrix& backwardTransitions, boost::optional<std::vector<ValueType>>& stateRewards, bool removeForwardTransitions = true, bool constrained = false, storm::storage::BitVector const& predecessorConstraint = storm::storage::BitVector());
private: private:

Loading…
Cancel
Save