CBMC
loop_ids.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: Loop IDs
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
11
12
#ifndef CPROVER_GOTO_PROGRAMS_LOOP_IDS_H
13
#define CPROVER_GOTO_PROGRAMS_LOOP_IDS_H
14
15
#include <
util/ui_message.h
>
16
17
class
goto_functionst
;
18
class
goto_modelt
;
19
class
goto_programt
;
20
27
struct
loop_idt
28
{
29
loop_idt
(
const
irep_idt
&
function_id
,
const
unsigned
int
loop_number
)
30
:
function_id
(
function_id
),
loop_number
(
loop_number
)
31
{
32
}
33
34
irep_idt
function_id
;
35
unsigned
int
loop_number
;
36
37
bool
operator==
(
const
loop_idt
&o)
const
38
{
39
return
function_id
== o.
function_id
&&
loop_number
== o.
loop_number
;
40
}
41
42
bool
operator<
(
const
loop_idt
&o)
const
43
{
44
return
function_id
< o.
function_id
||
45
(
function_id
== o.
function_id
&&
loop_number
< o.
loop_number
);
46
}
47
};
48
49
void
show_loop_ids
(
50
ui_message_handlert::uit
,
51
const
goto_modelt
&);
52
53
void
show_loop_ids
(
54
ui_message_handlert::uit
,
55
const
goto_functionst
&);
56
57
void
show_loop_ids
(
58
ui_message_handlert::uit
,
59
const
irep_idt
&function_id,
60
const
goto_programt
&);
61
62
#endif // CPROVER_GOTO_PROGRAMS_LOOP_IDS_H
dstringt
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Definition:
dstring.h:36
loop_idt::operator<
bool operator<(const loop_idt &o) const
Definition:
loop_ids.h:42
goto_modelt
Definition:
goto_model.h:25
ui_message_handlert::uit
uit
Definition:
ui_message.h:24
loop_idt::operator==
bool operator==(const loop_idt &o) const
Definition:
loop_ids.h:37
goto_functionst
A collection of goto functions.
Definition:
goto_functions.h:24
loop_idt::loop_number
unsigned int loop_number
Definition:
loop_ids.h:35
goto_programt
A generic container class for the GOTO intermediate representation of one function.
Definition:
goto_program.h:72
loop_idt::function_id
irep_idt function_id
Definition:
loop_ids.h:34
loop_idt::loop_idt
loop_idt(const irep_idt &function_id, const unsigned int loop_number)
Definition:
loop_ids.h:29
loop_idt
Loop id used to identify loops.
Definition:
loop_ids.h:27
show_loop_ids
void show_loop_ids(ui_message_handlert::uit, const goto_modelt &)
Definition:
loop_ids.cpp:21
ui_message.h
src
goto-programs
loop_ids.h
Generated by
1.8.17