Module RangeAnalysisUtils
Import path
import semmle.code.cpp.rangeanalysis.RangeAnalysisUtilsImports
| 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. |
Classes
| RelationStrictness | The strictness of a relation. Either ‘strict’ (that is, a |
Datatypes
| RelationDirection | Describes whether a relation is ‘greater’ (that is, a |
| TRelationStrictness | The strictness of a relation. Either ‘strict’ (that is, a |