Main Content
User assertion
assert
statement fails
Description
This check determines whether the argument to an assert
macro
is true.
The argument to the assert
macro must be
true when the macro executes. Otherwise the program aborts and prints
an error message. Polyspace® models this behavior by treating
a failed assert
statement as a run-time error.
This check allows you to detect failed assert
statements
before program execution.
Diagnosing This Check
Examples
Check Information
Group: Other |
Language: C | C++ |
Acronym: ASRT |