Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6038f3

Browse files
committed
C++: Remove best-bound logic from test
This logic, in an improved form, is now part of the library itself.
1 parent 3119639 commit b6038f3

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

cpp/ql/test/library-tests/rangeanalysis/rangeanalysis/RangeAnalysis.ql

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ query predicate instructionBounds(
1111
or
1212
exists(ReturnValueInstruction retInstr | retInstr.getReturnValueOperand() = i.getAUse())
1313
) and
14-
(
15-
upper = true and
16-
delta = min(int d | boundedInstruction(i, b, d, upper, reason))
17-
or
18-
upper = false and
19-
delta = max(int d | boundedInstruction(i, b, d, upper, reason))
20-
) and
14+
boundedInstruction(i, b, delta, upper, reason) and
2115
not valueNumber(b.getInstruction()) = valueNumber(i) and
2216
if reason instanceof CondReason
2317
then reasonLoc = reason.(CondReason).getCond().getLocation()

0 commit comments

Comments
 (0)