division-by-zero.c 167 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 // RUN: %clang_analyze_cc1 -analyzer-checker=unix.Malloc %s // Do not crash due to division by zero int f(unsigned int a) { if (a <= 0) return 1 / a; return a; }