MCPcopy Create free account
hub / github.com/Samsung/UTopia / generateCorpus

Method generateCorpus

lib/generation/Generator.cpp:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void Generator::generateCorpus(std::vector<std::shared_ptr<Fuzzer>> &Fuzzers,
171 std::string OutputDir) const {
172
173 OutputDir = OutputDir + PATH_SEPARATOR + "corpus";
174 if (fs::exists(OutputDir))
175 fs::remove_all(OutputDir);
176 assert(fs::create_directories(OutputDir) && "Unexpected Program State");
177
178 for (auto &F : Fuzzers) {
179 assert(F && "Unexpected Program State");
180 if (F->getFuzzInputMap().size() == 0)
181 continue;
182
183 generateCorpus(*F, OutputDir);
184 }
185}
186
187void Generator::generateCorpus(const Fuzzer &F, std::string OutputDir) const {
188

Callers

nothing calls this directly

Calls 4

saveFileFunction · 0.85
sizeMethod · 0.80
generateMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected