Browse Source

Fixed bugs

Former-commit-id: d602972afc
tempestpy_adaptions
Mavo 9 years ago
parent
commit
db3c40e6d7
  1. 10
      src/storage/dft/DFTState.cpp
  2. 2
      src/storage/dft/DFTStateGenerationInfo.h

10
src/storage/dft/DFTState.cpp

@ -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) );

2
src/storage/dft/DFTStateGenerationInfo.h

@ -98,7 +98,7 @@ namespace storm {
for (size_t index = 0; index < newSymmetries.size(); ++index) {
mSymmetries.insert(mSymmetries.begin() + i + 1 + index, std::make_pair(childLength, newSymmetries[index]));
}
i += mSymmetries[j].second.size();
i += newSymmetries.size();
break;
}
}

Loading…
Cancel
Save