simplify
simplify copied to clipboard
jadx fails to decompile methods optimized by simplify
Using the master branch.
Ran as:
java -Xmx512M -Xms256M -jar simplify/build/libs/simplify.jar btpay-1.dex --max-address-visits 100000 --max-call-depth 150 --max-method-visits 10000000 --output btpay-dex-1-simplify-2.dex -ie | tee simplify-dex-1.log
Using jadx to decompile, I get errors such as
/*
Error: jadx.core.utils.exceptions.JadxRuntimeException: Unreachable block: B:9:0x001c
at jadx.core.dex.visitors.blocksmaker.BlockProcessor.modifyBlocksTree(BlockProcessor.java:248)
at jadx.core.dex.visitors.blocksmaker.BlockProcessor.processBlocksTree(BlockProcessor.java:52)
at jadx.core.dex.visitors.blocksmaker.BlockProcessor.visit(BlockProcessor.java:38)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)
at jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)
at jadx.core.ProcessClass.process(ProcessClass.java:34)
at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)
at jadx.api.JavaClass.decompile(JavaClass.java:62)
*/
The attached archive contains the original .dex, the simplified.dex and the simplify log https://drive.google.com/file/d/1DO2vDddorcNPItxJ9MITVTrHU7yLlgda/view?usp=sharing
Thanks for the issue. I think you have enough here to try and reproduce. Btw, what version of jadx are you using?
My day job is keeping me pretty busy, but I occasionally reward myself with time to work on simplify issues. :D
Got the same behavior some time ago.
@axnsan12 I can decompile your simplified.dex file with my GDA. probably your tool has problems.