The decompile results looks wrong, why the refinded Pcode is not complete for this function #7078
Replies: 2 comments
-
Can you elaborate on what looks wrong in the decompiled code? The decompiler can perform its own simplifications which result in different (but equivalent) C code than what was originally compiled. Optimizations applied by the compiler can also have a role. The unused local |
Beta Was this translation helpful? Give feedback.
-
These functions might not look the same, but they're logically equivalent, with the compiler/decompiler applying some degree of obfuscation:
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to use Ghidra's refined pcode to do some data-flow analysis, however, when I dumped the refined pcodes of the below function, it seems that the refined pcodes are not complete. Is there anyway to use some decomiledOptions to fix it?
Here is the function written in C, and compiled into an ELF file with ARM:LE:32:v8 using arm-none-eabi-gcc.
The dumped refined pcodes look like:
The decompiled function in "Decompile window" of GUI also looks wrong:
Beta Was this translation helpful? Give feedback.
All reactions