ESBMC
Efficient SMT-based Context-Bounded Model Checker
Loading...
Searching...
No Matches
language_util.h
Go to the documentation of this file.
1#ifndef CPROVER_LANGUAGE_UTIL_H
2#define CPROVER_LANGUAGE_UTIL_H
3
4#include <irep2/irep2.h>
6#include <util/irep/migrate.h>
9
10std::unique_ptr<languaget> language_from_symbol(const symbolt &symbol);
11
17
18std::string from_expr(
19 const namespacet &ns,
20 const irep_idt &identifier,
21 const exprt &exprt,
23
24inline std::string from_expr(
25 const namespacet &ns,
26 const irep_idt &identifier,
27 const expr2tc &expr,
29{
30 return from_expr(ns, identifier, migrate_expr_back(expr), target);
31}
32
33std::string from_expr(const exprt &expr);
34
35inline std::string from_expr(const expr2tc &expr)
36{
37 return from_expr(migrate_expr_back(expr));
38}
39
40std::string from_type(
41 const namespacet &ns,
42 const irep_idt &identifier,
43 const typet &type,
45
46inline std::string from_type(
47 const namespacet &ns,
48 const irep_idt &identifier,
49 const type2tc &type,
51{
52 return from_type(ns, identifier, migrate_type_back(type), target);
53}
54
55std::string from_type(const typet &type);
56
57inline std::string from_type(const type2tc &type)
58{
59 return from_type(migrate_type_back(type));
60}
61
62#endif
Definition expr.h:34
Definition irep_idt.h:12
Definition namespace.h:10
Definition symbol.h:12
Definition type.h:9
Classes and definitions for non-stringy internal representation.
irep_container< type2t > type2tc
Definition irep2.h:430
irep_container< expr2t > expr2tc
Definition irep2.h:431
presentationt
Definition language.h:10
@ HUMAN
Definition language.h:11
std::string from_type(const namespacet &ns, const irep_idt &identifier, const typet &type, presentationt target=presentationt::HUMAN)
Definition language_util.cpp:55
std::string from_expr(const namespacet &ns, const irep_idt &identifier, const exprt &exprt, presentationt target=presentationt::HUMAN)
Definition language_util.cpp:43
std::unique_ptr< languaget > language_from_symbol(const symbolt &symbol)
Definition language_util.cpp:18
language_idt configured_language()
The language to render expressions in when there is no symbol to take a mode from – VCC dumps,...
Definition language_util.cpp:7
exprt migrate_expr_back(const expr2tc &ref)
Definition migrate.cpp:3949
typet migrate_type_back(const type2tc &ref)
Definition migrate.cpp:3476
language_idt
Definition mode.h:11
@ identifier
Definition nested_func_transform.cpp:62