Skip to content

Commit

Permalink
vector was initialized wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
julius.ide committed Jan 24, 2025
1 parent 541f17b commit bc5f461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/storm/modelchecker/helper/ltl/SparseLTLHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ storm::storage::BitVector SparseLTLHelper<ValueType, Nondeterministic>::computeA

for (uint64_t i = 0; i < transitionMatrix.getRowGroupCount(); i++) {
uint64_t mec_index = state_to_mec[i];
if (mec_index != MAX && is_amec[mec_index]) {
if (mec_index == MAX || is_amec[mec_index]) {
allowed.set(i, false);
}
}
Expand Down
6 changes: 1 addition & 5 deletions src/storm/storage/MaximalEndComponentDecomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,14 @@ void MaximalEndComponentDecomposition<ValueType>::performMaximalEndComponentDeco
}
std::vector<uint64_t> offset(sccDecRes.sccCount);

for (auto state: remainingEcCandidates) {
auto const sccIndex = sccDecRes.stateToSccMapping[state];
ecSccStates[ecSccIndexToStateIndex[sccIndex] + offset[sccIndex]++] = state;
}

remainingEcCandidates = sccDecRes.nonTrivialStates;
storm::storage::BitVector ecSccIndices(sccDecRes.sccCount, true);
storm::storage::BitVector nonTrivSccIndices(sccDecRes.sccCount, false);
// find the choices that do not stay in their SCC
for (auto state : remainingEcCandidates) {
auto const sccIndex = sccDecRes.stateToSccMapping[state];
nonTrivSccIndices.set(sccIndex, true);
ecSccStates[ecSccIndexToStateIndex[sccIndex] + offset[sccIndex]++] = state;
bool stateCanStayInScc = false;
for (auto const choice : transitionMatrix.getRowGroupIndices(state)) {
if (!ecChoices.get(choice)) {
Expand Down

0 comments on commit bc5f461

Please sign in to comment.