mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 18:18:07 +00:00
code format
This commit is contained in:
@ -48,7 +48,7 @@ ExternalFunctions::ExternalFunctions() {
|
|||||||
\
|
\
|
||||||
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) this->NAME = ::NAME;
|
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) this->NAME = ::NAME;
|
||||||
CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)),
|
CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)),
|
||||||
#NAME, WARN);
|
#NAME, WARN);
|
||||||
|
|
||||||
#include "FuzzerExtFunctions.def"
|
#include "FuzzerExtFunctions.def"
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ using namespace fuzzer;
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN)
|
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN)
|
||||||
RETURN_TYPE NAME##Def FUNC_SIG {
|
RETURN_TYPE NAME##Def FUNC_SIG {
|
||||||
|
|
||||||
Printf("ERROR: Function \"%s\" not defined.\n", #NAME);
|
Printf("ERROR: Function \"%s\" not defined.\n", #NAME);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
@ -159,8 +159,9 @@
|
|||||||
#include <gimple-iterator.h>
|
#include <gimple-iterator.h>
|
||||||
#include <stringpool.h>
|
#include <stringpool.h>
|
||||||
#include <gimple-ssa.h>
|
#include <gimple-ssa.h>
|
||||||
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 60200 /* >= version 6.2.0 */
|
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \
|
||||||
#include <tree-vrp.h>
|
60200 /* >= version 6.2.0 */
|
||||||
|
#include <tree-vrp.h>
|
||||||
#endif
|
#endif
|
||||||
#include <tree-ssanames.h>
|
#include <tree-ssanames.h>
|
||||||
#include <tree-phinodes.h>
|
#include <tree-phinodes.h>
|
||||||
@ -334,12 +335,12 @@ struct afl_pass : gimple_opt_pass {
|
|||||||
gimple_seq_add_stmt(&seq, add1_cntr);
|
gimple_seq_add_stmt(&seq, add1_cntr);
|
||||||
|
|
||||||
/* Extract the real part into count. */
|
/* Extract the real part into count. */
|
||||||
tree cntrb = build1(REALPART_EXPR, TREE_TYPE(cntr), xaddc);
|
tree cntrb = build1(REALPART_EXPR, TREE_TYPE(cntr), xaddc);
|
||||||
auto xtrct_cntr = gimple_build_assign(cntr, cntrb);
|
auto xtrct_cntr = gimple_build_assign(cntr, cntrb);
|
||||||
gimple_seq_add_stmt(&seq, xtrct_cntr);
|
gimple_seq_add_stmt(&seq, xtrct_cntr);
|
||||||
|
|
||||||
/* Extract the imaginary part into xincr. */
|
/* Extract the imaginary part into xincr. */
|
||||||
tree incrb = build1(IMAGPART_EXPR, TREE_TYPE(xincr), xaddc);
|
tree incrb = build1(IMAGPART_EXPR, TREE_TYPE(xincr), xaddc);
|
||||||
auto xtrct_xincr = gimple_build_assign(xincr, incrb);
|
auto xtrct_xincr = gimple_build_assign(xincr, incrb);
|
||||||
gimple_seq_add_stmt(&seq, xtrct_xincr);
|
gimple_seq_add_stmt(&seq, xtrct_xincr);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user