mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fix one more violation.
This commit is contained in:
@@ -377,16 +377,15 @@ float getAnSsaUpperBound(SsaDefinition def) {
|
||||
getAUse(prevDef) = compoundAssign.getLhs() and
|
||||
assignInstr = IR::assignInstruction(compoundAssign, 0) and
|
||||
prevBound = getAnSsaUpperBound(prevDef) and
|
||||
if compoundAssign instanceof AddAssignStmt
|
||||
then
|
||||
(
|
||||
compoundAssign instanceof AddAssignStmt and
|
||||
delta = getAnUpperBound(compoundAssign.getRhs()) and
|
||||
result = addRoundingUp(prevBound, delta)
|
||||
else
|
||||
if compoundAssign instanceof SubAssignStmt
|
||||
then
|
||||
delta = getALowerBound(compoundAssign.getRhs()) and
|
||||
result = addRoundingUp(prevBound, -delta)
|
||||
else none()
|
||||
or
|
||||
compoundAssign instanceof SubAssignStmt and
|
||||
delta = getALowerBound(compoundAssign.getRhs()) and
|
||||
result = addRoundingUp(prevBound, -delta)
|
||||
)
|
||||
)
|
||||
else
|
||||
//SSA definition coresponding to an `IncDecStmt`
|
||||
|
||||
Reference in New Issue
Block a user