|
@ -32,8 +32,6 @@ namespace storm { |
|
|
STORM_LOG_ASSERT(it != mCurrentlyNotFailableBE.end(), "Id not found."); |
|
|
STORM_LOG_ASSERT(it != mCurrentlyNotFailableBE.end(), "Id not found."); |
|
|
mCurrentlyNotFailableBE.erase(it); |
|
|
mCurrentlyNotFailableBE.erase(it); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
sortFailableBEs(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
template<typename ValueType> |
|
@ -69,7 +67,6 @@ namespace storm { |
|
|
STORM_LOG_TRACE("Spare " << index << " uses " << useId); |
|
|
STORM_LOG_TRACE("Spare " << index << " uses " << useId); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
sortFailableBEs(); |
|
|
|
|
|
|
|
|
|
|
|
// Initialize failable dependencies
|
|
|
// Initialize failable dependencies
|
|
|
for (size_t dependencyId : mDft.getDependencies()) { |
|
|
for (size_t dependencyId : mDft.getDependencies()) { |
|
@ -324,7 +321,6 @@ namespace storm { |
|
|
propagateActivation(uses(elem)); |
|
|
propagateActivation(uses(elem)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
sortFailableBEs(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
template<typename ValueType> |
|
@ -423,14 +419,6 @@ namespace storm { |
|
|
return changed; |
|
|
return changed; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
|
|
|
void DFTState<ValueType>::sortFailableBEs() { |
|
|
|
|
|
std::sort(mCurrentlyFailableBE.begin( ), mCurrentlyFailableBE.end( ), [&](size_t const& lhs, size_t const& rhs) { |
|
|
|
|
|
// Sort decreasing
|
|
|
|
|
|
return getBERate(rhs, true) < getBERate(lhs, true); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Explicitly instantiate the class.
|
|
|
// Explicitly instantiate the class.
|
|
|
template class DFTState<double>; |
|
|
template class DFTState<double>; |
|
|