diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-09-11 08:33:18 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-09-20 07:44:31 +0200 |
| commit | 846d316efab8b8b654eee58b952cdf1ba2d3eb42 (patch) | |
| tree | 217e8f5b825ad11c224d016a6d54b9224337b5f6 /example | |
| parent | 2f9139cbc737978d7308496bb8249a99431320e7 (diff) | |
| download | miasm-846d316efab8b8b654eee58b952cdf1ba2d3eb42.tar.gz miasm-846d316efab8b8b654eee58b952cdf1ba2d3eb42.zip | |
Code cleaning: lgtm.com
Diffstat (limited to 'example')
| -rw-r--r-- | example/disasm/full.py | 2 | ||||
| -rw-r--r-- | example/ida/ctype_propagation.py | 4 | ||||
| -rw-r--r-- | example/jitter/run_with_linuxenv.py | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py index ac8bf522..03094a55 100644 --- a/example/disasm/full.py +++ b/example/disasm/full.py @@ -10,7 +10,7 @@ from miasm2.analysis.data_flow import dead_simp, DiGraphDefUse, \ ReachingDefinitions, merge_blocks, remove_empty_assignblks, \ PropagateExpr, replace_stack_vars, load_from_int from miasm2.expression.simplifications import expr_simp -from miasm2.analysis.ssa import SSAPath, SSADiGraph, remove_phi +from miasm2.analysis.ssa import SSADiGraph, remove_phi from miasm2.ir.ir import AssignBlock, IRBlock log = logging.getLogger("dis") diff --git a/example/ida/ctype_propagation.py b/example/ida/ctype_propagation.py index 3c8a745a..a3d6df8b 100644 --- a/example/ida/ctype_propagation.py +++ b/example/ida/ctype_propagation.py @@ -337,7 +337,7 @@ def analyse_function(): if lbl not in ircfg.blocks: continue symbexec_engine = TypePropagationEngine(ir_arch, types_mngr, state) - addr = symbexec_engine.run_block_at(ircfg, lbl) + symbexec_engine.run_block_at(ircfg, lbl) symbexec_engine.del_mem_above_stack(ir_arch.sp) sons = ircfg.successors(lbl) @@ -351,7 +351,7 @@ def analyse_function(): if lbl not in ircfg.blocks: continue symbexec_engine = CTypeEngineFixer(ir_arch, types_mngr, state, cst_propag_link) - addr = symbexec_engine.run_block_at(ircfg, lbl) + symbexec_engine.run_block_at(ircfg, lbl) symbexec_engine.del_mem_above_stack(ir_arch.sp) diff --git a/example/jitter/run_with_linuxenv.py b/example/jitter/run_with_linuxenv.py index 933459f4..c9abe699 100644 --- a/example/jitter/run_with_linuxenv.py +++ b/example/jitter/run_with_linuxenv.py @@ -1,6 +1,5 @@ from argparse import ArgumentParser import logging -import os import re from elfesteem import elf as elf_csts |