MCPcopy Create free account
hub / github.com/Tencent/TscanCode / checkComparisonFunctionIsAlwaysTrueOrFalse

Method checkComparisonFunctionIsAlwaysTrueOrFalse

trunk/lib/checkother.cpp:2552–2581  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Check is a comparison of two variables leads to condition, which is always true or false. For instance: int a = 1; if(isless(a,a)){...} In this case isless(a,a) always evaluates to false. Reference: - http://www.cplusplus.com/reference/cmath/ -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runSimplifiedChecksFunction · 0.80

Calls 4

isEnabledMethod · 0.80
sizeMethod · 0.80
tokAtMethod · 0.80
strMethod · 0.45

Tested by

no test coverage detected