MCPcopy Create free account
hub / github.com/bytedance/bolt / getInputFromInputCorpus

Function getInputFromInputCorpus

bolt/vector/fuzzer/VectorFuzzer.cpp:110–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109template <typename T>
110T getInputFromInputCorpus(const std::set<T>& inputCorpus, const size_t& index) {
111 BOLT_CHECK_GE(index, 0);
112 BOLT_CHECK_LT(index, inputCorpus.size());
113 return *std::next(inputCorpus.begin(), index);
114}
115
116template <typename T>
117void addInputToInputCorpus(std::set<T>& inputCorpus, const T& newInput) {

Callers 1

fuzzFlatPrimitiveImplFunction · 0.85

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected