mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
Rose: move more report handling work into program
Move report preconditions (bounds, exhaustion, etc) into program instructions and use a more direct path to the user match callback than the adaptor functions. Report handling has been moved to new file src/report.h. Reporting from EOD now uses the same instructions as normal report handling, rather than its own. Jump target tracking in rose_build_bytecode.cpp has been cleaned up.
This commit is contained in:
committed by
Matthew Barr
parent
94b33421ca
commit
060defe6c4
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -184,6 +184,11 @@ bool isExternalReport(const Report &r) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline
|
||||
bool isExternalSomReport(const Report &r) {
|
||||
return r.type != EXTERNAL_CALLBACK && isExternalReport(r);
|
||||
}
|
||||
|
||||
static inline
|
||||
bool operator<(const Report &a, const Report &b) {
|
||||
ORDER_CHECK(type);
|
||||
|
Reference in New Issue
Block a user