cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
cprover_library.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module:
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
9
10
#ifndef CPROVER_ANSI_C_CPROVER_LIBRARY_H
11
#define CPROVER_ANSI_C_CPROVER_LIBRARY_H
12
13
#include <set>
14
15
#include <
util/irep.h
>
16
17
class
message_handlert
;
18
class
symbol_table_baset
;
19
20
struct
cprover_library_entryt
21
{
22
const
char
*
function
;
23
const
char
*
model
;
24
};
25
26
std::string
get_cprover_library_text
(
27
const
std::set<irep_idt> &functions,
28
const
symbol_table_baset
&,
29
const
struct
cprover_library_entryt
[],
30
const
std::string &prologue,
31
const
bool
force_load =
false
);
32
36
void
add_library
(
37
const
std::string &src,
38
symbol_table_baset
&,
39
message_handlert
&,
40
const
std::set<irep_idt> &keep = {});
41
42
void
cprover_c_library_factory
(
43
const
std::set<irep_idt> &functions,
44
const
symbol_table_baset
&,
45
symbol_table_baset
&,
46
message_handlert
&);
47
51
void
cprover_c_library_factory_force_load
(
52
const
std::set<irep_idt> &functions,
53
symbol_table_baset
&symbol_table,
54
message_handlert
&message_handler);
55
56
#endif
// CPROVER_ANSI_C_CPROVER_LIBRARY_H
get_cprover_library_text
std::string get_cprover_library_text(const std::set< irep_idt > &functions, const symbol_table_baset &, const struct cprover_library_entryt[], const std::string &prologue, const bool force_load=false)
Definition
cprover_library.cpp:67
cprover_c_library_factory
void cprover_c_library_factory(const std::set< irep_idt > &functions, const symbol_table_baset &, symbol_table_baset &, message_handlert &)
Definition
cprover_library.cpp:106
cprover_c_library_factory_force_load
void cprover_c_library_factory_force_load(const std::set< irep_idt > &functions, symbol_table_baset &symbol_table, message_handlert &message_handler)
Load the requested function symbols from the cprover library and add them to the symbol table regardl...
Definition
cprover_library.cpp:139
add_library
void add_library(const std::string &src, symbol_table_baset &, message_handlert &, const std::set< irep_idt > &keep={})
Parses and typechecks the given src and adds its contents to the symbol table.
Definition
cprover_library.cpp:121
message_handlert
Definition
message.h:27
symbol_table_baset
The symbol table base class interface.
Definition
symbol_table_base.h:23
irep.h
cprover_library_entryt
Definition
cprover_library.h:21
cprover_library_entryt::function
const char * function
Definition
cprover_library.h:22
cprover_library_entryt::model
const char * model
Definition
cprover_library.h:23
ansi-c
cprover_library.h
Generated by
1.17.0