-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathmode.h
32 lines (21 loc) · 910 Bytes
/
mode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*******************************************************************\
Module:
Author: Daniel Kroening, [email protected]
\*******************************************************************/
#ifndef CPROVER_LANGAPI_MODE_H
#define CPROVER_LANGAPI_MODE_H
#include <util/irep.h>
#include <memory> // unique_ptr
class languaget;
class namespacet;
std::unique_ptr<languaget> get_language_from_mode(const irep_idt &mode);
const irep_idt &
get_mode_from_identifier(const namespacet &ns, const irep_idt &identifier);
std::unique_ptr<languaget>
get_language_from_identifier(const namespacet &ns, const irep_idt &identifier);
std::unique_ptr<languaget> get_language_from_filename(
const std::string &filename);
std::unique_ptr<languaget> get_default_language();
typedef std::unique_ptr<languaget> (*language_factoryt)();
void register_language(language_factoryt factory);
#endif // CPROVER_LANGAPI_MODE_H