@@ -14,93 +14,9 @@ Date: June 2003
14
14
#ifndef CPROVER_GOTO_PROGRAMS_GOTO_FUNCTIONS_H
15
15
#define CPROVER_GOTO_PROGRAMS_GOTO_FUNCTIONS_H
16
16
17
- #include < iosfwd >
17
+ #include " goto_function.h "
18
18
19
19
#include < util/cprover_prefix.h>
20
- #include < util/std_types.h>
21
-
22
- #include " goto_program.h"
23
-
24
- class goto_functiont
25
- {
26
- public:
27
- goto_programt body;
28
- code_typet type;
29
-
30
- typedef std::vector<irep_idt> parameter_identifierst;
31
- parameter_identifierst parameter_identifiers;
32
-
33
- bool body_available () const
34
- {
35
- return !body.instructions .empty ();
36
- }
37
-
38
- bool is_inlined () const
39
- {
40
- return type.get_bool (ID_C_inlined);
41
- }
42
-
43
- bool is_hidden () const
44
- {
45
- return type.get_bool (ID_C_hide);
46
- }
47
-
48
- void make_hidden ()
49
- {
50
- type.set (ID_C_hide, true );
51
- }
52
-
53
- goto_functiont ()
54
- {
55
- }
56
-
57
- void clear ()
58
- {
59
- body.clear ();
60
- type.clear ();
61
- parameter_identifiers.clear ();
62
- }
63
-
64
- // / update the function member in each instruction
65
- // / \param function_id: the `function_id` used for assigning empty function
66
- // / members
67
- void update_instructions_function (const irep_idt &function_id)
68
- {
69
- body.update_instructions_function (function_id);
70
- }
71
-
72
- void swap (goto_functiont &other)
73
- {
74
- body.swap (other.body );
75
- type.swap (other.type );
76
- parameter_identifiers.swap (other.parameter_identifiers );
77
- }
78
-
79
- void copy_from (const goto_functiont &other)
80
- {
81
- body.copy_from (other.body );
82
- type=other.type ;
83
- parameter_identifiers=other.parameter_identifiers ;
84
- }
85
-
86
- goto_functiont (const goto_functiont &)=delete ;
87
- goto_functiont &operator =(const goto_functiont &)=delete ;
88
-
89
- goto_functiont (goto_functiont &&other):
90
- body (std::move(other.body)),
91
- type (std::move(other.type)),
92
- parameter_identifiers (std::move(other.parameter_identifiers))
93
- {
94
- }
95
-
96
- goto_functiont &operator =(goto_functiont &&other)
97
- {
98
- body=std::move (other.body );
99
- type=std::move (other.type );
100
- parameter_identifiers=std::move (other.parameter_identifiers );
101
- return *this ;
102
- }
103
- };
104
20
105
21
class goto_functionst
106
22
{
@@ -211,8 +127,4 @@ class goto_functionst
211
127
it=(functions).function_map.begin(); \
212
128
it!=(functions).function_map.end(); it++)
213
129
214
- void get_local_identifiers (
215
- const goto_functiont &,
216
- std::set<irep_idt> &dest);
217
-
218
130
#endif // CPROVER_GOTO_PROGRAMS_GOTO_FUNCTIONS_H
0 commit comments