Skip to content

Commit

Permalink
Add: Use most common type
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoQuix committed Aug 14, 2024
1 parent b874bf4 commit 136e415
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, task: DecompilerTask) -> None:
for variable_id, vars in self._variables.items():
# because the way our cfg works, each use site of each variable could theoretically have a different type
# we just take the first assuming that they are all the same...
var_type = vars[0].type
var_type = Counter(vars).most_common()[0][0].type
name_identifier = self._get_name_identifier(variable_id.name)
prefix = self._hungarian_prefix(var_type)

Expand Down

0 comments on commit 136e415

Please sign in to comment.