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

Method has_uncertain_call

src/FunctionInvocation.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371bool
372FunctionInvocation::has_uncertain_call(void) const
373{
374 // if there are more than two function calls in two separate parameters,
375 // we judge both calls as uncertain because the evaluation order can be
376 // either left-to-right or right-to-left
377 int has_func_param_cnt = 0;
378 size_t i;
379 for (i=0; i<param_value.size(); i++) {
380 if (param_value[i]->func_count() > 0) {
381 has_func_param_cnt++;
382 }
383 }
384 return has_func_param_cnt >= 2;
385}
386
387bool
388FunctionInvocation::has_uncertain_call_recursive(void) const

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
func_countMethod · 0.80

Tested by

no test coverage detected