11 #ifdef REPORT_UNIMPLEMENTED_CODE_CHECKS 20 #define CALL_ON_CODE(code_type) \ 21 C<codet, code_type>()(code, std::forward<Args>(args)...) 23 template <
template <
typename,
typename>
class C,
typename... Args>
48 #ifdef REPORT_UNIMPLEMENTED_CODE_CHECKS 49 std::cerr <<
"Unimplemented well-formedness check for code statement with " 68 call_on_code<call_checkt>(code, vm);
85 call_on_code<call_validatet>(code, ns, vm);
101 call_on_code<call_validate_fullt>(code, ns, vm);
const irep_idt & get_statement() const
void check_code(const codet &code, const validation_modet vm)
Check that the given code statement is well-formed (shallow checks only, i.e., enclosed statements...
A codet representing the declaration of a local variable.
void validate_full_code(const codet &code, const namespacet &ns, const validation_modet vm)
Check that the given code statement is well-formed (full check, including checks of all subexpression...
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
codet representation of a function call statement.
void call_on_code(const codet &code, Args &&... args)
void validate_code(const codet &code, const namespacet &ns, const validation_modet vm)
Check that the given code statement is well-formed, assuming that all its enclosed statements...
A codet representing the removal of a local variable going out of scope.
#define CALL_ON_CODE(code_type)
Data structure for representing an arbitrary statement in a program.
codet representation of a "return from a function" statement.
A codet representing an assignment in the program.