Main Content

Code Analysis and Tracing

Verify generated code manually by using reports, traceability, and Polyspace® static code analysis products

After you generate code, make sure that the code meets your requirements by analyzing the code metrics, interfaces, replacements, and code generation assumptions. The code generation report provides information about these aspects of the generated code. You can assess the code and modify your model to generate code that meets your requirements.

Verify the generated code by navigating between a line of code and its corresponding model elements by using code tracing. You can trace from hyperlinks in the code to model elements and from model elements to code lines. You can also include links from the generated code to the model element requirements.

Functions

rtwtraceTrace a block to generated code in code generation report

Topics

Code Analysis

Code Tracing