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

Method initFromFuzzer

lib/generation/InputMutator.cpp:10–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const std::string InputMutator::DefaultEntryName = "fuzz_entry.cc";
9
10void InputMutator::initFromFuzzer(const Fuzzer &F,
11 const SourceAnalysisReport &SourceReport) {
12 for (auto IDInput : F.getFuzzInputMap()) {
13 auto FuzzingInput = IDInput.second;
14 assert(FuzzingInput && "Unexpected Program State");
15 if (FuzzingInput->getCopyFrom())
16 continue;
17 addInput(*FuzzingInput);
18 }
19 auto UTHeaders = SourceReport.getIncludedHeaders(F.getUT().getFilePath());
20 DependentHeaders.insert(DependentHeaders.end(), UTHeaders.begin(),
21 UTHeaders.end());
22}
23
24std::vector<std::string> InputMutator::getHeaders() const {
25 auto Result = DependentHeaders;

Callers 1

generateMethod · 0.80

Calls 5

getCopyFromMethod · 0.80
getIncludedHeadersMethod · 0.80
endMethod · 0.80
beginMethod · 0.80
getFilePathMethod · 0.45

Tested by

no test coverage detected