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

Method genFuzzVarDecl

lib/generation/ProtobufMutator.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66std::string ProtobufMutator::genFuzzVarDecl(FuzzInput &Input) {
67 auto FuzzVarName = Input.getFuzzVarName();
68 auto Code = SrcGenerator::genDeclStmt(Input.getFTGType(), FuzzVarName, false);
69 if (Input.getFTGType().getRealType() &&
70 Input.getFTGType().getRealType()->isFixedLengthArrayPtr())
71 Code += SrcGenerator::genDeclStmt(
72 "unsigned", util::getAvasFuzzSizeVarName(FuzzVarName));
73 return Code;
74}
75
76std::string ProtobufMutator::genFuzzVarAssign(FuzzInput &FuzzingInput) {
77 std::string Code;

Callers

nothing calls this directly

Calls 4

getAvasFuzzSizeVarNameFunction · 0.85
getFuzzVarNameMethod · 0.80
getRealTypeMethod · 0.80
isFixedLengthArrayPtrMethod · 0.80

Tested by

no test coverage detected