Skip to content

Commit

Permalink
Merge branch 'individual-dfa-files' into remove-redundant-typenames
Browse files Browse the repository at this point in the history
  • Loading branch information
SharafMohamed committed Dec 8, 2024
2 parents 5bbeafc + 0decaf5 commit 0e2d593
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/log_surgeon/finite_automata/RegexDFAState.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ class RegexDFAState {
return m_matching_variable_ids;
}

[[nodiscard]] auto is_accepting() const -> bool { return !m_matching_variable_ids.empty(); }
[[nodiscard]] auto is_accepting() const -> bool {
return false == m_matching_variable_ids.empty();
}

auto add_byte_transition(uint8_t const& byte, RegexDFAState* dest_state) -> void {
m_bytes_transition[byte] = dest_state;
Expand Down Expand Up @@ -68,7 +70,7 @@ auto RegexDFAState<state_type>::next(uint32_t character) const -> RegexDFAState*
std::unique_ptr<std::vector<typename Tree::Data>> result
= m_tree_transitions.find(Interval(character, character));
assert(result->size() <= 1);
if (!result->empty()) {
if (false == result->empty()) {
return result->front().m_value;
}
return nullptr;
Expand Down

0 comments on commit 0e2d593

Please sign in to comment.