@@ -60,7 +60,7 @@ static void finish_catch_push_targets(goto_programt &dest)
60
60
{
61
61
if (
62
62
instruction.is_catch () &&
63
- instruction.get_code ().get_statement () == ID_push_catch)
63
+ instruction.code ().get_statement () == ID_push_catch)
64
64
{
65
65
// Populate `targets` with a GOTO instruction target per
66
66
// exception handler if it isn't already populated.
@@ -71,7 +71,7 @@ static void finish_catch_push_targets(goto_programt &dest)
71
71
{
72
72
bool handler_added=true ;
73
73
const code_push_catcht::exception_listt &handler_list =
74
- to_code_push_catch (instruction.get_code ()).exception_list ();
74
+ to_code_push_catch (instruction.code ()).exception_list ();
75
75
76
76
for (const auto &handler : handler_list)
77
77
{
@@ -114,7 +114,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
114
114
115
115
if (i.is_start_thread ())
116
116
{
117
- const irep_idt &goto_label = i.get_code ().get (ID_destination);
117
+ const irep_idt &goto_label = i.code ().get (ID_destination);
118
118
119
119
labelst::const_iterator l_it=
120
120
targets.labels .find (goto_label);
@@ -123,22 +123,22 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
123
123
{
124
124
throw incorrect_goto_program_exceptiont (
125
125
" goto label \' " + id2string (goto_label) + " \' not found" ,
126
- i.get_code ().find_source_location ());
126
+ i.code ().find_source_location ());
127
127
}
128
128
129
129
i.targets .push_back (l_it->second .first );
130
130
}
131
131
else if (i.is_incomplete_goto ())
132
132
{
133
- const irep_idt &goto_label = i.get_code ().get (ID_destination);
133
+ const irep_idt &goto_label = i.code ().get (ID_destination);
134
134
135
135
labelst::const_iterator l_it=targets.labels .find (goto_label);
136
136
137
137
if (l_it == targets.labels .end ())
138
138
{
139
139
throw incorrect_goto_program_exceptiont (
140
140
" goto label \' " + id2string (goto_label) + " \' not found" ,
141
- i.get_code ().find_source_location ());
141
+ i.code ().find_source_location ());
142
142
}
143
143
144
144
i.complete_goto (l_it->second .first );
@@ -204,7 +204,7 @@ void goto_convertt::finish_computed_gotos(goto_programt &goto_program)
204
204
for (auto &g_it : targets.computed_gotos )
205
205
{
206
206
goto_programt::instructiont &i=*g_it;
207
- dereference_exprt destination = to_dereference_expr (i.get_code ().op0 ());
207
+ dereference_exprt destination = to_dereference_expr (i.code ().op0 ());
208
208
const exprt pointer = destination.pointer ();
209
209
210
210
// remember the expression for later checks
0 commit comments