CBMC
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
compute_called_functions.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: Query Called Functions
4
5Author: Daniel Kroening, kroening@kroening.com
6
7\*******************************************************************/
8
11
12#ifndef CPROVER_GOTO_PROGRAMS_COMPUTE_CALLED_FUNCTIONS_H
13#define CPROVER_GOTO_PROGRAMS_COMPUTE_CALLED_FUNCTIONS_H
14
15#include <unordered_set>
16
17#include <util/irep.h>
18
19class exprt;
20class goto_functionst;
21class goto_programt;
22class goto_modelt;
23
24// compute the set of functions whose address is taken
25
27 const exprt &,
28 std::unordered_set<irep_idt> &);
29
31 const goto_programt &,
32 std::unordered_set<irep_idt> &);
33
35 const goto_functionst &,
36 std::unordered_set<irep_idt> &);
37
38// computes the functions that are (potentially) called
39std::unordered_set<irep_idt> compute_called_functions(const goto_functionst &);
40std::unordered_set<irep_idt> compute_called_functions(const goto_modelt &);
41
42#endif // CPROVER_GOTO_PROGRAMS_COMPUTE_CALLED_FUNCTIONS_H
Base class for all expressions.
Definition expr.h:56
A collection of goto functions.
A generic container class for the GOTO intermediate representation of one function.
std::unordered_set< irep_idt > compute_called_functions(const goto_functionst &)
computes the functions that are (potentially) called
void compute_address_taken_functions(const exprt &, std::unordered_set< irep_idt > &)
get all functions whose address is taken