mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 17:51:32 +00:00
code format
This commit is contained in:
parent
060dbe1239
commit
7f94fe3587
@ -48,7 +48,7 @@ ExternalFunctions::ExternalFunctions() {
|
||||
\
|
||||
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN) this->NAME = ::NAME;
|
||||
CheckFnPtr(reinterpret_cast<void *>(reinterpret_cast<uintptr_t>(::NAME)),
|
||||
#NAME, WARN);
|
||||
#NAME, WARN);
|
||||
|
||||
#include "FuzzerExtFunctions.def"
|
||||
|
||||
|
@ -46,8 +46,8 @@ using namespace fuzzer;
|
||||
|
||||
extern "C" {
|
||||
|
||||
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN)
|
||||
RETURN_TYPE NAME##Def FUNC_SIG {
|
||||
#define EXT_FUNC(NAME, RETURN_TYPE, FUNC_SIG, WARN)
|
||||
RETURN_TYPE NAME##Def FUNC_SIG {
|
||||
|
||||
Printf("ERROR: Function \"%s\" not defined.\n", #NAME);
|
||||
exit(1);
|
||||
|
@ -159,8 +159,9 @@
|
||||
#include <gimple-iterator.h>
|
||||
#include <stringpool.h>
|
||||
#include <gimple-ssa.h>
|
||||
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 60200 /* >= version 6.2.0 */
|
||||
#include <tree-vrp.h>
|
||||
#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \
|
||||
60200 /* >= version 6.2.0 */
|
||||
#include <tree-vrp.h>
|
||||
#endif
|
||||
#include <tree-ssanames.h>
|
||||
#include <tree-phinodes.h>
|
||||
@ -334,12 +335,12 @@ struct afl_pass : gimple_opt_pass {
|
||||
gimple_seq_add_stmt(&seq, add1_cntr);
|
||||
|
||||
/* 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);
|
||||
gimple_seq_add_stmt(&seq, xtrct_cntr);
|
||||
|
||||
/* 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);
|
||||
gimple_seq_add_stmt(&seq, xtrct_xincr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user