[clang] [analyzer] Model concrete floating-point values (PR #214098)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 10:01:27 PDT 2026


================
@@ -91,6 +91,11 @@ void DivZeroChecker::checkPreStmt(const BinaryOperator *B,
   if (!B->getRHS()->getType()->isScalarType())
     return;
 
+  // Floating-point divide by zero is defined when floating semantics conform
+  // to IEC 60559.
+  if (B->getRHS()->getType()->isRealFloatingType())
----------------
steakhal wrote:

I don't understand how this comment explains this early return.

https://github.com/llvm/llvm-project/pull/214098


More information about the cfe-commits mailing list