CBMC
validate_code.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Validate code
4 
5 Author: Daniel Poetzl
6 
7 \*******************************************************************/
8 
9 #ifndef CPROVER_UTIL_VALIDATE_CODE_H
10 #define CPROVER_UTIL_VALIDATE_CODE_H
11 
12 class codet;
13 class namespacet;
14 enum class validation_modet;
15 
16 void check_code(const codet &code, const validation_modet vm);
17 
18 void validate_code(
19  const codet &code,
20  const namespacet &ns,
21  const validation_modet vm);
22 
24  const codet &code,
25  const namespacet &ns,
26  const validation_modet vm);
27 
28 #endif /* CPROVER_UTIL_VALIDATE_CODE_H */
Data structure for representing an arbitrary statement in a program.
Definition: std_code_base.h:29
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition: namespace.h:94
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,...
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...
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,...
validation_modet