Open XVilka opened 6 years ago
I'd love to work on this. Probably a new analysis is needed, something like analysis/arithmetic. It should take complex expressions, match them to some identities (like a^a=0, a+0=a, ...) and apply the substitution. I'm just wondering if analysis/inst_combine can be extended to do that.
@Mm7 note it is partly related to https://github.com/radareorg/radeco-lib/pull/171
On the other hand, the simplification itself can be done without the graph access.
I am thinking, what if we just reuse SMT solver for simplifying the expressions?
Sounds like a good idea to me
On 14 Mar 2019, at 08:30, Anton Kochkov notifications@github.com wrote:
I am thinking, what if we just reuse SMT solver for simplifying the expressions?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
From the example in http://radare.today/posts/gsoc_2018_radeco_pseudo_c_code_generation/
Obviously these conditions should be simplified.