From ec16f61f8a65e7408f8140ec1fb04224185afc22 Mon Sep 17 00:00:00 2001 From: Zion Leonahenahe Basque Date: Tue, 19 Mar 2024 22:47:22 -0700 Subject: [PATCH] Use new angr AIL CFG api for a speedup (#13) --- cfgutils/__init__.py | 2 +- cfgutils/angr_utils/ail_graph_conv.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cfgutils/__init__.py b/cfgutils/__init__.py index fcfdf38..a0865bb 100644 --- a/cfgutils/__init__.py +++ b/cfgutils/__init__.py @@ -1 +1 @@ -__version__ = "1.10.0" +__version__ = "1.10.1" diff --git a/cfgutils/angr_utils/ail_graph_conv.py b/cfgutils/angr_utils/ail_graph_conv.py index f99c4f2..7cc1bb4 100644 --- a/cfgutils/angr_utils/ail_graph_conv.py +++ b/cfgutils/angr_utils/ail_graph_conv.py @@ -83,9 +83,9 @@ def binary_to_ail_cfgs( # for this function you don't actually need the linear decompilation, but we run through the entire # decompilation process to assure every optimization is run that would be done on a normal Clinic graph - dec = proj.analyses.Decompiler(f, cfg=cfg, kb=cfg.kb, optimization_passes=all_optimizations) - dec.clinic.cc_graph.name = str(f.name) - ail_cfgs[str(f.name)] = dec.clinic.cc_graph if not supergraph else to_ail_supergraph(dec.clinic.cc_graph) + dec = proj.analyses.Decompiler(f, cfg=cfg, kb=cfg.kb, optimization_passes=all_optimizations, generate_code=False) + dec.ail_graph.name = str(f.name) + ail_cfgs[str(f.name)] = dec.ail_graph if not supergraph else to_ail_supergraph(dec.ail_graph) if make_generic: cfgs = [ail_cfg_to_generic(cfg, proj) for name, cfg in ail_cfgs.items()]