fucking hell

This commit is contained in:
Walcher 2024-01-08 22:44:49 +01:00
parent 59a7df7ad1
commit 271588221f
2 changed files with 52 additions and 83 deletions

View file

@ -314,15 +314,15 @@ public class NFAImpl implements NFA {
// state -> accepting
// accepting -> state
Set<String> newAcceptingstate = new HashSet<>();
Set<String> newAcceptingState = new HashSet<>();
for (String state : fakeNFA.getStates()) {
if (!fakeNFA.getAcceptingStates().contains(state)) {
newAcceptingstate.add(state);
newAcceptingState.add(state);
}
}
fakeNFA.acceptingStates.clear();
fakeNFA.addAllAcceptingStates(newAcceptingstate);
fakeNFA.addAllAcceptingStates(newAcceptingState);
Set<Character> originalAlphabet = new HashSet<>(fakeNFA.alphabet);