We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91d47c2 commit cfb733aCopy full SHA for cfb733a
src/goto-programs/remove_skip.cpp
@@ -172,13 +172,18 @@ void remove_skip(goto_programt &goto_program)
172
goto_program,
173
goto_program.instructions.begin(),
174
goto_program.instructions.end());
175
+
176
+ goto_program.update();
177
}
178
179
/// remove unnecessary skip statements
180
void remove_skip(goto_functionst &goto_functions)
181
{
182
Forall_goto_functions(f_it, goto_functions)
- remove_skip(f_it->second.body);
183
+ remove_skip(
184
+ f_it->second.body,
185
+ f_it->second.body.instructions.begin(),
186
+ f_it->second.body.instructions.end());
187
188
// we may remove targets
189
goto_functions.update();
@@ -188,4 +193,3 @@ void remove_skip(goto_modelt &goto_model)
193
194
remove_skip(goto_model.goto_functions);
190
195
191
-
0 commit comments