diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-11-28 16:07:38 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-12-03 11:18:44 +0900 |
commit | a7c88e486788298604c892250d856488f7939843 (patch) | |
tree | 720c13b05485717721aa509f5940c8e8582b81ba /src | |
parent | d04bdf2e841fa6706c16bbba1cb6f6c73d647767 (diff) | |
download | afl++-a7c88e486788298604c892250d856488f7939843.tar.gz |
Swap Robin Hood hashmaps for STL
Robin Hood is dead. Long live Robin Hood.
Diffstat (limited to 'src')
-rw-r--r-- | src/aflrun.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/aflrun.cpp b/src/aflrun.cpp index fb94cb16..5cb1c61d 100644 --- a/src/aflrun.cpp +++ b/src/aflrun.cpp @@ -6,9 +6,6 @@ #include <boost/make_shared.hpp> namespace bo = boost; -#include <robin_hood.h> -namespace rh = robin_hood; - #include <algorithm> #include <cassert> #include <cmath> @@ -23,7 +20,10 @@ namespace rh = robin_hood; #include <stack> #include <string> #include <tuple> +#include <unordered_map> +#include <unordered_set> #include <vector> +namespace rh = std; namespace { struct Fringe; struct SeedFringes; struct ClusterPair; } template<> struct std::hash<Fringe> @@ -450,7 +450,7 @@ unique_ptr<AFLRunGlobals> g = nullptr; struct AFLRunGraph { - vector<rh::unordered_flat_set<reach_t>> src_to_dst; + vector<rh::unordered_set<reach_t>> src_to_dst; vector<vector<reach_t>> dst_to_src; rh::unordered_map<pair<reach_t, reach_t>, vector<u32>> call_hashes; explicit AFLRunGraph(reach_t num) |