angr/tests/perf/perf_cfgemulated.py
Kevin Phoenix f939c5b88c
Enable ruff isort rule (#6452)
* Enable ruff isort rule

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-02 14:48:07 -07:00

21 lines
518 B
Python

from __future__ import annotations
import os
import time
import angr
test_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../../../binaries")
p = angr.Project(os.path.join(test_location, "tests", "x86_64", "true"), auto_load_libs=False)
funcs = list(p.analyses.CFGFast().functions.keys())
def main():
p.analyses.CFGEmulated(starts=funcs, call_depth=0)
if __name__ == "__main__":
tstart = time.time()
main()
tend = time.time()
print("Elapsed: %f sec" % (tend - tstart))