cprover
function_modifies.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module: Modifies
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
11 
12 #ifndef CPROVER_GOTO_INSTRUMENT_FUNCTION_MODIFIES_H
13 #define CPROVER_GOTO_INSTRUMENT_FUNCTION_MODIFIES_H
14 
17 
19 {
20 public:
21  explicit function_modifiest(const goto_functionst &_goto_functions):
22  goto_functions(_goto_functions)
23  {
24  }
25 
26  typedef std::set<exprt> modifiest;
27 
28  void get_modifies(
29  const local_may_aliast &local_may_alias,
31  modifiest &);
32 
33  void get_modifies_lhs(
34  const local_may_aliast &,
36  const exprt &lhs,
37  modifiest &);
38 
40  const exprt &,
41  modifiest &);
42 
43  void operator()(const exprt &function, modifiest &modifies)
44  {
45  get_modifies_function(function, modifies);
46  }
47 
48 protected:
50 
51  typedef std::map<irep_idt, modifiest> function_mapt;
53 };
54 
55 #endif // CPROVER_GOTO_INSTRUMENT_FUNCTION_MODIFIES_H
function_modifiest
Definition: function_modifies.h:18
function_modifiest::operator()
void operator()(const exprt &function, modifiest &modifies)
Definition: function_modifies.h:43
function_modifiest::function_map
function_mapt function_map
Definition: function_modifies.h:52
exprt
Base class for all expressions.
Definition: expr.h:54
function_modifiest::goto_functions
const goto_functionst & goto_functions
Definition: function_modifies.h:49
local_may_aliast
Definition: local_may_alias.h:25
local_may_alias.h
function_modifiest::function_modifiest
function_modifiest(const goto_functionst &_goto_functions)
Definition: function_modifies.h:21
goto_functionst
A collection of goto functions.
Definition: goto_functions.h:22
function_modifiest::get_modifies
void get_modifies(const local_may_aliast &local_may_alias, const goto_programt::const_targett, modifiest &)
Definition: function_modifies.cpp:45
goto_functions.h
goto_programt::const_targett
instructionst::const_iterator const_targett
Definition: goto_program.h:415
function_modifiest::function_mapt
std::map< irep_idt, modifiest > function_mapt
Definition: function_modifies.h:51
function_modifiest::modifiest
std::set< exprt > modifiest
Definition: function_modifies.h:26
function_modifiest::get_modifies_function
void get_modifies_function(const exprt &, modifiest &)
Definition: function_modifies.cpp:72
function_modifiest::get_modifies_lhs
void get_modifies_lhs(const local_may_aliast &, const goto_programt::const_targett, const exprt &lhs, modifiest &)
Definition: function_modifies.cpp:16