mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 08:11:34 +00:00
* first commit, looks good * fix ascii percentage calc * fix ascii percentage calc * modify txt configs for test * further refinement * Revert "Merge branch 'text_inputs' into dev" This reverts commit 6d9b29daca46c8912aa9ddf6c053bc8554e9e9f7, reversing changes made to 07648f75ea5ef8f03a92db0c7566da8c229dc27b. * blacklist -> ignore renaming * rename whitelist -> instrumentlist * reduce the time interval in which the secondaries sync Co-authored-by: root <root@localhost.localdomain>
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#ifndef __AFLLLVMCOMMON_H
|
|
#define __AFLLLVMCOMMON_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
#include <list>
|
|
#include <string>
|
|
#include <fstream>
|
|
#include <sys/time.h>
|
|
|
|
#include "llvm/Config/llvm-config.h"
|
|
#if LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR < 5
|
|
typedef long double max_align_t;
|
|
#endif
|
|
|
|
#include "llvm/IR/IRBuilder.h"
|
|
#include "llvm/IR/LegacyPassManager.h"
|
|
#include "llvm/IR/BasicBlock.h"
|
|
#include "llvm/IR/Module.h"
|
|
#include "llvm/Support/Debug.h"
|
|
#include "llvm/Support/MathExtras.h"
|
|
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
|
|
|
|
#if LLVM_VERSION_MAJOR > 3 || \
|
|
(LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR > 4)
|
|
#include "llvm/IR/DebugInfo.h"
|
|
#include "llvm/IR/CFG.h"
|
|
#else
|
|
#include "llvm/DebugInfo.h"
|
|
#include "llvm/Support/CFG.h"
|
|
#endif
|
|
|
|
char * getBBName(const llvm::BasicBlock *BB);
|
|
bool isIgnoreFunction(const llvm::Function *F);
|
|
void initInstrumentList();
|
|
bool isInInstrumentList(llvm::Function *F);
|
|
unsigned long long int calculateCollisions(uint32_t edges);
|
|
|
|
#endif
|
|
|