ValueFlow: Set max iterations to 2 in normal analysis (#4951)

This commit is contained in:
Paul Fultz II 2023-05-07 04:03:27 -05:00 committed by GitHub
parent bd8a6f0681
commit 02a3d03a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ Settings::Settings()
showtime(SHOWTIME_MODES::SHOWTIME_NONE),
templateMaxTime(0),
typedefMaxTime(0),
valueFlowMaxIterations(4),
valueFlowMaxIterations(2),
verbose(false),
xml(false),
xml_version(2)
@ -229,6 +229,7 @@ void Settings::setCheckLevelExhaustive()
{
// Checking can take a little while. ~ 10 times slower than normal analysis is OK.
performanceValueFlowMaxIfCount = -1;
valueFlowMaxIterations = 4;
performanceValueFlowMaxSubFunctionArgs = 256;
}
@ -237,4 +238,5 @@ void Settings::setCheckLevelNormal()
// Checking should finish in reasonable time.
performanceValueFlowMaxSubFunctionArgs = 8;
performanceValueFlowMaxIfCount = 100;
valueFlowMaxIterations = 2;
}