cprover
Loading...
Searching...
No Matches
sese_regions.h
Go to the documentation of this file.
1/*******************************************************************\
2
3Module: Single-entry, single-exit region analysis
4
5Author: Diffblue Ltd.
6
7\*******************************************************************/
8
11
12#ifndef CPROVER_ANALYSES_SESE_REGIONS_H
13#define CPROVER_ANALYSES_SESE_REGIONS_H
14
15#include <util/optional.h>
16
18{
19public:
20 void operator()(const goto_programt &goto_program);
23 {
24 auto find_result = sese_regions.find(entry);
25 if(find_result == sese_regions.end())
26 return {};
27 else
28 return find_result->second;
29 }
30
31 void output(
32 std::ostream &out,
33 const goto_programt &goto_program,
34 const namespacet &ns) const;
35
36private:
37 std::unordered_map<
43 const goto_programt &goto_program,
44 const natural_loopst &natural_loops);
45};
46
47#endif // CPROVER_ANALYSES_SESE_REGIONS_H
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Definition ai.h:563
A generic container class for the GOTO intermediate representation of one function.
instructionst::const_iterator const_targett
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition namespace.h:91
A concretized version of natural_loops_templatet<const goto_programt, goto_programt::const_targett>
optionalt< goto_programt::const_targett > get_region_exit(goto_programt::const_targett entry) const
void operator()(const goto_programt &goto_program)
void compute_sese_regions(const goto_programt &goto_program, const natural_loopst &natural_loops)
void output(std::ostream &out, const goto_programt &goto_program, const namespacet &ns) const
std::unordered_map< goto_programt::const_targett, goto_programt::const_targett, const_target_hash > sese_regions