From be3d4832f7de0bd93cfa8f1b06d3a46d0d5b697b Mon Sep 17 00:00:00 2001 From: Sharaf Mohamed Date: Thu, 19 Dec 2024 09:10:12 -0500 Subject: [PATCH 1/3] Update src/log_surgeon/finite_automata/RegexDFAStatePair.hpp Co-authored-by: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com> --- src/log_surgeon/finite_automata/RegexDFAStatePair.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp b/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp index cd6c0a9..7677a42 100644 --- a/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp +++ b/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp @@ -73,7 +73,7 @@ auto RegexDFAStatePair::get_reachable_pairs( auto next_state1 = m_state1->next(i); auto next_state2 = m_state2->next(i); if (next_state1 != nullptr && next_state2 != nullptr) { - RegexDFAStatePair reachable_pair{next_state1, next_state2}; + RegexDFAStatePair const reachable_pair{next_state1, next_state2}; if (visited_pairs.count(reachable_pair) == 0) { unvisited_pairs.insert(reachable_pair); } From b8afafaff3ca2ef4cddf326ff989ca1163c8993e Mon Sep 17 00:00:00 2001 From: Sharaf Mohamed Date: Thu, 19 Dec 2024 09:10:19 -0500 Subject: [PATCH 2/3] Update src/log_surgeon/finite_automata/RegexNFAState.hpp Co-authored-by: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com> --- src/log_surgeon/finite_automata/RegexNFAState.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/log_surgeon/finite_automata/RegexNFAState.hpp b/src/log_surgeon/finite_automata/RegexNFAState.hpp index 8931322..c0494cb 100644 --- a/src/log_surgeon/finite_automata/RegexNFAState.hpp +++ b/src/log_surgeon/finite_automata/RegexNFAState.hpp @@ -88,8 +88,8 @@ class RegexNFAState { auto get_tree_transitions() -> Tree const& { return m_tree_transitions; } /** - Add `dest_state` to `m_bytes_transitions` if all values in interval are a byte, otherwise add - `dest_state` to `m_tree_transitions`. + * Add `dest_state` to `m_bytes_transitions` if all values in interval are a byte, otherwise add + * `dest_state` to `m_tree_transitions`. * @param interval * @param dest_state */ From 68ed2b1ab057055a1d62ed776620337c2c508040 Mon Sep 17 00:00:00 2001 From: Sharaf Mohamed Date: Thu, 19 Dec 2024 09:10:28 -0500 Subject: [PATCH 3/3] Update src/log_surgeon/finite_automata/RegexDFAStatePair.hpp Co-authored-by: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com> --- src/log_surgeon/finite_automata/RegexDFAStatePair.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp b/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp index 7677a42..03d53ab 100644 --- a/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp +++ b/src/log_surgeon/finite_automata/RegexDFAStatePair.hpp @@ -27,7 +27,6 @@ class RegexDFAStatePair { m_state2(state2) {}; /** - * Used for ordering in a set by considering the states' addresses. * @param rhs * @return Whether `m_state1` in lhs has a lower address than in rhs, or if they're equal, * whether `m_state2` in lhs has a lower address than in rhs.