mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Rename rosePrefixCheckMiracles to roseLeftfix...
This commit is contained in:
parent
8f3471dd4e
commit
4d5710a84a
@ -142,9 +142,9 @@ void rosePushDelayedMatch(const struct RoseEngine *t,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static rose_inline
|
static rose_inline
|
||||||
char rosePrefixCheckMiracles(const struct RoseEngine *t,
|
char roseLeftfixCheckMiracles(const struct RoseEngine *t,
|
||||||
const struct LeftNfaInfo *left,
|
const struct LeftNfaInfo *left,
|
||||||
struct core_info *ci, struct mq *q, u64a end) {
|
struct core_info *ci, struct mq *q, u64a end) {
|
||||||
if (left->transient) {
|
if (left->transient) {
|
||||||
// Miracles won't help us with transient leftfix engines; they only
|
// Miracles won't help us with transient leftfix engines; they only
|
||||||
// scan for a limited time anyway.
|
// scan for a limited time anyway.
|
||||||
@ -445,7 +445,7 @@ char roseTestLeftfix(const struct RoseEngine *t, struct hs_scratch *scratch,
|
|||||||
reduceInfixQueue(q, loc, left->maxQueueLen, q->nfa->maxWidth);
|
reduceInfixQueue(q, loc, left->maxQueueLen, q->nfa->maxWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rosePrefixCheckMiracles(t, left, ci, q, end)) {
|
if (!roseLeftfixCheckMiracles(t, left, ci, q, end)) {
|
||||||
DEBUG_PRINTF("leftfix %u died due to miracle\n", ri);
|
DEBUG_PRINTF("leftfix %u died due to miracle\n", ri);
|
||||||
goto nfa_dead;
|
goto nfa_dead;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user