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) {
377
377
getAUse ( prevDef ) = compoundAssign .getLhs ( ) and
378
378
assignInstr = IR:: assignInstruction ( compoundAssign , 0 ) and
379
379
prevBound = getAnSsaUpperBound ( prevDef ) and
380
- if compoundAssign instanceof AddAssignStmt
381
- then
380
+ (
381
+ compoundAssign instanceof AddAssignStmt and
382
382
delta = getAnUpperBound ( compoundAssign .getRhs ( ) ) and
383
383
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
+ )
390
389
)
391
390
else
392
391
//SSA definition coresponding to an `IncDecStmt`
You can’t perform that action at this time.
0 commit comments