cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
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
loop_idt
(
const
loop_idt
&other) =
default
;
35
36
irep_idt
function_id
;
37
unsigned
int
loop_number
;
38
39
bool
operator==
(
const
loop_idt
&o)
const
40
{
41
return
function_id
== o.
function_id
&&
loop_number
== o.
loop_number
;
42
}
43
44
bool
operator!=
(
const
loop_idt
&o)
const
45
{
46
return
!
operator==
(o);
47
}
48
49
bool
operator<
(
const
loop_idt
&o)
const
50
{
51
return
function_id
< o.
function_id
||
52
(
function_id
== o.
function_id
&&
loop_number
< o.
loop_number
);
53
}
54
};
55
56
void
show_loop_ids
(
57
ui_message_handlert::uit
,
58
const
goto_modelt
&);
59
60
void
show_loop_ids
(
61
ui_message_handlert::uit
,
62
const
goto_functionst
&);
63
64
void
show_loop_ids
(
65
ui_message_handlert::uit
,
66
const
irep_idt
&function_id,
67
const
goto_programt
&);
68
69
#endif
// CPROVER_GOTO_PROGRAMS_LOOP_IDS_H
goto_functionst
A collection of goto functions.
Definition
goto_functions.h:25
goto_modelt
Definition
goto_model.h:27
goto_programt
A generic container class for the GOTO intermediate representation of one function.
Definition
goto_program.h:72
ui_message_handlert::uit
uit
Definition
ui_message.h:24
show_loop_ids
void show_loop_ids(ui_message_handlert::uit, const goto_modelt &)
Definition
loop_ids.cpp:21
loop_idt::operator<
bool operator<(const loop_idt &o) const
Definition
loop_ids.h:49
loop_idt::loop_idt
loop_idt(const loop_idt &other)=default
loop_idt::function_id
irep_idt function_id
Definition
loop_ids.h:36
loop_idt::loop_idt
loop_idt(const irep_idt &function_id, const unsigned int loop_number)
Definition
loop_ids.h:29
loop_idt::loop_number
unsigned int loop_number
Definition
loop_ids.h:37
loop_idt::operator!=
bool operator!=(const loop_idt &o) const
Definition
loop_ids.h:44
loop_idt::operator==
bool operator==(const loop_idt &o) const
Definition
loop_ids.h:39
ui_message.h
irep_idt
dstringt irep_idt
Definition
verification_result.h:16
goto-programs
loop_ids.h
Generated by
1.17.0