cprover
Loading...
Searching...
No Matches
language_util.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module:
4
5Author: 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
15class exprt;
16class namespacet;
17class typet;
18
19std::string from_expr(
20 const namespacet &ns,
21 const irep_idt &identifier,
22 const exprt &expr);
23
24std::string from_expr(const exprt &expr);
25
26std::string from_type(
27 const namespacet &ns,
28 const irep_idt &identifier,
29 const typet &type);
30
31std::string from_type(const typet &type);
32
34 const namespacet &ns,
35 const irep_idt &identifier,
36 const std::string &src);
37
38std::string type_to_name(
39 const namespacet &ns,
40 const irep_idt &identifier,
41 const typet &type);
42
43std::string type_to_name(const typet &type);
44
45#endif // CPROVER_LANGAPI_LANGUAGE_UTIL_H
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition dstring.h:37
Base class for all expressions.
Definition expr.h:54
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition namespace.h:91
The type of an expression, extends irept.
Definition type.h:29
std::string from_expr(const namespacet &ns, const irep_idt &identifier, const exprt &expr)
exprt to_expr(const namespacet &ns, const irep_idt &identifier, const std::string &src)
std::string type_to_name(const namespacet &ns, const irep_idt &identifier, const typet &type)
std::string from_type(const namespacet &ns, const irep_idt &identifier, const typet &type)