Skip to content

Commit 65099ee

Browse files
committed
benchmark.py: Fix type cast
1 parent 532bc46 commit 65099ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def get_blocks(binary_path: str) -> List[Block]:
108108
cfg = p.analyses[angr.analyses.CFGFast].prep(show_progressbar=True)(
109109
resolve_indirect_jumps=False, force_smart_scan=False
110110
)
111-
for n in cast(Iterable[angr.analyses.cfg.CFGNode], cfg.model.nodes()):
111+
for n in cast(Iterable[angr.knowledge_plugins.cfg.cfg_model.CFGNode], cfg.model.nodes()):
112112
if n.byte_string:
113113
blocks.append(Block(n.addr, n.byte_string))
114114
log.info("Saving blocks to file '%s' for subsequent benchmarks...", blocks_file_path)

0 commit comments

Comments
 (0)