Skip to content

Commit 2224225

Browse files
authored
Use new API for AIL graph in angr (#12)
1 parent f5a30c3 commit 2224225

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sailreval/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.5.0"
1+
__version__ = "1.5.1"
22

33
# create loggers
44
import logging

sailreval/decompilers/angr_dec.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ def generate_linemaps(dec, codegen, base_addr=0x400000):
280280
return
281281

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

0 commit comments

Comments
 (0)