Skip to content

Commit

Permalink
Use new angr AIL CFG api for a speedup (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Mar 20, 2024
1 parent efe8480 commit ec16f61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cfgutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.10.0"
__version__ = "1.10.1"
6 changes: 3 additions & 3 deletions cfgutils/angr_utils/ail_graph_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit ec16f61

Please sign in to comment.