Skip to content

[New Plugin]: IL Rewrite Rules #404

Backlog
Backlog

Description

@y637F9QQ2x

Plugin Description

User-defined MLIL simplification rules written in a small text language, such as (?x ^ ?y) + 2*(?x & ?y) => ?x + ?y, with wildcards, typed constants, explicit-signedness operators, where conditions and width restrictions. Every rule is checked for equivalence at each width and operand width it can apply at (exhaustively for small input spaces, with optional z3 proofs), and matches are found through commuted and regrouped operands, common alternative spellings, single-use temporaries and low/zx width changes. Find commands report matches in MLIL or HLIL with clickable links and optional comments without changing the IL, while an opt-in per-function workflow activity rewrites the MLIL so the decompiler shows the simplified code. Includes bundled rule packs for opaque predicates, mixed boolean-arithmetic identities and algebraic identities.

Repo URL

https://github.com/y637F9QQ2x/il-rewrite-rules

Checklist

  • I have made a real release
  • I have created a valid plugin.json file

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions