C++: Remove best-bound logic from test

This logic, in an improved form, is now part of the library itself.
This commit is contained in:
Jonas Jensen
2019-10-29 11:54:32 +01:00
parent 311963906b
commit b6038f3caa

View File

@@ -11,13 +11,7 @@ query predicate instructionBounds(
or
exists(ReturnValueInstruction retInstr | retInstr.getReturnValueOperand() = i.getAUse())
) and
(
upper = true and
delta = min(int d | boundedInstruction(i, b, d, upper, reason))
or
upper = false and
delta = max(int d | boundedInstruction(i, b, d, upper, reason))
) and
boundedInstruction(i, b, delta, upper, reason) and
not valueNumber(b.getInstruction()) = valueNumber(i) and
if reason instanceof CondReason
then reasonLoc = reason.(CondReason).getCond().getLocation()