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