From 9e6c1c30cfba75fd5ef97a9984f411e2f065a98c Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sun, 3 Oct 2021 10:49:09 +0000 Subject: [PATCH] remove asserts, as they are not needed --- src/nfa/shufti.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/nfa/shufti.cpp b/src/nfa/shufti.cpp index e94df5e3..2d858c66 100644 --- a/src/nfa/shufti.cpp +++ b/src/nfa/shufti.cpp @@ -43,8 +43,6 @@ static really_inline const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf, const u8 *buf_end) { - assert(buf < buf_end); - DEBUG_PRINTF("buf %p end %p \n", buf, buf_end); for (; buf < buf_end; ++buf) { u8 c = *buf; @@ -59,8 +57,6 @@ const u8 *shuftiFwdSlow(const u8 *lo, const u8 *hi, const u8 *buf, static really_inline const u8 *shuftiRevSlow(const u8 *lo, const u8 *hi, const u8 *buf, const u8 *buf_end) { - assert(buf < buf_end); - for (buf_end--; buf_end >= buf; buf_end--) { u8 c = *buf_end; if (lo[c & 0xf] & hi[c >> 4]) { @@ -74,4 +70,4 @@ const u8 *shuftiRevSlow(const u8 *lo, const u8 *hi, const u8 *buf, #include "shufti_sve.hpp" #else #include "shufti_simd.hpp" -#endif \ No newline at end of file +#endif