|
|
@ -123,26 +123,18 @@ namespace storm { |
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
|
void DFTState<ValueType>::setFailed(size_t id) { |
|
|
|
if (mDft.isRepresentative(id)) { |
|
|
|
// Activate failed element
|
|
|
|
activate(id); |
|
|
|
} |
|
|
|
mStatus.set(mStateGenerationInfo.getStateIndex(id)); |
|
|
|
} |
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
|
void DFTState<ValueType>::setFailsafe(size_t id) { |
|
|
|
if (mDft.isRepresentative(id)) { |
|
|
|
// Activate failed element
|
|
|
|
activate(id); |
|
|
|
} |
|
|
|
mStatus.set(mStateGenerationInfo.getStateIndex(id)+1); |
|
|
|
} |
|
|
|
|
|
|
|
template<typename ValueType> |
|
|
|
void DFTState<ValueType>::setDontCare(size_t id) { |
|
|
|
if (mDft.isRepresentative(id)) { |
|
|
|
// Activate failed element
|
|
|
|
// Activate dont care element
|
|
|
|
activate(id); |
|
|
|
} |
|
|
|
mStatus.setFromInt(mStateGenerationInfo.getStateIndex(id), 2, static_cast<uint_fast64_t>(DFTElementState::DontCare) ); |