MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / isTrue

Function isTrue

lib/programmemory.cpp:296–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static bool isTrue(const ValueFlow::Value& v)
297{
298 if (v.isUninitValue())
299 return false;
300 if (v.isImpossible())
301 return v.intvalue == 0;
302 return v.intvalue != 0;
303}
304
305static bool isFalse(const ValueFlow::Value& v)
306{

Callers 5

isTrueOrFalseFunction · 0.85
removeModifiedVarsMethod · 0.85
evaluateFunction · 0.85
executeImplMethod · 0.85
executeMethod · 0.85

Calls 1

isImpossibleMethod · 0.80

Tested by

no test coverage detected