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

Function isNonConditionalPossibleIntValue

lib/valueflow.cpp:199–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static bool isNonConditionalPossibleIntValue(const ValueFlow::Value& v)
200{
201 if (v.conditional)
202 return false;
203 if (v.condition)
204 return false;
205 if (!v.isPossible())
206 return false;
207 if (!v.isIntValue())
208 return false;
209 return true;
210}
211
212static void setValueUpperBound(ValueFlow::Value& value, bool upper)
213{

Callers 2

parseCompareEachIntFunction · 0.85
fillFromPathMethod · 0.85

Calls 1

isPossibleMethod · 0.80

Tested by

no test coverage detected