Skip to content

Commit 59ed92c

Browse files
Don't convert from string to irep_idt unnecessarily
1 parent a853b6a commit 59ed92c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/taint-analysis/taint_program.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ static void build_NONDET_retvals_replacements(
3636
const code_function_callt &fn_call=to_code_function_call(instr_it->code);
3737
if(fn_call.function().id()!=ID_symbol)
3838
continue;
39-
const std::string callee_ident=
40-
as_string(to_symbol_expr(fn_call.function()).get_identifier());
39+
const irep_idt &callee_ident=
40+
to_symbol_expr(fn_call.function()).get_identifier();
4141

4242
const code_typet &fn_type=
4343
model.goto_functions.function_map.at(callee_ident).type;
@@ -53,7 +53,7 @@ static void build_NONDET_retvals_replacements(
5353
next_instr_it,
5454
find_or_create_symbol_expr(
5555
ns,
56-
callee_ident+RETURN_VALUE_SUFFIX,
56+
as_string(callee_ident)+RETURN_VALUE_SUFFIX,
5757
fn_type.return_type())
5858
});
5959
}

0 commit comments

Comments
 (0)