File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
go/ql/src/experimental/IntegerOverflow Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -377,16 +377,15 @@ float getAnSsaUpperBound(SsaDefinition def) {
377377 getAUse ( prevDef ) = compoundAssign .getLhs ( ) and
378378 assignInstr = IR:: assignInstruction ( compoundAssign , 0 ) and
379379 prevBound = getAnSsaUpperBound ( prevDef ) and
380- if compoundAssign instanceof AddAssignStmt
381- then
380+ (
381+ compoundAssign instanceof AddAssignStmt and
382382 delta = getAnUpperBound ( compoundAssign .getRhs ( ) ) and
383383 result = addRoundingUp ( prevBound , delta )
384- else
385- if compoundAssign instanceof SubAssignStmt
386- then
387- delta = getALowerBound ( compoundAssign .getRhs ( ) ) and
388- result = addRoundingUp ( prevBound , - delta )
389- else none ( )
384+ or
385+ compoundAssign instanceof SubAssignStmt and
386+ delta = getALowerBound ( compoundAssign .getRhs ( ) ) and
387+ result = addRoundingUp ( prevBound , - delta )
388+ )
390389 )
391390 else
392391 //SSA definition coresponding to an `IncDecStmt`
You can’t perform that action at this time.
0 commit comments