Skip to content

Commit

Permalink
Use new API for AIL graph in angr (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz authored Mar 20, 2024
1 parent f5a30c3 commit 2224225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sailreval/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.5.0"
__version__ = "1.5.1"

# create loggers
import logging
Expand Down
6 changes: 3 additions & 3 deletions sailreval/decompilers/angr_dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ def generate_linemaps(dec, codegen, base_addr=0x400000):
return

base_addr = dec.project.loader.main_object.image_base_delta
if hasattr(dec, "unmodified_clinic_graph"):
nodes = dec.unmodified_clinic_graph.nodes
if hasattr(dec, "unoptimized_ail_graph"):
nodes = dec.unoptimized_ail_graph.nodes
else:
l.warning(f"You are likely using an older version of angr that has no unmodified_clinic_graph."
l.critical(f"You are likely using an older version of angr that has no unoptimized_ail_graph."
f" Using clinic_graph instead, results will be less accurate...")
nodes = dec.clinic.cc_graph.nodes

Expand Down

0 comments on commit 2224225

Please sign in to comment.