MCPcopy Create free account
hub / github.com/codehasan/dex2c / dead_code_elimination

Function dead_code_elimination

androguard/decompiler/dad/dataflow.py:118–147  ·  view source on GitHub ↗

Run a dead code elimination pass. Instructions are checked to be dead. If it is the case, we remove them and we update the DU & UD chains of its variables to check for further dead instructions.

(graph, du, ud)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

processMethod · 0.90

Calls 7

update_chainFunction · 0.85
get_loc_with_insMethod · 0.45
get_lhsMethod · 0.45
is_callMethod · 0.45
remove_defined_varMethod · 0.45
has_side_effectMethod · 0.45
remove_insMethod · 0.45

Tested by

no test coverage detected