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

Method dtFunctionInvocationStdFunc_minimal_depth

src/DepthSpec.cpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207int DepthSpec::dtFunctionInvocationStdFunc_minimal_depth(int)
208{
209 vector<int> vs;
210 vs.push_back(dtFunctionInvocationRandomUnary_minimal_depth());
211 vs.push_back(dtFunctionInvocationRandomBinary_minimal_depth());
212
213 return *min_element(vs.begin(), vs.end()) + 1;
214}
215
216int DepthSpec::dtFunctionInvocationRandom_minimal_depth(int)
217{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected