MCPcopy Create free account
hub / github.com/csmith-project/csmith / calls_to_funcs

Function calls_to_funcs

src/FunctionInvocationUser.cpp:110–120  ·  view source on GitHub ↗

* find the functions from a list of function calls. */

Source from the content-addressed store, hash-verified

108 * find the functions from a list of function calls.
109 */
110void
111calls_to_funcs(const vector<const FunctionInvocationUser*>& calls, vector<const Function*>& funcs)
112{
113 size_t i;
114 for (i=0; i<calls.size(); i++) {
115 const Function* func = calls[i]->get_func();
116 if (find_function_in_set(funcs, func) == -1) {
117 funcs.push_back(func);
118 }
119 }
120}
121
122/*
123 * find the functions from a list of function calls. If this is a new function, find the invocations

Callers

nothing calls this directly

Calls 3

find_function_in_setFunction · 0.85
sizeMethod · 0.80
get_funcMethod · 0.80

Tested by

no test coverage detected