Skip to content

Commit b7e87ea

Browse files
committed
Remove redundant calls to compute_{location,loop}_numbers
1 parent e7b1780 commit b7e87ea

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

src/goto-instrument/model_argc_argv.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ bool model_argc_argv(
181181

182182
// update counters etc.
183183
remove_skip(start);
184-
start.compute_loop_numbers();
185184
goto_model.goto_functions.update();
186185

187186
return false;

src/goto-programs/remove_virtual_functions.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -533,11 +533,7 @@ void remove_virtual_functions(goto_model_functiont &function)
533533
class_hierarchyt class_hierarchy;
534534
class_hierarchy(function.get_symbol_table());
535535
remove_virtual_functionst rvf(function.get_symbol_table(), class_hierarchy);
536-
bool changed = rvf.remove_virtual_functions(
537-
function.get_goto_function().body);
538-
// Give fresh location numbers to `function`, in case it has grown:
539-
if(changed)
540-
function.compute_location_numbers();
536+
rvf.remove_virtual_functions(function.get_goto_function().body);
541537
}
542538

543539
void remove_virtual_function(

src/java_bytecode/replace_java_nondet.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ void replace_java_nondet(goto_model_functiont &function)
290290
goto_programt &program = function.get_goto_function().body;
291291
replace_java_nondet(program);
292292

293-
function.compute_location_numbers();
294-
295293
remove_skip(program);
296294
}
297295

@@ -302,8 +300,6 @@ void replace_java_nondet(goto_functionst &goto_functions)
302300
replace_java_nondet(goto_program.second.body);
303301
}
304302

305-
goto_functions.compute_location_numbers();
306-
307303
remove_skip(goto_functions);
308304
}
309305

0 commit comments

Comments
 (0)