CodeQL library for JavaScript
Search

Predicate RangeAnalysis::linearComparisonGuard

Holds if guard asserts that the outcome of A <op> B + bias is true, where <op> is a comparison operator.

Import path

import javascript
predicate linearComparisonGuard(ConditionGuardNode guard, Node a, int asign, string operator, Node b, int bsign, Bias bias)