diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2022-03-24 10:52:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-24 10:52:48 +0100 |
| commit | 299fa40894236163a13051fe3b52b3d2e6951e8a (patch) | |
| tree | 6d502cae4c62e48f4e254df60560c543cdc0c938 /example/expression/graph_dataflow.py | |
| parent | 0601bbed4cb32098f216b4a2af0310e996e69a56 (diff) | |
| parent | aa863605984cde8ae14eb14cf62027e6af4b22ad (diff) | |
| download | miasm-299fa40894236163a13051fe3b52b3d2e6951e8a.tar.gz miasm-299fa40894236163a13051fe3b52b3d2e6951e8a.zip | |
Merge pull request #1420 from CLOVIS-AI/examples-update
Updates to the examples
Diffstat (limited to 'example/expression/graph_dataflow.py')
| -rw-r--r-- | example/expression/graph_dataflow.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/example/expression/graph_dataflow.py b/example/expression/graph_dataflow.py index f40646bc..dc09eae4 100644 --- a/example/expression/graph_dataflow.py +++ b/example/expression/graph_dataflow.py @@ -13,7 +13,7 @@ from miasm.analysis.data_flow import DeadRemoval from miasm.core.locationdb import LocationDB -parser = ArgumentParser("Simple expression use for generating dataflow graph") +parser = ArgumentParser(description="Simple expression use for generating dataflow graph") parser.add_argument("filename", help="File to analyse") parser.add_argument("addr", help="Function's address") parser.add_argument("-s", "--symb", help="Symbolic execution mode", @@ -158,8 +158,10 @@ gen_block_data_flow_graph(lifter, ircfg, ad, block_flow_cb) print('*' * 40) print(""" View with: -dotty dataflow.dot +dotty data.dot + or +xdot data.dot or Generate ps with pdf: -dot -Tps dataflow_xx.dot -o graph.ps +dot -Tps data.dot -o graph.ps """) |