[clang] [analyzer] Add option assume-one-iteration (PR #125494)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 07:51:13 PST 2025


================
@@ -294,6 +294,16 @@ ANALYZER_OPTION(
     bool, ShouldUnrollLoops, "unroll-loops",
     "Whether the analysis should try to unroll loops with known bounds.", false)
 
+ANALYZER_OPTION(
+    bool, ShouldAssumeOneIteration, "assume-one-iteration",
+    "Whether the analyzer should always assume at least one iteration in "
----------------
steakhal wrote:

How about the naive "assume-at-least-one-iteration"?
"assume" already implies the part that the condition was opaque, otherwise we wouldn't assume anything there.

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


More information about the cfe-commits mailing list