CBMC
Loading...
Searching...
No Matches
validate_code.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: Validate code
4
5Author: Daniel Poetzl
6
7\*******************************************************************/
8
9#ifndef CPROVER_UTIL_VALIDATE_CODE_H
10#define CPROVER_UTIL_VALIDATE_CODE_H
11
12class codet;
13class namespacet;
14enum class validation_modet;
15
16void check_code(const codet &code, const validation_modet vm);
17
18void 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.
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition namespace.h:91
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