Main Content

Data Flow Checks

Checks on variable reads, function return values and conditional statements

Data flow checks in Polyspace® Code Prover™ check for run-time errors related to flow of information in a program, such as:

  • Whether a variable being read is initialized.

  • Whether a branch of a conditional statement is reachable.

  • Whether a function is called at run time.

Polyspace Results

Function not calledFunction is defined but not called
Function not reachableFunction is called from unreachable part of code
Global variable not assigned a value in initialization codeGlobal variable is not assigned a value in the initialization section of program
Non-initialized local variableLocal variable is not initialized before being read
Non-initialized pointerPointer is not initialized before being read
Non-initialized variableVariable other than local variable is not initialized before being read
Return value not initializedC function does not return value when expected
Unreachable codeCode cannot be reached during execution

Topics