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

Predicate SignInp::semMayBePositive

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

Import path

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