cprover
language_util.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: Daniel Kroening, kroening@cs.cmu.edu
6 
7 \*******************************************************************/
8 
9 
10 #ifndef CPROVER_LANGAPI_LANGUAGE_UTIL_H
11 #define CPROVER_LANGAPI_LANGUAGE_UTIL_H
12 
13 #include <util/irep.h>
14 
15 class exprt;
16 class namespacet;
17 class typet;
18 
19 std::string from_expr(
20  const namespacet &ns,
21  const irep_idt &identifier,
22  const exprt &expr);
23 
24 std::string from_expr(const exprt &expr);
25 
26 std::string from_type(
27  const namespacet &ns,
28  const irep_idt &identifier,
29  const typet &type);
30 
31 std::string from_type(const typet &type);
32 
34  const namespacet &ns,
35  const irep_idt &identifier,
36  const std::string &src);
37 
38 std::string type_to_name(
39  const namespacet &ns,
40  const irep_idt &identifier,
41  const typet &type);
42 
43 std::string type_to_name(const typet &type);
44 
45 #endif // CPROVER_LANGAPI_LANGUAGE_UTIL_H
The type of an expression.
Definition: type.h:22
TO_BE_DOCUMENTED.
Definition: namespace.h:74
std::string type_to_name(const namespacet &ns, const irep_idt &identifier, const typet &type)
dstringt has one field, an unsigned integer no which is an index into a static table of strings...
Definition: dstring.h:33
std::string from_expr(const namespacet &ns, const irep_idt &identifier, const exprt &expr)
std::string from_type(const namespacet &ns, const irep_idt &identifier, const typet &type)
Base class for all expressions.
Definition: expr.h:42
exprt to_expr(const namespacet &ns, const irep_idt &identifier, const std::string &src)