Skip to content

Commit

Permalink
Pseudocode: Fix format_node callee_func check logic (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson authored Dec 7, 2024
1 parent aeabc49 commit 78477be
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions angrmanagement/ui/widgets/qccode_highlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ def _format_node(obj):
if isinstance(obj, SimType):
return FORMATS["type"]
elif isinstance(obj, CFunctionCall):
if (
obj.callee_func is not None
and obj.callee_func.is_simprocedure
or obj.callee_func.is_plt
or obj.callee_func.is_syscall
if obj.callee_func is not None and (
obj.callee_func.is_simprocedure or obj.callee_func.is_plt or obj.callee_func.is_syscall
):
return FORMATS["library_function"]
return FORMATS["function"]
Expand Down

0 comments on commit 78477be

Please sign in to comment.