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