Skip to content

Commit 930b2a8

Browse files
committed
Fix off-by-one error in loop condition
1 parent 06c4184 commit 930b2a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/StaticAnalyzer/Core/Z3CrosscheckVisitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void Z3CrosscheckVisitor::finalizeVisitor(BugReporterContext &BRC,
9999

100100
// And check for satisfiability
101101
unsigned MinQueryTimeAcrossAttempts = std::numeric_limits<unsigned>::max();
102-
for (unsigned I = 0; I <= Opts.Z3CrosscheckMaxAttemptsPerQuery; ++I) {
102+
for (unsigned I = 0; I < Opts.Z3CrosscheckMaxAttemptsPerQuery; ++I) {
103103
Result = AttemptOnce(RefutationSolver);
104104
Result.Z3QueryTimeMilliseconds =
105105
std::min(MinQueryTimeAcrossAttempts, Result.Z3QueryTimeMilliseconds);

0 commit comments

Comments
 (0)