r2dec-js
r2dec-js copied to clipboard
Improvements in syntax
Ideally r2dec should output C-style code using the coding style of r2:
- [x] } else {
- [x] no empty lines
- [x] Simplify pointers with no delta
*((int64_t*) rax) = 0; -> *rax=0 - [ ] use ut64 instead of uint64_t and so on (? as an option)
- [ ] no ennecessary return statements
- [ ] != 0 is implicit, just if (eax)
- [ ] Implicit casts and pointer cleanup
rdi = *((int64_t*) rbx + 0x138);
because acording to the regprofile rbx is 64bit in size must be.
rdi = rbx[0x138];
the empty lines one is a bug introduced with html (i think).