Vector35 / Vector35/binaryninja-api

`rrc,rlc(x, y, false)` should be simplified to `x>>,<<y`

Open
#5,455 1 comment 0 reactions 1 assignee View on GitHub

@emesare is already working on this.

Since Jun 11, 2025.

Component: Core Core: HLIL Effort: Trivial IL Optimization Impact: Low
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

Version and Platform (required):

  • Binary Ninja Version: 4.1.5318-dev Personal (80699793)

Bug Description:
HLIL displays expressions of the kind rrc.q(arg1, 1, false). Also, I think rrc inhibits some downstream analyses.

Steps To Reproduce:
repro2.zip

Expected Behavior:
Simplification of rrc(x, y, false) to x >> y and rlc(x, y, false) to x << y

Screenshots:
Screenshot_20240525_064014

Additional Information:
Similar reasoning and context as https://github.com/Vector35/binaryninja-api/issues/5448. (Thanks!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.