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

Method get_called_funcs

src/FunctionInvocation.cpp:357–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void
358FunctionInvocation::get_called_funcs(std::vector<const FunctionInvocationUser*>& funcs) const
359{
360 // find calls in parameters
361 for (size_t i=0; i<param_value.size(); i++) {
362 const Expression* value = param_value[i];
363 value->get_called_funcs(funcs);
364 }
365 if (invoke_type == eFuncCall) {
366 const FunctionInvocationUser* func_call = (const FunctionInvocationUser*)this;
367 funcs.push_back(func_call);
368 }
369}
370
371bool
372FunctionInvocation::has_uncertain_call(void) const

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected