Module SignAnalysisCommon
Provides sign analysis to determine whether expression are always positive or negative.
The analysis is implemented as an abstract interpretation over the
three-valued domain {negative, zero, positive}.
Import path
import semmle.code.java.dataflow.internal.rangeanalysis.SignAnalysisCommonPredicates
| anySign | Dummy predicate that holds for any sign. This is added to improve readability of cases where the sign is unrestricted. |
| exprSign | Gets a possible sign for |
| negative | Holds if |
| positive | Holds if |
| strictlyNegative | Holds if |
| strictlyPositive | Holds if |