[clang] [analyzer] Add option assume-one-iteration (PR #125494)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 4 07:02:17 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 "
----------------
NagyDonat wrote:
> How about the naive "assume-at-least-one-iteration"?
I felt that it's a bit too long, but if you prefer it (and other reviewers aren't opposed), then I can accept it.
https://github.com/llvm/llvm-project/pull/125494
More information about the cfe-commits
mailing list