Home
last modified time | relevance | path

Searched refs:FeatureFreqs (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerCorpus.h48 std::vector<std::pair<uint32_t, uint16_t>> FeatureFreqs; member
52 if (FeatureFreqs.empty()) in DeleteFeatureFreq()
56 auto Lower = std::lower_bound(FeatureFreqs.begin(), FeatureFreqs.end(), in DeleteFeatureFreq()
59 if (Lower != FeatureFreqs.end() && Lower->first == Idx) { in DeleteFeatureFreq()
60 FeatureFreqs.erase(Lower); in DeleteFeatureFreq()
80 for (auto F : FeatureFreqs) { in UpdateEnergy()
89 static_cast<double>(GlobalNumberOfFeatures - FeatureFreqs.size()); in UpdateEnergy()
129 if (FeatureFreqs.empty()) { in UpdateFeatureFrequency()
130 FeatureFreqs.push_back(std::pair<uint32_t, uint16_t>(Idx, 1)); in UpdateFeatureFrequency()
135 auto Lower = std::lower_bound(FeatureFreqs.begin(), FeatureFreqs.end(), in UpdateFeatureFrequency()
[all …]
/external/rust/crates/libfuzzer-sys/libfuzzer/tests/
DFuzzerUnittest.cpp1375 EXPECT_EQ(II->FeatureFreqs.size(), One); in TEST()
1379 EXPECT_EQ(II->FeatureFreqs.size(), Two); in TEST()
1380 EXPECT_EQ(II->FeatureFreqs[0].second, 2); in TEST()
1381 EXPECT_EQ(II->FeatureFreqs[1].second, 1); in TEST()
1390 for (Index = 1; Index < II->FeatureFreqs.size(); Index++) in TEST()
1391 EXPECT_LT(II->FeatureFreqs[Index - 1].first, II->FeatureFreqs[Index].first); in TEST()
1394 for (Index = 1; Index < II->FeatureFreqs.size(); Index++) in TEST()
1395 EXPECT_LT(II->FeatureFreqs[Index - 1].first, II->FeatureFreqs[Index].first); in TEST()
1409 std::vector<std::pair<uint32_t, uint16_t>> FeatureFreqs = { in TEST() local
1411 II->FeatureFreqs = FeatureFreqs; in TEST()
[all …]