CBMC
|
A loop, specified as a set of instructions. More...
#include <loop_analysis.h>
Public Types | |
typedef loop_instructionst::const_iterator | const_iterator |
Public Member Functions | |
loop_templatet ()=default | |
template<typename InstructionSet > | |
loop_templatet (InstructionSet &&instructions) | |
virtual bool | contains (const T instruction) const |
Returns true if instruction is in this loop. | |
const_iterator | begin () const |
Iterator over this loop's instructions. | |
const_iterator | end () const |
Iterator over this loop's instructions. | |
std::size_t | size () const |
Number of instructions in this loop. | |
bool | empty () const |
Returns true if this loop contains no instructions. | |
bool | insert_instruction (const T instruction) |
Adds instruction to this loop. | |
Private Types | |
typedef std::set< T, C > | loop_instructionst |
Private Attributes | |
loop_instructionst | loop_instructions |
friend | loop_analysist< T, C > |
A loop, specified as a set of instructions.
Definition at line 23 of file loop_analysis.h.
typedef loop_instructionst::const_iterator loop_templatet< T, C >::const_iterator |
Definition at line 46 of file loop_analysis.h.
|
private |
Definition at line 25 of file loop_analysis.h.
|
default |
|
inlineexplicit |
Definition at line 34 of file loop_analysis.h.
|
inline |
Iterator over this loop's instructions.
Definition at line 49 of file loop_analysis.h.
|
inlinevirtual |
Returns true if instruction
is in this loop.
Definition at line 40 of file loop_analysis.h.
Returns true if this loop contains no instructions.
Definition at line 67 of file loop_analysis.h.
|
inline |
Iterator over this loop's instructions.
Definition at line 55 of file loop_analysis.h.
|
inline |
Adds instruction
to this loop.
Definition at line 74 of file loop_analysis.h.
|
inline |
Number of instructions in this loop.
Definition at line 61 of file loop_analysis.h.
|
private |
Definition at line 28 of file loop_analysis.h.
|
private |
Definition at line 26 of file loop_analysis.h.