fkie-cad / dewolf

A research decompiler implemented as a Binary Ninja plugin.
GNU Lesser General Public License v2.1
162 stars 9 forks source link

Fix: Lifiting/Printing of global variables #383

Closed NeoQuix closed 3 months ago

NeoQuix commented 4 months ago

Draft: Fix some hacks of global variable lifting + improvements Todo: Tests + Switch Detection

NeoQuix commented 3 months ago

Last things to do:

NeoQuix commented 3 months ago

CExprGenerator does already have (or had) a few rules for printing integers. Will re-add them + check if they apply sensible for Globals as well.

Furthermore need to investigate the UnaryOperation at the end of constants.py. There are more exceptions (like Constant from BNinja)

NeoQuix commented 3 months ago

Dammit. Wanted to merge instead of rebase + my main was not the newest which created a merge.

Will create a new branch with cherry picked old commits.

NeoQuix commented 3 months ago

401 is the new branch