polyspace-code-prover
(DOS/UNIX) Run a Code Prover verification from Windows, Linux, or other command line
Syntax
Description
Note
This Polyspace® command is available in
.
Here, polyspaceroot
\polyspace\bin
is the
Polyspace installation folder, for instance, polyspaceroot
C:\Program
Files\Polyspace\R2024b
(see also Installation Folder). To avoid typing the full path to this command, add this location to
the PATH
environment variable in your operating
system.
polyspace-code-prover [
runs a Code Prover verification if your current folder contains a
options
]sources
subfolder with source files
(.c
or .cxx
files). The verification
considers files in sources
and all subfolders under
sources
. You can customize the verification with
additional options.
polyspace-code-prover -sources
runs a Code Prover verification on the source file(s)
sourceFiles
[options
]sourceFiles
. You can customize the verification with
additional options.
polyspace-code-prover -sources-list-file
runs a Code Prover verification on the source files listed in the text file
listOfSources
[options
]listOfSources
. You can customize the verification with
additional options.
polyspace-code-prover -h[elp]
lists a summary of possible
analysis options.
Examples
Input Arguments
Tips
If you run the command as part of a script, check the exit status to confirm a
successful analysis. The command returns zero on a successful analysis. A nonzero return
value means that the analysis failed and was not completed. For instance, if the
analyzed file does not compile, the command returns a nonzero value. If some of the
files do not compile when you are analyzing multiple files, the command completes
analysis on the files that do compile and returns zero. It is possible to stop analysis
if a file does not compile. See Stop analysis if a file does not compile (-stop-if-compile-error)
.
After running the command, you can check the %ERRORLEVEL%
variable
in Windows command line to confirm a successful analysis.
Version History
Introduced in R2013b