|
cprover
|
A collection of goto functions. More...
#include <goto_functions.h>
Public Types | |
| using | goto_functiont = ::goto_functiont |
| typedef std::map< irep_idt, goto_functiont > | function_mapt |
Public Member Functions | |
| goto_functionst () | |
| goto_functionst (const goto_functionst &)=delete | |
| goto_functionst & | operator= (const goto_functionst &)=delete |
| goto_functionst (goto_functionst &&other) | |
| goto_functionst & | operator= (goto_functionst &&other) |
| std::size_t | unload (const irep_idt &name) |
Remove the function named name from the function map, if it exists. | |
| void | clear () |
| void | compute_location_numbers () |
| void | compute_location_numbers (goto_programt &) |
| void | compute_loop_numbers () |
| void | compute_target_numbers () |
| void | compute_incoming_edges () |
| void | update () |
| void | swap (goto_functionst &other) |
| void | copy_from (const goto_functionst &other) |
| std::vector< function_mapt::const_iterator > | sorted () const |
| returns a vector of the iterators in alphabetical order | |
| std::vector< function_mapt::iterator > | sorted () |
| returns a vector of the iterators in alphabetical order | |
| void | validate (const namespacet &, validation_modet) const |
| Check that the goto functions are well-formed. | |
Static Public Member Functions | |
| static irep_idt | entry_point () |
| Get the identifier of the entry point to a goto model. | |
Public Attributes | |
| function_mapt | function_map |
Private Attributes | |
| unsigned | unused_location_number |
| A location number such that numbers in the interval [unused_location_number, MAX_UINT] are all unused. | |
A collection of goto functions.
Definition at line 24 of file goto_functions.h.
| typedef std::map<irep_idt, goto_functiont> goto_functionst::function_mapt |
Definition at line 28 of file goto_functions.h.
| using goto_functionst::goto_functiont = ::goto_functiont |
Definition at line 27 of file goto_functions.h.
|
inline |
Definition at line 40 of file goto_functions.h.
|
delete |
|
inline |
Definition at line 56 of file goto_functions.h.
|
inline |
Definition at line 77 of file goto_functions.h.
| void goto_functionst::compute_incoming_edges | ( | ) |
Definition at line 40 of file goto_functions.cpp.
| void goto_functionst::compute_location_numbers | ( | ) |
Definition at line 21 of file goto_functions.cpp.
| void goto_functionst::compute_location_numbers | ( | goto_programt & | program | ) |
Definition at line 32 of file goto_functions.cpp.
| void goto_functionst::compute_loop_numbers | ( | ) |
Definition at line 56 of file goto_functions.cpp.
| void goto_functionst::compute_target_numbers | ( | ) |
Definition at line 48 of file goto_functions.cpp.
|
inline |
Definition at line 108 of file goto_functions.h.
|
inlinestatic |
Get the identifier of the entry point to a goto model.
Definition at line 97 of file goto_functions.h.
|
delete |
|
inline |
Definition at line 62 of file goto_functions.h.
| std::vector< goto_functionst::function_mapt::iterator > goto_functionst::sorted | ( | ) |
returns a vector of the iterators in alphabetical order
Definition at line 86 of file goto_functions.cpp.
| std::vector< goto_functionst::function_mapt::const_iterator > goto_functionst::sorted | ( | ) | const |
returns a vector of the iterators in alphabetical order
Definition at line 66 of file goto_functions.cpp.
|
inline |
Definition at line 103 of file goto_functions.h.
|
inline |
Remove the function named name from the function map, if it exists.
name was not present, and 1 when name was removed. Definition at line 72 of file goto_functions.h.
|
inline |
Definition at line 88 of file goto_functions.h.
| void goto_functionst::validate | ( | const namespacet & | ns, |
| validation_modet | vm ) const |
Check that the goto functions are well-formed.
The validation mode indicates whether well-formedness check failures are reported via DATA_INVARIANT violations or exceptions.
Definition at line 105 of file goto_functions.cpp.
| function_mapt goto_functionst::function_map |
Definition at line 29 of file goto_functions.h.
|
private |
A location number such that numbers in the interval [unused_location_number, MAX_UINT] are all unused.
There might still be unused numbers below this. If numbering a new function or renumbering a function, starting from this number is safe.
Definition at line 37 of file goto_functions.h.