heimdall-rs icon indicating copy to clipboard operation
heimdall-rs copied to clipboard

implement post-processing for snapshot outputs

Open Jon-Becker opened this issue 1 year ago • 2 comments

Component

Heimdall (Core)

Describe the feature you would like

Motivation

As seen in the image below, the snapshot module does not implement post-processing on its outputs of any kind. This can make analyzing output harder than it needs to be, especially when the decompile module does this already.

image

Solution

Implement output post-processing for conditional statements. Things like:

  • removing double negation
  • calculating constants
  • simplifying arithmetic
  • simplifying parentheses

can help drastically improve the readability and usability of the module.

Jon-Becker avatar Nov 17 '23 04:11 Jon-Becker

I'll take this one

solidoracle avatar Nov 23 '23 08:11 solidoracle

Awesome! Let me know if you have issues, this one is harder than the rest :)

For reference, check out the post processers for solidity output.

Jon-Becker avatar Nov 23 '23 16:11 Jon-Becker