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

Method getValueLE

lib/token.cpp:1928–1935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1926}
1927
1928const ValueFlow::Value * Token::getValueLE(const MathLib::bigint val, const Settings &settings) const
1929{
1930 if (!mImpl->mValues)
1931 return nullptr;
1932 return ValueFlow::findValue(*mImpl->mValues, settings, [&](const ValueFlow::Value& v) {
1933 return !v.isImpossible() && v.isIntValue() && v.intvalue <= val;
1934 });
1935}
1936
1937const ValueFlow::Value * Token::getValueGE(const MathLib::bigint val, const Settings &settings) const
1938{

Callers 9

arrayIndexMethod · 0.80
pointerArithmeticMethod · 0.80
negativeArraySizeMethod · 0.80
checkIntegerOverflowMethod · 0.80
checkCharVariableMethod · 0.80
isNegativeFunction · 0.80
negativeIndexMethod · 0.80

Calls 1

isImpossibleMethod · 0.80

Tested by

no test coverage detected