Module SignAnalysis
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.csharp.dataflow.SignAnalysis
Imports
csharp | The default C# QL library. |
Predicates
negative | Holds if |
negativeExpr | Holds if |
positive | Holds if |
positiveExpr | Holds if |
strictlyNegative | Holds if |
strictlyNegativeExpr | Holds if |
strictlyPositive | Holds if |
strictlyPositiveExpr | Holds if |