Skip to content

Commit 606e015

Browse files
Dave BartolomeoMathiasVP
andauthored
Update cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/RangeAnalysis.qll
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
1 parent e275ab3 commit 606e015

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/analysis/RangeAnalysis.qll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,10 @@ private predicate boundFlowStep(SemExpr e2, SemExpr e1, int delta, boolean upper
421421
else none()
422422
)
423423
or
424-
exists(SemExpr x |
425-
exists(SemSubExpr sub |
426-
e2 = sub and
427-
sub.getLeftOperand() = e1 and
428-
sub.getRightOperand() = x
429-
)
424+
exists(SemExpr x, SemSubExpr sub |
425+
e2 = sub and
426+
sub.getLeftOperand() = e1 and
427+
sub.getRightOperand() = x
430428
|
431429
// `x instanceof ConstantIntegerExpr` is covered by valueFlowStep
432430
not x instanceof SemConstantIntegerExpr and

0 commit comments

Comments
 (0)