Vector35 / Vector35/binaryninja-api
`rrc,rlc(x, y, false)` should be simplified to `x>>,<<y`
Open
@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:
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.