cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
local_cfg.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: CFG for One Function
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_ANALYSES_LOCAL_CFG_H
13
#define CPROVER_ANALYSES_LOCAL_CFG_H
14
15
#include <
goto-programs/goto_program.h
>
16
17
#include <map>
18
19
class
local_cfgt
20
{
21
public
:
22
typedef
std::size_t
node_nrt
;
23
typedef
std::vector<node_nrt>
successorst
;
24
25
class
nodet
26
{
27
public
:
28
goto_programt::const_targett
t
;
29
successorst
successors
;
30
};
31
32
typedef
std::
33
map<goto_programt::const_targett, node_nrt, goto_programt::target_less_than>
34
loc_mapt
;
35
loc_mapt
loc_map
;
36
37
typedef
std::vector<nodet>
nodest
;
38
nodest
nodes
;
39
40
explicit
local_cfgt
(
const
goto_programt
&_goto_program)
41
{
42
build
(_goto_program);
43
}
44
45
protected
:
46
void
build
(
const
goto_programt
&goto_program);
47
};
48
49
#endif
// CPROVER_ANALYSES_LOCAL_CFG_H
goto_programt
A generic container class for the GOTO intermediate representation of one function.
Definition
goto_program.h:72
goto_programt::const_targett
instructionst::const_iterator const_targett
Definition
goto_program.h:614
local_cfgt::nodet
Definition
local_cfg.h:26
local_cfgt::nodet::t
goto_programt::const_targett t
Definition
local_cfg.h:28
local_cfgt::nodet::successors
successorst successors
Definition
local_cfg.h:29
local_cfgt::nodes
nodest nodes
Definition
local_cfg.h:38
local_cfgt::loc_mapt
std::map< goto_programt::const_targett, node_nrt, goto_programt::target_less_than > loc_mapt
Definition
local_cfg.h:34
local_cfgt::nodest
std::vector< nodet > nodest
Definition
local_cfg.h:37
local_cfgt::node_nrt
std::size_t node_nrt
Definition
local_cfg.h:22
local_cfgt::loc_map
loc_mapt loc_map
Definition
local_cfg.h:35
local_cfgt::successorst
std::vector< node_nrt > successorst
Definition
local_cfg.h:23
local_cfgt::local_cfgt
local_cfgt(const goto_programt &_goto_program)
Definition
local_cfg.h:40
local_cfgt::build
void build(const goto_programt &goto_program)
Definition
local_cfg.cpp:14
goto_program.h
Concrete Goto Program.
analyses
local_cfg.h
Generated by
1.17.0