CBMC
|
Go to the source code of this file.
Macros | |
#define | INVARIANT_WITH_IREP(CONDITION, DESCRIPTION, IREP) |
Equivalent to INVARIANT_STRUCTURED(CONDITION, invariant_failedt, pretty_print_invariant_with_irep(IREP, DESCRIPTION)) More... | |
#define | PRECONDITION_WITH_IREP(CONDITION, DESCRIPTION, IREP) INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
See INVARIANT_WITH_IREP More... | |
#define | POSTCONDITION_WITH_IREP(CONDITION, DESCRIPTION, IREP) INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
#define | CHECK_RETURN_WITH_IREP(CONDITION, DESCRIPTION, IREP) INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
#define | UNREACHABLE_WITH_IREP(CONDITION, DESCRIPTION, IREP) INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
#define | DATA_INVARIANT_WITH_IREP(CONDITION, DESCRIPTION, IREP) INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
Functions | |
std::string | pretty_print_invariant_with_irep (const irept &problem_node, const std::string &description) |
Produces a plain string error description from an irep and some explanatory text. More... | |
#define CHECK_RETURN_WITH_IREP | ( | CONDITION, | |
DESCRIPTION, | |||
IREP | |||
) | INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
Definition at line 41 of file invariant_utils.h.
#define DATA_INVARIANT_WITH_IREP | ( | CONDITION, | |
DESCRIPTION, | |||
IREP | |||
) | INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
Definition at line 45 of file invariant_utils.h.
#define INVARIANT_WITH_IREP | ( | CONDITION, | |
DESCRIPTION, | |||
IREP | |||
) |
Equivalent to INVARIANT_STRUCTURED(CONDITION, invariant_failedt, pretty_print_invariant_with_irep(IREP, DESCRIPTION))
Definition at line 30 of file invariant_utils.h.
#define POSTCONDITION_WITH_IREP | ( | CONDITION, | |
DESCRIPTION, | |||
IREP | |||
) | INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
Definition at line 39 of file invariant_utils.h.
#define PRECONDITION_WITH_IREP | ( | CONDITION, | |
DESCRIPTION, | |||
IREP | |||
) | INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
See INVARIANT_WITH_IREP
Definition at line 37 of file invariant_utils.h.
#define UNREACHABLE_WITH_IREP | ( | CONDITION, | |
DESCRIPTION, | |||
IREP | |||
) | INVARIANT_WITH_IREP((CONDITION), (DESCRIPTION), (IREP)) |
Definition at line 43 of file invariant_utils.h.
std::string pretty_print_invariant_with_irep | ( | const irept & | problem_node, |
const std::string & | description | ||
) |
Produces a plain string error description from an irep and some explanatory text.
If problem_node
is nil, returns description
.
problem_node | irep to pretty-print |
description | descriptive text to prepend |
Definition at line 16 of file invariant_utils.cpp.