mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 11:44:28 +03:00
chimera: hybrid of Hyperscan and PCRE
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
* Copyright (c) 2015-2018, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -448,6 +448,9 @@ void printMode(void) {
|
||||
case MODE_VECTORED:
|
||||
cout << "Vectored-" << g_streamBlocks;
|
||||
break;
|
||||
case MODE_HYBRID:
|
||||
cout << "Hybrid";
|
||||
break;
|
||||
}
|
||||
|
||||
if (use_copy_scratch) {
|
||||
@@ -690,7 +693,7 @@ shared_ptr<DatabaseProxy> constructDatabase(const set<unsigned int> &ids,
|
||||
|
||||
if (loadDatabases) {
|
||||
string filename = ultimate.dbFilename(ids);
|
||||
shared_ptr<HyperscanDB> db = ultimate.loadDatabase(filename, ids);
|
||||
shared_ptr<BaseDB> db = ultimate.loadDatabase(filename, ids);
|
||||
if (!db) {
|
||||
if (!g_quiet) {
|
||||
cout << "FAILED: could not load database " << filename << endl;
|
||||
@@ -706,7 +709,7 @@ shared_ptr<DatabaseProxy> constructDatabase(const set<unsigned int> &ids,
|
||||
// If we're not runnable (i.e. we're cross-compiling), let's at least
|
||||
// try to build the database.
|
||||
if (!ultimate.runnable()) {
|
||||
shared_ptr<HyperscanDB> db = ue2->get(ultimate);
|
||||
shared_ptr<BaseDB> db = ue2->get(ultimate);
|
||||
assert(db); // throws otherwise
|
||||
}
|
||||
|
||||
@@ -872,7 +875,7 @@ void runTestUnit(ostream &out, GroundTruth &ground, GraphTruth &graph,
|
||||
assert(use_UE2);
|
||||
Corpus &corpus = unit.corpus;
|
||||
|
||||
shared_ptr<const HyperscanDB> db;
|
||||
shared_ptr<const BaseDB> db;
|
||||
if (use_UE2) {
|
||||
// Acquire UE2 database.
|
||||
debug_stage = STAGE_UE2_COMPILE;
|
||||
@@ -1648,6 +1651,7 @@ void printSettingsV(const vector<string> &corporaFiles,
|
||||
case MODE_BLOCK: cout << "block mode"; break;
|
||||
case MODE_STREAMING: cout << "streaming mode"; break;
|
||||
case MODE_VECTORED: cout << "vectored mode"; break;
|
||||
case MODE_HYBRID: cout << "hybrid mode"; break;
|
||||
}
|
||||
cout << endl;
|
||||
|
||||
@@ -1746,6 +1750,7 @@ void printSettingsQ(const vector<string> &corporaFiles,
|
||||
case MODE_BLOCK: cout << "block mode"; break;
|
||||
case MODE_STREAMING: cout << "streaming mode"; break;
|
||||
case MODE_VECTORED: cout << "vectored mode"; break;
|
||||
case MODE_HYBRID: cout << "hybrid mode"; break;
|
||||
}
|
||||
cout << endl;
|
||||
|
||||
|
Reference in New Issue
Block a user