================
@@ -301,21 +301,27 @@ compareValueToThreshold(ProgramStateRef State, NonLoc
Value, NonLoc Threshold,
// calling `evalBinOpNN`:
if (isNegative(SVB, State, Value) && isUnsigned(SVB, Threshold)) {
if (CheckEquality) {
- // negative_value == unsigned_value is always false
+ // negative_value == unsigned_threshold is always false
return {nullptr, State};
}
- // negative_value < unsigned_value is always false
+ // negative_value < unsigned_threshold is always true
return {State, nullptr};
}
if (isUnsigned(SVB, Value) && isNegative(SVB, State, Threshold)) {
- // unsigned_value == negative_value and unsigned_value < negative_value are
- // both always false
+ // unsigned_value == negative_threshold and
+ // unsigned_value < negative_threshold are both always false
----------------
spaits wrote:
Just a minor nit: Wouldn't it be better to write `<=`?
https://github.com/llvm/llvm-project/pull/83545
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits