codeql/cpp-all
2.1.2-dev
For other CodeQL resources, including tutorials and examples, see the CodeQL documentation
.
Gets the maximum value that this variable could represent, based on its type.
For example, if v has a signed 32-bit type then the result is 2^31 - 1.
v
2^31 - 1
import semmle.code.cpp.rangeanalysis.RangeAnalysisUtils
float varMaxVal(Variable v)