Shallow (fast) definition

Shallow (fast). Like the "Shallowest" analysis type, finds only the most obvious prob- lems in the source code. However, it produces a greater overall number of findings and allows for examination of somewhat longer execution paths. • Standard: Finds many complicated problems with execution paths containing tens of elements. Standard analysis goes beyond shallow analysis and also looks for more complicated problems, which can occur because of bad flow in a single function or due to improper interaction between different functions in different parts of the analyzed project. Violations found by this type of analysis often reveal non-trivial bugs in the analyzed source code and often span tens of lines of code. • Deep (slow): Allows for detection of a greater number of problems of the same com- plexity and nature as those defined for "Standard" depth. This type of analysis is slower than the standard one. • Thorough (slowest): Finds more complicated problems. This type of analysis will per- form a thorough scan of the code base; this requires more time, but will uncover many very complicated problems whose violation paths can span more than a hundred lines of code in different parts of the scanned application. This option is recommended for nightly runs. • By manually editing the test configuration file. Open the test configuration file in an editor and set the com.parasoft.xtest.checker.flowanalysis.depthOfAnalysis property to the value that represents the desired depth of analysis: 0 - Shallowest, 1 - Shallow, 2 - Standard, 3 - Deep, 4 - Thorough. The depth of Flow Analysis is set to Standard by default. Setting Timeout Strategy‌ Apart from the depth of analysis, Flow Analysis engine uses an additional timeout guard to ensure the analysis completes within a reasonable time. An appropriate strategy can be set using the following methods: • By using the test configuration interface in DTP. Go to Report Center> Test Configurations> Static Analysis> Flow Analysis Advanced Settings> Performance> Strategy for Time- outs and choose one of the following options by selecting a radio button: • time: Analysis of the given hotspot is stopped after spending the defined amount of time on it. Note: in some cases, using this option can result in a slightly unstable num- ber of violations being reported.