Browse Source

Intermediate fix for PDEP/FDEP bug

Former-commit-id: 0b79601269
tempestpy_adaptions
mdeutschen 8 years ago
committed by Sebastian Junges
parent
commit
91b1e3f567
  1. 5
      src/transformations/dft/DftToGspnTransformator.cpp

5
src/transformations/dft/DftToGspnTransformator.cpp

@ -544,10 +544,15 @@ namespace storm {
template <typename ValueType> template <typename ValueType>
uint_fast64_t DftToGspnTransformator<ValueType>::getPriority(uint_fast64_t priority, std::shared_ptr<storm::storage::DFTElement<ValueType> const> dftElement) uint_fast64_t DftToGspnTransformator<ValueType>::getPriority(uint_fast64_t priority, std::shared_ptr<storm::storage::DFTElement<ValueType> const> dftElement)
{ {
// TODO: This method is buggy for pdep2.dft and fdep.dft.
// If element is the top element, return current priority. // If element is the top element, return current priority.
if (dftElement->id() == mDft.getTopLevelIndex()) { if (dftElement->id() == mDft.getTopLevelIndex()) {
return priority; return priority;
} }
else if (dftElement->type() == storm::storage::DFTElementType::PDEP) { // TODO: Else if Necessary?
return UINT_FAST64_MAX;
}
else { // Else look at all parents. else { // Else look at all parents.
auto parents = dftElement->parents(); auto parents = dftElement->parents();
std::vector<uint_fast64_t> pathLengths; std::vector<uint_fast64_t> pathLengths;

Loading…
Cancel
Save