Skip to content

Commit 3082d9d

Browse files
authored
Merge pull request diffblue#2029 from tautschnig/remove-asm
goto-instrument: Remove inline asm before doing various operations
2 parents f8df76a + 4d67ed5 commit 3082d9d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,8 @@ void goto_instrument_parse_optionst::do_indirect_call_and_rtti_removal(
809809
cmdline.isset("pointer-check"));
810810
status() << "Virtual function removal" << eom;
811811
remove_virtual_functions(goto_model);
812+
status() << "Cleaning inline assembler statements" << eom;
813+
remove_asm(goto_model);
812814
}
813815

814816
/// Remove function pointers that can be resolved by analysing const variables
@@ -1184,12 +1186,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
11841186

11851187
if(cmdline.isset("mm"))
11861188
{
1187-
// TODO: move to wmm/weak_mem, and copy goto_functions AFTER some of the
1188-
// modifications. Do the analysis on the copy, after remove_asm, and
1189-
// instrument the original (without remove_asm)
1190-
remove_asm(goto_model);
1191-
goto_model.goto_functions.update();
1192-
11931189
std::string mm=cmdline.get_value("mm");
11941190
memory_modelt model;
11951191

0 commit comments

Comments
 (0)