Skip to content

Commit

Permalink
Update src/nfa/nfa.cc
Browse files Browse the repository at this point in the history
Co-authored-by: David Chocholatý <[email protected]>
  • Loading branch information
vhavlena and Adda0 authored Jul 12, 2024
1 parent 08d5ffb commit 9df2586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfa/nfa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ bool Nfa::is_flat() const {
bool one_input_visited = false;
for (const mata::nfa::SymbolPost& sp : this->delta[st]) {
for (const mata::nfa::State& tgt : scc) {
if(sp.targets.find(tgt) != sp.targets.end()) {
if(sp.targets.contains(tgt)) {
if(one_input_visited) {
flat = false;
return true;
Expand Down

0 comments on commit 9df2586

Please sign in to comment.