Skip to content

Commit

Permalink
Long names for renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcere committed Nov 13, 2024
1 parent 7bdb65b commit dc302fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cfg_methods/function_inlining.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def _generate_function_to_inline(original_function: CFGFunction, func_idx: int,
block_list.rename_blocks(renaming_dict)

var_ids = _var_ids_from_list(block_list)
renaming_vars = {var_: f"{var_.split('_')[0]}_f{func_idx}_{current_call_idx}" for var_ in var_ids}
renaming_vars.update((var_, f"{var_.split('_')[0]}_f{func_idx}_{current_call_idx}") for var_ in copied_function.arguments)
renaming_vars = {var_: f"{var_}_f{func_idx}_{current_call_idx}" for var_ in var_ids}
renaming_vars.update((var_, f"{var_}_f{func_idx}_{current_call_idx}") for var_ in copied_function.arguments)

n_renaming_vars = len(renaming_vars)
rename_function(copied_function, renaming_vars)
Expand Down

0 comments on commit dc302fd

Please sign in to comment.