CodeQL library for Java/Kotlin
codeql/java-all 0.9.2-dev (changelog, source)
Search

Predicate SignInp::semMayBeNegative

Holds if e may have negative values. This does not rule out the possibility for positive values.

Import path

import semmle.code.java.dataflow.RangeAnalysis
predicate semMayBeNegative(Expr e)