mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
new variableScope
This commit is contained in:
parent
ec8cda3f49
commit
bb6464431f
@ -1004,9 +1004,9 @@ bool hasOrphanedTops(const RoseBuildImpl &build) {
|
|||||||
|
|
||||||
for (auto v : vertices_range(g)) {
|
for (auto v : vertices_range(g)) {
|
||||||
if (g[v].left) {
|
if (g[v].left) {
|
||||||
set<u32> &tops = leftfixes[g[v].left];
|
|
||||||
if (!build.isRootSuccessor(v)) {
|
if (!build.isRootSuccessor(v)) {
|
||||||
// Tops for infixes come from the in-edges.
|
// Tops for infixes come from the in-edges.
|
||||||
|
set<u32> &tops = leftfixes[g[v].left];
|
||||||
for (const auto &e : in_edges_range(v, g)) {
|
for (const auto &e : in_edges_range(v, g)) {
|
||||||
tops.insert(g[e].rose_top);
|
tops.insert(g[e].rose_top);
|
||||||
}
|
}
|
||||||
|
@ -178,9 +178,9 @@ size_t describeClassInt(ostream &os, const CharReach &incr, size_t maxLength,
|
|||||||
|
|
||||||
// Render charclass as a series of ranges
|
// Render charclass as a series of ranges
|
||||||
size_t c_start = cr.find_first();
|
size_t c_start = cr.find_first();
|
||||||
size_t c = c_start, c_last = 0;
|
size_t c = c_start;
|
||||||
while (c != CharReach::npos) {
|
while (c != CharReach::npos) {
|
||||||
c_last = c;
|
size_t c_last = c;
|
||||||
c = cr.find_next(c);
|
c = cr.find_next(c);
|
||||||
if (c != c_last + 1 || c_last == 0xff) {
|
if (c != c_last + 1 || c_last == 0xff) {
|
||||||
describeRange(os, c_start, c_last, out_type);
|
describeRange(os, c_start, c_last, out_type);
|
||||||
|
@ -488,7 +488,6 @@ TEST_P(FDRFloodp, StreamingMask) {
|
|||||||
Grey());
|
Grey());
|
||||||
CHECK_WITH_TEDDY_OK_TO_FAIL(fdr, hint);
|
CHECK_WITH_TEDDY_OK_TO_FAIL(fdr, hint);
|
||||||
|
|
||||||
hwlm_error_t fdrStatus;
|
|
||||||
const u32 cnt4 = dataSize - 4 + 1;
|
const u32 cnt4 = dataSize - 4 + 1;
|
||||||
|
|
||||||
for (u32 streamChunk = 1; streamChunk <= 16; streamChunk *= 2) {
|
for (u32 streamChunk = 1; streamChunk <= 16; streamChunk *= 2) {
|
||||||
@ -496,7 +495,7 @@ TEST_P(FDRFloodp, StreamingMask) {
|
|||||||
const u8 *d = data.data();
|
const u8 *d = data.data();
|
||||||
// reference past the end of fake history to allow headroom
|
// reference past the end of fake history to allow headroom
|
||||||
const u8 *fhist = fake_history.data() + fake_history_size;
|
const u8 *fhist = fake_history.data() + fake_history_size;
|
||||||
fdrStatus = fdrExecStreaming(fdr.get(), fhist, 0, d, streamChunk, 0,
|
hwlm_error_t fdrStatus = fdrExecStreaming(fdr.get(), fhist, 0, d, streamChunk, 0,
|
||||||
countCallback, &scratch,
|
countCallback, &scratch,
|
||||||
HWLM_ALL_GROUPS);
|
HWLM_ALL_GROUPS);
|
||||||
ASSERT_EQ(0, fdrStatus);
|
ASSERT_EQ(0, fdrStatus);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user