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

Module IntegerGuards

Provides classes and predicates for integer guards.

Import path

import semmle.code.java.dataflow.IntegerGuards

Imports

java

Provides all default Java QL imports.

Predicates

intBoundGuard

DEPRECATED: Use rangeGuard instead.

integerGuard

DEPRECATED.

nonZeroGuard

Gets an expression that directly tests whether a given expression, e, is non-zero.

rangeGuard

Holds if guard evaluating to branch ensures that: e <= k when upper = true e >= k when upper = false

Classes

IntComparableExpr

An expression for which the predicate integerGuard is relevant. This includes VarRead and MethodCall.