polyspace-autosar
(System Command) Run Polyspace Code Prover on code implementation of AUTOSAR software components
Syntax
Description
The polyspace-autosar system command checks the C/C++ code implementation of AUTOSAR software components for run-time errors and violation of data constraints in AUTOSAR XML specifications.
Note
This Polyspace® command is available in
.
Here, polyspaceroot\polyspace\bin is the
Polyspace installation folder, for instance, polyspacerootC:\Program Files\Polyspace\R2026a (see also Installation Folder for desktop products or Installation Folder for server products). To avoid typing the full path to this command,
add this location to the PATH environment variable in
your operating system.
polyspace-autosar -create-project
creates Polyspace Platform workspace and project files corresponding to the AUTOSAR
specification. The command parses the AUTOSAR XML specifications
(projectFolder -arxml-dir arxmlFolder -sources-dir codeFolder -output-platform-project.arxml files) in arxmlFolder,
modularizes the code implementation (.c files) in
codeFolder based on the specifications, and prepares a
Polyspace Platform workspace file (.pswks) and project
files (.psprjx) containing the necessary configurations to
run a Polyspace
Code Prover™ analysis.
polyspace-autosar -create-project creates a Polyspace project from AUTOSAR specifications as in the preceding syntax but allows you to exclude specific files or folders from analysis using shell patterns or regular expressions.projectFolder -select-arxml-files arxmlFiles [-select-arxml-files arxmlFiles] -select-source-files codeFiles [-select-source-files codeFiles] [OPTIONS]
polyspace-autosar -update-project updates the Code Prover analysis results based on changes in ARXML files or C source code since the last analysis. The update uses the html file prevProjectFile [OPTIONS]prevProjectFile from the previous analysis and only reanalyzes the code implementation of software components that changed since that analysis.
You can use additional options for troubleshooting.
polyspace-autosar -update-and-clean-project updates the Code Prover analysis results based on changes in ARXML files or C source code since the last analysis. The update only reanalyzes the code implementation of software components that changed since the previous analysis. A clean update also removes information about software components that are out of date. For instance, if you use
an additional option to force the update for specific software components and other SWC-s have also changed, a clean update removes those other SWC-s from the Polyspace project.prevProjectFile [OPTIONS]
You can use additional options for troubleshooting.
polyspace-autosar -help shows all options available for polyspace-autosar.