Module RangeAnalysisUtils
Import path
import semmle.code.cpp.rangeanalysis.RangeAnalysisUtils
Imports
cpp | Provides classes and predicates for working with C/C++ code. |
Predicates
cmpWithLinearBound | Holds if |
directionIsGreater | Holds if |
directionIsLesser | Holds if |
eqOpWithSwapAndNegate | Holds if |
eqZeroWithNegate | Holds if |
exprMaxVal | Gets the maximum value that this expression could represent, based on its type. |
exprMinVal | Gets the minimum value that this expression could represent, based on its type. |
getVariableRangeType | Gets the type used by range analysis for the given |
linearAccess | Holds if |
relOpWithSwap | Holds if |
relOpWithSwapAndNegate | Holds if |
typeLowerBound | Gets the lower bound for the unspecified type |
typeUpperBound | Gets the upper bound for the unspecified type |
varMaxVal | Gets the maximum value that this variable could represent, based on its type. |
varMinVal | Gets the minimum value that this variable could represent, based on its type. |
Datatypes
RelationDirection | Describes whether a relation is ‘greater’ (that is, a |
RelationStrictness | Describes whether a relation is ‘strict’ (that is, a |