From 02a3d03a0591b06fed014f7b79e8ec5d732d0ddc Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Sun, 7 May 2023 04:03:27 -0500 Subject: [PATCH] ValueFlow: Set max iterations to 2 in normal analysis (#4951) --- lib/settings.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/settings.cpp b/lib/settings.cpp index 848499655..5dbe8e177 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -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; }