Browse Source

priorities updated such that 0 is not used as this is often reserved, e.g. in greatspn

tempestpy_adaptions
Sebastian Junges 8 years ago
parent
commit
99428f9a7b
  1. 4
      src/storm-dft/transformations/DftToGspnTransformator.cpp

4
src/storm-dft/transformations/DftToGspnTransformator.cpp

@ -7,7 +7,7 @@ namespace storm {
namespace dft { namespace dft {
// Prevent some magic constants // Prevent some magic constants
static constexpr const uint64_t defaultPriority = 0;
static constexpr const uint64_t defaultPriority = 1;
static constexpr const uint64_t defaultCapacity = 1; static constexpr const uint64_t defaultCapacity = 1;
template <typename ValueType> template <typename ValueType>
@ -436,7 +436,7 @@ namespace storm {
template <typename ValueType> template <typename ValueType>
uint64_t DftToGspnTransformator<ValueType>::getFailPriority(std::shared_ptr<storm::storage::DFTElement<ValueType> const> dftElement) uint64_t DftToGspnTransformator<ValueType>::getFailPriority(std::shared_ptr<storm::storage::DFTElement<ValueType> const> dftElement)
{ {
return mDft.maxRank() - dftElement->rank();
return mDft.maxRank() - dftElement->rank() + 2;
} }

Loading…
Cancel
Save