diff options
author | van Hauser <vh@thc.org> | 2021-03-15 23:15:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 23:15:37 +0100 |
commit | 37829765282421d9e3cb9448bceedcb58256e76a (patch) | |
tree | 79c15c7a4f879c90f683a61a8ad878bd19e2a69e /instrumentation/llvm-alternative-coverage.h | |
parent | 41788950ccb99e8d2bdc274916ce815bf3d5035c (diff) | |
parent | 23f7bee81c46ad4f0f65fa56d08064ab5f1e2e6f (diff) | |
download | afl++-37829765282421d9e3cb9448bceedcb58256e76a.tar.gz |
Merge pull request #821 from AFLplusplus/stable
3.11c
Diffstat (limited to 'instrumentation/llvm-alternative-coverage.h')
-rw-r--r-- | instrumentation/llvm-alternative-coverage.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/instrumentation/llvm-alternative-coverage.h b/instrumentation/llvm-alternative-coverage.h new file mode 100644 index 00000000..0d7b3957 --- /dev/null +++ b/instrumentation/llvm-alternative-coverage.h @@ -0,0 +1,21 @@ +#ifndef AFL_NGRAM_CONFIG_H +#define AFL_NGRAM_CONFIG_H + +#include "types.h" + +#if (MAP_SIZE_POW2 <= 16) +typedef u16 PREV_LOC_T; +#elif (MAP_SIZE_POW2 <= 32) +typedef u32 PREV_LOC_T; +#else +typedef u64 PREV_LOC_T; +#endif + +/* Maximum ngram size */ +#define NGRAM_SIZE_MAX 16U + +/* Maximum K for top-K context sensitivity */ +#define CTX_MAX_K 32U + +#endif + |