Skip to content

Commit

Permalink
behavior is now in the normal flow of reductions
Browse files Browse the repository at this point in the history
  • Loading branch information
yanntm committed May 5, 2024
1 parent 34f1645 commit 4652a22
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,24 +289,24 @@ public static List<Integer> applyReductions(MccTranslator reader, DoneProperties

sr.setProtected(support);

boolean foundDead = false;
if (iterations >= 1 && !foundDead) {
List<Integer> deadPlaces = findDeadPlaces(reader);

if (!deadPlaces.isEmpty()) {
sr.dropSurroundingTransitions(deadPlaces, "Dead places");
iter++;
foundDead=true;
}
}
if (iterations >= 1 && !foundDead) {
List<Integer> deadTransitions = findDeadTransitions(reader);

if (!deadTransitions.isEmpty()) {
sr.dropTransitions(deadTransitions, true, "Dead transitions detected with 'AG(!fireable(t))'");
iter++;
}
}
// boolean foundDead = false;
// if (iterations >= 1 && !foundDead) {
// List<Integer> deadPlaces = findDeadPlaces(reader);
//
// if (!deadPlaces.isEmpty()) {
// sr.dropSurroundingTransitions(deadPlaces, "Dead places");
// iter++;
// foundDead=true;
// }
// }
// if (iterations >= 1 && !foundDead) {
// List<Integer> deadTransitions = findDeadTransitions(reader);
//
// if (!deadTransitions.isEmpty()) {
// sr.dropTransitions(deadTransitions, true, "Dead transitions detected with 'AG(!fireable(t))'");
// iter++;
// }
// }


// a single place, that is one bounded : kill it's consumers
Expand Down

0 comments on commit 4652a22

Please sign in to comment.