mirror of
https://github.com/angr/angr
synced 2026-08-17 12:23:11 -04:00
* 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>
21 lines
518 B
Python
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))
|