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

Method generate

lib/generation/CorpusGenerator.cpp:7–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace ftg {
6
7std::string CorpusGenerator::generate(const Fuzzer &F) const {
8 std::string Result;
9 for (const auto &[ID, Input] : F.getFuzzInputMap()) {
10 assert(Input && "Unexpected Program State");
11 if (Input->getCopyFrom())
12 continue;
13
14 const auto &Def = Input->getDef();
15 if (Def.ArrayLen)
16 continue;
17
18 auto CorpusValue = generate(Def);
19 if (CorpusValue.empty())
20 continue;
21
22 Result += CorpusValue + "\n";
23 }
24 return Result;
25}
26
27std::string CorpusGenerator::generate(const Definition &Def) const {
28

Callers

nothing calls this directly

Calls 10

getProtoVarNameFunction · 0.85
getCopyFromMethod · 0.80
getDefMethod · 0.80
emptyMethod · 0.80
sizeMethod · 0.80
getGlobalDefMethod · 0.80
getMethod · 0.45
isArrayMethod · 0.45
getKindMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected